@rainbow-robotics/preview-host 0.1.2-dev.5 → 0.1.2-dev.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +236 -26
- package/build.mjs +2 -1
- package/dist/assets/AmrCapabilityControl.V6oiR3_5.js +1 -0
- package/dist/assets/MapInfo.rg67lYW5.js +1 -0
- package/dist/assets/RBQrBarCodeGuideModal.CegVepfq.js +4939 -0
- package/dist/assets/{__federation_expose_App.B-7yegU_.js → __federation_expose_App.rWoLmFNr.js} +282 -249
- package/dist/assets/__federation_fn_import.DdkEuT6t.js +23 -0
- package/dist/assets/__federation_shared_@emotion/{styled.wOy85H_m.js → styled.ETfwMsQo.js} +1 -1
- package/dist/assets/__federation_shared_@tanstack/{react-query.BqXJhb-5.js → react-query.fVz8BOIk.js} +1 -1
- package/dist/assets/__federation_shared_react-dom.CHMAxKsQ.js +1 -0
- package/dist/assets/{__federation_shared_react-simple-keyboard.BDWRGEbM.js → __federation_shared_react-simple-keyboard.CycbmZUL.js} +3 -3
- package/dist/assets/__federation_shared_react.DhiB56zQ.js +1 -0
- package/dist/assets/{cssMode.BVhnq_6y.js → cssMode.CiNmHTFv.js} +1 -1
- package/dist/assets/{emotion-styled-base.browser.esm.JngGwqgu.js → emotion-styled-base.browser.esm.BIcjgOzg.js} +1 -1
- package/dist/assets/{freemarker2.DtoqwD_L.js → freemarker2.B7r_V28s.js} +1 -1
- package/dist/assets/goalIconAtlas.B2lkzTN6.svg +39 -0
- package/dist/assets/goalIconAtlasReal.BcQvnHD9.svg +34 -0
- package/dist/assets/{handlebars.UmYoTOId.js → handlebars.3_K0j9Im.js} +1 -1
- package/dist/assets/{html.DC0Vlx9N.js → html.DKWAB1mf.js} +1 -1
- package/dist/assets/{htmlMode.cZn_7xZQ.js → htmlMode.CZ2KmtuG.js} +1 -1
- package/dist/assets/{index.CHuCXVak.js → index.B3zY1kf7.js} +1 -1
- package/dist/assets/index.Cn3FZx5U.js +1 -0
- package/dist/assets/index.CvtWB-ew.js +1 -0
- package/dist/assets/index.DhDDHapK.js +1 -0
- package/dist/assets/index.P6snMalu.js +9 -0
- package/dist/assets/{javascript.CxVqa5p8.js → javascript.DE-dWGjy.js} +1 -1
- package/dist/assets/{jsonMode.BQsXaCAy.js → jsonMode.BoVz1jWE.js} +1 -1
- package/dist/assets/jsx-runtime.CBqCNPYB.js +9 -0
- package/dist/assets/keymapTileIndex.worker-Bmd4Ukaf.js +1 -0
- package/dist/assets/{liquid.ctNTffmu.js → liquid.UXJC-JKJ.js} +1 -1
- package/dist/assets/{lspLanguageFeatures.CIBenPTg.js → lspLanguageFeatures.BbVTGB6M.js} +1 -1
- package/dist/assets/{mdx.CEwN4-mU.js → mdx.B7jHdcUF.js} +1 -1
- package/dist/assets/{python.DFiX7UCg.js → python.DqZWylvN.js} +1 -1
- package/dist/assets/{razor.6V_1uJ45.js → razor.Dwj_e3ac.js} +1 -1
- package/dist/assets/remoteEntry.js +1 -1
- package/dist/assets/{tsMode.CtIlnNw7.js → tsMode.DLDaOd78.js} +1 -1
- package/dist/assets/{typescript.D1htxZ_X.js → typescript.B4V2Badx.js} +1 -1
- package/dist/assets/{xml.D6hYgOkJ.js → xml.BpqV0vd6.js} +1 -1
- package/dist/assets/{yaml.BPMLV51E.js → yaml.BlIeL5XV.js} +1 -1
- package/dist/imgs/nexus/forms/gripper/g7_grip_dir_0.png +0 -0
- package/dist/imgs/nexus/forms/gripper/g7_grip_dir_1.png +0 -0
- package/dist/imgs/nexus/forms/gripper/g7_offset.png +0 -0
- package/dist/imgs/nexus/forms/gripper/g7_orientation_0.png +0 -0
- package/dist/imgs/nexus/forms/gripper/g7_orientation_1.png +0 -0
- package/dist/imgs/nexus/forms/gripper/g7_tip_width.png +0 -0
- package/dist/imgs/nexus/forms/gripper/gripper_10.png +0 -0
- package/dist/imgs/nexus/forms/gripper/gripper_7.png +0 -0
- package/dist/imgs/nexus/forms/gripper/gripper_8.png +0 -0
- package/dist/imgs/nexus/forms/gripper/gripper_9.png +0 -0
- package/dist/index.html +11 -10
- package/dist/plugin-shared/plugin-ui_host-ui.js +3 -0
- package/dist/plugin-shared/plugin-ui_react.js +3 -0
- package/dist/plugin-shared/plugin-ui_sdk.js +3 -0
- package/dist/plugin-shared/plugin-ui_ws.js +3 -0
- package/dist/plugin-shared/react-dom.js +4 -0
- package/dist/plugin-shared/react-dom_client.js +3 -0
- package/dist/plugin-shared/react.js +4 -0
- package/dist/plugin-shared/react_jsx-dev-runtime.js +3 -0
- package/dist/plugin-shared/react_jsx-runtime.js +3 -0
- package/package.json +4 -4
- package/serve.mjs +95 -48
- package/dist/assets/AmrCapabilityControl.BppT8lfW.js +0 -1
- package/dist/assets/ConveyorBelt.DYgETvU-.png +0 -0
- package/dist/assets/FactoryMap.CBpf9N92.js +0 -4881
- package/dist/assets/MapInfo.Bit_2DfJ.js +0 -1
- package/dist/assets/__federation_fn_import.Drmbxo5T.js +0 -23
- package/dist/assets/__federation_shared_react-dom.znG_qyPl.js +0 -1
- package/dist/assets/__federation_shared_react.Wsh8dz5j.js +0 -1
- package/dist/assets/_commonjsHelpers.Cpj98o6Y.js +0 -1
- package/dist/assets/index.C3X9hmTL.js +0 -1
- package/dist/assets/index.ChsGqxH_.js +0 -9
- package/dist/assets/index.FxRLAiU5.js +0 -1
- package/dist/assets/index.ayADrA9_.js +0 -1
- package/dist/assets/jsx-runtime.CKZTQYsb.js +0 -9
- package/dist/assets/keymapTileIndex.worker-C2HCGd-D.js +0 -1
- package/dist/plugin-demo/assets/icon.svg +0 -3
- package/dist/plugin-demo/content.js +0 -9149
- package/dist/plugin-demo/manifest.json +0 -25
- package/dist/plugin-demo/sandbox.html +0 -10
- package/dist/plugin-runtime/@rainbow-robotics/plugin-ui/chunks/chunk-AMCIKVG7.js +0 -1
- package/dist/plugin-runtime/@rainbow-robotics/plugin-ui/chunks/chunk-GJWPOWHG.js +0 -1
- package/dist/plugin-runtime/@rainbow-robotics/plugin-ui/chunks/chunk-JRCDA3EG.js +0 -1
- package/dist/plugin-runtime/@rainbow-robotics/plugin-ui/connect.js +0 -1
- package/dist/plugin-runtime/@rainbow-robotics/plugin-ui/elements.js +0 -1
- package/dist/plugin-runtime/@rainbow-robotics/plugin-ui/react.js +0 -1
- package/dist/plugin-runtime/@rainbow-robotics/plugin-ui/sdk.js +0 -1
- package/dist/plugin-runtime/vendor/react-dom-client.js +0 -1
- package/dist/plugin-runtime/vendor/react-jsx-dev-runtime.js +0 -1
- package/dist/plugin-runtime/vendor/react-jsx-runtime.js +0 -1
- package/dist/plugin-runtime/vendor/react-runtime.js +0 -65
- package/dist/plugin-runtime/vendor/react.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{r as fe,g as de}from"./index.P6snMalu.js";var Wt={exports:{}};/*!
|
|
2
2
|
*
|
|
3
3
|
* react-simple-keyboard v3.8.183
|
|
4
4
|
* https://github.com/hodgef/react-simple-keyboard
|
|
@@ -8,7 +8,7 @@ import{g as fe}from"./_commonjsHelpers.Cpj98o6Y.js";import{r as de}from"./index.
|
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
10
|
*
|
|
11
|
-
*/var pe=Wt.exports,ue;function he(){return ue||(ue=1,(function(se,ge){(function(Zt,qt){se.exports=qt(de())})(pe,(function(Zt){return(function(){var qt={981:function(){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(W){if("Element"in W){var ut="classList",it="prototype",D=W.Element[it],pt=Object,vt=String[it].trim||function(){return this.replace(/^\s+|\s+$/g,"")},Ot=Array[it].indexOf||function(V){for(var F=0,tt=this.length;F<tt;F++)if(F in this&&this[F]===V)return F;return-1},It=function(V,F){this.name=V,this.code=DOMException[V],this.message=F},bt=function(V,F){if(F==="")throw new It("SYNTAX_ERR","The token must not be empty.");if(/\s/.test(F))throw new It("INVALID_CHARACTER_ERR","The token must not contain space characters.");return Ot.call(V,F)},Bt=function(V){for(var F=vt.call(V.getAttribute("class")||""),tt=F?F.split(/\s+/):[],nt=0,Et=tt.length;nt<Et;nt++)this.push(tt[nt]);this._updateClassName=function(){V.setAttribute("class",this.toString())}},Y=Bt[it]=[],rt=function(){return new Bt(this)};if(It[it]=Error[it],Y.item=function(V){return this[V]||null},Y.contains=function(V){return~bt(this,V+"")},Y.add=function(){var V,F=arguments,tt=0,nt=F.length,Et=!1;do~bt(this,V=F[tt]+"")||(this.push(V),Et=!0);while(++tt<nt);Et&&this._updateClassName()},Y.remove=function(){var V,F,tt=arguments,nt=0,Et=tt.length,Mt=!1;do for(F=bt(this,V=tt[nt]+"");~F;)this.splice(F,1),Mt=!0,F=bt(this,V);while(++nt<Et);Mt&&this._updateClassName()},Y.toggle=function(V,F){var tt=this.contains(V),nt=tt?F!==!0&&"remove":F!==!1&&"add";return nt&&this[nt](V),F===!0||F===!1?F:!tt},Y.replace=function(V,F){var tt=bt(V+"");~tt&&(this.splice(tt,1,F),this._updateClassName())},Y.toString=function(){return this.join(" ")},pt.defineProperty){var at={get:rt,enumerable:!0,configurable:!0};try{pt.defineProperty(D,ut,at)}catch(V){V.number!==void 0&&V.number!==-2146823252||(at.enumerable=!1,pt.defineProperty(D,ut,at))}}else pt[it].__defineGetter__&&D.__defineGetter__(ut,rt)}})(self),(function(){var W=document.createElement("_");if(W.classList.add("c1","c2"),!W.classList.contains("c2")){var ut=function(D){var pt=DOMTokenList.prototype[D];DOMTokenList.prototype[D]=function(vt){var Ot,It=arguments.length;for(Ot=0;Ot<It;Ot++)vt=arguments[Ot],pt.call(this,vt)}};ut("add"),ut("remove")}if(W.classList.toggle("c3",!1),W.classList.contains("c3")){var it=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(D,pt){return 1 in arguments&&!this.contains(D)==!pt?pt:it.call(this,D)}}"replace"in document.createElement("_").classList||(DOMTokenList.prototype.replace=function(D,pt){var vt=this.toString().split(" "),Ot=vt.indexOf(D+"");~Ot&&(vt=vt.slice(Ot),this.remove.apply(this,vt),this.add(pt),this.add.apply(this,vt.slice(1)))}),W=null})())},548:function(W){W.exports=(function(){var ut={9306:function(i,s,t){var e=t(4901),r=t(6823),n=TypeError;i.exports=function(o){if(e(o))return o;throw new n(r(o)+" is not a function")}},5548:function(i,s,t){var e=t(3517),r=t(6823),n=TypeError;i.exports=function(o){if(e(o))return o;throw new n(r(o)+" is not a constructor")}},3506:function(i,s,t){var e=t(3925),r=String,n=TypeError;i.exports=function(o){if(e(o))return o;throw new n("Can't set "+r(o)+" as a prototype")}},6469:function(i,s,t){var e=t(8227),r=t(2360),n=t(4913).f,o=e("unscopables"),a=Array.prototype;a[o]===void 0&&n(a,o,{configurable:!0,value:r(null)}),i.exports=function(u){a[o][u]=!0}},7829:function(i,s,t){var e=t(8183).charAt;i.exports=function(r,n,o){return n+(o&&e(r,n).length||1)}},8551:function(i,s,t){var e=t(34),r=String,n=TypeError;i.exports=function(o){if(e(o))return o;throw new n(r(o)+" is not an object")}},235:function(i,s,t){var e=t(9213).forEach,r=t(4598)("forEach");i.exports=r?[].forEach:function(n){return e(this,n,arguments.length>1?arguments[1]:void 0)}},7916:function(i,s,t){var e=t(6080),r=t(9565),n=t(8981),o=t(6319),a=t(4209),u=t(3517),c=t(6198),l=t(4659),d=t(4527),v=t(81),p=t(851),f=t(9539),g=Array;i.exports=function(h){var y=u(this),m=arguments.length,b=m>1?arguments[1]:void 0,O=b!==void 0;O&&(b=e(b,m>2?arguments[2]:void 0));var w,S,k,E,P,I,x=n(h),B=p(x),T=0;if(!B||this===g&&a(B))for(w=c(x),S=y?new this(w):g(w);w>T;T++)I=O?b(x[T],T):x[T],l(S,T,I);else for(S=y?new this:[],P=(E=v(x,B)).next;!(k=r(P,E)).done;T++){I=O?o(E,b,[k.value,T],!0):k.value;try{l(S,T,I)}catch(M){f(E,"throw",M)}}return d(S,T),S}},9617:function(i,s,t){var e=t(5397),r=t(5610),n=t(6198),o=function(a){return function(u,c,l){var d=e(u),v=n(d);if(v===0)return!a&&-1;var p,f=r(l,v);if(a&&c!=c){for(;v>f;)if((p=d[f++])!=p)return!0}else for(;v>f;f++)if((a||f in d)&&d[f]===c)return a||f||0;return!a&&-1}};i.exports={includes:o(!0),indexOf:o(!1)}},9213:function(i,s,t){var e=t(6080),r=t(7055),n=t(8981),o=t(6198),a=t(1469),u=t(4659),c=function(l){var d=l===1,v=l===2,p=l===3,f=l===4,g=l===6,h=l===7,y=l===5||g;return function(m,b,O){for(var w,S,k=n(m),E=r(k),P=o(E),I=e(b,O),x=0,B=0,T=d?a(m,P):v||h?a(m,0):void 0;P>x;x++)if((y||x in E)&&(S=I(w=E[x],x,k),l))if(d)u(T,x,S);else if(S)switch(l){case 3:return!0;case 5:return w;case 6:return x;case 2:u(T,B++,w)}else switch(l){case 4:return!1;case 7:u(T,B++,w)}return g?-1:p||f?f:T}};i.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},597:function(i,s,t){var e=t(9039),r=t(8227),n=t(9519),o=r("species");i.exports=function(a){return n>=51||!e((function(){var u=[];return(u.constructor={})[o]=function(){return{foo:1}},u[a](Boolean).foo!==1}))}},4598:function(i,s,t){var e=t(9039);i.exports=function(r,n){var o=[][r];return!!o&&e((function(){o.call(null,n||function(){return 1},1)}))}},926:function(i,s,t){var e=t(9306),r=t(8981),n=t(7055),o=t(6198),a=TypeError,u="Reduce of empty array with no initial value",c=function(l){return function(d,v,p,f){var g=r(d),h=n(g),y=o(g);if(e(v),y===0&&p<2)throw new a(u);var m=l?y-1:0,b=l?-1:1;if(p<2)for(;;){if(m in h){f=h[m],m+=b;break}if(m+=b,l?m<0:y<=m)throw new a(u)}for(;l?m>=0:y>m;m+=b)m in h&&(f=v(f,h[m],m,g));return f}};i.exports={left:c(!1),right:c(!0)}},4527:function(i,s,t){var e=t(3724),r=t(4376),n=TypeError,o=Object.getOwnPropertyDescriptor,a=e&&!(function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(u){return u instanceof TypeError}})();i.exports=a?function(u,c){if(r(u)&&!o(u,"length").writable)throw new n("Cannot set read only .length");return u.length=c}:function(u,c){return u.length=c}},7680:function(i,s,t){var e=t(9504);i.exports=e([].slice)},4488:function(i,s,t){var e=t(7680),r=Math.floor,n=function(o,a){var u=o.length;if(u<8)for(var c,l,d=1;d<u;){for(l=d,c=o[d];l&&a(o[l-1],c)>0;)o[l]=o[--l];l!==d++&&(o[l]=c)}else for(var v=r(u/2),p=n(e(o,0,v),a),f=n(e(o,v),a),g=p.length,h=f.length,y=0,m=0;y<g||m<h;)o[y+m]=y<g&&m<h?a(p[y],f[m])<=0?p[y++]:f[m++]:y<g?p[y++]:f[m++];return o};i.exports=n},7433:function(i,s,t){var e=t(4376),r=t(3517),n=t(34),o=t(8227)("species"),a=Array;i.exports=function(u){var c;return e(u)&&(c=u.constructor,(r(c)&&(c===a||e(c.prototype))||n(c)&&(c=c[o])===null)&&(c=void 0)),c===void 0?a:c}},1469:function(i,s,t){var e=t(7433);i.exports=function(r,n){return new(e(r))(n===0?0:n)}},6319:function(i,s,t){var e=t(8551),r=t(9539);i.exports=function(n,o,a,u){try{return u?o(e(a)[0],a[1]):o(a)}catch(c){r(n,"throw",c)}}},4428:function(i,s,t){var e=t(8227)("iterator"),r=!1;try{var n=0,o={next:function(){return{done:!!n++}},return:function(){r=!0}};o[e]=function(){return this},Array.from(o,(function(){throw 2}))}catch{}i.exports=function(a,u){try{if(!u&&!r)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}},2195:function(i,s,t){var e=t(9504),r=e({}.toString),n=e("".slice);i.exports=function(o){return n(r(o),8,-1)}},6955:function(i,s,t){var e=t(2140),r=t(4901),n=t(2195),o=t(8227)("toStringTag"),a=Object,u=n((function(){return arguments})())==="Arguments";i.exports=e?n:function(c){var l,d,v;return c===void 0?"Undefined":c===null?"Null":typeof(d=(function(p,f){try{return p[f]}catch{}})(l=a(c),o))=="string"?d:u?n(l):(v=n(l))==="Object"&&r(l.callee)?"Arguments":v}},7740:function(i,s,t){var e=t(9297),r=t(5031),n=t(7347),o=t(4913);i.exports=function(a,u,c){for(var l=r(u),d=o.f,v=n.f,p=0;p<l.length;p++){var f=l[p];e(a,f)||c&&e(c,f)||d(a,f,v(u,f))}}},1436:function(i,s,t){var e=t(8227)("match");i.exports=function(r){var n=/./;try{"/./"[r](n)}catch{try{return n[e]=!1,"/./"[r](n)}catch{}}return!1}},2211:function(i,s,t){var e=t(9039);i.exports=!e((function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype}))},2529:function(i){i.exports=function(s,t){return{value:s,done:t}}},6699:function(i,s,t){var e=t(3724),r=t(4913),n=t(6980);i.exports=e?function(o,a,u){return r.f(o,a,n(1,u))}:function(o,a,u){return o[a]=u,o}},6980:function(i){i.exports=function(s,t){return{enumerable:!(1&s),configurable:!(2&s),writable:!(4&s),value:t}}},4659:function(i,s,t){var e=t(3724),r=t(4913),n=t(6980);i.exports=function(o,a,u){e?r.f(o,a,n(0,u)):o[a]=u}},3640:function(i,s,t){var e=t(8551),r=t(4270),n=TypeError;i.exports=function(o){if(e(this),o==="string"||o==="default")o="string";else if(o!=="number")throw new n("Incorrect hint");return r(this,o)}},2106:function(i,s,t){var e=t(283),r=t(4913);i.exports=function(n,o,a){return a.get&&e(a.get,o,{getter:!0}),a.set&&e(a.set,o,{setter:!0}),r.f(n,o,a)}},6840:function(i,s,t){var e=t(4901),r=t(4913),n=t(283),o=t(9433);i.exports=function(a,u,c,l){l||(l={});var d=l.enumerable,v=l.name!==void 0?l.name:u;if(e(c)&&n(c,v,l),l.global)d?a[u]=c:o(u,c);else{try{l.unsafe?a[u]&&(d=!0):delete a[u]}catch{}d?a[u]=c:r.f(a,u,{value:c,enumerable:!1,configurable:!l.nonConfigurable,writable:!l.nonWritable})}return a}},9433:function(i,s,t){var e=t(4576),r=Object.defineProperty;i.exports=function(n,o){try{r(e,n,{value:o,configurable:!0,writable:!0})}catch{e[n]=o}return o}},4606:function(i,s,t){var e=t(6823),r=TypeError;i.exports=function(n,o){if(!delete n[o])throw new r("Cannot delete property "+e(o)+" of "+e(n))}},3724:function(i,s,t){var e=t(9039);i.exports=!e((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}))},4055:function(i,s,t){var e=t(4576),r=t(34),n=e.document,o=r(n)&&r(n.createElement);i.exports=function(a){return o?n.createElement(a):{}}},6837:function(i){var s=TypeError;i.exports=function(t){if(t>9007199254740991)throw new s("Maximum allowed index exceeded");return t}},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}},9296:function(i,s,t){var e=t(4055)("span").classList,r=e&&e.constructor&&e.constructor.prototype;i.exports=r===Object.prototype?void 0:r},8727:function(i){i.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3709:function(i,s,t){var e=t(2839).match(/firefox\/(\d+)/i);i.exports=!!e&&+e[1]},3763:function(i,s,t){var e=t(2839);i.exports=/MSIE|Trident/.test(e)},6193:function(i,s,t){var e=t(4215);i.exports=e==="NODE"},2839:function(i,s,t){var e=t(4576).navigator,r=e&&e.userAgent;i.exports=r?String(r):""},9519:function(i,s,t){var e,r,n=t(4576),o=t(2839),a=n.process,u=n.Deno,c=a&&a.versions||u&&u.version,l=c&&c.v8;l&&(r=(e=l.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!r&&o&&(!(e=o.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=o.match(/Chrome\/(\d+)/))&&(r=+e[1]),i.exports=r},3607:function(i,s,t){var e=t(2839).match(/AppleWebKit\/(\d+)\./);i.exports=!!e&&+e[1]},4215:function(i,s,t){var e=t(4576),r=t(2839),n=t(2195),o=function(a){return r.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":n(e.process)==="process"?"NODE":e.window&&e.document?"BROWSER":"REST"},6518:function(i,s,t){var e=t(4576),r=t(7347).f,n=t(6699),o=t(6840),a=t(9433),u=t(7740),c=t(2796);i.exports=function(l,d){var v,p,f,g,h,y=l.target,m=l.global,b=l.stat;if(v=m?e:b?e[y]||a(y,{}):e[y]&&e[y].prototype)for(p in d){if(g=d[p],f=l.dontCallGetSet?(h=r(v,p))&&h.value:v[p],!c(m?p:y+(b?".":"#")+p,l.forced)&&f!==void 0){if(typeof g==typeof f)continue;u(g,f)}(l.sham||f&&f.sham)&&n(g,"sham",!0),o(v,p,g,l)}}},9039:function(i){i.exports=function(s){try{return!!s()}catch{return!0}}},9228:function(i,s,t){t(7495);var e=t(9565),r=t(6840),n=t(7323),o=t(9039),a=t(8227),u=t(6699),c=a("species"),l=RegExp.prototype;i.exports=function(d,v,p,f){var g=a(d),h=!o((function(){var O={};return O[g]=function(){return 7},""[d](O)!==7})),y=h&&!o((function(){var O=!1,w=/a/;if(d==="split"){var S={};S[c]=function(){return w},(w={constructor:S,flags:""})[g]=/./[g]}return w.exec=function(){return O=!0,null},w[g](""),!O}));if(!h||!y||p){var m=/./[g],b=v(g,""[d],(function(O,w,S,k,E){var P=w.exec;return P===n||P===l.exec?h&&!E?{done:!0,value:e(m,w,S,k)}:{done:!0,value:e(O,S,w,k)}:{done:!1}}));r(String.prototype,d,b[0]),r(l,g,b[1])}f&&u(l[g],"sham",!0)}},8745:function(i,s,t){var e=t(616),r=Function.prototype,n=r.apply,o=r.call;i.exports=typeof Reflect=="object"&&Reflect.apply||(e?o.bind(n):function(){return o.apply(n,arguments)})},6080:function(i,s,t){var e=t(7476),r=t(9306),n=t(616),o=e(e.bind);i.exports=function(a,u){return r(a),u===void 0?a:n?o(a,u):function(){return a.apply(u,arguments)}}},616:function(i,s,t){var e=t(9039);i.exports=!e((function(){var r=function(){}.bind();return typeof r!="function"||r.hasOwnProperty("prototype")}))},566:function(i,s,t){var e=t(9504),r=t(9306),n=t(34),o=t(9297),a=t(7680),u=t(616),c=Function,l=e([].concat),d=e([].join),v={};i.exports=u?c.bind:function(p){var f=r(this),g=f.prototype,h=a(arguments,1),y=function(){var m=l(h,a(arguments));return this instanceof y?(function(b,O,w){if(!o(v,O)){for(var S=[],k=0;k<O;k++)S[k]="a["+k+"]";v[O]=c("C,a","return new C("+d(S,",")+")")}return v[O](b,w)})(f,m.length,m):f.apply(p,m)};return n(g)&&(y.prototype=g),y}},9565:function(i,s,t){var e=t(616),r=Function.prototype.call;i.exports=e?r.bind(r):function(){return r.apply(r,arguments)}},350:function(i,s,t){var e=t(3724),r=t(9297),n=Function.prototype,o=e&&Object.getOwnPropertyDescriptor,a=r(n,"name"),u=a&&function(){}.name==="something",c=a&&(!e||e&&o(n,"name").configurable);i.exports={EXISTS:a,PROPER:u,CONFIGURABLE:c}},6706:function(i,s,t){var e=t(9504),r=t(9306);i.exports=function(n,o,a){try{return e(r(Object.getOwnPropertyDescriptor(n,o)[a]))}catch{}}},7476:function(i,s,t){var e=t(2195),r=t(9504);i.exports=function(n){if(e(n)==="Function")return r(n)}},9504:function(i,s,t){var e=t(616),r=Function.prototype,n=r.call,o=e&&r.bind.bind(n,n);i.exports=e?o:function(a){return function(){return n.apply(a,arguments)}}},7751:function(i,s,t){var e=t(4576),r=t(4901);i.exports=function(n,o){return arguments.length<2?(a=e[n],r(a)?a:void 0):e[n]&&e[n][o];var a}},851:function(i,s,t){var e=t(6955),r=t(5966),n=t(4117),o=t(6269),a=t(8227)("iterator");i.exports=function(u){if(!n(u))return r(u,a)||r(u,"@@iterator")||o[e(u)]}},81:function(i,s,t){var e=t(9565),r=t(9306),n=t(8551),o=t(6823),a=t(851),u=TypeError;i.exports=function(c,l){var d=arguments.length<2?a(c):l;if(r(d))return n(e(d,c));throw new u(o(c)+" is not iterable")}},5966:function(i,s,t){var e=t(9306),r=t(4117);i.exports=function(n,o){var a=n[o];return r(a)?void 0:e(a)}},2478:function(i,s,t){var e=t(9504),r=t(8981),n=Math.floor,o=e("".charAt),a=e("".replace),u=e("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;i.exports=function(d,v,p,f,g,h){var y=p+d.length,m=f.length,b=l;return g!==void 0&&(g=r(g),b=c),a(h,b,(function(O,w){var S;switch(o(w,0)){case"$":return"$";case"&":return d;case"`":return u(v,0,p);case"'":return u(v,y);case"<":S=g[u(w,1,-1)];break;default:var k=+w;if(k===0)return O;if(k>m){var E=n(k/10);return E===0?O:E<=m?f[E-1]===void 0?o(w,1):f[E-1]+o(w,1):O}S=f[k-1]}return S===void 0?"":S}))}},4576:function(i,s,t){var e=function(r){return r&&r.Math===Math&&r};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")()},9297:function(i,s,t){var e=t(9504),r=t(8981),n=e({}.hasOwnProperty);i.exports=Object.hasOwn||function(o,a){return n(r(o),a)}},421:function(i){i.exports={}},397:function(i,s,t){var e=t(7751);i.exports=e("document","documentElement")},5917:function(i,s,t){var e=t(3724),r=t(9039),n=t(4055);i.exports=!e&&!r((function(){return Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a!==7}))},7055:function(i,s,t){var e=t(9504),r=t(9039),n=t(2195),o=Object,a=e("".split);i.exports=r((function(){return!o("z").propertyIsEnumerable(0)}))?function(u){return n(u)==="String"?a(u,""):o(u)}:o},3167:function(i,s,t){var e=t(4901),r=t(34),n=t(2967);i.exports=function(o,a,u){var c,l;return n&&e(c=a.constructor)&&c!==u&&r(l=c.prototype)&&l!==u.prototype&&n(o,l),o}},3706:function(i,s,t){var e=t(9504),r=t(4901),n=t(7629),o=e(Function.toString);r(n.inspectSource)||(n.inspectSource=function(a){return o(a)}),i.exports=n.inspectSource},1181:function(i,s,t){var e,r,n,o=t(8622),a=t(4576),u=t(34),c=t(6699),l=t(9297),d=t(7629),v=t(6119),p=t(421),f="Object already initialized",g=a.TypeError,h=a.WeakMap;if(o||d.state){var y=d.state||(d.state=new h);y.get=y.get,y.has=y.has,y.set=y.set,e=function(b,O){if(y.has(b))throw new g(f);return O.facade=b,y.set(b,O),O},r=function(b){return y.get(b)||{}},n=function(b){return y.has(b)}}else{var m=v("state");p[m]=!0,e=function(b,O){if(l(b,m))throw new g(f);return O.facade=b,c(b,m,O),O},r=function(b){return l(b,m)?b[m]:{}},n=function(b){return l(b,m)}}i.exports={set:e,get:r,has:n,enforce:function(b){return n(b)?r(b):e(b,{})},getterFor:function(b){return function(O){var w;if(!u(O)||(w=r(O)).type!==b)throw new g("Incompatible receiver, "+b+" required");return w}}}},4209:function(i,s,t){var e=t(8227),r=t(6269),n=e("iterator"),o=Array.prototype;i.exports=function(a){return a!==void 0&&(r.Array===a||o[n]===a)}},4376:function(i,s,t){var e=t(2195);i.exports=Array.isArray||function(r){return e(r)==="Array"}},4901:function(i){var s=typeof document=="object"&&document.all;i.exports=s===void 0&&s!==void 0?function(t){return typeof t=="function"||t===s}:function(t){return typeof t=="function"}},3517:function(i,s,t){var e=t(9504),r=t(9039),n=t(4901),o=t(6955),a=t(7751),u=t(3706),c=function(){},l=a("Reflect","construct"),d=/^\s*(?:class|function)\b/,v=e(d.exec),p=!d.test(c),f=function(h){if(!n(h))return!1;try{return l(c,[],h),!0}catch{return!1}},g=function(h){if(!n(h))return!1;switch(o(h)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!v(d,u(h))}catch{return!0}};g.sham=!0,i.exports=!l||r((function(){var h;return f(f.call)||!f(Object)||!f((function(){h=!0}))||h}))?g:f},2796:function(i,s,t){var e=t(9039),r=t(4901),n=/#|\.prototype\./,o=function(d,v){var p=u[a(d)];return p===l||p!==c&&(r(v)?e(v):!!v)},a=o.normalize=function(d){return String(d).replace(n,".").toLowerCase()},u=o.data={},c=o.NATIVE="N",l=o.POLYFILL="P";i.exports=o},2087:function(i,s,t){var e=t(34),r=Math.floor;i.exports=Number.isInteger||function(n){return!e(n)&&isFinite(n)&&r(n)===n}},4117:function(i){i.exports=function(s){return s==null}},34:function(i,s,t){var e=t(4901);i.exports=function(r){return typeof r=="object"?r!==null:e(r)}},3925:function(i,s,t){var e=t(34);i.exports=function(r){return e(r)||r===null}},6395:function(i){i.exports=!1},5810:function(i,s,t){var e=t(34),r=t(1181).get;i.exports=function(n){if(!e(n))return!1;var o=r(n);return!!o&&o.type==="RawJSON"}},788:function(i,s,t){var e=t(34),r=t(2195),n=t(8227)("match");i.exports=function(o){var a;return e(o)&&((a=o[n])!==void 0?!!a:r(o)==="RegExp")}},757:function(i,s,t){var e=t(7751),r=t(4901),n=t(1625),o=t(7040),a=Object;i.exports=o?function(u){return typeof u=="symbol"}:function(u){var c=e("Symbol");return r(c)&&n(c.prototype,a(u))}},9539:function(i,s,t){var e=t(9565),r=t(8551),n=t(5966);i.exports=function(o,a,u){var c,l;r(o);try{if(!(c=n(o,"return"))){if(a==="throw")throw u;return u}c=e(c,o)}catch(d){l=!0,c=d}if(a==="throw")throw u;if(l)throw c;return r(c),u}},3994:function(i,s,t){var e=t(7657).IteratorPrototype,r=t(2360),n=t(6980),o=t(687),a=t(6269),u=function(){return this};i.exports=function(c,l,d,v){var p=l+" Iterator";return c.prototype=r(e,{next:n(+!v,d)}),o(c,p,!1,!0),a[p]=u,c}},1088:function(i,s,t){var e=t(6518),r=t(9565),n=t(6395),o=t(350),a=t(4901),u=t(3994),c=t(2787),l=t(2967),d=t(687),v=t(6699),p=t(6840),f=t(8227),g=t(6269),h=t(7657),y=o.PROPER,m=o.CONFIGURABLE,b=h.IteratorPrototype,O=h.BUGGY_SAFARI_ITERATORS,w=f("iterator"),S="keys",k="values",E="entries",P=function(){return this};i.exports=function(I,x,B,T,M,q,j){u(B,x,T);var U,H,R,K=function(L){if(L===M&&C)return C;if(!O&&L&&L in N)return N[L];switch(L){case S:case k:case E:return function(){return new B(this,L)}}return function(){return new B(this)}},z=x+" Iterator",J=!1,N=I.prototype,A=N[w]||N["@@iterator"]||M&&N[M],C=!O&&A||K(M),$=x==="Array"&&N.entries||A;if($&&(U=c($.call(new I)))!==Object.prototype&&U.next&&(n||c(U)===b||(l?l(U,b):a(U[w])||p(U,w,P)),d(U,z,!0,!0),n&&(g[z]=P)),y&&M===k&&A&&A.name!==k&&(!n&&m?v(N,"name",k):(J=!0,C=function(){return r(A,this)})),M)if(H={values:K(k),keys:q?C:K(S),entries:K(E)},j)for(R in H)(O||J||!(R in N))&&p(N,R,H[R]);else e({target:x,proto:!0,forced:O||J},H);return n&&!j||N[w]===C||p(N,w,C,{name:M}),g[x]=C,H}},7657:function(i,s,t){var e,r,n,o=t(9039),a=t(4901),u=t(34),c=t(2360),l=t(2787),d=t(6840),v=t(8227),p=t(6395),f=v("iterator"),g=!1;[].keys&&("next"in(n=[].keys())?(r=l(l(n)))!==Object.prototype&&(e=r):g=!0),!u(e)||o((function(){var h={};return e[f].call(h)!==h}))?e={}:p&&(e=c(e)),a(e[f])||d(e,f,(function(){return this})),i.exports={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:g}},6269:function(i){i.exports={}},6198:function(i,s,t){var e=t(8014);i.exports=function(r){return e(r.length)}},283:function(i,s,t){var e=t(9504),r=t(9039),n=t(4901),o=t(9297),a=t(3724),u=t(350).CONFIGURABLE,c=t(3706),l=t(1181),d=l.enforce,v=l.get,p=String,f=Object.defineProperty,g=e("".slice),h=e("".replace),y=e([].join),m=a&&!r((function(){return f((function(){}),"length",{value:8}).length!==8})),b=String(String).split("String"),O=i.exports=function(w,S,k){g(p(S),0,7)==="Symbol("&&(S="["+h(p(S),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),k&&k.getter&&(S="get "+S),k&&k.setter&&(S="set "+S),(!o(w,"name")||u&&w.name!==S)&&(a?f(w,"name",{value:S,configurable:!0}):w.name=S),m&&k&&o(k,"arity")&&w.length!==k.arity&&f(w,"length",{value:k.arity});try{k&&o(k,"constructor")&&k.constructor?a&&f(w,"prototype",{writable:!1}):w.prototype&&(w.prototype=void 0)}catch{}var E=d(w);return o(E,"source")||(E.source=y(b,typeof S=="string"?S:"")),w};Function.prototype.toString=O((function(){return n(this)&&v(this).source||c(this)}),"toString")},741:function(i){var s=Math.ceil,t=Math.floor;i.exports=Math.trunc||function(e){var r=+e;return(r>0?t:s)(r)}},7819:function(i,s,t){var e=t(9039);i.exports=!e((function(){var r="9007199254740993",n=JSON.rawJSON(r);return!JSON.isRawJSON(n)||JSON.stringify(n)!==r}))},5749:function(i,s,t){var e=t(788),r=TypeError;i.exports=function(n){if(e(n))throw new r("The method doesn't accept regular expressions");return n}},4213:function(i,s,t){var e=t(3724),r=t(9504),n=t(9565),o=t(9039),a=t(1072),u=t(3717),c=t(8773),l=t(8981),d=t(7055),v=Object.assign,p=Object.defineProperty,f=r([].concat);i.exports=!v||o((function(){if(e&&v({b:1},v(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var g={},h={},y=Symbol("assign detection"),m="abcdefghijklmnopqrst";return g[y]=7,m.split("").forEach((function(b){h[b]=b})),v({},g)[y]!==7||a(v({},h)).join("")!==m}))?function(g,h){for(var y=l(g),m=arguments.length,b=1,O=u.f,w=c.f;m>b;)for(var S,k=d(arguments[b++]),E=O?f(a(k),O(k)):a(k),P=E.length,I=0;P>I;)S=E[I++],e&&!n(w,k,S)||(y[S]=k[S]);return y}:v},2360:function(i,s,t){var e,r=t(8551),n=t(6801),o=t(8727),a=t(421),u=t(397),c=t(4055),l=t(6119),d="prototype",v="script",p=l("IE_PROTO"),f=function(){},g=function(m){return"<"+v+">"+m+"</"+v+">"},h=function(m){m.write(g("")),m.close();var b=m.parentWindow.Object;return m=null,b},y=function(){try{e=new ActiveXObject("htmlfile")}catch{}var m,b,O;y=typeof document<"u"?document.domain&&e?h(e):(b=c("iframe"),O="java"+v+":",b.style.display="none",u.appendChild(b),b.src=String(O),(m=b.contentWindow.document).open(),m.write(g("document.F=Object")),m.close(),m.F):h(e);for(var w=o.length;w--;)delete y[d][o[w]];return y()};a[p]=!0,i.exports=Object.create||function(m,b){var O;return m!==null?(f[d]=r(m),O=new f,f[d]=null,O[p]=m):O=y(),b===void 0?O:n.f(O,b)}},6801:function(i,s,t){var e=t(3724),r=t(8686),n=t(4913),o=t(8551),a=t(5397),u=t(1072);s.f=e&&!r?Object.defineProperties:function(c,l){o(c);for(var d,v=a(l),p=u(l),f=p.length,g=0;f>g;)n.f(c,d=p[g++],v[d]);return c}},4913:function(i,s,t){var e=t(3724),r=t(5917),n=t(8686),o=t(8551),a=t(6969),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,d="enumerable",v="configurable",p="writable";s.f=e?n?function(f,g,h){if(o(f),g=a(g),o(h),typeof f=="function"&&g==="prototype"&&"value"in h&&p in h&&!h[p]){var y=l(f,g);y&&y[p]&&(f[g]=h.value,h={configurable:v in h?h[v]:y[v],enumerable:d in h?h[d]:y[d],writable:!1})}return c(f,g,h)}:c:function(f,g,h){if(o(f),g=a(g),o(h),r)try{return c(f,g,h)}catch{}if("get"in h||"set"in h)throw new u("Accessors not supported");return"value"in h&&(f[g]=h.value),f}},7347:function(i,s,t){var e=t(3724),r=t(9565),n=t(8773),o=t(6980),a=t(5397),u=t(6969),c=t(9297),l=t(5917),d=Object.getOwnPropertyDescriptor;s.f=e?d:function(v,p){if(v=a(v),p=u(p),l)try{return d(v,p)}catch{}if(c(v,p))return o(!r(n.f,v,p),v[p])}},298:function(i,s,t){var e=t(2195),r=t(5397),n=t(8480).f,o=t(7680),a=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];i.exports.f=function(u){return a&&e(u)==="Window"?(function(c){try{return n(c)}catch{return o(a)}})(u):n(r(u))}},8480:function(i,s,t){var e=t(1828),r=t(8727).concat("length","prototype");s.f=Object.getOwnPropertyNames||function(n){return e(n,r)}},3717:function(i,s){s.f=Object.getOwnPropertySymbols},2787:function(i,s,t){var e=t(9297),r=t(4901),n=t(8981),o=t(6119),a=t(2211),u=o("IE_PROTO"),c=Object,l=c.prototype;i.exports=a?c.getPrototypeOf:function(d){var v=n(d);if(e(v,u))return v[u];var p=v.constructor;return r(p)&&v instanceof p?p.prototype:v instanceof c?l:null}},1625:function(i,s,t){var e=t(9504);i.exports=e({}.isPrototypeOf)},1828:function(i,s,t){var e=t(9504),r=t(9297),n=t(5397),o=t(9617).indexOf,a=t(421),u=e([].push);i.exports=function(c,l){var d,v=n(c),p=0,f=[];for(d in v)!r(a,d)&&r(v,d)&&u(f,d);for(;l.length>p;)r(v,d=l[p++])&&(~o(f,d)||u(f,d));return f}},1072:function(i,s,t){var e=t(1828),r=t(8727);i.exports=Object.keys||function(n){return e(n,r)}},8773:function(i,s){var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,r=e&&!t.call({1:2},1);s.f=r?function(n){var o=e(this,n);return!!o&&o.enumerable}:t},2551:function(i,s,t){var e=t(6395),r=t(4576),n=t(9039),o=t(3607);i.exports=e||!n((function(){if(!(o&&o<535)){var a=Math.random();__defineSetter__.call(null,a,(function(){})),delete r[a]}}))},2967:function(i,s,t){var e=t(6706),r=t(34),n=t(7750),o=t(3506);i.exports=Object.setPrototypeOf||("__proto__"in{}?(function(){var a,u=!1,c={};try{(a=e(Object.prototype,"__proto__","set"))(c,[]),u=c instanceof Array}catch{}return function(l,d){return n(l),o(d),r(l)&&(u?a(l,d):l.__proto__=d),l}})():void 0)},3179:function(i,s,t){var e=t(2140),r=t(6955);i.exports=e?{}.toString:function(){return"[object "+r(this)+"]"}},4270:function(i,s,t){var e=t(9565),r=t(4901),n=t(34),o=TypeError;i.exports=function(a,u){var c,l;if(u==="string"&&r(c=a.toString)&&!n(l=e(c,a))||r(c=a.valueOf)&&!n(l=e(c,a))||u!=="string"&&r(c=a.toString)&&!n(l=e(c,a)))return l;throw new o("Can't convert object to primitive value")}},5031:function(i,s,t){var e=t(7751),r=t(9504),n=t(8480),o=t(3717),a=t(8551),u=r([].concat);i.exports=e("Reflect","ownKeys")||function(c){var l=n.f(a(c)),d=o.f;return d?u(l,d(c)):l}},8235:function(i,s,t){var e=t(9504),r=t(9297),n=SyntaxError,o=parseInt,a=String.fromCharCode,u=e("".charAt),c=e("".slice),l=e(/./.exec),d={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":`
|
|
11
|
+
*/var pe=Wt.exports,ue;function he(){return ue||(ue=1,(function(se,ge){(function(Zt,qt){se.exports=qt(fe())})(pe,(function(Zt){return(function(){var qt={981:function(){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(W){if("Element"in W){var ut="classList",it="prototype",D=W.Element[it],pt=Object,vt=String[it].trim||function(){return this.replace(/^\s+|\s+$/g,"")},Ot=Array[it].indexOf||function(V){for(var F=0,tt=this.length;F<tt;F++)if(F in this&&this[F]===V)return F;return-1},It=function(V,F){this.name=V,this.code=DOMException[V],this.message=F},bt=function(V,F){if(F==="")throw new It("SYNTAX_ERR","The token must not be empty.");if(/\s/.test(F))throw new It("INVALID_CHARACTER_ERR","The token must not contain space characters.");return Ot.call(V,F)},Bt=function(V){for(var F=vt.call(V.getAttribute("class")||""),tt=F?F.split(/\s+/):[],nt=0,Et=tt.length;nt<Et;nt++)this.push(tt[nt]);this._updateClassName=function(){V.setAttribute("class",this.toString())}},Y=Bt[it]=[],rt=function(){return new Bt(this)};if(It[it]=Error[it],Y.item=function(V){return this[V]||null},Y.contains=function(V){return~bt(this,V+"")},Y.add=function(){var V,F=arguments,tt=0,nt=F.length,Et=!1;do~bt(this,V=F[tt]+"")||(this.push(V),Et=!0);while(++tt<nt);Et&&this._updateClassName()},Y.remove=function(){var V,F,tt=arguments,nt=0,Et=tt.length,Mt=!1;do for(F=bt(this,V=tt[nt]+"");~F;)this.splice(F,1),Mt=!0,F=bt(this,V);while(++nt<Et);Mt&&this._updateClassName()},Y.toggle=function(V,F){var tt=this.contains(V),nt=tt?F!==!0&&"remove":F!==!1&&"add";return nt&&this[nt](V),F===!0||F===!1?F:!tt},Y.replace=function(V,F){var tt=bt(V+"");~tt&&(this.splice(tt,1,F),this._updateClassName())},Y.toString=function(){return this.join(" ")},pt.defineProperty){var at={get:rt,enumerable:!0,configurable:!0};try{pt.defineProperty(D,ut,at)}catch(V){V.number!==void 0&&V.number!==-2146823252||(at.enumerable=!1,pt.defineProperty(D,ut,at))}}else pt[it].__defineGetter__&&D.__defineGetter__(ut,rt)}})(self),(function(){var W=document.createElement("_");if(W.classList.add("c1","c2"),!W.classList.contains("c2")){var ut=function(D){var pt=DOMTokenList.prototype[D];DOMTokenList.prototype[D]=function(vt){var Ot,It=arguments.length;for(Ot=0;Ot<It;Ot++)vt=arguments[Ot],pt.call(this,vt)}};ut("add"),ut("remove")}if(W.classList.toggle("c3",!1),W.classList.contains("c3")){var it=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(D,pt){return 1 in arguments&&!this.contains(D)==!pt?pt:it.call(this,D)}}"replace"in document.createElement("_").classList||(DOMTokenList.prototype.replace=function(D,pt){var vt=this.toString().split(" "),Ot=vt.indexOf(D+"");~Ot&&(vt=vt.slice(Ot),this.remove.apply(this,vt),this.add(pt),this.add.apply(this,vt.slice(1)))}),W=null})())},548:function(W){W.exports=(function(){var ut={9306:function(i,s,t){var e=t(4901),r=t(6823),n=TypeError;i.exports=function(o){if(e(o))return o;throw new n(r(o)+" is not a function")}},5548:function(i,s,t){var e=t(3517),r=t(6823),n=TypeError;i.exports=function(o){if(e(o))return o;throw new n(r(o)+" is not a constructor")}},3506:function(i,s,t){var e=t(3925),r=String,n=TypeError;i.exports=function(o){if(e(o))return o;throw new n("Can't set "+r(o)+" as a prototype")}},6469:function(i,s,t){var e=t(8227),r=t(2360),n=t(4913).f,o=e("unscopables"),a=Array.prototype;a[o]===void 0&&n(a,o,{configurable:!0,value:r(null)}),i.exports=function(u){a[o][u]=!0}},7829:function(i,s,t){var e=t(8183).charAt;i.exports=function(r,n,o){return n+(o&&e(r,n).length||1)}},8551:function(i,s,t){var e=t(34),r=String,n=TypeError;i.exports=function(o){if(e(o))return o;throw new n(r(o)+" is not an object")}},235:function(i,s,t){var e=t(9213).forEach,r=t(4598)("forEach");i.exports=r?[].forEach:function(n){return e(this,n,arguments.length>1?arguments[1]:void 0)}},7916:function(i,s,t){var e=t(6080),r=t(9565),n=t(8981),o=t(6319),a=t(4209),u=t(3517),c=t(6198),l=t(4659),d=t(4527),v=t(81),p=t(851),f=t(9539),g=Array;i.exports=function(h){var y=u(this),m=arguments.length,b=m>1?arguments[1]:void 0,O=b!==void 0;O&&(b=e(b,m>2?arguments[2]:void 0));var w,S,k,E,P,I,x=n(h),B=p(x),T=0;if(!B||this===g&&a(B))for(w=c(x),S=y?new this(w):g(w);w>T;T++)I=O?b(x[T],T):x[T],l(S,T,I);else for(S=y?new this:[],P=(E=v(x,B)).next;!(k=r(P,E)).done;T++){I=O?o(E,b,[k.value,T],!0):k.value;try{l(S,T,I)}catch(M){f(E,"throw",M)}}return d(S,T),S}},9617:function(i,s,t){var e=t(5397),r=t(5610),n=t(6198),o=function(a){return function(u,c,l){var d=e(u),v=n(d);if(v===0)return!a&&-1;var p,f=r(l,v);if(a&&c!=c){for(;v>f;)if((p=d[f++])!=p)return!0}else for(;v>f;f++)if((a||f in d)&&d[f]===c)return a||f||0;return!a&&-1}};i.exports={includes:o(!0),indexOf:o(!1)}},9213:function(i,s,t){var e=t(6080),r=t(7055),n=t(8981),o=t(6198),a=t(1469),u=t(4659),c=function(l){var d=l===1,v=l===2,p=l===3,f=l===4,g=l===6,h=l===7,y=l===5||g;return function(m,b,O){for(var w,S,k=n(m),E=r(k),P=o(E),I=e(b,O),x=0,B=0,T=d?a(m,P):v||h?a(m,0):void 0;P>x;x++)if((y||x in E)&&(S=I(w=E[x],x,k),l))if(d)u(T,x,S);else if(S)switch(l){case 3:return!0;case 5:return w;case 6:return x;case 2:u(T,B++,w)}else switch(l){case 4:return!1;case 7:u(T,B++,w)}return g?-1:p||f?f:T}};i.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},597:function(i,s,t){var e=t(9039),r=t(8227),n=t(9519),o=r("species");i.exports=function(a){return n>=51||!e((function(){var u=[];return(u.constructor={})[o]=function(){return{foo:1}},u[a](Boolean).foo!==1}))}},4598:function(i,s,t){var e=t(9039);i.exports=function(r,n){var o=[][r];return!!o&&e((function(){o.call(null,n||function(){return 1},1)}))}},926:function(i,s,t){var e=t(9306),r=t(8981),n=t(7055),o=t(6198),a=TypeError,u="Reduce of empty array with no initial value",c=function(l){return function(d,v,p,f){var g=r(d),h=n(g),y=o(g);if(e(v),y===0&&p<2)throw new a(u);var m=l?y-1:0,b=l?-1:1;if(p<2)for(;;){if(m in h){f=h[m],m+=b;break}if(m+=b,l?m<0:y<=m)throw new a(u)}for(;l?m>=0:y>m;m+=b)m in h&&(f=v(f,h[m],m,g));return f}};i.exports={left:c(!1),right:c(!0)}},4527:function(i,s,t){var e=t(3724),r=t(4376),n=TypeError,o=Object.getOwnPropertyDescriptor,a=e&&!(function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(u){return u instanceof TypeError}})();i.exports=a?function(u,c){if(r(u)&&!o(u,"length").writable)throw new n("Cannot set read only .length");return u.length=c}:function(u,c){return u.length=c}},7680:function(i,s,t){var e=t(9504);i.exports=e([].slice)},4488:function(i,s,t){var e=t(7680),r=Math.floor,n=function(o,a){var u=o.length;if(u<8)for(var c,l,d=1;d<u;){for(l=d,c=o[d];l&&a(o[l-1],c)>0;)o[l]=o[--l];l!==d++&&(o[l]=c)}else for(var v=r(u/2),p=n(e(o,0,v),a),f=n(e(o,v),a),g=p.length,h=f.length,y=0,m=0;y<g||m<h;)o[y+m]=y<g&&m<h?a(p[y],f[m])<=0?p[y++]:f[m++]:y<g?p[y++]:f[m++];return o};i.exports=n},7433:function(i,s,t){var e=t(4376),r=t(3517),n=t(34),o=t(8227)("species"),a=Array;i.exports=function(u){var c;return e(u)&&(c=u.constructor,(r(c)&&(c===a||e(c.prototype))||n(c)&&(c=c[o])===null)&&(c=void 0)),c===void 0?a:c}},1469:function(i,s,t){var e=t(7433);i.exports=function(r,n){return new(e(r))(n===0?0:n)}},6319:function(i,s,t){var e=t(8551),r=t(9539);i.exports=function(n,o,a,u){try{return u?o(e(a)[0],a[1]):o(a)}catch(c){r(n,"throw",c)}}},4428:function(i,s,t){var e=t(8227)("iterator"),r=!1;try{var n=0,o={next:function(){return{done:!!n++}},return:function(){r=!0}};o[e]=function(){return this},Array.from(o,(function(){throw 2}))}catch{}i.exports=function(a,u){try{if(!u&&!r)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}},2195:function(i,s,t){var e=t(9504),r=e({}.toString),n=e("".slice);i.exports=function(o){return n(r(o),8,-1)}},6955:function(i,s,t){var e=t(2140),r=t(4901),n=t(2195),o=t(8227)("toStringTag"),a=Object,u=n((function(){return arguments})())==="Arguments";i.exports=e?n:function(c){var l,d,v;return c===void 0?"Undefined":c===null?"Null":typeof(d=(function(p,f){try{return p[f]}catch{}})(l=a(c),o))=="string"?d:u?n(l):(v=n(l))==="Object"&&r(l.callee)?"Arguments":v}},7740:function(i,s,t){var e=t(9297),r=t(5031),n=t(7347),o=t(4913);i.exports=function(a,u,c){for(var l=r(u),d=o.f,v=n.f,p=0;p<l.length;p++){var f=l[p];e(a,f)||c&&e(c,f)||d(a,f,v(u,f))}}},1436:function(i,s,t){var e=t(8227)("match");i.exports=function(r){var n=/./;try{"/./"[r](n)}catch{try{return n[e]=!1,"/./"[r](n)}catch{}}return!1}},2211:function(i,s,t){var e=t(9039);i.exports=!e((function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype}))},2529:function(i){i.exports=function(s,t){return{value:s,done:t}}},6699:function(i,s,t){var e=t(3724),r=t(4913),n=t(6980);i.exports=e?function(o,a,u){return r.f(o,a,n(1,u))}:function(o,a,u){return o[a]=u,o}},6980:function(i){i.exports=function(s,t){return{enumerable:!(1&s),configurable:!(2&s),writable:!(4&s),value:t}}},4659:function(i,s,t){var e=t(3724),r=t(4913),n=t(6980);i.exports=function(o,a,u){e?r.f(o,a,n(0,u)):o[a]=u}},3640:function(i,s,t){var e=t(8551),r=t(4270),n=TypeError;i.exports=function(o){if(e(this),o==="string"||o==="default")o="string";else if(o!=="number")throw new n("Incorrect hint");return r(this,o)}},2106:function(i,s,t){var e=t(283),r=t(4913);i.exports=function(n,o,a){return a.get&&e(a.get,o,{getter:!0}),a.set&&e(a.set,o,{setter:!0}),r.f(n,o,a)}},6840:function(i,s,t){var e=t(4901),r=t(4913),n=t(283),o=t(9433);i.exports=function(a,u,c,l){l||(l={});var d=l.enumerable,v=l.name!==void 0?l.name:u;if(e(c)&&n(c,v,l),l.global)d?a[u]=c:o(u,c);else{try{l.unsafe?a[u]&&(d=!0):delete a[u]}catch{}d?a[u]=c:r.f(a,u,{value:c,enumerable:!1,configurable:!l.nonConfigurable,writable:!l.nonWritable})}return a}},9433:function(i,s,t){var e=t(4576),r=Object.defineProperty;i.exports=function(n,o){try{r(e,n,{value:o,configurable:!0,writable:!0})}catch{e[n]=o}return o}},4606:function(i,s,t){var e=t(6823),r=TypeError;i.exports=function(n,o){if(!delete n[o])throw new r("Cannot delete property "+e(o)+" of "+e(n))}},3724:function(i,s,t){var e=t(9039);i.exports=!e((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}))},4055:function(i,s,t){var e=t(4576),r=t(34),n=e.document,o=r(n)&&r(n.createElement);i.exports=function(a){return o?n.createElement(a):{}}},6837:function(i){var s=TypeError;i.exports=function(t){if(t>9007199254740991)throw new s("Maximum allowed index exceeded");return t}},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}},9296:function(i,s,t){var e=t(4055)("span").classList,r=e&&e.constructor&&e.constructor.prototype;i.exports=r===Object.prototype?void 0:r},8727:function(i){i.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3709:function(i,s,t){var e=t(2839).match(/firefox\/(\d+)/i);i.exports=!!e&&+e[1]},3763:function(i,s,t){var e=t(2839);i.exports=/MSIE|Trident/.test(e)},6193:function(i,s,t){var e=t(4215);i.exports=e==="NODE"},2839:function(i,s,t){var e=t(4576).navigator,r=e&&e.userAgent;i.exports=r?String(r):""},9519:function(i,s,t){var e,r,n=t(4576),o=t(2839),a=n.process,u=n.Deno,c=a&&a.versions||u&&u.version,l=c&&c.v8;l&&(r=(e=l.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!r&&o&&(!(e=o.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=o.match(/Chrome\/(\d+)/))&&(r=+e[1]),i.exports=r},3607:function(i,s,t){var e=t(2839).match(/AppleWebKit\/(\d+)\./);i.exports=!!e&&+e[1]},4215:function(i,s,t){var e=t(4576),r=t(2839),n=t(2195),o=function(a){return r.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":n(e.process)==="process"?"NODE":e.window&&e.document?"BROWSER":"REST"},6518:function(i,s,t){var e=t(4576),r=t(7347).f,n=t(6699),o=t(6840),a=t(9433),u=t(7740),c=t(2796);i.exports=function(l,d){var v,p,f,g,h,y=l.target,m=l.global,b=l.stat;if(v=m?e:b?e[y]||a(y,{}):e[y]&&e[y].prototype)for(p in d){if(g=d[p],f=l.dontCallGetSet?(h=r(v,p))&&h.value:v[p],!c(m?p:y+(b?".":"#")+p,l.forced)&&f!==void 0){if(typeof g==typeof f)continue;u(g,f)}(l.sham||f&&f.sham)&&n(g,"sham",!0),o(v,p,g,l)}}},9039:function(i){i.exports=function(s){try{return!!s()}catch{return!0}}},9228:function(i,s,t){t(7495);var e=t(9565),r=t(6840),n=t(7323),o=t(9039),a=t(8227),u=t(6699),c=a("species"),l=RegExp.prototype;i.exports=function(d,v,p,f){var g=a(d),h=!o((function(){var O={};return O[g]=function(){return 7},""[d](O)!==7})),y=h&&!o((function(){var O=!1,w=/a/;if(d==="split"){var S={};S[c]=function(){return w},(w={constructor:S,flags:""})[g]=/./[g]}return w.exec=function(){return O=!0,null},w[g](""),!O}));if(!h||!y||p){var m=/./[g],b=v(g,""[d],(function(O,w,S,k,E){var P=w.exec;return P===n||P===l.exec?h&&!E?{done:!0,value:e(m,w,S,k)}:{done:!0,value:e(O,S,w,k)}:{done:!1}}));r(String.prototype,d,b[0]),r(l,g,b[1])}f&&u(l[g],"sham",!0)}},8745:function(i,s,t){var e=t(616),r=Function.prototype,n=r.apply,o=r.call;i.exports=typeof Reflect=="object"&&Reflect.apply||(e?o.bind(n):function(){return o.apply(n,arguments)})},6080:function(i,s,t){var e=t(7476),r=t(9306),n=t(616),o=e(e.bind);i.exports=function(a,u){return r(a),u===void 0?a:n?o(a,u):function(){return a.apply(u,arguments)}}},616:function(i,s,t){var e=t(9039);i.exports=!e((function(){var r=function(){}.bind();return typeof r!="function"||r.hasOwnProperty("prototype")}))},566:function(i,s,t){var e=t(9504),r=t(9306),n=t(34),o=t(9297),a=t(7680),u=t(616),c=Function,l=e([].concat),d=e([].join),v={};i.exports=u?c.bind:function(p){var f=r(this),g=f.prototype,h=a(arguments,1),y=function(){var m=l(h,a(arguments));return this instanceof y?(function(b,O,w){if(!o(v,O)){for(var S=[],k=0;k<O;k++)S[k]="a["+k+"]";v[O]=c("C,a","return new C("+d(S,",")+")")}return v[O](b,w)})(f,m.length,m):f.apply(p,m)};return n(g)&&(y.prototype=g),y}},9565:function(i,s,t){var e=t(616),r=Function.prototype.call;i.exports=e?r.bind(r):function(){return r.apply(r,arguments)}},350:function(i,s,t){var e=t(3724),r=t(9297),n=Function.prototype,o=e&&Object.getOwnPropertyDescriptor,a=r(n,"name"),u=a&&function(){}.name==="something",c=a&&(!e||e&&o(n,"name").configurable);i.exports={EXISTS:a,PROPER:u,CONFIGURABLE:c}},6706:function(i,s,t){var e=t(9504),r=t(9306);i.exports=function(n,o,a){try{return e(r(Object.getOwnPropertyDescriptor(n,o)[a]))}catch{}}},7476:function(i,s,t){var e=t(2195),r=t(9504);i.exports=function(n){if(e(n)==="Function")return r(n)}},9504:function(i,s,t){var e=t(616),r=Function.prototype,n=r.call,o=e&&r.bind.bind(n,n);i.exports=e?o:function(a){return function(){return n.apply(a,arguments)}}},7751:function(i,s,t){var e=t(4576),r=t(4901);i.exports=function(n,o){return arguments.length<2?(a=e[n],r(a)?a:void 0):e[n]&&e[n][o];var a}},851:function(i,s,t){var e=t(6955),r=t(5966),n=t(4117),o=t(6269),a=t(8227)("iterator");i.exports=function(u){if(!n(u))return r(u,a)||r(u,"@@iterator")||o[e(u)]}},81:function(i,s,t){var e=t(9565),r=t(9306),n=t(8551),o=t(6823),a=t(851),u=TypeError;i.exports=function(c,l){var d=arguments.length<2?a(c):l;if(r(d))return n(e(d,c));throw new u(o(c)+" is not iterable")}},5966:function(i,s,t){var e=t(9306),r=t(4117);i.exports=function(n,o){var a=n[o];return r(a)?void 0:e(a)}},2478:function(i,s,t){var e=t(9504),r=t(8981),n=Math.floor,o=e("".charAt),a=e("".replace),u=e("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;i.exports=function(d,v,p,f,g,h){var y=p+d.length,m=f.length,b=l;return g!==void 0&&(g=r(g),b=c),a(h,b,(function(O,w){var S;switch(o(w,0)){case"$":return"$";case"&":return d;case"`":return u(v,0,p);case"'":return u(v,y);case"<":S=g[u(w,1,-1)];break;default:var k=+w;if(k===0)return O;if(k>m){var E=n(k/10);return E===0?O:E<=m?f[E-1]===void 0?o(w,1):f[E-1]+o(w,1):O}S=f[k-1]}return S===void 0?"":S}))}},4576:function(i,s,t){var e=function(r){return r&&r.Math===Math&&r};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")()},9297:function(i,s,t){var e=t(9504),r=t(8981),n=e({}.hasOwnProperty);i.exports=Object.hasOwn||function(o,a){return n(r(o),a)}},421:function(i){i.exports={}},397:function(i,s,t){var e=t(7751);i.exports=e("document","documentElement")},5917:function(i,s,t){var e=t(3724),r=t(9039),n=t(4055);i.exports=!e&&!r((function(){return Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a!==7}))},7055:function(i,s,t){var e=t(9504),r=t(9039),n=t(2195),o=Object,a=e("".split);i.exports=r((function(){return!o("z").propertyIsEnumerable(0)}))?function(u){return n(u)==="String"?a(u,""):o(u)}:o},3167:function(i,s,t){var e=t(4901),r=t(34),n=t(2967);i.exports=function(o,a,u){var c,l;return n&&e(c=a.constructor)&&c!==u&&r(l=c.prototype)&&l!==u.prototype&&n(o,l),o}},3706:function(i,s,t){var e=t(9504),r=t(4901),n=t(7629),o=e(Function.toString);r(n.inspectSource)||(n.inspectSource=function(a){return o(a)}),i.exports=n.inspectSource},1181:function(i,s,t){var e,r,n,o=t(8622),a=t(4576),u=t(34),c=t(6699),l=t(9297),d=t(7629),v=t(6119),p=t(421),f="Object already initialized",g=a.TypeError,h=a.WeakMap;if(o||d.state){var y=d.state||(d.state=new h);y.get=y.get,y.has=y.has,y.set=y.set,e=function(b,O){if(y.has(b))throw new g(f);return O.facade=b,y.set(b,O),O},r=function(b){return y.get(b)||{}},n=function(b){return y.has(b)}}else{var m=v("state");p[m]=!0,e=function(b,O){if(l(b,m))throw new g(f);return O.facade=b,c(b,m,O),O},r=function(b){return l(b,m)?b[m]:{}},n=function(b){return l(b,m)}}i.exports={set:e,get:r,has:n,enforce:function(b){return n(b)?r(b):e(b,{})},getterFor:function(b){return function(O){var w;if(!u(O)||(w=r(O)).type!==b)throw new g("Incompatible receiver, "+b+" required");return w}}}},4209:function(i,s,t){var e=t(8227),r=t(6269),n=e("iterator"),o=Array.prototype;i.exports=function(a){return a!==void 0&&(r.Array===a||o[n]===a)}},4376:function(i,s,t){var e=t(2195);i.exports=Array.isArray||function(r){return e(r)==="Array"}},4901:function(i){var s=typeof document=="object"&&document.all;i.exports=s===void 0&&s!==void 0?function(t){return typeof t=="function"||t===s}:function(t){return typeof t=="function"}},3517:function(i,s,t){var e=t(9504),r=t(9039),n=t(4901),o=t(6955),a=t(7751),u=t(3706),c=function(){},l=a("Reflect","construct"),d=/^\s*(?:class|function)\b/,v=e(d.exec),p=!d.test(c),f=function(h){if(!n(h))return!1;try{return l(c,[],h),!0}catch{return!1}},g=function(h){if(!n(h))return!1;switch(o(h)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!v(d,u(h))}catch{return!0}};g.sham=!0,i.exports=!l||r((function(){var h;return f(f.call)||!f(Object)||!f((function(){h=!0}))||h}))?g:f},2796:function(i,s,t){var e=t(9039),r=t(4901),n=/#|\.prototype\./,o=function(d,v){var p=u[a(d)];return p===l||p!==c&&(r(v)?e(v):!!v)},a=o.normalize=function(d){return String(d).replace(n,".").toLowerCase()},u=o.data={},c=o.NATIVE="N",l=o.POLYFILL="P";i.exports=o},2087:function(i,s,t){var e=t(34),r=Math.floor;i.exports=Number.isInteger||function(n){return!e(n)&&isFinite(n)&&r(n)===n}},4117:function(i){i.exports=function(s){return s==null}},34:function(i,s,t){var e=t(4901);i.exports=function(r){return typeof r=="object"?r!==null:e(r)}},3925:function(i,s,t){var e=t(34);i.exports=function(r){return e(r)||r===null}},6395:function(i){i.exports=!1},5810:function(i,s,t){var e=t(34),r=t(1181).get;i.exports=function(n){if(!e(n))return!1;var o=r(n);return!!o&&o.type==="RawJSON"}},788:function(i,s,t){var e=t(34),r=t(2195),n=t(8227)("match");i.exports=function(o){var a;return e(o)&&((a=o[n])!==void 0?!!a:r(o)==="RegExp")}},757:function(i,s,t){var e=t(7751),r=t(4901),n=t(1625),o=t(7040),a=Object;i.exports=o?function(u){return typeof u=="symbol"}:function(u){var c=e("Symbol");return r(c)&&n(c.prototype,a(u))}},9539:function(i,s,t){var e=t(9565),r=t(8551),n=t(5966);i.exports=function(o,a,u){var c,l;r(o);try{if(!(c=n(o,"return"))){if(a==="throw")throw u;return u}c=e(c,o)}catch(d){l=!0,c=d}if(a==="throw")throw u;if(l)throw c;return r(c),u}},3994:function(i,s,t){var e=t(7657).IteratorPrototype,r=t(2360),n=t(6980),o=t(687),a=t(6269),u=function(){return this};i.exports=function(c,l,d,v){var p=l+" Iterator";return c.prototype=r(e,{next:n(+!v,d)}),o(c,p,!1,!0),a[p]=u,c}},1088:function(i,s,t){var e=t(6518),r=t(9565),n=t(6395),o=t(350),a=t(4901),u=t(3994),c=t(2787),l=t(2967),d=t(687),v=t(6699),p=t(6840),f=t(8227),g=t(6269),h=t(7657),y=o.PROPER,m=o.CONFIGURABLE,b=h.IteratorPrototype,O=h.BUGGY_SAFARI_ITERATORS,w=f("iterator"),S="keys",k="values",E="entries",P=function(){return this};i.exports=function(I,x,B,T,M,q,j){u(B,x,T);var U,H,R,K=function(L){if(L===M&&C)return C;if(!O&&L&&L in N)return N[L];switch(L){case S:case k:case E:return function(){return new B(this,L)}}return function(){return new B(this)}},z=x+" Iterator",J=!1,N=I.prototype,A=N[w]||N["@@iterator"]||M&&N[M],C=!O&&A||K(M),$=x==="Array"&&N.entries||A;if($&&(U=c($.call(new I)))!==Object.prototype&&U.next&&(n||c(U)===b||(l?l(U,b):a(U[w])||p(U,w,P)),d(U,z,!0,!0),n&&(g[z]=P)),y&&M===k&&A&&A.name!==k&&(!n&&m?v(N,"name",k):(J=!0,C=function(){return r(A,this)})),M)if(H={values:K(k),keys:q?C:K(S),entries:K(E)},j)for(R in H)(O||J||!(R in N))&&p(N,R,H[R]);else e({target:x,proto:!0,forced:O||J},H);return n&&!j||N[w]===C||p(N,w,C,{name:M}),g[x]=C,H}},7657:function(i,s,t){var e,r,n,o=t(9039),a=t(4901),u=t(34),c=t(2360),l=t(2787),d=t(6840),v=t(8227),p=t(6395),f=v("iterator"),g=!1;[].keys&&("next"in(n=[].keys())?(r=l(l(n)))!==Object.prototype&&(e=r):g=!0),!u(e)||o((function(){var h={};return e[f].call(h)!==h}))?e={}:p&&(e=c(e)),a(e[f])||d(e,f,(function(){return this})),i.exports={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:g}},6269:function(i){i.exports={}},6198:function(i,s,t){var e=t(8014);i.exports=function(r){return e(r.length)}},283:function(i,s,t){var e=t(9504),r=t(9039),n=t(4901),o=t(9297),a=t(3724),u=t(350).CONFIGURABLE,c=t(3706),l=t(1181),d=l.enforce,v=l.get,p=String,f=Object.defineProperty,g=e("".slice),h=e("".replace),y=e([].join),m=a&&!r((function(){return f((function(){}),"length",{value:8}).length!==8})),b=String(String).split("String"),O=i.exports=function(w,S,k){g(p(S),0,7)==="Symbol("&&(S="["+h(p(S),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),k&&k.getter&&(S="get "+S),k&&k.setter&&(S="set "+S),(!o(w,"name")||u&&w.name!==S)&&(a?f(w,"name",{value:S,configurable:!0}):w.name=S),m&&k&&o(k,"arity")&&w.length!==k.arity&&f(w,"length",{value:k.arity});try{k&&o(k,"constructor")&&k.constructor?a&&f(w,"prototype",{writable:!1}):w.prototype&&(w.prototype=void 0)}catch{}var E=d(w);return o(E,"source")||(E.source=y(b,typeof S=="string"?S:"")),w};Function.prototype.toString=O((function(){return n(this)&&v(this).source||c(this)}),"toString")},741:function(i){var s=Math.ceil,t=Math.floor;i.exports=Math.trunc||function(e){var r=+e;return(r>0?t:s)(r)}},7819:function(i,s,t){var e=t(9039);i.exports=!e((function(){var r="9007199254740993",n=JSON.rawJSON(r);return!JSON.isRawJSON(n)||JSON.stringify(n)!==r}))},5749:function(i,s,t){var e=t(788),r=TypeError;i.exports=function(n){if(e(n))throw new r("The method doesn't accept regular expressions");return n}},4213:function(i,s,t){var e=t(3724),r=t(9504),n=t(9565),o=t(9039),a=t(1072),u=t(3717),c=t(8773),l=t(8981),d=t(7055),v=Object.assign,p=Object.defineProperty,f=r([].concat);i.exports=!v||o((function(){if(e&&v({b:1},v(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var g={},h={},y=Symbol("assign detection"),m="abcdefghijklmnopqrst";return g[y]=7,m.split("").forEach((function(b){h[b]=b})),v({},g)[y]!==7||a(v({},h)).join("")!==m}))?function(g,h){for(var y=l(g),m=arguments.length,b=1,O=u.f,w=c.f;m>b;)for(var S,k=d(arguments[b++]),E=O?f(a(k),O(k)):a(k),P=E.length,I=0;P>I;)S=E[I++],e&&!n(w,k,S)||(y[S]=k[S]);return y}:v},2360:function(i,s,t){var e,r=t(8551),n=t(6801),o=t(8727),a=t(421),u=t(397),c=t(4055),l=t(6119),d="prototype",v="script",p=l("IE_PROTO"),f=function(){},g=function(m){return"<"+v+">"+m+"</"+v+">"},h=function(m){m.write(g("")),m.close();var b=m.parentWindow.Object;return m=null,b},y=function(){try{e=new ActiveXObject("htmlfile")}catch{}var m,b,O;y=typeof document<"u"?document.domain&&e?h(e):(b=c("iframe"),O="java"+v+":",b.style.display="none",u.appendChild(b),b.src=String(O),(m=b.contentWindow.document).open(),m.write(g("document.F=Object")),m.close(),m.F):h(e);for(var w=o.length;w--;)delete y[d][o[w]];return y()};a[p]=!0,i.exports=Object.create||function(m,b){var O;return m!==null?(f[d]=r(m),O=new f,f[d]=null,O[p]=m):O=y(),b===void 0?O:n.f(O,b)}},6801:function(i,s,t){var e=t(3724),r=t(8686),n=t(4913),o=t(8551),a=t(5397),u=t(1072);s.f=e&&!r?Object.defineProperties:function(c,l){o(c);for(var d,v=a(l),p=u(l),f=p.length,g=0;f>g;)n.f(c,d=p[g++],v[d]);return c}},4913:function(i,s,t){var e=t(3724),r=t(5917),n=t(8686),o=t(8551),a=t(6969),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,d="enumerable",v="configurable",p="writable";s.f=e?n?function(f,g,h){if(o(f),g=a(g),o(h),typeof f=="function"&&g==="prototype"&&"value"in h&&p in h&&!h[p]){var y=l(f,g);y&&y[p]&&(f[g]=h.value,h={configurable:v in h?h[v]:y[v],enumerable:d in h?h[d]:y[d],writable:!1})}return c(f,g,h)}:c:function(f,g,h){if(o(f),g=a(g),o(h),r)try{return c(f,g,h)}catch{}if("get"in h||"set"in h)throw new u("Accessors not supported");return"value"in h&&(f[g]=h.value),f}},7347:function(i,s,t){var e=t(3724),r=t(9565),n=t(8773),o=t(6980),a=t(5397),u=t(6969),c=t(9297),l=t(5917),d=Object.getOwnPropertyDescriptor;s.f=e?d:function(v,p){if(v=a(v),p=u(p),l)try{return d(v,p)}catch{}if(c(v,p))return o(!r(n.f,v,p),v[p])}},298:function(i,s,t){var e=t(2195),r=t(5397),n=t(8480).f,o=t(7680),a=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];i.exports.f=function(u){return a&&e(u)==="Window"?(function(c){try{return n(c)}catch{return o(a)}})(u):n(r(u))}},8480:function(i,s,t){var e=t(1828),r=t(8727).concat("length","prototype");s.f=Object.getOwnPropertyNames||function(n){return e(n,r)}},3717:function(i,s){s.f=Object.getOwnPropertySymbols},2787:function(i,s,t){var e=t(9297),r=t(4901),n=t(8981),o=t(6119),a=t(2211),u=o("IE_PROTO"),c=Object,l=c.prototype;i.exports=a?c.getPrototypeOf:function(d){var v=n(d);if(e(v,u))return v[u];var p=v.constructor;return r(p)&&v instanceof p?p.prototype:v instanceof c?l:null}},1625:function(i,s,t){var e=t(9504);i.exports=e({}.isPrototypeOf)},1828:function(i,s,t){var e=t(9504),r=t(9297),n=t(5397),o=t(9617).indexOf,a=t(421),u=e([].push);i.exports=function(c,l){var d,v=n(c),p=0,f=[];for(d in v)!r(a,d)&&r(v,d)&&u(f,d);for(;l.length>p;)r(v,d=l[p++])&&(~o(f,d)||u(f,d));return f}},1072:function(i,s,t){var e=t(1828),r=t(8727);i.exports=Object.keys||function(n){return e(n,r)}},8773:function(i,s){var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,r=e&&!t.call({1:2},1);s.f=r?function(n){var o=e(this,n);return!!o&&o.enumerable}:t},2551:function(i,s,t){var e=t(6395),r=t(4576),n=t(9039),o=t(3607);i.exports=e||!n((function(){if(!(o&&o<535)){var a=Math.random();__defineSetter__.call(null,a,(function(){})),delete r[a]}}))},2967:function(i,s,t){var e=t(6706),r=t(34),n=t(7750),o=t(3506);i.exports=Object.setPrototypeOf||("__proto__"in{}?(function(){var a,u=!1,c={};try{(a=e(Object.prototype,"__proto__","set"))(c,[]),u=c instanceof Array}catch{}return function(l,d){return n(l),o(d),r(l)&&(u?a(l,d):l.__proto__=d),l}})():void 0)},3179:function(i,s,t){var e=t(2140),r=t(6955);i.exports=e?{}.toString:function(){return"[object "+r(this)+"]"}},4270:function(i,s,t){var e=t(9565),r=t(4901),n=t(34),o=TypeError;i.exports=function(a,u){var c,l;if(u==="string"&&r(c=a.toString)&&!n(l=e(c,a))||r(c=a.valueOf)&&!n(l=e(c,a))||u!=="string"&&r(c=a.toString)&&!n(l=e(c,a)))return l;throw new o("Can't convert object to primitive value")}},5031:function(i,s,t){var e=t(7751),r=t(9504),n=t(8480),o=t(3717),a=t(8551),u=r([].concat);i.exports=e("Reflect","ownKeys")||function(c){var l=n.f(a(c)),d=o.f;return d?u(l,d(c)):l}},8235:function(i,s,t){var e=t(9504),r=t(9297),n=SyntaxError,o=parseInt,a=String.fromCharCode,u=e("".charAt),c=e("".slice),l=e(/./.exec),d={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":`
|
|
12
12
|
`,"\\r":"\r","\\t":" "},v=/^[\da-f]{4}$/i,p=/^[\u0000-\u001F]$/;i.exports=function(f,g){for(var h=!0,y="";g<f.length;){var m=u(f,g);if(m==="\\"){var b=c(f,g,g+2);if(r(d,b))y+=d[b],g+=2;else{if(b!=="\\u")throw new n('Unknown escape sequence: "'+b+'"');var O=c(f,g+=2,g+4);if(!l(v,O))throw new n("Bad Unicode escape at: "+g);y+=a(o(O,16)),g+=4}}else{if(m==='"'){h=!1,g++;break}if(l(p,m))throw new n("Bad control character in string literal at: "+g);y+=m,g++}}if(h)throw new n("Unterminated string at: "+g);return{value:y,end:g}}},9167:function(i,s,t){var e=t(4576);i.exports=e},1056:function(i,s,t){var e=t(4913).f;i.exports=function(r,n,o){o in r||e(r,o,{configurable:!0,get:function(){return n[o]},set:function(a){n[o]=a}})}},6682:function(i,s,t){var e=t(9565),r=t(8551),n=t(4901),o=t(2195),a=t(7323),u=TypeError;i.exports=function(c,l){var d=c.exec;if(n(d)){var v=e(d,c,l);return v!==null&&r(v),v}if(o(c)==="RegExp")return e(a,c,l);throw new u("RegExp#exec called on incompatible receiver")}},7323:function(i,s,t){var e,r,n=t(9565),o=t(9504),a=t(655),u=t(7979),c=t(8429),l=t(5745),d=t(2360),v=t(1181).get,p=t(3635),f=t(8814),g=l("native-string-replace",String.prototype.replace),h=RegExp.prototype.exec,y=h,m=o("".charAt),b=o("".indexOf),O=o("".replace),w=o("".slice),S=(r=/b*/g,n(h,e=/a/,"a"),n(h,r,"a"),e.lastIndex!==0||r.lastIndex!==0),k=c.BROKEN_CARET,E=/()??/.exec("")[1]!==void 0,P=function(I,x){for(var B=I.groups=d(null),T=0;T<x.length;T++){var M=x[T];B[M[0]]=I[M[1]]}};(S||E||k||p||f)&&(y=function(I){var x,B,T,M=this,q=v(M),j=a(I),U=q.raw;if(U)return U.lastIndex=M.lastIndex,x=n(y,U,j),M.lastIndex=U.lastIndex,x&&q.groups&&P(x,q.groups),x;var H=q.groups,R=k&&M.sticky,K=n(u,M),z=M.source,J=0,N=j;if(R){K=O(K,"y",""),b(K,"g")===-1&&(K+="g"),N=w(j,M.lastIndex);var A=M.lastIndex>0&&m(j,M.lastIndex-1);M.lastIndex>0&&(!M.multiline||M.multiline&&A!==`
|
|
13
13
|
`&&A!=="\r"&&A!=="\u2028"&&A!=="\u2029")&&(z="(?: (?:"+z+"))",N=" "+N,J++),B=new RegExp("^(?:"+z+")",K)}E&&(B=new RegExp("^"+z+"$(?!\\s)",K)),S&&(T=M.lastIndex);var C=n(h,R?B:M,N);return R?C?(C.input=j,C[0]=w(C[0],J),C.index=M.lastIndex,M.lastIndex+=C[0].length):M.lastIndex=0:S&&C&&(M.lastIndex=M.global?C.index+C[0].length:T),E&&C&&C.length>1&&n(g,C[0],B,(function(){for(var $=1;$<arguments.length-2;$++)arguments[$]===void 0&&(C[$]=void 0)})),C&&H&&P(C,H),C}),i.exports=y},5213:function(i,s,t){var e=t(4576),r=t(9039),n=e.RegExp,o=!r((function(){var a=!0;try{n(".","d")}catch{a=!1}var u={},c="",l=a?"dgimsy":"gimsy",d=function(f,g){Object.defineProperty(u,f,{get:function(){return c+=g,!0}})},v={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var p in a&&(v.hasIndices="d"),v)d(p,v[p]);return Object.getOwnPropertyDescriptor(n.prototype,"flags").get.call(u)!==l||c!==l}));i.exports={correct:o}},7979:function(i,s,t){var e=t(8551);i.exports=function(){var r=e(this),n="";return r.hasIndices&&(n+="d"),r.global&&(n+="g"),r.ignoreCase&&(n+="i"),r.multiline&&(n+="m"),r.dotAll&&(n+="s"),r.unicode&&(n+="u"),r.unicodeSets&&(n+="v"),r.sticky&&(n+="y"),n}},1034:function(i,s,t){var e=t(9565),r=t(9297),n=t(1625),o=t(5213),a=t(7979),u=RegExp.prototype;i.exports=o.correct?function(c){return c.flags}:function(c){return o.correct||!n(u,c)||r(c,"flags")?c.flags:e(a,c)}},8429:function(i,s,t){var e=t(9039),r=t(4576).RegExp,n=e((function(){var u=r("a","y");return u.lastIndex=2,u.exec("abcd")!==null})),o=n||e((function(){return!r("a","y").sticky})),a=n||e((function(){var u=r("^r","gy");return u.lastIndex=2,u.exec("str")!==null}));i.exports={BROKEN_CARET:a,MISSED_STICKY:o,UNSUPPORTED_Y:n}},3635:function(i,s,t){var e=t(9039),r=t(4576).RegExp;i.exports=e((function(){var n=r(".","s");return!(n.dotAll&&n.test(`
|
|
14
14
|
`)&&n.flags==="s")}))},8814:function(i,s,t){var e=t(9039),r=t(4576).RegExp;i.exports=e((function(){var n=r("(?<a>b)","g");return n.exec("b").groups.a!=="b"||"b".replace(n,"$<a>c")!=="bc"}))},7750:function(i,s,t){var e=t(4117),r=TypeError;i.exports=function(n){if(e(n))throw new r("Can't call method on "+n);return n}},7633:function(i,s,t){var e=t(7751),r=t(2106),n=t(8227),o=t(3724),a=n("species");i.exports=function(u){var c=e(u);o&&c&&!c[a]&&r(c,a,{configurable:!0,get:function(){return this}})}},687:function(i,s,t){var e=t(4913).f,r=t(9297),n=t(8227)("toStringTag");i.exports=function(o,a,u){o&&!u&&(o=o.prototype),o&&!r(o,n)&&e(o,n,{configurable:!0,value:a})}},6119:function(i,s,t){var e=t(5745),r=t(3392),n=e("keys");i.exports=function(o){return n[o]||(n[o]=r(o))}},7629:function(i,s,t){var e=t(6395),r=t(4576),n=t(9433),o="__core-js_shared__",a=i.exports=r[o]||n(o,{});(a.versions||(a.versions=[])).push({version:"3.49.0",mode:e?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:function(i,s,t){var e=t(7629);i.exports=function(r,n){return e[r]||(e[r]=n||{})}},2293:function(i,s,t){var e=t(8551),r=t(5548),n=t(4117),o=t(8227)("species");i.exports=function(a,u){var c,l=e(a).constructor;return l===void 0||n(c=e(l)[o])?u:r(c)}},8183:function(i,s,t){var e=t(9504),r=t(1291),n=t(655),o=t(7750),a=e("".charAt),u=e("".charCodeAt),c=e("".slice),l=function(d){return function(v,p){var f,g,h=n(o(v)),y=r(p),m=h.length;return y<0||y>=m?d?"":void 0:(f=u(h,y))<55296||f>56319||y+1===m||(g=u(h,y+1))<56320||g>57343?d?a(h,y):f:d?c(h,y,y+2):g-56320+(f-55296<<10)+65536}};i.exports={codeAt:l(!1),charAt:l(!0)}},706:function(i,s,t){var e=t(350).PROPER,r=t(9039),n=t(7452);i.exports=function(o){return r((function(){return!!n[o]()||"
"[o]()!=="
"||e&&n[o].name!==o}))}},3802:function(i,s,t){var e=t(9504),r=t(7750),n=t(655),o=t(7452),a=e("".replace),u=RegExp("^["+o+"]+"),c=RegExp("(^|[^"+o+"])["+o+"]+$"),l=function(d){return function(v){var p=n(r(v));return 1&d&&(p=a(p,u,"")),2&d&&(p=a(p,c,"$1")),p}};i.exports={start:l(1),end:l(2),trim:l(3)}},4495:function(i,s,t){var e=t(9519),r=t(9039),n=t(4576).String;i.exports=!!Object.getOwnPropertySymbols&&!r((function(){var o=Symbol("symbol detection");return!n(o)||!(Object(o)instanceof Symbol)||!Symbol.sham&&e&&e<41}))},8242:function(i,s,t){var e=t(9565),r=t(7751),n=t(8227),o=t(6840);i.exports=function(){var a=r("Symbol"),u=a&&a.prototype,c=u&&u.valueOf,l=n("toPrimitive");u&&!u[l]&&o(u,l,(function(d){return e(c,this)}),{arity:1})}},1296:function(i,s,t){var e=t(4495);i.exports=e&&!!Symbol.for&&!!Symbol.keyFor},1240:function(i,s,t){var e=t(9504);i.exports=e(1.1.valueOf)},5610:function(i,s,t){var e=t(1291),r=Math.max,n=Math.min;i.exports=function(o,a){var u=e(o);return u<0?r(u+a,0):n(u,a)}},5397:function(i,s,t){var e=t(7055),r=t(7750);i.exports=function(n){return e(r(n))}},1291:function(i,s,t){var e=t(741);i.exports=function(r){var n=+r;return n!=n||n===0?0:e(n)}},8014:function(i,s,t){var e=t(1291),r=Math.min;i.exports=function(n){var o=e(n);return o>0?r(o,9007199254740991):0}},8981:function(i,s,t){var e=t(7750),r=Object;i.exports=function(n){return r(e(n))}},2777:function(i,s,t){var e=t(9565),r=t(34),n=t(757),o=t(5966),a=t(4270),u=t(8227),c=TypeError,l=u("toPrimitive");i.exports=function(d,v){if(!r(d)||n(d))return d;var p,f=o(d,l);if(f){if(v===void 0&&(v="default"),p=e(f,d,v),!r(p)||n(p))return p;throw new c("Can't convert object to primitive value")}return v===void 0&&(v="number"),a(d,v)}},6969:function(i,s,t){var e=t(2777),r=t(757);i.exports=function(n){var o=e(n,"string");return r(o)?o:o+""}},2140:function(i,s,t){var e={};e[t(8227)("toStringTag")]="z",i.exports=String(e)==="[object z]"},655:function(i,s,t){var e=t(6955),r=String;i.exports=function(n){if(e(n)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return r(n)}},6823:function(i){var s=String;i.exports=function(t){try{return s(t)}catch{return"Object"}}},3392:function(i,s,t){var e=t(9504),r=0,n=Math.random(),o=e(1.1.toString);i.exports=function(a){return"Symbol("+(a===void 0?"":a)+")_"+o(++r+n,36)}},7040:function(i,s,t){var e=t(4495);i.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},8686:function(i,s,t){var e=t(3724),r=t(9039);i.exports=e&&r((function(){return Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype!==42}))},8622:function(i,s,t){var e=t(4576),r=t(4901),n=e.WeakMap;i.exports=r(n)&&/native code/.test(String(n))},511:function(i,s,t){var e=t(9167),r=t(9297),n=t(1951),o=t(4913).f;i.exports=function(a){var u=e.Symbol||(e.Symbol={});r(u,a)||o(u,a,{value:n.f(a)})}},1951:function(i,s,t){var e=t(8227);s.f=e},8227:function(i,s,t){var e=t(4576),r=t(5745),n=t(9297),o=t(3392),a=t(4495),u=t(7040),c=e.Symbol,l=r("wks"),d=u?c.for||c:c&&c.withoutSetter||o;i.exports=function(v){return n(l,v)||(l[v]=a&&n(c,v)?c[v]:d("Symbol."+v)),l[v]}},7452:function(i){i.exports=`
|
|
@@ -16,4 +16,4 @@ import{g as fe}from"./_commonjsHelpers.Cpj98o6Y.js";import{r as de}from"./index.
|
|
|
16
16
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function Ot(i,s){if(i){if(typeof i=="string")return It(i,s);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)?It(i,s):void 0}}function It(i,s){(s==null||s>i.length)&&(s=i.length);for(var t=0,e=Array(s);t<s;t++)e[t]=i[t];return e}function bt(i){return bt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},bt(i)}function Bt(i,s){for(var t=0;t<s.length;t++){var e=s[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(i,rt(e.key),e)}}function Y(i,s,t){return(s=rt(s))in i?Object.defineProperty(i,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[s]=t,i}function rt(i){var s=(function(t,e){if(bt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(bt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)})(i,"string");return bt(s)=="symbol"?s:s+""}D.r(pt),D.d(pt,{SimpleKeyboard:function(){return oe},default:function(){return le}}),D(5276),D(8598),D(4782),D(4554),D(2010),D(7427),D(6099),D(7495),D(8781),D(5440),D(744),D(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 s="classList",t="prototype",e=i.Element[t],r=Object,n=String[t].trim||function(){return this.replace(/^\s+|\s+$/g,"")},o=Array[t].indexOf||function(p){for(var f=0,g=this.length;f<g;f++)if(f in this&&this[f]===p)return f;return-1},a=function(p,f){this.name=p,this.code=DOMException[p],this.message=f},u=function(p,f){if(f==="")throw new a("SYNTAX_ERR","The token must not be empty.");if(/\s/.test(f))throw new a("INVALID_CHARACTER_ERR","The token must not contain space characters.");return o.call(p,f)},c=function(p){for(var f=n.call(p.getAttribute("class")||""),g=f?f.split(/\s+/):[],h=0,y=g.length;h<y;h++)this.push(g[h]);this._updateClassName=function(){p.setAttribute("class",this.toString())}},l=c[t]=[],d=function(){return new c(this)};if(a[t]=Error[t],l.item=function(p){return this[p]||null},l.contains=function(p){return~u(this,p+"")},l.add=function(){var p,f=arguments,g=0,h=f.length,y=!1;do~u(this,p=f[g]+"")||(this.push(p),y=!0);while(++g<h);y&&this._updateClassName()},l.remove=function(){var p,f,g=arguments,h=0,y=g.length,m=!1;do for(f=u(this,p=g[h]+"");~f;)this.splice(f,1),m=!0,f=u(this,p);while(++h<y);m&&this._updateClassName()},l.toggle=function(p,f){var g=this.contains(p),h=g?f!==!0&&"remove":f!==!1&&"add";return h&&this[h](p),f===!0||f===!1?f:!g},l.replace=function(p,f){var g=u(p+"");~g&&(this.splice(g,1,f),this._updateClassName())},l.toString=function(){return this.join(" ")},r.defineProperty){var v={get:d,enumerable:!0,configurable:!0};try{r.defineProperty(e,s,v)}catch(p){p.number!==void 0&&p.number!==-2146823252||(v.enumerable=!1,r.defineProperty(e,s,v))}}else r[t].__defineGetter__&&e.__defineGetter__(s,d)}})(self),(function(){var i=document.createElement("_");if(i.classList.add("c1","c2"),!i.classList.contains("c2")){var s=function(e){var r=DOMTokenList.prototype[e];DOMTokenList.prototype[e]=function(n){var o,a=arguments.length;for(o=0;o<a;o++)n=arguments[o],r.call(this,n)}};s("add"),s("remove")}if(i.classList.toggle("c3",!1),i.classList.contains("c3")){var t=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,r){return 1 in arguments&&!this.contains(e)==!r?r:t.call(this,e)}}"replace"in document.createElement("_").classList||(DOMTokenList.prototype.replace=function(e,r){var n=this.toString().split(" "),o=n.indexOf(e+"");~o&&(n=n.slice(o),this.remove.apply(this,n),this.add(r),this.add.apply(this,n.slice(1)))}),i=null})()),D(2675),D(9463),D(2259),D(5700),D(8706),D(2008),D(3418),D(4423),D(3792),D(2062),D(6910),D(739),D(9572),D(2892),D(9085),D(3851),D(1278),D(9432),D(4864),D(1699),D(7764),D(8344),D(3500),D(2953),D(2712),D(2637),D(1480),D(825),D(1761);var at=(function(){return i=function e(r){var n=r.getOptions,o=r.getCaretPosition,a=r.getCaretPositionEnd,u=r.dispatch;(function(c,l){if(!(c instanceof l))throw new TypeError("Cannot call a class as a function")})(this,e),Y(this,"getOptions",void 0),Y(this,"getCaretPosition",void 0),Y(this,"getCaretPositionEnd",void 0),Y(this,"dispatch",void 0),Y(this,"maxLengthReached",void 0),Y(this,"isStandardButton",(function(c){return c&&!(c[0]==="{"&&c[c.length-1]==="}")})),this.getOptions=n,this.getCaretPosition=o,this.getCaretPositionEnd=a,this.dispatch=u,e.bindMethods(e,this)},s=[{key:"getButtonType",value:function(e){return e.includes("{")&&e.includes("}")&&e!=="{//}"?"functionBtn":"standardBtn"}},{key:"getButtonClass",value:function(e){var r=this.getButtonType(e),n=e.replace("{","").replace("}",""),o="";return r!=="standardBtn"&&(o=" hg-button-".concat(n)),"hg-".concat(r).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,r){return(r=arguments.length>2&&arguments[2]!==void 0&&arguments[2]?Object.assign({},this.getDefaultDiplay(),r):r||this.getDefaultDiplay())[e]||e}},{key:"getUpdatedInput",value:function(e,r,n){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:n,a=arguments.length>4&&arguments[4]!==void 0&&arguments[4],u=this.getOptions(),c=[n,o,a],l=r;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 u.tabCharOnTab=="boolean"&&u.tabCharOnTab===!1?e!=="{enter}"&&e!=="{numpadenter}"||!u.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,`
|
|
17
17
|
`].concat(c)):l=this.addStringAt.apply(this,[l," "].concat(c)),u.debug&&console.log("Input will be: "+l),l}},{key:"updateCaretPos",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=this.updateCaretPosAction(e,r);this.dispatch((function(o){o.setCaretPosition(n)}))}},{key:"updateCaretPosAction",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=this.getOptions(),o=this.getCaretPosition();return o!=null&&(r?o>0&&(o-=e):o+=e),n.debug&&console.log("Caret at:",o),o}},{key:"addStringAt",value:function(e,r){var n,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:e.length,u=arguments.length>4&&arguments[4]!==void 0&&arguments[4];return o||o===0?(n=[e.slice(0,o),r,e.slice(a)].join(""),this.isMaxLengthReached()||u&&this.updateCaretPos(r.length)):n=e+r,n}},{key:"removeAt",value:function(e){var r,n=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(n===0&&o===0)return e;if(n===o){var u=/([\uD800-\uDBFF][\uDC00-\uDFFF])/g;n&&n>=0?e.substring(n-2,n).match(u)?(r=e.substr(0,n-2)+e.substr(n),a&&this.updateCaretPos(2,!0)):(r=e.substr(0,n-1)+e.substr(n),a&&this.updateCaretPos(1,!0)):e.slice(-2).match(u)?(r=e.slice(0,-2),a&&this.updateCaretPos(2,!0)):(r=e.slice(0,-1),a&&this.updateCaretPos(1,!0))}else r=e.slice(0,n)+e.slice(o),a&&this.dispatch((function(c){c.setCaretPosition(n)}));return r}},{key:"removeForwardsAt",value:function(e){var r,n=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&&n!==null?(n===o?r=e.substring(n,n+2).match(/([\uD800-\uDBFF][\uDC00-\uDFFF])/g)?e.substr(0,n)+e.substr(n+2):e.substr(0,n)+e.substr(n+1):(r=e.slice(0,n)+e.slice(o),a&&this.dispatch((function(u){u.setCaretPosition(n)}))),r):e}},{key:"handleMaxLength",value:function(e,r){var n=this.getOptions(),o=n.maxLength,a=e[n.inputName||"default"],u=r.length-1>=o;if(r.length<=a.length)return!1;if(Number.isInteger(o))return n.debug&&console.log("maxLength (num) reached:",u),u?(this.maxLengthReached=!0,!0):(this.maxLengthReached=!1,!1);if(bt(o)==="object"){var c=r.length-1>=o[n.inputName||"default"];return n.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(r,n){return n.length?r+n[0].toUpperCase()+n.slice(1):r})):""}},{key:"chunkArray",value:function(e,r){return vt(Array(Math.ceil(e.length/r))).map((function(n,o){return e.slice(r*o,r+r*o)}))}},{key:"escapeRegex",value:function(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}},{key:"getRtlOffset",value:function(e,r){var n=e,o=r.indexOf("");return o<e&&o!=-1&&n--,r.indexOf("")<e&&o!=-1&&n--,n<0?0:n}},{key:"isConstructor",value:function(e){try{Reflect.construct(String,[],e)}catch{return!1}return!0}}],t=[{key:"bindMethods",value:function(e,r){var n,o=(function(u,c){var l=typeof Symbol<"u"&&u[Symbol.iterator]||u["@@iterator"];if(!l){if(Array.isArray(u)||(l=Ot(u))||c){l&&(u=l);var d=0,v=function(){};return{s:v,n:function(){return d>=u.length?{done:!0}:{done:!1,value:u[d++]}},e:function(h){throw h},f:v}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
18
18
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p,f=!0,g=!1;return{s:function(){l=l.call(u)},n:function(){var h=l.next();return f=h.done,h},e:function(h){g=!0,p=h},f:function(){try{f||l.return==null||l.return()}finally{if(g)throw p}}}})(Object.getOwnPropertyNames(e.prototype));try{for(o.s();!(n=o.n()).done;){var a=n.value;a==="constructor"||a==="bindMethods"||(r[a]=r[a].bind(r))}}catch(u){o.e(u)}finally{o.f()}}}],s&&Bt(i.prototype,s),t&&Bt(i,t),Object.defineProperty(i,"prototype",{writable:!1}),i;var i,s,t})();Y(at,"noop",(function(){}));var V=at;function F(i){return F=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},F(i)}function tt(i,s){for(var t=0;t<s.length;t++){var e=s[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(i,Et(e.key),e)}}function nt(i,s,t){return(s=Et(s))in i?Object.defineProperty(i,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[s]=t,i}function Et(i){var s=(function(t,e){if(F(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(F(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)})(i,"string");return F(s)=="symbol"?s:s+""}var Mt=(function(){return i=function e(r){var n=this,o=r.dispatch,a=r.getOptions;(function(u,c){if(!(u instanceof c))throw new TypeError("Cannot call a class as a function")})(this,e),nt(this,"getOptions",void 0),nt(this,"dispatch",void 0),nt(this,"isModifierKey",(function(u){return u.altKey||u.ctrlKey||u.shiftKey||["Tab","CapsLock","Esc","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(u.code||u.key||n.keyCodeToKey(u?.keyCode))})),this.dispatch=o,this.getOptions=a,V.bindMethods(e,this)},s=[{key:"handleHighlightKeyDown",value:function(e){var r=this.getOptions();r.physicalKeyboardHighlightPreventDefault&&this.isModifierKey(e)&&(e.preventDefault(),e.stopImmediatePropagation());var n=this.getSimpleKeyboardLayoutKey(e);this.dispatch((function(o){var a,u,c=o.getButtonElement(n),l=o.getButtonElement("{".concat(n,"}"));if(c)a=c,u=n;else{if(!l)return;a=l,u="{".concat(n,"}")}var d,v,p,f,g=function(y){y.style.background=r.physicalKeyboardHighlightBgColor||"#dadce4",y.style.color=r.physicalKeyboardHighlightTextColor||"black"};if(a)if(Array.isArray(a)){if(a.forEach((function(y){return g(y)})),r.physicalKeyboardHighlightPress)if(r.physicalKeyboardHighlightPressUsePointerEvents)(d=a[0])===null||d===void 0||(v=d.onpointerdown)===null||v===void 0||v.call(d,e);else if(r.physicalKeyboardHighlightPressUseClick){var h;(h=a[0])===null||h===void 0||h.click()}else o.handleButtonClicked(u,e)}else g(a),r.physicalKeyboardHighlightPress&&(r.physicalKeyboardHighlightPressUsePointerEvents?(p=a)===null||p===void 0||(f=p.onpointerdown)===null||f===void 0||f.call(p,e):r.physicalKeyboardHighlightPressUseClick?a.click():o.handleButtonClicked(u,e))}))}},{key:"handleHighlightKeyUp",value:function(e){var r=this.getOptions();r.physicalKeyboardHighlightPreventDefault&&this.isModifierKey(e)&&(e.preventDefault(),e.stopImmediatePropagation());var n=this.getSimpleKeyboardLayoutKey(e);this.dispatch((function(o){var a,u,c,l=o.getButtonElement(n)||o.getButtonElement("{".concat(n,"}")),d=function(v){v.removeAttribute&&v.removeAttribute("style")};l&&(Array.isArray(l)?(l.forEach((function(v){return d(v)})),r.physicalKeyboardHighlightPressUsePointerEvents&&((a=l[0])===null||a===void 0||(u=a.onpointerup)===null||u===void 0||u.call(a,e))):(d(l),r.physicalKeyboardHighlightPressUsePointerEvents&&(l==null||(c=l.onpointerup)===null||c===void 0||c.call(l,e))))}))}},{key:"getSimpleKeyboardLayoutKey",value:function(e){var r,n="",o=e.code||e.key||this.keyCodeToKey(e?.keyCode);return(n=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?.keyCode)||"").length>1?(r=n)===null||r===void 0?void 0:r.toLowerCase():n}},{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]||""}}],s&&tt(i.prototype,s),t&&tt(i,t),Object.defineProperty(i,"prototype",{writable:!1}),i;var i,s,t})();function jt(i){return jt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},jt(i)}function $t(i,s){for(var t=0;t<s.length;t++){var e=s[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(i,zt(e.key),e)}}function At(i,s,t){return(s=zt(s))in i?Object.defineProperty(i,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[s]=t,i}function zt(i){var s=(function(t,e){if(jt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(jt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)})(i,"string");return jt(s)=="symbol"?s:s+""}var Jt=(function(){return i=function e(r){var n=r.utilities,o=r.options;(function(a,u){if(!(a instanceof u))throw new TypeError("Cannot call a class as a function")})(this,e),At(this,"utilities",void 0),At(this,"options",void 0),At(this,"candidateBoxElement",void 0),At(this,"pageIndex",0),At(this,"pageSize",void 0),this.utilities=n,this.options=o,V.bindMethods(e,this),this.pageSize=this.utilities.getOptions().layoutCandidatesPageSize||5},s=[{key:"destroy",value:function(){this.candidateBoxElement&&(this.candidateBoxElement.remove(),this.pageIndex=0)}},{key:"show",value:function(e){var r=this,n=e.candidateValue,o=e.targetElement,a=e.onSelect;if(n&&n.length){var u=this.utilities.chunkArray(n.split(" "),this.pageSize);this.renderPage({candidateListPages:u,targetElement:o,pageIndex:this.pageIndex,nbPages:u.length,onItemSelected:function(c,l){a(c,l),r.destroy()}})}}},{key:"renderPage",value:function(e){var r,n=this,o=e.candidateListPages,a=e.targetElement,u=e.pageIndex,c=e.nbPages,l=e.onItemSelected;(r=this.candidateBoxElement)===null||r===void 0||r.remove(),this.candidateBoxElement=document.createElement("div"),this.candidateBoxElement.className="hg-candidate-box";var d=document.createElement("ul");d.className="hg-candidate-box-list",o[u].forEach((function(m){var b,O=document.createElement("li"),w=function(){var S=new(n.options.useTouchEvents?TouchEvent:MouseEvent)("click");return Object.defineProperty(S,"target",{value:O}),S};O.className="hg-candidate-box-list-item",O.innerHTML=((b=n.options.display)===null||b===void 0?void 0:b[m])||m,n.options.useTouchEvents?O.ontouchstart=function(S){return l(m,S||w())}:O.onclick=function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:w();return l(m,S)},d.appendChild(O)}));var v=u>0,p=document.createElement("div");p.classList.add("hg-candidate-box-prev"),v&&p.classList.add("hg-candidate-box-btn-active");var f=function(){v&&n.renderPage({candidateListPages:o,targetElement:a,pageIndex:u-1,nbPages:c,onItemSelected:l})};this.options.useTouchEvents?p.ontouchstart=f:p.onclick=f,this.candidateBoxElement.appendChild(p),this.candidateBoxElement.appendChild(d);var g=u<c-1,h=document.createElement("div");h.classList.add("hg-candidate-box-next"),g&&h.classList.add("hg-candidate-box-btn-active");var y=function(){g&&n.renderPage({candidateListPages:o,targetElement:a,pageIndex:u+1,nbPages:c,onItemSelected:l})};this.options.useTouchEvents?h.ontouchstart=y:h.onclick=y,this.candidateBoxElement.appendChild(h),a.prepend(this.candidateBoxElement)}}],s&&$t(i.prototype,s),t&&$t(i,t),Object.defineProperty(i,"prototype",{writable:!1}),i;var i,s,t})(),Yt=Jt;function Kt(i){return(function(s){if(Array.isArray(s))return Qt(s)})(i)||(function(s){if(typeof Symbol<"u"&&s[Symbol.iterator]!=null||s["@@iterator"]!=null)return Array.from(s)})(i)||(function(s,t){if(s){if(typeof s=="string")return Qt(s,t);var e={}.toString.call(s).slice(8,-1);return e==="Object"&&s.constructor&&(e=s.constructor.name),e==="Map"||e==="Set"?Array.from(s):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Qt(s,t):void 0}})(i)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
19
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function Qt(i,s){(s==null||s>i.length)&&(s=i.length);for(var t=0,e=Array(s);t<s;t++)e[t]=i[t];return e}function Ut(i){return Ut=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},Ut(i)}function ee(i,s){var t=Object.keys(i);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(i);s&&(e=e.filter((function(r){return Object.getOwnPropertyDescriptor(i,r).enumerable}))),t.push.apply(t,e)}return t}function re(i,s){for(var t=0;t<s.length;t++){var e=s[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(i,ne(e.key),e)}}function Z(i,s,t){return(s=ne(s))in i?Object.defineProperty(i,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[s]=t,i}function ne(i){var s=(function(t,e){if(Ut(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Ut(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)})(i,"string");return Ut(s)=="symbol"?s:s+""}var ce=(function(){return i=function e(r,n){var o=this;if((function(f,g){if(!(f instanceof g))throw new TypeError("Cannot call a class as a function")})(this,e),Z(this,"input",void 0),Z(this,"options",void 0),Z(this,"utilities",void 0),Z(this,"caretPosition",void 0),Z(this,"caretPositionEnd",void 0),Z(this,"keyboardDOM",void 0),Z(this,"keyboardPluginClasses",void 0),Z(this,"keyboardDOMClass",void 0),Z(this,"buttonElements",void 0),Z(this,"currentInstanceName",void 0),Z(this,"allKeyboardInstances",void 0),Z(this,"keyboardInstanceNames",void 0),Z(this,"isFirstKeyboardInstance",void 0),Z(this,"physicalKeyboard",void 0),Z(this,"modules",void 0),Z(this,"activeButtonClass",void 0),Z(this,"holdInteractionTimeout",void 0),Z(this,"holdTimeout",void 0),Z(this,"isMouseHold",void 0),Z(this,"initialized",void 0),Z(this,"candidateBox",void 0),Z(this,"keyboardRowsDOM",void 0),Z(this,"defaultName","default"),Z(this,"activeInputElement",null),Z(this,"handleParams",(function(f,g){var h,y,m;if(typeof f=="string")h=f.split(".").join(""),y=document.querySelector(".".concat(h)),m=g;else if(f instanceof HTMLDivElement){if(!f.className)throw console.warn("Any DOM element passed as parameter must have a class."),new Error("KEYBOARD_DOM_CLASS_ERROR");h=f.className.split(" ")[0],y=f,m=g}else h="simple-keyboard",y=document.querySelector(".".concat(h)),m=f;return{keyboardDOMClass:h,keyboardDOM:y,options:m}})),Z(this,"getOptions",(function(){return o.options})),Z(this,"getCaretPosition",(function(){return o.caretPosition})),Z(this,"getCaretPositionEnd",(function(){return o.caretPositionEnd})),Z(this,"registerModule",(function(f,g){o.modules[f]||(o.modules[f]={}),g(o.modules[f])})),Z(this,"getKeyboardClassString",(function(){for(var f=arguments.length,g=new Array(f),h=0;h<f;h++)g[h]=arguments[h];return[o.keyboardDOMClass].concat(g).filter((function(y){return!!y})).join(" ")})),typeof window<"u"){var a=this.handleParams(r,n),u=a.keyboardDOMClass,c=a.keyboardDOM,l=a.options,d=l===void 0?{}:l;this.utilities=new V({getOptions:this.getOptions,getCaretPosition:this.getCaretPosition,getCaretPositionEnd:this.getCaretPositionEnd,dispatch:this.dispatch}),this.caretPosition=null,this.caretPositionEnd=null,this.keyboardDOM=c,this.options=(function(f){for(var g=1;g<arguments.length;g++){var h=arguments[g]!=null?arguments[g]:{};g%2?ee(Object(h),!0).forEach((function(y){Z(f,y,h[y])})):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):ee(Object(h)).forEach((function(y){Object.defineProperty(f,y,Object.getOwnPropertyDescriptor(h,y))}))}return f})({layoutName:"default",theme:"hg-theme-default",inputName:"default",preventMouseDownDefault:!1,enableLayoutCandidates:!0,excludeFromLayout:{}},d),this.keyboardPluginClasses="",V.bindMethods(e,this);var v=this.options.inputName,p=v===void 0?this.defaultName:v;if(this.input={},this.input[p]="",this.keyboardDOMClass=u,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 Mt({dispatch:this.dispatch,getOptions:this.getOptions}),this.candidateBox=this.options.enableLayoutCandidates?new Yt({utilities:this.utilities,options:this.options}):null,!this.keyboardDOM)throw console.warn('".'.concat(u,'" was not found in the DOM.')),new Error("KEYBOARD_DOM_ERROR");this.render(),this.modules={},this.loadModules()}},s=[{key:"setCaretPosition",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e;this.caretPosition=e,this.caretPositionEnd=r}},{key:"getInputCandidates",value:function(e){var r=this,n=this.options,o=n.layoutCandidates,a=n.layoutCandidatesCaseSensitiveMatch;if(!o||Ut(o)!=="object")return{};var u=Object.keys(o).filter((function(d){var v=e.substring(0,r.getCaretPositionEnd()||0)||e,p=new RegExp("".concat(r.utilities.escapeRegex(d),"$"),a?"g":"gi");return!!Kt(v.matchAll(p)).length}));if(u.length>1){var c=u.sort((function(d,v){return v.length-d.length}))[0];return{candidateKey:c,candidateValue:o[c]}}if(u.length){var l=u[0];return{candidateKey:l,candidateValue:o[l]}}return{}}},{key:"showCandidatesBox",value:function(e,r,n){var o=this;this.candidateBox&&this.candidateBox.show({candidateValue:r,targetElement:n,onSelect:function(a,u){var c=o.options,l=c.layoutCandidatesCaseSensitiveMatch,d=c.disableCandidateNormalization,v=c.enableLayoutCandidatesKeyPress,p=a;d||(p=a.normalize("NFD")),typeof o.options.beforeInputUpdate=="function"&&o.options.beforeInputUpdate(o);var f=o.getInput(o.options.inputName,!0),g=o.getCaretPositionEnd()||0,h=f.substring(0,g||0)||f,y=new RegExp("".concat(o.utilities.escapeRegex(e),"$"),l?"g":"gi"),m=h.replace(y,p),b=f.replace(h,m),O=m.length-h.length,w=(g||f.length)+O;w<0&&(w=0),o.setInput(b,o.options.inputName,!0),o.setCaretPosition(w),v&&typeof o.options.onKeyPress=="function"&&o.options.onKeyPress(a,u),typeof o.options.onChange=="function"&&o.options.onChange(o.getInput(o.options.inputName,!0),u),typeof o.options.onChangeAll=="function"&&o.options.onChangeAll(o.getAllInputs(),u)}})}},{key:"handleButtonClicked",value:function(e,r){var n=this.options,o=n.inputName,a=o===void 0?this.defaultName:o,u=n.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,r);if(typeof this.options.onKeyPress=="function"&&this.options.onKeyPress(e,r),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),u&&console.log("Input changed:",this.getAllInputs()),this.options.debug&&console.log("Caret at: ",this.getCaretPosition(),this.getCaretPositionEnd(),"(".concat(this.keyboardDOMClass,")"),r?.type),this.options.syncInstanceInputs&&this.syncInstanceInputs(),typeof this.options.onChange=="function"&&this.options.onChange(this.getInput(this.options.inputName,!0),r),typeof this.options.onChangeAll=="function"&&this.options.onChangeAll(this.getAllInputs(),r),r!=null&&r.target&&this.options.enableLayoutCandidates){var d,v=this.getInputCandidates(c),p=v.candidateKey,f=v.candidateValue;p&&f?this.showCandidatesBox(p,f,this.keyboardDOM):(d=this.candidateBox)===null||d===void 0||d.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)),u&&console.log("Key pressed:",e)}}},{key:"getMouseHold",value:function(){return this.isMouseHold}},{key:"setMouseHold",value:function(e){this.options.syncInstanceInputs?this.dispatch((function(r){r.isMouseHold=e})):this.isMouseHold=e}},{key:"handleButtonMouseDown",value:function(e,r){var n=this;r&&(this.options.preventMouseDownDefault&&r.preventDefault(),this.options.stopMouseDownPropagation&&r.stopPropagation(),r.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(){(n.getMouseHold()&&(!e.includes("{")&&!e.includes("}")||e==="{delete}"||e==="{backspace}"||e==="{bksp}"||e==="{space}"||e==="{tab}")||e==="{arrowright}"||e==="{arrowleft}"||e==="{arrowup}"||e==="{arrowdown}")&&(n.options.debug&&console.log("Button held:",e),n.handleButtonHold(e)),clearTimeout(n.holdTimeout)}),500))}},{key:"handleButtonMouseUp",value:function(e,r){var n=this;r&&(this.options.preventMouseUpDefault&&r.preventDefault&&r.preventDefault(),this.options.stopMouseUpPropagation&&r.stopPropagation&&r.stopPropagation(),!(r.target===this.keyboardDOM||r.target&&this.keyboardDOM.contains(r.target)||this.candidateBox&&this.candidateBox.candidateBoxElement&&(r.target===this.candidateBox.candidateBoxElement||r.target&&this.candidateBox.candidateBoxElement.contains(r.target)))&&this.candidateBox&&this.candidateBox.destroy()),this.recurseButtons((function(o){o.classList.remove(n.activeButtonClass)})),this.setMouseHold(!1),this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),e&&typeof this.options.onKeyReleased=="function"&&this.options.onKeyReleased(e,r)}},{key:"handleKeyboardContainerMouseDown",value:function(e){this.options.preventMouseDownDefault&&e.preventDefault()}},{key:"handleButtonHold",value:function(e){var r=this;this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),this.holdInteractionTimeout=window.setTimeout((function(){r.getMouseHold()?(r.handleButtonClicked(e),r.handleButtonHold(e)):clearTimeout(r.holdInteractionTimeout)}),100)}},{key:"syncInstanceInputs",value:function(){var e=this;this.dispatch((function(r){r.replaceInput(e.input),r.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,r=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return this.options.syncInstanceInputs&&!r&&this.syncInstanceInputs(),this.options.rtl?""+this.input[e].replace("","").replace("","")+"":this.input[e]}},{key:"getAllInputs",value:function(){var e=this,r={};return Object.keys(this.input).forEach((function(n){r[n]=e.getInput(n,!0)})),r}},{key:"setInput",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.inputName||this.defaultName,n=arguments.length>2?arguments[2]:void 0;this.input[r]=e,!n&&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]:{},r=this.changedOptions(e);this.options=Object.assign(this.options,e),r.length&&(this.options.debug&&console.log("changedOptions",r),this.onSetOptions(r),this.render())}},{key:"changedOptions",value:function(e){var r=this;return Object.keys(e).filter((function(n){return JSON.stringify(e[n])!==JSON.stringify(r.options[n])}))}},{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 Yt({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(r){e(window.SimpleKeyboardInstances[r],r)}))}},{key:"addButtonTheme",value:function(e,r){var n=this;r&&e&&(e.split(" ").forEach((function(o){r.split(" ").forEach((function(a){n.options.buttonTheme||(n.options.buttonTheme=[]);var u=!1;n.options.buttonTheme.map((function(c){if(c!=null&&c.class.split(" ").includes(a)){u=!0;var l=c.buttons.split(" ");l.includes(o)||(u=!0,l.push(o),c.buttons=l.join(" "))}return c})),u||n.options.buttonTheme.push({class:a,buttons:e})}))})),this.render())}},{key:"removeButtonTheme",value:function(e,r){var n=this;if(!e&&!r)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=n.options)===null||a===void 0||(a=a.buttonTheme)===null||a===void 0||a.map((function(u,c){if(u&&r&&r.includes(u.class)||!r){var l,d,v=(l=u)===null||l===void 0?void 0:l.buttons.split(" ").filter((function(p){return p!==o}));u&&v!=null&&v.length?u.buttons=v.join(" "):((d=n.options.buttonTheme)===null||d===void 0||d.splice(c,1),u=null)}return u}))})),this.render())}},{key:"getButtonElement",value:function(e){var r,n=this.buttonElements[e];return n&&(r=n.length>1?n:n[0]),r}},{key:"inputPatternIsValid",value:function(e){var r,n=this.options.inputPattern;if((r=n instanceof RegExp?n:n[this.options.inputName||this.defaultName])&&e){var o=r.test(e);return this.options.debug&&console.log('inputPattern ("'.concat(r,'"): ').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,r=e!==void 0&&e;document.addEventListener("keyup",this.handleKeyUp,r),document.addEventListener("keydown",this.handleKeyDown,r),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 r,n=this;e.target.tagName&&(r=e.target.tagName.toLowerCase()),this.dispatch((function(o){var a=e.target===o.keyboardDOM||e.target&&o.keyboardDOM.contains(e.target);if(n.options.syncInstanceInputs&&Array.isArray(e.path)&&(a=e.path.some((function(l){var d;return l==null||(d=l.hasAttribute)===null||d===void 0?void 0:d.call(l,"data-skInstance")}))),(r==="textarea"||r==="input"&&["text","search","url","tel","password"].includes(e.target.type))&&!o.options.disableCaretPositioning){var u=e.target.selectionStart,c=e.target.selectionEnd;o.options.rtl&&(u=o.utilities.getRtlOffset(u,o.getInput()),c=o.utilities.getRtlOffset(c,o.getInput())),o.setCaretPosition(u,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?.type)}else!o.options.disableCaretPositioning&&a||e?.type==="selectionchange"||(o.setCaretPosition(null),o.activeInputElement=null,o.options.debug&&console.log('Caret position reset due to "'.concat(e?.type,'" event'),e))}))}},{key:"recurseButtons",value:function(e){var r=this;e&&Object.keys(this.buttonElements).forEach((function(n){return r.buttonElements[n].forEach(e)}))}},{key:"destroy",value:function(){this.options.debug&&console.log("Destroying simple-keyboard instance: ".concat(this.currentInstanceName));var e=this.options.physicalKeyboardHighlightPreventDefault,r=e!==void 0&&e;document.removeEventListener("keyup",this.handleKeyUp,r),document.removeEventListener("keydown",this.handleKeyDown,r),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(n){n&&(n.onpointerdown=null,n.onpointerup=null,n.onpointercancel=null,n.ontouchstart=null,n.ontouchend=null,n.ontouchcancel=null,n.onclick=null,n.onmousedown=null,n.onmouseup=null,n.remove(),n=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 r=this.options.buttonTheme,n=[];return Array.isArray(r)&&r.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)&&(n=[].concat(Kt(n),Kt(a)))}else console.warn('Incorrect "buttonTheme". Please check the documentation.',o)})),n}},{key:"setDOMButtonAttributes",value:function(e,r){var n=this.options.buttonAttributes;Array.isArray(n)&&n.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)&&r(o.attribute,o.value):r(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 r;if((r=e.target.classList)!==null&&r!==void 0&&r.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(r){var n=e.utilities.isConstructor(r)?new r(e):r(e);n.init&&n.init(e)})),this.keyboardPluginClasses="modules-loaded",this.render(),this.onModulesLoaded())}},{key:"getModuleProp",value:function(e,r){return!!this.modules[e]&&this.modules[e][r]}},{key:"getModulesList",value:function(){return Object.keys(this.modules)}},{key:"parseRowDOMContainers",value:function(e,r,n,o){var a=this,u=Array.from(e.children),c=0;return u.length&&n.forEach((function(l,d){var v=o[d];if(!(v&&v>l))return!1;var p=l-c,f=v-c,g=document.createElement("div");g.className+="hg-button-container";var h="".concat(a.options.layoutName,"-r").concat(r,"c").concat(d);g.setAttribute("data-skUID",h);var y=u.splice(p,f-p+1);c+=f-p,y.forEach((function(m){return g.appendChild(m)})),u.splice(p,0,g),e.innerHTML="",u.forEach((function(m){return e.appendChild(m)})),a.options.debug&&console.log("rowDOMContainer",y,p,f,c+1)})),e}},{key:"render",value:function(){var e=this;this.resetRows(),this.initialized||this.beforeFirstRender(),this.beforeRender();var r="hg-layout-".concat(this.options.layoutName),n=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":"",u=this.options.useMouseEvents||!1,c=this.options.disableRowButtonContainers;this.keyboardDOM.className=this.getKeyboardClassString(this.options.theme,r,this.keyboardPluginClasses,a),this.keyboardDOM.setAttribute("data-skInstance",this.currentInstanceName),this.keyboardRowsDOM=document.createElement("div"),this.keyboardRowsDOM.className="hg-rows",n[this.options.layoutName||this.defaultName].forEach((function(l,d){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 p=document.createElement("div");p.className+="hg-row";var f=[],g=[];v.forEach((function(h,y){var m,b=!c&&typeof h=="string"&&h.length>1&&h.indexOf("[")===0,O=!c&&typeof h=="string"&&h.length>1&&h.indexOf("]")===h.length-1;b&&(f.push(y),h=h.replace(/\[/g,"")),O&&(g.push(y),h=h.replace(/\]/g,""));var w=e.utilities.getButtonClass(h),S=e.utilities.getButtonDisplayName(h,e.options.display,e.options.mergeDisplay),k=e.options.useButtonTag?"button":"div",E=document.createElement(k);E.className+="hg-button ".concat(w),(m=E.classList).add.apply(m,Kt(e.getButtonThemeClasses(h))),e.setDOMButtonAttributes(h,(function(x,B){E.setAttribute(x,B)})),e.activeButtonClass="hg-activeButton",!e.utilities.pointerEventsSupported()||o||u?o?(E.ontouchstart=function(x){e.handleButtonClicked(h,x),e.handleButtonMouseDown(h,x)},E.ontouchend=function(x){e.handleButtonMouseUp(h,x)},E.ontouchcancel=function(x){e.handleButtonMouseUp(h,x)}):(E.onclick=function(x){e.setMouseHold(!1),typeof e.options.onKeyReleased=="function"||e.options.useMouseEvents&&e.options.clickOnMouseDown||e.handleButtonClicked(h,x)},E.onmousedown=function(x){(typeof e.options.onKeyReleased=="function"||e.options.useMouseEvents&&e.options.clickOnMouseDown)&&!e.isMouseHold&&e.handleButtonClicked(h,x),e.handleButtonMouseDown(h,x)},E.onmouseup=function(x){e.handleButtonMouseUp(h,x)}):(E.onpointerdown=function(x){e.handleButtonClicked(h,x),e.handleButtonMouseDown(h,x)},E.onpointerup=function(x){e.handleButtonMouseUp(h,x)},E.onpointercancel=function(x){e.handleButtonMouseUp(h,x)}),E.setAttribute("data-skBtn",h);var P="".concat(e.options.layoutName,"-r").concat(d,"b").concat(y);E.setAttribute("data-skBtnUID",P);var I=document.createElement("span");I.innerHTML=S,E.appendChild(I),e.buttonElements[h]||(e.buttonElements[h]=[]),e.buttonElements[h].push(E),p.appendChild(E)})),p=e.parseRowDOMContainers(p,d,f,g),e.keyboardRowsDOM.appendChild(p)})),this.keyboardDOM.appendChild(this.keyboardRowsDOM),this.onRender(),this.initialized||(this.initialized=!0,!this.utilities.pointerEventsSupported()||o||u?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())}}],s&&re(i.prototype,s),t&&re(i,t),Object.defineProperty(i,"prototype",{writable:!1}),i;var i,s,t})(),oe=ce,le=oe;return pt})()},442:function(W){W.exports=Zt}},te={};function xt(W){var ut=te[W];if(ut!==void 0)return ut.exports;var it=te[W]={exports:{}};return qt[W].call(it.exports,it,it.exports,xt),it.exports}xt.n=function(W){var ut=W&&W.__esModule?function(){return W.default}:function(){return W};return xt.d(ut,{a:ut}),ut},xt.d=function(W,ut){for(var it in ut)xt.o(ut,it)&&!xt.o(W,it)&&Object.defineProperty(W,it,{enumerable:!0,get:ut[it]})},xt.o=function(W,ut){return Object.prototype.hasOwnProperty.call(W,ut)},xt.r=function(W){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(W,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(W,"__esModule",{value:!0})};var Xt={};return(function(){xt.r(Xt),xt.d(Xt,{KeyboardReact:function(){return bt},default:function(){return Bt}}),xt(981);var W=xt(442),ut=xt(548),it=xt.n(ut);function D(Y){return D=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(rt){return typeof rt}:function(rt){return rt&&typeof Symbol=="function"&&rt.constructor===Symbol&&rt!==Symbol.prototype?"symbol":typeof rt},D(Y)}function pt(Y,rt){var at=Object.keys(Y);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(Y);rt&&(V=V.filter((function(F){return Object.getOwnPropertyDescriptor(Y,F).enumerable}))),at.push.apply(at,V)}return at}function vt(Y){for(var rt=1;rt<arguments.length;rt++){var at=arguments[rt]!=null?arguments[rt]:{};rt%2?pt(Object(at),!0).forEach((function(V){Ot(Y,V,at[V])})):Object.getOwnPropertyDescriptors?Object.defineProperties(Y,Object.getOwnPropertyDescriptors(at)):pt(Object(at)).forEach((function(V){Object.defineProperty(Y,V,Object.getOwnPropertyDescriptor(at,V))}))}return Y}function Ot(Y,rt,at){return(rt=(function(V){var F=(function(tt,nt){if(D(tt)!="object"||!tt)return tt;var Et=tt[Symbol.toPrimitive];if(Et!==void 0){var Mt=Et.call(tt,nt);if(D(Mt)!="object")return Mt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(nt==="string"?String:Number)(tt)})(V,"string");return D(F)=="symbol"?F:F+""})(rt))in Y?Object.defineProperty(Y,rt,{value:at,enumerable:!0,configurable:!0,writable:!0}):Y[rt]=at,Y}var It=function(Y){return vt(vt({},Y),{},{keyboardRef:null})},bt=function(Y){var rt=Y.baseClass||"react-simple-keyboard",at=W.useRef(null),V=W.useRef(null),F=W.useRef(null),tt=W.useRef(Y);return W.useEffect((function(){return function(){F.current&&F.current.destroy(),at.current=!1}}),[]),W.useEffect((function(){var nt=(function(At){return vt(vt({},At),{},{theme:"simple-keyboard ".concat(At.theme||"hg-theme-default")})})(Y);if(!at.current){at.current=!0,nt.debug&&console.log("ReactSimpleKeyboard: Init");var Et=V.current,Mt=".".concat(rt);F.current=new(it())(Et||Mt,nt),nt.keyboardRef&&nt.keyboardRef(F.current)}var jt=(function(At,zt){var Jt=It(zt),Yt=It(At);return Object.keys(Jt).filter((function(Kt){return Jt[Kt]!==Yt[Kt]}))})(tt.current,nt);if(jt.length){var $t=F.current;tt.current=nt,$t?.setOptions(nt),nt.debug&&console.log("ReactSimpleKeyboard - setOptions called due to updated props:",jt)}}),[at,rt,tt,Y]),W.createElement("div",{className:rt,ref:V})},Bt=bt})(),Xt})()}))})(Wt)),Wt.exports}var ve=he();const be=fe(ve);export{be as default};
|
|
19
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function Qt(i,s){(s==null||s>i.length)&&(s=i.length);for(var t=0,e=Array(s);t<s;t++)e[t]=i[t];return e}function Ut(i){return Ut=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},Ut(i)}function ee(i,s){var t=Object.keys(i);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(i);s&&(e=e.filter((function(r){return Object.getOwnPropertyDescriptor(i,r).enumerable}))),t.push.apply(t,e)}return t}function re(i,s){for(var t=0;t<s.length;t++){var e=s[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(i,ne(e.key),e)}}function Z(i,s,t){return(s=ne(s))in i?Object.defineProperty(i,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[s]=t,i}function ne(i){var s=(function(t,e){if(Ut(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Ut(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)})(i,"string");return Ut(s)=="symbol"?s:s+""}var ce=(function(){return i=function e(r,n){var o=this;if((function(f,g){if(!(f instanceof g))throw new TypeError("Cannot call a class as a function")})(this,e),Z(this,"input",void 0),Z(this,"options",void 0),Z(this,"utilities",void 0),Z(this,"caretPosition",void 0),Z(this,"caretPositionEnd",void 0),Z(this,"keyboardDOM",void 0),Z(this,"keyboardPluginClasses",void 0),Z(this,"keyboardDOMClass",void 0),Z(this,"buttonElements",void 0),Z(this,"currentInstanceName",void 0),Z(this,"allKeyboardInstances",void 0),Z(this,"keyboardInstanceNames",void 0),Z(this,"isFirstKeyboardInstance",void 0),Z(this,"physicalKeyboard",void 0),Z(this,"modules",void 0),Z(this,"activeButtonClass",void 0),Z(this,"holdInteractionTimeout",void 0),Z(this,"holdTimeout",void 0),Z(this,"isMouseHold",void 0),Z(this,"initialized",void 0),Z(this,"candidateBox",void 0),Z(this,"keyboardRowsDOM",void 0),Z(this,"defaultName","default"),Z(this,"activeInputElement",null),Z(this,"handleParams",(function(f,g){var h,y,m;if(typeof f=="string")h=f.split(".").join(""),y=document.querySelector(".".concat(h)),m=g;else if(f instanceof HTMLDivElement){if(!f.className)throw console.warn("Any DOM element passed as parameter must have a class."),new Error("KEYBOARD_DOM_CLASS_ERROR");h=f.className.split(" ")[0],y=f,m=g}else h="simple-keyboard",y=document.querySelector(".".concat(h)),m=f;return{keyboardDOMClass:h,keyboardDOM:y,options:m}})),Z(this,"getOptions",(function(){return o.options})),Z(this,"getCaretPosition",(function(){return o.caretPosition})),Z(this,"getCaretPositionEnd",(function(){return o.caretPositionEnd})),Z(this,"registerModule",(function(f,g){o.modules[f]||(o.modules[f]={}),g(o.modules[f])})),Z(this,"getKeyboardClassString",(function(){for(var f=arguments.length,g=new Array(f),h=0;h<f;h++)g[h]=arguments[h];return[o.keyboardDOMClass].concat(g).filter((function(y){return!!y})).join(" ")})),typeof window<"u"){var a=this.handleParams(r,n),u=a.keyboardDOMClass,c=a.keyboardDOM,l=a.options,d=l===void 0?{}:l;this.utilities=new V({getOptions:this.getOptions,getCaretPosition:this.getCaretPosition,getCaretPositionEnd:this.getCaretPositionEnd,dispatch:this.dispatch}),this.caretPosition=null,this.caretPositionEnd=null,this.keyboardDOM=c,this.options=(function(f){for(var g=1;g<arguments.length;g++){var h=arguments[g]!=null?arguments[g]:{};g%2?ee(Object(h),!0).forEach((function(y){Z(f,y,h[y])})):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):ee(Object(h)).forEach((function(y){Object.defineProperty(f,y,Object.getOwnPropertyDescriptor(h,y))}))}return f})({layoutName:"default",theme:"hg-theme-default",inputName:"default",preventMouseDownDefault:!1,enableLayoutCandidates:!0,excludeFromLayout:{}},d),this.keyboardPluginClasses="",V.bindMethods(e,this);var v=this.options.inputName,p=v===void 0?this.defaultName:v;if(this.input={},this.input[p]="",this.keyboardDOMClass=u,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 Mt({dispatch:this.dispatch,getOptions:this.getOptions}),this.candidateBox=this.options.enableLayoutCandidates?new Yt({utilities:this.utilities,options:this.options}):null,!this.keyboardDOM)throw console.warn('".'.concat(u,'" was not found in the DOM.')),new Error("KEYBOARD_DOM_ERROR");this.render(),this.modules={},this.loadModules()}},s=[{key:"setCaretPosition",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e;this.caretPosition=e,this.caretPositionEnd=r}},{key:"getInputCandidates",value:function(e){var r=this,n=this.options,o=n.layoutCandidates,a=n.layoutCandidatesCaseSensitiveMatch;if(!o||Ut(o)!=="object")return{};var u=Object.keys(o).filter((function(d){var v=e.substring(0,r.getCaretPositionEnd()||0)||e,p=new RegExp("".concat(r.utilities.escapeRegex(d),"$"),a?"g":"gi");return!!Kt(v.matchAll(p)).length}));if(u.length>1){var c=u.sort((function(d,v){return v.length-d.length}))[0];return{candidateKey:c,candidateValue:o[c]}}if(u.length){var l=u[0];return{candidateKey:l,candidateValue:o[l]}}return{}}},{key:"showCandidatesBox",value:function(e,r,n){var o=this;this.candidateBox&&this.candidateBox.show({candidateValue:r,targetElement:n,onSelect:function(a,u){var c=o.options,l=c.layoutCandidatesCaseSensitiveMatch,d=c.disableCandidateNormalization,v=c.enableLayoutCandidatesKeyPress,p=a;d||(p=a.normalize("NFD")),typeof o.options.beforeInputUpdate=="function"&&o.options.beforeInputUpdate(o);var f=o.getInput(o.options.inputName,!0),g=o.getCaretPositionEnd()||0,h=f.substring(0,g||0)||f,y=new RegExp("".concat(o.utilities.escapeRegex(e),"$"),l?"g":"gi"),m=h.replace(y,p),b=f.replace(h,m),O=m.length-h.length,w=(g||f.length)+O;w<0&&(w=0),o.setInput(b,o.options.inputName,!0),o.setCaretPosition(w),v&&typeof o.options.onKeyPress=="function"&&o.options.onKeyPress(a,u),typeof o.options.onChange=="function"&&o.options.onChange(o.getInput(o.options.inputName,!0),u),typeof o.options.onChangeAll=="function"&&o.options.onChangeAll(o.getAllInputs(),u)}})}},{key:"handleButtonClicked",value:function(e,r){var n=this.options,o=n.inputName,a=o===void 0?this.defaultName:o,u=n.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,r);if(typeof this.options.onKeyPress=="function"&&this.options.onKeyPress(e,r),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),u&&console.log("Input changed:",this.getAllInputs()),this.options.debug&&console.log("Caret at: ",this.getCaretPosition(),this.getCaretPositionEnd(),"(".concat(this.keyboardDOMClass,")"),r?.type),this.options.syncInstanceInputs&&this.syncInstanceInputs(),typeof this.options.onChange=="function"&&this.options.onChange(this.getInput(this.options.inputName,!0),r),typeof this.options.onChangeAll=="function"&&this.options.onChangeAll(this.getAllInputs(),r),r!=null&&r.target&&this.options.enableLayoutCandidates){var d,v=this.getInputCandidates(c),p=v.candidateKey,f=v.candidateValue;p&&f?this.showCandidatesBox(p,f,this.keyboardDOM):(d=this.candidateBox)===null||d===void 0||d.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)),u&&console.log("Key pressed:",e)}}},{key:"getMouseHold",value:function(){return this.isMouseHold}},{key:"setMouseHold",value:function(e){this.options.syncInstanceInputs?this.dispatch((function(r){r.isMouseHold=e})):this.isMouseHold=e}},{key:"handleButtonMouseDown",value:function(e,r){var n=this;r&&(this.options.preventMouseDownDefault&&r.preventDefault(),this.options.stopMouseDownPropagation&&r.stopPropagation(),r.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(){(n.getMouseHold()&&(!e.includes("{")&&!e.includes("}")||e==="{delete}"||e==="{backspace}"||e==="{bksp}"||e==="{space}"||e==="{tab}")||e==="{arrowright}"||e==="{arrowleft}"||e==="{arrowup}"||e==="{arrowdown}")&&(n.options.debug&&console.log("Button held:",e),n.handleButtonHold(e)),clearTimeout(n.holdTimeout)}),500))}},{key:"handleButtonMouseUp",value:function(e,r){var n=this;r&&(this.options.preventMouseUpDefault&&r.preventDefault&&r.preventDefault(),this.options.stopMouseUpPropagation&&r.stopPropagation&&r.stopPropagation(),!(r.target===this.keyboardDOM||r.target&&this.keyboardDOM.contains(r.target)||this.candidateBox&&this.candidateBox.candidateBoxElement&&(r.target===this.candidateBox.candidateBoxElement||r.target&&this.candidateBox.candidateBoxElement.contains(r.target)))&&this.candidateBox&&this.candidateBox.destroy()),this.recurseButtons((function(o){o.classList.remove(n.activeButtonClass)})),this.setMouseHold(!1),this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),e&&typeof this.options.onKeyReleased=="function"&&this.options.onKeyReleased(e,r)}},{key:"handleKeyboardContainerMouseDown",value:function(e){this.options.preventMouseDownDefault&&e.preventDefault()}},{key:"handleButtonHold",value:function(e){var r=this;this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),this.holdInteractionTimeout=window.setTimeout((function(){r.getMouseHold()?(r.handleButtonClicked(e),r.handleButtonHold(e)):clearTimeout(r.holdInteractionTimeout)}),100)}},{key:"syncInstanceInputs",value:function(){var e=this;this.dispatch((function(r){r.replaceInput(e.input),r.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,r=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return this.options.syncInstanceInputs&&!r&&this.syncInstanceInputs(),this.options.rtl?""+this.input[e].replace("","").replace("","")+"":this.input[e]}},{key:"getAllInputs",value:function(){var e=this,r={};return Object.keys(this.input).forEach((function(n){r[n]=e.getInput(n,!0)})),r}},{key:"setInput",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.inputName||this.defaultName,n=arguments.length>2?arguments[2]:void 0;this.input[r]=e,!n&&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]:{},r=this.changedOptions(e);this.options=Object.assign(this.options,e),r.length&&(this.options.debug&&console.log("changedOptions",r),this.onSetOptions(r),this.render())}},{key:"changedOptions",value:function(e){var r=this;return Object.keys(e).filter((function(n){return JSON.stringify(e[n])!==JSON.stringify(r.options[n])}))}},{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 Yt({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(r){e(window.SimpleKeyboardInstances[r],r)}))}},{key:"addButtonTheme",value:function(e,r){var n=this;r&&e&&(e.split(" ").forEach((function(o){r.split(" ").forEach((function(a){n.options.buttonTheme||(n.options.buttonTheme=[]);var u=!1;n.options.buttonTheme.map((function(c){if(c!=null&&c.class.split(" ").includes(a)){u=!0;var l=c.buttons.split(" ");l.includes(o)||(u=!0,l.push(o),c.buttons=l.join(" "))}return c})),u||n.options.buttonTheme.push({class:a,buttons:e})}))})),this.render())}},{key:"removeButtonTheme",value:function(e,r){var n=this;if(!e&&!r)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=n.options)===null||a===void 0||(a=a.buttonTheme)===null||a===void 0||a.map((function(u,c){if(u&&r&&r.includes(u.class)||!r){var l,d,v=(l=u)===null||l===void 0?void 0:l.buttons.split(" ").filter((function(p){return p!==o}));u&&v!=null&&v.length?u.buttons=v.join(" "):((d=n.options.buttonTheme)===null||d===void 0||d.splice(c,1),u=null)}return u}))})),this.render())}},{key:"getButtonElement",value:function(e){var r,n=this.buttonElements[e];return n&&(r=n.length>1?n:n[0]),r}},{key:"inputPatternIsValid",value:function(e){var r,n=this.options.inputPattern;if((r=n instanceof RegExp?n:n[this.options.inputName||this.defaultName])&&e){var o=r.test(e);return this.options.debug&&console.log('inputPattern ("'.concat(r,'"): ').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,r=e!==void 0&&e;document.addEventListener("keyup",this.handleKeyUp,r),document.addEventListener("keydown",this.handleKeyDown,r),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 r,n=this;e.target.tagName&&(r=e.target.tagName.toLowerCase()),this.dispatch((function(o){var a=e.target===o.keyboardDOM||e.target&&o.keyboardDOM.contains(e.target);if(n.options.syncInstanceInputs&&Array.isArray(e.path)&&(a=e.path.some((function(l){var d;return l==null||(d=l.hasAttribute)===null||d===void 0?void 0:d.call(l,"data-skInstance")}))),(r==="textarea"||r==="input"&&["text","search","url","tel","password"].includes(e.target.type))&&!o.options.disableCaretPositioning){var u=e.target.selectionStart,c=e.target.selectionEnd;o.options.rtl&&(u=o.utilities.getRtlOffset(u,o.getInput()),c=o.utilities.getRtlOffset(c,o.getInput())),o.setCaretPosition(u,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?.type)}else!o.options.disableCaretPositioning&&a||e?.type==="selectionchange"||(o.setCaretPosition(null),o.activeInputElement=null,o.options.debug&&console.log('Caret position reset due to "'.concat(e?.type,'" event'),e))}))}},{key:"recurseButtons",value:function(e){var r=this;e&&Object.keys(this.buttonElements).forEach((function(n){return r.buttonElements[n].forEach(e)}))}},{key:"destroy",value:function(){this.options.debug&&console.log("Destroying simple-keyboard instance: ".concat(this.currentInstanceName));var e=this.options.physicalKeyboardHighlightPreventDefault,r=e!==void 0&&e;document.removeEventListener("keyup",this.handleKeyUp,r),document.removeEventListener("keydown",this.handleKeyDown,r),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(n){n&&(n.onpointerdown=null,n.onpointerup=null,n.onpointercancel=null,n.ontouchstart=null,n.ontouchend=null,n.ontouchcancel=null,n.onclick=null,n.onmousedown=null,n.onmouseup=null,n.remove(),n=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 r=this.options.buttonTheme,n=[];return Array.isArray(r)&&r.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)&&(n=[].concat(Kt(n),Kt(a)))}else console.warn('Incorrect "buttonTheme". Please check the documentation.',o)})),n}},{key:"setDOMButtonAttributes",value:function(e,r){var n=this.options.buttonAttributes;Array.isArray(n)&&n.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)&&r(o.attribute,o.value):r(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 r;if((r=e.target.classList)!==null&&r!==void 0&&r.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(r){var n=e.utilities.isConstructor(r)?new r(e):r(e);n.init&&n.init(e)})),this.keyboardPluginClasses="modules-loaded",this.render(),this.onModulesLoaded())}},{key:"getModuleProp",value:function(e,r){return!!this.modules[e]&&this.modules[e][r]}},{key:"getModulesList",value:function(){return Object.keys(this.modules)}},{key:"parseRowDOMContainers",value:function(e,r,n,o){var a=this,u=Array.from(e.children),c=0;return u.length&&n.forEach((function(l,d){var v=o[d];if(!(v&&v>l))return!1;var p=l-c,f=v-c,g=document.createElement("div");g.className+="hg-button-container";var h="".concat(a.options.layoutName,"-r").concat(r,"c").concat(d);g.setAttribute("data-skUID",h);var y=u.splice(p,f-p+1);c+=f-p,y.forEach((function(m){return g.appendChild(m)})),u.splice(p,0,g),e.innerHTML="",u.forEach((function(m){return e.appendChild(m)})),a.options.debug&&console.log("rowDOMContainer",y,p,f,c+1)})),e}},{key:"render",value:function(){var e=this;this.resetRows(),this.initialized||this.beforeFirstRender(),this.beforeRender();var r="hg-layout-".concat(this.options.layoutName),n=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":"",u=this.options.useMouseEvents||!1,c=this.options.disableRowButtonContainers;this.keyboardDOM.className=this.getKeyboardClassString(this.options.theme,r,this.keyboardPluginClasses,a),this.keyboardDOM.setAttribute("data-skInstance",this.currentInstanceName),this.keyboardRowsDOM=document.createElement("div"),this.keyboardRowsDOM.className="hg-rows",n[this.options.layoutName||this.defaultName].forEach((function(l,d){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 p=document.createElement("div");p.className+="hg-row";var f=[],g=[];v.forEach((function(h,y){var m,b=!c&&typeof h=="string"&&h.length>1&&h.indexOf("[")===0,O=!c&&typeof h=="string"&&h.length>1&&h.indexOf("]")===h.length-1;b&&(f.push(y),h=h.replace(/\[/g,"")),O&&(g.push(y),h=h.replace(/\]/g,""));var w=e.utilities.getButtonClass(h),S=e.utilities.getButtonDisplayName(h,e.options.display,e.options.mergeDisplay),k=e.options.useButtonTag?"button":"div",E=document.createElement(k);E.className+="hg-button ".concat(w),(m=E.classList).add.apply(m,Kt(e.getButtonThemeClasses(h))),e.setDOMButtonAttributes(h,(function(x,B){E.setAttribute(x,B)})),e.activeButtonClass="hg-activeButton",!e.utilities.pointerEventsSupported()||o||u?o?(E.ontouchstart=function(x){e.handleButtonClicked(h,x),e.handleButtonMouseDown(h,x)},E.ontouchend=function(x){e.handleButtonMouseUp(h,x)},E.ontouchcancel=function(x){e.handleButtonMouseUp(h,x)}):(E.onclick=function(x){e.setMouseHold(!1),typeof e.options.onKeyReleased=="function"||e.options.useMouseEvents&&e.options.clickOnMouseDown||e.handleButtonClicked(h,x)},E.onmousedown=function(x){(typeof e.options.onKeyReleased=="function"||e.options.useMouseEvents&&e.options.clickOnMouseDown)&&!e.isMouseHold&&e.handleButtonClicked(h,x),e.handleButtonMouseDown(h,x)},E.onmouseup=function(x){e.handleButtonMouseUp(h,x)}):(E.onpointerdown=function(x){e.handleButtonClicked(h,x),e.handleButtonMouseDown(h,x)},E.onpointerup=function(x){e.handleButtonMouseUp(h,x)},E.onpointercancel=function(x){e.handleButtonMouseUp(h,x)}),E.setAttribute("data-skBtn",h);var P="".concat(e.options.layoutName,"-r").concat(d,"b").concat(y);E.setAttribute("data-skBtnUID",P);var I=document.createElement("span");I.innerHTML=S,E.appendChild(I),e.buttonElements[h]||(e.buttonElements[h]=[]),e.buttonElements[h].push(E),p.appendChild(E)})),p=e.parseRowDOMContainers(p,d,f,g),e.keyboardRowsDOM.appendChild(p)})),this.keyboardDOM.appendChild(this.keyboardRowsDOM),this.onRender(),this.initialized||(this.initialized=!0,!this.utilities.pointerEventsSupported()||o||u?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())}}],s&&re(i.prototype,s),t&&re(i,t),Object.defineProperty(i,"prototype",{writable:!1}),i;var i,s,t})(),oe=ce,le=oe;return pt})()},442:function(W){W.exports=Zt}},te={};function xt(W){var ut=te[W];if(ut!==void 0)return ut.exports;var it=te[W]={exports:{}};return qt[W].call(it.exports,it,it.exports,xt),it.exports}xt.n=function(W){var ut=W&&W.__esModule?function(){return W.default}:function(){return W};return xt.d(ut,{a:ut}),ut},xt.d=function(W,ut){for(var it in ut)xt.o(ut,it)&&!xt.o(W,it)&&Object.defineProperty(W,it,{enumerable:!0,get:ut[it]})},xt.o=function(W,ut){return Object.prototype.hasOwnProperty.call(W,ut)},xt.r=function(W){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(W,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(W,"__esModule",{value:!0})};var Xt={};return(function(){xt.r(Xt),xt.d(Xt,{KeyboardReact:function(){return bt},default:function(){return Bt}}),xt(981);var W=xt(442),ut=xt(548),it=xt.n(ut);function D(Y){return D=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(rt){return typeof rt}:function(rt){return rt&&typeof Symbol=="function"&&rt.constructor===Symbol&&rt!==Symbol.prototype?"symbol":typeof rt},D(Y)}function pt(Y,rt){var at=Object.keys(Y);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(Y);rt&&(V=V.filter((function(F){return Object.getOwnPropertyDescriptor(Y,F).enumerable}))),at.push.apply(at,V)}return at}function vt(Y){for(var rt=1;rt<arguments.length;rt++){var at=arguments[rt]!=null?arguments[rt]:{};rt%2?pt(Object(at),!0).forEach((function(V){Ot(Y,V,at[V])})):Object.getOwnPropertyDescriptors?Object.defineProperties(Y,Object.getOwnPropertyDescriptors(at)):pt(Object(at)).forEach((function(V){Object.defineProperty(Y,V,Object.getOwnPropertyDescriptor(at,V))}))}return Y}function Ot(Y,rt,at){return(rt=(function(V){var F=(function(tt,nt){if(D(tt)!="object"||!tt)return tt;var Et=tt[Symbol.toPrimitive];if(Et!==void 0){var Mt=Et.call(tt,nt);if(D(Mt)!="object")return Mt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(nt==="string"?String:Number)(tt)})(V,"string");return D(F)=="symbol"?F:F+""})(rt))in Y?Object.defineProperty(Y,rt,{value:at,enumerable:!0,configurable:!0,writable:!0}):Y[rt]=at,Y}var It=function(Y){return vt(vt({},Y),{},{keyboardRef:null})},bt=function(Y){var rt=Y.baseClass||"react-simple-keyboard",at=W.useRef(null),V=W.useRef(null),F=W.useRef(null),tt=W.useRef(Y);return W.useEffect((function(){return function(){F.current&&F.current.destroy(),at.current=!1}}),[]),W.useEffect((function(){var nt=(function(At){return vt(vt({},At),{},{theme:"simple-keyboard ".concat(At.theme||"hg-theme-default")})})(Y);if(!at.current){at.current=!0,nt.debug&&console.log("ReactSimpleKeyboard: Init");var Et=V.current,Mt=".".concat(rt);F.current=new(it())(Et||Mt,nt),nt.keyboardRef&&nt.keyboardRef(F.current)}var jt=(function(At,zt){var Jt=It(zt),Yt=It(At);return Object.keys(Jt).filter((function(Kt){return Jt[Kt]!==Yt[Kt]}))})(tt.current,nt);if(jt.length){var $t=F.current;tt.current=nt,$t?.setOptions(nt),nt.debug&&console.log("ReactSimpleKeyboard - setOptions called due to updated props:",jt)}}),[at,rt,tt,Y]),W.createElement("div",{className:rt,ref:V})},Bt=bt})(),Xt})()}))})(Wt)),Wt.exports}var ve=he();const me=de(ve);export{me as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r,g as t}from"./index.P6snMalu.js";var e=r();const o=t(e);export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{a as h,l as s}from"./__federation_expose_App.rWoLmFNr.js";import{C as c,H as u,D as p,a as m,R as f,b as _,c as w,d as k,F as v,e as D,S as P,f as R,g as I}from"./lspLanguageFeatures.BbVTGB6M.js";import{h as b,i as H,j as y,t as U,k as T}from"./lspLanguageFeatures.BbVTGB6M.js";const A=120*1e3;class C{constructor(o){this._defaults=o,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>A&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=h({moduleId:"vs/language/css/cssWorker",createWorker:()=>new Worker(new URL("/assets/css.worker-uch7pA5g.js",import.meta.url),{type:"module"}),label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...o){let e;return this._getClient().then(a=>{e=a}).then(a=>{if(this._worker)return this._worker.withSyncedResources(o)}).then(a=>e)}}function F(n){const o=[],e=[],a=new C(n);o.push(a);const r=(...t)=>a.getLanguageServiceWorker(...t);function l(){const{languageId:t,modeConfiguration:i}=n;g(e),i.completionItems&&e.push(s.registerCompletionItemProvider(t,new c(r,["/","-",":"]))),i.hovers&&e.push(s.registerHoverProvider(t,new u(r))),i.documentHighlights&&e.push(s.registerDocumentHighlightProvider(t,new p(r))),i.definitions&&e.push(s.registerDefinitionProvider(t,new m(r))),i.references&&e.push(s.registerReferenceProvider(t,new f(r))),i.documentSymbols&&e.push(s.registerDocumentSymbolProvider(t,new _(r))),i.rename&&e.push(s.registerRenameProvider(t,new w(r))),i.colors&&e.push(s.registerColorProvider(t,new k(r))),i.foldingRanges&&e.push(s.registerFoldingRangeProvider(t,new v(r))),i.diagnostics&&e.push(new D(t,r,n.onDidChange)),i.selectionRanges&&e.push(s.registerSelectionRangeProvider(t,new P(r))),i.documentFormattingEdits&&e.push(s.registerDocumentFormattingEditProvider(t,new R(r))),i.documentRangeFormattingEdits&&e.push(s.registerDocumentRangeFormattingEditProvider(t,new I(r)))}return l(),o.push(d(e)),d(o)}function d(n){return{dispose:()=>g(n)}}function g(n){for(;n.length;)n.pop().dispose()}export{c as CompletionAdapter,m as DefinitionAdapter,D as DiagnosticsAdapter,k as DocumentColorAdapter,R as DocumentFormattingEditProvider,p as DocumentHighlightAdapter,b as DocumentLinkAdapter,I as DocumentRangeFormattingEditProvider,_ as DocumentSymbolAdapter,v as FoldingRangeAdapter,u as HoverAdapter,f as ReferenceAdapter,w as RenameAdapter,P as SelectionRangeAdapter,C as WorkerManager,H as fromPosition,y as fromRange,F as setupMode,U as toRange,T as toTextEdit};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{importShared as Z}from"./__federation_fn_import.Drmbxo5T.js";function We(e){if(e.sheet)return e.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===e)return document.styleSheets[r]}function De(e){var r=document.createElement("style");return r.setAttribute("data-emotion",e.key),e.nonce!==void 0&&r.setAttribute("nonce",e.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}var He=(function(){function e(t){var n=this;this._insertTag=function(a){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(a,i),n.tags.push(a)},this.isSpeedy=t.speedy===void 0?!0:t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}var r=e.prototype;return r.hydrate=function(n){n.forEach(this._insertTag)},r.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(De(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var i=We(a);try{i.insertRule(n,i.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(n));this.ctr++},r.flush=function(){this.tags.forEach(function(n){var a;return(a=n.parentNode)==null?void 0:a.removeChild(n)}),this.tags=[],this.ctr=0},e})(),k="-ms-",K="-moz-",u="-webkit-",xe="comm",oe="rule",ce="decl",Ue="@import",we="@keyframes",Ve="@layer",Be=Math.abs,J=String.fromCharCode,qe=Object.assign;function Ge(e,r){return w(e,0)^45?(((r<<2^w(e,0))<<2^w(e,1))<<2^w(e,2))<<2^w(e,3):0}function ke(e){return e.trim()}function Ye(e,r){return(e=r.exec(e))?e[0]:e}function l(e,r,t){return e.replace(r,t)}function te(e,r){return e.indexOf(r)}function w(e,r){return e.charCodeAt(r)|0}function D(e,r,t){return e.slice(r,t)}function _(e){return e.length}function fe(e){return e.length}function G(e,r){return r.push(e),e}function je(e,r){return e.map(r).join("")}var Q=1,F=1,Se=0,P=0,b=0,L="";function ee(e,r,t,n,a,i,s){return{value:e,root:r,parent:t,type:n,props:a,children:i,line:Q,column:F,length:s,return:""}}function z(e,r){return qe(ee("",null,null,"",null,null,0),e,{length:-e.length},r)}function Xe(){return b}function Ke(){return b=P>0?w(L,--P):0,F--,b===10&&(F=1,Q--),b}function A(){return b=P<Se?w(L,P++):0,F++,b===10&&(F=1,Q++),b}function I(){return w(L,P)}function Y(){return P}function V(e,r){return D(L,e,r)}function H(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ce(e){return Q=F=1,Se=_(L=e),P=0,[]}function Pe(e){return L="",e}function j(e){return ke(V(P-1,ne(e===91?e+2:e===40?e+1:e)))}function Ze(e){for(;(b=I())&&b<33;)A();return H(e)>2||H(b)>3?"":" "}function Je(e,r){for(;--r&&A()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return V(e,Y()+(r<6&&I()==32&&A()==32))}function ne(e){for(;A();)switch(b){case e:return P;case 34:case 39:e!==34&&e!==39&&ne(b);break;case 40:e===41&&ne(e);break;case 92:A();break}return P}function Qe(e,r){for(;A()&&e+b!==57;)if(e+b===84&&I()===47)break;return"/*"+V(r,P-1)+"*"+J(e===47?e:A())}function er(e){for(;!H(I());)A();return V(e,P)}function rr(e){return Pe(X("",null,null,null,[""],e=Ce(e),0,[0],e))}function X(e,r,t,n,a,i,s,o,f){for(var p=0,d=0,h=s,E=0,T=0,x=0,c=1,m=1,g=1,v=0,C="",R=a,O=i,S=n,y=C;m;)switch(x=v,v=A()){case 40:if(x!=108&&w(y,h-1)==58){te(y+=l(j(v),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:y+=j(v);break;case 9:case 10:case 13:case 32:y+=Ze(x);break;case 92:y+=Je(Y()-1,7);continue;case 47:switch(I()){case 42:case 47:G(tr(Qe(A(),Y()),r,t),f);break;default:y+="/"}break;case 123*c:o[p++]=_(y)*g;case 125*c:case 59:case 0:switch(v){case 0:case 125:m=0;case 59+d:g==-1&&(y=l(y,/\f/g,"")),T>0&&_(y)-h&&G(T>32?he(y+";",n,t,h-1):he(l(y," ","")+";",n,t,h-2),f);break;case 59:y+=";";default:if(G(S=de(y,r,t,p,d,a,o,C,R=[],O=[],h),i),v===123)if(d===0)X(y,r,S,S,R,i,h,o,O);else switch(E===99&&w(y,3)===110?100:E){case 100:case 108:case 109:case 115:X(e,S,S,n&&G(de(e,S,S,0,0,a,o,C,a,R=[],h),O),a,O,h,o,n?R:O);break;default:X(y,S,S,S,[""],O,0,o,O)}}p=d=T=0,c=g=1,C=y="",h=s;break;case 58:h=1+_(y),T=x;default:if(c<1){if(v==123)--c;else if(v==125&&c++==0&&Ke()==125)continue}switch(y+=J(v),v*c){case 38:g=d>0?1:(y+="\f",-1);break;case 44:o[p++]=(_(y)-1)*g,g=1;break;case 64:I()===45&&(y+=j(A())),E=I(),d=h=_(C=y+=er(Y())),v++;break;case 45:x===45&&_(y)==2&&(c=0)}}return i}function de(e,r,t,n,a,i,s,o,f,p,d){for(var h=a-1,E=a===0?i:[""],T=fe(E),x=0,c=0,m=0;x<n;++x)for(var g=0,v=D(e,h+1,h=Be(c=s[x])),C=e;g<T;++g)(C=ke(c>0?E[g]+" "+v:l(v,/&\f/g,E[g])))&&(f[m++]=C);return ee(e,r,t,a===0?oe:o,f,p,d)}function tr(e,r,t){return ee(e,r,t,xe,J(Xe()),D(e,2,-2),0)}function he(e,r,t,n){return ee(e,r,t,ce,D(e,0,n),D(e,n+1,-1),n)}function M(e,r){for(var t="",n=fe(e),a=0;a<n;a++)t+=r(e[a],a,e,r)||"";return t}function nr(e,r,t,n){switch(e.type){case Ve:if(e.children.length)break;case Ue:case ce:return e.return=e.return||e.value;case xe:return"";case we:return e.return=e.value+"{"+M(e.children,n)+"}";case oe:e.value=e.props.join(",")}return _(t=M(e.children,n))?e.return=e.value+"{"+t+"}":""}function ar(e){var r=fe(e);return function(t,n,a,i){for(var s="",o=0;o<r;o++)s+=e[o](t,n,a,i)||"";return s}}function ir(e){return function(r){r.root||(r=r.return)&&e(r)}}function Ae(e){var r=Object.create(null);return function(t){return r[t]===void 0&&(r[t]=e(t)),r[t]}}var sr=function(r,t,n){for(var a=0,i=0;a=i,i=I(),a===38&&i===12&&(t[n]=1),!H(i);)A();return V(r,P)},or=function(r,t){var n=-1,a=44;do switch(H(a)){case 0:a===38&&I()===12&&(t[n]=1),r[n]+=sr(P-1,t,n);break;case 2:r[n]+=j(a);break;case 4:if(a===44){r[++n]=I()===58?"&\f":"",t[n]=r[n].length;break}default:r[n]+=J(a)}while(a=A());return r},cr=function(r,t){return Pe(or(Ce(r),t))},pe=new WeakMap,fr=function(r){if(!(r.type!=="rule"||!r.parent||r.length<1)){for(var t=r.value,n=r.parent,a=r.column===n.column&&r.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(r.props.length===1&&t.charCodeAt(0)!==58&&!pe.get(n))&&!a){pe.set(r,!0);for(var i=[],s=cr(t,i),o=n.props,f=0,p=0;f<s.length;f++)for(var d=0;d<o.length;d++,p++)r.props[p]=i[f]?s[f].replace(/&\f/g,o[d]):o[d]+" "+s[f]}}},ur=function(r){if(r.type==="decl"){var t=r.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(r.return="",r.value="")}};function Ee(e,r){switch(Ge(e,r)){case 5103:return u+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return u+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return u+e+K+e+k+e+e;case 6828:case 4268:return u+e+k+e+e;case 6165:return u+e+k+"flex-"+e+e;case 5187:return u+e+l(e,/(\w+).+(:[^]+)/,u+"box-$1$2"+k+"flex-$1$2")+e;case 5443:return u+e+k+"flex-item-"+l(e,/flex-|-self/,"")+e;case 4675:return u+e+k+"flex-line-pack"+l(e,/align-content|flex-|-self/,"")+e;case 5548:return u+e+k+l(e,"shrink","negative")+e;case 5292:return u+e+k+l(e,"basis","preferred-size")+e;case 6060:return u+"box-"+l(e,"-grow","")+u+e+k+l(e,"grow","positive")+e;case 4554:return u+l(e,/([^-])(transform)/g,"$1"+u+"$2")+e;case 6187:return l(l(l(e,/(zoom-|grab)/,u+"$1"),/(image-set)/,u+"$1"),e,"")+e;case 5495:case 3959:return l(e,/(image-set\([^]*)/,u+"$1$`$1");case 4968:return l(l(e,/(.+:)(flex-)?(.*)/,u+"box-pack:$3"+k+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+u+e+e;case 4095:case 3583:case 4068:case 2532:return l(e,/(.+)-inline(.+)/,u+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(_(e)-1-r>6)switch(w(e,r+1)){case 109:if(w(e,r+4)!==45)break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+u+"$2-$3$1"+K+(w(e,r+3)==108?"$3":"$2-$3"))+e;case 115:return~te(e,"stretch")?Ee(l(e,"stretch","fill-available"),r)+e:e}break;case 4949:if(w(e,r+1)!==115)break;case 6444:switch(w(e,_(e)-3-(~te(e,"!important")&&10))){case 107:return l(e,":",":"+u)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+u+(w(e,14)===45?"inline-":"")+"box$3$1"+u+"$2$3$1"+k+"$2box$3")+e}break;case 5936:switch(w(e,r+11)){case 114:return u+e+k+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return u+e+k+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return u+e+k+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return u+e+k+e+e}return e}var lr=function(r,t,n,a){if(r.length>-1&&!r.return)switch(r.type){case ce:r.return=Ee(r.value,r.length);break;case we:return M([z(r,{value:l(r.value,"@","@"+u)})],a);case oe:if(r.length)return je(r.props,function(i){switch(Ye(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return M([z(r,{props:[l(i,/:(read-\w+)/,":"+K+"$1")]})],a);case"::placeholder":return M([z(r,{props:[l(i,/:(plac\w+)/,":"+u+"input-$1")]}),z(r,{props:[l(i,/:(plac\w+)/,":"+K+"$1")]}),z(r,{props:[l(i,/:(plac\w+)/,k+"input-$1")]})],a)}return""})}},dr=[lr],hr=function(r){var t=r.key;if(t==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(c){var m=c.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(c),c.setAttribute("data-s",""))})}var a=r.stylisPlugins||dr,i={},s,o=[];s=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(c){for(var m=c.getAttribute("data-emotion").split(" "),g=1;g<m.length;g++)i[m[g]]=!0;o.push(c)});var f,p=[fr,ur];{var d,h=[nr,ir(function(c){d.insert(c)})],E=ar(p.concat(a,h)),T=function(m){return M(rr(m),E)};f=function(m,g,v,C){d=v,T(m?m+"{"+g.styles+"}":g.styles),C&&(x.inserted[g.name]=!0)}}var x={key:t,sheet:new He({key:t,container:s,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:i,registered:{},insert:f};return x.sheet.hydrate(o),x};function ae(){return ae=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},ae.apply(null,arguments)}var pr=!0;function Te(e,r,t){var n="";return t.split(" ").forEach(function(a){e[a]!==void 0?r.push(e[a]+";"):a&&(n+=a+" ")}),n}var ue=function(r,t,n){var a=r.key+"-"+t.name;(n===!1||pr===!1)&&r.registered[a]===void 0&&(r.registered[a]=t.styles)},Re=function(r,t,n){ue(r,t,n);var a=r.key+"-"+t.name;if(r.inserted[t.name]===void 0){var i=t;do r.insert(t===i?"."+a:"",i,r.sheet,!0),i=i.next;while(i!==void 0)}};function mr(e){for(var r=0,t,n=0,a=e.length;a>=4;++n,a-=4)t=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(t&65535)*1540483477+((t>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(a){case 3:r^=(e.charCodeAt(n+2)&255)<<16;case 2:r^=(e.charCodeAt(n+1)&255)<<8;case 1:r^=e.charCodeAt(n)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var gr={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},yr=/[A-Z]|^ms/g,vr=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Oe=function(r){return r.charCodeAt(1)===45},me=function(r){return r!=null&&typeof r!="boolean"},re=Ae(function(e){return Oe(e)?e:e.replace(yr,"-$&").toLowerCase()}),ge=function(r,t){switch(r){case"animation":case"animationName":if(typeof t=="string")return t.replace(vr,function(n,a,i){return $={name:a,styles:i,next:$},a})}return gr[r]!==1&&!Oe(r)&&typeof t=="number"&&t!==0?t+"px":t};function U(e,r,t){if(t==null)return"";var n=t;if(n.__emotion_styles!==void 0)return n;switch(typeof t){case"boolean":return"";case"object":{var a=t;if(a.anim===1)return $={name:a.name,styles:a.styles,next:$},a.name;var i=t;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)$={name:s.name,styles:s.styles,next:$},s=s.next;var o=i.styles+";";return o}return br(e,r,t)}case"function":{if(e!==void 0){var f=$,p=t(e);return $=f,U(e,r,p)}break}}var d=t;if(r==null)return d;var h=r[d];return h!==void 0?h:d}function br(e,r,t){var n="";if(Array.isArray(t))for(var a=0;a<t.length;a++)n+=U(e,r,t[a])+";";else for(var i in t){var s=t[i];if(typeof s!="object"){var o=s;r!=null&&r[o]!==void 0?n+=i+"{"+r[o]+"}":me(o)&&(n+=re(i)+":"+ge(i,o)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(r==null||r[s[0]]===void 0))for(var f=0;f<s.length;f++)me(s[f])&&(n+=re(i)+":"+ge(i,s[f])+";");else{var p=U(e,r,s);switch(i){case"animation":case"animationName":{n+=re(i)+":"+p+";";break}default:n+=i+"{"+p+"}"}}}return n}var ye=/label:\s*([^\s;{]+)\s*(;|$)/g,$;function _e(e,r,t){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,a="";$=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,a+=U(t,r,i);else{var s=i;a+=s[0]}for(var o=1;o<e.length;o++)if(a+=U(t,r,e[o]),n){var f=i;a+=f[o]}ye.lastIndex=0;for(var p="",d;(d=ye.exec(a))!==null;)p+="-"+d[1];var h=mr(a)+p;return{name:h,styles:a,next:$}}const ie=await Z("react");var xr=function(r){return r()},$e=ie.useInsertionEffect?ie.useInsertionEffect:!1,Ie=$e||xr;$e||ie.useLayoutEffect;const N=await Z("react"),{useContext:wr,forwardRef:kr}=await Z("react");var Ne=N.createContext(typeof HTMLElement<"u"?hr({key:"css"}):null);Ne.Provider;var Me=function(r){return kr(function(t,n){var a=wr(Ne);return r(t,a,n)})},Fe=N.createContext({}),Le={}.hasOwnProperty,se="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",_r=function(r,t){var n={};for(var a in t)Le.call(t,a)&&(n[a]=t[a]);return n[se]=r,n},Sr=function(r){var t=r.cache,n=r.serialized,a=r.isStringTag;return ue(t,n,a),Ie(function(){return Re(t,n,a)}),null},Cr=Me(function(e,r,t){var n=e.css;typeof n=="string"&&r.registered[n]!==void 0&&(n=r.registered[n]);var a=e[se],i=[n],s="";typeof e.className=="string"?s=Te(r.registered,i,e.className):e.className!=null&&(s=e.className+" ");var o=_e(i,void 0,N.useContext(Fe));s+=r.key+"-"+o.name;var f={};for(var p in e)Le.call(e,p)&&p!=="css"&&p!==se&&(f[p]=e[p]);return f.className=s,t&&(f.ref=t),N.createElement(N.Fragment,null,N.createElement(Sr,{cache:r,serialized:o,isStringTag:typeof a=="string"}),N.createElement(a,f))}),$r=Cr,Pr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Ar=Ae(function(e){return Pr.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});const W=await Z("react");var Er=Ar,Tr=function(r){return r!=="theme"},ve=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?Er:Tr},be=function(r,t,n){var a;if(t){var i=t.shouldForwardProp;a=r.__emotion_forwardProp&&i?function(s){return r.__emotion_forwardProp(s)&&i(s)}:i}return typeof a!="function"&&n&&(a=r.__emotion_forwardProp),a},Rr=function(r){var t=r.cache,n=r.serialized,a=r.isStringTag;return ue(t,n,a),Ie(function(){return Re(t,n,a)}),null},Ir=function e(r,t){var n=r.__emotion_real===r,a=n&&r.__emotion_base||r,i,s;t!==void 0&&(i=t.label,s=t.target);var o=be(r,t,n),f=o||ve(a),p=!f("as");return function(){var d=arguments,h=n&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(i!==void 0&&h.push("label:"+i+";"),d[0]==null||d[0].raw===void 0)h.push.apply(h,d);else{var E=d[0];h.push(E[0]);for(var T=d.length,x=1;x<T;x++)h.push(d[x],E[x])}var c=Me(function(m,g,v){var C=p&&m.as||a,R="",O=[],S=m;if(m.theme==null){S={};for(var y in m)S[y]=m[y];S.theme=W.useContext(Fe)}typeof m.className=="string"?R=Te(g.registered,O,m.className):m.className!=null&&(R=m.className+" ");var le=_e(h.concat(O),g.registered,S);R+=g.key+"-"+le.name,s!==void 0&&(R+=" "+s);var ze=p&&o===void 0?ve(C):f,B={};for(var q in m)p&&q==="as"||ze(q)&&(B[q]=m[q]);return B.className=R,v&&(B.ref=v),W.createElement(W.Fragment,null,W.createElement(Rr,{cache:g,serialized:le,isStringTag:typeof C=="string"}),W.createElement(C,B))});return c.displayName=i!==void 0?i:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",c.defaultProps=r.defaultProps,c.__emotion_real=c,c.__emotion_base=a,c.__emotion_styles=h,c.__emotion_forwardProp=o,Object.defineProperty(c,"toString",{value:function(){return"."+s}}),c.withComponent=function(m,g){var v=e(m,ae({},t,g,{shouldForwardProp:be(c,g,!0)}));return v.apply(void 0,h)},c}};export{$r as E,ae as _,_r as a,Ir as c,Le as h,_e as s};
|
|
1
|
+
import{importShared as Z}from"./__federation_fn_import.DdkEuT6t.js";function We(e){if(e.sheet)return e.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===e)return document.styleSheets[r]}function De(e){var r=document.createElement("style");return r.setAttribute("data-emotion",e.key),e.nonce!==void 0&&r.setAttribute("nonce",e.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}var He=(function(){function e(t){var n=this;this._insertTag=function(a){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(a,i),n.tags.push(a)},this.isSpeedy=t.speedy===void 0?!0:t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}var r=e.prototype;return r.hydrate=function(n){n.forEach(this._insertTag)},r.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(De(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var i=We(a);try{i.insertRule(n,i.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(n));this.ctr++},r.flush=function(){this.tags.forEach(function(n){var a;return(a=n.parentNode)==null?void 0:a.removeChild(n)}),this.tags=[],this.ctr=0},e})(),k="-ms-",K="-moz-",u="-webkit-",xe="comm",oe="rule",ce="decl",Ue="@import",we="@keyframes",Ve="@layer",Be=Math.abs,J=String.fromCharCode,qe=Object.assign;function Ge(e,r){return w(e,0)^45?(((r<<2^w(e,0))<<2^w(e,1))<<2^w(e,2))<<2^w(e,3):0}function ke(e){return e.trim()}function Ye(e,r){return(e=r.exec(e))?e[0]:e}function l(e,r,t){return e.replace(r,t)}function te(e,r){return e.indexOf(r)}function w(e,r){return e.charCodeAt(r)|0}function D(e,r,t){return e.slice(r,t)}function _(e){return e.length}function fe(e){return e.length}function G(e,r){return r.push(e),e}function je(e,r){return e.map(r).join("")}var Q=1,F=1,Se=0,P=0,b=0,L="";function ee(e,r,t,n,a,i,s){return{value:e,root:r,parent:t,type:n,props:a,children:i,line:Q,column:F,length:s,return:""}}function z(e,r){return qe(ee("",null,null,"",null,null,0),e,{length:-e.length},r)}function Xe(){return b}function Ke(){return b=P>0?w(L,--P):0,F--,b===10&&(F=1,Q--),b}function A(){return b=P<Se?w(L,P++):0,F++,b===10&&(F=1,Q++),b}function I(){return w(L,P)}function Y(){return P}function V(e,r){return D(L,e,r)}function H(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ce(e){return Q=F=1,Se=_(L=e),P=0,[]}function Pe(e){return L="",e}function j(e){return ke(V(P-1,ne(e===91?e+2:e===40?e+1:e)))}function Ze(e){for(;(b=I())&&b<33;)A();return H(e)>2||H(b)>3?"":" "}function Je(e,r){for(;--r&&A()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return V(e,Y()+(r<6&&I()==32&&A()==32))}function ne(e){for(;A();)switch(b){case e:return P;case 34:case 39:e!==34&&e!==39&&ne(b);break;case 40:e===41&&ne(e);break;case 92:A();break}return P}function Qe(e,r){for(;A()&&e+b!==57;)if(e+b===84&&I()===47)break;return"/*"+V(r,P-1)+"*"+J(e===47?e:A())}function er(e){for(;!H(I());)A();return V(e,P)}function rr(e){return Pe(X("",null,null,null,[""],e=Ce(e),0,[0],e))}function X(e,r,t,n,a,i,s,o,f){for(var p=0,d=0,h=s,E=0,T=0,x=0,c=1,m=1,g=1,v=0,C="",R=a,O=i,S=n,y=C;m;)switch(x=v,v=A()){case 40:if(x!=108&&w(y,h-1)==58){te(y+=l(j(v),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:y+=j(v);break;case 9:case 10:case 13:case 32:y+=Ze(x);break;case 92:y+=Je(Y()-1,7);continue;case 47:switch(I()){case 42:case 47:G(tr(Qe(A(),Y()),r,t),f);break;default:y+="/"}break;case 123*c:o[p++]=_(y)*g;case 125*c:case 59:case 0:switch(v){case 0:case 125:m=0;case 59+d:g==-1&&(y=l(y,/\f/g,"")),T>0&&_(y)-h&&G(T>32?he(y+";",n,t,h-1):he(l(y," ","")+";",n,t,h-2),f);break;case 59:y+=";";default:if(G(S=de(y,r,t,p,d,a,o,C,R=[],O=[],h),i),v===123)if(d===0)X(y,r,S,S,R,i,h,o,O);else switch(E===99&&w(y,3)===110?100:E){case 100:case 108:case 109:case 115:X(e,S,S,n&&G(de(e,S,S,0,0,a,o,C,a,R=[],h),O),a,O,h,o,n?R:O);break;default:X(y,S,S,S,[""],O,0,o,O)}}p=d=T=0,c=g=1,C=y="",h=s;break;case 58:h=1+_(y),T=x;default:if(c<1){if(v==123)--c;else if(v==125&&c++==0&&Ke()==125)continue}switch(y+=J(v),v*c){case 38:g=d>0?1:(y+="\f",-1);break;case 44:o[p++]=(_(y)-1)*g,g=1;break;case 64:I()===45&&(y+=j(A())),E=I(),d=h=_(C=y+=er(Y())),v++;break;case 45:x===45&&_(y)==2&&(c=0)}}return i}function de(e,r,t,n,a,i,s,o,f,p,d){for(var h=a-1,E=a===0?i:[""],T=fe(E),x=0,c=0,m=0;x<n;++x)for(var g=0,v=D(e,h+1,h=Be(c=s[x])),C=e;g<T;++g)(C=ke(c>0?E[g]+" "+v:l(v,/&\f/g,E[g])))&&(f[m++]=C);return ee(e,r,t,a===0?oe:o,f,p,d)}function tr(e,r,t){return ee(e,r,t,xe,J(Xe()),D(e,2,-2),0)}function he(e,r,t,n){return ee(e,r,t,ce,D(e,0,n),D(e,n+1,-1),n)}function M(e,r){for(var t="",n=fe(e),a=0;a<n;a++)t+=r(e[a],a,e,r)||"";return t}function nr(e,r,t,n){switch(e.type){case Ve:if(e.children.length)break;case Ue:case ce:return e.return=e.return||e.value;case xe:return"";case we:return e.return=e.value+"{"+M(e.children,n)+"}";case oe:e.value=e.props.join(",")}return _(t=M(e.children,n))?e.return=e.value+"{"+t+"}":""}function ar(e){var r=fe(e);return function(t,n,a,i){for(var s="",o=0;o<r;o++)s+=e[o](t,n,a,i)||"";return s}}function ir(e){return function(r){r.root||(r=r.return)&&e(r)}}function Ae(e){var r=Object.create(null);return function(t){return r[t]===void 0&&(r[t]=e(t)),r[t]}}var sr=function(r,t,n){for(var a=0,i=0;a=i,i=I(),a===38&&i===12&&(t[n]=1),!H(i);)A();return V(r,P)},or=function(r,t){var n=-1,a=44;do switch(H(a)){case 0:a===38&&I()===12&&(t[n]=1),r[n]+=sr(P-1,t,n);break;case 2:r[n]+=j(a);break;case 4:if(a===44){r[++n]=I()===58?"&\f":"",t[n]=r[n].length;break}default:r[n]+=J(a)}while(a=A());return r},cr=function(r,t){return Pe(or(Ce(r),t))},pe=new WeakMap,fr=function(r){if(!(r.type!=="rule"||!r.parent||r.length<1)){for(var t=r.value,n=r.parent,a=r.column===n.column&&r.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(r.props.length===1&&t.charCodeAt(0)!==58&&!pe.get(n))&&!a){pe.set(r,!0);for(var i=[],s=cr(t,i),o=n.props,f=0,p=0;f<s.length;f++)for(var d=0;d<o.length;d++,p++)r.props[p]=i[f]?s[f].replace(/&\f/g,o[d]):o[d]+" "+s[f]}}},ur=function(r){if(r.type==="decl"){var t=r.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(r.return="",r.value="")}};function Ee(e,r){switch(Ge(e,r)){case 5103:return u+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return u+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return u+e+K+e+k+e+e;case 6828:case 4268:return u+e+k+e+e;case 6165:return u+e+k+"flex-"+e+e;case 5187:return u+e+l(e,/(\w+).+(:[^]+)/,u+"box-$1$2"+k+"flex-$1$2")+e;case 5443:return u+e+k+"flex-item-"+l(e,/flex-|-self/,"")+e;case 4675:return u+e+k+"flex-line-pack"+l(e,/align-content|flex-|-self/,"")+e;case 5548:return u+e+k+l(e,"shrink","negative")+e;case 5292:return u+e+k+l(e,"basis","preferred-size")+e;case 6060:return u+"box-"+l(e,"-grow","")+u+e+k+l(e,"grow","positive")+e;case 4554:return u+l(e,/([^-])(transform)/g,"$1"+u+"$2")+e;case 6187:return l(l(l(e,/(zoom-|grab)/,u+"$1"),/(image-set)/,u+"$1"),e,"")+e;case 5495:case 3959:return l(e,/(image-set\([^]*)/,u+"$1$`$1");case 4968:return l(l(e,/(.+:)(flex-)?(.*)/,u+"box-pack:$3"+k+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+u+e+e;case 4095:case 3583:case 4068:case 2532:return l(e,/(.+)-inline(.+)/,u+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(_(e)-1-r>6)switch(w(e,r+1)){case 109:if(w(e,r+4)!==45)break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+u+"$2-$3$1"+K+(w(e,r+3)==108?"$3":"$2-$3"))+e;case 115:return~te(e,"stretch")?Ee(l(e,"stretch","fill-available"),r)+e:e}break;case 4949:if(w(e,r+1)!==115)break;case 6444:switch(w(e,_(e)-3-(~te(e,"!important")&&10))){case 107:return l(e,":",":"+u)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+u+(w(e,14)===45?"inline-":"")+"box$3$1"+u+"$2$3$1"+k+"$2box$3")+e}break;case 5936:switch(w(e,r+11)){case 114:return u+e+k+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return u+e+k+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return u+e+k+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return u+e+k+e+e}return e}var lr=function(r,t,n,a){if(r.length>-1&&!r.return)switch(r.type){case ce:r.return=Ee(r.value,r.length);break;case we:return M([z(r,{value:l(r.value,"@","@"+u)})],a);case oe:if(r.length)return je(r.props,function(i){switch(Ye(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return M([z(r,{props:[l(i,/:(read-\w+)/,":"+K+"$1")]})],a);case"::placeholder":return M([z(r,{props:[l(i,/:(plac\w+)/,":"+u+"input-$1")]}),z(r,{props:[l(i,/:(plac\w+)/,":"+K+"$1")]}),z(r,{props:[l(i,/:(plac\w+)/,k+"input-$1")]})],a)}return""})}},dr=[lr],hr=function(r){var t=r.key;if(t==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(c){var m=c.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(c),c.setAttribute("data-s",""))})}var a=r.stylisPlugins||dr,i={},s,o=[];s=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(c){for(var m=c.getAttribute("data-emotion").split(" "),g=1;g<m.length;g++)i[m[g]]=!0;o.push(c)});var f,p=[fr,ur];{var d,h=[nr,ir(function(c){d.insert(c)})],E=ar(p.concat(a,h)),T=function(m){return M(rr(m),E)};f=function(m,g,v,C){d=v,T(m?m+"{"+g.styles+"}":g.styles),C&&(x.inserted[g.name]=!0)}}var x={key:t,sheet:new He({key:t,container:s,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:i,registered:{},insert:f};return x.sheet.hydrate(o),x};function ae(){return ae=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},ae.apply(null,arguments)}var pr=!0;function Te(e,r,t){var n="";return t.split(" ").forEach(function(a){e[a]!==void 0?r.push(e[a]+";"):a&&(n+=a+" ")}),n}var ue=function(r,t,n){var a=r.key+"-"+t.name;(n===!1||pr===!1)&&r.registered[a]===void 0&&(r.registered[a]=t.styles)},Re=function(r,t,n){ue(r,t,n);var a=r.key+"-"+t.name;if(r.inserted[t.name]===void 0){var i=t;do r.insert(t===i?"."+a:"",i,r.sheet,!0),i=i.next;while(i!==void 0)}};function mr(e){for(var r=0,t,n=0,a=e.length;a>=4;++n,a-=4)t=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(t&65535)*1540483477+((t>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(a){case 3:r^=(e.charCodeAt(n+2)&255)<<16;case 2:r^=(e.charCodeAt(n+1)&255)<<8;case 1:r^=e.charCodeAt(n)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var gr={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},yr=/[A-Z]|^ms/g,vr=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Oe=function(r){return r.charCodeAt(1)===45},me=function(r){return r!=null&&typeof r!="boolean"},re=Ae(function(e){return Oe(e)?e:e.replace(yr,"-$&").toLowerCase()}),ge=function(r,t){switch(r){case"animation":case"animationName":if(typeof t=="string")return t.replace(vr,function(n,a,i){return $={name:a,styles:i,next:$},a})}return gr[r]!==1&&!Oe(r)&&typeof t=="number"&&t!==0?t+"px":t};function U(e,r,t){if(t==null)return"";var n=t;if(n.__emotion_styles!==void 0)return n;switch(typeof t){case"boolean":return"";case"object":{var a=t;if(a.anim===1)return $={name:a.name,styles:a.styles,next:$},a.name;var i=t;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)$={name:s.name,styles:s.styles,next:$},s=s.next;var o=i.styles+";";return o}return br(e,r,t)}case"function":{if(e!==void 0){var f=$,p=t(e);return $=f,U(e,r,p)}break}}var d=t;if(r==null)return d;var h=r[d];return h!==void 0?h:d}function br(e,r,t){var n="";if(Array.isArray(t))for(var a=0;a<t.length;a++)n+=U(e,r,t[a])+";";else for(var i in t){var s=t[i];if(typeof s!="object"){var o=s;r!=null&&r[o]!==void 0?n+=i+"{"+r[o]+"}":me(o)&&(n+=re(i)+":"+ge(i,o)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(r==null||r[s[0]]===void 0))for(var f=0;f<s.length;f++)me(s[f])&&(n+=re(i)+":"+ge(i,s[f])+";");else{var p=U(e,r,s);switch(i){case"animation":case"animationName":{n+=re(i)+":"+p+";";break}default:n+=i+"{"+p+"}"}}}return n}var ye=/label:\s*([^\s;{]+)\s*(;|$)/g,$;function _e(e,r,t){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,a="";$=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,a+=U(t,r,i);else{var s=i;a+=s[0]}for(var o=1;o<e.length;o++)if(a+=U(t,r,e[o]),n){var f=i;a+=f[o]}ye.lastIndex=0;for(var p="",d;(d=ye.exec(a))!==null;)p+="-"+d[1];var h=mr(a)+p;return{name:h,styles:a,next:$}}const ie=await Z("react");var xr=function(r){return r()},$e=ie.useInsertionEffect?ie.useInsertionEffect:!1,Ie=$e||xr;$e||ie.useLayoutEffect;const N=await Z("react"),{useContext:wr,forwardRef:kr}=await Z("react");var Ne=N.createContext(typeof HTMLElement<"u"?hr({key:"css"}):null);Ne.Provider;var Me=function(r){return kr(function(t,n){var a=wr(Ne);return r(t,a,n)})},Fe=N.createContext({}),Le={}.hasOwnProperty,se="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",_r=function(r,t){var n={};for(var a in t)Le.call(t,a)&&(n[a]=t[a]);return n[se]=r,n},Sr=function(r){var t=r.cache,n=r.serialized,a=r.isStringTag;return ue(t,n,a),Ie(function(){return Re(t,n,a)}),null},Cr=Me(function(e,r,t){var n=e.css;typeof n=="string"&&r.registered[n]!==void 0&&(n=r.registered[n]);var a=e[se],i=[n],s="";typeof e.className=="string"?s=Te(r.registered,i,e.className):e.className!=null&&(s=e.className+" ");var o=_e(i,void 0,N.useContext(Fe));s+=r.key+"-"+o.name;var f={};for(var p in e)Le.call(e,p)&&p!=="css"&&p!==se&&(f[p]=e[p]);return f.className=s,t&&(f.ref=t),N.createElement(N.Fragment,null,N.createElement(Sr,{cache:r,serialized:o,isStringTag:typeof a=="string"}),N.createElement(a,f))}),$r=Cr,Pr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Ar=Ae(function(e){return Pr.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});const W=await Z("react");var Er=Ar,Tr=function(r){return r!=="theme"},ve=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?Er:Tr},be=function(r,t,n){var a;if(t){var i=t.shouldForwardProp;a=r.__emotion_forwardProp&&i?function(s){return r.__emotion_forwardProp(s)&&i(s)}:i}return typeof a!="function"&&n&&(a=r.__emotion_forwardProp),a},Rr=function(r){var t=r.cache,n=r.serialized,a=r.isStringTag;return ue(t,n,a),Ie(function(){return Re(t,n,a)}),null},Ir=function e(r,t){var n=r.__emotion_real===r,a=n&&r.__emotion_base||r,i,s;t!==void 0&&(i=t.label,s=t.target);var o=be(r,t,n),f=o||ve(a),p=!f("as");return function(){var d=arguments,h=n&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(i!==void 0&&h.push("label:"+i+";"),d[0]==null||d[0].raw===void 0)h.push.apply(h,d);else{var E=d[0];h.push(E[0]);for(var T=d.length,x=1;x<T;x++)h.push(d[x],E[x])}var c=Me(function(m,g,v){var C=p&&m.as||a,R="",O=[],S=m;if(m.theme==null){S={};for(var y in m)S[y]=m[y];S.theme=W.useContext(Fe)}typeof m.className=="string"?R=Te(g.registered,O,m.className):m.className!=null&&(R=m.className+" ");var le=_e(h.concat(O),g.registered,S);R+=g.key+"-"+le.name,s!==void 0&&(R+=" "+s);var ze=p&&o===void 0?ve(C):f,B={};for(var q in m)p&&q==="as"||ze(q)&&(B[q]=m[q]);return B.className=R,v&&(B.ref=v),W.createElement(W.Fragment,null,W.createElement(Rr,{cache:g,serialized:le,isStringTag:typeof C=="string"}),W.createElement(C,B))});return c.displayName=i!==void 0?i:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",c.defaultProps=r.defaultProps,c.__emotion_real=c,c.__emotion_base=a,c.__emotion_styles=h,c.__emotion_forwardProp=o,Object.defineProperty(c,"toString",{value:function(){return"."+s}}),c.withComponent=function(m,g){var v=e(m,ae({},t,g,{shouldForwardProp:be(c,g,!0)}));return v.apply(void 0,h)},c}};export{$r as E,ae as _,_r as a,Ir as c,Le as h,_e as s};
|