1
0
mirror of https://github.com/ZeroCatDev/Classworks.git synced 2025-12-07 21:13:11 +00:00
Classworks/assets/index-BvkH3f4i-DeI5J5cs.js

19 lines
103 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

function ie(vt){return vt&&vt.__esModule&&Object.prototype.hasOwnProperty.call(vt,"default")?vt.default:vt}var Rt={exports:{}};/*!
*
* simple-keyboard v3.8.85
* https://github.com/hodgef/simple-keyboard
*
* Copyright (c) Francisco Hodge (https://github.com/hodgef) and project contributors.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/var ae=Rt.exports,Qt;function ue(){return Qt||(Qt=1,function(vt,le){(function(Lt,Ct){vt.exports=Ct()})(ae,function(){return function(){var Lt={34:function(i,u,t){var e=t(4901);i.exports=function(n){return typeof n=="object"?n!==null:e(n)}},81:function(i,u,t){var e=t(9565),n=t(9306),r=t(8551),o=t(6823),a=t(851),s=TypeError;i.exports=function(c,l){var f=arguments.length<2?a(c):l;if(n(f))return r(e(f,c));throw new s(o(c)+" is not iterable")}},235:function(i,u,t){var e=t(9213).forEach,n=t(4598)("forEach");i.exports=n?[].forEach:function(r){return e(this,r,arguments.length>1?arguments[1]:void 0)}},283:function(i,u,t){var e=t(9504),n=t(9039),r=t(4901),o=t(9297),a=t(3724),s=t(350).CONFIGURABLE,c=t(3706),l=t(1181),f=l.enforce,v=l.get,d=String,p=Object.defineProperty,g=e("".slice),h=e("".replace),m=e([].join),y=a&&!n(function(){return p(function(){},"length",{value:8}).length!==8}),b=String(String).split("String"),x=i.exports=function(w,k,O){g(d(k),0,7)==="Symbol("&&(k="["+h(d(k),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),O&&O.getter&&(k="get "+k),O&&O.setter&&(k="set "+k),(!o(w,"name")||s&&w.name!==k)&&(a?p(w,"name",{value:k,configurable:!0}):w.name=k),y&&O&&o(O,"arity")&&w.length!==O.arity&&p(w,"length",{value:O.arity});try{O&&o(O,"constructor")&&O.constructor?a&&p(w,"prototype",{writable:!1}):w.prototype&&(w.prototype=void 0)}catch{}var E=f(w);return o(E,"source")||(E.source=m(b,typeof k=="string"?k:"")),w};Function.prototype.toString=x(function(){return r(this)&&v(this).source||c(this)},"toString")},298:function(i,u,t){var e=t(2195),n=t(5397),r=t(8480).f,o=t(7680),a=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];i.exports.f=function(s){return a&&e(s)==="Window"?function(c){try{return r(c)}catch{return o(a)}}(s):r(n(s))}},350:function(i,u,t){var e=t(3724),n=t(9297),r=Function.prototype,o=e&&Object.getOwnPropertyDescriptor,a=n(r,"name"),s=a&&(function(){}).name==="something",c=a&&(!e||e&&o(r,"name").configurable);i.exports={EXISTS:a,PROPER:s,CONFIGURABLE:c}},397:function(i,u,t){var e=t(7751);i.exports=e("document","documentElement")},421:function(i){i.exports={}},511:function(i,u,t){var e=t(9167),n=t(9297),r=t(1951),o=t(4913).f;i.exports=function(a){var s=e.Symbol||(e.Symbol={});n(s,a)||o(s,a,{value:r.f(a)})}},566:function(i,u,t){var e=t(9504),n=t(9306),r=t(34),o=t(9297),a=t(7680),s=t(616),c=Function,l=e([].concat),f=e([].join),v={};i.exports=s?c.bind:function(d){var p=n(this),g=p.prototype,h=a(arguments,1),m=function(){var y=l(h,a(arguments));return this instanceof m?function(b,x,w){if(!o(v,x)){for(var k=[],O=0;O<x;O++)k[O]="a["+O+"]";v[x]=c("C,a","return new C("+f(k,",")+")")}return v[x](b,w)}(p,y.length,y):p.apply(d,y)};return r(g)&&(m.prototype=g),m}},597:function(i,u,t){var e=t(9039),n=t(8227),r=t(9519),o=n("species");i.exports=function(a){return r>=51||!e(function(){var s=[];return(s.constructor={})[o]=function(){return{foo:1}},s[a](Boolean).foo!==1})}},616:function(i,u,t){var e=t(9039);i.exports=!e(function(){var n=(function(){}).bind();return typeof n!="function"||n.hasOwnProperty("prototype")})},655:function(i,u,t){var e=t(6955),n=String;i.exports=function(r){if(e(r)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return n(r)}},687:function(i,u,t){var e=t(4913).f,n=t(9297),r=t(8227)("toStringTag");i.exports=function(o,a,s){o&&!s&&(o=o.prototype),o&&!n(o,r)&&e(o,r,{configurable:!0,value:a})}},706:function(i,u,t){var e=t(350).PROPER,n=t(9039),r=t(7452);i.exports=function(o){return n(function(){return!!r[o]()||"…"[o]()!=="…"||e&&r[o].name!==o})}},739:function(i,u,t){var e=t(6518),n=t(9039),r=t(8981),o=t(2777);e({target:"Date",proto:!0,arity:1,forced:n(function(){return new Date(NaN).toJSON()!==null||Date.prototype.toJSON.call({toISOString:function(){return 1}})!==1})},{toJSON:function(a){var s=r(this),c=o(s,"number");return typeof c!="number"||isFinite(c)?s.toISOString():null}})},741:function(i){var u=Math.ceil,t=Math.floor;i.exports=Math.trunc||function(e){var n=+e;return(n>0?t:u)(n)}},744:function(i,u,t){var e=t(9565),n=t(9504),r=t(9228),o=t(8551),a=t(34),s=t(7750),c=t(2293),l=t(7829),f=t(8014),v=t(655),d=t(5966),p=t(6682),g=t(8429),h=t(9039),m=g.UNSUPPORTED_Y,y=Math.min,b=n([].push),x=n("".slice),w=!h(function(){var O=/(?:)/,E=O.exec;O.exec=function(){return E.apply(this,arguments)};var P="ab".split(O);return P.length!==2||P[0]!=="a"||P[1]!=="b"}),k="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;r("split",function(O,E,P){var I="0".split(void 0,0).length?function(S,D){return S===void 0&&D===0?[]:e(E,this,S,D)}:E;return[function(S,D){var C=s(this),A=a(S)?d(S,O):void 0;return A?e(A,S,C,D):e(I,v(C),S,D)},function(S,D){var C=o(this),A=v(S);if(!k){var $=P(I,C,A,D,I!==E);if($.done)return $.value}var H=c(C,RegExp),M=C.unicode,_=(C.ignoreCase?"i":"")+(C.multiline?"m":"")+(C.unicode?"u":"")+(m?"g":"y"),B=new H(m?"^(?:"+C.source+")":C,_),L=D===void 0?4294967295:D>>>0;if(L===0)return[];if(A.length===0)return p(B,A)===null?[A]:[];for(var K=0,U=0,T=[];U<A.length;){B.lastIndex=m?0:U;var N,j=p(B,m?x(A,U):A);if(j===null||(N=y(f(B.lastIndex+(m?U:0)),A.length))===K)U=l(A,U,M);else{if(b(T,x(A,K,U)),T.length===L)return T;for(var V=1;V<=j.length-1;V++)if(b(T,j[V]),T.length===L)return T;U=K=N}}return b(T,x(A,K)),T}]},k||!w,m)},757:function(i,u,t){var e=t(7751),n=t(4901),r=t(1625),o=t(7040),a=Object;i.exports=o?function(s){return typeof s=="symbol"}:function(s){var c=e("Symbol");return n(c)&&r(c.prototype,a(s))}},788:function(i,u,t){var e=t(34),n=t(2195),r=t(8227)("match");i.exports=function(o){var a;return e(o)&&((a=o[r])!==void 0?!!a:n(o)==="RegExp")}},825:function(i,u,t){var e=t(6518),n=t(7751),r=t(8745),o=t(566),a=t(5548),s=t(8551),c=t(34),l=t(2360),f=t(9039),v=n("Reflect","construct"),d=Object.prototype,p=[].push,g=f(function(){function y(){}return!(v(function(){},[],y)instanceof y)}),h=!f(function(){v(function(){})}),m=g||h;e({target:"Reflect",stat:!0,forced:m,sham:m},{construct:function(y,b){a(y),s(b);var x=arguments.length<3?y:a(arguments[2]);if(h&&!g)return v(y,b,x);if(y===x){switch(b.length){case 0:return new y;case 1:return new y(b[0]);case 2:return new y(b[0],b[1]);case 3:return new y(b[0],b[1],b[2]);case 4:return new y(b[0],b[1],b[2],b[3])}var w=[null];return r(p,w,b),new(r(o,y,w))}var k=x.prototype,O=l(c(k)?k:d),E=r(y,O,b);return c(E)?E:O}})},851:function(i,u,t){var e=t(6955),n=t(5966),r=t(4117),o=t(6269),a=t(8227)("iterator");i.exports=function(s){if(!r(s))return n(s,a)||n(s,"@@iterator")||o[e(s)]}},926:function(i,u,t){var e=t(9306),n=t(8981),r=t(7055),o=t(6198),a=TypeError,s="Reduce of empty array with no initial value",c=function(l){return function(f,v,d,p){var g=n(f),h=r(g),m=o(g);if(e(v),m===0&&d<2)throw new a(s);var y=l?m-1:0,b=l?-1:1;if(d<2)for(;;){if(y in h){p=h[y],y+=b;break}if(y+=b,l?y<0:m<=y)throw new a(s)}for(;l?y>=0:m>y;y+=b)y in h&&(p=v(p,h[y],y,g));return p}};i.exports={left:c(!1),right:c(!0)}},1034:function(i,u,t){var e=t(9565),n=t(9297),r=t(1625),o=t(5213),a=t(7979),s=RegExp.prototype;i.exports=o.correct?function(c){return c.flags}:function(c){return o.correct||!r(s,c)||n(c,"flags")?c.flags:e(a,c)}},1056:function(i,u,t){var e=t(4913).f;i.exports=function(n,r,o){o in n||e(n,o,{configurable:!0,get:function(){return r[o]},set:function(a){r[o]=a}})}},1072:function(i,u,t){var e=t(1828),n=t(8727);i.exports=Object.keys||function(r){return e(r,n)}},1088:function(i,u,t){var e=t(6518),n=t(9565),r=t(6395),o=t(350),a=t(4901),s=t(3994),c=t(2787),l=t(2967),f=t(687),v=t(6699),d=t(6840),p=t(8227),g=t(6269),h=t(7657),m=o.PROPER,y=o.CONFIGURABLE,b=h.IteratorPrototype,x=h.BUGGY_SAFARI_ITERATORS,w=p("iterator"),k="keys",O="values",E="entries",P=function(){return this};i.exports=function(I,S,D,C,A,$,H){s(D,S,C);var M,_,B,L=function(Z){if(Z===A&&j)return j;if(!x&&Z&&Z in T)return T[Z];switch(Z){case k:case O:case E:return function(){return new D(this,Z)}}return function(){return new D(this)}},K=S+" Iterator",U=!1,T=I.prototype,N=T[w]||T["@@iterator"]||A&&T[A],j=!x&&N||L(A),V=S==="Array"&&T.entries||N;if(V&&(M=c(V.call(new I)))!==Object.prototype&&M.next&&(r||c(M)===b||(l?l(M,b):a(M[w])||d(M,w,P)),f(M,K,!0,!0),r&&(g[K]=P)),m&&A===O&&N&&N.name!==O&&(!r&&y?v(T,"name",O):(U=!0,j=function(){return n(N,this)})),A)if(_={values:L(O),keys:$?j:L(k),entries:L(E)},H)for(B in _)(x||U||!(B in T))&&d(T,B,_[B]);else e({target:S,proto:!0,forced:x||U},_);return r&&!H||T[w]===j||d(T,w,j,{name:A}),g[S]=j,_}},1181:function(i,u,t){var e,n,r,o=t(8622),a=t(4576),s=t(34),c=t(6699),l=t(9297),f=t(7629),v=t(6119),d=t(421),p="Object already initialized",g=a.TypeError,h=a.WeakMap;if(o||f.state){var m=f.state||(f.state=new h);m.get=m.get,m.has=m.has,m.set=m.set,e=function(b,x){if(m.has(b))throw new g(p);return x.facade=b,m.set(b,x),x},n=function(b){return m.get(b)||{}},r=function(b){return m.has(b)}}else{var y=v("state");d[y]=!0,e=function(b,x){if(l(b,y))throw new g(p);return x.facade=b,c(b,y,x),x},n=function(b){return l(b,y)?b[y]:{}},r=function(b){return l(b,y)}}i.exports={set:e,get:n,has:r,enforce:function(b){return r(b)?n(b):e(b,{})},getterFor:function(b){return function(x){var w;if(!s(x)||(w=n(x)).type!==b)throw new g("Incompatible receiver, "+b+" required");return w}}}},1240:function(i,u,t){var e=t(9504);i.exports=e(1.1.valueOf)},1278:function(i,u,t){var e=t(6518),n=t(3724),r=t(5031),o=t(5397),a=t(7347),s=t(4659);e({target:"Object",stat:!0,sham:!n},{getOwnPropertyDescriptors:function(c){for(var l,f,v=o(c),d=a.f,p=r(v),g={},h=0;p.length>h;)(f=d(v,l=p[h++]))!==void 0&&s(g,l,f);return g}})},1291:function(i,u,t){var e=t(741);i.exports=function(n){var r=+n;return r!=r||r===0?0:e(r)}},1296:function(i,u,t){var e=t(4495);i.exports=e&&!!Symbol.for&&!!Symbol.keyFor},1436:function(i,u,t){var e=t(8227)("match");i.exports=function(n){var r=/./;try{"/./"[n](r)}catch{try{return r[e]=!1,"/./"[n](r)}catch{}}return!1}},1469:function(i,u,t){var e=t(7433);i.exports=function(n,r){return new(e(n))(r===0?0:r)}},1480:function(i,u,t){var e=t(6518),n=t(9039),r=t(298).f;e({target:"Object",stat:!0,forced:n(function(){return!Object.getOwnPropertyNames(1)})},{getOwnPropertyNames:r})},1510:function(i,u,t){var e=t(6518),n=t(7751),r=t(9297),o=t(655),a=t(5745),s=t(1296),c=a("string-to-symbol-registry"),l=a("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!s},{for:function(f){var v=o(f);if(r(c,v))return c[v];var d=n("Symbol")(v);return c[v]=d,l[d]=v,d}})},1625:function(i,u,t){var e=t(9504);i.exports=e({}.isPrototypeOf)},1699:function(i,u,t){var e=t(6518),n=t(9504),r=t(5749),o=t(7750),a=t(655),s=t(1436),c=n("".indexOf);e({target:"String",proto:!0,forced:!s("includes")},{includes:function(l){return!!~c(a(o(this)),a(r(l)),arguments.length>1?arguments[1]:void 0)}})},1761:function(i,u,t){var e=t(9565),n=t(9504),r=t(9228),o=t(8551),a=t(34),s=t(8014),c=t(655),l=t(7750),f=t(5966),v=t(7829),d=t(1034),p=t(6682),g=n("".indexOf);r("match",function(h,m,y){return[function(b){var x=l(this),w=a(b)?f(b,h):void 0;return w?e(w,b,x):new RegExp(b)[h](c(x))},function(b){var x=o(this),w=c(b),k=y(m,x,w);if(k.done)return k.value;var O=c(d(x));if(g(O,"g")===-1)return p(x,w);var E=g(O,"u")!==-1;x.lastIndex=0;for(var P,I=[],S=0;(P=p(x,w))!==null;){var D=c(P[0]);I[S]=D,D===""&&(x.lastIndex=v(w,s(x.lastIndex),E)),S++}return S===0?null:I}]})},1828:function(i,u,t){var e=t(9504),n=t(9297),r=t(5397),o=t(9617).indexOf,a=t(421),s=e([].push);i.exports=function(c,l){var f,v=r(c),d=0,p=[];for(f in v)!n(a,f)&&n(v,f)&&s(p,f);for(;l.length>d;)n(v,f=l[d++])&&(~o(p,f)||s(p,f));return p}},1951:function(i,u,t){var e=t(8227);u.f=e},2008:function(i,u,t){var e=t(6518),n=t(9213).filter;e({target:"Array",proto:!0,forced:!t(597)("filter")},{filter:function(r){return n(this,r,arguments.length>1?arguments[1]:void 0)}})},2010:function(i,u,t){var e=t(3724),n=t(350).EXISTS,r=t(9504),o=t(2106),a=Function.prototype,s=r(a.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,l=r(c.exec);e&&!n&&o(a,"name",{configurable:!0,get:function(){try{return l(c,s(this))[1]}catch{return""}}})},2062:function(i,u,t){var e=t(6518),n=t(9213).map;e({target:"Array",proto:!0,forced:!t(597)("map")},{map:function(r){return n(this,r,arguments.length>1?arguments[1]:void 0)}})},2087:function(i,u,t){var e=t(34),n=Math.floor;i.exports=Number.isInteger||function(r){return!e(r)&&isFinite(r)&&n(r)===r}},2106:function(i,u,t){var e=t(283),n=t(4913);i.exports=function(r,o,a){return a.get&&e(a.get,o,{getter:!0}),a.set&&e(a.set,o,{setter:!0}),n.f(r,o,a)}},2140:function(i,u,t){var e={};e[t(8227)("toStringTag")]="z",i.exports=String(e)==="[object z]"},2195:function(i,u,t){var e=t(9504),n=e({}.toString),r=e("".slice);i.exports=function(o){return r(n(o),8,-1)}},2211:function(i,u,t){var e=t(9039);i.exports=!e(function(){function n(){}return n.prototype.constructor=null,Object.getPrototypeOf(new n)!==n.prototype})},2259:function(i,u,t){t(511)("iterator")},2293:function(i,u,t){var e=t(8551),n=t(5548),r=t(4117),o=t(8227)("species");i.exports=function(a,s){var c,l=e(a).constructor;return l===void 0||r(c=e(l)[o])?s:n(c)}},2360:function(i,u,t){var e,n=t(8551),r=t(6801),o=t(8727),a=t(421),s=t(397),c=t(4055),l=t(6119),f="prototype",v="script",d=l("IE_PROTO"),p=function(){},g=function(y){return"<"+v+">"+y+"</"+v+">"},h=function(y){y.write(g("")),y.close();var b=y.parentWindow.Object;return y=null,b},m=function(){try{e=new ActiveXObject("htmlfile")}catch{}var y,b,x;m=typeof document<"u"?document.domain&&e?h(e):(b=c("iframe"),x="java"+v+":",b.style.display="none",s.appendChild(b),b.src=String(x),(y=b.contentWindow.document).open(),y.write(g("document.F=Object")),y.close(),y.F):h(e);for(var w=o.length;w--;)delete m[f][o[w]];return m()};a[d]=!0,i.exports=Object.create||function(y,b){var x;return y!==null?(p[f]=n(y),x=new p,p[f]=null,x[d]=y):x=m(),b===void 0?x:r.f(x,b)}},2478:function(i,u,t){var e=t(9504),n=t(8981),r=Math.floor,o=e("".charAt),a=e("".replace),s=e("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;i.exports=function(f,v,d,p,g,h){var m=d+f.length,y=p.length,b=l;return g!==void 0&&(g=n(g),b=c),a(h,b,function(x,w){var k;switch(o(w,0)){case"$":return"$";case"&":return f;case"`":return s(v,0,d);case"'":return s(v,m);case"<":k=g[s(w,1,-1)];break;default:var O=+w;if(O===0)return x;if(O>y){var E=r(O/10);return E===0?x:E<=y?p[E-1]===void 0?o(w,1):p[E-1]+o(w,1):x}k=p[O-1]}return k===void 0?"":k})}},2529:function(i){i.exports=function(u,t){return{value:u,done:t}}},2551:function(i,u,t){var e=t(6395),n=t(4576),r=t(9039),o=t(3607);i.exports=e||!r(function(){if(!(o&&o<535)){var a=Math.random();__defineSetter__.call(null,a,function(){}),delete n[a]}})},2637:function(i,u,t){t(6518)({target:"Number",stat:!0},{isInteger:t(2087)})},2675:function(i,u,t){t(6761),t(1510),t(7812),t(3110),t(9773)},2712:function(i,u,t){var e=t(6518),n=t(926).left,r=t(4598),o=t(9519);e({target:"Array",proto:!0,forced:!t(6193)&&o>79&&o<83||!r("reduce")},{reduce:function(a){var s=arguments.length;return n(this,a,s,s>1?arguments[1]:void 0)}})},2762:function(i,u,t){var e=t(6518),n=t(3802).trim;e({target:"String",proto:!0,forced:t(706)("trim")},{trim:function(){return n(this)}})},2777:function(i,u,t){var e=t(9565),n=t(34),r=t(757),o=t(5966),a=t(4270),s=t(8227),c=TypeError,l=s("toPrimitive");i.exports=function(f,v){if(!n(f)||r(f))return f;var d,p=o(f,l);if(p){if(v===void 0&&(v="default"),d=e(p,f,v),!n(d)||r(d))return d;throw new c("Can't convert object to primitive value")}return v===void 0&&(v="number"),a(f,v)}},2787:function(i,u,t){var e=t(9297),n=t(4901),r=t(8981),o=t(6119),a=t(2211),s=o("IE_PROTO"),c=Object,l=c.prototype;i.exports=a?c.getPrototypeOf:function(f){var v=r(f);if(e(v,s))return v[s];var d=v.constructor;return n(d)&&v instanceof d?d.prototype:v instanceof c?l:null}},2796:function(i,u,t){var e=t(9039),n=t(4901),r=/#|\.prototype\./,o=function(f,v){var d=s[a(f)];return d===l||d!==c&&(n(v)?e(v):!!v)},a=o.normalize=function(f){return String(f).replace(r,".").toLowerCase()},s=o.data={},c=o.NATIVE="N",l=o.POLYFILL="P";i.exports=o},2839:function(i,u,t){var e=t(4576).navigator,n=e&&e.userAgent;i.exports=n?String(n):""},2892:function(i,u,t){var e=t(6518),n=t(6395),r=t(3724),o=t(4576),a=t(9167),s=t(9504),c=t(2796),l=t(9297),f=t(3167),v=t(1625),d=t(757),p=t(2777),g=t(9039),h=t(8480).f,m=t(7347).f,y=t(4913).f,b=t(1240),x=t(3802).trim,w="Number",k=o[w],O=a[w],E=k.prototype,P=o.TypeError,I=s("".slice),S=s("".charCodeAt),D=function(H){var M,_,B,L,K,U,T,N,j=p(H,"number");if(d(j))throw new P("Cannot convert a Symbol value to a number");if(typeof j=="string"&&j.length>2){if(j=x(j),(M=S(j,0))===43||M===45){if((_=S(j,2))===88||_===120)return NaN}else if(M===48){switch(S(j,1)){case 66:case 98:B=2,L=49;break;case 79:case 111:B=8,L=55;break;default:return+j}for(U=(K=I(j,2)).length,T=0;T<U;T++)if((N=S(K,T))<48||N>L)return NaN;return parseInt(K,B)}}return+j},C=c(w,!k(" 0o1")||!k("0b1")||k("+0x1")),A=function(H){var M,_=arguments.length<1?0:k(function(B){var L=p(B,"number");return typeof L=="bigint"?L:D(L)}(H));return v(E,M=this)&&g(function(){b(M)})?f(Object(_),this,A):_};A.prototype=E,C&&!n&&(E.constructor=A),e({global:!0,constructor:!0,wrap:!0,forced:C},{Number:A});var $=function(H,M){for(var _,B=r?h(M):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),L=0;B.length>L;L++)l(M,_=B[L])&&!l(H,_)&&y(H,_,m(M,_))};n&&O&&$(a[w],O),(C||n)&&$(a[w],k)},2953:function(i,u,t){var e=t(4576),n=t(7400),r=t(9296),o=t(3792),a=t(6699),s=t(687),c=t(8227)("iterator"),l=o.values,f=function(d,p){if(d){if(d[c]!==l)try{a(d,c,l)}catch{d[c]=l}if(s(d,p,!0),n[p]){for(var g in o)if(d[g]!==o[g])try{a(d,g,o[g])}catch{d[g]=o[g]}}}};for(var v in n)f(e[v]&&e[v].prototype,v);f(r,"DOMTokenList")},2967:function(i,u,t){var e=t(6706),n=t(34),r=t(7750),o=t(3506);i.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var a,s=!1,c={};try{(a=e(Object.prototype,"__proto__","set"))(c,[]),s=c instanceof Array}catch{}return function(l,f){return r(l),o(f),n(l)&&(s?a(l,f):l.__proto__=f),l}}():void 0)},3110:function(i,u,t){var e=t(6518),n=t(7751),r=t(8745),o=t(9565),a=t(9504),s=t(9039),c=t(4901),l=t(757),f=t(7680),v=t(6933),d=t(4495),p=String,g=n("JSON","stringify"),h=a(/./.exec),m=a("".charAt),y=a("".charCodeAt),b=a("".replace),x=a(1.1.toString),w=/[\uD800-\uDFFF]/g,k=/^[\uD800-\uDBFF]$/,O=/^[\uDC00-\uDFFF]$/,E=!d||s(function(){var D=n("Symbol")("stringify detection");return g([D])!=="[null]"||g({a:D})!=="{}"||g(Object(D))!=="{}"}),P=s(function(){return g("\uDF06\uD834")!=='"\\udf06\\ud834"'||g("\uDEAD")!=='"\\udead"'}),I=function(D,C){var A=f(arguments),$=v(C);if(c($)||D!==void 0&&!l(D))return A[1]=function(H,M){if(c($)&&(M=o($,this,p(H),M)),!l(M))return M},r(g,null,A)},S=function(D,C,A){var $=m(A,C-1),H=m(A,C+1);return h(k,D)&&!h(O,H)||h(O,D)&&!h(k,$)?"\\u"+x(y(D,0),16):D};g&&e({target:"JSON",stat:!0,arity:3,forced:E||P},{stringify:function(D,C,A){var $=f(arguments),H=r(E?I:g,null,$);return P&&typeof H=="string"?b(H,w,S):H}})},3167:function(i,u,t){var e=t(4901),n=t(34),r=t(2967);i.exports=function(o,a,s){var c,l;return r&&e(c=a.constructor)&&c!==s&&n(l=c.prototype)&&l!==s.prototype&&r(o,l),o}},3179:function(i,u,t){var e=t(2140),n=t(6955);i.exports=e?{}.toString:function(){return"[object "+n(this)+"]"}},3392:function(i,u,t){var e=t(9504),n=0,r=Math.random(),o=e(1.1.toString);i.exports=function(a){return"Symbol("+(a===void 0?"":a)+")_"+o(++n+r,36)}},3418:function(i,u,t){var e=t(6518),n=t(7916);e({target:"Array",stat:!0,forced:!t(4428)(function(r){Array.from(r)})},{from:n})},3500:function(i,u,t){var e=t(4576),n=t(7400),r=t(9296),o=t(235),a=t(6699),s=function(l){if(l&&l.forEach!==o)try{a(l,"forEach",o)}catch{l.forEach=o}};for(var c in n)n[c]&&s(e[c]&&e[c].prototype);s(r)},3506:function(i,u,t){var e=t(3925),n=String,r=TypeError;i.exports=function(o){if(e(o))return o;throw new r("Can't set "+n(o)+" as a prototype")}},3517:function(i,u,t){var e=t(9504),n=t(9039),r=t(4901),o=t(6955),a=t(7751),s=t(3706),c=function(){},l=a("Reflect","construct"),f=/^\s*(?:class|function)\b/,v=e(f.exec),d=!f.test(c),p=function(h){if(!r(h))return!1;try{return l(c,[],h),!0}catch{return!1}},g=function(h){if(!r(h))return!1;switch(o(h)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!v(f,s(h))}catch{return!0}};g.sham=!0,i.exports=!l||n(function(){var h;return p(p.call)||!p(Object)||!p(function(){h=!0})||h})?g:p},3607:function(i,u,t){var e=t(2839).match(/AppleWebKit\/(\d+)\./);i.exports=!!e&&+e[1]},3635:function(i,u,t){var e=t(9039),n=t(4576).RegExp;i.exports=e(function(){var r=n(".","s");return!(r.dotAll&&r.test(`
`)&&r.flags==="s")})},3640:function(i,u,t){var e=t(8551),n=t(4270),r=TypeError;i.exports=function(o){if(e(this),o==="string"||o==="default")o="string";else if(o!=="number")throw new r("Incorrect hint");return n(this,o)}},3706:function(i,u,t){var e=t(9504),n=t(4901),r=t(7629),o=e(Function.toString);n(r.inspectSource)||(r.inspectSource=function(a){return o(a)}),i.exports=r.inspectSource},3709:function(i,u,t){var e=t(2839).match(/firefox\/(\d+)/i);i.exports=!!e&&+e[1]},3717:function(i,u){u.f=Object.getOwnPropertySymbols},3724:function(i,u,t){var e=t(9039);i.exports=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})},3763:function(i,u,t){var e=t(2839);i.exports=/MSIE|Trident/.test(e)},3792:function(i,u,t){var e=t(5397),n=t(6469),r=t(6269),o=t(1181),a=t(4913).f,s=t(1088),c=t(2529),l=t(6395),f=t(3724),v="Array Iterator",d=o.set,p=o.getterFor(v);i.exports=s(Array,"Array",function(h,m){d(this,{type:v,target:e(h),index:0,kind:m})},function(){var h=p(this),m=h.target,y=h.index++;if(!m||y>=m.length)return h.target=null,c(void 0,!0);switch(h.kind){case"keys":return c(y,!1);case"values":return c(m[y],!1)}return c([y,m[y]],!1)},"values");var g=r.Arguments=r.Array;if(n("keys"),n("values"),n("entries"),!l&&f&&g.name!=="values")try{a(g,"name",{value:"values"})}catch{}},3802:function(i,u,t){var e=t(9504),n=t(7750),r=t(655),o=t(7452),a=e("".replace),s=RegExp("^["+o+"]+"),c=RegExp("(^|[^"+o+"])["+o+"]+$"),l=function(f){return function(v){var d=r(n(v));return 1&f&&(d=a(d,s,"")),2&f&&(d=a(d,c,"$1")),d}};i.exports={start:l(1),end:l(2),trim:l(3)}},3851:function(i,u,t){var e=t(6518),n=t(9039),r=t(5397),o=t(7347).f,a=t(3724);e({target:"Object",stat:!0,forced:!a||n(function(){o(1)}),sham:!a},{getOwnPropertyDescriptor:function(s,c){return o(r(s),c)}})},3925:function(i,u,t){var e=t(34);i.exports=function(n){return e(n)||n===null}},3994:function(i,u,t){var e=t(7657).IteratorPrototype,n=t(2360),r=t(6980),o=t(687),a=t(6269),s=function(){return this};i.exports=function(c,l,f,v){var d=l+" Iterator";return c.prototype=n(e,{next:r(+!v,f)}),o(c,d,!1,!0),a[d]=s,c}},4055:function(i,u,t){var e=t(4576),n=t(34),r=e.document,o=n(r)&&n(r.createElement);i.exports=function(a){return o?r.createElement(a):{}}},4117:function(i){i.exports=function(u){return u==null}},4209:function(i,u,t){var e=t(8227),n=t(6269),r=e("iterator"),o=Array.prototype;i.exports=function(a){return a!==void 0&&(n.Array===a||o[r]===a)}},4213:function(i,u,t){var e=t(3724),n=t(9504),r=t(9565),o=t(9039),a=t(1072),s=t(3717),c=t(8773),l=t(8981),f=t(7055),v=Object.assign,d=Object.defineProperty,p=n([].concat);i.exports=!v||o(function(){if(e&&v({b:1},v(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var g={},h={},m=Symbol("assign detection"),y="abcdefghijklmnopqrst";return g[m]=7,y.split("").forEach(function(b){h[b]=b}),v({},g)[m]!==7||a(v({},h)).join("")!==y})?function(g,h){for(var m=l(g),y=arguments.length,b=1,x=s.f,w=c.f;y>b;)for(var k,O=f(arguments[b++]),E=x?p(a(O),x(O)):a(O),P=E.length,I=0;P>I;)k=E[I++],e&&!r(w,O,k)||(m[k]=O[k]);return m}:v},4215:function(i,u,t){var e=t(4576),n=t(2839),r=t(2195),o=function(a){return n.slice(0,a.length)===a};i.exports=o("Bun/")?"BUN":o("Cloudflare-Workers")?"CLOUDFLARE":o("Deno/")?"DENO":o("Node.js/")?"NODE":e.Bun&&typeof Bun.version=="string"?"BUN":e.Deno&&typeof Deno.version=="object"?"DENO":r(e.process)==="process"?"NODE":e.window&&e.document?"BROWSER":"REST"},4270:function(i,u,t){var e=t(9565),n=t(4901),r=t(34),o=TypeError;i.exports=function(a,s){var c,l;if(s==="string"&&n(c=a.toString)&&!r(l=e(c,a))||n(c=a.valueOf)&&!r(l=e(c,a))||s!=="string"&&n(c=a.toString)&&!r(l=e(c,a)))return l;throw new o("Can't convert object to primitive value")}},4376:function(i,u,t){var e=t(2195);i.exports=Array.isArray||function(n){return e(n)==="Array"}},4423:function(i,u,t){var e=t(6518),n=t(9617).includes,r=t(9039),o=t(6469);e({target:"Array",proto:!0,forced:r(function(){return!Array(1).includes()})},{includes:function(a){return n(this,a,arguments.length>1?arguments[1]:void 0)}}),o("includes")},4428:function(i,u,t){var e=t(8227)("iterator"),n=!1;try{var r=0,o={next:function(){return{done:!!r++}},return:function(){n=!0}};o[e]=function(){return this},Array.from(o,function(){throw 2})}catch{}i.exports=function(a,s){try{if(!s&&!n)return!1}catch{return!1}var c=!1;try{var l={};l[e]=function(){return{next:function(){return{done:c=!0}}}},a(l)}catch{}return c}},4488:function(i,u,t){var e=t(7680),n=Math.floor,r=function(o,a){var s=o.length;if(s<8)for(var c,l,f=1;f<s;){for(l=f,c=o[f];l&&a(o[l-1],c)>0;)o[l]=o[--l];l!==f++&&(o[l]=c)}else for(var v=n(s/2),d=r(e(o,0,v),a),p=r(e(o,v),a),g=d.length,h=p.length,m=0,y=0;m<g||y<h;)o[m+y]=m<g&&y<h?a(d[m],p[y])<=0?d[m++]:p[y++]:m<g?d[m++]:p[y++];return o};i.exports=r},4495:function(i,u,t){var e=t(9519),n=t(9039),r=t(4576).String;i.exports=!!Object.getOwnPropertySymbols&&!n(function(){var o=Symbol("symbol detection");return!r(o)||!(Object(o)instanceof Symbol)||!Symbol.sham&&e&&e<41})},4527:function(i,u,t){var e=t(3724),n=t(4376),r=TypeError,o=Object.getOwnPropertyDescriptor,a=e&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(s){return s instanceof TypeError}}();i.exports=a?function(s,c){if(n(s)&&!o(s,"length").writable)throw new r("Cannot set read only .length");return s.length=c}:function(s,c){return s.length=c}},4554:function(i,u,t){var e=t(6518),n=t(8981),r=t(5610),o=t(1291),a=t(6198),s=t(4527),c=t(6837),l=t(1469),f=t(4659),v=t(4606),d=t(597)("splice"),p=Math.max,g=Math.min;e({target:"Array",proto:!0,forced:!d},{splice:function(h,m){var y,b,x,w,k,O,E=n(this),P=a(E),I=r(h,P),S=arguments.length;for(S===0?y=b=0:S===1?(y=0,b=P-I):(y=S-2,b=g(p(o(m),0),P-I)),c(P+y-b),x=l(E,b),w=0;w<b;w++)(k=I+w)in E&&f(x,w,E[k]);if(x.length=b,y<b){for(w=I;w<P-b;w++)O=w+y,(k=w+b)in E?E[O]=E[k]:v(E,O);for(w=P;w>P-b+y;w--)v(E,w-1)}else if(y>b)for(w=P-b;w>I;w--)O=w+y-1,(k=w+b-1)in E?E[O]=E[k]:v(E,O);for(w=0;w<y;w++)E[w+I]=arguments[w+2];return s(E,P-b+y),x}})},4576:function(i,u,t){var e=function(n){return n&&n.Math===Math&&n};i.exports=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof t.g=="object"&&t.g)||e(typeof this=="object"&&this)||function(){return this}()||Function("return this")()},4598:function(i,u,t){var e=t(9039);i.exports=function(n,r){var o=[][n];return!!o&&e(function(){o.call(null,r||function(){return 1},1)})}},4606:function(i,u,t){var e=t(6823),n=TypeError;i.exports=function(r,o){if(!delete r[o])throw new n("Cannot delete property "+e(o)+" of "+e(r))}},4659:function(i,u,t){var e=t(3724),n=t(4913),r=t(6980);i.exports=function(o,a,s){e?n.f(o,a,r(0,s)):o[a]=s}},4782:function(i,u,t){var e=t(6518),n=t(4376),r=t(3517),o=t(34),a=t(5610),s=t(6198),c=t(5397),l=t(4659),f=t(8227),v=t(597),d=t(7680),p=v("slice"),g=f("species"),h=Array,m=Math.max;e({target:"Array",proto:!0,forced:!p},{slice:function(y,b){var x,w,k,O=c(this),E=s(O),P=a(y,E),I=a(b===void 0?E:b,E);if(n(O)&&(x=O.constructor,(r(x)&&(x===h||n(x.prototype))||o(x)&&(x=x[g])===null)&&(x=void 0),x===h||x===void 0))return d(O,P,I);for(w=new(x===void 0?h:x)(m(I-P,0)),k=0;P<I;P++,k++)P in O&&l(w,k,O[P]);return w.length=k,w}})},4864:function(i,u,t){var e=t(3724),n=t(4576),r=t(9504),o=t(2796),a=t(3167),s=t(6699),c=t(2360),l=t(8480).f,f=t(1625),v=t(788),d=t(655),p=t(1034),g=t(8429),h=t(1056),m=t(6840),y=t(9039),b=t(9297),x=t(1181).enforce,w=t(7633),k=t(8227),O=t(3635),E=t(8814),P=k("match"),I=n.RegExp,S=I.prototype,D=n.SyntaxError,C=r(S.exec),A=r("".charAt),$=r("".replace),H=r("".indexOf),M=r("".slice),_=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,B=/a/g,L=/a/g,K=new I(B)!==B,U=g.MISSED_STICKY,T=g.UNSUPPORTED_Y,N=e&&(!K||U||O||E||y(function(){return L[P]=!1,I(B)!==B||I(L)===L||String(I(B,"i"))!=="/a/i"}));if(o("RegExp",N)){for(var j=function(W,J){var et,at,lt,ft,ot,ut,it=f(S,this),dt=v(W),yt=J===void 0,mt=[],nt=W;if(!it&&dt&&yt&&W.constructor===j)return W;if((dt||f(S,W))&&(W=W.source,yt&&(J=p(nt))),W=W===void 0?"":d(W),J=J===void 0?"":d(J),nt=W,O&&"dotAll"in B&&(at=!!J&&H(J,"s")>-1)&&(J=$(J,/s/g,"")),et=J,U&&"sticky"in B&&(lt=!!J&&H(J,"y")>-1)&&T&&(J=$(J,/y/g,"")),E&&(ft=function(rt){for(var q,bt=rt.length,tt=0,st="",ct=[],wt=c(null),xt=!1,ht=!1,It=0,pt="";tt<=bt;tt++){if((q=A(rt,tt))==="\\")q+=A(rt,++tt);else if(q==="]")xt=!1;else if(!xt)switch(!0){case q==="[":xt=!0;break;case q==="(":if(st+=q,M(rt,tt+1,tt+3)==="?:")continue;C(_,M(rt,tt+1))&&(tt+=2,ht=!0),It++;continue;case(q===">"&&ht):if(pt===""||b(wt,pt))throw new D("Invalid capture group name");wt[pt]=!0,ct[ct.length]=[pt,It],ht=!1,pt="";continue}ht?pt+=q:st+=q}return[st,ct]}(W),W=ft[0],mt=ft[1]),ot=a(I(W,J),it?this:S,j),(at||lt||mt.length)&&(ut=x(ot),at&&(ut.dotAll=!0,ut.raw=j(function(rt){for(var q,bt=rt.length,tt=0,st="",ct=!1;tt<=bt;tt++)(q=A(rt,tt))!=="\\"?ct||q!=="."?(q==="["?ct=!0:q==="]"&&(ct=!1),st+=q):st+="[\\s\\S]":st+=q+A(rt,++tt);return st}(W),et)),lt&&(ut.sticky=!0),mt.length&&(ut.groups=mt)),W!==nt)try{s(ot,"source",nt===""?"(?:)":nt)}catch{}return ot},V=l(I),Z=0;V.length>Z;)h(j,I,V[Z++]);S.constructor=j,j.prototype=S,m(n,"RegExp",j,{constructor:!0})}w("RegExp")},4901:function(i){var u=typeof document=="object"&&document.all;i.exports=u===void 0&&u!==void 0?function(t){return typeof t=="function"||t===u}:function(t){return typeof t=="function"}},4913:function(i,u,t){var e=t(3724),n=t(5917),r=t(8686),o=t(8551),a=t(6969),s=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",v="configurable",d="writable";u.f=e?r?function(p,g,h){if(o(p),g=a(g),o(h),typeof p=="function"&&g==="prototype"&&"value"in h&&d in h&&!h[d]){var m=l(p,g);m&&m[d]&&(p[g]=h.value,h={configurable:v in h?h[v]:m[v],enumerable:f in h?h[f]:m[f],writable:!1})}return c(p,g,h)}:c:function(p,g,h){if(o(p),g=a(g),o(h),n)try{return c(p,g,h)}catch{}if("get"in h||"set"in h)throw new s("Accessors not supported");return"value"in h&&(p[g]=h.value),p}},5031:function(i,u,t){var e=t(7751),n=t(9504),r=t(8480),o=t(3717),a=t(8551),s=n([].concat);i.exports=e("Reflect","ownKeys")||function(c){var l=r.f(a(c)),f=o.f;return f?s(l,f(c)):l}},5213:function(i,u,t){var e=t(4576),n=t(9039),r=e.RegExp,o=!n(function(){var a=!0;try{r(".","d")}catch{a=!1}var s={},c="",l=a?"dgimsy":"gimsy",f=function(p,g){Object.defineProperty(s,p,{get:function(){return c+=g,!0}})},v={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var d in a&&(v.hasIndices="d"),v)f(d,v[d]);return Object.getOwnPropertyDescriptor(r.prototype,"flags").get.call(s)!==l||c!==l});i.exports={correct:o}},5276:function(i,u,t){var e=t(6518),n=t(7476),r=t(9617).indexOf,o=t(4598),a=n([].indexOf),s=!!a&&1/a([1],1,-0)<0;e({target:"Array",proto:!0,forced:s||!o("indexOf")},{indexOf:function(c){var l=arguments.length>1?arguments[1]:void 0;return s?a(this,c,l)||0:r(this,c,l)}})},5397:function(i,u,t){var e=t(7055),n=t(7750);i.exports=function(r){return e(n(r))}},5440:function(i,u,t){var e=t(8745),n=t(9565),r=t(9504),o=t(9228),a=t(9039),s=t(8551),c=t(4901),l=t(34),f=t(1291),v=t(8014),d=t(655),p=t(7750),g=t(7829),h=t(5966),m=t(2478),y=t(1034),b=t(6682),x=t(8227)("replace"),w=Math.max,k=Math.min,O=r([].concat),E=r([].push),P=r("".indexOf),I=r("".slice),S="a".replace(/./,"$0")==="$0",D=!!/./[x]&&/./[x]("a","$0")==="";o("replace",function(C,A,$){var H=D?"$":"$0";return[function(M,_){var B=p(this),L=l(M)?h(M,x):void 0;return L?n(L,M,B,_):n(A,d(B),M,_)},function(M,_){var B=s(this),L=d(M);if(typeof _=="string"&&P(_,H)===-1&&P(_,"$<")===-1){var K=$(A,B,L,_);if(K.done)return K.value}var U=c(_);U||(_=d(_));var T,N=d(y(B)),j=P(N,"g")!==-1;j&&(T=P(N,"u")!==-1,B.lastIndex=0);for(var V,Z=[];(V=b(B,L))!==null&&(E(Z,V),j);)d(V[0])===""&&(B.lastIndex=g(L,v(B.lastIndex),T));for(var W,J="",et=0,at=0;at<Z.length;at++){for(var lt,ft=d((V=Z[at])[0]),ot=w(k(f(V.index),L.length),0),ut=[],it=1;it<V.length;it++)E(ut,(W=V[it])===void 0?W:String(W));var dt=V.groups;if(U){var yt=O([ft],ut,ot,L);dt!==void 0&&E(yt,dt),lt=d(e(_,void 0,yt))}else lt=m(ft,L,ot,ut,dt,_);ot>=et&&(J+=I(L,et,ot)+lt,et=ot+ft.length)}return J+I(L,et)}]},!!a(function(){var C=/./;return C.exec=function(){var A=[];return A.groups={a:"7"},A},"".replace(C,"$<a>")!=="7"})||!S||D)},5548:function(i,u,t){var e=t(3517),n=t(6823),r=TypeError;i.exports=function(o){if(e(o))return o;throw new r(n(o)+" is not a constructor")}},5610:function(i,u,t){var e=t(1291),n=Math.max,r=Math.min;i.exports=function(o,a){var s=e(o);return s<0?n(s+a,0):r(s,a)}},5700:function(i,u,t){var e=t(511),n=t(8242);e("toPrimitive"),n()},5745:function(i,u,t){var e=t(7629);i.exports=function(n,r){return e[n]||(e[n]=r||{})}},5749:function(i,u,t){var e=t(788),n=TypeError;i.exports=function(r){if(e(r))throw new n("The method doesn't accept regular expressions");return r}},5917:function(i,u,t){var e=t(3724),n=t(9039),r=t(4055);i.exports=!e&&!n(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!==7})},5966:function(i,u,t){var e=t(9306),n=t(4117);i.exports=function(r,o){var a=r[o];return n(a)?void 0:e(a)}},6080:function(i,u,t){var e=t(7476),n=t(9306),r=t(616),o=e(e.bind);i.exports=function(a,s){return n(a),s===void 0?a:r?o(a,s):function(){return a.apply(s,arguments)}}},6099:function(i,u,t){var e=t(2140),n=t(6840),r=t(3179);e||n(Object.prototype,"toString",r,{unsafe:!0})},6119:function(i,u,t){var e=t(5745),n=t(3392),r=e("keys");i.exports=function(o){return r[o]||(r[o]=n(o))}},6193:function(i,u,t){var e=t(4215);i.exports=e==="NODE"},6198:function(i,u,t){var e=t(8014);i.exports=function(n){return e(n.length)}},6269:function(i){i.exports={}},6319:function(i,u,t){var e=t(8551),n=t(9539);i.exports=function(r,o,a,s){try{return s?o(e(a)[0],a[1]):o(a)}catch(c){n(r,"throw",c)}}},6395:function(i){i.exports=!1},6469:function(i,u,t){var e=t(8227),n=t(2360),r=t(4913).f,o=e("unscopables"),a=Array.prototype;a[o]===void 0&&r(a,o,{configurable:!0,value:n(null)}),i.exports=function(s){a[o][s]=!0}},6518:function(i,u,t){var e=t(4576),n=t(7347).f,r=t(6699),o=t(6840),a=t(9433),s=t(7740),c=t(2796);i.exports=function(l,f){var v,d,p,g,h,m=l.target,y=l.global,b=l.stat;if(v=y?e:b?e[m]||a(m,{}):e[m]&&e[m].prototype)for(d in f){if(g=f[d],p=l.dontCallGetSet?(h=n(v,d))&&h.value:v[d],!c(y?d:m+(b?".":"#")+d,l.forced)&&p!==void 0){if(typeof g==typeof p)continue;s(g,p)}(l.sham||p&&p.sham)&&r(g,"sham",!0),o(v,d,g,l)}}},6682:function(i,u,t){var e=t(9565),n=t(8551),r=t(4901),o=t(2195),a=t(7323),s=TypeError;i.exports=function(c,l){var f=c.exec;if(r(f)){var v=e(f,c,l);return v!==null&&n(v),v}if(o(c)==="RegExp")return e(a,c,l);throw new s("RegExp#exec called on incompatible receiver")}},6699:function(i,u,t){var e=t(3724),n=t(4913),r=t(6980);i.exports=e?function(o,a,s){return n.f(o,a,r(1,s))}:function(o,a,s){return o[a]=s,o}},6706:function(i,u,t){var e=t(9504),n=t(9306);i.exports=function(r,o,a){try{return e(n(Object.getOwnPropertyDescriptor(r,o)[a]))}catch{}}},6761:function(i,u,t){var e=t(6518),n=t(4576),r=t(9565),o=t(9504),a=t(6395),s=t(3724),c=t(4495),l=t(9039),f=t(9297),v=t(1625),d=t(8551),p=t(5397),g=t(6969),h=t(655),m=t(6980),y=t(2360),b=t(1072),x=t(8480),w=t(298),k=t(3717),O=t(7347),E=t(4913),P=t(6801),I=t(8773),S=t(6840),D=t(2106),C=t(5745),A=t(6119),$=t(421),H=t(3392),M=t(8227),_=t(1951),B=t(511),L=t(8242),K=t(687),U=t(1181),T=t(9213).forEach,N=A("hidden"),j="Symbol",V="prototype",Z=U.set,W=U.getterFor(j),J=Object[V],et=n.Symbol,at=et&&et[V],lt=n.RangeError,ft=n.TypeError,ot=n.QObject,ut=O.f,it=E.f,dt=w.f,yt=I.f,mt=o([].push),nt=C("symbols"),rt=C("op-symbols"),q=C("wks"),bt=!ot||!ot[V]||!ot[V].findChild,tt=function(F,z,G){var X=ut(J,z);X&&delete J[z],it(F,z,G),X&&F!==J&&it(J,z,X)},st=s&&l(function(){return y(it({},"a",{get:function(){return it(this,"a",{value:7}).a}})).a!==7})?tt:it,ct=function(F,z){var G=nt[F]=y(at);return Z(G,{type:j,tag:F,description:z}),s||(G.description=z),G},wt=function(F,z,G){F===J&&wt(rt,z,G),d(F);var X=g(z);return d(G),f(nt,X)?(G.enumerable?(f(F,N)&&F[N][X]&&(F[N][X]=!1),G=y(G,{enumerable:m(0,!1)})):(f(F,N)||it(F,N,m(1,y(null))),F[N][X]=!0),st(F,X,G)):it(F,X,G)},xt=function(F,z){d(F);var G=p(z),X=b(G).concat(Wt(G));return T(X,function(Q){s&&!r(ht,G,Q)||wt(F,Q,G[Q])}),F},ht=function(F){var z=g(F),G=r(yt,this,z);return!(this===J&&f(nt,z)&&!f(rt,z))&&(!(G||!f(this,z)||!f(nt,z)||f(this,N)&&this[N][z])||G)},It=function(F,z){var G=p(F),X=g(z);if(G!==J||!f(nt,X)||f(rt,X)){var Q=ut(G,X);return!Q||!f(nt,X)||f(G,N)&&G[N][X]||(Q.enumerable=!0),Q}},pt=function(F){var z=dt(p(F)),G=[];return T(z,function(X){f(nt,X)||f($,X)||mt(G,X)}),G},Wt=function(F){var z=F===J,G=dt(z?rt:p(F)),X=[];return T(G,function(Q){!f(nt,Q)||z&&!f(J,Q)||mt(X,nt[Q])}),X};c||(et=function(){if(v(at,this))throw new ft("Symbol is not a constructor");var F=arguments.length&&arguments[0]!==void 0?h(arguments[0]):void 0,z=H(F),G=function(X){var Q=this===void 0?n:this;Q===J&&r(G,rt,X),f(Q,N)&&f(Q[N],z)&&(Q[N][z]=!1);var Zt=m(1,X);try{st(Q,z,Zt)}catch(qt){if(!(qt instanceof lt))throw qt;tt(Q,z,Zt)}};return s&&bt&&st(J,z,{configurable:!0,set:G}),ct(z,F)},S(at=et[V],"toString",function(){return W(this).tag}),S(et,"withoutSetter",function(F){return ct(H(F),F)}),I.f=ht,E.f=wt,P.f=xt,O.f=It,x.f=w.f=pt,k.f=Wt,_.f=function(F){return ct(M(F),F)},s&&(D(at,"description",{configurable:!0,get:function(){return W(this).description}}),a||S(J,"propertyIsEnumerable",ht,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:et}),T(b(q),function(F){B(F)}),e({target:j,stat:!0,forced:!c},{useSetter:function(){bt=!0},useSimple:function(){bt=!1}}),e({target:"Object",stat:!0,forced:!c,sham:!s},{create:function(F,z){return z===void 0?y(F):xt(y(F),z)},defineProperty:wt,defineProperties:xt,getOwnPropertyDescriptor:It}),e({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:pt}),L(),K(et,j),$[N]=!0},6801:function(i,u,t){var e=t(3724),n=t(8686),r=t(4913),o=t(8551),a=t(5397),s=t(1072);u.f=e&&!n?Object.defineProperties:function(c,l){o(c);for(var f,v=a(l),d=s(l),p=d.length,g=0;p>g;)r.f(c,f=d[g++],v[f]);return c}},6823:function(i){var u=String;i.exports=function(t){try{return u(t)}catch{return"Object"}}},6837:function(i){var u=TypeError;i.exports=function(t){if(t>9007199254740991)throw u("Maximum allowed index exceeded");return t}},6840:function(i,u,t){var e=t(4901),n=t(4913),r=t(283),o=t(9433);i.exports=function(a,s,c,l){l||(l={});var f=l.enumerable,v=l.name!==void 0?l.name:s;if(e(c)&&r(c,v,l),l.global)f?a[s]=c:o(s,c);else{try{l.unsafe?a[s]&&(f=!0):delete a[s]}catch{}f?a[s]=c:n.f(a,s,{value:c,enumerable:!1,configurable:!l.nonConfigurable,writable:!l.nonWritable})}return a}},6910:function(i,u,t){var e=t(6518),n=t(9504),r=t(9306),o=t(8981),a=t(6198),s=t(4606),c=t(655),l=t(9039),f=t(4488),v=t(4598),d=t(3709),p=t(3763),g=t(9519),h=t(3607),m=[],y=n(m.sort),b=n(m.push),x=l(function(){m.sort(void 0)}),w=l(function(){m.sort(null)}),k=v("sort"),O=!l(function(){if(g)return g<70;if(!(d&&d>3)){if(p)return!0;if(h)return h<603;var E,P,I,S,D="";for(E=65;E<76;E++){switch(P=String.fromCharCode(E),E){case 66:case 69:case 70:case 72:I=3;break;case 68:case 71:I=4;break;default:I=2}for(S=0;S<47;S++)m.push({k:P+S,v:I})}for(m.sort(function(C,A){return A.v-C.v}),S=0;S<m.length;S++)P=m[S].k.charAt(0),D.charAt(D.length-1)!==P&&(D+=P);return D!=="DGBEFHACIJK"}});e({target:"Array",proto:!0,forced:x||!w||!k||!O},{sort:function(E){E!==void 0&&r(E);var P=o(this);if(O)return E===void 0?y(P):y(P,E);var I,S,D=[],C=a(P);for(S=0;S<C;S++)S in P&&b(D,P[S]);for(f(D,function(A){return function($,H){return H===void 0?-1:$===void 0?1:A!==void 0?+A($,H)||0:c($)>c(H)?1:-1}}(E)),I=a(D),S=0;S<I;)P[S]=D[S++];for(;S<C;)s(P,S++);return P}})},6933:function(i,u,t){var e=t(9504),n=t(4376),r=t(4901),o=t(2195),a=t(655),s=e([].push);i.exports=function(c){if(r(c))return c;if(n(c)){for(var l=c.length,f=[],v=0;v<l;v++){var d=c[v];typeof d=="string"?s(f,d):typeof d!="number"&&o(d)!=="Number"&&o(d)!=="String"||s(f,a(d))}var p=f.length,g=!0;return function(h,m){if(g)return g=!1,m;if(n(this))return m;for(var y=0;y<p;y++)if(f[y]===h)return m}}}},6955:function(i,u,t){var e=t(2140),n=t(4901),r=t(2195),o=t(8227)("toStringTag"),a=Object,s=r(function(){return arguments}())==="Arguments";i.exports=e?r:function(c){var l,f,v;return c===void 0?"Undefined":c===null?"Null":typeof(f=function(d,p){try{return d[p]}catch{}}(l=a(c),o))=="string"?f:s?r(l):(v=r(l))==="Object"&&n(l.callee)?"Arguments":v}},6969:function(i,u,t){var e=t(2777),n=t(757);i.exports=function(r){var o=e(r,"string");return n(o)?o:o+""}},6980:function(i){i.exports=function(u,t){return{enumerable:!(1&u),configurable:!(2&u),writable:!(4&u),value:t}}},7040:function(i,u,t){var e=t(4495);i.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},7055:function(i,u,t){var e=t(9504),n=t(9039),r=t(2195),o=Object,a=e("".split);i.exports=n(function(){return!o("z").propertyIsEnumerable(0)})?function(s){return r(s)==="String"?a(s,""):o(s)}:o},7323:function(i,u,t){var e,n,r=t(9565),o=t(9504),a=t(655),s=t(7979),c=t(8429),l=t(5745),f=t(2360),v=t(1181).get,d=t(3635),p=t(8814),g=l("native-string-replace",String.prototype.replace),h=RegExp.prototype.exec,m=h,y=o("".charAt),b=o("".indexOf),x=o("".replace),w=o("".slice),k=(n=/b*/g,r(h,e=/a/,"a"),r(h,n,"a"),e.lastIndex!==0||n.lastIndex!==0),O=c.BROKEN_CARET,E=/()??/.exec("")[1]!==void 0;(k||E||O||d||p)&&(m=function(P){var I,S,D,C,A,$,H,M=this,_=v(M),B=a(P),L=_.raw;if(L)return L.lastIndex=M.lastIndex,I=r(m,L,B),M.lastIndex=L.lastIndex,I;var K=_.groups,U=O&&M.sticky,T=r(s,M),N=M.source,j=0,V=B;if(U&&(T=x(T,"y",""),b(T,"g")===-1&&(T+="g"),V=w(B,M.lastIndex),M.lastIndex>0&&(!M.multiline||M.multiline&&y(B,M.lastIndex-1)!==`
`)&&(N="(?: "+N+")",V=" "+V,j++),S=new RegExp("^(?:"+N+")",T)),E&&(S=new RegExp("^"+N+"$(?!\\s)",T)),k&&(D=M.lastIndex),C=r(h,U?S:M,V),U?C?(C.input=w(C.input,j),C[0]=w(C[0],j),C.index=M.lastIndex,M.lastIndex+=C[0].length):M.lastIndex=0:k&&C&&(M.lastIndex=M.global?C.index+C[0].length:D),E&&C&&C.length>1&&r(g,C[0],S,function(){for(A=1;A<arguments.length-2;A++)arguments[A]===void 0&&(C[A]=void 0)}),C&&K)for(C.groups=$=f(null),A=0;A<K.length;A++)$[(H=K[A])[0]]=C[H[1]];return C}),i.exports=m},7347:function(i,u,t){var e=t(3724),n=t(9565),r=t(8773),o=t(6980),a=t(5397),s=t(6969),c=t(9297),l=t(5917),f=Object.getOwnPropertyDescriptor;u.f=e?f:function(v,d){if(v=a(v),d=s(d),l)try{return f(v,d)}catch{}if(c(v,d))return o(!n(r.f,v,d),v[d])}},7400:function(i){i.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},7427:function(i,u,t){var e=t(6518),n=t(3724),r=t(2551),o=t(9306),a=t(8981),s=t(4913);n&&e({target:"Object",proto:!0,forced:r},{__defineGetter__:function(c,l){s.f(a(this),c,{get:o(l),enumerable:!0,configurable:!0})}})},7433:function(i,u,t){var e=t(4376),n=t(3517),r=t(34),o=t(8227)("species"),a=Array;i.exports=function(s){var c;return e(s)&&(c=s.constructor,(n(c)&&(c===a||e(c.prototype))||r(c)&&(c=c[o])===null)&&(c=void 0)),c===void 0?a:c}},7452:function(i){i.exports=`
\v\f\r    \u2028\u2029\uFEFF`},7476:function(i,u,t){var e=t(2195),n=t(9504);i.exports=function(r){if(e(r)==="Function")return n(r)}},7495:function(i,u,t){var e=t(6518),n=t(7323);e({target:"RegExp",proto:!0,forced:/./.exec!==n},{exec:n})},7629:function(i,u,t){var e=t(6395),n=t(4576),r=t(9433),o="__core-js_shared__",a=i.exports=n[o]||r(o,{});(a.versions||(a.versions=[])).push({version:"3.45.1",mode:e?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.45.1/LICENSE",source:"https://github.com/zloirock/core-js"})},7633:function(i,u,t){var e=t(7751),n=t(2106),r=t(8227),o=t(3724),a=r("species");i.exports=function(s){var c=e(s);o&&c&&!c[a]&&n(c,a,{configurable:!0,get:function(){return this}})}},7657:function(i,u,t){var e,n,r,o=t(9039),a=t(4901),s=t(34),c=t(2360),l=t(2787),f=t(6840),v=t(8227),d=t(6395),p=v("iterator"),g=!1;[].keys&&("next"in(r=[].keys())?(n=l(l(r)))!==Object.prototype&&(e=n):g=!0),!s(e)||o(function(){var h={};return e[p].call(h)!==h})?e={}:d&&(e=c(e)),a(e[p])||f(e,p,function(){return this}),i.exports={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:g}},7680:function(i,u,t){var e=t(9504);i.exports=e([].slice)},7740:function(i,u,t){var e=t(9297),n=t(5031),r=t(7347),o=t(4913);i.exports=function(a,s,c){for(var l=n(s),f=o.f,v=r.f,d=0;d<l.length;d++){var p=l[d];e(a,p)||c&&e(c,p)||f(a,p,v(s,p))}}},7750:function(i,u,t){var e=t(4117),n=TypeError;i.exports=function(r){if(e(r))throw new n("Can't call method on "+r);return r}},7751:function(i,u,t){var e=t(4576),n=t(4901);i.exports=function(r,o){return arguments.length<2?(a=e[r],n(a)?a:void 0):e[r]&&e[r][o];var a}},7764:function(i,u,t){var e=t(8183).charAt,n=t(655),r=t(1181),o=t(1088),a=t(2529),s="String Iterator",c=r.set,l=r.getterFor(s);o(String,"String",function(f){c(this,{type:s,string:n(f),index:0})},function(){var f,v=l(this),d=v.string,p=v.index;return p>=d.length?a(void 0,!0):(f=e(d,p),v.index+=f.length,a(f,!1))})},7812:function(i,u,t){var e=t(6518),n=t(9297),r=t(757),o=t(6823),a=t(5745),s=t(1296),c=a("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!s},{keyFor:function(l){if(!r(l))throw new TypeError(o(l)+" is not a symbol");if(n(c,l))return c[l]}})},7829:function(i,u,t){var e=t(8183).charAt;i.exports=function(n,r,o){return r+(o?e(n,r).length:1)}},7916:function(i,u,t){var e=t(6080),n=t(9565),r=t(8981),o=t(6319),a=t(4209),s=t(3517),c=t(6198),l=t(4659),f=t(81),v=t(851),d=Array;i.exports=function(p){var g=r(p),h=s(this),m=arguments.length,y=m>1?arguments[1]:void 0,b=y!==void 0;b&&(y=e(y,m>2?arguments[2]:void 0));var x,w,k,O,E,P,I=v(g),S=0;if(!I||this===d&&a(I))for(x=c(g),w=h?new this(x):d(x);x>S;S++)P=b?y(g[S],S):g[S],l(w,S,P);else for(w=h?new this:[],E=(O=f(g,I)).next;!(k=n(E,O)).done;S++)P=b?o(O,y,[k.value,S],!0):k.value,l(w,S,P);return w.length=S,w}},7979:function(i,u,t){var e=t(8551);i.exports=function(){var n=e(this),r="";return n.hasIndices&&(r+="d"),n.global&&(r+="g"),n.ignoreCase&&(r+="i"),n.multiline&&(r+="m"),n.dotAll&&(r+="s"),n.unicode&&(r+="u"),n.unicodeSets&&(r+="v"),n.sticky&&(r+="y"),r}},8014:function(i,u,t){var e=t(1291),n=Math.min;i.exports=function(r){var o=e(r);return o>0?n(o,9007199254740991):0}},8183:function(i,u,t){var e=t(9504),n=t(1291),r=t(655),o=t(7750),a=e("".charAt),s=e("".charCodeAt),c=e("".slice),l=function(f){return function(v,d){var p,g,h=r(o(v)),m=n(d),y=h.length;return m<0||m>=y?f?"":void 0:(p=s(h,m))<55296||p>56319||m+1===y||(g=s(h,m+1))<56320||g>57343?f?a(h,m):p:f?c(h,m,m+2):g-56320+(p-55296<<10)+65536}};i.exports={codeAt:l(!1),charAt:l(!0)}},8227:function(i,u,t){var e=t(4576),n=t(5745),r=t(9297),o=t(3392),a=t(4495),s=t(7040),c=e.Symbol,l=n("wks"),f=s?c.for||c:c&&c.withoutSetter||o;i.exports=function(v){return r(l,v)||(l[v]=a&&r(c,v)?c[v]:f("Symbol."+v)),l[v]}},8242:function(i,u,t){var e=t(9565),n=t(7751),r=t(8227),o=t(6840);i.exports=function(){var a=n("Symbol"),s=a&&a.prototype,c=s&&s.valueOf,l=r("toPrimitive");s&&!s[l]&&o(s,l,function(f){return e(c,this)},{arity:1})}},8344:function(i,u,t){t(8543)},8429:function(i,u,t){var e=t(9039),n=t(4576).RegExp,r=e(function(){var s=n("a","y");return s.lastIndex=2,s.exec("abcd")!==null}),o=r||e(function(){return!n("a","y").sticky}),a=r||e(function(){var s=n("^r","gy");return s.lastIndex=2,s.exec("str")!==null});i.exports={BROKEN_CARET:a,MISSED_STICKY:o,UNSUPPORTED_Y:r}},8480:function(i,u,t){var e=t(1828),n=t(8727).concat("length","prototype");u.f=Object.getOwnPropertyNames||function(r){return e(r,n)}},8543:function(i,u,t){var e=t(6518),n=t(9565),r=t(7476),o=t(3994),a=t(2529),s=t(7750),c=t(8014),l=t(655),f=t(8551),v=t(34),d=t(2195),p=t(788),g=t(1034),h=t(5966),m=t(6840),y=t(9039),b=t(8227),x=t(2293),w=t(7829),k=t(6682),O=t(1181),E=t(6395),P=b("matchAll"),I="RegExp String",S=I+" Iterator",D=O.set,C=O.getterFor(S),A=RegExp.prototype,$=TypeError,H=r("".indexOf),M=r("".matchAll),_=!!M&&!y(function(){M("a",/./)}),B=o(function(K,U,T,N){D(this,{type:S,regexp:K,string:U,global:T,unicode:N,done:!1})},I,function(){var K=C(this);if(K.done)return a(void 0,!0);var U=K.regexp,T=K.string,N=k(U,T);return N===null?(K.done=!0,a(void 0,!0)):K.global?(l(N[0])===""&&(U.lastIndex=w(T,c(U.lastIndex),K.unicode)),a(N,!1)):(K.done=!0,a(N,!1))}),L=function(K){var U,T,N,j=f(this),V=l(K),Z=x(j,RegExp),W=l(g(j));return U=new Z(Z===RegExp?j.source:j,W),T=!!~H(W,"g"),N=!!~H(W,"u"),U.lastIndex=c(j.lastIndex),new B(U,V,T,N)};e({target:"String",proto:!0,forced:_},{matchAll:function(K){var U,T,N,j,V=s(this);if(v(K)){if(p(K)&&(U=l(s(g(K))),!~H(U,"g")))throw new $("`.matchAll` does not allow non-global regexes");if(_)return M(V,K);if((N=h(K,P))===void 0&&E&&d(K)==="RegExp"&&(N=L),N)return n(N,K,V)}else if(_)return M(V,K);return T=l(V),j=new RegExp(K,"g"),E?n(L,j,T):j[P](T)}}),E||P in A||m(A,P,L)},8551:function(i,u,t){var e=t(34),n=String,r=TypeError;i.exports=function(o){if(e(o))return o;throw new r(n(o)+" is not an object")}},8598:function(i,u,t){var e=t(6518),n=t(9504),r=t(7055),o=t(5397),a=t(4598),s=n([].join);e({target:"Array",proto:!0,forced:r!==Object||!a("join",",")},{join:function(c){return s(o(this),c===void 0?",":c)}})},8622:function(i,u,t){var e=t(4576),n=t(4901),r=e.WeakMap;i.exports=n(r)&&/native code/.test(String(r))},8686:function(i,u,t){var e=t(3724),n=t(9039);i.exports=e&&n(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},8706:function(i,u,t){var e=t(6518),n=t(9039),r=t(4376),o=t(34),a=t(8981),s=t(6198),c=t(6837),l=t(4659),f=t(1469),v=t(597),d=t(8227),p=t(9519),g=d("isConcatSpreadable"),h=p>=51||!n(function(){var y=[];return y[g]=!1,y.concat()[0]!==y}),m=function(y){if(!o(y))return!1;var b=y[g];return b!==void 0?!!b:r(y)};e({target:"Array",proto:!0,arity:1,forced:!h||!v("concat")},{concat:function(y){var b,x,w,k,O,E=a(this),P=f(E,0),I=0;for(b=-1,w=arguments.length;b<w;b++)if(m(O=b===-1?E:arguments[b]))for(k=s(O),c(I+k),x=0;x<k;x++,I++)x in O&&l(P,I,O[x]);else c(I+1),l(P,I++,O);return P.length=I,P}})},8727:function(i){i.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},8745:function(i,u,t){var e=t(616),n=Function.prototype,r=n.apply,o=n.call;i.exports=typeof Reflect=="object"&&Reflect.apply||(e?o.bind(r):function(){return o.apply(r,arguments)})},8773:function(i,u){var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,n=e&&!t.call({1:2},1);u.f=n?function(r){var o=e(this,r);return!!o&&o.enumerable}:t},8781:function(i,u,t){var e=t(350).PROPER,n=t(6840),r=t(8551),o=t(655),a=t(9039),s=t(1034),c="toString",l=RegExp.prototype,f=l[c],v=a(function(){return f.call({source:"a",flags:"b"})!=="/a/b"}),d=e&&f.name!==c;(v||d)&&n(l,c,function(){var p=r(this);return"/"+o(p.source)+"/"+o(s(p))},{unsafe:!0})},8814:function(i,u,t){var e=t(9039),n=t(4576).RegExp;i.exports=e(function(){var r=n("(?<a>b)","g");return r.exec("b").groups.a!=="b"||"b".replace(r,"$<a>c")!=="bc"})},8981:function(i,u,t){var e=t(7750),n=Object;i.exports=function(r){return n(e(r))}},9039:function(i){i.exports=function(u){try{return!!u()}catch{return!0}}},9085:function(i,u,t){var e=t(6518),n=t(4213);e({target:"Object",stat:!0,arity:2,forced:Object.assign!==n},{assign:n})},9167:function(i,u,t){var e=t(4576);i.exports=e},9213:function(i,u,t){var e=t(6080),n=t(9504),r=t(7055),o=t(8981),a=t(6198),s=t(1469),c=n([].push),l=function(f){var v=f===1,d=f===2,p=f===3,g=f===4,h=f===6,m=f===7,y=f===5||h;return function(b,x,w,k){for(var O,E,P=o(b),I=r(P),S=a(I),D=e(x,w),C=0,A=k||s,$=v?A(b,S):d||m?A(b,0):void 0;S>C;C++)if((y||C in I)&&(E=D(O=I[C],C,P),f))if(v)$[C]=E;else if(E)switch(f){case 3:return!0;case 5:return O;case 6:return C;case 2:c($,O)}else switch(f){case 4:return!1;case 7:c($,O)}return h?-1:p||g?g:$}};i.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},9228:function(i,u,t){t(7495);var e=t(9565),n=t(6840),r=t(7323),o=t(9039),a=t(8227),s=t(6699),c=a("species"),l=RegExp.prototype;i.exports=function(f,v,d,p){var g=a(f),h=!o(function(){var x={};return x[g]=function(){return 7},""[f](x)!==7}),m=h&&!o(function(){var x=!1,w=/a/;return f==="split"&&((w={}).constructor={},w.constructor[c]=function(){return w},w.flags="",w[g]=/./[g]),w.exec=function(){return x=!0,null},w[g](""),!x});if(!h||!m||d){var y=/./[g],b=v(g,""[f],function(x,w,k,O,E){var P=w.exec;return P===r||P===l.exec?h&&!E?{done:!0,value:e(y,w,k,O)}:{done:!0,value:e(x,k,w,O)}:{done:!1}});n(String.prototype,f,b[0]),n(l,g,b[1])}p&&s(l[g],"sham",!0)}},9296:function(i,u,t){var e=t(4055)("span").classList,n=e&&e.constructor&&e.constructor.prototype;i.exports=n===Object.prototype?void 0:n},9297:function(i,u,t){var e=t(9504),n=t(8981),r=e({}.hasOwnProperty);i.exports=Object.hasOwn||function(o,a){return r(n(o),a)}},9306:function(i,u,t){var e=t(4901),n=t(6823),r=TypeError;i.exports=function(o){if(e(o))return o;throw new r(n(o)+" is not a function")}},9432:function(i,u,t){var e=t(6518),n=t(8981),r=t(1072);e({target:"Object",stat:!0,forced:t(9039)(function(){r(1)})},{keys:function(o){return r(n(o))}})},9433:function(i,u,t){var e=t(4576),n=Object.defineProperty;i.exports=function(r,o){try{n(e,r,{value:o,configurable:!0,writable:!0})}catch{e[r]=o}return o}},9463:function(i,u,t){var e=t(6518),n=t(3724),r=t(4576),o=t(9504),a=t(9297),s=t(4901),c=t(1625),l=t(655),f=t(2106),v=t(7740),d=r.Symbol,p=d&&d.prototype;if(n&&s(d)&&(!("description"in p)||d().description!==void 0)){var g={},h=function(){var O=arguments.length<1||arguments[0]===void 0?void 0:l(arguments[0]),E=c(p,this)?new d(O):O===void 0?d():d(O);return O===""&&(g[E]=!0),E};v(h,d),h.prototype=p,p.constructor=h;var m=String(d("description detection"))==="Symbol(description detection)",y=o(p.valueOf),b=o(p.toString),x=/^Symbol\((.*)\)[^)]+$/,w=o("".replace),k=o("".slice);f(p,"description",{configurable:!0,get:function(){var O=y(this);if(a(g,O))return"";var E=b(O),P=m?k(E,7,-1):w(E,x,"$1");return P===""?void 0:P}}),e({global:!0,constructor:!0,forced:!0},{Symbol:h})}},9504:function(i,u,t){var e=t(616),n=Function.prototype,r=n.call,o=e&&n.bind.bind(r,r);i.exports=e?o:function(a){return function(){return r.apply(a,arguments)}}},9519:function(i,u,t){var e,n,r=t(4576),o=t(2839),a=r.process,s=r.Deno,c=a&&a.versions||s&&s.version,l=c&&c.v8;l&&(n=(e=l.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!n&&o&&(!(e=o.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=o.match(/Chrome\/(\d+)/))&&(n=+e[1]),i.exports=n},9539:function(i,u,t){var e=t(9565),n=t(8551),r=t(5966);i.exports=function(o,a,s){var c,l;n(o);try{if(!(c=r(o,"return"))){if(a==="throw")throw s;return s}c=e(c,o)}catch(f){l=!0,c=f}if(a==="throw")throw s;if(l)throw c;return n(c),s}},9565:function(i,u,t){var e=t(616),n=Function.prototype.call;i.exports=e?n.bind(n):function(){return n.apply(n,arguments)}},9572:function(i,u,t){var e=t(9297),n=t(6840),r=t(3640),o=t(8227)("toPrimitive"),a=Date.prototype;e(a,o)||n(a,o,r)},9617:function(i,u,t){var e=t(5397),n=t(5610),r=t(6198),o=function(a){return function(s,c,l){var f=e(s),v=r(f);if(v===0)return!a&&-1;var d,p=n(l,v);if(a&&c!=c){for(;v>p;)if((d=f[p++])!=d)return!0}else for(;v>p;p++)if((a||p in f)&&f[p]===c)return a||p||0;return!a&&-1}};i.exports={includes:o(!0),indexOf:o(!1)}},9773:function(i,u,t){var e=t(6518),n=t(4495),r=t(9039),o=t(3717),a=t(8981);e({target:"Object",stat:!0,forced:!n||r(function(){o.f(1)})},{getOwnPropertySymbols:function(s){var c=o.f;return c?c(a(s)):[]}})}},Ct={};function R(i){var u=Ct[i];if(u!==void 0)return u.exports;var t=Ct[i]={exports:{}};return Lt[i].call(t.exports,t,t.exports,R),t.exports}R.d=function(i,u){for(var t in u)R.o(u,t)&&!R.o(i,t)&&Object.defineProperty(i,t,{enumerable:!0,get:u[t]})},R.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),R.o=function(i,u){return Object.prototype.hasOwnProperty.call(i,u)},R.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var Dt={};R.r(Dt),R.d(Dt,{SimpleKeyboard:function(){return Xt},default:function(){return oe}}),R(5276),R(8598),R(4782),R(4554),R(2010),R(7427),R(6099),R(7495),R(8781),R(5440),R(744),R(2762),typeof Element>"u"||"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}),typeof self<"u"&&"document"in self&&((!("classList"in document.createElement("_"))||document.createElementNS&&!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g")))&&function(i){if("Element"in i){var u="classList",t="prototype",e=i.Element[t],n=Object,r=String[t].trim||function(){return this.replace(/^\s+|\s+$/g,"")},o=Array[t].indexOf||function(d){for(var p=0,g=this.length;p<g;p++)if(p in this&&this[p]===d)return p;return-1},a=function(d,p){this.name=d,this.code=DOMException[d],this.message=p},s=function(d,p){if(p==="")throw new a("SYNTAX_ERR","The token must not be empty.");if(/\s/.test(p))throw new a("INVALID_CHARACTER_ERR","The token must not contain space characters.");return o.call(d,p)},c=function(d){for(var p=r.call(d.getAttribute("class")||""),g=p?p.split(/\s+/):[],h=0,m=g.length;h<m;h++)this.push(g[h]);this._updateClassName=function(){d.setAttribute("class",this.toString())}},l=c[t]=[],f=function(){return new c(this)};if(a[t]=Error[t],l.item=function(d){return this[d]||null},l.contains=function(d){return~s(this,d+"")},l.add=function(){var d,p=arguments,g=0,h=p.length,m=!1;do~s(this,d=p[g]+"")||(this.push(d),m=!0);while(++g<h);m&&this._updateClassName()},l.remove=function(){var d,p,g=arguments,h=0,m=g.length,y=!1;do for(p=s(this,d=g[h]+"");~p;)this.splice(p,1),y=!0,p=s(this,d);while(++h<m);y&&this._updateClassName()},l.toggle=function(d,p){var g=this.contains(d),h=g?p!==!0&&"remove":p!==!1&&"add";return h&&this[h](d),p===!0||p===!1?p:!g},l.replace=function(d,p){var g=s(d+"");~g&&(this.splice(g,1,p),this._updateClassName())},l.toString=function(){return this.join(" ")},n.defineProperty){var v={get:f,enumerable:!0,configurable:!0};try{n.defineProperty(e,u,v)}catch(d){d.number!==void 0&&d.number!==-2146823252||(v.enumerable=!1,n.defineProperty(e,u,v))}}else n[t].__defineGetter__&&e.__defineGetter__(u,f)}}(self),function(){var i=document.createElement("_");if(i.classList.add("c1","c2"),!i.classList.contains("c2")){var u=function(e){var n=DOMTokenList.prototype[e];DOMTokenList.prototype[e]=function(r){var o,a=arguments.length;for(o=0;o<a;o++)r=arguments[o],n.call(this,r)}};u("add"),u("remove")}if(i.classList.toggle("c3",!1),i.classList.contains("c3")){var t=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,n){return 1 in arguments&&!this.contains(e)==!n?n:t.call(this,e)}}"replace"in document.createElement("_").classList||(DOMTokenList.prototype.replace=function(e,n){var r=this.toString().split(" "),o=r.indexOf(e+"");~o&&(r=r.slice(o),this.remove.apply(this,r),this.add(n),this.add.apply(this,r.slice(1)))}),i=null}()),R(2675),R(9463),R(2259),R(5700),R(8706),R(2008),R(3418),R(4423),R(3792),R(2062),R(6910),R(739),R(9572),R(2892),R(9085),R(3851),R(1278),R(9432),R(4864),R(1699),R(7764),R(8344),R(3500),R(2953),R(2712),R(2637),R(1480),R(825),R(1761);function te(i){return function(u){if(Array.isArray(u))return Tt(u)}(i)||function(u){if(typeof Symbol<"u"&&u[Symbol.iterator]!=null||u["@@iterator"]!=null)return Array.from(u)}(i)||Bt(i)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Bt(i,u){if(i){if(typeof i=="string")return Tt(i,u);var t={}.toString.call(i).slice(8,-1);return t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set"?Array.from(i):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Tt(i,u):void 0}}function Tt(i,u){(u==null||u>i.length)&&(u=i.length);for(var t=0,e=Array(u);t<u;t++)e[t]=i[t];return e}function Et(i){return Et=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},Et(i)}function Kt(i,u){for(var t=0;t<u.length;t++){var e=u[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(i,Ft(e.key),e)}}function gt(i,u,t){return(u=Ft(u))in i?Object.defineProperty(i,u,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[u]=t,i}function Ft(i){var u=function(t,e){if(Et(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Et(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}(i,"string");return Et(u)=="symbol"?u:u+""}var _t=function(){return i=function e(n){var r=n.getOptions,o=n.getCaretPosition,a=n.getCaretPositionEnd,s=n.dispatch;(function(c,l){if(!(c instanceof l))throw new TypeError("Cannot call a class as a function")})(this,e),gt(this,"getOptions",void 0),gt(this,"getCaretPosition",void 0),gt(this,"getCaretPositionEnd",void 0),gt(this,"dispatch",void 0),gt(this,"maxLengthReached",void 0),gt(this,"isStandardButton",function(c){return c&&!(c[0]==="{"&&c[c.length-1]==="}")}),this.getOptions=r,this.getCaretPosition=o,this.getCaretPositionEnd=a,this.dispatch=s,e.bindMethods(e,this)},u=[{key:"getButtonType",value:function(e){return e.includes("{")&&e.includes("}")&&e!=="{//}"?"functionBtn":"standardBtn"}},{key:"getButtonClass",value:function(e){var n=this.getButtonType(e),r=e.replace("{","").replace("}",""),o="";return n!=="standardBtn"&&(o=" hg-button-".concat(r)),"hg-".concat(n).concat(o)}},{key:"getDefaultDiplay",value:function(){return{"{bksp}":"backspace","{backspace}":"backspace","{enter}":"< enter","{shift}":"shift","{shiftleft}":"shift","{shiftright}":"shift","{alt}":"alt","{s}":"shift","{tab}":"tab","{lock}":"caps","{capslock}":"caps","{accept}":"Submit","{space}":" ","{//}":" ","{esc}":"esc","{escape}":"esc","{f1}":"f1","{f2}":"f2","{f3}":"f3","{f4}":"f4","{f5}":"f5","{f6}":"f6","{f7}":"f7","{f8}":"f8","{f9}":"f9","{f10}":"f10","{f11}":"f11","{f12}":"f12","{numpaddivide}":"/","{numlock}":"lock","{arrowup}":"↑","{arrowleft}":"←","{arrowdown}":"↓","{arrowright}":"→","{prtscr}":"print","{scrolllock}":"scroll","{pause}":"pause","{insert}":"ins","{home}":"home","{pageup}":"up","{delete}":"del","{forwarddelete}":"del","{end}":"end","{pagedown}":"down","{numpadmultiply}":"*","{numpadsubtract}":"-","{numpadadd}":"+","{numpadenter}":"enter","{period}":".","{numpaddecimal}":".","{numpad0}":"0","{numpad1}":"1","{numpad2}":"2","{numpad3}":"3","{numpad4}":"4","{numpad5}":"5","{numpad6}":"6","{numpad7}":"7","{numpad8}":"8","{numpad9}":"9"}}},{key:"getButtonDisplayName",value:function(e,n){return(n=arguments.length>2&&arguments[2]!==void 0&&arguments[2]?Object.assign({},this.getDefaultDiplay(),n):n||this.getDefaultDiplay())[e]||e}},{key:"getUpdatedInput",value:function(e,n,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:r,a=arguments.length>4&&arguments[4]!==void 0&&arguments[4],s=this.getOptions(),c=[r,o,a],l=n;return(e==="{bksp}"||e==="{backspace}")&&l.length>0?l=this.removeAt.apply(this,[l].concat(c)):(e==="{delete}"||e==="{forwarddelete}")&&l.length>0?l=this.removeForwardsAt.apply(this,[l].concat(c)):e==="{space}"?l=this.addStringAt.apply(this,[l," "].concat(c)):e!=="{tab}"||typeof s.tabCharOnTab=="boolean"&&s.tabCharOnTab===!1?e!=="{enter}"&&e!=="{numpadenter}"||!s.newLineOnEnter?e.includes("numpad")&&Number.isInteger(Number(e[e.length-2]))?l=this.addStringAt.apply(this,[l,e[e.length-2]].concat(c)):e==="{numpaddivide}"?l=this.addStringAt.apply(this,[l,"/"].concat(c)):e==="{numpadmultiply}"?l=this.addStringAt.apply(this,[l,"*"].concat(c)):e==="{numpadsubtract}"?l=this.addStringAt.apply(this,[l,"-"].concat(c)):e==="{numpadadd}"?l=this.addStringAt.apply(this,[l,"+"].concat(c)):e==="{numpaddecimal}"?l=this.addStringAt.apply(this,[l,"."].concat(c)):e==="{"||e==="}"?l=this.addStringAt.apply(this,[l,e].concat(c)):e.includes("{")||e.includes("}")||(l=this.addStringAt.apply(this,[l,e].concat(c))):l=this.addStringAt.apply(this,[l,`
`].concat(c)):l=this.addStringAt.apply(this,[l," "].concat(c)),s.debug&&console.log("Input will be: "+l),l}},{key:"updateCaretPos",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1],r=this.updateCaretPosAction(e,n);this.dispatch(function(o){o.setCaretPosition(r)})}},{key:"updateCaretPosAction",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1],r=this.getOptions(),o=this.getCaretPosition();return o!=null&&(n?o>0&&(o-=e):o+=e),r.debug&&console.log("Caret at:",o),o}},{key:"addStringAt",value:function(e,n){var r,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:e.length,s=arguments.length>4&&arguments[4]!==void 0&&arguments[4];return o||o===0?(r=[e.slice(0,o),n,e.slice(a)].join(""),this.isMaxLengthReached()||s&&this.updateCaretPos(n.length)):r=e+n,r}},{key:"removeAt",value:function(e){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.length,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,a=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(r===0&&o===0)return e;if(r===o){var s=/([\uD800-\uDBFF][\uDC00-\uDFFF])/g;r&&r>=0?e.substring(r-2,r).match(s)?(n=e.substr(0,r-2)+e.substr(r),a&&this.updateCaretPos(2,!0)):(n=e.substr(0,r-1)+e.substr(r),a&&this.updateCaretPos(1,!0)):e.slice(-2).match(s)?(n=e.slice(0,-2),a&&this.updateCaretPos(2,!0)):(n=e.slice(0,-1),a&&this.updateCaretPos(1,!0))}else n=e.slice(0,r)+e.slice(o),a&&this.dispatch(function(c){c.setCaretPosition(r)});return n}},{key:"removeForwardsAt",value:function(e){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.length,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,a=arguments.length>3&&arguments[3]!==void 0&&arguments[3];return e!=null&&e.length&&r!==null?(r===o?n=e.substring(r,r+2).match(/([\uD800-\uDBFF][\uDC00-\uDFFF])/g)?e.substr(0,r)+e.substr(r+2):e.substr(0,r)+e.substr(r+1):(n=e.slice(0,r)+e.slice(o),a&&this.dispatch(function(s){s.setCaretPosition(r)})),n):e}},{key:"handleMaxLength",value:function(e,n){var r=this.getOptions(),o=r.maxLength,a=e[r.inputName||"default"],s=n.length-1>=o;if(n.length<=a.length)return!1;if(Number.isInteger(o))return r.debug&&console.log("maxLength (num) reached:",s),s?(this.maxLengthReached=!0,!0):(this.maxLengthReached=!1,!1);if(Et(o)==="object"){var c=n.length-1>=o[r.inputName||"default"];return r.debug&&console.log("maxLength (obj) reached:",c),c?(this.maxLengthReached=!0,!0):(this.maxLengthReached=!1,!1)}}},{key:"isMaxLengthReached",value:function(){return!!this.maxLengthReached}},{key:"isTouchDevice",value:function(){return"ontouchstart"in window||navigator.maxTouchPoints}},{key:"pointerEventsSupported",value:function(){return!!window.PointerEvent}},{key:"camelCase",value:function(e){return e?e.toLowerCase().trim().split(/[.\-_\s]/g).reduce(function(n,r){return r.length?n+r[0].toUpperCase()+r.slice(1):n}):""}},{key:"chunkArray",value:function(e,n){return te(Array(Math.ceil(e.length/n))).map(function(r,o){return e.slice(n*o,n+n*o)})}},{key:"escapeRegex",value:function(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}},{key:"getRtlOffset",value:function(e,n){var r=e,o=n.indexOf("");return o<e&&o!=-1&&r--,n.indexOf("")<e&&o!=-1&&r--,r<0?0:r}},{key:"isConstructor",value:function(e){try{Reflect.construct(String,[],e)}catch{return!1}return!0}}],t=[{key:"bindMethods",value:function(e,n){var r,o=function(s,c){var l=typeof Symbol<"u"&&s[Symbol.iterator]||s["@@iterator"];if(!l){if(Array.isArray(s)||(l=Bt(s))||c){l&&(s=l);var f=0,v=function(){};return{s:v,n:function(){return f>=s.length?{done:!0}:{done:!1,value:s[f++]}},e:function(h){throw h},f:v}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var d,p=!0,g=!1;return{s:function(){l=l.call(s)},n:function(){var h=l.next();return p=h.done,h},e:function(h){g=!0,d=h},f:function(){try{p||l.return==null||l.return()}finally{if(g)throw d}}}}(Object.getOwnPropertyNames(e.prototype));try{for(o.s();!(r=o.n()).done;){var a=r.value;a==="constructor"||a==="bindMethods"||(n[a]=n[a].bind(n))}}catch(s){o.e(s)}finally{o.f()}}}],u&&Kt(i.prototype,u),t&&Kt(i,t),Object.defineProperty(i,"prototype",{writable:!1}),i;var i,u,t}();gt(_t,"noop",function(){});var At=_t;function St(i){return St=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},St(i)}function Ut(i,u){for(var t=0;t<u.length;t++){var e=u[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(i,Ht(e.key),e)}}function jt(i,u,t){return(u=Ht(u))in i?Object.defineProperty(i,u,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[u]=t,i}function Ht(i){var u=function(t,e){if(St(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(St(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}(i,"string");return St(u)=="symbol"?u:u+""}var ee=function(){return i=function e(n){var r=this,o=n.dispatch,a=n.getOptions;(function(s,c){if(!(s instanceof c))throw new TypeError("Cannot call a class as a function")})(this,e),jt(this,"getOptions",void 0),jt(this,"dispatch",void 0),jt(this,"isModifierKey",function(s){return s.altKey||s.ctrlKey||s.shiftKey||["Tab","CapsLock","Esc","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(s.code||s.key||r.keyCodeToKey(s==null?void 0:s.keyCode))}),this.dispatch=o,this.getOptions=a,At.bindMethods(e,this)},u=[{key:"handleHighlightKeyDown",value:function(e){var n=this.getOptions();n.physicalKeyboardHighlightPreventDefault&&this.isModifierKey(e)&&(e.preventDefault(),e.stopImmediatePropagation());var r=this.getSimpleKeyboardLayoutKey(e);this.dispatch(function(o){var a,s,c=o.getButtonElement(r),l=o.getButtonElement("{".concat(r,"}"));if(c)a=c,s=r;else{if(!l)return;a=l,s="{".concat(r,"}")}var f,v,d,p,g=function(m){m.style.background=n.physicalKeyboardHighlightBgColor||"#dadce4",m.style.color=n.physicalKeyboardHighlightTextColor||"black"};if(a)if(Array.isArray(a)){if(a.forEach(function(m){return g(m)}),n.physicalKeyboardHighlightPress)if(n.physicalKeyboardHighlightPressUsePointerEvents)(f=a[0])===null||f===void 0||(v=f.onpointerdown)===null||v===void 0||v.call(f,e);else if(n.physicalKeyboardHighlightPressUseClick){var h;(h=a[0])===null||h===void 0||h.click()}else o.handleButtonClicked(s,e)}else g(a),n.physicalKeyboardHighlightPress&&(n.physicalKeyboardHighlightPressUsePointerEvents?(d=a)===null||d===void 0||(p=d.onpointerdown)===null||p===void 0||p.call(d,e):n.physicalKeyboardHighlightPressUseClick?a.click():o.handleButtonClicked(s,e))})}},{key:"handleHighlightKeyUp",value:function(e){var n=this.getOptions();n.physicalKeyboardHighlightPreventDefault&&this.isModifierKey(e)&&(e.preventDefault(),e.stopImmediatePropagation());var r=this.getSimpleKeyboardLayoutKey(e);this.dispatch(function(o){var a,s,c,l=o.getButtonElement(r)||o.getButtonElement("{".concat(r,"}")),f=function(v){v.removeAttribute&&v.removeAttribute("style")};l&&(Array.isArray(l)?(l.forEach(function(v){return f(v)}),n.physicalKeyboardHighlightPressUsePointerEvents&&((a=l[0])===null||a===void 0||(s=a.onpointerup)===null||s===void 0||s.call(a,e))):(f(l),n.physicalKeyboardHighlightPressUsePointerEvents&&(l==null||(c=l.onpointerup)===null||c===void 0||c.call(l,e))))})}},{key:"getSimpleKeyboardLayoutKey",value:function(e){var n,r="",o=e.code||e.key||this.keyCodeToKey(e==null?void 0:e.keyCode);return(r=o!=null&&o.includes("Numpad")||o!=null&&o.includes("Shift")||o!=null&&o.includes("Space")||o!=null&&o.includes("Backspace")||o!=null&&o.includes("Control")||o!=null&&o.includes("Alt")||o!=null&&o.includes("Meta")?e.code||"":e.key||this.keyCodeToKey(e==null?void 0:e.keyCode)||"").length>1?(n=r)===null||n===void 0?void 0:n.toLowerCase():r}},{key:"keyCodeToKey",value:function(e){return{8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",91:"Meta",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9",106:"NumpadMultiply",107:"NumpadAdd",109:"NumpadSubtract",110:"NumpadDecimal",111:"NumpadDivide",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"}[e]||""}}],u&&Ut(i.prototype,u),t&&Ut(i,t),Object.defineProperty(i,"prototype",{writable:!1}),i;var i,u,t}();function kt(i){return kt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},kt(i)}function $t(i,u){for(var t=0;t<u.length;t++){var e=u[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(i,Vt(e.key),e)}}function Pt(i,u,t){return(u=Vt(u))in i?Object.defineProperty(i,u,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[u]=t,i}function Vt(i){var u=function(t,e){if(kt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(kt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}(i,"string");return kt(u)=="symbol"?u:u+""}var ne=function(){return i=function e(n){var r=n.utilities,o=n.options;(function(a,s){if(!(a instanceof s))throw new TypeError("Cannot call a class as a function")})(this,e),Pt(this,"utilities",void 0),Pt(this,"options",void 0),Pt(this,"candidateBoxElement",void 0),Pt(this,"pageIndex",0),Pt(this,"pageSize",void 0),this.utilities=r,this.options=o,At.bindMethods(e,this),this.pageSize=this.utilities.getOptions().layoutCandidatesPageSize||5},u=[{key:"destroy",value:function(){this.candidateBoxElement&&(this.candidateBoxElement.remove(),this.pageIndex=0)}},{key:"show",value:function(e){var n=this,r=e.candidateValue,o=e.targetElement,a=e.onSelect;if(r&&r.length){var s=this.utilities.chunkArray(r.split(" "),this.pageSize);this.renderPage({candidateListPages:s,targetElement:o,pageIndex:this.pageIndex,nbPages:s.length,onItemSelected:function(c,l){a(c,l),n.destroy()}})}}},{key:"renderPage",value:function(e){var n,r=this,o=e.candidateListPages,a=e.targetElement,s=e.pageIndex,c=e.nbPages,l=e.onItemSelected;(n=this.candidateBoxElement)===null||n===void 0||n.remove(),this.candidateBoxElement=document.createElement("div"),this.candidateBoxElement.className="hg-candidate-box";var f=document.createElement("ul");f.className="hg-candidate-box-list",o[s].forEach(function(y){var b,x=document.createElement("li"),w=function(){var k=new(r.options.useTouchEvents?TouchEvent:MouseEvent)("click");return Object.defineProperty(k,"target",{value:x}),k};x.className="hg-candidate-box-list-item",x.innerHTML=((b=r.options.display)===null||b===void 0?void 0:b[y])||y,r.options.useTouchEvents?x.ontouchstart=function(k){return l(y,k||w())}:x.onclick=function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:w();return l(y,k)},f.appendChild(x)});var v=s>0,d=document.createElement("div");d.classList.add("hg-candidate-box-prev"),v&&d.classList.add("hg-candidate-box-btn-active");var p=function(){v&&r.renderPage({candidateListPages:o,targetElement:a,pageIndex:s-1,nbPages:c,onItemSelected:l})};this.options.useTouchEvents?d.ontouchstart=p:d.onclick=p,this.candidateBoxElement.appendChild(d),this.candidateBoxElement.appendChild(f);var g=s<c-1,h=document.createElement("div");h.classList.add("hg-candidate-box-next"),g&&h.classList.add("hg-candidate-box-btn-active");var m=function(){g&&r.renderPage({candidateListPages:o,targetElement:a,pageIndex:s+1,nbPages:c,onItemSelected:l})};this.options.useTouchEvents?h.ontouchstart=m:h.onclick=m,this.candidateBoxElement.appendChild(h),a.prepend(this.candidateBoxElement)}}],u&&$t(i.prototype,u),t&&$t(i,t),Object.defineProperty(i,"prototype",{writable:!1}),i;var i,u,t}(),zt=ne;function Mt(i){return function(u){if(Array.isArray(u))return Nt(u)}(i)||function(u){if(typeof Symbol<"u"&&u[Symbol.iterator]!=null||u["@@iterator"]!=null)return Array.from(u)}(i)||function(u,t){if(u){if(typeof u=="string")return Nt(u,t);var e={}.toString.call(u).slice(8,-1);return e==="Object"&&u.constructor&&(e=u.constructor.name),e==="Map"||e==="Set"?Array.from(u):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Nt(u,t):void 0}}(i)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Nt(i,u){(u==null||u>i.length)&&(u=i.length);for(var t=0,e=Array(u);t<u;t++)e[t]=i[t];return e}function Ot(i){return Ot=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},Ot(i)}function Gt(i,u){var t=Object.keys(i);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(i);u&&(e=e.filter(function(n){return Object.getOwnPropertyDescriptor(i,n).enumerable})),t.push.apply(t,e)}return t}function Yt(i,u){for(var t=0;t<u.length;t++){var e=u[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(i,Jt(e.key),e)}}function Y(i,u,t){return(u=Jt(u))in i?Object.defineProperty(i,u,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[u]=t,i}function Jt(i){var u=function(t,e){if(Ot(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Ot(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}(i,"string");return Ot(u)=="symbol"?u:u+""}var re=function(){return i=function e(n,r){var o=this;if(function(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}(this,e),Y(this,"input",void 0),Y(this,"options",void 0),Y(this,"utilities",void 0),Y(this,"caretPosition",void 0),Y(this,"caretPositionEnd",void 0),Y(this,"keyboardDOM",void 0),Y(this,"keyboardPluginClasses",void 0),Y(this,"keyboardDOMClass",void 0),Y(this,"buttonElements",void 0),Y(this,"currentInstanceName",void 0),Y(this,"allKeyboardInstances",void 0),Y(this,"keyboardInstanceNames",void 0),Y(this,"isFirstKeyboardInstance",void 0),Y(this,"physicalKeyboard",void 0),Y(this,"modules",void 0),Y(this,"activeButtonClass",void 0),Y(this,"holdInteractionTimeout",void 0),Y(this,"holdTimeout",void 0),Y(this,"isMouseHold",void 0),Y(this,"initialized",void 0),Y(this,"candidateBox",void 0),Y(this,"keyboardRowsDOM",void 0),Y(this,"defaultName","default"),Y(this,"activeInputElement",null),Y(this,"handleParams",function(p,g){var h,m,y;if(typeof p=="string")h=p.split(".").join(""),m=document.querySelector(".".concat(h)),y=g;else if(p instanceof HTMLDivElement){if(!p.className)throw console.warn("Any DOM element passed as parameter must have a class."),new Error("KEYBOARD_DOM_CLASS_ERROR");h=p.className.split(" ")[0],m=p,y=g}else h="simple-keyboard",m=document.querySelector(".".concat(h)),y=p;return{keyboardDOMClass:h,keyboardDOM:m,options:y}}),Y(this,"getOptions",function(){return o.options}),Y(this,"getCaretPosition",function(){return o.caretPosition}),Y(this,"getCaretPositionEnd",function(){return o.caretPositionEnd}),Y(this,"registerModule",function(p,g){o.modules[p]||(o.modules[p]={}),g(o.modules[p])}),Y(this,"getKeyboardClassString",function(){for(var p=arguments.length,g=new Array(p),h=0;h<p;h++)g[h]=arguments[h];return[o.keyboardDOMClass].concat(g).filter(function(m){return!!m}).join(" ")}),typeof window<"u"){var a=this.handleParams(n,r),s=a.keyboardDOMClass,c=a.keyboardDOM,l=a.options,f=l===void 0?{}:l;this.utilities=new At({getOptions:this.getOptions,getCaretPosition:this.getCaretPosition,getCaretPositionEnd:this.getCaretPositionEnd,dispatch:this.dispatch}),this.caretPosition=null,this.caretPositionEnd=null,this.keyboardDOM=c,this.options=function(p){for(var g=1;g<arguments.length;g++){var h=arguments[g]!=null?arguments[g]:{};g%2?Gt(Object(h),!0).forEach(function(m){Y(p,m,h[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(p,Object.getOwnPropertyDescriptors(h)):Gt(Object(h)).forEach(function(m){Object.defineProperty(p,m,Object.getOwnPropertyDescriptor(h,m))})}return p}({layoutName:"default",theme:"hg-theme-default",inputName:"default",preventMouseDownDefault:!1,enableLayoutCandidates:!0,excludeFromLayout:{}},f),this.keyboardPluginClasses="",At.bindMethods(e,this);var v=this.options.inputName,d=v===void 0?this.defaultName:v;if(this.input={},this.input[d]="",this.keyboardDOMClass=s,this.buttonElements={},window.SimpleKeyboardInstances||(window.SimpleKeyboardInstances={}),this.currentInstanceName=this.utilities.camelCase(this.keyboardDOMClass),window.SimpleKeyboardInstances[this.currentInstanceName]=this,this.allKeyboardInstances=window.SimpleKeyboardInstances,this.keyboardInstanceNames=Object.keys(window.SimpleKeyboardInstances),this.isFirstKeyboardInstance=this.keyboardInstanceNames[0]===this.currentInstanceName,this.physicalKeyboard=new ee({dispatch:this.dispatch,getOptions:this.getOptions}),this.candidateBox=this.options.enableLayoutCandidates?new zt({utilities:this.utilities,options:this.options}):null,!this.keyboardDOM)throw console.warn('".'.concat(s,'" was not found in the DOM.')),new Error("KEYBOARD_DOM_ERROR");this.render(),this.modules={},this.loadModules()}},u=[{key:"setCaretPosition",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e;this.caretPosition=e,this.caretPositionEnd=n}},{key:"getInputCandidates",value:function(e){var n=this,r=this.options,o=r.layoutCandidates,a=r.layoutCandidatesCaseSensitiveMatch;if(!o||Ot(o)!=="object")return{};var s=Object.keys(o).filter(function(f){var v=e.substring(0,n.getCaretPositionEnd()||0)||e,d=new RegExp("".concat(n.utilities.escapeRegex(f),"$"),a?"g":"gi");return!!Mt(v.matchAll(d)).length});if(s.length>1){var c=s.sort(function(f,v){return v.length-f.length})[0];return{candidateKey:c,candidateValue:o[c]}}if(s.length){var l=s[0];return{candidateKey:l,candidateValue:o[l]}}return{}}},{key:"showCandidatesBox",value:function(e,n,r){var o=this;this.candidateBox&&this.candidateBox.show({candidateValue:n,targetElement:r,onSelect:function(a,s){var c=o.options,l=c.layoutCandidatesCaseSensitiveMatch,f=c.disableCandidateNormalization,v=c.enableLayoutCandidatesKeyPress,d=a;f||(d=a.normalize("NFD")),typeof o.options.beforeInputUpdate=="function"&&o.options.beforeInputUpdate(o);var p=o.getInput(o.options.inputName,!0),g=o.getCaretPositionEnd()||0,h=p.substring(0,g||0)||p,m=new RegExp("".concat(o.utilities.escapeRegex(e),"$"),l?"g":"gi"),y=h.replace(m,d),b=p.replace(h,y),x=y.length-h.length,w=(g||p.length)+x;w<0&&(w=0),o.setInput(b,o.options.inputName,!0),o.setCaretPosition(w),v&&typeof o.options.onKeyPress=="function"&&o.options.onKeyPress(a,s),typeof o.options.onChange=="function"&&o.options.onChange(o.getInput(o.options.inputName,!0),s),typeof o.options.onChangeAll=="function"&&o.options.onChangeAll(o.getAllInputs(),s)}})}},{key:"handleButtonClicked",value:function(e,n){var r=this.options,o=r.inputName,a=o===void 0?this.defaultName:o,s=r.debug;if(e!=="{//}"){this.input[a]||(this.input[a]=""),typeof this.options.beforeInputUpdate=="function"&&this.options.beforeInputUpdate(this);var c=this.utilities.getUpdatedInput(e,this.input[a],this.caretPosition,this.caretPositionEnd);if(this.utilities.isStandardButton(e)&&this.activeInputElement&&this.input[a]&&this.input[a]===c&&this.caretPosition===0&&this.caretPositionEnd===c.length)return this.setInput("",this.options.inputName,!0),this.setCaretPosition(0),this.activeInputElement.value="",this.activeInputElement.setSelectionRange(0,0),void this.handleButtonClicked(e,n);if(typeof this.options.onKeyPress=="function"&&this.options.onKeyPress(e,n),this.input[a]!==c&&(!this.options.inputPattern||this.options.inputPattern&&this.inputPatternIsValid(c))){if(this.options.maxLength&&this.utilities.handleMaxLength(this.input,c))return;var l=this.utilities.getUpdatedInput(e,this.input[a],this.caretPosition,this.caretPositionEnd,!0);if(this.setInput(l,this.options.inputName,!0),s&&console.log("Input changed:",this.getAllInputs()),this.options.debug&&console.log("Caret at: ",this.getCaretPosition(),this.getCaretPositionEnd(),"(".concat(this.keyboardDOMClass,")"),n==null?void 0:n.type),this.options.syncInstanceInputs&&this.syncInstanceInputs(),typeof this.options.onChange=="function"&&this.options.onChange(this.getInput(this.options.inputName,!0),n),typeof this.options.onChangeAll=="function"&&this.options.onChangeAll(this.getAllInputs(),n),n!=null&&n.target&&this.options.enableLayoutCandidates){var f,v=this.getInputCandidates(c),d=v.candidateKey,p=v.candidateValue;d&&p?this.showCandidatesBox(d,p,this.keyboardDOM):(f=this.candidateBox)===null||f===void 0||f.destroy()}}this.caretPositionEnd&&this.caretPosition!==this.caretPositionEnd&&(this.setCaretPosition(this.caretPositionEnd,this.caretPositionEnd),this.activeInputElement&&this.activeInputElement.setSelectionRange(this.caretPositionEnd,this.caretPositionEnd),this.options.debug&&console.log("Caret position aligned",this.caretPosition)),s&&console.log("Key pressed:",e)}}},{key:"getMouseHold",value:function(){return this.isMouseHold}},{key:"setMouseHold",value:function(e){this.options.syncInstanceInputs?this.dispatch(function(n){n.isMouseHold=e}):this.isMouseHold=e}},{key:"handleButtonMouseDown",value:function(e,n){var r=this;n&&(this.options.preventMouseDownDefault&&n.preventDefault(),this.options.stopMouseDownPropagation&&n.stopPropagation(),n.target.classList.add(this.activeButtonClass)),this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),this.holdTimeout&&clearTimeout(this.holdTimeout),this.setMouseHold(!0),this.options.disableButtonHold||(this.holdTimeout=window.setTimeout(function(){(r.getMouseHold()&&(!e.includes("{")&&!e.includes("}")||e==="{delete}"||e==="{backspace}"||e==="{bksp}"||e==="{space}"||e==="{tab}")||e==="{arrowright}"||e==="{arrowleft}"||e==="{arrowup}"||e==="{arrowdown}")&&(r.options.debug&&console.log("Button held:",e),r.handleButtonHold(e)),clearTimeout(r.holdTimeout)},500))}},{key:"handleButtonMouseUp",value:function(e,n){var r=this;n&&(this.options.preventMouseUpDefault&&n.preventDefault&&n.preventDefault(),this.options.stopMouseUpPropagation&&n.stopPropagation&&n.stopPropagation(),!(n.target===this.keyboardDOM||n.target&&this.keyboardDOM.contains(n.target)||this.candidateBox&&this.candidateBox.candidateBoxElement&&(n.target===this.candidateBox.candidateBoxElement||n.target&&this.candidateBox.candidateBoxElement.contains(n.target)))&&this.candidateBox&&this.candidateBox.destroy()),this.recurseButtons(function(o){o.classList.remove(r.activeButtonClass)}),this.setMouseHold(!1),this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),e&&typeof this.options.onKeyReleased=="function"&&this.options.onKeyReleased(e,n)}},{key:"handleKeyboardContainerMouseDown",value:function(e){this.options.preventMouseDownDefault&&e.preventDefault()}},{key:"handleButtonHold",value:function(e){var n=this;this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),this.holdInteractionTimeout=window.setTimeout(function(){n.getMouseHold()?(n.handleButtonClicked(e),n.handleButtonHold(e)):clearTimeout(n.holdInteractionTimeout)},100)}},{key:"syncInstanceInputs",value:function(){var e=this;this.dispatch(function(n){n.replaceInput(e.input),n.setCaretPosition(e.caretPosition,e.caretPositionEnd)})}},{key:"clearInput",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.inputName||this.defaultName;this.input[e]="",this.setCaretPosition(0),this.options.syncInstanceInputs&&this.syncInstanceInputs()}},{key:"getInput",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.inputName||this.defaultName,n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return this.options.syncInstanceInputs&&!n&&this.syncInstanceInputs(),this.options.rtl?""+this.input[e].replace("","").replace("","")+"":this.input[e]}},{key:"getAllInputs",value:function(){var e=this,n={};return Object.keys(this.input).forEach(function(r){n[r]=e.getInput(r,!0)}),n}},{key:"setInput",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.inputName||this.defaultName,r=arguments.length>2?arguments[2]:void 0;this.input[n]=e,!r&&this.options.syncInstanceInputs&&this.syncInstanceInputs()}},{key:"replaceInput",value:function(e){this.input=e}},{key:"setOptions",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=this.changedOptions(e);this.options=Object.assign(this.options,e),n.length&&(this.options.debug&&console.log("changedOptions",n),this.onSetOptions(n),this.render())}},{key:"changedOptions",value:function(e){var n=this;return Object.keys(e).filter(function(r){return JSON.stringify(e[r])!==JSON.stringify(n.options[r])})}},{key:"onSetOptions",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];e.includes("layoutName")&&this.candidateBox&&this.candidateBox.destroy(),(e.includes("layoutCandidatesPageSize")||e.includes("layoutCandidates"))&&this.candidateBox&&(this.candidateBox.destroy(),this.candidateBox=new zt({utilities:this.utilities,options:this.options}))}},{key:"resetRows",value:function(){this.keyboardRowsDOM&&this.keyboardRowsDOM.remove(),this.keyboardDOM.className=this.keyboardDOMClass,this.keyboardDOM.setAttribute("data-skInstance",this.currentInstanceName),this.buttonElements={}}},{key:"dispatch",value:function(e){if(!window.SimpleKeyboardInstances)throw console.warn("SimpleKeyboardInstances is not defined. Dispatch cannot be called."),new Error("INSTANCES_VAR_ERROR");return Object.keys(window.SimpleKeyboardInstances).forEach(function(n){e(window.SimpleKeyboardInstances[n],n)})}},{key:"addButtonTheme",value:function(e,n){var r=this;n&&e&&(e.split(" ").forEach(function(o){n.split(" ").forEach(function(a){r.options.buttonTheme||(r.options.buttonTheme=[]);var s=!1;r.options.buttonTheme.map(function(c){if(c!=null&&c.class.split(" ").includes(a)){s=!0;var l=c.buttons.split(" ");l.includes(o)||(s=!0,l.push(o),c.buttons=l.join(" "))}return c}),s||r.options.buttonTheme.push({class:a,buttons:e})})}),this.render())}},{key:"removeButtonTheme",value:function(e,n){var r=this;if(!e&&!n)return this.options.buttonTheme=[],void this.render();e&&Array.isArray(this.options.buttonTheme)&&this.options.buttonTheme.length&&(e.split(" ").forEach(function(o){var a;(a=r.options)===null||a===void 0||(a=a.buttonTheme)===null||a===void 0||a.map(function(s,c){if(s&&n&&n.includes(s.class)||!n){var l,f,v=(l=s)===null||l===void 0?void 0:l.buttons.split(" ").filter(function(d){return d!==o});s&&v!=null&&v.length?s.buttons=v.join(" "):((f=r.options.buttonTheme)===null||f===void 0||f.splice(c,1),s=null)}return s})}),this.render())}},{key:"getButtonElement",value:function(e){var n,r=this.buttonElements[e];return r&&(n=r.length>1?r:r[0]),n}},{key:"inputPatternIsValid",value:function(e){var n,r=this.options.inputPattern;if((n=r instanceof RegExp?r:r[this.options.inputName||this.defaultName])&&e){var o=n.test(e);return this.options.debug&&console.log('inputPattern ("'.concat(n,'"): ').concat(o?"passed":"did not pass!")),o}return!0}},{key:"setEventListeners",value:function(){if(this.isFirstKeyboardInstance||!this.allKeyboardInstances){this.options.debug&&console.log("Caret handling started (".concat(this.keyboardDOMClass,")"));var e=this.options.physicalKeyboardHighlightPreventDefault,n=e!==void 0&&e;document.addEventListener("keyup",this.handleKeyUp,n),document.addEventListener("keydown",this.handleKeyDown,n),document.addEventListener("mouseup",this.handleMouseUp),document.addEventListener("touchend",this.handleTouchEnd),this.options.updateCaretOnSelectionChange&&document.addEventListener("selectionchange",this.handleSelectionChange),document.addEventListener("select",this.handleSelect)}}},{key:"handleKeyUp",value:function(e){this.caretEventHandler(e),this.options.physicalKeyboardHighlight&&this.physicalKeyboard.handleHighlightKeyUp(e)}},{key:"handleKeyDown",value:function(e){this.options.physicalKeyboardHighlight&&this.physicalKeyboard.handleHighlightKeyDown(e)}},{key:"handleMouseUp",value:function(e){this.caretEventHandler(e)}},{key:"handleTouchEnd",value:function(e){this.caretEventHandler(e)}},{key:"handleSelect",value:function(e){this.caretEventHandler(e)}},{key:"handleSelectionChange",value:function(e){navigator.userAgent.includes("Firefox")||this.caretEventHandler(e)}},{key:"caretEventHandler",value:function(e){var n,r=this;e.target.tagName&&(n=e.target.tagName.toLowerCase()),this.dispatch(function(o){var a=e.target===o.keyboardDOM||e.target&&o.keyboardDOM.contains(e.target);if(r.options.syncInstanceInputs&&Array.isArray(e.path)&&(a=e.path.some(function(l){var f;return l==null||(f=l.hasAttribute)===null||f===void 0?void 0:f.call(l,"data-skInstance")})),(n==="textarea"||n==="input"&&["text","search","url","tel","password"].includes(e.target.type))&&!o.options.disableCaretPositioning){var s=e.target.selectionStart,c=e.target.selectionEnd;o.options.rtl&&(s=o.utilities.getRtlOffset(s,o.getInput()),c=o.utilities.getRtlOffset(c,o.getInput())),o.setCaretPosition(s,c),o.activeInputElement=e.target,o.options.debug&&console.log("Caret at: ",o.getCaretPosition(),o.getCaretPositionEnd(),e&&e.target.tagName.toLowerCase(),"(".concat(o.keyboardDOMClass,")"),e==null?void 0:e.type)}else!o.options.disableCaretPositioning&&a||(e==null?void 0:e.type)==="selectionchange"||(o.setCaretPosition(null),o.activeInputElement=null,o.options.debug&&console.log('Caret position reset due to "'.concat(e==null?void 0:e.type,'" event'),e))})}},{key:"recurseButtons",value:function(e){var n=this;e&&Object.keys(this.buttonElements).forEach(function(r){return n.buttonElements[r].forEach(e)})}},{key:"destroy",value:function(){this.options.debug&&console.log("Destroying simple-keyboard instance: ".concat(this.currentInstanceName));var e=this.options.physicalKeyboardHighlightPreventDefault,n=e!==void 0&&e;document.removeEventListener("keyup",this.handleKeyUp,n),document.removeEventListener("keydown",this.handleKeyDown,n),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("touchend",this.handleTouchEnd),document.removeEventListener("select",this.handleSelect),this.options.updateCaretOnSelectionChange&&document.removeEventListener("selectionchange",this.handleSelectionChange),document.onpointerup=null,document.ontouchend=null,document.ontouchcancel=null,document.onmouseup=null,this.recurseButtons(function(r){r&&(r.onpointerdown=null,r.onpointerup=null,r.onpointercancel=null,r.ontouchstart=null,r.ontouchend=null,r.ontouchcancel=null,r.onclick=null,r.onmousedown=null,r.onmouseup=null,r.remove(),r=null)}),this.keyboardDOM.onpointerdown=null,this.keyboardDOM.ontouchstart=null,this.keyboardDOM.onmousedown=null,this.resetRows(),this.candidateBox&&(this.candidateBox.destroy(),this.candidateBox=null),this.activeInputElement=null,this.keyboardDOM.removeAttribute("data-skInstance"),this.keyboardDOM.innerHTML="",window.SimpleKeyboardInstances[this.currentInstanceName]=null,delete window.SimpleKeyboardInstances[this.currentInstanceName],this.initialized=!1}},{key:"getButtonThemeClasses",value:function(e){var n=this.options.buttonTheme,r=[];return Array.isArray(n)&&n.forEach(function(o){if(o&&o.class&&typeof o.class=="string"&&o.buttons&&typeof o.buttons=="string"){var a=o.class.split(" ");o.buttons.split(" ").includes(e)&&(r=[].concat(Mt(r),Mt(a)))}else console.warn('Incorrect "buttonTheme". Please check the documentation.',o)}),r}},{key:"setDOMButtonAttributes",value:function(e,n){var r=this.options.buttonAttributes;Array.isArray(r)&&r.forEach(function(o){o.attribute&&typeof o.attribute=="string"&&o.value&&typeof o.value=="string"?o.buttons&&typeof o.buttons=="string"?o.buttons.split(" ").includes(e)&&n(o.attribute,o.value):n(o.attribute,o.value):console.warn('Incorrect "buttonAttributes". Please check the documentation.',o)})}},{key:"onTouchDeviceDetected",value:function(){this.processAutoTouchEvents(),this.disableContextualWindow()}},{key:"disableContextualWindow",value:function(){window.oncontextmenu=function(e){var n;if((n=e.target.classList)!==null&&n!==void 0&&n.contains("hg-button"))return e.preventDefault(),e.stopPropagation(),!1}}},{key:"processAutoTouchEvents",value:function(){this.options.autoUseTouchEvents&&(this.options.useTouchEvents=!0,this.options.debug&&console.log("autoUseTouchEvents: Touch device detected, useTouchEvents enabled."))}},{key:"onInit",value:function(){this.options.debug&&console.log("".concat(this.keyboardDOMClass," Initialized")),this.setEventListeners(),typeof this.options.onInit=="function"&&this.options.onInit(this)}},{key:"beforeFirstRender",value:function(){this.utilities.isTouchDevice()&&this.onTouchDeviceDetected(),typeof this.options.beforeFirstRender=="function"&&this.options.beforeFirstRender(this),this.isFirstKeyboardInstance&&this.utilities.pointerEventsSupported()&&!this.options.useTouchEvents&&!this.options.useMouseEvents&&this.options.debug&&console.log("Using PointerEvents as it is supported by this browser"),this.options.useTouchEvents&&this.options.debug&&console.log("useTouchEvents has been enabled. Only touch events will be used.")}},{key:"beforeRender",value:function(){typeof this.options.beforeRender=="function"&&this.options.beforeRender(this)}},{key:"onRender",value:function(){typeof this.options.onRender=="function"&&this.options.onRender(this)}},{key:"onModulesLoaded",value:function(){typeof this.options.onModulesLoaded=="function"&&this.options.onModulesLoaded(this)}},{key:"loadModules",value:function(){var e=this;Array.isArray(this.options.modules)&&(this.options.modules.forEach(function(n){var r=e.utilities.isConstructor(n)?new n(e):n(e);r.init&&r.init(e)}),this.keyboardPluginClasses="modules-loaded",this.render(),this.onModulesLoaded())}},{key:"getModuleProp",value:function(e,n){return!!this.modules[e]&&this.modules[e][n]}},{key:"getModulesList",value:function(){return Object.keys(this.modules)}},{key:"parseRowDOMContainers",value:function(e,n,r,o){var a=this,s=Array.from(e.children),c=0;return s.length&&r.forEach(function(l,f){var v=o[f];if(!(v&&v>l))return!1;var d=l-c,p=v-c,g=document.createElement("div");g.className+="hg-button-container";var h="".concat(a.options.layoutName,"-r").concat(n,"c").concat(f);g.setAttribute("data-skUID",h);var m=s.splice(d,p-d+1);c+=p-d,m.forEach(function(y){return g.appendChild(y)}),s.splice(d,0,g),e.innerHTML="",s.forEach(function(y){return e.appendChild(y)}),a.options.debug&&console.log("rowDOMContainer",m,d,p,c+1)}),e}},{key:"render",value:function(){var e=this;this.resetRows(),this.initialized||this.beforeFirstRender(),this.beforeRender();var n="hg-layout-".concat(this.options.layoutName),r=this.options.layout||{default:["` 1 2 3 4 5 6 7 8 9 0 - = {bksp}","{tab} q w e r t y u i o p [ ] \\","{lock} a s d f g h j k l ; ' {enter}","{shift} z x c v b n m , . / {shift}",".com @ {space}"],shift:["~ ! @ # $ % ^ & * ( ) _ + {bksp}","{tab} Q W E R T Y U I O P { } |",'{lock} A S D F G H J K L : " {enter}',"{shift} Z X C V B N M < > ? {shift}",".com @ {space}"]},o=this.options.useTouchEvents||!1,a=o?"hg-touch-events":"",s=this.options.useMouseEvents||!1,c=this.options.disableRowButtonContainers;this.keyboardDOM.className=this.getKeyboardClassString(this.options.theme,n,this.keyboardPluginClasses,a),this.keyboardDOM.setAttribute("data-skInstance",this.currentInstanceName),this.keyboardRowsDOM=document.createElement("div"),this.keyboardRowsDOM.className="hg-rows",r[this.options.layoutName||this.defaultName].forEach(function(l,f){var v=l.split(" ");e.options.excludeFromLayout&&e.options.excludeFromLayout[e.options.layoutName||e.defaultName]&&(v=v.filter(function(h){return e.options.excludeFromLayout&&!e.options.excludeFromLayout[e.options.layoutName||e.defaultName].includes(h)}));var d=document.createElement("div");d.className+="hg-row";var p=[],g=[];v.forEach(function(h,m){var y,b=!c&&typeof h=="string"&&h.length>1&&h.indexOf("[")===0,x=!c&&typeof h=="string"&&h.length>1&&h.indexOf("]")===h.length-1;b&&(p.push(m),h=h.replace(/\[/g,"")),x&&(g.push(m),h=h.replace(/\]/g,""));var w=e.utilities.getButtonClass(h),k=e.utilities.getButtonDisplayName(h,e.options.display,e.options.mergeDisplay),O=e.options.useButtonTag?"button":"div",E=document.createElement(O);E.className+="hg-button ".concat(w),(y=E.classList).add.apply(y,Mt(e.getButtonThemeClasses(h))),e.setDOMButtonAttributes(h,function(S,D){E.setAttribute(S,D)}),e.activeButtonClass="hg-activeButton",!e.utilities.pointerEventsSupported()||o||s?o?(E.ontouchstart=function(S){e.handleButtonClicked(h,S),e.handleButtonMouseDown(h,S)},E.ontouchend=function(S){e.handleButtonMouseUp(h,S)},E.ontouchcancel=function(S){e.handleButtonMouseUp(h,S)}):(E.onclick=function(S){e.setMouseHold(!1),typeof e.options.onKeyReleased=="function"||e.options.useMouseEvents&&e.options.clickOnMouseDown||e.handleButtonClicked(h,S)},E.onmousedown=function(S){(typeof e.options.onKeyReleased=="function"||e.options.useMouseEvents&&e.options.clickOnMouseDown)&&!e.isMouseHold&&e.handleButtonClicked(h,S),e.handleButtonMouseDown(h,S)},E.onmouseup=function(S){e.handleButtonMouseUp(h,S)}):(E.onpointerdown=function(S){e.handleButtonClicked(h,S),e.handleButtonMouseDown(h,S)},E.onpointerup=function(S){e.handleButtonMouseUp(h,S)},E.onpointercancel=function(S){e.handleButtonMouseUp(h,S)}),E.setAttribute("data-skBtn",h);var P="".concat(e.options.layoutName,"-r").concat(f,"b").concat(m);E.setAttribute("data-skBtnUID",P);var I=document.createElement("span");I.innerHTML=k,E.appendChild(I),e.buttonElements[h]||(e.buttonElements[h]=[]),e.buttonElements[h].push(E),d.appendChild(E)}),d=e.parseRowDOMContainers(d,f,p,g),e.keyboardRowsDOM.appendChild(d)}),this.keyboardDOM.appendChild(this.keyboardRowsDOM),this.onRender(),this.initialized||(this.initialized=!0,!this.utilities.pointerEventsSupported()||o||s?o?(document.ontouchend=function(l){return e.handleButtonMouseUp(void 0,l)},document.ontouchcancel=function(l){return e.handleButtonMouseUp(void 0,l)},this.keyboardDOM.ontouchstart=function(l){return e.handleKeyboardContainerMouseDown(l)}):o||(document.onmouseup=function(l){return e.handleButtonMouseUp(void 0,l)},this.keyboardDOM.onmousedown=function(l){return e.handleKeyboardContainerMouseDown(l)}):(document.onpointerup=function(l){return e.handleButtonMouseUp(void 0,l)},this.keyboardDOM.onpointerdown=function(l){return e.handleKeyboardContainerMouseDown(l)}),this.onInit())}}],u&&Yt(i.prototype,u),t&&Yt(i,t),Object.defineProperty(i,"prototype",{writable:!1}),i;var i,u,t}(),Xt=re,oe=Xt;return Dt}()})}(Rt)),Rt.exports}var se=ue();const ce=ie(se),fe=Object.freeze(Object.defineProperty({__proto__:null,default:ce},Symbol.toStringTag,{value:"Module"}));export{fe as i};