@kosdev-code/kos-ddk-components 2.0.2 → 2.0.3
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/components/action-card/action-card.d.ts +2 -1
- package/components/action-card/action-card.d.ts.map +1 -1
- package/components/dashboard-card/dashboard-card.d.ts +4 -1
- package/components/dashboard-card/dashboard-card.d.ts.map +1 -1
- package/components/frame/frame-body/frame-body.d.ts +1 -1
- package/components/frame/frame-body/frame-body.d.ts.map +1 -1
- package/components/frame/frame-container/frame-container.d.ts +1 -1
- package/components/frame/frame-container/frame-container.d.ts.map +1 -1
- package/components/workflow-modal/workflow-modal.d.ts.map +1 -1
- package/index.cjs +67 -63
- package/index.js +765 -750
- package/package.json +4 -4
- package/styles/card/card.d.ts.map +1 -1
package/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("@emotion/react/jsx-runtime"),A=require("@emotion/styled"),et=require("react"),pe=require("@emotion/is-prop-valid"),bt=require("@kosdev-code/kos-ddk-styles"),Nt=require("@kosdev-code/kos-ui-sdk"),xt=require("@emotion/react"),Re=require("react-dom"),Zi=require("@use-gesture/react"),wo=require("date-fns"),Ce=require("react-router-dom");function ta(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("@emotion/react/jsx-runtime"),A=require("@emotion/styled"),et=require("react"),pe=require("@emotion/is-prop-valid"),bt=require("@kosdev-code/kos-ddk-styles"),Nt=require("@kosdev-code/kos-ui-sdk"),xt=require("@emotion/react"),Re=require("react-dom"),Zi=require("@use-gesture/react"),wo=require("date-fns"),Ce=require("react-router-dom");function ta(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const s=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(n,o,s.get?s:{enumerable:!0,get:()=>t[o]})}}return n.default=t,Object.freeze(n)}const de=ta(et),nr={componentModeOverride:"standard",enableDialAnimation:!0,enableModalAnimation:!0,enableSidebarAnimation:!0,modalModeOverride:void 0},Un=et.createContext(nr),ea=({children:t,value:n=nr})=>h.jsx(Un.Provider,{value:n,children:t}),Ct=()=>{const t=et.useContext(Un);if(!t)throw new Error("useComponentConfigurationContext must be used within a ComponentConfigurationProvider");return t},na=(t,n)=>n[t],oa=t=>et.useMemo(()=>t.reduce((n,o)=>(n[o.id]=o,n),{}),[t]),ra=(t,n)=>{var o;if(!(!t||!n))return(o=n[t])==null?void 0:o.component},Ze=A("div",{shouldForwardProp:t=>pe(t)})`
|
|
2
2
|
align-items: center;
|
|
3
3
|
|
|
4
4
|
background-color: ${t=>t.disabled?"var(--ddk-component-action-item-background-color-disabled)":"var(--ddk-component-action-item-background-color-default)"};
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
width: var(--ddk-generic-font-size-large);
|
|
107
107
|
height: var(--ddk-generic-font-size-large);
|
|
108
108
|
}
|
|
109
|
-
`,Be=({children:t,disabled:n,unitStyle:o="external",unitValue:
|
|
109
|
+
`,Be=({children:t,disabled:n,unitStyle:o="external",unitValue:s,...m})=>h.jsxs(ia,{children:[o==="inline"?h.jsxs(En,{disabled:n,unitValue:s,...m,children:[h.jsx(aa,{children:t}),s!==void 0&&h.jsx(sa,{disabled:n,children:s})]}):h.jsx(En,{disabled:n,...m,children:t}),o==="external"&&s!==void 0&&s]}),or=A.button`
|
|
110
110
|
align-items: center;
|
|
111
111
|
|
|
112
112
|
background-color: ${t=>t.disabled?"var(--ddk-component-button-background-color-disabled)":t.active?"var(--ddk-component-button-background-color-active)":"var(--ddk-component-button-background-color-default)"};
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
border-color: ${t=>t.disabled?"var(--ddk-component-button-border-color-disabled)":t.active?"var(--ddk-component-button-border-color-active)":"var(--ddk-component-button-border-color-default)"};
|
|
164
164
|
|
|
165
165
|
color: ${t=>t.disabled?"var(--ddk-component-button-primary-color-disabled)":t.active?"var(--ddk-component-button-primary-color-active)":"var(--ddk-component-button-primary-color-default)"};
|
|
166
|
-
`,Mt=({disabled:t,onPointerDown:n,...o})=>{const
|
|
166
|
+
`,Mt=({disabled:t,onPointerDown:n,...o})=>{const s=m=>{t||n==null||n(m)};return o.mode==="primary"?h.jsx(ca,{disabled:t,onPointerDown:s,...o}):h.jsx(or,{disabled:t,onPointerDown:s,...o})},Ot=A("div",{shouldForwardProp:t=>pe(t)})`
|
|
167
167
|
align-items: ${t=>t.collapse?"stretch":"center"};
|
|
168
168
|
|
|
169
169
|
background-color: ${t=>t.collapse||t.float?"transparent":t.disabled?"var(--ddk-component-card-background-color-disabled)":"var(--ddk-component-card-background-color-default)"};
|
|
@@ -284,7 +284,7 @@
|
|
|
284
284
|
|
|
285
285
|
font-size: ${t=>t.size==="small"?"var(--ddk-component-icon-button-font-size-small)":t.size==="medium"?"var(--ddk-component-icon-button-font-size-medium)":"var(--ddk-component-icon-button-font-size-large)"};
|
|
286
286
|
}
|
|
287
|
-
`,se=({children:t,icon:n,size:o="medium",...
|
|
287
|
+
`,se=({children:t,icon:n,size:o="medium",...s})=>h.jsxs(da,{size:o,...s,children:[h.jsx(n,{}),t&&h.jsx("div",{children:t})]}),la=A(bt.SuccessIcon)`
|
|
288
288
|
box-sizing: var(--ddk-component-green-tick-icon-box-sizing);
|
|
289
289
|
min-width: var(--ddk-component-green-tick-icon-min-width);
|
|
290
290
|
min-height: var(--ddk-component-green-tick-icon-min-height);
|
|
@@ -520,7 +520,7 @@
|
|
|
520
520
|
|
|
521
521
|
color: ${t=>!(t.active||t.disabled||t.state)&&"var(--ddk-component-input-color-hover)"};
|
|
522
522
|
}
|
|
523
|
-
`,Le=et.forwardRef(({error:t,isError:n,...o},
|
|
523
|
+
`,Le=et.forwardRef(({error:t,isError:n,...o},s)=>h.jsxs(Ia,{children:[t&&h.jsx(qn,{children:t}),h.jsx(mr,{ref:s,isError:n||!!t,...o})]})),Pa=A(Ot,{shouldForwardProp:t=>pe(t)})`
|
|
524
524
|
align-items: flex-start;
|
|
525
525
|
flex-direction: column;
|
|
526
526
|
font-size: var(--ddk-component-instruction-card-font-size);
|
|
@@ -713,14 +713,19 @@
|
|
|
713
713
|
color: var(--ddk-component-input-card-description-color);
|
|
714
714
|
font-size: var(--ddk-component-input-card-description-font-size);
|
|
715
715
|
font-weight: var(--ddk-component-input-card-description-font-weight);
|
|
716
|
-
|
|
716
|
+
|
|
717
|
+
-webkit-box-orient: ${t=>t.multiline?"vertical":void 0};
|
|
718
|
+
-webkit-line-clamp: ${t=>t.multiline?"4":void 0};
|
|
719
|
+
display: ${t=>t.multiline?"-webkit-box":void 0};
|
|
720
|
+
white-space: ${t=>t.multiline?"normal":void 0};
|
|
721
|
+
`,$a=({buttonLabel:t,description:n,label:o,onAction:s,multiline:m,...k})=>{const{componentModeOverride:j}=Ct();return h.jsxs(Ot,{collapse:j==="compact",...k,children:[h.jsxs(Na,{children:[h.jsx(wr,{children:o}),n&&h.jsx(La,{multiline:m===!0,children:n})]}),h.jsx(Mt,{onPointerDown:s,children:t})]})},jr=A(bt.ChevronLeftIcon)`
|
|
717
722
|
cursor: pointer;
|
|
718
723
|
`,za=A.div`
|
|
719
724
|
display: flex;
|
|
720
725
|
flex-direction: column;
|
|
721
726
|
flex: 1;
|
|
722
727
|
gap: var(--ddk-component-card-button-grid-container-gap);
|
|
723
|
-
`,Fa=({CardButtonRenderer:t=rr,items:n,onSelect:o,showNavIcon:
|
|
728
|
+
`,Fa=({CardButtonRenderer:t=rr,items:n,onSelect:o,showNavIcon:s=!0,...m})=>h.jsx(za,{...m,children:n.map(k=>h.jsxs(t,{active:k.active,onPointerDown:()=>o==null?void 0:o(k.id),children:[k.label,s&&h.jsx(bt.ChevronRightIcon,{})]},k.id))}),Va=()=>{const{t}=Nt.useKosTranslation("common");return t("close")},Wn=({children:t,fill:n,label:o,size:s="medium",...m})=>h.jsx(se,{icon:n?bt.CloseIconWithBackground:bt.CloseIcon,size:s,...m,children:o??h.jsx(Va,{})}),$e=({children:t,label:n,size:o="medium",...s})=>h.jsx(se,{icon:bt.CompactCloseIcon,size:o,...s}),Ka=A.div`
|
|
724
729
|
box-sizing: border-box;
|
|
725
730
|
display: flex;
|
|
726
731
|
flex-direction: column;
|
|
@@ -735,7 +740,7 @@
|
|
|
735
740
|
padding: ${t=>t.contain?"var(--ddk-component-modal-content-padding)":"initial"};
|
|
736
741
|
|
|
737
742
|
width: 100%;
|
|
738
|
-
`,he=({align:t,children:n,className:o,size:
|
|
743
|
+
`,he=({align:t,children:n,className:o,size:s})=>{const{componentModeOverride:m}=Ct();return h.jsx(ie,{size:s,children:h.jsx(Ka,{align:t,className:o,contain:m==="compact",children:n})})},Sr=A.div`
|
|
739
744
|
align-items: var(--ddk-component-modal-footer-align-items);
|
|
740
745
|
box-sizing: border-box;
|
|
741
746
|
display: flex;
|
|
@@ -748,7 +753,7 @@
|
|
|
748
753
|
`,Ua=A(Sr)`
|
|
749
754
|
background-color: #ffffff;
|
|
750
755
|
border-top: 1px solid #d2d4da;
|
|
751
|
-
`,ze=t=>{const{componentModeOverride:n}=Ct();return n==="compact"?h.jsx(Ua,{...t}):h.jsx(Sr,{...t})},jo=({textKey:t})=>{const{t:n}=Nt.useKosTranslation("common");return n(t)},ln=({cancelLabel:t,onCancel:n,onProceed:o,proceedLabel:
|
|
756
|
+
`,ze=t=>{const{componentModeOverride:n}=Ct();return n==="compact"?h.jsx(Ua,{...t}):h.jsx(Sr,{...t})},jo=({textKey:t})=>{const{t:n}=Nt.useKosTranslation("common");return n(t)},ln=({cancelLabel:t,onCancel:n,onProceed:o,proceedLabel:s,canProceed:m=!0})=>{const{componentModeOverride:k}=Ct();return h.jsxs(ze,{children:[k==="standard"&&h.jsx(Mt,{onPointerDown:n,children:t??h.jsx(jo,{textKey:"cancel"})}),h.jsx(Mt,{disabled:!m,mode:"primary",onPointerDown:o,children:s??h.jsx(jo,{textKey:"proceed"})})]})},Cr=({children:t,label:n="Steps",size:o="medium",...s})=>{const{componentModeOverride:m}=Ct();return h.jsx(se,{icon:m==="compact"?bt.CompactMenuIcon:bt.MenuIcon,size:o,...s,children:n})},Ha=A.div`
|
|
752
757
|
align-items: center;
|
|
753
758
|
background-color: var(--ddk-component-modal-header-background-color);
|
|
754
759
|
box-shadow: var(--ddk-component-modal-header-box-shadow);
|
|
@@ -775,7 +780,7 @@
|
|
|
775
780
|
justify-content: center;
|
|
776
781
|
padding: var(--ddk-component-modal-header-side-content-padding);
|
|
777
782
|
width: 40px;
|
|
778
|
-
`,Zt=({CloseButton:t,closeButtonLabel:n,contain:o=!1,leftContent:a,onClose:m,onOpen:k,OpenButton:j,raiseCloseButton:C,showCloseButton:F,showOpenButton:R,size:D="small",subtitle:Q,title:c})=>{const v=t?h.jsx(t,{}):h.jsx(Wn,{fill:!0,label:n,size:D==="small"?"medium":D==="large"?"large":"medium"}),e=j?h.jsx(j,{onPointerDown:k}):h.jsx(Cr,{onPointerDown:k});return h.jsxs(Ha,{contain:o,children:[h.jsx(So,{children:R?e:a}),h.jsxs(qa,{children:[c&&h.jsx(Gn,{children:c}),Q&&h.jsx(hr,{children:Q})]}),h.jsx(So,{style:{zIndex:C?1:"initial"},onPointerDown:F?m:void 0,children:F?v:void 0})]})};var Ga=Object.defineProperty,Qa=(t,n)=>{for(var o in n)Ga(t,o,{get:n[o],enumerable:!0})},Vt={};Qa(Vt,{assign:()=>Xa,colors:()=>Jt,createStringInterpolator:()=>no,skipAnimation:()=>Ar,to:()=>Mr,willAdvance:()=>oo});var Yn=Ve(),ft=t=>Fe(t,Yn),Xn=Ve();ft.write=t=>Fe(t,Xn);var un=Ve();ft.onStart=t=>Fe(t,un);var Jn=Ve();ft.onFrame=t=>Fe(t,Jn);var Zn=Ve();ft.onFinish=t=>Fe(t,Zn);var le=[];ft.setTimeout=(t,n)=>{const o=ft.now()+n,a=()=>{const k=le.findIndex(j=>j.cancel==a);~k&&le.splice(k,1),Xt-=~k?1:0},m={time:o,handler:t,cancel:a};return le.splice(Ir(o),0,m),Xt+=1,Pr(),m};var Ir=t=>~(~le.findIndex(n=>n.time>t)||~le.length);ft.cancel=t=>{un.delete(t),Jn.delete(t),Zn.delete(t),Yn.delete(t),Xn.delete(t)};ft.sync=t=>{On=!0,ft.batchedUpdates(t),On=!1};ft.throttle=t=>{let n;function o(){try{t(...n)}finally{n=null}}function a(...m){n=m,ft.onStart(o)}return a.handler=t,a.cancel=()=>{un.delete(o),n=null},a};var to=typeof window<"u"?window.requestAnimationFrame:()=>{};ft.use=t=>to=t;ft.now=typeof performance<"u"?()=>performance.now():Date.now;ft.batchedUpdates=t=>t();ft.catch=console.error;ft.frameLoop="always";ft.advance=()=>{ft.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Or()};var Yt=-1,Xt=0,On=!1;function Fe(t,n){On?(n.delete(t),t(0)):(n.add(t),Pr())}function Pr(){Yt<0&&(Yt=0,ft.frameLoop!=="demand"&&to(Er))}function Wa(){Yt=-1}function Er(){~Yt&&(to(Er),ft.batchedUpdates(Or))}function Or(){const t=Yt;Yt=ft.now();const n=Ir(Yt);if(n&&(Tr(le.splice(0,n),o=>o.handler()),Xt-=n),!Xt){Wa();return}un.flush(),Yn.flush(t?Math.min(64,Yt-t):16.667),Jn.flush(),Xn.flush(),Zn.flush()}function Ve(){let t=new Set,n=t;return{add(o){Xt+=n==t&&!t.has(o)?1:0,t.add(o)},delete(o){return Xt-=n==t&&t.has(o)?1:0,t.delete(o)},flush(o){n.size&&(t=new Set,Xt-=n.size,Tr(n,a=>a(o)&&t.add(a)),Xt+=t.size,n=t)}}}function Tr(t,n){t.forEach(o=>{try{n(o)}catch(a){ft.catch(a)}})}function Tn(){}var Ya=(t,n,o)=>Object.defineProperty(t,n,{value:o,writable:!0,configurable:!0}),tt={arr:Array.isArray,obj:t=>!!t&&t.constructor.name==="Object",fun:t=>typeof t=="function",str:t=>typeof t=="string",num:t=>typeof t=="number",und:t=>t===void 0};function qt(t,n){if(tt.arr(t)){if(!tt.arr(n)||t.length!==n.length)return!1;for(let o=0;o<t.length;o++)if(t[o]!==n[o])return!1;return!0}return t===n}var lt=(t,n)=>t.forEach(n);function Ut(t,n,o){if(tt.arr(t)){for(let a=0;a<t.length;a++)n.call(o,t[a],`${a}`);return}for(const a in t)t.hasOwnProperty(a)&&n.call(o,t[a],a)}var Tt=t=>tt.und(t)?[]:tt.arr(t)?t:[t];function xe(t,n){if(t.size){const o=Array.from(t);t.clear(),lt(o,n)}}var ke=(t,...n)=>xe(t,o=>o(...n)),eo=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),no,Mr,Jt=null,Ar=!1,oo=Tn,Xa=t=>{t.to&&(Mr=t.to),t.now&&(ft.now=t.now),t.colors!==void 0&&(Jt=t.colors),t.skipAnimation!=null&&(Ar=t.skipAnimation),t.createStringInterpolator&&(no=t.createStringInterpolator),t.requestAnimationFrame&&ft.use(t.requestAnimationFrame),t.batchedUpdates&&(ft.batchedUpdates=t.batchedUpdates),t.willAdvance&&(oo=t.willAdvance),t.frameLoop&&(ft.frameLoop=t.frameLoop)},we=new Set,Bt=[],wn=[],tn=0,fn={get idle(){return!we.size&&!Bt.length},start(t){tn>t.priority?(we.add(t),ft.onStart(Ja)):(Dr(t),ft(Mn))},advance:Mn,sort(t){if(tn)ft.onFrame(()=>fn.sort(t));else{const n=Bt.indexOf(t);~n&&(Bt.splice(n,1),_r(t))}},clear(){Bt=[],we.clear()}};function Ja(){we.forEach(Dr),we.clear(),ft(Mn)}function Dr(t){Bt.includes(t)||_r(t)}function _r(t){Bt.splice(Za(Bt,n=>n.priority>t.priority),0,t)}function Mn(t){const n=wn;for(let o=0;o<Bt.length;o++){const a=Bt[o];tn=a.priority,a.idle||(oo(a),a.advance(t),a.idle||n.push(a))}return tn=0,wn=Bt,wn.length=0,Bt=n,Bt.length>0}function Za(t,n){const o=t.findIndex(n);return o<0?t.length:o}var ts=(t,n,o)=>Math.min(Math.max(o,t),n),es={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Ft="[-+]?\\d*\\.?\\d+",en=Ft+"%";function pn(...t){return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var ns=new RegExp("rgb"+pn(Ft,Ft,Ft)),os=new RegExp("rgba"+pn(Ft,Ft,Ft,Ft)),rs=new RegExp("hsl"+pn(Ft,en,en)),is=new RegExp("hsla"+pn(Ft,en,en,Ft)),as=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ss=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,cs=/^#([0-9a-fA-F]{6})$/,ds=/^#([0-9a-fA-F]{8})$/;function ls(t){let n;return typeof t=="number"?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=cs.exec(t))?parseInt(n[1]+"ff",16)>>>0:Jt&&Jt[t]!==void 0?Jt[t]:(n=ns.exec(t))?(ce(n[1])<<24|ce(n[2])<<16|ce(n[3])<<8|255)>>>0:(n=os.exec(t))?(ce(n[1])<<24|ce(n[2])<<16|ce(n[3])<<8|Po(n[4]))>>>0:(n=as.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=ds.exec(t))?parseInt(n[1],16)>>>0:(n=ss.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=rs.exec(t))?(Co(Io(n[1]),qe(n[2]),qe(n[3]))|255)>>>0:(n=is.exec(t))?(Co(Io(n[1]),qe(n[2]),qe(n[3]))|Po(n[4]))>>>0:null}function jn(t,n,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?t+(n-t)*6*o:o<1/2?n:o<2/3?t+(n-t)*(2/3-o)*6:t}function Co(t,n,o){const a=o<.5?o*(1+n):o+n-o*n,m=2*o-a,k=jn(m,a,t+1/3),j=jn(m,a,t),C=jn(m,a,t-1/3);return Math.round(k*255)<<24|Math.round(j*255)<<16|Math.round(C*255)<<8}function ce(t){const n=parseInt(t,10);return n<0?0:n>255?255:n}function Io(t){return(parseFloat(t)%360+360)%360/360}function Po(t){const n=parseFloat(t);return n<0?0:n>1?255:Math.round(n*255)}function qe(t){const n=parseFloat(t);return n<0?0:n>100?1:n/100}function Eo(t){let n=ls(t);if(n===null)return t;n=n||0;const o=(n&4278190080)>>>24,a=(n&16711680)>>>16,m=(n&65280)>>>8,k=(n&255)/255;return`rgba(${o}, ${a}, ${m}, ${k})`}var Ie=(t,n,o)=>{if(tt.fun(t))return t;if(tt.arr(t))return Ie({range:t,output:n,extrapolate:o});if(tt.str(t.output[0]))return no(t);const a=t,m=a.output,k=a.range||[0,1],j=a.extrapolateLeft||a.extrapolate||"extend",C=a.extrapolateRight||a.extrapolate||"extend",F=a.easing||(R=>R);return R=>{const D=fs(R,k);return us(R,k[D],k[D+1],m[D],m[D+1],F,j,C,a.map)}};function us(t,n,o,a,m,k,j,C,F){let R=F?F(t):t;if(R<n){if(j==="identity")return R;j==="clamp"&&(R=n)}if(R>o){if(C==="identity")return R;C==="clamp"&&(R=o)}return a===m?a:n===o?t<=n?a:m:(n===-1/0?R=-R:o===1/0?R=R-n:R=(R-n)/(o-n),R=k(R),a===-1/0?R=-R:m===1/0?R=R+a:R=R*(m-a)+a,R)}function fs(t,n){for(var o=1;o<n.length-1&&!(n[o]>=t);++o);return o-1}var ps=(t,n="end")=>o=>{o=n==="end"?Math.min(o,.999):Math.max(o,.001);const a=o*t,m=n==="end"?Math.floor(a):Math.ceil(a);return ts(0,1,m/t)},nn=1.70158,Ge=nn*1.525,Oo=nn+1,To=2*Math.PI/3,Mo=2*Math.PI/4.5,Qe=t=>t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,hs={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>1-(1-t)*(1-t),easeInOutQuad:t=>t<.5?2*t*t:1-Math.pow(-2*t+2,2)/2,easeInCubic:t=>t*t*t,easeOutCubic:t=>1-Math.pow(1-t,3),easeInOutCubic:t=>t<.5?4*t*t*t:1-Math.pow(-2*t+2,3)/2,easeInQuart:t=>t*t*t*t,easeOutQuart:t=>1-Math.pow(1-t,4),easeInOutQuart:t=>t<.5?8*t*t*t*t:1-Math.pow(-2*t+2,4)/2,easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>1-Math.pow(1-t,5),easeInOutQuint:t=>t<.5?16*t*t*t*t*t:1-Math.pow(-2*t+2,5)/2,easeInSine:t=>1-Math.cos(t*Math.PI/2),easeOutSine:t=>Math.sin(t*Math.PI/2),easeInOutSine:t=>-(Math.cos(Math.PI*t)-1)/2,easeInExpo:t=>t===0?0:Math.pow(2,10*t-10),easeOutExpo:t=>t===1?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>t===0?0:t===1?1:t<.5?Math.pow(2,20*t-10)/2:(2-Math.pow(2,-20*t+10))/2,easeInCirc:t=>1-Math.sqrt(1-Math.pow(t,2)),easeOutCirc:t=>Math.sqrt(1-Math.pow(t-1,2)),easeInOutCirc:t=>t<.5?(1-Math.sqrt(1-Math.pow(2*t,2)))/2:(Math.sqrt(1-Math.pow(-2*t+2,2))+1)/2,easeInBack:t=>Oo*t*t*t-nn*t*t,easeOutBack:t=>1+Oo*Math.pow(t-1,3)+nn*Math.pow(t-1,2),easeInOutBack:t=>t<.5?Math.pow(2*t,2)*((Ge+1)*2*t-Ge)/2:(Math.pow(2*t-2,2)*((Ge+1)*(t*2-2)+Ge)+2)/2,easeInElastic:t=>t===0?0:t===1?1:-Math.pow(2,10*t-10)*Math.sin((t*10-10.75)*To),easeOutElastic:t=>t===0?0:t===1?1:Math.pow(2,-10*t)*Math.sin((t*10-.75)*To)+1,easeInOutElastic:t=>t===0?0:t===1?1:t<.5?-(Math.pow(2,20*t-10)*Math.sin((20*t-11.125)*Mo))/2:Math.pow(2,-20*t+10)*Math.sin((20*t-11.125)*Mo)/2+1,easeInBounce:t=>1-Qe(1-t),easeOutBounce:Qe,easeInOutBounce:t=>t<.5?(1-Qe(1-2*t))/2:(1+Qe(2*t-1))/2,steps:ps},Pe=Symbol.for("FluidValue.get"),fe=Symbol.for("FluidValue.observers"),Rt=t=>!!(t&&t[Pe]),At=t=>t&&t[Pe]?t[Pe]():t,Ao=t=>t[fe]||null;function ms(t,n){t.eventObserved?t.eventObserved(n):t(n)}function Ee(t,n){const o=t[fe];o&&o.forEach(a=>{ms(a,n)})}var Rr=class{constructor(t){if(!t&&!(t=this.get))throw Error("Unknown getter");gs(this,t)}},gs=(t,n)=>Br(t,Pe,n);function me(t,n){if(t[Pe]){let o=t[fe];o||Br(t,fe,o=new Set),o.has(n)||(o.add(n),t.observerAdded&&t.observerAdded(o.size,n))}return n}function Oe(t,n){const o=t[fe];if(o&&o.has(n)){const a=o.size-1;a?o.delete(n):t[fe]=null,t.observerRemoved&&t.observerRemoved(a,n)}}var Br=(t,n,o)=>Object.defineProperty(t,n,{value:o,writable:!0,configurable:!0}),Xe=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,vs=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Do=new RegExp(`(${Xe.source})(%|[a-z]+)`,"i"),bs=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,hn=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Nr=t=>{const[n,o]=ys(t);if(!n||eo())return t;const a=window.getComputedStyle(document.documentElement).getPropertyValue(n);if(a)return a.trim();if(o&&o.startsWith("--")){const m=window.getComputedStyle(document.documentElement).getPropertyValue(o);return m||t}else{if(o&&hn.test(o))return Nr(o);if(o)return o}return t},ys=t=>{const n=hn.exec(t);if(!n)return[,];const[,o,a]=n;return[o,a]},Sn,ks=(t,n,o,a,m)=>`rgba(${Math.round(n)}, ${Math.round(o)}, ${Math.round(a)}, ${m})`,Lr=t=>{Sn||(Sn=Jt?new RegExp(`(${Object.keys(Jt).join("|")})(?!\\w)`,"g"):/^\b$/);const n=t.output.map(k=>At(k).replace(hn,Nr).replace(vs,Eo).replace(Sn,Eo)),o=n.map(k=>k.match(Xe).map(Number)),m=o[0].map((k,j)=>o.map(C=>{if(!(j in C))throw Error('The arity of each "output" value must be equal');return C[j]})).map(k=>Ie({...t,output:k}));return k=>{var F;const j=!Do.test(n[0])&&((F=n.find(R=>Do.test(R)))==null?void 0:F.replace(Xe,""));let C=0;return n[0].replace(Xe,()=>`${m[C++](k)}${j||""}`).replace(bs,ks)}},ro="react-spring: ",$r=t=>{const n=t;let o=!1;if(typeof n!="function")throw new TypeError(`${ro}once requires a function parameter`);return(...a)=>{o||(n(...a),o=!0)}},xs=$r(console.warn);function ws(){xs(`${ro}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var js=$r(console.warn);function Ss(){js(`${ro}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function mn(t){return tt.str(t)&&(t[0]=="#"||/\d/.test(t)||!eo()&&hn.test(t)||t in(Jt||{}))}var re=eo()?et.useEffect:et.useLayoutEffect,Cs=()=>{const t=et.useRef(!1);return re(()=>(t.current=!0,()=>{t.current=!1}),[]),t};function io(){const t=et.useState()[1],n=Cs();return()=>{n.current&&t(Math.random())}}function Is(t,n){const[o]=et.useState(()=>({inputs:n,result:t()})),a=et.useRef(),m=a.current;let k=m;return k?n&&k.inputs&&Ps(n,k.inputs)||(k={inputs:n,result:t()}):k=o,et.useEffect(()=>{a.current=k,m==o&&(o.inputs=o.result=void 0)},[k]),k.result}function Ps(t,n){if(t.length!==n.length)return!1;for(let o=0;o<t.length;o++)if(t[o]!==n[o])return!1;return!0}var ao=t=>et.useEffect(t,Es),Es=[];function An(t){const n=et.useRef();return et.useEffect(()=>{n.current=t}),n.current}var Te=Symbol.for("Animated:node"),Os=t=>!!t&&t[Te]===t,Kt=t=>t&&t[Te],so=(t,n)=>Ya(t,Te,n),gn=t=>t&&t[Te]&&t[Te].getPayload(),zr=class{constructor(){so(this,this)}getPayload(){return this.payload||[]}},Ke=class extends zr{constructor(t){super(),this._value=t,this.done=!0,this.durationProgress=0,tt.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new Ke(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,n){return tt.num(t)&&(this.lastPosition=t,n&&(t=Math.round(t/n)*n,this.done&&(this.lastPosition=t))),this._value===t?!1:(this._value=t,!0)}reset(){const{done:t}=this;this.done=!1,tt.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}},Me=class extends Ke{constructor(t){super(0),this._string=null,this._toString=Ie({output:[t,t]})}static create(t){return new Me(t)}getValue(){const t=this._string;return t??(this._string=this._toString(this._value))}setValue(t){if(tt.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else if(super.setValue(t))this._string=null;else return!1;return!0}reset(t){t&&(this._toString=Ie({output:[this.getValue(),t]})),this._value=0,super.reset()}},on={dependencies:null},vn=class extends zr{constructor(t){super(),this.source=t,this.setValue(t)}getValue(t){const n={};return Ut(this.source,(o,a)=>{Os(o)?n[a]=o.getValue(t):Rt(o)?n[a]=At(o):t||(n[a]=o)}),n}setValue(t){this.source=t,this.payload=this._makePayload(t)}reset(){this.payload&<(this.payload,t=>t.reset())}_makePayload(t){if(t){const n=new Set;return Ut(t,this._addToPayload,n),Array.from(n)}}_addToPayload(t){on.dependencies&&Rt(t)&&on.dependencies.add(t);const n=gn(t);n&<(n,o=>this.add(o))}},Fr=class extends vn{constructor(t){super(t)}static create(t){return new Fr(t)}getValue(){return this.source.map(t=>t.getValue())}setValue(t){const n=this.getPayload();return t.length==n.length?n.map((o,a)=>o.setValue(t[a])).some(Boolean):(super.setValue(t.map(Ts)),!0)}};function Ts(t){return(mn(t)?Me:Ke).create(t)}function Dn(t){const n=Kt(t);return n?n.constructor:tt.arr(t)?Fr:mn(t)?Me:Ke}var _o=(t,n)=>{const o=!tt.fun(t)||t.prototype&&t.prototype.isReactComponent;return et.forwardRef((a,m)=>{const k=et.useRef(null),j=o&&et.useCallback(e=>{k.current=Ds(m,e)},[m]),[C,F]=As(a,n),R=io(),D=()=>{const e=k.current;if(o&&!e)return;(e?n.applyAnimatedValues(e,C.getValue(!0)):!1)===!1&&R()},Q=new Ms(D,F),c=et.useRef();re(()=>(c.current=Q,lt(F,e=>me(e,Q)),()=>{c.current&&(lt(c.current.deps,e=>Oe(e,c.current)),ft.cancel(c.current.update))})),et.useEffect(D,[]),ao(()=>()=>{const e=c.current;lt(e.deps,r=>Oe(r,e))});const v=n.getComponentProps(C.getValue());return de.createElement(t,{...v,ref:j})})},Ms=class{constructor(t,n){this.update=t,this.deps=n}eventObserved(t){t.type=="change"&&ft.write(this.update)}};function As(t,n){const o=new Set;return on.dependencies=o,t.style&&(t={...t,style:n.createAnimatedStyle(t.style)}),t=new vn(t),on.dependencies=null,[t,o]}function Ds(t,n){return t&&(tt.fun(t)?t(n):t.current=n),n}var Ro=Symbol.for("AnimatedComponent"),_s=(t,{applyAnimatedValues:n=()=>!1,createAnimatedStyle:o=m=>new vn(m),getComponentProps:a=m=>m}={})=>{const m={applyAnimatedValues:n,createAnimatedStyle:o,getComponentProps:a},k=j=>{const C=Bo(j)||"Anonymous";return tt.str(j)?j=k[j]||(k[j]=_o(j,m)):j=j[Ro]||(j[Ro]=_o(j,m)),j.displayName=`Animated(${C})`,j};return Ut(t,(j,C)=>{tt.arr(t)&&(C=Bo(j)),k[C]=k(j)}),{animated:k}},Bo=t=>tt.str(t)?t:t&&tt.str(t.displayName)?t.displayName:tt.fun(t)&&t.name||null;function Dt(t,...n){return tt.fun(t)?t(...n):t}var je=(t,n)=>t===!0||!!(n&&t&&(tt.fun(t)?t(n):Tt(t).includes(n))),Vr=(t,n)=>tt.obj(t)?n&&t[n]:t,Kr=(t,n)=>t.default===!0?t[n]:t.default?t.default[n]:void 0,Rs=t=>t,bn=(t,n=Rs)=>{let o=Bs;t.default&&t.default!==!0&&(t=t.default,o=Object.keys(t));const a={};for(const m of o){const k=n(t[m],m);tt.und(k)||(a[m]=k)}return a},Bs=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Ns={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Ls(t){const n={};let o=0;if(Ut(t,(a,m)=>{Ns[m]||(n[m]=a,o++)}),o)return n}function co(t){const n=Ls(t);if(n){const o={to:n};return Ut(t,(a,m)=>m in n||(o[m]=a)),o}return{...t}}function Ae(t){return t=At(t),tt.arr(t)?t.map(Ae):mn(t)?Vt.createStringInterpolator({range:[0,1],output:[t,t]})(1):t}function Ur(t){for(const n in t)return!0;return!1}function _n(t){return tt.fun(t)||tt.arr(t)&&tt.obj(t[0])}function Rn(t,n){var o;(o=t.ref)==null||o.delete(t),n==null||n.delete(t)}function Hr(t,n){var o;n&&t.ref!==n&&((o=t.ref)==null||o.delete(t),n.add(t),t.ref=n)}var oe={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},Bn={...oe.default,mass:1,damping:1,easing:hs.linear,clamp:!1},$s=class{constructor(){this.velocity=0,Object.assign(this,Bn)}};function zs(t,n,o){o&&(o={...o},No(o,n),n={...o,...n}),No(t,n),Object.assign(t,n);for(const j in Bn)t[j]==null&&(t[j]=Bn[j]);let{frequency:a,damping:m}=t;const{mass:k}=t;return tt.und(a)||(a<.01&&(a=.01),m<0&&(m=0),t.tension=Math.pow(2*Math.PI/a,2)*k,t.friction=4*Math.PI*m*k/a),t}function No(t,n){if(!tt.und(n.decay))t.duration=void 0;else{const o=!tt.und(n.tension)||!tt.und(n.friction);(o||!tt.und(n.frequency)||!tt.und(n.damping)||!tt.und(n.mass))&&(t.duration=void 0,t.decay=void 0),o&&(t.frequency=void 0)}}var Lo=[],Fs=class{constructor(){this.changed=!1,this.values=Lo,this.toValues=null,this.fromValues=Lo,this.config=new $s,this.immediate=!1}};function qr(t,{key:n,props:o,defaultProps:a,state:m,actions:k}){return new Promise((j,C)=>{let F,R,D=je(o.cancel??(a==null?void 0:a.cancel),n);if(D)v();else{tt.und(o.pause)||(m.paused=je(o.pause,n));let e=a==null?void 0:a.pause;e!==!0&&(e=m.paused||je(e,n)),F=Dt(o.delay||0,n),e?(m.resumeQueue.add(c),k.pause()):(k.resume(),c())}function Q(){m.resumeQueue.add(c),m.timeouts.delete(R),R.cancel(),F=R.time-ft.now()}function c(){F>0&&!Vt.skipAnimation?(m.delayed=!0,R=ft.setTimeout(v,F),m.pauseQueue.add(Q),m.timeouts.add(R)):v()}function v(){m.delayed&&(m.delayed=!1),m.pauseQueue.delete(Q),m.timeouts.delete(R),t<=(m.cancelId||0)&&(D=!0);try{k.start({...o,callId:t,cancel:D},j)}catch(e){C(e)}}})}var lo=(t,n)=>n.length==1?n[0]:n.some(o=>o.cancelled)?ue(t.get()):n.every(o=>o.noop)?Gr(t.get()):zt(t.get(),n.every(o=>o.finished)),Gr=t=>({value:t,noop:!0,finished:!0,cancelled:!1}),zt=(t,n,o=!1)=>({value:t,finished:n,cancelled:o}),ue=t=>({value:t,cancelled:!0,finished:!1});function Qr(t,n,o,a){const{callId:m,parentId:k,onRest:j}=n,{asyncTo:C,promise:F}=o;return!k&&t===C&&!n.reset?F:o.promise=(async()=>{o.asyncId=m,o.asyncTo=t;const R=bn(n,(s,i)=>i==="onRest"?void 0:s);let D,Q;const c=new Promise((s,i)=>(D=s,Q=i)),v=s=>{const i=m<=(o.cancelId||0)&&ue(a)||m!==o.asyncId&&zt(a,!1);if(i)throw s.result=i,Q(s),s},e=(s,i)=>{const d=new $o,u=new zo;return(async()=>{if(Vt.skipAnimation)throw De(o),u.result=zt(a,!1),Q(u),u;v(d);const f=tt.obj(s)?{...s}:{...i,to:s};f.parentId=m,Ut(R,(b,y)=>{tt.und(f[y])&&(f[y]=b)});const p=await a.start(f);return v(d),o.paused&&await new Promise(b=>{o.resumeQueue.add(b)}),p})()};let r;if(Vt.skipAnimation)return De(o),zt(a,!1);try{let s;tt.arr(t)?s=(async i=>{for(const d of i)await e(d)})(t):s=Promise.resolve(t(e,a.stop.bind(a))),await Promise.all([s.then(D),c]),r=zt(a.get(),!0,!1)}catch(s){if(s instanceof $o)r=s.result;else if(s instanceof zo)r=s.result;else throw s}finally{m==o.asyncId&&(o.asyncId=k,o.asyncTo=k?C:void 0,o.promise=k?F:void 0)}return tt.fun(j)&&ft.batchedUpdates(()=>{j(r,a,a.item)}),r})()}function De(t,n){xe(t.timeouts,o=>o.cancel()),t.pauseQueue.clear(),t.resumeQueue.clear(),t.asyncId=t.asyncTo=t.promise=void 0,n&&(t.cancelId=n)}var $o=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},zo=class extends Error{constructor(){super("SkipAnimationSignal")}},Nn=t=>t instanceof uo,Vs=1,uo=class extends Rr{constructor(){super(...arguments),this.id=Vs++,this._priority=0}get priority(){return this._priority}set priority(t){this._priority!=t&&(this._priority=t,this._onPriorityChange(t))}get(){const t=Kt(this);return t&&t.getValue()}to(...t){return Vt.to(this,t)}interpolate(...t){return ws(),Vt.to(this,t)}toJSON(){return this.get()}observerAdded(t){t==1&&this._attach()}observerRemoved(t){t==0&&this._detach()}_attach(){}_detach(){}_onChange(t,n=!1){Ee(this,{type:"change",parent:this,value:t,idle:n})}_onPriorityChange(t){this.idle||fn.sort(this),Ee(this,{type:"priority",parent:this,priority:t})}},ae=Symbol.for("SpringPhase"),Wr=1,Ln=2,$n=4,Cn=t=>(t[ae]&Wr)>0,Wt=t=>(t[ae]&Ln)>0,ve=t=>(t[ae]&$n)>0,Fo=(t,n)=>n?t[ae]|=Ln|Wr:t[ae]&=~Ln,Vo=(t,n)=>n?t[ae]|=$n:t[ae]&=~$n,Ks=class extends uo{constructor(t,n){if(super(),this.animation=new Fs,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!tt.und(t)||!tt.und(n)){const o=tt.obj(t)?{...t}:{...n,from:t};tt.und(o.default)&&(o.default=!0),this.start(o)}}get idle(){return!(Wt(this)||this._state.asyncTo)||ve(this)}get goal(){return At(this.animation.to)}get velocity(){const t=Kt(this);return t instanceof Ke?t.lastVelocity||0:t.getPayload().map(n=>n.lastVelocity||0)}get hasAnimated(){return Cn(this)}get isAnimating(){return Wt(this)}get isPaused(){return ve(this)}get isDelayed(){return this._state.delayed}advance(t){let n=!0,o=!1;const a=this.animation;let{toValues:m}=a;const{config:k}=a,j=gn(a.to);!j&&Rt(a.to)&&(m=Tt(At(a.to))),a.values.forEach((R,D)=>{if(R.done)return;const Q=R.constructor==Me?1:j?j[D].lastPosition:m[D];let c=a.immediate,v=Q;if(!c){if(v=R.lastPosition,k.tension<=0){R.done=!0;return}let e=R.elapsedTime+=t;const r=a.fromValues[D],s=R.v0!=null?R.v0:R.v0=tt.arr(k.velocity)?k.velocity[D]:k.velocity;let i;const d=k.precision||(r==Q?.005:Math.min(1,Math.abs(Q-r)*.001));if(tt.und(k.duration))if(k.decay){const u=k.decay===!0?.998:k.decay,f=Math.exp(-(1-u)*e);v=r+s/(1-u)*(1-f),c=Math.abs(R.lastPosition-v)<=d,i=s*f}else{i=R.lastVelocity==null?s:R.lastVelocity;const u=k.restVelocity||d/10,f=k.clamp?0:k.bounce,p=!tt.und(f),b=r==Q?R.v0>0:r<Q;let y,I=!1;const S=1,E=Math.ceil(t/S);for(let T=0;T<E&&(y=Math.abs(i)>u,!(!y&&(c=Math.abs(Q-v)<=d,c)));++T){p&&(I=v==Q||v>Q==b,I&&(i=-i*f,v=Q));const L=-k.tension*1e-6*(v-Q),N=-k.friction*.001*i,M=(L+N)/k.mass;i=i+M*S,v=v+i*S}}else{let u=1;k.duration>0&&(this._memoizedDuration!==k.duration&&(this._memoizedDuration=k.duration,R.durationProgress>0&&(R.elapsedTime=k.duration*R.durationProgress,e=R.elapsedTime+=t)),u=(k.progress||0)+e/this._memoizedDuration,u=u>1?1:u<0?0:u,R.durationProgress=u),v=r+k.easing(u)*(Q-r),i=(v-R.lastPosition)/t,c=u==1}R.lastVelocity=i,Number.isNaN(v)&&(console.warn("Got NaN while animating:",this),c=!0)}j&&!j[D].done&&(c=!1),c?R.done=!0:n=!1,R.setValue(v,k.round)&&(o=!0)});const C=Kt(this),F=C.getValue();if(n){const R=At(a.to);(F!==R||o)&&!k.decay?(C.setValue(R),this._onChange(R)):o&&k.decay&&this._onChange(F),this._stop()}else o&&this._onChange(F)}set(t){return ft.batchedUpdates(()=>{this._stop(),this._focus(t),this._set(t)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Wt(this)){const{to:t,config:n}=this.animation;ft.batchedUpdates(()=>{this._onStart(),n.decay||this._set(t,!1),this._stop()})}return this}update(t){return(this.queue||(this.queue=[])).push(t),this}start(t,n){let o;return tt.und(t)?(o=this.queue||[],this.queue=[]):o=[tt.obj(t)?t:{...n,to:t}],Promise.all(o.map(a=>this._update(a))).then(a=>lo(this,a))}stop(t){const{to:n}=this.animation;return this._focus(this.get()),De(this._state,t&&this._lastCallId),ft.batchedUpdates(()=>this._stop(n,t)),this}reset(){this._update({reset:!0})}eventObserved(t){t.type=="change"?this._start():t.type=="priority"&&(this.priority=t.priority+1)}_prepareNode(t){const n=this.key||"";let{to:o,from:a}=t;o=tt.obj(o)?o[n]:o,(o==null||_n(o))&&(o=void 0),a=tt.obj(a)?a[n]:a,a==null&&(a=void 0);const m={to:o,from:a};return Cn(this)||(t.reverse&&([o,a]=[a,o]),a=At(a),tt.und(a)?Kt(this)||this._set(o):this._set(a)),m}_update({...t},n){const{key:o,defaultProps:a}=this;t.default&&Object.assign(a,bn(t,(j,C)=>/^on/.test(C)?Vr(j,o):j)),Uo(this,t,"onProps"),ye(this,"onProps",t,this);const m=this._prepareNode(t);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const k=this._state;return qr(++this._lastCallId,{key:o,props:t,defaultProps:a,state:k,actions:{pause:()=>{ve(this)||(Vo(this,!0),ke(k.pauseQueue),ye(this,"onPause",zt(this,be(this,this.animation.to)),this))},resume:()=>{ve(this)&&(Vo(this,!1),Wt(this)&&this._resume(),ke(k.resumeQueue),ye(this,"onResume",zt(this,be(this,this.animation.to)),this))},start:this._merge.bind(this,m)}}).then(j=>{if(t.loop&&j.finished&&!(n&&j.noop)){const C=Yr(t);if(C)return this._update(C,!0)}return j})}_merge(t,n,o){if(n.cancel)return this.stop(!0),o(ue(this));const a=!tt.und(t.to),m=!tt.und(t.from);if(a||m)if(n.callId>this._lastToId)this._lastToId=n.callId;else return o(ue(this));const{key:k,defaultProps:j,animation:C}=this,{to:F,from:R}=C;let{to:D=F,from:Q=R}=t;m&&!a&&(!n.default||tt.und(D))&&(D=Q),n.reverse&&([D,Q]=[Q,D]);const c=!qt(Q,R);c&&(C.from=Q),Q=At(Q);const v=!qt(D,F);v&&this._focus(D);const e=_n(n.to),{config:r}=C,{decay:s,velocity:i}=r;(a||m)&&(r.velocity=0),n.config&&!e&&zs(r,Dt(n.config,k),n.config!==j.config?Dt(j.config,k):void 0);let d=Kt(this);if(!d||tt.und(D))return o(zt(this,!0));const u=tt.und(n.reset)?m&&!n.default:!tt.und(Q)&&je(n.reset,k),f=u?Q:this.get(),p=Ae(D),b=tt.num(p)||tt.arr(p)||mn(p),y=!e&&(!b||je(j.immediate||n.immediate,k));if(v){const T=Dn(D);if(T!==d.constructor)if(y)d=this._set(p);else throw Error(`Cannot animate between ${d.constructor.name} and ${T.name}, as the "to" prop suggests`)}const I=d.constructor;let S=Rt(D),E=!1;if(!S){const T=u||!Cn(this)&&c;(v||T)&&(E=qt(Ae(f),p),S=!E),(!qt(C.immediate,y)&&!y||!qt(r.decay,s)||!qt(r.velocity,i))&&(S=!0)}if(E&&Wt(this)&&(C.changed&&!u?S=!0:S||this._stop(F)),!e&&((S||Rt(F))&&(C.values=d.getPayload(),C.toValues=Rt(D)?null:I==Me?[1]:Tt(p)),C.immediate!=y&&(C.immediate=y,!y&&!u&&this._set(F)),S)){const{onRest:T}=C;lt(Hs,N=>Uo(this,n,N));const L=zt(this,be(this,F));ke(this._pendingCalls,L),this._pendingCalls.add(o),C.changed&&ft.batchedUpdates(()=>{var N;C.changed=!u,T==null||T(L,this),u?Dt(j.onRest,L):(N=C.onStart)==null||N.call(C,L,this)})}u&&this._set(f),e?o(Qr(n.to,n,this._state,this)):S?this._start():Wt(this)&&!v?this._pendingCalls.add(o):o(Gr(f))}_focus(t){const n=this.animation;t!==n.to&&(Ao(this)&&this._detach(),n.to=t,Ao(this)&&this._attach())}_attach(){let t=0;const{to:n}=this.animation;Rt(n)&&(me(n,this),Nn(n)&&(t=n.priority+1)),this.priority=t}_detach(){const{to:t}=this.animation;Rt(t)&&Oe(t,this)}_set(t,n=!0){const o=At(t);if(!tt.und(o)){const a=Kt(this);if(!a||!qt(o,a.getValue())){const m=Dn(o);!a||a.constructor!=m?so(this,m.create(o)):a.setValue(o),a&&ft.batchedUpdates(()=>{this._onChange(o,n)})}}return Kt(this)}_onStart(){const t=this.animation;t.changed||(t.changed=!0,ye(this,"onStart",zt(this,be(this,t.to)),this))}_onChange(t,n){n||(this._onStart(),Dt(this.animation.onChange,t,this)),Dt(this.defaultProps.onChange,t,this),super._onChange(t,n)}_start(){const t=this.animation;Kt(this).reset(At(t.to)),t.immediate||(t.fromValues=t.values.map(n=>n.lastPosition)),Wt(this)||(Fo(this,!0),ve(this)||this._resume())}_resume(){Vt.skipAnimation?this.finish():fn.start(this)}_stop(t,n){if(Wt(this)){Fo(this,!1);const o=this.animation;lt(o.values,m=>{m.done=!0}),o.toValues&&(o.onChange=o.onPause=o.onResume=void 0),Ee(this,{type:"idle",parent:this});const a=n?ue(this.get()):zt(this.get(),be(this,t??o.to));ke(this._pendingCalls,a),o.changed&&(o.changed=!1,ye(this,"onRest",a,this))}}};function be(t,n){const o=Ae(n),a=Ae(t.get());return qt(a,o)}function Yr(t,n=t.loop,o=t.to){const a=Dt(n);if(a){const m=a!==!0&&co(a),k=(m||t).reverse,j=!m||m.reset;return _e({...t,loop:n,default:!1,pause:void 0,to:!k||_n(o)?o:void 0,from:j?t.from:void 0,reset:j,...m})}}function _e(t){const{to:n,from:o}=t=co(t),a=new Set;return tt.obj(n)&&Ko(n,a),tt.obj(o)&&Ko(o,a),t.keys=a.size?Array.from(a):null,t}function Us(t){const n=_e(t);return tt.und(n.default)&&(n.default=bn(n)),n}function Ko(t,n){Ut(t,(o,a)=>o!=null&&n.add(a))}var Hs=["onStart","onRest","onChange","onPause","onResume"];function Uo(t,n,o){t.animation[o]=n[o]!==Kr(n,o)?Vr(n[o],t.key):void 0}function ye(t,n,...o){var a,m,k,j;(m=(a=t.animation)[n])==null||m.call(a,...o),(j=(k=t.defaultProps)[n])==null||j.call(k,...o)}var qs=["onStart","onChange","onRest"],Gs=1,Xr=class{constructor(t,n){this.id=Gs++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),n&&(this._flush=n),t&&this.start({default:!0,...t})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(t=>t.idle&&!t.isDelayed&&!t.isPaused)}get item(){return this._item}set item(t){this._item=t}get(){const t={};return this.each((n,o)=>t[o]=n.get()),t}set(t){for(const n in t){const o=t[n];tt.und(o)||this.springs[n].set(o)}}update(t){return t&&this.queue.push(_e(t)),this}start(t){let{queue:n}=this;return t?n=Tt(t).map(_e):this.queue=[],this._flush?this._flush(this,n):(ni(this,n),zn(this,n))}stop(t,n){if(t!==!!t&&(n=t),n){const o=this.springs;lt(Tt(n),a=>o[a].stop(!!t))}else De(this._state,this._lastAsyncId),this.each(o=>o.stop(!!t));return this}pause(t){if(tt.und(t))this.start({pause:!0});else{const n=this.springs;lt(Tt(t),o=>n[o].pause())}return this}resume(t){if(tt.und(t))this.start({pause:!1});else{const n=this.springs;lt(Tt(t),o=>n[o].resume())}return this}each(t){Ut(this.springs,t)}_onFrame(){const{onStart:t,onChange:n,onRest:o}=this._events,a=this._active.size>0,m=this._changed.size>0;(a&&!this._started||m&&!this._started)&&(this._started=!0,xe(t,([C,F])=>{F.value=this.get(),C(F,this,this._item)}));const k=!a&&this._started,j=m||k&&o.size?this.get():null;m&&n.size&&xe(n,([C,F])=>{F.value=j,C(F,this,this._item)}),k&&(this._started=!1,xe(o,([C,F])=>{F.value=j,C(F,this,this._item)}))}eventObserved(t){if(t.type=="change")this._changed.add(t.parent),t.idle||this._active.add(t.parent);else if(t.type=="idle")this._active.delete(t.parent);else return;ft.onFrame(this._onFrame)}};function zn(t,n){return Promise.all(n.map(o=>Jr(t,o))).then(o=>lo(t,o))}async function Jr(t,n,o){const{keys:a,to:m,from:k,loop:j,onRest:C,onResolve:F}=n,R=tt.obj(n.default)&&n.default;j&&(n.loop=!1),m===!1&&(n.to=null),k===!1&&(n.from=null);const D=tt.arr(m)||tt.fun(m)?m:void 0;D?(n.to=void 0,n.onRest=void 0,R&&(R.onRest=void 0)):lt(qs,r=>{const s=n[r];if(tt.fun(s)){const i=t._events[r];n[r]=({finished:d,cancelled:u})=>{const f=i.get(s);f?(d||(f.finished=!1),u&&(f.cancelled=!0)):i.set(s,{value:null,finished:d||!1,cancelled:u||!1})},R&&(R[r]=n[r])}});const Q=t._state;n.pause===!Q.paused?(Q.paused=n.pause,ke(n.pause?Q.pauseQueue:Q.resumeQueue)):Q.paused&&(n.pause=!0);const c=(a||Object.keys(t.springs)).map(r=>t.springs[r].start(n)),v=n.cancel===!0||Kr(n,"cancel")===!0;(D||v&&Q.asyncId)&&c.push(qr(++t._lastAsyncId,{props:n,state:Q,actions:{pause:Tn,resume:Tn,start(r,s){v?(De(Q,t._lastAsyncId),s(ue(t))):(r.onRest=C,s(Qr(D,r,Q,t)))}}})),Q.paused&&await new Promise(r=>{Q.resumeQueue.add(r)});const e=lo(t,await Promise.all(c));if(j&&e.finished&&!(o&&e.noop)){const r=Yr(n,j,m);if(r)return ni(t,[r]),Jr(t,r,!0)}return F&&ft.batchedUpdates(()=>F(e,t,t.item)),e}function Fn(t,n){const o={...t.springs};return n&<(Tt(n),a=>{tt.und(a.keys)&&(a=_e(a)),tt.obj(a.to)||(a={...a,to:void 0}),ei(o,a,m=>ti(m))}),Zr(t,o),o}function Zr(t,n){Ut(n,(o,a)=>{t.springs[a]||(t.springs[a]=o,me(o,t))})}function ti(t,n){const o=new Ks;return o.key=t,n&&me(o,n),o}function ei(t,n,o){n.keys&<(n.keys,a=>{(t[a]||(t[a]=o(a)))._prepareNode(n)})}function ni(t,n){lt(n,o=>{ei(t.springs,o,a=>ti(a,t))})}var Ue=({children:t,...n})=>{const o=et.useContext(rn),a=n.pause||!!o.pause,m=n.immediate||!!o.immediate;n=Is(()=>({pause:a,immediate:m}),[a,m]);const{Provider:k}=rn;return de.createElement(k,{value:n},t)},rn=Qs(Ue,{});Ue.Provider=rn.Provider;Ue.Consumer=rn.Consumer;function Qs(t,n){return Object.assign(t,de.createContext(n)),t.Provider._context=t,t.Consumer._context=t,t}var oi=()=>{const t=[],n=function(a){Ss();const m=[];return lt(t,(k,j)=>{if(tt.und(a))m.push(k.start());else{const C=o(a,k,j);C&&m.push(k.start(C))}}),m};n.current=t,n.add=function(a){t.includes(a)||t.push(a)},n.delete=function(a){const m=t.indexOf(a);~m&&t.splice(m,1)},n.pause=function(){return lt(t,a=>a.pause(...arguments)),this},n.resume=function(){return lt(t,a=>a.resume(...arguments)),this},n.set=function(a){lt(t,(m,k)=>{const j=tt.fun(a)?a(k,m):a;j&&m.set(j)})},n.start=function(a){const m=[];return lt(t,(k,j)=>{if(tt.und(a))m.push(k.start());else{const C=this._getProps(a,k,j);C&&m.push(k.start(C))}}),m},n.stop=function(){return lt(t,a=>a.stop(...arguments)),this},n.update=function(a){return lt(t,(m,k)=>m.update(this._getProps(a,m,k))),this};const o=function(a,m,k){return tt.fun(a)?a(k,m):a};return n._getProps=o,n};function Ws(t,n,o){const a=tt.fun(n)&&n;a&&!o&&(o=[]);const m=et.useMemo(()=>a||arguments.length==3?oi():void 0,[]),k=et.useRef(0),j=io(),C=et.useMemo(()=>({ctrls:[],queue:[],flush(i,d){const u=Fn(i,d);return k.current>0&&!C.queue.length&&!Object.keys(u).some(p=>!i.springs[p])?zn(i,d):new Promise(p=>{Zr(i,u),C.queue.push(()=>{p(zn(i,d))}),j()})}}),[]),F=et.useRef([...C.ctrls]),R=[],D=An(t)||0;et.useMemo(()=>{lt(F.current.slice(t,D),i=>{Rn(i,m),i.stop(!0)}),F.current.length=t,Q(D,t)},[t]),et.useMemo(()=>{Q(0,Math.min(D,t))},o);function Q(i,d){for(let u=i;u<d;u++){const f=F.current[u]||(F.current[u]=new Xr(null,C.flush)),p=a?a(u,f):n[u];p&&(R[u]=Us(p))}}const c=F.current.map((i,d)=>Fn(i,R[d])),v=et.useContext(Ue),e=An(v),r=v!==e&&Ur(v);re(()=>{k.current++,C.ctrls=F.current;const{queue:i}=C;i.length&&(C.queue=[],lt(i,d=>d())),lt(F.current,(d,u)=>{m==null||m.add(d),r&&d.start({default:v});const f=R[u];f&&(Hr(d,f.ref),d.ref?d.queue.push(f):d.start(f))})}),ao(()=>()=>{lt(C.ctrls,i=>i.stop(!0))});const s=c.map(i=>({...i}));return m?[s,m]:s}function ri(t,n){const o=tt.fun(t),[[a],m]=Ws(1,o?t:[t],o?n||[]:n);return o||arguments.length==2?[a,m]:a}function fo(t,n,o){const a=tt.fun(n)&&n,{reset:m,sort:k,trail:j=0,expires:C=!0,exitBeforeEnter:F=!1,onDestroyed:R,ref:D,config:Q}=a?a():n,c=et.useMemo(()=>a||arguments.length==3?oi():void 0,[]),v=Tt(t),e=[],r=et.useRef(null),s=m?null:r.current;re(()=>{r.current=e}),ao(()=>(lt(e,M=>{c==null||c.add(M.ctrl),M.ctrl.ref=c}),()=>{lt(r.current,M=>{M.expired&&clearTimeout(M.expirationId),Rn(M.ctrl,c),M.ctrl.stop(!0)})}));const i=Xs(v,a?a():n,s),d=m&&r.current||[];re(()=>lt(d,({ctrl:M,item:P,key:K})=>{Rn(M,c),Dt(R,P,K)}));const u=[];if(s&<(s,(M,P)=>{M.expired?(clearTimeout(M.expirationId),d.push(M)):(P=u[P]=i.indexOf(M.key),~P&&(e[P]=M))}),lt(v,(M,P)=>{e[P]||(e[P]={key:i[P],item:M,phase:"mount",ctrl:new Xr},e[P].ctrl.item=M)}),u.length){let M=-1;const{leave:P}=a?a():n;lt(u,(K,$)=>{const X=s[$];~K?(M=e.indexOf(X),e[M]={...X,item:v[K]}):P&&e.splice(++M,0,X)})}tt.fun(k)&&e.sort((M,P)=>k(M.item,P.item));let f=-j;const p=io(),b=bn(n),y=new Map,I=et.useRef(new Map),S=et.useRef(!1);lt(e,(M,P)=>{const K=M.key,$=M.phase,X=a?a():n;let G,J;const Y=Dt(X.delay||0,K);if($=="mount")G=X.enter,J="enter";else{const it=i.indexOf(K)<0;if($!="leave")if(it)G=X.leave,J="leave";else if(G=X.update)J="update";else return;else if(!it)G=X.enter,J="enter";else return}if(G=Dt(G,M.item,P),G=tt.obj(G)?co(G):{to:G},!G.config){const it=Q||b.config;G.config=Dt(it,M.item,P,J)}f+=j;const rt={...b,delay:Y+f,ref:D,immediate:X.immediate,reset:!1,...G};if(J=="enter"&&tt.und(rt.from)){const it=a?a():n,B=tt.und(it.initial)||s?it.from:it.initial;rt.from=Dt(B,M.item,P)}const{onResolve:st}=rt;rt.onResolve=it=>{Dt(st,it);const B=r.current,O=B.find(z=>z.key===K);if(O&&!(it.cancelled&&O.phase!="update")&&O.ctrl.idle){const z=B.every(l=>l.ctrl.idle);if(O.phase=="leave"){const l=Dt(C,O.item);if(l!==!1){const g=l===!0?0:l;if(O.expired=!0,!z&&g>0){g<=2147483647&&(O.expirationId=setTimeout(p,g));return}}}z&&B.some(l=>l.expired)&&(I.current.delete(O),F&&(S.current=!0),p())}};const ct=Fn(M.ctrl,rt);J==="leave"&&F?I.current.set(M,{phase:J,springs:ct,payload:rt}):y.set(M,{phase:J,springs:ct,payload:rt})});const E=et.useContext(Ue),T=An(E),L=E!==T&&Ur(E);re(()=>{L&<(e,M=>{M.ctrl.start({default:E})})},[E]),lt(y,(M,P)=>{if(I.current.size){const K=e.findIndex($=>$.key===P.key);e.splice(K,1)}}),re(()=>{lt(I.current.size?I.current:y,({phase:M,payload:P},K)=>{const{ctrl:$}=K;K.phase=M,c==null||c.add($),L&&M=="enter"&&$.start({default:E}),P&&(Hr($,P.ref),($.ref||c)&&!S.current?$.update(P):($.start(P),S.current&&(S.current=!1)))})},m?void 0:o);const N=M=>de.createElement(de.Fragment,null,e.map((P,K)=>{const{springs:$}=y.get(P)||P.ctrl,X=M({...$},P.item,P,K);return X&&X.type?de.createElement(X.type,{...X.props,key:tt.str(P.key)||tt.num(P.key)?P.key:P.ctrl.id,ref:X.ref}):X}));return c?[N,c]:N}var Ys=1;function Xs(t,{key:n,keys:o=n},a){if(o===null){const m=new Set;return t.map(k=>{const j=a&&a.find(C=>C.item===k&&C.phase!=="leave"&&!m.has(C));return j?(m.add(j),j.key):Ys++})}return tt.und(o)?t:tt.fun(o)?t.map(o):Tt(o)}var Js=class extends uo{constructor(t,n){super(),this.source=t,this.idle=!0,this._active=new Set,this.calc=Ie(...n);const o=this._get(),a=Dn(o);so(this,a.create(o))}advance(t){const n=this._get(),o=this.get();qt(n,o)||(Kt(this).setValue(n),this._onChange(n,this.idle)),!this.idle&&Ho(this._active)&&In(this)}_get(){const t=tt.arr(this.source)?this.source.map(At):Tt(At(this.source));return this.calc(...t)}_start(){this.idle&&!Ho(this._active)&&(this.idle=!1,lt(gn(this),t=>{t.done=!1}),Vt.skipAnimation?(ft.batchedUpdates(()=>this.advance()),In(this)):fn.start(this))}_attach(){let t=1;lt(Tt(this.source),n=>{Rt(n)&&me(n,this),Nn(n)&&(n.idle||this._active.add(n),t=Math.max(t,n.priority+1))}),this.priority=t,this._start()}_detach(){lt(Tt(this.source),t=>{Rt(t)&&Oe(t,this)}),this._active.clear(),In(this)}eventObserved(t){t.type=="change"?t.idle?this.advance():(this._active.add(t.parent),this._start()):t.type=="idle"?this._active.delete(t.parent):t.type=="priority"&&(this.priority=Tt(this.source).reduce((n,o)=>Math.max(n,(Nn(o)?o.priority:0)+1),0))}};function Zs(t){return t.idle!==!1}function Ho(t){return!t.size||Array.from(t).every(Zs)}function In(t){t.idle||(t.idle=!0,lt(gn(t),n=>{n.done=!0}),Ee(t,{type:"idle",parent:t}))}Vt.assign({createStringInterpolator:Lr,to:(t,n)=>new Js(t,n)});var ii=/^--/;function tc(t,n){return n==null||typeof n=="boolean"||n===""?"":typeof n=="number"&&n!==0&&!ii.test(t)&&!(Se.hasOwnProperty(t)&&Se[t])?n+"px":(""+n).trim()}var qo={};function ec(t,n){if(!t.nodeType||!t.setAttribute)return!1;const o=t.nodeName==="filter"||t.parentNode&&t.parentNode.nodeName==="filter",{style:a,children:m,scrollTop:k,scrollLeft:j,viewBox:C,...F}=n,R=Object.values(F),D=Object.keys(F).map(Q=>o||t.hasAttribute(Q)?Q:qo[Q]||(qo[Q]=Q.replace(/([A-Z])/g,c=>"-"+c.toLowerCase())));m!==void 0&&(t.textContent=m);for(const Q in a)if(a.hasOwnProperty(Q)){const c=tc(Q,a[Q]);ii.test(Q)?t.style.setProperty(Q,c):t.style[Q]=c}D.forEach((Q,c)=>{t.setAttribute(Q,R[c])}),k!==void 0&&(t.scrollTop=k),j!==void 0&&(t.scrollLeft=j),C!==void 0&&t.setAttribute("viewBox",C)}var Se={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},nc=(t,n)=>t+n.charAt(0).toUpperCase()+n.substring(1),oc=["Webkit","Ms","Moz","O"];Se=Object.keys(Se).reduce((t,n)=>(oc.forEach(o=>t[nc(o,n)]=t[n]),t),Se);var rc=/^(matrix|translate|scale|rotate|skew)/,ic=/^(translate)/,ac=/^(rotate|skew)/,Pn=(t,n)=>tt.num(t)&&t!==0?t+n:t,Je=(t,n)=>tt.arr(t)?t.every(o=>Je(o,n)):tt.num(t)?t===n:parseFloat(t)===n,sc=class extends vn{constructor({x:t,y:n,z:o,...a}){const m=[],k=[];(t||n||o)&&(m.push([t||0,n||0,o||0]),k.push(j=>[`translate3d(${j.map(C=>Pn(C,"px")).join(",")})`,Je(j,0)])),Ut(a,(j,C)=>{if(C==="transform")m.push([j||""]),k.push(F=>[F,F===""]);else if(rc.test(C)){if(delete a[C],tt.und(j))return;const F=ic.test(C)?"px":ac.test(C)?"deg":"";m.push(Tt(j)),k.push(C==="rotate3d"?([R,D,Q,c])=>[`rotate3d(${R},${D},${Q},${Pn(c,F)})`,Je(c,0)]:R=>[`${C}(${R.map(D=>Pn(D,F)).join(",")})`,Je(R,C.startsWith("scale")?1:0)])}}),m.length&&(a.transform=new cc(m,k)),super(a)}},cc=class extends Rr{constructor(t,n){super(),this.inputs=t,this.transforms=n,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let t="",n=!0;return lt(this.inputs,(o,a)=>{const m=At(o[0]),[k,j]=this.transforms[a](tt.arr(m)?m:o.map(At));t+=" "+k,n=n&&j}),n?"none":t}observerAdded(t){t==1&<(this.inputs,n=>lt(n,o=>Rt(o)&&me(o,this)))}observerRemoved(t){t==0&<(this.inputs,n=>lt(n,o=>Rt(o)&&Oe(o,this)))}eventObserved(t){t.type=="change"&&(this._value=null),Ee(this,t)}},dc=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];Vt.assign({batchedUpdates:Re.unstable_batchedUpdates,createStringInterpolator:Lr,colors:es});var lc=_s(dc,{applyAnimatedValues:ec,createAnimatedStyle:t=>new sc(t),getComponentProps:({scrollTop:t,scrollLeft:n,...o})=>o}),He=lc.animated;const uc=A.div`
|
|
783
|
+
`,Zt=({CloseButton:t,closeButtonLabel:n,contain:o=!1,leftContent:s,onClose:m,onOpen:k,OpenButton:j,raiseCloseButton:C,showCloseButton:F,showOpenButton:R,size:D="small",subtitle:Q,title:c})=>{const v=t?h.jsx(t,{}):h.jsx(Wn,{fill:!0,label:n,size:D==="small"?"medium":D==="large"?"large":"medium"}),e=j?h.jsx(j,{onPointerDown:k}):h.jsx(Cr,{onPointerDown:k});return h.jsxs(Ha,{contain:o,children:[h.jsx(So,{children:R?e:s}),h.jsxs(qa,{children:[c&&h.jsx(Gn,{children:c}),Q&&h.jsx(hr,{children:Q})]}),h.jsx(So,{style:{zIndex:C?1:"initial"},onPointerDown:F?m:void 0,children:F?v:void 0})]})};var Ga=Object.defineProperty,Qa=(t,n)=>{for(var o in n)Ga(t,o,{get:n[o],enumerable:!0})},Vt={};Qa(Vt,{assign:()=>Xa,colors:()=>Jt,createStringInterpolator:()=>no,skipAnimation:()=>Ar,to:()=>Mr,willAdvance:()=>oo});var Yn=Ve(),ft=t=>Fe(t,Yn),Xn=Ve();ft.write=t=>Fe(t,Xn);var un=Ve();ft.onStart=t=>Fe(t,un);var Jn=Ve();ft.onFrame=t=>Fe(t,Jn);var Zn=Ve();ft.onFinish=t=>Fe(t,Zn);var le=[];ft.setTimeout=(t,n)=>{const o=ft.now()+n,s=()=>{const k=le.findIndex(j=>j.cancel==s);~k&&le.splice(k,1),Xt-=~k?1:0},m={time:o,handler:t,cancel:s};return le.splice(Ir(o),0,m),Xt+=1,Pr(),m};var Ir=t=>~(~le.findIndex(n=>n.time>t)||~le.length);ft.cancel=t=>{un.delete(t),Jn.delete(t),Zn.delete(t),Yn.delete(t),Xn.delete(t)};ft.sync=t=>{On=!0,ft.batchedUpdates(t),On=!1};ft.throttle=t=>{let n;function o(){try{t(...n)}finally{n=null}}function s(...m){n=m,ft.onStart(o)}return s.handler=t,s.cancel=()=>{un.delete(o),n=null},s};var to=typeof window<"u"?window.requestAnimationFrame:()=>{};ft.use=t=>to=t;ft.now=typeof performance<"u"?()=>performance.now():Date.now;ft.batchedUpdates=t=>t();ft.catch=console.error;ft.frameLoop="always";ft.advance=()=>{ft.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Or()};var Yt=-1,Xt=0,On=!1;function Fe(t,n){On?(n.delete(t),t(0)):(n.add(t),Pr())}function Pr(){Yt<0&&(Yt=0,ft.frameLoop!=="demand"&&to(Er))}function Wa(){Yt=-1}function Er(){~Yt&&(to(Er),ft.batchedUpdates(Or))}function Or(){const t=Yt;Yt=ft.now();const n=Ir(Yt);if(n&&(Tr(le.splice(0,n),o=>o.handler()),Xt-=n),!Xt){Wa();return}un.flush(),Yn.flush(t?Math.min(64,Yt-t):16.667),Jn.flush(),Xn.flush(),Zn.flush()}function Ve(){let t=new Set,n=t;return{add(o){Xt+=n==t&&!t.has(o)?1:0,t.add(o)},delete(o){return Xt-=n==t&&t.has(o)?1:0,t.delete(o)},flush(o){n.size&&(t=new Set,Xt-=n.size,Tr(n,s=>s(o)&&t.add(s)),Xt+=t.size,n=t)}}}function Tr(t,n){t.forEach(o=>{try{n(o)}catch(s){ft.catch(s)}})}function Tn(){}var Ya=(t,n,o)=>Object.defineProperty(t,n,{value:o,writable:!0,configurable:!0}),tt={arr:Array.isArray,obj:t=>!!t&&t.constructor.name==="Object",fun:t=>typeof t=="function",str:t=>typeof t=="string",num:t=>typeof t=="number",und:t=>t===void 0};function qt(t,n){if(tt.arr(t)){if(!tt.arr(n)||t.length!==n.length)return!1;for(let o=0;o<t.length;o++)if(t[o]!==n[o])return!1;return!0}return t===n}var lt=(t,n)=>t.forEach(n);function Ut(t,n,o){if(tt.arr(t)){for(let s=0;s<t.length;s++)n.call(o,t[s],`${s}`);return}for(const s in t)t.hasOwnProperty(s)&&n.call(o,t[s],s)}var Tt=t=>tt.und(t)?[]:tt.arr(t)?t:[t];function xe(t,n){if(t.size){const o=Array.from(t);t.clear(),lt(o,n)}}var ke=(t,...n)=>xe(t,o=>o(...n)),eo=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),no,Mr,Jt=null,Ar=!1,oo=Tn,Xa=t=>{t.to&&(Mr=t.to),t.now&&(ft.now=t.now),t.colors!==void 0&&(Jt=t.colors),t.skipAnimation!=null&&(Ar=t.skipAnimation),t.createStringInterpolator&&(no=t.createStringInterpolator),t.requestAnimationFrame&&ft.use(t.requestAnimationFrame),t.batchedUpdates&&(ft.batchedUpdates=t.batchedUpdates),t.willAdvance&&(oo=t.willAdvance),t.frameLoop&&(ft.frameLoop=t.frameLoop)},we=new Set,Bt=[],wn=[],tn=0,fn={get idle(){return!we.size&&!Bt.length},start(t){tn>t.priority?(we.add(t),ft.onStart(Ja)):(Dr(t),ft(Mn))},advance:Mn,sort(t){if(tn)ft.onFrame(()=>fn.sort(t));else{const n=Bt.indexOf(t);~n&&(Bt.splice(n,1),_r(t))}},clear(){Bt=[],we.clear()}};function Ja(){we.forEach(Dr),we.clear(),ft(Mn)}function Dr(t){Bt.includes(t)||_r(t)}function _r(t){Bt.splice(Za(Bt,n=>n.priority>t.priority),0,t)}function Mn(t){const n=wn;for(let o=0;o<Bt.length;o++){const s=Bt[o];tn=s.priority,s.idle||(oo(s),s.advance(t),s.idle||n.push(s))}return tn=0,wn=Bt,wn.length=0,Bt=n,Bt.length>0}function Za(t,n){const o=t.findIndex(n);return o<0?t.length:o}var ts=(t,n,o)=>Math.min(Math.max(o,t),n),es={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Ft="[-+]?\\d*\\.?\\d+",en=Ft+"%";function pn(...t){return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var ns=new RegExp("rgb"+pn(Ft,Ft,Ft)),os=new RegExp("rgba"+pn(Ft,Ft,Ft,Ft)),rs=new RegExp("hsl"+pn(Ft,en,en)),is=new RegExp("hsla"+pn(Ft,en,en,Ft)),as=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ss=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,cs=/^#([0-9a-fA-F]{6})$/,ds=/^#([0-9a-fA-F]{8})$/;function ls(t){let n;return typeof t=="number"?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=cs.exec(t))?parseInt(n[1]+"ff",16)>>>0:Jt&&Jt[t]!==void 0?Jt[t]:(n=ns.exec(t))?(ce(n[1])<<24|ce(n[2])<<16|ce(n[3])<<8|255)>>>0:(n=os.exec(t))?(ce(n[1])<<24|ce(n[2])<<16|ce(n[3])<<8|Po(n[4]))>>>0:(n=as.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=ds.exec(t))?parseInt(n[1],16)>>>0:(n=ss.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=rs.exec(t))?(Co(Io(n[1]),qe(n[2]),qe(n[3]))|255)>>>0:(n=is.exec(t))?(Co(Io(n[1]),qe(n[2]),qe(n[3]))|Po(n[4]))>>>0:null}function jn(t,n,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?t+(n-t)*6*o:o<1/2?n:o<2/3?t+(n-t)*(2/3-o)*6:t}function Co(t,n,o){const s=o<.5?o*(1+n):o+n-o*n,m=2*o-s,k=jn(m,s,t+1/3),j=jn(m,s,t),C=jn(m,s,t-1/3);return Math.round(k*255)<<24|Math.round(j*255)<<16|Math.round(C*255)<<8}function ce(t){const n=parseInt(t,10);return n<0?0:n>255?255:n}function Io(t){return(parseFloat(t)%360+360)%360/360}function Po(t){const n=parseFloat(t);return n<0?0:n>1?255:Math.round(n*255)}function qe(t){const n=parseFloat(t);return n<0?0:n>100?1:n/100}function Eo(t){let n=ls(t);if(n===null)return t;n=n||0;const o=(n&4278190080)>>>24,s=(n&16711680)>>>16,m=(n&65280)>>>8,k=(n&255)/255;return`rgba(${o}, ${s}, ${m}, ${k})`}var Ie=(t,n,o)=>{if(tt.fun(t))return t;if(tt.arr(t))return Ie({range:t,output:n,extrapolate:o});if(tt.str(t.output[0]))return no(t);const s=t,m=s.output,k=s.range||[0,1],j=s.extrapolateLeft||s.extrapolate||"extend",C=s.extrapolateRight||s.extrapolate||"extend",F=s.easing||(R=>R);return R=>{const D=fs(R,k);return us(R,k[D],k[D+1],m[D],m[D+1],F,j,C,s.map)}};function us(t,n,o,s,m,k,j,C,F){let R=F?F(t):t;if(R<n){if(j==="identity")return R;j==="clamp"&&(R=n)}if(R>o){if(C==="identity")return R;C==="clamp"&&(R=o)}return s===m?s:n===o?t<=n?s:m:(n===-1/0?R=-R:o===1/0?R=R-n:R=(R-n)/(o-n),R=k(R),s===-1/0?R=-R:m===1/0?R=R+s:R=R*(m-s)+s,R)}function fs(t,n){for(var o=1;o<n.length-1&&!(n[o]>=t);++o);return o-1}var ps=(t,n="end")=>o=>{o=n==="end"?Math.min(o,.999):Math.max(o,.001);const s=o*t,m=n==="end"?Math.floor(s):Math.ceil(s);return ts(0,1,m/t)},nn=1.70158,Ge=nn*1.525,Oo=nn+1,To=2*Math.PI/3,Mo=2*Math.PI/4.5,Qe=t=>t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,hs={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>1-(1-t)*(1-t),easeInOutQuad:t=>t<.5?2*t*t:1-Math.pow(-2*t+2,2)/2,easeInCubic:t=>t*t*t,easeOutCubic:t=>1-Math.pow(1-t,3),easeInOutCubic:t=>t<.5?4*t*t*t:1-Math.pow(-2*t+2,3)/2,easeInQuart:t=>t*t*t*t,easeOutQuart:t=>1-Math.pow(1-t,4),easeInOutQuart:t=>t<.5?8*t*t*t*t:1-Math.pow(-2*t+2,4)/2,easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>1-Math.pow(1-t,5),easeInOutQuint:t=>t<.5?16*t*t*t*t*t:1-Math.pow(-2*t+2,5)/2,easeInSine:t=>1-Math.cos(t*Math.PI/2),easeOutSine:t=>Math.sin(t*Math.PI/2),easeInOutSine:t=>-(Math.cos(Math.PI*t)-1)/2,easeInExpo:t=>t===0?0:Math.pow(2,10*t-10),easeOutExpo:t=>t===1?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>t===0?0:t===1?1:t<.5?Math.pow(2,20*t-10)/2:(2-Math.pow(2,-20*t+10))/2,easeInCirc:t=>1-Math.sqrt(1-Math.pow(t,2)),easeOutCirc:t=>Math.sqrt(1-Math.pow(t-1,2)),easeInOutCirc:t=>t<.5?(1-Math.sqrt(1-Math.pow(2*t,2)))/2:(Math.sqrt(1-Math.pow(-2*t+2,2))+1)/2,easeInBack:t=>Oo*t*t*t-nn*t*t,easeOutBack:t=>1+Oo*Math.pow(t-1,3)+nn*Math.pow(t-1,2),easeInOutBack:t=>t<.5?Math.pow(2*t,2)*((Ge+1)*2*t-Ge)/2:(Math.pow(2*t-2,2)*((Ge+1)*(t*2-2)+Ge)+2)/2,easeInElastic:t=>t===0?0:t===1?1:-Math.pow(2,10*t-10)*Math.sin((t*10-10.75)*To),easeOutElastic:t=>t===0?0:t===1?1:Math.pow(2,-10*t)*Math.sin((t*10-.75)*To)+1,easeInOutElastic:t=>t===0?0:t===1?1:t<.5?-(Math.pow(2,20*t-10)*Math.sin((20*t-11.125)*Mo))/2:Math.pow(2,-20*t+10)*Math.sin((20*t-11.125)*Mo)/2+1,easeInBounce:t=>1-Qe(1-t),easeOutBounce:Qe,easeInOutBounce:t=>t<.5?(1-Qe(1-2*t))/2:(1+Qe(2*t-1))/2,steps:ps},Pe=Symbol.for("FluidValue.get"),fe=Symbol.for("FluidValue.observers"),Rt=t=>!!(t&&t[Pe]),At=t=>t&&t[Pe]?t[Pe]():t,Ao=t=>t[fe]||null;function ms(t,n){t.eventObserved?t.eventObserved(n):t(n)}function Ee(t,n){const o=t[fe];o&&o.forEach(s=>{ms(s,n)})}var Rr=class{constructor(t){if(!t&&!(t=this.get))throw Error("Unknown getter");gs(this,t)}},gs=(t,n)=>Br(t,Pe,n);function me(t,n){if(t[Pe]){let o=t[fe];o||Br(t,fe,o=new Set),o.has(n)||(o.add(n),t.observerAdded&&t.observerAdded(o.size,n))}return n}function Oe(t,n){const o=t[fe];if(o&&o.has(n)){const s=o.size-1;s?o.delete(n):t[fe]=null,t.observerRemoved&&t.observerRemoved(s,n)}}var Br=(t,n,o)=>Object.defineProperty(t,n,{value:o,writable:!0,configurable:!0}),Xe=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,vs=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Do=new RegExp(`(${Xe.source})(%|[a-z]+)`,"i"),bs=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,hn=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Nr=t=>{const[n,o]=ys(t);if(!n||eo())return t;const s=window.getComputedStyle(document.documentElement).getPropertyValue(n);if(s)return s.trim();if(o&&o.startsWith("--")){const m=window.getComputedStyle(document.documentElement).getPropertyValue(o);return m||t}else{if(o&&hn.test(o))return Nr(o);if(o)return o}return t},ys=t=>{const n=hn.exec(t);if(!n)return[,];const[,o,s]=n;return[o,s]},Sn,ks=(t,n,o,s,m)=>`rgba(${Math.round(n)}, ${Math.round(o)}, ${Math.round(s)}, ${m})`,Lr=t=>{Sn||(Sn=Jt?new RegExp(`(${Object.keys(Jt).join("|")})(?!\\w)`,"g"):/^\b$/);const n=t.output.map(k=>At(k).replace(hn,Nr).replace(vs,Eo).replace(Sn,Eo)),o=n.map(k=>k.match(Xe).map(Number)),m=o[0].map((k,j)=>o.map(C=>{if(!(j in C))throw Error('The arity of each "output" value must be equal');return C[j]})).map(k=>Ie({...t,output:k}));return k=>{var F;const j=!Do.test(n[0])&&((F=n.find(R=>Do.test(R)))==null?void 0:F.replace(Xe,""));let C=0;return n[0].replace(Xe,()=>`${m[C++](k)}${j||""}`).replace(bs,ks)}},ro="react-spring: ",$r=t=>{const n=t;let o=!1;if(typeof n!="function")throw new TypeError(`${ro}once requires a function parameter`);return(...s)=>{o||(n(...s),o=!0)}},xs=$r(console.warn);function ws(){xs(`${ro}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var js=$r(console.warn);function Ss(){js(`${ro}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function mn(t){return tt.str(t)&&(t[0]=="#"||/\d/.test(t)||!eo()&&hn.test(t)||t in(Jt||{}))}var re=eo()?et.useEffect:et.useLayoutEffect,Cs=()=>{const t=et.useRef(!1);return re(()=>(t.current=!0,()=>{t.current=!1}),[]),t};function io(){const t=et.useState()[1],n=Cs();return()=>{n.current&&t(Math.random())}}function Is(t,n){const[o]=et.useState(()=>({inputs:n,result:t()})),s=et.useRef(),m=s.current;let k=m;return k?n&&k.inputs&&Ps(n,k.inputs)||(k={inputs:n,result:t()}):k=o,et.useEffect(()=>{s.current=k,m==o&&(o.inputs=o.result=void 0)},[k]),k.result}function Ps(t,n){if(t.length!==n.length)return!1;for(let o=0;o<t.length;o++)if(t[o]!==n[o])return!1;return!0}var ao=t=>et.useEffect(t,Es),Es=[];function An(t){const n=et.useRef();return et.useEffect(()=>{n.current=t}),n.current}var Te=Symbol.for("Animated:node"),Os=t=>!!t&&t[Te]===t,Kt=t=>t&&t[Te],so=(t,n)=>Ya(t,Te,n),gn=t=>t&&t[Te]&&t[Te].getPayload(),zr=class{constructor(){so(this,this)}getPayload(){return this.payload||[]}},Ke=class extends zr{constructor(t){super(),this._value=t,this.done=!0,this.durationProgress=0,tt.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new Ke(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,n){return tt.num(t)&&(this.lastPosition=t,n&&(t=Math.round(t/n)*n,this.done&&(this.lastPosition=t))),this._value===t?!1:(this._value=t,!0)}reset(){const{done:t}=this;this.done=!1,tt.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}},Me=class extends Ke{constructor(t){super(0),this._string=null,this._toString=Ie({output:[t,t]})}static create(t){return new Me(t)}getValue(){const t=this._string;return t??(this._string=this._toString(this._value))}setValue(t){if(tt.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else if(super.setValue(t))this._string=null;else return!1;return!0}reset(t){t&&(this._toString=Ie({output:[this.getValue(),t]})),this._value=0,super.reset()}},on={dependencies:null},vn=class extends zr{constructor(t){super(),this.source=t,this.setValue(t)}getValue(t){const n={};return Ut(this.source,(o,s)=>{Os(o)?n[s]=o.getValue(t):Rt(o)?n[s]=At(o):t||(n[s]=o)}),n}setValue(t){this.source=t,this.payload=this._makePayload(t)}reset(){this.payload&<(this.payload,t=>t.reset())}_makePayload(t){if(t){const n=new Set;return Ut(t,this._addToPayload,n),Array.from(n)}}_addToPayload(t){on.dependencies&&Rt(t)&&on.dependencies.add(t);const n=gn(t);n&<(n,o=>this.add(o))}},Fr=class extends vn{constructor(t){super(t)}static create(t){return new Fr(t)}getValue(){return this.source.map(t=>t.getValue())}setValue(t){const n=this.getPayload();return t.length==n.length?n.map((o,s)=>o.setValue(t[s])).some(Boolean):(super.setValue(t.map(Ts)),!0)}};function Ts(t){return(mn(t)?Me:Ke).create(t)}function Dn(t){const n=Kt(t);return n?n.constructor:tt.arr(t)?Fr:mn(t)?Me:Ke}var _o=(t,n)=>{const o=!tt.fun(t)||t.prototype&&t.prototype.isReactComponent;return et.forwardRef((s,m)=>{const k=et.useRef(null),j=o&&et.useCallback(e=>{k.current=Ds(m,e)},[m]),[C,F]=As(s,n),R=io(),D=()=>{const e=k.current;if(o&&!e)return;(e?n.applyAnimatedValues(e,C.getValue(!0)):!1)===!1&&R()},Q=new Ms(D,F),c=et.useRef();re(()=>(c.current=Q,lt(F,e=>me(e,Q)),()=>{c.current&&(lt(c.current.deps,e=>Oe(e,c.current)),ft.cancel(c.current.update))})),et.useEffect(D,[]),ao(()=>()=>{const e=c.current;lt(e.deps,r=>Oe(r,e))});const v=n.getComponentProps(C.getValue());return de.createElement(t,{...v,ref:j})})},Ms=class{constructor(t,n){this.update=t,this.deps=n}eventObserved(t){t.type=="change"&&ft.write(this.update)}};function As(t,n){const o=new Set;return on.dependencies=o,t.style&&(t={...t,style:n.createAnimatedStyle(t.style)}),t=new vn(t),on.dependencies=null,[t,o]}function Ds(t,n){return t&&(tt.fun(t)?t(n):t.current=n),n}var Ro=Symbol.for("AnimatedComponent"),_s=(t,{applyAnimatedValues:n=()=>!1,createAnimatedStyle:o=m=>new vn(m),getComponentProps:s=m=>m}={})=>{const m={applyAnimatedValues:n,createAnimatedStyle:o,getComponentProps:s},k=j=>{const C=Bo(j)||"Anonymous";return tt.str(j)?j=k[j]||(k[j]=_o(j,m)):j=j[Ro]||(j[Ro]=_o(j,m)),j.displayName=`Animated(${C})`,j};return Ut(t,(j,C)=>{tt.arr(t)&&(C=Bo(j)),k[C]=k(j)}),{animated:k}},Bo=t=>tt.str(t)?t:t&&tt.str(t.displayName)?t.displayName:tt.fun(t)&&t.name||null;function Dt(t,...n){return tt.fun(t)?t(...n):t}var je=(t,n)=>t===!0||!!(n&&t&&(tt.fun(t)?t(n):Tt(t).includes(n))),Vr=(t,n)=>tt.obj(t)?n&&t[n]:t,Kr=(t,n)=>t.default===!0?t[n]:t.default?t.default[n]:void 0,Rs=t=>t,bn=(t,n=Rs)=>{let o=Bs;t.default&&t.default!==!0&&(t=t.default,o=Object.keys(t));const s={};for(const m of o){const k=n(t[m],m);tt.und(k)||(s[m]=k)}return s},Bs=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Ns={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Ls(t){const n={};let o=0;if(Ut(t,(s,m)=>{Ns[m]||(n[m]=s,o++)}),o)return n}function co(t){const n=Ls(t);if(n){const o={to:n};return Ut(t,(s,m)=>m in n||(o[m]=s)),o}return{...t}}function Ae(t){return t=At(t),tt.arr(t)?t.map(Ae):mn(t)?Vt.createStringInterpolator({range:[0,1],output:[t,t]})(1):t}function Ur(t){for(const n in t)return!0;return!1}function _n(t){return tt.fun(t)||tt.arr(t)&&tt.obj(t[0])}function Rn(t,n){var o;(o=t.ref)==null||o.delete(t),n==null||n.delete(t)}function Hr(t,n){var o;n&&t.ref!==n&&((o=t.ref)==null||o.delete(t),n.add(t),t.ref=n)}var oe={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},Bn={...oe.default,mass:1,damping:1,easing:hs.linear,clamp:!1},$s=class{constructor(){this.velocity=0,Object.assign(this,Bn)}};function zs(t,n,o){o&&(o={...o},No(o,n),n={...o,...n}),No(t,n),Object.assign(t,n);for(const j in Bn)t[j]==null&&(t[j]=Bn[j]);let{frequency:s,damping:m}=t;const{mass:k}=t;return tt.und(s)||(s<.01&&(s=.01),m<0&&(m=0),t.tension=Math.pow(2*Math.PI/s,2)*k,t.friction=4*Math.PI*m*k/s),t}function No(t,n){if(!tt.und(n.decay))t.duration=void 0;else{const o=!tt.und(n.tension)||!tt.und(n.friction);(o||!tt.und(n.frequency)||!tt.und(n.damping)||!tt.und(n.mass))&&(t.duration=void 0,t.decay=void 0),o&&(t.frequency=void 0)}}var Lo=[],Fs=class{constructor(){this.changed=!1,this.values=Lo,this.toValues=null,this.fromValues=Lo,this.config=new $s,this.immediate=!1}};function qr(t,{key:n,props:o,defaultProps:s,state:m,actions:k}){return new Promise((j,C)=>{let F,R,D=je(o.cancel??(s==null?void 0:s.cancel),n);if(D)v();else{tt.und(o.pause)||(m.paused=je(o.pause,n));let e=s==null?void 0:s.pause;e!==!0&&(e=m.paused||je(e,n)),F=Dt(o.delay||0,n),e?(m.resumeQueue.add(c),k.pause()):(k.resume(),c())}function Q(){m.resumeQueue.add(c),m.timeouts.delete(R),R.cancel(),F=R.time-ft.now()}function c(){F>0&&!Vt.skipAnimation?(m.delayed=!0,R=ft.setTimeout(v,F),m.pauseQueue.add(Q),m.timeouts.add(R)):v()}function v(){m.delayed&&(m.delayed=!1),m.pauseQueue.delete(Q),m.timeouts.delete(R),t<=(m.cancelId||0)&&(D=!0);try{k.start({...o,callId:t,cancel:D},j)}catch(e){C(e)}}})}var lo=(t,n)=>n.length==1?n[0]:n.some(o=>o.cancelled)?ue(t.get()):n.every(o=>o.noop)?Gr(t.get()):zt(t.get(),n.every(o=>o.finished)),Gr=t=>({value:t,noop:!0,finished:!0,cancelled:!1}),zt=(t,n,o=!1)=>({value:t,finished:n,cancelled:o}),ue=t=>({value:t,cancelled:!0,finished:!1});function Qr(t,n,o,s){const{callId:m,parentId:k,onRest:j}=n,{asyncTo:C,promise:F}=o;return!k&&t===C&&!n.reset?F:o.promise=(async()=>{o.asyncId=m,o.asyncTo=t;const R=bn(n,(a,i)=>i==="onRest"?void 0:a);let D,Q;const c=new Promise((a,i)=>(D=a,Q=i)),v=a=>{const i=m<=(o.cancelId||0)&&ue(s)||m!==o.asyncId&&zt(s,!1);if(i)throw a.result=i,Q(a),a},e=(a,i)=>{const d=new $o,u=new zo;return(async()=>{if(Vt.skipAnimation)throw De(o),u.result=zt(s,!1),Q(u),u;v(d);const f=tt.obj(a)?{...a}:{...i,to:a};f.parentId=m,Ut(R,(b,y)=>{tt.und(f[y])&&(f[y]=b)});const p=await s.start(f);return v(d),o.paused&&await new Promise(b=>{o.resumeQueue.add(b)}),p})()};let r;if(Vt.skipAnimation)return De(o),zt(s,!1);try{let a;tt.arr(t)?a=(async i=>{for(const d of i)await e(d)})(t):a=Promise.resolve(t(e,s.stop.bind(s))),await Promise.all([a.then(D),c]),r=zt(s.get(),!0,!1)}catch(a){if(a instanceof $o)r=a.result;else if(a instanceof zo)r=a.result;else throw a}finally{m==o.asyncId&&(o.asyncId=k,o.asyncTo=k?C:void 0,o.promise=k?F:void 0)}return tt.fun(j)&&ft.batchedUpdates(()=>{j(r,s,s.item)}),r})()}function De(t,n){xe(t.timeouts,o=>o.cancel()),t.pauseQueue.clear(),t.resumeQueue.clear(),t.asyncId=t.asyncTo=t.promise=void 0,n&&(t.cancelId=n)}var $o=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},zo=class extends Error{constructor(){super("SkipAnimationSignal")}},Nn=t=>t instanceof uo,Vs=1,uo=class extends Rr{constructor(){super(...arguments),this.id=Vs++,this._priority=0}get priority(){return this._priority}set priority(t){this._priority!=t&&(this._priority=t,this._onPriorityChange(t))}get(){const t=Kt(this);return t&&t.getValue()}to(...t){return Vt.to(this,t)}interpolate(...t){return ws(),Vt.to(this,t)}toJSON(){return this.get()}observerAdded(t){t==1&&this._attach()}observerRemoved(t){t==0&&this._detach()}_attach(){}_detach(){}_onChange(t,n=!1){Ee(this,{type:"change",parent:this,value:t,idle:n})}_onPriorityChange(t){this.idle||fn.sort(this),Ee(this,{type:"priority",parent:this,priority:t})}},ae=Symbol.for("SpringPhase"),Wr=1,Ln=2,$n=4,Cn=t=>(t[ae]&Wr)>0,Wt=t=>(t[ae]&Ln)>0,ve=t=>(t[ae]&$n)>0,Fo=(t,n)=>n?t[ae]|=Ln|Wr:t[ae]&=~Ln,Vo=(t,n)=>n?t[ae]|=$n:t[ae]&=~$n,Ks=class extends uo{constructor(t,n){if(super(),this.animation=new Fs,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!tt.und(t)||!tt.und(n)){const o=tt.obj(t)?{...t}:{...n,from:t};tt.und(o.default)&&(o.default=!0),this.start(o)}}get idle(){return!(Wt(this)||this._state.asyncTo)||ve(this)}get goal(){return At(this.animation.to)}get velocity(){const t=Kt(this);return t instanceof Ke?t.lastVelocity||0:t.getPayload().map(n=>n.lastVelocity||0)}get hasAnimated(){return Cn(this)}get isAnimating(){return Wt(this)}get isPaused(){return ve(this)}get isDelayed(){return this._state.delayed}advance(t){let n=!0,o=!1;const s=this.animation;let{toValues:m}=s;const{config:k}=s,j=gn(s.to);!j&&Rt(s.to)&&(m=Tt(At(s.to))),s.values.forEach((R,D)=>{if(R.done)return;const Q=R.constructor==Me?1:j?j[D].lastPosition:m[D];let c=s.immediate,v=Q;if(!c){if(v=R.lastPosition,k.tension<=0){R.done=!0;return}let e=R.elapsedTime+=t;const r=s.fromValues[D],a=R.v0!=null?R.v0:R.v0=tt.arr(k.velocity)?k.velocity[D]:k.velocity;let i;const d=k.precision||(r==Q?.005:Math.min(1,Math.abs(Q-r)*.001));if(tt.und(k.duration))if(k.decay){const u=k.decay===!0?.998:k.decay,f=Math.exp(-(1-u)*e);v=r+a/(1-u)*(1-f),c=Math.abs(R.lastPosition-v)<=d,i=a*f}else{i=R.lastVelocity==null?a:R.lastVelocity;const u=k.restVelocity||d/10,f=k.clamp?0:k.bounce,p=!tt.und(f),b=r==Q?R.v0>0:r<Q;let y,I=!1;const S=1,E=Math.ceil(t/S);for(let T=0;T<E&&(y=Math.abs(i)>u,!(!y&&(c=Math.abs(Q-v)<=d,c)));++T){p&&(I=v==Q||v>Q==b,I&&(i=-i*f,v=Q));const L=-k.tension*1e-6*(v-Q),N=-k.friction*.001*i,M=(L+N)/k.mass;i=i+M*S,v=v+i*S}}else{let u=1;k.duration>0&&(this._memoizedDuration!==k.duration&&(this._memoizedDuration=k.duration,R.durationProgress>0&&(R.elapsedTime=k.duration*R.durationProgress,e=R.elapsedTime+=t)),u=(k.progress||0)+e/this._memoizedDuration,u=u>1?1:u<0?0:u,R.durationProgress=u),v=r+k.easing(u)*(Q-r),i=(v-R.lastPosition)/t,c=u==1}R.lastVelocity=i,Number.isNaN(v)&&(console.warn("Got NaN while animating:",this),c=!0)}j&&!j[D].done&&(c=!1),c?R.done=!0:n=!1,R.setValue(v,k.round)&&(o=!0)});const C=Kt(this),F=C.getValue();if(n){const R=At(s.to);(F!==R||o)&&!k.decay?(C.setValue(R),this._onChange(R)):o&&k.decay&&this._onChange(F),this._stop()}else o&&this._onChange(F)}set(t){return ft.batchedUpdates(()=>{this._stop(),this._focus(t),this._set(t)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Wt(this)){const{to:t,config:n}=this.animation;ft.batchedUpdates(()=>{this._onStart(),n.decay||this._set(t,!1),this._stop()})}return this}update(t){return(this.queue||(this.queue=[])).push(t),this}start(t,n){let o;return tt.und(t)?(o=this.queue||[],this.queue=[]):o=[tt.obj(t)?t:{...n,to:t}],Promise.all(o.map(s=>this._update(s))).then(s=>lo(this,s))}stop(t){const{to:n}=this.animation;return this._focus(this.get()),De(this._state,t&&this._lastCallId),ft.batchedUpdates(()=>this._stop(n,t)),this}reset(){this._update({reset:!0})}eventObserved(t){t.type=="change"?this._start():t.type=="priority"&&(this.priority=t.priority+1)}_prepareNode(t){const n=this.key||"";let{to:o,from:s}=t;o=tt.obj(o)?o[n]:o,(o==null||_n(o))&&(o=void 0),s=tt.obj(s)?s[n]:s,s==null&&(s=void 0);const m={to:o,from:s};return Cn(this)||(t.reverse&&([o,s]=[s,o]),s=At(s),tt.und(s)?Kt(this)||this._set(o):this._set(s)),m}_update({...t},n){const{key:o,defaultProps:s}=this;t.default&&Object.assign(s,bn(t,(j,C)=>/^on/.test(C)?Vr(j,o):j)),Uo(this,t,"onProps"),ye(this,"onProps",t,this);const m=this._prepareNode(t);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const k=this._state;return qr(++this._lastCallId,{key:o,props:t,defaultProps:s,state:k,actions:{pause:()=>{ve(this)||(Vo(this,!0),ke(k.pauseQueue),ye(this,"onPause",zt(this,be(this,this.animation.to)),this))},resume:()=>{ve(this)&&(Vo(this,!1),Wt(this)&&this._resume(),ke(k.resumeQueue),ye(this,"onResume",zt(this,be(this,this.animation.to)),this))},start:this._merge.bind(this,m)}}).then(j=>{if(t.loop&&j.finished&&!(n&&j.noop)){const C=Yr(t);if(C)return this._update(C,!0)}return j})}_merge(t,n,o){if(n.cancel)return this.stop(!0),o(ue(this));const s=!tt.und(t.to),m=!tt.und(t.from);if(s||m)if(n.callId>this._lastToId)this._lastToId=n.callId;else return o(ue(this));const{key:k,defaultProps:j,animation:C}=this,{to:F,from:R}=C;let{to:D=F,from:Q=R}=t;m&&!s&&(!n.default||tt.und(D))&&(D=Q),n.reverse&&([D,Q]=[Q,D]);const c=!qt(Q,R);c&&(C.from=Q),Q=At(Q);const v=!qt(D,F);v&&this._focus(D);const e=_n(n.to),{config:r}=C,{decay:a,velocity:i}=r;(s||m)&&(r.velocity=0),n.config&&!e&&zs(r,Dt(n.config,k),n.config!==j.config?Dt(j.config,k):void 0);let d=Kt(this);if(!d||tt.und(D))return o(zt(this,!0));const u=tt.und(n.reset)?m&&!n.default:!tt.und(Q)&&je(n.reset,k),f=u?Q:this.get(),p=Ae(D),b=tt.num(p)||tt.arr(p)||mn(p),y=!e&&(!b||je(j.immediate||n.immediate,k));if(v){const T=Dn(D);if(T!==d.constructor)if(y)d=this._set(p);else throw Error(`Cannot animate between ${d.constructor.name} and ${T.name}, as the "to" prop suggests`)}const I=d.constructor;let S=Rt(D),E=!1;if(!S){const T=u||!Cn(this)&&c;(v||T)&&(E=qt(Ae(f),p),S=!E),(!qt(C.immediate,y)&&!y||!qt(r.decay,a)||!qt(r.velocity,i))&&(S=!0)}if(E&&Wt(this)&&(C.changed&&!u?S=!0:S||this._stop(F)),!e&&((S||Rt(F))&&(C.values=d.getPayload(),C.toValues=Rt(D)?null:I==Me?[1]:Tt(p)),C.immediate!=y&&(C.immediate=y,!y&&!u&&this._set(F)),S)){const{onRest:T}=C;lt(Hs,N=>Uo(this,n,N));const L=zt(this,be(this,F));ke(this._pendingCalls,L),this._pendingCalls.add(o),C.changed&&ft.batchedUpdates(()=>{var N;C.changed=!u,T==null||T(L,this),u?Dt(j.onRest,L):(N=C.onStart)==null||N.call(C,L,this)})}u&&this._set(f),e?o(Qr(n.to,n,this._state,this)):S?this._start():Wt(this)&&!v?this._pendingCalls.add(o):o(Gr(f))}_focus(t){const n=this.animation;t!==n.to&&(Ao(this)&&this._detach(),n.to=t,Ao(this)&&this._attach())}_attach(){let t=0;const{to:n}=this.animation;Rt(n)&&(me(n,this),Nn(n)&&(t=n.priority+1)),this.priority=t}_detach(){const{to:t}=this.animation;Rt(t)&&Oe(t,this)}_set(t,n=!0){const o=At(t);if(!tt.und(o)){const s=Kt(this);if(!s||!qt(o,s.getValue())){const m=Dn(o);!s||s.constructor!=m?so(this,m.create(o)):s.setValue(o),s&&ft.batchedUpdates(()=>{this._onChange(o,n)})}}return Kt(this)}_onStart(){const t=this.animation;t.changed||(t.changed=!0,ye(this,"onStart",zt(this,be(this,t.to)),this))}_onChange(t,n){n||(this._onStart(),Dt(this.animation.onChange,t,this)),Dt(this.defaultProps.onChange,t,this),super._onChange(t,n)}_start(){const t=this.animation;Kt(this).reset(At(t.to)),t.immediate||(t.fromValues=t.values.map(n=>n.lastPosition)),Wt(this)||(Fo(this,!0),ve(this)||this._resume())}_resume(){Vt.skipAnimation?this.finish():fn.start(this)}_stop(t,n){if(Wt(this)){Fo(this,!1);const o=this.animation;lt(o.values,m=>{m.done=!0}),o.toValues&&(o.onChange=o.onPause=o.onResume=void 0),Ee(this,{type:"idle",parent:this});const s=n?ue(this.get()):zt(this.get(),be(this,t??o.to));ke(this._pendingCalls,s),o.changed&&(o.changed=!1,ye(this,"onRest",s,this))}}};function be(t,n){const o=Ae(n),s=Ae(t.get());return qt(s,o)}function Yr(t,n=t.loop,o=t.to){const s=Dt(n);if(s){const m=s!==!0&&co(s),k=(m||t).reverse,j=!m||m.reset;return _e({...t,loop:n,default:!1,pause:void 0,to:!k||_n(o)?o:void 0,from:j?t.from:void 0,reset:j,...m})}}function _e(t){const{to:n,from:o}=t=co(t),s=new Set;return tt.obj(n)&&Ko(n,s),tt.obj(o)&&Ko(o,s),t.keys=s.size?Array.from(s):null,t}function Us(t){const n=_e(t);return tt.und(n.default)&&(n.default=bn(n)),n}function Ko(t,n){Ut(t,(o,s)=>o!=null&&n.add(s))}var Hs=["onStart","onRest","onChange","onPause","onResume"];function Uo(t,n,o){t.animation[o]=n[o]!==Kr(n,o)?Vr(n[o],t.key):void 0}function ye(t,n,...o){var s,m,k,j;(m=(s=t.animation)[n])==null||m.call(s,...o),(j=(k=t.defaultProps)[n])==null||j.call(k,...o)}var qs=["onStart","onChange","onRest"],Gs=1,Xr=class{constructor(t,n){this.id=Gs++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),n&&(this._flush=n),t&&this.start({default:!0,...t})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(t=>t.idle&&!t.isDelayed&&!t.isPaused)}get item(){return this._item}set item(t){this._item=t}get(){const t={};return this.each((n,o)=>t[o]=n.get()),t}set(t){for(const n in t){const o=t[n];tt.und(o)||this.springs[n].set(o)}}update(t){return t&&this.queue.push(_e(t)),this}start(t){let{queue:n}=this;return t?n=Tt(t).map(_e):this.queue=[],this._flush?this._flush(this,n):(ni(this,n),zn(this,n))}stop(t,n){if(t!==!!t&&(n=t),n){const o=this.springs;lt(Tt(n),s=>o[s].stop(!!t))}else De(this._state,this._lastAsyncId),this.each(o=>o.stop(!!t));return this}pause(t){if(tt.und(t))this.start({pause:!0});else{const n=this.springs;lt(Tt(t),o=>n[o].pause())}return this}resume(t){if(tt.und(t))this.start({pause:!1});else{const n=this.springs;lt(Tt(t),o=>n[o].resume())}return this}each(t){Ut(this.springs,t)}_onFrame(){const{onStart:t,onChange:n,onRest:o}=this._events,s=this._active.size>0,m=this._changed.size>0;(s&&!this._started||m&&!this._started)&&(this._started=!0,xe(t,([C,F])=>{F.value=this.get(),C(F,this,this._item)}));const k=!s&&this._started,j=m||k&&o.size?this.get():null;m&&n.size&&xe(n,([C,F])=>{F.value=j,C(F,this,this._item)}),k&&(this._started=!1,xe(o,([C,F])=>{F.value=j,C(F,this,this._item)}))}eventObserved(t){if(t.type=="change")this._changed.add(t.parent),t.idle||this._active.add(t.parent);else if(t.type=="idle")this._active.delete(t.parent);else return;ft.onFrame(this._onFrame)}};function zn(t,n){return Promise.all(n.map(o=>Jr(t,o))).then(o=>lo(t,o))}async function Jr(t,n,o){const{keys:s,to:m,from:k,loop:j,onRest:C,onResolve:F}=n,R=tt.obj(n.default)&&n.default;j&&(n.loop=!1),m===!1&&(n.to=null),k===!1&&(n.from=null);const D=tt.arr(m)||tt.fun(m)?m:void 0;D?(n.to=void 0,n.onRest=void 0,R&&(R.onRest=void 0)):lt(qs,r=>{const a=n[r];if(tt.fun(a)){const i=t._events[r];n[r]=({finished:d,cancelled:u})=>{const f=i.get(a);f?(d||(f.finished=!1),u&&(f.cancelled=!0)):i.set(a,{value:null,finished:d||!1,cancelled:u||!1})},R&&(R[r]=n[r])}});const Q=t._state;n.pause===!Q.paused?(Q.paused=n.pause,ke(n.pause?Q.pauseQueue:Q.resumeQueue)):Q.paused&&(n.pause=!0);const c=(s||Object.keys(t.springs)).map(r=>t.springs[r].start(n)),v=n.cancel===!0||Kr(n,"cancel")===!0;(D||v&&Q.asyncId)&&c.push(qr(++t._lastAsyncId,{props:n,state:Q,actions:{pause:Tn,resume:Tn,start(r,a){v?(De(Q,t._lastAsyncId),a(ue(t))):(r.onRest=C,a(Qr(D,r,Q,t)))}}})),Q.paused&&await new Promise(r=>{Q.resumeQueue.add(r)});const e=lo(t,await Promise.all(c));if(j&&e.finished&&!(o&&e.noop)){const r=Yr(n,j,m);if(r)return ni(t,[r]),Jr(t,r,!0)}return F&&ft.batchedUpdates(()=>F(e,t,t.item)),e}function Fn(t,n){const o={...t.springs};return n&<(Tt(n),s=>{tt.und(s.keys)&&(s=_e(s)),tt.obj(s.to)||(s={...s,to:void 0}),ei(o,s,m=>ti(m))}),Zr(t,o),o}function Zr(t,n){Ut(n,(o,s)=>{t.springs[s]||(t.springs[s]=o,me(o,t))})}function ti(t,n){const o=new Ks;return o.key=t,n&&me(o,n),o}function ei(t,n,o){n.keys&<(n.keys,s=>{(t[s]||(t[s]=o(s)))._prepareNode(n)})}function ni(t,n){lt(n,o=>{ei(t.springs,o,s=>ti(s,t))})}var Ue=({children:t,...n})=>{const o=et.useContext(rn),s=n.pause||!!o.pause,m=n.immediate||!!o.immediate;n=Is(()=>({pause:s,immediate:m}),[s,m]);const{Provider:k}=rn;return de.createElement(k,{value:n},t)},rn=Qs(Ue,{});Ue.Provider=rn.Provider;Ue.Consumer=rn.Consumer;function Qs(t,n){return Object.assign(t,de.createContext(n)),t.Provider._context=t,t.Consumer._context=t,t}var oi=()=>{const t=[],n=function(s){Ss();const m=[];return lt(t,(k,j)=>{if(tt.und(s))m.push(k.start());else{const C=o(s,k,j);C&&m.push(k.start(C))}}),m};n.current=t,n.add=function(s){t.includes(s)||t.push(s)},n.delete=function(s){const m=t.indexOf(s);~m&&t.splice(m,1)},n.pause=function(){return lt(t,s=>s.pause(...arguments)),this},n.resume=function(){return lt(t,s=>s.resume(...arguments)),this},n.set=function(s){lt(t,(m,k)=>{const j=tt.fun(s)?s(k,m):s;j&&m.set(j)})},n.start=function(s){const m=[];return lt(t,(k,j)=>{if(tt.und(s))m.push(k.start());else{const C=this._getProps(s,k,j);C&&m.push(k.start(C))}}),m},n.stop=function(){return lt(t,s=>s.stop(...arguments)),this},n.update=function(s){return lt(t,(m,k)=>m.update(this._getProps(s,m,k))),this};const o=function(s,m,k){return tt.fun(s)?s(k,m):s};return n._getProps=o,n};function Ws(t,n,o){const s=tt.fun(n)&&n;s&&!o&&(o=[]);const m=et.useMemo(()=>s||arguments.length==3?oi():void 0,[]),k=et.useRef(0),j=io(),C=et.useMemo(()=>({ctrls:[],queue:[],flush(i,d){const u=Fn(i,d);return k.current>0&&!C.queue.length&&!Object.keys(u).some(p=>!i.springs[p])?zn(i,d):new Promise(p=>{Zr(i,u),C.queue.push(()=>{p(zn(i,d))}),j()})}}),[]),F=et.useRef([...C.ctrls]),R=[],D=An(t)||0;et.useMemo(()=>{lt(F.current.slice(t,D),i=>{Rn(i,m),i.stop(!0)}),F.current.length=t,Q(D,t)},[t]),et.useMemo(()=>{Q(0,Math.min(D,t))},o);function Q(i,d){for(let u=i;u<d;u++){const f=F.current[u]||(F.current[u]=new Xr(null,C.flush)),p=s?s(u,f):n[u];p&&(R[u]=Us(p))}}const c=F.current.map((i,d)=>Fn(i,R[d])),v=et.useContext(Ue),e=An(v),r=v!==e&&Ur(v);re(()=>{k.current++,C.ctrls=F.current;const{queue:i}=C;i.length&&(C.queue=[],lt(i,d=>d())),lt(F.current,(d,u)=>{m==null||m.add(d),r&&d.start({default:v});const f=R[u];f&&(Hr(d,f.ref),d.ref?d.queue.push(f):d.start(f))})}),ao(()=>()=>{lt(C.ctrls,i=>i.stop(!0))});const a=c.map(i=>({...i}));return m?[a,m]:a}function ri(t,n){const o=tt.fun(t),[[s],m]=Ws(1,o?t:[t],o?n||[]:n);return o||arguments.length==2?[s,m]:s}function fo(t,n,o){const s=tt.fun(n)&&n,{reset:m,sort:k,trail:j=0,expires:C=!0,exitBeforeEnter:F=!1,onDestroyed:R,ref:D,config:Q}=s?s():n,c=et.useMemo(()=>s||arguments.length==3?oi():void 0,[]),v=Tt(t),e=[],r=et.useRef(null),a=m?null:r.current;re(()=>{r.current=e}),ao(()=>(lt(e,M=>{c==null||c.add(M.ctrl),M.ctrl.ref=c}),()=>{lt(r.current,M=>{M.expired&&clearTimeout(M.expirationId),Rn(M.ctrl,c),M.ctrl.stop(!0)})}));const i=Xs(v,s?s():n,a),d=m&&r.current||[];re(()=>lt(d,({ctrl:M,item:P,key:K})=>{Rn(M,c),Dt(R,P,K)}));const u=[];if(a&<(a,(M,P)=>{M.expired?(clearTimeout(M.expirationId),d.push(M)):(P=u[P]=i.indexOf(M.key),~P&&(e[P]=M))}),lt(v,(M,P)=>{e[P]||(e[P]={key:i[P],item:M,phase:"mount",ctrl:new Xr},e[P].ctrl.item=M)}),u.length){let M=-1;const{leave:P}=s?s():n;lt(u,(K,$)=>{const X=a[$];~K?(M=e.indexOf(X),e[M]={...X,item:v[K]}):P&&e.splice(++M,0,X)})}tt.fun(k)&&e.sort((M,P)=>k(M.item,P.item));let f=-j;const p=io(),b=bn(n),y=new Map,I=et.useRef(new Map),S=et.useRef(!1);lt(e,(M,P)=>{const K=M.key,$=M.phase,X=s?s():n;let G,J;const Y=Dt(X.delay||0,K);if($=="mount")G=X.enter,J="enter";else{const it=i.indexOf(K)<0;if($!="leave")if(it)G=X.leave,J="leave";else if(G=X.update)J="update";else return;else if(!it)G=X.enter,J="enter";else return}if(G=Dt(G,M.item,P),G=tt.obj(G)?co(G):{to:G},!G.config){const it=Q||b.config;G.config=Dt(it,M.item,P,J)}f+=j;const rt={...b,delay:Y+f,ref:D,immediate:X.immediate,reset:!1,...G};if(J=="enter"&&tt.und(rt.from)){const it=s?s():n,B=tt.und(it.initial)||a?it.from:it.initial;rt.from=Dt(B,M.item,P)}const{onResolve:st}=rt;rt.onResolve=it=>{Dt(st,it);const B=r.current,O=B.find(z=>z.key===K);if(O&&!(it.cancelled&&O.phase!="update")&&O.ctrl.idle){const z=B.every(l=>l.ctrl.idle);if(O.phase=="leave"){const l=Dt(C,O.item);if(l!==!1){const g=l===!0?0:l;if(O.expired=!0,!z&&g>0){g<=2147483647&&(O.expirationId=setTimeout(p,g));return}}}z&&B.some(l=>l.expired)&&(I.current.delete(O),F&&(S.current=!0),p())}};const ct=Fn(M.ctrl,rt);J==="leave"&&F?I.current.set(M,{phase:J,springs:ct,payload:rt}):y.set(M,{phase:J,springs:ct,payload:rt})});const E=et.useContext(Ue),T=An(E),L=E!==T&&Ur(E);re(()=>{L&<(e,M=>{M.ctrl.start({default:E})})},[E]),lt(y,(M,P)=>{if(I.current.size){const K=e.findIndex($=>$.key===P.key);e.splice(K,1)}}),re(()=>{lt(I.current.size?I.current:y,({phase:M,payload:P},K)=>{const{ctrl:$}=K;K.phase=M,c==null||c.add($),L&&M=="enter"&&$.start({default:E}),P&&(Hr($,P.ref),($.ref||c)&&!S.current?$.update(P):($.start(P),S.current&&(S.current=!1)))})},m?void 0:o);const N=M=>de.createElement(de.Fragment,null,e.map((P,K)=>{const{springs:$}=y.get(P)||P.ctrl,X=M({...$},P.item,P,K);return X&&X.type?de.createElement(X.type,{...X.props,key:tt.str(P.key)||tt.num(P.key)?P.key:P.ctrl.id,ref:X.ref}):X}));return c?[N,c]:N}var Ys=1;function Xs(t,{key:n,keys:o=n},s){if(o===null){const m=new Set;return t.map(k=>{const j=s&&s.find(C=>C.item===k&&C.phase!=="leave"&&!m.has(C));return j?(m.add(j),j.key):Ys++})}return tt.und(o)?t:tt.fun(o)?t.map(o):Tt(o)}var Js=class extends uo{constructor(t,n){super(),this.source=t,this.idle=!0,this._active=new Set,this.calc=Ie(...n);const o=this._get(),s=Dn(o);so(this,s.create(o))}advance(t){const n=this._get(),o=this.get();qt(n,o)||(Kt(this).setValue(n),this._onChange(n,this.idle)),!this.idle&&Ho(this._active)&&In(this)}_get(){const t=tt.arr(this.source)?this.source.map(At):Tt(At(this.source));return this.calc(...t)}_start(){this.idle&&!Ho(this._active)&&(this.idle=!1,lt(gn(this),t=>{t.done=!1}),Vt.skipAnimation?(ft.batchedUpdates(()=>this.advance()),In(this)):fn.start(this))}_attach(){let t=1;lt(Tt(this.source),n=>{Rt(n)&&me(n,this),Nn(n)&&(n.idle||this._active.add(n),t=Math.max(t,n.priority+1))}),this.priority=t,this._start()}_detach(){lt(Tt(this.source),t=>{Rt(t)&&Oe(t,this)}),this._active.clear(),In(this)}eventObserved(t){t.type=="change"?t.idle?this.advance():(this._active.add(t.parent),this._start()):t.type=="idle"?this._active.delete(t.parent):t.type=="priority"&&(this.priority=Tt(this.source).reduce((n,o)=>Math.max(n,(Nn(o)?o.priority:0)+1),0))}};function Zs(t){return t.idle!==!1}function Ho(t){return!t.size||Array.from(t).every(Zs)}function In(t){t.idle||(t.idle=!0,lt(gn(t),n=>{n.done=!0}),Ee(t,{type:"idle",parent:t}))}Vt.assign({createStringInterpolator:Lr,to:(t,n)=>new Js(t,n)});var ii=/^--/;function tc(t,n){return n==null||typeof n=="boolean"||n===""?"":typeof n=="number"&&n!==0&&!ii.test(t)&&!(Se.hasOwnProperty(t)&&Se[t])?n+"px":(""+n).trim()}var qo={};function ec(t,n){if(!t.nodeType||!t.setAttribute)return!1;const o=t.nodeName==="filter"||t.parentNode&&t.parentNode.nodeName==="filter",{style:s,children:m,scrollTop:k,scrollLeft:j,viewBox:C,...F}=n,R=Object.values(F),D=Object.keys(F).map(Q=>o||t.hasAttribute(Q)?Q:qo[Q]||(qo[Q]=Q.replace(/([A-Z])/g,c=>"-"+c.toLowerCase())));m!==void 0&&(t.textContent=m);for(const Q in s)if(s.hasOwnProperty(Q)){const c=tc(Q,s[Q]);ii.test(Q)?t.style.setProperty(Q,c):t.style[Q]=c}D.forEach((Q,c)=>{t.setAttribute(Q,R[c])}),k!==void 0&&(t.scrollTop=k),j!==void 0&&(t.scrollLeft=j),C!==void 0&&t.setAttribute("viewBox",C)}var Se={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},nc=(t,n)=>t+n.charAt(0).toUpperCase()+n.substring(1),oc=["Webkit","Ms","Moz","O"];Se=Object.keys(Se).reduce((t,n)=>(oc.forEach(o=>t[nc(o,n)]=t[n]),t),Se);var rc=/^(matrix|translate|scale|rotate|skew)/,ic=/^(translate)/,ac=/^(rotate|skew)/,Pn=(t,n)=>tt.num(t)&&t!==0?t+n:t,Je=(t,n)=>tt.arr(t)?t.every(o=>Je(o,n)):tt.num(t)?t===n:parseFloat(t)===n,sc=class extends vn{constructor({x:t,y:n,z:o,...s}){const m=[],k=[];(t||n||o)&&(m.push([t||0,n||0,o||0]),k.push(j=>[`translate3d(${j.map(C=>Pn(C,"px")).join(",")})`,Je(j,0)])),Ut(s,(j,C)=>{if(C==="transform")m.push([j||""]),k.push(F=>[F,F===""]);else if(rc.test(C)){if(delete s[C],tt.und(j))return;const F=ic.test(C)?"px":ac.test(C)?"deg":"";m.push(Tt(j)),k.push(C==="rotate3d"?([R,D,Q,c])=>[`rotate3d(${R},${D},${Q},${Pn(c,F)})`,Je(c,0)]:R=>[`${C}(${R.map(D=>Pn(D,F)).join(",")})`,Je(R,C.startsWith("scale")?1:0)])}}),m.length&&(s.transform=new cc(m,k)),super(s)}},cc=class extends Rr{constructor(t,n){super(),this.inputs=t,this.transforms=n,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let t="",n=!0;return lt(this.inputs,(o,s)=>{const m=At(o[0]),[k,j]=this.transforms[s](tt.arr(m)?m:o.map(At));t+=" "+k,n=n&&j}),n?"none":t}observerAdded(t){t==1&<(this.inputs,n=>lt(n,o=>Rt(o)&&me(o,this)))}observerRemoved(t){t==0&<(this.inputs,n=>lt(n,o=>Rt(o)&&Oe(o,this)))}eventObserved(t){t.type=="change"&&(this._value=null),Ee(this,t)}},dc=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];Vt.assign({batchedUpdates:Re.unstable_batchedUpdates,createStringInterpolator:Lr,colors:es});var lc=_s(dc,{applyAnimatedValues:ec,createAnimatedStyle:t=>new sc(t),getComponentProps:({scrollTop:t,scrollLeft:n,...o})=>o}),He=lc.animated;const uc=A.div`
|
|
779
784
|
display: flex;
|
|
780
785
|
flex-direction: column;
|
|
781
786
|
gap: var(--ddk-component-modal-container-gap);
|
|
@@ -842,7 +847,7 @@
|
|
|
842
847
|
flex-direction: column;
|
|
843
848
|
justify-content: center;
|
|
844
849
|
/* height: ${t=>t.mode==="maximized"&&"100%"}; */
|
|
845
|
-
`,te=({children:t,closeOnShroudClick:n=!0,contain:o=!0,enableAnimation:
|
|
850
|
+
`,te=({children:t,closeOnShroudClick:n=!0,contain:o=!0,enableAnimation:s,mode:m,onClose:k,onClosed:j,show:C,width:F,height:R,...D})=>{const Q=Ct(),c=s!==void 0?s:Q.enableModalAnimation;m=Q.modalModeOverride??m;const v=fo(C,{initial:{opacity:0},from:{opacity:0},enter:{opacity:1},leave:{opacity:0},onDestroyed:j,immediate:!c});return Re.createPortal(v((e,r)=>r&&h.jsx(He.div,{css:fc(m,c),style:e,onPointerDown:()=>m!=="maximized"&&n&&(k==null?void 0:k()),children:h.jsx(pc,{...D,contain:m!=="fullscreen",mode:m,children:h.jsx("div",{className:`modal${m==="fullscreen"?" fullscreen":m==="maximized"?" maximized":""}`,onPointerDown:a=>a.stopPropagation(),style:{width:F,height:R},children:h.jsx(et.Suspense,{children:h.jsx(ai,{contain:o,children:t})})})})})),document.body)},hc=A.div`
|
|
846
851
|
display: flex;
|
|
847
852
|
flex-direction: column;
|
|
848
853
|
overflow-y: auto;
|
|
@@ -852,7 +857,6 @@
|
|
|
852
857
|
`,mc=A(he)`
|
|
853
858
|
align-items: center;
|
|
854
859
|
gap: 24px;
|
|
855
|
-
text-align: center;
|
|
856
860
|
`,gc={height:"56px",width:"56px"},vc=A.div`
|
|
857
861
|
display: flex;
|
|
858
862
|
animation: rotation 2s infinite linear;
|
|
@@ -864,8 +868,8 @@
|
|
|
864
868
|
transform: rotate(360deg);
|
|
865
869
|
}
|
|
866
870
|
}
|
|
867
|
-
`,bc=(t,n)=>{switch(t){case"error":return h.jsx(bt.ErrorIconWithBackground,{style:n});case"information-default":return h.jsx(bt.InformationIconWithBackground,{style:n});case"information":return h.jsx(bt.MessageInformationIconWithBackground,{style:n});case"loading":return h.jsx(vc,{children:h.jsx(bt.LoaderIconWithBackground,{style:n})});case"question-default":return h.jsx(bt.InformationQuestionIconWithBackground,{style:n});case"question":return h.jsx(bt.MessageQuestionIconWithBackground,{style:n});case"success":return h.jsx(bt.SuccessIconWithBackground,{style:n});default:return}},si=({closeButtonLabel:t,footer:n,iconStyle:o=gc,information:
|
|
868
|
-
background-color: ${t=>t.
|
|
871
|
+
`,bc=(t,n)=>{switch(t){case"error":return h.jsx(bt.ErrorIconWithBackground,{style:n});case"information-default":return h.jsx(bt.InformationIconWithBackground,{style:n});case"information":return h.jsx(bt.MessageInformationIconWithBackground,{style:n});case"loading":return h.jsx(vc,{children:h.jsx(bt.LoaderIconWithBackground,{style:n})});case"question-default":return h.jsx(bt.InformationQuestionIconWithBackground,{style:n});case"question":return h.jsx(bt.MessageQuestionIconWithBackground,{style:n});case"success":return h.jsx(bt.SuccessIconWithBackground,{style:n});default:return}},si=({closeButtonLabel:t,footer:n,iconStyle:o=gc,information:s,onClose:m,show:k=!0,showCloseButton:j=!0,status:C,title:F,...R})=>{const{componentModeOverride:D}=Ct();return h.jsx(te,{...R,contain:D!=="compact",show:k,onClose:m,children:h.jsxs(hc,{children:[(j&&!!m||F)&&h.jsx(Zt,{closeButtonLabel:t,CloseButton:D==="compact"?jr:void 0,contain:D==="compact",onClose:m,showCloseButton:j,title:F}),h.jsx(he,{children:h.jsxs(mc,{children:[bc(C,o),s]})}),h.jsx(ze,{children:n})]})})},yc=({body:t,cancelLabel:n,confirmLabel:o,heading:s,onCancel:m,onClose:k,onConfirm:j,status:C,...F})=>h.jsx(si,{...F,footer:h.jsxs(h.Fragment,{children:[m&&h.jsx(Mt,{onPointerDown:m,children:n}),j&&h.jsx(Mt,{onPointerDown:j,children:o})]}),iconStyle:{height:"68px",width:"68px"},information:h.jsxs(h.Fragment,{children:[s&&h.jsx(lr,{children:s}),t&&h.jsx(cr,{children:t})]}),onClose:k,showCloseButton:!!k,status:C}),ci=({cancelLabel:t,confirmLabel:n,...o})=>{const{t:s}=Nt.useKosTranslation("common",{keyPrefix:"confirmation-modal"});return t=t??s("cancel"),n=n??s("confirm"),h.jsx(yc,{cancelLabel:t,confirmLabel:n,...o})},kc=A.div`
|
|
872
|
+
background-color: ${t=>t.backgroundColor&&t.backgroundColor};
|
|
869
873
|
|
|
870
874
|
border-bottom-left-radius: 4px;
|
|
871
875
|
border-top-left-radius: 4px;
|
|
@@ -877,13 +881,13 @@
|
|
|
877
881
|
width: 4px;
|
|
878
882
|
z-index: 1;
|
|
879
883
|
`,di=A.div`
|
|
880
|
-
background-color: ${t=>t.color?t.
|
|
884
|
+
background-color: ${t=>t.disabled?"var(--ddk-generic-color-grey-20, #dfdede)":t.backgroundColor?t.backgroundColor:"var(--ddk-generic-color-white, #ffffff)"};
|
|
881
885
|
|
|
882
886
|
border-radius: 8px;
|
|
883
887
|
border: 1px solid var(--ddk-generic-color-grey-20, #dfdede);
|
|
884
888
|
box-sizing: border-box;
|
|
885
889
|
|
|
886
|
-
color: ${t=>t.color==="black"?"var(--ddk-generic-color-white, #ffffff)":"var(--Grey-100, #171717)"};
|
|
890
|
+
color: ${t=>t.color??t.backgroundColor==="black"?"var(--ddk-generic-color-white, #ffffff)":"var(--Grey-100, #171717)"};
|
|
887
891
|
|
|
888
892
|
cursor: pointer;
|
|
889
893
|
display: grid;
|
|
@@ -907,7 +911,7 @@
|
|
|
907
911
|
background-color: var(--ddk-component-dashboard-card-avatar-background-color);
|
|
908
912
|
border: var(--ddk-component-dashboard-card-avatar-border);
|
|
909
913
|
|
|
910
|
-
color: ${t=>t.
|
|
914
|
+
color: ${t=>t.backgroundColor==="black"?"var(--ddk-generic-color-white, #ffffff)":"var(--Grey-100, #171717)"};
|
|
911
915
|
|
|
912
916
|
display: flex;
|
|
913
917
|
font-size: var(--ddk-component-dashboard-card-avatar-font-size);
|
|
@@ -964,8 +968,8 @@
|
|
|
964
968
|
width: 100%;
|
|
965
969
|
position: absolute;
|
|
966
970
|
top: 0;
|
|
967
|
-
background-color: ${t=>t.color?t.
|
|
968
|
-
`,mi=({avatar:t,body:n,cardId:o,color:
|
|
971
|
+
background-color: ${t=>t.disabled?"var(--ddk-generic-color-grey-20, #dfdede)":t.backgroundColor?t.backgroundColor:"var(--ddk-component-dashboard-card-header-background-color)"};
|
|
972
|
+
`,mi=({avatar:t,body:n,cardId:o,color:s,backgroundColor:m,errors:k,footer:j,disabled:C,indicatorColor:F,onCardSelect:R,showNavIcon:D,title:Q})=>{const c=et.useRef(null),v=i=>{c.current=i.pointerId},e=i=>{c.current===i.pointerId&&(R==null||R(o)),c.current=null},{componentModeOverride:r}=Ct(),a=r==="compact";return h.jsxs(di,{color:s,backgroundColor:m,onPointerDown:v,onPointerUp:e,disabled:C,children:[a&&F&&h.jsx(kc,{backgroundColor:F}),h.jsx(wc,{backgroundColor:m,disabled:C}),!!t&&h.jsx(li,{backgroundColor:m,children:t}),Q&&h.jsx(ui,{backgroundColor:m,children:Q}),h.jsx(fi,{children:n}),r==="compact"&&!!D&&h.jsx(hi,{}),!!j&&h.jsx(pi,{children:j})]})},jc=t=>h.jsx(mi,{...t}),Sc=t=>h.jsx(mi,{...t}),We=10,Cc=A(He.div)`
|
|
969
973
|
overflow: hidden;
|
|
970
974
|
position: relative;
|
|
971
975
|
touch-action: none;
|
|
@@ -977,7 +981,7 @@
|
|
|
977
981
|
justify-content: center;
|
|
978
982
|
position: absolute;
|
|
979
983
|
width: 100%;
|
|
980
|
-
`,Go=(t,n)=>(t%n+n)%n,po=({className:t,enableAnimation:n,itemRenderer:o,items:
|
|
984
|
+
`,Go=(t,n)=>(t%n+n)%n,po=({className:t,enableAnimation:n,itemRenderer:o,items:s=[],itemSize:m=20,loop:k,numberOfVisibleItems:j=13,offset:C=!1,selectedItemId:F,selectedItemOffset:R,onChange:D})=>{const Q=Ct(),c=n!==void 0?n:Q.enableDialAnimation,v=s.length<=j,e=k!==void 0?k:!v,r=R??Math.floor(j/2),a=(C?j-1:j)*m,i=et.useRef(!1),d=et.useRef(!1),u=et.useMemo(()=>{const P=s.findIndex(K=>K.id===F);return P===void 0||P===-1?0:P},[s,F]),[f,p]=et.useState(u-r),b=P=>s[Go(P+r,s.length)],y=et.useCallback(P=>-P*m,[m]),I=P=>{if(e===!1){const K=(s.length-r-1)*m,$=r*m;if(P<-$)return-$;if(P>K)return K}return P},S=et.useRef(0),[{value:E},T]=ri({to:{value:-u*m},config:oe.default,immediate:!0},[u,m]),L=et.useMemo(()=>{const P=[];for(let K=0;K<j;++K){const $=e?Go(f+K,s.length):f+K;e===!1&&$<0||$>=s.length||P.push({index:f+K,position:(f+K)*m+(C?-m*.5:0),data:s[$]})}return P},[f,s,m,e,j,C]),N=fo(L,{keys:P=>P.index,from:{value:0},enter:{value:1},leave:{value:0},config:oe.gentle}),M=Zi.useGesture({onPointerDown:()=>{d.current=!0},onPointerUp:()=>{d.current=!1},onDragStart:()=>{i.current=!1,S.current=f*m},onDrag:({delta:[,P],down:K,movement:[$,X]})=>{if(!K)return;(Math.abs($)>We||Math.abs(X)>We)&&(i.current=!0),S.current=I(S.current-P);const G=Math.floor(S.current/m);G!==f&&(p(G),D==null||D(b(G)),T.start({value:y(G),config:oe.stiff,immediate:!c}))},onDragEnd:({velocity:[,P],direction:[,K],movement:[$,X]})=>{if(Math.abs($)<We&&Math.abs(X)<We)return;S.current=I(S.current-P*K*10);const G=Math.floor(S.current/m);G!==f&&(p(G),D==null||D(b(G)),T.start({value:y(G),config:oe.slow,immediate:!c}))}});return et.useEffect(()=>{const P=u-r;p(P),T.start({value:y(P),config:oe.default,immediate:!0})},[T,y,m,u,r]),h.jsx(Cc,{...M(),className:t,style:{height:a},children:N((P,K)=>h.jsx(Ic,{style:{height:m,y:E.to($=>$+K.position)},onPointerUp:()=>{if(d.current&&!i.current){const $=K.index-r;p($),D==null||D(b($)),T.start({value:y($),config:oe.stiff,immediate:!c})}},children:o?h.jsx(o,{item:K.data,selected:K.index===f+r,children:K.data.label}):K.data.label}))})},yn=({children:t,Icon:n,...o})=>h.jsxs(Be,{...o,children:[t||h.jsx("span",{}),n?h.jsx(n,{}):h.jsx(bt.DropdownIcon,{})]}),Pc=A.div`
|
|
981
985
|
display: flex;
|
|
982
986
|
align-items: center;
|
|
983
987
|
justify-content: space-between;
|
|
@@ -1016,7 +1020,7 @@
|
|
|
1016
1020
|
color: var(--ddk-component-failure-card-color);
|
|
1017
1021
|
margin: 0;
|
|
1018
1022
|
}
|
|
1019
|
-
`,Dc=({heading:t,message:n,onPointerDown:o})=>{const{componentModeOverride:
|
|
1023
|
+
`,Dc=({heading:t,message:n,onPointerDown:o})=>{const{componentModeOverride:s}=Ct(),m=s==="compact";return h.jsxs(h.Fragment,{children:[h.jsxs(Pc,{children:[h.jsxs(Tc,{children:[h.jsx(bt.ErrorIcon,{css:Oc}),h.jsx(Ec,{children:t})]}),m?null:h.jsx(bt.CloseIcon,{css:Mc,onPointerDown:o})]}),n&&h.jsx(Ac,{children:h.jsx("p",{children:n})}),m&&h.jsx(Mt,{mode:"primary",onPointerDown:o,children:"Close"})]})},_c=A.div`
|
|
1020
1024
|
background-color: var(--ddk-component-table-background-color);
|
|
1021
1025
|
border-radius: var(--ddk-component-table-border-radius);
|
|
1022
1026
|
border-color: var(--ddk-component-table-border-color);
|
|
@@ -1126,12 +1130,12 @@
|
|
|
1126
1130
|
box-sizing: border-box;
|
|
1127
1131
|
padding: var(--ddk-component-table-content-padding);
|
|
1128
1132
|
}
|
|
1129
|
-
`,gi=(t,n)=>n.split(".").reduce((o,
|
|
1133
|
+
`,gi=(t,n)=>n.split(".").reduce((o,s)=>o==null?void 0:o[s],t),vi=({item:t,valueKey:n})=>gi(t,n),Rc=({CellRenderer:t=vi,dataKeys:n,item:o})=>n==null?void 0:n.map((s,m)=>h.jsx("td",{children:h.jsx(t,{item:o,valueKey:s},m)},m)),bi=Nt.kosComponent(({CellRenderer:t=vi,children:n,className:o,data:s,dataKeys:m,headers:k,heading:j,mode:C="standard",RowRenderer:F=Rc})=>h.jsxs(_c,{className:o+` ${C}`,children:[h.jsxs("table",{children:[h.jsxs("thead",{children:[j&&h.jsx("tr",{className:"heading",children:h.jsx("th",{colSpan:(k==null?void 0:k.length)??(m==null?void 0:m.length),children:j})}),k&&h.jsx("tr",{className:"headers"+(C==="info"&&j?" indent":"")+(j?"":" no-heading"),children:k==null?void 0:k.map((R,D)=>h.jsx("th",{children:R},D))})]}),h.jsx("tbody",{children:s==null?void 0:s.map((R,D)=>h.jsx("tr",{className:"data"+(C==="info"&&j?" indent":""),children:h.jsx(F,{CellRenderer:t,dataKeys:m,item:R})},D))})]}),n&&h.jsx("div",{className:"content",children:n})]})),yi=t=>h.jsx(bi,{...t,mode:"info"}),Bc=A.div`
|
|
1130
1134
|
display: flex;
|
|
1131
1135
|
flex-direction: column;
|
|
1132
1136
|
justify-content: space-between;
|
|
1133
1137
|
padding: var(--ddk-component-frame-body-padding);
|
|
1134
|
-
`,Nc=({tableHead:t,tableData:n,keyList:o,tableHeaderList:
|
|
1138
|
+
`,Nc=({tableHead:t,tableData:n,keyList:o,tableHeaderList:s})=>h.jsx(Bc,{children:h.jsx(yi,{heading:t,dataKeys:o,data:n,headers:s})}),Lc=A.div`
|
|
1135
1139
|
box-sizing: var(--ddk-component-frame-container-box-sizing);
|
|
1136
1140
|
border: var(--ddk-component-frame-container-border);
|
|
1137
1141
|
border-radius: var(--ddk-component-frame-container-border-radius);
|
|
@@ -1141,7 +1145,7 @@
|
|
|
1141
1145
|
box-sizing: border-box;
|
|
1142
1146
|
padding: var(--ddk-component-frame-container-card-padding);
|
|
1143
1147
|
max-height: 48px;
|
|
1144
|
-
`,zc=({name:t,children:n})=>h.jsxs(Lc,{children:[h.jsx($c,{children:t}),n]});function Fc(t,n=2,o=!0){if(!+t)return"0 Bytes";const
|
|
1148
|
+
`,zc=({name:t,children:n})=>h.jsxs(Lc,{children:[h.jsx($c,{children:t}),n]});function Fc(t,n=2,o=!0){if(!+t)return"0 Bytes";const s=1024,m=n<0?0:n,k=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],j=Math.floor(Math.log(t)/Math.log(s));return`${parseFloat((t/Math.pow(s,j)).toFixed(m))}${j===0||o?" ":""}${k[j]}`}const ho=t=>t<=5?"var(--ddk-semantic-color-system-red)":t<=20?"var(--ddk-semantic-color-system-orange)":"var(--ddk-semantic-color-system-green)",Vc=({defaultValue:t,key:n,modifiers:o,values:s})=>{const[m,k]=et.useState(s.indexOf(t));return et.useEffect(()=>{const j=C=>{const F=C.key===n,R=o&&(o.altKey===void 0||C.altKey===o.altKey)&&(o.ctrlKey===void 0||C.ctrlKey===o.ctrlKey)&&(o.shiftKey===void 0||C.shiftKey===o.shiftKey);F&&R&&k((m+1)%s.length)};return window.addEventListener("keydown",j),()=>{window.removeEventListener("keydown",j)}},[n,o,s,m]),s[m]},Kc=(t,n,o)=>{const s=o==="small"?5:10,m=100/s,k=Math.floor(n/m),j=n%m*s,C=ho(n);return t<k?C:t===k&&j>0?`linear-gradient(to right, ${C} ${j}%, #dfdede ${j}%)`:"#dfdede"},Uc=A.div`
|
|
1145
1149
|
display: flex;
|
|
1146
1150
|
flex-direction: var(--ddk-component-fuel-guage-container-direction);
|
|
1147
1151
|
gap: var(--ddk-component-fuel-guage-container-gap);
|
|
@@ -1157,7 +1161,7 @@
|
|
|
1157
1161
|
`,Gc=A.div`
|
|
1158
1162
|
display: flex;
|
|
1159
1163
|
justify-content: space-between;
|
|
1160
|
-
`,Qc=({color:t,size:n="small",value:o,showBarsOverride:
|
|
1164
|
+
`,Qc=({color:t,size:n="small",value:o,showBarsOverride:s=!1,subtext:m,subtextColor:k})=>{const{componentModeOverride:j}=Ct(),C=j==="compact",F=j==="standard"||s,R=n==="small"?5:10,D=n==="small"?Hn:Ne,Q=n==="small"?ar:pr;return k=k??t,h.jsxs(Uc,{children:[h.jsxs(Gc,{children:[h.jsxs(D,{style:{color:t??C?ho(o):void 0},children:[o,"%"]}),C&&m&&h.jsx(Q,{style:{color:k},children:m})]}),F&&h.jsx(Hc,{children:[...Array(R)].map((c,v)=>h.jsx(qc,{size:n,background:Kc(v,o,n)},v))})]})},Wc=xt.css`
|
|
1161
1165
|
display: flex;
|
|
1162
1166
|
background-color: var(--ddk-component-modal-shade-background-color);
|
|
1163
1167
|
flex-direction: column;
|
|
@@ -1185,7 +1189,7 @@
|
|
|
1185
1189
|
transform: scale(1);
|
|
1186
1190
|
}
|
|
1187
1191
|
}
|
|
1188
|
-
`,Yc=({children:t,contain:n=!0,onClose:o,onClosed:
|
|
1192
|
+
`,Yc=({children:t,contain:n=!0,onClose:o,onClosed:s,show:m})=>{const k=fo(m,{initial:{opacity:0},from:{opacity:0},enter:{opacity:1},leave:{opacity:0},onDestroyed:s});return Re.createPortal(k((j,C)=>C&&h.jsx(He.div,{css:Wc,style:j,onPointerDown:o,children:h.jsx("div",{className:"modal",onPointerDown:F=>F.stopPropagation(),children:h.jsx(ai,{contain:n,children:t})})})),document.body)},Xc=A.div`
|
|
1189
1193
|
box-sizing: border-box;
|
|
1190
1194
|
display: flex;
|
|
1191
1195
|
gap: var(--ddk-component-modal-header-gap);
|
|
@@ -1207,7 +1211,7 @@
|
|
|
1207
1211
|
display: grid;
|
|
1208
1212
|
grid-template-columns: ${t=>t.noData?"1fr":"1fr 1fr 1fr"};
|
|
1209
1213
|
gap: 12px;
|
|
1210
|
-
`,nd=Nt.kosComponent(({ItemRenderer:t,items:n,maxNumberOfItems:o,MoreItemsRenderer:
|
|
1214
|
+
`,nd=Nt.kosComponent(({ItemRenderer:t,items:n,maxNumberOfItems:o,MoreItemsRenderer:s,NoDataItemRenderer:m})=>h.jsxs(ed,{noData:!n||!n.length,children:[n&&n.length?(n.length>o?n.slice(0,o-1):n).map((k,j)=>h.jsx(t,{item:k},j)):h.jsx(m,{}),n&&(n==null?void 0:n.length)>o&&h.jsx(s,{})]})),Vn=A.div`
|
|
1211
1215
|
color: var(--ddk-component-info-card-color-default);
|
|
1212
1216
|
font-family: var(--ddk-component-root-font-family-default);
|
|
1213
1217
|
font-size: var(--ddk-component-info-card-font-size);
|
|
@@ -1225,7 +1229,7 @@
|
|
|
1225
1229
|
line-height: 135%;
|
|
1226
1230
|
`,od=A(Ot)`
|
|
1227
1231
|
justify-content: flex-start;
|
|
1228
|
-
`,rd=({label:t,unavailableText:n,value:o,...
|
|
1232
|
+
`,rd=({label:t,unavailableText:n,value:o,...s})=>{const{componentModeOverride:m}=Ct();return h.jsxs(Ot,{collapse:m==="compact",...s,children:[t,m==="compact"?h.jsx(od,{children:o?h.jsx(Vn,{children:o}):h.jsx(Kn,{children:n})}):o?h.jsx(Vn,{children:o}):h.jsx(Kn,{children:n})]})},ki=t=>{const{t:n}=Nt.useKosTranslation("common");return h.jsx(rd,{unavailableText:n("unavailable"),...t})};var id=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},xi={exports:{}};/*!
|
|
1229
1233
|
*
|
|
1230
1234
|
* react-simple-keyboard v3.6.13
|
|
1231
1235
|
* https://github.com/hodgef/react-simple-keyboard
|
|
@@ -1235,14 +1239,14 @@
|
|
|
1235
1239
|
* This source code is licensed under the MIT license found in the
|
|
1236
1240
|
* LICENSE file in the root directory of this source tree.
|
|
1237
1241
|
*
|
|
1238
|
-
*/(function(t,n){(function(o,a){t.exports=a(et)})(id,function(o){return function(){var a={752: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(C){if("Element"in C){var F="classList",R="prototype",D=C.Element[R],Q=Object,c=String[R].trim||function(){return this.replace(/^\s+|\s+$/g,"")},v=Array[R].indexOf||function(f){for(var p=0,b=this.length;p<b;p++)if(p in this&&this[p]===f)return p;return-1},e=function(f,p){this.name=f,this.code=DOMException[f],this.message=p},r=function(f,p){if(p==="")throw new e("SYNTAX_ERR","The token must not be empty.");if(/\s/.test(p))throw new e("INVALID_CHARACTER_ERR","The token must not contain space characters.");return v.call(f,p)},s=function(f){for(var p=c.call(f.getAttribute("class")||""),b=p?p.split(/\s+/):[],y=0,I=b.length;y<I;y++)this.push(b[y]);this._updateClassName=function(){f.setAttribute("class",this.toString())}},i=s[R]=[],d=function(){return new s(this)};if(e[R]=Error[R],i.item=function(f){return this[f]||null},i.contains=function(f){return~r(this,f+"")},i.add=function(){var f,p=arguments,b=0,y=p.length,I=!1;do~r(this,f=p[b]+"")||(this.push(f),I=!0);while(++b<y);I&&this._updateClassName()},i.remove=function(){var f,p,b=arguments,y=0,I=b.length,S=!1;do for(p=r(this,f=b[y]+"");~p;)this.splice(p,1),S=!0,p=r(this,f);while(++y<I);S&&this._updateClassName()},i.toggle=function(f,p){var b=this.contains(f),y=b?p!==!0&&"remove":p!==!1&&"add";return y&&this[y](f),p===!0||p===!1?p:!b},i.replace=function(f,p){var b=r(f+"");~b&&(this.splice(b,1,p),this._updateClassName())},i.toString=function(){return this.join(" ")},Q.defineProperty){var u={get:d,enumerable:!0,configurable:!0};try{Q.defineProperty(D,F,u)}catch(f){f.number!==void 0&&f.number!==-2146823252||(u.enumerable=!1,Q.defineProperty(D,F,u))}}else Q[R].__defineGetter__&&D.__defineGetter__(F,d)}}(self),function(){var C=document.createElement("_");if(C.classList.add("c1","c2"),!C.classList.contains("c2")){var F=function(D){var Q=DOMTokenList.prototype[D];DOMTokenList.prototype[D]=function(c){var v,e=arguments.length;for(v=0;v<e;v++)c=arguments[v],Q.call(this,c)}};F("add"),F("remove")}if(C.classList.toggle("c3",!1),C.classList.contains("c3")){var R=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(D,Q){return 1 in arguments&&!this.contains(D)==!Q?Q:R.call(this,D)}}"replace"in document.createElement("_").classList||(DOMTokenList.prototype.replace=function(D,Q){var c=this.toString().split(" "),v=c.indexOf(D+"");~v&&(c=c.slice(v),this.remove.apply(this,c),this.add(Q),this.add.apply(this,c.slice(1)))}),C=null}())},86:function(C){C.exports=function(){var F={9662:function(c,v,e){var r=e(614),s=e(6330),i=TypeError;c.exports=function(d){if(r(d))return d;throw i(s(d)+" is not a function")}},9483:function(c,v,e){var r=e(4411),s=e(6330),i=TypeError;c.exports=function(d){if(r(d))return d;throw i(s(d)+" is not a constructor")}},6077:function(c,v,e){var r=e(614),s=String,i=TypeError;c.exports=function(d){if(typeof d=="object"||r(d))return d;throw i("Can't set "+s(d)+" as a prototype")}},1223:function(c,v,e){var r=e(5112),s=e(30),i=e(3070).f,d=r("unscopables"),u=Array.prototype;u[d]==null&&i(u,d,{configurable:!0,value:s(null)}),c.exports=function(f){u[d][f]=!0}},1530:function(c,v,e){var r=e(8710).charAt;c.exports=function(s,i,d){return i+(d?r(s,i).length:1)}},9670:function(c,v,e){var r=e(111),s=String,i=TypeError;c.exports=function(d){if(r(d))return d;throw i(s(d)+" is not an object")}},8533:function(c,v,e){var r=e(2092).forEach,s=e(9341)("forEach");c.exports=s?[].forEach:function(i){return r(this,i,arguments.length>1?arguments[1]:void 0)}},8457:function(c,v,e){var r=e(9974),s=e(6916),i=e(7908),d=e(3411),u=e(7659),f=e(4411),p=e(6244),b=e(6135),y=e(4121),I=e(1246),S=Array;c.exports=function(E){var T=i(E),L=f(this),N=arguments.length,M=N>1?arguments[1]:void 0,P=M!==void 0;P&&(M=r(M,N>2?arguments[2]:void 0));var K,$,X,G,J,Y,rt=I(T),st=0;if(!rt||this===S&&u(rt))for(K=p(T),$=L?new this(K):S(K);K>st;st++)Y=P?M(T[st],st):T[st],b($,st,Y);else for(J=(G=y(T,rt)).next,$=L?new this:[];!(X=s(J,G)).done;st++)Y=P?d(G,M,[X.value,st],!0):X.value,b($,st,Y);return $.length=st,$}},1318:function(c,v,e){var r=e(5656),s=e(1400),i=e(6244),d=function(u){return function(f,p,b){var y,I=r(f),S=i(I),E=s(b,S);if(u&&p!=p){for(;S>E;)if((y=I[E++])!=y)return!0}else for(;S>E;E++)if((u||E in I)&&I[E]===p)return u||E||0;return!u&&-1}};c.exports={includes:d(!0),indexOf:d(!1)}},2092:function(c,v,e){var r=e(9974),s=e(1702),i=e(8361),d=e(7908),u=e(6244),f=e(5417),p=s([].push),b=function(y){var I=y==1,S=y==2,E=y==3,T=y==4,L=y==6,N=y==7,M=y==5||L;return function(P,K,$,X){for(var G,J,Y=d(P),rt=i(Y),st=r(K,$),ct=u(rt),it=0,B=X||f,O=I?B(P,ct):S||N?B(P,0):void 0;ct>it;it++)if((M||it in rt)&&(J=st(G=rt[it],it,Y),y))if(I)O[it]=J;else if(J)switch(y){case 3:return!0;case 5:return G;case 6:return it;case 2:p(O,G)}else switch(y){case 4:return!1;case 7:p(O,G)}return L?-1:E||T?T:O}};c.exports={forEach:b(0),map:b(1),filter:b(2),some:b(3),every:b(4),find:b(5),findIndex:b(6),filterReject:b(7)}},1194:function(c,v,e){var r=e(7293),s=e(5112),i=e(7392),d=s("species");c.exports=function(u){return i>=51||!r(function(){var f=[];return(f.constructor={})[d]=function(){return{foo:1}},f[u](Boolean).foo!==1})}},9341:function(c,v,e){var r=e(7293);c.exports=function(s,i){var d=[][s];return!!d&&r(function(){d.call(null,i||function(){return 1},1)})}},3671:function(c,v,e){var r=e(9662),s=e(7908),i=e(8361),d=e(6244),u=TypeError,f=function(p){return function(b,y,I,S){r(y);var E=s(b),T=i(E),L=d(E),N=p?L-1:0,M=p?-1:1;if(I<2)for(;;){if(N in T){S=T[N],N+=M;break}if(N+=M,p?N<0:L<=N)throw u("Reduce of empty array with no initial value")}for(;p?N>=0:L>N;N+=M)N in T&&(S=y(S,T[N],N,E));return S}};c.exports={left:f(!1),right:f(!0)}},3658:function(c,v,e){var r=e(9781),s=e(3157),i=TypeError,d=Object.getOwnPropertyDescriptor,u=r&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(f){return f instanceof TypeError}}();c.exports=u?function(f,p){if(s(f)&&!d(f,"length").writable)throw i("Cannot set read only .length");return f.length=p}:function(f,p){return f.length=p}},1589:function(c,v,e){var r=e(1400),s=e(6244),i=e(6135),d=Array,u=Math.max;c.exports=function(f,p,b){for(var y=s(f),I=r(p,y),S=r(b===void 0?y:b,y),E=d(u(S-I,0)),T=0;I<S;I++,T++)i(E,T,f[I]);return E.length=T,E}},206:function(c,v,e){var r=e(1702);c.exports=r([].slice)},4362:function(c,v,e){var r=e(1589),s=Math.floor,i=function(f,p){var b=f.length,y=s(b/2);return b<8?d(f,p):u(f,i(r(f,0,y),p),i(r(f,y),p),p)},d=function(f,p){for(var b,y,I=f.length,S=1;S<I;){for(y=S,b=f[S];y&&p(f[y-1],b)>0;)f[y]=f[--y];y!==S++&&(f[y]=b)}return f},u=function(f,p,b,y){for(var I=p.length,S=b.length,E=0,T=0;E<I||T<S;)f[E+T]=E<I&&T<S?y(p[E],b[T])<=0?p[E++]:b[T++]:E<I?p[E++]:b[T++];return f};c.exports=i},7475:function(c,v,e){var r=e(3157),s=e(4411),i=e(111),d=e(5112)("species"),u=Array;c.exports=function(f){var p;return r(f)&&(p=f.constructor,(s(p)&&(p===u||r(p.prototype))||i(p)&&(p=p[d])===null)&&(p=void 0)),p===void 0?u:p}},5417:function(c,v,e){var r=e(7475);c.exports=function(s,i){return new(r(s))(i===0?0:i)}},3411:function(c,v,e){var r=e(9670),s=e(9212);c.exports=function(i,d,u,f){try{return f?d(r(u)[0],u[1]):d(u)}catch(p){s(i,"throw",p)}}},7072:function(c,v,e){var r=e(5112)("iterator"),s=!1;try{var i=0,d={next:function(){return{done:!!i++}},return:function(){s=!0}};d[r]=function(){return this},Array.from(d,function(){throw 2})}catch{}c.exports=function(u,f){if(!f&&!s)return!1;var p=!1;try{var b={};b[r]=function(){return{next:function(){return{done:p=!0}}}},u(b)}catch{}return p}},4326:function(c,v,e){var r=e(1702),s=r({}.toString),i=r("".slice);c.exports=function(d){return i(s(d),8,-1)}},648:function(c,v,e){var r=e(1694),s=e(614),i=e(4326),d=e(5112)("toStringTag"),u=Object,f=i(function(){return arguments}())=="Arguments";c.exports=r?i:function(p){var b,y,I;return p===void 0?"Undefined":p===null?"Null":typeof(y=function(S,E){try{return S[E]}catch{}}(b=u(p),d))=="string"?y:f?i(b):(I=i(b))=="Object"&&s(b.callee)?"Arguments":I}},9920:function(c,v,e){var r=e(2597),s=e(3887),i=e(1236),d=e(3070);c.exports=function(u,f,p){for(var b=s(f),y=d.f,I=i.f,S=0;S<b.length;S++){var E=b[S];r(u,E)||p&&r(p,E)||y(u,E,I(f,E))}}},4964:function(c,v,e){var r=e(5112)("match");c.exports=function(s){var i=/./;try{"/./"[s](i)}catch{try{return i[r]=!1,"/./"[s](i)}catch{}}return!1}},8544:function(c,v,e){var r=e(7293);c.exports=!r(function(){function s(){}return s.prototype.constructor=null,Object.getPrototypeOf(new s)!==s.prototype})},6178:function(c){c.exports=function(v,e){return{value:v,done:e}}},8880:function(c,v,e){var r=e(9781),s=e(3070),i=e(9114);c.exports=r?function(d,u,f){return s.f(d,u,i(1,f))}:function(d,u,f){return d[u]=f,d}},9114:function(c){c.exports=function(v,e){return{enumerable:!(1&v),configurable:!(2&v),writable:!(4&v),value:e}}},6135:function(c,v,e){var r=e(4948),s=e(3070),i=e(9114);c.exports=function(d,u,f){var p=r(u);p in d?s.f(d,p,i(0,f)):d[p]=f}},8709:function(c,v,e){var r=e(9670),s=e(2140),i=TypeError;c.exports=function(d){if(r(this),d==="string"||d==="default")d="string";else if(d!=="number")throw i("Incorrect hint");return s(this,d)}},7045:function(c,v,e){var r=e(6339),s=e(3070);c.exports=function(i,d,u){return u.get&&r(u.get,d,{getter:!0}),u.set&&r(u.set,d,{setter:!0}),s.f(i,d,u)}},8052:function(c,v,e){var r=e(614),s=e(3070),i=e(6339),d=e(3072);c.exports=function(u,f,p,b){b||(b={});var y=b.enumerable,I=b.name!==void 0?b.name:f;if(r(p)&&i(p,I,b),b.global)y?u[f]=p:d(f,p);else{try{b.unsafe?u[f]&&(y=!0):delete u[f]}catch{}y?u[f]=p:s.f(u,f,{value:p,enumerable:!1,configurable:!b.nonConfigurable,writable:!b.nonWritable})}return u}},3072:function(c,v,e){var r=e(7854),s=Object.defineProperty;c.exports=function(i,d){try{s(r,i,{value:d,configurable:!0,writable:!0})}catch{r[i]=d}return d}},5117:function(c,v,e){var r=e(6330),s=TypeError;c.exports=function(i,d){if(!delete i[d])throw s("Cannot delete property "+r(d)+" of "+r(i))}},9781:function(c,v,e){var r=e(7293);c.exports=!r(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},4154:function(c){var v=typeof document=="object"&&document.all,e=v===void 0&&v!==void 0;c.exports={all:v,IS_HTMLDDA:e}},317:function(c,v,e){var r=e(7854),s=e(111),i=r.document,d=s(i)&&s(i.createElement);c.exports=function(u){return d?i.createElement(u):{}}},7207:function(c){var v=TypeError;c.exports=function(e){if(e>9007199254740991)throw v("Maximum allowed index exceeded");return e}},8324:function(c){c.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}},8509:function(c,v,e){var r=e(317)("span").classList,s=r&&r.constructor&&r.constructor.prototype;c.exports=s===Object.prototype?void 0:s},8886:function(c,v,e){var r=e(8113).match(/firefox\/(\d+)/i);c.exports=!!r&&+r[1]},256:function(c,v,e){var r=e(8113);c.exports=/MSIE|Trident/.test(r)},5268:function(c,v,e){var r=e(4326);c.exports=typeof process<"u"&&r(process)=="process"},8113:function(c){c.exports=typeof navigator<"u"&&String(navigator.userAgent)||""},7392:function(c,v,e){var r,s,i=e(7854),d=e(8113),u=i.process,f=i.Deno,p=u&&u.versions||f&&f.version,b=p&&p.v8;b&&(s=(r=b.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!s&&d&&(!(r=d.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=d.match(/Chrome\/(\d+)/))&&(s=+r[1]),c.exports=s},8008:function(c,v,e){var r=e(8113).match(/AppleWebKit\/(\d+)\./);c.exports=!!r&&+r[1]},748:function(c){c.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(c,v,e){var r=e(7854),s=e(1236).f,i=e(8880),d=e(8052),u=e(3072),f=e(9920),p=e(4705);c.exports=function(b,y){var I,S,E,T,L,N=b.target,M=b.global,P=b.stat;if(I=M?r:P?r[N]||u(N,{}):(r[N]||{}).prototype)for(S in y){if(T=y[S],E=b.dontCallGetSet?(L=s(I,S))&&L.value:I[S],!p(M?S:N+(P?".":"#")+S,b.forced)&&E!==void 0){if(typeof T==typeof E)continue;f(T,E)}(b.sham||E&&E.sham)&&i(T,"sham",!0),d(I,S,T,b)}}},7293:function(c){c.exports=function(v){try{return!!v()}catch{return!0}}},7007:function(c,v,e){e(4916);var r=e(1470),s=e(8052),i=e(2261),d=e(7293),u=e(5112),f=e(8880),p=u("species"),b=RegExp.prototype;c.exports=function(y,I,S,E){var T=u(y),L=!d(function(){var K={};return K[T]=function(){return 7},""[y](K)!=7}),N=L&&!d(function(){var K=!1,$=/a/;return y==="split"&&(($={}).constructor={},$.constructor[p]=function(){return $},$.flags="",$[T]=/./[T]),$.exec=function(){return K=!0,null},$[T](""),!K});if(!L||!N||S){var M=r(/./[T]),P=I(T,""[y],function(K,$,X,G,J){var Y=r(K),rt=$.exec;return rt===i||rt===b.exec?L&&!J?{done:!0,value:M($,X,G)}:{done:!0,value:Y(X,$,G)}:{done:!1}});s(String.prototype,y,P[0]),s(b,T,P[1])}E&&f(b[T],"sham",!0)}},2104:function(c,v,e){var r=e(4374),s=Function.prototype,i=s.apply,d=s.call;c.exports=typeof Reflect=="object"&&Reflect.apply||(r?d.bind(i):function(){return d.apply(i,arguments)})},9974:function(c,v,e){var r=e(1470),s=e(9662),i=e(4374),d=r(r.bind);c.exports=function(u,f){return s(u),f===void 0?u:i?d(u,f):function(){return u.apply(f,arguments)}}},4374:function(c,v,e){var r=e(7293);c.exports=!r(function(){var s=(function(){}).bind();return typeof s!="function"||s.hasOwnProperty("prototype")})},6916:function(c,v,e){var r=e(4374),s=Function.prototype.call;c.exports=r?s.bind(s):function(){return s.apply(s,arguments)}},6530:function(c,v,e){var r=e(9781),s=e(2597),i=Function.prototype,d=r&&Object.getOwnPropertyDescriptor,u=s(i,"name"),f=u&&(function(){}).name==="something",p=u&&(!r||r&&d(i,"name").configurable);c.exports={EXISTS:u,PROPER:f,CONFIGURABLE:p}},5668:function(c,v,e){var r=e(1702),s=e(9662);c.exports=function(i,d,u){try{return r(s(Object.getOwnPropertyDescriptor(i,d)[u]))}catch{}}},1470:function(c,v,e){var r=e(4326),s=e(1702);c.exports=function(i){if(r(i)==="Function")return s(i)}},1702:function(c,v,e){var r=e(4374),s=Function.prototype,i=s.call,d=r&&s.bind.bind(i,i);c.exports=r?d:function(u){return function(){return i.apply(u,arguments)}}},5005:function(c,v,e){var r=e(7854),s=e(614);c.exports=function(i,d){return arguments.length<2?(u=r[i],s(u)?u:void 0):r[i]&&r[i][d];var u}},1246:function(c,v,e){var r=e(648),s=e(8173),i=e(8554),d=e(7497),u=e(5112)("iterator");c.exports=function(f){if(!i(f))return s(f,u)||s(f,"@@iterator")||d[r(f)]}},4121:function(c,v,e){var r=e(6916),s=e(9662),i=e(9670),d=e(6330),u=e(1246),f=TypeError;c.exports=function(p,b){var y=arguments.length<2?u(p):b;if(s(y))return i(r(y,p));throw f(d(p)+" is not iterable")}},8044:function(c,v,e){var r=e(1702),s=e(3157),i=e(614),d=e(4326),u=e(1340),f=r([].push);c.exports=function(p){if(i(p))return p;if(s(p)){for(var b=p.length,y=[],I=0;I<b;I++){var S=p[I];typeof S=="string"?f(y,S):typeof S!="number"&&d(S)!="Number"&&d(S)!="String"||f(y,u(S))}var E=y.length,T=!0;return function(L,N){if(T)return T=!1,N;if(s(this))return N;for(var M=0;M<E;M++)if(y[M]===L)return N}}}},8173:function(c,v,e){var r=e(9662),s=e(8554);c.exports=function(i,d){var u=i[d];return s(u)?void 0:r(u)}},647:function(c,v,e){var r=e(1702),s=e(7908),i=Math.floor,d=r("".charAt),u=r("".replace),f=r("".slice),p=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,b=/\$([$&'`]|\d{1,2})/g;c.exports=function(y,I,S,E,T,L){var N=S+y.length,M=E.length,P=b;return T!==void 0&&(T=s(T),P=p),u(L,P,function(K,$){var X;switch(d($,0)){case"$":return"$";case"&":return y;case"`":return f(I,0,S);case"'":return f(I,N);case"<":X=T[f($,1,-1)];break;default:var G=+$;if(G===0)return K;if(G>M){var J=i(G/10);return J===0?K:J<=M?E[J-1]===void 0?d($,1):E[J-1]+d($,1):K}X=E[G-1]}return X===void 0?"":X})}},7854:function(c,v,e){var r=function(s){return s&&s.Math==Math&&s};c.exports=r(typeof globalThis=="object"&&globalThis)||r(typeof window=="object"&&window)||r(typeof self=="object"&&self)||r(typeof e.g=="object"&&e.g)||function(){return this}()||this||Function("return this")()},2597:function(c,v,e){var r=e(1702),s=e(7908),i=r({}.hasOwnProperty);c.exports=Object.hasOwn||function(d,u){return i(s(d),u)}},3501:function(c){c.exports={}},490:function(c,v,e){var r=e(5005);c.exports=r("document","documentElement")},4664:function(c,v,e){var r=e(9781),s=e(7293),i=e(317);c.exports=!r&&!s(function(){return Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a!=7})},8361:function(c,v,e){var r=e(1702),s=e(7293),i=e(4326),d=Object,u=r("".split);c.exports=s(function(){return!d("z").propertyIsEnumerable(0)})?function(f){return i(f)=="String"?u(f,""):d(f)}:d},9587:function(c,v,e){var r=e(614),s=e(111),i=e(7674);c.exports=function(d,u,f){var p,b;return i&&r(p=u.constructor)&&p!==f&&s(b=p.prototype)&&b!==f.prototype&&i(d,b),d}},2788:function(c,v,e){var r=e(1702),s=e(614),i=e(5465),d=r(Function.toString);s(i.inspectSource)||(i.inspectSource=function(u){return d(u)}),c.exports=i.inspectSource},9909:function(c,v,e){var r,s,i,d=e(4811),u=e(7854),f=e(111),p=e(8880),b=e(2597),y=e(5465),I=e(6200),S=e(3501),E="Object already initialized",T=u.TypeError,L=u.WeakMap;if(d||y.state){var N=y.state||(y.state=new L);N.get=N.get,N.has=N.has,N.set=N.set,r=function(P,K){if(N.has(P))throw T(E);return K.facade=P,N.set(P,K),K},s=function(P){return N.get(P)||{}},i=function(P){return N.has(P)}}else{var M=I("state");S[M]=!0,r=function(P,K){if(b(P,M))throw T(E);return K.facade=P,p(P,M,K),K},s=function(P){return b(P,M)?P[M]:{}},i=function(P){return b(P,M)}}c.exports={set:r,get:s,has:i,enforce:function(P){return i(P)?s(P):r(P,{})},getterFor:function(P){return function(K){var $;if(!f(K)||($=s(K)).type!==P)throw T("Incompatible receiver, "+P+" required");return $}}}},7659:function(c,v,e){var r=e(5112),s=e(7497),i=r("iterator"),d=Array.prototype;c.exports=function(u){return u!==void 0&&(s.Array===u||d[i]===u)}},3157:function(c,v,e){var r=e(4326);c.exports=Array.isArray||function(s){return r(s)=="Array"}},614:function(c,v,e){var r=e(4154),s=r.all;c.exports=r.IS_HTMLDDA?function(i){return typeof i=="function"||i===s}:function(i){return typeof i=="function"}},4411:function(c,v,e){var r=e(1702),s=e(7293),i=e(614),d=e(648),u=e(5005),f=e(2788),p=function(){},b=[],y=u("Reflect","construct"),I=/^\s*(?:class|function)\b/,S=r(I.exec),E=!I.exec(p),T=function(N){if(!i(N))return!1;try{return y(p,b,N),!0}catch{return!1}},L=function(N){if(!i(N))return!1;switch(d(N)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return E||!!S(I,f(N))}catch{return!0}};L.sham=!0,c.exports=!y||s(function(){var N;return T(T.call)||!T(Object)||!T(function(){N=!0})||N})?L:T},4705:function(c,v,e){var r=e(7293),s=e(614),i=/#|\.prototype\./,d=function(y,I){var S=f[u(y)];return S==b||S!=p&&(s(I)?r(I):!!I)},u=d.normalize=function(y){return String(y).replace(i,".").toLowerCase()},f=d.data={},p=d.NATIVE="N",b=d.POLYFILL="P";c.exports=d},5988:function(c,v,e){var r=e(111),s=Math.floor;c.exports=Number.isInteger||function(i){return!r(i)&&isFinite(i)&&s(i)===i}},8554:function(c){c.exports=function(v){return v==null}},111:function(c,v,e){var r=e(614),s=e(4154),i=s.all;c.exports=s.IS_HTMLDDA?function(d){return typeof d=="object"?d!==null:r(d)||d===i}:function(d){return typeof d=="object"?d!==null:r(d)}},1913:function(c){c.exports=!1},7850:function(c,v,e){var r=e(111),s=e(4326),i=e(5112)("match");c.exports=function(d){var u;return r(d)&&((u=d[i])!==void 0?!!u:s(d)=="RegExp")}},2190:function(c,v,e){var r=e(5005),s=e(614),i=e(7976),d=e(3307),u=Object;c.exports=d?function(f){return typeof f=="symbol"}:function(f){var p=r("Symbol");return s(p)&&i(p.prototype,u(f))}},9212:function(c,v,e){var r=e(6916),s=e(9670),i=e(8173);c.exports=function(d,u,f){var p,b;s(d);try{if(!(p=i(d,"return"))){if(u==="throw")throw f;return f}p=r(p,d)}catch(y){b=!0,p=y}if(u==="throw")throw f;if(b)throw p;return s(p),f}},3061:function(c,v,e){var r=e(3383).IteratorPrototype,s=e(30),i=e(9114),d=e(8003),u=e(7497),f=function(){return this};c.exports=function(p,b,y,I){var S=b+" Iterator";return p.prototype=s(r,{next:i(+!I,y)}),d(p,S,!1,!0),u[S]=f,p}},1656:function(c,v,e){var r=e(2109),s=e(6916),i=e(1913),d=e(6530),u=e(614),f=e(3061),p=e(9518),b=e(7674),y=e(8003),I=e(8880),S=e(8052),E=e(5112),T=e(7497),L=e(3383),N=d.PROPER,M=d.CONFIGURABLE,P=L.IteratorPrototype,K=L.BUGGY_SAFARI_ITERATORS,$=E("iterator"),X="keys",G="values",J="entries",Y=function(){return this};c.exports=function(rt,st,ct,it,B,O,z){f(ct,st,it);var l,g,w,x=function(q){if(q===B&&H)return H;if(!K&&q in V)return V[q];switch(q){case X:case G:case J:return function(){return new ct(this,q)}}return function(){return new ct(this)}},_=st+" Iterator",W=!1,V=rt.prototype,U=V[$]||V["@@iterator"]||B&&V[B],H=!K&&U||x(B),ot=st=="Array"&&V.entries||U;if(ot&&(l=p(ot.call(new rt)))!==Object.prototype&&l.next&&(i||p(l)===P||(b?b(l,P):u(l[$])||S(l,$,Y)),y(l,_,!0,!0),i&&(T[_]=Y)),N&&B==G&&U&&U.name!==G&&(!i&&M?I(V,"name",G):(W=!0,H=function(){return s(U,this)})),B)if(g={values:x(G),keys:O?H:x(X),entries:x(J)},z)for(w in g)(K||W||!(w in V))&&S(V,w,g[w]);else r({target:st,proto:!0,forced:K||W},g);return i&&!z||V[$]===H||S(V,$,H,{name:B}),T[st]=H,g}},3383:function(c,v,e){var r,s,i,d=e(7293),u=e(614),f=e(111),p=e(30),b=e(9518),y=e(8052),I=e(5112),S=e(1913),E=I("iterator"),T=!1;[].keys&&("next"in(i=[].keys())?(s=b(b(i)))!==Object.prototype&&(r=s):T=!0),!f(r)||d(function(){var L={};return r[E].call(L)!==L})?r={}:S&&(r=p(r)),u(r[E])||y(r,E,function(){return this}),c.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:T}},7497:function(c){c.exports={}},6244:function(c,v,e){var r=e(7466);c.exports=function(s){return r(s.length)}},6339:function(c,v,e){var r=e(1702),s=e(7293),i=e(614),d=e(2597),u=e(9781),f=e(6530).CONFIGURABLE,p=e(2788),b=e(9909),y=b.enforce,I=b.get,S=String,E=Object.defineProperty,T=r("".slice),L=r("".replace),N=r([].join),M=u&&!s(function(){return E(function(){},"length",{value:8}).length!==8}),P=String(String).split("String"),K=c.exports=function($,X,G){T(S(X),0,7)==="Symbol("&&(X="["+L(S(X),/^Symbol\(([^)]*)\)/,"$1")+"]"),G&&G.getter&&(X="get "+X),G&&G.setter&&(X="set "+X),(!d($,"name")||f&&$.name!==X)&&(u?E($,"name",{value:X,configurable:!0}):$.name=X),M&&G&&d(G,"arity")&&$.length!==G.arity&&E($,"length",{value:G.arity});try{G&&d(G,"constructor")&&G.constructor?u&&E($,"prototype",{writable:!1}):$.prototype&&($.prototype=void 0)}catch{}var J=y($);return d(J,"source")||(J.source=N(P,typeof X=="string"?X:"")),$};Function.prototype.toString=K(function(){return i(this)&&I(this).source||p(this)},"toString")},4758:function(c){var v=Math.ceil,e=Math.floor;c.exports=Math.trunc||function(r){var s=+r;return(s>0?e:v)(s)}},3929:function(c,v,e){var r=e(7850),s=TypeError;c.exports=function(i){if(r(i))throw s("The method doesn't accept regular expressions");return i}},1574:function(c,v,e){var r=e(9781),s=e(1702),i=e(6916),d=e(7293),u=e(1956),f=e(5181),p=e(5296),b=e(7908),y=e(8361),I=Object.assign,S=Object.defineProperty,E=s([].concat);c.exports=!I||d(function(){if(r&&I({b:1},I(S({},"a",{enumerable:!0,get:function(){S(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var T={},L={},N=Symbol(),M="abcdefghijklmnopqrst";return T[N]=7,M.split("").forEach(function(P){L[P]=P}),I({},T)[N]!=7||u(I({},L)).join("")!=M})?function(T,L){for(var N=b(T),M=arguments.length,P=1,K=f.f,$=p.f;M>P;)for(var X,G=y(arguments[P++]),J=K?E(u(G),K(G)):u(G),Y=J.length,rt=0;Y>rt;)X=J[rt++],r&&!i($,G,X)||(N[X]=G[X]);return N}:I},30:function(c,v,e){var r,s=e(9670),i=e(6048),d=e(748),u=e(3501),f=e(490),p=e(317),b=e(6200),y="prototype",I="script",S=b("IE_PROTO"),E=function(){},T=function(M){return"<"+I+">"+M+"</"+I+">"},L=function(M){M.write(T("")),M.close();var P=M.parentWindow.Object;return M=null,P},N=function(){try{r=new ActiveXObject("htmlfile")}catch{}var M,P,K;N=typeof document<"u"?document.domain&&r?L(r):(P=p("iframe"),K="java"+I+":",P.style.display="none",f.appendChild(P),P.src=String(K),(M=P.contentWindow.document).open(),M.write(T("document.F=Object")),M.close(),M.F):L(r);for(var $=d.length;$--;)delete N[y][d[$]];return N()};u[S]=!0,c.exports=Object.create||function(M,P){var K;return M!==null?(E[y]=s(M),K=new E,E[y]=null,K[S]=M):K=N(),P===void 0?K:i.f(K,P)}},6048:function(c,v,e){var r=e(9781),s=e(3353),i=e(3070),d=e(9670),u=e(5656),f=e(1956);v.f=r&&!s?Object.defineProperties:function(p,b){d(p);for(var y,I=u(b),S=f(b),E=S.length,T=0;E>T;)i.f(p,y=S[T++],I[y]);return p}},3070:function(c,v,e){var r=e(9781),s=e(4664),i=e(3353),d=e(9670),u=e(4948),f=TypeError,p=Object.defineProperty,b=Object.getOwnPropertyDescriptor,y="enumerable",I="configurable",S="writable";v.f=r?i?function(E,T,L){if(d(E),T=u(T),d(L),typeof E=="function"&&T==="prototype"&&"value"in L&&S in L&&!L[S]){var N=b(E,T);N&&N[S]&&(E[T]=L.value,L={configurable:I in L?L[I]:N[I],enumerable:y in L?L[y]:N[y],writable:!1})}return p(E,T,L)}:p:function(E,T,L){if(d(E),T=u(T),d(L),s)try{return p(E,T,L)}catch{}if("get"in L||"set"in L)throw f("Accessors not supported");return"value"in L&&(E[T]=L.value),E}},1236:function(c,v,e){var r=e(9781),s=e(6916),i=e(5296),d=e(9114),u=e(5656),f=e(4948),p=e(2597),b=e(4664),y=Object.getOwnPropertyDescriptor;v.f=r?y:function(I,S){if(I=u(I),S=f(S),b)try{return y(I,S)}catch{}if(p(I,S))return d(!s(i.f,I,S),I[S])}},1156:function(c,v,e){var r=e(4326),s=e(5656),i=e(8006).f,d=e(1589),u=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];c.exports.f=function(f){return u&&r(f)=="Window"?function(p){try{return i(p)}catch{return d(u)}}(f):i(s(f))}},8006:function(c,v,e){var r=e(6324),s=e(748).concat("length","prototype");v.f=Object.getOwnPropertyNames||function(i){return r(i,s)}},5181:function(c,v){v.f=Object.getOwnPropertySymbols},9518:function(c,v,e){var r=e(2597),s=e(614),i=e(7908),d=e(6200),u=e(8544),f=d("IE_PROTO"),p=Object,b=p.prototype;c.exports=u?p.getPrototypeOf:function(y){var I=i(y);if(r(I,f))return I[f];var S=I.constructor;return s(S)&&I instanceof S?S.prototype:I instanceof p?b:null}},7976:function(c,v,e){var r=e(1702);c.exports=r({}.isPrototypeOf)},6324:function(c,v,e){var r=e(1702),s=e(2597),i=e(5656),d=e(1318).indexOf,u=e(3501),f=r([].push);c.exports=function(p,b){var y,I=i(p),S=0,E=[];for(y in I)!s(u,y)&&s(I,y)&&f(E,y);for(;b.length>S;)s(I,y=b[S++])&&(~d(E,y)||f(E,y));return E}},1956:function(c,v,e){var r=e(6324),s=e(748);c.exports=Object.keys||function(i){return r(i,s)}},5296:function(c,v){var e={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,s=r&&!e.call({1:2},1);v.f=s?function(i){var d=r(this,i);return!!d&&d.enumerable}:e},9026:function(c,v,e){var r=e(1913),s=e(7854),i=e(7293),d=e(8008);c.exports=r||!i(function(){if(!(d&&d<535)){var u=Math.random();__defineSetter__.call(null,u,function(){}),delete s[u]}})},7674:function(c,v,e){var r=e(5668),s=e(9670),i=e(6077);c.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var d,u=!1,f={};try{(d=r(Object.prototype,"__proto__","set"))(f,[]),u=f instanceof Array}catch{}return function(p,b){return s(p),i(b),u?d(p,b):p.__proto__=b,p}}():void 0)},288:function(c,v,e){var r=e(1694),s=e(648);c.exports=r?{}.toString:function(){return"[object "+s(this)+"]"}},2140:function(c,v,e){var r=e(6916),s=e(614),i=e(111),d=TypeError;c.exports=function(u,f){var p,b;if(f==="string"&&s(p=u.toString)&&!i(b=r(p,u))||s(p=u.valueOf)&&!i(b=r(p,u))||f!=="string"&&s(p=u.toString)&&!i(b=r(p,u)))return b;throw d("Can't convert object to primitive value")}},3887:function(c,v,e){var r=e(5005),s=e(1702),i=e(8006),d=e(5181),u=e(9670),f=s([].concat);c.exports=r("Reflect","ownKeys")||function(p){var b=i.f(u(p)),y=d.f;return y?f(b,y(p)):b}},857:function(c,v,e){var r=e(7854);c.exports=r},2626:function(c,v,e){var r=e(3070).f;c.exports=function(s,i,d){d in s||r(s,d,{configurable:!0,get:function(){return i[d]},set:function(u){i[d]=u}})}},7651:function(c,v,e){var r=e(6916),s=e(9670),i=e(614),d=e(4326),u=e(2261),f=TypeError;c.exports=function(p,b){var y=p.exec;if(i(y)){var I=r(y,p,b);return I!==null&&s(I),I}if(d(p)==="RegExp")return r(u,p,b);throw f("RegExp#exec called on incompatible receiver")}},2261:function(c,v,e){var r,s,i=e(6916),d=e(1702),u=e(1340),f=e(7066),p=e(2999),b=e(2309),y=e(30),I=e(9909).get,S=e(9441),E=e(7168),T=b("native-string-replace",String.prototype.replace),L=RegExp.prototype.exec,N=L,M=d("".charAt),P=d("".indexOf),K=d("".replace),$=d("".slice),X=(s=/b*/g,i(L,r=/a/,"a"),i(L,s,"a"),r.lastIndex!==0||s.lastIndex!==0),G=p.BROKEN_CARET,J=/()??/.exec("")[1]!==void 0;(X||J||G||S||E)&&(N=function(Y){var rt,st,ct,it,B,O,z,l=this,g=I(l),w=u(Y),x=g.raw;if(x)return x.lastIndex=l.lastIndex,rt=i(N,x,w),l.lastIndex=x.lastIndex,rt;var _=g.groups,W=G&&l.sticky,V=i(f,l),U=l.source,H=0,ot=w;if(W&&(V=K(V,"y",""),P(V,"g")===-1&&(V+="g"),ot=$(w,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&M(w,l.lastIndex-1)!==`
|
|
1239
|
-
`)&&(U="(?: "+U+")",ot=" "+ot,H++),st=new RegExp("^(?:"+U+")",V)),J&&(st=new RegExp("^"+U+"$(?!\\s)",V)),X&&(ct=l.lastIndex),it=i(L,W?st:l,ot),W?it?(it.input=$(it.input,H),it[0]=$(it[0],H),it.index=l.lastIndex,l.lastIndex+=it[0].length):l.lastIndex=0:X&&it&&(l.lastIndex=l.global?it.index+it[0].length:ct),J&&it&&it.length>1&&i(T,it[0],st,function(){for(B=1;B<arguments.length-2;B++)arguments[B]===void 0&&(it[B]=void 0)}),it&&_)for(it.groups=O=y(null),B=0;B<_.length;B++)O[(z=_[B])[0]]=it[z[1]];return it}),c.exports=N},7066:function(c,v,e){var r=e(9670);c.exports=function(){var
|
|
1240
|
-
`)&&i.flags==="s")})},7168:function(c,v,e){var r=e(7293),
|
|
1241
|
-
\v\f\r \u2028\u2029\uFEFF`},2222:function(c,v,e){var r=e(2109),s=e(7293),i=e(3157),d=e(111),u=e(7908),f=e(6244),p=e(7207),b=e(6135),y=e(5417),I=e(1194),S=e(5112),E=e(7392),T=S("isConcatSpreadable"),L=E>=51||!s(function(){var M=[];return M[T]=!1,M.concat()[0]!==M}),N=function(M){if(!d(M))return!1;var P=M[T];return P!==void 0?!!P:i(M)};r({target:"Array",proto:!0,arity:1,forced:!L||!I("concat")},{concat:function(M){var P,K,$,X,G,J=u(this),Y=y(J,0),rt=0;for(P=-1,$=arguments.length;P<$;P++)if(N(G=P===-1?J:arguments[P]))for(X=f(G),p(rt+X),K=0;K<X;K++,rt++)K in G&&b(Y,rt,G[K]);else p(rt+1),b(Y,rt++,G);return Y.length=rt,Y}})},7327:function(c,v,e){var r=e(2109),s=e(2092).filter;r({target:"Array",proto:!0,forced:!e(1194)("filter")},{filter:function(i){return s(this,i,arguments.length>1?arguments[1]:void 0)}})},1038:function(c,v,e){var r=e(2109),s=e(8457);r({target:"Array",stat:!0,forced:!e(7072)(function(i){Array.from(i)})},{from:s})},6699:function(c,v,e){var r=e(2109),s=e(1318).includes,i=e(7293),d=e(1223);r({target:"Array",proto:!0,forced:i(function(){return!Array(1).includes()})},{includes:function(u){return s(this,u,arguments.length>1?arguments[1]:void 0)}}),d("includes")},2772:function(c,v,e){var r=e(2109),s=e(1470),i=e(1318).indexOf,d=e(9341),u=s([].indexOf),f=!!u&&1/u([1],1,-0)<0;r({target:"Array",proto:!0,forced:f||!d("indexOf")},{indexOf:function(p){var b=arguments.length>1?arguments[1]:void 0;return f?u(this,p,b)||0:i(this,p,b)}})},6992:function(c,v,e){var r=e(5656),s=e(1223),i=e(7497),d=e(9909),u=e(3070).f,f=e(1656),p=e(6178),b=e(1913),y=e(9781),I="Array Iterator",S=d.set,E=d.getterFor(I);c.exports=f(Array,"Array",function(L,N){S(this,{type:I,target:r(L),index:0,kind:N})},function(){var L=E(this),N=L.target,M=L.kind,P=L.index++;return!N||P>=N.length?(L.target=void 0,p(void 0,!0)):p(M=="keys"?P:M=="values"?N[P]:[P,N[P]],!1)},"values");var T=i.Arguments=i.Array;if(s("keys"),s("values"),s("entries"),!b&&y&&T.name!=="values")try{u(T,"name",{value:"values"})}catch{}},9600:function(c,v,e){var r=e(2109),s=e(1702),i=e(8361),d=e(5656),u=e(9341),f=s([].join);r({target:"Array",proto:!0,forced:i!=Object||!u("join",",")},{join:function(p){return f(d(this),p===void 0?",":p)}})},1249:function(c,v,e){var r=e(2109),s=e(2092).map;r({target:"Array",proto:!0,forced:!e(1194)("map")},{map:function(i){return s(this,i,arguments.length>1?arguments[1]:void 0)}})},5827:function(c,v,e){var r=e(2109),s=e(3671).left,i=e(9341),d=e(7392);r({target:"Array",proto:!0,forced:!e(5268)&&d>79&&d<83||!i("reduce")},{reduce:function(u){var f=arguments.length;return s(this,u,f,f>1?arguments[1]:void 0)}})},7042:function(c,v,e){var r=e(2109),s=e(3157),i=e(4411),d=e(111),u=e(1400),f=e(6244),p=e(5656),b=e(6135),y=e(5112),I=e(1194),S=e(206),E=I("slice"),T=y("species"),L=Array,N=Math.max;r({target:"Array",proto:!0,forced:!E},{slice:function(M,P){var K,$,X,G=p(this),J=f(G),Y=u(M,J),rt=u(P===void 0?J:P,J);if(s(G)&&(K=G.constructor,(i(K)&&(K===L||s(K.prototype))||d(K)&&(K=K[T])===null)&&(K=void 0),K===L||K===void 0))return S(G,Y,rt);for($=new(K===void 0?L:K)(N(rt-Y,0)),X=0;Y<rt;Y++,X++)Y in G&&b($,X,G[Y]);return $.length=X,$}})},2707:function(c,v,e){var r=e(2109),s=e(1702),i=e(9662),d=e(7908),u=e(6244),f=e(5117),p=e(1340),b=e(7293),y=e(4362),I=e(9341),S=e(8886),E=e(256),T=e(7392),L=e(8008),N=[],M=s(N.sort),P=s(N.push),K=b(function(){N.sort(void 0)}),$=b(function(){N.sort(null)}),X=I("sort"),G=!b(function(){if(T)return T<70;if(!(S&&S>3)){if(E)return!0;if(L)return L<603;var J,Y,rt,st,ct="";for(J=65;J<76;J++){switch(Y=String.fromCharCode(J),J){case 66:case 69:case 70:case 72:rt=3;break;case 68:case 71:rt=4;break;default:rt=2}for(st=0;st<47;st++)N.push({k:Y+st,v:rt})}for(N.sort(function(it,B){return B.v-it.v}),st=0;st<N.length;st++)Y=N[st].k.charAt(0),ct.charAt(ct.length-1)!==Y&&(ct+=Y);return ct!=="DGBEFHACIJK"}});r({target:"Array",proto:!0,forced:K||!$||!X||!G},{sort:function(J){J!==void 0&&i(J);var Y=d(this);if(G)return J===void 0?M(Y):M(Y,J);var rt,st,ct=[],it=u(Y);for(st=0;st<it;st++)st in Y&&P(ct,Y[st]);for(y(ct,function(B){return function(O,z){return z===void 0?-1:O===void 0?1:B!==void 0?+B(O,z)||0:p(O)>p(z)?1:-1}}(J)),rt=u(ct),st=0;st<rt;)Y[st]=ct[st++];for(;st<it;)f(Y,st++);return Y}})},561:function(c,v,e){var r=e(2109),s=e(7908),i=e(1400),d=e(9303),u=e(6244),f=e(3658),p=e(7207),b=e(5417),y=e(6135),I=e(5117),S=e(1194)("splice"),E=Math.max,T=Math.min;r({target:"Array",proto:!0,forced:!S},{splice:function(L,N){var M,P,K,$,X,G,J=s(this),Y=u(J),rt=i(L,Y),st=arguments.length;for(st===0?M=P=0:st===1?(M=0,P=Y-rt):(M=st-2,P=T(E(d(N),0),Y-rt)),p(Y+M-P),K=b(J,P),$=0;$<P;$++)(X=rt+$)in J&&y(K,$,J[X]);if(K.length=P,M<P){for($=rt;$<Y-P;$++)G=$+M,(X=$+P)in J?J[G]=J[X]:I(J,G);for($=Y;$>Y-P+M;$--)I(J,$-1)}else if(M>P)for($=Y-P;$>rt;$--)G=$+M-1,(X=$+P-1)in J?J[G]=J[X]:I(J,G);for($=0;$<M;$++)J[$+rt]=arguments[$+2];return f(J,Y-P+M),K}})},6078:function(c,v,e){var r=e(2597),s=e(8052),i=e(8709),d=e(5112)("toPrimitive"),u=Date.prototype;r(u,d)||s(u,d,i)},8309:function(c,v,e){var r=e(9781),s=e(6530).EXISTS,i=e(1702),d=e(7045),u=Function.prototype,f=i(u.toString),p=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,b=i(p.exec);r&&!s&&d(u,"name",{configurable:!0,get:function(){try{return b(p,f(this))[1]}catch{return""}}})},8862:function(c,v,e){var r=e(2109),s=e(5005),i=e(2104),d=e(6916),u=e(1702),f=e(7293),p=e(614),b=e(2190),y=e(206),I=e(8044),S=e(6293),E=String,T=s("JSON","stringify"),L=u(/./.exec),N=u("".charAt),M=u("".charCodeAt),P=u("".replace),K=u(1 .toString),$=/[\uD800-\uDFFF]/g,X=/^[\uD800-\uDBFF]$/,G=/^[\uDC00-\uDFFF]$/,J=!S||f(function(){var ct=s("Symbol")();return T([ct])!="[null]"||T({a:ct})!="{}"||T(Object(ct))!="{}"}),Y=f(function(){return T("\uDF06\uD834")!=='"\\udf06\\ud834"'||T("\uDEAD")!=='"\\udead"'}),rt=function(ct,it){var B=y(arguments),O=I(it);if(p(O)||ct!==void 0&&!b(ct))return B[1]=function(z,l){if(p(O)&&(l=d(O,this,E(z),l)),!b(l))return l},i(T,null,B)},st=function(ct,it,B){var O=N(B,it-1),z=N(B,it+1);return L(X,ct)&&!L(G,z)||L(G,ct)&&!L(X,O)?"\\u"+K(M(ct,0),16):ct};T&&r({target:"JSON",stat:!0,arity:3,forced:J||Y},{stringify:function(ct,it,B){var O=y(arguments),z=i(J?rt:T,null,O);return Y&&typeof z=="string"?P(z,$,st):z}})},9653:function(c,v,e){var r=e(2109),s=e(1913),i=e(9781),d=e(7854),u=e(857),f=e(1702),p=e(4705),b=e(2597),y=e(9587),I=e(7976),S=e(2190),E=e(7593),T=e(7293),L=e(8006).f,N=e(1236).f,M=e(3070).f,P=e(863),K=e(3111).trim,$="Number",X=d[$],G=u[$],J=X.prototype,Y=d.TypeError,rt=f("".slice),st=f("".charCodeAt),ct=function(z){var l,g,w,x,_,W,V,U,H=E(z,"number");if(S(H))throw Y("Cannot convert a Symbol value to a number");if(typeof H=="string"&&H.length>2){if(H=K(H),(l=st(H,0))===43||l===45){if((g=st(H,2))===88||g===120)return NaN}else if(l===48){switch(st(H,1)){case 66:case 98:w=2,x=49;break;case 79:case 111:w=8,x=55;break;default:return+H}for(W=(_=rt(H,2)).length,V=0;V<W;V++)if((U=st(_,V))<48||U>x)return NaN;return parseInt(_,w)}}return+H},it=p($,!X(" 0o1")||!X("0b1")||X("+0x1")),B=function(z){var l,g=arguments.length<1?0:X(function(w){var x=E(w,"number");return typeof x=="bigint"?x:ct(x)}(z));return I(J,l=this)&&T(function(){P(l)})?y(Object(g),this,B):g};B.prototype=J,it&&!s&&(J.constructor=B),r({global:!0,constructor:!0,wrap:!0,forced:it},{Number:B});var O=function(z,l){for(var g,w=i?L(l):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),x=0;w.length>x;x++)b(l,g=w[x])&&!b(z,g)&&M(z,g,N(l,g))};s&&G&&O(u[$],G),(it||s)&&O(u[$],X)},3161:function(c,v,e){e(2109)({target:"Number",stat:!0},{isInteger:e(5988)})},9601:function(c,v,e){var r=e(2109),s=e(1574);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==s},{assign:s})},9595:function(c,v,e){var r=e(2109),s=e(9781),i=e(9026),d=e(9662),u=e(7908),f=e(3070);s&&r({target:"Object",proto:!0,forced:i},{__defineGetter__:function(p,b){f.f(u(this),p,{get:d(b),enumerable:!0,configurable:!0})}})},5003:function(c,v,e){var r=e(2109),s=e(7293),i=e(5656),d=e(1236).f,u=e(9781);r({target:"Object",stat:!0,forced:!u||s(function(){d(1)}),sham:!u},{getOwnPropertyDescriptor:function(f,p){return d(i(f),p)}})},9337:function(c,v,e){var r=e(2109),s=e(9781),i=e(3887),d=e(5656),u=e(1236),f=e(6135);r({target:"Object",stat:!0,sham:!s},{getOwnPropertyDescriptors:function(p){for(var b,y,I=d(p),S=u.f,E=i(I),T={},L=0;E.length>L;)(y=S(I,b=E[L++]))!==void 0&&f(T,b,y);return T}})},6210:function(c,v,e){var r=e(2109),s=e(7293),i=e(1156).f;r({target:"Object",stat:!0,forced:s(function(){return!Object.getOwnPropertyNames(1)})},{getOwnPropertyNames:i})},9660:function(c,v,e){var r=e(2109),s=e(6293),i=e(7293),d=e(5181),u=e(7908);r({target:"Object",stat:!0,forced:!s||i(function(){d.f(1)})},{getOwnPropertySymbols:function(f){var p=d.f;return p?p(u(f)):[]}})},7941:function(c,v,e){var r=e(2109),s=e(7908),i=e(1956);r({target:"Object",stat:!0,forced:e(7293)(function(){i(1)})},{keys:function(d){return i(s(d))}})},1539:function(c,v,e){var r=e(1694),s=e(8052),i=e(288);r||s(Object.prototype,"toString",i,{unsafe:!0})},4603:function(c,v,e){var r=e(9781),s=e(7854),i=e(1702),d=e(4705),u=e(9587),f=e(8880),p=e(8006).f,b=e(7976),y=e(7850),I=e(1340),S=e(4706),E=e(2999),T=e(2626),L=e(8052),N=e(7293),M=e(2597),P=e(9909).enforce,K=e(6340),$=e(5112),X=e(9441),G=e(7168),J=$("match"),Y=s.RegExp,rt=Y.prototype,st=s.SyntaxError,ct=i(rt.exec),it=i("".charAt),B=i("".replace),O=i("".indexOf),z=i("".slice),l=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,g=/a/g,w=/a/g,x=new Y(g)!==g,_=E.MISSED_STICKY,W=E.UNSUPPORTED_Y;if(d("RegExp",r&&(!x||_||X||G||N(function(){return w[J]=!1,Y(g)!=g||Y(w)==w||Y(g,"i")!="/a/i"})))){for(var V=function(ot,q){var Z,at,nt,dt,mt,jt,It=b(rt,this),wt=y(ot),Pt=q===void 0,Gt=[],yt=ot;if(!It&&wt&&Pt&&ot.constructor===V)return ot;if((wt||b(rt,ot))&&(ot=ot.source,Pt&&(q=S(yt))),ot=ot===void 0?"":I(ot),q=q===void 0?"":I(q),yt=ot,X&&"dotAll"in g&&(at=!!q&&O(q,"s")>-1)&&(q=B(q,/s/g,"")),Z=q,_&&"sticky"in g&&(nt=!!q&&O(q,"y")>-1)&&W&&(q=B(q,/y/g,"")),G&&(dt=function(St){for(var kt,gt=St.length,Et=0,_t="",Lt=[],ee={},ne=!1,Qt=!1,ge=0,Ht="";Et<=gt;Et++){if((kt=it(St,Et))==="\\")kt+=it(St,++Et);else if(kt==="]")ne=!1;else if(!ne)switch(!0){case kt==="[":ne=!0;break;case kt==="(":ct(l,z(St,Et+1))&&(Et+=2,Qt=!0),_t+=kt,ge++;continue;case(kt===">"&&Qt):if(Ht===""||M(ee,Ht))throw new st("Invalid capture group name");ee[Ht]=!0,Lt[Lt.length]=[Ht,ge],Qt=!1,Ht="";continue}Qt?Ht+=kt:_t+=kt}return[_t,Lt]}(ot),ot=dt[0],Gt=dt[1]),mt=u(Y(ot,q),It?this:rt,V),(at||nt||Gt.length)&&(jt=P(mt),at&&(jt.dotAll=!0,jt.raw=V(function(St){for(var kt,gt=St.length,Et=0,_t="",Lt=!1;Et<=gt;Et++)(kt=it(St,Et))!=="\\"?Lt||kt!=="."?(kt==="["?Lt=!0:kt==="]"&&(Lt=!1),_t+=kt):_t+="[\\s\\S]":_t+=kt+it(St,++Et);return _t}(ot),Z)),nt&&(jt.sticky=!0),Gt.length&&(jt.groups=Gt)),ot!==yt)try{f(mt,"source",yt===""?"(?:)":yt)}catch{}return mt},U=p(Y),H=0;U.length>H;)T(V,Y,U[H++]);rt.constructor=V,V.prototype=rt,L(s,"RegExp",V,{constructor:!0})}K("RegExp")},4916:function(c,v,e){var r=e(2109),s=e(2261);r({target:"RegExp",proto:!0,forced:/./.exec!==s},{exec:s})},9714:function(c,v,e){var r=e(6530).PROPER,s=e(8052),i=e(9670),d=e(1340),u=e(7293),f=e(4706),p="toString",b=RegExp.prototype[p],y=u(function(){return b.call({source:"a",flags:"b"})!="/a/b"}),I=r&&b.name!=p;(y||I)&&s(RegExp.prototype,p,function(){var S=i(this);return"/"+d(S.source)+"/"+d(f(S))},{unsafe:!0})},2023:function(c,v,e){var r=e(2109),s=e(1702),i=e(3929),d=e(4488),u=e(1340),f=e(4964),p=s("".indexOf);r({target:"String",proto:!0,forced:!f("includes")},{includes:function(b){return!!~p(u(d(this)),u(i(b)),arguments.length>1?arguments[1]:void 0)}})},8783:function(c,v,e){var r=e(8710).charAt,s=e(1340),i=e(9909),d=e(1656),u=e(6178),f="String Iterator",p=i.set,b=i.getterFor(f);d(String,"String",function(y){p(this,{type:f,string:s(y),index:0})},function(){var y,I=b(this),S=I.string,E=I.index;return E>=S.length?u(void 0,!0):(y=r(S,E),I.index+=y.length,u(y,!1))})},6373:function(c,v,e){var r=e(2109),s=e(6916),i=e(1470),d=e(3061),u=e(6178),f=e(4488),p=e(7466),b=e(1340),y=e(9670),I=e(8554),S=e(4326),E=e(7850),T=e(4706),L=e(8173),N=e(8052),M=e(7293),P=e(5112),K=e(6707),$=e(1530),X=e(7651),G=e(9909),J=e(1913),Y=P("matchAll"),rt="RegExp String",st=rt+" Iterator",ct=G.set,it=G.getterFor(st),B=RegExp.prototype,O=TypeError,z=i("".indexOf),l=i("".matchAll),g=!!l&&!M(function(){l("a",/./)}),w=d(function(_,W,V,U){ct(this,{type:st,regexp:_,string:W,global:V,unicode:U,done:!1})},rt,function(){var _=it(this);if(_.done)return u(void 0,!0);var W=_.regexp,V=_.string,U=X(W,V);return U===null?(_.done=!0,u(void 0,!0)):_.global?(b(U[0])===""&&(W.lastIndex=$(V,p(W.lastIndex),_.unicode)),u(U,!1)):(_.done=!0,u(U,!1))}),x=function(_){var W,V,U,H=y(this),ot=b(_),q=K(H,RegExp),Z=b(T(H));return W=new q(q===RegExp?H.source:H,Z),V=!!~z(Z,"g"),U=!!~z(Z,"u"),W.lastIndex=p(H.lastIndex),new w(W,ot,V,U)};r({target:"String",proto:!0,forced:g},{matchAll:function(_){var W,V,U,H,ot=f(this);if(I(_)){if(g)return l(ot,_)}else{if(E(_)&&(W=b(f(T(_))),!~z(W,"g")))throw O("`.matchAll` does not allow non-global regexes");if(g)return l(ot,_);if((U=L(_,Y))===void 0&&J&&S(_)=="RegExp"&&(U=x),U)return s(U,_,ot)}return V=b(ot),H=new RegExp(_,"g"),J?s(x,H,V):H[Y](V)}}),J||Y in B||N(B,Y,x)},4723:function(c,v,e){var r=e(6916),s=e(7007),i=e(9670),d=e(8554),u=e(7466),f=e(1340),p=e(4488),b=e(8173),y=e(1530),I=e(7651);s("match",function(S,E,T){return[function(L){var N=p(this),M=d(L)?void 0:b(L,S);return M?r(M,L,N):new RegExp(L)[S](f(N))},function(L){var N=i(this),M=f(L),P=T(E,N,M);if(P.done)return P.value;if(!N.global)return I(N,M);var K=N.unicode;N.lastIndex=0;for(var $,X=[],G=0;($=I(N,M))!==null;){var J=f($[0]);X[G]=J,J===""&&(N.lastIndex=y(M,u(N.lastIndex),K)),G++}return G===0?null:X}]})},5306:function(c,v,e){var r=e(2104),s=e(6916),i=e(1702),d=e(7007),u=e(7293),f=e(9670),p=e(614),b=e(8554),y=e(9303),I=e(7466),S=e(1340),E=e(4488),T=e(1530),L=e(8173),N=e(647),M=e(7651),P=e(5112)("replace"),K=Math.max,$=Math.min,X=i([].concat),G=i([].push),J=i("".indexOf),Y=i("".slice),rt="a".replace(/./,"$0")==="$0",st=!!/./[P]&&/./[P]("a","$0")==="";d("replace",function(ct,it,B){var O=st?"$":"$0";return[function(z,l){var g=E(this),w=b(z)?void 0:L(z,P);return w?s(w,z,g,l):s(it,S(g),z,l)},function(z,l){var g=f(this),w=S(z);if(typeof l=="string"&&J(l,O)===-1&&J(l,"$<")===-1){var x=B(it,g,w,l);if(x.done)return x.value}var _=p(l);_||(l=S(l));var W=g.global;if(W){var V=g.unicode;g.lastIndex=0}for(var U=[];;){var H=M(g,w);if(H===null||(G(U,H),!W))break;S(H[0])===""&&(g.lastIndex=T(w,I(g.lastIndex),V))}for(var ot,q="",Z=0,at=0;at<U.length;at++){for(var nt=S((H=U[at])[0]),dt=K($(y(H.index),w.length),0),mt=[],jt=1;jt<H.length;jt++)G(mt,(ot=H[jt])===void 0?ot:String(ot));var It=H.groups;if(_){var wt=X([nt],mt,dt,w);It!==void 0&&G(wt,It);var Pt=S(r(l,void 0,wt))}else Pt=N(nt,w,dt,mt,It,l);dt>=Z&&(q+=Y(w,Z,dt)+Pt,Z=dt+nt.length)}return q+Y(w,Z)}]},!!u(function(){var ct=/./;return ct.exec=function(){var it=[];return it.groups={a:"7"},it},"".replace(ct,"$<a>")!=="7"})||!rt||st)},3123:function(c,v,e){var r=e(2104),s=e(6916),i=e(1702),d=e(7007),u=e(9670),f=e(8554),p=e(7850),b=e(4488),y=e(6707),I=e(1530),S=e(7466),E=e(1340),T=e(8173),L=e(1589),N=e(7651),M=e(2261),P=e(2999),K=e(7293),$=P.UNSUPPORTED_Y,X=4294967295,G=Math.min,J=[].push,Y=i(/./.exec),rt=i(J),st=i("".slice),ct=!K(function(){var it=/(?:)/,B=it.exec;it.exec=function(){return B.apply(this,arguments)};var O="ab".split(it);return O.length!==2||O[0]!=="a"||O[1]!=="b"});d("split",function(it,B,O){var z;return z="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(l,g){var w=E(b(this)),x=g===void 0?X:g>>>0;if(x===0)return[];if(l===void 0)return[w];if(!p(l))return s(B,w,l,x);for(var _,W,V,U=[],H=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(l.sticky?"y":""),ot=0,q=new RegExp(l.source,H+"g");(_=s(M,q,w))&&!((W=q.lastIndex)>ot&&(rt(U,st(w,ot,_.index)),_.length>1&&_.index<w.length&&r(J,U,L(_,1)),V=_[0].length,ot=W,U.length>=x));)q.lastIndex===_.index&&q.lastIndex++;return ot===w.length?!V&&Y(q,"")||rt(U,""):rt(U,st(w,ot)),U.length>x?L(U,0,x):U}:"0".split(void 0,0).length?function(l,g){return l===void 0&&g===0?[]:s(B,this,l,g)}:B,[function(l,g){var w=b(this),x=f(l)?void 0:T(l,it);return x?s(x,l,w,g):s(z,E(w),l,g)},function(l,g){var w=u(this),x=E(l),_=O(z,w,x,g,z!==B);if(_.done)return _.value;var W=y(w,RegExp),V=w.unicode,U=(w.ignoreCase?"i":"")+(w.multiline?"m":"")+(w.unicode?"u":"")+($?"g":"y"),H=new W($?"^(?:"+w.source+")":w,U),ot=g===void 0?X:g>>>0;if(ot===0)return[];if(x.length===0)return N(H,x)===null?[x]:[];for(var q=0,Z=0,at=[];Z<x.length;){H.lastIndex=$?0:Z;var nt,dt=N(H,$?st(x,Z):x);if(dt===null||(nt=G(S(H.lastIndex+($?Z:0)),x.length))===q)Z=I(x,Z,V);else{if(rt(at,st(x,q,Z)),at.length===ot)return at;for(var mt=1;mt<=dt.length-1;mt++)if(rt(at,dt[mt]),at.length===ot)return at;Z=q=nt}}return rt(at,st(x,q)),at}]},!ct,$)},3210:function(c,v,e){var r=e(2109),s=e(3111).trim;r({target:"String",proto:!0,forced:e(6091)("trim")},{trim:function(){return s(this)}})},4032:function(c,v,e){var r=e(2109),s=e(7854),i=e(6916),d=e(1702),u=e(1913),f=e(9781),p=e(6293),b=e(7293),y=e(2597),I=e(7976),S=e(9670),E=e(5656),T=e(4948),L=e(1340),N=e(9114),M=e(30),P=e(1956),K=e(8006),$=e(1156),X=e(5181),G=e(1236),J=e(3070),Y=e(6048),rt=e(5296),st=e(8052),ct=e(7045),it=e(2309),B=e(6200),O=e(3501),z=e(9711),l=e(5112),g=e(6061),w=e(6800),x=e(6532),_=e(8003),W=e(9909),V=e(2092).forEach,U=B("hidden"),H="Symbol",ot="prototype",q=W.set,Z=W.getterFor(H),at=Object[ot],nt=s.Symbol,dt=nt&&nt[ot],mt=s.TypeError,jt=s.QObject,It=G.f,wt=J.f,Pt=$.f,Gt=rt.f,yt=d([].push),St=it("symbols"),kt=it("op-symbols"),gt=it("wks"),Et=!jt||!jt[ot]||!jt[ot].findChild,_t=f&&b(function(){return M(wt({},"a",{get:function(){return wt(this,"a",{value:7}).a}})).a!=7})?function(ut,pt,ht){var vt=It(at,pt);vt&&delete at[pt],wt(ut,pt,ht),vt&&ut!==at&&wt(at,pt,vt)}:wt,Lt=function(ut,pt){var ht=St[ut]=M(dt);return q(ht,{type:H,tag:ut,description:pt}),f||(ht.description=pt),ht},ee=function(ut,pt,ht){ut===at&&ee(kt,pt,ht),S(ut);var vt=T(pt);return S(ht),y(St,vt)?(ht.enumerable?(y(ut,U)&&ut[U][vt]&&(ut[U][vt]=!1),ht=M(ht,{enumerable:N(0,!1)})):(y(ut,U)||wt(ut,U,N(1,{})),ut[U][vt]=!0),_t(ut,vt,ht)):wt(ut,vt,ht)},ne=function(ut,pt){S(ut);var ht=E(pt),vt=P(ht).concat(xo(ht));return V(vt,function($t){f&&!i(Qt,ht,$t)||ee(ut,$t,ht[$t])}),ut},Qt=function(ut){var pt=T(ut),ht=i(Gt,this,pt);return!(this===at&&y(St,pt)&&!y(kt,pt))&&(!(ht||!y(this,pt)||!y(St,pt)||y(this,U)&&this[U][pt])||ht)},ge=function(ut,pt){var ht=E(ut),vt=T(pt);if(ht!==at||!y(St,vt)||y(kt,vt)){var $t=It(ht,vt);return!$t||!y(St,vt)||y(ht,U)&&ht[U][vt]||($t.enumerable=!0),$t}},Ht=function(ut){var pt=Pt(E(ut)),ht=[];return V(pt,function(vt){y(St,vt)||y(O,vt)||yt(ht,vt)}),ht},xo=function(ut){var pt=ut===at,ht=Pt(pt?kt:E(ut)),vt=[];return V(ht,function($t){!y(St,$t)||pt&&!y(at,$t)||yt(vt,St[$t])}),vt};p||(nt=function(){if(I(dt,this))throw mt("Symbol is not a constructor");var ut=arguments.length&&arguments[0]!==void 0?L(arguments[0]):void 0,pt=z(ut),ht=function(vt){this===at&&i(ht,kt,vt),y(this,U)&&y(this[U],pt)&&(this[U][pt]=!1),_t(this,pt,N(1,vt))};return f&&Et&&_t(at,pt,{configurable:!0,set:ht}),Lt(pt,ut)},st(dt=nt[ot],"toString",function(){return Z(this).tag}),st(nt,"withoutSetter",function(ut){return Lt(z(ut),ut)}),rt.f=Qt,J.f=ee,Y.f=ne,G.f=ge,K.f=$.f=Ht,X.f=xo,g.f=function(ut){return Lt(l(ut),ut)},f&&(ct(dt,"description",{configurable:!0,get:function(){return Z(this).description}}),u||st(at,"propertyIsEnumerable",Qt,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!p,sham:!p},{Symbol:nt}),V(P(gt),function(ut){w(ut)}),r({target:H,stat:!0,forced:!p},{useSetter:function(){Et=!0},useSimple:function(){Et=!1}}),r({target:"Object",stat:!0,forced:!p,sham:!f},{create:function(ut,pt){return pt===void 0?M(ut):ne(M(ut),pt)},defineProperty:ee,defineProperties:ne,getOwnPropertyDescriptor:ge}),r({target:"Object",stat:!0,forced:!p},{getOwnPropertyNames:Ht}),x(),_(nt,H),O[U]=!0},1817:function(c,v,e){var r=e(2109),s=e(9781),i=e(7854),d=e(1702),u=e(2597),f=e(614),p=e(7976),b=e(1340),y=e(7045),I=e(9920),S=i.Symbol,E=S&&S.prototype;if(s&&f(S)&&(!("description"in E)||S().description!==void 0)){var T={},L=function(){var G=arguments.length<1||arguments[0]===void 0?void 0:b(arguments[0]),J=p(E,this)?new S(G):G===void 0?S():S(G);return G===""&&(T[J]=!0),J};I(L,S),L.prototype=E,E.constructor=L;var N=String(S("test"))=="Symbol(test)",M=d(E.valueOf),P=d(E.toString),K=/^Symbol\((.*)\)[^)]+$/,$=d("".replace),X=d("".slice);y(E,"description",{configurable:!0,get:function(){var G=M(this);if(u(T,G))return"";var J=P(G),Y=N?X(J,7,-1):$(J,K,"$1");return Y===""?void 0:Y}}),r({global:!0,constructor:!0,forced:!0},{Symbol:L})}},763:function(c,v,e){var r=e(2109),s=e(5005),i=e(2597),d=e(1340),u=e(2309),f=e(2015),p=u("string-to-symbol-registry"),b=u("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!f},{for:function(y){var I=d(y);if(i(p,I))return p[I];var S=s("Symbol")(I);return p[I]=S,b[S]=I,S}})},2165:function(c,v,e){e(6800)("iterator")},2526:function(c,v,e){e(4032),e(763),e(6620),e(8862),e(9660)},6620:function(c,v,e){var r=e(2109),s=e(2597),i=e(2190),d=e(6330),u=e(2309),f=e(2015),p=u("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!f},{keyFor:function(b){if(!i(b))throw TypeError(d(b)+" is not a symbol");if(s(p,b))return p[b]}})},6649:function(c,v,e){var r=e(6800),s=e(6532);r("toPrimitive"),s()},3728:function(c,v,e){e(6373)},4747:function(c,v,e){var r=e(7854),s=e(8324),i=e(8509),d=e(8533),u=e(8880),f=function(b){if(b&&b.forEach!==d)try{u(b,"forEach",d)}catch{b.forEach=d}};for(var p in s)s[p]&&f(r[p]&&r[p].prototype);f(i)},3948:function(c,v,e){var r=e(7854),s=e(8324),i=e(8509),d=e(6992),u=e(8880),f=e(5112),p=f("iterator"),b=f("toStringTag"),y=d.values,I=function(E,T){if(E){if(E[p]!==y)try{u(E,p,y)}catch{E[p]=y}if(E[b]||u(E,b,T),s[T]){for(var L in d)if(E[L]!==d[L])try{u(E,L,d[L])}catch{E[L]=d[L]}}}};for(var S in s)I(r[S]&&r[S].prototype,S);I(i,"DOMTokenList")}},R={};function D(c){var v=R[c];if(v!==void 0)return v.exports;var e=R[c]={exports:{}};return F[c].call(e.exports,e,e.exports,D),e.exports}D.d=function(c,v){for(var e in v)D.o(v,e)&&!D.o(c,e)&&Object.defineProperty(c,e,{enumerable:!0,get:v[e]})},D.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),D.o=function(c,v){return Object.prototype.hasOwnProperty.call(c,v)},D.r=function(c){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})};var Q={};return function(){function c(B){return function(O){if(Array.isArray(O))return e(O)}(B)||function(O){if(typeof Symbol<"u"&&O[Symbol.iterator]!=null||O["@@iterator"]!=null)return Array.from(O)}(B)||v(B)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1242
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function v(B,O){if(B){if(typeof B=="string")return e(B,O);var z=Object.prototype.toString.call(B).slice(8,-1);return z==="Object"&&B.constructor&&(z=B.constructor.name),z==="Map"||z==="Set"?Array.from(B):z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(z)?e(B,O):void 0}}function e(B,O){(O==null||O>B.length)&&(O=B.length);for(var z=0,l=new Array(O);z<O;z++)l[z]=B[z];return l}function r(B){return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(O){return typeof O}:function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O},r(B)}function
|
|
1242
|
+
*/(function(t,n){(function(o,s){t.exports=s(et)})(id,function(o){return function(){var s={752: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(C){if("Element"in C){var F="classList",R="prototype",D=C.Element[R],Q=Object,c=String[R].trim||function(){return this.replace(/^\s+|\s+$/g,"")},v=Array[R].indexOf||function(f){for(var p=0,b=this.length;p<b;p++)if(p in this&&this[p]===f)return p;return-1},e=function(f,p){this.name=f,this.code=DOMException[f],this.message=p},r=function(f,p){if(p==="")throw new e("SYNTAX_ERR","The token must not be empty.");if(/\s/.test(p))throw new e("INVALID_CHARACTER_ERR","The token must not contain space characters.");return v.call(f,p)},a=function(f){for(var p=c.call(f.getAttribute("class")||""),b=p?p.split(/\s+/):[],y=0,I=b.length;y<I;y++)this.push(b[y]);this._updateClassName=function(){f.setAttribute("class",this.toString())}},i=a[R]=[],d=function(){return new a(this)};if(e[R]=Error[R],i.item=function(f){return this[f]||null},i.contains=function(f){return~r(this,f+"")},i.add=function(){var f,p=arguments,b=0,y=p.length,I=!1;do~r(this,f=p[b]+"")||(this.push(f),I=!0);while(++b<y);I&&this._updateClassName()},i.remove=function(){var f,p,b=arguments,y=0,I=b.length,S=!1;do for(p=r(this,f=b[y]+"");~p;)this.splice(p,1),S=!0,p=r(this,f);while(++y<I);S&&this._updateClassName()},i.toggle=function(f,p){var b=this.contains(f),y=b?p!==!0&&"remove":p!==!1&&"add";return y&&this[y](f),p===!0||p===!1?p:!b},i.replace=function(f,p){var b=r(f+"");~b&&(this.splice(b,1,p),this._updateClassName())},i.toString=function(){return this.join(" ")},Q.defineProperty){var u={get:d,enumerable:!0,configurable:!0};try{Q.defineProperty(D,F,u)}catch(f){f.number!==void 0&&f.number!==-2146823252||(u.enumerable=!1,Q.defineProperty(D,F,u))}}else Q[R].__defineGetter__&&D.__defineGetter__(F,d)}}(self),function(){var C=document.createElement("_");if(C.classList.add("c1","c2"),!C.classList.contains("c2")){var F=function(D){var Q=DOMTokenList.prototype[D];DOMTokenList.prototype[D]=function(c){var v,e=arguments.length;for(v=0;v<e;v++)c=arguments[v],Q.call(this,c)}};F("add"),F("remove")}if(C.classList.toggle("c3",!1),C.classList.contains("c3")){var R=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(D,Q){return 1 in arguments&&!this.contains(D)==!Q?Q:R.call(this,D)}}"replace"in document.createElement("_").classList||(DOMTokenList.prototype.replace=function(D,Q){var c=this.toString().split(" "),v=c.indexOf(D+"");~v&&(c=c.slice(v),this.remove.apply(this,c),this.add(Q),this.add.apply(this,c.slice(1)))}),C=null}())},86:function(C){C.exports=function(){var F={9662:function(c,v,e){var r=e(614),a=e(6330),i=TypeError;c.exports=function(d){if(r(d))return d;throw i(a(d)+" is not a function")}},9483:function(c,v,e){var r=e(4411),a=e(6330),i=TypeError;c.exports=function(d){if(r(d))return d;throw i(a(d)+" is not a constructor")}},6077:function(c,v,e){var r=e(614),a=String,i=TypeError;c.exports=function(d){if(typeof d=="object"||r(d))return d;throw i("Can't set "+a(d)+" as a prototype")}},1223:function(c,v,e){var r=e(5112),a=e(30),i=e(3070).f,d=r("unscopables"),u=Array.prototype;u[d]==null&&i(u,d,{configurable:!0,value:a(null)}),c.exports=function(f){u[d][f]=!0}},1530:function(c,v,e){var r=e(8710).charAt;c.exports=function(a,i,d){return i+(d?r(a,i).length:1)}},9670:function(c,v,e){var r=e(111),a=String,i=TypeError;c.exports=function(d){if(r(d))return d;throw i(a(d)+" is not an object")}},8533:function(c,v,e){var r=e(2092).forEach,a=e(9341)("forEach");c.exports=a?[].forEach:function(i){return r(this,i,arguments.length>1?arguments[1]:void 0)}},8457:function(c,v,e){var r=e(9974),a=e(6916),i=e(7908),d=e(3411),u=e(7659),f=e(4411),p=e(6244),b=e(6135),y=e(4121),I=e(1246),S=Array;c.exports=function(E){var T=i(E),L=f(this),N=arguments.length,M=N>1?arguments[1]:void 0,P=M!==void 0;P&&(M=r(M,N>2?arguments[2]:void 0));var K,$,X,G,J,Y,rt=I(T),st=0;if(!rt||this===S&&u(rt))for(K=p(T),$=L?new this(K):S(K);K>st;st++)Y=P?M(T[st],st):T[st],b($,st,Y);else for(J=(G=y(T,rt)).next,$=L?new this:[];!(X=a(J,G)).done;st++)Y=P?d(G,M,[X.value,st],!0):X.value,b($,st,Y);return $.length=st,$}},1318:function(c,v,e){var r=e(5656),a=e(1400),i=e(6244),d=function(u){return function(f,p,b){var y,I=r(f),S=i(I),E=a(b,S);if(u&&p!=p){for(;S>E;)if((y=I[E++])!=y)return!0}else for(;S>E;E++)if((u||E in I)&&I[E]===p)return u||E||0;return!u&&-1}};c.exports={includes:d(!0),indexOf:d(!1)}},2092:function(c,v,e){var r=e(9974),a=e(1702),i=e(8361),d=e(7908),u=e(6244),f=e(5417),p=a([].push),b=function(y){var I=y==1,S=y==2,E=y==3,T=y==4,L=y==6,N=y==7,M=y==5||L;return function(P,K,$,X){for(var G,J,Y=d(P),rt=i(Y),st=r(K,$),ct=u(rt),it=0,B=X||f,O=I?B(P,ct):S||N?B(P,0):void 0;ct>it;it++)if((M||it in rt)&&(J=st(G=rt[it],it,Y),y))if(I)O[it]=J;else if(J)switch(y){case 3:return!0;case 5:return G;case 6:return it;case 2:p(O,G)}else switch(y){case 4:return!1;case 7:p(O,G)}return L?-1:E||T?T:O}};c.exports={forEach:b(0),map:b(1),filter:b(2),some:b(3),every:b(4),find:b(5),findIndex:b(6),filterReject:b(7)}},1194:function(c,v,e){var r=e(7293),a=e(5112),i=e(7392),d=a("species");c.exports=function(u){return i>=51||!r(function(){var f=[];return(f.constructor={})[d]=function(){return{foo:1}},f[u](Boolean).foo!==1})}},9341:function(c,v,e){var r=e(7293);c.exports=function(a,i){var d=[][a];return!!d&&r(function(){d.call(null,i||function(){return 1},1)})}},3671:function(c,v,e){var r=e(9662),a=e(7908),i=e(8361),d=e(6244),u=TypeError,f=function(p){return function(b,y,I,S){r(y);var E=a(b),T=i(E),L=d(E),N=p?L-1:0,M=p?-1:1;if(I<2)for(;;){if(N in T){S=T[N],N+=M;break}if(N+=M,p?N<0:L<=N)throw u("Reduce of empty array with no initial value")}for(;p?N>=0:L>N;N+=M)N in T&&(S=y(S,T[N],N,E));return S}};c.exports={left:f(!1),right:f(!0)}},3658:function(c,v,e){var r=e(9781),a=e(3157),i=TypeError,d=Object.getOwnPropertyDescriptor,u=r&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(f){return f instanceof TypeError}}();c.exports=u?function(f,p){if(a(f)&&!d(f,"length").writable)throw i("Cannot set read only .length");return f.length=p}:function(f,p){return f.length=p}},1589:function(c,v,e){var r=e(1400),a=e(6244),i=e(6135),d=Array,u=Math.max;c.exports=function(f,p,b){for(var y=a(f),I=r(p,y),S=r(b===void 0?y:b,y),E=d(u(S-I,0)),T=0;I<S;I++,T++)i(E,T,f[I]);return E.length=T,E}},206:function(c,v,e){var r=e(1702);c.exports=r([].slice)},4362:function(c,v,e){var r=e(1589),a=Math.floor,i=function(f,p){var b=f.length,y=a(b/2);return b<8?d(f,p):u(f,i(r(f,0,y),p),i(r(f,y),p),p)},d=function(f,p){for(var b,y,I=f.length,S=1;S<I;){for(y=S,b=f[S];y&&p(f[y-1],b)>0;)f[y]=f[--y];y!==S++&&(f[y]=b)}return f},u=function(f,p,b,y){for(var I=p.length,S=b.length,E=0,T=0;E<I||T<S;)f[E+T]=E<I&&T<S?y(p[E],b[T])<=0?p[E++]:b[T++]:E<I?p[E++]:b[T++];return f};c.exports=i},7475:function(c,v,e){var r=e(3157),a=e(4411),i=e(111),d=e(5112)("species"),u=Array;c.exports=function(f){var p;return r(f)&&(p=f.constructor,(a(p)&&(p===u||r(p.prototype))||i(p)&&(p=p[d])===null)&&(p=void 0)),p===void 0?u:p}},5417:function(c,v,e){var r=e(7475);c.exports=function(a,i){return new(r(a))(i===0?0:i)}},3411:function(c,v,e){var r=e(9670),a=e(9212);c.exports=function(i,d,u,f){try{return f?d(r(u)[0],u[1]):d(u)}catch(p){a(i,"throw",p)}}},7072:function(c,v,e){var r=e(5112)("iterator"),a=!1;try{var i=0,d={next:function(){return{done:!!i++}},return:function(){a=!0}};d[r]=function(){return this},Array.from(d,function(){throw 2})}catch{}c.exports=function(u,f){if(!f&&!a)return!1;var p=!1;try{var b={};b[r]=function(){return{next:function(){return{done:p=!0}}}},u(b)}catch{}return p}},4326:function(c,v,e){var r=e(1702),a=r({}.toString),i=r("".slice);c.exports=function(d){return i(a(d),8,-1)}},648:function(c,v,e){var r=e(1694),a=e(614),i=e(4326),d=e(5112)("toStringTag"),u=Object,f=i(function(){return arguments}())=="Arguments";c.exports=r?i:function(p){var b,y,I;return p===void 0?"Undefined":p===null?"Null":typeof(y=function(S,E){try{return S[E]}catch{}}(b=u(p),d))=="string"?y:f?i(b):(I=i(b))=="Object"&&a(b.callee)?"Arguments":I}},9920:function(c,v,e){var r=e(2597),a=e(3887),i=e(1236),d=e(3070);c.exports=function(u,f,p){for(var b=a(f),y=d.f,I=i.f,S=0;S<b.length;S++){var E=b[S];r(u,E)||p&&r(p,E)||y(u,E,I(f,E))}}},4964:function(c,v,e){var r=e(5112)("match");c.exports=function(a){var i=/./;try{"/./"[a](i)}catch{try{return i[r]=!1,"/./"[a](i)}catch{}}return!1}},8544:function(c,v,e){var r=e(7293);c.exports=!r(function(){function a(){}return a.prototype.constructor=null,Object.getPrototypeOf(new a)!==a.prototype})},6178:function(c){c.exports=function(v,e){return{value:v,done:e}}},8880:function(c,v,e){var r=e(9781),a=e(3070),i=e(9114);c.exports=r?function(d,u,f){return a.f(d,u,i(1,f))}:function(d,u,f){return d[u]=f,d}},9114:function(c){c.exports=function(v,e){return{enumerable:!(1&v),configurable:!(2&v),writable:!(4&v),value:e}}},6135:function(c,v,e){var r=e(4948),a=e(3070),i=e(9114);c.exports=function(d,u,f){var p=r(u);p in d?a.f(d,p,i(0,f)):d[p]=f}},8709:function(c,v,e){var r=e(9670),a=e(2140),i=TypeError;c.exports=function(d){if(r(this),d==="string"||d==="default")d="string";else if(d!=="number")throw i("Incorrect hint");return a(this,d)}},7045:function(c,v,e){var r=e(6339),a=e(3070);c.exports=function(i,d,u){return u.get&&r(u.get,d,{getter:!0}),u.set&&r(u.set,d,{setter:!0}),a.f(i,d,u)}},8052:function(c,v,e){var r=e(614),a=e(3070),i=e(6339),d=e(3072);c.exports=function(u,f,p,b){b||(b={});var y=b.enumerable,I=b.name!==void 0?b.name:f;if(r(p)&&i(p,I,b),b.global)y?u[f]=p:d(f,p);else{try{b.unsafe?u[f]&&(y=!0):delete u[f]}catch{}y?u[f]=p:a.f(u,f,{value:p,enumerable:!1,configurable:!b.nonConfigurable,writable:!b.nonWritable})}return u}},3072:function(c,v,e){var r=e(7854),a=Object.defineProperty;c.exports=function(i,d){try{a(r,i,{value:d,configurable:!0,writable:!0})}catch{r[i]=d}return d}},5117:function(c,v,e){var r=e(6330),a=TypeError;c.exports=function(i,d){if(!delete i[d])throw a("Cannot delete property "+r(d)+" of "+r(i))}},9781:function(c,v,e){var r=e(7293);c.exports=!r(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},4154:function(c){var v=typeof document=="object"&&document.all,e=v===void 0&&v!==void 0;c.exports={all:v,IS_HTMLDDA:e}},317:function(c,v,e){var r=e(7854),a=e(111),i=r.document,d=a(i)&&a(i.createElement);c.exports=function(u){return d?i.createElement(u):{}}},7207:function(c){var v=TypeError;c.exports=function(e){if(e>9007199254740991)throw v("Maximum allowed index exceeded");return e}},8324:function(c){c.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}},8509:function(c,v,e){var r=e(317)("span").classList,a=r&&r.constructor&&r.constructor.prototype;c.exports=a===Object.prototype?void 0:a},8886:function(c,v,e){var r=e(8113).match(/firefox\/(\d+)/i);c.exports=!!r&&+r[1]},256:function(c,v,e){var r=e(8113);c.exports=/MSIE|Trident/.test(r)},5268:function(c,v,e){var r=e(4326);c.exports=typeof process<"u"&&r(process)=="process"},8113:function(c){c.exports=typeof navigator<"u"&&String(navigator.userAgent)||""},7392:function(c,v,e){var r,a,i=e(7854),d=e(8113),u=i.process,f=i.Deno,p=u&&u.versions||f&&f.version,b=p&&p.v8;b&&(a=(r=b.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!a&&d&&(!(r=d.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=d.match(/Chrome\/(\d+)/))&&(a=+r[1]),c.exports=a},8008:function(c,v,e){var r=e(8113).match(/AppleWebKit\/(\d+)\./);c.exports=!!r&&+r[1]},748:function(c){c.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(c,v,e){var r=e(7854),a=e(1236).f,i=e(8880),d=e(8052),u=e(3072),f=e(9920),p=e(4705);c.exports=function(b,y){var I,S,E,T,L,N=b.target,M=b.global,P=b.stat;if(I=M?r:P?r[N]||u(N,{}):(r[N]||{}).prototype)for(S in y){if(T=y[S],E=b.dontCallGetSet?(L=a(I,S))&&L.value:I[S],!p(M?S:N+(P?".":"#")+S,b.forced)&&E!==void 0){if(typeof T==typeof E)continue;f(T,E)}(b.sham||E&&E.sham)&&i(T,"sham",!0),d(I,S,T,b)}}},7293:function(c){c.exports=function(v){try{return!!v()}catch{return!0}}},7007:function(c,v,e){e(4916);var r=e(1470),a=e(8052),i=e(2261),d=e(7293),u=e(5112),f=e(8880),p=u("species"),b=RegExp.prototype;c.exports=function(y,I,S,E){var T=u(y),L=!d(function(){var K={};return K[T]=function(){return 7},""[y](K)!=7}),N=L&&!d(function(){var K=!1,$=/a/;return y==="split"&&(($={}).constructor={},$.constructor[p]=function(){return $},$.flags="",$[T]=/./[T]),$.exec=function(){return K=!0,null},$[T](""),!K});if(!L||!N||S){var M=r(/./[T]),P=I(T,""[y],function(K,$,X,G,J){var Y=r(K),rt=$.exec;return rt===i||rt===b.exec?L&&!J?{done:!0,value:M($,X,G)}:{done:!0,value:Y(X,$,G)}:{done:!1}});a(String.prototype,y,P[0]),a(b,T,P[1])}E&&f(b[T],"sham",!0)}},2104:function(c,v,e){var r=e(4374),a=Function.prototype,i=a.apply,d=a.call;c.exports=typeof Reflect=="object"&&Reflect.apply||(r?d.bind(i):function(){return d.apply(i,arguments)})},9974:function(c,v,e){var r=e(1470),a=e(9662),i=e(4374),d=r(r.bind);c.exports=function(u,f){return a(u),f===void 0?u:i?d(u,f):function(){return u.apply(f,arguments)}}},4374:function(c,v,e){var r=e(7293);c.exports=!r(function(){var a=(function(){}).bind();return typeof a!="function"||a.hasOwnProperty("prototype")})},6916:function(c,v,e){var r=e(4374),a=Function.prototype.call;c.exports=r?a.bind(a):function(){return a.apply(a,arguments)}},6530:function(c,v,e){var r=e(9781),a=e(2597),i=Function.prototype,d=r&&Object.getOwnPropertyDescriptor,u=a(i,"name"),f=u&&(function(){}).name==="something",p=u&&(!r||r&&d(i,"name").configurable);c.exports={EXISTS:u,PROPER:f,CONFIGURABLE:p}},5668:function(c,v,e){var r=e(1702),a=e(9662);c.exports=function(i,d,u){try{return r(a(Object.getOwnPropertyDescriptor(i,d)[u]))}catch{}}},1470:function(c,v,e){var r=e(4326),a=e(1702);c.exports=function(i){if(r(i)==="Function")return a(i)}},1702:function(c,v,e){var r=e(4374),a=Function.prototype,i=a.call,d=r&&a.bind.bind(i,i);c.exports=r?d:function(u){return function(){return i.apply(u,arguments)}}},5005:function(c,v,e){var r=e(7854),a=e(614);c.exports=function(i,d){return arguments.length<2?(u=r[i],a(u)?u:void 0):r[i]&&r[i][d];var u}},1246:function(c,v,e){var r=e(648),a=e(8173),i=e(8554),d=e(7497),u=e(5112)("iterator");c.exports=function(f){if(!i(f))return a(f,u)||a(f,"@@iterator")||d[r(f)]}},4121:function(c,v,e){var r=e(6916),a=e(9662),i=e(9670),d=e(6330),u=e(1246),f=TypeError;c.exports=function(p,b){var y=arguments.length<2?u(p):b;if(a(y))return i(r(y,p));throw f(d(p)+" is not iterable")}},8044:function(c,v,e){var r=e(1702),a=e(3157),i=e(614),d=e(4326),u=e(1340),f=r([].push);c.exports=function(p){if(i(p))return p;if(a(p)){for(var b=p.length,y=[],I=0;I<b;I++){var S=p[I];typeof S=="string"?f(y,S):typeof S!="number"&&d(S)!="Number"&&d(S)!="String"||f(y,u(S))}var E=y.length,T=!0;return function(L,N){if(T)return T=!1,N;if(a(this))return N;for(var M=0;M<E;M++)if(y[M]===L)return N}}}},8173:function(c,v,e){var r=e(9662),a=e(8554);c.exports=function(i,d){var u=i[d];return a(u)?void 0:r(u)}},647:function(c,v,e){var r=e(1702),a=e(7908),i=Math.floor,d=r("".charAt),u=r("".replace),f=r("".slice),p=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,b=/\$([$&'`]|\d{1,2})/g;c.exports=function(y,I,S,E,T,L){var N=S+y.length,M=E.length,P=b;return T!==void 0&&(T=a(T),P=p),u(L,P,function(K,$){var X;switch(d($,0)){case"$":return"$";case"&":return y;case"`":return f(I,0,S);case"'":return f(I,N);case"<":X=T[f($,1,-1)];break;default:var G=+$;if(G===0)return K;if(G>M){var J=i(G/10);return J===0?K:J<=M?E[J-1]===void 0?d($,1):E[J-1]+d($,1):K}X=E[G-1]}return X===void 0?"":X})}},7854:function(c,v,e){var r=function(a){return a&&a.Math==Math&&a};c.exports=r(typeof globalThis=="object"&&globalThis)||r(typeof window=="object"&&window)||r(typeof self=="object"&&self)||r(typeof e.g=="object"&&e.g)||function(){return this}()||this||Function("return this")()},2597:function(c,v,e){var r=e(1702),a=e(7908),i=r({}.hasOwnProperty);c.exports=Object.hasOwn||function(d,u){return i(a(d),u)}},3501:function(c){c.exports={}},490:function(c,v,e){var r=e(5005);c.exports=r("document","documentElement")},4664:function(c,v,e){var r=e(9781),a=e(7293),i=e(317);c.exports=!r&&!a(function(){return Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a!=7})},8361:function(c,v,e){var r=e(1702),a=e(7293),i=e(4326),d=Object,u=r("".split);c.exports=a(function(){return!d("z").propertyIsEnumerable(0)})?function(f){return i(f)=="String"?u(f,""):d(f)}:d},9587:function(c,v,e){var r=e(614),a=e(111),i=e(7674);c.exports=function(d,u,f){var p,b;return i&&r(p=u.constructor)&&p!==f&&a(b=p.prototype)&&b!==f.prototype&&i(d,b),d}},2788:function(c,v,e){var r=e(1702),a=e(614),i=e(5465),d=r(Function.toString);a(i.inspectSource)||(i.inspectSource=function(u){return d(u)}),c.exports=i.inspectSource},9909:function(c,v,e){var r,a,i,d=e(4811),u=e(7854),f=e(111),p=e(8880),b=e(2597),y=e(5465),I=e(6200),S=e(3501),E="Object already initialized",T=u.TypeError,L=u.WeakMap;if(d||y.state){var N=y.state||(y.state=new L);N.get=N.get,N.has=N.has,N.set=N.set,r=function(P,K){if(N.has(P))throw T(E);return K.facade=P,N.set(P,K),K},a=function(P){return N.get(P)||{}},i=function(P){return N.has(P)}}else{var M=I("state");S[M]=!0,r=function(P,K){if(b(P,M))throw T(E);return K.facade=P,p(P,M,K),K},a=function(P){return b(P,M)?P[M]:{}},i=function(P){return b(P,M)}}c.exports={set:r,get:a,has:i,enforce:function(P){return i(P)?a(P):r(P,{})},getterFor:function(P){return function(K){var $;if(!f(K)||($=a(K)).type!==P)throw T("Incompatible receiver, "+P+" required");return $}}}},7659:function(c,v,e){var r=e(5112),a=e(7497),i=r("iterator"),d=Array.prototype;c.exports=function(u){return u!==void 0&&(a.Array===u||d[i]===u)}},3157:function(c,v,e){var r=e(4326);c.exports=Array.isArray||function(a){return r(a)=="Array"}},614:function(c,v,e){var r=e(4154),a=r.all;c.exports=r.IS_HTMLDDA?function(i){return typeof i=="function"||i===a}:function(i){return typeof i=="function"}},4411:function(c,v,e){var r=e(1702),a=e(7293),i=e(614),d=e(648),u=e(5005),f=e(2788),p=function(){},b=[],y=u("Reflect","construct"),I=/^\s*(?:class|function)\b/,S=r(I.exec),E=!I.exec(p),T=function(N){if(!i(N))return!1;try{return y(p,b,N),!0}catch{return!1}},L=function(N){if(!i(N))return!1;switch(d(N)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return E||!!S(I,f(N))}catch{return!0}};L.sham=!0,c.exports=!y||a(function(){var N;return T(T.call)||!T(Object)||!T(function(){N=!0})||N})?L:T},4705:function(c,v,e){var r=e(7293),a=e(614),i=/#|\.prototype\./,d=function(y,I){var S=f[u(y)];return S==b||S!=p&&(a(I)?r(I):!!I)},u=d.normalize=function(y){return String(y).replace(i,".").toLowerCase()},f=d.data={},p=d.NATIVE="N",b=d.POLYFILL="P";c.exports=d},5988:function(c,v,e){var r=e(111),a=Math.floor;c.exports=Number.isInteger||function(i){return!r(i)&&isFinite(i)&&a(i)===i}},8554:function(c){c.exports=function(v){return v==null}},111:function(c,v,e){var r=e(614),a=e(4154),i=a.all;c.exports=a.IS_HTMLDDA?function(d){return typeof d=="object"?d!==null:r(d)||d===i}:function(d){return typeof d=="object"?d!==null:r(d)}},1913:function(c){c.exports=!1},7850:function(c,v,e){var r=e(111),a=e(4326),i=e(5112)("match");c.exports=function(d){var u;return r(d)&&((u=d[i])!==void 0?!!u:a(d)=="RegExp")}},2190:function(c,v,e){var r=e(5005),a=e(614),i=e(7976),d=e(3307),u=Object;c.exports=d?function(f){return typeof f=="symbol"}:function(f){var p=r("Symbol");return a(p)&&i(p.prototype,u(f))}},9212:function(c,v,e){var r=e(6916),a=e(9670),i=e(8173);c.exports=function(d,u,f){var p,b;a(d);try{if(!(p=i(d,"return"))){if(u==="throw")throw f;return f}p=r(p,d)}catch(y){b=!0,p=y}if(u==="throw")throw f;if(b)throw p;return a(p),f}},3061:function(c,v,e){var r=e(3383).IteratorPrototype,a=e(30),i=e(9114),d=e(8003),u=e(7497),f=function(){return this};c.exports=function(p,b,y,I){var S=b+" Iterator";return p.prototype=a(r,{next:i(+!I,y)}),d(p,S,!1,!0),u[S]=f,p}},1656:function(c,v,e){var r=e(2109),a=e(6916),i=e(1913),d=e(6530),u=e(614),f=e(3061),p=e(9518),b=e(7674),y=e(8003),I=e(8880),S=e(8052),E=e(5112),T=e(7497),L=e(3383),N=d.PROPER,M=d.CONFIGURABLE,P=L.IteratorPrototype,K=L.BUGGY_SAFARI_ITERATORS,$=E("iterator"),X="keys",G="values",J="entries",Y=function(){return this};c.exports=function(rt,st,ct,it,B,O,z){f(ct,st,it);var l,g,w,x=function(q){if(q===B&&H)return H;if(!K&&q in V)return V[q];switch(q){case X:case G:case J:return function(){return new ct(this,q)}}return function(){return new ct(this)}},_=st+" Iterator",W=!1,V=rt.prototype,U=V[$]||V["@@iterator"]||B&&V[B],H=!K&&U||x(B),ot=st=="Array"&&V.entries||U;if(ot&&(l=p(ot.call(new rt)))!==Object.prototype&&l.next&&(i||p(l)===P||(b?b(l,P):u(l[$])||S(l,$,Y)),y(l,_,!0,!0),i&&(T[_]=Y)),N&&B==G&&U&&U.name!==G&&(!i&&M?I(V,"name",G):(W=!0,H=function(){return a(U,this)})),B)if(g={values:x(G),keys:O?H:x(X),entries:x(J)},z)for(w in g)(K||W||!(w in V))&&S(V,w,g[w]);else r({target:st,proto:!0,forced:K||W},g);return i&&!z||V[$]===H||S(V,$,H,{name:B}),T[st]=H,g}},3383:function(c,v,e){var r,a,i,d=e(7293),u=e(614),f=e(111),p=e(30),b=e(9518),y=e(8052),I=e(5112),S=e(1913),E=I("iterator"),T=!1;[].keys&&("next"in(i=[].keys())?(a=b(b(i)))!==Object.prototype&&(r=a):T=!0),!f(r)||d(function(){var L={};return r[E].call(L)!==L})?r={}:S&&(r=p(r)),u(r[E])||y(r,E,function(){return this}),c.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:T}},7497:function(c){c.exports={}},6244:function(c,v,e){var r=e(7466);c.exports=function(a){return r(a.length)}},6339:function(c,v,e){var r=e(1702),a=e(7293),i=e(614),d=e(2597),u=e(9781),f=e(6530).CONFIGURABLE,p=e(2788),b=e(9909),y=b.enforce,I=b.get,S=String,E=Object.defineProperty,T=r("".slice),L=r("".replace),N=r([].join),M=u&&!a(function(){return E(function(){},"length",{value:8}).length!==8}),P=String(String).split("String"),K=c.exports=function($,X,G){T(S(X),0,7)==="Symbol("&&(X="["+L(S(X),/^Symbol\(([^)]*)\)/,"$1")+"]"),G&&G.getter&&(X="get "+X),G&&G.setter&&(X="set "+X),(!d($,"name")||f&&$.name!==X)&&(u?E($,"name",{value:X,configurable:!0}):$.name=X),M&&G&&d(G,"arity")&&$.length!==G.arity&&E($,"length",{value:G.arity});try{G&&d(G,"constructor")&&G.constructor?u&&E($,"prototype",{writable:!1}):$.prototype&&($.prototype=void 0)}catch{}var J=y($);return d(J,"source")||(J.source=N(P,typeof X=="string"?X:"")),$};Function.prototype.toString=K(function(){return i(this)&&I(this).source||p(this)},"toString")},4758:function(c){var v=Math.ceil,e=Math.floor;c.exports=Math.trunc||function(r){var a=+r;return(a>0?e:v)(a)}},3929:function(c,v,e){var r=e(7850),a=TypeError;c.exports=function(i){if(r(i))throw a("The method doesn't accept regular expressions");return i}},1574:function(c,v,e){var r=e(9781),a=e(1702),i=e(6916),d=e(7293),u=e(1956),f=e(5181),p=e(5296),b=e(7908),y=e(8361),I=Object.assign,S=Object.defineProperty,E=a([].concat);c.exports=!I||d(function(){if(r&&I({b:1},I(S({},"a",{enumerable:!0,get:function(){S(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var T={},L={},N=Symbol(),M="abcdefghijklmnopqrst";return T[N]=7,M.split("").forEach(function(P){L[P]=P}),I({},T)[N]!=7||u(I({},L)).join("")!=M})?function(T,L){for(var N=b(T),M=arguments.length,P=1,K=f.f,$=p.f;M>P;)for(var X,G=y(arguments[P++]),J=K?E(u(G),K(G)):u(G),Y=J.length,rt=0;Y>rt;)X=J[rt++],r&&!i($,G,X)||(N[X]=G[X]);return N}:I},30:function(c,v,e){var r,a=e(9670),i=e(6048),d=e(748),u=e(3501),f=e(490),p=e(317),b=e(6200),y="prototype",I="script",S=b("IE_PROTO"),E=function(){},T=function(M){return"<"+I+">"+M+"</"+I+">"},L=function(M){M.write(T("")),M.close();var P=M.parentWindow.Object;return M=null,P},N=function(){try{r=new ActiveXObject("htmlfile")}catch{}var M,P,K;N=typeof document<"u"?document.domain&&r?L(r):(P=p("iframe"),K="java"+I+":",P.style.display="none",f.appendChild(P),P.src=String(K),(M=P.contentWindow.document).open(),M.write(T("document.F=Object")),M.close(),M.F):L(r);for(var $=d.length;$--;)delete N[y][d[$]];return N()};u[S]=!0,c.exports=Object.create||function(M,P){var K;return M!==null?(E[y]=a(M),K=new E,E[y]=null,K[S]=M):K=N(),P===void 0?K:i.f(K,P)}},6048:function(c,v,e){var r=e(9781),a=e(3353),i=e(3070),d=e(9670),u=e(5656),f=e(1956);v.f=r&&!a?Object.defineProperties:function(p,b){d(p);for(var y,I=u(b),S=f(b),E=S.length,T=0;E>T;)i.f(p,y=S[T++],I[y]);return p}},3070:function(c,v,e){var r=e(9781),a=e(4664),i=e(3353),d=e(9670),u=e(4948),f=TypeError,p=Object.defineProperty,b=Object.getOwnPropertyDescriptor,y="enumerable",I="configurable",S="writable";v.f=r?i?function(E,T,L){if(d(E),T=u(T),d(L),typeof E=="function"&&T==="prototype"&&"value"in L&&S in L&&!L[S]){var N=b(E,T);N&&N[S]&&(E[T]=L.value,L={configurable:I in L?L[I]:N[I],enumerable:y in L?L[y]:N[y],writable:!1})}return p(E,T,L)}:p:function(E,T,L){if(d(E),T=u(T),d(L),a)try{return p(E,T,L)}catch{}if("get"in L||"set"in L)throw f("Accessors not supported");return"value"in L&&(E[T]=L.value),E}},1236:function(c,v,e){var r=e(9781),a=e(6916),i=e(5296),d=e(9114),u=e(5656),f=e(4948),p=e(2597),b=e(4664),y=Object.getOwnPropertyDescriptor;v.f=r?y:function(I,S){if(I=u(I),S=f(S),b)try{return y(I,S)}catch{}if(p(I,S))return d(!a(i.f,I,S),I[S])}},1156:function(c,v,e){var r=e(4326),a=e(5656),i=e(8006).f,d=e(1589),u=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];c.exports.f=function(f){return u&&r(f)=="Window"?function(p){try{return i(p)}catch{return d(u)}}(f):i(a(f))}},8006:function(c,v,e){var r=e(6324),a=e(748).concat("length","prototype");v.f=Object.getOwnPropertyNames||function(i){return r(i,a)}},5181:function(c,v){v.f=Object.getOwnPropertySymbols},9518:function(c,v,e){var r=e(2597),a=e(614),i=e(7908),d=e(6200),u=e(8544),f=d("IE_PROTO"),p=Object,b=p.prototype;c.exports=u?p.getPrototypeOf:function(y){var I=i(y);if(r(I,f))return I[f];var S=I.constructor;return a(S)&&I instanceof S?S.prototype:I instanceof p?b:null}},7976:function(c,v,e){var r=e(1702);c.exports=r({}.isPrototypeOf)},6324:function(c,v,e){var r=e(1702),a=e(2597),i=e(5656),d=e(1318).indexOf,u=e(3501),f=r([].push);c.exports=function(p,b){var y,I=i(p),S=0,E=[];for(y in I)!a(u,y)&&a(I,y)&&f(E,y);for(;b.length>S;)a(I,y=b[S++])&&(~d(E,y)||f(E,y));return E}},1956:function(c,v,e){var r=e(6324),a=e(748);c.exports=Object.keys||function(i){return r(i,a)}},5296:function(c,v){var e={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,a=r&&!e.call({1:2},1);v.f=a?function(i){var d=r(this,i);return!!d&&d.enumerable}:e},9026:function(c,v,e){var r=e(1913),a=e(7854),i=e(7293),d=e(8008);c.exports=r||!i(function(){if(!(d&&d<535)){var u=Math.random();__defineSetter__.call(null,u,function(){}),delete a[u]}})},7674:function(c,v,e){var r=e(5668),a=e(9670),i=e(6077);c.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var d,u=!1,f={};try{(d=r(Object.prototype,"__proto__","set"))(f,[]),u=f instanceof Array}catch{}return function(p,b){return a(p),i(b),u?d(p,b):p.__proto__=b,p}}():void 0)},288:function(c,v,e){var r=e(1694),a=e(648);c.exports=r?{}.toString:function(){return"[object "+a(this)+"]"}},2140:function(c,v,e){var r=e(6916),a=e(614),i=e(111),d=TypeError;c.exports=function(u,f){var p,b;if(f==="string"&&a(p=u.toString)&&!i(b=r(p,u))||a(p=u.valueOf)&&!i(b=r(p,u))||f!=="string"&&a(p=u.toString)&&!i(b=r(p,u)))return b;throw d("Can't convert object to primitive value")}},3887:function(c,v,e){var r=e(5005),a=e(1702),i=e(8006),d=e(5181),u=e(9670),f=a([].concat);c.exports=r("Reflect","ownKeys")||function(p){var b=i.f(u(p)),y=d.f;return y?f(b,y(p)):b}},857:function(c,v,e){var r=e(7854);c.exports=r},2626:function(c,v,e){var r=e(3070).f;c.exports=function(a,i,d){d in a||r(a,d,{configurable:!0,get:function(){return i[d]},set:function(u){i[d]=u}})}},7651:function(c,v,e){var r=e(6916),a=e(9670),i=e(614),d=e(4326),u=e(2261),f=TypeError;c.exports=function(p,b){var y=p.exec;if(i(y)){var I=r(y,p,b);return I!==null&&a(I),I}if(d(p)==="RegExp")return r(u,p,b);throw f("RegExp#exec called on incompatible receiver")}},2261:function(c,v,e){var r,a,i=e(6916),d=e(1702),u=e(1340),f=e(7066),p=e(2999),b=e(2309),y=e(30),I=e(9909).get,S=e(9441),E=e(7168),T=b("native-string-replace",String.prototype.replace),L=RegExp.prototype.exec,N=L,M=d("".charAt),P=d("".indexOf),K=d("".replace),$=d("".slice),X=(a=/b*/g,i(L,r=/a/,"a"),i(L,a,"a"),r.lastIndex!==0||a.lastIndex!==0),G=p.BROKEN_CARET,J=/()??/.exec("")[1]!==void 0;(X||J||G||S||E)&&(N=function(Y){var rt,st,ct,it,B,O,z,l=this,g=I(l),w=u(Y),x=g.raw;if(x)return x.lastIndex=l.lastIndex,rt=i(N,x,w),l.lastIndex=x.lastIndex,rt;var _=g.groups,W=G&&l.sticky,V=i(f,l),U=l.source,H=0,ot=w;if(W&&(V=K(V,"y",""),P(V,"g")===-1&&(V+="g"),ot=$(w,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&M(w,l.lastIndex-1)!==`
|
|
1243
|
+
`)&&(U="(?: "+U+")",ot=" "+ot,H++),st=new RegExp("^(?:"+U+")",V)),J&&(st=new RegExp("^"+U+"$(?!\\s)",V)),X&&(ct=l.lastIndex),it=i(L,W?st:l,ot),W?it?(it.input=$(it.input,H),it[0]=$(it[0],H),it.index=l.lastIndex,l.lastIndex+=it[0].length):l.lastIndex=0:X&&it&&(l.lastIndex=l.global?it.index+it[0].length:ct),J&&it&&it.length>1&&i(T,it[0],st,function(){for(B=1;B<arguments.length-2;B++)arguments[B]===void 0&&(it[B]=void 0)}),it&&_)for(it.groups=O=y(null),B=0;B<_.length;B++)O[(z=_[B])[0]]=it[z[1]];return it}),c.exports=N},7066:function(c,v,e){var r=e(9670);c.exports=function(){var a=r(this),i="";return a.hasIndices&&(i+="d"),a.global&&(i+="g"),a.ignoreCase&&(i+="i"),a.multiline&&(i+="m"),a.dotAll&&(i+="s"),a.unicode&&(i+="u"),a.unicodeSets&&(i+="v"),a.sticky&&(i+="y"),i}},4706:function(c,v,e){var r=e(6916),a=e(2597),i=e(7976),d=e(7066),u=RegExp.prototype;c.exports=function(f){var p=f.flags;return p!==void 0||"flags"in u||a(f,"flags")||!i(u,f)?p:r(d,f)}},2999:function(c,v,e){var r=e(7293),a=e(7854).RegExp,i=r(function(){var f=a("a","y");return f.lastIndex=2,f.exec("abcd")!=null}),d=i||r(function(){return!a("a","y").sticky}),u=i||r(function(){var f=a("^r","gy");return f.lastIndex=2,f.exec("str")!=null});c.exports={BROKEN_CARET:u,MISSED_STICKY:d,UNSUPPORTED_Y:i}},9441:function(c,v,e){var r=e(7293),a=e(7854).RegExp;c.exports=r(function(){var i=a(".","s");return!(i.dotAll&&i.exec(`
|
|
1244
|
+
`)&&i.flags==="s")})},7168:function(c,v,e){var r=e(7293),a=e(7854).RegExp;c.exports=r(function(){var i=a("(?<a>b)","g");return i.exec("b").groups.a!=="b"||"b".replace(i,"$<a>c")!=="bc"})},4488:function(c,v,e){var r=e(8554),a=TypeError;c.exports=function(i){if(r(i))throw a("Can't call method on "+i);return i}},6340:function(c,v,e){var r=e(5005),a=e(7045),i=e(5112),d=e(9781),u=i("species");c.exports=function(f){var p=r(f);d&&p&&!p[u]&&a(p,u,{configurable:!0,get:function(){return this}})}},8003:function(c,v,e){var r=e(3070).f,a=e(2597),i=e(5112)("toStringTag");c.exports=function(d,u,f){d&&!f&&(d=d.prototype),d&&!a(d,i)&&r(d,i,{configurable:!0,value:u})}},6200:function(c,v,e){var r=e(2309),a=e(9711),i=r("keys");c.exports=function(d){return i[d]||(i[d]=a(d))}},5465:function(c,v,e){var r=e(7854),a=e(3072),i="__core-js_shared__",d=r[i]||a(i,{});c.exports=d},2309:function(c,v,e){var r=e(1913),a=e(5465);(c.exports=function(i,d){return a[i]||(a[i]=d!==void 0?d:{})})("versions",[]).push({version:"3.30.2",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"})},6707:function(c,v,e){var r=e(9670),a=e(9483),i=e(8554),d=e(5112)("species");c.exports=function(u,f){var p,b=r(u).constructor;return b===void 0||i(p=r(b)[d])?f:a(p)}},8710:function(c,v,e){var r=e(1702),a=e(9303),i=e(1340),d=e(4488),u=r("".charAt),f=r("".charCodeAt),p=r("".slice),b=function(y){return function(I,S){var E,T,L=i(d(I)),N=a(S),M=L.length;return N<0||N>=M?y?"":void 0:(E=f(L,N))<55296||E>56319||N+1===M||(T=f(L,N+1))<56320||T>57343?y?u(L,N):E:y?p(L,N,N+2):T-56320+(E-55296<<10)+65536}};c.exports={codeAt:b(!1),charAt:b(!0)}},6091:function(c,v,e){var r=e(6530).PROPER,a=e(7293),i=e(1361);c.exports=function(d){return a(function(){return!!i[d]()||"
"[d]()!=="
"||r&&i[d].name!==d})}},3111:function(c,v,e){var r=e(1702),a=e(4488),i=e(1340),d=e(1361),u=r("".replace),f=RegExp("^["+d+"]+"),p=RegExp("(^|[^"+d+"])["+d+"]+$"),b=function(y){return function(I){var S=i(a(I));return 1&y&&(S=u(S,f,"")),2&y&&(S=u(S,p,"$1")),S}};c.exports={start:b(1),end:b(2),trim:b(3)}},6293:function(c,v,e){var r=e(7392),a=e(7293),i=e(7854).String;c.exports=!!Object.getOwnPropertySymbols&&!a(function(){var d=Symbol();return!i(d)||!(Object(d)instanceof Symbol)||!Symbol.sham&&r&&r<41})},6532:function(c,v,e){var r=e(6916),a=e(5005),i=e(5112),d=e(8052);c.exports=function(){var u=a("Symbol"),f=u&&u.prototype,p=f&&f.valueOf,b=i("toPrimitive");f&&!f[b]&&d(f,b,function(y){return r(p,this)},{arity:1})}},2015:function(c,v,e){var r=e(6293);c.exports=r&&!!Symbol.for&&!!Symbol.keyFor},863:function(c,v,e){var r=e(1702);c.exports=r(1 .valueOf)},1400:function(c,v,e){var r=e(9303),a=Math.max,i=Math.min;c.exports=function(d,u){var f=r(d);return f<0?a(f+u,0):i(f,u)}},5656:function(c,v,e){var r=e(8361),a=e(4488);c.exports=function(i){return r(a(i))}},9303:function(c,v,e){var r=e(4758);c.exports=function(a){var i=+a;return i!=i||i===0?0:r(i)}},7466:function(c,v,e){var r=e(9303),a=Math.min;c.exports=function(i){return i>0?a(r(i),9007199254740991):0}},7908:function(c,v,e){var r=e(4488),a=Object;c.exports=function(i){return a(r(i))}},7593:function(c,v,e){var r=e(6916),a=e(111),i=e(2190),d=e(8173),u=e(2140),f=e(5112),p=TypeError,b=f("toPrimitive");c.exports=function(y,I){if(!a(y)||i(y))return y;var S,E=d(y,b);if(E){if(I===void 0&&(I="default"),S=r(E,y,I),!a(S)||i(S))return S;throw p("Can't convert object to primitive value")}return I===void 0&&(I="number"),u(y,I)}},4948:function(c,v,e){var r=e(7593),a=e(2190);c.exports=function(i){var d=r(i,"string");return a(d)?d:d+""}},1694:function(c,v,e){var r={};r[e(5112)("toStringTag")]="z",c.exports=String(r)==="[object z]"},1340:function(c,v,e){var r=e(648),a=String;c.exports=function(i){if(r(i)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return a(i)}},6330:function(c){var v=String;c.exports=function(e){try{return v(e)}catch{return"Object"}}},9711:function(c,v,e){var r=e(1702),a=0,i=Math.random(),d=r(1 .toString);c.exports=function(u){return"Symbol("+(u===void 0?"":u)+")_"+d(++a+i,36)}},3307:function(c,v,e){var r=e(6293);c.exports=r&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},3353:function(c,v,e){var r=e(9781),a=e(7293);c.exports=r&&a(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},4811:function(c,v,e){var r=e(7854),a=e(614),i=r.WeakMap;c.exports=a(i)&&/native code/.test(String(i))},6800:function(c,v,e){var r=e(857),a=e(2597),i=e(6061),d=e(3070).f;c.exports=function(u){var f=r.Symbol||(r.Symbol={});a(f,u)||d(f,u,{value:i.f(u)})}},6061:function(c,v,e){var r=e(5112);v.f=r},5112:function(c,v,e){var r=e(7854),a=e(2309),i=e(2597),d=e(9711),u=e(6293),f=e(3307),p=r.Symbol,b=a("wks"),y=f?p.for||p:p&&p.withoutSetter||d;c.exports=function(I){return i(b,I)||(b[I]=u&&i(p,I)?p[I]:y("Symbol."+I)),b[I]}},1361:function(c){c.exports=`
|
|
1245
|
+
\v\f\r \u2028\u2029\uFEFF`},2222:function(c,v,e){var r=e(2109),a=e(7293),i=e(3157),d=e(111),u=e(7908),f=e(6244),p=e(7207),b=e(6135),y=e(5417),I=e(1194),S=e(5112),E=e(7392),T=S("isConcatSpreadable"),L=E>=51||!a(function(){var M=[];return M[T]=!1,M.concat()[0]!==M}),N=function(M){if(!d(M))return!1;var P=M[T];return P!==void 0?!!P:i(M)};r({target:"Array",proto:!0,arity:1,forced:!L||!I("concat")},{concat:function(M){var P,K,$,X,G,J=u(this),Y=y(J,0),rt=0;for(P=-1,$=arguments.length;P<$;P++)if(N(G=P===-1?J:arguments[P]))for(X=f(G),p(rt+X),K=0;K<X;K++,rt++)K in G&&b(Y,rt,G[K]);else p(rt+1),b(Y,rt++,G);return Y.length=rt,Y}})},7327:function(c,v,e){var r=e(2109),a=e(2092).filter;r({target:"Array",proto:!0,forced:!e(1194)("filter")},{filter:function(i){return a(this,i,arguments.length>1?arguments[1]:void 0)}})},1038:function(c,v,e){var r=e(2109),a=e(8457);r({target:"Array",stat:!0,forced:!e(7072)(function(i){Array.from(i)})},{from:a})},6699:function(c,v,e){var r=e(2109),a=e(1318).includes,i=e(7293),d=e(1223);r({target:"Array",proto:!0,forced:i(function(){return!Array(1).includes()})},{includes:function(u){return a(this,u,arguments.length>1?arguments[1]:void 0)}}),d("includes")},2772:function(c,v,e){var r=e(2109),a=e(1470),i=e(1318).indexOf,d=e(9341),u=a([].indexOf),f=!!u&&1/u([1],1,-0)<0;r({target:"Array",proto:!0,forced:f||!d("indexOf")},{indexOf:function(p){var b=arguments.length>1?arguments[1]:void 0;return f?u(this,p,b)||0:i(this,p,b)}})},6992:function(c,v,e){var r=e(5656),a=e(1223),i=e(7497),d=e(9909),u=e(3070).f,f=e(1656),p=e(6178),b=e(1913),y=e(9781),I="Array Iterator",S=d.set,E=d.getterFor(I);c.exports=f(Array,"Array",function(L,N){S(this,{type:I,target:r(L),index:0,kind:N})},function(){var L=E(this),N=L.target,M=L.kind,P=L.index++;return!N||P>=N.length?(L.target=void 0,p(void 0,!0)):p(M=="keys"?P:M=="values"?N[P]:[P,N[P]],!1)},"values");var T=i.Arguments=i.Array;if(a("keys"),a("values"),a("entries"),!b&&y&&T.name!=="values")try{u(T,"name",{value:"values"})}catch{}},9600:function(c,v,e){var r=e(2109),a=e(1702),i=e(8361),d=e(5656),u=e(9341),f=a([].join);r({target:"Array",proto:!0,forced:i!=Object||!u("join",",")},{join:function(p){return f(d(this),p===void 0?",":p)}})},1249:function(c,v,e){var r=e(2109),a=e(2092).map;r({target:"Array",proto:!0,forced:!e(1194)("map")},{map:function(i){return a(this,i,arguments.length>1?arguments[1]:void 0)}})},5827:function(c,v,e){var r=e(2109),a=e(3671).left,i=e(9341),d=e(7392);r({target:"Array",proto:!0,forced:!e(5268)&&d>79&&d<83||!i("reduce")},{reduce:function(u){var f=arguments.length;return a(this,u,f,f>1?arguments[1]:void 0)}})},7042:function(c,v,e){var r=e(2109),a=e(3157),i=e(4411),d=e(111),u=e(1400),f=e(6244),p=e(5656),b=e(6135),y=e(5112),I=e(1194),S=e(206),E=I("slice"),T=y("species"),L=Array,N=Math.max;r({target:"Array",proto:!0,forced:!E},{slice:function(M,P){var K,$,X,G=p(this),J=f(G),Y=u(M,J),rt=u(P===void 0?J:P,J);if(a(G)&&(K=G.constructor,(i(K)&&(K===L||a(K.prototype))||d(K)&&(K=K[T])===null)&&(K=void 0),K===L||K===void 0))return S(G,Y,rt);for($=new(K===void 0?L:K)(N(rt-Y,0)),X=0;Y<rt;Y++,X++)Y in G&&b($,X,G[Y]);return $.length=X,$}})},2707:function(c,v,e){var r=e(2109),a=e(1702),i=e(9662),d=e(7908),u=e(6244),f=e(5117),p=e(1340),b=e(7293),y=e(4362),I=e(9341),S=e(8886),E=e(256),T=e(7392),L=e(8008),N=[],M=a(N.sort),P=a(N.push),K=b(function(){N.sort(void 0)}),$=b(function(){N.sort(null)}),X=I("sort"),G=!b(function(){if(T)return T<70;if(!(S&&S>3)){if(E)return!0;if(L)return L<603;var J,Y,rt,st,ct="";for(J=65;J<76;J++){switch(Y=String.fromCharCode(J),J){case 66:case 69:case 70:case 72:rt=3;break;case 68:case 71:rt=4;break;default:rt=2}for(st=0;st<47;st++)N.push({k:Y+st,v:rt})}for(N.sort(function(it,B){return B.v-it.v}),st=0;st<N.length;st++)Y=N[st].k.charAt(0),ct.charAt(ct.length-1)!==Y&&(ct+=Y);return ct!=="DGBEFHACIJK"}});r({target:"Array",proto:!0,forced:K||!$||!X||!G},{sort:function(J){J!==void 0&&i(J);var Y=d(this);if(G)return J===void 0?M(Y):M(Y,J);var rt,st,ct=[],it=u(Y);for(st=0;st<it;st++)st in Y&&P(ct,Y[st]);for(y(ct,function(B){return function(O,z){return z===void 0?-1:O===void 0?1:B!==void 0?+B(O,z)||0:p(O)>p(z)?1:-1}}(J)),rt=u(ct),st=0;st<rt;)Y[st]=ct[st++];for(;st<it;)f(Y,st++);return Y}})},561:function(c,v,e){var r=e(2109),a=e(7908),i=e(1400),d=e(9303),u=e(6244),f=e(3658),p=e(7207),b=e(5417),y=e(6135),I=e(5117),S=e(1194)("splice"),E=Math.max,T=Math.min;r({target:"Array",proto:!0,forced:!S},{splice:function(L,N){var M,P,K,$,X,G,J=a(this),Y=u(J),rt=i(L,Y),st=arguments.length;for(st===0?M=P=0:st===1?(M=0,P=Y-rt):(M=st-2,P=T(E(d(N),0),Y-rt)),p(Y+M-P),K=b(J,P),$=0;$<P;$++)(X=rt+$)in J&&y(K,$,J[X]);if(K.length=P,M<P){for($=rt;$<Y-P;$++)G=$+M,(X=$+P)in J?J[G]=J[X]:I(J,G);for($=Y;$>Y-P+M;$--)I(J,$-1)}else if(M>P)for($=Y-P;$>rt;$--)G=$+M-1,(X=$+P-1)in J?J[G]=J[X]:I(J,G);for($=0;$<M;$++)J[$+rt]=arguments[$+2];return f(J,Y-P+M),K}})},6078:function(c,v,e){var r=e(2597),a=e(8052),i=e(8709),d=e(5112)("toPrimitive"),u=Date.prototype;r(u,d)||a(u,d,i)},8309:function(c,v,e){var r=e(9781),a=e(6530).EXISTS,i=e(1702),d=e(7045),u=Function.prototype,f=i(u.toString),p=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,b=i(p.exec);r&&!a&&d(u,"name",{configurable:!0,get:function(){try{return b(p,f(this))[1]}catch{return""}}})},8862:function(c,v,e){var r=e(2109),a=e(5005),i=e(2104),d=e(6916),u=e(1702),f=e(7293),p=e(614),b=e(2190),y=e(206),I=e(8044),S=e(6293),E=String,T=a("JSON","stringify"),L=u(/./.exec),N=u("".charAt),M=u("".charCodeAt),P=u("".replace),K=u(1 .toString),$=/[\uD800-\uDFFF]/g,X=/^[\uD800-\uDBFF]$/,G=/^[\uDC00-\uDFFF]$/,J=!S||f(function(){var ct=a("Symbol")();return T([ct])!="[null]"||T({a:ct})!="{}"||T(Object(ct))!="{}"}),Y=f(function(){return T("\uDF06\uD834")!=='"\\udf06\\ud834"'||T("\uDEAD")!=='"\\udead"'}),rt=function(ct,it){var B=y(arguments),O=I(it);if(p(O)||ct!==void 0&&!b(ct))return B[1]=function(z,l){if(p(O)&&(l=d(O,this,E(z),l)),!b(l))return l},i(T,null,B)},st=function(ct,it,B){var O=N(B,it-1),z=N(B,it+1);return L(X,ct)&&!L(G,z)||L(G,ct)&&!L(X,O)?"\\u"+K(M(ct,0),16):ct};T&&r({target:"JSON",stat:!0,arity:3,forced:J||Y},{stringify:function(ct,it,B){var O=y(arguments),z=i(J?rt:T,null,O);return Y&&typeof z=="string"?P(z,$,st):z}})},9653:function(c,v,e){var r=e(2109),a=e(1913),i=e(9781),d=e(7854),u=e(857),f=e(1702),p=e(4705),b=e(2597),y=e(9587),I=e(7976),S=e(2190),E=e(7593),T=e(7293),L=e(8006).f,N=e(1236).f,M=e(3070).f,P=e(863),K=e(3111).trim,$="Number",X=d[$],G=u[$],J=X.prototype,Y=d.TypeError,rt=f("".slice),st=f("".charCodeAt),ct=function(z){var l,g,w,x,_,W,V,U,H=E(z,"number");if(S(H))throw Y("Cannot convert a Symbol value to a number");if(typeof H=="string"&&H.length>2){if(H=K(H),(l=st(H,0))===43||l===45){if((g=st(H,2))===88||g===120)return NaN}else if(l===48){switch(st(H,1)){case 66:case 98:w=2,x=49;break;case 79:case 111:w=8,x=55;break;default:return+H}for(W=(_=rt(H,2)).length,V=0;V<W;V++)if((U=st(_,V))<48||U>x)return NaN;return parseInt(_,w)}}return+H},it=p($,!X(" 0o1")||!X("0b1")||X("+0x1")),B=function(z){var l,g=arguments.length<1?0:X(function(w){var x=E(w,"number");return typeof x=="bigint"?x:ct(x)}(z));return I(J,l=this)&&T(function(){P(l)})?y(Object(g),this,B):g};B.prototype=J,it&&!a&&(J.constructor=B),r({global:!0,constructor:!0,wrap:!0,forced:it},{Number:B});var O=function(z,l){for(var g,w=i?L(l):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),x=0;w.length>x;x++)b(l,g=w[x])&&!b(z,g)&&M(z,g,N(l,g))};a&&G&&O(u[$],G),(it||a)&&O(u[$],X)},3161:function(c,v,e){e(2109)({target:"Number",stat:!0},{isInteger:e(5988)})},9601:function(c,v,e){var r=e(2109),a=e(1574);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==a},{assign:a})},9595:function(c,v,e){var r=e(2109),a=e(9781),i=e(9026),d=e(9662),u=e(7908),f=e(3070);a&&r({target:"Object",proto:!0,forced:i},{__defineGetter__:function(p,b){f.f(u(this),p,{get:d(b),enumerable:!0,configurable:!0})}})},5003:function(c,v,e){var r=e(2109),a=e(7293),i=e(5656),d=e(1236).f,u=e(9781);r({target:"Object",stat:!0,forced:!u||a(function(){d(1)}),sham:!u},{getOwnPropertyDescriptor:function(f,p){return d(i(f),p)}})},9337:function(c,v,e){var r=e(2109),a=e(9781),i=e(3887),d=e(5656),u=e(1236),f=e(6135);r({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(p){for(var b,y,I=d(p),S=u.f,E=i(I),T={},L=0;E.length>L;)(y=S(I,b=E[L++]))!==void 0&&f(T,b,y);return T}})},6210:function(c,v,e){var r=e(2109),a=e(7293),i=e(1156).f;r({target:"Object",stat:!0,forced:a(function(){return!Object.getOwnPropertyNames(1)})},{getOwnPropertyNames:i})},9660:function(c,v,e){var r=e(2109),a=e(6293),i=e(7293),d=e(5181),u=e(7908);r({target:"Object",stat:!0,forced:!a||i(function(){d.f(1)})},{getOwnPropertySymbols:function(f){var p=d.f;return p?p(u(f)):[]}})},7941:function(c,v,e){var r=e(2109),a=e(7908),i=e(1956);r({target:"Object",stat:!0,forced:e(7293)(function(){i(1)})},{keys:function(d){return i(a(d))}})},1539:function(c,v,e){var r=e(1694),a=e(8052),i=e(288);r||a(Object.prototype,"toString",i,{unsafe:!0})},4603:function(c,v,e){var r=e(9781),a=e(7854),i=e(1702),d=e(4705),u=e(9587),f=e(8880),p=e(8006).f,b=e(7976),y=e(7850),I=e(1340),S=e(4706),E=e(2999),T=e(2626),L=e(8052),N=e(7293),M=e(2597),P=e(9909).enforce,K=e(6340),$=e(5112),X=e(9441),G=e(7168),J=$("match"),Y=a.RegExp,rt=Y.prototype,st=a.SyntaxError,ct=i(rt.exec),it=i("".charAt),B=i("".replace),O=i("".indexOf),z=i("".slice),l=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,g=/a/g,w=/a/g,x=new Y(g)!==g,_=E.MISSED_STICKY,W=E.UNSUPPORTED_Y;if(d("RegExp",r&&(!x||_||X||G||N(function(){return w[J]=!1,Y(g)!=g||Y(w)==w||Y(g,"i")!="/a/i"})))){for(var V=function(ot,q){var Z,at,nt,dt,mt,jt,It=b(rt,this),wt=y(ot),Pt=q===void 0,Gt=[],yt=ot;if(!It&&wt&&Pt&&ot.constructor===V)return ot;if((wt||b(rt,ot))&&(ot=ot.source,Pt&&(q=S(yt))),ot=ot===void 0?"":I(ot),q=q===void 0?"":I(q),yt=ot,X&&"dotAll"in g&&(at=!!q&&O(q,"s")>-1)&&(q=B(q,/s/g,"")),Z=q,_&&"sticky"in g&&(nt=!!q&&O(q,"y")>-1)&&W&&(q=B(q,/y/g,"")),G&&(dt=function(St){for(var kt,gt=St.length,Et=0,_t="",Lt=[],ee={},ne=!1,Qt=!1,ge=0,Ht="";Et<=gt;Et++){if((kt=it(St,Et))==="\\")kt+=it(St,++Et);else if(kt==="]")ne=!1;else if(!ne)switch(!0){case kt==="[":ne=!0;break;case kt==="(":ct(l,z(St,Et+1))&&(Et+=2,Qt=!0),_t+=kt,ge++;continue;case(kt===">"&&Qt):if(Ht===""||M(ee,Ht))throw new st("Invalid capture group name");ee[Ht]=!0,Lt[Lt.length]=[Ht,ge],Qt=!1,Ht="";continue}Qt?Ht+=kt:_t+=kt}return[_t,Lt]}(ot),ot=dt[0],Gt=dt[1]),mt=u(Y(ot,q),It?this:rt,V),(at||nt||Gt.length)&&(jt=P(mt),at&&(jt.dotAll=!0,jt.raw=V(function(St){for(var kt,gt=St.length,Et=0,_t="",Lt=!1;Et<=gt;Et++)(kt=it(St,Et))!=="\\"?Lt||kt!=="."?(kt==="["?Lt=!0:kt==="]"&&(Lt=!1),_t+=kt):_t+="[\\s\\S]":_t+=kt+it(St,++Et);return _t}(ot),Z)),nt&&(jt.sticky=!0),Gt.length&&(jt.groups=Gt)),ot!==yt)try{f(mt,"source",yt===""?"(?:)":yt)}catch{}return mt},U=p(Y),H=0;U.length>H;)T(V,Y,U[H++]);rt.constructor=V,V.prototype=rt,L(a,"RegExp",V,{constructor:!0})}K("RegExp")},4916:function(c,v,e){var r=e(2109),a=e(2261);r({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},9714:function(c,v,e){var r=e(6530).PROPER,a=e(8052),i=e(9670),d=e(1340),u=e(7293),f=e(4706),p="toString",b=RegExp.prototype[p],y=u(function(){return b.call({source:"a",flags:"b"})!="/a/b"}),I=r&&b.name!=p;(y||I)&&a(RegExp.prototype,p,function(){var S=i(this);return"/"+d(S.source)+"/"+d(f(S))},{unsafe:!0})},2023:function(c,v,e){var r=e(2109),a=e(1702),i=e(3929),d=e(4488),u=e(1340),f=e(4964),p=a("".indexOf);r({target:"String",proto:!0,forced:!f("includes")},{includes:function(b){return!!~p(u(d(this)),u(i(b)),arguments.length>1?arguments[1]:void 0)}})},8783:function(c,v,e){var r=e(8710).charAt,a=e(1340),i=e(9909),d=e(1656),u=e(6178),f="String Iterator",p=i.set,b=i.getterFor(f);d(String,"String",function(y){p(this,{type:f,string:a(y),index:0})},function(){var y,I=b(this),S=I.string,E=I.index;return E>=S.length?u(void 0,!0):(y=r(S,E),I.index+=y.length,u(y,!1))})},6373:function(c,v,e){var r=e(2109),a=e(6916),i=e(1470),d=e(3061),u=e(6178),f=e(4488),p=e(7466),b=e(1340),y=e(9670),I=e(8554),S=e(4326),E=e(7850),T=e(4706),L=e(8173),N=e(8052),M=e(7293),P=e(5112),K=e(6707),$=e(1530),X=e(7651),G=e(9909),J=e(1913),Y=P("matchAll"),rt="RegExp String",st=rt+" Iterator",ct=G.set,it=G.getterFor(st),B=RegExp.prototype,O=TypeError,z=i("".indexOf),l=i("".matchAll),g=!!l&&!M(function(){l("a",/./)}),w=d(function(_,W,V,U){ct(this,{type:st,regexp:_,string:W,global:V,unicode:U,done:!1})},rt,function(){var _=it(this);if(_.done)return u(void 0,!0);var W=_.regexp,V=_.string,U=X(W,V);return U===null?(_.done=!0,u(void 0,!0)):_.global?(b(U[0])===""&&(W.lastIndex=$(V,p(W.lastIndex),_.unicode)),u(U,!1)):(_.done=!0,u(U,!1))}),x=function(_){var W,V,U,H=y(this),ot=b(_),q=K(H,RegExp),Z=b(T(H));return W=new q(q===RegExp?H.source:H,Z),V=!!~z(Z,"g"),U=!!~z(Z,"u"),W.lastIndex=p(H.lastIndex),new w(W,ot,V,U)};r({target:"String",proto:!0,forced:g},{matchAll:function(_){var W,V,U,H,ot=f(this);if(I(_)){if(g)return l(ot,_)}else{if(E(_)&&(W=b(f(T(_))),!~z(W,"g")))throw O("`.matchAll` does not allow non-global regexes");if(g)return l(ot,_);if((U=L(_,Y))===void 0&&J&&S(_)=="RegExp"&&(U=x),U)return a(U,_,ot)}return V=b(ot),H=new RegExp(_,"g"),J?a(x,H,V):H[Y](V)}}),J||Y in B||N(B,Y,x)},4723:function(c,v,e){var r=e(6916),a=e(7007),i=e(9670),d=e(8554),u=e(7466),f=e(1340),p=e(4488),b=e(8173),y=e(1530),I=e(7651);a("match",function(S,E,T){return[function(L){var N=p(this),M=d(L)?void 0:b(L,S);return M?r(M,L,N):new RegExp(L)[S](f(N))},function(L){var N=i(this),M=f(L),P=T(E,N,M);if(P.done)return P.value;if(!N.global)return I(N,M);var K=N.unicode;N.lastIndex=0;for(var $,X=[],G=0;($=I(N,M))!==null;){var J=f($[0]);X[G]=J,J===""&&(N.lastIndex=y(M,u(N.lastIndex),K)),G++}return G===0?null:X}]})},5306:function(c,v,e){var r=e(2104),a=e(6916),i=e(1702),d=e(7007),u=e(7293),f=e(9670),p=e(614),b=e(8554),y=e(9303),I=e(7466),S=e(1340),E=e(4488),T=e(1530),L=e(8173),N=e(647),M=e(7651),P=e(5112)("replace"),K=Math.max,$=Math.min,X=i([].concat),G=i([].push),J=i("".indexOf),Y=i("".slice),rt="a".replace(/./,"$0")==="$0",st=!!/./[P]&&/./[P]("a","$0")==="";d("replace",function(ct,it,B){var O=st?"$":"$0";return[function(z,l){var g=E(this),w=b(z)?void 0:L(z,P);return w?a(w,z,g,l):a(it,S(g),z,l)},function(z,l){var g=f(this),w=S(z);if(typeof l=="string"&&J(l,O)===-1&&J(l,"$<")===-1){var x=B(it,g,w,l);if(x.done)return x.value}var _=p(l);_||(l=S(l));var W=g.global;if(W){var V=g.unicode;g.lastIndex=0}for(var U=[];;){var H=M(g,w);if(H===null||(G(U,H),!W))break;S(H[0])===""&&(g.lastIndex=T(w,I(g.lastIndex),V))}for(var ot,q="",Z=0,at=0;at<U.length;at++){for(var nt=S((H=U[at])[0]),dt=K($(y(H.index),w.length),0),mt=[],jt=1;jt<H.length;jt++)G(mt,(ot=H[jt])===void 0?ot:String(ot));var It=H.groups;if(_){var wt=X([nt],mt,dt,w);It!==void 0&&G(wt,It);var Pt=S(r(l,void 0,wt))}else Pt=N(nt,w,dt,mt,It,l);dt>=Z&&(q+=Y(w,Z,dt)+Pt,Z=dt+nt.length)}return q+Y(w,Z)}]},!!u(function(){var ct=/./;return ct.exec=function(){var it=[];return it.groups={a:"7"},it},"".replace(ct,"$<a>")!=="7"})||!rt||st)},3123:function(c,v,e){var r=e(2104),a=e(6916),i=e(1702),d=e(7007),u=e(9670),f=e(8554),p=e(7850),b=e(4488),y=e(6707),I=e(1530),S=e(7466),E=e(1340),T=e(8173),L=e(1589),N=e(7651),M=e(2261),P=e(2999),K=e(7293),$=P.UNSUPPORTED_Y,X=4294967295,G=Math.min,J=[].push,Y=i(/./.exec),rt=i(J),st=i("".slice),ct=!K(function(){var it=/(?:)/,B=it.exec;it.exec=function(){return B.apply(this,arguments)};var O="ab".split(it);return O.length!==2||O[0]!=="a"||O[1]!=="b"});d("split",function(it,B,O){var z;return z="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(l,g){var w=E(b(this)),x=g===void 0?X:g>>>0;if(x===0)return[];if(l===void 0)return[w];if(!p(l))return a(B,w,l,x);for(var _,W,V,U=[],H=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(l.sticky?"y":""),ot=0,q=new RegExp(l.source,H+"g");(_=a(M,q,w))&&!((W=q.lastIndex)>ot&&(rt(U,st(w,ot,_.index)),_.length>1&&_.index<w.length&&r(J,U,L(_,1)),V=_[0].length,ot=W,U.length>=x));)q.lastIndex===_.index&&q.lastIndex++;return ot===w.length?!V&&Y(q,"")||rt(U,""):rt(U,st(w,ot)),U.length>x?L(U,0,x):U}:"0".split(void 0,0).length?function(l,g){return l===void 0&&g===0?[]:a(B,this,l,g)}:B,[function(l,g){var w=b(this),x=f(l)?void 0:T(l,it);return x?a(x,l,w,g):a(z,E(w),l,g)},function(l,g){var w=u(this),x=E(l),_=O(z,w,x,g,z!==B);if(_.done)return _.value;var W=y(w,RegExp),V=w.unicode,U=(w.ignoreCase?"i":"")+(w.multiline?"m":"")+(w.unicode?"u":"")+($?"g":"y"),H=new W($?"^(?:"+w.source+")":w,U),ot=g===void 0?X:g>>>0;if(ot===0)return[];if(x.length===0)return N(H,x)===null?[x]:[];for(var q=0,Z=0,at=[];Z<x.length;){H.lastIndex=$?0:Z;var nt,dt=N(H,$?st(x,Z):x);if(dt===null||(nt=G(S(H.lastIndex+($?Z:0)),x.length))===q)Z=I(x,Z,V);else{if(rt(at,st(x,q,Z)),at.length===ot)return at;for(var mt=1;mt<=dt.length-1;mt++)if(rt(at,dt[mt]),at.length===ot)return at;Z=q=nt}}return rt(at,st(x,q)),at}]},!ct,$)},3210:function(c,v,e){var r=e(2109),a=e(3111).trim;r({target:"String",proto:!0,forced:e(6091)("trim")},{trim:function(){return a(this)}})},4032:function(c,v,e){var r=e(2109),a=e(7854),i=e(6916),d=e(1702),u=e(1913),f=e(9781),p=e(6293),b=e(7293),y=e(2597),I=e(7976),S=e(9670),E=e(5656),T=e(4948),L=e(1340),N=e(9114),M=e(30),P=e(1956),K=e(8006),$=e(1156),X=e(5181),G=e(1236),J=e(3070),Y=e(6048),rt=e(5296),st=e(8052),ct=e(7045),it=e(2309),B=e(6200),O=e(3501),z=e(9711),l=e(5112),g=e(6061),w=e(6800),x=e(6532),_=e(8003),W=e(9909),V=e(2092).forEach,U=B("hidden"),H="Symbol",ot="prototype",q=W.set,Z=W.getterFor(H),at=Object[ot],nt=a.Symbol,dt=nt&&nt[ot],mt=a.TypeError,jt=a.QObject,It=G.f,wt=J.f,Pt=$.f,Gt=rt.f,yt=d([].push),St=it("symbols"),kt=it("op-symbols"),gt=it("wks"),Et=!jt||!jt[ot]||!jt[ot].findChild,_t=f&&b(function(){return M(wt({},"a",{get:function(){return wt(this,"a",{value:7}).a}})).a!=7})?function(ut,pt,ht){var vt=It(at,pt);vt&&delete at[pt],wt(ut,pt,ht),vt&&ut!==at&&wt(at,pt,vt)}:wt,Lt=function(ut,pt){var ht=St[ut]=M(dt);return q(ht,{type:H,tag:ut,description:pt}),f||(ht.description=pt),ht},ee=function(ut,pt,ht){ut===at&&ee(kt,pt,ht),S(ut);var vt=T(pt);return S(ht),y(St,vt)?(ht.enumerable?(y(ut,U)&&ut[U][vt]&&(ut[U][vt]=!1),ht=M(ht,{enumerable:N(0,!1)})):(y(ut,U)||wt(ut,U,N(1,{})),ut[U][vt]=!0),_t(ut,vt,ht)):wt(ut,vt,ht)},ne=function(ut,pt){S(ut);var ht=E(pt),vt=P(ht).concat(xo(ht));return V(vt,function($t){f&&!i(Qt,ht,$t)||ee(ut,$t,ht[$t])}),ut},Qt=function(ut){var pt=T(ut),ht=i(Gt,this,pt);return!(this===at&&y(St,pt)&&!y(kt,pt))&&(!(ht||!y(this,pt)||!y(St,pt)||y(this,U)&&this[U][pt])||ht)},ge=function(ut,pt){var ht=E(ut),vt=T(pt);if(ht!==at||!y(St,vt)||y(kt,vt)){var $t=It(ht,vt);return!$t||!y(St,vt)||y(ht,U)&&ht[U][vt]||($t.enumerable=!0),$t}},Ht=function(ut){var pt=Pt(E(ut)),ht=[];return V(pt,function(vt){y(St,vt)||y(O,vt)||yt(ht,vt)}),ht},xo=function(ut){var pt=ut===at,ht=Pt(pt?kt:E(ut)),vt=[];return V(ht,function($t){!y(St,$t)||pt&&!y(at,$t)||yt(vt,St[$t])}),vt};p||(nt=function(){if(I(dt,this))throw mt("Symbol is not a constructor");var ut=arguments.length&&arguments[0]!==void 0?L(arguments[0]):void 0,pt=z(ut),ht=function(vt){this===at&&i(ht,kt,vt),y(this,U)&&y(this[U],pt)&&(this[U][pt]=!1),_t(this,pt,N(1,vt))};return f&&Et&&_t(at,pt,{configurable:!0,set:ht}),Lt(pt,ut)},st(dt=nt[ot],"toString",function(){return Z(this).tag}),st(nt,"withoutSetter",function(ut){return Lt(z(ut),ut)}),rt.f=Qt,J.f=ee,Y.f=ne,G.f=ge,K.f=$.f=Ht,X.f=xo,g.f=function(ut){return Lt(l(ut),ut)},f&&(ct(dt,"description",{configurable:!0,get:function(){return Z(this).description}}),u||st(at,"propertyIsEnumerable",Qt,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!p,sham:!p},{Symbol:nt}),V(P(gt),function(ut){w(ut)}),r({target:H,stat:!0,forced:!p},{useSetter:function(){Et=!0},useSimple:function(){Et=!1}}),r({target:"Object",stat:!0,forced:!p,sham:!f},{create:function(ut,pt){return pt===void 0?M(ut):ne(M(ut),pt)},defineProperty:ee,defineProperties:ne,getOwnPropertyDescriptor:ge}),r({target:"Object",stat:!0,forced:!p},{getOwnPropertyNames:Ht}),x(),_(nt,H),O[U]=!0},1817:function(c,v,e){var r=e(2109),a=e(9781),i=e(7854),d=e(1702),u=e(2597),f=e(614),p=e(7976),b=e(1340),y=e(7045),I=e(9920),S=i.Symbol,E=S&&S.prototype;if(a&&f(S)&&(!("description"in E)||S().description!==void 0)){var T={},L=function(){var G=arguments.length<1||arguments[0]===void 0?void 0:b(arguments[0]),J=p(E,this)?new S(G):G===void 0?S():S(G);return G===""&&(T[J]=!0),J};I(L,S),L.prototype=E,E.constructor=L;var N=String(S("test"))=="Symbol(test)",M=d(E.valueOf),P=d(E.toString),K=/^Symbol\((.*)\)[^)]+$/,$=d("".replace),X=d("".slice);y(E,"description",{configurable:!0,get:function(){var G=M(this);if(u(T,G))return"";var J=P(G),Y=N?X(J,7,-1):$(J,K,"$1");return Y===""?void 0:Y}}),r({global:!0,constructor:!0,forced:!0},{Symbol:L})}},763:function(c,v,e){var r=e(2109),a=e(5005),i=e(2597),d=e(1340),u=e(2309),f=e(2015),p=u("string-to-symbol-registry"),b=u("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!f},{for:function(y){var I=d(y);if(i(p,I))return p[I];var S=a("Symbol")(I);return p[I]=S,b[S]=I,S}})},2165:function(c,v,e){e(6800)("iterator")},2526:function(c,v,e){e(4032),e(763),e(6620),e(8862),e(9660)},6620:function(c,v,e){var r=e(2109),a=e(2597),i=e(2190),d=e(6330),u=e(2309),f=e(2015),p=u("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!f},{keyFor:function(b){if(!i(b))throw TypeError(d(b)+" is not a symbol");if(a(p,b))return p[b]}})},6649:function(c,v,e){var r=e(6800),a=e(6532);r("toPrimitive"),a()},3728:function(c,v,e){e(6373)},4747:function(c,v,e){var r=e(7854),a=e(8324),i=e(8509),d=e(8533),u=e(8880),f=function(b){if(b&&b.forEach!==d)try{u(b,"forEach",d)}catch{b.forEach=d}};for(var p in a)a[p]&&f(r[p]&&r[p].prototype);f(i)},3948:function(c,v,e){var r=e(7854),a=e(8324),i=e(8509),d=e(6992),u=e(8880),f=e(5112),p=f("iterator"),b=f("toStringTag"),y=d.values,I=function(E,T){if(E){if(E[p]!==y)try{u(E,p,y)}catch{E[p]=y}if(E[b]||u(E,b,T),a[T]){for(var L in d)if(E[L]!==d[L])try{u(E,L,d[L])}catch{E[L]=d[L]}}}};for(var S in a)I(r[S]&&r[S].prototype,S);I(i,"DOMTokenList")}},R={};function D(c){var v=R[c];if(v!==void 0)return v.exports;var e=R[c]={exports:{}};return F[c].call(e.exports,e,e.exports,D),e.exports}D.d=function(c,v){for(var e in v)D.o(v,e)&&!D.o(c,e)&&Object.defineProperty(c,e,{enumerable:!0,get:v[e]})},D.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),D.o=function(c,v){return Object.prototype.hasOwnProperty.call(c,v)},D.r=function(c){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})};var Q={};return function(){function c(B){return function(O){if(Array.isArray(O))return e(O)}(B)||function(O){if(typeof Symbol<"u"&&O[Symbol.iterator]!=null||O["@@iterator"]!=null)return Array.from(O)}(B)||v(B)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1246
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function v(B,O){if(B){if(typeof B=="string")return e(B,O);var z=Object.prototype.toString.call(B).slice(8,-1);return z==="Object"&&B.constructor&&(z=B.constructor.name),z==="Map"||z==="Set"?Array.from(B):z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(z)?e(B,O):void 0}}function e(B,O){(O==null||O>B.length)&&(O=B.length);for(var z=0,l=new Array(O);z<O;z++)l[z]=B[z];return l}function r(B){return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(O){return typeof O}:function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O},r(B)}function a(B,O){for(var z=0;z<O.length;z++){var l=O[z];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(B,d(l.key),l)}}function i(B,O,z){return(O=d(O))in B?Object.defineProperty(B,O,{value:z,enumerable:!0,configurable:!0,writable:!0}):B[O]=z,B}function d(B){var O=function(z,l){if(r(z)!=="object"||z===null)return z;var g=z[Symbol.toPrimitive];if(g!==void 0){var w=g.call(z,l||"default");if(r(w)!=="object")return w;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(z)}(B,"string");return r(O)==="symbol"?O:String(O)}D.r(Q),D.d(Q,{SimpleKeyboard:function(){return ct},default:function(){return it}}),D(3210),D(4916),D(5306),D(2772),D(8309),D(3123),D(1539),D(9714),D(561),D(9600),D(9595),D(7042),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(B){if("Element"in B){var O="classList",z="prototype",l=B.Element[z],g=Object,w=String[z].trim||function(){return this.replace(/^\s+|\s+$/g,"")},x=Array[z].indexOf||function(q){for(var Z=0,at=this.length;Z<at;Z++)if(Z in this&&this[Z]===q)return Z;return-1},_=function(q,Z){this.name=q,this.code=DOMException[q],this.message=Z},W=function(q,Z){if(Z==="")throw new _("SYNTAX_ERR","The token must not be empty.");if(/\s/.test(Z))throw new _("INVALID_CHARACTER_ERR","The token must not contain space characters.");return x.call(q,Z)},V=function(q){for(var Z=w.call(q.getAttribute("class")||""),at=Z?Z.split(/\s+/):[],nt=0,dt=at.length;nt<dt;nt++)this.push(at[nt]);this._updateClassName=function(){q.setAttribute("class",this.toString())}},U=V[z]=[],H=function(){return new V(this)};if(_[z]=Error[z],U.item=function(q){return this[q]||null},U.contains=function(q){return~W(this,q+"")},U.add=function(){var q,Z=arguments,at=0,nt=Z.length,dt=!1;do~W(this,q=Z[at]+"")||(this.push(q),dt=!0);while(++at<nt);dt&&this._updateClassName()},U.remove=function(){var q,Z,at=arguments,nt=0,dt=at.length,mt=!1;do for(Z=W(this,q=at[nt]+"");~Z;)this.splice(Z,1),mt=!0,Z=W(this,q);while(++nt<dt);mt&&this._updateClassName()},U.toggle=function(q,Z){var at=this.contains(q),nt=at?Z!==!0&&"remove":Z!==!1&&"add";return nt&&this[nt](q),Z===!0||Z===!1?Z:!at},U.replace=function(q,Z){var at=W(q+"");~at&&(this.splice(at,1,Z),this._updateClassName())},U.toString=function(){return this.join(" ")},g.defineProperty){var ot={get:H,enumerable:!0,configurable:!0};try{g.defineProperty(l,O,ot)}catch(q){q.number!==void 0&&q.number!==-2146823252||(ot.enumerable=!1,g.defineProperty(l,O,ot))}}else g[z].__defineGetter__&&l.__defineGetter__(O,H)}}(self),function(){var B=document.createElement("_");if(B.classList.add("c1","c2"),!B.classList.contains("c2")){var O=function(l){var g=DOMTokenList.prototype[l];DOMTokenList.prototype[l]=function(w){var x,_=arguments.length;for(x=0;x<_;x++)w=arguments[x],g.call(this,w)}};O("add"),O("remove")}if(B.classList.toggle("c3",!1),B.classList.contains("c3")){var z=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(l,g){return 1 in arguments&&!this.contains(l)==!g?g:z.call(this,l)}}"replace"in document.createElement("_").classList||(DOMTokenList.prototype.replace=function(l,g){var w=this.toString().split(" "),x=w.indexOf(l+"");~x&&(w=w.slice(x),this.remove.apply(this,w),this.add(g),this.add.apply(this,w.slice(1)))}),B=null}()),D(7327),D(2222),D(7941),D(4603),D(3728),D(2707),D(6699),D(2023),D(4747),D(9601),D(1249),D(1038),D(8783),D(6649),D(6078),D(2526),D(1817),D(9653),D(5003),D(9337),D(2165),D(6992),D(3948),D(3161),D(4723),D(5827),D(6210);var u=function(){function B(g){var w=g.getOptions,x=g.getCaretPosition,_=g.getCaretPositionEnd,W=g.dispatch;(function(V,U){if(!(V instanceof U))throw new TypeError("Cannot call a class as a function")})(this,B),i(this,"getOptions",void 0),i(this,"getCaretPosition",void 0),i(this,"getCaretPositionEnd",void 0),i(this,"dispatch",void 0),i(this,"maxLengthReached",void 0),i(this,"isStandardButton",function(V){return V&&!(V[0]==="{"&&V[V.length-1]==="}")}),this.getOptions=w,this.getCaretPosition=x,this.getCaretPositionEnd=_,this.dispatch=W,B.bindMethods(B,this)}var O,z,l;return O=B,z=[{key:"getButtonType",value:function(g){return g.includes("{")&&g.includes("}")&&g!=="{//}"?"functionBtn":"standardBtn"}},{key:"getButtonClass",value:function(g){var w=this.getButtonType(g),x=g.replace("{","").replace("}",""),_="";return w!=="standardBtn"&&(_=" hg-button-".concat(x)),"hg-".concat(w).concat(_)}},{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(g,w){return(w=arguments.length>2&&arguments[2]!==void 0&&arguments[2]?Object.assign({},this.getDefaultDiplay(),w):w||this.getDefaultDiplay())[g]||g}},{key:"getUpdatedInput",value:function(g,w,x){var _=arguments.length>3&&arguments[3]!==void 0?arguments[3]:x,W=arguments.length>4&&arguments[4]!==void 0&&arguments[4],V=this.getOptions(),U=[x,_,W],H=w;return(g==="{bksp}"||g==="{backspace}")&&H.length>0?H=this.removeAt.apply(this,[H].concat(U)):(g==="{delete}"||g==="{forwarddelete}")&&H.length>0?H=this.removeForwardsAt.apply(this,[H].concat(U)):g==="{space}"?H=this.addStringAt.apply(this,[H," "].concat(U)):g!=="{tab}"||typeof V.tabCharOnTab=="boolean"&&V.tabCharOnTab===!1?g!=="{enter}"&&g!=="{numpadenter}"||!V.newLineOnEnter?g.includes("numpad")&&Number.isInteger(Number(g[g.length-2]))?H=this.addStringAt.apply(this,[H,g[g.length-2]].concat(U)):g==="{numpaddivide}"?H=this.addStringAt.apply(this,[H,"/"].concat(U)):g==="{numpadmultiply}"?H=this.addStringAt.apply(this,[H,"*"].concat(U)):g==="{numpadsubtract}"?H=this.addStringAt.apply(this,[H,"-"].concat(U)):g==="{numpadadd}"?H=this.addStringAt.apply(this,[H,"+"].concat(U)):g==="{numpaddecimal}"?H=this.addStringAt.apply(this,[H,"."].concat(U)):g==="{"||g==="}"?H=this.addStringAt.apply(this,[H,g].concat(U)):g.includes("{")||g.includes("}")||(H=this.addStringAt.apply(this,[H,g].concat(U))):H=this.addStringAt.apply(this,[H,`
|
|
1243
1247
|
`].concat(U)):H=this.addStringAt.apply(this,[H," "].concat(U)),V.debug&&console.log("Input will be: "+H),H}},{key:"updateCaretPos",value:function(g){var w=arguments.length>1&&arguments[1]!==void 0&&arguments[1],x=this.updateCaretPosAction(g,w);this.dispatch(function(_){_.setCaretPosition(x)})}},{key:"updateCaretPosAction",value:function(g){var w=arguments.length>1&&arguments[1]!==void 0&&arguments[1],x=this.getOptions(),_=this.getCaretPosition();return _!=null&&(w?_>0&&(_-=g):_+=g),x.debug&&console.log("Caret at:",_),_}},{key:"addStringAt",value:function(g,w){var x,_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:g.length,W=arguments.length>3&&arguments[3]!==void 0?arguments[3]:g.length,V=arguments.length>4&&arguments[4]!==void 0&&arguments[4];return _||_===0?(x=[g.slice(0,_),w,g.slice(W)].join(""),this.isMaxLengthReached()||V&&this.updateCaretPos(w.length)):x=g+w,x}},{key:"removeAt",value:function(g){var w,x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:g.length,_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:g.length,W=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(x===0&&_===0)return g;if(x===_){var V=/([\uD800-\uDBFF][\uDC00-\uDFFF])/g;x&&x>=0?g.substring(x-2,x).match(V)?(w=g.substr(0,x-2)+g.substr(x),W&&this.updateCaretPos(2,!0)):(w=g.substr(0,x-1)+g.substr(x),W&&this.updateCaretPos(1,!0)):g.slice(-2).match(V)?(w=g.slice(0,-2),W&&this.updateCaretPos(2,!0)):(w=g.slice(0,-1),W&&this.updateCaretPos(1,!0))}else w=g.slice(0,x)+g.slice(_),W&&this.dispatch(function(U){U.setCaretPosition(x)});return w}},{key:"removeForwardsAt",value:function(g){var w,x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:g.length,_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:g.length,W=arguments.length>3&&arguments[3]!==void 0&&arguments[3];return g!=null&&g.length&&x!==null?(x===_?w=g.substring(x,x+2).match(/([\uD800-\uDBFF][\uDC00-\uDFFF])/g)?g.substr(0,x)+g.substr(x+2):g.substr(0,x)+g.substr(x+1):(w=g.slice(0,x)+g.slice(_),W&&this.dispatch(function(V){V.setCaretPosition(x)})),w):g}},{key:"handleMaxLength",value:function(g,w){var x=this.getOptions(),_=x.maxLength,W=g[x.inputName||"default"],V=w.length-1>=_;if(w.length<=W.length)return!1;if(Number.isInteger(_))return x.debug&&console.log("maxLength (num) reached:",V),V?(this.maxLengthReached=!0,!0):(this.maxLengthReached=!1,!1);if(r(_)==="object"){var U=w.length-1>=_[x.inputName||"default"];return x.debug&&console.log("maxLength (obj) reached:",U),U?(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(g){return g?g.toLowerCase().trim().split(/[.\-_\s]/g).reduce(function(w,x){return x.length?w+x[0].toUpperCase()+x.slice(1):w}):""}},{key:"chunkArray",value:function(g,w){return c(Array(Math.ceil(g.length/w))).map(function(x,_){return g.slice(w*_,w+w*_)})}},{key:"escapeRegex",value:function(g){return g.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}},{key:"getRtlOffset",value:function(g,w){var x=g,_=w.indexOf("");return _<g&&_!=-1&&x--,w.indexOf("")<g&&_!=-1&&x--,x<0?0:x}}],l=[{key:"bindMethods",value:function(g,w){var x,_=function(V,U){var H=typeof Symbol<"u"&&V[Symbol.iterator]||V["@@iterator"];if(!H){if(Array.isArray(V)||(H=v(V))||U&&V&&typeof V.length=="number"){H&&(V=H);var ot=0,q=function(){};return{s:q,n:function(){return ot>=V.length?{done:!0}:{done:!1,value:V[ot++]}},e:function(dt){throw dt},f:q}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1244
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Z,at=!0,nt=!1;return{s:function(){H=H.call(V)},n:function(){var dt=H.next();return at=dt.done,dt},e:function(dt){nt=!0,Z=dt},f:function(){try{at||H.return==null||H.return()}finally{if(nt)throw Z}}}}(Object.getOwnPropertyNames(g.prototype));try{for(_.s();!(x=_.n()).done;){var W=x.value;W==="constructor"||W==="bindMethods"||(w[W]=w[W].bind(w))}}catch(V){_.e(V)}finally{_.f()}}}],z&&
|
|
1245
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function $(B,O){(O==null||O>B.length)&&(O=B.length);for(var z=0,l=new Array(O);z<O;z++)l[z]=B[z];return l}function X(B){return X=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(O){return typeof O}:function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O},X(B)}function G(B,O){var z=Object.keys(B);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(B);O&&(l=l.filter(function(g){return Object.getOwnPropertyDescriptor(B,g).enumerable})),z.push.apply(z,l)}return z}function J(B,O){for(var z=0;z<O.length;z++){var l=O[z];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(B,rt(l.key),l)}}function Y(B,O,z){return(O=rt(O))in B?Object.defineProperty(B,O,{value:z,enumerable:!0,configurable:!0,writable:!0}):B[O]=z,B}function rt(B){var O=function(z,l){if(X(z)!=="object"||z===null)return z;var g=z[Symbol.toPrimitive];if(g!==void 0){var w=g.call(z,l||"default");if(X(w)!=="object")return w;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(z)}(B,"string");return X(O)==="symbol"?O:String(O)}var st=function(){function B(l,g){var w=this;if(function(q,Z){if(!(q instanceof Z))throw new TypeError("Cannot call a class as a function")}(this,B),Y(this,"input",void 0),Y(this,"options",void 0),Y(this,"utilities",void 0),Y(this,"caretPosition",void 0),Y(this,"caretPositionEnd",void 0),Y(this,"keyboardDOM",void 0),Y(this,"keyboardPluginClasses",void 0),Y(this,"keyboardDOMClass",void 0),Y(this,"buttonElements",void 0),Y(this,"currentInstanceName",void 0),Y(this,"allKeyboardInstances",void 0),Y(this,"keyboardInstanceNames",void 0),Y(this,"isFirstKeyboardInstance",void 0),Y(this,"physicalKeyboard",void 0),Y(this,"modules",void 0),Y(this,"activeButtonClass",void 0),Y(this,"holdInteractionTimeout",void 0),Y(this,"holdTimeout",void 0),Y(this,"isMouseHold",void 0),Y(this,"initialized",void 0),Y(this,"candidateBox",void 0),Y(this,"keyboardRowsDOM",void 0),Y(this,"defaultName","default"),Y(this,"activeInputElement",null),Y(this,"handleParams",function(q,Z){var at,nt,dt;if(typeof q=="string")at=q.split(".").join(""),nt=document.querySelector(".".concat(at)),dt=Z;else if(q instanceof HTMLDivElement){if(!q.className)throw console.warn("Any DOM element passed as parameter must have a class."),new Error("KEYBOARD_DOM_CLASS_ERROR");at=q.className.split(" ")[0],nt=q,dt=Z}else at="simple-keyboard",nt=document.querySelector(".".concat(at)),dt=q;return{keyboardDOMClass:at,keyboardDOM:nt,options:dt}}),Y(this,"getOptions",function(){return w.options}),Y(this,"getCaretPosition",function(){return w.caretPosition}),Y(this,"getCaretPositionEnd",function(){return w.caretPositionEnd}),Y(this,"registerModule",function(q,Z){w.modules[q]||(w.modules[q]={}),Z(w.modules[q])}),Y(this,"getKeyboardClassString",function(){for(var q=arguments.length,Z=new Array(q),at=0;at<q;at++)Z[at]=arguments[at];return[w.keyboardDOMClass].concat(Z).filter(function(nt){return!!nt}).join(" ")}),typeof window<"u"){var x=this.handleParams(l,g),_=x.keyboardDOMClass,W=x.keyboardDOM,V=x.options,U=V===void 0?{}:V;this.utilities=new f({getOptions:this.getOptions,getCaretPosition:this.getCaretPosition,getCaretPositionEnd:this.getCaretPositionEnd,dispatch:this.dispatch}),this.caretPosition=null,this.caretPositionEnd=null,this.keyboardDOM=W,this.options=function(q){for(var Z=1;Z<arguments.length;Z++){var at=arguments[Z]!=null?arguments[Z]:{};Z%2?G(Object(at),!0).forEach(function(nt){Y(q,nt,at[nt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(q,Object.getOwnPropertyDescriptors(at)):G(Object(at)).forEach(function(nt){Object.defineProperty(q,nt,Object.getOwnPropertyDescriptor(at,nt))})}return q}({layoutName:"default",theme:"hg-theme-default",inputName:"default",preventMouseDownDefault:!1,enableLayoutCandidates:!0,excludeFromLayout:{}},U),this.keyboardPluginClasses="",f.bindMethods(B,this);var H=this.options.inputName,ot=H===void 0?this.defaultName:H;if(this.input={},this.input[ot]="",this.keyboardDOMClass=_,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 S({dispatch:this.dispatch,getOptions:this.getOptions}),this.candidateBox=this.options.enableLayoutCandidates?new P({utilities:this.utilities,options:this.options}):null,!this.keyboardDOM)throw console.warn('".'.concat(_,'" was not found in the DOM.')),new Error("KEYBOARD_DOM_ERROR");this.render(),this.modules={},this.loadModules()}}var O,z;return O=B,z=[{key:"setCaretPosition",value:function(l){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l;this.caretPosition=l,this.caretPositionEnd=g}},{key:"getInputCandidates",value:function(l){var g=this,w=this.options,x=w.layoutCandidates,_=w.layoutCandidatesCaseSensitiveMatch;if(!x||X(x)!=="object")return{};var W=Object.keys(x).filter(function(H){var ot=l.substring(0,g.getCaretPositionEnd()||0)||l,q=new RegExp("".concat(g.utilities.escapeRegex(H),"$"),_?"g":"gi");return!!K(ot.matchAll(q)).length});if(W.length>1){var V=W.sort(function(H,ot){return ot.length-H.length})[0];return{candidateKey:V,candidateValue:x[V]}}if(W.length){var U=W[0];return{candidateKey:U,candidateValue:x[U]}}return{}}},{key:"showCandidatesBox",value:function(l,g,w){var x=this;this.candidateBox&&this.candidateBox.show({candidateValue:g,targetElement:w,onSelect:function(_,W){var V=x.options,U=V.layoutCandidatesCaseSensitiveMatch,H=V.disableCandidateNormalization,ot=V.enableLayoutCandidatesKeyPress,q=_;H||(q=_.normalize("NFD"));var Z=x.getInput(x.options.inputName,!0),at=x.getCaretPositionEnd()||0,nt=Z.substring(0,at||0)||Z,dt=new RegExp("".concat(x.utilities.escapeRegex(l),"$"),U?"g":"gi"),mt=nt.replace(dt,q),jt=Z.replace(nt,mt),It=mt.length-nt.length,wt=(at||Z.length)+It;wt<0&&(wt=0),x.setInput(jt,x.options.inputName,!0),x.setCaretPosition(wt),ot&&typeof x.options.onKeyPress=="function"&&x.options.onKeyPress(_,W),typeof x.options.onChange=="function"&&x.options.onChange(x.getInput(x.options.inputName,!0),W),typeof x.options.onChangeAll=="function"&&x.options.onChangeAll(x.getAllInputs(),W)}})}},{key:"handleButtonClicked",value:function(l,g){var w=this.options,x=w.inputName,_=x===void 0?this.defaultName:x,W=w.debug;if(l!=="{//}"){this.input[_]||(this.input[_]="");var V=this.utilities.getUpdatedInput(l,this.input[_],this.caretPosition,this.caretPositionEnd);if(this.utilities.isStandardButton(l)&&this.activeInputElement&&this.input[_]&&this.input[_]===V&&this.caretPosition===0&&this.caretPositionEnd===V.length)return this.setInput("",this.options.inputName,!0),this.setCaretPosition(0),this.activeInputElement.value="",this.activeInputElement.setSelectionRange(0,0),void this.handleButtonClicked(l,g);if(typeof this.options.onKeyPress=="function"&&this.options.onKeyPress(l,g),this.input[_]!==V&&(!this.options.inputPattern||this.options.inputPattern&&this.inputPatternIsValid(V))){if(this.options.maxLength&&this.utilities.handleMaxLength(this.input,V))return;var U=this.utilities.getUpdatedInput(l,this.input[_],this.caretPosition,this.caretPositionEnd,!0);if(this.setInput(U,this.options.inputName,!0),W&&console.log("Input changed:",this.getAllInputs()),this.options.debug&&console.log("Caret at: ",this.getCaretPosition(),this.getCaretPositionEnd(),"(".concat(this.keyboardDOMClass,")"),g==null?void 0:g.type),this.options.syncInstanceInputs&&this.syncInstanceInputs(),typeof this.options.onChange=="function"&&this.options.onChange(this.getInput(this.options.inputName,!0),g),typeof this.options.onChangeAll=="function"&&this.options.onChangeAll(this.getAllInputs(),g),g!=null&&g.target&&this.options.enableLayoutCandidates){var H,ot=this.getInputCandidates(V),q=ot.candidateKey,Z=ot.candidateValue;q&&Z?this.showCandidatesBox(q,Z,this.keyboardDOM):(H=this.candidateBox)===null||H===void 0||H.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)),W&&console.log("Key pressed:",l)}}},{key:"getMouseHold",value:function(){return this.isMouseHold}},{key:"setMouseHold",value:function(l){this.options.syncInstanceInputs?this.dispatch(function(g){g.isMouseHold=l}):this.isMouseHold=l}},{key:"handleButtonMouseDown",value:function(l,g){var w=this;g&&(this.options.preventMouseDownDefault&&g.preventDefault(),this.options.stopMouseDownPropagation&&g.stopPropagation(),g.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(){(w.getMouseHold()&&(!l.includes("{")&&!l.includes("}")||l==="{delete}"||l==="{backspace}"||l==="{bksp}"||l==="{space}"||l==="{tab}")||l==="{arrowright}"||l==="{arrowleft}"||l==="{arrowup}"||l==="{arrowdown}")&&(w.options.debug&&console.log("Button held:",l),w.handleButtonHold(l)),clearTimeout(w.holdTimeout)},500))}},{key:"handleButtonMouseUp",value:function(l,g){var w=this;g&&(this.options.preventMouseUpDefault&&g.preventDefault&&g.preventDefault(),this.options.stopMouseUpPropagation&&g.stopPropagation&&g.stopPropagation(),!(g.target===this.keyboardDOM||g.target&&this.keyboardDOM.contains(g.target)||this.candidateBox&&this.candidateBox.candidateBoxElement&&(g.target===this.candidateBox.candidateBoxElement||g.target&&this.candidateBox.candidateBoxElement.contains(g.target)))&&this.candidateBox&&this.candidateBox.destroy()),this.recurseButtons(function(x){x.classList.remove(w.activeButtonClass)}),this.setMouseHold(!1),this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),l&&typeof this.options.onKeyReleased=="function"&&this.options.onKeyReleased(l,g)}},{key:"handleKeyboardContainerMouseDown",value:function(l){this.options.preventMouseDownDefault&&l.preventDefault()}},{key:"handleButtonHold",value:function(l){var g=this;this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),this.holdInteractionTimeout=window.setTimeout(function(){g.getMouseHold()?(g.handleButtonClicked(l),g.handleButtonHold(l)):clearTimeout(g.holdInteractionTimeout)},100)}},{key:"syncInstanceInputs",value:function(){var l=this;this.dispatch(function(g){g.replaceInput(l.input),g.setCaretPosition(l.caretPosition,l.caretPositionEnd)})}},{key:"clearInput",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.inputName||this.defaultName;this.input[l]="",this.setCaretPosition(0),this.options.syncInstanceInputs&&this.syncInstanceInputs()}},{key:"getInput",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.inputName||this.defaultName,g=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return this.options.syncInstanceInputs&&!g&&this.syncInstanceInputs(),this.options.rtl?""+this.input[l].replace("","").replace("","")+"":this.input[l]}},{key:"getAllInputs",value:function(){var l=this,g={};return Object.keys(this.input).forEach(function(w){g[w]=l.getInput(w,!0)}),g}},{key:"setInput",value:function(l){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.inputName||this.defaultName,w=arguments.length>2?arguments[2]:void 0;this.input[g]=l,!w&&this.options.syncInstanceInputs&&this.syncInstanceInputs()}},{key:"replaceInput",value:function(l){this.input=l}},{key:"setOptions",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},g=this.changedOptions(l);this.options=Object.assign(this.options,l),g.length&&(this.options.debug&&console.log("changedOptions",g),this.onSetOptions(g),this.render())}},{key:"changedOptions",value:function(l){var g=this;return Object.keys(l).filter(function(w){return JSON.stringify(l[w])!==JSON.stringify(g.options[w])})}},{key:"onSetOptions",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];l.includes("layoutName")&&this.candidateBox&&this.candidateBox.destroy(),(l.includes("layoutCandidatesPageSize")||l.includes("layoutCandidates"))&&this.candidateBox&&(this.candidateBox.destroy(),this.candidateBox=new P({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(l){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(g){l(window.SimpleKeyboardInstances[g],g)})}},{key:"addButtonTheme",value:function(l,g){var w=this;g&&l&&(l.split(" ").forEach(function(x){g.split(" ").forEach(function(_){w.options.buttonTheme||(w.options.buttonTheme=[]);var W=!1;w.options.buttonTheme.map(function(V){if(V!=null&&V.class.split(" ").includes(_)){W=!0;var U=V.buttons.split(" ");U.includes(x)||(W=!0,U.push(x),V.buttons=U.join(" "))}return V}),W||w.options.buttonTheme.push({class:_,buttons:l})})}),this.render())}},{key:"removeButtonTheme",value:function(l,g){var w=this;if(!l&&!g)return this.options.buttonTheme=[],void this.render();l&&Array.isArray(this.options.buttonTheme)&&this.options.buttonTheme.length&&(l.split(" ").forEach(function(x){var _,W;(_=w.options)===null||_===void 0||(W=_.buttonTheme)===null||W===void 0||W.map(function(V,U){if(V&&g&&g.includes(V.class)||!g){var H,ot,q=(H=V)===null||H===void 0?void 0:H.buttons.split(" ").filter(function(Z){return Z!==x});V&&q!=null&&q.length?V.buttons=q.join(" "):((ot=w.options.buttonTheme)===null||ot===void 0||ot.splice(U,1),V=null)}return V})}),this.render())}},{key:"getButtonElement",value:function(l){var g,w=this.buttonElements[l];return w&&(g=w.length>1?w:w[0]),g}},{key:"inputPatternIsValid",value:function(l){var g,w=this.options.inputPattern;if((g=w instanceof RegExp?w:w[this.options.inputName||this.defaultName])&&l){var x=g.test(l);return this.options.debug&&console.log('inputPattern ("'.concat(g,'"): ').concat(x?"passed":"did not pass!")),x}return!0}},{key:"setEventListeners",value:function(){if(this.isFirstKeyboardInstance||!this.allKeyboardInstances){this.options.debug&&console.log("Caret handling started (".concat(this.keyboardDOMClass,")"));var l=this.options.physicalKeyboardHighlightPreventDefault,g=l!==void 0&&l;document.addEventListener("keyup",this.handleKeyUp,g),document.addEventListener("keydown",this.handleKeyDown,g),document.addEventListener("mouseup",this.handleMouseUp),document.addEventListener("touchend",this.handleTouchEnd),document.addEventListener("selectionchange",this.handleSelectionChange),document.addEventListener("select",this.handleSelect)}}},{key:"handleKeyUp",value:function(l){this.caretEventHandler(l),this.options.physicalKeyboardHighlight&&this.physicalKeyboard.handleHighlightKeyUp(l)}},{key:"handleKeyDown",value:function(l){this.options.physicalKeyboardHighlight&&this.physicalKeyboard.handleHighlightKeyDown(l)}},{key:"handleMouseUp",value:function(l){this.caretEventHandler(l)}},{key:"handleTouchEnd",value:function(l){this.caretEventHandler(l)}},{key:"handleSelect",value:function(l){this.caretEventHandler(l)}},{key:"handleSelectionChange",value:function(l){navigator.userAgent.includes("Firefox")||this.caretEventHandler(l)}},{key:"caretEventHandler",value:function(l){var g,w=this;l.target.tagName&&(g=l.target.tagName.toLowerCase()),this.dispatch(function(x){var _=l.target===x.keyboardDOM||l.target&&x.keyboardDOM.contains(l.target);if(w.options.syncInstanceInputs&&Array.isArray(l.path)&&(_=l.path.some(function(U){var H;return U==null||(H=U.hasAttribute)===null||H===void 0?void 0:H.call(U,"data-skInstance")})),(g==="textarea"||g==="input"&&["text","search","url","tel","password"].includes(l.target.type))&&!x.options.disableCaretPositioning){var W=l.target.selectionStart,V=l.target.selectionEnd;x.options.rtl&&(W=x.utilities.getRtlOffset(W,x.getInput()),V=x.utilities.getRtlOffset(V,x.getInput())),x.setCaretPosition(W,V),w.activeInputElement=l.target,x.options.debug&&console.log("Caret at: ",x.getCaretPosition(),x.getCaretPositionEnd(),l&&l.target.tagName.toLowerCase(),"(".concat(x.keyboardDOMClass,")"),l==null?void 0:l.type)}else!x.options.disableCaretPositioning&&_||(l==null?void 0:l.type)==="selectionchange"||(x.setCaretPosition(null),w.activeInputElement=null,x.options.debug&&console.log('Caret position reset due to "'.concat(l==null?void 0:l.type,'" event'),l))})}},{key:"recurseButtons",value:function(l){var g=this;l&&Object.keys(this.buttonElements).forEach(function(w){return g.buttonElements[w].forEach(l)})}},{key:"destroy",value:function(){this.options.debug&&console.log("Destroying simple-keyboard instance: ".concat(this.currentInstanceName));var l=this.options.physicalKeyboardHighlightPreventDefault,g=l!==void 0&&l;document.removeEventListener("keyup",this.handleKeyUp,g),document.removeEventListener("keydown",this.handleKeyDown,g),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("touchend",this.handleTouchEnd),document.removeEventListener("select",this.handleSelect),document.removeEventListener("selectionchange",this.handleSelectionChange),document.onpointerup=null,document.ontouchend=null,document.ontouchcancel=null,document.onmouseup=null,this.recurseButtons(function(w){w&&(w.onpointerdown=null,w.onpointerup=null,w.onpointercancel=null,w.ontouchstart=null,w.ontouchend=null,w.ontouchcancel=null,w.onclick=null,w.onmousedown=null,w.onmouseup=null,w.remove(),w=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(l){var g=this.options.buttonTheme,w=[];return Array.isArray(g)&&g.forEach(function(x){if(x&&x.class&&typeof x.class=="string"&&x.buttons&&typeof x.buttons=="string"){var _=x.class.split(" ");x.buttons.split(" ").includes(l)&&(w=[].concat(K(w),K(_)))}else console.warn('Incorrect "buttonTheme". Please check the documentation.',x)}),w}},{key:"setDOMButtonAttributes",value:function(l,g){var w=this.options.buttonAttributes;Array.isArray(w)&&w.forEach(function(x){x.attribute&&typeof x.attribute=="string"&&x.value&&typeof x.value=="string"&&x.buttons&&typeof x.buttons=="string"?x.buttons.split(" ").includes(l)&&g(x.attribute,x.value):console.warn('Incorrect "buttonAttributes". Please check the documentation.',x)})}},{key:"onTouchDeviceDetected",value:function(){this.processAutoTouchEvents(),this.disableContextualWindow()}},{key:"disableContextualWindow",value:function(){window.oncontextmenu=function(l){if(l.target.classList.contains("hg-button"))return l.preventDefault(),l.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 l=this;Array.isArray(this.options.modules)&&(this.options.modules.forEach(function(g){var w=new g(l);w.init&&w.init(l)}),this.keyboardPluginClasses="modules-loaded",this.render(),this.onModulesLoaded())}},{key:"getModuleProp",value:function(l,g){return!!this.modules[l]&&this.modules[l][g]}},{key:"getModulesList",value:function(){return Object.keys(this.modules)}},{key:"parseRowDOMContainers",value:function(l,g,w,x){var _=this,W=Array.from(l.children),V=0;return W.length&&w.forEach(function(U,H){var ot=x[H];if(!(ot&&ot>U))return!1;var q=U-V,Z=ot-V,at=document.createElement("div");at.className+="hg-button-container";var nt="".concat(_.options.layoutName,"-r").concat(g,"c").concat(H);at.setAttribute("data-skUID",nt);var dt=W.splice(q,Z-q+1);V=Z-q,dt.forEach(function(mt){return at.appendChild(mt)}),W.splice(q,0,at),l.innerHTML="",W.forEach(function(mt){return l.appendChild(mt)}),_.options.debug&&console.log("rowDOMContainer",dt,q,Z,V+1)}),l}},{key:"render",value:function(){var l=this;this.resetRows(),this.initialized||this.beforeFirstRender(),this.beforeRender();var g="hg-layout-".concat(this.options.layoutName),w=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}"]},x=this.options.useTouchEvents||!1,_=x?"hg-touch-events":"",W=this.options.useMouseEvents||!1,V=this.options.disableRowButtonContainers;this.keyboardDOM.className=this.getKeyboardClassString(this.options.theme,g,this.keyboardPluginClasses,_),this.keyboardDOM.setAttribute("data-skInstance",this.currentInstanceName),this.keyboardRowsDOM=document.createElement("div"),this.keyboardRowsDOM.className="hg-rows",w[this.options.layoutName||this.defaultName].forEach(function(U,H){var ot=U.split(" ");l.options.excludeFromLayout&&l.options.excludeFromLayout[l.options.layoutName||l.defaultName]&&(ot=ot.filter(function(nt){return l.options.excludeFromLayout&&!l.options.excludeFromLayout[l.options.layoutName||l.defaultName].includes(nt)}));var q=document.createElement("div");q.className+="hg-row";var Z=[],at=[];ot.forEach(function(nt,dt){var mt,jt=!V&&typeof nt=="string"&&nt.length>1&&nt.indexOf("[")===0,It=!V&&typeof nt=="string"&&nt.length>1&&nt.indexOf("]")===nt.length-1;jt&&(Z.push(dt),nt=nt.replace(/\[/g,"")),It&&(at.push(dt),nt=nt.replace(/\]/g,""));var wt=l.utilities.getButtonClass(nt),Pt=l.utilities.getButtonDisplayName(nt,l.options.display,l.options.mergeDisplay),Gt=l.options.useButtonTag?"button":"div",yt=document.createElement(Gt);yt.className+="hg-button ".concat(wt),(mt=yt.classList).add.apply(mt,K(l.getButtonThemeClasses(nt))),l.setDOMButtonAttributes(nt,function(gt,Et){yt.setAttribute(gt,Et)}),l.activeButtonClass="hg-activeButton",!l.utilities.pointerEventsSupported()||x||W?x?(yt.ontouchstart=function(gt){l.handleButtonClicked(nt,gt),l.handleButtonMouseDown(nt,gt)},yt.ontouchend=function(gt){l.handleButtonMouseUp(nt,gt)},yt.ontouchcancel=function(gt){l.handleButtonMouseUp(nt,gt)}):(yt.onclick=function(gt){l.setMouseHold(!1),typeof l.options.onKeyReleased!="function"&&l.handleButtonClicked(nt,gt)},yt.onmousedown=function(gt){typeof l.options.onKeyReleased!="function"||l.isMouseHold||l.handleButtonClicked(nt,gt),l.handleButtonMouseDown(nt,gt)},yt.onmouseup=function(gt){l.handleButtonMouseUp(nt,gt)}):(yt.onpointerdown=function(gt){l.handleButtonClicked(nt,gt),l.handleButtonMouseDown(nt,gt)},yt.onpointerup=function(gt){l.handleButtonMouseUp(nt,gt)},yt.onpointercancel=function(gt){l.handleButtonMouseUp(nt,gt)}),yt.setAttribute("data-skBtn",nt);var St="".concat(l.options.layoutName,"-r").concat(H,"b").concat(dt);yt.setAttribute("data-skBtnUID",St);var kt=document.createElement("span");kt.innerHTML=Pt,yt.appendChild(kt),l.buttonElements[nt]||(l.buttonElements[nt]=[]),l.buttonElements[nt].push(yt),q.appendChild(yt)}),q=l.parseRowDOMContainers(q,H,Z,at),l.keyboardRowsDOM.appendChild(q)}),this.keyboardDOM.appendChild(this.keyboardRowsDOM),this.onRender(),this.initialized||(this.initialized=!0,!this.utilities.pointerEventsSupported()||x||W?x?(document.ontouchend=function(U){return l.handleButtonMouseUp(void 0,U)},document.ontouchcancel=function(U){return l.handleButtonMouseUp(void 0,U)},this.keyboardDOM.ontouchstart=function(U){return l.handleKeyboardContainerMouseDown(U)}):x||(document.onmouseup=function(U){return l.handleButtonMouseUp(void 0,U)},this.keyboardDOM.onmousedown=function(U){return l.handleKeyboardContainerMouseDown(U)}):(document.onpointerup=function(U){return l.handleButtonMouseUp(void 0,U)},this.keyboardDOM.onpointerdown=function(U){return l.handleKeyboardContainerMouseDown(U)}),this.onInit())}}],z&&J(O.prototype,z),Object.defineProperty(O,"prototype",{writable:!1}),B}(),ct=st,it=st}(),Q}()},787:function(C){C.exports=o}},m={};function k(C){var F=m[C];if(F!==void 0)return F.exports;var R=m[C]={exports:{}};return a[C].call(R.exports,R,R.exports,k),R.exports}k.n=function(C){var F=C&&C.__esModule?function(){return C.default}:function(){return C};return k.d(F,{a:F}),F},k.d=function(C,F){for(var R in F)k.o(F,R)&&!k.o(C,R)&&Object.defineProperty(C,R,{enumerable:!0,get:F[R]})},k.o=function(C,F){return Object.prototype.hasOwnProperty.call(C,F)},k.r=function(C){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(C,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(C,"__esModule",{value:!0})};var j={};return function(){k.r(j),k.d(j,{KeyboardReact:function(){return r},default:function(){return s}}),k(752);var C=k(787),F=k(86),R=k.n(F);function D(i){return D=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},D(i)}function Q(i,d){var u=Object.keys(i);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(i);d&&(f=f.filter(function(p){return Object.getOwnPropertyDescriptor(i,p).enumerable})),u.push.apply(u,f)}return u}function c(i){for(var d=1;d<arguments.length;d++){var u=arguments[d]!=null?arguments[d]:{};d%2?Q(Object(u),!0).forEach(function(f){v(i,f,u[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(u)):Q(Object(u)).forEach(function(f){Object.defineProperty(i,f,Object.getOwnPropertyDescriptor(u,f))})}return i}function v(i,d,u){return(d=function(f){var p=function(b,y){if(D(b)!=="object"||b===null)return b;var I=b[Symbol.toPrimitive];if(I!==void 0){var S=I.call(b,y||"default");if(D(S)!=="object")return S;throw new TypeError("@@toPrimitive must return a primitive value.")}return(y==="string"?String:Number)(b)}(f,"string");return D(p)==="symbol"?p:String(p)}(d))in i?Object.defineProperty(i,d,{value:u,enumerable:!0,configurable:!0,writable:!0}):i[d]=u,i}var e=function(i){return c(c({},i),{},{keyboardRef:null})},r=function(i){var d=i.baseClass||"react-simple-keyboard",u=C.useRef(null),f=C.useRef(null),p=C.useRef(null),b=C.useRef(i);return C.useEffect(function(){var y=function(L){return c(c({},L),{},{theme:"simple-keyboard ".concat(L.theme||"hg-theme-default")})}(i);if(!u.current){u.current=!0,y.debug&&console.log("ReactSimpleKeyboard: Init");var I=f.current,S=".".concat(d);p.current=new(R())(I||S,y),y.keyboardRef&&y.keyboardRef(p.current)}var E=function(L,N){var M=e(N),P=e(L);return Object.keys(M).filter(function(K){return M[K]!==P[K]})}(b.current,y);if(E.length){var T=p.current;b.current=y,T==null||T.setOptions(y),y.debug&&console.log("ReactSimpleKeyboard - setOptions called due to updated props:",E)}},[u,d,b,i]),C.createElement("div",{className:d,ref:f})},s=r}(),j}()})})(xi);var ad=xi.exports;const sd=t=>xt.css`
|
|
1248
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Z,at=!0,nt=!1;return{s:function(){H=H.call(V)},n:function(){var dt=H.next();return at=dt.done,dt},e:function(dt){nt=!0,Z=dt},f:function(){try{at||H.return==null||H.return()}finally{if(nt)throw Z}}}}(Object.getOwnPropertyNames(g.prototype));try{for(_.s();!(x=_.n()).done;){var W=x.value;W==="constructor"||W==="bindMethods"||(w[W]=w[W].bind(w))}}catch(V){_.e(V)}finally{_.f()}}}],z&&a(O.prototype,z),l&&a(O,l),Object.defineProperty(O,"prototype",{writable:!1}),B}();i(u,"noop",function(){});var f=u;function p(B){return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(O){return typeof O}:function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O},p(B)}function b(B,O){for(var z=0;z<O.length;z++){var l=O[z];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(B,I(l.key),l)}}function y(B,O,z){return(O=I(O))in B?Object.defineProperty(B,O,{value:z,enumerable:!0,configurable:!0,writable:!0}):B[O]=z,B}function I(B){var O=function(z,l){if(p(z)!=="object"||z===null)return z;var g=z[Symbol.toPrimitive];if(g!==void 0){var w=g.call(z,l||"default");if(p(w)!=="object")return w;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(z)}(B,"string");return p(O)==="symbol"?O:String(O)}var S=function(){function B(l){var g=this,w=l.dispatch,x=l.getOptions;(function(_,W){if(!(_ instanceof W))throw new TypeError("Cannot call a class as a function")})(this,B),y(this,"getOptions",void 0),y(this,"dispatch",void 0),y(this,"isMofifierKey",function(_){return _.altKey||_.ctrlKey||_.shiftKey||["Tab","CapsLock","Esc","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(_.code||_.key||g.keyCodeToKey(_==null?void 0:_.keyCode))}),this.dispatch=w,this.getOptions=x,f.bindMethods(B,this)}var O,z;return O=B,(z=[{key:"handleHighlightKeyDown",value:function(l){var g=this.getOptions();g.physicalKeyboardHighlightPreventDefault&&this.isMofifierKey(l)&&(l.preventDefault(),l.stopImmediatePropagation());var w=this.getSimpleKeyboardLayoutKey(l);this.dispatch(function(x){var _,W,V=x.getButtonElement(w),U=x.getButtonElement("{".concat(w,"}"));if(V)_=V,W=w;else{if(!U)return;_=U,W="{".concat(w,"}")}var H,ot=function(Z){Z.style.background=g.physicalKeyboardHighlightBgColor||"#dadce4",Z.style.color=g.physicalKeyboardHighlightTextColor||"black"};if(_)if(Array.isArray(_)){if(_.forEach(function(Z){return ot(Z)}),g.physicalKeyboardHighlightPress)if(g.physicalKeyboardHighlightPressUsePointerEvents)(H=_[0])===null||H===void 0||H.onpointerdown();else if(g.physicalKeyboardHighlightPressUseClick){var q;(q=_[0])===null||q===void 0||q.click()}else x.handleButtonClicked(W,l)}else ot(_),g.physicalKeyboardHighlightPress&&(g.physicalKeyboardHighlightPressUsePointerEvents?_.onpointerdown():g.physicalKeyboardHighlightPressUseClick?_.click():x.handleButtonClicked(W,l))})}},{key:"handleHighlightKeyUp",value:function(l){var g=this.getOptions();g.physicalKeyboardHighlightPreventDefault&&this.isMofifierKey(l)&&(l.preventDefault(),l.stopImmediatePropagation());var w=this.getSimpleKeyboardLayoutKey(l);this.dispatch(function(x){var _,W=x.getButtonElement(w)||x.getButtonElement("{".concat(w,"}")),V=function(U){U.removeAttribute&&U.removeAttribute("style")};W&&(Array.isArray(W)?(W.forEach(function(U){return V(U)}),g.physicalKeyboardHighlightPressUsePointerEvents&&((_=W[0])===null||_===void 0||_.onpointerup())):(V(W),g.physicalKeyboardHighlightPressUsePointerEvents&&W.onpointerup()))})}},{key:"getSimpleKeyboardLayoutKey",value:function(l){var g,w="",x=l.code||l.key||this.keyCodeToKey(l==null?void 0:l.keyCode);return(w=x!=null&&x.includes("Numpad")||x!=null&&x.includes("Shift")||x!=null&&x.includes("Space")||x!=null&&x.includes("Backspace")||x!=null&&x.includes("Control")||x!=null&&x.includes("Alt")||x!=null&&x.includes("Meta")?l.code||"":l.key||this.keyCodeToKey(l==null?void 0:l.keyCode)||"").length>1?(g=w)===null||g===void 0?void 0:g.toLowerCase():w}},{key:"keyCodeToKey",value:function(l){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:"'"}[l]||""}}])&&b(O.prototype,z),Object.defineProperty(O,"prototype",{writable:!1}),B}();function E(B){return E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(O){return typeof O}:function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O},E(B)}function T(B,O){for(var z=0;z<O.length;z++){var l=O[z];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(B,N(l.key),l)}}function L(B,O,z){return(O=N(O))in B?Object.defineProperty(B,O,{value:z,enumerable:!0,configurable:!0,writable:!0}):B[O]=z,B}function N(B){var O=function(z,l){if(E(z)!=="object"||z===null)return z;var g=z[Symbol.toPrimitive];if(g!==void 0){var w=g.call(z,l||"default");if(E(w)!=="object")return w;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(z)}(B,"string");return E(O)==="symbol"?O:String(O)}var M=function(){function B(l){var g=l.utilities,w=l.options;(function(x,_){if(!(x instanceof _))throw new TypeError("Cannot call a class as a function")})(this,B),L(this,"utilities",void 0),L(this,"options",void 0),L(this,"candidateBoxElement",void 0),L(this,"pageIndex",0),L(this,"pageSize",void 0),this.utilities=g,this.options=w,f.bindMethods(B,this),this.pageSize=this.utilities.getOptions().layoutCandidatesPageSize||5}var O,z;return O=B,z=[{key:"destroy",value:function(){this.candidateBoxElement&&(this.candidateBoxElement.remove(),this.pageIndex=0)}},{key:"show",value:function(l){var g=this,w=l.candidateValue,x=l.targetElement,_=l.onSelect;if(w&&w.length){var W=this.utilities.chunkArray(w.split(" "),this.pageSize);this.renderPage({candidateListPages:W,targetElement:x,pageIndex:this.pageIndex,nbPages:W.length,onItemSelected:function(V,U){_(V,U),g.destroy()}})}}},{key:"renderPage",value:function(l){var g,w=this,x=l.candidateListPages,_=l.targetElement,W=l.pageIndex,V=l.nbPages,U=l.onItemSelected;(g=this.candidateBoxElement)===null||g===void 0||g.remove(),this.candidateBoxElement=document.createElement("div"),this.candidateBoxElement.className="hg-candidate-box";var H=document.createElement("ul");H.className="hg-candidate-box-list",x[W].forEach(function(mt){var jt,It=document.createElement("li"),wt=function(){var Pt=new(w.options.useTouchEvents?TouchEvent:MouseEvent)("click");return Object.defineProperty(Pt,"target",{value:It}),Pt};It.className="hg-candidate-box-list-item",It.innerHTML=((jt=w.options.display)===null||jt===void 0?void 0:jt[mt])||mt,w.options.useTouchEvents?It.ontouchstart=function(Pt){return U(mt,Pt||wt())}:It.onclick=function(){var Pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:wt();return U(mt,Pt)},H.appendChild(It)});var ot=W>0,q=document.createElement("div");q.classList.add("hg-candidate-box-prev"),ot&&q.classList.add("hg-candidate-box-btn-active");var Z=function(){ot&&w.renderPage({candidateListPages:x,targetElement:_,pageIndex:W-1,nbPages:V,onItemSelected:U})};this.options.useTouchEvents?q.ontouchstart=Z:q.onclick=Z,this.candidateBoxElement.appendChild(q),this.candidateBoxElement.appendChild(H);var at=W<V-1,nt=document.createElement("div");nt.classList.add("hg-candidate-box-next"),at&&nt.classList.add("hg-candidate-box-btn-active");var dt=function(){at&&w.renderPage({candidateListPages:x,targetElement:_,pageIndex:W+1,nbPages:V,onItemSelected:U})};this.options.useTouchEvents?nt.ontouchstart=dt:nt.onclick=dt,this.candidateBoxElement.appendChild(nt),_.prepend(this.candidateBoxElement)}}],z&&T(O.prototype,z),Object.defineProperty(O,"prototype",{writable:!1}),B}(),P=M;function K(B){return function(O){if(Array.isArray(O))return $(O)}(B)||function(O){if(typeof Symbol<"u"&&O[Symbol.iterator]!=null||O["@@iterator"]!=null)return Array.from(O)}(B)||function(O,z){if(O){if(typeof O=="string")return $(O,z);var l=Object.prototype.toString.call(O).slice(8,-1);return l==="Object"&&O.constructor&&(l=O.constructor.name),l==="Map"||l==="Set"?Array.from(O):l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?$(O,z):void 0}}(B)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1249
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function $(B,O){(O==null||O>B.length)&&(O=B.length);for(var z=0,l=new Array(O);z<O;z++)l[z]=B[z];return l}function X(B){return X=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(O){return typeof O}:function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O},X(B)}function G(B,O){var z=Object.keys(B);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(B);O&&(l=l.filter(function(g){return Object.getOwnPropertyDescriptor(B,g).enumerable})),z.push.apply(z,l)}return z}function J(B,O){for(var z=0;z<O.length;z++){var l=O[z];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(B,rt(l.key),l)}}function Y(B,O,z){return(O=rt(O))in B?Object.defineProperty(B,O,{value:z,enumerable:!0,configurable:!0,writable:!0}):B[O]=z,B}function rt(B){var O=function(z,l){if(X(z)!=="object"||z===null)return z;var g=z[Symbol.toPrimitive];if(g!==void 0){var w=g.call(z,l||"default");if(X(w)!=="object")return w;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(z)}(B,"string");return X(O)==="symbol"?O:String(O)}var st=function(){function B(l,g){var w=this;if(function(q,Z){if(!(q instanceof Z))throw new TypeError("Cannot call a class as a function")}(this,B),Y(this,"input",void 0),Y(this,"options",void 0),Y(this,"utilities",void 0),Y(this,"caretPosition",void 0),Y(this,"caretPositionEnd",void 0),Y(this,"keyboardDOM",void 0),Y(this,"keyboardPluginClasses",void 0),Y(this,"keyboardDOMClass",void 0),Y(this,"buttonElements",void 0),Y(this,"currentInstanceName",void 0),Y(this,"allKeyboardInstances",void 0),Y(this,"keyboardInstanceNames",void 0),Y(this,"isFirstKeyboardInstance",void 0),Y(this,"physicalKeyboard",void 0),Y(this,"modules",void 0),Y(this,"activeButtonClass",void 0),Y(this,"holdInteractionTimeout",void 0),Y(this,"holdTimeout",void 0),Y(this,"isMouseHold",void 0),Y(this,"initialized",void 0),Y(this,"candidateBox",void 0),Y(this,"keyboardRowsDOM",void 0),Y(this,"defaultName","default"),Y(this,"activeInputElement",null),Y(this,"handleParams",function(q,Z){var at,nt,dt;if(typeof q=="string")at=q.split(".").join(""),nt=document.querySelector(".".concat(at)),dt=Z;else if(q instanceof HTMLDivElement){if(!q.className)throw console.warn("Any DOM element passed as parameter must have a class."),new Error("KEYBOARD_DOM_CLASS_ERROR");at=q.className.split(" ")[0],nt=q,dt=Z}else at="simple-keyboard",nt=document.querySelector(".".concat(at)),dt=q;return{keyboardDOMClass:at,keyboardDOM:nt,options:dt}}),Y(this,"getOptions",function(){return w.options}),Y(this,"getCaretPosition",function(){return w.caretPosition}),Y(this,"getCaretPositionEnd",function(){return w.caretPositionEnd}),Y(this,"registerModule",function(q,Z){w.modules[q]||(w.modules[q]={}),Z(w.modules[q])}),Y(this,"getKeyboardClassString",function(){for(var q=arguments.length,Z=new Array(q),at=0;at<q;at++)Z[at]=arguments[at];return[w.keyboardDOMClass].concat(Z).filter(function(nt){return!!nt}).join(" ")}),typeof window<"u"){var x=this.handleParams(l,g),_=x.keyboardDOMClass,W=x.keyboardDOM,V=x.options,U=V===void 0?{}:V;this.utilities=new f({getOptions:this.getOptions,getCaretPosition:this.getCaretPosition,getCaretPositionEnd:this.getCaretPositionEnd,dispatch:this.dispatch}),this.caretPosition=null,this.caretPositionEnd=null,this.keyboardDOM=W,this.options=function(q){for(var Z=1;Z<arguments.length;Z++){var at=arguments[Z]!=null?arguments[Z]:{};Z%2?G(Object(at),!0).forEach(function(nt){Y(q,nt,at[nt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(q,Object.getOwnPropertyDescriptors(at)):G(Object(at)).forEach(function(nt){Object.defineProperty(q,nt,Object.getOwnPropertyDescriptor(at,nt))})}return q}({layoutName:"default",theme:"hg-theme-default",inputName:"default",preventMouseDownDefault:!1,enableLayoutCandidates:!0,excludeFromLayout:{}},U),this.keyboardPluginClasses="",f.bindMethods(B,this);var H=this.options.inputName,ot=H===void 0?this.defaultName:H;if(this.input={},this.input[ot]="",this.keyboardDOMClass=_,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 S({dispatch:this.dispatch,getOptions:this.getOptions}),this.candidateBox=this.options.enableLayoutCandidates?new P({utilities:this.utilities,options:this.options}):null,!this.keyboardDOM)throw console.warn('".'.concat(_,'" was not found in the DOM.')),new Error("KEYBOARD_DOM_ERROR");this.render(),this.modules={},this.loadModules()}}var O,z;return O=B,z=[{key:"setCaretPosition",value:function(l){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l;this.caretPosition=l,this.caretPositionEnd=g}},{key:"getInputCandidates",value:function(l){var g=this,w=this.options,x=w.layoutCandidates,_=w.layoutCandidatesCaseSensitiveMatch;if(!x||X(x)!=="object")return{};var W=Object.keys(x).filter(function(H){var ot=l.substring(0,g.getCaretPositionEnd()||0)||l,q=new RegExp("".concat(g.utilities.escapeRegex(H),"$"),_?"g":"gi");return!!K(ot.matchAll(q)).length});if(W.length>1){var V=W.sort(function(H,ot){return ot.length-H.length})[0];return{candidateKey:V,candidateValue:x[V]}}if(W.length){var U=W[0];return{candidateKey:U,candidateValue:x[U]}}return{}}},{key:"showCandidatesBox",value:function(l,g,w){var x=this;this.candidateBox&&this.candidateBox.show({candidateValue:g,targetElement:w,onSelect:function(_,W){var V=x.options,U=V.layoutCandidatesCaseSensitiveMatch,H=V.disableCandidateNormalization,ot=V.enableLayoutCandidatesKeyPress,q=_;H||(q=_.normalize("NFD"));var Z=x.getInput(x.options.inputName,!0),at=x.getCaretPositionEnd()||0,nt=Z.substring(0,at||0)||Z,dt=new RegExp("".concat(x.utilities.escapeRegex(l),"$"),U?"g":"gi"),mt=nt.replace(dt,q),jt=Z.replace(nt,mt),It=mt.length-nt.length,wt=(at||Z.length)+It;wt<0&&(wt=0),x.setInput(jt,x.options.inputName,!0),x.setCaretPosition(wt),ot&&typeof x.options.onKeyPress=="function"&&x.options.onKeyPress(_,W),typeof x.options.onChange=="function"&&x.options.onChange(x.getInput(x.options.inputName,!0),W),typeof x.options.onChangeAll=="function"&&x.options.onChangeAll(x.getAllInputs(),W)}})}},{key:"handleButtonClicked",value:function(l,g){var w=this.options,x=w.inputName,_=x===void 0?this.defaultName:x,W=w.debug;if(l!=="{//}"){this.input[_]||(this.input[_]="");var V=this.utilities.getUpdatedInput(l,this.input[_],this.caretPosition,this.caretPositionEnd);if(this.utilities.isStandardButton(l)&&this.activeInputElement&&this.input[_]&&this.input[_]===V&&this.caretPosition===0&&this.caretPositionEnd===V.length)return this.setInput("",this.options.inputName,!0),this.setCaretPosition(0),this.activeInputElement.value="",this.activeInputElement.setSelectionRange(0,0),void this.handleButtonClicked(l,g);if(typeof this.options.onKeyPress=="function"&&this.options.onKeyPress(l,g),this.input[_]!==V&&(!this.options.inputPattern||this.options.inputPattern&&this.inputPatternIsValid(V))){if(this.options.maxLength&&this.utilities.handleMaxLength(this.input,V))return;var U=this.utilities.getUpdatedInput(l,this.input[_],this.caretPosition,this.caretPositionEnd,!0);if(this.setInput(U,this.options.inputName,!0),W&&console.log("Input changed:",this.getAllInputs()),this.options.debug&&console.log("Caret at: ",this.getCaretPosition(),this.getCaretPositionEnd(),"(".concat(this.keyboardDOMClass,")"),g==null?void 0:g.type),this.options.syncInstanceInputs&&this.syncInstanceInputs(),typeof this.options.onChange=="function"&&this.options.onChange(this.getInput(this.options.inputName,!0),g),typeof this.options.onChangeAll=="function"&&this.options.onChangeAll(this.getAllInputs(),g),g!=null&&g.target&&this.options.enableLayoutCandidates){var H,ot=this.getInputCandidates(V),q=ot.candidateKey,Z=ot.candidateValue;q&&Z?this.showCandidatesBox(q,Z,this.keyboardDOM):(H=this.candidateBox)===null||H===void 0||H.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)),W&&console.log("Key pressed:",l)}}},{key:"getMouseHold",value:function(){return this.isMouseHold}},{key:"setMouseHold",value:function(l){this.options.syncInstanceInputs?this.dispatch(function(g){g.isMouseHold=l}):this.isMouseHold=l}},{key:"handleButtonMouseDown",value:function(l,g){var w=this;g&&(this.options.preventMouseDownDefault&&g.preventDefault(),this.options.stopMouseDownPropagation&&g.stopPropagation(),g.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(){(w.getMouseHold()&&(!l.includes("{")&&!l.includes("}")||l==="{delete}"||l==="{backspace}"||l==="{bksp}"||l==="{space}"||l==="{tab}")||l==="{arrowright}"||l==="{arrowleft}"||l==="{arrowup}"||l==="{arrowdown}")&&(w.options.debug&&console.log("Button held:",l),w.handleButtonHold(l)),clearTimeout(w.holdTimeout)},500))}},{key:"handleButtonMouseUp",value:function(l,g){var w=this;g&&(this.options.preventMouseUpDefault&&g.preventDefault&&g.preventDefault(),this.options.stopMouseUpPropagation&&g.stopPropagation&&g.stopPropagation(),!(g.target===this.keyboardDOM||g.target&&this.keyboardDOM.contains(g.target)||this.candidateBox&&this.candidateBox.candidateBoxElement&&(g.target===this.candidateBox.candidateBoxElement||g.target&&this.candidateBox.candidateBoxElement.contains(g.target)))&&this.candidateBox&&this.candidateBox.destroy()),this.recurseButtons(function(x){x.classList.remove(w.activeButtonClass)}),this.setMouseHold(!1),this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),l&&typeof this.options.onKeyReleased=="function"&&this.options.onKeyReleased(l,g)}},{key:"handleKeyboardContainerMouseDown",value:function(l){this.options.preventMouseDownDefault&&l.preventDefault()}},{key:"handleButtonHold",value:function(l){var g=this;this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),this.holdInteractionTimeout=window.setTimeout(function(){g.getMouseHold()?(g.handleButtonClicked(l),g.handleButtonHold(l)):clearTimeout(g.holdInteractionTimeout)},100)}},{key:"syncInstanceInputs",value:function(){var l=this;this.dispatch(function(g){g.replaceInput(l.input),g.setCaretPosition(l.caretPosition,l.caretPositionEnd)})}},{key:"clearInput",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.inputName||this.defaultName;this.input[l]="",this.setCaretPosition(0),this.options.syncInstanceInputs&&this.syncInstanceInputs()}},{key:"getInput",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.inputName||this.defaultName,g=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return this.options.syncInstanceInputs&&!g&&this.syncInstanceInputs(),this.options.rtl?""+this.input[l].replace("","").replace("","")+"":this.input[l]}},{key:"getAllInputs",value:function(){var l=this,g={};return Object.keys(this.input).forEach(function(w){g[w]=l.getInput(w,!0)}),g}},{key:"setInput",value:function(l){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.inputName||this.defaultName,w=arguments.length>2?arguments[2]:void 0;this.input[g]=l,!w&&this.options.syncInstanceInputs&&this.syncInstanceInputs()}},{key:"replaceInput",value:function(l){this.input=l}},{key:"setOptions",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},g=this.changedOptions(l);this.options=Object.assign(this.options,l),g.length&&(this.options.debug&&console.log("changedOptions",g),this.onSetOptions(g),this.render())}},{key:"changedOptions",value:function(l){var g=this;return Object.keys(l).filter(function(w){return JSON.stringify(l[w])!==JSON.stringify(g.options[w])})}},{key:"onSetOptions",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];l.includes("layoutName")&&this.candidateBox&&this.candidateBox.destroy(),(l.includes("layoutCandidatesPageSize")||l.includes("layoutCandidates"))&&this.candidateBox&&(this.candidateBox.destroy(),this.candidateBox=new P({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(l){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(g){l(window.SimpleKeyboardInstances[g],g)})}},{key:"addButtonTheme",value:function(l,g){var w=this;g&&l&&(l.split(" ").forEach(function(x){g.split(" ").forEach(function(_){w.options.buttonTheme||(w.options.buttonTheme=[]);var W=!1;w.options.buttonTheme.map(function(V){if(V!=null&&V.class.split(" ").includes(_)){W=!0;var U=V.buttons.split(" ");U.includes(x)||(W=!0,U.push(x),V.buttons=U.join(" "))}return V}),W||w.options.buttonTheme.push({class:_,buttons:l})})}),this.render())}},{key:"removeButtonTheme",value:function(l,g){var w=this;if(!l&&!g)return this.options.buttonTheme=[],void this.render();l&&Array.isArray(this.options.buttonTheme)&&this.options.buttonTheme.length&&(l.split(" ").forEach(function(x){var _,W;(_=w.options)===null||_===void 0||(W=_.buttonTheme)===null||W===void 0||W.map(function(V,U){if(V&&g&&g.includes(V.class)||!g){var H,ot,q=(H=V)===null||H===void 0?void 0:H.buttons.split(" ").filter(function(Z){return Z!==x});V&&q!=null&&q.length?V.buttons=q.join(" "):((ot=w.options.buttonTheme)===null||ot===void 0||ot.splice(U,1),V=null)}return V})}),this.render())}},{key:"getButtonElement",value:function(l){var g,w=this.buttonElements[l];return w&&(g=w.length>1?w:w[0]),g}},{key:"inputPatternIsValid",value:function(l){var g,w=this.options.inputPattern;if((g=w instanceof RegExp?w:w[this.options.inputName||this.defaultName])&&l){var x=g.test(l);return this.options.debug&&console.log('inputPattern ("'.concat(g,'"): ').concat(x?"passed":"did not pass!")),x}return!0}},{key:"setEventListeners",value:function(){if(this.isFirstKeyboardInstance||!this.allKeyboardInstances){this.options.debug&&console.log("Caret handling started (".concat(this.keyboardDOMClass,")"));var l=this.options.physicalKeyboardHighlightPreventDefault,g=l!==void 0&&l;document.addEventListener("keyup",this.handleKeyUp,g),document.addEventListener("keydown",this.handleKeyDown,g),document.addEventListener("mouseup",this.handleMouseUp),document.addEventListener("touchend",this.handleTouchEnd),document.addEventListener("selectionchange",this.handleSelectionChange),document.addEventListener("select",this.handleSelect)}}},{key:"handleKeyUp",value:function(l){this.caretEventHandler(l),this.options.physicalKeyboardHighlight&&this.physicalKeyboard.handleHighlightKeyUp(l)}},{key:"handleKeyDown",value:function(l){this.options.physicalKeyboardHighlight&&this.physicalKeyboard.handleHighlightKeyDown(l)}},{key:"handleMouseUp",value:function(l){this.caretEventHandler(l)}},{key:"handleTouchEnd",value:function(l){this.caretEventHandler(l)}},{key:"handleSelect",value:function(l){this.caretEventHandler(l)}},{key:"handleSelectionChange",value:function(l){navigator.userAgent.includes("Firefox")||this.caretEventHandler(l)}},{key:"caretEventHandler",value:function(l){var g,w=this;l.target.tagName&&(g=l.target.tagName.toLowerCase()),this.dispatch(function(x){var _=l.target===x.keyboardDOM||l.target&&x.keyboardDOM.contains(l.target);if(w.options.syncInstanceInputs&&Array.isArray(l.path)&&(_=l.path.some(function(U){var H;return U==null||(H=U.hasAttribute)===null||H===void 0?void 0:H.call(U,"data-skInstance")})),(g==="textarea"||g==="input"&&["text","search","url","tel","password"].includes(l.target.type))&&!x.options.disableCaretPositioning){var W=l.target.selectionStart,V=l.target.selectionEnd;x.options.rtl&&(W=x.utilities.getRtlOffset(W,x.getInput()),V=x.utilities.getRtlOffset(V,x.getInput())),x.setCaretPosition(W,V),w.activeInputElement=l.target,x.options.debug&&console.log("Caret at: ",x.getCaretPosition(),x.getCaretPositionEnd(),l&&l.target.tagName.toLowerCase(),"(".concat(x.keyboardDOMClass,")"),l==null?void 0:l.type)}else!x.options.disableCaretPositioning&&_||(l==null?void 0:l.type)==="selectionchange"||(x.setCaretPosition(null),w.activeInputElement=null,x.options.debug&&console.log('Caret position reset due to "'.concat(l==null?void 0:l.type,'" event'),l))})}},{key:"recurseButtons",value:function(l){var g=this;l&&Object.keys(this.buttonElements).forEach(function(w){return g.buttonElements[w].forEach(l)})}},{key:"destroy",value:function(){this.options.debug&&console.log("Destroying simple-keyboard instance: ".concat(this.currentInstanceName));var l=this.options.physicalKeyboardHighlightPreventDefault,g=l!==void 0&&l;document.removeEventListener("keyup",this.handleKeyUp,g),document.removeEventListener("keydown",this.handleKeyDown,g),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("touchend",this.handleTouchEnd),document.removeEventListener("select",this.handleSelect),document.removeEventListener("selectionchange",this.handleSelectionChange),document.onpointerup=null,document.ontouchend=null,document.ontouchcancel=null,document.onmouseup=null,this.recurseButtons(function(w){w&&(w.onpointerdown=null,w.onpointerup=null,w.onpointercancel=null,w.ontouchstart=null,w.ontouchend=null,w.ontouchcancel=null,w.onclick=null,w.onmousedown=null,w.onmouseup=null,w.remove(),w=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(l){var g=this.options.buttonTheme,w=[];return Array.isArray(g)&&g.forEach(function(x){if(x&&x.class&&typeof x.class=="string"&&x.buttons&&typeof x.buttons=="string"){var _=x.class.split(" ");x.buttons.split(" ").includes(l)&&(w=[].concat(K(w),K(_)))}else console.warn('Incorrect "buttonTheme". Please check the documentation.',x)}),w}},{key:"setDOMButtonAttributes",value:function(l,g){var w=this.options.buttonAttributes;Array.isArray(w)&&w.forEach(function(x){x.attribute&&typeof x.attribute=="string"&&x.value&&typeof x.value=="string"&&x.buttons&&typeof x.buttons=="string"?x.buttons.split(" ").includes(l)&&g(x.attribute,x.value):console.warn('Incorrect "buttonAttributes". Please check the documentation.',x)})}},{key:"onTouchDeviceDetected",value:function(){this.processAutoTouchEvents(),this.disableContextualWindow()}},{key:"disableContextualWindow",value:function(){window.oncontextmenu=function(l){if(l.target.classList.contains("hg-button"))return l.preventDefault(),l.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 l=this;Array.isArray(this.options.modules)&&(this.options.modules.forEach(function(g){var w=new g(l);w.init&&w.init(l)}),this.keyboardPluginClasses="modules-loaded",this.render(),this.onModulesLoaded())}},{key:"getModuleProp",value:function(l,g){return!!this.modules[l]&&this.modules[l][g]}},{key:"getModulesList",value:function(){return Object.keys(this.modules)}},{key:"parseRowDOMContainers",value:function(l,g,w,x){var _=this,W=Array.from(l.children),V=0;return W.length&&w.forEach(function(U,H){var ot=x[H];if(!(ot&&ot>U))return!1;var q=U-V,Z=ot-V,at=document.createElement("div");at.className+="hg-button-container";var nt="".concat(_.options.layoutName,"-r").concat(g,"c").concat(H);at.setAttribute("data-skUID",nt);var dt=W.splice(q,Z-q+1);V=Z-q,dt.forEach(function(mt){return at.appendChild(mt)}),W.splice(q,0,at),l.innerHTML="",W.forEach(function(mt){return l.appendChild(mt)}),_.options.debug&&console.log("rowDOMContainer",dt,q,Z,V+1)}),l}},{key:"render",value:function(){var l=this;this.resetRows(),this.initialized||this.beforeFirstRender(),this.beforeRender();var g="hg-layout-".concat(this.options.layoutName),w=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}"]},x=this.options.useTouchEvents||!1,_=x?"hg-touch-events":"",W=this.options.useMouseEvents||!1,V=this.options.disableRowButtonContainers;this.keyboardDOM.className=this.getKeyboardClassString(this.options.theme,g,this.keyboardPluginClasses,_),this.keyboardDOM.setAttribute("data-skInstance",this.currentInstanceName),this.keyboardRowsDOM=document.createElement("div"),this.keyboardRowsDOM.className="hg-rows",w[this.options.layoutName||this.defaultName].forEach(function(U,H){var ot=U.split(" ");l.options.excludeFromLayout&&l.options.excludeFromLayout[l.options.layoutName||l.defaultName]&&(ot=ot.filter(function(nt){return l.options.excludeFromLayout&&!l.options.excludeFromLayout[l.options.layoutName||l.defaultName].includes(nt)}));var q=document.createElement("div");q.className+="hg-row";var Z=[],at=[];ot.forEach(function(nt,dt){var mt,jt=!V&&typeof nt=="string"&&nt.length>1&&nt.indexOf("[")===0,It=!V&&typeof nt=="string"&&nt.length>1&&nt.indexOf("]")===nt.length-1;jt&&(Z.push(dt),nt=nt.replace(/\[/g,"")),It&&(at.push(dt),nt=nt.replace(/\]/g,""));var wt=l.utilities.getButtonClass(nt),Pt=l.utilities.getButtonDisplayName(nt,l.options.display,l.options.mergeDisplay),Gt=l.options.useButtonTag?"button":"div",yt=document.createElement(Gt);yt.className+="hg-button ".concat(wt),(mt=yt.classList).add.apply(mt,K(l.getButtonThemeClasses(nt))),l.setDOMButtonAttributes(nt,function(gt,Et){yt.setAttribute(gt,Et)}),l.activeButtonClass="hg-activeButton",!l.utilities.pointerEventsSupported()||x||W?x?(yt.ontouchstart=function(gt){l.handleButtonClicked(nt,gt),l.handleButtonMouseDown(nt,gt)},yt.ontouchend=function(gt){l.handleButtonMouseUp(nt,gt)},yt.ontouchcancel=function(gt){l.handleButtonMouseUp(nt,gt)}):(yt.onclick=function(gt){l.setMouseHold(!1),typeof l.options.onKeyReleased!="function"&&l.handleButtonClicked(nt,gt)},yt.onmousedown=function(gt){typeof l.options.onKeyReleased!="function"||l.isMouseHold||l.handleButtonClicked(nt,gt),l.handleButtonMouseDown(nt,gt)},yt.onmouseup=function(gt){l.handleButtonMouseUp(nt,gt)}):(yt.onpointerdown=function(gt){l.handleButtonClicked(nt,gt),l.handleButtonMouseDown(nt,gt)},yt.onpointerup=function(gt){l.handleButtonMouseUp(nt,gt)},yt.onpointercancel=function(gt){l.handleButtonMouseUp(nt,gt)}),yt.setAttribute("data-skBtn",nt);var St="".concat(l.options.layoutName,"-r").concat(H,"b").concat(dt);yt.setAttribute("data-skBtnUID",St);var kt=document.createElement("span");kt.innerHTML=Pt,yt.appendChild(kt),l.buttonElements[nt]||(l.buttonElements[nt]=[]),l.buttonElements[nt].push(yt),q.appendChild(yt)}),q=l.parseRowDOMContainers(q,H,Z,at),l.keyboardRowsDOM.appendChild(q)}),this.keyboardDOM.appendChild(this.keyboardRowsDOM),this.onRender(),this.initialized||(this.initialized=!0,!this.utilities.pointerEventsSupported()||x||W?x?(document.ontouchend=function(U){return l.handleButtonMouseUp(void 0,U)},document.ontouchcancel=function(U){return l.handleButtonMouseUp(void 0,U)},this.keyboardDOM.ontouchstart=function(U){return l.handleKeyboardContainerMouseDown(U)}):x||(document.onmouseup=function(U){return l.handleButtonMouseUp(void 0,U)},this.keyboardDOM.onmousedown=function(U){return l.handleKeyboardContainerMouseDown(U)}):(document.onpointerup=function(U){return l.handleButtonMouseUp(void 0,U)},this.keyboardDOM.onpointerdown=function(U){return l.handleKeyboardContainerMouseDown(U)}),this.onInit())}}],z&&J(O.prototype,z),Object.defineProperty(O,"prototype",{writable:!1}),B}(),ct=st,it=st}(),Q}()},787:function(C){C.exports=o}},m={};function k(C){var F=m[C];if(F!==void 0)return F.exports;var R=m[C]={exports:{}};return s[C].call(R.exports,R,R.exports,k),R.exports}k.n=function(C){var F=C&&C.__esModule?function(){return C.default}:function(){return C};return k.d(F,{a:F}),F},k.d=function(C,F){for(var R in F)k.o(F,R)&&!k.o(C,R)&&Object.defineProperty(C,R,{enumerable:!0,get:F[R]})},k.o=function(C,F){return Object.prototype.hasOwnProperty.call(C,F)},k.r=function(C){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(C,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(C,"__esModule",{value:!0})};var j={};return function(){k.r(j),k.d(j,{KeyboardReact:function(){return r},default:function(){return a}}),k(752);var C=k(787),F=k(86),R=k.n(F);function D(i){return D=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},D(i)}function Q(i,d){var u=Object.keys(i);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(i);d&&(f=f.filter(function(p){return Object.getOwnPropertyDescriptor(i,p).enumerable})),u.push.apply(u,f)}return u}function c(i){for(var d=1;d<arguments.length;d++){var u=arguments[d]!=null?arguments[d]:{};d%2?Q(Object(u),!0).forEach(function(f){v(i,f,u[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(u)):Q(Object(u)).forEach(function(f){Object.defineProperty(i,f,Object.getOwnPropertyDescriptor(u,f))})}return i}function v(i,d,u){return(d=function(f){var p=function(b,y){if(D(b)!=="object"||b===null)return b;var I=b[Symbol.toPrimitive];if(I!==void 0){var S=I.call(b,y||"default");if(D(S)!=="object")return S;throw new TypeError("@@toPrimitive must return a primitive value.")}return(y==="string"?String:Number)(b)}(f,"string");return D(p)==="symbol"?p:String(p)}(d))in i?Object.defineProperty(i,d,{value:u,enumerable:!0,configurable:!0,writable:!0}):i[d]=u,i}var e=function(i){return c(c({},i),{},{keyboardRef:null})},r=function(i){var d=i.baseClass||"react-simple-keyboard",u=C.useRef(null),f=C.useRef(null),p=C.useRef(null),b=C.useRef(i);return C.useEffect(function(){var y=function(L){return c(c({},L),{},{theme:"simple-keyboard ".concat(L.theme||"hg-theme-default")})}(i);if(!u.current){u.current=!0,y.debug&&console.log("ReactSimpleKeyboard: Init");var I=f.current,S=".".concat(d);p.current=new(R())(I||S,y),y.keyboardRef&&y.keyboardRef(p.current)}var E=function(L,N){var M=e(N),P=e(L);return Object.keys(M).filter(function(K){return M[K]!==P[K]})}(b.current,y);if(E.length){var T=p.current;b.current=y,T==null||T.setOptions(y),y.debug&&console.log("ReactSimpleKeyboard - setOptions called due to updated props:",E)}},[u,d,b,i]),C.createElement("div",{className:d,ref:f})},a=r}(),j}()})})(xi);var ad=xi.exports;const sd=t=>xt.css`
|
|
1246
1250
|
background-color: var(--ddk-component-keyboard-container-background-color);
|
|
1247
1251
|
display: flex;
|
|
1248
1252
|
justify-content: center;
|
|
@@ -1317,7 +1321,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1317
1321
|
visibility: hidden;
|
|
1318
1322
|
}
|
|
1319
1323
|
}
|
|
1320
|
-
`,cd=[{class:"small-button",buttons:"1 2 3 4 5 6 7 8 9 0 Q W E R T Y U I O P A S D F G H J K L Z X C V B N M q w e r t y u i o p a s d f g h j k l z x c v b n m - , . {bksp} {empty} {lock} {shift}"},{class:"half-button",buttons:"{half}"},{class:"enter-button",buttons:"{enter}"},{class:"space-button",buttons:"{space}"},{class:"blank-button",buttons:"{empty} {half}"}],dd=t=>{const n=["1 2 3 4 5 6 7 8 9 0 - {bksp}","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}","{space}"],o=["1 2 3 A B","4 5 6 C D","7 8 9 E F",`{bksp} 0${t==="standard"?" {enter}":""}`],
|
|
1324
|
+
`,cd=[{class:"small-button",buttons:"1 2 3 4 5 6 7 8 9 0 Q W E R T Y U I O P A S D F G H J K L Z X C V B N M q w e r t y u i o p a s d f g h j k l z x c v b n m - , . {bksp} {empty} {lock} {shift}"},{class:"half-button",buttons:"{half}"},{class:"enter-button",buttons:"{enter}"},{class:"space-button",buttons:"{space}"},{class:"blank-button",buttons:"{empty} {half}"}],dd=t=>{const n=["1 2 3 4 5 6 7 8 9 0 - {bksp}","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}","{space}"],o=["1 2 3 A B","4 5 6 C D","7 8 9 E F",`{bksp} 0${t==="standard"?" {enter}":""}`],s=["1 2 3","4 5 6","7 8 9",". 0 {bksp}"];return t==="standard"&&s.push("{enter}"),{default:n,hex:o,num:s,numLogin:["1 2 3","4 5 6","7 8 9","{empty} 0 {bksp}"],alphanumeric:["1 2 3 4 5 6 7 8 9 0 -","q w e r t y u i o p","a s d f g h j k l","{shift} z x c v b n m , . {bksp}",`{space}${t==="standard"?" {enter}":""}`],shift:["1 2 3 4 5 6 7 8 9 0 -","Q W E R T Y U I O P","A S D F G H J K L","{shift} Z X C V B N M , . {bksp}",`{space}${t==="standard"?" {enter}":""}`]}},ld={"{bksp}":"<","{enter}":"Enter","{lock}":"Caps","{space}":"Space","{shift}":"^","{empty}":" ","{half}":" "},kn=({layout:t="alphanumeric",onKeyPress:n,onKeyReleased:o})=>{const[s,m]=et.useState(t);et.useEffect(()=>{t&&m(t)},[t]);const k=()=>{m(s==="shift"?"alphanumeric":"shift")},j=D=>{D==="{shift}"&&k(),n==null||n(D)},C=D=>{o==null||o(D)},{componentModeOverride:F}=Ct(),R=et.useMemo(()=>dd(F),[F]);return h.jsx("div",{css:sd(s),children:h.jsx(ad.KeyboardReact,{buttonTheme:cd,display:ld,layout:R,layoutName:s??"default",onKeyPress:j,onKeyReleased:C})})},ud=xt.css`
|
|
1321
1325
|
font-family: var(--ddk-component-input-action-item-font-family);
|
|
1322
1326
|
width: 100%;
|
|
1323
1327
|
`,fd=A.div`
|
|
@@ -1355,11 +1359,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1355
1359
|
font-size: 16px;
|
|
1356
1360
|
white-space: nowrap;
|
|
1357
1361
|
}
|
|
1358
|
-
`,wi=({closeButtonLabel:t,collapse:n,description:o,disabled:
|
|
1362
|
+
`,wi=({closeButtonLabel:t,collapse:n,description:o,disabled:s,label:m,layout:k,maxLength:j,onChange:C,isValid:F,isInputValid:R,submitLabel:D="Submit",unitStyle:Q,unitValue:c,value:v,...e})=>{const[r,a]=et.useState(!1),[i,d]=et.useState(!1),[u,f]=et.useState(v),[p,b]=et.useState(),y=et.useRef(null),{componentModeOverride:I}=Ct();et.useEffect(()=>{f(v)},[v]);const E=R||(()=>!0),T=et.useCallback(()=>u===void 0||j===void 0||u.length<j,[u,j]),L=()=>{const M=F&&F(u);if(M){b(M);return}f(u),C==null||C(u),d(!0)},N=M=>{switch(b(void 0),M){case"{bksp}":f(P=>{const K=String(P);return K==null?void 0:K.slice(0,K.length-1)});break;case"{enter}":L();break;case"{space}":{if(!T()||!E())return;f(P=>P+" ");break}case"{shift}":return;default:{if(!T()||!E())return;f(P=>P?P+M:M),y.current&&(y.current.scrollLeft=y.current.scrollWidth)}}};return h.jsxs(Ot,{collapse:n??I==="compact",...e,children:[h.jsxs(Qn,{children:[h.jsx(cn,{children:m}),o&&h.jsx(dn,{children:o})]}),h.jsx(md,{children:h.jsx(Be,{css:ud,disabled:s,onPointerDown:()=>{s||(a(!0),d(!1))},unitStyle:Q,unitValue:c,children:v})}),r&&h.jsx(te,{show:!i,onClose:()=>d(!0),onClosed:()=>{a(!1),b(void 0),f(v)},contain:I!=="compact",children:h.jsxs(fd,{children:[h.jsx(Zt,{CloseButton:I==="compact"?$e:void 0,closeButtonLabel:t,onClose:()=>d(!0),showCloseButton:!0,title:m}),h.jsxs(pd,{children:[h.jsxs(Qo,{children:[p&&h.jsx(qn,{children:p}),h.jsx(Le,{ref:y,type:"text",value:u,readOnly:!0,isError:!!p})]}),h.jsxs(hd,{children:[I==="compact"&&h.jsx(Qo,{children:h.jsx(Mt,{disabled:!!p,mode:"primary",onPointerDown:L,children:D})}),h.jsx(kn,{layout:k,onKeyPress:N})]})]})]})})]})},gd=()=>{const{t}=Nt.useKosTranslation("common");return t("submit")},mo=({submitLabel:t,...n})=>h.jsx(wi,{submitLabel:t??h.jsx(gd,{}),...n}),vd=A(wi)`
|
|
1359
1363
|
--ddk-component-input-card-description-color: var(
|
|
1360
1364
|
--ddk-semantic-color-system-red
|
|
1361
1365
|
);
|
|
1362
|
-
`,bd=({maxValue:t,maxValueValidationText:n,minValue:o,minValueValidationText:
|
|
1366
|
+
`,bd=({maxValue:t,maxValueValidationText:n,minValue:o,minValueValidationText:s,...m})=>{const k=et.useCallback(j=>Number(j)<o?s:Number(j)>t?n:void 0,[t,n,o,s]);return h.jsx(mo,{...m,isValid:k,unitStyle:"inline"})},ji=({maxValue:t,minValue:n,...o})=>{const{t:s}=Nt.useKosTranslation("common",{keyPrefix:"validation"});return h.jsx(bd,{maxValue:t,maxValueValidationText:s("maxValue",{data:{maxValue:t}}),minValue:n,minValueValidationText:s("minValue",{data:{minValue:n}}),...o})},yd=A.div`
|
|
1363
1367
|
position: relative;
|
|
1364
1368
|
|
|
1365
1369
|
svg {
|
|
@@ -1372,10 +1376,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1372
1376
|
input {
|
|
1373
1377
|
width: 100%;
|
|
1374
1378
|
}
|
|
1375
|
-
`,kd=({style:t,...n})=>{const[o,
|
|
1379
|
+
`,kd=({style:t,...n})=>{const[o,s]=et.useState(!1),m=()=>{s(!o)};return h.jsxs(yd,{style:t,children:[h.jsx(Le,{...n,readOnly:!0,type:o?"text":"password"}),o?h.jsx(bt.EyeOffIcon,{onPointerDown:m}):h.jsx(bt.EyeOpenIcon,{onPointerDown:m})]})},xd=xt.css`
|
|
1376
1380
|
align-self: stretch;
|
|
1377
1381
|
display: flex;
|
|
1378
|
-
`,Si=({className:t,dials:n,enableAnimation:o,itemSize:
|
|
1382
|
+
`,Si=({className:t,dials:n,enableAnimation:o,itemSize:s=20,numberOfVisibleItems:m=7,onChange:k,selectedItemOffset:j})=>{const C=et.useCallback(F=>R=>{k==null||k(F,R)},[k]);return h.jsx("div",{css:xd,className:t,children:n.map(({id:F,className:R,itemRenderer:D,items:Q,loop:c,selectedItemId:v})=>h.jsx(po,{className:R,enableAnimation:o,itemRenderer:D,items:Q,itemSize:s,loop:c,numberOfVisibleItems:m,onChange:C(F),selectedItemId:v,selectedItemOffset:j},F))})},go=A.div`
|
|
1379
1383
|
color: ${t=>t.selected?"var(--ddk-component-picker-list-item-color-active)":"var(--ddk-component-picker-list-item-color-default)"};
|
|
1380
1384
|
|
|
1381
1385
|
flex: 1;
|
|
@@ -1405,7 +1409,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1405
1409
|
border-right-style: solid;
|
|
1406
1410
|
}
|
|
1407
1411
|
}
|
|
1408
|
-
`,Wo=13,Ci=({dials:t,...n})=>{const o=t.map(j=>({...j,className:"separator",itemRenderer:go}));let{numberOfVisibleItems:
|
|
1412
|
+
`,Wo=13,Ci=({dials:t,...n})=>{const o=t.map(j=>({...j,className:"separator",itemRenderer:go}));let{numberOfVisibleItems:s,selectedItemOffset:m}=n;const k=t.reduce((j,C)=>{var F;return Math.max(j,((F=C.items)==null?void 0:F.length)||0)},0);return s===void 0&&(s=k>=Wo?Wo:k||0),m===void 0&&(m=Math.floor(s*.5)),h.jsx(Si,{itemSize:40,...n,css:wd,dials:o,numberOfVisibleItems:s,selectedItemOffset:m})},Yo=t=>t.reduce((n,o)=>({...n,[o.id]:o.selectedItemId}),{}),jd=({cancelButtonLabel:t,className:n,closeButtonLabel:o,data:s,description:m,descriptionAsError:k=!1,disabled:j,displayValue:C,enableAnimation:F,float:R,icon:D,label:Q,modalTitle:c,onChange:v,onDiscard:e,onSave:r,proceedButtonLabel:a,selectedItemOffset:i})=>{const{componentModeOverride:d}=Ct(),[u,f]=et.useState(!1),[p,b]=et.useState(Yo(s)),y=et.useCallback((E,T)=>{b({...p,[String(E)]:T.id}),v==null||v(E,T)},[v,p]),I=()=>{r==null||r(p),f(!1)},S=()=>{e==null||e(),f(!1)};return et.useEffect(()=>{b(Yo(s))},[u,s]),h.jsxs(h.Fragment,{children:[h.jsxs(Ot,{className:n,collapse:d==="compact",float:R,children:[(Q||m)&&h.jsxs(Qn,{children:[Q&&h.jsx(cn,{children:Q}),m&&k?h.jsx(xr,{children:m}):m&&h.jsx(dn,{children:m})]}),h.jsx(yn,{onPointerDown:()=>!j&&f(!0),Icon:D,disabled:j,children:C})]}),u&&h.jsxs(te,{show:u,onClose:()=>S(),contain:d!=="compact",children:[h.jsx(Zt,{title:c||Q,showCloseButton:!0,onClose:()=>S(),closeButtonLabel:o,CloseButton:d==="compact"?$e:void 0}),h.jsx(he,{children:h.jsx(Ci,{dials:s,enableAnimation:F,onChange:y,selectedItemOffset:i})}),h.jsx(ln,{cancelLabel:t,proceedLabel:a,onProceed:I,onCancel:()=>S()})]})]})},Sd=A(Ot)`
|
|
1409
1413
|
display: flex;
|
|
1410
1414
|
min-height: var(--ddk-component-notification-card-height);
|
|
1411
1415
|
gap: 16px;
|
|
@@ -1434,7 +1438,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1434
1438
|
`,Od=A(an)`
|
|
1435
1439
|
min-width: var(--ddk-component-button-min-width);
|
|
1436
1440
|
text-align: center;
|
|
1437
|
-
`,Td=({buttonLabel:t,indicatorColor:n,label:o,prefix:
|
|
1441
|
+
`,Td=({buttonLabel:t,indicatorColor:n,label:o,prefix:s,dateLabel:m,onAction:k})=>h.jsxs(Sd,{children:[h.jsxs(Id,{children:[h.jsx(Cd,{color:n}),s,h.jsx(an,{children:o})]}),h.jsx(Pd,{children:m}),h.jsx(Ed,{children:k&&t?h.jsx(Mt,{onPointerDown:k,children:t}):h.jsx(Od,{children:t})})]}),Ii=({date:t,...n})=>{const o=t??Date.now(),{selectedDateFormat:s}=Nt.useKosDateFormats(),{selectedTimeFormat:m}=Nt.useKosTimeFormats(),k=s?wo.format(new Date(o),s):"",j=m?wo.format(new Date(o),m):"",C=[k,j].map((F,R)=>h.jsx("div",{children:F},R===0?"date":"time"));return h.jsx(Td,{dateLabel:C,...n})},Md=A.div`
|
|
1438
1442
|
display: flex;
|
|
1439
1443
|
justify-content: center;
|
|
1440
1444
|
font-weight: var(--ddk-component-Numpad-head-font-weight-medium);
|
|
@@ -1447,7 +1451,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1447
1451
|
input {
|
|
1448
1452
|
width: 400px;
|
|
1449
1453
|
}
|
|
1450
|
-
`,Dd=({onComplete:t,heading:n})=>{const[o,
|
|
1454
|
+
`,Dd=({onComplete:t,heading:n})=>{const[o,s]=et.useState(!1),[m,k]=et.useState(""),j=async F=>{switch(F){case"{bksp}":k(R=>R==null?void 0:R.slice(0,R.length-1));break;default:k(R=>R+F)}},C=F=>{m&&(m==null?void 0:m.length)<0&&F!=="{bksp}"&&F!=="{enter}"||j(F)};return h.jsxs(te,{show:!o,onClose:()=>s(!0),onClosed:t,children:[h.jsx(Zt,{closeButtonLabel:"close",title:h.jsx(Md,{children:n}),showCloseButton:!0,onClose:()=>s(!0)}),h.jsxs(Ad,{children:[h.jsx(Le,{value:m}),h.jsx(kn,{layout:"numLogin",onKeyReleased:C})]}),h.jsxs(ze,{children:[h.jsx(Mt,{children:"Discard"}),h.jsx(Mt,{children:"Save"})]})]})},_d=xt.css`
|
|
1451
1455
|
border-color: var(--ddk-component-picker-border-color) transparent;
|
|
1452
1456
|
border-style: solid;
|
|
1453
1457
|
border-width: var(--ddk-component-picker-border-width);
|
|
@@ -1459,7 +1463,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1459
1463
|
padding: var(--ddk-component-picker-padding);
|
|
1460
1464
|
gap: var(--ddk-component-picker-gap);
|
|
1461
1465
|
height: 100%;
|
|
1462
|
-
`,Bd=({cancelButtonLabel:t,closeButtonLabel:n,collapse:o,disabled:
|
|
1466
|
+
`,Bd=({cancelButtonLabel:t,closeButtonLabel:n,collapse:o,disabled:s,displayValue:m,enableAnimation:k,items:j,label:C,loop:F,numberOfVisibleItems:R,onSave:D,proceedButtonLabel:Q,selectedItemId:c,selectedItemOffset:v,unitValue:e,...r})=>{const{componentModeOverride:a}=Ct(),[i,d]=et.useState(!1),[u,f]=et.useState(),p=({id:y})=>{f(y)},b=()=>{u!==void 0&&(D==null||D(u)),d(!1)};return h.jsxs(Ot,{collapse:o??a==="compact",...r,children:[C,h.jsx(yn,{disabled:s,onPointerDown:()=>!s&&d(!0),unitValue:e,children:m}),h.jsxs(te,{show:i,onClose:()=>d(!1),contain:a!=="compact",children:[h.jsx(Zt,{title:C,showCloseButton:!0,onClose:()=>d(!1),closeButtonLabel:n,CloseButton:a==="compact"?$e:void 0}),h.jsxs(Rd,{children:[h.jsx(he,{children:h.jsx(vo,{enableAnimation:k,items:j,loop:F,numberOfVisibleItems:R,onChange:p,selectedItemId:c,selectedItemOffset:v})}),h.jsx(ln,{cancelLabel:t,proceedLabel:Q,onProceed:b,onCancel:()=>d(!1)})]})]})]})},Nd=A.div`
|
|
1463
1467
|
font-size: var(--ddk-generic-font-size-large);
|
|
1464
1468
|
font-weight: var(--ddk-generic-font-weight-medium);
|
|
1465
1469
|
color: var(--ddk-generic-color-grey-100);
|
|
@@ -1487,7 +1491,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1487
1491
|
padding: var(--ddk-component-status-bar-padding);
|
|
1488
1492
|
width: var(--ddk-component-status-bar-width);
|
|
1489
1493
|
pointer-events: auto;
|
|
1490
|
-
`,Ei=({blocked:t=!0,children:n,onClose:o,show:
|
|
1494
|
+
`,Ei=({blocked:t=!0,children:n,onClose:o,show:s})=>{const[m,k]=et.useState(!0);return et.useEffect(()=>{k(!!s)},[s]),m?Re.createPortal(h.jsx($d,{style:{pointerEvents:t?"auto":"none"},onPointerDown:o,children:h.jsx(zd,{children:n})}),document.body):null},Fd=A.div`
|
|
1491
1495
|
display: flex;
|
|
1492
1496
|
flex-direction: column;
|
|
1493
1497
|
gap: var(--ddk-component-progress-bar-title-container-gap);
|
|
@@ -1525,7 +1529,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1525
1529
|
height: var(--ddk-component-progress-bar-progress-fill-height);
|
|
1526
1530
|
justify-content: center;
|
|
1527
1531
|
width: 100%;
|
|
1528
|
-
`,Vd=({blocked:t,cancelLabel:n="Cancel",isCancelable:o,onCancel:
|
|
1532
|
+
`,Vd=({blocked:t,cancelLabel:n="Cancel",isCancelable:o,onCancel:s,onClose:m,renderCancel:k,renderFailure:j,renderSuccess:C,show:F,status:R,subtitle:D,title:Q,value:c})=>{const v=c<=1?0:c,e=C&&R==="success"?C:j&&R==="failure"?j:k&&R==="cancelled"?k:h.jsxs(h.Fragment,{children:[h.jsxs(Fd,{children:[h.jsx(bo,{children:Q}),D&&h.jsx(Oi,{children:D})]}),h.jsxs(Ti,{children:[h.jsx(Mi,{value:v}),o&&h.jsx(Mt,{onPointerDown:s,children:n})]})]});return h.jsx(Ei,{blocked:t,onClose:m,show:F,children:e})},Ai=t=>{const{t:n}=Nt.useKosTranslation("common");return h.jsx(Vd,{cancelLabel:n("cancel"),...t})},Kd=A(Be)`
|
|
1529
1533
|
align-items: center;
|
|
1530
1534
|
|
|
1531
1535
|
background-color: ${t=>t.active?"var(--ddk-component-radio-card-background-color-active)":"var(--ddk-component-radio-card-background-color)"};
|
|
@@ -1537,7 +1541,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1537
1541
|
height: 56px;
|
|
1538
1542
|
justify-content: center;
|
|
1539
1543
|
padding: 17px 12px;
|
|
1540
|
-
`,Ud=({radioButtons:t,onChange:n,value:o})=>{const[
|
|
1544
|
+
`,Ud=({radioButtons:t,onChange:n,value:o})=>{const[s,m]=et.useState(o);et.useEffect(()=>{m(o)},[o]);const k=j=>{j!==s&&(m(j),n==null||n(j))};return h.jsx(h.Fragment,{children:t.map(({id:j,title:C},F)=>h.jsx(Kd,{active:j===s,onPointerDown:()=>k(j),children:C},F))})},Hd=A.div`
|
|
1541
1545
|
display: flex;
|
|
1542
1546
|
align-items: var(--ddk-component-schedule-table-div-center-text-align);
|
|
1543
1547
|
justify-content: space-between;
|
|
@@ -1592,7 +1596,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1592
1596
|
font-size: var(--ddk-component-toggle-label-font-size);
|
|
1593
1597
|
font-weight: var(--ddk-component-toggle-label-font-weight);
|
|
1594
1598
|
letter-spacing: var(--ddk-component-toggle-label-letter-spacing);
|
|
1595
|
-
`,yo=({checked:t,disabled:n,label:o,onChange:
|
|
1599
|
+
`,yo=({checked:t,disabled:n,label:o,onChange:s,...m})=>{const[k,j]=et.useState(t??!1);et.useEffect(()=>{j(t??!1)},[t]);const C=()=>{n||(j(!k),s==null||s(!k))};return h.jsxs(Qd,{children:[o&&h.jsx(Ri,{children:o}),h.jsx(Di,{checked:k,disabled:n,...m,onPointerDown:C,children:h.jsx(_i,{checked:k,disabled:n,...m})})]})},Wd=xt.css`
|
|
1596
1600
|
padding: var(--ddk-component-schedule-table-sub-heading-padding);
|
|
1597
1601
|
padding-bottom: 0;
|
|
1598
1602
|
font-size: var(--ddk-generic-font-size-x-small);
|
|
@@ -1621,7 +1625,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1621
1625
|
text-align: var(--ddk-component-schedule-table-div-center-text-align);
|
|
1622
1626
|
`,Jo=xt.css`
|
|
1623
1627
|
justify-content: center;
|
|
1624
|
-
`,tl=({tableMainHeading:t,headingRightChild:n,weekSchedule:o,tableSubHeadings:
|
|
1628
|
+
`,tl=({tableMainHeading:t,headingRightChild:n,weekSchedule:o,tableSubHeadings:s})=>h.jsx(Bi,{children:h.jsxs("table",{css:Xd,children:[h.jsxs("thead",{children:[h.jsx("tr",{css:Xo,children:h.jsx("th",{colSpan:4,children:h.jsx(Gd,{headerLabel:t,child:n})})}),h.jsx("tr",{children:h.jsx(Yd,{headings:s})})]}),h.jsx("tbody",{children:o==null?void 0:o.map((m,k)=>h.jsxs("tr",{css:Xo,children:[h.jsx("td",{css:[Ye,Jd],children:m==null?void 0:m.day}),h.jsx("td",{css:[Ye,Zd],children:h.jsx(yo,{checked:m==null?void 0:m.isTrue})}),h.jsx("td",{css:Ye,children:h.jsx(Ze,{css:Jo,children:m==null?void 0:m.openTime})}),h.jsx("td",{css:Ye,children:h.jsx(Ze,{css:Jo,children:m==null?void 0:m.closeTime})})]},k))})]})}),Ni=({children:t,label:n,size:o="medium",...s})=>h.jsx(se,{icon:bt.CloseSidebarIcon,size:o,...s,children:n}),el=He(vr),nl=A.div`
|
|
1625
1629
|
background: transparent;
|
|
1626
1630
|
position: fixed;
|
|
1627
1631
|
top: 0;
|
|
@@ -1629,7 +1633,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1629
1633
|
bottom: 0;
|
|
1630
1634
|
left: 0;
|
|
1631
1635
|
z-index: 1;
|
|
1632
|
-
`,ol=({children:t,enableAnimation:n,show:o,onClose:
|
|
1636
|
+
`,ol=({children:t,enableAnimation:n,show:o,onClose:s,title:m})=>{const k=Ct(),j=n!==void 0?n:k.enableSidebarAnimation,C=ri({left:o?"0px":"-515px",immediate:!j});return h.jsxs(Pi,{children:[o&&h.jsx(nl,{onPointerDown:s}),h.jsxs(el,{style:C,children:[h.jsxs(yr,{children:[h.jsx(Ni,{onPointerDown:s})," ",m]}),h.jsx(br,{children:t})]})]})},rl=xt.css`
|
|
1633
1637
|
font-family: var(--ddk-component-input-action-item-font-family);
|
|
1634
1638
|
`,il=({label:t,value:n})=>h.jsxs(Ot,{children:[t,h.jsx(Be,{css:rl,children:n})]}),al=A.div`
|
|
1635
1639
|
display: flex;
|
|
@@ -1679,7 +1683,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1679
1683
|
display: inline-block;
|
|
1680
1684
|
height: 8px;
|
|
1681
1685
|
width: 8px;
|
|
1682
|
-
`,dl=({failureMessage:t,lastSuccess:n,leftLabel:o,message:
|
|
1686
|
+
`,dl=({failureMessage:t,lastSuccess:n,leftLabel:o,message:s,rightLabel:m,type:k,lastSuccessful:j})=>h.jsx(Ot,{children:h.jsxs(al,{children:[h.jsxs(sl,{type:k,children:[h.jsxs("h4",{children:[k!=="Default"&&h.jsx(Li,{type:k}),o]}),h.jsx("label",{children:m})]}),s&&h.jsx("div",{children:s}),k==="Fail"&&h.jsxs(cl,{children:[h.jsx("p",{children:t}),h.jsxs("label",{children:[j,": ",n==null?void 0:n.toLocaleString()]})]})]})}),$i=t=>{switch(t){case"active":return"var(--ddk-component-status-indicator-fill-active)";case"completed":return"var(--ddk-component-status-indicator-fill-completed)";case"incomplete":return"var(--ddk-component-status-indicator-fill-incomplete)";case"pending":return"var(--ddk-component-status-indicator-fill-pending)";case"error":return"var(--ddk-component-status-indicator-fill-error)";default:return}},zi=t=>{switch(t){case"large":return"var(--ddk-component-status-indicator-large)";case"small":return"var(--ddk-component-status-indicator-small)";default:return}},ll=({size:t="large",status:n="pending"})=>{const o=$i(n),s=zi(t);return h.jsx(bt.StepStatus,{fill:o,style:{height:s,width:s}})},ul=A.div`
|
|
1683
1687
|
display: flex;
|
|
1684
1688
|
flex-direction: column;
|
|
1685
1689
|
gap: 8px;
|
|
@@ -1745,7 +1749,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1745
1749
|
font-weight: 600;
|
|
1746
1750
|
line-height: 120%; /* 33.6px */
|
|
1747
1751
|
letter-spacing: 0.42px;
|
|
1748
|
-
`,bl=({onClose:t,menuData:n})=>h.jsxs(pl,{children:[h.jsxs(gl,{children:[h.jsx(bt.CloseSidebarIcon,{onPointerDown:t}),h.jsx(vl,{children:"Setup"})]}),h.jsx(hl,{children:n.map((o,
|
|
1752
|
+
`,bl=({onClose:t,menuData:n})=>h.jsxs(pl,{children:[h.jsxs(gl,{children:[h.jsx(bt.CloseSidebarIcon,{onPointerDown:t}),h.jsx(vl,{children:"Setup"})]}),h.jsx(hl,{children:n.map((o,s)=>h.jsx(ml,{children:h.jsx(Fi,{leftLabel:o.name,type:o.type})},s))})]}),yl=xt.css`
|
|
1749
1753
|
border-right: 1px solid var(--ddk-component-sub-nav-border-color);
|
|
1750
1754
|
width: 200px;
|
|
1751
1755
|
`,kl=xt.css`
|
|
@@ -1754,7 +1758,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1754
1758
|
display: flex;
|
|
1755
1759
|
flex-direction: column;
|
|
1756
1760
|
gap: var(--ddk-component-sub-nav-gap);
|
|
1757
|
-
`,Vi=({buttons:t,activeButtonId:n,onPointerDown:o})=>h.jsx("div",{css:yl,children:h.jsx("div",{css:kl,children:t.map(
|
|
1761
|
+
`,Vi=({buttons:t,activeButtonId:n,onPointerDown:o})=>h.jsx("div",{css:yl,children:h.jsx("div",{css:kl,children:t.map(s=>h.jsx(kr,{active:n===s.id,onPointerDown:()=>o(s.id),children:s.label},s.id))})}),xl=xt.css`
|
|
1758
1762
|
display: flex;
|
|
1759
1763
|
height: 100%;
|
|
1760
1764
|
max-height: 100%;
|
|
@@ -1764,7 +1768,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1764
1768
|
overflow-y: scroll;
|
|
1765
1769
|
`,jl=xt.css`
|
|
1766
1770
|
padding: var(--ddk-component-sub-nav-container-padding-medium);
|
|
1767
|
-
`,Sl=({children:t,onPointerDown:n,buttons:o,activeButtonId:
|
|
1771
|
+
`,Sl=({children:t,onPointerDown:n,buttons:o,activeButtonId:s})=>h.jsxs("div",{css:xl,children:[h.jsx(Vi,{onPointerDown:n,activeButtonId:s,buttons:o}),h.jsx("div",{css:wl,children:h.jsx("div",{css:jl,children:t})})]}),ko=A.div`
|
|
1768
1772
|
align-items: center;
|
|
1769
1773
|
|
|
1770
1774
|
background-color: ${t=>t.disabled?"var(--ddk-component-switch-background-color-disabled)":t.active?"var(--ddk-component-switch-background-color-active)":"var(--ddk-component-switch-background-color-default)"};
|
|
@@ -1850,13 +1854,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1850
1854
|
`,El=A.div`
|
|
1851
1855
|
display: flex;
|
|
1852
1856
|
justify-content: center;
|
|
1853
|
-
`,xn=({disabled:t,onChange:n,options:o,value:
|
|
1857
|
+
`,xn=({disabled:t,onChange:n,options:o,value:s})=>{const[m,k]=et.useState(s);et.useEffect(()=>{k(s)},[s]);const j=C=>{t||C===m||(k(C),n==null||n(C))};return h.jsx(El,{children:o.map(({id:C,label:F},R)=>{const D=R===0?Cl:R===o.length-1?Pl:Il;return h.jsx(D,{active:C===m,disabled:t,onPointerDown:()=>j(C),children:F},C)})})},Ol=({label:t,...n})=>{const{componentModeOverride:o}=Ct();return h.jsxs(Ot,{collapse:o==="compact",children:[t,h.jsx(xn,{...n})]})},Tl=A.div`
|
|
1854
1858
|
display: flex;
|
|
1855
1859
|
flex-direction: column;
|
|
1856
1860
|
padding: var(--ddk-component-picker-padding);
|
|
1857
1861
|
gap: var(--ddk-component-picker-gap);
|
|
1858
1862
|
height: 100%;
|
|
1859
|
-
`,tr=(t,n)=>t.find(o=>o.items.find(
|
|
1863
|
+
`,tr=(t,n)=>t.find(o=>o.items.find(s=>s.id===n)),Ml=({cancelButtonLabel:t,closeButtonLabel:n,collapse:o,disabled:s,displayValue:m,enableAnimation:k,data:j,label:C,loop:F,numberOfVisibleItems:R,onSave:D,proceedButtonLabel:Q,selectedItemId:c,selectedItemOffset:v,unitValue:e,...r})=>{var E;const{componentModeOverride:a}=Ct(),[i,d]=et.useState(!1),[u,f]=et.useState(),[p,b]=et.useState(((E=tr(j,c))==null?void 0:E.id)??j[0].id);et.useEffect(()=>{var T;i&&b(((T=tr(j,c))==null?void 0:T.id)??j[0].id)},[j,i,c]);const y=et.useMemo(()=>{var T;return(T=j.find(L=>L.id===p))==null?void 0:T.items},[j,p]);et.useEffect(()=>{(y==null?void 0:y.find(L=>L.id===u))?f(u):y&&y.length>0&&f(y==null?void 0:y[0].id)},[j,y,u,c,p]);const I=({id:T})=>{f(T)},S=()=>{u!==void 0&&(D==null||D(u)),d(!1)};return h.jsxs(Ot,{collapse:o??a==="compact",...r,children:[C,h.jsx(yn,{disabled:s,onPointerDown:()=>!s&&d(!0),unitValue:e,children:m}),h.jsxs(te,{show:i,onClose:()=>d(!1),contain:a!=="compact",children:[h.jsx(Zt,{title:C,showCloseButton:!0,onClose:()=>d(!1),closeButtonLabel:n,CloseButton:a==="compact"?$e:void 0}),h.jsxs(Tl,{children:[h.jsxs(he,{children:[h.jsx(xn,{options:j,value:p,onChange:b}),h.jsx(vo,{enableAnimation:k,items:y,loop:F,numberOfVisibleItems:R,onChange:I,selectedItemId:c,selectedItemOffset:v},i&&p||"")]}),h.jsx(ln,{cancelLabel:t,proceedLabel:Q,onProceed:S,onCancel:()=>d(!1)})]})]})]})},Ki=A.div`
|
|
1860
1864
|
border-bottom: var(--ddk-component-tab-list-border-bottom);
|
|
1861
1865
|
`,Al=A(Ki)`
|
|
1862
1866
|
background: var(--ddk-component-tab-list-background-color);
|
|
@@ -1883,27 +1887,27 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1883
1887
|
color: var(--ddk-component-tab-color);
|
|
1884
1888
|
border-bottom: var(--ddk-component-tab-border-bottom-active);
|
|
1885
1889
|
font-weight: var(--ddk-component-tab-font-weight-active);
|
|
1886
|
-
`,qi=({activeTab:t,contain:n=!0,tabs:o,onChange:
|
|
1890
|
+
`,qi=({activeTab:t,contain:n=!0,tabs:o,onChange:s,showBackground:m=!0})=>{const[k,j]=et.useState(t),C=Q=>{t===void 0&&j(Q.id),s==null||s(Q)};et.useEffect(()=>{j(t)},[t]);const F=et.useMemo(()=>o.reduce((Q,c)=>({...Q,[c.id]:c}),{}),[o]),R=m?Al:Ki,D=n?Dl:Ui;return h.jsxs(h.Fragment,{children:[h.jsx(R,{children:h.jsx(ie,{children:h.jsx(D,{children:o.map(Q=>{const c=k===Q.id?Rl:Hi;return h.jsx(c,{onPointerDown:()=>C(Q),children:Q.label},Q.id)})})})}),h.jsx(_l,{children:h.jsx(ie,{children:k&&F[k]&&h.jsx("section",{children:F[k].content})})})]})},Gi=()=>{const t=Ce.useNavigate(),[n]=Ce.useSearchParams();return et.useCallback((s,m)=>{typeof s=="number"?t(s):t(typeof s=="string"?{pathname:s,search:n.toString()}:{pathname:s.pathname,search:s.search||n.toString(),hash:s.hash},m)},[t,n])},Qi=t=>{let n=t[0].toUpperCase();for(let o=1;o<t.length;o++)t[o]===t[o].toUpperCase()&&isNaN(parseInt(t[o]))?n+=t[o]:isNaN(parseInt(t[o]))||(n+=t[o]);return n},Bl=(t,n)=>et.useMemo(()=>n?Qi(t):t,[n,t]),Nl=({baseRoute:t,tabs:n})=>{const o=Gi(),{id:s}=Ce.useParams(),[m,k]=et.useState(s);et.useEffect(()=>{n.find(F=>F.id===s)?k(s):o(n[0].id)},[s,o,n]);const j=et.useCallback(C=>{o(`${t}/${C.id}`),k(C.id)},[t,o]);return h.jsx(qi,{tabs:n,activeTab:m,onChange:j})},Ll=()=>{const[t,n]=et.useState(null);return et.useEffect(()=>{const o=s=>{const m=s.clientX||s.touches[0].clientX,k=s.clientY||s.touches[0].clientY;n({x:m,y:k});const j=setTimeout(()=>{n(null)},1e3);return()=>{clearTimeout(j)}};return document.addEventListener("click",o),document.addEventListener("touchstart",o),()=>{document.removeEventListener("click",o),document.removeEventListener("touchstart",o)}},[]),h.jsx("div",{children:t&&h.jsx("div",{style:{position:"absolute",top:t.y,left:t.x,backgroundColor:"rgba(255, 0, 0, 0.5)",borderRadius:"50%",width:"40px",height:"40px",pointerEvents:"none",transform:"translate(-50%, -50%)",zIndex:9999}})})},$l=A.div`
|
|
1887
1891
|
display: flex;
|
|
1888
1892
|
flex-direction: column;
|
|
1889
1893
|
width: 100%;
|
|
1890
1894
|
align-items: center;
|
|
1891
1895
|
gap: 24px;
|
|
1892
|
-
`,zl=({closeButtonLabel:t,onComplete:n,heading:o,showSwitch:
|
|
1896
|
+
`,zl=({closeButtonLabel:t,onComplete:n,heading:o,showSwitch:s,timeMode:m,...k})=>{const[j,C]=et.useState(""),[F,R]=et.useState(!1);et.useEffect(()=>{D()},[j]);const D=()=>{if(j.length>3){const r=j.split(":");switch(m){case"am/pm":(parseInt(r==null?void 0:r[0])>=12||parseInt(r==null?void 0:r[1])>=60)&&R(!0);break;case"24hour":(parseInt(r[0])>=24||parseInt(r[1])>=60)&&R(!0);break}}},Q=async r=>{switch(r){case"{bksp}":C(a=>a==null?void 0:a.slice(0,a.length-1)),R(!1);break;default:if(j.length===2)if(j.includes(":"))C(j+r);else{const a=j.slice(0,1)+":"+j.slice(1)+r;C(a)}else if(j.length===4){const a=j.replace(":","");C(a.slice(0,2)+":"+a.slice(2)+r)}else C(j+r)}},c=r=>{j&&(j==null?void 0:j.length)>=5&&r!=="{bksp}"&&r!=="{enter}"||Q(r)},[v,e]=et.useState(!1);return h.jsxs(te,{show:!v,onClose:()=>e(!0),onClosed:n,children:[h.jsx(Zt,{closeButtonLabel:t,title:h.jsx("div",{children:o}),showCloseButton:!0,onClose:()=>e(!0)}),h.jsxs($l,{children:[s&&h.jsx(xn,{...k}),h.jsx(Le,{value:j,isError:F})]}),h.jsx(kn,{layout:"numLogin",onKeyReleased:c}),h.jsxs(ze,{children:[h.jsx(Mt,{children:"Discard changes"}),h.jsx(Mt,{disabled:j.length<4||F,children:"Save"})]})]})},Fl=({alwaysShowLabel:t=!1,collapse:n,float:o,label:s,toggleLabel:m,stretch:k,...j})=>{const{componentModeOverride:C}=Ct();return h.jsxs(Ot,{collapse:n,css:xt.css`
|
|
1893
1897
|
min-height: 0px;
|
|
1894
1898
|
width: ${k&&"100%"};
|
|
1895
|
-
`,float:o,className:j.className,children:[
|
|
1899
|
+
`,float:o,className:j.className,children:[s,h.jsx(yo,{label:!t&&C==="compact"?void 0:m,...j})]})},Wi=({children:t,active:n=!1,to:o})=>{const s=Ce.useNavigate(),m=k=>{k.preventDefault(),s(o)};return h.jsx(gr,{active:n,onPointerDown:m,children:t})},Vl=A.div`
|
|
1896
1900
|
display: flex;
|
|
1897
1901
|
gap: var(--ddk-component-navigation-button-list-gap);
|
|
1898
|
-
`,Yi=({items:t})=>{const{pathname:n}=Ce.useLocation();return h.jsx(Vl,{children:t.map((o,
|
|
1902
|
+
`,Yi=({items:t})=>{const{pathname:n}=Ce.useLocation();return h.jsx(Vl,{children:t.map((o,s)=>h.jsx(Wi,{active:typeof o.to=="string"&&n.includes(o.to),to:o.to,children:o.children},s))})},Kl=A(se)`
|
|
1899
1903
|
color: var(--ddk-component-top-navigation-color);
|
|
1900
1904
|
`,Ul=A.div`
|
|
1901
1905
|
color: var(--ddk-generic-color-grey-5);
|
|
1902
1906
|
font-size: var(--ddk-component-navigation-icon-button-font-size);
|
|
1903
|
-
`,Xi=({icon:t,label:n,size:o,...
|
|
1907
|
+
`,Xi=({icon:t,label:n,size:o,...s})=>h.jsx(Kl,{size:o,icon:t,...s,children:h.jsx(Ul,{children:n})}),Hl=A.div`
|
|
1904
1908
|
display: flex;
|
|
1905
1909
|
gap: var(--ddk-generic-padding-large);
|
|
1906
|
-
`,Ji=({items:t})=>h.jsx(Hl,{children:t.map(({icon:n,label:o},
|
|
1910
|
+
`,Ji=({items:t})=>h.jsx(Hl,{children:t.map(({icon:n,label:o},s)=>h.jsx(Xi,{icon:n,label:o,size:"small"},s))}),ql=A.div`
|
|
1907
1911
|
background-color: var(--ddk-component-top-navigation-background-color);
|
|
1908
1912
|
color: var(--ddk-component-top-navigation-color);
|
|
1909
1913
|
`,Gl=A.div`
|
|
@@ -1916,4 +1920,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1916
1920
|
flex-direction: column;
|
|
1917
1921
|
gap: var(--ddk-component-view-gap);
|
|
1918
1922
|
padding: var(--ddk-component-view-padding);
|
|
1919
|
-
`,Wl=({children:t,contain:n=!0,style:o})=>n?h.jsx(ie,{children:h.jsx("div",{css:[er,o],children:t})}):h.jsx("div",{css:[er,o],children:t}),Yl=()=>{const{t}=Nt.useKosTranslation("common");return t("close")},Xl=({children:t,fill:n,label:o,size:
|
|
1923
|
+
`,Wl=({children:t,contain:n=!0,style:o})=>n?h.jsx(ie,{children:h.jsx("div",{css:[er,o],children:t})}):h.jsx("div",{css:[er,o],children:t}),Yl=()=>{const{t}=Nt.useKosTranslation("common");return t("close")},Xl=({children:t,fill:n,label:o,size:s="medium",...m})=>h.jsx(se,{icon:bt.ChevronLeftIcon,size:s,...m,children:o??h.jsx(Yl,{})});exports.ActionCard=$a;exports.ActionItem=Ze;exports.ActionItemButton=Be;exports.ActionItemButtonStyles=En;exports.AgitatorDashboardCard=jc;exports.AvailableText=Vn;exports.BackButton=jr;exports.Body2=ka;exports.BodyContent=Ta;exports.BodyLarge=sr;exports.BodyLargeInformation=cr;exports.BodyMedium=an;exports.BodyMediumInformation=wa;exports.BodySmall=Hn;exports.BodySmallInformation=ar;exports.Button=Mt;exports.CancelProceedFooter=ln;exports.Card=Ot;exports.CardAvatar=li;exports.CardBody=fi;exports.CardButton=rr;exports.CardButtonGrid=Fa;exports.CardErrors=xc;exports.CardFooter=pi;exports.CardNav=hi;exports.CardTitle=ui;exports.CloseButton=Wn;exports.CompactCloseButton=$e;exports.ComponentConfigurationContext=Un;exports.ComponentConfigurationProvider=ea;exports.ConfirmationModal=ci;exports.ConfirmationModalContainer=ci;exports.Container=ie;exports.Content=he;exports.DashboardCardContainer=di;exports.Description=dn;exports.Dial=po;exports.Dropdown=yn;exports.Error=xr;exports.ErrorInputCard=vd;exports.ErrorText=qn;exports.FailureCard=Dc;exports.Footer=ze;exports.FrameBody=Nc;exports.FrameContainer=zc;exports.FuelGauge=Qc;exports.FullScreenHeader=td;exports.FullScreenModal=Yc;exports.GreenTickIconStyle=la;exports.Grid=nd;exports.Header=Zt;exports.Heading=ma;exports.HeadingLarge=dr;exports.HeadingLargeInformation=ja;exports.HeadingMedium=Gn;exports.HeadingMediumInformation=lr;exports.HolderDashboardCard=Sc;exports.IconButton=se;exports.InfoCard=ki;exports.InfoCardContainer=ki;exports.InfoCardHead=ir;exports.InfoContainer=pa;exports.InfoTable=yi;exports.Input=Le;exports.InputCard=mo;exports.InputCardContainer=mo;exports.InputRangeCard=ji;exports.InputRangeCardContainer=ji;exports.InputTypePassword=kd;exports.InstructionCard=Pa;exports.Keyboard=kn;exports.Label=Ne;exports.LabelDate=Sa;exports.LabelDateInformation=fr;exports.LabelExtraSmall=sn;exports.LabelInformation=pr;exports.LabelInformationExtraSmall=Ca;exports.LabelInformationSmall=hr;exports.LabelSmall=ur;exports.LargeText=ha;exports.ListContainer=Ea;exports.MenuButton=Cr;exports.Modal=te;exports.MultiDial=Si;exports.MultiPicker=Ci;exports.MultiPickerCard=jd;exports.NavigationButton=gr;exports.NoDataSummary=Oa;exports.NotificationCard=Ii;exports.NotificationCardContainer=Ii;exports.Numpad=Dd;exports.Picker=vo;exports.PickerCard=Bd;exports.PickerItemRenderer=go;exports.PlaceholderMessage=Ld;exports.Portal=Pi;exports.ProgressBar=Ai;exports.ProgressBarContainer=Ai;exports.ProgressBarSubTitle=Oi;exports.ProgressBarTitle=bo;exports.ProgressFill=Mi;exports.ProgressFillContainer=Ti;exports.QuestionIconStyle=ua;exports.RadioCard=Ud;exports.ScheduleTable=tl;exports.ScheduleTableDiv=Bi;exports.SettingsSubheading=ya;exports.ShowMoreSubtext=Aa;exports.ShowMoreText=Ma;exports.Sidebar=ol;exports.SidebarCloseButton=Ni;exports.SidebarContent=br;exports.SidebarHeader=yr;exports.SidebarNav=vr;exports.SmallText=xa;exports.StaticInputCard=il;exports.StatusBar=Ei;exports.StatusCard=dl;exports.StatusDots=Li;exports.StatusIndicator=ll;exports.StepsIndicatorLabel=Fi;exports.StepsSideNav=bl;exports.StyledInput=mr;exports.SubNav=Vi;exports.SubNavButton=kr;exports.SubNavContainer=Sl;exports.Subheading=ga;exports.SummaryHolderCardText=Da;exports.Switch=xn;exports.SwitchCard=Ol;exports.SwitchPickerCard=Ml;exports.TabContainer=Ra;exports.TabRouter=Nl;exports.TabViewLayout=_a;exports.Table=bi;exports.Tabs=qi;exports.TapAndHoldButton=Ba;exports.TapEventViewer=Ll;exports.Text=cn;exports.TextContainer=Qn;exports.TimeInputModal=zl;exports.Toggle=yo;exports.ToggleCard=Fl;exports.ToggleLabel=Ri;exports.ToggleThumb=_i;exports.ToggleTrack=Di;exports.TopNavigation=Ql;exports.TopNavigationButton=Wi;exports.TopNavigationButtonList=Yi;exports.TopNavigationIconButton=Xi;exports.TopNavigationIconButtonList=Ji;exports.UnavailableText=Kn;exports.UsbIconStyle=fa;exports.UtilityModalHeading=va;exports.UtilityModalSubHeading=ba;exports.View=Wl;exports.VolumeBackButton=Xl;exports.WorkflowModal=si;exports.abbreviate=Qi;exports.formatBytes=Fc;exports.getFill=$i;exports.getFillColor=ho;exports.getItemData=gi;exports.getSize=zi;exports.useAbbreviation=Bl;exports.useComponentConfigurationContext=Ct;exports.useExperience=na;exports.useKeyboardToggle=Vc;exports.useNavigate=Gi;exports.useViewExperience=ra;exports.useViewExperienceListMap=oa;
|