diff --git a/docs/assets/index-vHVaBdQA.js b/docs/assets/index-CDNxQT5U.js similarity index 94% rename from docs/assets/index-vHVaBdQA.js rename to docs/assets/index-CDNxQT5U.js index d37ec0f..4e5f5bd 100644 --- a/docs/assets/index-vHVaBdQA.js +++ b/docs/assets/index-CDNxQT5U.js @@ -10,21 +10,21 @@ * @vue/runtime-core v3.4.29 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function z4(e,t){}const H4={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER"},U4={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."};function Ur(e,t,i,r){try{return r?e(...r):e()}catch(n){$s(n,t,i)}}function Oi(e,t,i,r){if(me(e)){const n=Ur(e,t,i,r);return n&&Af(n)&&n.catch(s=>{$s(s,t,i)}),n}if(ne(e)){const n=[];for(let s=0;s>>1,n=Zt[r],s=$a(n);smr&&Zt.splice(t,1)}function bc(e){ne(e)?to.push(...e):(!an||!an.includes(e,e.allowRecurse?Kn+1:Kn))&&to.push(e),lv()}function y0(e,t,i=Ra?mr+1:0){for(;i$a(i)-$a(r));if(to.length=0,an){an.push(...t);return}for(an=t,Kn=0;Kne.id==null?1/0:e.id,q4=(e,t)=>{const i=$a(e)-$a(t);if(i===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return i};function cv(e){ah=!1,Ra=!0,Zt.sort(q4);try{for(mr=0;mrKs.emit(n,...s)),Pl=[]):typeof window<"u"&&window.HTMLElement&&!((r=(i=window.navigator)==null?void 0:i.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(s=>{dv(s,t)}),setTimeout(()=>{Ks||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Pl=[])},3e3)):Pl=[]}function j4(e,t,...i){if(e.isUnmounted)return;const r=e.vnode.props||Fe;let n=i;const s=t.startsWith("update:"),o=s&&t.slice(7);if(o&&o in r){const d=`${o==="modelValue"?"model":o}Modifiers`,{number:u,trim:h}=r[d]||Fe;h&&(n=i.map(f=>ke(f)?f.trim():f)),u&&(n=i.map(gc))}let a,l=r[a=Gs(t)]||r[a=Gs(it(t))];!l&&s&&(l=r[a=Gs(Pi(t))]),l&&Oi(l,e,6,n);const c=r[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Oi(c,e,6,n)}}function uv(e,t,i=!1){const r=t.emitsCache,n=r.get(e);if(n!==void 0)return n;const s=e.emits;let o={},a=!1;if(!me(e)){const l=c=>{const d=uv(c,t,!0);d&&(a=!0,Be(o,d))};!i&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!s&&!a?(Ke(e)&&r.set(e,null),null):(ne(s)?s.forEach(l=>o[l]=null):Be(o,s),Ke(e)&&r.set(e,o),o)}function ad(e,t){return!e||!As(t)?!1:(t=t.slice(2).replace(/Once$/,""),Me(e,t[0].toLowerCase()+t.slice(1))||Me(e,Pi(t))||Me(e,t))}let wt=null,ld=null;function Ia(e){const t=wt;return wt=e,ld=e&&e.type.__scopeId||null,t}function Y4(e){ld=e}function Z4(){ld=null}const X4=e=>Wn;function Wn(e,t=wt,i){if(!t||e._n)return e;const r=(...n)=>{r._d&&gh(-1);const s=Ia(t);let o;try{o=e(...n)}finally{Ia(s),r._d&&gh(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function ic(e){const{type:t,vnode:i,proxy:r,withProxy:n,propsOptions:[s],slots:o,attrs:a,emit:l,render:c,renderCache:d,props:u,data:h,setupState:f,ctx:g,inheritAttrs:b}=e,w=Ia(e);let x,m;try{if(i.shapeFlag&4){const y=n||r,_=y;x=Di(c.call(_,y,d,u,f,h,g)),m=a}else{const y=t;x=Di(y.length>1?y(u,{attrs:a,slots:o,emit:l}):y(u,null)),m=t.props?a:Q4(a)}}catch(y){la.length=0,$s(y,e,1),x=Ue(Rt)}let p=x;if(m&&b!==!1){const y=Object.keys(m),{shapeFlag:_}=p;y.length&&_&7&&(s&&y.some(xf)&&(m=J4(m,s)),p=br(p,m,!1,!0))}return i.dirs&&(p=br(p,null,!1,!0),p.dirs=p.dirs?p.dirs.concat(i.dirs):i.dirs),i.transition&&(p.transition=i.transition),x=p,Ia(w),x}function G4(e,t=!0){let i;for(let r=0;r{let t;for(const i in e)(i==="class"||i==="style"||As(i))&&((t||(t={}))[i]=e[i]);return t},J4=(e,t)=>{const i={};for(const r in e)(!xf(r)||!(r.slice(9)in t))&&(i[r]=e[r]);return i};function e3(e,t,i){const{props:r,children:n,component:s}=e,{props:o,children:a,patchFlag:l}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(i&&l>=0){if(l&1024)return!0;if(l&16)return r?b0(r,o,c):!!o;if(l&8){const d=t.dynamicProps;for(let u=0;ue.__isSuspense;let ch=0;const s3={name:"Suspense",__isSuspense:!0,process(e,t,i,r,n,s,o,a,l,c){if(e==null)a3(t,i,r,n,s,o,a,l,c);else{if(s&&s.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}l3(e,t,i,r,n,o,a,l,c)}},hydrate:c3,create:Vf,normalize:d3},o3=s3;function Da(e,t){const i=e.props&&e.props[t];me(i)&&i()}function a3(e,t,i,r,n,s,o,a,l){const{p:c,o:{createElement:d}}=l,u=d("div"),h=e.suspense=Vf(e,n,r,t,u,i,s,o,a,l);c(null,h.pendingBranch=e.ssContent,u,null,r,h,s,o),h.deps>0?(Da(e,"onPending"),Da(e,"onFallback"),c(null,e.ssFallback,t,i,r,null,s,o),io(h,e.ssFallback)):h.resolve(!1,!0)}function l3(e,t,i,r,n,s,o,a,{p:l,um:c,o:{createElement:d}}){const u=t.suspense=e.suspense;u.vnode=t,t.el=e.el;const h=t.ssContent,f=t.ssFallback,{activeBranch:g,pendingBranch:b,isInFallback:w,isHydrating:x}=u;if(b)u.pendingBranch=h,sr(h,b)?(l(b,h,u.hiddenContainer,null,n,u,s,o,a),u.deps<=0?u.resolve():w&&(x||(l(g,f,i,r,n,null,s,o,a),io(u,f)))):(u.pendingId=ch++,x?(u.isHydrating=!1,u.activeBranch=b):c(b,n,u),u.deps=0,u.effects.length=0,u.hiddenContainer=d("div"),w?(l(null,h,u.hiddenContainer,null,n,u,s,o,a),u.deps<=0?u.resolve():(l(g,f,i,r,n,null,s,o,a),io(u,f))):g&&sr(h,g)?(l(g,h,i,r,n,u,s,o,a),u.resolve(!0)):(l(null,h,u.hiddenContainer,null,n,u,s,o,a),u.deps<=0&&u.resolve()));else if(g&&sr(h,g))l(g,h,i,r,n,u,s,o,a),io(u,h);else if(Da(t,"onPending"),u.pendingBranch=h,h.shapeFlag&512?u.pendingId=h.component.suspenseId:u.pendingId=ch++,l(null,h,u.hiddenContainer,null,n,u,s,o,a),u.deps<=0)u.resolve();else{const{timeout:m,pendingId:p}=u;m>0?setTimeout(()=>{u.pendingId===p&&u.fallback(f)},m):m===0&&u.fallback(f)}}function Vf(e,t,i,r,n,s,o,a,l,c,d=!1){const{p:u,m:h,um:f,n:g,o:{parentNode:b,remove:w}}=c;let x;const m=u3(e);m&&t&&t.pendingBranch&&(x=t.pendingId,t.deps++);const p=e.props?vc(e.props.timeout):void 0,y=s,_={vnode:e,parent:t,parentComponent:i,namespace:o,container:r,hiddenContainer:n,deps:0,pendingId:ch++,timeout:typeof p=="number"?p:-1,activeBranch:null,pendingBranch:null,isInFallback:!d,isHydrating:d,isUnmounted:!1,effects:[],resolve(C=!1,E=!1){const{vnode:A,activeBranch:S,pendingBranch:k,pendingId:T,effects:$,parentComponent:I,container:L}=_;let N=!1;_.isHydrating?_.isHydrating=!1:C||(N=S&&k.transition&&k.transition.mode==="out-in",N&&(S.transition.afterLeave=()=>{T===_.pendingId&&(h(k,L,s===y?g(S):s,0),bc($))}),S&&(b(S.el)!==_.hiddenContainer&&(s=g(S)),f(S,I,_,!0)),N||h(k,L,s,0)),io(_,k),_.pendingBranch=null,_.isInFallback=!1;let M=_.parent,X=!1;for(;M;){if(M.pendingBranch){M.effects.push(...$),X=!0;break}M=M.parent}!X&&!N&&bc($),_.effects=[],m&&t&&t.pendingBranch&&x===t.pendingId&&(t.deps--,t.deps===0&&!E&&t.resolve()),Da(A,"onResolve")},fallback(C){if(!_.pendingBranch)return;const{vnode:E,activeBranch:A,parentComponent:S,container:k,namespace:T}=_;Da(E,"onFallback");const $=g(A),I=()=>{_.isInFallback&&(u(null,C,k,$,S,null,T,a,l),io(_,C))},L=C.transition&&C.transition.mode==="out-in";L&&(A.transition.afterLeave=I),_.isInFallback=!0,f(A,S,null,!0),L||I()},move(C,E,A){_.activeBranch&&h(_.activeBranch,C,E,A),_.container=C},next(){return _.activeBranch&&g(_.activeBranch)},registerDep(C,E,A){const S=!!_.pendingBranch;S&&_.deps++;const k=C.vnode.el;C.asyncDep.catch(T=>{$s(T,C,0)}).then(T=>{if(C.isUnmounted||_.isUnmounted||_.pendingId!==C.suspenseId)return;C.asyncResolved=!0;const{vnode:$}=C;bh(C,T,!1),k&&($.el=k);const I=!k&&C.subTree.el;E(C,$,b(k||C.subTree.el),k?null:g(C.subTree),_,o,A),I&&w(I),zf(C,$.el),S&&--_.deps===0&&_.resolve()})},unmount(C,E){_.isUnmounted=!0,_.activeBranch&&f(_.activeBranch,i,C,E),_.pendingBranch&&f(_.pendingBranch,i,C,E)}};return _}function c3(e,t,i,r,n,s,o,a,l){const c=t.suspense=Vf(t,r,i,e.parentNode,document.createElement("div"),null,n,s,o,a,!0),d=l(e,c.pendingBranch=t.ssContent,i,c,s,o);return c.deps===0&&c.resolve(!1,!0),d}function d3(e){const{shapeFlag:t,children:i}=e,r=t&32;e.ssContent=_0(r?i.default:i),e.ssFallback=r?_0(i.fallback):Ue(Rt)}function _0(e){let t;if(me(e)){const i=gs&&e._c;i&&(e._d=!1,pi()),e=e(),i&&(e._d=!0,t=gi,Xv())}return ne(e)&&(e=G4(e)),e=Di(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(i=>i!==e)),e}function fv(e,t){t&&t.pendingBranch?ne(e)?t.effects.push(...e):t.effects.push(e):bc(e)}function io(e,t){e.activeBranch=t;const{vnode:i,parentComponent:r}=e;let n=t.el;for(;!n&&t.component;)t=t.component.subTree,n=t.el;i.el=n,r&&r.subTree===i&&(r.vnode.el=n,zf(r,n))}function u3(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}function cd(e,t,i=yt,r=!1){if(i){const n=i[e]||(i[e]=[]),s=t.__weh||(t.__weh=(...o)=>{$n();const a=vs(i),l=Oi(t,i,e,o);return a(),In(),l});return r?n.unshift(s):n.push(s),s}}const Zr=e=>(t,i=yt)=>{(!ul||e==="sp")&&cd(e,(...r)=>t(...r),i)},Kf=Zr("bm"),Xr=Zr("m"),pv=Zr("bu"),dd=Zr("u"),ll=Zr("bum"),ud=Zr("um"),mv=Zr("sp"),gv=Zr("rtg"),vv=Zr("rtc");function yv(e,t=yt){cd("ec",e,t)}function h3(e,t){if(wt===null)return e;const i=hl(wt),r=e.dirs||(e.dirs=[]);for(let n=0;nt(o,a,void 0,s&&s[a]));else{const o=Object.keys(e);n=new Array(o.length);for(let a=0,l=o.length;a{const s=r.fn(...n);return s&&(s.key=r.key),s}:r.fn)}return e}/*! #__NO_SIDE_EFFECTS__ */function Wf(e,t){return me(e)?Be({name:e.name},t,{setup:e}):e}const ls=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function m3(e){me(e)&&(e={loader:e});const{loader:t,loadingComponent:i,errorComponent:r,delay:n=200,timeout:s,suspensible:o=!0,onError:a}=e;let l=null,c,d=0;const u=()=>(d++,l=null,h()),h=()=>{let f;return l||(f=l=t().catch(g=>{if(g=g instanceof Error?g:new Error(String(g)),a)return new Promise((b,w)=>{a(g,()=>b(u()),()=>w(g),d+1)});throw g}).then(g=>f!==l&&l?l:(g&&(g.__esModule||g[Symbol.toStringTag]==="Module")&&(g=g.default),c=g,g)))};return Wf({name:"AsyncComponentWrapper",__asyncLoader:h,get __asyncResolved(){return c},setup(){const f=yt;if(c)return()=>Dd(c,f);const g=m=>{l=null,$s(m,f,13,!r)};if(o&&f.suspense||ul)return h().then(m=>()=>Dd(m,f)).catch(m=>(g(m),()=>r?Ue(r,{error:m}):null));const b=ut(!1),w=ut(),x=ut(!!n);return n&&setTimeout(()=>{x.value=!1},n),s!=null&&setTimeout(()=>{if(!b.value&&!w.value){const m=new Error(`Async component timed out after ${s}ms.`);g(m),w.value=m}},s),h().then(()=>{b.value=!0,f.parent&&dl(f.parent.vnode)&&(f.parent.effect.dirty=!0,od(f.parent.update))}).catch(m=>{g(m),w.value=m}),()=>{if(b.value&&c)return Dd(c,f);if(w.value&&r)return Ue(r,{error:w.value});if(i&&!x.value)return Ue(i)}}})}function Dd(e,t){const{ref:i,props:r,children:n,ce:s}=t.vnode,o=Ue(e,r,n);return o.ref=i,o.ce=s,delete t.vnode.ce,o}function bv(e,t,i={},r,n){if(wt.isCE||wt.parent&&ls(wt.parent)&&wt.parent.isCE)return t!=="default"&&(i.name=t),Ue("slot",i,r&&r());let s=e[t];s&&s._c&&(s._d=!1),pi();const o=s&&wv(s(i)),a=Ba(gt,{key:i.key||o&&o.key||`_${t}`},o||(r?r():[]),o&&e._===1?64:-2);return!n&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),s&&s._c&&(s._d=!0),a}function wv(e){return e.some(t=>xn(t)?!(t.type===Rt||t.type===gt&&!wv(t.children)):!0)?e:null}function g3(e,t){const i={};for(const r in e)i[t&&/[A-Z]/.test(r)?`on:${r}`:Gs(r)]=e[r];return i}const dh=e=>e?i2(e)?hl(e):dh(e.parent):null,sa=Be(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>dh(e.parent),$root:e=>dh(e.root),$emit:e=>e.emit,$options:e=>qf(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,od(e.update)}),$nextTick:e=>e.n||(e.n=sd.bind(e.proxy)),$watch:e=>Z3.bind(e)}),Pd=(e,t)=>e!==Fe&&!e.__isScriptSetup&&Me(e,t),uh={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:i,setupState:r,data:n,props:s,accessCache:o,type:a,appContext:l}=e;let c;if(t[0]!=="$"){const f=o[t];if(f!==void 0)switch(f){case 1:return r[t];case 2:return n[t];case 4:return i[t];case 3:return s[t]}else{if(Pd(r,t))return o[t]=1,r[t];if(n!==Fe&&Me(n,t))return o[t]=2,n[t];if((c=e.propsOptions[0])&&Me(c,t))return o[t]=3,s[t];if(i!==Fe&&Me(i,t))return o[t]=4,i[t];hh&&(o[t]=0)}}const d=sa[t];let u,h;if(d)return t==="$attrs"&&wi(e.attrs,"get",""),d(e);if((u=a.__cssModules)&&(u=u[t]))return u;if(i!==Fe&&Me(i,t))return o[t]=4,i[t];if(h=l.config.globalProperties,Me(h,t))return h[t]},set({_:e},t,i){const{data:r,setupState:n,ctx:s}=e;return Pd(n,t)?(n[t]=i,!0):r!==Fe&&Me(r,t)?(r[t]=i,!0):Me(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=i,!0)},has({_:{data:e,setupState:t,accessCache:i,ctx:r,appContext:n,propsOptions:s}},o){let a;return!!i[o]||e!==Fe&&Me(e,o)||Pd(t,o)||(a=s[0])&&Me(a,o)||Me(r,o)||Me(sa,o)||Me(n.config.globalProperties,o)},defineProperty(e,t,i){return i.get!=null?e._.accessCache[t]=0:Me(i,"value")&&this.set(e,t,i.value,null),Reflect.defineProperty(e,t,i)}},v3=Be({},uh,{get(e,t){if(t!==Symbol.unscopables)return uh.get(e,t,e)},has(e,t){return t[0]!=="_"&&!z5(t)}});function y3(){return null}function b3(){return null}function w3(e){}function _3(e){}function k3(){return null}function C3(){}function E3(e,t){return null}function x3(){return _v().slots}function S3(){return _v().attrs}function _v(){const e=Gr();return e.setupContext||(e.setupContext=o2(e))}function Pa(e){return ne(e)?e.reduce((t,i)=>(t[i]=null,t),{}):e}function A3(e,t){const i=Pa(e);for(const r in t){if(r.startsWith("__skip"))continue;let n=i[r];n?ne(n)||me(n)?n=i[r]={type:n,default:t[r]}:n.default=t[r]:n===null&&(n=i[r]={default:t[r]}),n&&t[`__skip_${r}`]&&(n.skipFactory=!0)}return i}function T3(e,t){return!e||!t?e||t:ne(e)&&ne(t)?e.concat(t):Be({},Pa(e),Pa(t))}function R3(e,t){const i={};for(const r in e)t.includes(r)||Object.defineProperty(i,r,{enumerable:!0,get:()=>e[r]});return i}function $3(e){const t=Gr();let i=e();return yh(),Af(i)&&(i=i.catch(r=>{throw vs(t),r})),[i,()=>vs(t)]}let hh=!0;function I3(e){const t=qf(e),i=e.proxy,r=e.ctx;hh=!1,t.beforeCreate&&k0(t.beforeCreate,e,"bc");const{data:n,computed:s,methods:o,watch:a,provide:l,inject:c,created:d,beforeMount:u,mounted:h,beforeUpdate:f,updated:g,activated:b,deactivated:w,beforeDestroy:x,beforeUnmount:m,destroyed:p,unmounted:y,render:_,renderTracked:C,renderTriggered:E,errorCaptured:A,serverPrefetch:S,expose:k,inheritAttrs:T,components:$,directives:I,filters:L}=t;if(c&&D3(c,r,null),o)for(const X in o){const q=o[X];me(q)&&(r[X]=q.bind(i))}if(n){const X=n.call(i,i);Ke(X)&&(e.data=rd(X))}if(hh=!0,s)for(const X in s){const q=s[X],he=me(q)?q.bind(i,i):me(q.get)?q.get.bind(i,i):bt,ve=!me(q)&&me(q.set)?q.set.bind(i):bt,z=a2({get:he,set:ve});Object.defineProperty(r,X,{enumerable:!0,configurable:!0,get:()=>z.value,set:U=>z.value=U})}if(a)for(const X in a)kv(a[X],r,i,X);if(l){const X=me(l)?l.call(i):l;Reflect.ownKeys(X).forEach(q=>{Ev(q,X[q])})}d&&k0(d,e,"c");function M(X,q){ne(q)?q.forEach(he=>X(he.bind(i))):q&&X(q.bind(i))}if(M(Kf,u),M(Xr,h),M(pv,f),M(dd,g),M(Vv,b),M(Kv,w),M(yv,A),M(vv,C),M(gv,E),M(ll,m),M(ud,y),M(mv,S),ne(k))if(k.length){const X=e.exposed||(e.exposed={});k.forEach(q=>{Object.defineProperty(X,q,{get:()=>i[q],set:he=>i[q]=he})})}else e.exposed||(e.exposed={});_&&e.render===bt&&(e.render=_),T!=null&&(e.inheritAttrs=T),$&&(e.components=$),I&&(e.directives=I)}function D3(e,t,i=bt){ne(e)&&(e=fh(e));for(const r in e){const n=e[r];let s;Ke(n)?"default"in n?s=oa(n.from||r,n.default,!0):s=oa(n.from||r):s=oa(n),Mt(s)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:o=>s.value=o}):t[r]=s}}function k0(e,t,i){Oi(ne(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,i)}function kv(e,t,i,r){const n=r.includes(".")?Uv(i,r):()=>i[r];if(ke(e)){const s=t[e];me(s)&&no(n,s)}else if(me(e))no(n,e.bind(i));else if(Ke(e))if(ne(e))e.forEach(s=>kv(s,t,i,r));else{const s=me(e.handler)?e.handler.bind(i):t[e.handler];me(s)&&no(n,s,e)}}function qf(e){const t=e.type,{mixins:i,extends:r}=t,{mixins:n,optionsCache:s,config:{optionMergeStrategies:o}}=e.appContext,a=s.get(t);let l;return a?l=a:!n.length&&!i&&!r?l=t:(l={},n.length&&n.forEach(c=>_c(l,c,o,!0)),_c(l,t,o)),Ke(t)&&s.set(t,l),l}function _c(e,t,i,r=!1){const{mixins:n,extends:s}=t;s&&_c(e,s,i,!0),n&&n.forEach(o=>_c(e,o,i,!0));for(const o in t)if(!(r&&o==="expose")){const a=P3[o]||i&&i[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const P3={data:C0,props:E0,emits:E0,methods:Xo,computed:Xo,beforeCreate:ti,created:ti,beforeMount:ti,mounted:ti,beforeUpdate:ti,updated:ti,beforeDestroy:ti,beforeUnmount:ti,destroyed:ti,unmounted:ti,activated:ti,deactivated:ti,errorCaptured:ti,serverPrefetch:ti,components:Xo,directives:Xo,watch:O3,provide:C0,inject:B3};function C0(e,t){return t?e?function(){return Be(me(e)?e.call(this,this):e,me(t)?t.call(this,this):t)}:t:e}function B3(e,t){return Xo(fh(e),fh(t))}function fh(e){if(ne(e)){const t={};for(let i=0;i1)return i&&me(t)?t.call(r&&r.proxy):t}}function N3(){return!!(yt||wt||ro)}const xv={},Sv=()=>Object.create(xv),Av=e=>Object.getPrototypeOf(e)===xv;function F3(e,t,i,r=!1){const n={},s=Sv();e.propsDefaults=Object.create(null),Tv(e,t,n,s);for(const o in e.propsOptions[0])o in n||(n[o]=void 0);i?e.props=r?n:tv(n):e.type.props?e.props=n:e.props=s,e.attrs=s}function z3(e,t,i,r){const{props:n,attrs:s,vnode:{patchFlag:o}}=e,a=Oe(n),[l]=e.propsOptions;let c=!1;if((r||o>0)&&!(o&16)){if(o&8){const d=e.vnode.dynamicProps;for(let u=0;u{l=!0;const[h,f]=Rv(u,t,!0);Be(o,h),f&&a.push(...f)};!i&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!s&&!l)return Ke(e)&&r.set(e,Zs),Zs;if(ne(s))for(let d=0;d-1,f[1]=b<0||g-1||Me(f,"default"))&&a.push(u)}}}const c=[o,a];return Ke(e)&&r.set(e,c),c}function x0(e){return e[0]!=="$"&&!gn(e)}function S0(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function A0(e,t){return S0(e)===S0(t)}function T0(e,t){return ne(t)?t.findIndex(i=>A0(i,e)):me(t)&&A0(t,e)?0:-1}const $v=e=>e[0]==="_"||e==="$stable",jf=e=>ne(e)?e.map(Di):[Di(e)],H3=(e,t,i)=>{if(t._n)return t;const r=Wn((...n)=>jf(t(...n)),i);return r._c=!1,r},Iv=(e,t,i)=>{const r=e._ctx;for(const n in e){if($v(n))continue;const s=e[n];if(me(s))t[n]=H3(n,s,r);else if(s!=null){const o=jf(s);t[n]=()=>o}}},Dv=(e,t)=>{const i=jf(t);e.slots.default=()=>i},U3=(e,t)=>{const i=e.slots=Sv();if(e.vnode.shapeFlag&32){const r=t._;r?(Be(i,t),Bg(i,"_",r,!0)):Iv(t,i)}else t&&Dv(e,t)},V3=(e,t,i)=>{const{vnode:r,slots:n}=e;let s=!0,o=Fe;if(r.shapeFlag&32){const a=t._;a?i&&a===1?s=!1:(Be(n,t),!i&&a===1&&delete n._):(s=!t.$stable,Iv(t,n)),o=t}else t&&(Dv(e,t),o={default:1});if(s)for(const a in n)!$v(a)&&o[a]==null&&delete n[a]};function kc(e,t,i,r,n=!1){if(ne(e)){e.forEach((h,f)=>kc(h,t&&(ne(t)?t[f]:t),i,r,n));return}if(ls(r)&&!n)return;const s=r.shapeFlag&4?hl(r.component):r.el,o=n?null:s,{i:a,r:l}=e,c=t&&t.r,d=a.refs===Fe?a.refs={}:a.refs,u=a.setupState;if(c!=null&&c!==l&&(ke(c)?(d[c]=null,Me(u,c)&&(u[c]=null)):Mt(c)&&(c.value=null)),me(l))Ur(l,a,12,[o,d]);else{const h=ke(l),f=Mt(l);if(h||f){const g=()=>{if(e.f){const b=h?Me(u,l)?u[l]:d[l]:l.value;n?ne(b)&&Sf(b,s):ne(b)?b.includes(s)||b.push(s):h?(d[l]=[s],Me(u,l)&&(u[l]=d[l])):(l.value=[s],e.k&&(d[e.k]=l.value))}else h?(d[l]=o,Me(u,l)&&(u[l]=o)):f&&(l.value=o,e.k&&(d[e.k]=o))};o?(g.id=-1,Et(g,i)):g()}}}let R0=!1;const Ms=()=>{R0||(console.error("Hydration completed but contains mismatches."),R0=!0)},K3=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",W3=e=>e.namespaceURI.includes("MathML"),Bl=e=>{if(K3(e))return"svg";if(W3(e))return"mathml"},Ol=e=>e.nodeType===8;function q3(e){const{mt:t,p:i,o:{patchProp:r,createText:n,nextSibling:s,parentNode:o,remove:a,insert:l,createComment:c}}=e,d=(p,y)=>{if(!y.hasChildNodes()){i(null,p,y),wc(),y._vnode=p;return}u(y.firstChild,p,null,null,null),wc(),y._vnode=p},u=(p,y,_,C,E,A=!1)=>{A=A||!!y.dynamicChildren;const S=Ol(p)&&p.data==="[",k=()=>b(p,y,_,C,E,S),{type:T,ref:$,shapeFlag:I,patchFlag:L}=y;let N=p.nodeType;y.el=p,L===-2&&(A=!1,y.dynamicChildren=null);let M=null;switch(T){case ms:N!==3?y.children===""?(l(y.el=n(""),o(p),p),M=p):M=k():(p.data!==y.children&&(Ms(),p.data=y.children),M=s(p));break;case Rt:m(p)?(M=s(p),x(y.el=p.content.firstChild,p,_)):N!==8||S?M=k():M=s(p);break;case cs:if(S&&(p=s(p),N=p.nodeType),N===1||N===3){M=p;const X=!y.children.length;for(let q=0;q{A=A||!!y.dynamicChildren;const{type:S,props:k,patchFlag:T,shapeFlag:$,dirs:I,transition:L}=y,N=S==="input"||S==="option";if(N||T!==-1){I&&fr(y,null,_,"created");let M=!1;if(m(p)){M=Lv(C,L)&&_&&_.vnode.props&&_.vnode.props.appear;const q=p.content.firstChild;M&&L.beforeEnter(q),x(q,p,_),y.el=p=q}if($&16&&!(k&&(k.innerHTML||k.textContent))){let q=f(p.firstChild,y,p,_,C,E,A);for(;q;){Ms();const he=q;q=q.nextSibling,a(he)}}else $&8&&p.textContent!==y.children&&(Ms(),p.textContent=y.children);if(k)if(N||!A||T&48)for(const q in k)(N&&(q.endsWith("value")||q==="indeterminate")||As(q)&&!gn(q)||q[0]===".")&&r(p,q,null,k[q],void 0,void 0,_);else k.onClick&&r(p,"onClick",null,k.onClick,void 0,void 0,_);let X;(X=k&&k.onVnodeBeforeMount)&&fi(X,_,y),I&&fr(y,null,_,"beforeMount"),((X=k&&k.onVnodeMounted)||I||M)&&fv(()=>{X&&fi(X,_,y),M&&L.enter(p),I&&fr(y,null,_,"mounted")},C)}return p.nextSibling},f=(p,y,_,C,E,A,S)=>{S=S||!!y.dynamicChildren;const k=y.children,T=k.length;for(let $=0;${const{slotScopeIds:S}=y;S&&(E=E?E.concat(S):S);const k=o(p),T=f(s(p),y,k,_,C,E,A);return T&&Ol(T)&&T.data==="]"?s(y.anchor=T):(Ms(),l(y.anchor=c("]"),k,T),T)},b=(p,y,_,C,E,A)=>{if(Ms(),y.el=null,A){const T=w(p);for(;;){const $=s(p);if($&&$!==T)a($);else break}}const S=s(p),k=o(p);return a(p),i(null,y,k,S,_,C,Bl(k),E),S},w=(p,y="[",_="]")=>{let C=0;for(;p;)if(p=s(p),p&&Ol(p)&&(p.data===y&&C++,p.data===_)){if(C===0)return s(p);C--}return p},x=(p,y,_)=>{const C=y.parentNode;C&&C.replaceChild(p,y);let E=_;for(;E;)E.vnode.el===y&&(E.vnode.el=E.subTree.el=p),E=E.parent},m=p=>p.nodeType===1&&p.tagName.toLowerCase()==="template";return[d,u]}const Et=fv;function Pv(e){return Ov(e)}function Bv(e){return Ov(e,q3)}function Ov(e,t){const i=Og();i.__VUE__=!0;const{insert:r,remove:n,patchProp:s,createElement:o,createText:a,createComment:l,setText:c,setElementText:d,parentNode:u,nextSibling:h,setScopeId:f=bt,insertStaticContent:g}=e,b=(D,B,H,j=null,Z=null,J=null,ee=void 0,Q=null,G=!!B.dynamicChildren)=>{if(D===B)return;D&&!sr(D,B)&&(j=ot(D),U(D,Z,J,!0),D=null),B.patchFlag===-2&&(G=!1,B.dynamicChildren=null);const{type:W,ref:te,shapeFlag:ae}=B;switch(W){case ms:w(D,B,H,j);break;case Rt:x(D,B,H,j);break;case cs:D==null&&m(B,H,j,ee);break;case gt:$(D,B,H,j,Z,J,ee,Q,G);break;default:ae&1?_(D,B,H,j,Z,J,ee,Q,G):ae&6?I(D,B,H,j,Z,J,ee,Q,G):(ae&64||ae&128)&&W.process(D,B,H,j,Z,J,ee,Q,G,Jt)}te!=null&&Z&&kc(te,D&&D.ref,J,B||D,!B)},w=(D,B,H,j)=>{if(D==null)r(B.el=a(B.children),H,j);else{const Z=B.el=D.el;B.children!==D.children&&c(Z,B.children)}},x=(D,B,H,j)=>{D==null?r(B.el=l(B.children||""),H,j):B.el=D.el},m=(D,B,H,j)=>{[D.el,D.anchor]=g(D.children,B,H,j,D.el,D.anchor)},p=({el:D,anchor:B},H,j)=>{let Z;for(;D&&D!==B;)Z=h(D),r(D,H,j),D=Z;r(B,H,j)},y=({el:D,anchor:B})=>{let H;for(;D&&D!==B;)H=h(D),n(D),D=H;n(B)},_=(D,B,H,j,Z,J,ee,Q,G)=>{B.type==="svg"?ee="svg":B.type==="math"&&(ee="mathml"),D==null?C(B,H,j,Z,J,ee,Q,G):S(D,B,Z,J,ee,Q,G)},C=(D,B,H,j,Z,J,ee,Q)=>{let G,W;const{props:te,shapeFlag:ae,transition:oe,dirs:fe}=D;if(G=D.el=o(D.type,J,te&&te.is,te),ae&8?d(G,D.children):ae&16&&A(D.children,G,null,j,Z,Bd(D,J),ee,Q),fe&&fr(D,null,j,"created"),E(G,D,D.scopeId,ee,j),te){for(const je in te)je!=="value"&&!gn(je)&&s(G,je,null,te[je],J,D.children,j,Z,Se);"value"in te&&s(G,"value",null,te.value,J),(W=te.onVnodeBeforeMount)&&fi(W,j,D)}fe&&fr(D,null,j,"beforeMount");const we=Lv(Z,oe);we&&oe.beforeEnter(G),r(G,B,H),((W=te&&te.onVnodeMounted)||we||fe)&&Et(()=>{W&&fi(W,j,D),we&&oe.enter(G),fe&&fr(D,null,j,"mounted")},Z)},E=(D,B,H,j,Z)=>{if(H&&f(D,H),j)for(let J=0;J{for(let W=G;W{const Q=B.el=D.el;let{patchFlag:G,dynamicChildren:W,dirs:te}=B;G|=D.patchFlag&16;const ae=D.props||Fe,oe=B.props||Fe;let fe;if(H&&Nn(H,!1),(fe=oe.onVnodeBeforeUpdate)&&fi(fe,H,B,D),te&&fr(B,D,H,"beforeUpdate"),H&&Nn(H,!0),W?k(D.dynamicChildren,W,Q,H,j,Bd(B,Z),J):ee||q(D,B,Q,null,H,j,Bd(B,Z),J,!1),G>0){if(G&16)T(Q,B,ae,oe,H,j,Z);else if(G&2&&ae.class!==oe.class&&s(Q,"class",null,oe.class,Z),G&4&&s(Q,"style",ae.style,oe.style,Z),G&8){const we=B.dynamicProps;for(let je=0;je{fe&&fi(fe,H,B,D),te&&fr(B,D,H,"updated")},j)},k=(D,B,H,j,Z,J,ee)=>{for(let Q=0;Q{if(H!==j){if(H!==Fe)for(const Q in H)!gn(Q)&&!(Q in j)&&s(D,Q,H[Q],null,ee,B.children,Z,J,Se);for(const Q in j){if(gn(Q))continue;const G=j[Q],W=H[Q];G!==W&&Q!=="value"&&s(D,Q,W,G,ee,B.children,Z,J,Se)}"value"in j&&s(D,"value",H.value,j.value,ee)}},$=(D,B,H,j,Z,J,ee,Q,G)=>{const W=B.el=D?D.el:a(""),te=B.anchor=D?D.anchor:a("");let{patchFlag:ae,dynamicChildren:oe,slotScopeIds:fe}=B;fe&&(Q=Q?Q.concat(fe):fe),D==null?(r(W,H,j),r(te,H,j),A(B.children||[],H,te,Z,J,ee,Q,G)):ae>0&&ae&64&&oe&&D.dynamicChildren?(k(D.dynamicChildren,oe,H,Z,J,ee,Q),(B.key!=null||Z&&B===Z.subTree)&&Yf(D,B,!0)):q(D,B,H,te,Z,J,ee,Q,G)},I=(D,B,H,j,Z,J,ee,Q,G)=>{B.slotScopeIds=Q,D==null?B.shapeFlag&512?Z.ctx.activate(B,H,j,ee,G):L(B,H,j,Z,J,ee,G):N(D,B,G)},L=(D,B,H,j,Z,J,ee)=>{const Q=D.component=t2(D,j,Z);if(dl(D)&&(Q.ctx.renderer=Jt),r2(Q),Q.asyncDep){if(Z&&Z.registerDep(Q,M,ee),!D.el){const G=Q.subTree=Ue(Rt);x(null,G,B,H)}}else M(Q,D,B,H,Z,J,ee)},N=(D,B,H)=>{const j=B.component=D.component;if(e3(D,B,H))if(j.asyncDep&&!j.asyncResolved){X(j,B,H);return}else j.next=B,W4(j.update),j.effect.dirty=!0,j.update();else B.el=D.el,j.vnode=B},M=(D,B,H,j,Z,J,ee)=>{const Q=()=>{if(D.isMounted){let{next:te,bu:ae,u:oe,parent:fe,vnode:we}=D;{const Vi=Mv(D);if(Vi){te&&(te.el=we.el,X(D,te,ee)),Vi.asyncDep.then(()=>{D.isUnmounted||Q()});return}}let je=te,Le;Nn(D,!1),te?(te.el=we.el,X(D,te,ee)):te=we,ae&&Qs(ae),(Le=te.props&&te.props.onVnodeBeforeUpdate)&&fi(Le,fe,te,we),Nn(D,!0);const at=ic(D),kt=D.subTree;D.subTree=at,b(kt,at,u(kt.el),ot(kt),D,Z,J),te.el=at.el,je===null&&zf(D,at.el),oe&&Et(oe,Z),(Le=te.props&&te.props.onVnodeUpdated)&&Et(()=>fi(Le,fe,te,we),Z)}else{let te;const{el:ae,props:oe}=B,{bm:fe,m:we,parent:je}=D,Le=ls(B);if(Nn(D,!1),fe&&Qs(fe),!Le&&(te=oe&&oe.onVnodeBeforeMount)&&fi(te,je,B),Nn(D,!0),ae&&xr){const at=()=>{D.subTree=ic(D),xr(ae,D.subTree,D,Z,null)};Le?B.type.__asyncLoader().then(()=>!D.isUnmounted&&at()):at()}else{const at=D.subTree=ic(D);b(null,at,H,j,D,Z,J),B.el=at.el}if(we&&Et(we,Z),!Le&&(te=oe&&oe.onVnodeMounted)){const at=B;Et(()=>fi(te,je,at),Z)}(B.shapeFlag&256||je&&ls(je.vnode)&&je.vnode.shapeFlag&256)&&D.a&&Et(D.a,Z),D.isMounted=!0,B=H=j=null}},G=D.effect=new uo(Q,bt,()=>od(W),D.scope),W=D.update=()=>{G.dirty&&G.run()};W.id=D.uid,Nn(D,!0),W()},X=(D,B,H)=>{B.component=D;const j=D.vnode.props;D.vnode=B,D.next=null,z3(D,B.props,j,H),V3(D,B.children,H),$n(),y0(D),In()},q=(D,B,H,j,Z,J,ee,Q,G=!1)=>{const W=D&&D.children,te=D?D.shapeFlag:0,ae=B.children,{patchFlag:oe,shapeFlag:fe}=B;if(oe>0){if(oe&128){ve(W,ae,H,j,Z,J,ee,Q,G);return}else if(oe&256){he(W,ae,H,j,Z,J,ee,Q,G);return}}fe&8?(te&16&&Se(W,Z,J),ae!==W&&d(H,ae)):te&16?fe&16?ve(W,ae,H,j,Z,J,ee,Q,G):Se(W,Z,J,!0):(te&8&&d(H,""),fe&16&&A(ae,H,j,Z,J,ee,Q,G))},he=(D,B,H,j,Z,J,ee,Q,G)=>{D=D||Zs,B=B||Zs;const W=D.length,te=B.length,ae=Math.min(W,te);let oe;for(oe=0;oete?Se(D,Z,J,!0,!1,ae):A(B,H,j,Z,J,ee,Q,G,ae)},ve=(D,B,H,j,Z,J,ee,Q,G)=>{let W=0;const te=B.length;let ae=D.length-1,oe=te-1;for(;W<=ae&&W<=oe;){const fe=D[W],we=B[W]=G?cn(B[W]):Di(B[W]);if(sr(fe,we))b(fe,we,H,null,Z,J,ee,Q,G);else break;W++}for(;W<=ae&&W<=oe;){const fe=D[ae],we=B[oe]=G?cn(B[oe]):Di(B[oe]);if(sr(fe,we))b(fe,we,H,null,Z,J,ee,Q,G);else break;ae--,oe--}if(W>ae){if(W<=oe){const fe=oe+1,we=feoe)for(;W<=ae;)U(D[W],Z,J,!0),W++;else{const fe=W,we=W,je=new Map;for(W=we;W<=oe;W++){const ei=B[W]=G?cn(B[W]):Di(B[W]);ei.key!=null&&je.set(ei.key,W)}let Le,at=0;const kt=oe-we+1;let Vi=!1,Al=0;const Jr=new Array(kt);for(W=0;W=kt){U(ei,Z,J,!0);continue}let Ki;if(ei.key!=null)Ki=je.get(ei.key);else for(Le=we;Le<=oe;Le++)if(Jr[Le-we]===0&&sr(ei,B[Le])){Ki=Le;break}Ki===void 0?U(ei,Z,J,!0):(Jr[Ki-we]=W+1,Ki>=Al?Al=Ki:Vi=!0,b(ei,B[Ki],H,null,Z,J,ee,Q,G),at++)}const Uo=Vi?j3(Jr):Zs;for(Le=Uo.length-1,W=kt-1;W>=0;W--){const ei=we+W,Ki=B[ei],Vo=ei+1{const{el:J,type:ee,transition:Q,children:G,shapeFlag:W}=D;if(W&6){z(D.component.subTree,B,H,j);return}if(W&128){D.suspense.move(B,H,j);return}if(W&64){ee.move(D,B,H,Jt);return}if(ee===gt){r(J,B,H);for(let ae=0;aeQ.enter(J),Z);else{const{leave:ae,delayLeave:oe,afterLeave:fe}=Q,we=()=>r(J,B,H),je=()=>{ae(J,()=>{we(),fe&&fe()})};oe?oe(J,we,je):je()}else r(J,B,H)},U=(D,B,H,j=!1,Z=!1)=>{const{type:J,props:ee,ref:Q,children:G,dynamicChildren:W,shapeFlag:te,patchFlag:ae,dirs:oe,memoIndex:fe}=D;if(Q!=null&&kc(Q,null,H,D,!0),fe!=null&&(B.renderCache[fe]=void 0),te&256){B.ctx.deactivate(D);return}const we=te&1&&oe,je=!ls(D);let Le;if(je&&(Le=ee&&ee.onVnodeBeforeUnmount)&&fi(Le,B,D),te&6)Ne(D.component,H,j);else{if(te&128){D.suspense.unmount(H,j);return}we&&fr(D,null,B,"beforeUnmount"),te&64?D.type.remove(D,B,H,Z,Jt,j):W&&(J!==gt||ae>0&&ae&64)?Se(W,B,H,!1,!0):(J===gt&&ae&384||!Z&&te&16)&&Se(G,B,H),j&&V(D)}(je&&(Le=ee&&ee.onVnodeUnmounted)||we)&&Et(()=>{Le&&fi(Le,B,D),we&&fr(D,null,B,"unmounted")},H)},V=D=>{const{type:B,el:H,anchor:j,transition:Z}=D;if(B===gt){K(H,j);return}if(B===cs){y(D);return}const J=()=>{n(H),Z&&!Z.persisted&&Z.afterLeave&&Z.afterLeave()};if(D.shapeFlag&1&&Z&&!Z.persisted){const{leave:ee,delayLeave:Q}=Z,G=()=>ee(H,J);Q?Q(D.el,J,G):G()}else J()},K=(D,B)=>{let H;for(;D!==B;)H=h(D),n(D),D=H;n(B)},Ne=(D,B,H)=>{const{bum:j,scope:Z,update:J,subTree:ee,um:Q,m:G,a:W}=D;Cc(G),Cc(W),j&&Qs(j),Z.stop(),J&&(J.active=!1,U(ee,D,B,H)),Q&&Et(Q,B),Et(()=>{D.isUnmounted=!0},B),B&&B.pendingBranch&&!B.isUnmounted&&D.asyncDep&&!D.asyncResolved&&D.suspenseId===B.pendingId&&(B.deps--,B.deps===0&&B.resolve())},Se=(D,B,H,j=!1,Z=!1,J=0)=>{for(let ee=J;eeD.shapeFlag&6?ot(D.component.subTree):D.shapeFlag&128?D.suspense.next():h(D.anchor||D.el);let ye=!1;const ur=(D,B,H)=>{D==null?B._vnode&&U(B._vnode,null,null,!0):b(B._vnode||null,D,B,null,null,null,H),ye||(ye=!0,y0(),wc(),ye=!1),B._vnode=D},Jt={p:b,um:U,m:z,r:V,mt:L,mc:A,pc:q,pbc:k,n:ot,o:e};let Mn,xr;return t&&([Mn,xr]=t(Jt)),{render:ur,hydrate:Mn,createApp:M3(ur,Mn)}}function Bd({type:e,props:t},i){return i==="svg"&&e==="foreignObject"||i==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:i}function Nn({effect:e,update:t},i){e.allowRecurse=t.allowRecurse=i}function Lv(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Yf(e,t,i=!1){const r=e.children,n=t.children;if(ne(r)&&ne(n))for(let s=0;s>1,e[i[a]]0&&(t[r]=i[s-1]),i[s]=r)}}for(s=i.length,o=i[s-1];s-- >0;)i[s]=o,o=t[o];return i}function Mv(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Mv(t)}function Cc(e){if(e)for(let t=0;toa(Nv);function Y3(e,t){return cl(e,null,t)}function zv(e,t){return cl(e,null,{flush:"post"})}function Hv(e,t){return cl(e,null,{flush:"sync"})}const Ll={};function no(e,t,i){return cl(e,t,i)}function cl(e,t,{immediate:i,deep:r,flush:n,once:s,onTrack:o,onTrigger:a}=Fe){if(t&&s){const C=t;t=(...E)=>{C(...E),_()}}const l=yt,c=C=>r===!0?C:un(C,r===!1?1:void 0);let d,u=!1,h=!1;if(Mt(e)?(d=()=>e.value,u=Aa(e)):Js(e)?(d=()=>c(e),u=!0):ne(e)?(h=!0,u=e.some(C=>Js(C)||Aa(C)),d=()=>e.map(C=>{if(Mt(C))return C.value;if(Js(C))return c(C);if(me(C))return Ur(C,l,2)})):me(e)?t?d=()=>Ur(e,l,2):d=()=>(f&&f(),Oi(e,l,3,[g])):d=bt,t&&r){const C=d;d=()=>un(C())}let f,g=C=>{f=p.onStop=()=>{Ur(C,l,4),f=p.onStop=void 0}},b;if(ul)if(g=bt,t?i&&Oi(t,l,3,[d(),h?[]:void 0,g]):d(),n==="sync"){const C=Fv();b=C.__watcherHandles||(C.__watcherHandles=[])}else return bt;let w=h?new Array(e.length).fill(Ll):Ll;const x=()=>{if(!(!p.active||!p.dirty))if(t){const C=p.run();(r||u||(h?C.some((E,A)=>lr(E,w[A])):lr(C,w)))&&(f&&f(),Oi(t,l,3,[C,w===Ll?void 0:h&&w[0]===Ll?[]:w,g]),w=C)}else p.run()};x.allowRecurse=!!t;let m;n==="sync"?m=x:n==="post"?m=()=>Et(x,l&&l.suspense):(x.pre=!0,l&&(x.id=l.uid),m=()=>od(x));const p=new uo(d,bt,m),y=Hg(),_=()=>{p.stop(),y&&Sf(y.effects,p)};return t?i?x():w=p.run():n==="post"?Et(p.run.bind(p),l&&l.suspense):p.run(),b&&b.push(_),_}function Z3(e,t,i){const r=this.proxy,n=ke(e)?e.includes(".")?Uv(r,e):()=>r[e]:e.bind(r,r);let s;me(t)?s=t:(s=t.handler,i=t);const o=vs(this),a=cl(n,s.bind(r),i);return o(),a}function Uv(e,t){const i=t.split(".");return()=>{let r=e;for(let n=0;n{un(r,t,i)});else if(Pg(e)){for(const r in e)un(e[r],t,i);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&un(e[r],t,i)}return e}const dl=e=>e.type.__isKeepAlive,X3={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const i=Gr(),r=i.ctx;if(!r.renderer)return()=>{const m=t.default&&t.default();return m&&m.length===1?m[0]:m};const n=new Map,s=new Set;let o=null;const a=i.suspense,{renderer:{p:l,m:c,um:d,o:{createElement:u}}}=r,h=u("div");r.activate=(m,p,y,_,C)=>{const E=m.component;c(m,p,y,0,a),l(E.vnode,m,p,y,E,a,_,m.slotScopeIds,C),Et(()=>{E.isDeactivated=!1,E.a&&Qs(E.a);const A=m.props&&m.props.onVnodeMounted;A&&fi(A,E.parent,m)},a)},r.deactivate=m=>{const p=m.component;Cc(p.m),Cc(p.a),c(m,h,null,1,a),Et(()=>{p.da&&Qs(p.da);const y=m.props&&m.props.onVnodeUnmounted;y&&fi(y,p.parent,m),p.isDeactivated=!0},a)};function f(m){Od(m),d(m,i,a,!0)}function g(m){n.forEach((p,y)=>{const _=_h(p.type);_&&(!m||!m(_))&&b(y)})}function b(m){const p=n.get(m);!o||!sr(p,o)?f(p):o&&Od(o),n.delete(m),s.delete(m)}no(()=>[e.include,e.exclude],([m,p])=>{m&&g(y=>Go(m,y)),p&&g(y=>!Go(p,y))},{flush:"post",deep:!0});let w=null;const x=()=>{w!=null&&(lh(i.subTree.type)?Et(()=>{n.set(w,Ml(i.subTree))},i.subTree.suspense):n.set(w,Ml(i.subTree)))};return Xr(x),dd(x),ll(()=>{n.forEach(m=>{const{subTree:p,suspense:y}=i,_=Ml(p);if(m.type===_.type&&m.key===_.key){Od(_);const C=_.component.da;C&&Et(C,y);return}f(m)})}),()=>{if(w=null,!t.default)return null;const m=t.default(),p=m[0];if(m.length>1)return o=null,m;if(!xn(p)||!(p.shapeFlag&4)&&!(p.shapeFlag&128))return o=null,p;let y=Ml(p);const _=y.type,C=_h(ls(y)?y.type.__asyncResolved||{}:_),{include:E,exclude:A,max:S}=e;if(E&&(!C||!Go(E,C))||A&&C&&Go(A,C))return o=y,p;const k=y.key==null?_:y.key,T=n.get(k);return y.el&&(y=br(y),p.shapeFlag&128&&(p.ssContent=y)),w=k,T?(y.el=T.el,y.component=T.component,y.transition&&En(y,y.transition),y.shapeFlag|=512,s.delete(k),s.add(k)):(s.add(k),S&&s.size>parseInt(S,10)&&b(s.values().next().value)),y.shapeFlag|=256,o=y,lh(p.type)?p:y}}},G3=X3;function Go(e,t){return ne(e)?e.some(i=>Go(i,t)):ke(e)?e.split(",").includes(t):B5(e)?e.test(t):!1}function Vv(e,t){Wv(e,"a",t)}function Kv(e,t){Wv(e,"da",t)}function Wv(e,t,i=yt){const r=e.__wdc||(e.__wdc=()=>{let n=i;for(;n;){if(n.isDeactivated)return;n=n.parent}return e()});if(cd(t,r,i),i){let n=i.parent;for(;n&&n.parent;)dl(n.parent.vnode)&&Q3(r,t,i,n),n=n.parent}}function Q3(e,t,i,r){const n=cd(t,e,r,!0);ud(()=>{Sf(r[t],n)},i)}function Od(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Ml(e){return e.shapeFlag&128?e.ssContent:e}const ln=Symbol("_leaveCb"),Nl=Symbol("_enterCb");function Zf(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Xr(()=>{e.isMounted=!0}),ll(()=>{e.isUnmounting=!0}),e}const Wi=[Function,Array],Xf={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Wi,onEnter:Wi,onAfterEnter:Wi,onEnterCancelled:Wi,onBeforeLeave:Wi,onLeave:Wi,onAfterLeave:Wi,onLeaveCancelled:Wi,onBeforeAppear:Wi,onAppear:Wi,onAfterAppear:Wi,onAppearCancelled:Wi},qv=e=>{const t=e.subTree;return t.component?qv(t.component):t},J3={name:"BaseTransition",props:Xf,setup(e,{slots:t}){const i=Gr(),r=Zf();return()=>{const n=t.default&&hd(t.default(),!0);if(!n||!n.length)return;let s=n[0];if(n.length>1){for(const h of n)if(h.type!==Rt){s=h;break}}const o=Oe(e),{mode:a}=o;if(r.isLeaving)return Ld(s);const l=$0(s);if(!l)return Ld(s);let c=fo(l,o,r,i,h=>c=h);En(l,c);const d=i.subTree,u=d&&$0(d);if(u&&u.type!==Rt&&!sr(l,u)&&qv(i).type!==Rt){const h=fo(u,o,r,i);if(En(u,h),a==="out-in"&&l.type!==Rt)return r.isLeaving=!0,h.afterLeave=()=>{r.isLeaving=!1,i.update.active!==!1&&(i.effect.dirty=!0,i.update())},Ld(s);a==="in-out"&&l.type!==Rt&&(h.delayLeave=(f,g,b)=>{const w=Yv(r,u);w[String(u.key)]=u,f[ln]=()=>{g(),f[ln]=void 0,delete c.delayedLeave},c.delayedLeave=b})}return s}}},jv=J3;function Yv(e,t){const{leavingVNodes:i}=e;let r=i.get(t.type);return r||(r=Object.create(null),i.set(t.type,r)),r}function fo(e,t,i,r,n){const{appear:s,mode:o,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:d,onEnterCancelled:u,onBeforeLeave:h,onLeave:f,onAfterLeave:g,onLeaveCancelled:b,onBeforeAppear:w,onAppear:x,onAfterAppear:m,onAppearCancelled:p}=t,y=String(e.key),_=Yv(i,e),C=(S,k)=>{S&&Oi(S,r,9,k)},E=(S,k)=>{const T=k[1];C(S,k),ne(S)?S.every($=>$.length<=1)&&T():S.length<=1&&T()},A={mode:o,persisted:a,beforeEnter(S){let k=l;if(!i.isMounted)if(s)k=w||l;else return;S[ln]&&S[ln](!0);const T=_[y];T&&sr(e,T)&&T.el[ln]&&T.el[ln](),C(k,[S])},enter(S){let k=c,T=d,$=u;if(!i.isMounted)if(s)k=x||c,T=m||d,$=p||u;else return;let I=!1;const L=S[Nl]=N=>{I||(I=!0,N?C($,[S]):C(T,[S]),A.delayedLeave&&A.delayedLeave(),S[Nl]=void 0)};k?E(k,[S,L]):L()},leave(S,k){const T=String(e.key);if(S[Nl]&&S[Nl](!0),i.isUnmounting)return k();C(h,[S]);let $=!1;const I=S[ln]=L=>{$||($=!0,k(),L?C(b,[S]):C(g,[S]),S[ln]=void 0,_[T]===e&&delete _[T])};_[T]=e,f?E(f,[S,I]):I()},clone(S){const k=fo(S,t,i,r,n);return n&&n(k),k}};return A}function Ld(e){if(dl(e))return e=br(e),e.children=null,e}function $0(e){if(!dl(e))return e;const{shapeFlag:t,children:i}=e;if(i){if(t&16)return i[0];if(t&32&&me(i.default))return i.default()}}function En(e,t){e.shapeFlag&6&&e.component?En(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function hd(e,t=!1,i){let r=[],n=0;for(let s=0;s1)for(let s=0;se.__isTeleport,aa=e=>e&&(e.disabled||e.disabled===""),I0=e=>typeof SVGElement<"u"&&e instanceof SVGElement,D0=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,mh=(e,t)=>{const i=e&&e.to;return ke(i)?t?t(i):null:i},t6={name:"Teleport",__isTeleport:!0,process(e,t,i,r,n,s,o,a,l,c){const{mc:d,pc:u,pbc:h,o:{insert:f,querySelector:g,createText:b,createComment:w}}=c,x=aa(t.props);let{shapeFlag:m,children:p,dynamicChildren:y}=t;if(e==null){const _=t.el=b(""),C=t.anchor=b("");f(_,i,r),f(C,i,r);const E=t.target=mh(t.props,g),A=t.targetAnchor=b("");E&&(f(A,E),o==="svg"||I0(E)?o="svg":(o==="mathml"||D0(E))&&(o="mathml"));const S=(k,T)=>{m&16&&d(p,k,T,n,s,o,a,l)};x?S(i,C):E&&S(E,A)}else{t.el=e.el;const _=t.anchor=e.anchor,C=t.target=e.target,E=t.targetAnchor=e.targetAnchor,A=aa(e.props),S=A?i:C,k=A?_:E;if(o==="svg"||I0(C)?o="svg":(o==="mathml"||D0(C))&&(o="mathml"),y?(h(e.dynamicChildren,y,S,n,s,o,a),Yf(e,t,!0)):l||u(e,t,S,k,n,s,o,a,!1),x)A?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Fl(t,i,_,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const T=t.target=mh(t.props,g);T&&Fl(t,T,null,c,0)}else A&&Fl(t,C,E,c,1)}Zv(t)},remove(e,t,i,r,{um:n,o:{remove:s}},o){const{shapeFlag:a,children:l,anchor:c,targetAnchor:d,target:u,props:h}=e;if(u&&s(d),o&&s(c),a&16){const f=o||!aa(h);for(let g=0;g0?gi||Zs:null,Xv(),gs>0&&gi&&gi.push(e),e}function Vr(e,t,i,r,n,s){return Gv(Re(e,t,i,r,n,s,!0))}function Ba(e,t,i,r,n){return Gv(Ue(e,t,i,r,n,!0))}function xn(e){return e?e.__v_isVNode===!0:!1}function sr(e,t){return e.type===t.type&&e.key===t.key}function n6(e){}const Qv=({key:e})=>e??null,rc=({ref:e,ref_key:t,ref_for:i})=>(typeof e=="number"&&(e=""+e),e!=null?ke(e)||Mt(e)||me(e)?{i:wt,r:e,k:t,f:!!i}:e:null);function Re(e,t=null,i=null,r=0,n=null,s=e===gt?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Qv(t),ref:t&&rc(t),scopeId:ld,slotScopeIds:null,children:i,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:wt};return a?(Gf(l,i),s&128&&e.normalize(l)):i&&(l.shapeFlag|=ke(i)?8:16),gs>0&&!o&&gi&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&gi.push(l),l}const Ue=s6;function s6(e,t=null,i=null,r=0,n=null,s=!1){if((!e||e===hv)&&(e=Rt),xn(e)){const a=br(e,t,!0);return i&&Gf(a,i),gs>0&&!s&&gi&&(a.shapeFlag&6?gi[gi.indexOf(e)]=a:gi.push(a)),a.patchFlag=-2,a}if(h6(e)&&(e=e.__vccOpts),t){t=Jv(t);let{class:a,style:l}=t;a&&!ke(a)&&(t.class=al(a)),Ke(l)&&(Bf(l)&&!ne(l)&&(l=Be({},l)),t.style=ps(l))}const o=ke(e)?1:lh(e)?128:e6(e)?64:Ke(e)?4:me(e)?2:0;return Re(e,t,i,r,n,o,s,!0)}function Jv(e){return e?Bf(e)||Av(e)?Be({},e):e:null}function br(e,t,i=!1,r=!1){const{props:n,ref:s,patchFlag:o,children:a,transition:l}=e,c=t?e2(n||{},t):n,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Qv(c),ref:t&&t.ref?i&&s?ne(s)?s.concat(rc(t)):[s,rc(t)]:rc(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==gt?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&br(e.ssContent),ssFallback:e.ssFallback&&br(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&En(d,l.clone(d)),d}function fd(e=" ",t=0){return Ue(ms,null,e,t)}function o6(e,t){const i=Ue(cs,null,e);return i.staticCount=t,i}function js(e="",t=!1){return t?(pi(),Ba(Rt,null,e)):Ue(Rt,null,e)}function Di(e){return e==null||typeof e=="boolean"?Ue(Rt):ne(e)?Ue(gt,null,e.slice()):typeof e=="object"?cn(e):Ue(ms,null,String(e))}function cn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:br(e)}function Gf(e,t){let i=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(ne(t))i=16;else if(typeof t=="object")if(r&65){const n=t.default;n&&(n._c&&(n._d=!1),Gf(e,n()),n._c&&(n._d=!0));return}else{i=32;const n=t._;!n&&!Av(t)?t._ctx=wt:n===3&&wt&&(wt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else me(t)?(t={default:t,_ctx:wt},i=32):(t=String(t),r&64?(i=16,t=[fd(t)]):i=8);e.children=t,e.shapeFlag|=i}function e2(...e){const t={};for(let i=0;iyt||wt;let Ec,vh;{const e=Og(),t=(i,r)=>{let n;return(n=e[i])||(n=e[i]=[]),n.push(r),s=>{n.length>1?n.forEach(o=>o(s)):n[0](s)}};Ec=t("__VUE_INSTANCE_SETTERS__",i=>yt=i),vh=t("__VUE_SSR_SETTERS__",i=>ul=i)}const vs=e=>{const t=yt;return Ec(e),e.scope.on(),()=>{e.scope.off(),Ec(t)}},yh=()=>{yt&&yt.scope.off(),Ec(null)};function i2(e){return e.vnode.shapeFlag&4}let ul=!1;function r2(e,t=!1){t&&vh(t);const{props:i,children:r}=e.vnode,n=i2(e);F3(e,i,n,t),U3(e,r);const s=n?c6(e,t):void 0;return t&&vh(!1),s}function c6(e,t){const i=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,uh);const{setup:r}=i;if(r){const n=e.setupContext=r.length>1?o2(e):null,s=vs(e);$n();const o=Ur(r,e,0,[e.props,n]);if(In(),s(),Af(o)){if(o.then(yh,yh),t)return o.then(a=>{bh(e,a,t)}).catch(a=>{$s(a,e,0)});e.asyncDep=o}else bh(e,o,t)}else s2(e,t)}function bh(e,t,i){me(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ke(t)&&(e.setupState=Nf(t)),s2(e,i)}let xc,wh;function n2(e){xc=e,wh=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,v3))}}const d6=()=>!xc;function s2(e,t,i){const r=e.type;if(!e.render){if(!t&&xc&&!r.render){const n=r.template||qf(e).template;if(n){const{isCustomElement:s,compilerOptions:o}=e.appContext.config,{delimiters:a,compilerOptions:l}=r,c=Be(Be({isCustomElement:s,delimiters:a},o),l);r.render=xc(n,c)}}e.render=r.render||bt,wh&&wh(e)}{const n=vs(e);$n();try{I3(e)}finally{In(),n()}}}const u6={get(e,t){return wi(e,"get",""),e[t]}};function o2(e){const t=i=>{e.exposed=i||{}};return{attrs:new Proxy(e.attrs,u6),slots:e.slots,emit:e.emit,expose:t}}function hl(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Nf(iv(e.exposed)),{get(t,i){if(i in t)return t[i];if(i in sa)return sa[i](e)},has(t,i){return i in t||i in sa}})):e.proxy}function _h(e,t=!0){return me(e)?e.displayName||e.name:e.name||t&&e.__name}function h6(e){return me(e)&&"__vccOpts"in e}const a2=(e,t)=>A4(e,t,ul);function f6(e,t,i=Fe){const r=Gr(),n=it(t),s=Pi(t),o=sv((l,c)=>{let d;return Hv(()=>{const u=e[t];lr(d,u)&&(d=u,c())}),{get(){return l(),i.get?i.get(d):d},set(u){const h=r.vnode.props;!(h&&(t in h||n in h||s in h)&&(`onUpdate:${t}`in h||`onUpdate:${n}`in h||`onUpdate:${s}`in h))&&lr(u,d)&&(d=u,c()),r.emit(`update:${t}`,i.set?i.set(u):u)}}}),a=t==="modelValue"?"modelModifiers":`${t}Modifiers`;return o[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?e[a]||{}:o,done:!1}:{done:!0}}}},o}function l2(e,t,i){const r=arguments.length;return r===2?Ke(t)&&!ne(t)?xn(t)?Ue(e,null,[t]):Ue(e,t):Ue(e,null,t):(r>3?i=Array.prototype.slice.call(arguments,2):r===3&&xn(i)&&(i=[i]),Ue(e,t,i))}function p6(){}function m6(e,t,i,r){const n=i[r];if(n&&c2(n,e))return n;const s=t();return s.memo=e.slice(),s.memoIndex=r,i[r]=s}function c2(e,t){const i=e.memo;if(i.length!=t.length)return!1;for(let r=0;r0&&gi&&gi.push(e),!0}const d2="3.4.29",g6=bt,v6=U4,y6=Ks,b6=dv,w6={createComponentInstance:t2,setupComponent:r2,renderComponentRoot:ic,setCurrentRenderingInstance:Ia,isVNode:xn,normalizeVNode:Di,getComponentPublicInstance:hl},_6=w6,k6=null,C6=null,E6=null;/** +**/function z4(e,t){}const H4={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER"},U4={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."};function Ur(e,t,i,r){try{return r?e(...r):e()}catch(n){$s(n,t,i)}}function Oi(e,t,i,r){if(me(e)){const n=Ur(e,t,i,r);return n&&Af(n)&&n.catch(s=>{$s(s,t,i)}),n}if(ne(e)){const n=[];for(let s=0;s>>1,n=Zt[r],s=$a(n);smr&&Zt.splice(t,1)}function bc(e){ne(e)?to.push(...e):(!an||!an.includes(e,e.allowRecurse?Kn+1:Kn))&&to.push(e),lv()}function y0(e,t,i=Ra?mr+1:0){for(;i$a(i)-$a(r));if(to.length=0,an){an.push(...t);return}for(an=t,Kn=0;Kne.id==null?1/0:e.id,q4=(e,t)=>{const i=$a(e)-$a(t);if(i===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return i};function cv(e){ah=!1,Ra=!0,Zt.sort(q4);try{for(mr=0;mrKs.emit(n,...s)),Pl=[]):typeof window<"u"&&window.HTMLElement&&!((r=(i=window.navigator)==null?void 0:i.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(s=>{dv(s,t)}),setTimeout(()=>{Ks||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Pl=[])},3e3)):Pl=[]}function j4(e,t,...i){if(e.isUnmounted)return;const r=e.vnode.props||Fe;let n=i;const s=t.startsWith("update:"),o=s&&t.slice(7);if(o&&o in r){const d=`${o==="modelValue"?"model":o}Modifiers`,{number:u,trim:h}=r[d]||Fe;h&&(n=i.map(f=>ke(f)?f.trim():f)),u&&(n=i.map(gc))}let a,l=r[a=Gs(t)]||r[a=Gs(it(t))];!l&&s&&(l=r[a=Gs(Pi(t))]),l&&Oi(l,e,6,n);const c=r[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Oi(c,e,6,n)}}function uv(e,t,i=!1){const r=t.emitsCache,n=r.get(e);if(n!==void 0)return n;const s=e.emits;let o={},a=!1;if(!me(e)){const l=c=>{const d=uv(c,t,!0);d&&(a=!0,Be(o,d))};!i&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!s&&!a?(Ke(e)&&r.set(e,null),null):(ne(s)?s.forEach(l=>o[l]=null):Be(o,s),Ke(e)&&r.set(e,o),o)}function ad(e,t){return!e||!As(t)?!1:(t=t.slice(2).replace(/Once$/,""),Me(e,t[0].toLowerCase()+t.slice(1))||Me(e,Pi(t))||Me(e,t))}let wt=null,ld=null;function Ia(e){const t=wt;return wt=e,ld=e&&e.type.__scopeId||null,t}function Y4(e){ld=e}function Z4(){ld=null}const X4=e=>Wn;function Wn(e,t=wt,i){if(!t||e._n)return e;const r=(...n)=>{r._d&&gh(-1);const s=Ia(t);let o;try{o=e(...n)}finally{Ia(s),r._d&&gh(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function ic(e){const{type:t,vnode:i,proxy:r,withProxy:n,propsOptions:[s],slots:o,attrs:a,emit:l,render:c,renderCache:d,props:u,data:h,setupState:f,ctx:g,inheritAttrs:b}=e,w=Ia(e);let x,m;try{if(i.shapeFlag&4){const y=n||r,C=y;x=Di(c.call(C,y,d,u,f,h,g)),m=a}else{const y=t;x=Di(y.length>1?y(u,{attrs:a,slots:o,emit:l}):y(u,null)),m=t.props?a:Q4(a)}}catch(y){la.length=0,$s(y,e,1),x=Ue(Rt)}let p=x;if(m&&b!==!1){const y=Object.keys(m),{shapeFlag:C}=p;y.length&&C&7&&(s&&y.some(xf)&&(m=J4(m,s)),p=br(p,m,!1,!0))}return i.dirs&&(p=br(p,null,!1,!0),p.dirs=p.dirs?p.dirs.concat(i.dirs):i.dirs),i.transition&&(p.transition=i.transition),x=p,Ia(w),x}function G4(e,t=!0){let i;for(let r=0;r{let t;for(const i in e)(i==="class"||i==="style"||As(i))&&((t||(t={}))[i]=e[i]);return t},J4=(e,t)=>{const i={};for(const r in e)(!xf(r)||!(r.slice(9)in t))&&(i[r]=e[r]);return i};function e3(e,t,i){const{props:r,children:n,component:s}=e,{props:o,children:a,patchFlag:l}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(i&&l>=0){if(l&1024)return!0;if(l&16)return r?b0(r,o,c):!!o;if(l&8){const d=t.dynamicProps;for(let u=0;ue.__isSuspense;let ch=0;const s3={name:"Suspense",__isSuspense:!0,process(e,t,i,r,n,s,o,a,l,c){if(e==null)a3(t,i,r,n,s,o,a,l,c);else{if(s&&s.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}l3(e,t,i,r,n,o,a,l,c)}},hydrate:c3,create:Vf,normalize:d3},o3=s3;function Da(e,t){const i=e.props&&e.props[t];me(i)&&i()}function a3(e,t,i,r,n,s,o,a,l){const{p:c,o:{createElement:d}}=l,u=d("div"),h=e.suspense=Vf(e,n,r,t,u,i,s,o,a,l);c(null,h.pendingBranch=e.ssContent,u,null,r,h,s,o),h.deps>0?(Da(e,"onPending"),Da(e,"onFallback"),c(null,e.ssFallback,t,i,r,null,s,o),io(h,e.ssFallback)):h.resolve(!1,!0)}function l3(e,t,i,r,n,s,o,a,{p:l,um:c,o:{createElement:d}}){const u=t.suspense=e.suspense;u.vnode=t,t.el=e.el;const h=t.ssContent,f=t.ssFallback,{activeBranch:g,pendingBranch:b,isInFallback:w,isHydrating:x}=u;if(b)u.pendingBranch=h,sr(h,b)?(l(b,h,u.hiddenContainer,null,n,u,s,o,a),u.deps<=0?u.resolve():w&&(x||(l(g,f,i,r,n,null,s,o,a),io(u,f)))):(u.pendingId=ch++,x?(u.isHydrating=!1,u.activeBranch=b):c(b,n,u),u.deps=0,u.effects.length=0,u.hiddenContainer=d("div"),w?(l(null,h,u.hiddenContainer,null,n,u,s,o,a),u.deps<=0?u.resolve():(l(g,f,i,r,n,null,s,o,a),io(u,f))):g&&sr(h,g)?(l(g,h,i,r,n,u,s,o,a),u.resolve(!0)):(l(null,h,u.hiddenContainer,null,n,u,s,o,a),u.deps<=0&&u.resolve()));else if(g&&sr(h,g))l(g,h,i,r,n,u,s,o,a),io(u,h);else if(Da(t,"onPending"),u.pendingBranch=h,h.shapeFlag&512?u.pendingId=h.component.suspenseId:u.pendingId=ch++,l(null,h,u.hiddenContainer,null,n,u,s,o,a),u.deps<=0)u.resolve();else{const{timeout:m,pendingId:p}=u;m>0?setTimeout(()=>{u.pendingId===p&&u.fallback(f)},m):m===0&&u.fallback(f)}}function Vf(e,t,i,r,n,s,o,a,l,c,d=!1){const{p:u,m:h,um:f,n:g,o:{parentNode:b,remove:w}}=c;let x;const m=u3(e);m&&t&&t.pendingBranch&&(x=t.pendingId,t.deps++);const p=e.props?vc(e.props.timeout):void 0,y=s,C={vnode:e,parent:t,parentComponent:i,namespace:o,container:r,hiddenContainer:n,deps:0,pendingId:ch++,timeout:typeof p=="number"?p:-1,activeBranch:null,pendingBranch:null,isInFallback:!d,isHydrating:d,isUnmounted:!1,effects:[],resolve(_=!1,E=!1){const{vnode:S,activeBranch:A,pendingBranch:k,pendingId:T,effects:$,parentComponent:I,container:L}=C;let N=!1;C.isHydrating?C.isHydrating=!1:_||(N=A&&k.transition&&k.transition.mode==="out-in",N&&(A.transition.afterLeave=()=>{T===C.pendingId&&(h(k,L,s===y?g(A):s,0),bc($))}),A&&(b(A.el)!==C.hiddenContainer&&(s=g(A)),f(A,I,C,!0)),N||h(k,L,s,0)),io(C,k),C.pendingBranch=null,C.isInFallback=!1;let M=C.parent,X=!1;for(;M;){if(M.pendingBranch){M.effects.push(...$),X=!0;break}M=M.parent}!X&&!N&&bc($),C.effects=[],m&&t&&t.pendingBranch&&x===t.pendingId&&(t.deps--,t.deps===0&&!E&&t.resolve()),Da(S,"onResolve")},fallback(_){if(!C.pendingBranch)return;const{vnode:E,activeBranch:S,parentComponent:A,container:k,namespace:T}=C;Da(E,"onFallback");const $=g(S),I=()=>{C.isInFallback&&(u(null,_,k,$,A,null,T,a,l),io(C,_))},L=_.transition&&_.transition.mode==="out-in";L&&(S.transition.afterLeave=I),C.isInFallback=!0,f(S,A,null,!0),L||I()},move(_,E,S){C.activeBranch&&h(C.activeBranch,_,E,S),C.container=_},next(){return C.activeBranch&&g(C.activeBranch)},registerDep(_,E,S){const A=!!C.pendingBranch;A&&C.deps++;const k=_.vnode.el;_.asyncDep.catch(T=>{$s(T,_,0)}).then(T=>{if(_.isUnmounted||C.isUnmounted||C.pendingId!==_.suspenseId)return;_.asyncResolved=!0;const{vnode:$}=_;bh(_,T,!1),k&&($.el=k);const I=!k&&_.subTree.el;E(_,$,b(k||_.subTree.el),k?null:g(_.subTree),C,o,S),I&&w(I),zf(_,$.el),A&&--C.deps===0&&C.resolve()})},unmount(_,E){C.isUnmounted=!0,C.activeBranch&&f(C.activeBranch,i,_,E),C.pendingBranch&&f(C.pendingBranch,i,_,E)}};return C}function c3(e,t,i,r,n,s,o,a,l){const c=t.suspense=Vf(t,r,i,e.parentNode,document.createElement("div"),null,n,s,o,a,!0),d=l(e,c.pendingBranch=t.ssContent,i,c,s,o);return c.deps===0&&c.resolve(!1,!0),d}function d3(e){const{shapeFlag:t,children:i}=e,r=t&32;e.ssContent=_0(r?i.default:i),e.ssFallback=r?_0(i.fallback):Ue(Rt)}function _0(e){let t;if(me(e)){const i=gs&&e._c;i&&(e._d=!1,pi()),e=e(),i&&(e._d=!0,t=gi,Xv())}return ne(e)&&(e=G4(e)),e=Di(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(i=>i!==e)),e}function fv(e,t){t&&t.pendingBranch?ne(e)?t.effects.push(...e):t.effects.push(e):bc(e)}function io(e,t){e.activeBranch=t;const{vnode:i,parentComponent:r}=e;let n=t.el;for(;!n&&t.component;)t=t.component.subTree,n=t.el;i.el=n,r&&r.subTree===i&&(r.vnode.el=n,zf(r,n))}function u3(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}function cd(e,t,i=yt,r=!1){if(i){const n=i[e]||(i[e]=[]),s=t.__weh||(t.__weh=(...o)=>{$n();const a=vs(i),l=Oi(t,i,e,o);return a(),In(),l});return r?n.unshift(s):n.push(s),s}}const Zr=e=>(t,i=yt)=>{(!ul||e==="sp")&&cd(e,(...r)=>t(...r),i)},Kf=Zr("bm"),Xr=Zr("m"),pv=Zr("bu"),dd=Zr("u"),ll=Zr("bum"),ud=Zr("um"),mv=Zr("sp"),gv=Zr("rtg"),vv=Zr("rtc");function yv(e,t=yt){cd("ec",e,t)}function h3(e,t){if(wt===null)return e;const i=hl(wt),r=e.dirs||(e.dirs=[]);for(let n=0;nt(o,a,void 0,s&&s[a]));else{const o=Object.keys(e);n=new Array(o.length);for(let a=0,l=o.length;a{const s=r.fn(...n);return s&&(s.key=r.key),s}:r.fn)}return e}/*! #__NO_SIDE_EFFECTS__ */function Wf(e,t){return me(e)?Be({name:e.name},t,{setup:e}):e}const ls=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function m3(e){me(e)&&(e={loader:e});const{loader:t,loadingComponent:i,errorComponent:r,delay:n=200,timeout:s,suspensible:o=!0,onError:a}=e;let l=null,c,d=0;const u=()=>(d++,l=null,h()),h=()=>{let f;return l||(f=l=t().catch(g=>{if(g=g instanceof Error?g:new Error(String(g)),a)return new Promise((b,w)=>{a(g,()=>b(u()),()=>w(g),d+1)});throw g}).then(g=>f!==l&&l?l:(g&&(g.__esModule||g[Symbol.toStringTag]==="Module")&&(g=g.default),c=g,g)))};return Wf({name:"AsyncComponentWrapper",__asyncLoader:h,get __asyncResolved(){return c},setup(){const f=yt;if(c)return()=>Dd(c,f);const g=m=>{l=null,$s(m,f,13,!r)};if(o&&f.suspense||ul)return h().then(m=>()=>Dd(m,f)).catch(m=>(g(m),()=>r?Ue(r,{error:m}):null));const b=ut(!1),w=ut(),x=ut(!!n);return n&&setTimeout(()=>{x.value=!1},n),s!=null&&setTimeout(()=>{if(!b.value&&!w.value){const m=new Error(`Async component timed out after ${s}ms.`);g(m),w.value=m}},s),h().then(()=>{b.value=!0,f.parent&&dl(f.parent.vnode)&&(f.parent.effect.dirty=!0,od(f.parent.update))}).catch(m=>{g(m),w.value=m}),()=>{if(b.value&&c)return Dd(c,f);if(w.value&&r)return Ue(r,{error:w.value});if(i&&!x.value)return Ue(i)}}})}function Dd(e,t){const{ref:i,props:r,children:n,ce:s}=t.vnode,o=Ue(e,r,n);return o.ref=i,o.ce=s,delete t.vnode.ce,o}function bv(e,t,i={},r,n){if(wt.isCE||wt.parent&&ls(wt.parent)&&wt.parent.isCE)return t!=="default"&&(i.name=t),Ue("slot",i,r&&r());let s=e[t];s&&s._c&&(s._d=!1),pi();const o=s&&wv(s(i)),a=Ba(gt,{key:i.key||o&&o.key||`_${t}`},o||(r?r():[]),o&&e._===1?64:-2);return!n&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),s&&s._c&&(s._d=!0),a}function wv(e){return e.some(t=>xn(t)?!(t.type===Rt||t.type===gt&&!wv(t.children)):!0)?e:null}function g3(e,t){const i={};for(const r in e)i[t&&/[A-Z]/.test(r)?`on:${r}`:Gs(r)]=e[r];return i}const dh=e=>e?i2(e)?hl(e):dh(e.parent):null,sa=Be(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>dh(e.parent),$root:e=>dh(e.root),$emit:e=>e.emit,$options:e=>qf(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,od(e.update)}),$nextTick:e=>e.n||(e.n=sd.bind(e.proxy)),$watch:e=>Z3.bind(e)}),Pd=(e,t)=>e!==Fe&&!e.__isScriptSetup&&Me(e,t),uh={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:i,setupState:r,data:n,props:s,accessCache:o,type:a,appContext:l}=e;let c;if(t[0]!=="$"){const f=o[t];if(f!==void 0)switch(f){case 1:return r[t];case 2:return n[t];case 4:return i[t];case 3:return s[t]}else{if(Pd(r,t))return o[t]=1,r[t];if(n!==Fe&&Me(n,t))return o[t]=2,n[t];if((c=e.propsOptions[0])&&Me(c,t))return o[t]=3,s[t];if(i!==Fe&&Me(i,t))return o[t]=4,i[t];hh&&(o[t]=0)}}const d=sa[t];let u,h;if(d)return t==="$attrs"&&wi(e.attrs,"get",""),d(e);if((u=a.__cssModules)&&(u=u[t]))return u;if(i!==Fe&&Me(i,t))return o[t]=4,i[t];if(h=l.config.globalProperties,Me(h,t))return h[t]},set({_:e},t,i){const{data:r,setupState:n,ctx:s}=e;return Pd(n,t)?(n[t]=i,!0):r!==Fe&&Me(r,t)?(r[t]=i,!0):Me(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=i,!0)},has({_:{data:e,setupState:t,accessCache:i,ctx:r,appContext:n,propsOptions:s}},o){let a;return!!i[o]||e!==Fe&&Me(e,o)||Pd(t,o)||(a=s[0])&&Me(a,o)||Me(r,o)||Me(sa,o)||Me(n.config.globalProperties,o)},defineProperty(e,t,i){return i.get!=null?e._.accessCache[t]=0:Me(i,"value")&&this.set(e,t,i.value,null),Reflect.defineProperty(e,t,i)}},v3=Be({},uh,{get(e,t){if(t!==Symbol.unscopables)return uh.get(e,t,e)},has(e,t){return t[0]!=="_"&&!z5(t)}});function y3(){return null}function b3(){return null}function w3(e){}function _3(e){}function k3(){return null}function C3(){}function E3(e,t){return null}function x3(){return _v().slots}function S3(){return _v().attrs}function _v(){const e=Gr();return e.setupContext||(e.setupContext=o2(e))}function Pa(e){return ne(e)?e.reduce((t,i)=>(t[i]=null,t),{}):e}function A3(e,t){const i=Pa(e);for(const r in t){if(r.startsWith("__skip"))continue;let n=i[r];n?ne(n)||me(n)?n=i[r]={type:n,default:t[r]}:n.default=t[r]:n===null&&(n=i[r]={default:t[r]}),n&&t[`__skip_${r}`]&&(n.skipFactory=!0)}return i}function T3(e,t){return!e||!t?e||t:ne(e)&&ne(t)?e.concat(t):Be({},Pa(e),Pa(t))}function R3(e,t){const i={};for(const r in e)t.includes(r)||Object.defineProperty(i,r,{enumerable:!0,get:()=>e[r]});return i}function $3(e){const t=Gr();let i=e();return yh(),Af(i)&&(i=i.catch(r=>{throw vs(t),r})),[i,()=>vs(t)]}let hh=!0;function I3(e){const t=qf(e),i=e.proxy,r=e.ctx;hh=!1,t.beforeCreate&&k0(t.beforeCreate,e,"bc");const{data:n,computed:s,methods:o,watch:a,provide:l,inject:c,created:d,beforeMount:u,mounted:h,beforeUpdate:f,updated:g,activated:b,deactivated:w,beforeDestroy:x,beforeUnmount:m,destroyed:p,unmounted:y,render:C,renderTracked:_,renderTriggered:E,errorCaptured:S,serverPrefetch:A,expose:k,inheritAttrs:T,components:$,directives:I,filters:L}=t;if(c&&D3(c,r,null),o)for(const X in o){const q=o[X];me(q)&&(r[X]=q.bind(i))}if(n){const X=n.call(i,i);Ke(X)&&(e.data=rd(X))}if(hh=!0,s)for(const X in s){const q=s[X],he=me(q)?q.bind(i,i):me(q.get)?q.get.bind(i,i):bt,ve=!me(q)&&me(q.set)?q.set.bind(i):bt,z=a2({get:he,set:ve});Object.defineProperty(r,X,{enumerable:!0,configurable:!0,get:()=>z.value,set:U=>z.value=U})}if(a)for(const X in a)kv(a[X],r,i,X);if(l){const X=me(l)?l.call(i):l;Reflect.ownKeys(X).forEach(q=>{Ev(q,X[q])})}d&&k0(d,e,"c");function M(X,q){ne(q)?q.forEach(he=>X(he.bind(i))):q&&X(q.bind(i))}if(M(Kf,u),M(Xr,h),M(pv,f),M(dd,g),M(Vv,b),M(Kv,w),M(yv,S),M(vv,_),M(gv,E),M(ll,m),M(ud,y),M(mv,A),ne(k))if(k.length){const X=e.exposed||(e.exposed={});k.forEach(q=>{Object.defineProperty(X,q,{get:()=>i[q],set:he=>i[q]=he})})}else e.exposed||(e.exposed={});C&&e.render===bt&&(e.render=C),T!=null&&(e.inheritAttrs=T),$&&(e.components=$),I&&(e.directives=I)}function D3(e,t,i=bt){ne(e)&&(e=fh(e));for(const r in e){const n=e[r];let s;Ke(n)?"default"in n?s=oa(n.from||r,n.default,!0):s=oa(n.from||r):s=oa(n),Mt(s)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:o=>s.value=o}):t[r]=s}}function k0(e,t,i){Oi(ne(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,i)}function kv(e,t,i,r){const n=r.includes(".")?Uv(i,r):()=>i[r];if(ke(e)){const s=t[e];me(s)&&no(n,s)}else if(me(e))no(n,e.bind(i));else if(Ke(e))if(ne(e))e.forEach(s=>kv(s,t,i,r));else{const s=me(e.handler)?e.handler.bind(i):t[e.handler];me(s)&&no(n,s,e)}}function qf(e){const t=e.type,{mixins:i,extends:r}=t,{mixins:n,optionsCache:s,config:{optionMergeStrategies:o}}=e.appContext,a=s.get(t);let l;return a?l=a:!n.length&&!i&&!r?l=t:(l={},n.length&&n.forEach(c=>_c(l,c,o,!0)),_c(l,t,o)),Ke(t)&&s.set(t,l),l}function _c(e,t,i,r=!1){const{mixins:n,extends:s}=t;s&&_c(e,s,i,!0),n&&n.forEach(o=>_c(e,o,i,!0));for(const o in t)if(!(r&&o==="expose")){const a=P3[o]||i&&i[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const P3={data:C0,props:E0,emits:E0,methods:Xo,computed:Xo,beforeCreate:ti,created:ti,beforeMount:ti,mounted:ti,beforeUpdate:ti,updated:ti,beforeDestroy:ti,beforeUnmount:ti,destroyed:ti,unmounted:ti,activated:ti,deactivated:ti,errorCaptured:ti,serverPrefetch:ti,components:Xo,directives:Xo,watch:O3,provide:C0,inject:B3};function C0(e,t){return t?e?function(){return Be(me(e)?e.call(this,this):e,me(t)?t.call(this,this):t)}:t:e}function B3(e,t){return Xo(fh(e),fh(t))}function fh(e){if(ne(e)){const t={};for(let i=0;i1)return i&&me(t)?t.call(r&&r.proxy):t}}function N3(){return!!(yt||wt||ro)}const xv={},Sv=()=>Object.create(xv),Av=e=>Object.getPrototypeOf(e)===xv;function F3(e,t,i,r=!1){const n={},s=Sv();e.propsDefaults=Object.create(null),Tv(e,t,n,s);for(const o in e.propsOptions[0])o in n||(n[o]=void 0);i?e.props=r?n:tv(n):e.type.props?e.props=n:e.props=s,e.attrs=s}function z3(e,t,i,r){const{props:n,attrs:s,vnode:{patchFlag:o}}=e,a=Oe(n),[l]=e.propsOptions;let c=!1;if((r||o>0)&&!(o&16)){if(o&8){const d=e.vnode.dynamicProps;for(let u=0;u{l=!0;const[h,f]=Rv(u,t,!0);Be(o,h),f&&a.push(...f)};!i&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!s&&!l)return Ke(e)&&r.set(e,Zs),Zs;if(ne(s))for(let d=0;d-1,f[1]=b<0||g-1||Me(f,"default"))&&a.push(u)}}}const c=[o,a];return Ke(e)&&r.set(e,c),c}function x0(e){return e[0]!=="$"&&!gn(e)}function S0(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function A0(e,t){return S0(e)===S0(t)}function T0(e,t){return ne(t)?t.findIndex(i=>A0(i,e)):me(t)&&A0(t,e)?0:-1}const $v=e=>e[0]==="_"||e==="$stable",jf=e=>ne(e)?e.map(Di):[Di(e)],H3=(e,t,i)=>{if(t._n)return t;const r=Wn((...n)=>jf(t(...n)),i);return r._c=!1,r},Iv=(e,t,i)=>{const r=e._ctx;for(const n in e){if($v(n))continue;const s=e[n];if(me(s))t[n]=H3(n,s,r);else if(s!=null){const o=jf(s);t[n]=()=>o}}},Dv=(e,t)=>{const i=jf(t);e.slots.default=()=>i},U3=(e,t)=>{const i=e.slots=Sv();if(e.vnode.shapeFlag&32){const r=t._;r?(Be(i,t),Bg(i,"_",r,!0)):Iv(t,i)}else t&&Dv(e,t)},V3=(e,t,i)=>{const{vnode:r,slots:n}=e;let s=!0,o=Fe;if(r.shapeFlag&32){const a=t._;a?i&&a===1?s=!1:(Be(n,t),!i&&a===1&&delete n._):(s=!t.$stable,Iv(t,n)),o=t}else t&&(Dv(e,t),o={default:1});if(s)for(const a in n)!$v(a)&&o[a]==null&&delete n[a]};function kc(e,t,i,r,n=!1){if(ne(e)){e.forEach((h,f)=>kc(h,t&&(ne(t)?t[f]:t),i,r,n));return}if(ls(r)&&!n)return;const s=r.shapeFlag&4?hl(r.component):r.el,o=n?null:s,{i:a,r:l}=e,c=t&&t.r,d=a.refs===Fe?a.refs={}:a.refs,u=a.setupState;if(c!=null&&c!==l&&(ke(c)?(d[c]=null,Me(u,c)&&(u[c]=null)):Mt(c)&&(c.value=null)),me(l))Ur(l,a,12,[o,d]);else{const h=ke(l),f=Mt(l);if(h||f){const g=()=>{if(e.f){const b=h?Me(u,l)?u[l]:d[l]:l.value;n?ne(b)&&Sf(b,s):ne(b)?b.includes(s)||b.push(s):h?(d[l]=[s],Me(u,l)&&(u[l]=d[l])):(l.value=[s],e.k&&(d[e.k]=l.value))}else h?(d[l]=o,Me(u,l)&&(u[l]=o)):f&&(l.value=o,e.k&&(d[e.k]=o))};o?(g.id=-1,Et(g,i)):g()}}}let R0=!1;const Ms=()=>{R0||(console.error("Hydration completed but contains mismatches."),R0=!0)},K3=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",W3=e=>e.namespaceURI.includes("MathML"),Bl=e=>{if(K3(e))return"svg";if(W3(e))return"mathml"},Ol=e=>e.nodeType===8;function q3(e){const{mt:t,p:i,o:{patchProp:r,createText:n,nextSibling:s,parentNode:o,remove:a,insert:l,createComment:c}}=e,d=(p,y)=>{if(!y.hasChildNodes()){i(null,p,y),wc(),y._vnode=p;return}u(y.firstChild,p,null,null,null),wc(),y._vnode=p},u=(p,y,C,_,E,S=!1)=>{S=S||!!y.dynamicChildren;const A=Ol(p)&&p.data==="[",k=()=>b(p,y,C,_,E,A),{type:T,ref:$,shapeFlag:I,patchFlag:L}=y;let N=p.nodeType;y.el=p,L===-2&&(S=!1,y.dynamicChildren=null);let M=null;switch(T){case ms:N!==3?y.children===""?(l(y.el=n(""),o(p),p),M=p):M=k():(p.data!==y.children&&(Ms(),p.data=y.children),M=s(p));break;case Rt:m(p)?(M=s(p),x(y.el=p.content.firstChild,p,C)):N!==8||A?M=k():M=s(p);break;case cs:if(A&&(p=s(p),N=p.nodeType),N===1||N===3){M=p;const X=!y.children.length;for(let q=0;q{S=S||!!y.dynamicChildren;const{type:A,props:k,patchFlag:T,shapeFlag:$,dirs:I,transition:L}=y,N=A==="input"||A==="option";if(N||T!==-1){I&&fr(y,null,C,"created");let M=!1;if(m(p)){M=Lv(_,L)&&C&&C.vnode.props&&C.vnode.props.appear;const q=p.content.firstChild;M&&L.beforeEnter(q),x(q,p,C),y.el=p=q}if($&16&&!(k&&(k.innerHTML||k.textContent))){let q=f(p.firstChild,y,p,C,_,E,S);for(;q;){Ms();const he=q;q=q.nextSibling,a(he)}}else $&8&&p.textContent!==y.children&&(Ms(),p.textContent=y.children);if(k)if(N||!S||T&48)for(const q in k)(N&&(q.endsWith("value")||q==="indeterminate")||As(q)&&!gn(q)||q[0]===".")&&r(p,q,null,k[q],void 0,void 0,C);else k.onClick&&r(p,"onClick",null,k.onClick,void 0,void 0,C);let X;(X=k&&k.onVnodeBeforeMount)&&fi(X,C,y),I&&fr(y,null,C,"beforeMount"),((X=k&&k.onVnodeMounted)||I||M)&&fv(()=>{X&&fi(X,C,y),M&&L.enter(p),I&&fr(y,null,C,"mounted")},_)}return p.nextSibling},f=(p,y,C,_,E,S,A)=>{A=A||!!y.dynamicChildren;const k=y.children,T=k.length;for(let $=0;${const{slotScopeIds:A}=y;A&&(E=E?E.concat(A):A);const k=o(p),T=f(s(p),y,k,C,_,E,S);return T&&Ol(T)&&T.data==="]"?s(y.anchor=T):(Ms(),l(y.anchor=c("]"),k,T),T)},b=(p,y,C,_,E,S)=>{if(Ms(),y.el=null,S){const T=w(p);for(;;){const $=s(p);if($&&$!==T)a($);else break}}const A=s(p),k=o(p);return a(p),i(null,y,k,A,C,_,Bl(k),E),A},w=(p,y="[",C="]")=>{let _=0;for(;p;)if(p=s(p),p&&Ol(p)&&(p.data===y&&_++,p.data===C)){if(_===0)return s(p);_--}return p},x=(p,y,C)=>{const _=y.parentNode;_&&_.replaceChild(p,y);let E=C;for(;E;)E.vnode.el===y&&(E.vnode.el=E.subTree.el=p),E=E.parent},m=p=>p.nodeType===1&&p.tagName.toLowerCase()==="template";return[d,u]}const Et=fv;function Pv(e){return Ov(e)}function Bv(e){return Ov(e,q3)}function Ov(e,t){const i=Og();i.__VUE__=!0;const{insert:r,remove:n,patchProp:s,createElement:o,createText:a,createComment:l,setText:c,setElementText:d,parentNode:u,nextSibling:h,setScopeId:f=bt,insertStaticContent:g}=e,b=(D,B,H,j=null,Z=null,J=null,ee=void 0,Q=null,G=!!B.dynamicChildren)=>{if(D===B)return;D&&!sr(D,B)&&(j=ot(D),U(D,Z,J,!0),D=null),B.patchFlag===-2&&(G=!1,B.dynamicChildren=null);const{type:W,ref:te,shapeFlag:ae}=B;switch(W){case ms:w(D,B,H,j);break;case Rt:x(D,B,H,j);break;case cs:D==null&&m(B,H,j,ee);break;case gt:$(D,B,H,j,Z,J,ee,Q,G);break;default:ae&1?C(D,B,H,j,Z,J,ee,Q,G):ae&6?I(D,B,H,j,Z,J,ee,Q,G):(ae&64||ae&128)&&W.process(D,B,H,j,Z,J,ee,Q,G,Jt)}te!=null&&Z&&kc(te,D&&D.ref,J,B||D,!B)},w=(D,B,H,j)=>{if(D==null)r(B.el=a(B.children),H,j);else{const Z=B.el=D.el;B.children!==D.children&&c(Z,B.children)}},x=(D,B,H,j)=>{D==null?r(B.el=l(B.children||""),H,j):B.el=D.el},m=(D,B,H,j)=>{[D.el,D.anchor]=g(D.children,B,H,j,D.el,D.anchor)},p=({el:D,anchor:B},H,j)=>{let Z;for(;D&&D!==B;)Z=h(D),r(D,H,j),D=Z;r(B,H,j)},y=({el:D,anchor:B})=>{let H;for(;D&&D!==B;)H=h(D),n(D),D=H;n(B)},C=(D,B,H,j,Z,J,ee,Q,G)=>{B.type==="svg"?ee="svg":B.type==="math"&&(ee="mathml"),D==null?_(B,H,j,Z,J,ee,Q,G):A(D,B,Z,J,ee,Q,G)},_=(D,B,H,j,Z,J,ee,Q)=>{let G,W;const{props:te,shapeFlag:ae,transition:oe,dirs:fe}=D;if(G=D.el=o(D.type,J,te&&te.is,te),ae&8?d(G,D.children):ae&16&&S(D.children,G,null,j,Z,Bd(D,J),ee,Q),fe&&fr(D,null,j,"created"),E(G,D,D.scopeId,ee,j),te){for(const je in te)je!=="value"&&!gn(je)&&s(G,je,null,te[je],J,D.children,j,Z,Se);"value"in te&&s(G,"value",null,te.value,J),(W=te.onVnodeBeforeMount)&&fi(W,j,D)}fe&&fr(D,null,j,"beforeMount");const we=Lv(Z,oe);we&&oe.beforeEnter(G),r(G,B,H),((W=te&&te.onVnodeMounted)||we||fe)&&Et(()=>{W&&fi(W,j,D),we&&oe.enter(G),fe&&fr(D,null,j,"mounted")},Z)},E=(D,B,H,j,Z)=>{if(H&&f(D,H),j)for(let J=0;J{for(let W=G;W{const Q=B.el=D.el;let{patchFlag:G,dynamicChildren:W,dirs:te}=B;G|=D.patchFlag&16;const ae=D.props||Fe,oe=B.props||Fe;let fe;if(H&&Nn(H,!1),(fe=oe.onVnodeBeforeUpdate)&&fi(fe,H,B,D),te&&fr(B,D,H,"beforeUpdate"),H&&Nn(H,!0),W?k(D.dynamicChildren,W,Q,H,j,Bd(B,Z),J):ee||q(D,B,Q,null,H,j,Bd(B,Z),J,!1),G>0){if(G&16)T(Q,B,ae,oe,H,j,Z);else if(G&2&&ae.class!==oe.class&&s(Q,"class",null,oe.class,Z),G&4&&s(Q,"style",ae.style,oe.style,Z),G&8){const we=B.dynamicProps;for(let je=0;je{fe&&fi(fe,H,B,D),te&&fr(B,D,H,"updated")},j)},k=(D,B,H,j,Z,J,ee)=>{for(let Q=0;Q{if(H!==j){if(H!==Fe)for(const Q in H)!gn(Q)&&!(Q in j)&&s(D,Q,H[Q],null,ee,B.children,Z,J,Se);for(const Q in j){if(gn(Q))continue;const G=j[Q],W=H[Q];G!==W&&Q!=="value"&&s(D,Q,W,G,ee,B.children,Z,J,Se)}"value"in j&&s(D,"value",H.value,j.value,ee)}},$=(D,B,H,j,Z,J,ee,Q,G)=>{const W=B.el=D?D.el:a(""),te=B.anchor=D?D.anchor:a("");let{patchFlag:ae,dynamicChildren:oe,slotScopeIds:fe}=B;fe&&(Q=Q?Q.concat(fe):fe),D==null?(r(W,H,j),r(te,H,j),S(B.children||[],H,te,Z,J,ee,Q,G)):ae>0&&ae&64&&oe&&D.dynamicChildren?(k(D.dynamicChildren,oe,H,Z,J,ee,Q),(B.key!=null||Z&&B===Z.subTree)&&Yf(D,B,!0)):q(D,B,H,te,Z,J,ee,Q,G)},I=(D,B,H,j,Z,J,ee,Q,G)=>{B.slotScopeIds=Q,D==null?B.shapeFlag&512?Z.ctx.activate(B,H,j,ee,G):L(B,H,j,Z,J,ee,G):N(D,B,G)},L=(D,B,H,j,Z,J,ee)=>{const Q=D.component=t2(D,j,Z);if(dl(D)&&(Q.ctx.renderer=Jt),r2(Q),Q.asyncDep){if(Z&&Z.registerDep(Q,M,ee),!D.el){const G=Q.subTree=Ue(Rt);x(null,G,B,H)}}else M(Q,D,B,H,Z,J,ee)},N=(D,B,H)=>{const j=B.component=D.component;if(e3(D,B,H))if(j.asyncDep&&!j.asyncResolved){X(j,B,H);return}else j.next=B,W4(j.update),j.effect.dirty=!0,j.update();else B.el=D.el,j.vnode=B},M=(D,B,H,j,Z,J,ee)=>{const Q=()=>{if(D.isMounted){let{next:te,bu:ae,u:oe,parent:fe,vnode:we}=D;{const Vi=Mv(D);if(Vi){te&&(te.el=we.el,X(D,te,ee)),Vi.asyncDep.then(()=>{D.isUnmounted||Q()});return}}let je=te,Le;Nn(D,!1),te?(te.el=we.el,X(D,te,ee)):te=we,ae&&Qs(ae),(Le=te.props&&te.props.onVnodeBeforeUpdate)&&fi(Le,fe,te,we),Nn(D,!0);const at=ic(D),kt=D.subTree;D.subTree=at,b(kt,at,u(kt.el),ot(kt),D,Z,J),te.el=at.el,je===null&&zf(D,at.el),oe&&Et(oe,Z),(Le=te.props&&te.props.onVnodeUpdated)&&Et(()=>fi(Le,fe,te,we),Z)}else{let te;const{el:ae,props:oe}=B,{bm:fe,m:we,parent:je}=D,Le=ls(B);if(Nn(D,!1),fe&&Qs(fe),!Le&&(te=oe&&oe.onVnodeBeforeMount)&&fi(te,je,B),Nn(D,!0),ae&&xr){const at=()=>{D.subTree=ic(D),xr(ae,D.subTree,D,Z,null)};Le?B.type.__asyncLoader().then(()=>!D.isUnmounted&&at()):at()}else{const at=D.subTree=ic(D);b(null,at,H,j,D,Z,J),B.el=at.el}if(we&&Et(we,Z),!Le&&(te=oe&&oe.onVnodeMounted)){const at=B;Et(()=>fi(te,je,at),Z)}(B.shapeFlag&256||je&&ls(je.vnode)&&je.vnode.shapeFlag&256)&&D.a&&Et(D.a,Z),D.isMounted=!0,B=H=j=null}},G=D.effect=new uo(Q,bt,()=>od(W),D.scope),W=D.update=()=>{G.dirty&&G.run()};W.id=D.uid,Nn(D,!0),W()},X=(D,B,H)=>{B.component=D;const j=D.vnode.props;D.vnode=B,D.next=null,z3(D,B.props,j,H),V3(D,B.children,H),$n(),y0(D),In()},q=(D,B,H,j,Z,J,ee,Q,G=!1)=>{const W=D&&D.children,te=D?D.shapeFlag:0,ae=B.children,{patchFlag:oe,shapeFlag:fe}=B;if(oe>0){if(oe&128){ve(W,ae,H,j,Z,J,ee,Q,G);return}else if(oe&256){he(W,ae,H,j,Z,J,ee,Q,G);return}}fe&8?(te&16&&Se(W,Z,J),ae!==W&&d(H,ae)):te&16?fe&16?ve(W,ae,H,j,Z,J,ee,Q,G):Se(W,Z,J,!0):(te&8&&d(H,""),fe&16&&S(ae,H,j,Z,J,ee,Q,G))},he=(D,B,H,j,Z,J,ee,Q,G)=>{D=D||Zs,B=B||Zs;const W=D.length,te=B.length,ae=Math.min(W,te);let oe;for(oe=0;oete?Se(D,Z,J,!0,!1,ae):S(B,H,j,Z,J,ee,Q,G,ae)},ve=(D,B,H,j,Z,J,ee,Q,G)=>{let W=0;const te=B.length;let ae=D.length-1,oe=te-1;for(;W<=ae&&W<=oe;){const fe=D[W],we=B[W]=G?cn(B[W]):Di(B[W]);if(sr(fe,we))b(fe,we,H,null,Z,J,ee,Q,G);else break;W++}for(;W<=ae&&W<=oe;){const fe=D[ae],we=B[oe]=G?cn(B[oe]):Di(B[oe]);if(sr(fe,we))b(fe,we,H,null,Z,J,ee,Q,G);else break;ae--,oe--}if(W>ae){if(W<=oe){const fe=oe+1,we=feoe)for(;W<=ae;)U(D[W],Z,J,!0),W++;else{const fe=W,we=W,je=new Map;for(W=we;W<=oe;W++){const ei=B[W]=G?cn(B[W]):Di(B[W]);ei.key!=null&&je.set(ei.key,W)}let Le,at=0;const kt=oe-we+1;let Vi=!1,Al=0;const Jr=new Array(kt);for(W=0;W=kt){U(ei,Z,J,!0);continue}let Ki;if(ei.key!=null)Ki=je.get(ei.key);else for(Le=we;Le<=oe;Le++)if(Jr[Le-we]===0&&sr(ei,B[Le])){Ki=Le;break}Ki===void 0?U(ei,Z,J,!0):(Jr[Ki-we]=W+1,Ki>=Al?Al=Ki:Vi=!0,b(ei,B[Ki],H,null,Z,J,ee,Q,G),at++)}const Uo=Vi?j3(Jr):Zs;for(Le=Uo.length-1,W=kt-1;W>=0;W--){const ei=we+W,Ki=B[ei],Vo=ei+1{const{el:J,type:ee,transition:Q,children:G,shapeFlag:W}=D;if(W&6){z(D.component.subTree,B,H,j);return}if(W&128){D.suspense.move(B,H,j);return}if(W&64){ee.move(D,B,H,Jt);return}if(ee===gt){r(J,B,H);for(let ae=0;aeQ.enter(J),Z);else{const{leave:ae,delayLeave:oe,afterLeave:fe}=Q,we=()=>r(J,B,H),je=()=>{ae(J,()=>{we(),fe&&fe()})};oe?oe(J,we,je):je()}else r(J,B,H)},U=(D,B,H,j=!1,Z=!1)=>{const{type:J,props:ee,ref:Q,children:G,dynamicChildren:W,shapeFlag:te,patchFlag:ae,dirs:oe,memoIndex:fe}=D;if(Q!=null&&kc(Q,null,H,D,!0),fe!=null&&(B.renderCache[fe]=void 0),te&256){B.ctx.deactivate(D);return}const we=te&1&&oe,je=!ls(D);let Le;if(je&&(Le=ee&&ee.onVnodeBeforeUnmount)&&fi(Le,B,D),te&6)Ne(D.component,H,j);else{if(te&128){D.suspense.unmount(H,j);return}we&&fr(D,null,B,"beforeUnmount"),te&64?D.type.remove(D,B,H,Z,Jt,j):W&&(J!==gt||ae>0&&ae&64)?Se(W,B,H,!1,!0):(J===gt&&ae&384||!Z&&te&16)&&Se(G,B,H),j&&V(D)}(je&&(Le=ee&&ee.onVnodeUnmounted)||we)&&Et(()=>{Le&&fi(Le,B,D),we&&fr(D,null,B,"unmounted")},H)},V=D=>{const{type:B,el:H,anchor:j,transition:Z}=D;if(B===gt){K(H,j);return}if(B===cs){y(D);return}const J=()=>{n(H),Z&&!Z.persisted&&Z.afterLeave&&Z.afterLeave()};if(D.shapeFlag&1&&Z&&!Z.persisted){const{leave:ee,delayLeave:Q}=Z,G=()=>ee(H,J);Q?Q(D.el,J,G):G()}else J()},K=(D,B)=>{let H;for(;D!==B;)H=h(D),n(D),D=H;n(B)},Ne=(D,B,H)=>{const{bum:j,scope:Z,update:J,subTree:ee,um:Q,m:G,a:W}=D;Cc(G),Cc(W),j&&Qs(j),Z.stop(),J&&(J.active=!1,U(ee,D,B,H)),Q&&Et(Q,B),Et(()=>{D.isUnmounted=!0},B),B&&B.pendingBranch&&!B.isUnmounted&&D.asyncDep&&!D.asyncResolved&&D.suspenseId===B.pendingId&&(B.deps--,B.deps===0&&B.resolve())},Se=(D,B,H,j=!1,Z=!1,J=0)=>{for(let ee=J;eeD.shapeFlag&6?ot(D.component.subTree):D.shapeFlag&128?D.suspense.next():h(D.anchor||D.el);let ye=!1;const ur=(D,B,H)=>{D==null?B._vnode&&U(B._vnode,null,null,!0):b(B._vnode||null,D,B,null,null,null,H),ye||(ye=!0,y0(),wc(),ye=!1),B._vnode=D},Jt={p:b,um:U,m:z,r:V,mt:L,mc:S,pc:q,pbc:k,n:ot,o:e};let Mn,xr;return t&&([Mn,xr]=t(Jt)),{render:ur,hydrate:Mn,createApp:M3(ur,Mn)}}function Bd({type:e,props:t},i){return i==="svg"&&e==="foreignObject"||i==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:i}function Nn({effect:e,update:t},i){e.allowRecurse=t.allowRecurse=i}function Lv(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Yf(e,t,i=!1){const r=e.children,n=t.children;if(ne(r)&&ne(n))for(let s=0;s>1,e[i[a]]0&&(t[r]=i[s-1]),i[s]=r)}}for(s=i.length,o=i[s-1];s-- >0;)i[s]=o,o=t[o];return i}function Mv(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Mv(t)}function Cc(e){if(e)for(let t=0;toa(Nv);function Y3(e,t){return cl(e,null,t)}function zv(e,t){return cl(e,null,{flush:"post"})}function Hv(e,t){return cl(e,null,{flush:"sync"})}const Ll={};function no(e,t,i){return cl(e,t,i)}function cl(e,t,{immediate:i,deep:r,flush:n,once:s,onTrack:o,onTrigger:a}=Fe){if(t&&s){const _=t;t=(...E)=>{_(...E),C()}}const l=yt,c=_=>r===!0?_:un(_,r===!1?1:void 0);let d,u=!1,h=!1;if(Mt(e)?(d=()=>e.value,u=Aa(e)):Js(e)?(d=()=>c(e),u=!0):ne(e)?(h=!0,u=e.some(_=>Js(_)||Aa(_)),d=()=>e.map(_=>{if(Mt(_))return _.value;if(Js(_))return c(_);if(me(_))return Ur(_,l,2)})):me(e)?t?d=()=>Ur(e,l,2):d=()=>(f&&f(),Oi(e,l,3,[g])):d=bt,t&&r){const _=d;d=()=>un(_())}let f,g=_=>{f=p.onStop=()=>{Ur(_,l,4),f=p.onStop=void 0}},b;if(ul)if(g=bt,t?i&&Oi(t,l,3,[d(),h?[]:void 0,g]):d(),n==="sync"){const _=Fv();b=_.__watcherHandles||(_.__watcherHandles=[])}else return bt;let w=h?new Array(e.length).fill(Ll):Ll;const x=()=>{if(!(!p.active||!p.dirty))if(t){const _=p.run();(r||u||(h?_.some((E,S)=>lr(E,w[S])):lr(_,w)))&&(f&&f(),Oi(t,l,3,[_,w===Ll?void 0:h&&w[0]===Ll?[]:w,g]),w=_)}else p.run()};x.allowRecurse=!!t;let m;n==="sync"?m=x:n==="post"?m=()=>Et(x,l&&l.suspense):(x.pre=!0,l&&(x.id=l.uid),m=()=>od(x));const p=new uo(d,bt,m),y=Hg(),C=()=>{p.stop(),y&&Sf(y.effects,p)};return t?i?x():w=p.run():n==="post"?Et(p.run.bind(p),l&&l.suspense):p.run(),b&&b.push(C),C}function Z3(e,t,i){const r=this.proxy,n=ke(e)?e.includes(".")?Uv(r,e):()=>r[e]:e.bind(r,r);let s;me(t)?s=t:(s=t.handler,i=t);const o=vs(this),a=cl(n,s.bind(r),i);return o(),a}function Uv(e,t){const i=t.split(".");return()=>{let r=e;for(let n=0;n{un(r,t,i)});else if(Pg(e)){for(const r in e)un(e[r],t,i);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&un(e[r],t,i)}return e}const dl=e=>e.type.__isKeepAlive,X3={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const i=Gr(),r=i.ctx;if(!r.renderer)return()=>{const m=t.default&&t.default();return m&&m.length===1?m[0]:m};const n=new Map,s=new Set;let o=null;const a=i.suspense,{renderer:{p:l,m:c,um:d,o:{createElement:u}}}=r,h=u("div");r.activate=(m,p,y,C,_)=>{const E=m.component;c(m,p,y,0,a),l(E.vnode,m,p,y,E,a,C,m.slotScopeIds,_),Et(()=>{E.isDeactivated=!1,E.a&&Qs(E.a);const S=m.props&&m.props.onVnodeMounted;S&&fi(S,E.parent,m)},a)},r.deactivate=m=>{const p=m.component;Cc(p.m),Cc(p.a),c(m,h,null,1,a),Et(()=>{p.da&&Qs(p.da);const y=m.props&&m.props.onVnodeUnmounted;y&&fi(y,p.parent,m),p.isDeactivated=!0},a)};function f(m){Od(m),d(m,i,a,!0)}function g(m){n.forEach((p,y)=>{const C=_h(p.type);C&&(!m||!m(C))&&b(y)})}function b(m){const p=n.get(m);!o||!sr(p,o)?f(p):o&&Od(o),n.delete(m),s.delete(m)}no(()=>[e.include,e.exclude],([m,p])=>{m&&g(y=>Go(m,y)),p&&g(y=>!Go(p,y))},{flush:"post",deep:!0});let w=null;const x=()=>{w!=null&&(lh(i.subTree.type)?Et(()=>{n.set(w,Ml(i.subTree))},i.subTree.suspense):n.set(w,Ml(i.subTree)))};return Xr(x),dd(x),ll(()=>{n.forEach(m=>{const{subTree:p,suspense:y}=i,C=Ml(p);if(m.type===C.type&&m.key===C.key){Od(C);const _=C.component.da;_&&Et(_,y);return}f(m)})}),()=>{if(w=null,!t.default)return null;const m=t.default(),p=m[0];if(m.length>1)return o=null,m;if(!xn(p)||!(p.shapeFlag&4)&&!(p.shapeFlag&128))return o=null,p;let y=Ml(p);const C=y.type,_=_h(ls(y)?y.type.__asyncResolved||{}:C),{include:E,exclude:S,max:A}=e;if(E&&(!_||!Go(E,_))||S&&_&&Go(S,_))return o=y,p;const k=y.key==null?C:y.key,T=n.get(k);return y.el&&(y=br(y),p.shapeFlag&128&&(p.ssContent=y)),w=k,T?(y.el=T.el,y.component=T.component,y.transition&&En(y,y.transition),y.shapeFlag|=512,s.delete(k),s.add(k)):(s.add(k),A&&s.size>parseInt(A,10)&&b(s.values().next().value)),y.shapeFlag|=256,o=y,lh(p.type)?p:y}}},G3=X3;function Go(e,t){return ne(e)?e.some(i=>Go(i,t)):ke(e)?e.split(",").includes(t):B5(e)?e.test(t):!1}function Vv(e,t){Wv(e,"a",t)}function Kv(e,t){Wv(e,"da",t)}function Wv(e,t,i=yt){const r=e.__wdc||(e.__wdc=()=>{let n=i;for(;n;){if(n.isDeactivated)return;n=n.parent}return e()});if(cd(t,r,i),i){let n=i.parent;for(;n&&n.parent;)dl(n.parent.vnode)&&Q3(r,t,i,n),n=n.parent}}function Q3(e,t,i,r){const n=cd(t,e,r,!0);ud(()=>{Sf(r[t],n)},i)}function Od(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Ml(e){return e.shapeFlag&128?e.ssContent:e}const ln=Symbol("_leaveCb"),Nl=Symbol("_enterCb");function Zf(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Xr(()=>{e.isMounted=!0}),ll(()=>{e.isUnmounting=!0}),e}const Wi=[Function,Array],Xf={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Wi,onEnter:Wi,onAfterEnter:Wi,onEnterCancelled:Wi,onBeforeLeave:Wi,onLeave:Wi,onAfterLeave:Wi,onLeaveCancelled:Wi,onBeforeAppear:Wi,onAppear:Wi,onAfterAppear:Wi,onAppearCancelled:Wi},qv=e=>{const t=e.subTree;return t.component?qv(t.component):t},J3={name:"BaseTransition",props:Xf,setup(e,{slots:t}){const i=Gr(),r=Zf();return()=>{const n=t.default&&hd(t.default(),!0);if(!n||!n.length)return;let s=n[0];if(n.length>1){for(const h of n)if(h.type!==Rt){s=h;break}}const o=Oe(e),{mode:a}=o;if(r.isLeaving)return Ld(s);const l=$0(s);if(!l)return Ld(s);let c=fo(l,o,r,i,h=>c=h);En(l,c);const d=i.subTree,u=d&&$0(d);if(u&&u.type!==Rt&&!sr(l,u)&&qv(i).type!==Rt){const h=fo(u,o,r,i);if(En(u,h),a==="out-in"&&l.type!==Rt)return r.isLeaving=!0,h.afterLeave=()=>{r.isLeaving=!1,i.update.active!==!1&&(i.effect.dirty=!0,i.update())},Ld(s);a==="in-out"&&l.type!==Rt&&(h.delayLeave=(f,g,b)=>{const w=Yv(r,u);w[String(u.key)]=u,f[ln]=()=>{g(),f[ln]=void 0,delete c.delayedLeave},c.delayedLeave=b})}return s}}},jv=J3;function Yv(e,t){const{leavingVNodes:i}=e;let r=i.get(t.type);return r||(r=Object.create(null),i.set(t.type,r)),r}function fo(e,t,i,r,n){const{appear:s,mode:o,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:d,onEnterCancelled:u,onBeforeLeave:h,onLeave:f,onAfterLeave:g,onLeaveCancelled:b,onBeforeAppear:w,onAppear:x,onAfterAppear:m,onAppearCancelled:p}=t,y=String(e.key),C=Yv(i,e),_=(A,k)=>{A&&Oi(A,r,9,k)},E=(A,k)=>{const T=k[1];_(A,k),ne(A)?A.every($=>$.length<=1)&&T():A.length<=1&&T()},S={mode:o,persisted:a,beforeEnter(A){let k=l;if(!i.isMounted)if(s)k=w||l;else return;A[ln]&&A[ln](!0);const T=C[y];T&&sr(e,T)&&T.el[ln]&&T.el[ln](),_(k,[A])},enter(A){let k=c,T=d,$=u;if(!i.isMounted)if(s)k=x||c,T=m||d,$=p||u;else return;let I=!1;const L=A[Nl]=N=>{I||(I=!0,N?_($,[A]):_(T,[A]),S.delayedLeave&&S.delayedLeave(),A[Nl]=void 0)};k?E(k,[A,L]):L()},leave(A,k){const T=String(e.key);if(A[Nl]&&A[Nl](!0),i.isUnmounting)return k();_(h,[A]);let $=!1;const I=A[ln]=L=>{$||($=!0,k(),L?_(b,[A]):_(g,[A]),A[ln]=void 0,C[T]===e&&delete C[T])};C[T]=e,f?E(f,[A,I]):I()},clone(A){const k=fo(A,t,i,r,n);return n&&n(k),k}};return S}function Ld(e){if(dl(e))return e=br(e),e.children=null,e}function $0(e){if(!dl(e))return e;const{shapeFlag:t,children:i}=e;if(i){if(t&16)return i[0];if(t&32&&me(i.default))return i.default()}}function En(e,t){e.shapeFlag&6&&e.component?En(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function hd(e,t=!1,i){let r=[],n=0;for(let s=0;s1)for(let s=0;se.__isTeleport,aa=e=>e&&(e.disabled||e.disabled===""),I0=e=>typeof SVGElement<"u"&&e instanceof SVGElement,D0=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,mh=(e,t)=>{const i=e&&e.to;return ke(i)?t?t(i):null:i},t6={name:"Teleport",__isTeleport:!0,process(e,t,i,r,n,s,o,a,l,c){const{mc:d,pc:u,pbc:h,o:{insert:f,querySelector:g,createText:b,createComment:w}}=c,x=aa(t.props);let{shapeFlag:m,children:p,dynamicChildren:y}=t;if(e==null){const C=t.el=b(""),_=t.anchor=b("");f(C,i,r),f(_,i,r);const E=t.target=mh(t.props,g),S=t.targetAnchor=b("");E&&(f(S,E),o==="svg"||I0(E)?o="svg":(o==="mathml"||D0(E))&&(o="mathml"));const A=(k,T)=>{m&16&&d(p,k,T,n,s,o,a,l)};x?A(i,_):E&&A(E,S)}else{t.el=e.el;const C=t.anchor=e.anchor,_=t.target=e.target,E=t.targetAnchor=e.targetAnchor,S=aa(e.props),A=S?i:_,k=S?C:E;if(o==="svg"||I0(_)?o="svg":(o==="mathml"||D0(_))&&(o="mathml"),y?(h(e.dynamicChildren,y,A,n,s,o,a),Yf(e,t,!0)):l||u(e,t,A,k,n,s,o,a,!1),x)S?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Fl(t,i,C,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const T=t.target=mh(t.props,g);T&&Fl(t,T,null,c,0)}else S&&Fl(t,_,E,c,1)}Zv(t)},remove(e,t,i,r,{um:n,o:{remove:s}},o){const{shapeFlag:a,children:l,anchor:c,targetAnchor:d,target:u,props:h}=e;if(u&&s(d),o&&s(c),a&16){const f=o||!aa(h);for(let g=0;g0?gi||Zs:null,Xv(),gs>0&&gi&&gi.push(e),e}function Vr(e,t,i,r,n,s){return Gv(Te(e,t,i,r,n,s,!0))}function Ba(e,t,i,r,n){return Gv(Ue(e,t,i,r,n,!0))}function xn(e){return e?e.__v_isVNode===!0:!1}function sr(e,t){return e.type===t.type&&e.key===t.key}function n6(e){}const Qv=({key:e})=>e??null,rc=({ref:e,ref_key:t,ref_for:i})=>(typeof e=="number"&&(e=""+e),e!=null?ke(e)||Mt(e)||me(e)?{i:wt,r:e,k:t,f:!!i}:e:null);function Te(e,t=null,i=null,r=0,n=null,s=e===gt?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Qv(t),ref:t&&rc(t),scopeId:ld,slotScopeIds:null,children:i,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:wt};return a?(Gf(l,i),s&128&&e.normalize(l)):i&&(l.shapeFlag|=ke(i)?8:16),gs>0&&!o&&gi&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&gi.push(l),l}const Ue=s6;function s6(e,t=null,i=null,r=0,n=null,s=!1){if((!e||e===hv)&&(e=Rt),xn(e)){const a=br(e,t,!0);return i&&Gf(a,i),gs>0&&!s&&gi&&(a.shapeFlag&6?gi[gi.indexOf(e)]=a:gi.push(a)),a.patchFlag=-2,a}if(h6(e)&&(e=e.__vccOpts),t){t=Jv(t);let{class:a,style:l}=t;a&&!ke(a)&&(t.class=al(a)),Ke(l)&&(Bf(l)&&!ne(l)&&(l=Be({},l)),t.style=ps(l))}const o=ke(e)?1:lh(e)?128:e6(e)?64:Ke(e)?4:me(e)?2:0;return Te(e,t,i,r,n,o,s,!0)}function Jv(e){return e?Bf(e)||Av(e)?Be({},e):e:null}function br(e,t,i=!1,r=!1){const{props:n,ref:s,patchFlag:o,children:a,transition:l}=e,c=t?e2(n||{},t):n,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Qv(c),ref:t&&t.ref?i&&s?ne(s)?s.concat(rc(t)):[s,rc(t)]:rc(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==gt?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&br(e.ssContent),ssFallback:e.ssFallback&&br(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&En(d,l.clone(d)),d}function fd(e=" ",t=0){return Ue(ms,null,e,t)}function o6(e,t){const i=Ue(cs,null,e);return i.staticCount=t,i}function js(e="",t=!1){return t?(pi(),Ba(Rt,null,e)):Ue(Rt,null,e)}function Di(e){return e==null||typeof e=="boolean"?Ue(Rt):ne(e)?Ue(gt,null,e.slice()):typeof e=="object"?cn(e):Ue(ms,null,String(e))}function cn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:br(e)}function Gf(e,t){let i=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(ne(t))i=16;else if(typeof t=="object")if(r&65){const n=t.default;n&&(n._c&&(n._d=!1),Gf(e,n()),n._c&&(n._d=!0));return}else{i=32;const n=t._;!n&&!Av(t)?t._ctx=wt:n===3&&wt&&(wt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else me(t)?(t={default:t,_ctx:wt},i=32):(t=String(t),r&64?(i=16,t=[fd(t)]):i=8);e.children=t,e.shapeFlag|=i}function e2(...e){const t={};for(let i=0;iyt||wt;let Ec,vh;{const e=Og(),t=(i,r)=>{let n;return(n=e[i])||(n=e[i]=[]),n.push(r),s=>{n.length>1?n.forEach(o=>o(s)):n[0](s)}};Ec=t("__VUE_INSTANCE_SETTERS__",i=>yt=i),vh=t("__VUE_SSR_SETTERS__",i=>ul=i)}const vs=e=>{const t=yt;return Ec(e),e.scope.on(),()=>{e.scope.off(),Ec(t)}},yh=()=>{yt&&yt.scope.off(),Ec(null)};function i2(e){return e.vnode.shapeFlag&4}let ul=!1;function r2(e,t=!1){t&&vh(t);const{props:i,children:r}=e.vnode,n=i2(e);F3(e,i,n,t),U3(e,r);const s=n?c6(e,t):void 0;return t&&vh(!1),s}function c6(e,t){const i=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,uh);const{setup:r}=i;if(r){const n=e.setupContext=r.length>1?o2(e):null,s=vs(e);$n();const o=Ur(r,e,0,[e.props,n]);if(In(),s(),Af(o)){if(o.then(yh,yh),t)return o.then(a=>{bh(e,a,t)}).catch(a=>{$s(a,e,0)});e.asyncDep=o}else bh(e,o,t)}else s2(e,t)}function bh(e,t,i){me(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ke(t)&&(e.setupState=Nf(t)),s2(e,i)}let xc,wh;function n2(e){xc=e,wh=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,v3))}}const d6=()=>!xc;function s2(e,t,i){const r=e.type;if(!e.render){if(!t&&xc&&!r.render){const n=r.template||qf(e).template;if(n){const{isCustomElement:s,compilerOptions:o}=e.appContext.config,{delimiters:a,compilerOptions:l}=r,c=Be(Be({isCustomElement:s,delimiters:a},o),l);r.render=xc(n,c)}}e.render=r.render||bt,wh&&wh(e)}{const n=vs(e);$n();try{I3(e)}finally{In(),n()}}}const u6={get(e,t){return wi(e,"get",""),e[t]}};function o2(e){const t=i=>{e.exposed=i||{}};return{attrs:new Proxy(e.attrs,u6),slots:e.slots,emit:e.emit,expose:t}}function hl(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Nf(iv(e.exposed)),{get(t,i){if(i in t)return t[i];if(i in sa)return sa[i](e)},has(t,i){return i in t||i in sa}})):e.proxy}function _h(e,t=!0){return me(e)?e.displayName||e.name:e.name||t&&e.__name}function h6(e){return me(e)&&"__vccOpts"in e}const a2=(e,t)=>A4(e,t,ul);function f6(e,t,i=Fe){const r=Gr(),n=it(t),s=Pi(t),o=sv((l,c)=>{let d;return Hv(()=>{const u=e[t];lr(d,u)&&(d=u,c())}),{get(){return l(),i.get?i.get(d):d},set(u){const h=r.vnode.props;!(h&&(t in h||n in h||s in h)&&(`onUpdate:${t}`in h||`onUpdate:${n}`in h||`onUpdate:${s}`in h))&&lr(u,d)&&(d=u,c()),r.emit(`update:${t}`,i.set?i.set(u):u)}}}),a=t==="modelValue"?"modelModifiers":`${t}Modifiers`;return o[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?e[a]||{}:o,done:!1}:{done:!0}}}},o}function l2(e,t,i){const r=arguments.length;return r===2?Ke(t)&&!ne(t)?xn(t)?Ue(e,null,[t]):Ue(e,t):Ue(e,null,t):(r>3?i=Array.prototype.slice.call(arguments,2):r===3&&xn(i)&&(i=[i]),Ue(e,t,i))}function p6(){}function m6(e,t,i,r){const n=i[r];if(n&&c2(n,e))return n;const s=t();return s.memo=e.slice(),s.memoIndex=r,i[r]=s}function c2(e,t){const i=e.memo;if(i.length!=t.length)return!1;for(let r=0;r0&&gi&&gi.push(e),!0}const d2="3.4.29",g6=bt,v6=U4,y6=Ks,b6=dv,w6={createComponentInstance:t2,setupComponent:r2,renderComponentRoot:ic,setCurrentRenderingInstance:Ia,isVNode:xn,normalizeVNode:Di,getComponentPublicInstance:hl},_6=w6,k6=null,C6=null,E6=null;/** * @vue/runtime-dom v3.4.29 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/const x6="http://www.w3.org/2000/svg",S6="http://www.w3.org/1998/Math/MathML",Pr=typeof document<"u"?document:null,P0=Pr&&Pr.createElement("template"),A6={insert:(e,t,i)=>{t.insertBefore(e,i||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,i,r)=>{const n=t==="svg"?Pr.createElementNS(x6,e):t==="mathml"?Pr.createElementNS(S6,e):i?Pr.createElement(e,{is:i}):Pr.createElement(e);return e==="select"&&r&&r.multiple!=null&&n.setAttribute("multiple",r.multiple),n},createText:e=>Pr.createTextNode(e),createComment:e=>Pr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Pr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,i,r,n,s){const o=i?i.previousSibling:t.lastChild;if(n&&(n===s||n.nextSibling))for(;t.insertBefore(n.cloneNode(!0),i),!(n===s||!(n=n.nextSibling)););else{P0.innerHTML=r==="svg"?`${e}`:r==="mathml"?`${e}`:e;const a=P0.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,i)}return[o?o.nextSibling:t.firstChild,i?i.previousSibling:t.lastChild]}},rn="transition",Ko="animation",po=Symbol("_vtc"),Qf=(e,{slots:t})=>l2(jv,h2(e),t);Qf.displayName="Transition";const u2={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},T6=Qf.props=Be({},Xf,u2),Fn=(e,t=[])=>{ne(e)?e.forEach(i=>i(...t)):e&&e(...t)},B0=e=>e?ne(e)?e.some(t=>t.length>1):e.length>1:!1;function h2(e){const t={};for(const $ in e)$ in u2||(t[$]=e[$]);if(e.css===!1)return t;const{name:i="v",type:r,duration:n,enterFromClass:s=`${i}-enter-from`,enterActiveClass:o=`${i}-enter-active`,enterToClass:a=`${i}-enter-to`,appearFromClass:l=s,appearActiveClass:c=o,appearToClass:d=a,leaveFromClass:u=`${i}-leave-from`,leaveActiveClass:h=`${i}-leave-active`,leaveToClass:f=`${i}-leave-to`}=e,g=R6(n),b=g&&g[0],w=g&&g[1],{onBeforeEnter:x,onEnter:m,onEnterCancelled:p,onLeave:y,onLeaveCancelled:_,onBeforeAppear:C=x,onAppear:E=m,onAppearCancelled:A=p}=t,S=($,I,L)=>{on($,I?d:a),on($,I?c:o),L&&L()},k=($,I)=>{$._isLeaving=!1,on($,u),on($,f),on($,h),I&&I()},T=$=>(I,L)=>{const N=$?E:m,M=()=>S(I,$,L);Fn(N,[I,M]),O0(()=>{on(I,$?l:s),Rr(I,$?d:a),B0(N)||L0(I,r,b,M)})};return Be(t,{onBeforeEnter($){Fn(x,[$]),Rr($,s),Rr($,o)},onBeforeAppear($){Fn(C,[$]),Rr($,l),Rr($,c)},onEnter:T(!1),onAppear:T(!0),onLeave($,I){$._isLeaving=!0;const L=()=>k($,I);Rr($,u),Rr($,h),p2(),O0(()=>{$._isLeaving&&(on($,u),Rr($,f),B0(y)||L0($,r,w,L))}),Fn(y,[$,L])},onEnterCancelled($){S($,!1),Fn(p,[$])},onAppearCancelled($){S($,!0),Fn(A,[$])},onLeaveCancelled($){k($),Fn(_,[$])}})}function R6(e){if(e==null)return null;if(Ke(e))return[Md(e.enter),Md(e.leave)];{const t=Md(e);return[t,t]}}function Md(e){return vc(e)}function Rr(e,t){t.split(/\s+/).forEach(i=>i&&e.classList.add(i)),(e[po]||(e[po]=new Set)).add(t)}function on(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const i=e[po];i&&(i.delete(t),i.size||(e[po]=void 0))}function O0(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let $6=0;function L0(e,t,i,r){const n=e._endId=++$6,s=()=>{n===e._endId&&r()};if(i)return setTimeout(s,i);const{type:o,timeout:a,propCount:l}=f2(e,t);if(!o)return r();const c=o+"end";let d=0;const u=()=>{e.removeEventListener(c,h),s()},h=f=>{f.target===e&&++d>=l&&u()};setTimeout(()=>{d(i[g]||"").split(", "),n=r(`${rn}Delay`),s=r(`${rn}Duration`),o=M0(n,s),a=r(`${Ko}Delay`),l=r(`${Ko}Duration`),c=M0(a,l);let d=null,u=0,h=0;t===rn?o>0&&(d=rn,u=o,h=s.length):t===Ko?c>0&&(d=Ko,u=c,h=l.length):(u=Math.max(o,c),d=u>0?o>c?rn:Ko:null,h=d?d===rn?s.length:l.length:0);const f=d===rn&&/\b(transform|all)(,|$)/.test(r(`${rn}Property`).toString());return{type:d,timeout:u,propCount:h,hasTransform:f}}function M0(e,t){for(;e.lengthN0(i)+N0(e[r])))}function N0(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function p2(){return document.body.offsetHeight}function I6(e,t,i){const r=e[po];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):i?e.setAttribute("class",t):e.className=t}const Sc=Symbol("_vod"),m2=Symbol("_vsh"),g2={beforeMount(e,{value:t},{transition:i}){e[Sc]=e.style.display==="none"?"":e.style.display,i&&t?i.beforeEnter(e):Wo(e,t)},mounted(e,{value:t},{transition:i}){i&&t&&i.enter(e)},updated(e,{value:t,oldValue:i},{transition:r}){!t!=!i&&(r?t?(r.beforeEnter(e),Wo(e,!0),r.enter(e)):r.leave(e,()=>{Wo(e,!1)}):Wo(e,t))},beforeUnmount(e,{value:t}){Wo(e,t)}};function Wo(e,t){e.style.display=t?e[Sc]:"none",e[m2]=!t}function D6(){g2.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const v2=Symbol("");function P6(e){const t=Gr();if(!t)return;const i=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(s=>Ch(s,n))},r=()=>{const n=e(t.proxy);kh(t.subTree,n),i(n)};Xr(()=>{zv(r);const n=new MutationObserver(r);n.observe(t.subTree.el.parentNode,{childList:!0}),ud(()=>n.disconnect())})}function kh(e,t){if(e.shapeFlag&128){const i=e.suspense;e=i.activeBranch,i.pendingBranch&&!i.isHydrating&&i.effects.push(()=>{kh(i.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Ch(e.el,t);else if(e.type===gt)e.children.forEach(i=>kh(i,t));else if(e.type===cs){let{el:i,anchor:r}=e;for(;i&&(Ch(i,t),i!==r);)i=i.nextSibling}}function Ch(e,t){if(e.nodeType===1){const i=e.style;let r="";for(const n in t)i.setProperty(`--${n}`,t[n]),r+=`--${n}: ${t[n]};`;i[v2]=r}}const B6=/(^|;)\s*display\s*:/;function O6(e,t,i){const r=e.style,n=ke(i);let s=!1;if(i&&!n){if(t)if(ke(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();i[a]==null&&nc(r,a,"")}else for(const o in t)i[o]==null&&nc(r,o,"");for(const o in i)o==="display"&&(s=!0),nc(r,o,i[o])}else if(n){if(t!==i){const o=r[v2];o&&(i+=";"+o),r.cssText=i,s=B6.test(i)}}else t&&e.removeAttribute("style");Sc in e&&(e[Sc]=s?r.display:"",e[m2]&&(r.display="none"))}const F0=/\s*!important$/;function nc(e,t,i){if(ne(i))i.forEach(r=>nc(e,t,r));else if(i==null&&(i=""),t.startsWith("--"))e.setProperty(t,i);else{const r=L6(e,t);F0.test(i)?e.setProperty(Pi(r),i.replace(F0,""),"important"):e[r]=i}}const z0=["Webkit","Moz","ms"],Nd={};function L6(e,t){const i=Nd[t];if(i)return i;let r=it(t);if(r!=="filter"&&r in e)return Nd[t]=r;r=Rs(r);for(let n=0;nFd||(H6.then(()=>Fd=0),Fd=Date.now());function V6(e,t){const i=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=i.attached)return;Oi(K6(r,i.value),t,5,[r])};return i.value=e,i.attached=U6(),i}function K6(e,t){if(ne(t)){const i=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{i.call(e),e._stopped=!0},t.map(r=>n=>!n._stopped&&r&&r(n))}else return t}const W0=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,W6=(e,t,i,r,n,s,o,a,l)=>{const c=n==="svg";t==="class"?I6(e,r,c):t==="style"?O6(e,i,r):As(t)?xf(t)||F6(e,t,i,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):q6(e,t,r,c))?(M6(e,t,r,s,o,a,l),(t==="value"||t==="checked"||t==="selected")&&U0(e,t,r,c,o,t!=="value")):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),U0(e,t,r,c))};function q6(e,t,i,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&W0(t)&&me(i));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const n=e.tagName;if(n==="IMG"||n==="VIDEO"||n==="CANVAS"||n==="SOURCE")return!1}return W0(t)&&ke(i)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function y2(e,t,i){const r=Wf(e,t);class n extends pd{constructor(o){super(r,o,i)}}return n.def=r,n}/*! #__NO_SIDE_EFFECTS__ */const j6=(e,t)=>y2(e,t,R2),Y6=typeof HTMLElement<"u"?HTMLElement:class{};class pd extends Y6{constructor(t,i={},r){super(),this._def=t,this._props=i,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&r?r(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,sd(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),Eh(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let r=0;r{for(const n of r)this._setAttr(n.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(r,n=!1)=>{const{props:s,styles:o}=r;let a;if(s&&!ne(s))for(const l in s){const c=s[l];(c===Number||c&&c.type===Number)&&(l in this._props&&(this._props[l]=vc(this._props[l])),(a||(a=Object.create(null)))[it(l)]=!0)}this._numberProps=a,n&&this._resolveProps(r),this._applyStyles(o),this._update()},i=this._def.__asyncLoader;i?i().then(r=>t(r,!0)):t(this._def)}_resolveProps(t){const{props:i}=t,r=ne(i)?i:Object.keys(i||{});for(const n of Object.keys(this))n[0]!=="_"&&r.includes(n)&&this._setProp(n,this[n],!0,!1);for(const n of r.map(it))Object.defineProperty(this,n,{get(){return this._getProp(n)},set(s){this._setProp(n,s)}})}_setAttr(t){let i=this.hasAttribute(t)?this.getAttribute(t):void 0;const r=it(t);this._numberProps&&this._numberProps[r]&&(i=vc(i)),this._setProp(r,i,!1)}_getProp(t){return this._props[t]}_setProp(t,i,r=!0,n=!0){i!==this._props[t]&&(this._props[t]=i,n&&this._instance&&this._update(),r&&(i===!0?this.setAttribute(Pi(t),""):typeof i=="string"||typeof i=="number"?this.setAttribute(Pi(t),i+""):i||this.removeAttribute(Pi(t))))}_update(){Eh(this._createVNode(),this.shadowRoot)}_createVNode(){const t=Ue(this._def,Be({},this._props));return this._instance||(t.ce=i=>{this._instance=i,i.isCE=!0;const r=(s,o)=>{this.dispatchEvent(new CustomEvent(s,{detail:o}))};i.emit=(s,...o)=>{r(s,o),Pi(s)!==s&&r(Pi(s),o)};let n=this;for(;n=n&&(n.parentNode||n.host);)if(n instanceof pd){i.parent=n._instance,i.provides=n._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(i=>{const r=document.createElement("style");r.textContent=i,this.shadowRoot.appendChild(r)})}}function Z6(e="$style"){{const t=Gr();if(!t)return Fe;const i=t.type.__cssModules;if(!i)return Fe;const r=i[e];return r||Fe}}const b2=new WeakMap,w2=new WeakMap,Ac=Symbol("_moveCb"),q0=Symbol("_enterCb"),_2={name:"TransitionGroup",props:Be({},T6,{tag:String,moveClass:String}),setup(e,{slots:t}){const i=Gr(),r=Zf();let n,s;return dd(()=>{if(!n.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!t8(n[0].el,i.vnode.el,o))return;n.forEach(Q6),n.forEach(J6);const a=n.filter(e8);p2(),a.forEach(l=>{const c=l.el,d=c.style;Rr(c,o),d.transform=d.webkitTransform=d.transitionDuration="";const u=c[Ac]=h=>{h&&h.target!==c||(!h||/transform$/.test(h.propertyName))&&(c.removeEventListener("transitionend",u),c[Ac]=null,on(c,o))};c.addEventListener("transitionend",u)})}),()=>{const o=Oe(e),a=h2(o);let l=o.tag||gt;if(n=[],s)for(let c=0;cdelete e.mode;_2.props;const G6=_2;function Q6(e){const t=e.el;t[Ac]&&t[Ac](),t[q0]&&t[q0]()}function J6(e){w2.set(e,e.el.getBoundingClientRect())}function e8(e){const t=b2.get(e),i=w2.get(e),r=t.left-i.left,n=t.top-i.top;if(r||n){const s=e.el.style;return s.transform=s.webkitTransform=`translate(${r}px,${n}px)`,s.transitionDuration="0s",e}}function t8(e,t,i){const r=e.cloneNode(),n=e[po];n&&n.forEach(a=>{a.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),i.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const s=t.nodeType===1?t:t.parentNode;s.appendChild(r);const{hasTransform:o}=f2(r);return s.removeChild(r),o}const Sn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ne(t)?i=>Qs(t,i):t};function i8(e){e.target.composing=!0}function j0(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Xi=Symbol("_assign"),Tc={created(e,{modifiers:{lazy:t,trim:i,number:r}},n){e[Xi]=Sn(n);const s=r||n.props&&n.props.type==="number";Nr(e,t?"change":"input",o=>{if(o.target.composing)return;let a=e.value;i&&(a=a.trim()),s&&(a=gc(a)),e[Xi](a)}),i&&Nr(e,"change",()=>{e.value=e.value.trim()}),t||(Nr(e,"compositionstart",i8),Nr(e,"compositionend",j0),Nr(e,"change",j0))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:i,modifiers:{lazy:r,trim:n,number:s}},o){if(e[Xi]=Sn(o),e.composing)return;const a=(s||e.type==="number")&&!/^0\d/.test(e.value)?gc(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(r&&t===i||n&&e.value.trim()===l)||(e.value=l))}},Jf={deep:!0,created(e,t,i){e[Xi]=Sn(i),Nr(e,"change",()=>{const r=e._modelValue,n=mo(e),s=e.checked,o=e[Xi];if(ne(r)){const a=ed(r,n),l=a!==-1;if(s&&!l)o(r.concat(n));else if(!s&&l){const c=[...r];c.splice(a,1),o(c)}}else if(Ts(r)){const a=new Set(r);s?a.add(n):a.delete(n),o(a)}else o(C2(e,s))})},mounted:Y0,beforeUpdate(e,t,i){e[Xi]=Sn(i),Y0(e,t,i)}};function Y0(e,{value:t,oldValue:i},r){e._modelValue=t,ne(t)?e.checked=ed(t,r.props.value)>-1:Ts(t)?e.checked=t.has(r.props.value):t!==i&&(e.checked=Cn(t,C2(e,!0)))}const ep={created(e,{value:t},i){e.checked=Cn(t,i.props.value),e[Xi]=Sn(i),Nr(e,"change",()=>{e[Xi](mo(e))})},beforeUpdate(e,{value:t,oldValue:i},r){e[Xi]=Sn(r),t!==i&&(e.checked=Cn(t,r.props.value))}},k2={deep:!0,created(e,{value:t,modifiers:{number:i}},r){const n=Ts(t);Nr(e,"change",()=>{const s=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>i?gc(mo(o)):mo(o));e[Xi](e.multiple?n?new Set(s):s:s[0]),e._assigning=!0,sd(()=>{e._assigning=!1})}),e[Xi]=Sn(r)},mounted(e,{value:t,modifiers:{number:i}}){Z0(e,t)},beforeUpdate(e,t,i){e[Xi]=Sn(i)},updated(e,{value:t,modifiers:{number:i}}){e._assigning||Z0(e,t)}};function Z0(e,t,i){const r=e.multiple,n=ne(t);if(!(r&&!n&&!Ts(t))){for(let s=0,o=e.options.length;sString(d)===String(l)):a.selected=ed(t,l)>-1}else a.selected=t.has(l);else if(Cn(mo(a),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function mo(e){return"_value"in e?e._value:e.value}function C2(e,t){const i=t?"_trueValue":"_falseValue";return i in e?e[i]:t}const E2={created(e,t,i){zl(e,t,i,null,"created")},mounted(e,t,i){zl(e,t,i,null,"mounted")},beforeUpdate(e,t,i,r){zl(e,t,i,r,"beforeUpdate")},updated(e,t,i,r){zl(e,t,i,r,"updated")}};function x2(e,t){switch(e){case"SELECT":return k2;case"TEXTAREA":return Tc;default:switch(t){case"checkbox":return Jf;case"radio":return ep;default:return Tc}}}function zl(e,t,i,r,n){const o=x2(e.tagName,i.props&&i.props.type)[n];o&&o(e,t,i,r)}function r8(){Tc.getSSRProps=({value:e})=>({value:e}),ep.getSSRProps=({value:e},t)=>{if(t.props&&Cn(t.props.value,e))return{checked:!0}},Jf.getSSRProps=({value:e},t)=>{if(ne(e)){if(t.props&&ed(e,t.props.value)>-1)return{checked:!0}}else if(Ts(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},E2.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const i=x2(t.type.toUpperCase(),t.props&&t.props.type);if(i.getSSRProps)return i.getSSRProps(e,t)}}const n8=["ctrl","shift","alt","meta"],s8={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>n8.some(i=>e[`${i}Key`]&&!t.includes(i))},o8=(e,t)=>{const i=e._withMods||(e._withMods={}),r=t.join(".");return i[r]||(i[r]=(n,...s)=>{for(let o=0;o{const i=e._withKeys||(e._withKeys={}),r=t.join(".");return i[r]||(i[r]=n=>{if(!("key"in n))return;const s=Pi(n.key);if(t.some(o=>o===s||a8[o]===s))return e(n)})},S2=Be({patchProp:W6},A6);let ca,X0=!1;function A2(){return ca||(ca=Pv(S2))}function T2(){return ca=X0?ca:Bv(S2),X0=!0,ca}const Eh=(...e)=>{A2().render(...e)},R2=(...e)=>{T2().hydrate(...e)},$2=(...e)=>{const t=A2().createApp(...e),{mount:i}=t;return t.mount=r=>{const n=D2(r);if(!n)return;const s=t._component;!me(s)&&!s.render&&!s.template&&(s.template=n.innerHTML),n.innerHTML="";const o=i(n,!1,I2(n));return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),o},t},c8=(...e)=>{const t=T2().createApp(...e),{mount:i}=t;return t.mount=r=>{const n=D2(r);if(n)return i(n,!0,I2(n))},t};function I2(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function D2(e){return ke(e)?document.querySelector(e):e}let G0=!1;const d8=()=>{G0||(G0=!0,r8(),D6())},u8=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:jv,BaseTransitionPropsValidators:Xf,Comment:Rt,DeprecationTypes:E6,EffectScope:Rf,ErrorCodes:H4,ErrorTypeStrings:v6,Fragment:gt,KeepAlive:G3,ReactiveEffect:uo,Static:cs,Suspense:o3,Teleport:r6,Text:ms,TrackOpTypes:N4,Transition:Qf,TransitionGroup:G6,TriggerOpTypes:F4,VueElement:pd,assertNumber:z4,callWithAsyncErrorHandling:Oi,callWithErrorHandling:Ur,camelize:it,capitalize:Rs,cloneVNode:br,compatUtils:C6,computed:a2,createApp:$2,createBlock:Ba,createCommentVNode:js,createElementBlock:Vr,createElementVNode:Re,createHydrationRenderer:Bv,createPropsRestProxy:R3,createRenderer:Pv,createSSRApp:c8,createSlots:p3,createStaticVNode:o6,createTextVNode:fd,createVNode:Ue,customRef:sv,defineAsyncComponent:m3,defineComponent:Wf,defineCustomElement:y2,defineEmits:b3,defineExpose:w3,defineModel:C3,defineOptions:_3,defineProps:y3,defineSSRCustomElement:j6,defineSlots:k3,devtools:y6,effect:s4,effectScope:i4,getCurrentInstance:Gr,getCurrentScope:Hg,getTransitionRawChildren:hd,guardReactiveProps:Jv,h:l2,handleError:$s,hasInjectionContext:N3,hydrate:R2,initCustomFormatter:p6,initDirectivesForSSR:d8,inject:oa,isMemoSame:c2,isProxy:Bf,isReactive:Js,isReadonly:ho,isRef:Mt,isRuntimeOnly:d6,isShallow:Aa,isVNode:xn,markRaw:iv,mergeDefaults:A3,mergeModels:T3,mergeProps:e2,nextTick:sd,normalizeClass:al,normalizeProps:K5,normalizeStyle:ps,onActivated:Vv,onBeforeMount:Kf,onBeforeUnmount:ll,onBeforeUpdate:pv,onDeactivated:Kv,onErrorCaptured:yv,onMounted:Xr,onRenderTracked:vv,onRenderTriggered:gv,onScopeDispose:r4,onServerPrefetch:mv,onUnmounted:ud,onUpdated:dd,openBlock:pi,popScopeId:Z4,provide:Ev,proxyRefs:Nf,pushScopeId:Y4,queuePostFlushCb:bc,reactive:rd,readonly:Pf,ref:ut,registerRuntimeCompiler:n2,render:Eh,renderList:f3,renderSlot:bv,resolveComponent:i3,resolveDirective:n3,resolveDynamicComponent:r3,resolveFilter:k6,resolveTransitionHooks:fo,setBlockTracking:gh,setDevtoolsHook:b6,setTransitionHooks:En,shallowReactive:tv,shallowReadonly:S4,shallowRef:T4,ssrContextKey:Nv,ssrUtils:_6,stop:o4,toDisplayString:Ng,toHandlerKey:Gs,toHandlers:g3,toRaw:Oe,toRef:M4,toRefs:B4,toValue:I4,transformVNodeArgs:n6,triggerRef:$4,unref:Mf,useAttrs:S3,useCssModule:Z6,useCssVars:P6,useModel:f6,useSSRContext:Fv,useSlots:x3,useTransitionState:Zf,vModelCheckbox:Jf,vModelDynamic:E2,vModelRadio:ep,vModelSelect:k2,vModelText:Tc,vShow:g2,version:d2,warn:g6,watch:no,watchEffect:Y3,watchPostEffect:zv,watchSyncEffect:Hv,withAsyncContext:$3,withCtx:Wn,withDefaults:E3,withDirectives:h3,withKeys:l8,withMemo:m6,withModifiers:o8,withScopeId:X4},Symbol.toStringTag,{value:"Module"}));/** +**/const x6="http://www.w3.org/2000/svg",S6="http://www.w3.org/1998/Math/MathML",Pr=typeof document<"u"?document:null,P0=Pr&&Pr.createElement("template"),A6={insert:(e,t,i)=>{t.insertBefore(e,i||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,i,r)=>{const n=t==="svg"?Pr.createElementNS(x6,e):t==="mathml"?Pr.createElementNS(S6,e):i?Pr.createElement(e,{is:i}):Pr.createElement(e);return e==="select"&&r&&r.multiple!=null&&n.setAttribute("multiple",r.multiple),n},createText:e=>Pr.createTextNode(e),createComment:e=>Pr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Pr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,i,r,n,s){const o=i?i.previousSibling:t.lastChild;if(n&&(n===s||n.nextSibling))for(;t.insertBefore(n.cloneNode(!0),i),!(n===s||!(n=n.nextSibling)););else{P0.innerHTML=r==="svg"?`${e}`:r==="mathml"?`${e}`:e;const a=P0.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,i)}return[o?o.nextSibling:t.firstChild,i?i.previousSibling:t.lastChild]}},rn="transition",Ko="animation",po=Symbol("_vtc"),Qf=(e,{slots:t})=>l2(jv,h2(e),t);Qf.displayName="Transition";const u2={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},T6=Qf.props=Be({},Xf,u2),Fn=(e,t=[])=>{ne(e)?e.forEach(i=>i(...t)):e&&e(...t)},B0=e=>e?ne(e)?e.some(t=>t.length>1):e.length>1:!1;function h2(e){const t={};for(const $ in e)$ in u2||(t[$]=e[$]);if(e.css===!1)return t;const{name:i="v",type:r,duration:n,enterFromClass:s=`${i}-enter-from`,enterActiveClass:o=`${i}-enter-active`,enterToClass:a=`${i}-enter-to`,appearFromClass:l=s,appearActiveClass:c=o,appearToClass:d=a,leaveFromClass:u=`${i}-leave-from`,leaveActiveClass:h=`${i}-leave-active`,leaveToClass:f=`${i}-leave-to`}=e,g=R6(n),b=g&&g[0],w=g&&g[1],{onBeforeEnter:x,onEnter:m,onEnterCancelled:p,onLeave:y,onLeaveCancelled:C,onBeforeAppear:_=x,onAppear:E=m,onAppearCancelled:S=p}=t,A=($,I,L)=>{on($,I?d:a),on($,I?c:o),L&&L()},k=($,I)=>{$._isLeaving=!1,on($,u),on($,f),on($,h),I&&I()},T=$=>(I,L)=>{const N=$?E:m,M=()=>A(I,$,L);Fn(N,[I,M]),O0(()=>{on(I,$?l:s),Rr(I,$?d:a),B0(N)||L0(I,r,b,M)})};return Be(t,{onBeforeEnter($){Fn(x,[$]),Rr($,s),Rr($,o)},onBeforeAppear($){Fn(_,[$]),Rr($,l),Rr($,c)},onEnter:T(!1),onAppear:T(!0),onLeave($,I){$._isLeaving=!0;const L=()=>k($,I);Rr($,u),Rr($,h),p2(),O0(()=>{$._isLeaving&&(on($,u),Rr($,f),B0(y)||L0($,r,w,L))}),Fn(y,[$,L])},onEnterCancelled($){A($,!1),Fn(p,[$])},onAppearCancelled($){A($,!0),Fn(S,[$])},onLeaveCancelled($){k($),Fn(C,[$])}})}function R6(e){if(e==null)return null;if(Ke(e))return[Md(e.enter),Md(e.leave)];{const t=Md(e);return[t,t]}}function Md(e){return vc(e)}function Rr(e,t){t.split(/\s+/).forEach(i=>i&&e.classList.add(i)),(e[po]||(e[po]=new Set)).add(t)}function on(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const i=e[po];i&&(i.delete(t),i.size||(e[po]=void 0))}function O0(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let $6=0;function L0(e,t,i,r){const n=e._endId=++$6,s=()=>{n===e._endId&&r()};if(i)return setTimeout(s,i);const{type:o,timeout:a,propCount:l}=f2(e,t);if(!o)return r();const c=o+"end";let d=0;const u=()=>{e.removeEventListener(c,h),s()},h=f=>{f.target===e&&++d>=l&&u()};setTimeout(()=>{d(i[g]||"").split(", "),n=r(`${rn}Delay`),s=r(`${rn}Duration`),o=M0(n,s),a=r(`${Ko}Delay`),l=r(`${Ko}Duration`),c=M0(a,l);let d=null,u=0,h=0;t===rn?o>0&&(d=rn,u=o,h=s.length):t===Ko?c>0&&(d=Ko,u=c,h=l.length):(u=Math.max(o,c),d=u>0?o>c?rn:Ko:null,h=d?d===rn?s.length:l.length:0);const f=d===rn&&/\b(transform|all)(,|$)/.test(r(`${rn}Property`).toString());return{type:d,timeout:u,propCount:h,hasTransform:f}}function M0(e,t){for(;e.lengthN0(i)+N0(e[r])))}function N0(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function p2(){return document.body.offsetHeight}function I6(e,t,i){const r=e[po];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):i?e.setAttribute("class",t):e.className=t}const Sc=Symbol("_vod"),m2=Symbol("_vsh"),g2={beforeMount(e,{value:t},{transition:i}){e[Sc]=e.style.display==="none"?"":e.style.display,i&&t?i.beforeEnter(e):Wo(e,t)},mounted(e,{value:t},{transition:i}){i&&t&&i.enter(e)},updated(e,{value:t,oldValue:i},{transition:r}){!t!=!i&&(r?t?(r.beforeEnter(e),Wo(e,!0),r.enter(e)):r.leave(e,()=>{Wo(e,!1)}):Wo(e,t))},beforeUnmount(e,{value:t}){Wo(e,t)}};function Wo(e,t){e.style.display=t?e[Sc]:"none",e[m2]=!t}function D6(){g2.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const v2=Symbol("");function P6(e){const t=Gr();if(!t)return;const i=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(s=>Ch(s,n))},r=()=>{const n=e(t.proxy);kh(t.subTree,n),i(n)};Xr(()=>{zv(r);const n=new MutationObserver(r);n.observe(t.subTree.el.parentNode,{childList:!0}),ud(()=>n.disconnect())})}function kh(e,t){if(e.shapeFlag&128){const i=e.suspense;e=i.activeBranch,i.pendingBranch&&!i.isHydrating&&i.effects.push(()=>{kh(i.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Ch(e.el,t);else if(e.type===gt)e.children.forEach(i=>kh(i,t));else if(e.type===cs){let{el:i,anchor:r}=e;for(;i&&(Ch(i,t),i!==r);)i=i.nextSibling}}function Ch(e,t){if(e.nodeType===1){const i=e.style;let r="";for(const n in t)i.setProperty(`--${n}`,t[n]),r+=`--${n}: ${t[n]};`;i[v2]=r}}const B6=/(^|;)\s*display\s*:/;function O6(e,t,i){const r=e.style,n=ke(i);let s=!1;if(i&&!n){if(t)if(ke(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();i[a]==null&&nc(r,a,"")}else for(const o in t)i[o]==null&&nc(r,o,"");for(const o in i)o==="display"&&(s=!0),nc(r,o,i[o])}else if(n){if(t!==i){const o=r[v2];o&&(i+=";"+o),r.cssText=i,s=B6.test(i)}}else t&&e.removeAttribute("style");Sc in e&&(e[Sc]=s?r.display:"",e[m2]&&(r.display="none"))}const F0=/\s*!important$/;function nc(e,t,i){if(ne(i))i.forEach(r=>nc(e,t,r));else if(i==null&&(i=""),t.startsWith("--"))e.setProperty(t,i);else{const r=L6(e,t);F0.test(i)?e.setProperty(Pi(r),i.replace(F0,""),"important"):e[r]=i}}const z0=["Webkit","Moz","ms"],Nd={};function L6(e,t){const i=Nd[t];if(i)return i;let r=it(t);if(r!=="filter"&&r in e)return Nd[t]=r;r=Rs(r);for(let n=0;nFd||(H6.then(()=>Fd=0),Fd=Date.now());function V6(e,t){const i=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=i.attached)return;Oi(K6(r,i.value),t,5,[r])};return i.value=e,i.attached=U6(),i}function K6(e,t){if(ne(t)){const i=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{i.call(e),e._stopped=!0},t.map(r=>n=>!n._stopped&&r&&r(n))}else return t}const W0=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,W6=(e,t,i,r,n,s,o,a,l)=>{const c=n==="svg";t==="class"?I6(e,r,c):t==="style"?O6(e,i,r):As(t)?xf(t)||F6(e,t,i,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):q6(e,t,r,c))?(M6(e,t,r,s,o,a,l),(t==="value"||t==="checked"||t==="selected")&&U0(e,t,r,c,o,t!=="value")):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),U0(e,t,r,c))};function q6(e,t,i,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&W0(t)&&me(i));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const n=e.tagName;if(n==="IMG"||n==="VIDEO"||n==="CANVAS"||n==="SOURCE")return!1}return W0(t)&&ke(i)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function y2(e,t,i){const r=Wf(e,t);class n extends pd{constructor(o){super(r,o,i)}}return n.def=r,n}/*! #__NO_SIDE_EFFECTS__ */const j6=(e,t)=>y2(e,t,R2),Y6=typeof HTMLElement<"u"?HTMLElement:class{};class pd extends Y6{constructor(t,i={},r){super(),this._def=t,this._props=i,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&r?r(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,sd(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),Eh(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let r=0;r{for(const n of r)this._setAttr(n.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(r,n=!1)=>{const{props:s,styles:o}=r;let a;if(s&&!ne(s))for(const l in s){const c=s[l];(c===Number||c&&c.type===Number)&&(l in this._props&&(this._props[l]=vc(this._props[l])),(a||(a=Object.create(null)))[it(l)]=!0)}this._numberProps=a,n&&this._resolveProps(r),this._applyStyles(o),this._update()},i=this._def.__asyncLoader;i?i().then(r=>t(r,!0)):t(this._def)}_resolveProps(t){const{props:i}=t,r=ne(i)?i:Object.keys(i||{});for(const n of Object.keys(this))n[0]!=="_"&&r.includes(n)&&this._setProp(n,this[n],!0,!1);for(const n of r.map(it))Object.defineProperty(this,n,{get(){return this._getProp(n)},set(s){this._setProp(n,s)}})}_setAttr(t){let i=this.hasAttribute(t)?this.getAttribute(t):void 0;const r=it(t);this._numberProps&&this._numberProps[r]&&(i=vc(i)),this._setProp(r,i,!1)}_getProp(t){return this._props[t]}_setProp(t,i,r=!0,n=!0){i!==this._props[t]&&(this._props[t]=i,n&&this._instance&&this._update(),r&&(i===!0?this.setAttribute(Pi(t),""):typeof i=="string"||typeof i=="number"?this.setAttribute(Pi(t),i+""):i||this.removeAttribute(Pi(t))))}_update(){Eh(this._createVNode(),this.shadowRoot)}_createVNode(){const t=Ue(this._def,Be({},this._props));return this._instance||(t.ce=i=>{this._instance=i,i.isCE=!0;const r=(s,o)=>{this.dispatchEvent(new CustomEvent(s,{detail:o}))};i.emit=(s,...o)=>{r(s,o),Pi(s)!==s&&r(Pi(s),o)};let n=this;for(;n=n&&(n.parentNode||n.host);)if(n instanceof pd){i.parent=n._instance,i.provides=n._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(i=>{const r=document.createElement("style");r.textContent=i,this.shadowRoot.appendChild(r)})}}function Z6(e="$style"){{const t=Gr();if(!t)return Fe;const i=t.type.__cssModules;if(!i)return Fe;const r=i[e];return r||Fe}}const b2=new WeakMap,w2=new WeakMap,Ac=Symbol("_moveCb"),q0=Symbol("_enterCb"),_2={name:"TransitionGroup",props:Be({},T6,{tag:String,moveClass:String}),setup(e,{slots:t}){const i=Gr(),r=Zf();let n,s;return dd(()=>{if(!n.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!t8(n[0].el,i.vnode.el,o))return;n.forEach(Q6),n.forEach(J6);const a=n.filter(e8);p2(),a.forEach(l=>{const c=l.el,d=c.style;Rr(c,o),d.transform=d.webkitTransform=d.transitionDuration="";const u=c[Ac]=h=>{h&&h.target!==c||(!h||/transform$/.test(h.propertyName))&&(c.removeEventListener("transitionend",u),c[Ac]=null,on(c,o))};c.addEventListener("transitionend",u)})}),()=>{const o=Oe(e),a=h2(o);let l=o.tag||gt;if(n=[],s)for(let c=0;cdelete e.mode;_2.props;const G6=_2;function Q6(e){const t=e.el;t[Ac]&&t[Ac](),t[q0]&&t[q0]()}function J6(e){w2.set(e,e.el.getBoundingClientRect())}function e8(e){const t=b2.get(e),i=w2.get(e),r=t.left-i.left,n=t.top-i.top;if(r||n){const s=e.el.style;return s.transform=s.webkitTransform=`translate(${r}px,${n}px)`,s.transitionDuration="0s",e}}function t8(e,t,i){const r=e.cloneNode(),n=e[po];n&&n.forEach(a=>{a.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),i.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const s=t.nodeType===1?t:t.parentNode;s.appendChild(r);const{hasTransform:o}=f2(r);return s.removeChild(r),o}const Sn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ne(t)?i=>Qs(t,i):t};function i8(e){e.target.composing=!0}function j0(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Xi=Symbol("_assign"),Tc={created(e,{modifiers:{lazy:t,trim:i,number:r}},n){e[Xi]=Sn(n);const s=r||n.props&&n.props.type==="number";Nr(e,t?"change":"input",o=>{if(o.target.composing)return;let a=e.value;i&&(a=a.trim()),s&&(a=gc(a)),e[Xi](a)}),i&&Nr(e,"change",()=>{e.value=e.value.trim()}),t||(Nr(e,"compositionstart",i8),Nr(e,"compositionend",j0),Nr(e,"change",j0))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:i,modifiers:{lazy:r,trim:n,number:s}},o){if(e[Xi]=Sn(o),e.composing)return;const a=(s||e.type==="number")&&!/^0\d/.test(e.value)?gc(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(r&&t===i||n&&e.value.trim()===l)||(e.value=l))}},Jf={deep:!0,created(e,t,i){e[Xi]=Sn(i),Nr(e,"change",()=>{const r=e._modelValue,n=mo(e),s=e.checked,o=e[Xi];if(ne(r)){const a=ed(r,n),l=a!==-1;if(s&&!l)o(r.concat(n));else if(!s&&l){const c=[...r];c.splice(a,1),o(c)}}else if(Ts(r)){const a=new Set(r);s?a.add(n):a.delete(n),o(a)}else o(C2(e,s))})},mounted:Y0,beforeUpdate(e,t,i){e[Xi]=Sn(i),Y0(e,t,i)}};function Y0(e,{value:t,oldValue:i},r){e._modelValue=t,ne(t)?e.checked=ed(t,r.props.value)>-1:Ts(t)?e.checked=t.has(r.props.value):t!==i&&(e.checked=Cn(t,C2(e,!0)))}const ep={created(e,{value:t},i){e.checked=Cn(t,i.props.value),e[Xi]=Sn(i),Nr(e,"change",()=>{e[Xi](mo(e))})},beforeUpdate(e,{value:t,oldValue:i},r){e[Xi]=Sn(r),t!==i&&(e.checked=Cn(t,r.props.value))}},k2={deep:!0,created(e,{value:t,modifiers:{number:i}},r){const n=Ts(t);Nr(e,"change",()=>{const s=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>i?gc(mo(o)):mo(o));e[Xi](e.multiple?n?new Set(s):s:s[0]),e._assigning=!0,sd(()=>{e._assigning=!1})}),e[Xi]=Sn(r)},mounted(e,{value:t,modifiers:{number:i}}){Z0(e,t)},beforeUpdate(e,t,i){e[Xi]=Sn(i)},updated(e,{value:t,modifiers:{number:i}}){e._assigning||Z0(e,t)}};function Z0(e,t,i){const r=e.multiple,n=ne(t);if(!(r&&!n&&!Ts(t))){for(let s=0,o=e.options.length;sString(d)===String(l)):a.selected=ed(t,l)>-1}else a.selected=t.has(l);else if(Cn(mo(a),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function mo(e){return"_value"in e?e._value:e.value}function C2(e,t){const i=t?"_trueValue":"_falseValue";return i in e?e[i]:t}const E2={created(e,t,i){zl(e,t,i,null,"created")},mounted(e,t,i){zl(e,t,i,null,"mounted")},beforeUpdate(e,t,i,r){zl(e,t,i,r,"beforeUpdate")},updated(e,t,i,r){zl(e,t,i,r,"updated")}};function x2(e,t){switch(e){case"SELECT":return k2;case"TEXTAREA":return Tc;default:switch(t){case"checkbox":return Jf;case"radio":return ep;default:return Tc}}}function zl(e,t,i,r,n){const o=x2(e.tagName,i.props&&i.props.type)[n];o&&o(e,t,i,r)}function r8(){Tc.getSSRProps=({value:e})=>({value:e}),ep.getSSRProps=({value:e},t)=>{if(t.props&&Cn(t.props.value,e))return{checked:!0}},Jf.getSSRProps=({value:e},t)=>{if(ne(e)){if(t.props&&ed(e,t.props.value)>-1)return{checked:!0}}else if(Ts(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},E2.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const i=x2(t.type.toUpperCase(),t.props&&t.props.type);if(i.getSSRProps)return i.getSSRProps(e,t)}}const n8=["ctrl","shift","alt","meta"],s8={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>n8.some(i=>e[`${i}Key`]&&!t.includes(i))},o8=(e,t)=>{const i=e._withMods||(e._withMods={}),r=t.join(".");return i[r]||(i[r]=(n,...s)=>{for(let o=0;o{const i=e._withKeys||(e._withKeys={}),r=t.join(".");return i[r]||(i[r]=n=>{if(!("key"in n))return;const s=Pi(n.key);if(t.some(o=>o===s||a8[o]===s))return e(n)})},S2=Be({patchProp:W6},A6);let ca,X0=!1;function A2(){return ca||(ca=Pv(S2))}function T2(){return ca=X0?ca:Bv(S2),X0=!0,ca}const Eh=(...e)=>{A2().render(...e)},R2=(...e)=>{T2().hydrate(...e)},$2=(...e)=>{const t=A2().createApp(...e),{mount:i}=t;return t.mount=r=>{const n=D2(r);if(!n)return;const s=t._component;!me(s)&&!s.render&&!s.template&&(s.template=n.innerHTML),n.innerHTML="";const o=i(n,!1,I2(n));return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),o},t},c8=(...e)=>{const t=T2().createApp(...e),{mount:i}=t;return t.mount=r=>{const n=D2(r);if(n)return i(n,!0,I2(n))},t};function I2(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function D2(e){return ke(e)?document.querySelector(e):e}let G0=!1;const d8=()=>{G0||(G0=!0,r8(),D6())},u8=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:jv,BaseTransitionPropsValidators:Xf,Comment:Rt,DeprecationTypes:E6,EffectScope:Rf,ErrorCodes:H4,ErrorTypeStrings:v6,Fragment:gt,KeepAlive:G3,ReactiveEffect:uo,Static:cs,Suspense:o3,Teleport:r6,Text:ms,TrackOpTypes:N4,Transition:Qf,TransitionGroup:G6,TriggerOpTypes:F4,VueElement:pd,assertNumber:z4,callWithAsyncErrorHandling:Oi,callWithErrorHandling:Ur,camelize:it,capitalize:Rs,cloneVNode:br,compatUtils:C6,computed:a2,createApp:$2,createBlock:Ba,createCommentVNode:js,createElementBlock:Vr,createElementVNode:Te,createHydrationRenderer:Bv,createPropsRestProxy:R3,createRenderer:Pv,createSSRApp:c8,createSlots:p3,createStaticVNode:o6,createTextVNode:fd,createVNode:Ue,customRef:sv,defineAsyncComponent:m3,defineComponent:Wf,defineCustomElement:y2,defineEmits:b3,defineExpose:w3,defineModel:C3,defineOptions:_3,defineProps:y3,defineSSRCustomElement:j6,defineSlots:k3,devtools:y6,effect:s4,effectScope:i4,getCurrentInstance:Gr,getCurrentScope:Hg,getTransitionRawChildren:hd,guardReactiveProps:Jv,h:l2,handleError:$s,hasInjectionContext:N3,hydrate:R2,initCustomFormatter:p6,initDirectivesForSSR:d8,inject:oa,isMemoSame:c2,isProxy:Bf,isReactive:Js,isReadonly:ho,isRef:Mt,isRuntimeOnly:d6,isShallow:Aa,isVNode:xn,markRaw:iv,mergeDefaults:A3,mergeModels:T3,mergeProps:e2,nextTick:sd,normalizeClass:al,normalizeProps:K5,normalizeStyle:ps,onActivated:Vv,onBeforeMount:Kf,onBeforeUnmount:ll,onBeforeUpdate:pv,onDeactivated:Kv,onErrorCaptured:yv,onMounted:Xr,onRenderTracked:vv,onRenderTriggered:gv,onScopeDispose:r4,onServerPrefetch:mv,onUnmounted:ud,onUpdated:dd,openBlock:pi,popScopeId:Z4,provide:Ev,proxyRefs:Nf,pushScopeId:Y4,queuePostFlushCb:bc,reactive:rd,readonly:Pf,ref:ut,registerRuntimeCompiler:n2,render:Eh,renderList:f3,renderSlot:bv,resolveComponent:i3,resolveDirective:n3,resolveDynamicComponent:r3,resolveFilter:k6,resolveTransitionHooks:fo,setBlockTracking:gh,setDevtoolsHook:b6,setTransitionHooks:En,shallowReactive:tv,shallowReadonly:S4,shallowRef:T4,ssrContextKey:Nv,ssrUtils:_6,stop:o4,toDisplayString:Ng,toHandlerKey:Gs,toHandlers:g3,toRaw:Oe,toRef:M4,toRefs:B4,toValue:I4,transformVNodeArgs:n6,triggerRef:$4,unref:Mf,useAttrs:S3,useCssModule:Z6,useCssVars:P6,useModel:f6,useSSRContext:Fv,useSlots:x3,useTransitionState:Zf,vModelCheckbox:Jf,vModelDynamic:E2,vModelRadio:ep,vModelSelect:k2,vModelText:Tc,vShow:g2,version:d2,warn:g6,watch:no,watchEffect:Y3,watchPostEffect:zv,watchSyncEffect:Hv,withAsyncContext:$3,withCtx:Wn,withDefaults:E3,withDirectives:h3,withKeys:l8,withMemo:m6,withModifiers:o8,withScopeId:X4},Symbol.toStringTag,{value:"Module"}));/** * @vue/compiler-core v3.4.29 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/const Oa=Symbol(""),da=Symbol(""),tp=Symbol(""),Rc=Symbol(""),P2=Symbol(""),ys=Symbol(""),B2=Symbol(""),O2=Symbol(""),ip=Symbol(""),rp=Symbol(""),fl=Symbol(""),np=Symbol(""),L2=Symbol(""),sp=Symbol(""),op=Symbol(""),ap=Symbol(""),lp=Symbol(""),cp=Symbol(""),dp=Symbol(""),M2=Symbol(""),N2=Symbol(""),md=Symbol(""),$c=Symbol(""),up=Symbol(""),hp=Symbol(""),La=Symbol(""),pl=Symbol(""),fp=Symbol(""),xh=Symbol(""),h8=Symbol(""),Sh=Symbol(""),Ic=Symbol(""),f8=Symbol(""),p8=Symbol(""),pp=Symbol(""),m8=Symbol(""),g8=Symbol(""),mp=Symbol(""),F2=Symbol(""),go={[Oa]:"Fragment",[da]:"Teleport",[tp]:"Suspense",[Rc]:"KeepAlive",[P2]:"BaseTransition",[ys]:"openBlock",[B2]:"createBlock",[O2]:"createElementBlock",[ip]:"createVNode",[rp]:"createElementVNode",[fl]:"createCommentVNode",[np]:"createTextVNode",[L2]:"createStaticVNode",[sp]:"resolveComponent",[op]:"resolveDynamicComponent",[ap]:"resolveDirective",[lp]:"resolveFilter",[cp]:"withDirectives",[dp]:"renderList",[M2]:"renderSlot",[N2]:"createSlots",[md]:"toDisplayString",[$c]:"mergeProps",[up]:"normalizeClass",[hp]:"normalizeStyle",[La]:"normalizeProps",[pl]:"guardReactiveProps",[fp]:"toHandlers",[xh]:"camelize",[h8]:"capitalize",[Sh]:"toHandlerKey",[Ic]:"setBlockTracking",[f8]:"pushScopeId",[p8]:"popScopeId",[pp]:"withCtx",[m8]:"unref",[g8]:"isRef",[mp]:"withMemo",[F2]:"isMemoSame"};function v8(e){Object.getOwnPropertySymbols(e).forEach(t=>{go[t]=e[t]})}const zi={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function y8(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:zi}}function Ma(e,t,i,r,n,s,o,a=!1,l=!1,c=!1,d=zi){return e&&(a?(e.helper(ys),e.helper(bo(e.inSSR,c))):e.helper(yo(e.inSSR,c)),o&&e.helper(cp)),{type:13,tag:t,props:i,children:r,patchFlag:n,dynamicProps:s,directives:o,isBlock:a,disableTracking:l,isComponent:c,loc:d}}function ml(e,t=zi){return{type:17,loc:t,elements:e}}function Yi(e,t=zi){return{type:15,loc:t,properties:e}}function ct(e,t){return{type:16,loc:zi,key:ke(e)?Ee(e,!0):e,value:t}}function Ee(e,t=!1,i=zi,r=0){return{type:4,loc:i,content:e,isStatic:t,constType:t?3:r}}function ar(e,t=zi){return{type:8,loc:t,children:e}}function vt(e,t=[],i=zi){return{type:14,loc:i,callee:e,arguments:t}}function vo(e,t=void 0,i=!1,r=!1,n=zi){return{type:18,params:e,returns:t,newline:i,isSlot:r,loc:n}}function Ah(e,t,i,r=!0){return{type:19,test:e,consequent:t,alternate:i,newline:r,loc:zi}}function b8(e,t,i=!1){return{type:20,index:e,value:t,isVNode:i,loc:zi}}function w8(e){return{type:21,body:e,loc:zi}}function yo(e,t){return e||t?ip:rp}function bo(e,t){return e||t?B2:O2}function gp(e,{helper:t,removeHelper:i,inSSR:r}){e.isBlock||(e.isBlock=!0,i(yo(r,e.isComponent)),t(ys),t(bo(r,e.isComponent)))}const Q0=new Uint8Array([123,123]),J0=new Uint8Array([125,125]);function em(e){return e>=97&&e<=122||e>=65&&e<=90}function Ii(e){return e===32||e===10||e===9||e===12||e===13}function nn(e){return e===47||e===62||Ii(e)}function Dc(e){const t=new Uint8Array(e.length);for(let i=0;i=0;n--){const s=this.newlines[n];if(t>s){i=n+2,r=t-s;break}}return{column:r,line:i,offset:t}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(t){t===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t))}stateInterpolationOpen(t){if(t===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const i=this.index+1-this.delimiterOpen.length;i>this.sectionStart&&this.cbs.ontext(this.sectionStart,i),this.state=3,this.sectionStart=i}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(t)):(this.state=1,this.stateText(t))}stateInterpolation(t){t===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(t))}stateInterpolationClose(t){t===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(t))}stateSpecialStartSequence(t){const i=this.sequenceIndex===this.currentSequence.length;if(!(i?nn(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!i){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(t)}stateInRCDATA(t){if(this.sequenceIndex===this.currentSequence.length){if(t===62||Ii(t)){const i=this.index-this.currentSequence.length;if(this.sectionStart=t||(this.state===28?this.currentSequence===Kt.CdataEnd?this.cbs.oncdata(this.sectionStart,t):this.cbs.oncomment(this.sectionStart,t):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,i){}}function tm(e,{compatConfig:t}){const i=t&&t[e];return e==="MODE"?i||3:i}function ds(e,t){const i=tm("MODE",t),r=tm(e,t);return i===3?r===!0:r!==!1}function Na(e,t,i,...r){return ds(e,t)}function vp(e){throw e}function z2(e){}function Je(e,t,i,r){const n=`https://vuejs.org/error-reference/#compiler-${e}`,s=new SyntaxError(String(n));return s.code=e,s.loc=t,s}const vi=e=>e.type===4&&e.isStatic;function H2(e){switch(e){case"Teleport":case"teleport":return da;case"Suspense":case"suspense":return tp;case"KeepAlive":case"keep-alive":return Rc;case"BaseTransition":case"base-transition":return P2}}const k8=/^\d|[^\$\w\xA0-\uFFFF]/,yp=e=>!k8.test(e),C8=/[A-Za-z_$\xA0-\uFFFF]/,E8=/[\.\?\w$\xA0-\uFFFF]/,x8=/\s+[.[]\s*|\s*[.[]\s+/g,S8=e=>{e=e.trim().replace(x8,o=>o.trim());let t=0,i=[],r=0,n=0,s=null;for(let o=0;ot.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function zd(e){return e.type===5||e.type===2}function T8(e){return e.type===7&&e.name==="slot"}function Pc(e){return e.type===1&&e.tagType===3}function Bc(e){return e.type===1&&e.tagType===2}const R8=new Set([La,pl]);function V2(e,t=[]){if(e&&!ke(e)&&e.type===14){const i=e.callee;if(!ke(i)&&R8.has(i))return V2(e.arguments[0],t.concat(e))}return[e,t]}function Oc(e,t,i){let r,n=e.type===13?e.props:e.arguments[2],s=[],o;if(n&&!ke(n)&&n.type===14){const a=V2(n);n=a[0],s=a[1],o=s[s.length-1]}if(n==null||ke(n))r=Yi([t]);else if(n.type===14){const a=n.arguments[0];!ke(a)&&a.type===15?im(t,a)||a.properties.unshift(t):n.callee===fp?r=vt(i.helper($c),[Yi([t]),n]):n.arguments.unshift(Yi([t])),!r&&(r=n)}else n.type===15?(im(t,n)||n.properties.unshift(t),r=n):(r=vt(i.helper($c),[Yi([t]),n]),o&&o.callee===pl&&(o=s[s.length-2]));e.type===13?o?o.arguments[0]=r:e.props=r:o?o.arguments[0]=r:e.arguments[2]=r}function im(e,t){let i=!1;if(e.key.type===4){const r=e.key.content;i=t.properties.some(n=>n.key.type===4&&n.key.content===r)}return i}function Fa(e,t){return`_${t}_${e.replace(/[^\w]/g,(i,r)=>i==="-"?"_":e.charCodeAt(r).toString())}`}function $8(e){return e.type===14&&e.callee===mp?e.arguments[1].returns:e}const I8=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,K2={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:tc,isPreTag:tc,isCustomElement:tc,onError:vp,onWarn:z2,comments:!1,prefixIdentifiers:!1};let He=K2,za=null,Kr="",jt=null,Pe=null,ui="",$r=-1,Vn=-1,Lc=0,dn=!1,Th=null;const Qe=[],rt=new _8(Qe,{onerr:Sr,ontext(e,t){Hl(Pt(e,t),e,t)},ontextentity(e,t,i){Hl(e,t,i)},oninterpolation(e,t){if(dn)return Hl(Pt(e,t),e,t);let i=e+rt.delimiterOpen.length,r=t-rt.delimiterClose.length;for(;Ii(Kr.charCodeAt(i));)i++;for(;Ii(Kr.charCodeAt(r-1));)r--;let n=Pt(i,r);n.includes("&")&&(n=He.decodeEntities(n,!1)),Rh({type:5,content:oc(n,!1,mt(i,r)),loc:mt(e,t)})},onopentagname(e,t){const i=Pt(e,t);jt={type:1,tag:i,ns:He.getNamespace(i,Qe[0],He.ns),tagType:0,props:[],children:[],loc:mt(e-1,t),codegenNode:void 0}},onopentagend(e){nm(e)},onclosetag(e,t){const i=Pt(e,t);if(!He.isVoidTag(i)){let r=!1;for(let n=0;n0&&Sr(24,Qe[0].loc.start.offset);for(let o=0;o<=n;o++){const a=Qe.shift();sc(a,t,o(r.type===7?r.rawName:r.name)===i)&&Sr(2,t)},onattribend(e,t){if(jt&&Pe){if(jn(Pe.loc,t),e!==0)if(ui.includes("&")&&(ui=He.decodeEntities(ui,!0)),Pe.type===6)Pe.name==="class"&&(ui=j2(ui).trim()),e===1&&!ui&&Sr(13,t),Pe.value={type:2,content:ui,loc:e===1?mt($r,Vn):mt($r-1,Vn+1)},rt.inSFCRoot&&jt.tag==="template"&&Pe.name==="lang"&&ui&&ui!=="html"&&rt.enterRCDATA(Dc("-1&&Na("COMPILER_V_BIND_SYNC",He,Pe.loc,Pe.rawName)&&(Pe.name="model",Pe.modifiers.splice(r,1))}(Pe.type!==7||Pe.name!=="pre")&&jt.props.push(Pe)}ui="",$r=Vn=-1},oncomment(e,t){He.comments&&Rh({type:3,content:Pt(e,t),loc:mt(e-4,t+3)})},onend(){const e=Kr.length;for(let t=0;t{const g=t.start.offset+h,b=g+u.length;return oc(u,!1,mt(g,b),0,f?1:0)},a={source:o(s.trim(),i.indexOf(s,n.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let l=n.trim().replace(D8,"").trim();const c=n.indexOf(l),d=l.match(rm);if(d){l=l.replace(rm,"").trim();const u=d[1].trim();let h;if(u&&(h=i.indexOf(u,c+l.length),a.key=o(u,h,!0)),d[2]){const f=d[2].trim();f&&(a.index=o(f,i.indexOf(f,a.key?h+u.length:c+l.length),!0))}}return l&&(a.value=o(l,c,!0)),a}function Pt(e,t){return Kr.slice(e,t)}function nm(e){rt.inSFCRoot&&(jt.innerLoc=mt(e+1,e+1)),Rh(jt);const{tag:t,ns:i}=jt;i===0&&He.isPreTag(t)&&Lc++,He.isVoidTag(t)?sc(jt,e):(Qe.unshift(jt),(i===1||i===2)&&(rt.inXML=!0)),jt=null}function Hl(e,t,i){{const s=Qe[0]&&Qe[0].tag;s!=="script"&&s!=="style"&&e.includes("&")&&(e=He.decodeEntities(e,!1))}const r=Qe[0]||za,n=r.children[r.children.length-1];n&&n.type===2?(n.content+=e,jn(n.loc,i)):r.children.push({type:2,content:e,loc:mt(t,i)})}function sc(e,t,i=!1){i?jn(e.loc,W2(t,60)):jn(e.loc,B8(t,62)+1),rt.inSFCRoot&&(e.children.length?e.innerLoc.end=Be({},e.children[e.children.length-1].loc.end):e.innerLoc.end=Be({},e.innerLoc.start),e.innerLoc.source=Pt(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:r,ns:n}=e;dn||(r==="slot"?e.tagType=2:sm(e)?e.tagType=3:L8(e)&&(e.tagType=1)),rt.inRCDATA||(e.children=q2(e.children,e.tag)),n===0&&He.isPreTag(r)&&Lc--,Th===e&&(dn=rt.inVPre=!1,Th=null),rt.inXML&&(Qe[0]?Qe[0].ns:He.ns)===0&&(rt.inXML=!1);{const s=e.props;if(!rt.inSFCRoot&&ds("COMPILER_NATIVE_TEMPLATE",He)&&e.tag==="template"&&!sm(e)){const a=Qe[0]||za,l=a.children.indexOf(e);a.children.splice(l,1,...e.children)}const o=s.find(a=>a.type===6&&a.name==="inline-template");o&&Na("COMPILER_INLINE_TEMPLATE",He,o.loc)&&e.children.length&&(o.value={type:2,content:Pt(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:o.loc})}}function B8(e,t){let i=e;for(;Kr.charCodeAt(i)!==t&&i=0;)i--;return i}const O8=new Set(["if","else","else-if","for","slot"]);function sm({tag:e,props:t}){if(e==="template"){for(let i=0;i64&&e<91}const N8=/\r\n/g;function q2(e,t){const i=He.whitespace!=="preserve";let r=!1;for(let n=0;n0){if(l>=2){a.codegenNode.patchFlag="-1",a.codegenNode=t.hoist(a.codegenNode),s++;continue}}else{const c=a.codegenNode;if(c.type===13){const d=Q2(c);if((!d||d===512||d===1)&&X2(a,t)>=2){const u=G2(a);u&&(c.props=t.hoist(u))}c.dynamicProps&&(c.dynamicProps=t.hoist(c.dynamicProps))}}}if(a.type===1){const l=a.tagType===1;l&&t.scopes.vSlot++,ac(a,t),l&&t.scopes.vSlot--}else if(a.type===11)ac(a,t,a.children.length===1);else if(a.type===9)for(let l=0;l1)for(let c=0;cT&&(A.childIndex--,A.onNodeRemoved()),A.parent.children.splice(T,1)},onNodeRemoved:bt,addIdentifiers(S){},removeIdentifiers(S){},hoist(S){ke(S)&&(S=Ee(S)),A.hoists.push(S);const k=Ee(`_hoisted_${A.hoists.length}`,!1,S.loc,2);return k.hoisted=S,k},cache(S,k=!1){return b8(A.cached++,S,k)}};return A.filters=new Set,A}function j8(e,t){const i=q8(e,t);vd(e,i),t.hoistStatic&&K8(e,i),t.ssr||Y8(e,i),e.helpers=new Set([...i.helpers.keys()]),e.components=[...i.components],e.directives=[...i.directives],e.imports=i.imports,e.hoists=i.hoists,e.temps=i.temps,e.cached=i.cached,e.transformed=!0,e.filters=[...i.filters]}function Y8(e,t){const{helper:i}=t,{children:r}=e;if(r.length===1){const n=r[0];if(Y2(e,n)&&n.codegenNode){const s=n.codegenNode;s.type===13&&gp(s,t),e.codegenNode=s}else e.codegenNode=n}else if(r.length>1){let n=64;e.codegenNode=Ma(t,i(Oa),void 0,e.children,n+"",void 0,void 0,!0,void 0,!1)}}function Z8(e,t){let i=0;const r=()=>{i--};for(;ir===e:r=>e.test(r);return(r,n)=>{if(r.type===1){const{props:s}=r;if(r.tagType===3&&s.some(T8))return;const o=[];for(let a=0;a`${go[e]}: _${go[e]}`;function X8(e,{mode:t="function",prefixIdentifiers:i=t==="module",sourceMap:r=!1,filename:n="template.vue.html",scopeId:s=null,optimizeImports:o=!1,runtimeGlobalName:a="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:c="vue/server-renderer",ssr:d=!1,isTS:u=!1,inSSR:h=!1}){const f={mode:t,prefixIdentifiers:i,sourceMap:r,filename:n,scopeId:s,optimizeImports:o,runtimeGlobalName:a,runtimeModuleName:l,ssrRuntimeModuleName:c,ssr:d,isTS:u,inSSR:h,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(b){return`_${go[b]}`},push(b,w=-2,x){f.code+=b},indent(){g(++f.indentLevel)},deindent(b=!1){b?--f.indentLevel:g(--f.indentLevel)},newline(){g(f.indentLevel)}};function g(b){f.push(` +`);else if(F8(s.content)){const o=e[n-1]&&e[n-1].type,a=e[n+1]&&e[n+1].type;!o||!a||i&&(o===3&&(a===3||a===1)||o===1&&(a===3||a===1&&z8(s.content)))?(r=!0,e[n]=null):s.content=" "}else i&&(s.content=j2(s.content))}if(Lc&&t&&He.isPreTag(t)){const n=e[0];n&&n.type===2&&(n.content=n.content.replace(/^\r?\n/,""))}return r?e.filter(Boolean):e}function F8(e){for(let t=0;t0){if(l>=2){a.codegenNode.patchFlag="-1",a.codegenNode=t.hoist(a.codegenNode),s++;continue}}else{const c=a.codegenNode;if(c.type===13){const d=Q2(c);if((!d||d===512||d===1)&&X2(a,t)>=2){const u=G2(a);u&&(c.props=t.hoist(u))}c.dynamicProps&&(c.dynamicProps=t.hoist(c.dynamicProps))}}}if(a.type===1){const l=a.tagType===1;l&&t.scopes.vSlot++,ac(a,t),l&&t.scopes.vSlot--}else if(a.type===11)ac(a,t,a.children.length===1);else if(a.type===9)for(let l=0;l1)for(let c=0;cT&&(S.childIndex--,S.onNodeRemoved()),S.parent.children.splice(T,1)},onNodeRemoved:bt,addIdentifiers(A){},removeIdentifiers(A){},hoist(A){ke(A)&&(A=Ee(A)),S.hoists.push(A);const k=Ee(`_hoisted_${S.hoists.length}`,!1,A.loc,2);return k.hoisted=A,k},cache(A,k=!1){return b8(S.cached++,A,k)}};return S.filters=new Set,S}function j8(e,t){const i=q8(e,t);vd(e,i),t.hoistStatic&&K8(e,i),t.ssr||Y8(e,i),e.helpers=new Set([...i.helpers.keys()]),e.components=[...i.components],e.directives=[...i.directives],e.imports=i.imports,e.hoists=i.hoists,e.temps=i.temps,e.cached=i.cached,e.transformed=!0,e.filters=[...i.filters]}function Y8(e,t){const{helper:i}=t,{children:r}=e;if(r.length===1){const n=r[0];if(Y2(e,n)&&n.codegenNode){const s=n.codegenNode;s.type===13&&gp(s,t),e.codegenNode=s}else e.codegenNode=n}else if(r.length>1){let n=64;e.codegenNode=Ma(t,i(Oa),void 0,e.children,n+"",void 0,void 0,!0,void 0,!1)}}function Z8(e,t){let i=0;const r=()=>{i--};for(;ir===e:r=>e.test(r);return(r,n)=>{if(r.type===1){const{props:s}=r;if(r.tagType===3&&s.some(T8))return;const o=[];for(let a=0;a`${go[e]}: _${go[e]}`;function X8(e,{mode:t="function",prefixIdentifiers:i=t==="module",sourceMap:r=!1,filename:n="template.vue.html",scopeId:s=null,optimizeImports:o=!1,runtimeGlobalName:a="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:c="vue/server-renderer",ssr:d=!1,isTS:u=!1,inSSR:h=!1}){const f={mode:t,prefixIdentifiers:i,sourceMap:r,filename:n,scopeId:s,optimizeImports:o,runtimeGlobalName:a,runtimeModuleName:l,ssrRuntimeModuleName:c,ssr:d,isTS:u,inSSR:h,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(b){return`_${go[b]}`},push(b,w=-2,x){f.code+=b},indent(){g(++f.indentLevel)},deindent(b=!1){b?--f.indentLevel:g(--f.indentLevel)},newline(){g(f.indentLevel)}};function g(b){f.push(` `+" ".repeat(b),0)}return f}function G8(e,t={}){const i=X8(e,t);t.onContextCreated&&t.onContextCreated(i);const{mode:r,push:n,prefixIdentifiers:s,indent:o,deindent:a,newline:l,scopeId:c,ssr:d}=i,u=Array.from(e.helpers),h=u.length>0,f=!s&&r!=="module";Q8(e,i);const b=d?"ssrRender":"render",x=(d?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(n(`function ${b}(${x}) {`),o(),f&&(n("with (_ctx) {"),o(),h&&(n(`const { ${u.map(ey).join(", ")} } = _Vue `,-1),l())),e.components.length&&(Hd(e.components,"component",i),(e.directives.length||e.temps>0)&&l()),e.directives.length&&(Hd(e.directives,"directive",i),e.temps>0&&l()),e.filters&&e.filters.length&&(l(),Hd(e.filters,"filter",i),l()),e.temps>0){n("let ");for(let m=0;m0?", ":""}_temp${m}`)}return(e.components.length||e.directives.length||e.temps)&&(n(` `,0),l()),d||n("return "),e.codegenNode?Xt(e.codegenNode,i):n("null"),f&&(a(),n("}")),a(),n("}"),{ast:e,code:i.code,preamble:"",map:i.map?i.map.toJSON():void 0}}function Q8(e,t){const{ssr:i,prefixIdentifiers:r,push:n,newline:s,runtimeModuleName:o,runtimeGlobalName:a,ssrRuntimeModuleName:l}=t,c=a,d=Array.from(e.helpers);if(d.length>0&&(n(`const _Vue = ${c} `,-1),e.hoists.length)){const u=[ip,rp,fl,np,L2].filter(h=>d.includes(h)).map(ey).join(", ");n(`const { ${u} } = _Vue -`,-1)}J8(e.hoists,t),s(),n("return ")}function Hd(e,t,{helper:i,push:r,newline:n,isTS:s}){const o=i(t==="filter"?lp:t==="component"?sp:ap);for(let a=0;a3||!1;t.push("["),i&&t.indent(),gl(e,t,i),i&&t.deindent(),t.push("]")}function gl(e,t,i=!1,r=!0){const{push:n,newline:s}=t;for(let o=0;oi||"null")}function o7(e,t){const{push:i,helper:r,pure:n}=t,s=ke(e.callee)?e.callee:r(e.callee);n&&i(yd),i(s+"(",-2,e),gl(e.arguments,t),i(")")}function a7(e,t){const{push:i,indent:r,deindent:n,newline:s}=t,{properties:o}=e;if(!o.length){i("{}",-2,e);return}const a=o.length>1||!1;i(a?"{":"{ "),a&&r();for(let l=0;l "),(l||a)&&(i("{"),r()),o?(l&&i("return "),ne(o)?bp(o,t):Xt(o,t)):a&&Xt(a,t),(l||a)&&(n(),i("}")),c&&(e.isNonScopedSlot&&i(", undefined, true"),i(")"))}function d7(e,t){const{test:i,consequent:r,alternate:n,newline:s}=e,{push:o,indent:a,deindent:l,newline:c}=t;if(i.type===4){const u=!yp(i.content);u&&o("("),ty(i,t),u&&o(")")}else o("("),Xt(i,t),o(")");s&&a(),t.indentLevel++,s||o(" "),o("? "),Xt(r,t),t.indentLevel--,s&&c(),s||o(" "),o(": ");const d=n.type===19;d||t.indentLevel++,Xt(n,t),d||t.indentLevel--,s&&l(!0)}function u7(e,t){const{push:i,helper:r,indent:n,deindent:s,newline:o}=t;i(`_cache[${e.index}] || (`),e.isVNode&&(n(),i(`${r(Ic)}(-1),`),o()),i(`_cache[${e.index}] = `),Xt(e.value,t),e.isVNode&&(i(","),o(),i(`${r(Ic)}(1),`),o(),i(`_cache[${e.index}]`),s()),i(")")}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const h7=J2(/^(if|else|else-if)$/,(e,t,i)=>f7(e,t,i,(r,n,s)=>{const o=i.parent.children;let a=o.indexOf(r),l=0;for(;a-->=0;){const c=o[a];c&&c.type===9&&(l+=c.branches.length)}return()=>{if(s)r.codegenNode=am(n,l,i);else{const c=p7(r.codegenNode);c.alternate=am(n,l+r.branches.length-1,i)}}}));function f7(e,t,i,r){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const n=t.exp?t.exp.loc:e.loc;i.onError(Je(28,t.loc)),t.exp=Ee("true",!1,n)}if(t.name==="if"){const n=om(e,t),s={type:9,loc:e.loc,branches:[n]};if(i.replaceNode(s),r)return r(s,n,!0)}else{const n=i.parent.children;let s=n.indexOf(e);for(;s-->=-1;){const o=n[s];if(o&&o.type===3){i.removeNode(o);continue}if(o&&o.type===2&&!o.content.trim().length){i.removeNode(o);continue}if(o&&o.type===9){t.name==="else-if"&&o.branches[o.branches.length-1].condition===void 0&&i.onError(Je(30,e.loc)),i.removeNode();const a=om(e,t);o.branches.push(a);const l=r&&r(o,a,!1);vd(a,i),l&&l(),i.currentNode=null}else i.onError(Je(30,e.loc));break}}}function om(e,t){const i=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:i&&!rr(e,"for")?e.children:[e],userKey:gd(e,"key"),isTemplateIf:i}}function am(e,t,i){return e.condition?Ah(e.condition,lm(e,t,i),vt(i.helper(fl),['""',"true"])):lm(e,t,i)}function lm(e,t,i){const{helper:r}=i,n=ct("key",Ee(`${t}`,!1,zi,2)),{children:s}=e,o=s[0];if(s.length!==1||o.type!==1)if(s.length===1&&o.type===11){const l=o.codegenNode;return Oc(l,n,i),l}else return Ma(i,r(Oa),Yi([n]),s,64+"",void 0,void 0,!0,!1,!1,e.loc);else{const l=o.codegenNode,c=$8(l);return c.type===13&&gp(c,i),Oc(c,n,i),l}}function p7(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const m7=(e,t,i)=>{const{modifiers:r,loc:n}=e,s=e.arg;let{exp:o}=e;if(o&&o.type===4&&!o.content.trim()&&(o=void 0),!o){if(s.type!==4||!s.isStatic)return i.onError(Je(52,s.loc)),{props:[ct(s,Ee("",!0,n))]};ry(e),o=e.exp}return s.type!==4?(s.children.unshift("("),s.children.push(') || ""')):s.isStatic||(s.content=`${s.content} || ""`),r.includes("camel")&&(s.type===4?s.isStatic?s.content=it(s.content):s.content=`${i.helperString(xh)}(${s.content})`:(s.children.unshift(`${i.helperString(xh)}(`),s.children.push(")"))),i.inSSR||(r.includes("prop")&&cm(s,"."),r.includes("attr")&&cm(s,"^")),{props:[ct(s,o)]}},ry=(e,t)=>{const i=e.arg,r=it(i.content);e.exp=Ee(r,!1,i.loc)},cm=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},g7=J2("for",(e,t,i)=>{const{helper:r,removeHelper:n}=i;return v7(e,t,i,s=>{const o=vt(r(dp),[s.source]),a=Pc(e),l=rr(e,"memo"),c=gd(e,"key",!1,!0);c&&c.type===7&&!c.exp&&ry(c);const d=c&&(c.type===6?c.value?Ee(c.value.content,!0):void 0:c.exp),u=c&&d?ct("key",d):null,h=s.source.type===4&&s.source.constType>0,f=h?64:c?128:256;return s.codegenNode=Ma(i,r(Oa),void 0,o,f+"",void 0,void 0,!0,!h,!1,e.loc),()=>{let g;const{children:b}=s,w=b.length!==1||b[0].type!==1,x=Bc(e)?e:a&&e.children.length===1&&Bc(e.children[0])?e.children[0]:null;if(x?(g=x.codegenNode,a&&u&&Oc(g,u,i)):w?g=Ma(i,r(Oa),u?Yi([u]):void 0,e.children,"64",void 0,void 0,!0,void 0,!1):(g=b[0].codegenNode,a&&u&&Oc(g,u,i),g.isBlock!==!h&&(g.isBlock?(n(ys),n(bo(i.inSSR,g.isComponent))):n(yo(i.inSSR,g.isComponent))),g.isBlock=!h,g.isBlock?(r(ys),r(bo(i.inSSR,g.isComponent))):r(yo(i.inSSR,g.isComponent))),l){const m=vo($h(s.parseResult,[Ee("_cached")]));m.body=w8([ar(["const _memo = (",l.exp,")"]),ar(["if (_cached",...d?[" && _cached.key === ",d]:[],` && ${i.helperString(F2)}(_cached, _memo)) return _cached`]),ar(["const _item = ",g]),Ee("_item.memo = _memo"),Ee("return _item")]),o.arguments.push(m,Ee("_cache"),Ee(String(i.cached++)))}else o.arguments.push(vo($h(s.parseResult),g,!0))}})});function v7(e,t,i,r){if(!t.exp){i.onError(Je(31,t.loc));return}const n=t.forParseResult;if(!n){i.onError(Je(32,t.loc));return}ny(n);const{addIdentifiers:s,removeIdentifiers:o,scopes:a}=i,{source:l,value:c,key:d,index:u}=n,h={type:11,loc:t.loc,source:l,valueAlias:c,keyAlias:d,objectIndexAlias:u,parseResult:n,children:Pc(e)?e.children:[e]};i.replaceNode(h),a.vFor++;const f=r&&r(h);return()=>{a.vFor--,f&&f()}}function ny(e,t){e.finalized||(e.finalized=!0)}function $h({value:e,key:t,index:i},r=[]){return y7([e,t,i,...r])}function y7(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((i,r)=>i||Ee("_".repeat(r+1),!1))}const dm=Ee("undefined",!1),b7=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const i=rr(e,"slot");if(i)return i.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},w7=(e,t,i,r)=>vo(e,i,!1,!0,i.length?i[0].loc:r);function _7(e,t,i=w7){t.helper(pp);const{children:r,loc:n}=e,s=[],o=[];let a=t.scopes.vSlot>0||t.scopes.vFor>0;const l=rr(e,"slot",!0);if(l){const{arg:w,exp:x}=l;w&&!vi(w)&&(a=!0),s.push(ct(w||Ee("default",!0),i(x,void 0,r,n)))}let c=!1,d=!1;const u=[],h=new Set;let f=0;for(let w=0;w{const p=i(x,void 0,m,n);return t.compatConfig&&(p.isNonScopedSlot=!0),ct("default",p)};c?u.length&&u.some(x=>sy(x))&&(d?t.onError(Je(39,u[0].loc)):s.push(w(void 0,u))):s.push(w(void 0,r))}const g=a?2:lc(e.children)?3:1;let b=Yi(s.concat(ct("_",Ee(g+"",!1))),n);return o.length&&(b=vt(t.helper(N2),[b,ml(o)])),{slots:b,hasDynamicSlots:a}}function Ul(e,t,i){const r=[ct("name",e),ct("fn",t)];return i!=null&&r.push(ct("key",Ee(String(i),!0))),Yi(r)}function lc(e){for(let t=0;tfunction(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:r,props:n}=e,s=e.tagType===1;let o=s?C7(e,t):`"${r}"`;const a=Ke(o)&&o.callee===op;let l,c,d,u=0,h,f,g,b=a||o===da||o===tp||!s&&(r==="svg"||r==="foreignObject"||r==="math");if(n.length>0){const w=ay(e,t,void 0,s,a);l=w.props,u=w.patchFlag,f=w.dynamicPropNames;const x=w.directives;g=x&&x.length?ml(x.map(m=>x7(m,t))):void 0,w.shouldUseBlock&&(b=!0)}if(e.children.length>0)if(o===Rc&&(b=!0,u|=1024),s&&o!==da&&o!==Rc){const{slots:x,hasDynamicSlots:m}=_7(e,t);c=x,m&&(u|=1024)}else if(e.children.length===1&&o!==da){const x=e.children[0],m=x.type,p=m===5||m===8;p&&Zi(x,t)===0&&(u|=1),p||m===2?c=x:c=e.children}else c=e.children;u!==0&&(d=String(u),f&&f.length&&(h=S7(f))),e.codegenNode=Ma(t,o,l,c,d,h,g,!!b,!1,s,e.loc)};function C7(e,t,i=!1){let{tag:r}=e;const n=Ih(r),s=gd(e,"is",!1,!0);if(s)if(n||ds("COMPILER_IS_ON_ELEMENT",t)){let a;if(s.type===6?a=s.value&&Ee(s.value.content,!0):(a=s.exp,a||(a=Ee("is",!1,s.loc))),a)return vt(t.helper(op),[a])}else s.type===6&&s.value.content.startsWith("vue:")&&(r=s.value.content.slice(4));const o=H2(r)||t.isBuiltInComponent(r);return o?(i||t.helper(o),o):(t.helper(sp),t.components.add(r),Fa(r,"component"))}function ay(e,t,i=e.props,r,n,s=!1){const{tag:o,loc:a,children:l}=e;let c=[];const d=[],u=[],h=l.length>0;let f=!1,g=0,b=!1,w=!1,x=!1,m=!1,p=!1,y=!1;const _=[],C=k=>{c.length&&(d.push(Yi(um(c),a)),c=[]),k&&d.push(k)},E=()=>{t.scopes.vFor>0&&c.push(ct(Ee("ref_for",!0),Ee("true")))},A=({key:k,value:T})=>{if(vi(k)){const $=k.content,I=As($);if(I&&(!r||n)&&$.toLowerCase()!=="onclick"&&$!=="onUpdate:modelValue"&&!gn($)&&(m=!0),I&&gn($)&&(y=!0),I&&T.type===14&&(T=T.arguments[0]),T.type===20||(T.type===4||T.type===8)&&Zi(T,t)>0)return;$==="ref"?b=!0:$==="class"?w=!0:$==="style"?x=!0:$!=="key"&&!_.includes($)&&_.push($),r&&($==="class"||$==="style")&&!_.includes($)&&_.push($)}else p=!0};for(let k=0;k1?S=vt(t.helper($c),d,a):S=d[0]):c.length&&(S=Yi(um(c),a)),p?g|=16:(w&&!r&&(g|=2),x&&!r&&(g|=4),_.length&&(g|=8),m&&(g|=32)),!f&&(g===0||g===32)&&(b||y||u.length>0)&&(g|=512),!t.inSSR&&S)switch(S.type){case 15:let k=-1,T=-1,$=!1;for(let N=0;Nct(o,s)),n))}return ml(i,e.loc)}function S7(e){let t="[";for(let i=0,r=e.length;i{if(Bc(e)){const{children:i,loc:r}=e,{slotName:n,slotProps:s}=T7(e,t),o=[t.prefixIdentifiers?"_ctx.$slots":"$slots",n,"{}","undefined","true"];let a=2;s&&(o[2]=s,a=3),i.length&&(o[3]=vo([],i,!1,!1,r),a=4),t.scopeId&&!t.slotted&&(a=5),o.splice(a),e.codegenNode=vt(t.helper(M2),o,r)}};function T7(e,t){let i='"default"',r;const n=[];for(let s=0;s0){const{props:s,directives:o}=ay(e,t,n,!1,!1);r=s,o.length&&t.onError(Je(36,o[0].loc))}return{slotName:i,slotProps:r}}const R7=/^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,ly=(e,t,i,r)=>{const{loc:n,modifiers:s,arg:o}=e;!e.exp&&!s.length&&i.onError(Je(35,n));let a;if(o.type===4)if(o.isStatic){let u=o.content;u.startsWith("vue:")&&(u=`vnode-${u.slice(4)}`);const h=t.tagType!==0||u.startsWith("vnode")||!/[A-Z]/.test(u)?Gs(it(u)):`on:${u}`;a=Ee(h,!0,o.loc)}else a=ar([`${i.helperString(Sh)}(`,o,")"]);else a=o,a.children.unshift(`${i.helperString(Sh)}(`),a.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let c=i.cacheHandlers&&!l&&!i.inVOnce;if(l){const u=U2(l.content),h=!(u||R7.test(l.content)),f=l.content.includes(";");(h||c&&u)&&(l=ar([`${h?"$event":"(...args)"} => ${f?"{":"("}`,l,f?"}":")"]))}let d={props:[ct(a,l||Ee("() => {}",!1,n))]};return r&&(d=r(d)),c&&(d.props[0].value=i.cache(d.props[0].value)),d.props.forEach(u=>u.key.isHandlerKey=!0),d},$7=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const i=e.children;let r,n=!1;for(let s=0;ss.type===7&&!t.directiveTransforms[s.name])&&e.tag!=="template")))for(let s=0;s{if(e.type===1&&rr(e,"once",!0))return hm.has(e)||t.inVOnce||t.inSSR?void 0:(hm.add(e),t.inVOnce=!0,t.helper(Ic),()=>{t.inVOnce=!1;const i=t.currentNode;i.codegenNode&&(i.codegenNode=t.cache(i.codegenNode,!0))})},cy=(e,t,i)=>{const{exp:r,arg:n}=e;if(!r)return i.onError(Je(41,e.loc)),Vl();const s=r.loc.source,o=r.type===4?r.content:s,a=i.bindingMetadata[s];if(a==="props"||a==="props-aliased")return i.onError(Je(44,r.loc)),Vl();if(!o.trim()||!U2(o)&&!!1)return i.onError(Je(42,r.loc)),Vl();const c=n||Ee("modelValue",!0),d=n?vi(n)?`onUpdate:${it(n.content)}`:ar(['"onUpdate:" + ',n]):"onUpdate:modelValue";let u;const h=i.isTS?"($event: any)":"$event";u=ar([`${h} => ((`,r,") = $event)"]);const f=[ct(c,e.exp),ct(d,u)];if(e.modifiers.length&&t.tagType===1){const g=e.modifiers.map(w=>(yp(w)?w:JSON.stringify(w))+": true").join(", "),b=n?vi(n)?`${n.content}Modifiers`:ar([n,' + "Modifiers"']):"modelModifiers";f.push(ct(b,Ee(`{ ${g} }`,!1,e.loc,2)))}return Vl(f)};function Vl(e=[]){return{props:e}}const D7=/[\w).+\-_$\]]/,P7=(e,t)=>{ds("COMPILER_FILTERS",t)&&(e.type===5&&Mc(e.content,t),e.type===1&&e.props.forEach(i=>{i.type===7&&i.name!=="for"&&i.exp&&Mc(i.exp,t)}))};function Mc(e,t){if(e.type===4)fm(e,t);else for(let i=0;i=0&&(m=i.charAt(x),m===" ");x--);(!m||!D7.test(m))&&(o=!0)}}g===void 0?g=i.slice(0,f).trim():d!==0&&w();function w(){b.push(i.slice(d,f).trim()),d=f+1}if(b.length){for(f=0;f{if(e.type===1){const i=rr(e,"memo");return!i||pm.has(e)?void 0:(pm.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&r.type===13&&(e.tagType!==1&&gp(r,t),e.codegenNode=vt(t.helper(mp),[i.exp,vo(void 0,r),"_cache",String(t.cached++)]))})}};function L7(e){return[[I7,h7,O7,g7,P7,A7,k7,b7,$7],{on:ly,bind:m7,model:cy}]}function M7(e,t={}){const i=t.onError||vp,r=t.mode==="module";t.prefixIdentifiers===!0?i(Je(47)):r&&i(Je(48));const n=!1;t.cacheHandlers&&i(Je(49)),t.scopeId&&!r&&i(Je(50));const s=Be({},t,{prefixIdentifiers:n}),o=ke(e)?V8(e,s):e,[a,l]=L7();return j8(o,Be({},s,{nodeTransforms:[...a,...t.nodeTransforms||[]],directiveTransforms:Be({},l,t.directiveTransforms||{})})),G8(o,s)}const N7=()=>({props:[]});/** +`,-1)}J8(e.hoists,t),s(),n("return ")}function Hd(e,t,{helper:i,push:r,newline:n,isTS:s}){const o=i(t==="filter"?lp:t==="component"?sp:ap);for(let a=0;a3||!1;t.push("["),i&&t.indent(),gl(e,t,i),i&&t.deindent(),t.push("]")}function gl(e,t,i=!1,r=!0){const{push:n,newline:s}=t;for(let o=0;oi||"null")}function o7(e,t){const{push:i,helper:r,pure:n}=t,s=ke(e.callee)?e.callee:r(e.callee);n&&i(yd),i(s+"(",-2,e),gl(e.arguments,t),i(")")}function a7(e,t){const{push:i,indent:r,deindent:n,newline:s}=t,{properties:o}=e;if(!o.length){i("{}",-2,e);return}const a=o.length>1||!1;i(a?"{":"{ "),a&&r();for(let l=0;l "),(l||a)&&(i("{"),r()),o?(l&&i("return "),ne(o)?bp(o,t):Xt(o,t)):a&&Xt(a,t),(l||a)&&(n(),i("}")),c&&(e.isNonScopedSlot&&i(", undefined, true"),i(")"))}function d7(e,t){const{test:i,consequent:r,alternate:n,newline:s}=e,{push:o,indent:a,deindent:l,newline:c}=t;if(i.type===4){const u=!yp(i.content);u&&o("("),ty(i,t),u&&o(")")}else o("("),Xt(i,t),o(")");s&&a(),t.indentLevel++,s||o(" "),o("? "),Xt(r,t),t.indentLevel--,s&&c(),s||o(" "),o(": ");const d=n.type===19;d||t.indentLevel++,Xt(n,t),d||t.indentLevel--,s&&l(!0)}function u7(e,t){const{push:i,helper:r,indent:n,deindent:s,newline:o}=t;i(`_cache[${e.index}] || (`),e.isVNode&&(n(),i(`${r(Ic)}(-1),`),o()),i(`_cache[${e.index}] = `),Xt(e.value,t),e.isVNode&&(i(","),o(),i(`${r(Ic)}(1),`),o(),i(`_cache[${e.index}]`),s()),i(")")}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const h7=J2(/^(if|else|else-if)$/,(e,t,i)=>f7(e,t,i,(r,n,s)=>{const o=i.parent.children;let a=o.indexOf(r),l=0;for(;a-->=0;){const c=o[a];c&&c.type===9&&(l+=c.branches.length)}return()=>{if(s)r.codegenNode=am(n,l,i);else{const c=p7(r.codegenNode);c.alternate=am(n,l+r.branches.length-1,i)}}}));function f7(e,t,i,r){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const n=t.exp?t.exp.loc:e.loc;i.onError(Je(28,t.loc)),t.exp=Ee("true",!1,n)}if(t.name==="if"){const n=om(e,t),s={type:9,loc:e.loc,branches:[n]};if(i.replaceNode(s),r)return r(s,n,!0)}else{const n=i.parent.children;let s=n.indexOf(e);for(;s-->=-1;){const o=n[s];if(o&&o.type===3){i.removeNode(o);continue}if(o&&o.type===2&&!o.content.trim().length){i.removeNode(o);continue}if(o&&o.type===9){t.name==="else-if"&&o.branches[o.branches.length-1].condition===void 0&&i.onError(Je(30,e.loc)),i.removeNode();const a=om(e,t);o.branches.push(a);const l=r&&r(o,a,!1);vd(a,i),l&&l(),i.currentNode=null}else i.onError(Je(30,e.loc));break}}}function om(e,t){const i=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:i&&!rr(e,"for")?e.children:[e],userKey:gd(e,"key"),isTemplateIf:i}}function am(e,t,i){return e.condition?Ah(e.condition,lm(e,t,i),vt(i.helper(fl),['""',"true"])):lm(e,t,i)}function lm(e,t,i){const{helper:r}=i,n=ct("key",Ee(`${t}`,!1,zi,2)),{children:s}=e,o=s[0];if(s.length!==1||o.type!==1)if(s.length===1&&o.type===11){const l=o.codegenNode;return Oc(l,n,i),l}else return Ma(i,r(Oa),Yi([n]),s,64+"",void 0,void 0,!0,!1,!1,e.loc);else{const l=o.codegenNode,c=$8(l);return c.type===13&&gp(c,i),Oc(c,n,i),l}}function p7(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const m7=(e,t,i)=>{const{modifiers:r,loc:n}=e,s=e.arg;let{exp:o}=e;if(o&&o.type===4&&!o.content.trim()&&(o=void 0),!o){if(s.type!==4||!s.isStatic)return i.onError(Je(52,s.loc)),{props:[ct(s,Ee("",!0,n))]};ry(e),o=e.exp}return s.type!==4?(s.children.unshift("("),s.children.push(') || ""')):s.isStatic||(s.content=`${s.content} || ""`),r.includes("camel")&&(s.type===4?s.isStatic?s.content=it(s.content):s.content=`${i.helperString(xh)}(${s.content})`:(s.children.unshift(`${i.helperString(xh)}(`),s.children.push(")"))),i.inSSR||(r.includes("prop")&&cm(s,"."),r.includes("attr")&&cm(s,"^")),{props:[ct(s,o)]}},ry=(e,t)=>{const i=e.arg,r=it(i.content);e.exp=Ee(r,!1,i.loc)},cm=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},g7=J2("for",(e,t,i)=>{const{helper:r,removeHelper:n}=i;return v7(e,t,i,s=>{const o=vt(r(dp),[s.source]),a=Pc(e),l=rr(e,"memo"),c=gd(e,"key",!1,!0);c&&c.type===7&&!c.exp&&ry(c);const d=c&&(c.type===6?c.value?Ee(c.value.content,!0):void 0:c.exp),u=c&&d?ct("key",d):null,h=s.source.type===4&&s.source.constType>0,f=h?64:c?128:256;return s.codegenNode=Ma(i,r(Oa),void 0,o,f+"",void 0,void 0,!0,!h,!1,e.loc),()=>{let g;const{children:b}=s,w=b.length!==1||b[0].type!==1,x=Bc(e)?e:a&&e.children.length===1&&Bc(e.children[0])?e.children[0]:null;if(x?(g=x.codegenNode,a&&u&&Oc(g,u,i)):w?g=Ma(i,r(Oa),u?Yi([u]):void 0,e.children,"64",void 0,void 0,!0,void 0,!1):(g=b[0].codegenNode,a&&u&&Oc(g,u,i),g.isBlock!==!h&&(g.isBlock?(n(ys),n(bo(i.inSSR,g.isComponent))):n(yo(i.inSSR,g.isComponent))),g.isBlock=!h,g.isBlock?(r(ys),r(bo(i.inSSR,g.isComponent))):r(yo(i.inSSR,g.isComponent))),l){const m=vo($h(s.parseResult,[Ee("_cached")]));m.body=w8([ar(["const _memo = (",l.exp,")"]),ar(["if (_cached",...d?[" && _cached.key === ",d]:[],` && ${i.helperString(F2)}(_cached, _memo)) return _cached`]),ar(["const _item = ",g]),Ee("_item.memo = _memo"),Ee("return _item")]),o.arguments.push(m,Ee("_cache"),Ee(String(i.cached++)))}else o.arguments.push(vo($h(s.parseResult),g,!0))}})});function v7(e,t,i,r){if(!t.exp){i.onError(Je(31,t.loc));return}const n=t.forParseResult;if(!n){i.onError(Je(32,t.loc));return}ny(n);const{addIdentifiers:s,removeIdentifiers:o,scopes:a}=i,{source:l,value:c,key:d,index:u}=n,h={type:11,loc:t.loc,source:l,valueAlias:c,keyAlias:d,objectIndexAlias:u,parseResult:n,children:Pc(e)?e.children:[e]};i.replaceNode(h),a.vFor++;const f=r&&r(h);return()=>{a.vFor--,f&&f()}}function ny(e,t){e.finalized||(e.finalized=!0)}function $h({value:e,key:t,index:i},r=[]){return y7([e,t,i,...r])}function y7(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((i,r)=>i||Ee("_".repeat(r+1),!1))}const dm=Ee("undefined",!1),b7=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const i=rr(e,"slot");if(i)return i.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},w7=(e,t,i,r)=>vo(e,i,!1,!0,i.length?i[0].loc:r);function _7(e,t,i=w7){t.helper(pp);const{children:r,loc:n}=e,s=[],o=[];let a=t.scopes.vSlot>0||t.scopes.vFor>0;const l=rr(e,"slot",!0);if(l){const{arg:w,exp:x}=l;w&&!vi(w)&&(a=!0),s.push(ct(w||Ee("default",!0),i(x,void 0,r,n)))}let c=!1,d=!1;const u=[],h=new Set;let f=0;for(let w=0;w{const p=i(x,void 0,m,n);return t.compatConfig&&(p.isNonScopedSlot=!0),ct("default",p)};c?u.length&&u.some(x=>sy(x))&&(d?t.onError(Je(39,u[0].loc)):s.push(w(void 0,u))):s.push(w(void 0,r))}const g=a?2:lc(e.children)?3:1;let b=Yi(s.concat(ct("_",Ee(g+"",!1))),n);return o.length&&(b=vt(t.helper(N2),[b,ml(o)])),{slots:b,hasDynamicSlots:a}}function Ul(e,t,i){const r=[ct("name",e),ct("fn",t)];return i!=null&&r.push(ct("key",Ee(String(i),!0))),Yi(r)}function lc(e){for(let t=0;tfunction(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:r,props:n}=e,s=e.tagType===1;let o=s?C7(e,t):`"${r}"`;const a=Ke(o)&&o.callee===op;let l,c,d,u=0,h,f,g,b=a||o===da||o===tp||!s&&(r==="svg"||r==="foreignObject"||r==="math");if(n.length>0){const w=ay(e,t,void 0,s,a);l=w.props,u=w.patchFlag,f=w.dynamicPropNames;const x=w.directives;g=x&&x.length?ml(x.map(m=>x7(m,t))):void 0,w.shouldUseBlock&&(b=!0)}if(e.children.length>0)if(o===Rc&&(b=!0,u|=1024),s&&o!==da&&o!==Rc){const{slots:x,hasDynamicSlots:m}=_7(e,t);c=x,m&&(u|=1024)}else if(e.children.length===1&&o!==da){const x=e.children[0],m=x.type,p=m===5||m===8;p&&Zi(x,t)===0&&(u|=1),p||m===2?c=x:c=e.children}else c=e.children;u!==0&&(d=String(u),f&&f.length&&(h=S7(f))),e.codegenNode=Ma(t,o,l,c,d,h,g,!!b,!1,s,e.loc)};function C7(e,t,i=!1){let{tag:r}=e;const n=Ih(r),s=gd(e,"is",!1,!0);if(s)if(n||ds("COMPILER_IS_ON_ELEMENT",t)){let a;if(s.type===6?a=s.value&&Ee(s.value.content,!0):(a=s.exp,a||(a=Ee("is",!1,s.loc))),a)return vt(t.helper(op),[a])}else s.type===6&&s.value.content.startsWith("vue:")&&(r=s.value.content.slice(4));const o=H2(r)||t.isBuiltInComponent(r);return o?(i||t.helper(o),o):(t.helper(sp),t.components.add(r),Fa(r,"component"))}function ay(e,t,i=e.props,r,n,s=!1){const{tag:o,loc:a,children:l}=e;let c=[];const d=[],u=[],h=l.length>0;let f=!1,g=0,b=!1,w=!1,x=!1,m=!1,p=!1,y=!1;const C=[],_=k=>{c.length&&(d.push(Yi(um(c),a)),c=[]),k&&d.push(k)},E=()=>{t.scopes.vFor>0&&c.push(ct(Ee("ref_for",!0),Ee("true")))},S=({key:k,value:T})=>{if(vi(k)){const $=k.content,I=As($);if(I&&(!r||n)&&$.toLowerCase()!=="onclick"&&$!=="onUpdate:modelValue"&&!gn($)&&(m=!0),I&&gn($)&&(y=!0),I&&T.type===14&&(T=T.arguments[0]),T.type===20||(T.type===4||T.type===8)&&Zi(T,t)>0)return;$==="ref"?b=!0:$==="class"?w=!0:$==="style"?x=!0:$!=="key"&&!C.includes($)&&C.push($),r&&($==="class"||$==="style")&&!C.includes($)&&C.push($)}else p=!0};for(let k=0;k1?A=vt(t.helper($c),d,a):A=d[0]):c.length&&(A=Yi(um(c),a)),p?g|=16:(w&&!r&&(g|=2),x&&!r&&(g|=4),C.length&&(g|=8),m&&(g|=32)),!f&&(g===0||g===32)&&(b||y||u.length>0)&&(g|=512),!t.inSSR&&A)switch(A.type){case 15:let k=-1,T=-1,$=!1;for(let N=0;Nct(o,s)),n))}return ml(i,e.loc)}function S7(e){let t="[";for(let i=0,r=e.length;i{if(Bc(e)){const{children:i,loc:r}=e,{slotName:n,slotProps:s}=T7(e,t),o=[t.prefixIdentifiers?"_ctx.$slots":"$slots",n,"{}","undefined","true"];let a=2;s&&(o[2]=s,a=3),i.length&&(o[3]=vo([],i,!1,!1,r),a=4),t.scopeId&&!t.slotted&&(a=5),o.splice(a),e.codegenNode=vt(t.helper(M2),o,r)}};function T7(e,t){let i='"default"',r;const n=[];for(let s=0;s0){const{props:s,directives:o}=ay(e,t,n,!1,!1);r=s,o.length&&t.onError(Je(36,o[0].loc))}return{slotName:i,slotProps:r}}const R7=/^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,ly=(e,t,i,r)=>{const{loc:n,modifiers:s,arg:o}=e;!e.exp&&!s.length&&i.onError(Je(35,n));let a;if(o.type===4)if(o.isStatic){let u=o.content;u.startsWith("vue:")&&(u=`vnode-${u.slice(4)}`);const h=t.tagType!==0||u.startsWith("vnode")||!/[A-Z]/.test(u)?Gs(it(u)):`on:${u}`;a=Ee(h,!0,o.loc)}else a=ar([`${i.helperString(Sh)}(`,o,")"]);else a=o,a.children.unshift(`${i.helperString(Sh)}(`),a.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let c=i.cacheHandlers&&!l&&!i.inVOnce;if(l){const u=U2(l.content),h=!(u||R7.test(l.content)),f=l.content.includes(";");(h||c&&u)&&(l=ar([`${h?"$event":"(...args)"} => ${f?"{":"("}`,l,f?"}":")"]))}let d={props:[ct(a,l||Ee("() => {}",!1,n))]};return r&&(d=r(d)),c&&(d.props[0].value=i.cache(d.props[0].value)),d.props.forEach(u=>u.key.isHandlerKey=!0),d},$7=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const i=e.children;let r,n=!1;for(let s=0;ss.type===7&&!t.directiveTransforms[s.name])&&e.tag!=="template")))for(let s=0;s{if(e.type===1&&rr(e,"once",!0))return hm.has(e)||t.inVOnce||t.inSSR?void 0:(hm.add(e),t.inVOnce=!0,t.helper(Ic),()=>{t.inVOnce=!1;const i=t.currentNode;i.codegenNode&&(i.codegenNode=t.cache(i.codegenNode,!0))})},cy=(e,t,i)=>{const{exp:r,arg:n}=e;if(!r)return i.onError(Je(41,e.loc)),Vl();const s=r.loc.source,o=r.type===4?r.content:s,a=i.bindingMetadata[s];if(a==="props"||a==="props-aliased")return i.onError(Je(44,r.loc)),Vl();if(!o.trim()||!U2(o)&&!!1)return i.onError(Je(42,r.loc)),Vl();const c=n||Ee("modelValue",!0),d=n?vi(n)?`onUpdate:${it(n.content)}`:ar(['"onUpdate:" + ',n]):"onUpdate:modelValue";let u;const h=i.isTS?"($event: any)":"$event";u=ar([`${h} => ((`,r,") = $event)"]);const f=[ct(c,e.exp),ct(d,u)];if(e.modifiers.length&&t.tagType===1){const g=e.modifiers.map(w=>(yp(w)?w:JSON.stringify(w))+": true").join(", "),b=n?vi(n)?`${n.content}Modifiers`:ar([n,' + "Modifiers"']):"modelModifiers";f.push(ct(b,Ee(`{ ${g} }`,!1,e.loc,2)))}return Vl(f)};function Vl(e=[]){return{props:e}}const D7=/[\w).+\-_$\]]/,P7=(e,t)=>{ds("COMPILER_FILTERS",t)&&(e.type===5&&Mc(e.content,t),e.type===1&&e.props.forEach(i=>{i.type===7&&i.name!=="for"&&i.exp&&Mc(i.exp,t)}))};function Mc(e,t){if(e.type===4)fm(e,t);else for(let i=0;i=0&&(m=i.charAt(x),m===" ");x--);(!m||!D7.test(m))&&(o=!0)}}g===void 0?g=i.slice(0,f).trim():d!==0&&w();function w(){b.push(i.slice(d,f).trim()),d=f+1}if(b.length){for(f=0;f{if(e.type===1){const i=rr(e,"memo");return!i||pm.has(e)?void 0:(pm.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&r.type===13&&(e.tagType!==1&&gp(r,t),e.codegenNode=vt(t.helper(mp),[i.exp,vo(void 0,r),"_cache",String(t.cached++)]))})}};function L7(e){return[[I7,h7,O7,g7,P7,A7,k7,b7,$7],{on:ly,bind:m7,model:cy}]}function M7(e,t={}){const i=t.onError||vp,r=t.mode==="module";t.prefixIdentifiers===!0?i(Je(47)):r&&i(Je(48));const n=!1;t.cacheHandlers&&i(Je(49)),t.scopeId&&!r&&i(Je(50));const s=Be({},t,{prefixIdentifiers:n}),o=ke(e)?V8(e,s):e,[a,l]=L7();return j8(o,Be({},s,{nodeTransforms:[...a,...t.nodeTransforms||[]],directiveTransforms:Be({},l,t.directiveTransforms||{})})),G8(o,s)}const N7=()=>({props:[]});/** * @vue/compiler-dom v3.4.29 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT @@ -32,7 +32,7 @@ * vue v3.4.29 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/const gm=new WeakMap;function i9(e){let t=gm.get(e??Fe);return t||(t=Object.create(null),gm.set(e??Fe,t)),t}function r9(e,t){if(!ke(e))if(e.nodeType)e=e.innerHTML;else return bt;const i=e,r=i9(t),n=r[i];if(n)return n;if(e[0]==="#"){const l=document.querySelector(e);e=l?l.innerHTML:""}const s=Be({hoistStatic:!0,onError:void 0,onWarn:bt},t);!s.isCustomElement&&typeof customElements<"u"&&(s.isCustomElement=l=>!!customElements.get(l));const{code:o}=t9(e,s),a=new Function("Vue",o)(u8);return a._rc=!0,r[i]=a}n2(r9);function vm(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function wp(e={},t={}){Object.keys(t).forEach(i=>{typeof e[i]>"u"?e[i]=t[i]:vm(t[i])&&vm(e[i])&&Object.keys(t[i]).length>0&&wp(e[i],t[i])})}const wy={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function oi(){const e=typeof document<"u"?document:{};return wp(e,wy),e}const n9={document:wy,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function Dn(){const e=typeof window<"u"?window:{};return wp(e,n9),e}const s9=e=>(e==null?void 0:e.nodeName.toLowerCase())??"",vl=(e,t)=>(e==null?void 0:e.nodeName.toLowerCase())===t.toLowerCase(),ft=e=>typeof e=="function",pt=e=>typeof e=="string",bd=e=>typeof e=="number",o9=e=>typeof e=="boolean",et=e=>typeof e>"u",_p=e=>e===null,kp=e=>typeof Window<"u"&&e instanceof Window,Cp=e=>typeof Document<"u"&&e instanceof Document,qr=e=>typeof Element<"u"&&e instanceof Element,a9=e=>typeof Node<"u"&&e instanceof Node,Ys=e=>!ft(e)&&!kp(e)&&bd(e.length),Wr=e=>typeof e=="object"&&e!==null,Nc=e=>Cp(e)?e.documentElement:e,wd=e=>e.replace(/-([a-z])/g,(t,i)=>i.toUpperCase()),Ha=e=>e&&e.replace(/^./,e[0].toLowerCase()).replace(/[A-Z]/g,t=>"-"+t.toLowerCase()),_y=()=>!1,l9=()=>!0,tt=(e,t)=>{for(let i=0;i{const i=Object.keys(e);for(let r=0;r{this[r]=i}),this.length=t.length,this):this}}const Fc=(e=oi())=>/complete|interactive/.test(e.readyState),_d=e=>oi().createElement(e),Ep=(e,t)=>e.appendChild(t),xp=e=>e.parentNode?e.parentNode.removeChild(e):e,ky=(e,t)=>{const i=_d(t);return i.innerHTML=e,[].slice.call(i.childNodes)},c9=()=>{const e=function(t){if(!t)return new Yt;if(t instanceof Yt)return t;if(ft(t)){const i=oi();return Fc(i)?t.call(i,e):i.addEventListener("DOMContentLoaded",()=>t.call(i,e),{once:!0}),new Yt([i])}if(pt(t)){const i=t.trim();if(i.startsWith("<")&&i.endsWith(">")){let n="div";return ai({li:"ul",tr:"tbody",td:"tr",th:"tr",tbody:"table",option:"select"},(o,a)=>{if(i.startsWith(`<${o}`))return n=a,!1}),new Yt(ky(i,n))}const r=oi();return new Yt(r.querySelectorAll(t))}return Ys(t)&&!a9(t)?new Yt(t):new Yt([t])};return e.fn=Yt.prototype,e},O=c9(),Sp=(e,t)=>(tt(t,i=>{e.push(i)}),e),Bo=e=>[...new Set(e)];O.fn.get=function(e){return e===void 0?[].slice.call(this):this[e>=0?e:e+this.length]};O.fn.add=function(e){return new Yt(Bo(Sp(this.get(),O(e).get())))};const Cy=(e,t,i)=>{const r=e.getAttribute(t);return _p(r)?i:r},Ey=(e,t)=>{e.removeAttribute(t)},xy=(e,t,i)=>{_p(i)?Ey(e,t):e.setAttribute(t,i)};O.fn.each=function(e){return tt(this,(t,i)=>e.call(t,i,t))};tt(["add","remove","toggle"],e=>{O.fn[`${e}Class`]=function(t){return e==="remove"&&!arguments.length?this.each((i,r)=>{xy(r,"class","")}):this.each((i,r)=>{if(!qr(r))return;const n=(ft(t)?t.call(r,i,Cy(r,"class","")):t).split(" ").filter(s=>s);tt(n,s=>{r.classList[e](s)})})}});tt(["insertBefore","insertAfter"],(e,t)=>{O.fn[e]=function(i){const r=t?O(this.get().reverse()):this,n=O(i),s=[];return n.each((o,a)=>{a.parentNode&&r.each((l,c)=>{const d=o?c.cloneNode(!0):c,u=t?a.nextSibling:a;s.push(d),a.parentNode.insertBefore(d,u)})}),O(t?s.reverse():s)}});const d9=e=>pt(e)&&!(e.startsWith("<")&&e.endsWith(">"));tt(["before","after"],(e,t)=>{O.fn[e]=function(...i){return t===1&&(i=i.reverse()),this.each((r,n)=>{const s=ft(i[0])?[i[0].call(n,r,n.innerHTML)]:i;tt(s,o=>{let a;d9(o)?a=O(ky(o,"div")):r&&qr(o)?a=O(o.cloneNode(!0)):a=O(o),a[t?"insertAfter":"insertBefore"](n)})})}});function Sy(e,t){return Ys(e)?tt(e,(i,r)=>t.call(i,r,i)):ai(e,t)}function ua(e,t){const i=Dn();let r;const n=[];return Sy(e,(s,o)=>{r=t.call(i,o,s),r!=null&&n.push(r)}),[].concat(...n)}O.fn.map=function(e){return new Yt(ua(this,(t,i)=>e.call(t,i,t)))};O.fn.clone=function(){return this.map(function(){return this.cloneNode(!0)})};O.fn.is=function(e){let t=!1;if(ft(e))return this.each((r,n)=>{e.call(n,r,n)&&(t=!0)}),t;if(pt(e))return this.each((r,n)=>{Cp(n)||kp(n)||n.matches.call(n,e)&&(t=!0)}),t;const i=O(e);return this.each((r,n)=>{i.each((s,o)=>{n===o&&(t=!0)})}),t};O.fn.remove=function(e){return this.each((t,i)=>{(!e||O(i).is(e))&&xp(i)})};tt(["prepend","append"],(e,t)=>{O.fn[e]=function(...i){return this.each((r,n)=>{const s=n.childNodes,o=s.length,a=o?s[t?o-1:0]:_d("div");o||Ep(n,a);let l=ft(i[0])?[i[0].call(n,r,n.innerHTML)]:i;r&&(l=l.map(c=>pt(c)?c:O(c).clone())),O(a)[t?"after":"before"](...l),o||xp(a)})}});tt(["appendTo","prependTo"],(e,t)=>{O.fn[e]=function(i){const r=[],n=O(i).map((o,a)=>{const l=a.childNodes,c=l.length;if(c)return l[t?0:c-1];const d=_d("div");return Ep(a,d),r.push(d),d}),s=this[t?"insertBefore":"insertAfter"](n);return O(r).remove(),s}});const kd=(e,t)=>Dn().getComputedStyle(e).getPropertyValue(Ha(t)),Ay=e=>kd(e,"box-sizing")==="border-box",Ph=(e,t,i)=>{const r=t==="width"?["Left","Right"]:["Top","Bottom"];return[0,1].reduce((n,s,o)=>{let a=i+r[o];return i==="border"&&(a+="Width"),n+parseFloat(kd(e,a)||"0")},0)},Cd=(e,t)=>{if(t==="width"||t==="height"){const i=e.getBoundingClientRect()[t];return Ay(e)?`${i}px`:`${i-Ph(e,t,"border")-Ph(e,t,"padding")}px`}return kd(e,t)},u9=["animation-iteration-count","column-count","fill-opacity","flex-grow","flex-shrink","font-weight","grid-area","grid-column","grid-column-end","grid-column-start","grid-row","grid-row-end","grid-row-start","line-height","opacity","order","orphans","widows","z-index","zoom"];tt(["attr","prop","css"],(e,t)=>{const i=(n,s,o)=>{if(et(o))return;if(t===0)return xy(n,s,o);if(t===1){n[s]=o;return}s=Ha(s);const a=()=>s.startsWith("--")||u9.includes(s)?"":"px";n.style.setProperty(s,bd(o)?`${o}${a()}`:o)},r=(n,s)=>t===0?Cy(n,s):t===1?n[s]:Cd(n,s);O.fn[e]=function(n,s){if(Wr(n))return ai(n,(o,a)=>{this[e](o,a)}),this;if(arguments.length===1){const o=this[0];return qr(o)?r(o,n):void 0}return this.each((o,a)=>{i(a,n,ft(s)?s.call(a,o,r(a,n)):s)})}});O.fn.children=function(e){const t=[];return this.each((i,r)=>{tt(r.childNodes,n=>{qr(n)&&(!e||O(n).is(e))&&t.push(n)})}),new Yt(Bo(t))};O.fn.slice=function(...e){return new Yt([].slice.apply(this,e))};O.fn.eq=function(e){const t=e===-1?this.slice(e):this.slice(e,+e+1);return new Yt(t)};const Ap=(e,t,i,r,n)=>{const s=[];let o;return e.each((a,l)=>{for(o=l[i];o&&qr(o);){if(t===2){if(r&&O(o).is(r))break;(!n||O(o).is(n))&&s.push(o)}else if(t===0){(!r||O(o).is(r))&&s.push(o);break}else(!r||O(o).is(r))&&s.push(o);o=o[i]}}),new Yt(Bo(s))};tt(["","s","sUntil"],(e,t)=>{O.fn[`parent${e}`]=function(i,r){const n=t?O(this.get().reverse()):this;return Ap(n,t,"parentNode",i,r)}});O.fn.closest=function(e){if(this.is(e))return this;const t=[];return this.parents().each((i,r)=>{if(O(r).is(e))return t.push(r),!1}),new Yt(t)};const Ed=new WeakMap,yl=e=>Ed.get(e)??{},Ty=(e,t)=>{const i=yl(e),r=wd(t);return r in i?i[r]:void 0},Tp=(e,t)=>{const i=yl(e);ai(t,(r,n)=>{i[wd(r)]=n}),Ed.set(e,i)},Ry=(e,t,i)=>{Tp(e,{[t]:i})},h9=e=>{Ed.delete(e)},f9=(e,t)=>{const i=yl(e);tt(t,r=>{const n=wd(r);delete i[n]}),Ed.set(e,i)},p9=/^(?:{[\w\W]*\}|\[[\w\W]*\])$/,m9=e=>e==="true"?!0:e==="false"?!1:e==="null"?null:e===+e+""?+e:p9.test(e)?JSON.parse(e):e,ym=(e,t,i)=>{if(et(i)&&e.nodeType===1&&(i=e.dataset[t],pt(i)))try{i=m9(i)}catch{}return i};O.fn.data=function(e,t){if(et(e)){if(!this.length)return;const i=this[0],r=yl(i);return i.nodeType!==1||ai(i.dataset,n=>{r[n]=ym(i,n,r[n])}),r}if(Wr(e))return this.each(function(){Tp(this,e)});if(arguments.length===2&&et(t))return this;if(!et(t))return this.each(function(){Ry(this,e,t)});if(this.length)return ym(this[0],wd(e),Ty(this[0],e))};O.fn.empty=function(){return this.each((e,t)=>{t.innerHTML=""})};O.fn.extend=function(e){return ai(e,(t,i)=>{O.fn[t]=i}),this};O.fn.filter=function(e){if(ft(e))return this.map((i,r)=>e.call(r,i,r)?r:void 0);if(pt(e))return this.map((i,r)=>O(r).is(e)?r:void 0);const t=O(e);return this.map((i,r)=>t.get().includes(r)?r:void 0)};O.fn.find=function(e){const t=[];return this.each((i,r)=>{Sp(t,O(r.querySelectorAll(e)).get())}),new Yt(t)};O.fn.first=function(){return this.eq(0)};const Rp=(e,t)=>e!==t&&Nc(e).contains(t);O.fn.has=function(e){const t=pt(e)?this.find(e):O(e),{length:i}=t;return this.map(function(){for(let r=0;r{const o=a=>Ph(e,t.toLowerCase(),a)*s;return r===2&&n&&(i+=o("margin")),Ay(e)?(r===0&&(i-=o("border")),r===1&&(i-=o("border"),i-=o("padding"))):(r===0&&(i+=o("padding")),r===2&&(i+=o("border"),i+=o("padding"))),i},Iy=(e,t,i,r)=>{const n=oi(),s=`client${t}`,o=`scroll${t}`,a=`offset${t}`,l=`inner${t}`;if(kp(e))return i===2?e[l]:Nc(n)[s];if(Cp(e)){const d=Nc(e);return Math.max(e.body[o],d[o],e.body[a],d[a],d[s])}const c=parseFloat(kd(e,t.toLowerCase())||"0");return $y(e,t,c,i,r,1)},g9=(e,t,i,r,n,s)=>{let o=ft(s)?s.call(e,t,Iy(e,i,r,n)):s;if(o==null)return;const a=O(e),l=i.toLowerCase();if(pt(o)&&["auto","inherit",""].includes(o)){a.css(l,o);return}const c=o.toString().replace(/\b[0-9.]*/,""),d=parseFloat(o);o=$y(e,i,d,r,n,-1)+(c||"px"),a.css(l,o)};tt(["Width","Height"],e=>{tt([`inner${e}`,e.toLowerCase(),`outer${e}`],(t,i)=>{O.fn[t]=function(r,n){const s=arguments.length&&(i<2||!o9(r)),o=r===!0||n===!0;return s?this.each((a,l)=>g9(l,a,e,i,o,r)):this.length?Iy(this[0],e,i,o):void 0}})});O.fn.hide=function(){return this.each((e,t)=>{t.style.display="none"})};tt(["val","html","text"],(e,t)=>{const r=["value","innerHTML","textContent"][t],n=o=>{if(t===2)return ua(o,c=>Nc(c)[r]).join("");if(!o.length)return;const a=o[0],l=O(a);return t===0&&l.is("select[multiple]")?ua(l.find("option:checked"),c=>c.value):a[r]},s=(o,a)=>{if(et(a)){if(t!==0)return;a=""}t===1&&qr(a)&&(a=a.outerHTML),o[r]=a};O.fn[e]=function(o){return arguments.length?this.each((a,l)=>{const c=O(l),d=ft(o)?o.call(l,a,n(c)):o;t===0&&Array.isArray(d)?c.is("select[multiple]")?ua(c.find("option"),u=>u.selected=d.includes(u.value)):l.checked=d.includes(l.value):s(l,d)}):n(this)}});O.fn.index=function(e){return arguments.length?pt(e)?O(e).get().indexOf(this[0]):this.get().indexOf(O(e)[0]):this.eq(0).parent().children().get().indexOf(this[0])};O.fn.last=function(){return this.eq(-1)};tt(["","All","Until"],(e,t)=>{O.fn[`next${e}`]=function(i,r){return Ap(this,t,"nextElementSibling",i,r)}});O.fn.not=function(e){const t=this.filter(e);return this.map((i,r)=>t.index(r)>-1?void 0:r)};const v9=Dn().CustomEvent;class y9 extends v9{constructor(t,i){super(t,i),this.data=i.data,this.namespace=i.namespace}}const Ud=new WeakMap;let b9=1;const Bh=e=>(Ud.has(e)||Ud.set(e,++b9),Ud.get(e)),bm=new Map,zc=e=>{const t=Bh(e);return bm.get(t)||bm.set(t,[]).get(t)},$p=e=>{const t=e.split(".");return{type:t[0],namespace:t.slice(1).sort().join(" ")}},Dy=e=>new RegExp("(?:^| )"+e.replace(" "," .* ?")+"(?: |$)"),w9=(e,t,i,r)=>{const n=$p(t);return zc(e).filter(s=>s&&(!n.type||s.type===n.type)&&(!n.namespace||Dy(n.namespace).test(s.namespace))&&(!i||Bh(s.func)===Bh(i))&&(!r||s.selector===r))},_9=(e,t,i,r,n)=>{let s=!1;Wr(r)&&r.useCapture&&(s=!0),t.split(" ").forEach(o=>{if(!o)return;const a=$p(o),l=(u,h)=>{i.apply(h,u.detail===null?[u]:[u].concat(u.detail))===!1&&(u.preventDefault(),u.stopPropagation())},c=u=>{u.namespace&&!Dy(u.namespace).test(a.namespace)||(u.data=r,n?O(e).find(n).get().reverse().forEach(h=>{(h===u.target||Rp(h,u.target))&&l(u,h)}):l(u,e))},d={type:a.type,namespace:a.namespace,func:i,selector:n,id:zc(e).length,proxy:c};zc(e).push(d),e.addEventListener(d.type,c,s)})},k9=(e,t,i,r)=>{const n=zc(e),s=o=>{delete n[o.id],e.removeEventListener(o.type,o.proxy,!1)};t?t.split(" ").forEach(o=>{o&&w9(e,o,i,r).forEach(a=>{s(a)})}):n.forEach(o=>{s(o)})};O.fn.off=function(e,t,i){return Wr(e)?(ai(e,(r,n)=>{this.off(r,t,n)}),this):((t===!1||ft(t))&&(i=t,t=void 0),i===!1&&(i=_y),this.each(function(){k9(this,e,i,t)}))};function xd(e,...t){return tt(t,i=>{ai(i,(r,n)=>{et(n)||(e[r]=n)})}),e}O.fn.offsetParent=function(){const e=oi();return this.map(function(){let t=this.offsetParent;for(;t&&O(t).css("position")==="static";)t=t.offsetParent;return t||e.documentElement})};const Kl=(e,t)=>parseFloat(e.css(t));O.fn.position=function(){if(!this.length)return;const e=this.eq(0);let t,i={left:0,top:0};if(e.css("position")==="fixed")t=e[0].getBoundingClientRect();else{t=e.offset();const r=e.offsetParent();i=r.offset(),i.top+=Kl(r,"border-top-width"),i.left+=Kl(r,"border-left-width")}return{top:t.top-i.top-Kl(e,"margin-top"),left:t.left-i.left-Kl(e,"margin-left")}};const Py=e=>{if(!e.getClientRects().length)return{top:0,left:0};const{top:t,left:i}=e.getBoundingClientRect(),{pageYOffset:r,pageXOffset:n}=e.ownerDocument.defaultView;return{top:t+r,left:i+n}},C9=(e,t,i)=>{const r=O(e),n=r.css("position");n==="static"&&r.css("position","relative");const s=Py(e),o=r.css("top"),a=r.css("left");let l,c;if((n==="absolute"||n==="fixed")&&(o+a).includes("auto")){const h=r.position();l=h.top,c=h.left}else l=parseFloat(o),c=parseFloat(a);const u=ft(t)?t.call(e,i,xd({},s)):t;r.css({top:u.top!=null?u.top-s.top+l:void 0,left:u.left!=null?u.left-s.left+c:void 0})};O.fn.offset=function(e){return arguments.length?this.each(function(t){C9(this,e,t)}):this.length?Py(this[0]):void 0};O.fn.on=function(e,t,i,r,n){if(Wr(e))return pt(t)||(i=i||t,t=void 0),ai(e,(s,o)=>{this.on(s,t,i,o,n)}),this;if(i==null&&r==null?(r=t,i=t=void 0):r==null&&(pt(t)?(r=i,i=void 0):(r=i,i=t,t=void 0)),r===!1)r=_y;else if(!r)return this;if(n){const s=this,o=r;r=function(a,...l){return s.off(a.type,t,r),o.call(this,a,...l)}}return this.each(function(){_9(this,e,r,i,t)})};O.fn.one=function(e,t,i,r){return this.on(e,t,i,r,!0)};tt(["","All","Until"],(e,t)=>{O.fn[`prev${e}`]=function(i,r){const n=t?O(this.get().reverse()):this;return Ap(n,t,"previousElementSibling",i,r)}});O.fn.removeAttr=function(e){const t=e.split(" ").filter(i=>i);return this.each(function(){tt(t,i=>{Ey(this,i)})})};const By=(e,t)=>{if(et(t))return h9(e);const i=pt(t)?t.split(" ").filter(r=>r):t;f9(e,i)};O.fn.removeData=function(e){return this.each((t,i)=>{By(i,e)})};O.fn.removeProp=function(e){return this.each((t,i)=>{try{delete i[e]}catch{}})};O.fn.replaceWith=function(e){return this.each((t,i)=>{let r=e;ft(r)?r=r.call(i,t,i.innerHTML):t&&!pt(r)&&(r=O(r).clone()),O(i).before(r)}),this.remove()};O.fn.replaceAll=function(e){return O(e).map((t,i)=>(O(i).replaceWith(t?this.clone():this),this.get()))};const Ip=e=>{if(!Wr(e)&&!Array.isArray(e))return"";const t=[],i=(r,n)=>{let s;Wr(n)?ai(n,(o,a)=>{s=Array.isArray(n)&&!Wr(a)?"":o,i(`${r}[${s}]`,a)}):(s=n==null||n===""?"=":`=${encodeURIComponent(n)}`,t.push(encodeURIComponent(r)+s))};return Array.isArray(e)?tt(e,({name:r,value:n})=>i(r,n)):ai(e,i),t.join("&")},Ws=new WeakMap,Oy=e=>{const t=[...e.elements],i=Ws.get(e)||[],r=(n,s)=>n.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1;return[...t,...i].sort(r)},Ly=e=>{const t=[];return e.each((i,r)=>{const n=r instanceof HTMLFormElement?Oy(r):[r];O(n).each((s,o)=>{const a=O(o),l=o.type,c=o.nodeName.toLowerCase();c!=="fieldset"&&o.name&&!o.disabled&&["input","select","textarea","keygen","mdui-checkbox","mdui-radio-group","mdui-switch","mdui-text-field","mdui-select","mdui-slider","mdui-range-slider","mdui-segmented-button-group"].includes(c)&&!["submit","button","image","reset","file"].includes(l)&&(!["radio","checkbox"].includes(l)||o.checked)&&(!["mdui-checkbox","mdui-switch"].includes(c)||o.checked)&&t.push({name:o.name,value:a.val()})})}),t};O.fn.serializeArray=function(){return Ly(this).map(e=>Array.isArray(e.value)?e.value.map(t=>({name:e.name,value:t})):e).flat()};O.fn.serialize=function(){return Ip(this.serializeArray())};O.fn.serializeObject=function(){const e={};return Ly(this).forEach(t=>{const{name:i,value:r}=t;if(!e.hasOwnProperty(i))e[i]=r;else{const n=e[i];Array.isArray(n)||(e[i]=[n]),Array.isArray(r)?e[i].push(...r):e[i].push(r)}}),e};const Vd={},E9=e=>{const t=oi();let i,r;return Vd[e]||(i=_d(e),Ep(t.body,i),r=Cd(i,"display"),xp(i),r==="none"&&(r="block"),Vd[e]=r),Vd[e]};O.fn.show=function(){return this.each((e,t)=>{t.style.display==="none"&&(t.style.display=""),Cd(t,"display")==="none"&&(t.style.display=E9(t.nodeName))})};O.fn.siblings=function(e){return this.prevAll(e).add(this.nextAll(e))};O.fn.toggle=function(){return this.each((e,t)=>{Cd(t,"display")==="none"?O(t).show():O(t).hide()})};O.fn.trigger=function(e,t=null,i){const{type:r,namespace:n}=$p(e),s=new y9(r,{detail:t,data:null,namespace:n,bubbles:!0,cancelable:!1,composed:!0,...i});return this.each((o,a)=>{a.dispatchEvent(s)})};const x9="ajaxStart",wm="ajaxSuccess",Wl="ajaxError",Kd="ajaxComplete",ha={},S9=e=>["GET","HEAD"].includes(e),_m=(e,t)=>`${e}&${t}`.replace(/[&?]{1,2}/,"?"),A9=e=>{const t=Dn();return/^([\w-]+:)?\/\/([^/]+)/.test(e)&&RegExp.$2!==t.location.host},T9=e=>e>=200&&e<300||[0,304].includes(e),R9=e=>{const t={url:"",method:"GET",data:"",processData:!0,async:!0,cache:!0,username:"",password:"",headers:{},xhrFields:{},statusCode:{},dataType:"",contentType:"application/x-www-form-urlencoded",timeout:0,global:!0};return ai(ha,(i,r)=>{!["beforeSend","success","error","complete","statusCode"].includes(i)&&!et(r)&&(t[i]=r)}),xd({},t,e)},My=e=>{const t=oi(),i=Dn();let r=!1;const n={},s={},o=R9(e),a=o.method.toUpperCase();let{data:l,url:c}=o;c=c||i.location.toString();const{processData:d,async:u,cache:h,username:f,password:g,headers:b,xhrFields:w,statusCode:x,dataType:m,contentType:p,timeout:y,global:_}=o,C=S9(a);l&&(C||d)&&!pt(l)&&!(l instanceof ArrayBuffer)&&!(l instanceof Blob)&&!(l instanceof Document)&&!(l instanceof FormData)&&(l=Ip(l)),l&&C&&(c=_m(c,l),l=null);const E=(S,k,...T)=>{_&&O(t).trigger(S,k==="success"?s:n);let $,I;k in ha&&($=ha[k](...T)),o[k]&&(I=o[k](...T)),k==="beforeSend"&&[$,I].includes(!1)&&(r=!0)};return(()=>{let S;return new Promise((k,T)=>{const $=N=>T(new Error(N));C&&!h&&(c=_m(c,`_=${Date.now()}`));const I=new XMLHttpRequest;I.open(a,c,u,f,g),(p||l&&!C&&p!==!1)&&I.setRequestHeader("Content-Type",p),m==="json"&&I.setRequestHeader("Accept","application/json, text/javascript"),ai(b,(N,M)=>{et(M)||I.setRequestHeader(N,M+"")}),A9(c)||I.setRequestHeader("X-Requested-With","XMLHttpRequest"),ai(w,(N,M)=>{I[N]=M}),n.xhr=s.xhr=I,n.options=s.options=o;let L;if(I.onload=()=>{L&&clearTimeout(L);const N=T9(I.status);let M;if(N)if(S=I.status===204||a==="HEAD"?"nocontent":I.status===304?"notmodified":"success",m==="json"||!m&&(I.getResponseHeader("content-type")||"").includes("json")){try{M=a==="HEAD"?void 0:JSON.parse(I.responseText),s.response=M}catch{S="parsererror",E(Wl,"error",I,S),$(S)}S!=="parsererror"&&(E(wm,"success",M,S,I),k(M))}else M=a==="HEAD"?void 0:I.responseType==="text"||I.responseType===""?I.responseText:I.response,s.response=M,E(wm,"success",M,S,I),k(M);else S="error",E(Wl,"error",I,S),$(S);tt([ha.statusCode??{},x],X=>{X[I.status]&&(N?X[I.status](M,S,I):X[I.status](I,S))}),E(Kd,"complete",I,S)},I.onerror=()=>{L&&clearTimeout(L),E(Wl,"error",I,I.statusText),E(Kd,"complete",I,"error"),$(I.statusText)},I.onabort=()=>{let N="abort";L&&(N="timeout",clearTimeout(L)),E(Wl,"error",I,N),E(Kd,"complete",I,N),$(N)},E(x9,"beforeSend",I,o),r)return $("cancel");y>0&&(L=i.setTimeout(()=>I.abort(),y)),I.send(l)})})()};O.ajax=My;const $9=e=>xd(ha,e);O.ajaxSetup=$9;O.contains=Rp;function I9(e,t,i){return Wr(t)?(Tp(e,t),t):et(i)?et(t)?yl(e):Ty(e,t):(Ry(e,t,i),i)}O.data=I9;O.each=Sy;O.extend=function(e,...t){return t.length?xd(e,...t):(ai(e,(i,r)=>{this[i]=r}),this)};O.map=ua;O.merge=Sp;O.param=Ip;O.removeData=By;O.unique=Bo;function v(e,t,i,r){var n=arguments.length,s=n<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,i,s):o(t,i))||s);return n>3&&s&&Object.defineProperty(t,i,s),s}/** +**/const gm=new WeakMap;function i9(e){let t=gm.get(e??Fe);return t||(t=Object.create(null),gm.set(e??Fe,t)),t}function r9(e,t){if(!ke(e))if(e.nodeType)e=e.innerHTML;else return bt;const i=e,r=i9(t),n=r[i];if(n)return n;if(e[0]==="#"){const l=document.querySelector(e);e=l?l.innerHTML:""}const s=Be({hoistStatic:!0,onError:void 0,onWarn:bt},t);!s.isCustomElement&&typeof customElements<"u"&&(s.isCustomElement=l=>!!customElements.get(l));const{code:o}=t9(e,s),a=new Function("Vue",o)(u8);return a._rc=!0,r[i]=a}n2(r9);function vm(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function wp(e={},t={}){Object.keys(t).forEach(i=>{typeof e[i]>"u"?e[i]=t[i]:vm(t[i])&&vm(e[i])&&Object.keys(t[i]).length>0&&wp(e[i],t[i])})}const wy={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function oi(){const e=typeof document<"u"?document:{};return wp(e,wy),e}const n9={document:wy,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function Dn(){const e=typeof window<"u"?window:{};return wp(e,n9),e}const s9=e=>(e==null?void 0:e.nodeName.toLowerCase())??"",vl=(e,t)=>(e==null?void 0:e.nodeName.toLowerCase())===t.toLowerCase(),ft=e=>typeof e=="function",pt=e=>typeof e=="string",bd=e=>typeof e=="number",o9=e=>typeof e=="boolean",et=e=>typeof e>"u",_p=e=>e===null,kp=e=>typeof Window<"u"&&e instanceof Window,Cp=e=>typeof Document<"u"&&e instanceof Document,qr=e=>typeof Element<"u"&&e instanceof Element,a9=e=>typeof Node<"u"&&e instanceof Node,Ys=e=>!ft(e)&&!kp(e)&&bd(e.length),Wr=e=>typeof e=="object"&&e!==null,Nc=e=>Cp(e)?e.documentElement:e,wd=e=>e.replace(/-([a-z])/g,(t,i)=>i.toUpperCase()),Ha=e=>e&&e.replace(/^./,e[0].toLowerCase()).replace(/[A-Z]/g,t=>"-"+t.toLowerCase()),_y=()=>!1,l9=()=>!0,tt=(e,t)=>{for(let i=0;i{const i=Object.keys(e);for(let r=0;r{this[r]=i}),this.length=t.length,this):this}}const Fc=(e=oi())=>/complete|interactive/.test(e.readyState),_d=e=>oi().createElement(e),Ep=(e,t)=>e.appendChild(t),xp=e=>e.parentNode?e.parentNode.removeChild(e):e,ky=(e,t)=>{const i=_d(t);return i.innerHTML=e,[].slice.call(i.childNodes)},c9=()=>{const e=function(t){if(!t)return new Yt;if(t instanceof Yt)return t;if(ft(t)){const i=oi();return Fc(i)?t.call(i,e):i.addEventListener("DOMContentLoaded",()=>t.call(i,e),{once:!0}),new Yt([i])}if(pt(t)){const i=t.trim();if(i.startsWith("<")&&i.endsWith(">")){let n="div";return ai({li:"ul",tr:"tbody",td:"tr",th:"tr",tbody:"table",option:"select"},(o,a)=>{if(i.startsWith(`<${o}`))return n=a,!1}),new Yt(ky(i,n))}const r=oi();return new Yt(r.querySelectorAll(t))}return Ys(t)&&!a9(t)?new Yt(t):new Yt([t])};return e.fn=Yt.prototype,e},O=c9(),Sp=(e,t)=>(tt(t,i=>{e.push(i)}),e),Bo=e=>[...new Set(e)];O.fn.get=function(e){return e===void 0?[].slice.call(this):this[e>=0?e:e+this.length]};O.fn.add=function(e){return new Yt(Bo(Sp(this.get(),O(e).get())))};const Cy=(e,t,i)=>{const r=e.getAttribute(t);return _p(r)?i:r},Ey=(e,t)=>{e.removeAttribute(t)},xy=(e,t,i)=>{_p(i)?Ey(e,t):e.setAttribute(t,i)};O.fn.each=function(e){return tt(this,(t,i)=>e.call(t,i,t))};tt(["add","remove","toggle"],e=>{O.fn[`${e}Class`]=function(t){return e==="remove"&&!arguments.length?this.each((i,r)=>{xy(r,"class","")}):this.each((i,r)=>{if(!qr(r))return;const n=(ft(t)?t.call(r,i,Cy(r,"class","")):t).split(" ").filter(s=>s);tt(n,s=>{r.classList[e](s)})})}});tt(["insertBefore","insertAfter"],(e,t)=>{O.fn[e]=function(i){const r=t?O(this.get().reverse()):this,n=O(i),s=[];return n.each((o,a)=>{a.parentNode&&r.each((l,c)=>{const d=o?c.cloneNode(!0):c,u=t?a.nextSibling:a;s.push(d),a.parentNode.insertBefore(d,u)})}),O(t?s.reverse():s)}});const d9=e=>pt(e)&&!(e.startsWith("<")&&e.endsWith(">"));tt(["before","after"],(e,t)=>{O.fn[e]=function(...i){return t===1&&(i=i.reverse()),this.each((r,n)=>{const s=ft(i[0])?[i[0].call(n,r,n.innerHTML)]:i;tt(s,o=>{let a;d9(o)?a=O(ky(o,"div")):r&&qr(o)?a=O(o.cloneNode(!0)):a=O(o),a[t?"insertAfter":"insertBefore"](n)})})}});function Sy(e,t){return Ys(e)?tt(e,(i,r)=>t.call(i,r,i)):ai(e,t)}function ua(e,t){const i=Dn();let r;const n=[];return Sy(e,(s,o)=>{r=t.call(i,o,s),r!=null&&n.push(r)}),[].concat(...n)}O.fn.map=function(e){return new Yt(ua(this,(t,i)=>e.call(t,i,t)))};O.fn.clone=function(){return this.map(function(){return this.cloneNode(!0)})};O.fn.is=function(e){let t=!1;if(ft(e))return this.each((r,n)=>{e.call(n,r,n)&&(t=!0)}),t;if(pt(e))return this.each((r,n)=>{Cp(n)||kp(n)||n.matches.call(n,e)&&(t=!0)}),t;const i=O(e);return this.each((r,n)=>{i.each((s,o)=>{n===o&&(t=!0)})}),t};O.fn.remove=function(e){return this.each((t,i)=>{(!e||O(i).is(e))&&xp(i)})};tt(["prepend","append"],(e,t)=>{O.fn[e]=function(...i){return this.each((r,n)=>{const s=n.childNodes,o=s.length,a=o?s[t?o-1:0]:_d("div");o||Ep(n,a);let l=ft(i[0])?[i[0].call(n,r,n.innerHTML)]:i;r&&(l=l.map(c=>pt(c)?c:O(c).clone())),O(a)[t?"after":"before"](...l),o||xp(a)})}});tt(["appendTo","prependTo"],(e,t)=>{O.fn[e]=function(i){const r=[],n=O(i).map((o,a)=>{const l=a.childNodes,c=l.length;if(c)return l[t?0:c-1];const d=_d("div");return Ep(a,d),r.push(d),d}),s=this[t?"insertBefore":"insertAfter"](n);return O(r).remove(),s}});const kd=(e,t)=>Dn().getComputedStyle(e).getPropertyValue(Ha(t)),Ay=e=>kd(e,"box-sizing")==="border-box",Ph=(e,t,i)=>{const r=t==="width"?["Left","Right"]:["Top","Bottom"];return[0,1].reduce((n,s,o)=>{let a=i+r[o];return i==="border"&&(a+="Width"),n+parseFloat(kd(e,a)||"0")},0)},Cd=(e,t)=>{if(t==="width"||t==="height"){const i=e.getBoundingClientRect()[t];return Ay(e)?`${i}px`:`${i-Ph(e,t,"border")-Ph(e,t,"padding")}px`}return kd(e,t)},u9=["animation-iteration-count","column-count","fill-opacity","flex-grow","flex-shrink","font-weight","grid-area","grid-column","grid-column-end","grid-column-start","grid-row","grid-row-end","grid-row-start","line-height","opacity","order","orphans","widows","z-index","zoom"];tt(["attr","prop","css"],(e,t)=>{const i=(n,s,o)=>{if(et(o))return;if(t===0)return xy(n,s,o);if(t===1){n[s]=o;return}s=Ha(s);const a=()=>s.startsWith("--")||u9.includes(s)?"":"px";n.style.setProperty(s,bd(o)?`${o}${a()}`:o)},r=(n,s)=>t===0?Cy(n,s):t===1?n[s]:Cd(n,s);O.fn[e]=function(n,s){if(Wr(n))return ai(n,(o,a)=>{this[e](o,a)}),this;if(arguments.length===1){const o=this[0];return qr(o)?r(o,n):void 0}return this.each((o,a)=>{i(a,n,ft(s)?s.call(a,o,r(a,n)):s)})}});O.fn.children=function(e){const t=[];return this.each((i,r)=>{tt(r.childNodes,n=>{qr(n)&&(!e||O(n).is(e))&&t.push(n)})}),new Yt(Bo(t))};O.fn.slice=function(...e){return new Yt([].slice.apply(this,e))};O.fn.eq=function(e){const t=e===-1?this.slice(e):this.slice(e,+e+1);return new Yt(t)};const Ap=(e,t,i,r,n)=>{const s=[];let o;return e.each((a,l)=>{for(o=l[i];o&&qr(o);){if(t===2){if(r&&O(o).is(r))break;(!n||O(o).is(n))&&s.push(o)}else if(t===0){(!r||O(o).is(r))&&s.push(o);break}else(!r||O(o).is(r))&&s.push(o);o=o[i]}}),new Yt(Bo(s))};tt(["","s","sUntil"],(e,t)=>{O.fn[`parent${e}`]=function(i,r){const n=t?O(this.get().reverse()):this;return Ap(n,t,"parentNode",i,r)}});O.fn.closest=function(e){if(this.is(e))return this;const t=[];return this.parents().each((i,r)=>{if(O(r).is(e))return t.push(r),!1}),new Yt(t)};const Ed=new WeakMap,yl=e=>Ed.get(e)??{},Ty=(e,t)=>{const i=yl(e),r=wd(t);return r in i?i[r]:void 0},Tp=(e,t)=>{const i=yl(e);ai(t,(r,n)=>{i[wd(r)]=n}),Ed.set(e,i)},Ry=(e,t,i)=>{Tp(e,{[t]:i})},h9=e=>{Ed.delete(e)},f9=(e,t)=>{const i=yl(e);tt(t,r=>{const n=wd(r);delete i[n]}),Ed.set(e,i)},p9=/^(?:{[\w\W]*\}|\[[\w\W]*\])$/,m9=e=>e==="true"?!0:e==="false"?!1:e==="null"?null:e===+e+""?+e:p9.test(e)?JSON.parse(e):e,ym=(e,t,i)=>{if(et(i)&&e.nodeType===1&&(i=e.dataset[t],pt(i)))try{i=m9(i)}catch{}return i};O.fn.data=function(e,t){if(et(e)){if(!this.length)return;const i=this[0],r=yl(i);return i.nodeType!==1||ai(i.dataset,n=>{r[n]=ym(i,n,r[n])}),r}if(Wr(e))return this.each(function(){Tp(this,e)});if(arguments.length===2&&et(t))return this;if(!et(t))return this.each(function(){Ry(this,e,t)});if(this.length)return ym(this[0],wd(e),Ty(this[0],e))};O.fn.empty=function(){return this.each((e,t)=>{t.innerHTML=""})};O.fn.extend=function(e){return ai(e,(t,i)=>{O.fn[t]=i}),this};O.fn.filter=function(e){if(ft(e))return this.map((i,r)=>e.call(r,i,r)?r:void 0);if(pt(e))return this.map((i,r)=>O(r).is(e)?r:void 0);const t=O(e);return this.map((i,r)=>t.get().includes(r)?r:void 0)};O.fn.find=function(e){const t=[];return this.each((i,r)=>{Sp(t,O(r.querySelectorAll(e)).get())}),new Yt(t)};O.fn.first=function(){return this.eq(0)};const Rp=(e,t)=>e!==t&&Nc(e).contains(t);O.fn.has=function(e){const t=pt(e)?this.find(e):O(e),{length:i}=t;return this.map(function(){for(let r=0;r{const o=a=>Ph(e,t.toLowerCase(),a)*s;return r===2&&n&&(i+=o("margin")),Ay(e)?(r===0&&(i-=o("border")),r===1&&(i-=o("border"),i-=o("padding"))):(r===0&&(i+=o("padding")),r===2&&(i+=o("border"),i+=o("padding"))),i},Iy=(e,t,i,r)=>{const n=oi(),s=`client${t}`,o=`scroll${t}`,a=`offset${t}`,l=`inner${t}`;if(kp(e))return i===2?e[l]:Nc(n)[s];if(Cp(e)){const d=Nc(e);return Math.max(e.body[o],d[o],e.body[a],d[a],d[s])}const c=parseFloat(kd(e,t.toLowerCase())||"0");return $y(e,t,c,i,r,1)},g9=(e,t,i,r,n,s)=>{let o=ft(s)?s.call(e,t,Iy(e,i,r,n)):s;if(o==null)return;const a=O(e),l=i.toLowerCase();if(pt(o)&&["auto","inherit",""].includes(o)){a.css(l,o);return}const c=o.toString().replace(/\b[0-9.]*/,""),d=parseFloat(o);o=$y(e,i,d,r,n,-1)+(c||"px"),a.css(l,o)};tt(["Width","Height"],e=>{tt([`inner${e}`,e.toLowerCase(),`outer${e}`],(t,i)=>{O.fn[t]=function(r,n){const s=arguments.length&&(i<2||!o9(r)),o=r===!0||n===!0;return s?this.each((a,l)=>g9(l,a,e,i,o,r)):this.length?Iy(this[0],e,i,o):void 0}})});O.fn.hide=function(){return this.each((e,t)=>{t.style.display="none"})};tt(["val","html","text"],(e,t)=>{const r=["value","innerHTML","textContent"][t],n=o=>{if(t===2)return ua(o,c=>Nc(c)[r]).join("");if(!o.length)return;const a=o[0],l=O(a);return t===0&&l.is("select[multiple]")?ua(l.find("option:checked"),c=>c.value):a[r]},s=(o,a)=>{if(et(a)){if(t!==0)return;a=""}t===1&&qr(a)&&(a=a.outerHTML),o[r]=a};O.fn[e]=function(o){return arguments.length?this.each((a,l)=>{const c=O(l),d=ft(o)?o.call(l,a,n(c)):o;t===0&&Array.isArray(d)?c.is("select[multiple]")?ua(c.find("option"),u=>u.selected=d.includes(u.value)):l.checked=d.includes(l.value):s(l,d)}):n(this)}});O.fn.index=function(e){return arguments.length?pt(e)?O(e).get().indexOf(this[0]):this.get().indexOf(O(e)[0]):this.eq(0).parent().children().get().indexOf(this[0])};O.fn.last=function(){return this.eq(-1)};tt(["","All","Until"],(e,t)=>{O.fn[`next${e}`]=function(i,r){return Ap(this,t,"nextElementSibling",i,r)}});O.fn.not=function(e){const t=this.filter(e);return this.map((i,r)=>t.index(r)>-1?void 0:r)};const v9=Dn().CustomEvent;class y9 extends v9{constructor(t,i){super(t,i),this.data=i.data,this.namespace=i.namespace}}const Ud=new WeakMap;let b9=1;const Bh=e=>(Ud.has(e)||Ud.set(e,++b9),Ud.get(e)),bm=new Map,zc=e=>{const t=Bh(e);return bm.get(t)||bm.set(t,[]).get(t)},$p=e=>{const t=e.split(".");return{type:t[0],namespace:t.slice(1).sort().join(" ")}},Dy=e=>new RegExp("(?:^| )"+e.replace(" "," .* ?")+"(?: |$)"),w9=(e,t,i,r)=>{const n=$p(t);return zc(e).filter(s=>s&&(!n.type||s.type===n.type)&&(!n.namespace||Dy(n.namespace).test(s.namespace))&&(!i||Bh(s.func)===Bh(i))&&(!r||s.selector===r))},_9=(e,t,i,r,n)=>{let s=!1;Wr(r)&&r.useCapture&&(s=!0),t.split(" ").forEach(o=>{if(!o)return;const a=$p(o),l=(u,h)=>{i.apply(h,u.detail===null?[u]:[u].concat(u.detail))===!1&&(u.preventDefault(),u.stopPropagation())},c=u=>{u.namespace&&!Dy(u.namespace).test(a.namespace)||(u.data=r,n?O(e).find(n).get().reverse().forEach(h=>{(h===u.target||Rp(h,u.target))&&l(u,h)}):l(u,e))},d={type:a.type,namespace:a.namespace,func:i,selector:n,id:zc(e).length,proxy:c};zc(e).push(d),e.addEventListener(d.type,c,s)})},k9=(e,t,i,r)=>{const n=zc(e),s=o=>{delete n[o.id],e.removeEventListener(o.type,o.proxy,!1)};t?t.split(" ").forEach(o=>{o&&w9(e,o,i,r).forEach(a=>{s(a)})}):n.forEach(o=>{s(o)})};O.fn.off=function(e,t,i){return Wr(e)?(ai(e,(r,n)=>{this.off(r,t,n)}),this):((t===!1||ft(t))&&(i=t,t=void 0),i===!1&&(i=_y),this.each(function(){k9(this,e,i,t)}))};function xd(e,...t){return tt(t,i=>{ai(i,(r,n)=>{et(n)||(e[r]=n)})}),e}O.fn.offsetParent=function(){const e=oi();return this.map(function(){let t=this.offsetParent;for(;t&&O(t).css("position")==="static";)t=t.offsetParent;return t||e.documentElement})};const Kl=(e,t)=>parseFloat(e.css(t));O.fn.position=function(){if(!this.length)return;const e=this.eq(0);let t,i={left:0,top:0};if(e.css("position")==="fixed")t=e[0].getBoundingClientRect();else{t=e.offset();const r=e.offsetParent();i=r.offset(),i.top+=Kl(r,"border-top-width"),i.left+=Kl(r,"border-left-width")}return{top:t.top-i.top-Kl(e,"margin-top"),left:t.left-i.left-Kl(e,"margin-left")}};const Py=e=>{if(!e.getClientRects().length)return{top:0,left:0};const{top:t,left:i}=e.getBoundingClientRect(),{pageYOffset:r,pageXOffset:n}=e.ownerDocument.defaultView;return{top:t+r,left:i+n}},C9=(e,t,i)=>{const r=O(e),n=r.css("position");n==="static"&&r.css("position","relative");const s=Py(e),o=r.css("top"),a=r.css("left");let l,c;if((n==="absolute"||n==="fixed")&&(o+a).includes("auto")){const h=r.position();l=h.top,c=h.left}else l=parseFloat(o),c=parseFloat(a);const u=ft(t)?t.call(e,i,xd({},s)):t;r.css({top:u.top!=null?u.top-s.top+l:void 0,left:u.left!=null?u.left-s.left+c:void 0})};O.fn.offset=function(e){return arguments.length?this.each(function(t){C9(this,e,t)}):this.length?Py(this[0]):void 0};O.fn.on=function(e,t,i,r,n){if(Wr(e))return pt(t)||(i=i||t,t=void 0),ai(e,(s,o)=>{this.on(s,t,i,o,n)}),this;if(i==null&&r==null?(r=t,i=t=void 0):r==null&&(pt(t)?(r=i,i=void 0):(r=i,i=t,t=void 0)),r===!1)r=_y;else if(!r)return this;if(n){const s=this,o=r;r=function(a,...l){return s.off(a.type,t,r),o.call(this,a,...l)}}return this.each(function(){_9(this,e,r,i,t)})};O.fn.one=function(e,t,i,r){return this.on(e,t,i,r,!0)};tt(["","All","Until"],(e,t)=>{O.fn[`prev${e}`]=function(i,r){const n=t?O(this.get().reverse()):this;return Ap(n,t,"previousElementSibling",i,r)}});O.fn.removeAttr=function(e){const t=e.split(" ").filter(i=>i);return this.each(function(){tt(t,i=>{Ey(this,i)})})};const By=(e,t)=>{if(et(t))return h9(e);const i=pt(t)?t.split(" ").filter(r=>r):t;f9(e,i)};O.fn.removeData=function(e){return this.each((t,i)=>{By(i,e)})};O.fn.removeProp=function(e){return this.each((t,i)=>{try{delete i[e]}catch{}})};O.fn.replaceWith=function(e){return this.each((t,i)=>{let r=e;ft(r)?r=r.call(i,t,i.innerHTML):t&&!pt(r)&&(r=O(r).clone()),O(i).before(r)}),this.remove()};O.fn.replaceAll=function(e){return O(e).map((t,i)=>(O(i).replaceWith(t?this.clone():this),this.get()))};const Ip=e=>{if(!Wr(e)&&!Array.isArray(e))return"";const t=[],i=(r,n)=>{let s;Wr(n)?ai(n,(o,a)=>{s=Array.isArray(n)&&!Wr(a)?"":o,i(`${r}[${s}]`,a)}):(s=n==null||n===""?"=":`=${encodeURIComponent(n)}`,t.push(encodeURIComponent(r)+s))};return Array.isArray(e)?tt(e,({name:r,value:n})=>i(r,n)):ai(e,i),t.join("&")},Ws=new WeakMap,Oy=e=>{const t=[...e.elements],i=Ws.get(e)||[],r=(n,s)=>n.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1;return[...t,...i].sort(r)},Ly=e=>{const t=[];return e.each((i,r)=>{const n=r instanceof HTMLFormElement?Oy(r):[r];O(n).each((s,o)=>{const a=O(o),l=o.type,c=o.nodeName.toLowerCase();c!=="fieldset"&&o.name&&!o.disabled&&["input","select","textarea","keygen","mdui-checkbox","mdui-radio-group","mdui-switch","mdui-text-field","mdui-select","mdui-slider","mdui-range-slider","mdui-segmented-button-group"].includes(c)&&!["submit","button","image","reset","file"].includes(l)&&(!["radio","checkbox"].includes(l)||o.checked)&&(!["mdui-checkbox","mdui-switch"].includes(c)||o.checked)&&t.push({name:o.name,value:a.val()})})}),t};O.fn.serializeArray=function(){return Ly(this).map(e=>Array.isArray(e.value)?e.value.map(t=>({name:e.name,value:t})):e).flat()};O.fn.serialize=function(){return Ip(this.serializeArray())};O.fn.serializeObject=function(){const e={};return Ly(this).forEach(t=>{const{name:i,value:r}=t;if(!e.hasOwnProperty(i))e[i]=r;else{const n=e[i];Array.isArray(n)||(e[i]=[n]),Array.isArray(r)?e[i].push(...r):e[i].push(r)}}),e};const Vd={},E9=e=>{const t=oi();let i,r;return Vd[e]||(i=_d(e),Ep(t.body,i),r=Cd(i,"display"),xp(i),r==="none"&&(r="block"),Vd[e]=r),Vd[e]};O.fn.show=function(){return this.each((e,t)=>{t.style.display==="none"&&(t.style.display=""),Cd(t,"display")==="none"&&(t.style.display=E9(t.nodeName))})};O.fn.siblings=function(e){return this.prevAll(e).add(this.nextAll(e))};O.fn.toggle=function(){return this.each((e,t)=>{Cd(t,"display")==="none"?O(t).show():O(t).hide()})};O.fn.trigger=function(e,t=null,i){const{type:r,namespace:n}=$p(e),s=new y9(r,{detail:t,data:null,namespace:n,bubbles:!0,cancelable:!1,composed:!0,...i});return this.each((o,a)=>{a.dispatchEvent(s)})};const x9="ajaxStart",wm="ajaxSuccess",Wl="ajaxError",Kd="ajaxComplete",ha={},S9=e=>["GET","HEAD"].includes(e),_m=(e,t)=>`${e}&${t}`.replace(/[&?]{1,2}/,"?"),A9=e=>{const t=Dn();return/^([\w-]+:)?\/\/([^/]+)/.test(e)&&RegExp.$2!==t.location.host},T9=e=>e>=200&&e<300||[0,304].includes(e),R9=e=>{const t={url:"",method:"GET",data:"",processData:!0,async:!0,cache:!0,username:"",password:"",headers:{},xhrFields:{},statusCode:{},dataType:"",contentType:"application/x-www-form-urlencoded",timeout:0,global:!0};return ai(ha,(i,r)=>{!["beforeSend","success","error","complete","statusCode"].includes(i)&&!et(r)&&(t[i]=r)}),xd({},t,e)},My=e=>{const t=oi(),i=Dn();let r=!1;const n={},s={},o=R9(e),a=o.method.toUpperCase();let{data:l,url:c}=o;c=c||i.location.toString();const{processData:d,async:u,cache:h,username:f,password:g,headers:b,xhrFields:w,statusCode:x,dataType:m,contentType:p,timeout:y,global:C}=o,_=S9(a);l&&(_||d)&&!pt(l)&&!(l instanceof ArrayBuffer)&&!(l instanceof Blob)&&!(l instanceof Document)&&!(l instanceof FormData)&&(l=Ip(l)),l&&_&&(c=_m(c,l),l=null);const E=(A,k,...T)=>{C&&O(t).trigger(A,k==="success"?s:n);let $,I;k in ha&&($=ha[k](...T)),o[k]&&(I=o[k](...T)),k==="beforeSend"&&[$,I].includes(!1)&&(r=!0)};return(()=>{let A;return new Promise((k,T)=>{const $=N=>T(new Error(N));_&&!h&&(c=_m(c,`_=${Date.now()}`));const I=new XMLHttpRequest;I.open(a,c,u,f,g),(p||l&&!_&&p!==!1)&&I.setRequestHeader("Content-Type",p),m==="json"&&I.setRequestHeader("Accept","application/json, text/javascript"),ai(b,(N,M)=>{et(M)||I.setRequestHeader(N,M+"")}),A9(c)||I.setRequestHeader("X-Requested-With","XMLHttpRequest"),ai(w,(N,M)=>{I[N]=M}),n.xhr=s.xhr=I,n.options=s.options=o;let L;if(I.onload=()=>{L&&clearTimeout(L);const N=T9(I.status);let M;if(N)if(A=I.status===204||a==="HEAD"?"nocontent":I.status===304?"notmodified":"success",m==="json"||!m&&(I.getResponseHeader("content-type")||"").includes("json")){try{M=a==="HEAD"?void 0:JSON.parse(I.responseText),s.response=M}catch{A="parsererror",E(Wl,"error",I,A),$(A)}A!=="parsererror"&&(E(wm,"success",M,A,I),k(M))}else M=a==="HEAD"?void 0:I.responseType==="text"||I.responseType===""?I.responseText:I.response,s.response=M,E(wm,"success",M,A,I),k(M);else A="error",E(Wl,"error",I,A),$(A);tt([ha.statusCode??{},x],X=>{X[I.status]&&(N?X[I.status](M,A,I):X[I.status](I,A))}),E(Kd,"complete",I,A)},I.onerror=()=>{L&&clearTimeout(L),E(Wl,"error",I,I.statusText),E(Kd,"complete",I,"error"),$(I.statusText)},I.onabort=()=>{let N="abort";L&&(N="timeout",clearTimeout(L)),E(Wl,"error",I,N),E(Kd,"complete",I,N),$(N)},E(x9,"beforeSend",I,o),r)return $("cancel");y>0&&(L=i.setTimeout(()=>I.abort(),y)),I.send(l)})})()};O.ajax=My;const $9=e=>xd(ha,e);O.ajaxSetup=$9;O.contains=Rp;function I9(e,t,i){return Wr(t)?(Tp(e,t),t):et(i)?et(t)?yl(e):Ty(e,t):(Ry(e,t,i),i)}O.data=I9;O.each=Sy;O.extend=function(e,...t){return t.length?xd(e,...t):(ai(e,(i,r)=>{this[i]=r}),this)};O.map=ua;O.merge=Sp;O.param=Ip;O.removeData=By;O.unique=Bo;function v(e,t,i,r){var n=arguments.length,s=n<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,i,s):o(t,i))||s);return n>3&&s&&Object.defineProperty(t,i,s),s}/** * @license * Copyright 2019 Google LLC * SPDX-License-Identifier: BSD-3-Clause @@ -82,7 +82,7 @@ * @license * Copyright 2018 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const Ky="important",ew=" !"+Ky,us=Is(class extends wl{constructor(e){var t;if(super(e),e.type!==nr.ATTRIBUTE||e.name!=="style"||((t=e.strings)==null?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce((t,i)=>{const r=e[i];return r==null?t:t+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`},"")}update(e,[t]){const{style:i}=e.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(const r of this.ft)t[r]==null&&(this.ft.delete(r),r.includes("-")?i.removeProperty(r):i[r]=null);for(const r in t){const n=t[r];if(n!=null){this.ft.add(r);const s=typeof n=="string"&&n.endsWith(ew);r.includes("-")||s?i.setProperty(r,s?n.slice(0,-11):n,s?Ky:""):i[r]=n}}return ni}});class Te extends nt{emit(t,i){const r=new CustomEvent(t,Object.assign({bubbles:!0,cancelable:!1,composed:!0,detail:{}},i));return this.dispatchEvent(r)}}class It{constructor(t,...i){this.slotNames=[],(this.host=t).addController(this),this.slotNames=i,this.onSlotChange=this.onSlotChange.bind(this)}hostConnected(){this.host.shadowRoot.addEventListener("slotchange",this.onSlotChange),Fc()||O(()=>{this.host.requestUpdate()})}hostDisconnected(){this.host.shadowRoot.removeEventListener("slotchange",this.onSlotChange)}test(t){return t==="[default]"?this.hasDefaultSlot():this.hasNamedSlot(t)}hasDefaultSlot(){return[...this.host.childNodes].some(t=>t.nodeType===t.TEXT_NODE&&t.textContent.trim()!==""||t.nodeType===t.ELEMENT_NODE&&!t.hasAttribute("slot"))}hasNamedSlot(t){return this.host.querySelector(`:scope > [slot="${t}"]`)!==null}onSlotChange(t){const i=t.target;(this.slotNames.includes("[default]")&&!i.name||i.name&&this.slotNames.includes(i.name))&&this.host.requestUpdate()}}const Ve=P`${qe}`,Ce=pe` + */const Ky="important",ew=" !"+Ky,us=Is(class extends wl{constructor(e){var t;if(super(e),e.type!==nr.ATTRIBUTE||e.name!=="style"||((t=e.strings)==null?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce((t,i)=>{const r=e[i];return r==null?t:t+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`},"")}update(e,[t]){const{style:i}=e.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(const r of this.ft)t[r]==null&&(this.ft.delete(r),r.includes("-")?i.removeProperty(r):i[r]=null);for(const r in t){const n=t[r];if(n!=null){this.ft.add(r);const s=typeof n=="string"&&n.endsWith(ew);r.includes("-")||s?i.setProperty(r,s?n.slice(0,-11):n,s?Ky:""):i[r]=n}}return ni}});class Re extends nt{emit(t,i){const r=new CustomEvent(t,Object.assign({bubbles:!0,cancelable:!1,composed:!0,detail:{}},i));return this.dispatchEvent(r)}}class It{constructor(t,...i){this.slotNames=[],(this.host=t).addController(this),this.slotNames=i,this.onSlotChange=this.onSlotChange.bind(this)}hostConnected(){this.host.shadowRoot.addEventListener("slotchange",this.onSlotChange),Fc()||O(()=>{this.host.requestUpdate()})}hostDisconnected(){this.host.shadowRoot.removeEventListener("slotchange",this.onSlotChange)}test(t){return t==="[default]"?this.hasDefaultSlot():this.hasNamedSlot(t)}hasDefaultSlot(){return[...this.host.childNodes].some(t=>t.nodeType===t.TEXT_NODE&&t.textContent.trim()!==""||t.nodeType===t.ELEMENT_NODE&&!t.hasAttribute("slot"))}hasNamedSlot(t){return this.host.querySelector(`:scope > [slot="${t}"]`)!==null}onSlotChange(t){const i=t.target;(this.slotNames.includes("[default]")&&!i.name||i.name&&this.slotNames.includes(i.name))&&this.host.requestUpdate()}}const Ve=P`${qe}`,Ce=pe` :host { box-sizing: border-box; } @@ -124,7 +124,7 @@ * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const Dm=e=>!tw(e)&&typeof e.then=="function",Pm=1073741823;class cw extends Op{constructor(){super(...arguments),this._$Cwt=Pm,this._$Cbt=[],this._$CK=new aw(this),this._$CX=new lw}render(...t){return t.find(i=>!Dm(i))??ni}update(t,i){const r=this._$Cbt;let n=r.length;this._$Cbt=i;const s=this._$CK,o=this._$CX;this.isConnected||this.disconnected();for(let a=0;athis._$Cwt);a++){const l=i[a];if(!Dm(l))return this._$Cwt=a,l;a{for(;o.get();)await o.get();const d=s.deref();if(d!==void 0){const u=d._$Cbt.indexOf(l);u>-1&&u{if(this.name){const[i,r]=this.name.split("--");return P`${i}`}return this.src?P`${dw(My({url:this.src}).then(Wy))}`:P``};return this.hasSlotController.test("[default]")?P``:t()}};Wa.styles=[Ce,uw];v([R({reflect:!0})],Wa.prototype,"name",void 0);v([R({reflect:!0})],Wa.prototype,"src",void 0);Wa=v([se("mdui-icon")],Wa);const hw=pe`:host{--shape-corner:var(--mdui-shape-corner-full);position:relative;display:inline-flex;align-items:center;justify-content:center;overflow:hidden;white-space:nowrap;vertical-align:middle;border-radius:var(--shape-corner);-webkit-user-select:none;user-select:none;width:2.5rem;height:2.5rem;background-color:rgb(var(--mdui-color-primary-container));color:rgb(var(--mdui-color-on-primary-container));font-size:var(--mdui-typescale-title-medium-size);font-weight:var(--mdui-typescale-title-medium-weight);letter-spacing:var(--mdui-typescale-title-medium-tracking);line-height:var(--mdui-typescale-title-medium-line-height)}img{width:100%;height:100%}::slotted(mdui-icon),mdui-icon{font-size:1.5em}`;let ws=class extends Te{constructor(){super(...arguments),this.hasSlotController=new It(this,"[default]")}render(){return this.hasSlotController.test("[default]")?P``:this.src?P`${be(this.label)}`:this.icon?P``:Ve}};ws.styles=[Ce,hw];v([R({reflect:!0})],ws.prototype,"src",void 0);v([R({reflect:!0})],ws.prototype,"fit",void 0);v([R({reflect:!0})],ws.prototype,"icon",void 0);v([R({reflect:!0})],ws.prototype,"label",void 0);ws=v([se("mdui-avatar")],ws);const fw=pe`:host{--shape-corner:var(--mdui-shape-corner-full);display:inline-flex;align-items:center;justify-content:center;border-radius:var(--shape-corner);padding-left:.25rem;padding-right:.25rem;color:rgb(var(--mdui-color-on-error));background-color:rgb(var(--mdui-color-error));height:1rem;min-width:1rem;font-size:var(--mdui-typescale-label-small-size);font-weight:var(--mdui-typescale-label-small-weight);letter-spacing:var(--mdui-typescale-label-small-tracking);line-height:var(--mdui-typescale-label-small-line-height)}:host([variant=small]){min-width:0;padding:0;width:.375rem;height:.375rem}`;let Vc=class extends Te{constructor(){super(...arguments),this.variant="large"}render(){return this.variant==="small"?Ve:P``}};Vc.styles=[Ce,fw];v([R({reflect:!0})],Vc.prototype,"variant",void 0);Vc=v([se("mdui-badge")],Vc);const Y=e=>e!==null&&e!=="false";class zt{constructor(t,i){this.defined=!1,(this.host=t).addController(this),this.relatedElements=i.relatedElements,this.needDomReady=i.needDomReady||!!i.relatedElements,this.onSlotChange=this.onSlotChange.bind(this)}hostConnected(){this.host.shadowRoot.addEventListener("slotchange",this.onSlotChange)}hostDisconnected(){this.host.shadowRoot.removeEventListener("slotchange",this.onSlotChange)}isDefined(){return this.defined?!0:(this.defined=(!this.needDomReady||Fc())&&!this.getUndefinedLocalNames().length,this.defined)}async whenDefined(){if(this.defined)return Promise.resolve();const t=oi();this.needDomReady&&!Fc(t)&&await new Promise(r=>{t.addEventListener("DOMContentLoaded",()=>r(),{once:!0})});const i=this.getUndefinedLocalNames();if(i.length){const r=[];i.forEach(n=>{r.push(customElements.whenDefined(n))}),await Promise.all(r)}this.defined=!0}getScopeLocalNameSelector(){const t=this.relatedElements;return t?Array.isArray(t)?t.map(i=>`${i}:not(:defined)`).join(","):Object.keys(t).filter(i=>!t[i]).map(i=>`${i}:not(:defined)`).join(","):null}getGlobalLocalNameSelector(){const t=this.relatedElements;return!t||Array.isArray(t)?null:Object.keys(t).filter(i=>t[i]).map(i=>`${i}:not(:defined)`).join(",")}getUndefinedLocalNames(){const t=this.getScopeLocalNameSelector(),i=this.getGlobalLocalNameSelector(),r=t?[...this.host.querySelectorAll(t)]:[],n=i?[...oi().querySelectorAll(i)]:[],s=[...r,...n].map(o=>o.localName);return Bo(s)}onSlotChange(){const t=this.getScopeLocalNameSelector();t&&this.host.querySelectorAll(t).length&&(this.defined=!1)}}function re(e,t=!1){return(i,r)=>{const{update:n}=i;e in i&&(i.update=function(s){if(s.has(e)){const o=s.get(e),a=this[e];o!==a&&(!t||this.hasUpdated)&&this[r](o,a)}n.call(this,s)})}}const Lp=e=>{class t extends e{constructor(...r){super(...r),this.scrollBehaviorDefinedController=new zt(this,{needDomReady:!0}),this.lastScrollTopThreshold=0,this.lastScrollTopNoThreshold=0,this.isParentLayout=!1,this.onListeningScroll=this.onListeningScroll.bind(this)}get scrollPaddingPosition(){throw new Error("Must implement scrollPaddingPosition getter")}async onScrollTargetChange(r,n){if(await this.scrollBehaviorDefinedController.whenDefined(),(r&&!n||!r&&n)&&this.updateContainerPadding(),!this.scrollBehavior)return;const s=this.getListening(r);s&&s.removeEventListener("scroll",this.onListeningScroll);const o=this.getListening(n);o&&(this.updateScrollTop(o),o.addEventListener("scroll",this.onListeningScroll))}async onScrollBehaviorChange(r,n){await this.scrollBehaviorDefinedController.whenDefined(),(r&&!n||!r&&n)&&this.updateContainerPadding();const s=this.getListening(this.scrollTarget);s&&(this.scrollBehavior?(this.updateScrollTop(s),s.addEventListener("scroll",this.onListeningScroll)):s.removeEventListener("scroll",this.onListeningScroll))}connectedCallback(){super.connectedCallback(),this.scrollBehaviorDefinedController.whenDefined().then(()=>{this.isParentLayout=vl(this.parentElement,"mdui-layout"),this.updateContainerPadding()})}disconnectedCallback(){super.disconnectedCallback(),this.scrollBehaviorDefinedController.whenDefined().then(()=>{this.updateContainerPadding(!1)})}hasScrollBehavior(r){var s;const n=((s=this.scrollBehavior)==null?void 0:s.split(" "))??[];return Array.isArray(r)?!!n.filter(o=>r.includes(o)).length:n.includes(r)}runScrollThreshold(r,n){}runScrollNoThreshold(r,n){}updateContainerPadding(r=!0){const n=this.getContainer(this.scrollTarget);if(!n||this.isParentLayout)return;const s=this.scrollPaddingPosition==="top"?"paddingTop":"paddingBottom";if(r){const o=this.getListening(this.scrollTarget)&&["fixed","absolute"].includes(O(this).css("position"))?this.offsetHeight:null;O(n).css({[s]:o})}else O(n).css({[s]:null})}onListeningScroll(){const r=this.getListening(this.scrollTarget);window.requestAnimationFrame(()=>this.onScroll(r))}onScroll(r){const n=r.scrollY??r.scrollTop;this.lastScrollTopNoThreshold!==n&&(this.runScrollNoThreshold(n(this.scrollThreshold||0)&&(this.runScrollThreshold(n++pw;let sn,Zd;const Ds=(e,t)=>{const i=O(e),r=Pn(),n={unobserve:()=>{i.each((s,o)=>{const a=sn.get(o),l=a.coArr.findIndex(c=>c.key===r);l!==-1&&a.coArr.splice(l,1),a.coArr.length?sn.set(o,a):(Zd.unobserve(o),sn.delete(o))})}};return sn||(sn=new WeakMap,Zd=new ResizeObserver(s=>{s.forEach(o=>{const a=o.target,l=sn.get(a);l.entry=o,l.coArr.forEach(c=>{c.callback.call(n,o,n)})})})),i.each((s,o)=>{const a=sn.get(o)??{coArr:[]};a.coArr.length&&a.entry&&t.call(n,a.entry,n),a.coArr.push({callback:t,key:r}),sn.set(o,a),Zd.observe(o)}),n};class mw{constructor(){this.states=[]}registerMain(t){this.$main=O(t)}unregisterMain(){this.$main=void 0}registerItem(t){const i={element:t};this.states.push(i),i.observeResize=Ds(i.element,()=>{this.updateLayout(i.element,{width:this.isNoWidth(i)?0:void 0})}),this.items=void 0,this.resort(),this.updateLayout()}unregisterItem(t){var n;const i=this.states.findIndex(s=>s.element===t);if(i<0)return;(n=this.states[i].observeResize)==null||n.unobserve(),this.items=void 0,this.states.splice(i,1),this.states[i]&&this.updateLayout(this.states[i].element)}getItems(){if(!this.items){const t=this.states.map(i=>i.element);this.items=t.sort((i,r)=>{const n=i.compareDocumentPosition(r);return n&Node.DOCUMENT_POSITION_FOLLOWING?-1:n&Node.DOCUMENT_POSITION_PRECEDING?1:0})}return this.items}getMain(){return this.$main?this.$main[0]:void 0}getItemsAndMain(){return[...this.getItems(),this.getMain()].filter(t=>t)}updateOrder(){this.resort(),this.updateLayout()}updateLayout(t,i){const r=t?{element:t,width:i==null?void 0:i.width,height:i==null?void 0:i.height}:void 0,n=r?this.states.findIndex(o=>o.element===r.element):0;if(n<0)return;Object.assign(this.states[n],r),this.states.forEach((o,a)=>{if(a0?this.states[a-1]:void 0,d=(c==null?void 0:c.top)??0,u=(c==null?void 0:c.right)??0,h=(c==null?void 0:c.bottom)??0,f=(c==null?void 0:c.left)??0;switch(Object.assign(o,{top:d,right:u,bottom:h,left:f}),l){case"top":case"bottom":o[l]+=o.height??o.element.offsetHeight;break;case"right":case"left":o[l]+=(this.isNoWidth(o)?0:o.width)??o.element.offsetWidth;break}o.height=o.width=void 0,O(o.element).css({position:"absolute",top:l==="bottom"?null:d,right:l==="left"?null:u,bottom:l==="top"?null:h,left:l==="right"?null:f})});const s=this.states[this.states.length-1];this.$main&&this.$main.css({paddingTop:s.top,paddingRight:s.right,paddingBottom:s.bottom,paddingLeft:s.left})}resort(){const t=this.getItems();this.states.sort((i,r)=>{const n=i.element.order??0,s=r.element.order??0;return n>s?1:nt.indexOf(r.element)?1:t.indexOf(i.element)(Xd.has(e)||Xd.set(e,new mw),Xd.get(e));class Bn extends Te{constructor(){super(...arguments),this.isParentLayout=!1}get layoutPlacement(){throw new Error("Must implement placement getter!")}onOrderChange(){var t;(t=this.layoutManager)==null||t.updateOrder()}connectedCallback(){super.connectedCallback();const t=this.parentElement;this.isParentLayout=vl(t,"mdui-layout"),this.isParentLayout&&(this.layoutManager=Yy(t),this.layoutManager.registerItem(this))}disconnectedCallback(){super.disconnectedCallback(),this.layoutManager&&this.layoutManager.unregisterItem(this)}}v([R({type:Number,reflect:!0})],Bn.prototype,"order",void 0);v([re("order",!0)],Bn.prototype,"onOrderChange",null);const gw=pe`:host{--shape-corner:var(--mdui-shape-corner-none);--z-index:2000;position:fixed;right:0;bottom:0;left:0;display:flex;flex:0 0 auto;align-items:center;justify-content:flex-start;border-radius:var(--shape-corner) var(--shape-corner) 0 0;z-index:var(--z-index);transition:bottom var(--mdui-motion-duration-long2) var(--mdui-motion-easing-emphasized);padding:0 1rem;height:5rem;background-color:rgb(var(--mdui-color-surface-container));box-shadow:var(--mdui-elevation-level2)}:host([scroll-target]:not([scroll-target=''])){position:absolute}:host([hide]){transition-duration:var(--mdui-motion-duration-short4);bottom:-5.625rem}::slotted(:not(:first-child)){margin-left:.5rem}::slotted(mdui-fab){box-shadow:var(--mdui-elevation-level0)}:host([fab-detach]) ::slotted(mdui-fab){position:absolute;transition:bottom var(--mdui-motion-duration-long2) var(--mdui-motion-easing-standard);right:1rem;bottom:.75rem}:host([fab-detach][hide][scroll-behavior~=hide]) ::slotted(mdui-fab){transition-duration:var(--mdui-motion-duration-short4);bottom:1rem;box-shadow:var(--mdui-elevation-level2)}:host([fab-detach][hide][scroll-behavior~=hide][scroll-target]:not([scroll-target=''])) ::slotted(mdui-fab){bottom:6.625rem}:host([hide]) ::slotted(:not(mdui-fab)),:host([hide]:not([fab-detach])) ::slotted(mdui-fab){transform:translateY(8.75rem);transition:transform var(--mdui-motion-duration-0) var(--mdui-motion-easing-emphasized-accelerate) var(--mdui-motion-duration-short4)}::slotted(:first-child){transition:transform var(--mdui-motion-duration-short3) var(--mdui-motion-easing-emphasized-decelerate) var(--mdui-motion-duration-short1)}::slotted(:nth-child(2)){transition:transform var(--mdui-motion-duration-short3) var(--mdui-motion-easing-emphasized-decelerate) var(--mdui-motion-duration-short3)}::slotted(:nth-child(3)){transition:transform var(--mdui-motion-duration-short3) var(--mdui-motion-easing-emphasized-decelerate) var(--mdui-motion-duration-short4)}::slotted(:nth-child(4)){transition:transform var(--mdui-motion-duration-short3) var(--mdui-motion-easing-emphasized-decelerate) var(--mdui-motion-duration-medium1)}::slotted(:nth-child(5)){transition:transform var(--mdui-motion-duration-short3) var(--mdui-motion-easing-emphasized-decelerate) var(--mdui-motion-duration-medium2)}::slotted(:nth-child(6)){transition:transform var(--mdui-motion-duration-short3) var(--mdui-motion-easing-emphasized-decelerate) var(--mdui-motion-duration-medium3)}`;let ko=class extends Lp(Bn){constructor(){super(...arguments),this.hide=!1,this.fabDetach=!1}get scrollPaddingPosition(){return"bottom"}get layoutPlacement(){return"bottom"}firstUpdated(t){super.firstUpdated(t),this.addEventListener("transitionend",i=>{i.target===this&&this.emit(this.hide?"hidden":"shown")})}render(){return P``}runScrollThreshold(t){!t&&!this.hide&&this.emit("hide",{cancelable:!0})&&(this.hide=!0),t&&this.hide&&this.emit("show",{cancelable:!0})&&(this.hide=!1)}};ko.styles=[Ce,gw];v([R({type:Boolean,reflect:!0,converter:Y})],ko.prototype,"hide",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"fab-detach"})],ko.prototype,"fabDetach",void 0);v([R({reflect:!0,attribute:"scroll-behavior"})],ko.prototype,"scrollBehavior",void 0);ko=v([se("mdui-bottom-app-bar")],ko);/** + */const Dm=e=>!tw(e)&&typeof e.then=="function",Pm=1073741823;class cw extends Op{constructor(){super(...arguments),this._$Cwt=Pm,this._$Cbt=[],this._$CK=new aw(this),this._$CX=new lw}render(...t){return t.find(i=>!Dm(i))??ni}update(t,i){const r=this._$Cbt;let n=r.length;this._$Cbt=i;const s=this._$CK,o=this._$CX;this.isConnected||this.disconnected();for(let a=0;athis._$Cwt);a++){const l=i[a];if(!Dm(l))return this._$Cwt=a,l;a{for(;o.get();)await o.get();const d=s.deref();if(d!==void 0){const u=d._$Cbt.indexOf(l);u>-1&&u{if(this.name){const[i,r]=this.name.split("--");return P`${i}`}return this.src?P`${dw(My({url:this.src}).then(Wy))}`:P``};return this.hasSlotController.test("[default]")?P``:t()}};Wa.styles=[Ce,uw];v([R({reflect:!0})],Wa.prototype,"name",void 0);v([R({reflect:!0})],Wa.prototype,"src",void 0);Wa=v([se("mdui-icon")],Wa);const hw=pe`:host{--shape-corner:var(--mdui-shape-corner-full);position:relative;display:inline-flex;align-items:center;justify-content:center;overflow:hidden;white-space:nowrap;vertical-align:middle;border-radius:var(--shape-corner);-webkit-user-select:none;user-select:none;width:2.5rem;height:2.5rem;background-color:rgb(var(--mdui-color-primary-container));color:rgb(var(--mdui-color-on-primary-container));font-size:var(--mdui-typescale-title-medium-size);font-weight:var(--mdui-typescale-title-medium-weight);letter-spacing:var(--mdui-typescale-title-medium-tracking);line-height:var(--mdui-typescale-title-medium-line-height)}img{width:100%;height:100%}::slotted(mdui-icon),mdui-icon{font-size:1.5em}`;let ws=class extends Re{constructor(){super(...arguments),this.hasSlotController=new It(this,"[default]")}render(){return this.hasSlotController.test("[default]")?P``:this.src?P`${be(this.label)}`:this.icon?P``:Ve}};ws.styles=[Ce,hw];v([R({reflect:!0})],ws.prototype,"src",void 0);v([R({reflect:!0})],ws.prototype,"fit",void 0);v([R({reflect:!0})],ws.prototype,"icon",void 0);v([R({reflect:!0})],ws.prototype,"label",void 0);ws=v([se("mdui-avatar")],ws);const fw=pe`:host{--shape-corner:var(--mdui-shape-corner-full);display:inline-flex;align-items:center;justify-content:center;border-radius:var(--shape-corner);padding-left:.25rem;padding-right:.25rem;color:rgb(var(--mdui-color-on-error));background-color:rgb(var(--mdui-color-error));height:1rem;min-width:1rem;font-size:var(--mdui-typescale-label-small-size);font-weight:var(--mdui-typescale-label-small-weight);letter-spacing:var(--mdui-typescale-label-small-tracking);line-height:var(--mdui-typescale-label-small-line-height)}:host([variant=small]){min-width:0;padding:0;width:.375rem;height:.375rem}`;let Vc=class extends Re{constructor(){super(...arguments),this.variant="large"}render(){return this.variant==="small"?Ve:P``}};Vc.styles=[Ce,fw];v([R({reflect:!0})],Vc.prototype,"variant",void 0);Vc=v([se("mdui-badge")],Vc);const Y=e=>e!==null&&e!=="false";class zt{constructor(t,i){this.defined=!1,(this.host=t).addController(this),this.relatedElements=i.relatedElements,this.needDomReady=i.needDomReady||!!i.relatedElements,this.onSlotChange=this.onSlotChange.bind(this)}hostConnected(){this.host.shadowRoot.addEventListener("slotchange",this.onSlotChange)}hostDisconnected(){this.host.shadowRoot.removeEventListener("slotchange",this.onSlotChange)}isDefined(){return this.defined?!0:(this.defined=(!this.needDomReady||Fc())&&!this.getUndefinedLocalNames().length,this.defined)}async whenDefined(){if(this.defined)return Promise.resolve();const t=oi();this.needDomReady&&!Fc(t)&&await new Promise(r=>{t.addEventListener("DOMContentLoaded",()=>r(),{once:!0})});const i=this.getUndefinedLocalNames();if(i.length){const r=[];i.forEach(n=>{r.push(customElements.whenDefined(n))}),await Promise.all(r)}this.defined=!0}getScopeLocalNameSelector(){const t=this.relatedElements;return t?Array.isArray(t)?t.map(i=>`${i}:not(:defined)`).join(","):Object.keys(t).filter(i=>!t[i]).map(i=>`${i}:not(:defined)`).join(","):null}getGlobalLocalNameSelector(){const t=this.relatedElements;return!t||Array.isArray(t)?null:Object.keys(t).filter(i=>t[i]).map(i=>`${i}:not(:defined)`).join(",")}getUndefinedLocalNames(){const t=this.getScopeLocalNameSelector(),i=this.getGlobalLocalNameSelector(),r=t?[...this.host.querySelectorAll(t)]:[],n=i?[...oi().querySelectorAll(i)]:[],s=[...r,...n].map(o=>o.localName);return Bo(s)}onSlotChange(){const t=this.getScopeLocalNameSelector();t&&this.host.querySelectorAll(t).length&&(this.defined=!1)}}function re(e,t=!1){return(i,r)=>{const{update:n}=i;e in i&&(i.update=function(s){if(s.has(e)){const o=s.get(e),a=this[e];o!==a&&(!t||this.hasUpdated)&&this[r](o,a)}n.call(this,s)})}}const Lp=e=>{class t extends e{constructor(...r){super(...r),this.scrollBehaviorDefinedController=new zt(this,{needDomReady:!0}),this.lastScrollTopThreshold=0,this.lastScrollTopNoThreshold=0,this.isParentLayout=!1,this.onListeningScroll=this.onListeningScroll.bind(this)}get scrollPaddingPosition(){throw new Error("Must implement scrollPaddingPosition getter")}async onScrollTargetChange(r,n){if(await this.scrollBehaviorDefinedController.whenDefined(),(r&&!n||!r&&n)&&this.updateContainerPadding(),!this.scrollBehavior)return;const s=this.getListening(r);s&&s.removeEventListener("scroll",this.onListeningScroll);const o=this.getListening(n);o&&(this.updateScrollTop(o),o.addEventListener("scroll",this.onListeningScroll))}async onScrollBehaviorChange(r,n){await this.scrollBehaviorDefinedController.whenDefined(),(r&&!n||!r&&n)&&this.updateContainerPadding();const s=this.getListening(this.scrollTarget);s&&(this.scrollBehavior?(this.updateScrollTop(s),s.addEventListener("scroll",this.onListeningScroll)):s.removeEventListener("scroll",this.onListeningScroll))}connectedCallback(){super.connectedCallback(),this.scrollBehaviorDefinedController.whenDefined().then(()=>{this.isParentLayout=vl(this.parentElement,"mdui-layout"),this.updateContainerPadding()})}disconnectedCallback(){super.disconnectedCallback(),this.scrollBehaviorDefinedController.whenDefined().then(()=>{this.updateContainerPadding(!1)})}hasScrollBehavior(r){var s;const n=((s=this.scrollBehavior)==null?void 0:s.split(" "))??[];return Array.isArray(r)?!!n.filter(o=>r.includes(o)).length:n.includes(r)}runScrollThreshold(r,n){}runScrollNoThreshold(r,n){}updateContainerPadding(r=!0){const n=this.getContainer(this.scrollTarget);if(!n||this.isParentLayout)return;const s=this.scrollPaddingPosition==="top"?"paddingTop":"paddingBottom";if(r){const o=this.getListening(this.scrollTarget)&&["fixed","absolute"].includes(O(this).css("position"))?this.offsetHeight:null;O(n).css({[s]:o})}else O(n).css({[s]:null})}onListeningScroll(){const r=this.getListening(this.scrollTarget);window.requestAnimationFrame(()=>this.onScroll(r))}onScroll(r){const n=r.scrollY??r.scrollTop;this.lastScrollTopNoThreshold!==n&&(this.runScrollNoThreshold(n(this.scrollThreshold||0)&&(this.runScrollThreshold(n++pw;let sn,Zd;const Ds=(e,t)=>{const i=O(e),r=Pn(),n={unobserve:()=>{i.each((s,o)=>{const a=sn.get(o),l=a.coArr.findIndex(c=>c.key===r);l!==-1&&a.coArr.splice(l,1),a.coArr.length?sn.set(o,a):(Zd.unobserve(o),sn.delete(o))})}};return sn||(sn=new WeakMap,Zd=new ResizeObserver(s=>{s.forEach(o=>{const a=o.target,l=sn.get(a);l.entry=o,l.coArr.forEach(c=>{c.callback.call(n,o,n)})})})),i.each((s,o)=>{const a=sn.get(o)??{coArr:[]};a.coArr.length&&a.entry&&t.call(n,a.entry,n),a.coArr.push({callback:t,key:r}),sn.set(o,a),Zd.observe(o)}),n};class mw{constructor(){this.states=[]}registerMain(t){this.$main=O(t)}unregisterMain(){this.$main=void 0}registerItem(t){const i={element:t};this.states.push(i),i.observeResize=Ds(i.element,()=>{this.updateLayout(i.element,{width:this.isNoWidth(i)?0:void 0})}),this.items=void 0,this.resort(),this.updateLayout()}unregisterItem(t){var n;const i=this.states.findIndex(s=>s.element===t);if(i<0)return;(n=this.states[i].observeResize)==null||n.unobserve(),this.items=void 0,this.states.splice(i,1),this.states[i]&&this.updateLayout(this.states[i].element)}getItems(){if(!this.items){const t=this.states.map(i=>i.element);this.items=t.sort((i,r)=>{const n=i.compareDocumentPosition(r);return n&Node.DOCUMENT_POSITION_FOLLOWING?-1:n&Node.DOCUMENT_POSITION_PRECEDING?1:0})}return this.items}getMain(){return this.$main?this.$main[0]:void 0}getItemsAndMain(){return[...this.getItems(),this.getMain()].filter(t=>t)}updateOrder(){this.resort(),this.updateLayout()}updateLayout(t,i){const r=t?{element:t,width:i==null?void 0:i.width,height:i==null?void 0:i.height}:void 0,n=r?this.states.findIndex(o=>o.element===r.element):0;if(n<0)return;Object.assign(this.states[n],r),this.states.forEach((o,a)=>{if(a0?this.states[a-1]:void 0,d=(c==null?void 0:c.top)??0,u=(c==null?void 0:c.right)??0,h=(c==null?void 0:c.bottom)??0,f=(c==null?void 0:c.left)??0;switch(Object.assign(o,{top:d,right:u,bottom:h,left:f}),l){case"top":case"bottom":o[l]+=o.height??o.element.offsetHeight;break;case"right":case"left":o[l]+=(this.isNoWidth(o)?0:o.width)??o.element.offsetWidth;break}o.height=o.width=void 0,O(o.element).css({position:"absolute",top:l==="bottom"?null:d,right:l==="left"?null:u,bottom:l==="top"?null:h,left:l==="right"?null:f})});const s=this.states[this.states.length-1];this.$main&&this.$main.css({paddingTop:s.top,paddingRight:s.right,paddingBottom:s.bottom,paddingLeft:s.left})}resort(){const t=this.getItems();this.states.sort((i,r)=>{const n=i.element.order??0,s=r.element.order??0;return n>s?1:nt.indexOf(r.element)?1:t.indexOf(i.element)(Xd.has(e)||Xd.set(e,new mw),Xd.get(e));class Bn extends Re{constructor(){super(...arguments),this.isParentLayout=!1}get layoutPlacement(){throw new Error("Must implement placement getter!")}onOrderChange(){var t;(t=this.layoutManager)==null||t.updateOrder()}connectedCallback(){super.connectedCallback();const t=this.parentElement;this.isParentLayout=vl(t,"mdui-layout"),this.isParentLayout&&(this.layoutManager=Yy(t),this.layoutManager.registerItem(this))}disconnectedCallback(){super.disconnectedCallback(),this.layoutManager&&this.layoutManager.unregisterItem(this)}}v([R({type:Number,reflect:!0})],Bn.prototype,"order",void 0);v([re("order",!0)],Bn.prototype,"onOrderChange",null);const gw=pe`:host{--shape-corner:var(--mdui-shape-corner-none);--z-index:2000;position:fixed;right:0;bottom:0;left:0;display:flex;flex:0 0 auto;align-items:center;justify-content:flex-start;border-radius:var(--shape-corner) var(--shape-corner) 0 0;z-index:var(--z-index);transition:bottom var(--mdui-motion-duration-long2) var(--mdui-motion-easing-emphasized);padding:0 1rem;height:5rem;background-color:rgb(var(--mdui-color-surface-container));box-shadow:var(--mdui-elevation-level2)}:host([scroll-target]:not([scroll-target=''])){position:absolute}:host([hide]){transition-duration:var(--mdui-motion-duration-short4);bottom:-5.625rem}::slotted(:not(:first-child)){margin-left:.5rem}::slotted(mdui-fab){box-shadow:var(--mdui-elevation-level0)}:host([fab-detach]) ::slotted(mdui-fab){position:absolute;transition:bottom var(--mdui-motion-duration-long2) var(--mdui-motion-easing-standard);right:1rem;bottom:.75rem}:host([fab-detach][hide][scroll-behavior~=hide]) ::slotted(mdui-fab){transition-duration:var(--mdui-motion-duration-short4);bottom:1rem;box-shadow:var(--mdui-elevation-level2)}:host([fab-detach][hide][scroll-behavior~=hide][scroll-target]:not([scroll-target=''])) ::slotted(mdui-fab){bottom:6.625rem}:host([hide]) ::slotted(:not(mdui-fab)),:host([hide]:not([fab-detach])) ::slotted(mdui-fab){transform:translateY(8.75rem);transition:transform var(--mdui-motion-duration-0) var(--mdui-motion-easing-emphasized-accelerate) var(--mdui-motion-duration-short4)}::slotted(:first-child){transition:transform var(--mdui-motion-duration-short3) var(--mdui-motion-easing-emphasized-decelerate) var(--mdui-motion-duration-short1)}::slotted(:nth-child(2)){transition:transform var(--mdui-motion-duration-short3) var(--mdui-motion-easing-emphasized-decelerate) var(--mdui-motion-duration-short3)}::slotted(:nth-child(3)){transition:transform var(--mdui-motion-duration-short3) var(--mdui-motion-easing-emphasized-decelerate) var(--mdui-motion-duration-short4)}::slotted(:nth-child(4)){transition:transform var(--mdui-motion-duration-short3) var(--mdui-motion-easing-emphasized-decelerate) var(--mdui-motion-duration-medium1)}::slotted(:nth-child(5)){transition:transform var(--mdui-motion-duration-short3) var(--mdui-motion-easing-emphasized-decelerate) var(--mdui-motion-duration-medium2)}::slotted(:nth-child(6)){transition:transform var(--mdui-motion-duration-short3) var(--mdui-motion-easing-emphasized-decelerate) var(--mdui-motion-duration-medium3)}`;let ko=class extends Lp(Bn){constructor(){super(...arguments),this.hide=!1,this.fabDetach=!1}get scrollPaddingPosition(){return"bottom"}get layoutPlacement(){return"bottom"}firstUpdated(t){super.firstUpdated(t),this.addEventListener("transitionend",i=>{i.target===this&&this.emit(this.hide?"hidden":"shown")})}render(){return P``}runScrollThreshold(t){!t&&!this.hide&&this.emit("hide",{cancelable:!0})&&(this.hide=!0),t&&this.hide&&this.emit("show",{cancelable:!0})&&(this.hide=!1)}};ko.styles=[Ce,gw];v([R({type:Boolean,reflect:!0,converter:Y})],ko.prototype,"hide",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"fab-detach"})],ko.prototype,"fabDetach",void 0);v([R({reflect:!0,attribute:"scroll-behavior"})],ko.prototype,"scrollBehavior",void 0);ko=v([se("mdui-bottom-app-bar")],ko);/** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: BSD-3-Clause @@ -144,11 +144,11 @@ * @license * Copyright 2018 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const ht=Is(class extends wl{constructor(e){var t;if(super(e),e.type!==nr.ATTRIBUTE||e.name!=="class"||((t=e.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){var r,n;if(this.st===void 0){this.st=new Set,e.strings!==void 0&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(const s in t)t[s]&&!((r=this.nt)!=null&&r.has(s))&&this.st.add(s);return this.render(t)}const i=e.element.classList;for(const s of this.st)s in t||(i.remove(s),this.st.delete(s));for(const s in t){const o=!!t[s];o===this.st.has(s)||(n=this.nt)!=null&&n.has(s)||(o?(i.add(s),this.st.add(s)):(i.remove(s),this.st.delete(s)))}return ni}}),yw=pe`:host{position:relative;display:inline-block;width:2.5rem;height:2.5rem;stroke:rgb(var(--mdui-color-primary))}.progress{position:relative;display:inline-block;width:100%;height:100%;text-align:left;transition:opacity var(--mdui-motion-duration-medium1) var(--mdui-motion-easing-linear)}.determinate svg{transform:rotate(-90deg);fill:transparent}.determinate .track{stroke:transparent}.determinate .circle{stroke:inherit;transition:stroke-dashoffset var(--mdui-motion-duration-long2) var(--mdui-motion-easing-standard)}.indeterminate{font-size:0;letter-spacing:0;white-space:nowrap;animation:mdui-comp-circular-progress-rotate 1568ms var(--mdui-motion-easing-linear) infinite}.indeterminate .circle,.indeterminate .layer{position:absolute;width:100%;height:100%}.indeterminate .layer{animation:mdui-comp-circular-progress-layer-rotate 5332ms var(--mdui-motion-easing-standard) infinite both}.indeterminate .circle{fill:transparent;stroke:inherit}.indeterminate .gap-patch{position:absolute;top:0;left:47.5%;width:5%;height:100%;overflow:hidden}.indeterminate .gap-patch .circle{left:-900%;width:2000%;transform:rotate(180deg)}.indeterminate .clipper{position:relative;display:inline-block;width:50%;height:100%;overflow:hidden}.indeterminate .clipper .circle{width:200%}.indeterminate .clipper.left .circle{animation:mdui-comp-circular-progress-left-spin 1333ms var(--mdui-motion-easing-standard) infinite both}.indeterminate .clipper.right .circle{left:-100%;animation:mdui-comp-circular-progress-right-spin 1333ms var(--mdui-motion-easing-standard) infinite both}@keyframes mdui-comp-circular-progress-rotate{to{transform:rotate(360deg)}}@keyframes mdui-comp-circular-progress-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdui-comp-circular-progress-left-spin{0%{transform:rotate(265deg)}50%{transform:rotate(130deg)}100%{transform:rotate(265deg)}}@keyframes mdui-comp-circular-progress-right-spin{0%{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}100%{transform:rotate(-265deg)}}`;let qa=class extends Te{constructor(){super(...arguments),this.max=1}render(){const t=!et(this.value);return P`
${t?this.renderDeterminate():this.renderInDeterminate()}
`}renderDeterminate(){const t=this.value,i=4,r=18,n=3.1415926,s=r+i/2,o=2*n*r,a=(1-t/Math.max(this.max??t,t))*o;return P``}renderInDeterminate(){const r=3.1415926,n=18+4/2,s=2*r*18,o=.5*s,a=l=>P``;return P`
${a(4)}
${a(4*.8)}
${a(4)}
`}};qa.styles=[Ce,yw];v([R({type:Number,reflect:!0})],qa.prototype,"max",void 0);v([R({type:Number})],qa.prototype,"value",void 0);qa=v([se("mdui-circular-progress")],qa);const bw=pe`:host{position:absolute;top:0;left:0;display:block;width:100%;height:100%;overflow:hidden;pointer-events:none}.surface{position:absolute;top:0;left:0;width:100%;height:100%;transition-duration:280ms;transition-property:background-color;pointer-events:none;transition-timing-function:var(--mdui-motion-easing-standard)}.hover{background-color:rgba(var(--mdui-comp-ripple-state-layer-color,var(--mdui-color-on-surface)),var(--mdui-state-layer-hover))}:host-context([focus-visible]) .focused{background-color:rgba(var(--mdui-comp-ripple-state-layer-color,var(--mdui-color-on-surface)),var(--mdui-state-layer-focus))}.dragged{background-color:rgba(var(--mdui-comp-ripple-state-layer-color,var(--mdui-color-on-surface)),var(--mdui-state-layer-dragged))}.wave{position:absolute;z-index:1;background-color:rgb(var(--mdui-comp-ripple-state-layer-color,var(--mdui-color-on-surface)));border-radius:50%;transform:translate3d(0,0,0) scale(.4);opacity:0;animation:225ms ease 0s 1 normal forwards running mdui-comp-ripple-radius-in,75ms ease 0s 1 normal forwards running mdui-comp-ripple-opacity-in;pointer-events:none}.out{transform:translate3d(var(--mdui-comp-ripple-transition-x,0),var(--mdui-comp-ripple-transition-y,0),0) scale(1);animation:150ms ease 0s 1 normal none running mdui-comp-ripple-opacity-out}@keyframes mdui-comp-ripple-radius-in{from{transform:translate3d(0,0,0) scale(.4);animation-timing-function:var(--mdui-motion-easing-standard)}to{transform:translate3d(var(--mdui-comp-ripple-transition-x,0),var(--mdui-comp-ripple-transition-y,0),0) scale(1)}}@keyframes mdui-comp-ripple-opacity-in{from{opacity:0;animation-timing-function:linear}to{opacity:var(--mdui-state-layer-pressed)}}@keyframes mdui-comp-ripple-opacity-out{from{animation-timing-function:linear;opacity:var(--mdui-state-layer-pressed)}to{opacity:0}}`;let _s=class extends Te{constructor(){super(...arguments),this.noRipple=!1,this.hover=!1,this.focused=!1,this.dragged=!1,this.surfaceRef=ge()}startPress(t){if(this.noRipple)return;const i=O(this.surfaceRef.value),r=i.innerHeight(),n=i.innerWidth();let s,o;if(!t)s=n/2,o=r/2;else{const u=typeof TouchEvent<"u"&&t instanceof TouchEvent&&t.touches.length?t.touches[0]:t,h=i.offset();if(u.pageXh.left+n||u.pageYh.top+r)return;s=u.pageX-h.left,o=u.pageY-h.top}const a=Math.max(Math.pow(Math.pow(r,2)+Math.pow(n,2),.5),48),l=`${-s+n/2}px`,c=`${-o+r/2}px`,d=`translate3d(${l}, ${c}, 0) scale(1)`;O('
').css({width:a,height:a,marginTop:-a/2,marginLeft:-a/2,left:s,top:o}).each((u,h)=>{h.style.setProperty("--mdui-comp-ripple-transition-x",l),h.style.setProperty("--mdui-comp-ripple-transition-y",c)}).prependTo(this.surfaceRef.value).each((u,h)=>h.clientLeft).css("transform",d).on("animationend",function(u){u.animationName==="mdui-comp-ripple-radius-in"&&O(this).data("filled",!0)})}endPress(){const t=O(this.surfaceRef.value).children().filter((r,n)=>!O(n).data("removing")).data("removing",!0),i=r=>{r.addClass("out").each((n,s)=>s.clientLeft).on("animationend",function(){O(this).remove()})};t.filter((r,n)=>!O(n).data("filled")).on("animationend",function(r){r.animationName==="mdui-comp-ripple-radius-in"&&i(O(this))}),i(t.filter((r,n)=>!!O(n).data("filled")))}startHover(){this.hover=!0}endHover(){this.hover=!1}startFocus(){this.focused=!0}endFocus(){this.focused=!1}startDrag(){this.dragged=!0}endDrag(){this.dragged=!1}render(){return P`
`}};_s.styles=[Ce,bw];v([R({type:Boolean,reflect:!0,converter:Y,attribute:"no-ripple"})],_s.prototype,"noRipple",void 0);v([_e()],_s.prototype,"hover",void 0);v([_e()],_s.prototype,"focused",void 0);v([_e()],_s.prototype,"dragged",void 0);_s=v([se("mdui-ripple")],_s);const dr=e=>{class t extends e{constructor(){super(...arguments),this.noRipple=!1,this.rippleIndex=void 0,this.getRippleIndex=()=>this.rippleIndex}get rippleElement(){throw new Error("Must implement rippleElement getter!")}get rippleDisabled(){throw new Error("Must implement rippleDisabled getter!")}get rippleTarget(){return this}firstUpdated(r){super.firstUpdated(r);const n=O(this.rippleTarget),s=a=>{Ys(this.rippleTarget)&&(this.rippleIndex=n.index(a.target))};(Ys(this.rippleTarget)?this.rippleTarget:[this.rippleTarget]).forEach(a=>{a.addEventListener("pointerdown",l=>{s(l),this.startPress(l)}),a.addEventListener("pointerenter",l=>{s(l),this.startHover(l)}),a.addEventListener("pointerleave",l=>{s(l),this.endHover(l)}),a.addEventListener("focus",l=>{s(l),this.startFocus()}),a.addEventListener("blur",l=>{s(l),this.endFocus()})})}startHover(r){r.pointerType!=="mouse"||this.isRippleDisabled()||(this.getRippleTarget().setAttribute("hover",""),this.getRippleElement().startHover())}endHover(r){r.pointerType!=="mouse"||this.isRippleDisabled()||(this.getRippleTarget().removeAttribute("hover"),this.getRippleElement().endHover())}isRippleDisabled(){const r=this.rippleDisabled;if(!Array.isArray(r))return r;const n=this.getRippleIndex();return n!==void 0?r[n]:r.length?r[0]:!1}getRippleElement(){const r=this.rippleElement;if(!Ys(r))return r;const n=this.getRippleIndex();return n!==void 0?r[n]:r[0]}getRippleTarget(){const r=this.rippleTarget;if(!Ys(r))return r;const n=this.getRippleIndex();return n!==void 0?r[n]:r[0]}startFocus(){this.isRippleDisabled()||this.getRippleElement().startFocus()}endFocus(){this.isRippleDisabled()||this.getRippleElement().endFocus()}startPress(r){if(this.isRippleDisabled()||r.button)return;const n=this.getRippleTarget();if(n.setAttribute("pressed",""),["touch","pen"].includes(r.pointerType)){let s=!1,o=setTimeout(()=>{o=0,this.getRippleElement().startPress(r)},70);const a=()=>{o&&(clearTimeout(o),o=0,this.getRippleElement().startPress(r)),s||(s=!0,this.endPress()),n.removeEventListener("pointerup",a),n.removeEventListener("pointercancel",a)},l=()=>{o&&(clearTimeout(o),o=0),n.removeEventListener("touchmove",l)};n.addEventListener("touchmove",l),n.addEventListener("pointerup",a),n.addEventListener("pointercancel",a)}if(r.pointerType==="mouse"&&r.button===0){const s=()=>{this.endPress(),n.removeEventListener("pointerup",s),n.removeEventListener("pointercancel",s),n.removeEventListener("pointerleave",s)};this.getRippleElement().startPress(r),n.addEventListener("pointerup",s),n.addEventListener("pointercancel",s),n.addEventListener("pointerleave",s)}}endPress(){this.isRippleDisabled()||(this.getRippleTarget().removeAttribute("pressed"),this.getRippleElement().endPress())}startDrag(){this.isRippleDisabled()||this.getRippleElement().startDrag()}endDrag(){this.isRippleDisabled()||this.getRippleElement().endDrag()}}return v([R({type:Boolean,reflect:!0,converter:Y,attribute:"no-ripple"})],t.prototype,"noRipple",void 0),t},ww=pe`.button{position:relative;display:inline-flex;align-items:center;justify-content:center;height:100%;padding:0;overflow:hidden;color:inherit;font-size:inherit;font-family:inherit;font-weight:inherit;letter-spacing:inherit;white-space:nowrap;text-align:center;text-decoration:none;vertical-align:middle;background:0 0;border:none;outline:0;cursor:inherit;-webkit-user-select:none;user-select:none;touch-action:manipulation;zoom:1;-webkit-user-drag:none}`;class st extends Oo(dr(Ui(Te))){constructor(){super(...arguments),this.disabled=!1,this.loading=!1,this.name="",this.value="",this.type="button",this.formNoValidate=!1,this.formController=new Qr(this)}get validity(){if(this.isButton())return this.focusElement.validity}get validationMessage(){if(this.isButton())return this.focusElement.validationMessage}get rippleDisabled(){return this.disabled||this.loading}get focusElement(){var t,i;return this.isButton()?(t=this.renderRoot)==null?void 0:t.querySelector("._button"):this.focusDisabled?this:(i=this.renderRoot)==null?void 0:i.querySelector("._a")}get focusDisabled(){return this.disabled||this.loading}checkValidity(){if(this.isButton()){const t=this.focusElement.checkValidity();return t||this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),t}return!0}reportValidity(){if(this.isButton()){const t=!this.focusElement.reportValidity();return t&&this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),!t}return!0}setCustomValidity(t){this.isButton()&&this.focusElement.setCustomValidity(t)}firstUpdated(t){super.firstUpdated(t),this.addEventListener("click",()=>{this.type==="submit"&&this.formController.submit(this),this.type==="reset"&&this.formController.reset(this)})}renderLoading(){return this.loading?P``:Ve}renderButton({id:t,className:i,part:r,content:n=P``}){return P``}isButton(){return!this.href}}st.styles=[Ce,ww];v([R({type:Boolean,reflect:!0,converter:Y})],st.prototype,"disabled",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],st.prototype,"loading",void 0);v([R({reflect:!0})],st.prototype,"name",void 0);v([R({reflect:!0})],st.prototype,"value",void 0);v([R({reflect:!0})],st.prototype,"type",void 0);v([R({reflect:!0})],st.prototype,"form",void 0);v([R({reflect:!0,attribute:"formaction"})],st.prototype,"formAction",void 0);v([R({reflect:!0,attribute:"formenctype"})],st.prototype,"formEnctype",void 0);v([R({reflect:!0,attribute:"formmethod"})],st.prototype,"formMethod",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"formnovalidate"})],st.prototype,"formNoValidate",void 0);v([R({reflect:!0,attribute:"formtarget"})],st.prototype,"formTarget",void 0);const _w=pe`:host{--shape-corner:var(--mdui-shape-corner-full);position:relative;display:inline-block;overflow:hidden;text-align:center;border-radius:var(--shape-corner);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:box-shadow var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear);min-width:3rem;height:2.5rem;color:rgb(var(--mdui-color-primary));font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking);line-height:var(--mdui-typescale-label-large-line-height)}.button{width:100%;padding:0 1rem}:host([full-width]){display:block}:host([variant=elevated]){box-shadow:var(--mdui-elevation-level1);background-color:rgb(var(--mdui-color-surface-container-low));--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([variant=filled]){color:rgb(var(--mdui-color-on-primary));background-color:rgb(var(--mdui-color-primary));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-primary)}:host([variant=tonal]){color:rgb(var(--mdui-color-on-secondary-container));background-color:rgb(var(--mdui-color-secondary-container));--mdui-comp-ripple-state-layer-color:var( + */const ht=Is(class extends wl{constructor(e){var t;if(super(e),e.type!==nr.ATTRIBUTE||e.name!=="class"||((t=e.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){var r,n;if(this.st===void 0){this.st=new Set,e.strings!==void 0&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(const s in t)t[s]&&!((r=this.nt)!=null&&r.has(s))&&this.st.add(s);return this.render(t)}const i=e.element.classList;for(const s of this.st)s in t||(i.remove(s),this.st.delete(s));for(const s in t){const o=!!t[s];o===this.st.has(s)||(n=this.nt)!=null&&n.has(s)||(o?(i.add(s),this.st.add(s)):(i.remove(s),this.st.delete(s)))}return ni}}),yw=pe`:host{position:relative;display:inline-block;width:2.5rem;height:2.5rem;stroke:rgb(var(--mdui-color-primary))}.progress{position:relative;display:inline-block;width:100%;height:100%;text-align:left;transition:opacity var(--mdui-motion-duration-medium1) var(--mdui-motion-easing-linear)}.determinate svg{transform:rotate(-90deg);fill:transparent}.determinate .track{stroke:transparent}.determinate .circle{stroke:inherit;transition:stroke-dashoffset var(--mdui-motion-duration-long2) var(--mdui-motion-easing-standard)}.indeterminate{font-size:0;letter-spacing:0;white-space:nowrap;animation:mdui-comp-circular-progress-rotate 1568ms var(--mdui-motion-easing-linear) infinite}.indeterminate .circle,.indeterminate .layer{position:absolute;width:100%;height:100%}.indeterminate .layer{animation:mdui-comp-circular-progress-layer-rotate 5332ms var(--mdui-motion-easing-standard) infinite both}.indeterminate .circle{fill:transparent;stroke:inherit}.indeterminate .gap-patch{position:absolute;top:0;left:47.5%;width:5%;height:100%;overflow:hidden}.indeterminate .gap-patch .circle{left:-900%;width:2000%;transform:rotate(180deg)}.indeterminate .clipper{position:relative;display:inline-block;width:50%;height:100%;overflow:hidden}.indeterminate .clipper .circle{width:200%}.indeterminate .clipper.left .circle{animation:mdui-comp-circular-progress-left-spin 1333ms var(--mdui-motion-easing-standard) infinite both}.indeterminate .clipper.right .circle{left:-100%;animation:mdui-comp-circular-progress-right-spin 1333ms var(--mdui-motion-easing-standard) infinite both}@keyframes mdui-comp-circular-progress-rotate{to{transform:rotate(360deg)}}@keyframes mdui-comp-circular-progress-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdui-comp-circular-progress-left-spin{0%{transform:rotate(265deg)}50%{transform:rotate(130deg)}100%{transform:rotate(265deg)}}@keyframes mdui-comp-circular-progress-right-spin{0%{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}100%{transform:rotate(-265deg)}}`;let qa=class extends Re{constructor(){super(...arguments),this.max=1}render(){const t=!et(this.value);return P`
${t?this.renderDeterminate():this.renderInDeterminate()}
`}renderDeterminate(){const t=this.value,i=4,r=18,n=3.1415926,s=r+i/2,o=2*n*r,a=(1-t/Math.max(this.max??t,t))*o;return P``}renderInDeterminate(){const r=3.1415926,n=18+4/2,s=2*r*18,o=.5*s,a=l=>P``;return P`
${a(4)}
${a(4*.8)}
${a(4)}
`}};qa.styles=[Ce,yw];v([R({type:Number,reflect:!0})],qa.prototype,"max",void 0);v([R({type:Number})],qa.prototype,"value",void 0);qa=v([se("mdui-circular-progress")],qa);const bw=pe`:host{position:absolute;top:0;left:0;display:block;width:100%;height:100%;overflow:hidden;pointer-events:none}.surface{position:absolute;top:0;left:0;width:100%;height:100%;transition-duration:280ms;transition-property:background-color;pointer-events:none;transition-timing-function:var(--mdui-motion-easing-standard)}.hover{background-color:rgba(var(--mdui-comp-ripple-state-layer-color,var(--mdui-color-on-surface)),var(--mdui-state-layer-hover))}:host-context([focus-visible]) .focused{background-color:rgba(var(--mdui-comp-ripple-state-layer-color,var(--mdui-color-on-surface)),var(--mdui-state-layer-focus))}.dragged{background-color:rgba(var(--mdui-comp-ripple-state-layer-color,var(--mdui-color-on-surface)),var(--mdui-state-layer-dragged))}.wave{position:absolute;z-index:1;background-color:rgb(var(--mdui-comp-ripple-state-layer-color,var(--mdui-color-on-surface)));border-radius:50%;transform:translate3d(0,0,0) scale(.4);opacity:0;animation:225ms ease 0s 1 normal forwards running mdui-comp-ripple-radius-in,75ms ease 0s 1 normal forwards running mdui-comp-ripple-opacity-in;pointer-events:none}.out{transform:translate3d(var(--mdui-comp-ripple-transition-x,0),var(--mdui-comp-ripple-transition-y,0),0) scale(1);animation:150ms ease 0s 1 normal none running mdui-comp-ripple-opacity-out}@keyframes mdui-comp-ripple-radius-in{from{transform:translate3d(0,0,0) scale(.4);animation-timing-function:var(--mdui-motion-easing-standard)}to{transform:translate3d(var(--mdui-comp-ripple-transition-x,0),var(--mdui-comp-ripple-transition-y,0),0) scale(1)}}@keyframes mdui-comp-ripple-opacity-in{from{opacity:0;animation-timing-function:linear}to{opacity:var(--mdui-state-layer-pressed)}}@keyframes mdui-comp-ripple-opacity-out{from{animation-timing-function:linear;opacity:var(--mdui-state-layer-pressed)}to{opacity:0}}`;let _s=class extends Re{constructor(){super(...arguments),this.noRipple=!1,this.hover=!1,this.focused=!1,this.dragged=!1,this.surfaceRef=ge()}startPress(t){if(this.noRipple)return;const i=O(this.surfaceRef.value),r=i.innerHeight(),n=i.innerWidth();let s,o;if(!t)s=n/2,o=r/2;else{const u=typeof TouchEvent<"u"&&t instanceof TouchEvent&&t.touches.length?t.touches[0]:t,h=i.offset();if(u.pageXh.left+n||u.pageYh.top+r)return;s=u.pageX-h.left,o=u.pageY-h.top}const a=Math.max(Math.pow(Math.pow(r,2)+Math.pow(n,2),.5),48),l=`${-s+n/2}px`,c=`${-o+r/2}px`,d=`translate3d(${l}, ${c}, 0) scale(1)`;O('
').css({width:a,height:a,marginTop:-a/2,marginLeft:-a/2,left:s,top:o}).each((u,h)=>{h.style.setProperty("--mdui-comp-ripple-transition-x",l),h.style.setProperty("--mdui-comp-ripple-transition-y",c)}).prependTo(this.surfaceRef.value).each((u,h)=>h.clientLeft).css("transform",d).on("animationend",function(u){u.animationName==="mdui-comp-ripple-radius-in"&&O(this).data("filled",!0)})}endPress(){const t=O(this.surfaceRef.value).children().filter((r,n)=>!O(n).data("removing")).data("removing",!0),i=r=>{r.addClass("out").each((n,s)=>s.clientLeft).on("animationend",function(){O(this).remove()})};t.filter((r,n)=>!O(n).data("filled")).on("animationend",function(r){r.animationName==="mdui-comp-ripple-radius-in"&&i(O(this))}),i(t.filter((r,n)=>!!O(n).data("filled")))}startHover(){this.hover=!0}endHover(){this.hover=!1}startFocus(){this.focused=!0}endFocus(){this.focused=!1}startDrag(){this.dragged=!0}endDrag(){this.dragged=!1}render(){return P`
`}};_s.styles=[Ce,bw];v([R({type:Boolean,reflect:!0,converter:Y,attribute:"no-ripple"})],_s.prototype,"noRipple",void 0);v([_e()],_s.prototype,"hover",void 0);v([_e()],_s.prototype,"focused",void 0);v([_e()],_s.prototype,"dragged",void 0);_s=v([se("mdui-ripple")],_s);const dr=e=>{class t extends e{constructor(){super(...arguments),this.noRipple=!1,this.rippleIndex=void 0,this.getRippleIndex=()=>this.rippleIndex}get rippleElement(){throw new Error("Must implement rippleElement getter!")}get rippleDisabled(){throw new Error("Must implement rippleDisabled getter!")}get rippleTarget(){return this}firstUpdated(r){super.firstUpdated(r);const n=O(this.rippleTarget),s=a=>{Ys(this.rippleTarget)&&(this.rippleIndex=n.index(a.target))};(Ys(this.rippleTarget)?this.rippleTarget:[this.rippleTarget]).forEach(a=>{a.addEventListener("pointerdown",l=>{s(l),this.startPress(l)}),a.addEventListener("pointerenter",l=>{s(l),this.startHover(l)}),a.addEventListener("pointerleave",l=>{s(l),this.endHover(l)}),a.addEventListener("focus",l=>{s(l),this.startFocus()}),a.addEventListener("blur",l=>{s(l),this.endFocus()})})}startHover(r){r.pointerType!=="mouse"||this.isRippleDisabled()||(this.getRippleTarget().setAttribute("hover",""),this.getRippleElement().startHover())}endHover(r){r.pointerType!=="mouse"||this.isRippleDisabled()||(this.getRippleTarget().removeAttribute("hover"),this.getRippleElement().endHover())}isRippleDisabled(){const r=this.rippleDisabled;if(!Array.isArray(r))return r;const n=this.getRippleIndex();return n!==void 0?r[n]:r.length?r[0]:!1}getRippleElement(){const r=this.rippleElement;if(!Ys(r))return r;const n=this.getRippleIndex();return n!==void 0?r[n]:r[0]}getRippleTarget(){const r=this.rippleTarget;if(!Ys(r))return r;const n=this.getRippleIndex();return n!==void 0?r[n]:r[0]}startFocus(){this.isRippleDisabled()||this.getRippleElement().startFocus()}endFocus(){this.isRippleDisabled()||this.getRippleElement().endFocus()}startPress(r){if(this.isRippleDisabled()||r.button)return;const n=this.getRippleTarget();if(n.setAttribute("pressed",""),["touch","pen"].includes(r.pointerType)){let s=!1,o=setTimeout(()=>{o=0,this.getRippleElement().startPress(r)},70);const a=()=>{o&&(clearTimeout(o),o=0,this.getRippleElement().startPress(r)),s||(s=!0,this.endPress()),n.removeEventListener("pointerup",a),n.removeEventListener("pointercancel",a)},l=()=>{o&&(clearTimeout(o),o=0),n.removeEventListener("touchmove",l)};n.addEventListener("touchmove",l),n.addEventListener("pointerup",a),n.addEventListener("pointercancel",a)}if(r.pointerType==="mouse"&&r.button===0){const s=()=>{this.endPress(),n.removeEventListener("pointerup",s),n.removeEventListener("pointercancel",s),n.removeEventListener("pointerleave",s)};this.getRippleElement().startPress(r),n.addEventListener("pointerup",s),n.addEventListener("pointercancel",s),n.addEventListener("pointerleave",s)}}endPress(){this.isRippleDisabled()||(this.getRippleTarget().removeAttribute("pressed"),this.getRippleElement().endPress())}startDrag(){this.isRippleDisabled()||this.getRippleElement().startDrag()}endDrag(){this.isRippleDisabled()||this.getRippleElement().endDrag()}}return v([R({type:Boolean,reflect:!0,converter:Y,attribute:"no-ripple"})],t.prototype,"noRipple",void 0),t},ww=pe`.button{position:relative;display:inline-flex;align-items:center;justify-content:center;height:100%;padding:0;overflow:hidden;color:inherit;font-size:inherit;font-family:inherit;font-weight:inherit;letter-spacing:inherit;white-space:nowrap;text-align:center;text-decoration:none;vertical-align:middle;background:0 0;border:none;outline:0;cursor:inherit;-webkit-user-select:none;user-select:none;touch-action:manipulation;zoom:1;-webkit-user-drag:none}`;class st extends Oo(dr(Ui(Re))){constructor(){super(...arguments),this.disabled=!1,this.loading=!1,this.name="",this.value="",this.type="button",this.formNoValidate=!1,this.formController=new Qr(this)}get validity(){if(this.isButton())return this.focusElement.validity}get validationMessage(){if(this.isButton())return this.focusElement.validationMessage}get rippleDisabled(){return this.disabled||this.loading}get focusElement(){var t,i;return this.isButton()?(t=this.renderRoot)==null?void 0:t.querySelector("._button"):this.focusDisabled?this:(i=this.renderRoot)==null?void 0:i.querySelector("._a")}get focusDisabled(){return this.disabled||this.loading}checkValidity(){if(this.isButton()){const t=this.focusElement.checkValidity();return t||this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),t}return!0}reportValidity(){if(this.isButton()){const t=!this.focusElement.reportValidity();return t&&this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),!t}return!0}setCustomValidity(t){this.isButton()&&this.focusElement.setCustomValidity(t)}firstUpdated(t){super.firstUpdated(t),this.addEventListener("click",()=>{this.type==="submit"&&this.formController.submit(this),this.type==="reset"&&this.formController.reset(this)})}renderLoading(){return this.loading?P``:Ve}renderButton({id:t,className:i,part:r,content:n=P``}){return P``}isButton(){return!this.href}}st.styles=[Ce,ww];v([R({type:Boolean,reflect:!0,converter:Y})],st.prototype,"disabled",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],st.prototype,"loading",void 0);v([R({reflect:!0})],st.prototype,"name",void 0);v([R({reflect:!0})],st.prototype,"value",void 0);v([R({reflect:!0})],st.prototype,"type",void 0);v([R({reflect:!0})],st.prototype,"form",void 0);v([R({reflect:!0,attribute:"formaction"})],st.prototype,"formAction",void 0);v([R({reflect:!0,attribute:"formenctype"})],st.prototype,"formEnctype",void 0);v([R({reflect:!0,attribute:"formmethod"})],st.prototype,"formMethod",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"formnovalidate"})],st.prototype,"formNoValidate",void 0);v([R({reflect:!0,attribute:"formtarget"})],st.prototype,"formTarget",void 0);const _w=pe`:host{--shape-corner:var(--mdui-shape-corner-full);position:relative;display:inline-block;overflow:hidden;text-align:center;border-radius:var(--shape-corner);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:box-shadow var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear);min-width:3rem;height:2.5rem;color:rgb(var(--mdui-color-primary));font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking);line-height:var(--mdui-typescale-label-large-line-height)}.button{width:100%;padding:0 1rem}:host([full-width]){display:block}:host([variant=elevated]){box-shadow:var(--mdui-elevation-level1);background-color:rgb(var(--mdui-color-surface-container-low));--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([variant=filled]){color:rgb(var(--mdui-color-on-primary));background-color:rgb(var(--mdui-color-primary));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-primary)}:host([variant=tonal]){color:rgb(var(--mdui-color-on-secondary-container));background-color:rgb(var(--mdui-color-secondary-container));--mdui-comp-ripple-state-layer-color:var( --mdui-color-on-secondary-container )}:host([variant=outlined]){border:.0625rem solid rgb(var(--mdui-color-outline));--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([variant=text]){--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([variant=outlined][focus-visible]){border-color:rgb(var(--mdui-color-primary))}:host([variant=elevated][hover]){box-shadow:var(--mdui-elevation-level2)}:host([variant=filled][hover]),:host([variant=tonal][hover]){box-shadow:var(--mdui-elevation-level1)}:host([disabled]),:host([loading]){cursor:default;pointer-events:none}:host([disabled]){color:rgba(var(--mdui-color-on-surface),38%);box-shadow:var(--mdui-elevation-level0)}:host([variant=elevated][disabled]),:host([variant=filled][disabled]),:host([variant=tonal][disabled]){background-color:rgba(var(--mdui-color-on-surface),12%)}:host([variant=outlined][disabled]){border-color:rgba(var(--mdui-color-on-surface),12%)}.label{display:inline-flex;padding-right:.5rem;padding-left:.5rem}.end-icon,.icon{display:inline-flex;font-size:1.28571429em}.end-icon mdui-icon,.icon mdui-icon,::slotted([slot=end-icon]),::slotted([slot=icon]){font-size:inherit}mdui-circular-progress{display:inline-flex;width:1.125rem;height:1.125rem}:host([variant=filled]) mdui-circular-progress{stroke:rgb(var(--mdui-color-on-primary))}:host([variant=tonal]) mdui-circular-progress{stroke:rgb(var(--mdui-color-on-secondary-container))}:host([disabled]) mdui-circular-progress{stroke:rgba(var(--mdui-color-on-surface),38%)}`;let ks=class extends st{constructor(){super(...arguments),this.variant="filled",this.fullWidth=!1,this.rippleRef=ge()}get rippleElement(){return this.rippleRef.value}render(){return P`${this.isButton()?this.renderButton({className:"button",part:"button",content:this.renderInner()}):this.disabled||this.loading?P`${this.renderInner()}`:this.renderAnchor({className:"button",part:"button",content:this.renderInner()})}`}renderIcon(){return this.loading?this.renderLoading():P`${this.icon?P``:Ve}`}renderLabel(){return P``}renderEndIcon(){return P`${this.endIcon?P``:Ve}`}renderInner(){return[this.renderIcon(),this.renderLabel(),this.renderEndIcon()]}};ks.styles=[st.styles,_w];v([R({reflect:!0})],ks.prototype,"variant",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"full-width"})],ks.prototype,"fullWidth",void 0);v([R({reflect:!0})],ks.prototype,"icon",void 0);v([R({reflect:!0,attribute:"end-icon"})],ks.prototype,"endIcon",void 0);ks=v([se("mdui-button")],ks);const kw=pe`:host{--shape-corner:var(--mdui-shape-corner-full);position:relative;display:inline-block;overflow:hidden;text-align:center;border-radius:var(--shape-corner);cursor:pointer;-webkit-tap-highlight-color:transparent;font-size:1.5rem;width:2.5rem;min-width:2.5rem;height:2.5rem}:host([variant=standard]){color:rgb(var(--mdui-color-on-surface-variant));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface-variant)}:host([variant=filled]){color:rgb(var(--mdui-color-primary));background-color:rgb(var(--mdui-color-surface-container-highest));--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([variant=tonal]){color:rgb(var(--mdui-color-on-surface-variant));background-color:rgb(var(--mdui-color-surface-container-highest));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface-variant)}:host([variant=outlined]){border:.0625rem solid rgb(var(--mdui-color-outline));color:rgb(var(--mdui-color-on-surface-variant));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface-variant)}:host([variant=outlined][pressed]){color:rgb(var(--mdui-color-on-surface));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}:host([variant=standard][selected]){color:rgb(var(--mdui-color-primary));--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([variant=filled]:not([selectable])),:host([variant=filled][selected]){color:rgb(var(--mdui-color-on-primary));background-color:rgb(var(--mdui-color-primary));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-primary)}:host([variant=tonal]:not([selectable])),:host([variant=tonal][selected]){color:rgb(var(--mdui-color-on-secondary-container));background-color:rgb(var(--mdui-color-secondary-container));--mdui-comp-ripple-state-layer-color:var( --mdui-color-on-secondary-container - )}:host([variant=outlined][selected]){border:none;color:rgb(var(--mdui-color-inverse-on-surface));background-color:rgb(var(--mdui-color-inverse-surface));--mdui-comp-ripple-state-layer-color:var(--mdui-color-inverse-on-surface)}:host([variant=filled][disabled]),:host([variant=outlined][disabled]),:host([variant=tonal][disabled]){background-color:rgba(var(--mdui-color-on-surface),.12);border-color:rgba(var(--mdui-color-on-surface),.12)}:host([disabled]),:host([loading]){cursor:default;pointer-events:none}:host([disabled]){color:rgba(var(--mdui-color-on-surface),.38)!important}:host([loading]) .button,:host([loading]) mdui-ripple{opacity:0}.button{float:left;width:100%}.icon,.selected-icon mdui-icon,::slotted(*){font-size:inherit}mdui-circular-progress{display:flex;position:absolute;top:calc(50% - 1.5rem / 2);left:calc(50% - 1.5rem / 2);width:1.5rem;height:1.5rem}:host([variant=filled]:not([disabled])) mdui-circular-progress{stroke:rgb(var(--mdui-color-on-primary))}:host([disabled]) mdui-circular-progress{stroke:rgba(var(--mdui-color-on-surface),38%)}`;let jr=class extends st{constructor(){super(...arguments),this.variant="standard",this.selectable=!1,this.selected=!1,this.rippleRef=ge(),this.hasSlotController=new It(this,"[default]","selected-icon")}get rippleElement(){return this.rippleRef.value}onSelectedChange(){this.emit("change")}firstUpdated(t){super.firstUpdated(t),this.addEventListener("click",()=>{!this.selectable||this.disabled||(this.selected=!this.selected)})}render(){return P`${this.isButton()?this.renderButton({className:"button",part:"button",content:this.renderIcon()}):this.disabled||this.loading?P`${this.renderIcon()}`:this.renderAnchor({className:"button",part:"button",content:this.renderIcon()})} ${this.renderLoading()}`}renderIcon(){const t=()=>this.hasSlotController.test("[default]")?P``:this.icon?P``:Ve,i=()=>this.hasSlotController.test("selected-icon")||this.selectedIcon?P``:t();return this.selected?i():t()}};jr.styles=[st.styles,kw];v([R({reflect:!0})],jr.prototype,"variant",void 0);v([R({reflect:!0})],jr.prototype,"icon",void 0);v([R({reflect:!0,attribute:"selected-icon"})],jr.prototype,"selectedIcon",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],jr.prototype,"selectable",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],jr.prototype,"selected",void 0);v([re("selected",!0)],jr.prototype,"onSelectedChange",null);jr=v([se("mdui-button-icon")],jr);const Cw=pe`:host{--shape-corner:var(--mdui-shape-corner-medium);position:relative;display:inline-block;overflow:hidden;border-radius:var(--shape-corner);-webkit-tap-highlight-color:transparent;transition:box-shadow var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear);--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}:host([clickable]){cursor:pointer}:host([variant=elevated]){background-color:rgb(var(--mdui-color-surface-container-low));box-shadow:var(--mdui-elevation-level1)}:host([variant=filled]){background-color:rgb(var(--mdui-color-surface-container-highest))}:host([variant=outlined]){background-color:rgb(var(--mdui-color-surface));border:.0625rem solid rgb(var(--mdui-color-outline))}:host([variant=elevated][hover]){box-shadow:var(--mdui-elevation-level2)}:host([variant=filled][hover]),:host([variant=outlined][hover]){box-shadow:var(--mdui-elevation-level1)}:host([variant=elevated][dragged]),:host([variant=filled][dragged]),:host([variant=outlined][dragged]){box-shadow:var(--mdui-elevation-level3)}:host([disabled]){opacity:.38;cursor:default;-webkit-user-select:none;user-select:none}:host([variant=elevated][disabled]){background-color:rgb(var(--mdui-color-surface-variant));box-shadow:var(--mdui-elevation-level0)}:host([variant=filled][disabled]){background-color:rgb(var(--mdui-color-surface));box-shadow:var(--mdui-elevation-level1)}:host([variant=outlined][disabled]){box-shadow:var(--mdui-elevation-level0);border-color:rgba(var(--mdui-color-outline),.32)}.link{position:relative;display:inline-block;width:100%;height:100%;color:inherit;font-size:inherit;letter-spacing:inherit;text-decoration:none;touch-action:manipulation;-webkit-user-drag:none}`;let Co=class extends Oo(dr(Ui(Te))){constructor(){super(...arguments),this.variant="elevated",this.clickable=!1,this.disabled=!1,this.rippleRef=ge()}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return this.disabled||!this.href&&!this.clickable}get focusElement(){return this.href&&!this.disabled?this.renderRoot.querySelector("._a"):this}get focusDisabled(){return this.rippleDisabled}render(){return P`${this.href&&!this.disabled?this.renderAnchor({className:"link",content:P``}):P``}`}};Co.styles=[Ce,Cw];v([R({reflect:!0})],Co.prototype,"variant",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Co.prototype,"clickable",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Co.prototype,"disabled",void 0);Co=v([se("mdui-card")],Co);/** + )}:host([variant=outlined][selected]){border:none;color:rgb(var(--mdui-color-inverse-on-surface));background-color:rgb(var(--mdui-color-inverse-surface));--mdui-comp-ripple-state-layer-color:var(--mdui-color-inverse-on-surface)}:host([variant=filled][disabled]),:host([variant=outlined][disabled]),:host([variant=tonal][disabled]){background-color:rgba(var(--mdui-color-on-surface),.12);border-color:rgba(var(--mdui-color-on-surface),.12)}:host([disabled]),:host([loading]){cursor:default;pointer-events:none}:host([disabled]){color:rgba(var(--mdui-color-on-surface),.38)!important}:host([loading]) .button,:host([loading]) mdui-ripple{opacity:0}.button{float:left;width:100%}.icon,.selected-icon mdui-icon,::slotted(*){font-size:inherit}mdui-circular-progress{display:flex;position:absolute;top:calc(50% - 1.5rem / 2);left:calc(50% - 1.5rem / 2);width:1.5rem;height:1.5rem}:host([variant=filled]:not([disabled])) mdui-circular-progress{stroke:rgb(var(--mdui-color-on-primary))}:host([disabled]) mdui-circular-progress{stroke:rgba(var(--mdui-color-on-surface),38%)}`;let jr=class extends st{constructor(){super(...arguments),this.variant="standard",this.selectable=!1,this.selected=!1,this.rippleRef=ge(),this.hasSlotController=new It(this,"[default]","selected-icon")}get rippleElement(){return this.rippleRef.value}onSelectedChange(){this.emit("change")}firstUpdated(t){super.firstUpdated(t),this.addEventListener("click",()=>{!this.selectable||this.disabled||(this.selected=!this.selected)})}render(){return P`${this.isButton()?this.renderButton({className:"button",part:"button",content:this.renderIcon()}):this.disabled||this.loading?P`${this.renderIcon()}`:this.renderAnchor({className:"button",part:"button",content:this.renderIcon()})} ${this.renderLoading()}`}renderIcon(){const t=()=>this.hasSlotController.test("[default]")?P``:this.icon?P``:Ve,i=()=>this.hasSlotController.test("selected-icon")||this.selectedIcon?P``:t();return this.selected?i():t()}};jr.styles=[st.styles,kw];v([R({reflect:!0})],jr.prototype,"variant",void 0);v([R({reflect:!0})],jr.prototype,"icon",void 0);v([R({reflect:!0,attribute:"selected-icon"})],jr.prototype,"selectedIcon",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],jr.prototype,"selectable",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],jr.prototype,"selected",void 0);v([re("selected",!0)],jr.prototype,"onSelectedChange",null);jr=v([se("mdui-button-icon")],jr);const Cw=pe`:host{--shape-corner:var(--mdui-shape-corner-medium);position:relative;display:inline-block;overflow:hidden;border-radius:var(--shape-corner);-webkit-tap-highlight-color:transparent;transition:box-shadow var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear);--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}:host([clickable]){cursor:pointer}:host([variant=elevated]){background-color:rgb(var(--mdui-color-surface-container-low));box-shadow:var(--mdui-elevation-level1)}:host([variant=filled]){background-color:rgb(var(--mdui-color-surface-container-highest))}:host([variant=outlined]){background-color:rgb(var(--mdui-color-surface));border:.0625rem solid rgb(var(--mdui-color-outline))}:host([variant=elevated][hover]){box-shadow:var(--mdui-elevation-level2)}:host([variant=filled][hover]),:host([variant=outlined][hover]){box-shadow:var(--mdui-elevation-level1)}:host([variant=elevated][dragged]),:host([variant=filled][dragged]),:host([variant=outlined][dragged]){box-shadow:var(--mdui-elevation-level3)}:host([disabled]){opacity:.38;cursor:default;-webkit-user-select:none;user-select:none}:host([variant=elevated][disabled]){background-color:rgb(var(--mdui-color-surface-variant));box-shadow:var(--mdui-elevation-level0)}:host([variant=filled][disabled]){background-color:rgb(var(--mdui-color-surface));box-shadow:var(--mdui-elevation-level1)}:host([variant=outlined][disabled]){box-shadow:var(--mdui-elevation-level0);border-color:rgba(var(--mdui-color-outline),.32)}.link{position:relative;display:inline-block;width:100%;height:100%;color:inherit;font-size:inherit;letter-spacing:inherit;text-decoration:none;touch-action:manipulation;-webkit-user-drag:none}`;let Co=class extends Oo(dr(Ui(Re))){constructor(){super(...arguments),this.variant="elevated",this.clickable=!1,this.disabled=!1,this.rippleRef=ge()}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return this.disabled||!this.href&&!this.clickable}get focusElement(){return this.href&&!this.disabled?this.renderRoot.querySelector("._a"):this}get focusDisabled(){return this.rippleDisabled}render(){return P`${this.href&&!this.disabled?this.renderAnchor({className:"link",content:P``}):P``}`}};Co.styles=[Ce,Cw];v([R({reflect:!0})],Co.prototype,"variant",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Co.prototype,"clickable",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Co.prototype,"disabled",void 0);Co=v([se("mdui-card")],Co);/** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: BSD-3-Clause @@ -168,9 +168,9 @@ fill="currentColor" > ${Wy(e)} - `;let Mh=class extends nt{render(){return Ut('')}};Mh.styles=Ht;Mh=v([se("mdui-icon-check-box-outline-blank")],Mh);let Nh=class extends nt{render(){return Ut('')}};Nh.styles=Ht;Nh=v([se("mdui-icon-check-box")],Nh);let Fh=class extends nt{render(){return Ut('')}};Fh.styles=Ht;Fh=v([se("mdui-icon-indeterminate-check-box")],Fh);const Ew=pe`:host{position:relative;display:inline-flex;cursor:pointer;-webkit-tap-highlight-color:transparent;border-radius:.125rem;font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking);line-height:var(--mdui-typescale-label-large-line-height)}label{display:inline-flex;align-items:center;width:100%;cursor:inherit;-webkit-user-select:none;user-select:none;touch-action:manipulation;zoom:1;-webkit-user-drag:none}input{position:absolute;padding:0;opacity:0;pointer-events:none;width:1.125rem;height:1.125rem;margin:0 0 0 .6875rem}.icon{display:flex;position:absolute;opacity:1;transform:scale(1);color:rgb(var(--mdui-color-on-surface));font-size:1.5rem;transition:color var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}.checked-icon,.indeterminate-icon{opacity:0;transform:scale(.5);transition-property:color,opacity,transform;transition-duration:var(--mdui-motion-duration-short4);transition-timing-function:var(--mdui-motion-easing-standard)}.icon .i,::slotted([slot=checked-icon]),::slotted([slot=indeterminate-icon]),::slotted([slot=unchecked-icon]){color:inherit;font-size:inherit}i{position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:50%;width:2.5rem;min-width:2.5rem;height:2.5rem;--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}.label{display:flex;width:100%;padding-top:.625rem;padding-bottom:.625rem;color:rgb(var(--mdui-color-on-surface));transition:color var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}:host([checked]) i{--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([checked]) .icon{color:rgb(var(--mdui-color-primary))}:host([checked]) .indeterminate-icon{opacity:0;transform:scale(.5)}:host([checked]) .checked-icon{opacity:1;transform:scale(1)}:host([indeterminate]) i{--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([indeterminate]) .icon{color:rgb(var(--mdui-color-primary))}:host([indeterminate]) .checked-icon{opacity:0;transform:scale(.5)}:host([indeterminate]) .indeterminate-icon{opacity:1;transform:scale(1)}.invalid i{--mdui-comp-ripple-state-layer-color:var(--mdui-color-error)}.invalid .icon{color:rgb(var(--mdui-color-error))}.invalid .label{color:rgb(var(--mdui-color-error))}:host([disabled]){cursor:default;pointer-events:none}:host([disabled]) .icon{color:rgba(var(--mdui-color-on-surface),38%)}:host([disabled]) .label{color:rgba(var(--mdui-color-on-surface),38%)}:host([disabled][checked]) .unchecked-icon,:host([disabled][indeterminate]) .unchecked-icon{opacity:0}`;let Nt=class extends dr(Ui(Te)){constructor(){super(...arguments),this.disabled=!1,this.checked=!1,this.defaultChecked=!1,this.indeterminate=!1,this.required=!1,this.name="",this.value="on",this.invalid=!1,this.inputRef=ge(),this.rippleRef=ge(),this.formController=new Qr(this,{value:t=>t.checked?t.value:void 0,defaultValue:t=>t.defaultChecked,setValue:(t,i)=>t.checked=i})}get validity(){return this.inputRef.value.validity}get validationMessage(){return this.inputRef.value.validationMessage}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return this.disabled}get focusElement(){return this.inputRef.value}get focusDisabled(){return this.disabled}async onDisabledChange(){await this.updateComplete,this.invalid=!this.inputRef.value.checkValidity()}async onCheckedChange(){var i;await this.updateComplete;const t=this.formController.getForm();t&&((i=_t.get(t))!=null&&i.has(this))?(this.invalid=!1,_t.get(t).delete(this)):this.invalid=!this.inputRef.value.checkValidity()}checkValidity(){const t=this.inputRef.value.checkValidity();return t||this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),t}reportValidity(){return this.invalid=!this.inputRef.value.reportValidity(),this.invalid&&(this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1})||(this.blur(),this.focus())),!this.invalid}setCustomValidity(t){this.inputRef.value.setCustomValidity(t),this.invalid=!this.inputRef.value.checkValidity()}render(){return P``}onChange(){this.checked=this.inputRef.value.checked,this.indeterminate=!1,this.emit("change")}};Nt.styles=[Ce,Ew];v([R({type:Boolean,reflect:!0,converter:Y})],Nt.prototype,"disabled",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Nt.prototype,"checked",void 0);v([On("checked")],Nt.prototype,"defaultChecked",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Nt.prototype,"indeterminate",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Nt.prototype,"required",void 0);v([R({reflect:!0})],Nt.prototype,"form",void 0);v([R({reflect:!0})],Nt.prototype,"name",void 0);v([R({reflect:!0})],Nt.prototype,"value",void 0);v([R({reflect:!0,attribute:"unchecked-icon"})],Nt.prototype,"uncheckedIcon",void 0);v([R({reflect:!0,attribute:"checked-icon"})],Nt.prototype,"checkedIcon",void 0);v([R({reflect:!0,attribute:"indeterminate-icon"})],Nt.prototype,"indeterminateIcon",void 0);v([_e()],Nt.prototype,"invalid",void 0);v([re("disabled",!0),re("indeterminate",!0),re("required",!0)],Nt.prototype,"onDisabledChange",null);v([re("checked",!0)],Nt.prototype,"onCheckedChange",null);Nt=v([se("mdui-checkbox")],Nt);let zh=class extends nt{render(){return Ut('')}};zh.styles=Ht;zh=v([se("mdui-icon-check")],zh);let Hh=class extends nt{render(){return Ut('')}};Hh.styles=Ht;Hh=v([se("mdui-icon-clear")],Hh);const xw=pe`:host{--shape-corner:var(--mdui-shape-corner-small);position:relative;display:inline-block;overflow:hidden;border-radius:var(--shape-corner);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:box-shadow var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear);height:2rem;background-color:rgb(var(--mdui-color-surface));border:.0625rem solid rgb(var(--mdui-color-outline));color:rgb(var(--mdui-color-on-surface-variant));font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking);line-height:var(--mdui-typescale-label-large-line-height);--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface-variant)}.button{padding-right:.4375rem;padding-left:.4375rem}:host([variant=input]) .button{padding-right:.1875rem;padding-left:.1875rem}:host([selected]) .button{padding-right:.5rem;padding-left:.5rem}:host([selected][variant=input]) .button{padding-right:.25rem;padding-left:.25rem}:host([elevated]) .button{padding-right:.5rem;padding-left:.5rem}:host([variant=assist]){color:rgb(var(--mdui-color-on-surface));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}:host([elevated]){border-width:0;background-color:rgb(var(--mdui-color-surface-container-low));box-shadow:var(--mdui-elevation-level1)}:host([selected]){color:rgb(var(--mdui-color-on-secondary-container));background-color:rgb(var(--mdui-color-secondary-container));border-width:0;--mdui-comp-ripple-state-layer-color:var( + `;let Mh=class extends nt{render(){return Ut('')}};Mh.styles=Ht;Mh=v([se("mdui-icon-check-box-outline-blank")],Mh);let Nh=class extends nt{render(){return Ut('')}};Nh.styles=Ht;Nh=v([se("mdui-icon-check-box")],Nh);let Fh=class extends nt{render(){return Ut('')}};Fh.styles=Ht;Fh=v([se("mdui-icon-indeterminate-check-box")],Fh);const Ew=pe`:host{position:relative;display:inline-flex;cursor:pointer;-webkit-tap-highlight-color:transparent;border-radius:.125rem;font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking);line-height:var(--mdui-typescale-label-large-line-height)}label{display:inline-flex;align-items:center;width:100%;cursor:inherit;-webkit-user-select:none;user-select:none;touch-action:manipulation;zoom:1;-webkit-user-drag:none}input{position:absolute;padding:0;opacity:0;pointer-events:none;width:1.125rem;height:1.125rem;margin:0 0 0 .6875rem}.icon{display:flex;position:absolute;opacity:1;transform:scale(1);color:rgb(var(--mdui-color-on-surface));font-size:1.5rem;transition:color var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}.checked-icon,.indeterminate-icon{opacity:0;transform:scale(.5);transition-property:color,opacity,transform;transition-duration:var(--mdui-motion-duration-short4);transition-timing-function:var(--mdui-motion-easing-standard)}.icon .i,::slotted([slot=checked-icon]),::slotted([slot=indeterminate-icon]),::slotted([slot=unchecked-icon]){color:inherit;font-size:inherit}i{position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:50%;width:2.5rem;min-width:2.5rem;height:2.5rem;--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}.label{display:flex;width:100%;padding-top:.625rem;padding-bottom:.625rem;color:rgb(var(--mdui-color-on-surface));transition:color var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}:host([checked]) i{--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([checked]) .icon{color:rgb(var(--mdui-color-primary))}:host([checked]) .indeterminate-icon{opacity:0;transform:scale(.5)}:host([checked]) .checked-icon{opacity:1;transform:scale(1)}:host([indeterminate]) i{--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([indeterminate]) .icon{color:rgb(var(--mdui-color-primary))}:host([indeterminate]) .checked-icon{opacity:0;transform:scale(.5)}:host([indeterminate]) .indeterminate-icon{opacity:1;transform:scale(1)}.invalid i{--mdui-comp-ripple-state-layer-color:var(--mdui-color-error)}.invalid .icon{color:rgb(var(--mdui-color-error))}.invalid .label{color:rgb(var(--mdui-color-error))}:host([disabled]){cursor:default;pointer-events:none}:host([disabled]) .icon{color:rgba(var(--mdui-color-on-surface),38%)}:host([disabled]) .label{color:rgba(var(--mdui-color-on-surface),38%)}:host([disabled][checked]) .unchecked-icon,:host([disabled][indeterminate]) .unchecked-icon{opacity:0}`;let Nt=class extends dr(Ui(Re)){constructor(){super(...arguments),this.disabled=!1,this.checked=!1,this.defaultChecked=!1,this.indeterminate=!1,this.required=!1,this.name="",this.value="on",this.invalid=!1,this.inputRef=ge(),this.rippleRef=ge(),this.formController=new Qr(this,{value:t=>t.checked?t.value:void 0,defaultValue:t=>t.defaultChecked,setValue:(t,i)=>t.checked=i})}get validity(){return this.inputRef.value.validity}get validationMessage(){return this.inputRef.value.validationMessage}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return this.disabled}get focusElement(){return this.inputRef.value}get focusDisabled(){return this.disabled}async onDisabledChange(){await this.updateComplete,this.invalid=!this.inputRef.value.checkValidity()}async onCheckedChange(){var i;await this.updateComplete;const t=this.formController.getForm();t&&((i=_t.get(t))!=null&&i.has(this))?(this.invalid=!1,_t.get(t).delete(this)):this.invalid=!this.inputRef.value.checkValidity()}checkValidity(){const t=this.inputRef.value.checkValidity();return t||this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),t}reportValidity(){return this.invalid=!this.inputRef.value.reportValidity(),this.invalid&&(this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1})||(this.blur(),this.focus())),!this.invalid}setCustomValidity(t){this.inputRef.value.setCustomValidity(t),this.invalid=!this.inputRef.value.checkValidity()}render(){return P``}onChange(){this.checked=this.inputRef.value.checked,this.indeterminate=!1,this.emit("change")}};Nt.styles=[Ce,Ew];v([R({type:Boolean,reflect:!0,converter:Y})],Nt.prototype,"disabled",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Nt.prototype,"checked",void 0);v([On("checked")],Nt.prototype,"defaultChecked",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Nt.prototype,"indeterminate",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Nt.prototype,"required",void 0);v([R({reflect:!0})],Nt.prototype,"form",void 0);v([R({reflect:!0})],Nt.prototype,"name",void 0);v([R({reflect:!0})],Nt.prototype,"value",void 0);v([R({reflect:!0,attribute:"unchecked-icon"})],Nt.prototype,"uncheckedIcon",void 0);v([R({reflect:!0,attribute:"checked-icon"})],Nt.prototype,"checkedIcon",void 0);v([R({reflect:!0,attribute:"indeterminate-icon"})],Nt.prototype,"indeterminateIcon",void 0);v([_e()],Nt.prototype,"invalid",void 0);v([re("disabled",!0),re("indeterminate",!0),re("required",!0)],Nt.prototype,"onDisabledChange",null);v([re("checked",!0)],Nt.prototype,"onCheckedChange",null);Nt=v([se("mdui-checkbox")],Nt);let zh=class extends nt{render(){return Ut('')}};zh.styles=Ht;zh=v([se("mdui-icon-check")],zh);let Hh=class extends nt{render(){return Ut('')}};Hh.styles=Ht;Hh=v([se("mdui-icon-clear")],Hh);const xw=pe`:host{--shape-corner:var(--mdui-shape-corner-small);position:relative;display:inline-block;overflow:hidden;border-radius:var(--shape-corner);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:box-shadow var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear);height:2rem;background-color:rgb(var(--mdui-color-surface));border:.0625rem solid rgb(var(--mdui-color-outline));color:rgb(var(--mdui-color-on-surface-variant));font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking);line-height:var(--mdui-typescale-label-large-line-height);--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface-variant)}.button{padding-right:.4375rem;padding-left:.4375rem}:host([variant=input]) .button{padding-right:.1875rem;padding-left:.1875rem}:host([selected]) .button{padding-right:.5rem;padding-left:.5rem}:host([selected][variant=input]) .button{padding-right:.25rem;padding-left:.25rem}:host([elevated]) .button{padding-right:.5rem;padding-left:.5rem}:host([variant=assist]){color:rgb(var(--mdui-color-on-surface));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}:host([elevated]){border-width:0;background-color:rgb(var(--mdui-color-surface-container-low));box-shadow:var(--mdui-elevation-level1)}:host([selected]){color:rgb(var(--mdui-color-on-secondary-container));background-color:rgb(var(--mdui-color-secondary-container));border-width:0;--mdui-comp-ripple-state-layer-color:var( --mdui-color-on-secondary-container - )}:host([disabled]),:host([loading]){cursor:default;pointer-events:none}:host([disabled]){border-color:rgba(var(--mdui-color-on-surface),12%);color:rgba(var(--mdui-color-on-surface),38%);box-shadow:var(--mdui-elevation-level0)}:host([disabled][elevated]),:host([disabled][selected]){background-color:rgba(var(--mdui-color-on-surface),12%)}:host([selected][hover]){box-shadow:var(--mdui-elevation-level1)}:host([elevated][hover]){color:rgb(var(--mdui-color-on-secondary-container));box-shadow:var(--mdui-elevation-level2)}:host([variant=filter][hover]),:host([variant=input][hover]),:host([variant=suggestion][hover]){color:rgb(var(--mdui-color-on-surface-variant))}:host([variant=filter][focus-visible]),:host([variant=input][focus-visible]),:host([variant=suggestion][focus-visible]){border-color:rgb(var(--mdui-color-on-surface-variant))}:host([dragged]),:host([dragged][hover]){box-shadow:var(--mdui-elevation-level4)}.button{overflow:visible}.label{display:inline-flex;padding-right:.5rem;padding-left:.5rem}.end-icon,.icon,.selected-icon{display:inline-flex;font-size:1.28571429em;color:rgb(var(--mdui-color-on-surface-variant))}:host([variant=assist]) .end-icon,:host([variant=assist]) .icon,:host([variant=assist]) .selected-icon{color:rgb(var(--mdui-color-primary))}:host([selected]) .end-icon,:host([selected]) .icon,:host([selected]) .selected-icon{color:rgb(var(--mdui-color-on-secondary-container))}:host([disabled]) .end-icon,:host([disabled]) .icon,:host([disabled]) .selected-icon{opacity:.38;color:rgb(var(--mdui-color-on-surface))}.end-icon .i,.icon .i,.selected-icon .i,::slotted([slot=end-icon]),::slotted([slot=icon]),::slotted([slot=selected-icon]){font-size:inherit}:host([variant=input]) .has-icon .icon,:host([variant=input]) .has-icon .selected-icon,:host([variant=input]) .has-icon mdui-circular-progress{margin-left:.25rem}:host([variant=input]) .has-end-icon .end-icon{margin-right:.25rem}mdui-circular-progress{display:inline-flex;width:1.125rem;height:1.125rem}:host([disabled]) mdui-circular-progress{stroke:rgba(var(--mdui-color-on-surface),38%)}::slotted(mdui-avatar[slot=end-icon]),::slotted(mdui-avatar[slot=icon]),::slotted(mdui-avatar[slot=selected-icon]){width:1.5rem;height:1.5rem}:host([disabled]) ::slotted(mdui-avatar[slot=end-icon]),:host([disabled]) ::slotted(mdui-avatar[slot=icon]),:host([disabled]) ::slotted(mdui-avatar[slot=selected-icon]){opacity:.38}::slotted(mdui-avatar[slot=icon]),::slotted(mdui-avatar[slot=selected-icon]){margin-left:-.25rem;margin-right:-.125rem}::slotted(mdui-avatar[slot=end-icon]){margin-right:-.25rem;margin-left:-.125rem}.delete-icon{display:inline-flex;font-size:1.28571429em;transition:background-color var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear);border-radius:var(--mdui-shape-corner-full);margin-right:-.25rem;margin-left:-.25rem;padding:.25rem;color:rgb(var(--mdui-color-on-surface-variant))}.delete-icon:hover{background-color:rgba(var(--mdui-color-on-surface-variant),12%)}.has-end-icon .delete-icon{margin-left:.25rem}:host([variant=assiat]) .delete-icon{color:rgb(var(--mdui-color-primary))}:host([variant=input]) .delete-icon{margin-right:.0625rem}:host([disabled]) .delete-icon{color:rgba(var(--mdui-color-on-surface),38%)}.delete-icon .i,::slotted([slot=delete-icon]){font-size:inherit}::slotted(mdui-avatar[slot=delete-icon]){width:1.125rem;height:1.125rem}`;let Li=class extends st{constructor(){super(),this.variant="assist",this.elevated=!1,this.selectable=!1,this.selected=!1,this.deletable=!1,this.rippleRef=ge(),this.hasSlotController=new It(this,"icon","selected-icon","end-icon"),this.onClick=this.onClick.bind(this),this.onKeyDown=this.onKeyDown.bind(this)}get rippleElement(){return this.rippleRef.value}onSelectedChange(){this.emit("change")}firstUpdated(t){super.firstUpdated(t),this.addEventListener("click",this.onClick),this.addEventListener("keydown",this.onKeyDown)}render(){const t=this.icon||this.hasSlotController.test("icon"),i=this.endIcon||this.hasSlotController.test("end-icon"),r=this.selectedIcon||["assist","filter"].includes(this.variant)||t||this.hasSlotController.test("selected-icon"),n=wr({button:!0,"has-icon":this.loading||!this.selected&&t||this.selected&&r,"has-end-icon":i});return P`${this.isButton()?this.renderButton({className:n,part:"button",content:this.renderInner()}):this.disabled||this.loading?P`${this.renderInner()}`:this.renderAnchor({className:n,part:"button",content:this.renderInner()})}`}onClick(){this.disabled||this.loading||this.selectable&&(this.selected=!this.selected)}onKeyDown(t){this.disabled||this.loading||(this.selectable&&t.key===" "&&(t.preventDefault(),this.selected=!this.selected),this.deletable&&["Delete","Backspace"].includes(t.key)&&this.emit("delete"))}onDelete(t){t.stopPropagation(),this.emit("delete")}renderIcon(){if(this.loading)return this.renderLoading();const t=()=>this.icon?P``:Ve,i=()=>this.selectedIcon?P``:this.variant==="assist"||this.variant==="filter"?P``:t();return this.selected?P`${i()}`:P`${t()}`}renderLabel(){return P``}renderEndIcon(){return P`${this.endIcon?P``:Ve}`}renderDeleteIcon(){return this.deletable?P`${this.deleteIcon?P``:P``}`:Ve}renderInner(){return[this.renderIcon(),this.renderLabel(),this.renderEndIcon(),this.renderDeleteIcon()]}};Li.styles=[st.styles,xw];v([R({reflect:!0})],Li.prototype,"variant",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Li.prototype,"elevated",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Li.prototype,"selectable",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Li.prototype,"selected",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Li.prototype,"deletable",void 0);v([R({reflect:!0})],Li.prototype,"icon",void 0);v([R({reflect:!0,attribute:"selected-icon"})],Li.prototype,"selectedIcon",void 0);v([R({reflect:!0,attribute:"end-icon"})],Li.prototype,"endIcon",void 0);v([R({reflect:!0,attribute:"delete-icon"})],Li.prototype,"deleteIcon",void 0);v([re("selected",!0)],Li.prototype,"onSelectedChange",null);Li=v([se("mdui-chip")],Li);const xo=(e,t)=>{if(e.length!==t.length)return!1;const i=[...e].sort(),r=[...t].sort();return i.every((n,s)=>n===r[s])},Sw=pe`:host{display:block}`;let _r=class extends Te{constructor(){super(...arguments),this.accordion=!1,this.disabled=!1,this.activeKeys=[],this.isInitial=!0,this.definedController=new zt(this,{relatedElements:["mdui-collapse-item"]})}async onActiveKeysChange(){var i;await this.definedController.whenDefined();const t=this.accordion?(i=this.items.find(r=>this.activeKeys.includes(r.key)))==null?void 0:i.value:this.items.filter(r=>this.activeKeys.includes(r.key)).map(r=>r.value);this.setValue(t),this.isInitial||this.emit("change")}async onValueChange(){if(this.isInitial=!this.hasUpdated,await this.definedController.whenDefined(),this.accordion){const t=this.value;if(!t)this.setActiveKeys([]);else{const i=this.items.find(r=>r.value===t);this.setActiveKeys(i?[i.key]:[])}}else{const t=this.value;if(!t.length)this.setActiveKeys([]);else{const i=this.items.filter(r=>t.includes(r.value)).map(r=>r.key);this.setActiveKeys(i)}}this.updateItems()}render(){return P``}setActiveKeys(t){xo(this.activeKeys,t)||(this.activeKeys=t)}setValue(t){this.accordion||et(this.value)||et(t)?this.value=t:xo(this.value,t)||(this.value=t)}onClick(t){if(this.disabled||t.button)return;const r=t.target.closest("mdui-collapse-item");if(!r||r.disabled)return;const n=t.composedPath();if(!(r.trigger&&!n.find(s=>qr(s)&&O(s).is(r.trigger)))&&n.find(s=>qr(s)&&s.part.contains("header"))){if(this.accordion)this.activeKeys.includes(r.key)?this.setActiveKeys([]):this.setActiveKeys([r.key]);else{const s=[...this.activeKeys];s.includes(r.key)?s.splice(s.indexOf(r.key),1):s.push(r.key),this.setActiveKeys(s)}this.isInitial=!1,this.updateItems()}}async onSlotChange(){await this.definedController.whenDefined(),this.updateItems()}updateItems(){this.items.forEach(t=>{t.active=this.activeKeys.includes(t.key),t.isInitial=this.isInitial})}};_r.styles=[Ce,Sw];v([R({type:Boolean,reflect:!0,converter:Y})],_r.prototype,"accordion",void 0);v([R()],_r.prototype,"value",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],_r.prototype,"disabled",void 0);v([_e()],_r.prototype,"activeKeys",void 0);v([Hi({selector:"mdui-collapse-item",flatten:!0})],_r.prototype,"items",void 0);v([re("activeKeys",!0)],_r.prototype,"onActiveKeysChange",null);v([re("value")],_r.prototype,"onValueChange",null);_r=v([se("mdui-collapse")],_r);const Aw=pe`:host{display:flex;flex-direction:column}.header{display:block}.body{display:block;overflow:hidden;transition:height var(--mdui-motion-duration-short4) var(--mdui-motion-easing-emphasized)}.body.opened{overflow:visible}.body.active{transition-duration:var(--mdui-motion-duration-medium4)}`;let kr=class extends Te{constructor(){super(...arguments),this.disabled=!1,this.active=!1,this.state="closed",this.isInitial=!0,this.key=Pn(),this.bodyRef=ge()}onActiveChange(){this.isInitial?(this.state=this.active?"opened":"closed",this.hasUpdated&&this.updateBodyHeight()):(this.state=this.active?"open":"close",this.emit(this.state),this.updateBodyHeight())}firstUpdated(t){super.firstUpdated(t),this.updateBodyHeight()}render(){return P`${this.header}`}onTransitionEnd(t){t.target===this.bodyRef.value&&(this.state=this.active?"opened":"closed",this.emit(this.state),this.updateBodyHeight())}updateBodyHeight(){const t=this.bodyRef.value.scrollHeight;this.state==="close"&&(O(this.bodyRef.value).height(t),this.bodyRef.value.clientLeft),O(this.bodyRef.value).height(this.state==="opened"?"auto":this.state==="open"?t:0)}};kr.styles=[Ce,Aw];v([R({reflect:!0})],kr.prototype,"value",void 0);v([R({reflect:!0})],kr.prototype,"header",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],kr.prototype,"disabled",void 0);v([R()],kr.prototype,"trigger",void 0);v([_e()],kr.prototype,"active",void 0);v([_e()],kr.prototype,"state",void 0);v([re("active")],kr.prototype,"onActiveChange",null);kr=v([se("mdui-collapse-item")],kr);/** + )}:host([disabled]),:host([loading]){cursor:default;pointer-events:none}:host([disabled]){border-color:rgba(var(--mdui-color-on-surface),12%);color:rgba(var(--mdui-color-on-surface),38%);box-shadow:var(--mdui-elevation-level0)}:host([disabled][elevated]),:host([disabled][selected]){background-color:rgba(var(--mdui-color-on-surface),12%)}:host([selected][hover]){box-shadow:var(--mdui-elevation-level1)}:host([elevated][hover]){color:rgb(var(--mdui-color-on-secondary-container));box-shadow:var(--mdui-elevation-level2)}:host([variant=filter][hover]),:host([variant=input][hover]),:host([variant=suggestion][hover]){color:rgb(var(--mdui-color-on-surface-variant))}:host([variant=filter][focus-visible]),:host([variant=input][focus-visible]),:host([variant=suggestion][focus-visible]){border-color:rgb(var(--mdui-color-on-surface-variant))}:host([dragged]),:host([dragged][hover]){box-shadow:var(--mdui-elevation-level4)}.button{overflow:visible}.label{display:inline-flex;padding-right:.5rem;padding-left:.5rem}.end-icon,.icon,.selected-icon{display:inline-flex;font-size:1.28571429em;color:rgb(var(--mdui-color-on-surface-variant))}:host([variant=assist]) .end-icon,:host([variant=assist]) .icon,:host([variant=assist]) .selected-icon{color:rgb(var(--mdui-color-primary))}:host([selected]) .end-icon,:host([selected]) .icon,:host([selected]) .selected-icon{color:rgb(var(--mdui-color-on-secondary-container))}:host([disabled]) .end-icon,:host([disabled]) .icon,:host([disabled]) .selected-icon{opacity:.38;color:rgb(var(--mdui-color-on-surface))}.end-icon .i,.icon .i,.selected-icon .i,::slotted([slot=end-icon]),::slotted([slot=icon]),::slotted([slot=selected-icon]){font-size:inherit}:host([variant=input]) .has-icon .icon,:host([variant=input]) .has-icon .selected-icon,:host([variant=input]) .has-icon mdui-circular-progress{margin-left:.25rem}:host([variant=input]) .has-end-icon .end-icon{margin-right:.25rem}mdui-circular-progress{display:inline-flex;width:1.125rem;height:1.125rem}:host([disabled]) mdui-circular-progress{stroke:rgba(var(--mdui-color-on-surface),38%)}::slotted(mdui-avatar[slot=end-icon]),::slotted(mdui-avatar[slot=icon]),::slotted(mdui-avatar[slot=selected-icon]){width:1.5rem;height:1.5rem}:host([disabled]) ::slotted(mdui-avatar[slot=end-icon]),:host([disabled]) ::slotted(mdui-avatar[slot=icon]),:host([disabled]) ::slotted(mdui-avatar[slot=selected-icon]){opacity:.38}::slotted(mdui-avatar[slot=icon]),::slotted(mdui-avatar[slot=selected-icon]){margin-left:-.25rem;margin-right:-.125rem}::slotted(mdui-avatar[slot=end-icon]){margin-right:-.25rem;margin-left:-.125rem}.delete-icon{display:inline-flex;font-size:1.28571429em;transition:background-color var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear);border-radius:var(--mdui-shape-corner-full);margin-right:-.25rem;margin-left:-.25rem;padding:.25rem;color:rgb(var(--mdui-color-on-surface-variant))}.delete-icon:hover{background-color:rgba(var(--mdui-color-on-surface-variant),12%)}.has-end-icon .delete-icon{margin-left:.25rem}:host([variant=assiat]) .delete-icon{color:rgb(var(--mdui-color-primary))}:host([variant=input]) .delete-icon{margin-right:.0625rem}:host([disabled]) .delete-icon{color:rgba(var(--mdui-color-on-surface),38%)}.delete-icon .i,::slotted([slot=delete-icon]){font-size:inherit}::slotted(mdui-avatar[slot=delete-icon]){width:1.125rem;height:1.125rem}`;let Li=class extends st{constructor(){super(),this.variant="assist",this.elevated=!1,this.selectable=!1,this.selected=!1,this.deletable=!1,this.rippleRef=ge(),this.hasSlotController=new It(this,"icon","selected-icon","end-icon"),this.onClick=this.onClick.bind(this),this.onKeyDown=this.onKeyDown.bind(this)}get rippleElement(){return this.rippleRef.value}onSelectedChange(){this.emit("change")}firstUpdated(t){super.firstUpdated(t),this.addEventListener("click",this.onClick),this.addEventListener("keydown",this.onKeyDown)}render(){const t=this.icon||this.hasSlotController.test("icon"),i=this.endIcon||this.hasSlotController.test("end-icon"),r=this.selectedIcon||["assist","filter"].includes(this.variant)||t||this.hasSlotController.test("selected-icon"),n=wr({button:!0,"has-icon":this.loading||!this.selected&&t||this.selected&&r,"has-end-icon":i});return P`${this.isButton()?this.renderButton({className:n,part:"button",content:this.renderInner()}):this.disabled||this.loading?P`${this.renderInner()}`:this.renderAnchor({className:n,part:"button",content:this.renderInner()})}`}onClick(){this.disabled||this.loading||this.selectable&&(this.selected=!this.selected)}onKeyDown(t){this.disabled||this.loading||(this.selectable&&t.key===" "&&(t.preventDefault(),this.selected=!this.selected),this.deletable&&["Delete","Backspace"].includes(t.key)&&this.emit("delete"))}onDelete(t){t.stopPropagation(),this.emit("delete")}renderIcon(){if(this.loading)return this.renderLoading();const t=()=>this.icon?P``:Ve,i=()=>this.selectedIcon?P``:this.variant==="assist"||this.variant==="filter"?P``:t();return this.selected?P`${i()}`:P`${t()}`}renderLabel(){return P``}renderEndIcon(){return P`${this.endIcon?P``:Ve}`}renderDeleteIcon(){return this.deletable?P`${this.deleteIcon?P``:P``}`:Ve}renderInner(){return[this.renderIcon(),this.renderLabel(),this.renderEndIcon(),this.renderDeleteIcon()]}};Li.styles=[st.styles,xw];v([R({reflect:!0})],Li.prototype,"variant",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Li.prototype,"elevated",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Li.prototype,"selectable",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Li.prototype,"selected",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Li.prototype,"deletable",void 0);v([R({reflect:!0})],Li.prototype,"icon",void 0);v([R({reflect:!0,attribute:"selected-icon"})],Li.prototype,"selectedIcon",void 0);v([R({reflect:!0,attribute:"end-icon"})],Li.prototype,"endIcon",void 0);v([R({reflect:!0,attribute:"delete-icon"})],Li.prototype,"deleteIcon",void 0);v([re("selected",!0)],Li.prototype,"onSelectedChange",null);Li=v([se("mdui-chip")],Li);const xo=(e,t)=>{if(e.length!==t.length)return!1;const i=[...e].sort(),r=[...t].sort();return i.every((n,s)=>n===r[s])},Sw=pe`:host{display:block}`;let _r=class extends Re{constructor(){super(...arguments),this.accordion=!1,this.disabled=!1,this.activeKeys=[],this.isInitial=!0,this.definedController=new zt(this,{relatedElements:["mdui-collapse-item"]})}async onActiveKeysChange(){var i;await this.definedController.whenDefined();const t=this.accordion?(i=this.items.find(r=>this.activeKeys.includes(r.key)))==null?void 0:i.value:this.items.filter(r=>this.activeKeys.includes(r.key)).map(r=>r.value);this.setValue(t),this.isInitial||this.emit("change")}async onValueChange(){if(this.isInitial=!this.hasUpdated,await this.definedController.whenDefined(),this.accordion){const t=this.value;if(!t)this.setActiveKeys([]);else{const i=this.items.find(r=>r.value===t);this.setActiveKeys(i?[i.key]:[])}}else{const t=this.value;if(!t.length)this.setActiveKeys([]);else{const i=this.items.filter(r=>t.includes(r.value)).map(r=>r.key);this.setActiveKeys(i)}}this.updateItems()}render(){return P``}setActiveKeys(t){xo(this.activeKeys,t)||(this.activeKeys=t)}setValue(t){this.accordion||et(this.value)||et(t)?this.value=t:xo(this.value,t)||(this.value=t)}onClick(t){if(this.disabled||t.button)return;const r=t.target.closest("mdui-collapse-item");if(!r||r.disabled)return;const n=t.composedPath();if(!(r.trigger&&!n.find(s=>qr(s)&&O(s).is(r.trigger)))&&n.find(s=>qr(s)&&s.part.contains("header"))){if(this.accordion)this.activeKeys.includes(r.key)?this.setActiveKeys([]):this.setActiveKeys([r.key]);else{const s=[...this.activeKeys];s.includes(r.key)?s.splice(s.indexOf(r.key),1):s.push(r.key),this.setActiveKeys(s)}this.isInitial=!1,this.updateItems()}}async onSlotChange(){await this.definedController.whenDefined(),this.updateItems()}updateItems(){this.items.forEach(t=>{t.active=this.activeKeys.includes(t.key),t.isInitial=this.isInitial})}};_r.styles=[Ce,Sw];v([R({type:Boolean,reflect:!0,converter:Y})],_r.prototype,"accordion",void 0);v([R()],_r.prototype,"value",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],_r.prototype,"disabled",void 0);v([_e()],_r.prototype,"activeKeys",void 0);v([Hi({selector:"mdui-collapse-item",flatten:!0})],_r.prototype,"items",void 0);v([re("activeKeys",!0)],_r.prototype,"onActiveKeysChange",null);v([re("value")],_r.prototype,"onValueChange",null);_r=v([se("mdui-collapse")],_r);const Aw=pe`:host{display:flex;flex-direction:column}.header{display:block}.body{display:block;overflow:hidden;transition:height var(--mdui-motion-duration-short4) var(--mdui-motion-easing-emphasized)}.body.opened{overflow:visible}.body.active{transition-duration:var(--mdui-motion-duration-medium4)}`;let kr=class extends Re{constructor(){super(...arguments),this.disabled=!1,this.active=!1,this.state="closed",this.isInitial=!0,this.key=Pn(),this.bodyRef=ge()}onActiveChange(){this.isInitial?(this.state=this.active?"opened":"closed",this.hasUpdated&&this.updateBodyHeight()):(this.state=this.active?"open":"close",this.emit(this.state),this.updateBodyHeight())}firstUpdated(t){super.firstUpdated(t),this.updateBodyHeight()}render(){return P`${this.header}`}onTransitionEnd(t){t.target===this.bodyRef.value&&(this.state=this.active?"opened":"closed",this.emit(this.state),this.updateBodyHeight())}updateBodyHeight(){const t=this.bodyRef.value.scrollHeight;this.state==="close"&&(O(this.bodyRef.value).height(t),this.bodyRef.value.clientLeft),O(this.bodyRef.value).height(this.state==="opened"?"auto":this.state==="open"?t:0)}};kr.styles=[Ce,Aw];v([R({reflect:!0})],kr.prototype,"value",void 0);v([R({reflect:!0})],kr.prototype,"header",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],kr.prototype,"disabled",void 0);v([R()],kr.prototype,"trigger",void 0);v([_e()],kr.prototype,"active",void 0);v([_e()],kr.prototype,"state",void 0);v([re("active")],kr.prototype,"onActiveChange",null);kr=v([se("mdui-collapse-item")],kr);/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause @@ -202,21 +202,21 @@ * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */let Mw=Pw,Om=!1;const dc=new Map,Nw=(e,t)=>{Om||(Om=!0,Dn().addEventListener(Bw,n=>{n.detail.status==="ready"&&dc.forEach(s=>{s.forEach(o=>o())})}));const i=dc.get(e)||[];i.push(t),dc.set(e,i)},uc=e=>{dc.delete(e)},Fw=pe`:host{--shape-corner:var(--mdui-shape-corner-extra-large);--z-index:2300;position:fixed;z-index:var(--z-index);display:none;align-items:center;justify-content:center;inset:0;padding:3rem}::slotted(mdui-top-app-bar[slot=header]){position:absolute;border-top-left-radius:var(--mdui-shape-corner-extra-large);border-top-right-radius:var(--mdui-shape-corner-extra-large);background-color:rgb(var(--mdui-color-surface-container-high))}:host([fullscreen]){--shape-corner:var(--mdui-shape-corner-none);padding:0}:host([fullscreen]) ::slotted(mdui-top-app-bar[slot=header]){border-top-left-radius:var(--mdui-shape-corner-none);border-top-right-radius:var(--mdui-shape-corner-none)}.overlay{position:fixed;inset:0;background-color:rgba(var(--mdui-color-scrim),.4)}.panel{position:relative;display:flex;flex-direction:column;max-height:100%;border-radius:var(--shape-corner);outline:0;transform-origin:top;min-width:17.5rem;max-width:35rem;padding:1.5rem;background-color:rgb(var(--mdui-color-surface-container-high));box-shadow:var(--mdui-elevation-level3)}:host([fullscreen]) .panel{width:100%;max-width:100%;height:100%;max-height:100%;box-shadow:var(--mdui-elevation-level0)}.header{display:flex;flex-direction:column}.has-icon .header{align-items:center}.icon{display:flex;color:rgb(var(--mdui-color-secondary));font-size:1.5rem}.icon mdui-icon,::slotted([slot=icon]){font-size:inherit}.headline{display:flex;color:rgb(var(--mdui-color-on-surface));font-size:var(--mdui-typescale-headline-small-size);font-weight:var(--mdui-typescale-headline-small-weight);letter-spacing:var(--mdui-typescale-headline-small-tracking);line-height:var(--mdui-typescale-headline-small-line-height)}.icon+.headline{padding-top:1rem}.body{overflow:auto}.header+.body{margin-top:1rem}.description{display:flex;color:rgb(var(--mdui-color-on-surface-variant));font-size:var(--mdui-typescale-body-medium-size);font-weight:var(--mdui-typescale-body-medium-weight);letter-spacing:var(--mdui-typescale-body-medium-tracking);line-height:var(--mdui-typescale-body-medium-line-height)}:host([fullscreen]) .description{color:rgb(var(--mdui-color-on-surface))}.has-description.has-default .description{margin-bottom:1rem}.action{display:flex;justify-content:flex-end;padding-top:1.5rem}.action::slotted(:not(:first-child)){margin-left:.5rem}:host([stacked-actions]) .action{flex-direction:column;align-items:end}:host([stacked-actions]) .action::slotted(:not(:first-child)){margin-left:0;margin-top:.5rem}`;let Mi=class extends Te{constructor(){super(...arguments),this.open=!1,this.fullscreen=!1,this.closeOnEsc=!1,this.closeOnOverlayClick=!1,this.stackedActions=!1,this.overlayRef=ge(),this.panelRef=ge(),this.bodyRef=ge(),this.hasSlotController=new It(this,"header","icon","headline","description","action","[default]"),this.definedController=new zt(this,{relatedElements:["mdui-top-app-bar"]})}async onOpenChange(){const t=this.hasUpdated;if(!this.open&&!t)return;await this.definedController.whenDefined(),t||await this.updateComplete;const i=Array.from(this.panelRef.value.querySelectorAll(".header, .body, .actions")),r=Gt(this,"linear"),n=Gt(this,"emphasized-decelerate"),s=Gt(this,"emphasized-accelerate"),o=()=>Promise.all([yi(this.overlayRef.value),yi(this.panelRef.value),...i.map(a=>yi(a))]);if(this.open){if(t&&!this.emit("open",{cancelable:!0}))return;this.style.display="flex";const a=this.topAppBarElements??[];if(a.length){const c=a[0];c.scrollTarget||(c.scrollTarget=this.bodyRef.value),this.bodyRef.value.style.marginTop="0"}this.originalTrigger=document.activeElement,this.modalHelper.activate(),Uh(this),await o(),requestAnimationFrame(()=>{const c=this.querySelector("[autofocus]");c?c.focus({preventScroll:!0}):this.panelRef.value.focus({preventScroll:!0})});const l=Qi(this,"medium4");await Promise.all([We(this.overlayRef.value,[{opacity:0},{opacity:1,offset:.3},{opacity:1}],{duration:t?l:0,easing:r}),We(this.panelRef.value,[{transform:"translateY(-1.875rem) scaleY(0)"},{transform:"translateY(0) scaleY(1)"}],{duration:t?l:0,easing:n}),We(this.panelRef.value,[{opacity:0},{opacity:1,offset:.1},{opacity:1}],{duration:t?l:0,easing:r}),...i.map(c=>We(c,[{opacity:0},{opacity:0,offset:.2},{opacity:1,offset:.8},{opacity:1}],{duration:t?l:0,easing:r}))]),t&&this.emit("opened")}else{if(!this.emit("close",{cancelable:!0}))return;this.modalHelper.deactivate(),await o();const l=Qi(this,"short4");await Promise.all([We(this.overlayRef.value,[{opacity:1},{opacity:0}],{duration:l,easing:r}),We(this.panelRef.value,[{transform:"translateY(0) scaleY(1)"},{transform:"translateY(-1.875rem) scaleY(0.6)"}],{duration:l,easing:s}),We(this.panelRef.value,[{opacity:1},{opacity:1,offset:.75},{opacity:0}],{duration:l,easing:r}),...i.map(d=>We(d,[{opacity:1},{opacity:0,offset:.75},{opacity:0}],{duration:l,easing:r}))]),this.style.display="none",va(this);const c=this.originalTrigger;typeof(c==null?void 0:c.focus)=="function"&&setTimeout(()=>c.focus()),this.emit("closed")}}disconnectedCallback(){super.disconnectedCallback(),va(this),uc(this)}firstUpdated(t){super.firstUpdated(t),this.modalHelper=new Xy(this),this.addEventListener("keydown",i=>{this.open&&this.closeOnEsc&&i.key==="Escape"&&(i.stopPropagation(),this.open=!1)})}render(){const t=this.hasSlotController.test("action"),i=this.hasSlotController.test("[default]"),r=!!this.icon||this.hasSlotController.test("icon"),n=!!this.headline||this.hasSlotController.test("headline"),s=!!this.description||this.hasSlotController.test("description"),o=r||n||this.hasSlotController.test("header"),a=s||i;return P`
${Ze(o,()=>P`${Ze(r,()=>this.renderIcon())} ${Ze(n,()=>this.renderHeadline())}`)} ${Ze(a,()=>P`
${Ze(s,()=>this.renderDescription())}
`)} ${Ze(t,()=>P``)}
`}onOverlayClick(){this.emit("overlay-click"),this.closeOnOverlayClick&&(this.open=!1)}renderIcon(){return P`${this.icon?P``:Ve}`}renderHeadline(){return P`${this.headline}`}renderDescription(){return P`${this.description}`}};Mi.styles=[Ce,Fw];v([R({reflect:!0})],Mi.prototype,"icon",void 0);v([R({reflect:!0})],Mi.prototype,"headline",void 0);v([R({reflect:!0})],Mi.prototype,"description",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Mi.prototype,"open",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Mi.prototype,"fullscreen",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"close-on-esc"})],Mi.prototype,"closeOnEsc",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"close-on-overlay-click"})],Mi.prototype,"closeOnOverlayClick",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"stacked-actions"})],Mi.prototype,"stackedActions",void 0);v([Hi({slot:"header",selector:"mdui-top-app-bar",flatten:!0})],Mi.prototype,"topAppBarElements",void 0);v([re("open")],Mi.prototype,"onOpenChange",null);Mi=v([se("mdui-dialog")],Mi);const zw=pe`:host{display:block;height:.0625rem;background-color:rgb(var(--mdui-color-surface-variant))}:host([inset]){margin-left:1rem}:host([middle]){margin-left:1rem;margin-right:1rem}:host([vertical]){height:100%;width:.0625rem}`;let So=class extends Te{constructor(){super(...arguments),this.vertical=!1,this.inset=!1,this.middle=!1}render(){return P``}};So.styles=[Ce,zw];v([R({type:Boolean,reflect:!0,converter:Y})],So.prototype,"vertical",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],So.prototype,"inset",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],So.prototype,"middle",void 0);So=v([se("mdui-divider")],So);function Qy(e){return Jy(e)?(e.nodeName||"").toLowerCase():"#document"}function _l(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Hw(e){var t;return(t=(Jy(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Jy(e){return e instanceof Node||e instanceof _l(e).Node}function Uw(e){return e instanceof HTMLElement||e instanceof _l(e).HTMLElement}function Lm(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof _l(e).ShadowRoot}function eb(e){const{overflow:t,overflowX:i,overflowY:r,display:n}=Kw(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+i)&&!["inline","contents"].includes(n)}function Vw(e){return["html","body","#document"].includes(Qy(e))}function Kw(e){return _l(e).getComputedStyle(e)}function Ww(e){if(Qy(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Lm(e)&&e.host||Hw(e);return Lm(t)?t.host:t}function tb(e){const t=Ww(e);return Vw(t)?e.ownerDocument?e.ownerDocument.body:e.body:Uw(t)&&eb(t)?t:tb(t)}function Kc(e,t,i){var r;t===void 0&&(t=[]),i===void 0&&(i=!0);const n=tb(e),s=n===((r=e.ownerDocument)==null?void 0:r.body),o=_l(n);return s?t.concat(o,o.visualViewport||[],eb(n)?n:[],o.frameElement&&i?Kc(o.frameElement):[]):t.concat(n,Kc(n,[],i))}const qw=pe`:host{--z-index:2100;display:contents}.panel{display:block;position:fixed;z-index:var(--z-index)}`;let li=class extends Te{constructor(){super(),this.open=!1,this.disabled=!1,this.trigger="click",this.placement="auto",this.stayOpenOnClick=!1,this.openDelay=150,this.closeDelay=150,this.openOnPointer=!1,this.panelRef=ge(),this.definedController=new zt(this,{relatedElements:[""]}),this.onDocumentClick=this.onDocumentClick.bind(this),this.onDocumentKeydown=this.onDocumentKeydown.bind(this),this.onWindowScroll=this.onWindowScroll.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this),this.onFocus=this.onFocus.bind(this),this.onClick=this.onClick.bind(this),this.onContextMenu=this.onContextMenu.bind(this),this.onMouseEnter=this.onMouseEnter.bind(this),this.onPanelClick=this.onPanelClick.bind(this)}get triggerElement(){return this.triggerElements[0]}async onPositionChange(){this.open&&(await this.definedController.whenDefined(),this.updatePositioner())}async onOpenChange(){var s,o;const t=this.hasUpdated;if(!this.open&&!t)return;await this.definedController.whenDefined(),t||await this.updateComplete;const i=Gt(this,"linear"),r=Gt(this,"emphasized-decelerate"),n=Gt(this,"emphasized-accelerate");if(this.open){if(t&&!this.emit("open",{cancelable:!0}))return;const a=this.panelElements.find(c=>ft(c.focus));setTimeout(()=>{a==null||a.focus()});const l=Qi(this,"medium4");await yi(this.panelRef.value),this.panelRef.value.hidden=!1,this.updatePositioner(),await Promise.all([We(this.panelRef.value,[{transform:`${this.getCssScaleName()}(0.45)`},{transform:`${this.getCssScaleName()}(1)`}],{duration:t?l:0,easing:r}),We(this.panelRef.value,[{opacity:0},{opacity:1,offset:.125},{opacity:1}],{duration:t?l:0,easing:i})]),t&&this.emit("opened")}else{if(!this.emit("close",{cancelable:!0}))return;!this.hasTrigger("focus")&&ft((s=this.triggerElement)==null?void 0:s.focus)&&(this.contains(document.activeElement)||this.contains(((o=document.activeElement)==null?void 0:o.assignedSlot)??null))&&this.triggerElement.focus();const l=Qi(this,"short4");await yi(this.panelRef.value),await Promise.all([We(this.panelRef.value,[{transform:`${this.getCssScaleName()}(1)`},{transform:`${this.getCssScaleName()}(0.45)`}],{duration:l,easing:n}),We(this.panelRef.value,[{opacity:1},{opacity:1,offset:.875},{opacity:0}],{duration:l,easing:i})]),this.panelRef.value&&(this.panelRef.value.hidden=!0),this.emit("closed")}}connectedCallback(){super.connectedCallback(),this.definedController.whenDefined().then(()=>{document.addEventListener("pointerdown",this.onDocumentClick),document.addEventListener("keydown",this.onDocumentKeydown),this.overflowAncestors=Kc(this.triggerElement),this.overflowAncestors.forEach(t=>{t.addEventListener("scroll",this.onWindowScroll)})})}disconnectedCallback(){var t,i;super.disconnectedCallback(),document.removeEventListener("pointerdown",this.onDocumentClick),document.removeEventListener("keydown",this.onDocumentKeydown),(t=this.overflowAncestors)==null||t.forEach(r=>{r.removeEventListener("scroll",this.onWindowScroll)}),(i=this.observeResize)==null||i.unobserve()}firstUpdated(t){super.firstUpdated(t),this.addEventListener("mouseleave",this.onMouseLeave),this.definedController.whenDefined().then(()=>{this.triggerElement.addEventListener("focus",this.onFocus),this.triggerElement.addEventListener("click",this.onClick),this.triggerElement.addEventListener("contextmenu",this.onContextMenu),this.triggerElement.addEventListener("mouseenter",this.onMouseEnter),this.observeResize=Ds(this.triggerElement,()=>{this.updatePositioner()})})}render(){return P``}getCssScaleName(){return this.animateDirection==="horizontal"?"scaleX":"scaleY"}onDocumentClick(t){if(this.disabled||!this.open)return;const i=t.composedPath();i.includes(this)||(this.open=!1),this.hasTrigger("contextmenu")&&!this.hasTrigger("click")&&i.includes(this.triggerElement)&&(this.open=!1)}onDocumentKeydown(t){var i;if(!(this.disabled||!this.open)){if(t.key==="Escape"){this.open=!1;return}t.key==="Tab"&&(!this.hasTrigger("focus")&&ft((i=this.triggerElement)==null?void 0:i.focus)&&t.preventDefault(),this.open=!1)}}onWindowScroll(){window.requestAnimationFrame(()=>this.onPositionChange())}hasTrigger(t){return this.trigger.split(" ").includes(t)}onFocus(){this.disabled||this.open||!this.hasTrigger("focus")||(this.open=!0)}onClick(t){this.disabled||t.button||!this.hasTrigger("click")||this.open&&(this.hasTrigger("hover")||this.hasTrigger("focus"))||(this.pointerOffsetX=t.offsetX,this.pointerOffsetY=t.offsetY,this.open=!this.open)}onPanelClick(t){!this.disabled&&!this.stayOpenOnClick&&O(t.target).is("mdui-menu-item")&&(this.open=!1)}onContextMenu(t){this.disabled||!this.hasTrigger("contextmenu")||(t.preventDefault(),this.pointerOffsetX=t.offsetX,this.pointerOffsetY=t.offsetY,this.open=!0)}onMouseEnter(){this.disabled||!this.hasTrigger("hover")||(window.clearTimeout(this.closeTimeout),this.openDelay?this.openTimeout=window.setTimeout(()=>{this.open=!0},this.openDelay):this.open=!0)}onMouseLeave(){this.disabled||!this.hasTrigger("hover")||(window.clearTimeout(this.openTimeout),this.closeTimeout=window.setTimeout(()=>{this.open=!1},this.closeDelay||50))}updatePositioner(){const t=O(this.panelRef.value),i=O(window),r=this.panelElements,n={width:Math.max(...(r==null?void 0:r.map(b=>b.offsetWidth))??[]),height:r==null?void 0:r.map(b=>b.offsetHeight).reduce((b,w)=>b+w,0)},s=this.triggerElement.getBoundingClientRect(),o=this.openOnPointer?{top:this.pointerOffsetY+s.top,left:this.pointerOffsetX+s.left,width:0,height:0}:s,a=8;let l,c,d,u,h=this.placement;if(h==="auto"){const b=i.width(),w=i.height();let x,m;w-o.top-o.height>n.height+a?x="bottom":o.top>n.height+a?x="top":b-o.left-o.width>n.width+a?x="right":o.left>n.width+a?x="left":x="bottom",["top","bottom"].includes(x)?b-o.left>n.width+a?m="start":o.left+o.width/2>n.width/2+a&&b-o.left-o.width/2>n.width/2+a?m=void 0:o.left+o.width>n.width+a?m="end":m="start":w-o.top>n.height+a?m="start":o.top+o.height/2>n.height/2+a&&w-o.top-o.height/2>n.height/2+a?m=void 0:o.top+o.height>n.height+a?m="end":m="start",h=m?[x,m].join("-"):x}const[f,g]=h.split("-");switch(this.animateDirection=["top","bottom"].includes(f)?"vertical":"horizontal",f){case"top":c="bottom",d=o.top-n.height;break;case"bottom":c="top",d=o.top+o.height;break;default:switch(c="center",g){case"start":d=o.top;break;case"end":d=o.top+o.height-n.height;break;default:d=o.top+o.height/2-n.height/2;break}break}switch(f){case"left":l="right",u=o.left-n.width;break;case"right":l="left",u=o.left+o.width;break;default:switch(l="center",g){case"start":u=o.left;break;case"end":u=o.left+o.width-n.width;break;default:u=o.left+o.width/2-n.width/2;break}break}t.css({top:d,left:u,transformOrigin:[l,c].join(" ")})}};li.styles=[Ce,qw];v([R({type:Boolean,reflect:!0,converter:Y})],li.prototype,"open",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],li.prototype,"disabled",void 0);v([R({reflect:!0})],li.prototype,"trigger",void 0);v([R({reflect:!0})],li.prototype,"placement",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"stay-open-on-click"})],li.prototype,"stayOpenOnClick",void 0);v([R({type:Number,reflect:!0,attribute:"open-delay"})],li.prototype,"openDelay",void 0);v([R({type:Number,reflect:!0,attribute:"close-delay"})],li.prototype,"closeDelay",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"open-on-pointer"})],li.prototype,"openOnPointer",void 0);v([Hi({slot:"trigger",flatten:!0})],li.prototype,"triggerElements",void 0);v([Hi({flatten:!0})],li.prototype,"panelElements",void 0);v([re("placement",!0),re("openOnPointer",!0)],li.prototype,"onPositionChange",null);v([re("open")],li.prototype,"onOpenChange",null);li=v([se("mdui-dropdown")],li);const ib=(e=0)=>new Promise(t=>setTimeout(t,e)),jw=pe`:host{--shape-corner-small:var(--mdui-shape-corner-small);--shape-corner-normal:var(--mdui-shape-corner-large);--shape-corner-large:var(--mdui-shape-corner-extra-large);position:relative;display:inline-block;overflow:hidden;text-align:center;border-radius:var(--shape-corner-normal);cursor:pointer;-webkit-tap-highlight-color:transparent;transition-property:box-shadow;transition-timing-function:var(--mdui-motion-easing-emphasized);transition-duration:var(--mdui-motion-duration-medium4);width:3.5rem;height:3.5rem;box-shadow:var(--mdui-elevation-level3);font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking);line-height:var(--mdui-typescale-label-large-line-height)}.button{padding:0 1rem}:host([size=small]) .button{padding:0 .5rem}:host([size=large]) .button{padding:0 1.875rem}:host([lowered]){box-shadow:var(--mdui-elevation-level1)}:host([focus-visible]){box-shadow:var(--mdui-elevation-level3)}:host([lowered][focus-visible]){box-shadow:var(--mdui-elevation-level1)}:host([pressed]){box-shadow:var(--mdui-elevation-level3)}:host([lowered][pressed]){box-shadow:var(--mdui-elevation-level1)}:host([hover]){box-shadow:var(--mdui-elevation-level4)}:host([lowered][hover]){box-shadow:var(--mdui-elevation-level2)}:host([variant=primary]){color:rgb(var(--mdui-color-on-primary-container));background-color:rgb(var(--mdui-color-primary-container));--mdui-comp-ripple-state-layer-color:var( + */let Mw=Pw,Om=!1;const dc=new Map,Nw=(e,t)=>{Om||(Om=!0,Dn().addEventListener(Bw,n=>{n.detail.status==="ready"&&dc.forEach(s=>{s.forEach(o=>o())})}));const i=dc.get(e)||[];i.push(t),dc.set(e,i)},uc=e=>{dc.delete(e)},Fw=pe`:host{--shape-corner:var(--mdui-shape-corner-extra-large);--z-index:2300;position:fixed;z-index:var(--z-index);display:none;align-items:center;justify-content:center;inset:0;padding:3rem}::slotted(mdui-top-app-bar[slot=header]){position:absolute;border-top-left-radius:var(--mdui-shape-corner-extra-large);border-top-right-radius:var(--mdui-shape-corner-extra-large);background-color:rgb(var(--mdui-color-surface-container-high))}:host([fullscreen]){--shape-corner:var(--mdui-shape-corner-none);padding:0}:host([fullscreen]) ::slotted(mdui-top-app-bar[slot=header]){border-top-left-radius:var(--mdui-shape-corner-none);border-top-right-radius:var(--mdui-shape-corner-none)}.overlay{position:fixed;inset:0;background-color:rgba(var(--mdui-color-scrim),.4)}.panel{position:relative;display:flex;flex-direction:column;max-height:100%;border-radius:var(--shape-corner);outline:0;transform-origin:top;min-width:17.5rem;max-width:35rem;padding:1.5rem;background-color:rgb(var(--mdui-color-surface-container-high));box-shadow:var(--mdui-elevation-level3)}:host([fullscreen]) .panel{width:100%;max-width:100%;height:100%;max-height:100%;box-shadow:var(--mdui-elevation-level0)}.header{display:flex;flex-direction:column}.has-icon .header{align-items:center}.icon{display:flex;color:rgb(var(--mdui-color-secondary));font-size:1.5rem}.icon mdui-icon,::slotted([slot=icon]){font-size:inherit}.headline{display:flex;color:rgb(var(--mdui-color-on-surface));font-size:var(--mdui-typescale-headline-small-size);font-weight:var(--mdui-typescale-headline-small-weight);letter-spacing:var(--mdui-typescale-headline-small-tracking);line-height:var(--mdui-typescale-headline-small-line-height)}.icon+.headline{padding-top:1rem}.body{overflow:auto}.header+.body{margin-top:1rem}.description{display:flex;color:rgb(var(--mdui-color-on-surface-variant));font-size:var(--mdui-typescale-body-medium-size);font-weight:var(--mdui-typescale-body-medium-weight);letter-spacing:var(--mdui-typescale-body-medium-tracking);line-height:var(--mdui-typescale-body-medium-line-height)}:host([fullscreen]) .description{color:rgb(var(--mdui-color-on-surface))}.has-description.has-default .description{margin-bottom:1rem}.action{display:flex;justify-content:flex-end;padding-top:1.5rem}.action::slotted(:not(:first-child)){margin-left:.5rem}:host([stacked-actions]) .action{flex-direction:column;align-items:end}:host([stacked-actions]) .action::slotted(:not(:first-child)){margin-left:0;margin-top:.5rem}`;let Mi=class extends Re{constructor(){super(...arguments),this.open=!1,this.fullscreen=!1,this.closeOnEsc=!1,this.closeOnOverlayClick=!1,this.stackedActions=!1,this.overlayRef=ge(),this.panelRef=ge(),this.bodyRef=ge(),this.hasSlotController=new It(this,"header","icon","headline","description","action","[default]"),this.definedController=new zt(this,{relatedElements:["mdui-top-app-bar"]})}async onOpenChange(){const t=this.hasUpdated;if(!this.open&&!t)return;await this.definedController.whenDefined(),t||await this.updateComplete;const i=Array.from(this.panelRef.value.querySelectorAll(".header, .body, .actions")),r=Gt(this,"linear"),n=Gt(this,"emphasized-decelerate"),s=Gt(this,"emphasized-accelerate"),o=()=>Promise.all([yi(this.overlayRef.value),yi(this.panelRef.value),...i.map(a=>yi(a))]);if(this.open){if(t&&!this.emit("open",{cancelable:!0}))return;this.style.display="flex";const a=this.topAppBarElements??[];if(a.length){const c=a[0];c.scrollTarget||(c.scrollTarget=this.bodyRef.value),this.bodyRef.value.style.marginTop="0"}this.originalTrigger=document.activeElement,this.modalHelper.activate(),Uh(this),await o(),requestAnimationFrame(()=>{const c=this.querySelector("[autofocus]");c?c.focus({preventScroll:!0}):this.panelRef.value.focus({preventScroll:!0})});const l=Qi(this,"medium4");await Promise.all([We(this.overlayRef.value,[{opacity:0},{opacity:1,offset:.3},{opacity:1}],{duration:t?l:0,easing:r}),We(this.panelRef.value,[{transform:"translateY(-1.875rem) scaleY(0)"},{transform:"translateY(0) scaleY(1)"}],{duration:t?l:0,easing:n}),We(this.panelRef.value,[{opacity:0},{opacity:1,offset:.1},{opacity:1}],{duration:t?l:0,easing:r}),...i.map(c=>We(c,[{opacity:0},{opacity:0,offset:.2},{opacity:1,offset:.8},{opacity:1}],{duration:t?l:0,easing:r}))]),t&&this.emit("opened")}else{if(!this.emit("close",{cancelable:!0}))return;this.modalHelper.deactivate(),await o();const l=Qi(this,"short4");await Promise.all([We(this.overlayRef.value,[{opacity:1},{opacity:0}],{duration:l,easing:r}),We(this.panelRef.value,[{transform:"translateY(0) scaleY(1)"},{transform:"translateY(-1.875rem) scaleY(0.6)"}],{duration:l,easing:s}),We(this.panelRef.value,[{opacity:1},{opacity:1,offset:.75},{opacity:0}],{duration:l,easing:r}),...i.map(d=>We(d,[{opacity:1},{opacity:0,offset:.75},{opacity:0}],{duration:l,easing:r}))]),this.style.display="none",va(this);const c=this.originalTrigger;typeof(c==null?void 0:c.focus)=="function"&&setTimeout(()=>c.focus()),this.emit("closed")}}disconnectedCallback(){super.disconnectedCallback(),va(this),uc(this)}firstUpdated(t){super.firstUpdated(t),this.modalHelper=new Xy(this),this.addEventListener("keydown",i=>{this.open&&this.closeOnEsc&&i.key==="Escape"&&(i.stopPropagation(),this.open=!1)})}render(){const t=this.hasSlotController.test("action"),i=this.hasSlotController.test("[default]"),r=!!this.icon||this.hasSlotController.test("icon"),n=!!this.headline||this.hasSlotController.test("headline"),s=!!this.description||this.hasSlotController.test("description"),o=r||n||this.hasSlotController.test("header"),a=s||i;return P`
${Ze(o,()=>P`${Ze(r,()=>this.renderIcon())} ${Ze(n,()=>this.renderHeadline())}`)} ${Ze(a,()=>P`
${Ze(s,()=>this.renderDescription())}
`)} ${Ze(t,()=>P``)}
`}onOverlayClick(){this.emit("overlay-click"),this.closeOnOverlayClick&&(this.open=!1)}renderIcon(){return P`${this.icon?P``:Ve}`}renderHeadline(){return P`${this.headline}`}renderDescription(){return P`${this.description}`}};Mi.styles=[Ce,Fw];v([R({reflect:!0})],Mi.prototype,"icon",void 0);v([R({reflect:!0})],Mi.prototype,"headline",void 0);v([R({reflect:!0})],Mi.prototype,"description",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Mi.prototype,"open",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Mi.prototype,"fullscreen",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"close-on-esc"})],Mi.prototype,"closeOnEsc",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"close-on-overlay-click"})],Mi.prototype,"closeOnOverlayClick",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"stacked-actions"})],Mi.prototype,"stackedActions",void 0);v([Hi({slot:"header",selector:"mdui-top-app-bar",flatten:!0})],Mi.prototype,"topAppBarElements",void 0);v([re("open")],Mi.prototype,"onOpenChange",null);Mi=v([se("mdui-dialog")],Mi);const zw=pe`:host{display:block;height:.0625rem;background-color:rgb(var(--mdui-color-surface-variant))}:host([inset]){margin-left:1rem}:host([middle]){margin-left:1rem;margin-right:1rem}:host([vertical]){height:100%;width:.0625rem}`;let So=class extends Re{constructor(){super(...arguments),this.vertical=!1,this.inset=!1,this.middle=!1}render(){return P``}};So.styles=[Ce,zw];v([R({type:Boolean,reflect:!0,converter:Y})],So.prototype,"vertical",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],So.prototype,"inset",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],So.prototype,"middle",void 0);So=v([se("mdui-divider")],So);function Qy(e){return Jy(e)?(e.nodeName||"").toLowerCase():"#document"}function _l(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Hw(e){var t;return(t=(Jy(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Jy(e){return e instanceof Node||e instanceof _l(e).Node}function Uw(e){return e instanceof HTMLElement||e instanceof _l(e).HTMLElement}function Lm(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof _l(e).ShadowRoot}function eb(e){const{overflow:t,overflowX:i,overflowY:r,display:n}=Kw(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+i)&&!["inline","contents"].includes(n)}function Vw(e){return["html","body","#document"].includes(Qy(e))}function Kw(e){return _l(e).getComputedStyle(e)}function Ww(e){if(Qy(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Lm(e)&&e.host||Hw(e);return Lm(t)?t.host:t}function tb(e){const t=Ww(e);return Vw(t)?e.ownerDocument?e.ownerDocument.body:e.body:Uw(t)&&eb(t)?t:tb(t)}function Kc(e,t,i){var r;t===void 0&&(t=[]),i===void 0&&(i=!0);const n=tb(e),s=n===((r=e.ownerDocument)==null?void 0:r.body),o=_l(n);return s?t.concat(o,o.visualViewport||[],eb(n)?n:[],o.frameElement&&i?Kc(o.frameElement):[]):t.concat(n,Kc(n,[],i))}const qw=pe`:host{--z-index:2100;display:contents}.panel{display:block;position:fixed;z-index:var(--z-index)}`;let li=class extends Re{constructor(){super(),this.open=!1,this.disabled=!1,this.trigger="click",this.placement="auto",this.stayOpenOnClick=!1,this.openDelay=150,this.closeDelay=150,this.openOnPointer=!1,this.panelRef=ge(),this.definedController=new zt(this,{relatedElements:[""]}),this.onDocumentClick=this.onDocumentClick.bind(this),this.onDocumentKeydown=this.onDocumentKeydown.bind(this),this.onWindowScroll=this.onWindowScroll.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this),this.onFocus=this.onFocus.bind(this),this.onClick=this.onClick.bind(this),this.onContextMenu=this.onContextMenu.bind(this),this.onMouseEnter=this.onMouseEnter.bind(this),this.onPanelClick=this.onPanelClick.bind(this)}get triggerElement(){return this.triggerElements[0]}async onPositionChange(){this.open&&(await this.definedController.whenDefined(),this.updatePositioner())}async onOpenChange(){var s,o;const t=this.hasUpdated;if(!this.open&&!t)return;await this.definedController.whenDefined(),t||await this.updateComplete;const i=Gt(this,"linear"),r=Gt(this,"emphasized-decelerate"),n=Gt(this,"emphasized-accelerate");if(this.open){if(t&&!this.emit("open",{cancelable:!0}))return;const a=this.panelElements.find(c=>ft(c.focus));setTimeout(()=>{a==null||a.focus()});const l=Qi(this,"medium4");await yi(this.panelRef.value),this.panelRef.value.hidden=!1,this.updatePositioner(),await Promise.all([We(this.panelRef.value,[{transform:`${this.getCssScaleName()}(0.45)`},{transform:`${this.getCssScaleName()}(1)`}],{duration:t?l:0,easing:r}),We(this.panelRef.value,[{opacity:0},{opacity:1,offset:.125},{opacity:1}],{duration:t?l:0,easing:i})]),t&&this.emit("opened")}else{if(!this.emit("close",{cancelable:!0}))return;!this.hasTrigger("focus")&&ft((s=this.triggerElement)==null?void 0:s.focus)&&(this.contains(document.activeElement)||this.contains(((o=document.activeElement)==null?void 0:o.assignedSlot)??null))&&this.triggerElement.focus();const l=Qi(this,"short4");await yi(this.panelRef.value),await Promise.all([We(this.panelRef.value,[{transform:`${this.getCssScaleName()}(1)`},{transform:`${this.getCssScaleName()}(0.45)`}],{duration:l,easing:n}),We(this.panelRef.value,[{opacity:1},{opacity:1,offset:.875},{opacity:0}],{duration:l,easing:i})]),this.panelRef.value&&(this.panelRef.value.hidden=!0),this.emit("closed")}}connectedCallback(){super.connectedCallback(),this.definedController.whenDefined().then(()=>{document.addEventListener("pointerdown",this.onDocumentClick),document.addEventListener("keydown",this.onDocumentKeydown),this.overflowAncestors=Kc(this.triggerElement),this.overflowAncestors.forEach(t=>{t.addEventListener("scroll",this.onWindowScroll)})})}disconnectedCallback(){var t,i;super.disconnectedCallback(),document.removeEventListener("pointerdown",this.onDocumentClick),document.removeEventListener("keydown",this.onDocumentKeydown),(t=this.overflowAncestors)==null||t.forEach(r=>{r.removeEventListener("scroll",this.onWindowScroll)}),(i=this.observeResize)==null||i.unobserve()}firstUpdated(t){super.firstUpdated(t),this.addEventListener("mouseleave",this.onMouseLeave),this.definedController.whenDefined().then(()=>{this.triggerElement.addEventListener("focus",this.onFocus),this.triggerElement.addEventListener("click",this.onClick),this.triggerElement.addEventListener("contextmenu",this.onContextMenu),this.triggerElement.addEventListener("mouseenter",this.onMouseEnter),this.observeResize=Ds(this.triggerElement,()=>{this.updatePositioner()})})}render(){return P``}getCssScaleName(){return this.animateDirection==="horizontal"?"scaleX":"scaleY"}onDocumentClick(t){if(this.disabled||!this.open)return;const i=t.composedPath();i.includes(this)||(this.open=!1),this.hasTrigger("contextmenu")&&!this.hasTrigger("click")&&i.includes(this.triggerElement)&&(this.open=!1)}onDocumentKeydown(t){var i;if(!(this.disabled||!this.open)){if(t.key==="Escape"){this.open=!1;return}t.key==="Tab"&&(!this.hasTrigger("focus")&&ft((i=this.triggerElement)==null?void 0:i.focus)&&t.preventDefault(),this.open=!1)}}onWindowScroll(){window.requestAnimationFrame(()=>this.onPositionChange())}hasTrigger(t){return this.trigger.split(" ").includes(t)}onFocus(){this.disabled||this.open||!this.hasTrigger("focus")||(this.open=!0)}onClick(t){this.disabled||t.button||!this.hasTrigger("click")||this.open&&(this.hasTrigger("hover")||this.hasTrigger("focus"))||(this.pointerOffsetX=t.offsetX,this.pointerOffsetY=t.offsetY,this.open=!this.open)}onPanelClick(t){!this.disabled&&!this.stayOpenOnClick&&O(t.target).is("mdui-menu-item")&&(this.open=!1)}onContextMenu(t){this.disabled||!this.hasTrigger("contextmenu")||(t.preventDefault(),this.pointerOffsetX=t.offsetX,this.pointerOffsetY=t.offsetY,this.open=!0)}onMouseEnter(){this.disabled||!this.hasTrigger("hover")||(window.clearTimeout(this.closeTimeout),this.openDelay?this.openTimeout=window.setTimeout(()=>{this.open=!0},this.openDelay):this.open=!0)}onMouseLeave(){this.disabled||!this.hasTrigger("hover")||(window.clearTimeout(this.openTimeout),this.closeTimeout=window.setTimeout(()=>{this.open=!1},this.closeDelay||50))}updatePositioner(){const t=O(this.panelRef.value),i=O(window),r=this.panelElements,n={width:Math.max(...(r==null?void 0:r.map(b=>b.offsetWidth))??[]),height:r==null?void 0:r.map(b=>b.offsetHeight).reduce((b,w)=>b+w,0)},s=this.triggerElement.getBoundingClientRect(),o=this.openOnPointer?{top:this.pointerOffsetY+s.top,left:this.pointerOffsetX+s.left,width:0,height:0}:s,a=8;let l,c,d,u,h=this.placement;if(h==="auto"){const b=i.width(),w=i.height();let x,m;w-o.top-o.height>n.height+a?x="bottom":o.top>n.height+a?x="top":b-o.left-o.width>n.width+a?x="right":o.left>n.width+a?x="left":x="bottom",["top","bottom"].includes(x)?b-o.left>n.width+a?m="start":o.left+o.width/2>n.width/2+a&&b-o.left-o.width/2>n.width/2+a?m=void 0:o.left+o.width>n.width+a?m="end":m="start":w-o.top>n.height+a?m="start":o.top+o.height/2>n.height/2+a&&w-o.top-o.height/2>n.height/2+a?m=void 0:o.top+o.height>n.height+a?m="end":m="start",h=m?[x,m].join("-"):x}const[f,g]=h.split("-");switch(this.animateDirection=["top","bottom"].includes(f)?"vertical":"horizontal",f){case"top":c="bottom",d=o.top-n.height;break;case"bottom":c="top",d=o.top+o.height;break;default:switch(c="center",g){case"start":d=o.top;break;case"end":d=o.top+o.height-n.height;break;default:d=o.top+o.height/2-n.height/2;break}break}switch(f){case"left":l="right",u=o.left-n.width;break;case"right":l="left",u=o.left+o.width;break;default:switch(l="center",g){case"start":u=o.left;break;case"end":u=o.left+o.width-n.width;break;default:u=o.left+o.width/2-n.width/2;break}break}t.css({top:d,left:u,transformOrigin:[l,c].join(" ")})}};li.styles=[Ce,qw];v([R({type:Boolean,reflect:!0,converter:Y})],li.prototype,"open",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],li.prototype,"disabled",void 0);v([R({reflect:!0})],li.prototype,"trigger",void 0);v([R({reflect:!0})],li.prototype,"placement",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"stay-open-on-click"})],li.prototype,"stayOpenOnClick",void 0);v([R({type:Number,reflect:!0,attribute:"open-delay"})],li.prototype,"openDelay",void 0);v([R({type:Number,reflect:!0,attribute:"close-delay"})],li.prototype,"closeDelay",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"open-on-pointer"})],li.prototype,"openOnPointer",void 0);v([Hi({slot:"trigger",flatten:!0})],li.prototype,"triggerElements",void 0);v([Hi({flatten:!0})],li.prototype,"panelElements",void 0);v([re("placement",!0),re("openOnPointer",!0)],li.prototype,"onPositionChange",null);v([re("open")],li.prototype,"onOpenChange",null);li=v([se("mdui-dropdown")],li);const ib=(e=0)=>new Promise(t=>setTimeout(t,e)),jw=pe`:host{--shape-corner-small:var(--mdui-shape-corner-small);--shape-corner-normal:var(--mdui-shape-corner-large);--shape-corner-large:var(--mdui-shape-corner-extra-large);position:relative;display:inline-block;overflow:hidden;text-align:center;border-radius:var(--shape-corner-normal);cursor:pointer;-webkit-tap-highlight-color:transparent;transition-property:box-shadow;transition-timing-function:var(--mdui-motion-easing-emphasized);transition-duration:var(--mdui-motion-duration-medium4);width:3.5rem;height:3.5rem;box-shadow:var(--mdui-elevation-level3);font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking);line-height:var(--mdui-typescale-label-large-line-height)}.button{padding:0 1rem}:host([size=small]) .button{padding:0 .5rem}:host([size=large]) .button{padding:0 1.875rem}:host([lowered]){box-shadow:var(--mdui-elevation-level1)}:host([focus-visible]){box-shadow:var(--mdui-elevation-level3)}:host([lowered][focus-visible]){box-shadow:var(--mdui-elevation-level1)}:host([pressed]){box-shadow:var(--mdui-elevation-level3)}:host([lowered][pressed]){box-shadow:var(--mdui-elevation-level1)}:host([hover]){box-shadow:var(--mdui-elevation-level4)}:host([lowered][hover]){box-shadow:var(--mdui-elevation-level2)}:host([variant=primary]){color:rgb(var(--mdui-color-on-primary-container));background-color:rgb(var(--mdui-color-primary-container));--mdui-comp-ripple-state-layer-color:var( --mdui-color-on-primary-container )}:host([variant=surface]){color:rgb(var(--mdui-color-primary));background-color:rgb(var(--mdui-color-surface-container-high));--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([variant=surface][lowered]){background-color:rgb(var(--mdui-color-surface-container-low))}:host([variant=secondary]){color:rgb(var(--mdui-color-on-secondary-container));background-color:rgb(var(--mdui-color-secondary-container));--mdui-comp-ripple-state-layer-color:var( --mdui-color-on-secondary-container )}:host([variant=tertiary]){color:rgb(var(--mdui-color-on-tertiary-container));background-color:rgb(var(--mdui-color-tertiary-container));--mdui-comp-ripple-state-layer-color:var( --mdui-color-on-tertiary-container - )}:host([size=small]){border-radius:var(--shape-corner-small);width:2.5rem;height:2.5rem}:host([size=large]){border-radius:var(--shape-corner-large);width:6rem;height:6rem}:host([disabled]),:host([loading]){cursor:default;pointer-events:none}:host([disabled]){color:rgba(var(--mdui-color-on-surface),38%);background-color:rgba(var(--mdui-color-on-surface),12%);box-shadow:var(--mdui-elevation-level0)}:host([extended]){width:auto}.label{display:inline-flex;transition:opacity var(--mdui-motion-duration-short2) var(--mdui-motion-easing-linear) var(--mdui-motion-duration-short2);padding-left:.25rem;padding-right:.25rem}.has-icon .label{margin-left:.5rem}:host([size=small]) .has-icon .label{margin-left:.25rem}:host([size=large]) .has-icon .label{margin-left:1rem}:host(:not([extended])) .label{opacity:0;transition-delay:0s;transition-duration:var(--mdui-motion-duration-short1)}:host([size=large]) .label{font-size:1.5em}.icon{display:inline-flex;font-size:1.71428571em}:host([size=large]) .icon{font-size:2.57142857em}.icon mdui-icon,::slotted([slot=icon]){font-size:inherit}mdui-circular-progress{display:inline-flex;width:1.5rem;height:1.5rem}:host([size=large]) mdui-circular-progress{width:2.25rem;height:2.25rem}:host([disabled]) mdui-circular-progress{stroke:rgba(var(--mdui-color-on-surface),38%)}`;let An=class extends st{constructor(){super(...arguments),this.variant="primary",this.size="normal",this.extended=!1,this.rippleRef=ge(),this.hasSlotController=new It(this,"icon"),this.definedController=new zt(this,{relatedElements:[""]})}get rippleElement(){return this.rippleRef.value}async onExtendedChange(){const t=this.hasUpdated;this.extended?this.style.width=`${this.scrollWidth}px`:this.style.width="",await this.definedController.whenDefined(),await this.updateComplete,this.extended&&!t&&(this.style.width=`${this.scrollWidth}px`),t||(await ib(),this.style.transitionProperty="box-shadow, width, bottom, transform")}render(){const t=wr({button:!0,"has-icon":this.icon||this.hasSlotController.test("icon")});return P`${this.isButton()?this.renderButton({className:t,part:"button",content:this.renderInner()}):this.disabled||this.loading?P`${this.renderInner()}`:this.renderAnchor({className:t,part:"button",content:this.renderInner()})}`}renderLabel(){return P``}renderIcon(){return this.loading?this.renderLoading():P`${this.icon?P``:Ve}`}renderInner(){return[this.renderIcon(),this.renderLabel()]}};An.styles=[st.styles,jw];v([R({reflect:!0})],An.prototype,"variant",void 0);v([R({reflect:!0})],An.prototype,"size",void 0);v([R({reflect:!0})],An.prototype,"icon",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],An.prototype,"extended",void 0);v([re("extended")],An.prototype,"onExtendedChange",null);An=v([se("mdui-fab")],An);const Yw=pe`:host{position:relative;display:flex;flex:1 1 auto;overflow:hidden}:host([full-height]){height:100%}`;let Wc=class extends Te{constructor(){super(...arguments),this.fullHeight=!1}render(){return P``}};Wc.styles=[Ce,Yw];v([R({type:Boolean,reflect:!0,converter:Y,attribute:"full-height"})],Wc.prototype,"fullHeight",void 0);Wc=v([se("mdui-layout")],Wc);const Zw=pe`:host{display:flex;z-index:1}`;let ja=class extends Bn{constructor(){super(...arguments),this.placement="top"}get layoutPlacement(){return this.placement}onPlacementChange(){var t;(t=this.layoutManager)==null||t.updateLayout(this)}render(){return P``}};ja.styles=[Ce,Zw];v([R({reflect:!0})],ja.prototype,"placement",void 0);v([re("placement",!0)],ja.prototype,"onPlacementChange",null);ja=v([se("mdui-layout-item")],ja);const Xw=pe`:host{flex:1 0 auto;max-width:100%;overflow:auto}`;let Vh=class extends Te{connectedCallback(){super.connectedCallback();const t=this.parentElement;vl(t,"mdui-layout")&&(this.layoutManager=Yy(t),this.layoutManager.registerMain(this))}disconnectedCallback(){super.disconnectedCallback(),this.layoutManager&&this.layoutManager.unregisterMain()}render(){return P``}};Vh.styles=[Ce,Xw];Vh=v([se("mdui-layout-main")],Vh);const Gw=pe`:host{--shape-corner:var(--mdui-shape-corner-none);position:relative;display:inline-block;width:100%;overflow:hidden;border-radius:var(--shape-corner);background-color:rgb(var(--mdui-color-surface-container-highest));height:.25rem}.determinate,.indeterminate{background-color:rgb(var(--mdui-color-primary))}.determinate{height:100%;transition:width var(--mdui-motion-duration-long2) var(--mdui-motion-easing-standard)}.indeterminate::before{position:absolute;top:0;bottom:0;left:0;background-color:inherit;animation:mdui-comp-progress-indeterminate 2s var(--mdui-motion-easing-linear) infinite;content:' '}.indeterminate::after{position:absolute;top:0;bottom:0;left:0;background-color:inherit;animation:mdui-comp-progress-indeterminate-short 2s var(--mdui-motion-easing-linear) infinite;content:' '}@keyframes mdui-comp-progress-indeterminate{0%{left:0;width:0}50%{left:30%;width:70%}75%{left:100%;width:0}}@keyframes mdui-comp-progress-indeterminate-short{0%{left:0;width:0}50%{left:0;width:0}75%{left:0;width:25%}100%{left:100%;width:0}}`;let Ya=class extends Te{constructor(){super(...arguments),this.max=1}render(){if(!et(this.value)){const i=this.value;return P`
`}return P`
`}};Ya.styles=[Ce,Gw];v([R({type:Number,reflect:!0})],Ya.prototype,"max",void 0);v([R({type:Number})],Ya.prototype,"value",void 0);Ya=v([se("mdui-linear-progress")],Ya);const Qw=pe`:host{--shape-corner:var(--mdui-shape-corner-none);--shape-corner-rounded:var(--mdui-shape-corner-extra-large);position:relative;display:block;border-radius:var(--shape-corner);--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}:host([rounded]),:host([rounded]) mdui-ripple{border-radius:var(--shape-corner-rounded)}:host([active]){background-color:rgb(var(--mdui-color-secondary-container));--mdui-comp-ripple-state-layer-color:var( + )}:host([size=small]){border-radius:var(--shape-corner-small);width:2.5rem;height:2.5rem}:host([size=large]){border-radius:var(--shape-corner-large);width:6rem;height:6rem}:host([disabled]),:host([loading]){cursor:default;pointer-events:none}:host([disabled]){color:rgba(var(--mdui-color-on-surface),38%);background-color:rgba(var(--mdui-color-on-surface),12%);box-shadow:var(--mdui-elevation-level0)}:host([extended]){width:auto}.label{display:inline-flex;transition:opacity var(--mdui-motion-duration-short2) var(--mdui-motion-easing-linear) var(--mdui-motion-duration-short2);padding-left:.25rem;padding-right:.25rem}.has-icon .label{margin-left:.5rem}:host([size=small]) .has-icon .label{margin-left:.25rem}:host([size=large]) .has-icon .label{margin-left:1rem}:host(:not([extended])) .label{opacity:0;transition-delay:0s;transition-duration:var(--mdui-motion-duration-short1)}:host([size=large]) .label{font-size:1.5em}.icon{display:inline-flex;font-size:1.71428571em}:host([size=large]) .icon{font-size:2.57142857em}.icon mdui-icon,::slotted([slot=icon]){font-size:inherit}mdui-circular-progress{display:inline-flex;width:1.5rem;height:1.5rem}:host([size=large]) mdui-circular-progress{width:2.25rem;height:2.25rem}:host([disabled]) mdui-circular-progress{stroke:rgba(var(--mdui-color-on-surface),38%)}`;let An=class extends st{constructor(){super(...arguments),this.variant="primary",this.size="normal",this.extended=!1,this.rippleRef=ge(),this.hasSlotController=new It(this,"icon"),this.definedController=new zt(this,{relatedElements:[""]})}get rippleElement(){return this.rippleRef.value}async onExtendedChange(){const t=this.hasUpdated;this.extended?this.style.width=`${this.scrollWidth}px`:this.style.width="",await this.definedController.whenDefined(),await this.updateComplete,this.extended&&!t&&(this.style.width=`${this.scrollWidth}px`),t||(await ib(),this.style.transitionProperty="box-shadow, width, bottom, transform")}render(){const t=wr({button:!0,"has-icon":this.icon||this.hasSlotController.test("icon")});return P`${this.isButton()?this.renderButton({className:t,part:"button",content:this.renderInner()}):this.disabled||this.loading?P`${this.renderInner()}`:this.renderAnchor({className:t,part:"button",content:this.renderInner()})}`}renderLabel(){return P``}renderIcon(){return this.loading?this.renderLoading():P`${this.icon?P``:Ve}`}renderInner(){return[this.renderIcon(),this.renderLabel()]}};An.styles=[st.styles,jw];v([R({reflect:!0})],An.prototype,"variant",void 0);v([R({reflect:!0})],An.prototype,"size",void 0);v([R({reflect:!0})],An.prototype,"icon",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],An.prototype,"extended",void 0);v([re("extended")],An.prototype,"onExtendedChange",null);An=v([se("mdui-fab")],An);const Yw=pe`:host{position:relative;display:flex;flex:1 1 auto;overflow:hidden}:host([full-height]){height:100%}`;let Wc=class extends Re{constructor(){super(...arguments),this.fullHeight=!1}render(){return P``}};Wc.styles=[Ce,Yw];v([R({type:Boolean,reflect:!0,converter:Y,attribute:"full-height"})],Wc.prototype,"fullHeight",void 0);Wc=v([se("mdui-layout")],Wc);const Zw=pe`:host{display:flex;z-index:1}`;let ja=class extends Bn{constructor(){super(...arguments),this.placement="top"}get layoutPlacement(){return this.placement}onPlacementChange(){var t;(t=this.layoutManager)==null||t.updateLayout(this)}render(){return P``}};ja.styles=[Ce,Zw];v([R({reflect:!0})],ja.prototype,"placement",void 0);v([re("placement",!0)],ja.prototype,"onPlacementChange",null);ja=v([se("mdui-layout-item")],ja);const Xw=pe`:host{flex:1 0 auto;max-width:100%;overflow:auto}`;let Vh=class extends Re{connectedCallback(){super.connectedCallback();const t=this.parentElement;vl(t,"mdui-layout")&&(this.layoutManager=Yy(t),this.layoutManager.registerMain(this))}disconnectedCallback(){super.disconnectedCallback(),this.layoutManager&&this.layoutManager.unregisterMain()}render(){return P``}};Vh.styles=[Ce,Xw];Vh=v([se("mdui-layout-main")],Vh);const Gw=pe`:host{--shape-corner:var(--mdui-shape-corner-none);position:relative;display:inline-block;width:100%;overflow:hidden;border-radius:var(--shape-corner);background-color:rgb(var(--mdui-color-surface-container-highest));height:.25rem}.determinate,.indeterminate{background-color:rgb(var(--mdui-color-primary))}.determinate{height:100%;transition:width var(--mdui-motion-duration-long2) var(--mdui-motion-easing-standard)}.indeterminate::before{position:absolute;top:0;bottom:0;left:0;background-color:inherit;animation:mdui-comp-progress-indeterminate 2s var(--mdui-motion-easing-linear) infinite;content:' '}.indeterminate::after{position:absolute;top:0;bottom:0;left:0;background-color:inherit;animation:mdui-comp-progress-indeterminate-short 2s var(--mdui-motion-easing-linear) infinite;content:' '}@keyframes mdui-comp-progress-indeterminate{0%{left:0;width:0}50%{left:30%;width:70%}75%{left:100%;width:0}}@keyframes mdui-comp-progress-indeterminate-short{0%{left:0;width:0}50%{left:0;width:0}75%{left:0;width:25%}100%{left:100%;width:0}}`;let Ya=class extends Re{constructor(){super(...arguments),this.max=1}render(){if(!et(this.value)){const i=this.value;return P`
`}return P`
`}};Ya.styles=[Ce,Gw];v([R({type:Number,reflect:!0})],Ya.prototype,"max",void 0);v([R({type:Number})],Ya.prototype,"value",void 0);Ya=v([se("mdui-linear-progress")],Ya);const Qw=pe`:host{--shape-corner:var(--mdui-shape-corner-none);--shape-corner-rounded:var(--mdui-shape-corner-extra-large);position:relative;display:block;border-radius:var(--shape-corner);--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}:host([rounded]),:host([rounded]) mdui-ripple{border-radius:var(--shape-corner-rounded)}:host([active]){background-color:rgb(var(--mdui-color-secondary-container));--mdui-comp-ripple-state-layer-color:var( --mdui-color-on-secondary-container - )}:host([disabled]){pointer-events:none}.container{cursor:pointer;-webkit-user-select:none;user-select:none;text-decoration:none;color:inherit;-webkit-tap-highlight-color:transparent}:host([disabled]) .container{cursor:default;opacity:.38}:host([nonclickable]:not([href])) .container{cursor:auto;-webkit-user-select:auto;user-select:auto}.preset{display:flex;align-items:center;padding:.5rem 1.5rem .5rem 1rem;min-height:3.5rem}:host([alignment=start]) .preset{align-items:flex-start}:host([alignment=end]) .preset{align-items:flex-end}.body{display:flex;flex:1 1 100%;flex-direction:column;justify-content:center;min-width:0}.headline{display:block;color:rgb(var(--mdui-color-on-surface));font-size:var(--mdui-typescale-body-large-size);font-weight:var(--mdui-typescale-body-large-weight);letter-spacing:var(--mdui-typescale-body-large-tracking);line-height:var(--mdui-typescale-body-large-line-height)}:host([active]) .headline{color:rgb(var(--mdui-color-on-secondary-container))}.description{display:none;color:rgb(var(--mdui-color-on-surface-variant));font-size:var(--mdui-typescale-body-medium-size);font-weight:var(--mdui-typescale-body-medium-weight);letter-spacing:var(--mdui-typescale-body-medium-tracking);line-height:var(--mdui-typescale-body-medium-line-height)}:host([disabled]) .description,:host([focused]) .description,:host([hover]) .description,:host([pressed]) .description{color:rgb(var(--mdui-color-on-surface))}.has-description .description{display:block}:host([description-line='1']) .description,:host([headline-line='1']) .headline{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host([description-line='2']) .description,:host([description-line='3']) .description,:host([headline-line='2']) .headline,:host([headline-line='3']) .headline{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical}:host([description-line='2']) .description,:host([headline-line='2']) .headline{-webkit-line-clamp:2}:host([description-line='3']) .description,:host([headline-line='3']) .headline{-webkit-line-clamp:3}.end-icon,.icon{display:flex;flex:0 0 auto;font-size:var(--mdui-typescale-label-small-size);font-weight:var(--mdui-typescale-label-small-weight);letter-spacing:var(--mdui-typescale-label-small-tracking);line-height:var(--mdui-typescale-label-small-line-height);color:rgb(var(--mdui-color-on-surface-variant))}:host([disabled]) .end-icon,:host([disabled]) .icon,:host([focused]) .end-icon,:host([focused]) .icon,:host([hover]) .end-icon,:host([hover]) .icon,:host([pressed]) .end-icon,:host([pressed]) .icon{color:rgb(var(--mdui-color-on-surface))}:host([active]) .end-icon,:host([active]) .icon{color:rgb(var(--mdui-color-on-secondary-container))}.end-icon mdui-icon,.icon mdui-icon,.is-end-icon ::slotted([slot=end-icon]),.is-icon ::slotted([slot=icon]){font-size:1.5rem}.has-icon .icon{margin-right:1rem}.has-icon ::slotted(mdui-checkbox[slot=icon]),.has-icon ::slotted(mdui-radio[slot=icon]){margin-left:-.5rem}.has-end-icon .end-icon{margin-left:1rem}.has-end-icon ::slotted(mdui-checkbox[slot=end-icon]),.has-end-icon ::slotted(mdui-radio[slot=end-icon]){margin-right:-.5rem}`;let Qt=class extends Oo(dr(Ui(Te))){constructor(){super(...arguments),this.disabled=!1,this.active=!1,this.nonclickable=!1,this.rounded=!1,this.alignment="center",this.rippleRef=ge(),this.itemRef=ge(),this.hasSlotController=new It(this,"[default]","description","icon","end-icon","custom")}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return this.focusDisabled}get focusElement(){return this.href&&!this.disabled?this.itemRef.value:this}get focusDisabled(){return this.href?this.disabled:this.disabled||this.nonclickable}render(){const t=!this.hasSlotController.test("custom"),i=this.icon||this.hasSlotController.test("icon"),r=this.endIcon||this.hasSlotController.test("end-icon"),n=this.description||this.hasSlotController.test("description"),s=wr({container:!0,preset:t,"has-icon":i,"has-end-icon":r,"has-description":n,"is-icon":vl(this.iconElements[0],"mdui-icon"),"is-end-icon":s9(this.endIconElements[0]).startsWith("mdui-icon-")});return P`${this.href&&!this.disabled?this.renderAnchor({className:s,content:this.renderInner(),part:"container",refDirective:de(this.itemRef)}):P`
${this.renderInner()}
`}`}renderInner(){const t=this.hasSlotController.test("[default]");return P`${this.icon?P``:Ve}
${t?P``:P`
${this.headline}
`}${this.description}
${this.endIcon?P``:Ve}
`}};Qt.styles=[Ce,Qw];v([R({reflect:!0})],Qt.prototype,"headline",void 0);v([R({type:Number,reflect:!0,attribute:"headline-line"})],Qt.prototype,"headlineLine",void 0);v([R({reflect:!0})],Qt.prototype,"description",void 0);v([R({type:Number,reflect:!0,attribute:"description-line"})],Qt.prototype,"descriptionLine",void 0);v([R({reflect:!0})],Qt.prototype,"icon",void 0);v([R({reflect:!0,attribute:"end-icon"})],Qt.prototype,"endIcon",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Qt.prototype,"disabled",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Qt.prototype,"active",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Qt.prototype,"nonclickable",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Qt.prototype,"rounded",void 0);v([R({reflect:!0})],Qt.prototype,"alignment",void 0);v([Hi({slot:"icon",flatten:!0})],Qt.prototype,"iconElements",void 0);v([Hi({slot:"end-icon",flatten:!0})],Qt.prototype,"endIconElements",void 0);Qt=v([se("mdui-list-item")],Qt);const Jw=pe`:host{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;cursor:default;color:rgb(var(--mdui-color-on-surface-variant));font-size:var(--mdui-typescale-label-small-size);font-weight:var(--mdui-typescale-label-small-weight);letter-spacing:var(--mdui-typescale-label-small-tracking);line-height:var(--mdui-typescale-label-small-line-height);padding-left:1rem;padding-right:1.5rem;height:3.5rem;line-height:3.5rem}`;let Kh=class extends Te{render(){return P``}};Kh.styles=[Ce,Jw];Kh=v([se("mdui-list-subheader")],Kh);const e_=pe`:host{display:block;padding:.5rem 0}::slotted(mdui-divider[middle]){margin-left:1rem;margin-right:1.5rem}`;let Wh=class extends Te{render(){return P``}};Wh.styles=[Ce,e_];Wh=v([se("mdui-list")],Wh);let qh=class extends nt{render(){return Ut('')}};qh.styles=Ht;qh=v([se("mdui-icon-arrow-right")],qh);const t_=pe`:host{position:relative;display:block}:host([selected]){background-color:rgba(var(--mdui-color-primary),12%)}:host([disabled]){pointer-events:none}.container{cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}:host([disabled]) .container{cursor:default;opacity:.38}.preset{display:flex;align-items:center;text-decoration:none;height:3rem;padding:0 .75rem}.preset.dense{height:2rem}.label-container{flex:1 1 100%;min-width:0}.label{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:rgb(var(--mdui-color-on-surface));font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking)}.end-icon,.end-text,.icon,.selected-icon{display:none;flex:0 0 auto;color:rgb(var(--mdui-color-on-surface-variant))}.has-end-icon .end-icon,.has-end-text .end-text,.has-icon .icon,.has-icon .selected-icon{display:flex}.end-icon,.icon,.selected-icon{font-size:1.5rem}.end-icon::slotted(mdui-avatar),.icon::slotted(mdui-avatar),.selected-icon::slotted(mdui-avatar){width:1.5rem;height:1.5rem}.dense .end-icon,.dense .icon,.dense .selected-icon{font-size:1.125rem}.dense .end-icon::slotted(mdui-avatar),.dense .icon::slotted(mdui-avatar),.dense .selected-icon::slotted(mdui-avatar){width:1.125rem;height:1.125rem}.end-icon .i,.icon .i,.selected-icon .i,::slotted([slot=end-icon]),::slotted([slot=icon]),::slotted([slot=selected-icon]){font-size:inherit}.end-text{font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking);line-height:var(--mdui-typescale-label-large-line-height)}.icon,.selected-icon{margin-right:.75rem}.end-icon,.end-text{margin-left:.75rem}.arrow-right{color:rgb(var(--mdui-color-on-surface))}.submenu{--shape-corner:var(--mdui-shape-corner-extra-small);display:block;position:absolute;z-index:1;border-radius:var(--shape-corner);background-color:rgb(var(--mdui-color-surface-container));box-shadow:var(--mdui-elevation-level2);min-width:7rem;max-width:17.5rem;padding-top:.5rem;padding-bottom:.5rem;--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}.submenu::slotted(mdui-divider){margin-top:.5rem;margin-bottom:.5rem}`;let $t=class extends Oo(dr(Ui(Te))){constructor(){super(),this.disabled=!1,this.submenuOpen=!1,this.selected=!1,this.dense=!1,this.focusable=!1,this.key=Pn(),this.rippleRef=ge(),this.containerRef=ge(),this.submenuRef=ge(),this.hasSlotController=new It(this,"[default]","icon","end-icon","end-text","submenu","custom"),this.definedController=new zt(this,{relatedElements:[""]}),this.onOuterClick=this.onOuterClick.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this),this.onClick=this.onClick.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onMouseEnter=this.onMouseEnter.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this)}get focusDisabled(){return this.disabled||!this.focusable}get focusElement(){return this.href&&!this.disabled?this.containerRef.value:this}get rippleDisabled(){return this.disabled}get rippleElement(){return this.rippleRef.value}get hasSubmenu(){return this.hasSlotController.test("submenu")}async onOpenChange(){const t=this.hasUpdated;if(!this.submenuOpen&&!t)return;await this.definedController.whenDefined(),t||await this.updateComplete;const i=Gt(this,"linear"),r=Gt(this,"emphasized-decelerate"),n=Gt(this,"emphasized-accelerate");if(this.submenuOpen){if(t&&!this.emit("submenu-open",{cancelable:!0}))return;const s=Qi(this,"medium4");await yi(this.submenuRef.value),this.submenuRef.value.hidden=!1,this.updateSubmenuPositioner(),await Promise.all([We(this.submenuRef.value,[{transform:"scaleY(0.45)"},{transform:"scaleY(1)"}],{duration:t?s:0,easing:r}),We(this.submenuRef.value,[{opacity:0},{opacity:1,offset:.125},{opacity:1}],{duration:t?s:0,easing:i})]),t&&this.emit("submenu-opened")}else{if(!this.emit("submenu-close",{cancelable:!0}))return;const o=Qi(this,"short4");await yi(this.submenuRef.value),await Promise.all([We(this.submenuRef.value,[{transform:"scaleY(1)"},{transform:"scaleY(0.45)"}],{duration:o,easing:n}),We(this.submenuRef.value,[{opacity:1},{opacity:1,offset:.875},{opacity:0}],{duration:o,easing:i})]),this.submenuRef.value&&(this.submenuRef.value.hidden=!0),this.emit("submenu-closed")}}connectedCallback(){super.connectedCallback(),this.definedController.whenDefined().then(()=>{document.addEventListener("pointerdown",this.onOuterClick)})}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.onOuterClick)}firstUpdated(t){super.firstUpdated(t),this.definedController.whenDefined().then(()=>{this.addEventListener("focus",this.onFocus),this.addEventListener("blur",this.onBlur),this.addEventListener("click",this.onClick),this.addEventListener("keydown",this.onKeydown),this.addEventListener("mouseenter",this.onMouseEnter),this.addEventListener("mouseleave",this.onMouseLeave)})}render(){const t=this.hasSubmenu,i=this.hasSlotController.test("custom"),r=this.hasSlotController.test("end-icon"),n=!this.endIcon&&t&&!r,s=this.endIcon||t||r,o=!et(this.icon)||this.selects==="single"||this.selects==="multiple"||this.hasSlotController.test("icon"),a=!!this.endText||this.hasSlotController.test("end-text"),l=wr({container:!0,dense:this.dense,preset:!i,"has-icon":o,"has-end-text":a,"has-end-icon":s});return P`${this.href&&!this.disabled?this.renderAnchor({part:"container",className:l,content:this.renderInner(n,o),refDirective:de(this.containerRef),tabIndex:this.focusable?0:-1}):P`
${this.renderInner(n,o)}
`} ${Ze(t,()=>P``)}`}onOuterClick(t){!this.disabled&&this.submenuOpen&&this!==t.target&&!O.contains(this,t.target)&&(this.submenuOpen=!1)}hasTrigger(t){return this.submenuTrigger?this.submenuTrigger.split(" ").includes(t):!1}onFocus(){this.disabled||this.submenuOpen||!this.hasTrigger("focus")||!this.hasSubmenu||(this.submenuOpen=!0)}onBlur(){this.disabled||!this.submenuOpen||!this.hasTrigger("focus")||!this.hasSubmenu||(this.submenuOpen=!1)}onClick(t){this.disabled||t.button||!this.hasTrigger("click")||t.target!==this||!this.hasSubmenu||this.submenuOpen&&(this.hasTrigger("hover")||this.hasTrigger("focus"))||(this.submenuOpen=!this.submenuOpen)}onKeydown(t){this.disabled||!this.hasSubmenu||(!this.submenuOpen&&t.key==="Enter"&&(t.stopPropagation(),this.submenuOpen=!0),this.submenuOpen&&t.key==="Escape"&&(t.stopPropagation(),this.submenuOpen=!1))}onMouseEnter(){this.disabled||!this.hasTrigger("hover")||!this.hasSubmenu||(window.clearTimeout(this.submenuCloseTimeout),this.submenuOpenDelay?this.submenuOpenTimeout=window.setTimeout(()=>{this.submenuOpen=!0},this.submenuOpenDelay):this.submenuOpen=!0)}onMouseLeave(){this.disabled||!this.hasTrigger("hover")||!this.hasSubmenu||(window.clearTimeout(this.submenuOpenTimeout),this.submenuCloseTimeout=window.setTimeout(()=>{this.submenuOpen=!1},this.submenuCloseDelay||50))}updateSubmenuPositioner(){const t=O(window),i=O(this.submenuRef.value),r=this.getBoundingClientRect(),n=i.innerWidth(),s=i.innerHeight(),o=8;let a="bottom",l="right";t.height()-r.top>s+o?a="bottom":r.top+r.height>s+o&&(a="top"),t.width()-r.left-r.width>n+o?l="right":r.left>n+o&&(l="left"),O(this.submenuRef.value).css({top:a==="bottom"?0:r.height-s,left:l==="right"?r.width:-n,transformOrigin:[l==="right"?0:"100%",a==="bottom"?0:"100%"].join(" ")})}renderInner(t,i){return P`${this.selected?P`${this.selectedIcon?P``:P``}`:P`${i?P``:Ve}`}
${this.endText}${t?P``:P`${this.endIcon?P``:Ve}`}
`}};$t.styles=[Ce,t_];v([R({reflect:!0})],$t.prototype,"value",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],$t.prototype,"disabled",void 0);v([R({reflect:!0})],$t.prototype,"icon",void 0);v([R({reflect:!0,attribute:"end-icon"})],$t.prototype,"endIcon",void 0);v([R({reflect:!0,attribute:"end-text"})],$t.prototype,"endText",void 0);v([R({reflect:!0,attribute:"selected-icon"})],$t.prototype,"selectedIcon",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"submenu-open"})],$t.prototype,"submenuOpen",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],$t.prototype,"selected",void 0);v([_e()],$t.prototype,"dense",void 0);v([_e()],$t.prototype,"selects",void 0);v([_e()],$t.prototype,"submenuTrigger",void 0);v([_e()],$t.prototype,"submenuOpenDelay",void 0);v([_e()],$t.prototype,"submenuCloseDelay",void 0);v([_e()],$t.prototype,"focusable",void 0);v([re("submenuOpen")],$t.prototype,"onOpenChange",null);$t=v([se("mdui-menu-item")],$t);const i_=pe`:host{--shape-corner:var(--mdui-shape-corner-extra-small);position:relative;display:block;border-radius:var(--shape-corner);background-color:rgb(var(--mdui-color-surface-container));box-shadow:var(--mdui-elevation-level2);min-width:7rem;max-width:17.5rem;padding-top:.5rem;padding-bottom:.5rem;--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}::slotted(mdui-divider){margin-top:.5rem;margin-bottom:.5rem}`;let ci=class extends Te{constructor(){super(...arguments),this.dense=!1,this.submenuTrigger="click hover",this.submenuOpenDelay=200,this.submenuCloseDelay=200,this.selectedKeys=[],this.isInitial=!0,this.lastActiveItems=[],this.definedController=new zt(this,{relatedElements:["mdui-menu-item"]})}get items(){return O(this.childrenItems).find("mdui-menu-item").add(this.childrenItems).get()}get itemsEnabled(){return this.items.filter(t=>!t.disabled)}get isSingle(){return this.selects==="single"}get isMultiple(){return this.selects==="multiple"}get isSelectable(){return this.isSingle||this.isMultiple}get isSubmenu(){return!O(this).parent().length}get lastActiveItem(){const t=this.lastActiveItems.length?this.lastActiveItems.length-1:0;return this.lastActiveItems[t]}set lastActiveItem(t){const i=this.lastActiveItems.length?this.lastActiveItems.length-1:0;this.lastActiveItems[i]=t}async onSlotChange(){await this.definedController.whenDefined(),this.items.forEach(t=>{t.dense=this.dense,t.selects=this.selects,t.submenuTrigger=this.submenuTrigger,t.submenuOpenDelay=this.submenuOpenDelay,t.submenuCloseDelay=this.submenuCloseDelay})}async onSelectsChange(){this.isSelectable?this.isSingle&&this.setSelectedKeys(this.selectedKeys.slice(0,1)):this.setSelectedKeys([]),await this.onSelectedKeysChange()}async onSelectedKeysChange(){await this.definedController.whenDefined();const t=this.itemsEnabled.filter(r=>this.selectedKeys.includes(r.key)).map(r=>r.value),i=this.isMultiple?t:t[0]||void 0;this.setValue(i),this.isInitial||this.emit("change")}async onValueChange(){if(this.isInitial=!this.hasUpdated,await this.definedController.whenDefined(),!this.isSelectable){this.updateSelected();return}const t=(this.isSingle?[this.value]:pt(this.value)?[this.value]:this.value).filter(i=>i);if(!t.length)this.setSelectedKeys([]);else if(this.isSingle){const i=this.itemsEnabled.find(r=>r.value===t[0]);this.setSelectedKeys(i?[i.key]:[])}else this.isMultiple&&this.setSelectedKeys(this.itemsEnabled.filter(i=>t.includes(i.value)).map(i=>i.key));this.updateSelected(),this.updateFocusable()}focus(t){this.lastActiveItem&&this.focusOne(this.lastActiveItem,t)}blur(){this.lastActiveItem&&this.lastActiveItem.blur()}firstUpdated(t){super.firstUpdated(t),this.definedController.whenDefined().then(()=>{this.updateFocusable(),this.lastActiveItem=this.items.find(i=>i.focusable)}),this.addEventListener("submenu-open",i=>{const r=O(i.target),n=r.children("mdui-menu-item:not([disabled])").get(),s=r.parents("mdui-menu-item").length+1;n.length&&(this.lastActiveItems[s]=n[0],this.updateFocusable(),this.focusOne(this.lastActiveItems[s]))}),this.addEventListener("submenu-close",i=>{const n=O(i.target).parents("mdui-menu-item").length+1;this.lastActiveItems.length-1===n&&(this.lastActiveItems.pop(),this.updateFocusable(),this.lastActiveItems[n-1]&&this.focusOne(this.lastActiveItems[n-1]))})}render(){return P``}setSelectedKeys(t){xo(this.selectedKeys,t)||(this.selectedKeys=t)}setValue(t){this.isSingle||et(this.value)||et(t)?this.value=t:xo(this.value,t)||(this.value=t)}getSiblingsItems(t,i=!1){return O(t).parent().children(`mdui-menu-item${i?":not([disabled])":""}`).get()}updateFocusable(){if(this.lastActiveItem){this.items.forEach(t=>{t.focusable=t.key===this.lastActiveItem.key});return}if(!this.selectedKeys.length){this.itemsEnabled.forEach((t,i)=>{t.focusable=!i});return}if(this.isSingle){this.items.forEach(t=>{t.focusable=this.selectedKeys.includes(t.key)});return}if(this.isMultiple){const t=this.items.find(i=>i.focusable);(!(t!=null&&t.key)||!this.selectedKeys.includes(t.key))&&this.itemsEnabled.filter(i=>this.selectedKeys.includes(i.key)).forEach((i,r)=>i.focusable=!r)}}updateSelected(){this.items.forEach(t=>{t.selected=this.selectedKeys.includes(t.key)})}selectOne(t){if(this.isMultiple){const i=[...this.selectedKeys];i.includes(t.key)?i.splice(i.indexOf(t.key),1):i.push(t.key),this.setSelectedKeys(i)}this.isSingle&&(this.selectedKeys.includes(t.key)?this.setSelectedKeys([]):this.setSelectedKeys([t.key])),this.isInitial=!1,this.updateSelected()}async focusableOne(t){this.items.forEach(i=>i.focusable=i.key===t.key),await ib()}focusOne(t,i){t.focus(i)}async onClick(t){if(!this.definedController.isDefined()||this.isSubmenu||t.button)return;const r=t.target.closest("mdui-menu-item");!r||r.disabled||(this.lastActiveItem=r,this.isSelectable&&r.value&&this.selectOne(r),await this.focusableOne(r),this.focusOne(r))}async onKeyDown(t){if(!this.definedController.isDefined()||this.isSubmenu)return;const i=t.target;if(t.key==="Enter"&&(t.preventDefault(),i.click()),t.key===" "&&(t.preventDefault(),this.isSelectable&&i.value&&(this.selectOne(i),await this.focusableOne(i),this.focusOne(i))),["ArrowUp","ArrowDown","Home","End"].includes(t.key)){const r=this.getSiblingsItems(i,!0),n=r.find(o=>o.focusable);let s=n?r.indexOf(n):0;if(r.length>0){t.preventDefault(),t.key==="ArrowDown"?s++:t.key==="ArrowUp"?s--:t.key==="Home"?s=0:t.key==="End"&&(s=r.length-1),s<0&&(s=r.length-1),s>r.length-1&&(s=0),this.lastActiveItem=r[s],await this.focusableOne(r[s]),this.focusOne(r[s]);return}}}};ci.styles=[Ce,i_];v([R({reflect:!0})],ci.prototype,"selects",void 0);v([R()],ci.prototype,"value",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],ci.prototype,"dense",void 0);v([R({reflect:!0,attribute:"submenu-trigger"})],ci.prototype,"submenuTrigger",void 0);v([R({type:Number,reflect:!0,attribute:"submenu-open-delay"})],ci.prototype,"submenuOpenDelay",void 0);v([R({type:Number,reflect:!0,attribute:"submenu-close-delay"})],ci.prototype,"submenuCloseDelay",void 0);v([_e()],ci.prototype,"selectedKeys",void 0);v([Hi({flatten:!0,selector:"mdui-menu-item"})],ci.prototype,"childrenItems",void 0);v([re("dense"),re("selects"),re("submenuTrigger"),re("submenuOpenDelay"),re("submenuCloseDelay")],ci.prototype,"onSlotChange",null);v([re("selects",!0)],ci.prototype,"onSelectsChange",null);v([re("selectedKeys",!0)],ci.prototype,"onSelectedKeysChange",null);v([re("value")],ci.prototype,"onValueChange",null);ci=v([se("mdui-menu")],ci);const r_=pe`:host{--shape-corner-indicator:var(--mdui-shape-corner-full);position:relative;z-index:0;flex:1;overflow:hidden;min-width:3rem;--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface-variant)}.container{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;text-decoration:none;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;padding-top:.75rem;padding-bottom:.75rem}.container:not(.initial){transition:padding var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}mdui-ripple{z-index:1;left:50%;transform:translateX(-50%);width:4rem;height:2rem;margin-top:.75rem;border-radius:var(--mdui-shape-corner-full)}mdui-ripple:not(.initial){transition:margin-top var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}.indicator{position:relative;display:flex;align-items:center;justify-content:center;background-color:transparent;border-radius:var(--shape-corner-indicator);height:2rem;width:2rem}:not(.initial) .indicator{transition:background-color var(--mdui-motion-duration-short1) var(--mdui-motion-easing-standard),width var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}::slotted([slot=badge]){position:absolute;transform:translate(50%,-50%)}::slotted([slot=badge][variant=small]){transform:translate(.5625rem,-.5625rem)}.active-icon,.icon{color:rgb(var(--mdui-color-on-surface-variant));font-size:1.5rem}.active-icon mdui-icon,.icon mdui-icon,::slotted([slot=active]),::slotted([slot=icon]){font-size:inherit}.icon{display:flex}.active-icon{display:none}.label{display:flex;align-items:center;height:1rem;color:rgb(var(--mdui-color-on-surface-variant));margin-top:.25rem;margin-bottom:.25rem;font-size:var(--mdui-typescale-label-medium-size);font-weight:var(--mdui-typescale-label-medium-weight);letter-spacing:var(--mdui-typescale-label-medium-tracking);line-height:var(--mdui-typescale-label-medium-line-height)}:not(.initial) .label{transition:opacity var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear)}:host(:not([active])) mdui-ripple.label-visibility-selected,mdui-ripple.label-visibility-unlabeled{margin-top:1.5rem}.container.label-visibility-unlabeled,:host(:not([active])) .container.label-visibility-selected{padding-top:1.5rem;padding-bottom:0}.container.label-visibility-unlabeled .label,:host(:not([active])) .container.label-visibility-selected .label{opacity:0}:host([active]){--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}:host([active]) .indicator{width:4rem;background-color:rgb(var(--mdui-color-secondary-container))}:host([active]) .active-icon,:host([active]) .icon{color:rgb(var(--mdui-color-on-secondary-container))}:host([active]) .has-active-icon .active-icon{display:flex}:host([active]) .has-active-icon .icon{display:none}:host([active]) .label{color:rgb(var(--mdui-color-on-surface))}`;let Cr=class extends Oo(dr(Ui(Te))){constructor(){super(...arguments),this.isInitial=!0,this.active=!1,this.disabled=!1,this.key=Pn(),this.rippleRef=ge(),this.hasSlotController=new It(this,"active-icon")}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return this.disabled}get focusElement(){var t;return this.href?(t=this.renderRoot)==null?void 0:t.querySelector("._a"):this}get focusDisabled(){return this.disabled}render(){const t=wr({"label-visibility-selected":this.labelVisibility==="selected","label-visibility-labeled":this.labelVisibility==="labeled","label-visibility-unlabeled":this.labelVisibility==="unlabeled",initial:this.isInitial}),i=wr([{container:!0,"has-active-icon":this.activeIcon||this.hasSlotController.test("active-icon")},t]);return P`${this.href?this.renderAnchor({part:"container",className:i,content:this.renderInner()}):P`
${this.renderInner()}
`}`}renderInner(){return P`
${this.activeIcon?P``:Ve}${this.icon?P``:Ve}
`}};Cr.styles=[Ce,r_];v([R({reflect:!0})],Cr.prototype,"icon",void 0);v([R({reflect:!0,attribute:"active-icon"})],Cr.prototype,"activeIcon",void 0);v([R({reflect:!0})],Cr.prototype,"value",void 0);v([_e()],Cr.prototype,"labelVisibility",void 0);v([_e()],Cr.prototype,"isInitial",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Cr.prototype,"active",void 0);v([_e()],Cr.prototype,"disabled",void 0);Cr=v([se("mdui-navigation-bar-item")],Cr);const n_=pe`:host{--shape-corner:var(--mdui-shape-corner-none);--z-index:2000;position:fixed;right:0;bottom:0;left:0;display:flex;flex:0 0 auto;overflow:hidden;border-radius:var(--shape-corner) var(--shape-corner) 0 0;z-index:var(--z-index);transition-property:transform;transition-duration:var(--mdui-motion-duration-long2);transition-timing-function:var(--mdui-motion-easing-emphasized);height:5rem;background-color:rgb(var(--mdui-color-surface));box-shadow:var(--mdui-elevation-level2)}:host([scroll-target]:not([scroll-target=''])){position:absolute}:host([hide]){transform:translateY(5.625rem);transition-duration:var(--mdui-motion-duration-short4)}`;let Ji=class extends Lp(Bn){constructor(){super(...arguments),this.hide=!1,this.labelVisibility="auto",this.activeKey=0,this.isInitial=!0,this.definedController=new zt(this,{relatedElements:["mdui-navigation-bar-item"]})}get scrollPaddingPosition(){return"bottom"}get layoutPlacement(){return"bottom"}async onActiveKeyChange(){await this.definedController.whenDefined();const t=this.items.find(i=>i.key===this.activeKey);this.value=t==null?void 0:t.value,this.isInitial||this.emit("change")}async onValueChange(){this.isInitial=!this.hasUpdated,await this.definedController.whenDefined();const t=this.items.find(i=>i.value===this.value);this.activeKey=(t==null?void 0:t.key)??0,this.updateItems()}async onLabelVisibilityChange(){await this.definedController.whenDefined(),this.updateItems()}firstUpdated(t){super.firstUpdated(t),this.addEventListener("transitionend",i=>{i.target===this&&this.emit(this.hide?"hidden":"shown")})}render(){return P``}runScrollThreshold(t){!t&&!this.hide&&this.emit("hide",{cancelable:!0})&&(this.hide=!0),t&&this.hide&&this.emit("show",{cancelable:!0})&&(this.hide=!1)}onClick(t){if(t.button)return;const r=t.target.closest("mdui-navigation-bar-item");r&&(this.activeKey=r.key,this.isInitial=!1,this.updateItems())}updateItems(){const t=this.items,i=this.labelVisibility==="auto"?t.length<=3?"labeled":"selected":this.labelVisibility;t.forEach(r=>{r.active=this.activeKey===r.key,r.labelVisibility=i,r.isInitial=this.isInitial})}async onSlotChange(){await this.definedController.whenDefined(),this.updateItems()}};Ji.styles=[Ce,n_];v([R({type:Boolean,reflect:!0,converter:Y})],Ji.prototype,"hide",void 0);v([R({reflect:!0,attribute:"label-visibility"})],Ji.prototype,"labelVisibility",void 0);v([R({reflect:!0})],Ji.prototype,"value",void 0);v([R({reflect:!0,attribute:"scroll-behavior"})],Ji.prototype,"scrollBehavior",void 0);v([_e()],Ji.prototype,"activeKey",void 0);v([Hi({selector:"mdui-navigation-bar-item",flatten:!0})],Ji.prototype,"items",void 0);v([re("activeKey",!0)],Ji.prototype,"onActiveKeyChange",null);v([re("value")],Ji.prototype,"onValueChange",null);v([re("labelVisibility",!0)],Ji.prototype,"onLabelVisibilityChange",null);Ji=v([se("mdui-navigation-bar")],Ji);const rb=e=>{const t=Dn(),i=oi(),r=t.getComputedStyle(i.documentElement),n=qr(e)?O(e).innerWidth():bd(e)?e:O(t).innerWidth(),s=a=>{const l=r.getPropertyValue(`--mdui-breakpoint-${a}`).toLowerCase();return parseFloat(l)},o=a=>{switch(a){case"xs":return"sm";case"sm":return"md";case"md":return"lg";case"lg":return"xl";case"xl":return"xxl"}};return{up(a){return n>=s(a)},down(a){return n{const i=this.contained?this.parentElement:void 0;this.mobile=rb(i).down("md"),this.isParentLayout&&this.layoutManager.updateLayout(this,{width:this.isModal?0:void 0})})}onPlacementChange(){this.isParentLayout&&this.layoutManager.updateLayout(this)}async onMobileChange(){!this.open||this.isParentLayout||this.contained||(await this.definedController.whenDefined(),this.isModal?(Uh(this,this.lockTarget),await this.getLockTargetAnimate(!1,0)):(va(this,this.lockTarget),await this.getLockTargetAnimate(!0,0)))}async onOpenChange(){let t=this.panelRef.value,i=this.overlayRef.value;const r=this.placement==="right",n=Gt(this,"linear"),s=Gt(this,"emphasized"),o=(l,c)=>{O(this.layoutManager.getItemsAndMain()).css("transition",_p(l)?null:`all ${l}ms ${c}`)},a=async()=>{const l=[];if(this.isModal?l.push(i,t):this.isParentLayout||l.push(this.lockTarget),this.isParentLayout){const c=this.layoutManager.getItemsAndMain(),d=c.indexOf(this);l.push(...c.slice(d))}!this.isModal&&!l.includes(this)&&l.push(this),await Promise.all(l.map(c=>yi(c)))};if(this.open){const l=this.hasUpdated;if(l||(await this.updateComplete,t=this.panelRef.value,i=this.overlayRef.value),l&&!this.emit("open",{cancelable:!0}))return;await this.definedController.whenDefined(),this.style.display="block",this.originalTrigger=document.activeElement,this.isModal&&(this.modalHelper.activate(),this.contained||Uh(this,this.lockTarget)),await a(),requestAnimationFrame(()=>{const u=this.querySelector("[autofocus]");u?u.focus({preventScroll:!0}):t.focus({preventScroll:!0})});const c=Qi(this,"long2"),d=[];if(this.isModal?d.push(We(i,[{opacity:0},{opacity:1,offset:.3},{opacity:1}],{duration:l?c:0,easing:n})):this.isParentLayout||d.push(this.getLockTargetAnimate(!0,l?c:0)),this.isParentLayout&&l&&(o(c,s),this.layoutManager.updateLayout(this)),d.push(We(this.isModal?t:this,[{transform:`translateX(${r?"":"-"}100%)`},{transform:"translateX(0)"}],{duration:l?c:0,easing:s})),await Promise.all(d),!this.open)return;this.isParentLayout&&l&&o(null),l&&this.emit("opened")}else if(this.hasUpdated){if(!this.emit("close",{cancelable:!0}))return;await this.definedController.whenDefined(),this.isModal&&this.modalHelper.deactivate(),await a();const c=Qi(this,"short4"),d=[];if(this.isModal?d.push(We(i,[{opacity:1},{opacity:0}],{duration:c,easing:n})):this.isParentLayout||d.push(this.getLockTargetAnimate(!1,c)),this.isParentLayout&&(o(c,s),this.layoutManager.updateLayout(this,{width:0})),d.push(We(this.isModal?t:this,[{transform:"translateX(0)"},{transform:`translateX(${r?"":"-"}100%)`}],{duration:c,easing:s})),await Promise.all(d),this.open)return;this.isParentLayout&&o(null),this.style.display="none",this.isModal&&!this.contained&&va(this,this.lockTarget);const u=this.originalTrigger;ft(u==null?void 0:u.focus)&&setTimeout(()=>u.focus()),this.emit("closed")}}connectedCallback(){super.connectedCallback(),this.modalHelper=new Xy(this)}disconnectedCallback(){var t;super.disconnectedCallback(),va(this,this.lockTarget),(t=this.observeResize)==null||t.unobserve()}firstUpdated(t){super.firstUpdated(t),this.addEventListener("keydown",i=>{this.open&&this.closeOnEsc&&i.key==="Escape"&&this.isModal&&(i.stopPropagation(),this.open=!1)})}render(){return P`${Ze(this.isModal,()=>P`
`)}`}onOverlayClick(){this.emit("overlay-click"),this.closeOnOverlayClick&&(this.open=!1)}getLockTargetAnimate(t,i){const r=this.placement==="right"?"paddingRight":"paddingLeft",n=O(this.panelRef.value).innerWidth()+"px";return We(this.lockTarget,[{[r]:t?0:n},{[r]:t?n:0}],{duration:i,easing:Gt(this,"emphasized"),fill:"forwards"})}};_i.styles=[Ce,s_];v([R({type:Boolean,reflect:!0,converter:Y})],_i.prototype,"open",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],_i.prototype,"modal",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"close-on-esc"})],_i.prototype,"closeOnEsc",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"close-on-overlay-click"})],_i.prototype,"closeOnOverlayClick",void 0);v([R({reflect:!0})],_i.prototype,"placement",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],_i.prototype,"contained",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],_i.prototype,"mobile",void 0);v([re("contained")],_i.prototype,"onContainedChange",null);v([re("placement",!0)],_i.prototype,"onPlacementChange",null);v([re("mobile",!0),re("modal",!0)],_i.prototype,"onMobileChange",null);v([re("open")],_i.prototype,"onOpenChange",null);_i=v([se("mdui-navigation-drawer")],_i);const o_=pe`:host{--shape-corner:var(--mdui-shape-corner-none);--z-index:2000;position:fixed;top:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;border-radius:0 var(--shape-corner) var(--shape-corner) 0;z-index:var(--z-index);width:5rem;background-color:rgb(var(--mdui-color-surface));padding:.375rem .75rem}:host([contained]){position:absolute}:host([divider]){border-right:.0625rem solid rgb(var(--mdui-color-surface-variant));width:5.0625rem}:host([placement=right]){left:initial;right:0;border-radius:var(--shape-corner) 0 0 var(--shape-corner)}:host([placement=right][divider]){border-right:none;border-left:.0625rem solid rgb(var(--mdui-color-surface-variant))}.bottom,.items,.top{display:flex;flex-direction:column;align-items:center;width:100%}.top{margin-bottom:1.75rem}.bottom{margin-top:1.75rem}::slotted([slot=bottom]),::slotted([slot=top]),::slotted(mdui-navigation-rail-item){margin-top:.375rem;margin-bottom:.375rem}:host([alignment=start]) .top-spacer{flex-grow:0}:host([alignment=start]) .bottom-spacer{flex-grow:1}:host([alignment=end]) .top-spacer{flex-grow:1}:host([alignment=end]) .bottom-spacer{flex-grow:0}:host([alignment=center]){justify-content:center}:host([alignment=center]) .bottom,:host([alignment=center]) .top{position:absolute}:host([alignment=center]) .top{top:.375rem}:host([alignment=center]) .bottom{bottom:.375rem}`;let ki=class extends Bn{constructor(){super(...arguments),this.placement="left",this.alignment="start",this.contained=!1,this.divider=!1,this.activeKey=0,this.hasSlotController=new It(this,"top","bottom"),this.definedController=new zt(this,{relatedElements:["mdui-navigation-rail-item"]}),this.isInitial=!0}get layoutPlacement(){return this.placement}get parentTarget(){return this.contained||this.isParentLayout?this.parentElement:document.body}get isRight(){return this.placement==="right"}get paddingValue(){return["fixed","absolute"].includes(O(this).css("position"))?this.offsetWidth:void 0}async onActiveKeyChange(){await this.definedController.whenDefined();const t=this.items.find(i=>i.key===this.activeKey);this.value=t==null?void 0:t.value,this.isInitial||this.emit("change")}async onValueChange(){this.isInitial=!this.hasUpdated,await this.definedController.whenDefined();const t=this.items.find(i=>i.value===this.value);this.activeKey=(t==null?void 0:t.key)??0,this.updateItems()}async onContainedChange(){this.isParentLayout||(await this.definedController.whenDefined(),O(document.body).css({paddingLeft:this.contained||this.isRight?null:this.paddingValue,paddingRight:this.contained||!this.isRight?null:this.paddingValue}),O(this.parentElement).css({paddingLeft:this.contained&&!this.isRight?this.paddingValue:null,paddingRight:this.contained&&this.isRight?this.paddingValue:null}))}async onPlacementChange(){var t;await this.definedController.whenDefined(),(t=this.layoutManager)==null||t.updateLayout(this),this.items.forEach(i=>{i.placement=this.placement}),this.isParentLayout||O(this.parentTarget).css({paddingLeft:this.isRight?null:this.paddingValue,paddingRight:this.isRight?this.paddingValue:null})}connectedCallback(){super.connectedCallback(),this.isParentLayout||this.definedController.whenDefined().then(()=>{O(this.parentTarget).css({paddingLeft:this.isRight?null:this.paddingValue,paddingRight:this.isRight?this.paddingValue:null})})}disconnectedCallback(){super.disconnectedCallback(),!this.isParentLayout&&this.definedController.isDefined()&&O(this.parentTarget).css({paddingLeft:this.isRight?void 0:null,paddingRight:this.isRight?null:void 0})}render(){const t=this.hasSlotController.test("top"),i=this.hasSlotController.test("bottom");return P`${Ze(t,()=>P``)} ${Ze(i,()=>P``)}`}onClick(t){if(t.button)return;const r=t.target.closest("mdui-navigation-rail-item");r&&(this.activeKey=r.key,this.isInitial=!1,this.updateItems())}updateItems(){this.items.forEach(t=>{t.active=this.activeKey===t.key,t.placement=this.placement,t.isInitial=this.isInitial})}async onSlotChange(){await this.definedController.whenDefined(),this.updateItems()}};ki.styles=[Ce,o_];v([R({reflect:!0})],ki.prototype,"value",void 0);v([R({reflect:!0})],ki.prototype,"placement",void 0);v([R({reflect:!0})],ki.prototype,"alignment",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],ki.prototype,"contained",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],ki.prototype,"divider",void 0);v([_e()],ki.prototype,"activeKey",void 0);v([Hi({selector:"mdui-navigation-rail-item",flatten:!0})],ki.prototype,"items",void 0);v([re("activeKey",!0)],ki.prototype,"onActiveKeyChange",null);v([re("value")],ki.prototype,"onValueChange",null);v([re("contained",!0)],ki.prototype,"onContainedChange",null);v([re("placement",!0)],ki.prototype,"onPlacementChange",null);ki=v([se("mdui-navigation-rail")],ki);const a_=pe`:host{--shape-corner-indicator:var(--mdui-shape-corner-full);position:relative;z-index:0;width:100%;--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface-variant)}.container{display:flex;flex-direction:column;align-items:center;justify-content:center;text-decoration:none;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;height:3.5rem}.container:not(.initial){transition:padding var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}mdui-ripple{z-index:1;width:3.5rem;height:2rem;border-radius:var(--mdui-shape-corner-full)}.container:not(.has-label)+mdui-ripple{height:3.5rem}.indicator{position:relative;display:flex;align-items:center;justify-content:center;background-color:transparent;border-radius:var(--shape-corner-indicator);height:2rem;width:2rem}:not(.initial) .indicator{transition:background-color var(--mdui-motion-duration-short1) var(--mdui-motion-easing-standard),width var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard),height var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}::slotted([slot=badge]){position:absolute;transform:translate(50%,-50%)}.placement-right::slotted([slot=badge]){transform:translate(-50%,-50%)}::slotted([slot=badge][variant=small]){transform:translate(.5625rem,-.5625rem)}.placement-right::slotted([slot=badge][variant=small]){transform:translate(-.5625rem,-.5625rem)}.active-icon,.icon{color:rgb(var(--mdui-color-on-surface-variant));font-size:1.5rem}.active-icon mdui-icon,.icon mdui-icon,::slotted([slot=active-icon]),::slotted([slot=icon]){font-size:inherit}.icon{display:flex}.active-icon{display:none}.label{display:flex;align-items:center;height:1rem;color:rgb(var(--mdui-color-on-surface-variant));margin-top:.25rem;margin-bottom:.25rem;font-size:var(--mdui-typescale-label-medium-size);font-weight:var(--mdui-typescale-label-medium-weight);letter-spacing:var(--mdui-typescale-label-medium-tracking);line-height:var(--mdui-typescale-label-medium-line-height)}:not(.initial) .label{transition:opacity var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear)}:host([active]){--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}:host([active]) .indicator{width:3.5rem;background-color:rgb(var(--mdui-color-secondary-container))}:host([active]) :not(.has-label) .indicator{height:3.5rem}:host([active]) .active-icon,:host([active]) .icon{color:rgb(var(--mdui-color-on-secondary-container))}:host([active]) .has-active-icon .active-icon{display:flex}:host([active]) .has-active-icon .icon{display:none}:host([active]) .label{color:rgb(var(--mdui-color-on-surface))}`;let Er=class extends Oo(dr(Ui(Te))){constructor(){super(...arguments),this.active=!1,this.isInitial=!0,this.placement="left",this.disabled=!1,this.key=Pn(),this.rippleRef=ge(),this.hasSlotController=new It(this,"[default]","active-icon")}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return this.disabled}get focusElement(){var t;return this.href?(t=this.renderRoot)==null?void 0:t.querySelector("._a"):this}get focusDisabled(){return this.disabled}render(){const t=this.hasSlotController.test("[default]"),i=wr({container:!0,"has-label":t,"has-active-icon":this.activeIcon||this.hasSlotController.test("active-icon"),initial:this.isInitial});return P`${this.href?this.renderAnchor({part:"container",className:i,content:this.renderInner(t)}):P`
${this.renderInner(t)}
`}`}renderInner(t){return P`
${this.activeIcon?P``:Ve}${this.icon?P``:Ve}
${t?P``:qe}`}};Er.styles=[Ce,a_];v([R({reflect:!0})],Er.prototype,"icon",void 0);v([R({reflect:!0,attribute:"active-icon"})],Er.prototype,"activeIcon",void 0);v([R({reflect:!0})],Er.prototype,"value",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Er.prototype,"active",void 0);v([_e()],Er.prototype,"isInitial",void 0);v([_e()],Er.prototype,"placement",void 0);v([_e()],Er.prototype,"disabled",void 0);Er=v([se("mdui-navigation-rail-item")],Er);let jh=class extends nt{render(){return Ut('')}};jh.styles=Ht;jh=v([se("mdui-icon-circle")],jh);let Yh=class extends nt{render(){return Ut('')}};Yh.styles=Ht;Yh=v([se("mdui-icon-radio-button-unchecked")],Yh);const l_=pe`:host{position:relative;display:inline-flex;align-items:center;cursor:pointer;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;touch-action:manipulation;zoom:1;-webkit-user-drag:none;border-radius:.125rem;font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking);line-height:var(--mdui-typescale-label-large-line-height)}.icon{display:flex;position:absolute;font-size:1.5rem}:not(.initial) .icon{transition-duration:var(--mdui-motion-duration-short4);transition-timing-function:var(--mdui-motion-easing-standard)}.unchecked-icon{transition-property:color;color:rgb(var(--mdui-color-on-surface-variant))}:host([focused]) .unchecked-icon,:host([hover]) .unchecked-icon,:host([pressed]) .unchecked-icon{color:rgb(var(--mdui-color-on-surface))}.checked-icon{opacity:0;transform:scale(.2);transition-property:color,opacity,transform;color:rgb(var(--mdui-color-primary))}.icon .i,::slotted([slot=checked-icon]),::slotted([slot=unchecked-icon]){color:inherit;font-size:inherit}i{position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:50%;width:2.5rem;min-width:2.5rem;height:2.5rem;--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}.label{display:flex;width:100%;padding-top:.625rem;padding-bottom:.625rem;color:rgb(var(--mdui-color-on-surface))}.label:not(.initial){transition:color var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}:host([checked]) i{--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([checked]) .icon{color:rgb(var(--mdui-color-primary))}:host([checked]) .checked-icon{opacity:1;transform:scale(.5)}i.invalid{--mdui-comp-ripple-state-layer-color:var(--mdui-color-error)}i.invalid .icon{color:rgb(var(--mdui-color-error))}.label.invalid{color:rgb(var(--mdui-color-error))}:host([disabled]),:host([group-disabled]){cursor:default;pointer-events:none}:host([disabled]) .icon,:host([group-disabled]) .icon{color:rgba(var(--mdui-color-on-surface),38%)}:host([disabled]) .label,:host([group-disabled]) .label{color:rgba(var(--mdui-color-on-surface),38%)}`;let Ni=class extends dr(Ui(Te)){constructor(){super(...arguments),this.value="",this.disabled=!1,this.checked=!1,this.invalid=!1,this.groupDisabled=!1,this.focusable=!0,this.isInitial=!0,this.rippleRef=ge()}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return this.isDisabled()}get focusElement(){return this}get focusDisabled(){return this.isDisabled()||!this.focusable}onCheckedChange(){this.emit("change")}firstUpdated(t){super.firstUpdated(t),this.addEventListener("click",()=>{this.isDisabled()||(this.checked=!0)})}render(){const t=ht({invalid:this.invalid,initial:this.isInitial});return P`${this.uncheckedIcon?P``:P``}${this.checkedIcon?P``:P``}`}isDisabled(){return this.disabled||this.groupDisabled}};Ni.styles=[Ce,l_];v([R({reflect:!0})],Ni.prototype,"value",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Ni.prototype,"disabled",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Ni.prototype,"checked",void 0);v([R({reflect:!0,attribute:"unchecked-icon"})],Ni.prototype,"uncheckedIcon",void 0);v([R({reflect:!0,attribute:"checked-icon"})],Ni.prototype,"checkedIcon",void 0);v([_e()],Ni.prototype,"invalid",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"group-disabled"})],Ni.prototype,"groupDisabled",void 0);v([_e()],Ni.prototype,"focusable",void 0);v([_e()],Ni.prototype,"isInitial",void 0);v([re("checked",!0)],Ni.prototype,"onCheckedChange",null);Ni=v([se("mdui-radio")],Ni);const c_=pe`:host{display:inline-block}fieldset{border:none;padding:0;margin:0;min-width:0}input{position:absolute;padding:0;opacity:0;pointer-events:none;width:1.25rem;height:1.25rem;margin:0 0 0 .625rem}`;let er=class extends Te{constructor(){super(...arguments),this.disabled=!1,this.name="",this.value="",this.defaultValue="",this.required=!1,this.invalid=!1,this.isInitial=!0,this.inputRef=ge(),this.formController=new Qr(this),this.definedController=new zt(this,{relatedElements:["mdui-radio"]})}get validity(){return this.inputRef.value.validity}get validationMessage(){return this.inputRef.value.validationMessage}get items(){return O(this).find("mdui-radio").get()}get itemsEnabled(){return O(this).find("mdui-radio:not([disabled])").get()}async onValueChange(){var i;this.isInitial=!1,await this.definedController.whenDefined(),this.emit("input"),this.emit("change"),this.updateItems(),this.updateRadioFocusable(),await this.updateComplete;const t=this.formController.getForm();t&&((i=_t.get(t))!=null&&i.has(this))?(this.invalid=!1,_t.get(t).delete(this)):this.invalid=!this.inputRef.value.checkValidity()}async onInvalidChange(){await this.definedController.whenDefined(),this.updateItems()}checkValidity(){const t=this.inputRef.value.checkValidity();return t||this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),t}reportValidity(){return this.invalid=!this.inputRef.value.reportValidity(),this.invalid&&(this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1})||(this.inputRef.value.blur(),this.inputRef.value.focus())),!this.invalid}setCustomValidity(t){this.inputRef.value.setCustomValidity(t),this.invalid=!this.inputRef.value.checkValidity()}render(){return P`
`}updateRadioFocusable(){const t=this.items,i=t.find(r=>r.checked);i?t.forEach(r=>{r.focusable=r===i}):this.itemsEnabled.forEach((r,n)=>{r.focusable=!n})}async onClick(t){await this.definedController.whenDefined();const r=t.target.closest("mdui-radio");!r||r.disabled||(this.value=r.value,await this.updateComplete,r.focus())}async onKeyDown(t){if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"," "].includes(t.key))return;t.preventDefault(),await this.definedController.whenDefined();const i=this.itemsEnabled,r=i.find(o=>o.checked)??i[0],n=t.key===" "?0:["ArrowUp","ArrowLeft"].includes(t.key)?-1:1;let s=i.indexOf(r)+n;s<0&&(s=i.length-1),s>i.length-1&&(s=0),this.value=i[s].value,await this.updateComplete,i[s].focus()}async onSlotChange(){await this.definedController.whenDefined(),this.updateItems(),this.updateRadioFocusable()}onCheckedChange(t){t.stopPropagation()}updateItems(){this.items.forEach(t=>{t.checked=t.value===this.value,t.invalid=this.invalid,t.groupDisabled=this.disabled,t.isInitial=this.isInitial})}};er.styles=[Ce,c_];v([R({type:Boolean,reflect:!0,converter:Y})],er.prototype,"disabled",void 0);v([R({reflect:!0})],er.prototype,"form",void 0);v([R({reflect:!0})],er.prototype,"name",void 0);v([R({reflect:!0})],er.prototype,"value",void 0);v([On()],er.prototype,"defaultValue",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],er.prototype,"required",void 0);v([_e()],er.prototype,"invalid",void 0);v([re("value",!0)],er.prototype,"onValueChange",null);v([re("invalid",!0),re("disabled")],er.prototype,"onInvalidChange",null);er=v([se("mdui-radio-group")],er);/** + )}:host([disabled]){pointer-events:none}.container{cursor:pointer;-webkit-user-select:none;user-select:none;text-decoration:none;color:inherit;-webkit-tap-highlight-color:transparent}:host([disabled]) .container{cursor:default;opacity:.38}:host([nonclickable]:not([href])) .container{cursor:auto;-webkit-user-select:auto;user-select:auto}.preset{display:flex;align-items:center;padding:.5rem 1.5rem .5rem 1rem;min-height:3.5rem}:host([alignment=start]) .preset{align-items:flex-start}:host([alignment=end]) .preset{align-items:flex-end}.body{display:flex;flex:1 1 100%;flex-direction:column;justify-content:center;min-width:0}.headline{display:block;color:rgb(var(--mdui-color-on-surface));font-size:var(--mdui-typescale-body-large-size);font-weight:var(--mdui-typescale-body-large-weight);letter-spacing:var(--mdui-typescale-body-large-tracking);line-height:var(--mdui-typescale-body-large-line-height)}:host([active]) .headline{color:rgb(var(--mdui-color-on-secondary-container))}.description{display:none;color:rgb(var(--mdui-color-on-surface-variant));font-size:var(--mdui-typescale-body-medium-size);font-weight:var(--mdui-typescale-body-medium-weight);letter-spacing:var(--mdui-typescale-body-medium-tracking);line-height:var(--mdui-typescale-body-medium-line-height)}:host([disabled]) .description,:host([focused]) .description,:host([hover]) .description,:host([pressed]) .description{color:rgb(var(--mdui-color-on-surface))}.has-description .description{display:block}:host([description-line='1']) .description,:host([headline-line='1']) .headline{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host([description-line='2']) .description,:host([description-line='3']) .description,:host([headline-line='2']) .headline,:host([headline-line='3']) .headline{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical}:host([description-line='2']) .description,:host([headline-line='2']) .headline{-webkit-line-clamp:2}:host([description-line='3']) .description,:host([headline-line='3']) .headline{-webkit-line-clamp:3}.end-icon,.icon{display:flex;flex:0 0 auto;font-size:var(--mdui-typescale-label-small-size);font-weight:var(--mdui-typescale-label-small-weight);letter-spacing:var(--mdui-typescale-label-small-tracking);line-height:var(--mdui-typescale-label-small-line-height);color:rgb(var(--mdui-color-on-surface-variant))}:host([disabled]) .end-icon,:host([disabled]) .icon,:host([focused]) .end-icon,:host([focused]) .icon,:host([hover]) .end-icon,:host([hover]) .icon,:host([pressed]) .end-icon,:host([pressed]) .icon{color:rgb(var(--mdui-color-on-surface))}:host([active]) .end-icon,:host([active]) .icon{color:rgb(var(--mdui-color-on-secondary-container))}.end-icon mdui-icon,.icon mdui-icon,.is-end-icon ::slotted([slot=end-icon]),.is-icon ::slotted([slot=icon]){font-size:1.5rem}.has-icon .icon{margin-right:1rem}.has-icon ::slotted(mdui-checkbox[slot=icon]),.has-icon ::slotted(mdui-radio[slot=icon]){margin-left:-.5rem}.has-end-icon .end-icon{margin-left:1rem}.has-end-icon ::slotted(mdui-checkbox[slot=end-icon]),.has-end-icon ::slotted(mdui-radio[slot=end-icon]){margin-right:-.5rem}`;let Qt=class extends Oo(dr(Ui(Re))){constructor(){super(...arguments),this.disabled=!1,this.active=!1,this.nonclickable=!1,this.rounded=!1,this.alignment="center",this.rippleRef=ge(),this.itemRef=ge(),this.hasSlotController=new It(this,"[default]","description","icon","end-icon","custom")}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return this.focusDisabled}get focusElement(){return this.href&&!this.disabled?this.itemRef.value:this}get focusDisabled(){return this.href?this.disabled:this.disabled||this.nonclickable}render(){const t=!this.hasSlotController.test("custom"),i=this.icon||this.hasSlotController.test("icon"),r=this.endIcon||this.hasSlotController.test("end-icon"),n=this.description||this.hasSlotController.test("description"),s=wr({container:!0,preset:t,"has-icon":i,"has-end-icon":r,"has-description":n,"is-icon":vl(this.iconElements[0],"mdui-icon"),"is-end-icon":s9(this.endIconElements[0]).startsWith("mdui-icon-")});return P`${this.href&&!this.disabled?this.renderAnchor({className:s,content:this.renderInner(),part:"container",refDirective:de(this.itemRef)}):P`
${this.renderInner()}
`}`}renderInner(){const t=this.hasSlotController.test("[default]");return P`${this.icon?P``:Ve}
${t?P``:P`
${this.headline}
`}${this.description}
${this.endIcon?P``:Ve}
`}};Qt.styles=[Ce,Qw];v([R({reflect:!0})],Qt.prototype,"headline",void 0);v([R({type:Number,reflect:!0,attribute:"headline-line"})],Qt.prototype,"headlineLine",void 0);v([R({reflect:!0})],Qt.prototype,"description",void 0);v([R({type:Number,reflect:!0,attribute:"description-line"})],Qt.prototype,"descriptionLine",void 0);v([R({reflect:!0})],Qt.prototype,"icon",void 0);v([R({reflect:!0,attribute:"end-icon"})],Qt.prototype,"endIcon",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Qt.prototype,"disabled",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Qt.prototype,"active",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Qt.prototype,"nonclickable",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Qt.prototype,"rounded",void 0);v([R({reflect:!0})],Qt.prototype,"alignment",void 0);v([Hi({slot:"icon",flatten:!0})],Qt.prototype,"iconElements",void 0);v([Hi({slot:"end-icon",flatten:!0})],Qt.prototype,"endIconElements",void 0);Qt=v([se("mdui-list-item")],Qt);const Jw=pe`:host{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;cursor:default;color:rgb(var(--mdui-color-on-surface-variant));font-size:var(--mdui-typescale-label-small-size);font-weight:var(--mdui-typescale-label-small-weight);letter-spacing:var(--mdui-typescale-label-small-tracking);line-height:var(--mdui-typescale-label-small-line-height);padding-left:1rem;padding-right:1.5rem;height:3.5rem;line-height:3.5rem}`;let Kh=class extends Re{render(){return P``}};Kh.styles=[Ce,Jw];Kh=v([se("mdui-list-subheader")],Kh);const e_=pe`:host{display:block;padding:.5rem 0}::slotted(mdui-divider[middle]){margin-left:1rem;margin-right:1.5rem}`;let Wh=class extends Re{render(){return P``}};Wh.styles=[Ce,e_];Wh=v([se("mdui-list")],Wh);let qh=class extends nt{render(){return Ut('')}};qh.styles=Ht;qh=v([se("mdui-icon-arrow-right")],qh);const t_=pe`:host{position:relative;display:block}:host([selected]){background-color:rgba(var(--mdui-color-primary),12%)}:host([disabled]){pointer-events:none}.container{cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}:host([disabled]) .container{cursor:default;opacity:.38}.preset{display:flex;align-items:center;text-decoration:none;height:3rem;padding:0 .75rem}.preset.dense{height:2rem}.label-container{flex:1 1 100%;min-width:0}.label{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:rgb(var(--mdui-color-on-surface));font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking)}.end-icon,.end-text,.icon,.selected-icon{display:none;flex:0 0 auto;color:rgb(var(--mdui-color-on-surface-variant))}.has-end-icon .end-icon,.has-end-text .end-text,.has-icon .icon,.has-icon .selected-icon{display:flex}.end-icon,.icon,.selected-icon{font-size:1.5rem}.end-icon::slotted(mdui-avatar),.icon::slotted(mdui-avatar),.selected-icon::slotted(mdui-avatar){width:1.5rem;height:1.5rem}.dense .end-icon,.dense .icon,.dense .selected-icon{font-size:1.125rem}.dense .end-icon::slotted(mdui-avatar),.dense .icon::slotted(mdui-avatar),.dense .selected-icon::slotted(mdui-avatar){width:1.125rem;height:1.125rem}.end-icon .i,.icon .i,.selected-icon .i,::slotted([slot=end-icon]),::slotted([slot=icon]),::slotted([slot=selected-icon]){font-size:inherit}.end-text{font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking);line-height:var(--mdui-typescale-label-large-line-height)}.icon,.selected-icon{margin-right:.75rem}.end-icon,.end-text{margin-left:.75rem}.arrow-right{color:rgb(var(--mdui-color-on-surface))}.submenu{--shape-corner:var(--mdui-shape-corner-extra-small);display:block;position:absolute;z-index:1;border-radius:var(--shape-corner);background-color:rgb(var(--mdui-color-surface-container));box-shadow:var(--mdui-elevation-level2);min-width:7rem;max-width:17.5rem;padding-top:.5rem;padding-bottom:.5rem;--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}.submenu::slotted(mdui-divider){margin-top:.5rem;margin-bottom:.5rem}`;let $t=class extends Oo(dr(Ui(Re))){constructor(){super(),this.disabled=!1,this.submenuOpen=!1,this.selected=!1,this.dense=!1,this.focusable=!1,this.key=Pn(),this.rippleRef=ge(),this.containerRef=ge(),this.submenuRef=ge(),this.hasSlotController=new It(this,"[default]","icon","end-icon","end-text","submenu","custom"),this.definedController=new zt(this,{relatedElements:[""]}),this.onOuterClick=this.onOuterClick.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this),this.onClick=this.onClick.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onMouseEnter=this.onMouseEnter.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this)}get focusDisabled(){return this.disabled||!this.focusable}get focusElement(){return this.href&&!this.disabled?this.containerRef.value:this}get rippleDisabled(){return this.disabled}get rippleElement(){return this.rippleRef.value}get hasSubmenu(){return this.hasSlotController.test("submenu")}async onOpenChange(){const t=this.hasUpdated;if(!this.submenuOpen&&!t)return;await this.definedController.whenDefined(),t||await this.updateComplete;const i=Gt(this,"linear"),r=Gt(this,"emphasized-decelerate"),n=Gt(this,"emphasized-accelerate");if(this.submenuOpen){if(t&&!this.emit("submenu-open",{cancelable:!0}))return;const s=Qi(this,"medium4");await yi(this.submenuRef.value),this.submenuRef.value.hidden=!1,this.updateSubmenuPositioner(),await Promise.all([We(this.submenuRef.value,[{transform:"scaleY(0.45)"},{transform:"scaleY(1)"}],{duration:t?s:0,easing:r}),We(this.submenuRef.value,[{opacity:0},{opacity:1,offset:.125},{opacity:1}],{duration:t?s:0,easing:i})]),t&&this.emit("submenu-opened")}else{if(!this.emit("submenu-close",{cancelable:!0}))return;const o=Qi(this,"short4");await yi(this.submenuRef.value),await Promise.all([We(this.submenuRef.value,[{transform:"scaleY(1)"},{transform:"scaleY(0.45)"}],{duration:o,easing:n}),We(this.submenuRef.value,[{opacity:1},{opacity:1,offset:.875},{opacity:0}],{duration:o,easing:i})]),this.submenuRef.value&&(this.submenuRef.value.hidden=!0),this.emit("submenu-closed")}}connectedCallback(){super.connectedCallback(),this.definedController.whenDefined().then(()=>{document.addEventListener("pointerdown",this.onOuterClick)})}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.onOuterClick)}firstUpdated(t){super.firstUpdated(t),this.definedController.whenDefined().then(()=>{this.addEventListener("focus",this.onFocus),this.addEventListener("blur",this.onBlur),this.addEventListener("click",this.onClick),this.addEventListener("keydown",this.onKeydown),this.addEventListener("mouseenter",this.onMouseEnter),this.addEventListener("mouseleave",this.onMouseLeave)})}render(){const t=this.hasSubmenu,i=this.hasSlotController.test("custom"),r=this.hasSlotController.test("end-icon"),n=!this.endIcon&&t&&!r,s=this.endIcon||t||r,o=!et(this.icon)||this.selects==="single"||this.selects==="multiple"||this.hasSlotController.test("icon"),a=!!this.endText||this.hasSlotController.test("end-text"),l=wr({container:!0,dense:this.dense,preset:!i,"has-icon":o,"has-end-text":a,"has-end-icon":s});return P`${this.href&&!this.disabled?this.renderAnchor({part:"container",className:l,content:this.renderInner(n,o),refDirective:de(this.containerRef),tabIndex:this.focusable?0:-1}):P`
${this.renderInner(n,o)}
`} ${Ze(t,()=>P``)}`}onOuterClick(t){!this.disabled&&this.submenuOpen&&this!==t.target&&!O.contains(this,t.target)&&(this.submenuOpen=!1)}hasTrigger(t){return this.submenuTrigger?this.submenuTrigger.split(" ").includes(t):!1}onFocus(){this.disabled||this.submenuOpen||!this.hasTrigger("focus")||!this.hasSubmenu||(this.submenuOpen=!0)}onBlur(){this.disabled||!this.submenuOpen||!this.hasTrigger("focus")||!this.hasSubmenu||(this.submenuOpen=!1)}onClick(t){this.disabled||t.button||!this.hasTrigger("click")||t.target!==this||!this.hasSubmenu||this.submenuOpen&&(this.hasTrigger("hover")||this.hasTrigger("focus"))||(this.submenuOpen=!this.submenuOpen)}onKeydown(t){this.disabled||!this.hasSubmenu||(!this.submenuOpen&&t.key==="Enter"&&(t.stopPropagation(),this.submenuOpen=!0),this.submenuOpen&&t.key==="Escape"&&(t.stopPropagation(),this.submenuOpen=!1))}onMouseEnter(){this.disabled||!this.hasTrigger("hover")||!this.hasSubmenu||(window.clearTimeout(this.submenuCloseTimeout),this.submenuOpenDelay?this.submenuOpenTimeout=window.setTimeout(()=>{this.submenuOpen=!0},this.submenuOpenDelay):this.submenuOpen=!0)}onMouseLeave(){this.disabled||!this.hasTrigger("hover")||!this.hasSubmenu||(window.clearTimeout(this.submenuOpenTimeout),this.submenuCloseTimeout=window.setTimeout(()=>{this.submenuOpen=!1},this.submenuCloseDelay||50))}updateSubmenuPositioner(){const t=O(window),i=O(this.submenuRef.value),r=this.getBoundingClientRect(),n=i.innerWidth(),s=i.innerHeight(),o=8;let a="bottom",l="right";t.height()-r.top>s+o?a="bottom":r.top+r.height>s+o&&(a="top"),t.width()-r.left-r.width>n+o?l="right":r.left>n+o&&(l="left"),O(this.submenuRef.value).css({top:a==="bottom"?0:r.height-s,left:l==="right"?r.width:-n,transformOrigin:[l==="right"?0:"100%",a==="bottom"?0:"100%"].join(" ")})}renderInner(t,i){return P`${this.selected?P`${this.selectedIcon?P``:P``}`:P`${i?P``:Ve}`}
${this.endText}${t?P``:P`${this.endIcon?P``:Ve}`}
`}};$t.styles=[Ce,t_];v([R({reflect:!0})],$t.prototype,"value",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],$t.prototype,"disabled",void 0);v([R({reflect:!0})],$t.prototype,"icon",void 0);v([R({reflect:!0,attribute:"end-icon"})],$t.prototype,"endIcon",void 0);v([R({reflect:!0,attribute:"end-text"})],$t.prototype,"endText",void 0);v([R({reflect:!0,attribute:"selected-icon"})],$t.prototype,"selectedIcon",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"submenu-open"})],$t.prototype,"submenuOpen",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],$t.prototype,"selected",void 0);v([_e()],$t.prototype,"dense",void 0);v([_e()],$t.prototype,"selects",void 0);v([_e()],$t.prototype,"submenuTrigger",void 0);v([_e()],$t.prototype,"submenuOpenDelay",void 0);v([_e()],$t.prototype,"submenuCloseDelay",void 0);v([_e()],$t.prototype,"focusable",void 0);v([re("submenuOpen")],$t.prototype,"onOpenChange",null);$t=v([se("mdui-menu-item")],$t);const i_=pe`:host{--shape-corner:var(--mdui-shape-corner-extra-small);position:relative;display:block;border-radius:var(--shape-corner);background-color:rgb(var(--mdui-color-surface-container));box-shadow:var(--mdui-elevation-level2);min-width:7rem;max-width:17.5rem;padding-top:.5rem;padding-bottom:.5rem;--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}::slotted(mdui-divider){margin-top:.5rem;margin-bottom:.5rem}`;let ci=class extends Re{constructor(){super(...arguments),this.dense=!1,this.submenuTrigger="click hover",this.submenuOpenDelay=200,this.submenuCloseDelay=200,this.selectedKeys=[],this.isInitial=!0,this.lastActiveItems=[],this.definedController=new zt(this,{relatedElements:["mdui-menu-item"]})}get items(){return O(this.childrenItems).find("mdui-menu-item").add(this.childrenItems).get()}get itemsEnabled(){return this.items.filter(t=>!t.disabled)}get isSingle(){return this.selects==="single"}get isMultiple(){return this.selects==="multiple"}get isSelectable(){return this.isSingle||this.isMultiple}get isSubmenu(){return!O(this).parent().length}get lastActiveItem(){const t=this.lastActiveItems.length?this.lastActiveItems.length-1:0;return this.lastActiveItems[t]}set lastActiveItem(t){const i=this.lastActiveItems.length?this.lastActiveItems.length-1:0;this.lastActiveItems[i]=t}async onSlotChange(){await this.definedController.whenDefined(),this.items.forEach(t=>{t.dense=this.dense,t.selects=this.selects,t.submenuTrigger=this.submenuTrigger,t.submenuOpenDelay=this.submenuOpenDelay,t.submenuCloseDelay=this.submenuCloseDelay})}async onSelectsChange(){this.isSelectable?this.isSingle&&this.setSelectedKeys(this.selectedKeys.slice(0,1)):this.setSelectedKeys([]),await this.onSelectedKeysChange()}async onSelectedKeysChange(){await this.definedController.whenDefined();const t=this.itemsEnabled.filter(r=>this.selectedKeys.includes(r.key)).map(r=>r.value),i=this.isMultiple?t:t[0]||void 0;this.setValue(i),this.isInitial||this.emit("change")}async onValueChange(){if(this.isInitial=!this.hasUpdated,await this.definedController.whenDefined(),!this.isSelectable){this.updateSelected();return}const t=(this.isSingle?[this.value]:pt(this.value)?[this.value]:this.value).filter(i=>i);if(!t.length)this.setSelectedKeys([]);else if(this.isSingle){const i=this.itemsEnabled.find(r=>r.value===t[0]);this.setSelectedKeys(i?[i.key]:[])}else this.isMultiple&&this.setSelectedKeys(this.itemsEnabled.filter(i=>t.includes(i.value)).map(i=>i.key));this.updateSelected(),this.updateFocusable()}focus(t){this.lastActiveItem&&this.focusOne(this.lastActiveItem,t)}blur(){this.lastActiveItem&&this.lastActiveItem.blur()}firstUpdated(t){super.firstUpdated(t),this.definedController.whenDefined().then(()=>{this.updateFocusable(),this.lastActiveItem=this.items.find(i=>i.focusable)}),this.addEventListener("submenu-open",i=>{const r=O(i.target),n=r.children("mdui-menu-item:not([disabled])").get(),s=r.parents("mdui-menu-item").length+1;n.length&&(this.lastActiveItems[s]=n[0],this.updateFocusable(),this.focusOne(this.lastActiveItems[s]))}),this.addEventListener("submenu-close",i=>{const n=O(i.target).parents("mdui-menu-item").length+1;this.lastActiveItems.length-1===n&&(this.lastActiveItems.pop(),this.updateFocusable(),this.lastActiveItems[n-1]&&this.focusOne(this.lastActiveItems[n-1]))})}render(){return P``}setSelectedKeys(t){xo(this.selectedKeys,t)||(this.selectedKeys=t)}setValue(t){this.isSingle||et(this.value)||et(t)?this.value=t:xo(this.value,t)||(this.value=t)}getSiblingsItems(t,i=!1){return O(t).parent().children(`mdui-menu-item${i?":not([disabled])":""}`).get()}updateFocusable(){if(this.lastActiveItem){this.items.forEach(t=>{t.focusable=t.key===this.lastActiveItem.key});return}if(!this.selectedKeys.length){this.itemsEnabled.forEach((t,i)=>{t.focusable=!i});return}if(this.isSingle){this.items.forEach(t=>{t.focusable=this.selectedKeys.includes(t.key)});return}if(this.isMultiple){const t=this.items.find(i=>i.focusable);(!(t!=null&&t.key)||!this.selectedKeys.includes(t.key))&&this.itemsEnabled.filter(i=>this.selectedKeys.includes(i.key)).forEach((i,r)=>i.focusable=!r)}}updateSelected(){this.items.forEach(t=>{t.selected=this.selectedKeys.includes(t.key)})}selectOne(t){if(this.isMultiple){const i=[...this.selectedKeys];i.includes(t.key)?i.splice(i.indexOf(t.key),1):i.push(t.key),this.setSelectedKeys(i)}this.isSingle&&(this.selectedKeys.includes(t.key)?this.setSelectedKeys([]):this.setSelectedKeys([t.key])),this.isInitial=!1,this.updateSelected()}async focusableOne(t){this.items.forEach(i=>i.focusable=i.key===t.key),await ib()}focusOne(t,i){t.focus(i)}async onClick(t){if(!this.definedController.isDefined()||this.isSubmenu||t.button)return;const r=t.target.closest("mdui-menu-item");!r||r.disabled||(this.lastActiveItem=r,this.isSelectable&&r.value&&this.selectOne(r),await this.focusableOne(r),this.focusOne(r))}async onKeyDown(t){if(!this.definedController.isDefined()||this.isSubmenu)return;const i=t.target;if(t.key==="Enter"&&(t.preventDefault(),i.click()),t.key===" "&&(t.preventDefault(),this.isSelectable&&i.value&&(this.selectOne(i),await this.focusableOne(i),this.focusOne(i))),["ArrowUp","ArrowDown","Home","End"].includes(t.key)){const r=this.getSiblingsItems(i,!0),n=r.find(o=>o.focusable);let s=n?r.indexOf(n):0;if(r.length>0){t.preventDefault(),t.key==="ArrowDown"?s++:t.key==="ArrowUp"?s--:t.key==="Home"?s=0:t.key==="End"&&(s=r.length-1),s<0&&(s=r.length-1),s>r.length-1&&(s=0),this.lastActiveItem=r[s],await this.focusableOne(r[s]),this.focusOne(r[s]);return}}}};ci.styles=[Ce,i_];v([R({reflect:!0})],ci.prototype,"selects",void 0);v([R()],ci.prototype,"value",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],ci.prototype,"dense",void 0);v([R({reflect:!0,attribute:"submenu-trigger"})],ci.prototype,"submenuTrigger",void 0);v([R({type:Number,reflect:!0,attribute:"submenu-open-delay"})],ci.prototype,"submenuOpenDelay",void 0);v([R({type:Number,reflect:!0,attribute:"submenu-close-delay"})],ci.prototype,"submenuCloseDelay",void 0);v([_e()],ci.prototype,"selectedKeys",void 0);v([Hi({flatten:!0,selector:"mdui-menu-item"})],ci.prototype,"childrenItems",void 0);v([re("dense"),re("selects"),re("submenuTrigger"),re("submenuOpenDelay"),re("submenuCloseDelay")],ci.prototype,"onSlotChange",null);v([re("selects",!0)],ci.prototype,"onSelectsChange",null);v([re("selectedKeys",!0)],ci.prototype,"onSelectedKeysChange",null);v([re("value")],ci.prototype,"onValueChange",null);ci=v([se("mdui-menu")],ci);const r_=pe`:host{--shape-corner-indicator:var(--mdui-shape-corner-full);position:relative;z-index:0;flex:1;overflow:hidden;min-width:3rem;--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface-variant)}.container{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;text-decoration:none;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;padding-top:.75rem;padding-bottom:.75rem}.container:not(.initial){transition:padding var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}mdui-ripple{z-index:1;left:50%;transform:translateX(-50%);width:4rem;height:2rem;margin-top:.75rem;border-radius:var(--mdui-shape-corner-full)}mdui-ripple:not(.initial){transition:margin-top var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}.indicator{position:relative;display:flex;align-items:center;justify-content:center;background-color:transparent;border-radius:var(--shape-corner-indicator);height:2rem;width:2rem}:not(.initial) .indicator{transition:background-color var(--mdui-motion-duration-short1) var(--mdui-motion-easing-standard),width var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}::slotted([slot=badge]){position:absolute;transform:translate(50%,-50%)}::slotted([slot=badge][variant=small]){transform:translate(.5625rem,-.5625rem)}.active-icon,.icon{color:rgb(var(--mdui-color-on-surface-variant));font-size:1.5rem}.active-icon mdui-icon,.icon mdui-icon,::slotted([slot=active]),::slotted([slot=icon]){font-size:inherit}.icon{display:flex}.active-icon{display:none}.label{display:flex;align-items:center;height:1rem;color:rgb(var(--mdui-color-on-surface-variant));margin-top:.25rem;margin-bottom:.25rem;font-size:var(--mdui-typescale-label-medium-size);font-weight:var(--mdui-typescale-label-medium-weight);letter-spacing:var(--mdui-typescale-label-medium-tracking);line-height:var(--mdui-typescale-label-medium-line-height)}:not(.initial) .label{transition:opacity var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear)}:host(:not([active])) mdui-ripple.label-visibility-selected,mdui-ripple.label-visibility-unlabeled{margin-top:1.5rem}.container.label-visibility-unlabeled,:host(:not([active])) .container.label-visibility-selected{padding-top:1.5rem;padding-bottom:0}.container.label-visibility-unlabeled .label,:host(:not([active])) .container.label-visibility-selected .label{opacity:0}:host([active]){--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}:host([active]) .indicator{width:4rem;background-color:rgb(var(--mdui-color-secondary-container))}:host([active]) .active-icon,:host([active]) .icon{color:rgb(var(--mdui-color-on-secondary-container))}:host([active]) .has-active-icon .active-icon{display:flex}:host([active]) .has-active-icon .icon{display:none}:host([active]) .label{color:rgb(var(--mdui-color-on-surface))}`;let Cr=class extends Oo(dr(Ui(Re))){constructor(){super(...arguments),this.isInitial=!0,this.active=!1,this.disabled=!1,this.key=Pn(),this.rippleRef=ge(),this.hasSlotController=new It(this,"active-icon")}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return this.disabled}get focusElement(){var t;return this.href?(t=this.renderRoot)==null?void 0:t.querySelector("._a"):this}get focusDisabled(){return this.disabled}render(){const t=wr({"label-visibility-selected":this.labelVisibility==="selected","label-visibility-labeled":this.labelVisibility==="labeled","label-visibility-unlabeled":this.labelVisibility==="unlabeled",initial:this.isInitial}),i=wr([{container:!0,"has-active-icon":this.activeIcon||this.hasSlotController.test("active-icon")},t]);return P`${this.href?this.renderAnchor({part:"container",className:i,content:this.renderInner()}):P`
${this.renderInner()}
`}`}renderInner(){return P`
${this.activeIcon?P``:Ve}${this.icon?P``:Ve}
`}};Cr.styles=[Ce,r_];v([R({reflect:!0})],Cr.prototype,"icon",void 0);v([R({reflect:!0,attribute:"active-icon"})],Cr.prototype,"activeIcon",void 0);v([R({reflect:!0})],Cr.prototype,"value",void 0);v([_e()],Cr.prototype,"labelVisibility",void 0);v([_e()],Cr.prototype,"isInitial",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Cr.prototype,"active",void 0);v([_e()],Cr.prototype,"disabled",void 0);Cr=v([se("mdui-navigation-bar-item")],Cr);const n_=pe`:host{--shape-corner:var(--mdui-shape-corner-none);--z-index:2000;position:fixed;right:0;bottom:0;left:0;display:flex;flex:0 0 auto;overflow:hidden;border-radius:var(--shape-corner) var(--shape-corner) 0 0;z-index:var(--z-index);transition-property:transform;transition-duration:var(--mdui-motion-duration-long2);transition-timing-function:var(--mdui-motion-easing-emphasized);height:5rem;background-color:rgb(var(--mdui-color-surface));box-shadow:var(--mdui-elevation-level2)}:host([scroll-target]:not([scroll-target=''])){position:absolute}:host([hide]){transform:translateY(5.625rem);transition-duration:var(--mdui-motion-duration-short4)}`;let Ji=class extends Lp(Bn){constructor(){super(...arguments),this.hide=!1,this.labelVisibility="auto",this.activeKey=0,this.isInitial=!0,this.definedController=new zt(this,{relatedElements:["mdui-navigation-bar-item"]})}get scrollPaddingPosition(){return"bottom"}get layoutPlacement(){return"bottom"}async onActiveKeyChange(){await this.definedController.whenDefined();const t=this.items.find(i=>i.key===this.activeKey);this.value=t==null?void 0:t.value,this.isInitial||this.emit("change")}async onValueChange(){this.isInitial=!this.hasUpdated,await this.definedController.whenDefined();const t=this.items.find(i=>i.value===this.value);this.activeKey=(t==null?void 0:t.key)??0,this.updateItems()}async onLabelVisibilityChange(){await this.definedController.whenDefined(),this.updateItems()}firstUpdated(t){super.firstUpdated(t),this.addEventListener("transitionend",i=>{i.target===this&&this.emit(this.hide?"hidden":"shown")})}render(){return P``}runScrollThreshold(t){!t&&!this.hide&&this.emit("hide",{cancelable:!0})&&(this.hide=!0),t&&this.hide&&this.emit("show",{cancelable:!0})&&(this.hide=!1)}onClick(t){if(t.button)return;const r=t.target.closest("mdui-navigation-bar-item");r&&(this.activeKey=r.key,this.isInitial=!1,this.updateItems())}updateItems(){const t=this.items,i=this.labelVisibility==="auto"?t.length<=3?"labeled":"selected":this.labelVisibility;t.forEach(r=>{r.active=this.activeKey===r.key,r.labelVisibility=i,r.isInitial=this.isInitial})}async onSlotChange(){await this.definedController.whenDefined(),this.updateItems()}};Ji.styles=[Ce,n_];v([R({type:Boolean,reflect:!0,converter:Y})],Ji.prototype,"hide",void 0);v([R({reflect:!0,attribute:"label-visibility"})],Ji.prototype,"labelVisibility",void 0);v([R({reflect:!0})],Ji.prototype,"value",void 0);v([R({reflect:!0,attribute:"scroll-behavior"})],Ji.prototype,"scrollBehavior",void 0);v([_e()],Ji.prototype,"activeKey",void 0);v([Hi({selector:"mdui-navigation-bar-item",flatten:!0})],Ji.prototype,"items",void 0);v([re("activeKey",!0)],Ji.prototype,"onActiveKeyChange",null);v([re("value")],Ji.prototype,"onValueChange",null);v([re("labelVisibility",!0)],Ji.prototype,"onLabelVisibilityChange",null);Ji=v([se("mdui-navigation-bar")],Ji);const rb=e=>{const t=Dn(),i=oi(),r=t.getComputedStyle(i.documentElement),n=qr(e)?O(e).innerWidth():bd(e)?e:O(t).innerWidth(),s=a=>{const l=r.getPropertyValue(`--mdui-breakpoint-${a}`).toLowerCase();return parseFloat(l)},o=a=>{switch(a){case"xs":return"sm";case"sm":return"md";case"md":return"lg";case"lg":return"xl";case"xl":return"xxl"}};return{up(a){return n>=s(a)},down(a){return n{const i=this.contained?this.parentElement:void 0;this.mobile=rb(i).down("md"),this.isParentLayout&&this.layoutManager.updateLayout(this,{width:this.isModal?0:void 0})})}onPlacementChange(){this.isParentLayout&&this.layoutManager.updateLayout(this)}async onMobileChange(){!this.open||this.isParentLayout||this.contained||(await this.definedController.whenDefined(),this.isModal?(Uh(this,this.lockTarget),await this.getLockTargetAnimate(!1,0)):(va(this,this.lockTarget),await this.getLockTargetAnimate(!0,0)))}async onOpenChange(){let t=this.panelRef.value,i=this.overlayRef.value;const r=this.placement==="right",n=Gt(this,"linear"),s=Gt(this,"emphasized"),o=(l,c)=>{O(this.layoutManager.getItemsAndMain()).css("transition",_p(l)?null:`all ${l}ms ${c}`)},a=async()=>{const l=[];if(this.isModal?l.push(i,t):this.isParentLayout||l.push(this.lockTarget),this.isParentLayout){const c=this.layoutManager.getItemsAndMain(),d=c.indexOf(this);l.push(...c.slice(d))}!this.isModal&&!l.includes(this)&&l.push(this),await Promise.all(l.map(c=>yi(c)))};if(this.open){const l=this.hasUpdated;if(l||(await this.updateComplete,t=this.panelRef.value,i=this.overlayRef.value),l&&!this.emit("open",{cancelable:!0}))return;await this.definedController.whenDefined(),this.style.display="block",this.originalTrigger=document.activeElement,this.isModal&&(this.modalHelper.activate(),this.contained||Uh(this,this.lockTarget)),await a(),requestAnimationFrame(()=>{const u=this.querySelector("[autofocus]");u?u.focus({preventScroll:!0}):t.focus({preventScroll:!0})});const c=Qi(this,"long2"),d=[];if(this.isModal?d.push(We(i,[{opacity:0},{opacity:1,offset:.3},{opacity:1}],{duration:l?c:0,easing:n})):this.isParentLayout||d.push(this.getLockTargetAnimate(!0,l?c:0)),this.isParentLayout&&l&&(o(c,s),this.layoutManager.updateLayout(this)),d.push(We(this.isModal?t:this,[{transform:`translateX(${r?"":"-"}100%)`},{transform:"translateX(0)"}],{duration:l?c:0,easing:s})),await Promise.all(d),!this.open)return;this.isParentLayout&&l&&o(null),l&&this.emit("opened")}else if(this.hasUpdated){if(!this.emit("close",{cancelable:!0}))return;await this.definedController.whenDefined(),this.isModal&&this.modalHelper.deactivate(),await a();const c=Qi(this,"short4"),d=[];if(this.isModal?d.push(We(i,[{opacity:1},{opacity:0}],{duration:c,easing:n})):this.isParentLayout||d.push(this.getLockTargetAnimate(!1,c)),this.isParentLayout&&(o(c,s),this.layoutManager.updateLayout(this,{width:0})),d.push(We(this.isModal?t:this,[{transform:"translateX(0)"},{transform:`translateX(${r?"":"-"}100%)`}],{duration:c,easing:s})),await Promise.all(d),this.open)return;this.isParentLayout&&o(null),this.style.display="none",this.isModal&&!this.contained&&va(this,this.lockTarget);const u=this.originalTrigger;ft(u==null?void 0:u.focus)&&setTimeout(()=>u.focus()),this.emit("closed")}}connectedCallback(){super.connectedCallback(),this.modalHelper=new Xy(this)}disconnectedCallback(){var t;super.disconnectedCallback(),va(this,this.lockTarget),(t=this.observeResize)==null||t.unobserve()}firstUpdated(t){super.firstUpdated(t),this.addEventListener("keydown",i=>{this.open&&this.closeOnEsc&&i.key==="Escape"&&this.isModal&&(i.stopPropagation(),this.open=!1)})}render(){return P`${Ze(this.isModal,()=>P`
`)}`}onOverlayClick(){this.emit("overlay-click"),this.closeOnOverlayClick&&(this.open=!1)}getLockTargetAnimate(t,i){const r=this.placement==="right"?"paddingRight":"paddingLeft",n=O(this.panelRef.value).innerWidth()+"px";return We(this.lockTarget,[{[r]:t?0:n},{[r]:t?n:0}],{duration:i,easing:Gt(this,"emphasized"),fill:"forwards"})}};_i.styles=[Ce,s_];v([R({type:Boolean,reflect:!0,converter:Y})],_i.prototype,"open",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],_i.prototype,"modal",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"close-on-esc"})],_i.prototype,"closeOnEsc",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"close-on-overlay-click"})],_i.prototype,"closeOnOverlayClick",void 0);v([R({reflect:!0})],_i.prototype,"placement",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],_i.prototype,"contained",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],_i.prototype,"mobile",void 0);v([re("contained")],_i.prototype,"onContainedChange",null);v([re("placement",!0)],_i.prototype,"onPlacementChange",null);v([re("mobile",!0),re("modal",!0)],_i.prototype,"onMobileChange",null);v([re("open")],_i.prototype,"onOpenChange",null);_i=v([se("mdui-navigation-drawer")],_i);const o_=pe`:host{--shape-corner:var(--mdui-shape-corner-none);--z-index:2000;position:fixed;top:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;border-radius:0 var(--shape-corner) var(--shape-corner) 0;z-index:var(--z-index);width:5rem;background-color:rgb(var(--mdui-color-surface));padding:.375rem .75rem}:host([contained]){position:absolute}:host([divider]){border-right:.0625rem solid rgb(var(--mdui-color-surface-variant));width:5.0625rem}:host([placement=right]){left:initial;right:0;border-radius:var(--shape-corner) 0 0 var(--shape-corner)}:host([placement=right][divider]){border-right:none;border-left:.0625rem solid rgb(var(--mdui-color-surface-variant))}.bottom,.items,.top{display:flex;flex-direction:column;align-items:center;width:100%}.top{margin-bottom:1.75rem}.bottom{margin-top:1.75rem}::slotted([slot=bottom]),::slotted([slot=top]),::slotted(mdui-navigation-rail-item){margin-top:.375rem;margin-bottom:.375rem}:host([alignment=start]) .top-spacer{flex-grow:0}:host([alignment=start]) .bottom-spacer{flex-grow:1}:host([alignment=end]) .top-spacer{flex-grow:1}:host([alignment=end]) .bottom-spacer{flex-grow:0}:host([alignment=center]){justify-content:center}:host([alignment=center]) .bottom,:host([alignment=center]) .top{position:absolute}:host([alignment=center]) .top{top:.375rem}:host([alignment=center]) .bottom{bottom:.375rem}`;let ki=class extends Bn{constructor(){super(...arguments),this.placement="left",this.alignment="start",this.contained=!1,this.divider=!1,this.activeKey=0,this.hasSlotController=new It(this,"top","bottom"),this.definedController=new zt(this,{relatedElements:["mdui-navigation-rail-item"]}),this.isInitial=!0}get layoutPlacement(){return this.placement}get parentTarget(){return this.contained||this.isParentLayout?this.parentElement:document.body}get isRight(){return this.placement==="right"}get paddingValue(){return["fixed","absolute"].includes(O(this).css("position"))?this.offsetWidth:void 0}async onActiveKeyChange(){await this.definedController.whenDefined();const t=this.items.find(i=>i.key===this.activeKey);this.value=t==null?void 0:t.value,this.isInitial||this.emit("change")}async onValueChange(){this.isInitial=!this.hasUpdated,await this.definedController.whenDefined();const t=this.items.find(i=>i.value===this.value);this.activeKey=(t==null?void 0:t.key)??0,this.updateItems()}async onContainedChange(){this.isParentLayout||(await this.definedController.whenDefined(),O(document.body).css({paddingLeft:this.contained||this.isRight?null:this.paddingValue,paddingRight:this.contained||!this.isRight?null:this.paddingValue}),O(this.parentElement).css({paddingLeft:this.contained&&!this.isRight?this.paddingValue:null,paddingRight:this.contained&&this.isRight?this.paddingValue:null}))}async onPlacementChange(){var t;await this.definedController.whenDefined(),(t=this.layoutManager)==null||t.updateLayout(this),this.items.forEach(i=>{i.placement=this.placement}),this.isParentLayout||O(this.parentTarget).css({paddingLeft:this.isRight?null:this.paddingValue,paddingRight:this.isRight?this.paddingValue:null})}connectedCallback(){super.connectedCallback(),this.isParentLayout||this.definedController.whenDefined().then(()=>{O(this.parentTarget).css({paddingLeft:this.isRight?null:this.paddingValue,paddingRight:this.isRight?this.paddingValue:null})})}disconnectedCallback(){super.disconnectedCallback(),!this.isParentLayout&&this.definedController.isDefined()&&O(this.parentTarget).css({paddingLeft:this.isRight?void 0:null,paddingRight:this.isRight?null:void 0})}render(){const t=this.hasSlotController.test("top"),i=this.hasSlotController.test("bottom");return P`${Ze(t,()=>P``)} ${Ze(i,()=>P``)}`}onClick(t){if(t.button)return;const r=t.target.closest("mdui-navigation-rail-item");r&&(this.activeKey=r.key,this.isInitial=!1,this.updateItems())}updateItems(){this.items.forEach(t=>{t.active=this.activeKey===t.key,t.placement=this.placement,t.isInitial=this.isInitial})}async onSlotChange(){await this.definedController.whenDefined(),this.updateItems()}};ki.styles=[Ce,o_];v([R({reflect:!0})],ki.prototype,"value",void 0);v([R({reflect:!0})],ki.prototype,"placement",void 0);v([R({reflect:!0})],ki.prototype,"alignment",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],ki.prototype,"contained",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],ki.prototype,"divider",void 0);v([_e()],ki.prototype,"activeKey",void 0);v([Hi({selector:"mdui-navigation-rail-item",flatten:!0})],ki.prototype,"items",void 0);v([re("activeKey",!0)],ki.prototype,"onActiveKeyChange",null);v([re("value")],ki.prototype,"onValueChange",null);v([re("contained",!0)],ki.prototype,"onContainedChange",null);v([re("placement",!0)],ki.prototype,"onPlacementChange",null);ki=v([se("mdui-navigation-rail")],ki);const a_=pe`:host{--shape-corner-indicator:var(--mdui-shape-corner-full);position:relative;z-index:0;width:100%;--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface-variant)}.container{display:flex;flex-direction:column;align-items:center;justify-content:center;text-decoration:none;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;height:3.5rem}.container:not(.initial){transition:padding var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}mdui-ripple{z-index:1;width:3.5rem;height:2rem;border-radius:var(--mdui-shape-corner-full)}.container:not(.has-label)+mdui-ripple{height:3.5rem}.indicator{position:relative;display:flex;align-items:center;justify-content:center;background-color:transparent;border-radius:var(--shape-corner-indicator);height:2rem;width:2rem}:not(.initial) .indicator{transition:background-color var(--mdui-motion-duration-short1) var(--mdui-motion-easing-standard),width var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard),height var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}::slotted([slot=badge]){position:absolute;transform:translate(50%,-50%)}.placement-right::slotted([slot=badge]){transform:translate(-50%,-50%)}::slotted([slot=badge][variant=small]){transform:translate(.5625rem,-.5625rem)}.placement-right::slotted([slot=badge][variant=small]){transform:translate(-.5625rem,-.5625rem)}.active-icon,.icon{color:rgb(var(--mdui-color-on-surface-variant));font-size:1.5rem}.active-icon mdui-icon,.icon mdui-icon,::slotted([slot=active-icon]),::slotted([slot=icon]){font-size:inherit}.icon{display:flex}.active-icon{display:none}.label{display:flex;align-items:center;height:1rem;color:rgb(var(--mdui-color-on-surface-variant));margin-top:.25rem;margin-bottom:.25rem;font-size:var(--mdui-typescale-label-medium-size);font-weight:var(--mdui-typescale-label-medium-weight);letter-spacing:var(--mdui-typescale-label-medium-tracking);line-height:var(--mdui-typescale-label-medium-line-height)}:not(.initial) .label{transition:opacity var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear)}:host([active]){--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}:host([active]) .indicator{width:3.5rem;background-color:rgb(var(--mdui-color-secondary-container))}:host([active]) :not(.has-label) .indicator{height:3.5rem}:host([active]) .active-icon,:host([active]) .icon{color:rgb(var(--mdui-color-on-secondary-container))}:host([active]) .has-active-icon .active-icon{display:flex}:host([active]) .has-active-icon .icon{display:none}:host([active]) .label{color:rgb(var(--mdui-color-on-surface))}`;let Er=class extends Oo(dr(Ui(Re))){constructor(){super(...arguments),this.active=!1,this.isInitial=!0,this.placement="left",this.disabled=!1,this.key=Pn(),this.rippleRef=ge(),this.hasSlotController=new It(this,"[default]","active-icon")}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return this.disabled}get focusElement(){var t;return this.href?(t=this.renderRoot)==null?void 0:t.querySelector("._a"):this}get focusDisabled(){return this.disabled}render(){const t=this.hasSlotController.test("[default]"),i=wr({container:!0,"has-label":t,"has-active-icon":this.activeIcon||this.hasSlotController.test("active-icon"),initial:this.isInitial});return P`${this.href?this.renderAnchor({part:"container",className:i,content:this.renderInner(t)}):P`
${this.renderInner(t)}
`}`}renderInner(t){return P`
${this.activeIcon?P``:Ve}${this.icon?P``:Ve}
${t?P``:qe}`}};Er.styles=[Ce,a_];v([R({reflect:!0})],Er.prototype,"icon",void 0);v([R({reflect:!0,attribute:"active-icon"})],Er.prototype,"activeIcon",void 0);v([R({reflect:!0})],Er.prototype,"value",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Er.prototype,"active",void 0);v([_e()],Er.prototype,"isInitial",void 0);v([_e()],Er.prototype,"placement",void 0);v([_e()],Er.prototype,"disabled",void 0);Er=v([se("mdui-navigation-rail-item")],Er);let jh=class extends nt{render(){return Ut('')}};jh.styles=Ht;jh=v([se("mdui-icon-circle")],jh);let Yh=class extends nt{render(){return Ut('')}};Yh.styles=Ht;Yh=v([se("mdui-icon-radio-button-unchecked")],Yh);const l_=pe`:host{position:relative;display:inline-flex;align-items:center;cursor:pointer;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;touch-action:manipulation;zoom:1;-webkit-user-drag:none;border-radius:.125rem;font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking);line-height:var(--mdui-typescale-label-large-line-height)}.icon{display:flex;position:absolute;font-size:1.5rem}:not(.initial) .icon{transition-duration:var(--mdui-motion-duration-short4);transition-timing-function:var(--mdui-motion-easing-standard)}.unchecked-icon{transition-property:color;color:rgb(var(--mdui-color-on-surface-variant))}:host([focused]) .unchecked-icon,:host([hover]) .unchecked-icon,:host([pressed]) .unchecked-icon{color:rgb(var(--mdui-color-on-surface))}.checked-icon{opacity:0;transform:scale(.2);transition-property:color,opacity,transform;color:rgb(var(--mdui-color-primary))}.icon .i,::slotted([slot=checked-icon]),::slotted([slot=unchecked-icon]){color:inherit;font-size:inherit}i{position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:50%;width:2.5rem;min-width:2.5rem;height:2.5rem;--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}.label{display:flex;width:100%;padding-top:.625rem;padding-bottom:.625rem;color:rgb(var(--mdui-color-on-surface))}.label:not(.initial){transition:color var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}:host([checked]) i{--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([checked]) .icon{color:rgb(var(--mdui-color-primary))}:host([checked]) .checked-icon{opacity:1;transform:scale(.5)}i.invalid{--mdui-comp-ripple-state-layer-color:var(--mdui-color-error)}i.invalid .icon{color:rgb(var(--mdui-color-error))}.label.invalid{color:rgb(var(--mdui-color-error))}:host([disabled]),:host([group-disabled]){cursor:default;pointer-events:none}:host([disabled]) .icon,:host([group-disabled]) .icon{color:rgba(var(--mdui-color-on-surface),38%)}:host([disabled]) .label,:host([group-disabled]) .label{color:rgba(var(--mdui-color-on-surface),38%)}`;let Ni=class extends dr(Ui(Re)){constructor(){super(...arguments),this.value="",this.disabled=!1,this.checked=!1,this.invalid=!1,this.groupDisabled=!1,this.focusable=!0,this.isInitial=!0,this.rippleRef=ge()}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return this.isDisabled()}get focusElement(){return this}get focusDisabled(){return this.isDisabled()||!this.focusable}onCheckedChange(){this.emit("change")}firstUpdated(t){super.firstUpdated(t),this.addEventListener("click",()=>{this.isDisabled()||(this.checked=!0)})}render(){const t=ht({invalid:this.invalid,initial:this.isInitial});return P`${this.uncheckedIcon?P``:P``}${this.checkedIcon?P``:P``}`}isDisabled(){return this.disabled||this.groupDisabled}};Ni.styles=[Ce,l_];v([R({reflect:!0})],Ni.prototype,"value",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Ni.prototype,"disabled",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Ni.prototype,"checked",void 0);v([R({reflect:!0,attribute:"unchecked-icon"})],Ni.prototype,"uncheckedIcon",void 0);v([R({reflect:!0,attribute:"checked-icon"})],Ni.prototype,"checkedIcon",void 0);v([_e()],Ni.prototype,"invalid",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"group-disabled"})],Ni.prototype,"groupDisabled",void 0);v([_e()],Ni.prototype,"focusable",void 0);v([_e()],Ni.prototype,"isInitial",void 0);v([re("checked",!0)],Ni.prototype,"onCheckedChange",null);Ni=v([se("mdui-radio")],Ni);const c_=pe`:host{display:inline-block}fieldset{border:none;padding:0;margin:0;min-width:0}input{position:absolute;padding:0;opacity:0;pointer-events:none;width:1.25rem;height:1.25rem;margin:0 0 0 .625rem}`;let er=class extends Re{constructor(){super(...arguments),this.disabled=!1,this.name="",this.value="",this.defaultValue="",this.required=!1,this.invalid=!1,this.isInitial=!0,this.inputRef=ge(),this.formController=new Qr(this),this.definedController=new zt(this,{relatedElements:["mdui-radio"]})}get validity(){return this.inputRef.value.validity}get validationMessage(){return this.inputRef.value.validationMessage}get items(){return O(this).find("mdui-radio").get()}get itemsEnabled(){return O(this).find("mdui-radio:not([disabled])").get()}async onValueChange(){var i;this.isInitial=!1,await this.definedController.whenDefined(),this.emit("input"),this.emit("change"),this.updateItems(),this.updateRadioFocusable(),await this.updateComplete;const t=this.formController.getForm();t&&((i=_t.get(t))!=null&&i.has(this))?(this.invalid=!1,_t.get(t).delete(this)):this.invalid=!this.inputRef.value.checkValidity()}async onInvalidChange(){await this.definedController.whenDefined(),this.updateItems()}checkValidity(){const t=this.inputRef.value.checkValidity();return t||this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),t}reportValidity(){return this.invalid=!this.inputRef.value.reportValidity(),this.invalid&&(this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1})||(this.inputRef.value.blur(),this.inputRef.value.focus())),!this.invalid}setCustomValidity(t){this.inputRef.value.setCustomValidity(t),this.invalid=!this.inputRef.value.checkValidity()}render(){return P`
`}updateRadioFocusable(){const t=this.items,i=t.find(r=>r.checked);i?t.forEach(r=>{r.focusable=r===i}):this.itemsEnabled.forEach((r,n)=>{r.focusable=!n})}async onClick(t){await this.definedController.whenDefined();const r=t.target.closest("mdui-radio");!r||r.disabled||(this.value=r.value,await this.updateComplete,r.focus())}async onKeyDown(t){if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"," "].includes(t.key))return;t.preventDefault(),await this.definedController.whenDefined();const i=this.itemsEnabled,r=i.find(o=>o.checked)??i[0],n=t.key===" "?0:["ArrowUp","ArrowLeft"].includes(t.key)?-1:1;let s=i.indexOf(r)+n;s<0&&(s=i.length-1),s>i.length-1&&(s=0),this.value=i[s].value,await this.updateComplete,i[s].focus()}async onSlotChange(){await this.definedController.whenDefined(),this.updateItems(),this.updateRadioFocusable()}onCheckedChange(t){t.stopPropagation()}updateItems(){this.items.forEach(t=>{t.checked=t.value===this.value,t.invalid=this.invalid,t.groupDisabled=this.disabled,t.isInitial=this.isInitial})}};er.styles=[Ce,c_];v([R({type:Boolean,reflect:!0,converter:Y})],er.prototype,"disabled",void 0);v([R({reflect:!0})],er.prototype,"form",void 0);v([R({reflect:!0})],er.prototype,"name",void 0);v([R({reflect:!0})],er.prototype,"value",void 0);v([On()],er.prototype,"defaultValue",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],er.prototype,"required",void 0);v([_e()],er.prototype,"invalid",void 0);v([re("value",!0)],er.prototype,"onValueChange",null);v([re("invalid",!0),re("disabled")],er.prototype,"onInvalidChange",null);er=v([se("mdui-radio-group")],er);/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */function*so(e,t){if(e!==void 0){let i=0;for(const r of e)yield t(r,i++)}}const d_=pe`:host{position:relative;display:block;width:100%;-webkit-tap-highlight-color:transparent;height:2.5rem;padding:0 1.25rem}label{position:relative;display:block;width:100%;height:100%}input[type=range]{position:absolute;inset:0;z-index:4;height:100%;cursor:pointer;opacity:0;-webkit-appearance:none;appearance:none;width:calc(100% + 20rem * 2 / 16);margin:0 -1.25rem;padding:0 .75rem}:host([disabled]) input[type=range]{cursor:not-allowed}.track-active,.track-inactive{position:absolute;top:50%;height:.25rem;margin-top:-.125rem}.track-inactive{left:-.125rem;right:-.125rem;border-radius:var(--mdui-shape-corner-full);background-color:rgb(var(--mdui-color-surface-container-highest))}.invalid .track-inactive{background-color:rgba(var(--mdui-color-error),.12)}:host([disabled]) .track-inactive{background-color:rgba(var(--mdui-color-on-surface),.12)}.track-active{background-color:rgb(var(--mdui-color-primary))}.invalid .track-active{background-color:rgb(var(--mdui-color-error))}:host([disabled]) .track-active{background-color:rgba(var(--mdui-color-on-surface),.38)}.handle{position:absolute;top:50%;transform:translate(-50%);cursor:pointer;z-index:2;width:2.5rem;height:2.5rem;margin-top:-1.25rem;--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}.invalid .handle{--mdui-comp-ripple-state-layer-color:var(--mdui-color-error)}.handle .elevation,.handle::before{position:absolute;display:block;content:' ';left:.625rem;top:.625rem;width:1.25rem;height:1.25rem;border-radius:var(--mdui-shape-corner-full)}.handle .elevation{background-color:rgb(var(--mdui-color-primary));box-shadow:var(--mdui-elevation-level1)}.invalid .handle .elevation{background-color:rgb(var(--mdui-color-error))}:host([disabled]) .handle .elevation{background-color:rgba(var(--mdui-color-on-surface),.38);box-shadow:var(--mdui-elevation-level0)}.handle::before{background-color:rgb(var(--mdui-color-background))}.handle mdui-ripple{border-radius:var(--mdui-shape-corner-full)}.label{position:absolute;left:50%;transform:translateX(-50%) scale(0);transform-origin:center bottom;display:flex;align-items:center;justify-content:center;cursor:default;white-space:nowrap;-webkit-user-select:none;user-select:none;pointer-events:none;transition:transform var(--mdui-motion-duration-short2) var(--mdui-motion-easing-standard);bottom:2.5rem;min-width:1.75rem;height:1.75rem;padding:.375rem .5rem;border-radius:var(--mdui-shape-corner-full);color:rgb(var(--mdui-color-on-primary));font-size:var(--mdui-typescale-label-medium-size);font-weight:var(--mdui-typescale-label-medium-weight);letter-spacing:var(--mdui-typescale-label-medium-tracking);line-height:var(--mdui-typescale-label-medium-line-height);background-color:rgb(var(--mdui-color-primary))}.invalid .label{color:rgb(var(--mdui-color-on-error));background-color:rgb(var(--mdui-color-error))}.label::after{content:' ';position:absolute;z-index:-1;transform:rotate(45deg);width:.875rem;height:.875rem;bottom:-.125rem;background-color:rgb(var(--mdui-color-primary))}.invalid .label::after{background-color:rgb(var(--mdui-color-error))}.label-visible{transform:translateX(-50%) scale(1);transition:transform var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}.tickmark{position:absolute;top:50%;transform:translate(-50%);width:.125rem;height:.125rem;margin-top:-.0625rem;border-radius:var(--mdui-shape-corner-full);background-color:rgba(var(--mdui-color-on-surface-variant),.38)}.invalid .tickmark{background-color:rgba(var(--mdui-color-error),.38)}.tickmark.active{background-color:rgba(var(--mdui-color-on-primary),.38)}.invalid .tickmark.active{background-color:rgba(var(--mdui-color-on-error),.38)}:host([disabled]) .tickmark{background-color:rgba(var(--mdui-color-on-surface),.38)}`;class Vt extends dr(Ui(Te)){constructor(){super(...arguments),this.min=0,this.max=100,this.step=1,this.tickmarks=!1,this.nolabel=!1,this.disabled=!1,this.name="",this.invalid=!1,this.labelVisible=!1,this.inputRef=ge(),this.trackActiveRef=ge(),this.labelFormatter=t=>t.toString()}get validity(){return this.inputRef.value.validity}get validationMessage(){return this.inputRef.value.validationMessage}get rippleDisabled(){return this.disabled}get focusElement(){return this.inputRef.value}get focusDisabled(){return this.disabled}onDisabledChange(){this.invalid=!this.inputRef.value.checkValidity()}checkValidity(){const t=this.inputRef.value.checkValidity();return t||this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),t}reportValidity(){return this.invalid=!this.inputRef.value.reportValidity(),this.invalid&&(this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1})||(this.blur(),this.focus())),!this.invalid}setCustomValidity(t){this.inputRef.value.setCustomValidity(t),this.invalid=!this.inputRef.value.checkValidity()}fixValue(t){const{min:i,max:r,step:n}=this;t=Math.min(Math.max(t,i),r);const s=Math.round((t-i)/n);let o=i+s*n;return o>r&&(o-=n),o}getCandidateValues(){return Array.from({length:this.max-this.min+1},(t,i)=>i+this.min).filter(t=>!((t-this.min)%this.step))}renderLabel(t){return Ze(!this.nolabel,()=>P`
${this.labelFormatter(t)}
`)}onChange(){this.emit("change")}}Vt.styles=[Ce,d_];v([R({type:Number,reflect:!0})],Vt.prototype,"min",void 0);v([R({type:Number,reflect:!0})],Vt.prototype,"max",void 0);v([R({type:Number,reflect:!0})],Vt.prototype,"step",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Vt.prototype,"tickmarks",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Vt.prototype,"nolabel",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Vt.prototype,"disabled",void 0);v([R({reflect:!0})],Vt.prototype,"form",void 0);v([R({reflect:!0})],Vt.prototype,"name",void 0);v([_e()],Vt.prototype,"invalid",void 0);v([_e()],Vt.prototype,"labelVisible",void 0);v([R({attribute:!1})],Vt.prototype,"labelFormatter",void 0);v([re("disabled",!0)],Vt.prototype,"onDisabledChange",null);let Ao=class extends Vt{constructor(){super(...arguments),this.defaultValue=[],this.currentHandle="start",this.rippleStartRef=ge(),this.rippleEndRef=ge(),this.handleStartRef=ge(),this.handleEndRef=ge(),this.formController=new Qr(this),this._value=[],this.getRippleIndex=()=>this.hoverHandle?this.hoverHandle==="start"?0:1:this.currentHandle==="start"?0:1}get value(){return this._value}set value(t){const i=[...this._value];this._value=[this.fixValue(t[0]),this.fixValue(t[1])],this.requestUpdate("value",i),this.updateComplete.then(()=>{var n;this.updateStyle();const r=this.formController.getForm();r&&((n=_t.get(r))!=null&&n.has(this))?(this.invalid=!1,_t.get(r).delete(this)):this.invalid=!this.inputRef.value.checkValidity()})}get rippleElement(){return[this.rippleStartRef.value,this.rippleEndRef.value]}connectedCallback(){super.connectedCallback(),this.value.length||(this.value=[this.min,this.max]),this.value[0]=this.fixValue(this.value[0]),this.value[1]=this.fixValue(this.value[1]),this.defaultValue.length||(this.defaultValue=[...this.value])}firstUpdated(t){super.firstUpdated(t);const i=s=>{const o=O(this),a=parseFloat(o.css("padding-left")),l=parseFloat(o.css("padding-right")),c=(s.offsetX-a)/(this.clientWidth-a-l),d=(this.max-this.min)*c+this.min,u=(this.value[1]-this.value[0])/2+this.value[0];return d>u?"end":"start"},r=()=>{this.disabled||(this.labelVisible=!0)},n=()=>{this.disabled||(this.labelVisible=!1)};this.addEventListener("touchstart",r),this.addEventListener("mousedown",r),this.addEventListener("touchend",n),this.addEventListener("mouseup",n),this.addEventListener("pointerdown",s=>{this.currentHandle=i(s)}),this.addEventListener("pointermove",s=>{const o=i(s);this.hoverHandle!==o&&(this.endHover(s),this.hoverHandle=o,this.startHover(s))}),this.updateStyle()}render(){return P``}updateStyle(){const t=n=>(n-this.min)/(this.max-this.min)*100,i=t(this.value[0]),r=t(this.value[1]);this.trackActiveRef.value.style.width=`${r-i}%`,this.trackActiveRef.value.style.left=`${i}%`,this.handleStartRef.value.style.left=`${i}%`,this.handleEndRef.value.style.left=`${r}%`}onInput(){const t=this.currentHandle==="start",i=parseFloat(this.inputRef.value.value),r=this.value[0],n=this.value[1],s=()=>{this.updateStyle()};t?i<=n?(this.value=[i,n],s()):r!==n&&(this.value=[n,n],s()):i>=r?(this.value=[r,i],s()):r!==n&&(this.value=[r,r],s())}};Ao.styles=[Vt.styles];v([On()],Ao.prototype,"defaultValue",void 0);v([_e()],Ao.prototype,"currentHandle",void 0);v([R({type:Array,attribute:!1})],Ao.prototype,"value",null);Ao=v([se("mdui-range-slider")],Ao);const u_=pe`:host{position:relative;display:inline-flex;flex-grow:1;flex-shrink:0;float:left;height:100%;overflow:hidden;cursor:pointer;-webkit-tap-highlight-color:transparent;border:.0625rem solid rgb(var(--mdui-color-outline))}.button{width:100%;padding:0 .75rem}:host([invalid]){color:rgb(var(--mdui-color-error));border-color:rgb(var(--mdui-color-error))}:host([invalid]) .button{background-color:rgb(var(--mdui-color-error-container))}:host([selected]){color:rgb(var(--mdui-color-on-secondary-container));background-color:rgb(var(--mdui-color-secondary-container));--mdui-comp-ripple-state-layer-color:var( + */function*so(e,t){if(e!==void 0){let i=0;for(const r of e)yield t(r,i++)}}const d_=pe`:host{position:relative;display:block;width:100%;-webkit-tap-highlight-color:transparent;height:2.5rem;padding:0 1.25rem}label{position:relative;display:block;width:100%;height:100%}input[type=range]{position:absolute;inset:0;z-index:4;height:100%;cursor:pointer;opacity:0;-webkit-appearance:none;appearance:none;width:calc(100% + 20rem * 2 / 16);margin:0 -1.25rem;padding:0 .75rem}:host([disabled]) input[type=range]{cursor:not-allowed}.track-active,.track-inactive{position:absolute;top:50%;height:.25rem;margin-top:-.125rem}.track-inactive{left:-.125rem;right:-.125rem;border-radius:var(--mdui-shape-corner-full);background-color:rgb(var(--mdui-color-surface-container-highest))}.invalid .track-inactive{background-color:rgba(var(--mdui-color-error),.12)}:host([disabled]) .track-inactive{background-color:rgba(var(--mdui-color-on-surface),.12)}.track-active{background-color:rgb(var(--mdui-color-primary))}.invalid .track-active{background-color:rgb(var(--mdui-color-error))}:host([disabled]) .track-active{background-color:rgba(var(--mdui-color-on-surface),.38)}.handle{position:absolute;top:50%;transform:translate(-50%);cursor:pointer;z-index:2;width:2.5rem;height:2.5rem;margin-top:-1.25rem;--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}.invalid .handle{--mdui-comp-ripple-state-layer-color:var(--mdui-color-error)}.handle .elevation,.handle::before{position:absolute;display:block;content:' ';left:.625rem;top:.625rem;width:1.25rem;height:1.25rem;border-radius:var(--mdui-shape-corner-full)}.handle .elevation{background-color:rgb(var(--mdui-color-primary));box-shadow:var(--mdui-elevation-level1)}.invalid .handle .elevation{background-color:rgb(var(--mdui-color-error))}:host([disabled]) .handle .elevation{background-color:rgba(var(--mdui-color-on-surface),.38);box-shadow:var(--mdui-elevation-level0)}.handle::before{background-color:rgb(var(--mdui-color-background))}.handle mdui-ripple{border-radius:var(--mdui-shape-corner-full)}.label{position:absolute;left:50%;transform:translateX(-50%) scale(0);transform-origin:center bottom;display:flex;align-items:center;justify-content:center;cursor:default;white-space:nowrap;-webkit-user-select:none;user-select:none;pointer-events:none;transition:transform var(--mdui-motion-duration-short2) var(--mdui-motion-easing-standard);bottom:2.5rem;min-width:1.75rem;height:1.75rem;padding:.375rem .5rem;border-radius:var(--mdui-shape-corner-full);color:rgb(var(--mdui-color-on-primary));font-size:var(--mdui-typescale-label-medium-size);font-weight:var(--mdui-typescale-label-medium-weight);letter-spacing:var(--mdui-typescale-label-medium-tracking);line-height:var(--mdui-typescale-label-medium-line-height);background-color:rgb(var(--mdui-color-primary))}.invalid .label{color:rgb(var(--mdui-color-on-error));background-color:rgb(var(--mdui-color-error))}.label::after{content:' ';position:absolute;z-index:-1;transform:rotate(45deg);width:.875rem;height:.875rem;bottom:-.125rem;background-color:rgb(var(--mdui-color-primary))}.invalid .label::after{background-color:rgb(var(--mdui-color-error))}.label-visible{transform:translateX(-50%) scale(1);transition:transform var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}.tickmark{position:absolute;top:50%;transform:translate(-50%);width:.125rem;height:.125rem;margin-top:-.0625rem;border-radius:var(--mdui-shape-corner-full);background-color:rgba(var(--mdui-color-on-surface-variant),.38)}.invalid .tickmark{background-color:rgba(var(--mdui-color-error),.38)}.tickmark.active{background-color:rgba(var(--mdui-color-on-primary),.38)}.invalid .tickmark.active{background-color:rgba(var(--mdui-color-on-error),.38)}:host([disabled]) .tickmark{background-color:rgba(var(--mdui-color-on-surface),.38)}`;class Vt extends dr(Ui(Re)){constructor(){super(...arguments),this.min=0,this.max=100,this.step=1,this.tickmarks=!1,this.nolabel=!1,this.disabled=!1,this.name="",this.invalid=!1,this.labelVisible=!1,this.inputRef=ge(),this.trackActiveRef=ge(),this.labelFormatter=t=>t.toString()}get validity(){return this.inputRef.value.validity}get validationMessage(){return this.inputRef.value.validationMessage}get rippleDisabled(){return this.disabled}get focusElement(){return this.inputRef.value}get focusDisabled(){return this.disabled}onDisabledChange(){this.invalid=!this.inputRef.value.checkValidity()}checkValidity(){const t=this.inputRef.value.checkValidity();return t||this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),t}reportValidity(){return this.invalid=!this.inputRef.value.reportValidity(),this.invalid&&(this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1})||(this.blur(),this.focus())),!this.invalid}setCustomValidity(t){this.inputRef.value.setCustomValidity(t),this.invalid=!this.inputRef.value.checkValidity()}fixValue(t){const{min:i,max:r,step:n}=this;t=Math.min(Math.max(t,i),r);const s=Math.round((t-i)/n);let o=i+s*n;return o>r&&(o-=n),o}getCandidateValues(){return Array.from({length:this.max-this.min+1},(t,i)=>i+this.min).filter(t=>!((t-this.min)%this.step))}renderLabel(t){return Ze(!this.nolabel,()=>P`
${this.labelFormatter(t)}
`)}onChange(){this.emit("change")}}Vt.styles=[Ce,d_];v([R({type:Number,reflect:!0})],Vt.prototype,"min",void 0);v([R({type:Number,reflect:!0})],Vt.prototype,"max",void 0);v([R({type:Number,reflect:!0})],Vt.prototype,"step",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Vt.prototype,"tickmarks",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Vt.prototype,"nolabel",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Vt.prototype,"disabled",void 0);v([R({reflect:!0})],Vt.prototype,"form",void 0);v([R({reflect:!0})],Vt.prototype,"name",void 0);v([_e()],Vt.prototype,"invalid",void 0);v([_e()],Vt.prototype,"labelVisible",void 0);v([R({attribute:!1})],Vt.prototype,"labelFormatter",void 0);v([re("disabled",!0)],Vt.prototype,"onDisabledChange",null);let Ao=class extends Vt{constructor(){super(...arguments),this.defaultValue=[],this.currentHandle="start",this.rippleStartRef=ge(),this.rippleEndRef=ge(),this.handleStartRef=ge(),this.handleEndRef=ge(),this.formController=new Qr(this),this._value=[],this.getRippleIndex=()=>this.hoverHandle?this.hoverHandle==="start"?0:1:this.currentHandle==="start"?0:1}get value(){return this._value}set value(t){const i=[...this._value];this._value=[this.fixValue(t[0]),this.fixValue(t[1])],this.requestUpdate("value",i),this.updateComplete.then(()=>{var n;this.updateStyle();const r=this.formController.getForm();r&&((n=_t.get(r))!=null&&n.has(this))?(this.invalid=!1,_t.get(r).delete(this)):this.invalid=!this.inputRef.value.checkValidity()})}get rippleElement(){return[this.rippleStartRef.value,this.rippleEndRef.value]}connectedCallback(){super.connectedCallback(),this.value.length||(this.value=[this.min,this.max]),this.value[0]=this.fixValue(this.value[0]),this.value[1]=this.fixValue(this.value[1]),this.defaultValue.length||(this.defaultValue=[...this.value])}firstUpdated(t){super.firstUpdated(t);const i=s=>{const o=O(this),a=parseFloat(o.css("padding-left")),l=parseFloat(o.css("padding-right")),c=(s.offsetX-a)/(this.clientWidth-a-l),d=(this.max-this.min)*c+this.min,u=(this.value[1]-this.value[0])/2+this.value[0];return d>u?"end":"start"},r=()=>{this.disabled||(this.labelVisible=!0)},n=()=>{this.disabled||(this.labelVisible=!1)};this.addEventListener("touchstart",r),this.addEventListener("mousedown",r),this.addEventListener("touchend",n),this.addEventListener("mouseup",n),this.addEventListener("pointerdown",s=>{this.currentHandle=i(s)}),this.addEventListener("pointermove",s=>{const o=i(s);this.hoverHandle!==o&&(this.endHover(s),this.hoverHandle=o,this.startHover(s))}),this.updateStyle()}render(){return P``}updateStyle(){const t=n=>(n-this.min)/(this.max-this.min)*100,i=t(this.value[0]),r=t(this.value[1]);this.trackActiveRef.value.style.width=`${r-i}%`,this.trackActiveRef.value.style.left=`${i}%`,this.handleStartRef.value.style.left=`${i}%`,this.handleEndRef.value.style.left=`${r}%`}onInput(){const t=this.currentHandle==="start",i=parseFloat(this.inputRef.value.value),r=this.value[0],n=this.value[1],s=()=>{this.updateStyle()};t?i<=n?(this.value=[i,n],s()):r!==n&&(this.value=[n,n],s()):i>=r?(this.value=[r,i],s()):r!==n&&(this.value=[r,r],s())}};Ao.styles=[Vt.styles];v([On()],Ao.prototype,"defaultValue",void 0);v([_e()],Ao.prototype,"currentHandle",void 0);v([R({type:Array,attribute:!1})],Ao.prototype,"value",null);Ao=v([se("mdui-range-slider")],Ao);const u_=pe`:host{position:relative;display:inline-flex;flex-grow:1;flex-shrink:0;float:left;height:100%;overflow:hidden;cursor:pointer;-webkit-tap-highlight-color:transparent;border:.0625rem solid rgb(var(--mdui-color-outline))}.button{width:100%;padding:0 .75rem}:host([invalid]){color:rgb(var(--mdui-color-error));border-color:rgb(var(--mdui-color-error))}:host([invalid]) .button{background-color:rgb(var(--mdui-color-error-container))}:host([selected]){color:rgb(var(--mdui-color-on-secondary-container));background-color:rgb(var(--mdui-color-secondary-container));--mdui-comp-ripple-state-layer-color:var( --mdui-color-on-secondary-container - )}:host([disabled]),:host([group-disabled]){cursor:default;pointer-events:none;color:rgba(var(--mdui-color-on-surface),38%);border-color:rgba(var(--mdui-color-on-surface),12%)}:host([loading]){cursor:default;pointer-events:none}:host(:not(.mdui-segmented-button-first)){margin-left:-.0625rem}:host(.mdui-segmented-button-first){border-radius:var(--shape-corner) 0 0 var(--shape-corner)}:host(.mdui-segmented-button-last){border-radius:0 var(--shape-corner) var(--shape-corner) 0}.end-icon,.icon,.selected-icon{display:inline-flex;font-size:1.28571429em}.end-icon .i,.icon .i,.selected-icon .i,::slotted([slot=end-icon]),::slotted([slot=icon]),::slotted([slot=selected-icon]){font-size:inherit}mdui-circular-progress{width:1.125rem;height:1.125rem}:host([disabled]) mdui-circular-progress{opacity:.38}.label{display:inline-flex}.has-icon .label{padding-left:.5rem}.has-end-icon .label{padding-right:.5rem}`;let Yr=class extends st{constructor(){super(...arguments),this.selected=!1,this.invalid=!1,this.groupDisabled=!1,this.key=Pn(),this.rippleRef=ge(),this.hasSlotController=new It(this,"[default]","icon","end-icon")}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return this.isDisabled()||this.loading}get focusDisabled(){return this.isDisabled()||this.loading}render(){const t=wr({button:!0,"has-icon":this.icon||this.selected||this.loading||this.hasSlotController.test("icon"),"has-end-icon":this.endIcon||this.hasSlotController.test("end-icon")});return P`${this.isButton()?this.renderButton({className:t,part:"button",content:this.renderInner()}):this.isDisabled()||this.loading?P`${this.renderInner()}`:this.renderAnchor({className:t,part:"button",content:this.renderInner()})}`}isDisabled(){return this.disabled||this.groupDisabled}renderIcon(){return this.loading?this.renderLoading():this.selected?P`${this.selectedIcon?P``:P``}`:P`${this.icon?P``:Ve}`}renderLabel(){return this.hasSlotController.test("[default]")?P``:Ve}renderEndIcon(){return P`${this.endIcon?P``:Ve}`}renderInner(){return[this.renderIcon(),this.renderLabel(),this.renderEndIcon()]}};Yr.styles=[st.styles,u_];v([R({reflect:!0})],Yr.prototype,"icon",void 0);v([R({reflect:!0,attribute:"end-icon"})],Yr.prototype,"endIcon",void 0);v([R({reflect:!0,attribute:"selected-icon"})],Yr.prototype,"selectedIcon",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Yr.prototype,"selected",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Yr.prototype,"invalid",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"group-disabled"})],Yr.prototype,"groupDisabled",void 0);Yr=v([se("mdui-segmented-button")],Yr);const h_=pe`:host{--shape-corner:var(--mdui-shape-corner-full);position:relative;display:inline-flex;vertical-align:middle;height:2.5rem;font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking);line-height:var(--mdui-typescale-label-large-line-height);color:rgb(var(--mdui-color-on-surface));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}:host([full-width]){display:flex;flex-wrap:nowrap}input,select{position:absolute;width:100%;height:100%;padding:0;opacity:0;pointer-events:none}`;let Ft=class extends Te{constructor(){super(...arguments),this.fullWidth=!1,this.disabled=!1,this.required=!1,this.name="",this.value="",this.defaultValue="",this.selectedKeys=[],this.invalid=!1,this.isInitial=!0,this.inputRef=ge(),this.formController=new Qr(this),this.definedController=new zt(this,{relatedElements:["mdui-segmented-button"]})}get validity(){return this.inputRef.value.validity}get validationMessage(){return this.inputRef.value.validationMessage}get items(){return O(this).find("mdui-segmented-button").get()}get itemsEnabled(){return O(this).find("mdui-segmented-button:not([disabled])").get()}get isSingle(){return this.selects==="single"}get isMultiple(){return this.selects==="multiple"}get isSelectable(){return this.isSingle||this.isMultiple}async onSelectsChange(){this.isSelectable?this.isSingle&&this.setSelectedKeys(this.selectedKeys.slice(0,1)):this.setSelectedKeys([]),await this.onSelectedKeysChange()}async onSelectedKeysChange(){await this.definedController.whenDefined();const t=this.itemsEnabled.filter(r=>this.selectedKeys.includes(r.key)).map(r=>r.value),i=this.isMultiple?t:t[0]||"";this.setValue(i),this.isInitial||this.emit("change")}async onValueChange(){var i;if(this.isInitial=!this.hasUpdated,await this.definedController.whenDefined(),!this.isSelectable){this.updateItems();return}const t=(this.isSingle?[this.value]:pt(this.value)?[this.value]:this.value).filter(r=>r);if(!t.length)this.setSelectedKeys([]);else if(this.isSingle){const r=this.itemsEnabled.find(n=>n.value===t[0]);this.setSelectedKeys(r?[r.key]:[])}else this.isMultiple&&this.setSelectedKeys(this.itemsEnabled.filter(r=>t.includes(r.value)).map(r=>r.key));if(this.updateItems(),!this.isInitial){const r=this.formController.getForm();r&&((i=_t.get(r))!=null&&i.has(this))?(this.invalid=!1,_t.get(r).delete(this)):this.invalid=!this.inputRef.value.checkValidity()}}async onInvalidChange(){await this.definedController.whenDefined(),this.updateItems()}connectedCallback(){super.connectedCallback(),this.value=this.isMultiple&&pt(this.value)?this.value?[this.value]:[]:this.value,this.defaultValue=this.selects==="multiple"?[]:""}checkValidity(){const t=this.inputRef.value.checkValidity();return t||this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),t}reportValidity(){return this.invalid=!this.inputRef.value.reportValidity(),this.invalid&&(this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1})||(this.inputRef.value.blur(),this.inputRef.value.focus())),!this.invalid}setCustomValidity(t){this.inputRef.value.setCustomValidity(t),this.invalid=!this.inputRef.value.checkValidity()}render(){return P`${Ze(this.isSelectable&&this.isSingle,()=>P``)}${Ze(this.isSelectable&&this.isMultiple,()=>P``)}`}selectOne(t){if(this.isMultiple){const i=[...this.selectedKeys];i.includes(t.key)?i.splice(i.indexOf(t.key),1):i.push(t.key),this.setSelectedKeys(i)}this.isSingle&&(this.selectedKeys.includes(t.key)?this.setSelectedKeys([]):this.setSelectedKeys([t.key])),this.isInitial=!1,this.updateItems()}async onClick(t){if(t.button)return;await this.definedController.whenDefined();const r=t.target.closest("mdui-segmented-button");!r||r.disabled||this.isSelectable&&r.value&&this.selectOne(r)}async onInputKeyDown(t){if(["Enter"," "].includes(t.key)){if(t.preventDefault(),await this.definedController.whenDefined(),this.isSingle){const i=t.target;i.checked=!i.checked,this.selectOne(this.itemsEnabled[0]),this.itemsEnabled[0].focus()}this.isMultiple&&(this.selectOne(this.itemsEnabled[0]),this.itemsEnabled[0].focus())}}async onSlotChange(){await this.definedController.whenDefined(),this.updateItems(!0)}setSelectedKeys(t){xo(this.selectedKeys,t)||(this.selectedKeys=t)}setValue(t){this.isSingle?this.value=t:xo(this.value,t)||(this.value=t)}updateItems(t=!1){const i=this.items;i.forEach((r,n)=>{r.invalid=this.invalid,r.groupDisabled=this.disabled,r.selected=this.selectedKeys.includes(r.key),t&&(r.classList.toggle("mdui-segmented-button-first",n===0),r.classList.toggle("mdui-segmented-button-last",n===i.length-1))})}};Ft.styles=[Ce,h_];v([R({type:Boolean,reflect:!0,converter:Y,attribute:"full-width"})],Ft.prototype,"fullWidth",void 0);v([R({reflect:!0})],Ft.prototype,"selects",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Ft.prototype,"disabled",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Ft.prototype,"required",void 0);v([R({reflect:!0})],Ft.prototype,"form",void 0);v([R({reflect:!0})],Ft.prototype,"name",void 0);v([R()],Ft.prototype,"value",void 0);v([On()],Ft.prototype,"defaultValue",void 0);v([_e()],Ft.prototype,"selectedKeys",void 0);v([_e()],Ft.prototype,"invalid",void 0);v([re("selects",!0)],Ft.prototype,"onSelectsChange",null);v([re("selectedKeys",!0)],Ft.prototype,"onSelectedKeysChange",null);v([re("value")],Ft.prototype,"onValueChange",null);v([re("invalid",!0),re("disabled")],Ft.prototype,"onInvalidChange",null);Ft=v([se("mdui-segmented-button-group")],Ft);const f_=new WeakMap;let Mm=0;const Jd=new Map,Nm=new WeakSet,Fm=()=>new Promise(e=>requestAnimationFrame(e)),zm=(e,t)=>{const i=e-t;return i===0?void 0:i},Hm=(e,t)=>{const i=e/t;return i===1?void 0:i},eu={left:(e,t)=>{const i=zm(e,t);return{value:i,transform:i==null||isNaN(i)?void 0:`translateX(${i}px)`}},top:(e,t)=>{const i=zm(e,t);return{value:i,transform:i==null||isNaN(i)?void 0:`translateY(${i}px)`}},width:(e,t)=>{let i;t===0&&(t=1,i={width:"1px"});const r=Hm(e,t);return{value:r,overrideFrom:i,transform:r==null||isNaN(r)?void 0:`scaleX(${r})`}},height:(e,t)=>{let i;t===0&&(t=1,i={height:"1px"});const r=Hm(e,t);return{value:r,overrideFrom:i,transform:r==null||isNaN(r)?void 0:`scaleY(${r})`}}},p_={duration:333,easing:"ease-in-out"},m_=["left","top","width","height","opacity","color","background"],Um=new WeakMap;class g_ extends Op{constructor(t){if(super(t),this.t=!1,this.i=null,this.o=null,this.h=!0,this.shouldLog=!1,t.type===nr.CHILD)throw Error("The `animate` directive must be used in attribute position.");this.createFinished()}createFinished(){var t;(t=this.resolveFinished)==null||t.call(this),this.finished=new Promise(i=>{this.l=i})}async resolveFinished(){var t;(t=this.l)==null||t.call(this),this.l=void 0}render(t){return qe}getController(){return f_.get(this.u)}isDisabled(){var t;return this.options.disabled||((t=this.getController())==null?void 0:t.disabled)}update(t,[i]){var n;const r=this.u===void 0;return r&&(this.u=(n=t.options)==null?void 0:n.host,this.u.addController(this),this.u.updateComplete.then(s=>this.t=!0),this.element=t.element,Um.set(this.element,this)),this.optionsOrCallback=i,(r||typeof i!="function")&&this.p(i),this.render(i)}p(t){t=t??{};const i=this.getController();i!==void 0&&((t={...i.defaultOptions,...t}).keyframeOptions={...i.defaultOptions.keyframeOptions,...t.keyframeOptions}),t.properties??(t.properties=m_),this.options=t}m(){const t={},i=this.element.getBoundingClientRect(),r=getComputedStyle(this.element);return this.options.properties.forEach(n=>{const s=i[n]??(eu[n]?void 0:r[n]),o=Number(s);t[n]=isNaN(o)?s+"":o}),t}v(){let t,i=!0;return this.options.guard&&(t=this.options.guard(),i=((r,n)=>{if(Array.isArray(r)){if(Array.isArray(n)&&n.length===r.length&&r.every((s,o)=>s===n[o]))return!1}else if(n===r)return!1;return!0})(t,this._)),this.h=this.t&&!this.isDisabled()&&!this.isAnimating()&&i&&this.element.isConnected,this.h&&(this._=Array.isArray(t)?Array.from(t):t),this.h}hostUpdate(){typeof this.optionsOrCallback=="function"&&this.p(this.optionsOrCallback()),this.v()&&(this.A=this.m(),this.i=this.i??this.element.parentNode,this.o=this.element.nextSibling)}async hostUpdated(){if(!this.h||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let t;this.prepare(),await Fm;const i=this.O(),r=this.j(this.options.keyframeOptions,i),n=this.m();if(this.A!==void 0){const{from:s,to:o}=this.N(this.A,n,i);this.log("measured",[this.A,n,s,o]),t=this.calculateKeyframes(s,o)}else{const s=Jd.get(this.options.inId);if(s){Jd.delete(this.options.inId);const{from:o,to:a}=this.N(s,n,i);t=this.calculateKeyframes(o,a),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,Mm++,t.forEach(l=>l.zIndex=Mm)}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,r)}resetStyles(){this.P!==void 0&&(this.element.setAttribute("style",this.P??""),this.P=void 0)}commitStyles(){var t,i;this.P=this.element.getAttribute("style"),(t=this.webAnimation)==null||t.commitStyles(),(i=this.webAnimation)==null||i.cancel()}reconnected(){}async disconnected(){var i;if(!this.h||(this.options.id!==void 0&&Jd.set(this.options.id,this.A),this.options.out===void 0))return;if(this.prepare(),await Fm(),(i=this.i)==null?void 0:i.isConnected){const r=this.o&&this.o.parentNode===this.i?this.o:null;if(this.i.insertBefore(this.element,r),this.options.stabilizeOut){const n=this.m();this.log("stabilizing out");const s=this.A.left-n.left,o=this.A.top-n.top;getComputedStyle(this.element).position!=="static"||s===0&&o===0||(this.element.style.position="relative"),s!==0&&(this.element.style.left=s+"px"),o!==0&&(this.element.style.top=o+"px")}}const t=this.j(this.options.keyframeOptions);await this.animate(this.options.out,t),this.element.remove()}prepare(){this.createFinished()}start(){var t,i;(i=(t=this.options).onStart)==null||i.call(t,this)}didFinish(t){var i,r;t&&((r=(i=this.options).onComplete)==null||r.call(i,this)),this.A=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished()}O(){const t=[];for(let i=this.element.parentNode;i;i=i==null?void 0:i.parentNode){const r=Um.get(i);r&&!r.isDisabled()&&r&&t.push(r)}return t}get isHostRendered(){const t=Nm.has(this.u);return t||this.u.updateComplete.then(()=>{Nm.add(this.u)}),t}j(t,i=this.O()){const r={...p_};return i.forEach(n=>Object.assign(r,n.options.keyframeOptions)),Object.assign(r,t),r}N(t,i,r){t={...t},i={...i};const n=r.map(a=>a.animatingProperties).filter(a=>a!==void 0);let s=1,o=1;return n.length>0&&(n.forEach(a=>{a.width&&(s/=a.width),a.height&&(o/=a.height)}),t.left!==void 0&&i.left!==void 0&&(t.left=s*t.left,i.left=s*i.left),t.top!==void 0&&i.top!==void 0&&(t.top=o*t.top,i.top=o*i.top)),{from:t,to:i}}calculateKeyframes(t,i,r=!1){const n={},s={};let o=!1;const a={};for(const l in i){const c=t[l],d=i[l];if(l in eu){const u=eu[l];if(c===void 0||d===void 0)continue;const h=u(c,d);h.transform!==void 0&&(a[l]=h.value,o=!0,n.transform=`${n.transform??""} ${h.transform}`,h.overrideFrom!==void 0&&Object.assign(n,h.overrideFrom))}else c!==d&&c!==void 0&&d!==void 0&&(o=!0,n[l]=c,s[l]=d)}return n.transformOrigin=s.transformOrigin=r?"center center":"top left",this.animatingProperties=a,o?[n,s]:void 0}async animate(t,i=this.options.keyframeOptions){this.start(),this.frames=t;let r=!1;if(!this.isAnimating()&&!this.isDisabled()&&(this.options.onFrames&&(this.frames=t=this.options.onFrames(this),this.log("modified frames",t)),t!==void 0)){this.log("animate",[t,i]),r=!0,this.webAnimation=this.element.animate(t,i);const n=this.getController();n==null||n.add(this);try{await this.webAnimation.finished}catch{}n==null||n.remove(this)}return this.didFinish(r),r}isAnimating(){var t,i;return((t=this.webAnimation)==null?void 0:t.playState)==="running"||((i=this.webAnimation)==null?void 0:i.pending)}log(t,i){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,i)}}const v_=Is(g_);let Zh=class extends nt{render(){return Ut('')}};Zh.styles=Ht;Zh=v([se("mdui-icon-cancel--outlined")],Zh);let Xh=class extends nt{render(){return Ut('')}};Xh.styles=Ht;Xh=v([se("mdui-icon-error")],Xh);let Gh=class extends nt{render(){return Ut('')}};Gh.styles=Ht;Gh=v([se("mdui-icon-visibility-off")],Gh);let Qh=class extends nt{render(){return Ut('')}};Qh.styles=Ht;Qh=v([se("mdui-icon-visibility")],Qh);const y_=pe`:host{display:inline-block;width:100%}:host([disabled]){pointer-events:none}:host([type=hidden]){display:none}.container{position:relative;display:flex;align-items:center;transition:box-shadow var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard);padding:0 1rem}.container.has-icon{padding-left:.75rem}.container.has-end-icon,.container.has-error-icon{padding-right:.75rem}:host([variant=filled]) .container{box-shadow:inset 0 -.0625rem 0 0 rgb(var(--mdui-color-on-surface-variant));background-color:rgb(var(--mdui-color-surface-container-highest));border-radius:var(--mdui-shape-corner-extra-small) var(--mdui-shape-corner-extra-small) 0 0}:host([variant=filled]) .container.invalid,:host([variant=filled]) .container.invalid-style{box-shadow:inset 0 -.0625rem 0 0 rgb(var(--mdui-color-error))}:host([variant=filled]:hover) .container{box-shadow:inset 0 -.0625rem 0 0 rgb(var(--mdui-color-on-surface))}:host([variant=filled]:hover) .container.invalid,:host([variant=filled]:hover) .container.invalid-style{box-shadow:inset 0 -.0625rem 0 0 rgb(var(--mdui-color-on-error-container))}:host([variant=filled][focused-style]) .container,:host([variant=filled][focused]) .container{box-shadow:inset 0 -.125rem 0 0 rgb(var(--mdui-color-primary))}:host([variant=filled][focused-style]) .container.invalid,:host([variant=filled][focused-style]) .container.invalid-style,:host([variant=filled][focused]) .container.invalid,:host([variant=filled][focused]) .container.invalid-style{box-shadow:inset 0 -.125rem 0 0 rgb(var(--mdui-color-error))}:host([variant=filled][disabled]) .container{box-shadow:inset 0 -.0625rem 0 0 rgba(var(--mdui-color-on-surface),38%);background-color:rgba(var(--mdui-color-on-surface),4%)}:host([variant=outlined]) .container{box-shadow:inset 0 0 0 .0625rem rgb(var(--mdui-color-outline));border-radius:var(--mdui-shape-corner-extra-small)}:host([variant=outlined]) .container.invalid,:host([variant=outlined]) .container.invalid-style{box-shadow:inset 0 0 0 .0625rem rgb(var(--mdui-color-error))}:host([variant=outlined]:hover) .container{box-shadow:inset 0 0 0 .0625rem rgb(var(--mdui-color-on-surface))}:host([variant=outlined]:hover) .container.invalid,:host([variant=outlined]:hover) .container.invalid-style{box-shadow:inset 0 0 0 .0625rem rgb(var(--mdui-color-on-error-container))}:host([variant=outlined][focused-style]) .container,:host([variant=outlined][focused]) .container{box-shadow:inset 0 0 0 .125rem rgb(var(--mdui-color-primary))}:host([variant=outlined][focused-style]) .container.invalid,:host([variant=outlined][focused-style]) .container.invalid-style,:host([variant=outlined][focused]) .container.invalid,:host([variant=outlined][focused]) .container.invalid-style{box-shadow:inset 0 0 0 .125rem rgb(var(--mdui-color-error))}:host([variant=outlined][disabled]) .container{box-shadow:inset 0 0 0 .125rem rgba(var(--mdui-color-on-surface),12%)}.icon,.prefix,.right-icon,.suffix{display:flex;-webkit-user-select:none;user-select:none;color:rgb(var(--mdui-color-on-surface-variant))}:host([disabled]) .icon,:host([disabled]) .prefix,:host([disabled]) .right-icon,:host([disabled]) .suffix{color:rgba(var(--mdui-color-on-surface),38%)}.invalid .right-icon,.invalid .suffix,.invalid-style .right-icon,.invalid-style .suffix{color:rgb(var(--mdui-color-error))}:host(:hover) .invalid .right-icon,:host(:hover) .invalid .suffix,:host(:hover) .invalid-style .right-icon,:host(:hover) .invalid-style .suffix{color:rgb(var(--mdui-color-on-error-container))}:host([focused-style]) .invalid .right-icon,:host([focused-style]) .invalid .suffix,:host([focused-style]) .invalid-style .right-icon,:host([focused-style]) .invalid-style .suffix,:host([focused]) .invalid .right-icon,:host([focused]) .invalid .suffix,:host([focused]) .invalid-style .right-icon,:host([focused]) .invalid-style .suffix{color:rgb(var(--mdui-color-error))}.icon,.right-icon{font-size:1.5rem}.icon mdui-button-icon,.right-icon mdui-button-icon,::slotted(mdui-button-icon[slot]){margin-left:-.5rem;margin-right:-.5rem}.icon .i,.right-icon .i,::slotted([slot$=icon]){font-size:inherit}.has-icon .icon{margin-right:1rem}.has-end-icon .end-icon,.right-icon:not(.end-icon){margin-left:1rem}.prefix,.suffix{display:none;font-size:var(--mdui-typescale-body-large-size);font-weight:var(--mdui-typescale-body-large-weight);letter-spacing:var(--mdui-typescale-body-large-tracking);line-height:var(--mdui-typescale-body-large-line-height)}:host([variant=filled][label]) .prefix,:host([variant=filled][label]) .suffix{padding-top:1rem}.has-value .prefix,.has-value .suffix,:host([focused-style]) .prefix,:host([focused-style]) .suffix,:host([focused]) .prefix,:host([focused]) .suffix{display:flex}.prefix{padding-right:.125rem}.suffix{padding-left:.125rem}.input-container{width:100%}.label{position:absolute;pointer-events:none;max-width:calc(100% - 1rem);display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:1;top:1rem;color:rgb(var(--mdui-color-on-surface-variant));font-size:var(--mdui-typescale-body-large-size);font-weight:var(--mdui-typescale-body-large-weight);letter-spacing:var(--mdui-typescale-body-large-tracking);line-height:var(--mdui-typescale-body-large-line-height)}.invalid .label,.invalid-style .label{color:rgb(var(--mdui-color-error))}:host([variant=outlined]) .label{padding:0 .25rem;margin:0 -.25rem}:host([variant=outlined]:hover) .label{color:rgb(var(--mdui-color-on-surface))}:host([variant=filled]:hover) .invalid .label,:host([variant=filled]:hover) .invalid-style .label,:host([variant=outlined]:hover) .invalid .label,:host([variant=outlined]:hover) .invalid-style .label{color:rgb(var(--mdui-color-on-error-container))}:host([variant=filled][focused-style]) .label,:host([variant=filled][focused]) .label,:host([variant=outlined][focused-style]) .label,:host([variant=outlined][focused]) .label{color:rgb(var(--mdui-color-primary))}:host([variant=filled]) .has-value .label,:host([variant=filled][focused-style]) .label,:host([variant=filled][focused]) .label,:host([variant=filled][type=date]) .label,:host([variant=filled][type=datetime-local]) .label,:host([variant=filled][type=month]) .label,:host([variant=filled][type=time]) .label,:host([variant=filled][type=week]) .label{font-size:var(--mdui-typescale-body-small-size);font-weight:var(--mdui-typescale-body-small-weight);letter-spacing:var(--mdui-typescale-body-small-tracking);line-height:var(--mdui-typescale-body-small-line-height);top:.25rem}:host([variant=outlined]) .has-value .label,:host([variant=outlined][focused-style]) .label,:host([variant=outlined][focused]) .label,:host([variant=outlined][type=date]) .label,:host([variant=outlined][type=datetime-local]) .label,:host([variant=outlined][type=month]) .label,:host([variant=outlined][type=time]) .label,:host([variant=outlined][type=week]) .label{font-size:var(--mdui-typescale-body-small-size);font-weight:var(--mdui-typescale-body-small-weight);letter-spacing:var(--mdui-typescale-body-small-tracking);line-height:var(--mdui-typescale-body-small-line-height);top:-.5rem;left:.75rem;opacity:0;background-color:rgb(var(--mdui-color-background))}:host([variant=filled][focused-style]) .invalid .label,:host([variant=filled][focused-style]) .invalid-style .label,:host([variant=filled][focused]) .invalid .label,:host([variant=filled][focused]) .invalid-style .label,:host([variant=outlined][focused-style]) .invalid .label,:host([variant=outlined][focused-style]) .invalid-style .label,:host([variant=outlined][focused]) .invalid .label,:host([variant=outlined][focused]) .invalid-style .label{color:rgb(var(--mdui-color-error))}:host([variant=filled][disabled]) .label,:host([variant=outlined][disabled]) .label{color:rgba(var(--mdui-color-on-surface),38%)}.input{display:flex;flex-wrap:wrap;width:100%;border:none;outline:0;background:0 0;-webkit-appearance:none;appearance:none;resize:none;cursor:inherit;font-family:inherit;padding:1rem 0;font-size:var(--mdui-typescale-body-large-size);font-weight:var(--mdui-typescale-body-large-weight);letter-spacing:var(--mdui-typescale-body-large-tracking);line-height:var(--mdui-typescale-body-large-line-height);color:rgb(var(--mdui-color-on-surface));caret-color:rgb(var(--mdui-color-primary))}.input.hide-input{opacity:0;height:0;padding:0!important;overflow:hidden}.input::placeholder{color:rgb(var(--mdui-color-on-surface-variant))}.invalid .input,.invalid-style .input{caret-color:rgb(var(--mdui-color-error))}:host([disabled]) .input{color:rgba(var(--mdui-color-on-surface),38%)}:host([end-aligned]) .input{text-align:right}:host([variant=filled]) .label+.input{padding:1.5rem 0 .5rem 0}.supporting{display:flex;justify-content:space-between;padding:.25rem 1rem;color:rgb(var(--mdui-color-on-surface-variant))}.supporting.invalid,.supporting.invalid-style{color:rgb(var(--mdui-color-error))}.helper{display:block;opacity:1;transition:opacity var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear);font-size:var(--mdui-typescale-body-small-size);font-weight:var(--mdui-typescale-body-small-weight);letter-spacing:var(--mdui-typescale-body-small-tracking);line-height:var(--mdui-typescale-body-small-line-height)}:host([disabled]) .helper{color:rgba(var(--mdui-color-on-surface),38%)}:host([helper-on-focus]) .helper{opacity:0}:host([helper-on-focus][focused-style]) .helper,:host([helper-on-focus][focused]) .helper{opacity:1}.error{font-size:var(--mdui-typescale-body-small-size);font-weight:var(--mdui-typescale-body-small-weight);letter-spacing:var(--mdui-typescale-body-small-tracking);line-height:var(--mdui-typescale-body-small-line-height)}.counter{flex-wrap:nowrap;padding-left:1rem;font-size:var(--mdui-typescale-body-small-size);font-weight:var(--mdui-typescale-body-small-weight);letter-spacing:var(--mdui-typescale-body-small-tracking);line-height:var(--mdui-typescale-body-small-line-height)}::-ms-reveal{display:none}.is-firefox .input[type=date],.is-firefox .input[type=datetime-local],.is-firefox .input[type=time]{-webkit-clip-path:inset(0 2em 0 0);clip-path:inset(0 2em 0 0)}.input[type=number]::-webkit-inner-spin-button,.input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;display:none}.input[type=number]{-moz-appearance:textfield}.input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none}`;let le=class extends Ui(Te){constructor(){super(...arguments),this.variant="filled",this.type="text",this.name="",this.value="",this.defaultValue="",this.helperOnFocus=!1,this.clearable=!1,this.endAligned=!1,this.readonly=!1,this.disabled=!1,this.required=!1,this.autosize=!1,this.counter=!1,this.togglePassword=!1,this.spellcheck=!1,this.invalid=!1,this.invalidStyle=!1,this.focusedStyle=!1,this.isPasswordVisible=!1,this.hasValue=!1,this.error="",this.inputRef=ge(),this.formController=new Qr(this),this.hasSlotController=new It(this,"icon","end-icon","helper","input"),this.readonlyButClearable=!1}get validity(){return this.inputRef.value.validity}get validationMessage(){return this.inputRef.value.validationMessage}get valueAsNumber(){var t;return((t=this.inputRef.value)==null?void 0:t.valueAsNumber)??parseFloat(this.value)}set valueAsNumber(t){const i=document.createElement("input");i.type="number",i.valueAsNumber=t,this.value=i.value}get focusElement(){return this.inputRef.value}get focusDisabled(){return this.disabled}get isFocusedStyle(){return this.focused||this.focusedStyle}get isTextarea(){return this.rows&&this.rows>1||this.autosize}onDisabledChange(){this.inputRef.value.disabled=this.disabled,this.invalid=!this.inputRef.value.checkValidity()}async onValueChange(){var t;if(this.hasValue=!!this.value,this.hasUpdated){await this.updateComplete;const i=this.formController.getForm();i&&((t=_t.get(i))!=null&&t.has(this))?(this.invalid=!1,_t.get(i).delete(this)):this.invalid=!this.inputRef.value.checkValidity()}}onRowsChange(){this.setTextareaHeight()}async onMaxRowsChange(){if(!this.autosize)return;this.hasUpdated||await this.updateComplete;const t=O(this.inputRef.value);t.css("max-height",parseFloat(t.css("line-height"))*(this.maxRows??1)+parseFloat(t.css("padding-top"))+parseFloat(t.css("padding-bottom")))}async onMinRowsChange(){if(!this.autosize)return;this.hasUpdated||await this.updateComplete;const t=O(this.inputRef.value);t.css("min-height",parseFloat(t.css("line-height"))*(this.minRows??1)+parseFloat(t.css("padding-top"))+parseFloat(t.css("padding-bottom")))}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.observeResize)==null||t.unobserve(),uc(this)}select(){this.inputRef.value.select()}setSelectionRange(t,i,r="none"){this.inputRef.value.setSelectionRange(t,i,r)}setRangeText(t,i,r,n="preserve"){this.inputRef.value.setRangeText(t,i,r,n),this.value!==this.inputRef.value.value&&(this.value=this.inputRef.value.value,this.setTextareaHeight(),this.emit("input"),this.emit("change"))}checkValidity(){const t=this.inputRef.value.checkValidity();return t||this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),t}reportValidity(){return this.invalid=!this.inputRef.value.reportValidity(),this.invalid&&(this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),this.focus()),!this.invalid}setCustomValidity(t){this.setCustomValidityInternal(t),uc(this)}firstUpdated(t){super.firstUpdated(t),this.setTextareaHeight(),this.observeResize=Ds(this.inputRef.value,()=>this.setTextareaHeight())}render(){const t=!!this.icon||this.hasSlotController.test("icon"),i=!!this.endIcon||this.hasSlotController.test("end-icon"),r=this.invalid||this.invalidStyle,n=!!this.helper||this.hasSlotController.test("helper"),s=r&&!!(this.error||this.inputRef.value.validationMessage),o=this.counter&&!!this.maxlength,a=this.hasSlotController.test("input"),l={invalid:this.invalid,"invalid-style":this.invalidStyle},c=ht({container:!0,"has-value":this.hasValue,"has-icon":t,"has-end-icon":i,"has-error-icon":r,"is-firefox":navigator.userAgent.includes("Firefox"),...l});return P`
${this.renderPrefix()}
${this.renderLabel()} ${this.isTextarea?this.renderTextArea(a):this.renderInput(a)} ${Ze(a,()=>P``)}
${this.renderClearButton()}${this.renderTogglePasswordButton()} ${this.renderSuffix(r)}
${Ze(s||n||o,()=>P`
${this.renderHelper(s,n)} ${this.renderCounter(o)}
`)}`}setCustomValidityInternal(t){this.inputRef.value.setCustomValidity(t),this.invalid=!this.inputRef.value.checkValidity(),this.requestUpdate()}onChange(){this.value=this.inputRef.value.value,this.isTextarea&&this.setTextareaHeight(),this.emit("change")}onClear(t){this.value="",this.emit("clear"),this.emit("input"),this.emit("change"),this.focus(),t.stopPropagation()}onInput(){this.value=this.inputRef.value.value,this.isTextarea&&this.setTextareaHeight(),this.emit("input")}onInvalid(t){t.preventDefault()}onKeyDown(t){const i=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey;t.key==="Enter"&&!i&&setTimeout(()=>{t.defaultPrevented||this.formController.submit()})}onTextAreaKeyUp(){if(this.pattern){const t=new RegExp(this.pattern);this.value&&!this.value.match(t)?(this.setCustomValidityInternal(this.getPatternErrorMsg()),Nw(this,()=>{this.setCustomValidityInternal(this.getPatternErrorMsg())})):(this.setCustomValidityInternal(""),uc(this))}}onTogglePassword(){this.isPasswordVisible=!this.isPasswordVisible}getPatternErrorMsg(){return Mw("Please match the requested format.")}setTextareaHeight(){this.autosize?(this.inputRef.value.style.height="auto",this.inputRef.value.style.height=`${this.inputRef.value.scrollHeight}px`):this.inputRef.value.style.height=void 0}renderLabel(){return this.label?P``:Ve}renderPrefix(){return P`${this.icon?P``:Ve}${this.prefix}`}renderSuffix(t){return P`${this.suffix}${t?P`${this.errorIcon?P``:P``}`:P`${this.endIcon?P``:Ve}`}`}renderClearButton(){const t=this.clearable&&!this.disabled&&(!this.readonly||this.readonlyButClearable)&&(typeof this.value=="number"||this.value.length>0);return Ze(t,()=>P`${this.clearIcon?P``:P``}`)}renderTogglePasswordButton(){const t=this.type==="password"&&this.togglePassword&&!this.disabled;return Ze(t,()=>P`${this.isPasswordVisible?P`${this.showPasswordIcon?P``:P``}`:P`${this.hidePasswordIcon?P``:P``}`}`)}renderInput(t){return P``}renderTextArea(t){return P``}renderHelper(t,i){return t?P`
${this.error||this.inputRef.value.validationMessage}
`:i?P`${this.helper}`:P``}renderCounter(t){return t?P`
${this.value.length}/${this.maxlength}
`:Ve}};le.styles=[Ce,y_];v([R({reflect:!0})],le.prototype,"variant",void 0);v([R({reflect:!0})],le.prototype,"type",void 0);v([R({reflect:!0})],le.prototype,"name",void 0);v([R()],le.prototype,"value",void 0);v([On()],le.prototype,"defaultValue",void 0);v([R({reflect:!0})],le.prototype,"label",void 0);v([R({reflect:!0})],le.prototype,"placeholder",void 0);v([R({reflect:!0})],le.prototype,"helper",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"helper-on-focus"})],le.prototype,"helperOnFocus",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],le.prototype,"clearable",void 0);v([R({reflect:!0,attribute:"clear-icon"})],le.prototype,"clearIcon",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"end-aligned"})],le.prototype,"endAligned",void 0);v([R({reflect:!0})],le.prototype,"prefix",void 0);v([R({reflect:!0})],le.prototype,"suffix",void 0);v([R({reflect:!0})],le.prototype,"icon",void 0);v([R({reflect:!0,attribute:"end-icon"})],le.prototype,"endIcon",void 0);v([R({reflect:!0,attribute:"error-icon"})],le.prototype,"errorIcon",void 0);v([R({reflect:!0})],le.prototype,"form",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],le.prototype,"readonly",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],le.prototype,"disabled",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],le.prototype,"required",void 0);v([R({type:Number,reflect:!0})],le.prototype,"rows",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],le.prototype,"autosize",void 0);v([R({type:Number,reflect:!0,attribute:"min-rows"})],le.prototype,"minRows",void 0);v([R({type:Number,reflect:!0,attribute:"max-rows"})],le.prototype,"maxRows",void 0);v([R({type:Number,reflect:!0})],le.prototype,"minlength",void 0);v([R({type:Number,reflect:!0})],le.prototype,"maxlength",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],le.prototype,"counter",void 0);v([R({type:Number,reflect:!0})],le.prototype,"min",void 0);v([R({type:Number,reflect:!0})],le.prototype,"max",void 0);v([R({type:Number,reflect:!0})],le.prototype,"step",void 0);v([R({reflect:!0})],le.prototype,"pattern",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"toggle-password"})],le.prototype,"togglePassword",void 0);v([R({reflect:!0,attribute:"show-password-icon"})],le.prototype,"showPasswordIcon",void 0);v([R({reflect:!0,attribute:"hide-password-icon"})],le.prototype,"hidePasswordIcon",void 0);v([R({reflect:!0})],le.prototype,"autocapitalize",void 0);v([R({reflect:!0})],le.prototype,"autocorrect",void 0);v([R({reflect:!0})],le.prototype,"autocomplete",void 0);v([R({reflect:!0})],le.prototype,"enterkeyhint",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],le.prototype,"spellcheck",void 0);v([R({reflect:!0})],le.prototype,"inputmode",void 0);v([_e()],le.prototype,"invalid",void 0);v([_e()],le.prototype,"invalidStyle",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"focused-style"})],le.prototype,"focusedStyle",void 0);v([_e()],le.prototype,"isPasswordVisible",void 0);v([_e()],le.prototype,"hasValue",void 0);v([_e()],le.prototype,"error",void 0);v([re("disabled",!0)],le.prototype,"onDisabledChange",null);v([re("value")],le.prototype,"onValueChange",null);v([re("rows",!0)],le.prototype,"onRowsChange",null);v([re("maxRows")],le.prototype,"onMaxRowsChange",null);v([re("minRows")],le.prototype,"onMinRowsChange",null);le=v([se("mdui-text-field")],le);const b_=pe`:host{display:inline-block;width:100%}.hidden-input{display:none}.text-field{cursor:pointer}.chips{display:flex;flex-wrap:wrap;margin:-.5rem -.25rem;min-height:2.5rem}:host([variant=filled][label]) .chips{margin:0 -.25rem -1rem -.25rem}.chip{margin:.25rem}mdui-menu{max-width:none}`;let Ye=class extends Ui(Te){constructor(){super(...arguments),this.variant="filled",this.multiple=!1,this.name="",this.value="",this.defaultValue="",this.clearable=!1,this.placement="auto",this.endAligned=!1,this.readonly=!1,this.disabled=!1,this.required=!1,this.invalid=!1,this.menuRef=ge(),this.textFieldRef=ge(),this.hiddenInputRef=ge(),this.formController=new Qr(this),this.hasSlotController=new It(this,"icon","end-icon","error-icon","prefix","suffix","clear-button","clear-icon","helper"),this.definedController=new zt(this,{relatedElements:["mdui-menu-item"]})}get validity(){return this.hiddenInputRef.value.validity}get validationMessage(){return this.hiddenInputRef.value.validationMessage}get focusElement(){return this.textFieldRef.value}get focusDisabled(){return this.disabled}connectedCallback(){super.connectedCallback(),this.value=this.multiple&&pt(this.value)?this.value?[this.value]:[]:this.value,this.defaultValue=this.multiple?[]:"",this.definedController.whenDefined().then(()=>{this.requestUpdate()})}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.observeResize)==null||t.unobserve()}checkValidity(){const t=this.hiddenInputRef.value.checkValidity();return t||this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),t}reportValidity(){return this.invalid=!this.hiddenInputRef.value.reportValidity(),this.invalid&&(this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),this.focus()),!this.invalid}setCustomValidity(t){this.hiddenInputRef.value.setCustomValidity(t),this.invalid=!this.hiddenInputRef.value.checkValidity()}firstUpdated(t){super.firstUpdated(t),this.observeResize=Ds(this.textFieldRef.value,()=>this.resizeMenu())}render(){var i;const t=this.multiple?!!this.value.length:!!this.value;return P`${this.multiple?P``:P``}`${r}:text-field__${r}`).join(",")}" readonly="readonly" .readonlyButClearable="${!0}" .variant="${this.variant}" .name="${this.name}" .value="${this.multiple?this.value.length?" ":"":this.getMenuItemLabelByValue(this.value)}" .label="${this.label}" .placeholder="${this.placeholder}" .helper="${this.helper}" .error="${(i=this.hiddenInputRef.value)==null?void 0:i.validationMessage}" .clearable="${this.clearable}" .clearIcon="${this.clearIcon}" .endAligned="${this.endAligned}" .prefix="${this.prefix}" .suffix="${this.suffix}" .icon="${this.icon}" .endIcon="${this.endIcon}" .errorIcon="${this.errorIcon}" .form="${this.form}" .disabled="${this.disabled}" .required="${this.required}" .invalidStyle="${this.invalid}" @clear="${this.onClear}" @change="${r=>r.stopPropagation()}" @keydown="${this.onTextFieldKeyDown}">${so(["icon","end-icon","error-icon","prefix","suffix","clear-button","clear-icon","helper"],r=>this.hasSlotController.test(r)?P``:qe)} ${Ze(this.multiple&&this.value.length,()=>P`
${so(this.value,r=>P``${n}:chip__${n}`).join(",")}" variant="input" deletable tabindex="-1" @delete="${()=>this.onDeleteOneValue(r)}">${this.getMenuItemLabelByValue(r)}`)}
`)}
`}getMenuItemLabelByValue(t){var i;return this.menuItems.length&&((i=this.menuItems.find(r=>r.value===t))==null?void 0:i.textContent)||t}resizeMenu(){this.menuRef.value.style.width=`${this.textFieldRef.value.clientWidth}px`}async onDropdownOpen(){this.textFieldRef.value.focusedStyle=!0}onDropdownClose(){var t;this.textFieldRef.value.focusedStyle=!1,(this.contains(document.activeElement)||this.contains(((t=document.activeElement)==null?void 0:t.assignedSlot)??null))&&setTimeout(()=>{this.focus()})}async onValueChange(t){var n;const i=t.target;this.value=this.multiple?i.value.map(s=>s??""):i.value??"",await this.updateComplete;const r=this.formController.getForm();r&&((n=_t.get(r))!=null&&n.has(this))?(this.invalid=!1,_t.get(r).delete(this)):this.invalid=!this.hiddenInputRef.value.checkValidity()}onDeleteOneValue(t){const i=[...this.value];i.includes(t)&&i.splice(i.indexOf(t),1),this.value=i}onClear(){this.value=this.multiple?[]:""}onTextFieldKeyDown(t){t.key==="Enter"&&(t.preventDefault(),this.textFieldRef.value.click())}};Ye.styles=[Ce,b_];v([R({reflect:!0})],Ye.prototype,"variant",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Ye.prototype,"multiple",void 0);v([R({reflect:!0})],Ye.prototype,"name",void 0);v([R()],Ye.prototype,"value",void 0);v([On()],Ye.prototype,"defaultValue",void 0);v([R({reflect:!0})],Ye.prototype,"label",void 0);v([R({reflect:!0})],Ye.prototype,"placeholder",void 0);v([R({reflect:!0})],Ye.prototype,"helper",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Ye.prototype,"clearable",void 0);v([R({reflect:!0,attribute:"clear-icon"})],Ye.prototype,"clearIcon",void 0);v([R({reflect:!0})],Ye.prototype,"placement",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"end-aligned"})],Ye.prototype,"endAligned",void 0);v([R({reflect:!0})],Ye.prototype,"prefix",void 0);v([R({reflect:!0})],Ye.prototype,"suffix",void 0);v([R({reflect:!0})],Ye.prototype,"icon",void 0);v([R({reflect:!0,attribute:"end-icon"})],Ye.prototype,"endIcon",void 0);v([R({reflect:!0,attribute:"error-icon"})],Ye.prototype,"errorIcon",void 0);v([R({reflect:!0})],Ye.prototype,"form",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Ye.prototype,"readonly",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Ye.prototype,"disabled",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Ye.prototype,"required",void 0);v([_e()],Ye.prototype,"invalid",void 0);v([Hi({flatten:!0,selector:"mdui-menu-item"})],Ye.prototype,"menuItems",void 0);Ye=v([se("mdui-select")],Ye);const w_=pe`.track-active{left:-.125rem;border-radius:var(--mdui-shape-corner-full) 0 0 var(--mdui-shape-corner-full)}`;let To=class extends Vt{constructor(){super(...arguments),this.value=0,this.defaultValue=0,this.rippleRef=ge(),this.handleRef=ge(),this.formController=new Qr(this)}get rippleElement(){return this.rippleRef.value}async onValueChange(){var i;this.value=this.fixValue(this.value);const t=this.formController.getForm();t&&((i=_t.get(t))!=null&&i.has(this))?(this.invalid=!1,_t.get(t).delete(this)):(await this.updateComplete,this.invalid=!this.inputRef.value.checkValidity()),this.updateStyle()}connectedCallback(){super.connectedCallback(),this.value=this.fixValue(this.value)}firstUpdated(t){super.firstUpdated(t);const i=()=>{this.disabled||(this.labelVisible=!0)},r=()=>{this.disabled||(this.labelVisible=!1)};this.addEventListener("touchstart",i),this.addEventListener("mousedown",i),this.addEventListener("touchend",r),this.addEventListener("mouseup",r),this.updateStyle()}render(){return P``}updateStyle(){const t=(this.value-this.min)/(this.max-this.min)*100;this.trackActiveRef.value.style.width=`${t}%`,this.handleRef.value.style.left=`${t}%`}onInput(){this.value=parseFloat(this.inputRef.value.value),this.updateStyle()}};To.styles=[Vt.styles,w_];v([R({type:Number})],To.prototype,"value",void 0);v([On()],To.prototype,"defaultValue",void 0);v([re("value",!0)],To.prototype,"onValueChange",null);To=v([se("mdui-slider")],To);const __=pe`:host{--shape-corner:var(--mdui-shape-corner-extra-small);--z-index:2400;position:fixed;z-index:var(--z-index);display:none;align-items:center;flex-wrap:wrap;border-radius:var(--shape-corner);min-width:20rem;max-width:36rem;padding:.25rem 0;box-shadow:var(--mdui-elevation-level3);background-color:rgb(var(--mdui-color-inverse-surface));color:rgb(var(--mdui-color-inverse-on-surface));font-size:var(--mdui-typescale-body-medium-size);font-weight:var(--mdui-typescale-body-medium-weight);letter-spacing:var(--mdui-typescale-body-medium-tracking);line-height:var(--mdui-typescale-body-medium-line-height)}:host([placement^=top]){transform-origin:top;top:1rem}:host([placement^=bottom]){transform-origin:bottom;bottom:1rem}:host([placement=bottom-start]),:host([placement=top-start]){left:1rem}:host([placement=bottom-end]),:host([placement=top-end]){right:1rem}.message{display:block;margin:.625rem 1rem}:host([message-line='1']) .message{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host([message-line='2']) .message{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:2}.action-group{display:flex;align-items:center;margin-left:auto;padding-right:.5rem}.action,.close-button{display:inline-flex;align-items:center;justify-content:center}.action{color:rgb(var(--mdui-color-inverse-primary));font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking)}.action mdui-button,::slotted(mdui-button[slot=action][variant=outlined]),::slotted(mdui-button[slot=action][variant=text]){color:inherit;font-size:inherit;font-weight:inherit;letter-spacing:inherit;--mdui-comp-ripple-state-layer-color:var(--mdui-color-inverse-primary)}.action mdui-button::part(button){padding:0 .5rem}.close-button{margin:0 -.25rem 0 .25rem;font-size:1.5rem;color:rgb(var(--mdui-color-inverse-on-surface))}.close-button mdui-button-icon,::slotted(mdui-button-icon[slot=close-button][variant=outlined]),::slotted(mdui-button-icon[slot=close-button][variant=standard]){font-size:inherit;color:inherit;--mdui-comp-ripple-state-layer-color:var(--mdui-color-inverse-on-surface)}.close-button .i,::slotted([slot=close-icon]){font-size:inherit}`;let Ci=class extends Te{constructor(){super(),this.open=!1,this.placement="bottom",this.actionLoading=!1,this.closeable=!1,this.autoCloseDelay=5e3,this.closeOnOutsideClick=!1,this.onDocumentClick=this.onDocumentClick.bind(this)}async onOpenChange(){const t=rb().down("sm"),i=["top","bottom"].includes(this.placement),r=Gt(this,"linear"),n=Gt(this,"emphasized-decelerate"),s=Array.from(this.renderRoot.querySelectorAll(".message, .action-group")),o=t?{left:"1rem",right:"1rem",minWidth:0}:i?{left:"50%"}:{};if(this.open){const a=this.hasUpdated;if(a||await this.updateComplete,a&&!this.emit("open",{cancelable:!0}))return;window.clearTimeout(this.closeTimeout),this.autoCloseDelay&&(this.closeTimeout=window.setTimeout(()=>{this.open=!1},this.autoCloseDelay)),this.style.display="flex",await Promise.all([yi(this),...s.map(d=>yi(d))]);const l=Qi(this,"medium4"),c=d=>{const u=`scaleY(${d==="start"?0:1})`;return t?{transform:u}:{transform:[u,i?"translateX(-50%)":""].filter(h=>h).join(" ")}};await Promise.all([We(this,[{...c("start"),...o},{...c("end"),...o}],{duration:a?l:0,easing:n,fill:"forwards"}),We(this,[{opacity:0},{opacity:1,offset:.5},{opacity:1}],{duration:a?l:0,easing:r,fill:"forwards"}),...s.map(d=>We(d,[{opacity:0},{opacity:0,offset:.2},{opacity:1,offset:.8},{opacity:1}],{duration:a?l:0,easing:r}))]),a&&this.emit("opened");return}if(!this.open&&this.hasUpdated){if(!this.emit("close",{cancelable:!0}))return;window.clearTimeout(this.closeTimeout),await Promise.all([yi(this),...s.map(d=>yi(d))]);const l=Qi(this,"short4"),c=d=>{const h={opacity:d==="start"?1:0};return!t&&i&&Object.assign(h,{transform:"translateX(-50%)"}),h};await Promise.all([We(this,[{...c("start"),...o},{...c("end"),...o}],{duration:l,easing:r,fill:"forwards"}),...s.map(d=>We(d,[{opacity:1},{opacity:0,offset:.75},{opacity:0}],{duration:l,easing:r}))]),this.style.display="none",this.emit("closed");return}}connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.onDocumentClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.onDocumentClick)}render(){return P`
${this.action?P`${this.action}`:Ve}${Ze(this.closeable,()=>P`${this.closeIcon?P``:P``}`)}
`}onDocumentClick(t){if(!this.open||!this.closeOnOutsideClick)return;const i=t.target;!this.contains(i)&&this!==i&&(this.open=!1)}onActionClick(t){t.stopPropagation(),this.emit("action-click")}onCloseClick(){this.open=!1}};Ci.styles=[Ce,__];v([R({type:Boolean,reflect:!0,converter:Y})],Ci.prototype,"open",void 0);v([R({reflect:!0})],Ci.prototype,"placement",void 0);v([R({reflect:!0,attribute:"action"})],Ci.prototype,"action",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"action-loading"})],Ci.prototype,"actionLoading",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Ci.prototype,"closeable",void 0);v([R({reflect:!0,attribute:"close-icon"})],Ci.prototype,"closeIcon",void 0);v([R({type:Number,reflect:!0,attribute:"message-line"})],Ci.prototype,"messageLine",void 0);v([R({type:Number,reflect:!0,attribute:"auto-close-delay"})],Ci.prototype,"autoCloseDelay",void 0);v([R({type:Boolean,reflect:!0,attribute:"close-on-outside-click",converter:Y})],Ci.prototype,"closeOnOutsideClick",void 0);v([re("open")],Ci.prototype,"onOpenChange",null);Ci=v([se("mdui-snackbar")],Ci);const k_=pe`:host{--shape-corner:var(--mdui-shape-corner-full);--shape-corner-thumb:var(--mdui-shape-corner-full);position:relative;display:inline-block;cursor:pointer;-webkit-tap-highlight-color:transparent;height:2.5rem}:host([disabled]){cursor:default;pointer-events:none}label{display:inline-flex;align-items:center;width:100%;height:100%;white-space:nowrap;cursor:inherit;-webkit-user-select:none;user-select:none;touch-action:manipulation;zoom:1;-webkit-user-drag:none}.track{position:relative;display:flex;align-items:center;border-radius:var(--shape-corner);transition-property:background-color,border-width;transition-duration:var(--mdui-motion-duration-short4);transition-timing-function:var(--mdui-motion-easing-standard);height:2rem;width:3.25rem;border:.125rem solid rgb(var(--mdui-color-outline));background-color:rgb(var(--mdui-color-surface-container-highest))}:host([checked]) .track{background-color:rgb(var(--mdui-color-primary));border-width:0}.invalid .track{background-color:rgb(var(--mdui-color-error-container));border-color:rgb(var(--mdui-color-error))}:host([disabled]) .track{background-color:rgba(var(--mdui-color-surface-container-highest),.12);border-color:rgba(var(--mdui-color-on-surface),.12)}:host([disabled][checked]) .track{background-color:rgba(var(--mdui-color-on-surface),.12)}input{position:absolute;padding:0;opacity:0;pointer-events:none;width:1.25rem;height:1.25rem;margin:0 0 0 .625rem}mdui-ripple{border-radius:50%;transition-property:left,top;transition-duration:var(--mdui-motion-duration-short4);transition-timing-function:var(--mdui-motion-easing-standard);width:2.5rem;height:2.5rem}.thumb{position:absolute;display:flex;align-items:center;justify-content:center;border-radius:var(--shape-corner-thumb);transition-property:width,height,left,background-color;transition-duration:var(--mdui-motion-duration-short4);transition-timing-function:var(--mdui-motion-easing-standard);height:1rem;width:1rem;left:.375rem;background-color:rgb(var(--mdui-color-outline));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}.thumb mdui-ripple{left:-.75rem;top:-.75rem}.has-unchecked-icon .thumb{height:1.5rem;width:1.5rem;left:.125rem}.has-unchecked-icon .thumb mdui-ripple{left:-.5rem;top:-.5rem}:host([focus-visible]) .thumb,:host([hover]) .thumb,:host([pressed]) .thumb{background-color:rgb(var(--mdui-color-on-surface-variant))}:host([checked]) .thumb{height:1.5rem;width:1.5rem;left:1.5rem;background-color:rgb(var(--mdui-color-on-primary));--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([checked]) .thumb mdui-ripple{left:-.5rem;top:-.5rem}:host([pressed]) .thumb{height:1.75rem;width:1.75rem;left:0}:host([pressed]) .thumb mdui-ripple{left:-.375rem;top:-.375rem}:host([pressed][checked]) .thumb{left:1.375rem}:host([focus-visible][checked]) .thumb,:host([hover][checked]) .thumb,:host([pressed][checked]) .thumb{background-color:rgb(var(--mdui-color-primary-container))}.invalid .thumb{background-color:rgb(var(--mdui-color-error));--mdui-comp-ripple-state-layer-color:var(--mdui-color-error)}:host([focus-visible]) .invalid .thumb,:host([hover]) .invalid .thumb,:host([pressed]) .invalid .thumb{background-color:rgb(var(--mdui-color-error))}:host([disabled]) .thumb{background-color:rgba(var(--mdui-color-on-surface),.38)}:host([disabled][checked]) .thumb{background-color:rgb(var(--mdui-color-surface))}.checked-icon,.unchecked-icon{display:flex;position:absolute;transition-property:opacity,transform;font-size:1rem}.unchecked-icon{opacity:1;transform:scale(1);transition-delay:var(--mdui-motion-duration-short1);transition-duration:var(--mdui-motion-duration-short3);transition-timing-function:var(--mdui-motion-easing-linear);color:rgb(var(--mdui-color-surface-container-highest))}:host([checked]) .unchecked-icon{opacity:0;transform:scale(.92);transition-delay:0s;transition-duration:var(--mdui-motion-duration-short1)}:host([disabled]) .unchecked-icon{color:rgba(var(--mdui-color-surface-container-highest),.38)}.checked-icon{opacity:0;transform:scale(.92);transition-delay:0s;transition-duration:var(--mdui-motion-duration-short1);transition-timing-function:var(--mdui-motion-easing-linear);color:rgb(var(--mdui-color-on-primary-container))}:host([checked]) .checked-icon{opacity:1;transform:scale(1);transition-delay:var(--mdui-motion-duration-short1);transition-duration:var(--mdui-motion-duration-short3)}.invalid .checked-icon{color:rgb(var(--mdui-color-error-container))}:host([disabled]) .checked-icon{color:rgba(var(--mdui-color-on-surface),.38)}.checked-icon .i,.unchecked-icon .i,::slotted([slot=checked-icon]),::slotted([slot=unchecked-icon]){font-size:inherit;color:inherit}`;let di=class extends dr(Ui(Te)){constructor(){super(...arguments),this.disabled=!1,this.checked=!1,this.defaultChecked=!1,this.required=!1,this.name="",this.value="on",this.invalid=!1,this.rippleRef=ge(),this.inputRef=ge(),this.formController=new Qr(this,{value:t=>t.checked?t.value:void 0,defaultValue:t=>t.defaultChecked,setValue:(t,i)=>t.checked=i}),this.hasSlotController=new It(this,"unchecked-icon")}get validity(){return this.inputRef.value.validity}get validationMessage(){return this.inputRef.value.validationMessage}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return this.disabled}get focusElement(){return this.inputRef.value}get focusDisabled(){return this.disabled}async onDisabledChange(){await this.updateComplete,this.invalid=!this.inputRef.value.checkValidity()}async onCheckedChange(){var i;await this.updateComplete;const t=this.formController.getForm();t&&((i=_t.get(t))!=null&&i.has(this))?(this.invalid=!1,_t.get(t).delete(this)):this.invalid=!this.inputRef.value.checkValidity()}checkValidity(){const t=this.inputRef.value.checkValidity();return t||this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),t}reportValidity(){return this.invalid=!this.inputRef.value.reportValidity(),this.invalid&&(this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1})||(this.blur(),this.focus())),!this.invalid}setCustomValidity(t){this.inputRef.value.setCustomValidity(t),this.invalid=!this.inputRef.value.checkValidity()}render(){return P``}onChange(){this.checked=this.inputRef.value.checked,this.emit("change")}};di.styles=[Ce,k_];v([R({type:Boolean,reflect:!0,converter:Y})],di.prototype,"disabled",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],di.prototype,"checked",void 0);v([On("checked")],di.prototype,"defaultChecked",void 0);v([R({reflect:!0,attribute:"unchecked-icon"})],di.prototype,"uncheckedIcon",void 0);v([R({reflect:!0,attribute:"checked-icon"})],di.prototype,"checkedIcon",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],di.prototype,"required",void 0);v([R({reflect:!0})],di.prototype,"form",void 0);v([R({reflect:!0})],di.prototype,"name",void 0);v([R({reflect:!0})],di.prototype,"value",void 0);v([_e()],di.prototype,"invalid",void 0);v([re("disabled",!0),re("required",!0)],di.prototype,"onDisabledChange",null);v([re("checked",!0)],di.prototype,"onCheckedChange",null);di=v([se("mdui-switch")],di);const C_=pe`:host{position:relative;--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}:host([active]){--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}.container{display:flex;justify-content:center;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;height:100%}.preset{flex-direction:column;min-height:3rem;padding:.625rem 1rem}:host([inline]) .preset{flex-direction:row}.icon-container,.label-container{position:relative;display:flex;align-items:center;justify-content:center}.icon-container ::slotted([slot=badge]){position:absolute;transform:translate(50%,-50%)}.icon-container ::slotted([slot=badge][variant=small]){transform:translate(.5625rem,-.5625rem)}.label-container ::slotted([slot=badge]){position:absolute;left:100%;bottom:100%;transform:translate(-.75rem,.625rem)}.label-container ::slotted([slot=badge][variant=small]){transform:translate(-.375rem,.375rem)}.icon,.label{display:flex;color:rgb(var(--mdui-color-on-surface-variant))}:host([focused]) .icon,:host([focused]) .label,:host([hover]) .icon,:host([hover]) .label,:host([pressed]) .icon,:host([pressed]) .label{color:rgb(var(--mdui-color-on-surface))}:host([active]) .icon,:host([active]) .label{color:rgb(var(--mdui-color-primary))}:host([active]) .variant-secondary .icon,:host([active]) .variant-secondary .label{color:rgb(var(--mdui-color-on-surface))}.icon{font-size:1.5rem}.label{font-size:var(--mdui-typescale-title-small-size);font-weight:var(--mdui-typescale-title-small-weight);letter-spacing:var(--mdui-typescale-title-small-tracking);line-height:var(--mdui-typescale-title-small-line-height)}.icon mdui-icon,::slotted([slot=icon]){font-size:inherit;color:inherit}`;let Tn=class extends dr(Ui(Te)){constructor(){super(...arguments),this.inline=!1,this.active=!1,this.variant="primary",this.key=Pn(),this.rippleRef=ge(),this.hasSlotController=new It(this,"icon","custom")}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return!1}get focusElement(){return this}get focusDisabled(){return!1}render(){const t=this.icon||this.hasSlotController.test("icon"),i=this.hasSlotController.test("custom"),r=()=>P``;return P`
${Ze(t||this.icon,r)}${this.icon?P``:Ve}
${Ze(!t,r)}
`}};Tn.styles=[Ce,C_];v([R({reflect:!0})],Tn.prototype,"value",void 0);v([R({reflect:!0})],Tn.prototype,"icon",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Tn.prototype,"inline",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Tn.prototype,"active",void 0);v([_e()],Tn.prototype,"variant",void 0);Tn=v([se("mdui-tab")],Tn);const E_=pe`:host{display:block;overflow-y:auto;flex:1 1 auto}:host(:not([active])){display:none}`;let Za=class extends Te{constructor(){super(...arguments),this.active=!1}render(){return P``}};Za.styles=[Ce,E_];v([R({reflect:!0})],Za.prototype,"value",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Za.prototype,"active",void 0);Za=v([se("mdui-tab-panel")],Za);const x_=pe`:host{position:relative;display:flex}:host([placement^=top]){flex-direction:column}:host([placement^=bottom]){flex-direction:column-reverse}:host([placement^=left]){flex-direction:row}:host([placement^=right]){flex-direction:row-reverse}.container{position:relative;display:flex;flex:0 0 auto;overflow-x:auto;background-color:rgb(var(--mdui-color-surface))}:host([placement^=bottom]) .container,:host([placement^=top]) .container{flex-direction:row}:host([placement^=left]) .container,:host([placement^=right]) .container{flex-direction:column}:host([placement$='-start']) .container{justify-content:flex-start}:host([placement=bottom]) .container,:host([placement=left]) .container,:host([placement=right]) .container,:host([placement=top]) .container{justify-content:center}:host([placement$='-end']) .container{justify-content:flex-end}.container::after{content:' ';position:absolute;background-color:rgb(var(--mdui-color-surface-variant))}:host([placement^=bottom]) .container::after,:host([placement^=top]) .container::after{left:0;width:100%;height:.0625rem}:host([placement^=top]) .container::after{bottom:0}:host([placement^=bottom]) .container::after{top:0}:host([placement^=left]) .container::after,:host([placement^=right]) .container::after{top:0;height:100%;width:.0625rem}:host([placement^=left]) .container::after{right:0}:host([placement^=right]) .container::after{left:0}.indicator{position:absolute;z-index:1;background-color:rgb(var(--mdui-color-primary))}.container:not(.initial) .indicator{transition-duration:var(--mdui-motion-duration-medium2);transition-timing-function:var(--mdui-motion-easing-standard-decelerate)}:host([placement^=bottom]) .indicator,:host([placement^=top]) .indicator{transition-property:transform,left,width}:host([placement^=left]) .indicator,:host([placement^=right]) .indicator{transition-property:transform,top,height}:host([placement^=top]) .indicator{bottom:0}:host([placement^=bottom]) .indicator{top:0}:host([placement^=left]) .indicator{right:0}:host([placement^=right]) .indicator{left:0}:host([placement^=bottom][variant=primary]) .indicator,:host([placement^=top][variant=primary]) .indicator{height:.1875rem}:host([placement^=bottom][variant=secondary]) .indicator,:host([placement^=top][variant=secondary]) .indicator{height:.125rem}:host([placement^=left][variant=primary]) .indicator,:host([placement^=right][variant=primary]) .indicator{width:.1875rem}:host([placement^=left][variant=secondary]) .indicator,:host([placement^=right][variant=secondary]) .indicator{width:.125rem}:host([placement^=top][variant=primary]) .indicator{border-top-left-radius:.1875rem;border-top-right-radius:.1875rem}:host([placement^=bottom][variant=primary]) .indicator{border-bottom-right-radius:.1875rem;border-bottom-left-radius:.1875rem}:host([placement^=left][variant=primary]) .indicator{border-top-left-radius:.1875rem;border-bottom-left-radius:.1875rem}:host([placement^=right][variant=primary]) .indicator{border-top-right-radius:.1875rem;border-bottom-right-radius:.1875rem}:host([full-width]) ::slotted(mdui-tab){flex:1}`;let Ei=class extends Te{constructor(){super(...arguments),this.variant="primary",this.placement="top-start",this.fullWidth=!1,this.activeKey=0,this.isInitial=!0,this.containerRef=ge(),this.indicatorRef=ge(),this.definedController=new zt(this,{relatedElements:["mdui-tab","mdui-tab-panel"]})}async onActiveKeyChange(){var t;await this.definedController.whenDefined(),this.value=(t=this.tabs.find(i=>i.key===this.activeKey))==null?void 0:t.value,this.updateActive(),this.isInitial||this.emit("change")}async onValueChange(){this.isInitial=!this.hasUpdated,await this.definedController.whenDefined();const t=this.tabs.find(i=>i.value===this.value);this.activeKey=(t==null?void 0:t.key)??0}async onIndicatorChange(){await this.updateComplete,this.updateIndicator()}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.observeResize)==null||t.unobserve()}firstUpdated(t){super.firstUpdated(t),this.observeResize=Ds(this.containerRef.value,()=>this.updateIndicator())}render(){return P`
`}async onSlotChange(){await this.definedController.whenDefined(),this.updateActive()}async onClick(t){if(t.button)return;await this.definedController.whenDefined();const r=t.target.closest("mdui-tab");r&&(this.activeKey=r.key,this.isInitial=!1,this.updateActive())}updateActive(){this.activeTab=this.tabs.map(t=>(t.active=this.activeKey===t.key,t)).find(t=>t.active),this.panels.forEach(t=>{var i;return t.active=t.value===((i=this.activeTab)==null?void 0:i.value)}),this.updateIndicator()}updateIndicator(){const t=this.activeTab,i=O(this.indicatorRef.value),r=this.placement.startsWith("left")||this.placement.startsWith("right");if(!t){i.css({transform:r?"scaleY(0)":"scaleX(0)"});return}const n=O(t),s=t.offsetTop,o=t.offsetLeft,a=r?{transform:"scaleY(1)",width:"",left:""}:{transform:"scaleX(1)",height:"",top:""};let l={};if(this.variant==="primary"){const c=n.find(':scope > [slot="custom"]'),d=c.length?c.get():O(t.renderRoot).find('slot[name="custom"]').children().get();if(r){const u=Math.min(...d.map(f=>f.offsetTop))+s,h=Math.max(...d.map(f=>f.offsetTop+f.offsetHeight))+s;l={top:u,height:h-u}}else{const u=Math.min(...d.map(f=>f.offsetLeft))+o,h=Math.max(...d.map(f=>f.offsetLeft+f.offsetWidth))+o;l={left:u,width:h-u}}}this.variant==="secondary"&&(l=r?{top:s,height:t.offsetHeight}:{left:o,width:t.offsetWidth}),i.css({...a,...l})}};Ei.styles=[Ce,x_];v([R({reflect:!0})],Ei.prototype,"variant",void 0);v([R({reflect:!0})],Ei.prototype,"value",void 0);v([R({reflect:!0})],Ei.prototype,"placement",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"full-width"})],Ei.prototype,"fullWidth",void 0);v([_e()],Ei.prototype,"activeKey",void 0);v([_e()],Ei.prototype,"isInitial",void 0);v([Hi({selector:"mdui-tab",flatten:!0})],Ei.prototype,"tabs",void 0);v([Hi({selector:"mdui-tab-panel",slot:"panel",flatten:!0})],Ei.prototype,"panels",void 0);v([re("activeKey",!0)],Ei.prototype,"onActiveKeyChange",null);v([re("value")],Ei.prototype,"onValueChange",null);v([re("variant",!0),re("placement",!0),re("fullWidth",!0)],Ei.prototype,"onIndicatorChange",null);Ei=v([se("mdui-tabs")],Ei);class S_{constructor(t,i){this.isHover=!1,this.uniqueID=Pn(),this.enterEventName=`mouseenter.${this.uniqueID}.hoverController`,this.leaveEventName=`mouseleave.${this.uniqueID}.hoverController`,this.mouseEnterItems=[],this.mouseLeaveItems=[],(this.host=t).addController(this),this.elementRef=i}hostConnected(){this.host.updateComplete.then(()=>{O(this.elementRef.value).on(this.enterEventName,()=>{this.isHover=!0;for(let t=this.mouseEnterItems.length-1;t>=0;t--){const i=this.mouseEnterItems[t];i.callback(),i.one&&this.mouseEnterItems.splice(t,1)}}).on(this.leaveEventName,()=>{this.isHover=!1;for(let t=this.mouseLeaveItems.length-1;t>=0;t--){const i=this.mouseLeaveItems[t];i.callback(),i.one&&this.mouseLeaveItems.splice(t,1)}})})}hostDisconnected(){O(this.elementRef.value).off(this.enterEventName).off(this.leaveEventName)}onMouseEnter(t,i=!1){this.mouseEnterItems.push({callback:t,one:i})}onMouseLeave(t,i=!1){this.mouseLeaveItems.push({callback:t,one:i})}}const A_=pe`:host{--shape-corner-plain:var(--mdui-shape-corner-extra-small);--shape-corner-rich:var(--mdui-shape-corner-medium);--z-index:2500;display:contents}.popup{position:fixed;display:flex;flex-direction:column;z-index:var(--z-index);border-radius:var(--shape-corner-plain);background-color:rgb(var(--mdui-color-inverse-surface));padding:0 .5rem;min-width:1.75rem;max-width:20rem}:host([variant=rich]) .popup{border-radius:var(--shape-corner-rich);background-color:rgb(var(--mdui-color-surface-container));box-shadow:var(--mdui-elevation-level2);padding:.75rem 1rem .5rem 1rem}.headline{display:flex;color:rgb(var(--mdui-color-on-surface-variant));font-size:var(--mdui-typescale-title-small-size);font-weight:var(--mdui-typescale-title-small-weight);letter-spacing:var(--mdui-typescale-title-small-tracking);line-height:var(--mdui-typescale-title-small-line-height)}.content{display:flex;padding:.25rem 0;color:rgb(var(--mdui-color-inverse-on-surface));font-size:var(--mdui-typescale-body-small-size);font-weight:var(--mdui-typescale-body-small-weight);letter-spacing:var(--mdui-typescale-body-small-tracking);line-height:var(--mdui-typescale-body-small-line-height)}:host([variant=rich]) .content{color:rgb(var(--mdui-color-on-surface-variant));font-size:var(--mdui-typescale-body-medium-size);font-weight:var(--mdui-typescale-body-medium-weight);letter-spacing:var(--mdui-typescale-body-medium-tracking);line-height:var(--mdui-typescale-body-medium-line-height)}.action{display:flex;justify-content:flex-start;padding-top:.5rem}.action ::slotted(:not(:last-child)){margin-right:.5rem}`;let xi=class extends Te{constructor(){super(),this.variant="plain",this.placement="auto",this.openDelay=150,this.closeDelay=150,this.trigger="hover focus",this.disabled=!1,this.open=!1,this.popupRef=ge(),this.hasSlotController=new It(this,"headline","action"),this.hoverController=new S_(this,this.popupRef),this.definedController=new zt(this,{needDomReady:!0}),this.onDocumentClick=this.onDocumentClick.bind(this),this.onWindowScroll=this.onWindowScroll.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this),this.onClick=this.onClick.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onMouseEnter=this.onMouseEnter.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this)}get target(){return[...this.children].find(t=>t.tagName.toLowerCase()!=="style"&&t.getAttribute("slot")!=="content")}async onPositionChange(){this.open&&(await this.definedController.whenDefined(),this.updatePositioner())}async onOpenChange(){const t=this.hasUpdated,i=Qi(this,"short4"),r=Gt(this,"standard");if(this.open){if(await this.definedController.whenDefined(),O(`mdui-tooltip[variant="${this.variant}"]`).filter((n,s)=>s!==this).prop("open",!1),t||await this.updateComplete,t&&!this.emit("open",{cancelable:!0}))return;await yi(this.popupRef.value),this.popupRef.value.hidden=!1,this.updatePositioner(),await We(this.popupRef.value,[{transform:"scale(0)"},{transform:"scale(1)"}],{duration:t?i:0,easing:r}),t&&this.emit("opened");return}if(!this.open&&t){if(!this.emit("close",{cancelable:!0}))return;await yi(this.popupRef.value),await We(this.popupRef.value,[{transform:"scale(1)"},{transform:"scale(0)"}],{duration:i,easing:r}),this.popupRef.value.hidden=!0,this.emit("closed")}}connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.onDocumentClick),this.overflowAncestors=Kc(this.target),this.overflowAncestors.forEach(t=>{t.addEventListener("scroll",this.onWindowScroll)})}disconnectedCallback(){var t,i;super.disconnectedCallback(),document.removeEventListener("pointerdown",this.onDocumentClick),(t=this.overflowAncestors)==null||t.forEach(r=>{r.removeEventListener("scroll",this.onWindowScroll)}),(i=this.observeResize)==null||i.unobserve()}firstUpdated(t){super.firstUpdated(t),this.definedController.whenDefined().then(()=>{const i=this.target;i.addEventListener("focus",this.onFocus),i.addEventListener("blur",this.onBlur),i.addEventListener("pointerdown",this.onClick),i.addEventListener("keydown",this.onKeydown),i.addEventListener("mouseenter",this.onMouseEnter),i.addEventListener("mouseleave",this.onMouseLeave),this.observeResize=Ds(i,()=>{this.updatePositioner()})})}render(){const t=this.isRich()&&(this.headline||this.hasSlotController.test("headline")),i=this.isRich()&&this.hasSlotController.test("action");return P``}isRich(){return this.variant==="rich"}requestClose(){if(!this.hoverController.isHover){this.open=!1;return}this.hoverController.onMouseLeave(()=>{this.hasTrigger("hover")?this.hoverTimeout=window.setTimeout(()=>{this.open=!1},this.closeDelay||50):this.open=!1},!0)}hasTrigger(t){return this.trigger.split(" ").includes(t)}onFocus(){this.disabled||this.open||!this.hasTrigger("focus")||(this.open=!0)}onBlur(){this.disabled||!this.open||!this.hasTrigger("focus")||this.requestClose()}onClick(t){this.disabled||t.button||!this.hasTrigger("click")||this.open&&(this.hasTrigger("hover")||this.hasTrigger("focus"))||(this.open=!this.open)}onKeydown(t){this.disabled||!this.open||t.key!=="Escape"||(t.stopPropagation(),this.requestClose())}onMouseEnter(){this.disabled||this.open||!this.hasTrigger("hover")||(this.openDelay?(window.clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>{this.open=!0},this.openDelay)):this.open=!0)}onMouseLeave(){window.clearTimeout(this.hoverTimeout),!(this.disabled||!this.open||!this.hasTrigger("hover"))&&(this.hoverTimeout=window.setTimeout(()=>{this.requestClose()},this.closeDelay||50))}onDocumentClick(t){if(this.disabled||!this.open)return;t.composedPath().includes(this)||this.requestClose()}onWindowScroll(){window.requestAnimationFrame(()=>this.updatePositioner())}updatePositioner(){const t=O(this.popupRef.value),i=this.isRich()?0:4,r=4,n=this.target.getBoundingClientRect(),s=n.top,o=n.left,a=n.height,l=n.width,c=this.popupRef.value.offsetHeight,d=this.popupRef.value.offsetWidth,u=d+i+r,h=c+i+r;let f,g,b,w,x=this.placement;if(x==="auto"){const y=O(window),_=s>h,C=y.height()-s-a>h,E=o>u,A=y.width()-o-l>u;this.isRich()?(x="bottom-right",C&&A?x="bottom-right":C&&E?x="bottom-left":_&&A?x="top-right":_&&E?x="top-left":C?x="bottom":_?x="top":A?x="right":E&&(x="left")):(x="top",_?x="top":C?x="bottom":E?x="left":A&&(x="right"))}const[m,p]=x.split("-");switch(m){case"top":g="bottom",b=s-c-i;break;case"bottom":g="top",b=s+a+i;break;default:switch(g="center",p){case"start":b=s;break;case"end":b=s+a-c;break;default:b=s+a/2-c/2;break}break}switch(m){case"left":f="right",w=o-d-i;break;case"right":f="left",w=o+l+i;break;default:switch(f="center",p){case"start":w=o;break;case"end":w=o+l-d;break;case"left":f="right",w=o-d-i;break;case"right":f="left",w=o+l+i;break;default:w=o+l/2-d/2;break}break}t.css({top:b,left:w,transformOrigin:[f,g].join(" ")})}};xi.styles=[Ce,A_];v([R({reflect:!0})],xi.prototype,"variant",void 0);v([R({reflect:!0})],xi.prototype,"placement",void 0);v([R({type:Number,reflect:!0,attribute:"open-delay"})],xi.prototype,"openDelay",void 0);v([R({type:Number,reflect:!0,attribute:"close-delay"})],xi.prototype,"closeDelay",void 0);v([R({reflect:!0})],xi.prototype,"headline",void 0);v([R({reflect:!0})],xi.prototype,"content",void 0);v([R({reflect:!0})],xi.prototype,"trigger",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],xi.prototype,"disabled",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],xi.prototype,"open",void 0);v([re("placement",!0),re("content",!0)],xi.prototype,"onPositionChange",null);v([re("open")],xi.prototype,"onOpenChange",null);xi=v([se("mdui-tooltip")],xi);const T_=e=>{const t=e.assignedNodes({flatten:!0});let i="";return[...t].forEach(r=>{r.nodeType===Node.ELEMENT_NODE&&(i+=r.outerHTML),r.nodeType===Node.TEXT_NODE&&(i+=r.textContent)}),i},R_=pe`:host{display:block;width:100%;flex-shrink:initial!important;overflow:hidden;color:rgb(var(--mdui-color-on-surface));font-size:var(--mdui-typescale-title-large-size);font-weight:var(--mdui-typescale-title-large-weight);letter-spacing:var(--mdui-typescale-title-large-tracking);line-height:var(--mdui-typescale-title-large-line-height);line-height:2.5rem}.label{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;opacity:1;transition:opacity var(--mdui-motion-duration-short2) var(--mdui-motion-easing-linear)}.label.variant-center-aligned{text-align:center}.label.variant-large:not(.shrink),.label.variant-medium:not(.shrink){opacity:0}.label.variant-large.shrink,.label.variant-medium.shrink{transition-delay:var(--mdui-motion-duration-short2)}.label-large{display:none;position:absolute;width:100%;left:0;margin-right:0;padding:0 1rem;transition:opacity var(--mdui-motion-duration-short2) var(--mdui-motion-easing-linear)}.label-large.variant-large,.label-large.variant-medium{display:block}.label-large.variant-medium{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;bottom:.75rem;font-size:var(--mdui-typescale-headline-small-size);font-weight:var(--mdui-typescale-headline-small-weight);letter-spacing:var(--mdui-typescale-headline-small-tracking);line-height:var(--mdui-typescale-headline-small-line-height)}.label-large.variant-large{display:-webkit-box;overflow:hidden;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2;bottom:1.25rem;font-size:var(--mdui-typescale-headline-medium-size);font-weight:var(--mdui-typescale-headline-medium-weight);letter-spacing:var(--mdui-typescale-headline-medium-tracking);line-height:var(--mdui-typescale-headline-medium-line-height)}.label-large.variant-large:not(.shrink),.label-large.variant-medium:not(.shrink){opacity:1;transition-delay:var(--mdui-motion-duration-short2)}.label-large.variant-large.shrink,.label-large.variant-medium.shrink{opacity:0;z-index:-1}`;let Xa=class extends Te{constructor(){super(...arguments),this.variant="small",this.shrink=!1,this.hasSlotController=new It(this,"label-large"),this.labelLargeRef=ge(),this.defaultSlotRef=ge()}render(){const t=this.hasSlotController.test("label-large"),i=ht({shrink:this.shrink,"variant-center-aligned":this.variant==="center-aligned","variant-small":this.variant==="small","variant-medium":this.variant==="medium","variant-large":this.variant==="large"});return P`${t?P``:P`
`}`}onSlotChange(t){t||(this.labelLargeRef.value.innerHTML=T_(this.defaultSlotRef.value))}};Xa.styles=[Ce,R_];v([_e()],Xa.prototype,"variant",void 0);v([_e()],Xa.prototype,"shrink",void 0);Xa=v([se("mdui-top-app-bar-title")],Xa);const $_=pe`:host{--shape-corner:var(--mdui-shape-corner-none);--z-index:2000;position:fixed;top:0;right:0;left:0;display:flex;flex:0 0 auto;align-items:flex-start;justify-content:flex-start;border-bottom-left-radius:var(--shape-corner);border-bottom-right-radius:var(--shape-corner);z-index:var(--z-index);transition:top var(--mdui-motion-duration-long2) var(--mdui-motion-easing-standard),height var(--mdui-motion-duration-long2) var(--mdui-motion-easing-standard),box-shadow var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear),background-color var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear);padding:.75rem .5rem;height:4rem;background-color:rgb(var(--mdui-color-surface))}:host([scroll-target]:not([scroll-target=''])){position:absolute}:host([scroll-behavior~=shrink]){transition-duration:var(--mdui-motion-duration-short4)}:host([scrolling]){background-color:rgb(var(--mdui-color-surface-container));box-shadow:var(--mdui-elevation-level2)}::slotted(mdui-button-icon){color:rgb(var(--mdui-color-on-surface-variant));font-size:1.5rem}::slotted(mdui-button-icon:first-child){color:rgb(var(--mdui-color-on-surface))}::slotted(mdui-avatar){width:1.875rem;height:1.875rem;margin-top:.3125rem;margin-bottom:.3125rem}::slotted(*){flex-shrink:0}::slotted(:not(:last-child)){margin-right:.5rem}:host([variant=medium]){height:7rem}:host([variant=large]){height:9.5rem}:host([hide]){transition-duration:var(--mdui-motion-duration-short4);top:-4.625rem}:host([hide][variant=medium]){top:-7.625rem}:host([hide][variant=large]){top:-10.125rem}:host([shrink][variant=large]),:host([shrink][variant=medium]){transition-duration:var(--mdui-motion-duration-short4);height:4rem}`;let cr=class extends Lp(Bn){constructor(){super(...arguments),this.variant="small",this.hide=!1,this.shrink=!1,this.scrolling=!1}get scrollPaddingPosition(){return"top"}get layoutPlacement(){return"top"}async onVariantChange(){this.hasUpdated?this.addEventListener("transitionend",async()=>{await this.scrollBehaviorDefinedController.whenDefined(),this.updateContainerPadding()},{once:!0}):await this.updateComplete,this.titleElements.forEach(t=>{t.variant=this.variant})}async onShrinkChange(){this.hasUpdated||await this.updateComplete,this.titleElements.forEach(t=>{t.shrink=this.shrink})}firstUpdated(t){super.firstUpdated(t),this.addEventListener("transitionend",i=>{i.target===this&&this.emit(this.hide?"hidden":"shown")})}render(){return P``}runScrollNoThreshold(t,i){this.hasScrollBehavior("shrink")&&t&&i<8&&(this.shrink=!1)}runScrollThreshold(t,i){this.hasScrollBehavior("elevate")&&(this.scrolling=!!i),this.hasScrollBehavior("shrink")&&(t||(this.shrink=!0)),this.hasScrollBehavior("hide")&&(!t&&!this.hide&&this.emit("hide",{cancelable:!0})&&(this.hide=!0),t&&this.hide&&this.emit("show",{cancelable:!0})&&(this.hide=!1))}};cr.styles=[Ce,$_];v([R({reflect:!0})],cr.prototype,"variant",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],cr.prototype,"hide",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],cr.prototype,"shrink",void 0);v([R({reflect:!0,attribute:"scroll-behavior"})],cr.prototype,"scrollBehavior",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],cr.prototype,"scrolling",void 0);v([Hi({selector:"mdui-top-app-bar-title",flatten:!0})],cr.prototype,"titleElements",void 0);v([re("variant")],cr.prototype,"onVariantChange",null);v([re("shrink")],cr.prototype,"onShrinkChange",null);cr=v([se("mdui-top-app-bar")],cr);function I_(e){return!!e&&(typeof e=="object"||typeof e=="function")&&typeof e.then=="function"}const Zn={};function D_(e,t){if(et(Zn[e])&&(Zn[e]=[]),et(t))return Zn[e];Zn[e].push(t)}function P_(e){if(et(Zn[e])||!Zn[e].length)return;Zn[e].shift()()}/** + )}:host([disabled]),:host([group-disabled]){cursor:default;pointer-events:none;color:rgba(var(--mdui-color-on-surface),38%);border-color:rgba(var(--mdui-color-on-surface),12%)}:host([loading]){cursor:default;pointer-events:none}:host(:not(.mdui-segmented-button-first)){margin-left:-.0625rem}:host(.mdui-segmented-button-first){border-radius:var(--shape-corner) 0 0 var(--shape-corner)}:host(.mdui-segmented-button-last){border-radius:0 var(--shape-corner) var(--shape-corner) 0}.end-icon,.icon,.selected-icon{display:inline-flex;font-size:1.28571429em}.end-icon .i,.icon .i,.selected-icon .i,::slotted([slot=end-icon]),::slotted([slot=icon]),::slotted([slot=selected-icon]){font-size:inherit}mdui-circular-progress{width:1.125rem;height:1.125rem}:host([disabled]) mdui-circular-progress{opacity:.38}.label{display:inline-flex}.has-icon .label{padding-left:.5rem}.has-end-icon .label{padding-right:.5rem}`;let Yr=class extends st{constructor(){super(...arguments),this.selected=!1,this.invalid=!1,this.groupDisabled=!1,this.key=Pn(),this.rippleRef=ge(),this.hasSlotController=new It(this,"[default]","icon","end-icon")}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return this.isDisabled()||this.loading}get focusDisabled(){return this.isDisabled()||this.loading}render(){const t=wr({button:!0,"has-icon":this.icon||this.selected||this.loading||this.hasSlotController.test("icon"),"has-end-icon":this.endIcon||this.hasSlotController.test("end-icon")});return P`${this.isButton()?this.renderButton({className:t,part:"button",content:this.renderInner()}):this.isDisabled()||this.loading?P`${this.renderInner()}`:this.renderAnchor({className:t,part:"button",content:this.renderInner()})}`}isDisabled(){return this.disabled||this.groupDisabled}renderIcon(){return this.loading?this.renderLoading():this.selected?P`${this.selectedIcon?P``:P``}`:P`${this.icon?P``:Ve}`}renderLabel(){return this.hasSlotController.test("[default]")?P``:Ve}renderEndIcon(){return P`${this.endIcon?P``:Ve}`}renderInner(){return[this.renderIcon(),this.renderLabel(),this.renderEndIcon()]}};Yr.styles=[st.styles,u_];v([R({reflect:!0})],Yr.prototype,"icon",void 0);v([R({reflect:!0,attribute:"end-icon"})],Yr.prototype,"endIcon",void 0);v([R({reflect:!0,attribute:"selected-icon"})],Yr.prototype,"selectedIcon",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Yr.prototype,"selected",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Yr.prototype,"invalid",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"group-disabled"})],Yr.prototype,"groupDisabled",void 0);Yr=v([se("mdui-segmented-button")],Yr);const h_=pe`:host{--shape-corner:var(--mdui-shape-corner-full);position:relative;display:inline-flex;vertical-align:middle;height:2.5rem;font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking);line-height:var(--mdui-typescale-label-large-line-height);color:rgb(var(--mdui-color-on-surface));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}:host([full-width]){display:flex;flex-wrap:nowrap}input,select{position:absolute;width:100%;height:100%;padding:0;opacity:0;pointer-events:none}`;let Ft=class extends Re{constructor(){super(...arguments),this.fullWidth=!1,this.disabled=!1,this.required=!1,this.name="",this.value="",this.defaultValue="",this.selectedKeys=[],this.invalid=!1,this.isInitial=!0,this.inputRef=ge(),this.formController=new Qr(this),this.definedController=new zt(this,{relatedElements:["mdui-segmented-button"]})}get validity(){return this.inputRef.value.validity}get validationMessage(){return this.inputRef.value.validationMessage}get items(){return O(this).find("mdui-segmented-button").get()}get itemsEnabled(){return O(this).find("mdui-segmented-button:not([disabled])").get()}get isSingle(){return this.selects==="single"}get isMultiple(){return this.selects==="multiple"}get isSelectable(){return this.isSingle||this.isMultiple}async onSelectsChange(){this.isSelectable?this.isSingle&&this.setSelectedKeys(this.selectedKeys.slice(0,1)):this.setSelectedKeys([]),await this.onSelectedKeysChange()}async onSelectedKeysChange(){await this.definedController.whenDefined();const t=this.itemsEnabled.filter(r=>this.selectedKeys.includes(r.key)).map(r=>r.value),i=this.isMultiple?t:t[0]||"";this.setValue(i),this.isInitial||this.emit("change")}async onValueChange(){var i;if(this.isInitial=!this.hasUpdated,await this.definedController.whenDefined(),!this.isSelectable){this.updateItems();return}const t=(this.isSingle?[this.value]:pt(this.value)?[this.value]:this.value).filter(r=>r);if(!t.length)this.setSelectedKeys([]);else if(this.isSingle){const r=this.itemsEnabled.find(n=>n.value===t[0]);this.setSelectedKeys(r?[r.key]:[])}else this.isMultiple&&this.setSelectedKeys(this.itemsEnabled.filter(r=>t.includes(r.value)).map(r=>r.key));if(this.updateItems(),!this.isInitial){const r=this.formController.getForm();r&&((i=_t.get(r))!=null&&i.has(this))?(this.invalid=!1,_t.get(r).delete(this)):this.invalid=!this.inputRef.value.checkValidity()}}async onInvalidChange(){await this.definedController.whenDefined(),this.updateItems()}connectedCallback(){super.connectedCallback(),this.value=this.isMultiple&&pt(this.value)?this.value?[this.value]:[]:this.value,this.defaultValue=this.selects==="multiple"?[]:""}checkValidity(){const t=this.inputRef.value.checkValidity();return t||this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),t}reportValidity(){return this.invalid=!this.inputRef.value.reportValidity(),this.invalid&&(this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1})||(this.inputRef.value.blur(),this.inputRef.value.focus())),!this.invalid}setCustomValidity(t){this.inputRef.value.setCustomValidity(t),this.invalid=!this.inputRef.value.checkValidity()}render(){return P`${Ze(this.isSelectable&&this.isSingle,()=>P``)}${Ze(this.isSelectable&&this.isMultiple,()=>P``)}`}selectOne(t){if(this.isMultiple){const i=[...this.selectedKeys];i.includes(t.key)?i.splice(i.indexOf(t.key),1):i.push(t.key),this.setSelectedKeys(i)}this.isSingle&&(this.selectedKeys.includes(t.key)?this.setSelectedKeys([]):this.setSelectedKeys([t.key])),this.isInitial=!1,this.updateItems()}async onClick(t){if(t.button)return;await this.definedController.whenDefined();const r=t.target.closest("mdui-segmented-button");!r||r.disabled||this.isSelectable&&r.value&&this.selectOne(r)}async onInputKeyDown(t){if(["Enter"," "].includes(t.key)){if(t.preventDefault(),await this.definedController.whenDefined(),this.isSingle){const i=t.target;i.checked=!i.checked,this.selectOne(this.itemsEnabled[0]),this.itemsEnabled[0].focus()}this.isMultiple&&(this.selectOne(this.itemsEnabled[0]),this.itemsEnabled[0].focus())}}async onSlotChange(){await this.definedController.whenDefined(),this.updateItems(!0)}setSelectedKeys(t){xo(this.selectedKeys,t)||(this.selectedKeys=t)}setValue(t){this.isSingle?this.value=t:xo(this.value,t)||(this.value=t)}updateItems(t=!1){const i=this.items;i.forEach((r,n)=>{r.invalid=this.invalid,r.groupDisabled=this.disabled,r.selected=this.selectedKeys.includes(r.key),t&&(r.classList.toggle("mdui-segmented-button-first",n===0),r.classList.toggle("mdui-segmented-button-last",n===i.length-1))})}};Ft.styles=[Ce,h_];v([R({type:Boolean,reflect:!0,converter:Y,attribute:"full-width"})],Ft.prototype,"fullWidth",void 0);v([R({reflect:!0})],Ft.prototype,"selects",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Ft.prototype,"disabled",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Ft.prototype,"required",void 0);v([R({reflect:!0})],Ft.prototype,"form",void 0);v([R({reflect:!0})],Ft.prototype,"name",void 0);v([R()],Ft.prototype,"value",void 0);v([On()],Ft.prototype,"defaultValue",void 0);v([_e()],Ft.prototype,"selectedKeys",void 0);v([_e()],Ft.prototype,"invalid",void 0);v([re("selects",!0)],Ft.prototype,"onSelectsChange",null);v([re("selectedKeys",!0)],Ft.prototype,"onSelectedKeysChange",null);v([re("value")],Ft.prototype,"onValueChange",null);v([re("invalid",!0),re("disabled")],Ft.prototype,"onInvalidChange",null);Ft=v([se("mdui-segmented-button-group")],Ft);const f_=new WeakMap;let Mm=0;const Jd=new Map,Nm=new WeakSet,Fm=()=>new Promise(e=>requestAnimationFrame(e)),zm=(e,t)=>{const i=e-t;return i===0?void 0:i},Hm=(e,t)=>{const i=e/t;return i===1?void 0:i},eu={left:(e,t)=>{const i=zm(e,t);return{value:i,transform:i==null||isNaN(i)?void 0:`translateX(${i}px)`}},top:(e,t)=>{const i=zm(e,t);return{value:i,transform:i==null||isNaN(i)?void 0:`translateY(${i}px)`}},width:(e,t)=>{let i;t===0&&(t=1,i={width:"1px"});const r=Hm(e,t);return{value:r,overrideFrom:i,transform:r==null||isNaN(r)?void 0:`scaleX(${r})`}},height:(e,t)=>{let i;t===0&&(t=1,i={height:"1px"});const r=Hm(e,t);return{value:r,overrideFrom:i,transform:r==null||isNaN(r)?void 0:`scaleY(${r})`}}},p_={duration:333,easing:"ease-in-out"},m_=["left","top","width","height","opacity","color","background"],Um=new WeakMap;class g_ extends Op{constructor(t){if(super(t),this.t=!1,this.i=null,this.o=null,this.h=!0,this.shouldLog=!1,t.type===nr.CHILD)throw Error("The `animate` directive must be used in attribute position.");this.createFinished()}createFinished(){var t;(t=this.resolveFinished)==null||t.call(this),this.finished=new Promise(i=>{this.l=i})}async resolveFinished(){var t;(t=this.l)==null||t.call(this),this.l=void 0}render(t){return qe}getController(){return f_.get(this.u)}isDisabled(){var t;return this.options.disabled||((t=this.getController())==null?void 0:t.disabled)}update(t,[i]){var n;const r=this.u===void 0;return r&&(this.u=(n=t.options)==null?void 0:n.host,this.u.addController(this),this.u.updateComplete.then(s=>this.t=!0),this.element=t.element,Um.set(this.element,this)),this.optionsOrCallback=i,(r||typeof i!="function")&&this.p(i),this.render(i)}p(t){t=t??{};const i=this.getController();i!==void 0&&((t={...i.defaultOptions,...t}).keyframeOptions={...i.defaultOptions.keyframeOptions,...t.keyframeOptions}),t.properties??(t.properties=m_),this.options=t}m(){const t={},i=this.element.getBoundingClientRect(),r=getComputedStyle(this.element);return this.options.properties.forEach(n=>{const s=i[n]??(eu[n]?void 0:r[n]),o=Number(s);t[n]=isNaN(o)?s+"":o}),t}v(){let t,i=!0;return this.options.guard&&(t=this.options.guard(),i=((r,n)=>{if(Array.isArray(r)){if(Array.isArray(n)&&n.length===r.length&&r.every((s,o)=>s===n[o]))return!1}else if(n===r)return!1;return!0})(t,this._)),this.h=this.t&&!this.isDisabled()&&!this.isAnimating()&&i&&this.element.isConnected,this.h&&(this._=Array.isArray(t)?Array.from(t):t),this.h}hostUpdate(){typeof this.optionsOrCallback=="function"&&this.p(this.optionsOrCallback()),this.v()&&(this.A=this.m(),this.i=this.i??this.element.parentNode,this.o=this.element.nextSibling)}async hostUpdated(){if(!this.h||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let t;this.prepare(),await Fm;const i=this.O(),r=this.j(this.options.keyframeOptions,i),n=this.m();if(this.A!==void 0){const{from:s,to:o}=this.N(this.A,n,i);this.log("measured",[this.A,n,s,o]),t=this.calculateKeyframes(s,o)}else{const s=Jd.get(this.options.inId);if(s){Jd.delete(this.options.inId);const{from:o,to:a}=this.N(s,n,i);t=this.calculateKeyframes(o,a),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,Mm++,t.forEach(l=>l.zIndex=Mm)}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,r)}resetStyles(){this.P!==void 0&&(this.element.setAttribute("style",this.P??""),this.P=void 0)}commitStyles(){var t,i;this.P=this.element.getAttribute("style"),(t=this.webAnimation)==null||t.commitStyles(),(i=this.webAnimation)==null||i.cancel()}reconnected(){}async disconnected(){var i;if(!this.h||(this.options.id!==void 0&&Jd.set(this.options.id,this.A),this.options.out===void 0))return;if(this.prepare(),await Fm(),(i=this.i)==null?void 0:i.isConnected){const r=this.o&&this.o.parentNode===this.i?this.o:null;if(this.i.insertBefore(this.element,r),this.options.stabilizeOut){const n=this.m();this.log("stabilizing out");const s=this.A.left-n.left,o=this.A.top-n.top;getComputedStyle(this.element).position!=="static"||s===0&&o===0||(this.element.style.position="relative"),s!==0&&(this.element.style.left=s+"px"),o!==0&&(this.element.style.top=o+"px")}}const t=this.j(this.options.keyframeOptions);await this.animate(this.options.out,t),this.element.remove()}prepare(){this.createFinished()}start(){var t,i;(i=(t=this.options).onStart)==null||i.call(t,this)}didFinish(t){var i,r;t&&((r=(i=this.options).onComplete)==null||r.call(i,this)),this.A=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished()}O(){const t=[];for(let i=this.element.parentNode;i;i=i==null?void 0:i.parentNode){const r=Um.get(i);r&&!r.isDisabled()&&r&&t.push(r)}return t}get isHostRendered(){const t=Nm.has(this.u);return t||this.u.updateComplete.then(()=>{Nm.add(this.u)}),t}j(t,i=this.O()){const r={...p_};return i.forEach(n=>Object.assign(r,n.options.keyframeOptions)),Object.assign(r,t),r}N(t,i,r){t={...t},i={...i};const n=r.map(a=>a.animatingProperties).filter(a=>a!==void 0);let s=1,o=1;return n.length>0&&(n.forEach(a=>{a.width&&(s/=a.width),a.height&&(o/=a.height)}),t.left!==void 0&&i.left!==void 0&&(t.left=s*t.left,i.left=s*i.left),t.top!==void 0&&i.top!==void 0&&(t.top=o*t.top,i.top=o*i.top)),{from:t,to:i}}calculateKeyframes(t,i,r=!1){const n={},s={};let o=!1;const a={};for(const l in i){const c=t[l],d=i[l];if(l in eu){const u=eu[l];if(c===void 0||d===void 0)continue;const h=u(c,d);h.transform!==void 0&&(a[l]=h.value,o=!0,n.transform=`${n.transform??""} ${h.transform}`,h.overrideFrom!==void 0&&Object.assign(n,h.overrideFrom))}else c!==d&&c!==void 0&&d!==void 0&&(o=!0,n[l]=c,s[l]=d)}return n.transformOrigin=s.transformOrigin=r?"center center":"top left",this.animatingProperties=a,o?[n,s]:void 0}async animate(t,i=this.options.keyframeOptions){this.start(),this.frames=t;let r=!1;if(!this.isAnimating()&&!this.isDisabled()&&(this.options.onFrames&&(this.frames=t=this.options.onFrames(this),this.log("modified frames",t)),t!==void 0)){this.log("animate",[t,i]),r=!0,this.webAnimation=this.element.animate(t,i);const n=this.getController();n==null||n.add(this);try{await this.webAnimation.finished}catch{}n==null||n.remove(this)}return this.didFinish(r),r}isAnimating(){var t,i;return((t=this.webAnimation)==null?void 0:t.playState)==="running"||((i=this.webAnimation)==null?void 0:i.pending)}log(t,i){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,i)}}const v_=Is(g_);let Zh=class extends nt{render(){return Ut('')}};Zh.styles=Ht;Zh=v([se("mdui-icon-cancel--outlined")],Zh);let Xh=class extends nt{render(){return Ut('')}};Xh.styles=Ht;Xh=v([se("mdui-icon-error")],Xh);let Gh=class extends nt{render(){return Ut('')}};Gh.styles=Ht;Gh=v([se("mdui-icon-visibility-off")],Gh);let Qh=class extends nt{render(){return Ut('')}};Qh.styles=Ht;Qh=v([se("mdui-icon-visibility")],Qh);const y_=pe`:host{display:inline-block;width:100%}:host([disabled]){pointer-events:none}:host([type=hidden]){display:none}.container{position:relative;display:flex;align-items:center;transition:box-shadow var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard);padding:0 1rem}.container.has-icon{padding-left:.75rem}.container.has-end-icon,.container.has-error-icon{padding-right:.75rem}:host([variant=filled]) .container{box-shadow:inset 0 -.0625rem 0 0 rgb(var(--mdui-color-on-surface-variant));background-color:rgb(var(--mdui-color-surface-container-highest));border-radius:var(--mdui-shape-corner-extra-small) var(--mdui-shape-corner-extra-small) 0 0}:host([variant=filled]) .container.invalid,:host([variant=filled]) .container.invalid-style{box-shadow:inset 0 -.0625rem 0 0 rgb(var(--mdui-color-error))}:host([variant=filled]:hover) .container{box-shadow:inset 0 -.0625rem 0 0 rgb(var(--mdui-color-on-surface))}:host([variant=filled]:hover) .container.invalid,:host([variant=filled]:hover) .container.invalid-style{box-shadow:inset 0 -.0625rem 0 0 rgb(var(--mdui-color-on-error-container))}:host([variant=filled][focused-style]) .container,:host([variant=filled][focused]) .container{box-shadow:inset 0 -.125rem 0 0 rgb(var(--mdui-color-primary))}:host([variant=filled][focused-style]) .container.invalid,:host([variant=filled][focused-style]) .container.invalid-style,:host([variant=filled][focused]) .container.invalid,:host([variant=filled][focused]) .container.invalid-style{box-shadow:inset 0 -.125rem 0 0 rgb(var(--mdui-color-error))}:host([variant=filled][disabled]) .container{box-shadow:inset 0 -.0625rem 0 0 rgba(var(--mdui-color-on-surface),38%);background-color:rgba(var(--mdui-color-on-surface),4%)}:host([variant=outlined]) .container{box-shadow:inset 0 0 0 .0625rem rgb(var(--mdui-color-outline));border-radius:var(--mdui-shape-corner-extra-small)}:host([variant=outlined]) .container.invalid,:host([variant=outlined]) .container.invalid-style{box-shadow:inset 0 0 0 .0625rem rgb(var(--mdui-color-error))}:host([variant=outlined]:hover) .container{box-shadow:inset 0 0 0 .0625rem rgb(var(--mdui-color-on-surface))}:host([variant=outlined]:hover) .container.invalid,:host([variant=outlined]:hover) .container.invalid-style{box-shadow:inset 0 0 0 .0625rem rgb(var(--mdui-color-on-error-container))}:host([variant=outlined][focused-style]) .container,:host([variant=outlined][focused]) .container{box-shadow:inset 0 0 0 .125rem rgb(var(--mdui-color-primary))}:host([variant=outlined][focused-style]) .container.invalid,:host([variant=outlined][focused-style]) .container.invalid-style,:host([variant=outlined][focused]) .container.invalid,:host([variant=outlined][focused]) .container.invalid-style{box-shadow:inset 0 0 0 .125rem rgb(var(--mdui-color-error))}:host([variant=outlined][disabled]) .container{box-shadow:inset 0 0 0 .125rem rgba(var(--mdui-color-on-surface),12%)}.icon,.prefix,.right-icon,.suffix{display:flex;-webkit-user-select:none;user-select:none;color:rgb(var(--mdui-color-on-surface-variant))}:host([disabled]) .icon,:host([disabled]) .prefix,:host([disabled]) .right-icon,:host([disabled]) .suffix{color:rgba(var(--mdui-color-on-surface),38%)}.invalid .right-icon,.invalid .suffix,.invalid-style .right-icon,.invalid-style .suffix{color:rgb(var(--mdui-color-error))}:host(:hover) .invalid .right-icon,:host(:hover) .invalid .suffix,:host(:hover) .invalid-style .right-icon,:host(:hover) .invalid-style .suffix{color:rgb(var(--mdui-color-on-error-container))}:host([focused-style]) .invalid .right-icon,:host([focused-style]) .invalid .suffix,:host([focused-style]) .invalid-style .right-icon,:host([focused-style]) .invalid-style .suffix,:host([focused]) .invalid .right-icon,:host([focused]) .invalid .suffix,:host([focused]) .invalid-style .right-icon,:host([focused]) .invalid-style .suffix{color:rgb(var(--mdui-color-error))}.icon,.right-icon{font-size:1.5rem}.icon mdui-button-icon,.right-icon mdui-button-icon,::slotted(mdui-button-icon[slot]){margin-left:-.5rem;margin-right:-.5rem}.icon .i,.right-icon .i,::slotted([slot$=icon]){font-size:inherit}.has-icon .icon{margin-right:1rem}.has-end-icon .end-icon,.right-icon:not(.end-icon){margin-left:1rem}.prefix,.suffix{display:none;font-size:var(--mdui-typescale-body-large-size);font-weight:var(--mdui-typescale-body-large-weight);letter-spacing:var(--mdui-typescale-body-large-tracking);line-height:var(--mdui-typescale-body-large-line-height)}:host([variant=filled][label]) .prefix,:host([variant=filled][label]) .suffix{padding-top:1rem}.has-value .prefix,.has-value .suffix,:host([focused-style]) .prefix,:host([focused-style]) .suffix,:host([focused]) .prefix,:host([focused]) .suffix{display:flex}.prefix{padding-right:.125rem}.suffix{padding-left:.125rem}.input-container{width:100%}.label{position:absolute;pointer-events:none;max-width:calc(100% - 1rem);display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:1;top:1rem;color:rgb(var(--mdui-color-on-surface-variant));font-size:var(--mdui-typescale-body-large-size);font-weight:var(--mdui-typescale-body-large-weight);letter-spacing:var(--mdui-typescale-body-large-tracking);line-height:var(--mdui-typescale-body-large-line-height)}.invalid .label,.invalid-style .label{color:rgb(var(--mdui-color-error))}:host([variant=outlined]) .label{padding:0 .25rem;margin:0 -.25rem}:host([variant=outlined]:hover) .label{color:rgb(var(--mdui-color-on-surface))}:host([variant=filled]:hover) .invalid .label,:host([variant=filled]:hover) .invalid-style .label,:host([variant=outlined]:hover) .invalid .label,:host([variant=outlined]:hover) .invalid-style .label{color:rgb(var(--mdui-color-on-error-container))}:host([variant=filled][focused-style]) .label,:host([variant=filled][focused]) .label,:host([variant=outlined][focused-style]) .label,:host([variant=outlined][focused]) .label{color:rgb(var(--mdui-color-primary))}:host([variant=filled]) .has-value .label,:host([variant=filled][focused-style]) .label,:host([variant=filled][focused]) .label,:host([variant=filled][type=date]) .label,:host([variant=filled][type=datetime-local]) .label,:host([variant=filled][type=month]) .label,:host([variant=filled][type=time]) .label,:host([variant=filled][type=week]) .label{font-size:var(--mdui-typescale-body-small-size);font-weight:var(--mdui-typescale-body-small-weight);letter-spacing:var(--mdui-typescale-body-small-tracking);line-height:var(--mdui-typescale-body-small-line-height);top:.25rem}:host([variant=outlined]) .has-value .label,:host([variant=outlined][focused-style]) .label,:host([variant=outlined][focused]) .label,:host([variant=outlined][type=date]) .label,:host([variant=outlined][type=datetime-local]) .label,:host([variant=outlined][type=month]) .label,:host([variant=outlined][type=time]) .label,:host([variant=outlined][type=week]) .label{font-size:var(--mdui-typescale-body-small-size);font-weight:var(--mdui-typescale-body-small-weight);letter-spacing:var(--mdui-typescale-body-small-tracking);line-height:var(--mdui-typescale-body-small-line-height);top:-.5rem;left:.75rem;opacity:0;background-color:rgb(var(--mdui-color-background))}:host([variant=filled][focused-style]) .invalid .label,:host([variant=filled][focused-style]) .invalid-style .label,:host([variant=filled][focused]) .invalid .label,:host([variant=filled][focused]) .invalid-style .label,:host([variant=outlined][focused-style]) .invalid .label,:host([variant=outlined][focused-style]) .invalid-style .label,:host([variant=outlined][focused]) .invalid .label,:host([variant=outlined][focused]) .invalid-style .label{color:rgb(var(--mdui-color-error))}:host([variant=filled][disabled]) .label,:host([variant=outlined][disabled]) .label{color:rgba(var(--mdui-color-on-surface),38%)}.input{display:flex;flex-wrap:wrap;width:100%;border:none;outline:0;background:0 0;-webkit-appearance:none;appearance:none;resize:none;cursor:inherit;font-family:inherit;padding:1rem 0;font-size:var(--mdui-typescale-body-large-size);font-weight:var(--mdui-typescale-body-large-weight);letter-spacing:var(--mdui-typescale-body-large-tracking);line-height:var(--mdui-typescale-body-large-line-height);color:rgb(var(--mdui-color-on-surface));caret-color:rgb(var(--mdui-color-primary))}.input.hide-input{opacity:0;height:0;padding:0!important;overflow:hidden}.input::placeholder{color:rgb(var(--mdui-color-on-surface-variant))}.invalid .input,.invalid-style .input{caret-color:rgb(var(--mdui-color-error))}:host([disabled]) .input{color:rgba(var(--mdui-color-on-surface),38%)}:host([end-aligned]) .input{text-align:right}:host([variant=filled]) .label+.input{padding:1.5rem 0 .5rem 0}.supporting{display:flex;justify-content:space-between;padding:.25rem 1rem;color:rgb(var(--mdui-color-on-surface-variant))}.supporting.invalid,.supporting.invalid-style{color:rgb(var(--mdui-color-error))}.helper{display:block;opacity:1;transition:opacity var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear);font-size:var(--mdui-typescale-body-small-size);font-weight:var(--mdui-typescale-body-small-weight);letter-spacing:var(--mdui-typescale-body-small-tracking);line-height:var(--mdui-typescale-body-small-line-height)}:host([disabled]) .helper{color:rgba(var(--mdui-color-on-surface),38%)}:host([helper-on-focus]) .helper{opacity:0}:host([helper-on-focus][focused-style]) .helper,:host([helper-on-focus][focused]) .helper{opacity:1}.error{font-size:var(--mdui-typescale-body-small-size);font-weight:var(--mdui-typescale-body-small-weight);letter-spacing:var(--mdui-typescale-body-small-tracking);line-height:var(--mdui-typescale-body-small-line-height)}.counter{flex-wrap:nowrap;padding-left:1rem;font-size:var(--mdui-typescale-body-small-size);font-weight:var(--mdui-typescale-body-small-weight);letter-spacing:var(--mdui-typescale-body-small-tracking);line-height:var(--mdui-typescale-body-small-line-height)}::-ms-reveal{display:none}.is-firefox .input[type=date],.is-firefox .input[type=datetime-local],.is-firefox .input[type=time]{-webkit-clip-path:inset(0 2em 0 0);clip-path:inset(0 2em 0 0)}.input[type=number]::-webkit-inner-spin-button,.input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;display:none}.input[type=number]{-moz-appearance:textfield}.input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none}`;let le=class extends Ui(Re){constructor(){super(...arguments),this.variant="filled",this.type="text",this.name="",this.value="",this.defaultValue="",this.helperOnFocus=!1,this.clearable=!1,this.endAligned=!1,this.readonly=!1,this.disabled=!1,this.required=!1,this.autosize=!1,this.counter=!1,this.togglePassword=!1,this.spellcheck=!1,this.invalid=!1,this.invalidStyle=!1,this.focusedStyle=!1,this.isPasswordVisible=!1,this.hasValue=!1,this.error="",this.inputRef=ge(),this.formController=new Qr(this),this.hasSlotController=new It(this,"icon","end-icon","helper","input"),this.readonlyButClearable=!1}get validity(){return this.inputRef.value.validity}get validationMessage(){return this.inputRef.value.validationMessage}get valueAsNumber(){var t;return((t=this.inputRef.value)==null?void 0:t.valueAsNumber)??parseFloat(this.value)}set valueAsNumber(t){const i=document.createElement("input");i.type="number",i.valueAsNumber=t,this.value=i.value}get focusElement(){return this.inputRef.value}get focusDisabled(){return this.disabled}get isFocusedStyle(){return this.focused||this.focusedStyle}get isTextarea(){return this.rows&&this.rows>1||this.autosize}onDisabledChange(){this.inputRef.value.disabled=this.disabled,this.invalid=!this.inputRef.value.checkValidity()}async onValueChange(){var t;if(this.hasValue=!!this.value,this.hasUpdated){await this.updateComplete;const i=this.formController.getForm();i&&((t=_t.get(i))!=null&&t.has(this))?(this.invalid=!1,_t.get(i).delete(this)):this.invalid=!this.inputRef.value.checkValidity()}}onRowsChange(){this.setTextareaHeight()}async onMaxRowsChange(){if(!this.autosize)return;this.hasUpdated||await this.updateComplete;const t=O(this.inputRef.value);t.css("max-height",parseFloat(t.css("line-height"))*(this.maxRows??1)+parseFloat(t.css("padding-top"))+parseFloat(t.css("padding-bottom")))}async onMinRowsChange(){if(!this.autosize)return;this.hasUpdated||await this.updateComplete;const t=O(this.inputRef.value);t.css("min-height",parseFloat(t.css("line-height"))*(this.minRows??1)+parseFloat(t.css("padding-top"))+parseFloat(t.css("padding-bottom")))}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.observeResize)==null||t.unobserve(),uc(this)}select(){this.inputRef.value.select()}setSelectionRange(t,i,r="none"){this.inputRef.value.setSelectionRange(t,i,r)}setRangeText(t,i,r,n="preserve"){this.inputRef.value.setRangeText(t,i,r,n),this.value!==this.inputRef.value.value&&(this.value=this.inputRef.value.value,this.setTextareaHeight(),this.emit("input"),this.emit("change"))}checkValidity(){const t=this.inputRef.value.checkValidity();return t||this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),t}reportValidity(){return this.invalid=!this.inputRef.value.reportValidity(),this.invalid&&(this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),this.focus()),!this.invalid}setCustomValidity(t){this.setCustomValidityInternal(t),uc(this)}firstUpdated(t){super.firstUpdated(t),this.setTextareaHeight(),this.observeResize=Ds(this.inputRef.value,()=>this.setTextareaHeight())}render(){const t=!!this.icon||this.hasSlotController.test("icon"),i=!!this.endIcon||this.hasSlotController.test("end-icon"),r=this.invalid||this.invalidStyle,n=!!this.helper||this.hasSlotController.test("helper"),s=r&&!!(this.error||this.inputRef.value.validationMessage),o=this.counter&&!!this.maxlength,a=this.hasSlotController.test("input"),l={invalid:this.invalid,"invalid-style":this.invalidStyle},c=ht({container:!0,"has-value":this.hasValue,"has-icon":t,"has-end-icon":i,"has-error-icon":r,"is-firefox":navigator.userAgent.includes("Firefox"),...l});return P`
${this.renderPrefix()}
${this.renderLabel()} ${this.isTextarea?this.renderTextArea(a):this.renderInput(a)} ${Ze(a,()=>P``)}
${this.renderClearButton()}${this.renderTogglePasswordButton()} ${this.renderSuffix(r)}
${Ze(s||n||o,()=>P`
${this.renderHelper(s,n)} ${this.renderCounter(o)}
`)}`}setCustomValidityInternal(t){this.inputRef.value.setCustomValidity(t),this.invalid=!this.inputRef.value.checkValidity(),this.requestUpdate()}onChange(){this.value=this.inputRef.value.value,this.isTextarea&&this.setTextareaHeight(),this.emit("change")}onClear(t){this.value="",this.emit("clear"),this.emit("input"),this.emit("change"),this.focus(),t.stopPropagation()}onInput(){this.value=this.inputRef.value.value,this.isTextarea&&this.setTextareaHeight(),this.emit("input")}onInvalid(t){t.preventDefault()}onKeyDown(t){const i=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey;t.key==="Enter"&&!i&&setTimeout(()=>{t.defaultPrevented||this.formController.submit()})}onTextAreaKeyUp(){if(this.pattern){const t=new RegExp(this.pattern);this.value&&!this.value.match(t)?(this.setCustomValidityInternal(this.getPatternErrorMsg()),Nw(this,()=>{this.setCustomValidityInternal(this.getPatternErrorMsg())})):(this.setCustomValidityInternal(""),uc(this))}}onTogglePassword(){this.isPasswordVisible=!this.isPasswordVisible}getPatternErrorMsg(){return Mw("Please match the requested format.")}setTextareaHeight(){this.autosize?(this.inputRef.value.style.height="auto",this.inputRef.value.style.height=`${this.inputRef.value.scrollHeight}px`):this.inputRef.value.style.height=void 0}renderLabel(){return this.label?P``:Ve}renderPrefix(){return P`${this.icon?P``:Ve}${this.prefix}`}renderSuffix(t){return P`${this.suffix}${t?P`${this.errorIcon?P``:P``}`:P`${this.endIcon?P``:Ve}`}`}renderClearButton(){const t=this.clearable&&!this.disabled&&(!this.readonly||this.readonlyButClearable)&&(typeof this.value=="number"||this.value.length>0);return Ze(t,()=>P`${this.clearIcon?P``:P``}`)}renderTogglePasswordButton(){const t=this.type==="password"&&this.togglePassword&&!this.disabled;return Ze(t,()=>P`${this.isPasswordVisible?P`${this.showPasswordIcon?P``:P``}`:P`${this.hidePasswordIcon?P``:P``}`}`)}renderInput(t){return P``}renderTextArea(t){return P``}renderHelper(t,i){return t?P`
${this.error||this.inputRef.value.validationMessage}
`:i?P`${this.helper}`:P``}renderCounter(t){return t?P`
${this.value.length}/${this.maxlength}
`:Ve}};le.styles=[Ce,y_];v([R({reflect:!0})],le.prototype,"variant",void 0);v([R({reflect:!0})],le.prototype,"type",void 0);v([R({reflect:!0})],le.prototype,"name",void 0);v([R()],le.prototype,"value",void 0);v([On()],le.prototype,"defaultValue",void 0);v([R({reflect:!0})],le.prototype,"label",void 0);v([R({reflect:!0})],le.prototype,"placeholder",void 0);v([R({reflect:!0})],le.prototype,"helper",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"helper-on-focus"})],le.prototype,"helperOnFocus",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],le.prototype,"clearable",void 0);v([R({reflect:!0,attribute:"clear-icon"})],le.prototype,"clearIcon",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"end-aligned"})],le.prototype,"endAligned",void 0);v([R({reflect:!0})],le.prototype,"prefix",void 0);v([R({reflect:!0})],le.prototype,"suffix",void 0);v([R({reflect:!0})],le.prototype,"icon",void 0);v([R({reflect:!0,attribute:"end-icon"})],le.prototype,"endIcon",void 0);v([R({reflect:!0,attribute:"error-icon"})],le.prototype,"errorIcon",void 0);v([R({reflect:!0})],le.prototype,"form",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],le.prototype,"readonly",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],le.prototype,"disabled",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],le.prototype,"required",void 0);v([R({type:Number,reflect:!0})],le.prototype,"rows",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],le.prototype,"autosize",void 0);v([R({type:Number,reflect:!0,attribute:"min-rows"})],le.prototype,"minRows",void 0);v([R({type:Number,reflect:!0,attribute:"max-rows"})],le.prototype,"maxRows",void 0);v([R({type:Number,reflect:!0})],le.prototype,"minlength",void 0);v([R({type:Number,reflect:!0})],le.prototype,"maxlength",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],le.prototype,"counter",void 0);v([R({type:Number,reflect:!0})],le.prototype,"min",void 0);v([R({type:Number,reflect:!0})],le.prototype,"max",void 0);v([R({type:Number,reflect:!0})],le.prototype,"step",void 0);v([R({reflect:!0})],le.prototype,"pattern",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"toggle-password"})],le.prototype,"togglePassword",void 0);v([R({reflect:!0,attribute:"show-password-icon"})],le.prototype,"showPasswordIcon",void 0);v([R({reflect:!0,attribute:"hide-password-icon"})],le.prototype,"hidePasswordIcon",void 0);v([R({reflect:!0})],le.prototype,"autocapitalize",void 0);v([R({reflect:!0})],le.prototype,"autocorrect",void 0);v([R({reflect:!0})],le.prototype,"autocomplete",void 0);v([R({reflect:!0})],le.prototype,"enterkeyhint",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],le.prototype,"spellcheck",void 0);v([R({reflect:!0})],le.prototype,"inputmode",void 0);v([_e()],le.prototype,"invalid",void 0);v([_e()],le.prototype,"invalidStyle",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"focused-style"})],le.prototype,"focusedStyle",void 0);v([_e()],le.prototype,"isPasswordVisible",void 0);v([_e()],le.prototype,"hasValue",void 0);v([_e()],le.prototype,"error",void 0);v([re("disabled",!0)],le.prototype,"onDisabledChange",null);v([re("value")],le.prototype,"onValueChange",null);v([re("rows",!0)],le.prototype,"onRowsChange",null);v([re("maxRows")],le.prototype,"onMaxRowsChange",null);v([re("minRows")],le.prototype,"onMinRowsChange",null);le=v([se("mdui-text-field")],le);const b_=pe`:host{display:inline-block;width:100%}.hidden-input{display:none}.text-field{cursor:pointer}.chips{display:flex;flex-wrap:wrap;margin:-.5rem -.25rem;min-height:2.5rem}:host([variant=filled][label]) .chips{margin:0 -.25rem -1rem -.25rem}.chip{margin:.25rem}mdui-menu{max-width:none}`;let Ye=class extends Ui(Re){constructor(){super(...arguments),this.variant="filled",this.multiple=!1,this.name="",this.value="",this.defaultValue="",this.clearable=!1,this.placement="auto",this.endAligned=!1,this.readonly=!1,this.disabled=!1,this.required=!1,this.invalid=!1,this.menuRef=ge(),this.textFieldRef=ge(),this.hiddenInputRef=ge(),this.formController=new Qr(this),this.hasSlotController=new It(this,"icon","end-icon","error-icon","prefix","suffix","clear-button","clear-icon","helper"),this.definedController=new zt(this,{relatedElements:["mdui-menu-item"]})}get validity(){return this.hiddenInputRef.value.validity}get validationMessage(){return this.hiddenInputRef.value.validationMessage}get focusElement(){return this.textFieldRef.value}get focusDisabled(){return this.disabled}connectedCallback(){super.connectedCallback(),this.value=this.multiple&&pt(this.value)?this.value?[this.value]:[]:this.value,this.defaultValue=this.multiple?[]:"",this.definedController.whenDefined().then(()=>{this.requestUpdate()})}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.observeResize)==null||t.unobserve()}checkValidity(){const t=this.hiddenInputRef.value.checkValidity();return t||this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),t}reportValidity(){return this.invalid=!this.hiddenInputRef.value.reportValidity(),this.invalid&&(this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),this.focus()),!this.invalid}setCustomValidity(t){this.hiddenInputRef.value.setCustomValidity(t),this.invalid=!this.hiddenInputRef.value.checkValidity()}firstUpdated(t){super.firstUpdated(t),this.observeResize=Ds(this.textFieldRef.value,()=>this.resizeMenu())}render(){var i;const t=this.multiple?!!this.value.length:!!this.value;return P`${this.multiple?P``:P``}`${r}:text-field__${r}`).join(",")}" readonly="readonly" .readonlyButClearable="${!0}" .variant="${this.variant}" .name="${this.name}" .value="${this.multiple?this.value.length?" ":"":this.getMenuItemLabelByValue(this.value)}" .label="${this.label}" .placeholder="${this.placeholder}" .helper="${this.helper}" .error="${(i=this.hiddenInputRef.value)==null?void 0:i.validationMessage}" .clearable="${this.clearable}" .clearIcon="${this.clearIcon}" .endAligned="${this.endAligned}" .prefix="${this.prefix}" .suffix="${this.suffix}" .icon="${this.icon}" .endIcon="${this.endIcon}" .errorIcon="${this.errorIcon}" .form="${this.form}" .disabled="${this.disabled}" .required="${this.required}" .invalidStyle="${this.invalid}" @clear="${this.onClear}" @change="${r=>r.stopPropagation()}" @keydown="${this.onTextFieldKeyDown}">${so(["icon","end-icon","error-icon","prefix","suffix","clear-button","clear-icon","helper"],r=>this.hasSlotController.test(r)?P``:qe)} ${Ze(this.multiple&&this.value.length,()=>P`
${so(this.value,r=>P``${n}:chip__${n}`).join(",")}" variant="input" deletable tabindex="-1" @delete="${()=>this.onDeleteOneValue(r)}">${this.getMenuItemLabelByValue(r)}`)}
`)}
`}getMenuItemLabelByValue(t){var i;return this.menuItems.length&&((i=this.menuItems.find(r=>r.value===t))==null?void 0:i.textContent)||t}resizeMenu(){this.menuRef.value.style.width=`${this.textFieldRef.value.clientWidth}px`}async onDropdownOpen(){this.textFieldRef.value.focusedStyle=!0}onDropdownClose(){var t;this.textFieldRef.value.focusedStyle=!1,(this.contains(document.activeElement)||this.contains(((t=document.activeElement)==null?void 0:t.assignedSlot)??null))&&setTimeout(()=>{this.focus()})}async onValueChange(t){var n;const i=t.target;this.value=this.multiple?i.value.map(s=>s??""):i.value??"",await this.updateComplete;const r=this.formController.getForm();r&&((n=_t.get(r))!=null&&n.has(this))?(this.invalid=!1,_t.get(r).delete(this)):this.invalid=!this.hiddenInputRef.value.checkValidity()}onDeleteOneValue(t){const i=[...this.value];i.includes(t)&&i.splice(i.indexOf(t),1),this.value=i}onClear(){this.value=this.multiple?[]:""}onTextFieldKeyDown(t){t.key==="Enter"&&(t.preventDefault(),this.textFieldRef.value.click())}};Ye.styles=[Ce,b_];v([R({reflect:!0})],Ye.prototype,"variant",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Ye.prototype,"multiple",void 0);v([R({reflect:!0})],Ye.prototype,"name",void 0);v([R()],Ye.prototype,"value",void 0);v([On()],Ye.prototype,"defaultValue",void 0);v([R({reflect:!0})],Ye.prototype,"label",void 0);v([R({reflect:!0})],Ye.prototype,"placeholder",void 0);v([R({reflect:!0})],Ye.prototype,"helper",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Ye.prototype,"clearable",void 0);v([R({reflect:!0,attribute:"clear-icon"})],Ye.prototype,"clearIcon",void 0);v([R({reflect:!0})],Ye.prototype,"placement",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"end-aligned"})],Ye.prototype,"endAligned",void 0);v([R({reflect:!0})],Ye.prototype,"prefix",void 0);v([R({reflect:!0})],Ye.prototype,"suffix",void 0);v([R({reflect:!0})],Ye.prototype,"icon",void 0);v([R({reflect:!0,attribute:"end-icon"})],Ye.prototype,"endIcon",void 0);v([R({reflect:!0,attribute:"error-icon"})],Ye.prototype,"errorIcon",void 0);v([R({reflect:!0})],Ye.prototype,"form",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Ye.prototype,"readonly",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Ye.prototype,"disabled",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Ye.prototype,"required",void 0);v([_e()],Ye.prototype,"invalid",void 0);v([Hi({flatten:!0,selector:"mdui-menu-item"})],Ye.prototype,"menuItems",void 0);Ye=v([se("mdui-select")],Ye);const w_=pe`.track-active{left:-.125rem;border-radius:var(--mdui-shape-corner-full) 0 0 var(--mdui-shape-corner-full)}`;let To=class extends Vt{constructor(){super(...arguments),this.value=0,this.defaultValue=0,this.rippleRef=ge(),this.handleRef=ge(),this.formController=new Qr(this)}get rippleElement(){return this.rippleRef.value}async onValueChange(){var i;this.value=this.fixValue(this.value);const t=this.formController.getForm();t&&((i=_t.get(t))!=null&&i.has(this))?(this.invalid=!1,_t.get(t).delete(this)):(await this.updateComplete,this.invalid=!this.inputRef.value.checkValidity()),this.updateStyle()}connectedCallback(){super.connectedCallback(),this.value=this.fixValue(this.value)}firstUpdated(t){super.firstUpdated(t);const i=()=>{this.disabled||(this.labelVisible=!0)},r=()=>{this.disabled||(this.labelVisible=!1)};this.addEventListener("touchstart",i),this.addEventListener("mousedown",i),this.addEventListener("touchend",r),this.addEventListener("mouseup",r),this.updateStyle()}render(){return P``}updateStyle(){const t=(this.value-this.min)/(this.max-this.min)*100;this.trackActiveRef.value.style.width=`${t}%`,this.handleRef.value.style.left=`${t}%`}onInput(){this.value=parseFloat(this.inputRef.value.value),this.updateStyle()}};To.styles=[Vt.styles,w_];v([R({type:Number})],To.prototype,"value",void 0);v([On()],To.prototype,"defaultValue",void 0);v([re("value",!0)],To.prototype,"onValueChange",null);To=v([se("mdui-slider")],To);const __=pe`:host{--shape-corner:var(--mdui-shape-corner-extra-small);--z-index:2400;position:fixed;z-index:var(--z-index);display:none;align-items:center;flex-wrap:wrap;border-radius:var(--shape-corner);min-width:20rem;max-width:36rem;padding:.25rem 0;box-shadow:var(--mdui-elevation-level3);background-color:rgb(var(--mdui-color-inverse-surface));color:rgb(var(--mdui-color-inverse-on-surface));font-size:var(--mdui-typescale-body-medium-size);font-weight:var(--mdui-typescale-body-medium-weight);letter-spacing:var(--mdui-typescale-body-medium-tracking);line-height:var(--mdui-typescale-body-medium-line-height)}:host([placement^=top]){transform-origin:top;top:1rem}:host([placement^=bottom]){transform-origin:bottom;bottom:1rem}:host([placement=bottom-start]),:host([placement=top-start]){left:1rem}:host([placement=bottom-end]),:host([placement=top-end]){right:1rem}.message{display:block;margin:.625rem 1rem}:host([message-line='1']) .message{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host([message-line='2']) .message{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:2}.action-group{display:flex;align-items:center;margin-left:auto;padding-right:.5rem}.action,.close-button{display:inline-flex;align-items:center;justify-content:center}.action{color:rgb(var(--mdui-color-inverse-primary));font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking)}.action mdui-button,::slotted(mdui-button[slot=action][variant=outlined]),::slotted(mdui-button[slot=action][variant=text]){color:inherit;font-size:inherit;font-weight:inherit;letter-spacing:inherit;--mdui-comp-ripple-state-layer-color:var(--mdui-color-inverse-primary)}.action mdui-button::part(button){padding:0 .5rem}.close-button{margin:0 -.25rem 0 .25rem;font-size:1.5rem;color:rgb(var(--mdui-color-inverse-on-surface))}.close-button mdui-button-icon,::slotted(mdui-button-icon[slot=close-button][variant=outlined]),::slotted(mdui-button-icon[slot=close-button][variant=standard]){font-size:inherit;color:inherit;--mdui-comp-ripple-state-layer-color:var(--mdui-color-inverse-on-surface)}.close-button .i,::slotted([slot=close-icon]){font-size:inherit}`;let Ci=class extends Re{constructor(){super(),this.open=!1,this.placement="bottom",this.actionLoading=!1,this.closeable=!1,this.autoCloseDelay=5e3,this.closeOnOutsideClick=!1,this.onDocumentClick=this.onDocumentClick.bind(this)}async onOpenChange(){const t=rb().down("sm"),i=["top","bottom"].includes(this.placement),r=Gt(this,"linear"),n=Gt(this,"emphasized-decelerate"),s=Array.from(this.renderRoot.querySelectorAll(".message, .action-group")),o=t?{left:"1rem",right:"1rem",minWidth:0}:i?{left:"50%"}:{};if(this.open){const a=this.hasUpdated;if(a||await this.updateComplete,a&&!this.emit("open",{cancelable:!0}))return;window.clearTimeout(this.closeTimeout),this.autoCloseDelay&&(this.closeTimeout=window.setTimeout(()=>{this.open=!1},this.autoCloseDelay)),this.style.display="flex",await Promise.all([yi(this),...s.map(d=>yi(d))]);const l=Qi(this,"medium4"),c=d=>{const u=`scaleY(${d==="start"?0:1})`;return t?{transform:u}:{transform:[u,i?"translateX(-50%)":""].filter(h=>h).join(" ")}};await Promise.all([We(this,[{...c("start"),...o},{...c("end"),...o}],{duration:a?l:0,easing:n,fill:"forwards"}),We(this,[{opacity:0},{opacity:1,offset:.5},{opacity:1}],{duration:a?l:0,easing:r,fill:"forwards"}),...s.map(d=>We(d,[{opacity:0},{opacity:0,offset:.2},{opacity:1,offset:.8},{opacity:1}],{duration:a?l:0,easing:r}))]),a&&this.emit("opened");return}if(!this.open&&this.hasUpdated){if(!this.emit("close",{cancelable:!0}))return;window.clearTimeout(this.closeTimeout),await Promise.all([yi(this),...s.map(d=>yi(d))]);const l=Qi(this,"short4"),c=d=>{const h={opacity:d==="start"?1:0};return!t&&i&&Object.assign(h,{transform:"translateX(-50%)"}),h};await Promise.all([We(this,[{...c("start"),...o},{...c("end"),...o}],{duration:l,easing:r,fill:"forwards"}),...s.map(d=>We(d,[{opacity:1},{opacity:0,offset:.75},{opacity:0}],{duration:l,easing:r}))]),this.style.display="none",this.emit("closed");return}}connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.onDocumentClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.onDocumentClick)}render(){return P`
${this.action?P`${this.action}`:Ve}${Ze(this.closeable,()=>P`${this.closeIcon?P``:P``}`)}
`}onDocumentClick(t){if(!this.open||!this.closeOnOutsideClick)return;const i=t.target;!this.contains(i)&&this!==i&&(this.open=!1)}onActionClick(t){t.stopPropagation(),this.emit("action-click")}onCloseClick(){this.open=!1}};Ci.styles=[Ce,__];v([R({type:Boolean,reflect:!0,converter:Y})],Ci.prototype,"open",void 0);v([R({reflect:!0})],Ci.prototype,"placement",void 0);v([R({reflect:!0,attribute:"action"})],Ci.prototype,"action",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"action-loading"})],Ci.prototype,"actionLoading",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Ci.prototype,"closeable",void 0);v([R({reflect:!0,attribute:"close-icon"})],Ci.prototype,"closeIcon",void 0);v([R({type:Number,reflect:!0,attribute:"message-line"})],Ci.prototype,"messageLine",void 0);v([R({type:Number,reflect:!0,attribute:"auto-close-delay"})],Ci.prototype,"autoCloseDelay",void 0);v([R({type:Boolean,reflect:!0,attribute:"close-on-outside-click",converter:Y})],Ci.prototype,"closeOnOutsideClick",void 0);v([re("open")],Ci.prototype,"onOpenChange",null);Ci=v([se("mdui-snackbar")],Ci);const k_=pe`:host{--shape-corner:var(--mdui-shape-corner-full);--shape-corner-thumb:var(--mdui-shape-corner-full);position:relative;display:inline-block;cursor:pointer;-webkit-tap-highlight-color:transparent;height:2.5rem}:host([disabled]){cursor:default;pointer-events:none}label{display:inline-flex;align-items:center;width:100%;height:100%;white-space:nowrap;cursor:inherit;-webkit-user-select:none;user-select:none;touch-action:manipulation;zoom:1;-webkit-user-drag:none}.track{position:relative;display:flex;align-items:center;border-radius:var(--shape-corner);transition-property:background-color,border-width;transition-duration:var(--mdui-motion-duration-short4);transition-timing-function:var(--mdui-motion-easing-standard);height:2rem;width:3.25rem;border:.125rem solid rgb(var(--mdui-color-outline));background-color:rgb(var(--mdui-color-surface-container-highest))}:host([checked]) .track{background-color:rgb(var(--mdui-color-primary));border-width:0}.invalid .track{background-color:rgb(var(--mdui-color-error-container));border-color:rgb(var(--mdui-color-error))}:host([disabled]) .track{background-color:rgba(var(--mdui-color-surface-container-highest),.12);border-color:rgba(var(--mdui-color-on-surface),.12)}:host([disabled][checked]) .track{background-color:rgba(var(--mdui-color-on-surface),.12)}input{position:absolute;padding:0;opacity:0;pointer-events:none;width:1.25rem;height:1.25rem;margin:0 0 0 .625rem}mdui-ripple{border-radius:50%;transition-property:left,top;transition-duration:var(--mdui-motion-duration-short4);transition-timing-function:var(--mdui-motion-easing-standard);width:2.5rem;height:2.5rem}.thumb{position:absolute;display:flex;align-items:center;justify-content:center;border-radius:var(--shape-corner-thumb);transition-property:width,height,left,background-color;transition-duration:var(--mdui-motion-duration-short4);transition-timing-function:var(--mdui-motion-easing-standard);height:1rem;width:1rem;left:.375rem;background-color:rgb(var(--mdui-color-outline));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}.thumb mdui-ripple{left:-.75rem;top:-.75rem}.has-unchecked-icon .thumb{height:1.5rem;width:1.5rem;left:.125rem}.has-unchecked-icon .thumb mdui-ripple{left:-.5rem;top:-.5rem}:host([focus-visible]) .thumb,:host([hover]) .thumb,:host([pressed]) .thumb{background-color:rgb(var(--mdui-color-on-surface-variant))}:host([checked]) .thumb{height:1.5rem;width:1.5rem;left:1.5rem;background-color:rgb(var(--mdui-color-on-primary));--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([checked]) .thumb mdui-ripple{left:-.5rem;top:-.5rem}:host([pressed]) .thumb{height:1.75rem;width:1.75rem;left:0}:host([pressed]) .thumb mdui-ripple{left:-.375rem;top:-.375rem}:host([pressed][checked]) .thumb{left:1.375rem}:host([focus-visible][checked]) .thumb,:host([hover][checked]) .thumb,:host([pressed][checked]) .thumb{background-color:rgb(var(--mdui-color-primary-container))}.invalid .thumb{background-color:rgb(var(--mdui-color-error));--mdui-comp-ripple-state-layer-color:var(--mdui-color-error)}:host([focus-visible]) .invalid .thumb,:host([hover]) .invalid .thumb,:host([pressed]) .invalid .thumb{background-color:rgb(var(--mdui-color-error))}:host([disabled]) .thumb{background-color:rgba(var(--mdui-color-on-surface),.38)}:host([disabled][checked]) .thumb{background-color:rgb(var(--mdui-color-surface))}.checked-icon,.unchecked-icon{display:flex;position:absolute;transition-property:opacity,transform;font-size:1rem}.unchecked-icon{opacity:1;transform:scale(1);transition-delay:var(--mdui-motion-duration-short1);transition-duration:var(--mdui-motion-duration-short3);transition-timing-function:var(--mdui-motion-easing-linear);color:rgb(var(--mdui-color-surface-container-highest))}:host([checked]) .unchecked-icon{opacity:0;transform:scale(.92);transition-delay:0s;transition-duration:var(--mdui-motion-duration-short1)}:host([disabled]) .unchecked-icon{color:rgba(var(--mdui-color-surface-container-highest),.38)}.checked-icon{opacity:0;transform:scale(.92);transition-delay:0s;transition-duration:var(--mdui-motion-duration-short1);transition-timing-function:var(--mdui-motion-easing-linear);color:rgb(var(--mdui-color-on-primary-container))}:host([checked]) .checked-icon{opacity:1;transform:scale(1);transition-delay:var(--mdui-motion-duration-short1);transition-duration:var(--mdui-motion-duration-short3)}.invalid .checked-icon{color:rgb(var(--mdui-color-error-container))}:host([disabled]) .checked-icon{color:rgba(var(--mdui-color-on-surface),.38)}.checked-icon .i,.unchecked-icon .i,::slotted([slot=checked-icon]),::slotted([slot=unchecked-icon]){font-size:inherit;color:inherit}`;let di=class extends dr(Ui(Re)){constructor(){super(...arguments),this.disabled=!1,this.checked=!1,this.defaultChecked=!1,this.required=!1,this.name="",this.value="on",this.invalid=!1,this.rippleRef=ge(),this.inputRef=ge(),this.formController=new Qr(this,{value:t=>t.checked?t.value:void 0,defaultValue:t=>t.defaultChecked,setValue:(t,i)=>t.checked=i}),this.hasSlotController=new It(this,"unchecked-icon")}get validity(){return this.inputRef.value.validity}get validationMessage(){return this.inputRef.value.validationMessage}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return this.disabled}get focusElement(){return this.inputRef.value}get focusDisabled(){return this.disabled}async onDisabledChange(){await this.updateComplete,this.invalid=!this.inputRef.value.checkValidity()}async onCheckedChange(){var i;await this.updateComplete;const t=this.formController.getForm();t&&((i=_t.get(t))!=null&&i.has(this))?(this.invalid=!1,_t.get(t).delete(this)):this.invalid=!this.inputRef.value.checkValidity()}checkValidity(){const t=this.inputRef.value.checkValidity();return t||this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),t}reportValidity(){return this.invalid=!this.inputRef.value.reportValidity(),this.invalid&&(this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1})||(this.blur(),this.focus())),!this.invalid}setCustomValidity(t){this.inputRef.value.setCustomValidity(t),this.invalid=!this.inputRef.value.checkValidity()}render(){return P``}onChange(){this.checked=this.inputRef.value.checked,this.emit("change")}};di.styles=[Ce,k_];v([R({type:Boolean,reflect:!0,converter:Y})],di.prototype,"disabled",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],di.prototype,"checked",void 0);v([On("checked")],di.prototype,"defaultChecked",void 0);v([R({reflect:!0,attribute:"unchecked-icon"})],di.prototype,"uncheckedIcon",void 0);v([R({reflect:!0,attribute:"checked-icon"})],di.prototype,"checkedIcon",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],di.prototype,"required",void 0);v([R({reflect:!0})],di.prototype,"form",void 0);v([R({reflect:!0})],di.prototype,"name",void 0);v([R({reflect:!0})],di.prototype,"value",void 0);v([_e()],di.prototype,"invalid",void 0);v([re("disabled",!0),re("required",!0)],di.prototype,"onDisabledChange",null);v([re("checked",!0)],di.prototype,"onCheckedChange",null);di=v([se("mdui-switch")],di);const C_=pe`:host{position:relative;--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}:host([active]){--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}.container{display:flex;justify-content:center;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;height:100%}.preset{flex-direction:column;min-height:3rem;padding:.625rem 1rem}:host([inline]) .preset{flex-direction:row}.icon-container,.label-container{position:relative;display:flex;align-items:center;justify-content:center}.icon-container ::slotted([slot=badge]){position:absolute;transform:translate(50%,-50%)}.icon-container ::slotted([slot=badge][variant=small]){transform:translate(.5625rem,-.5625rem)}.label-container ::slotted([slot=badge]){position:absolute;left:100%;bottom:100%;transform:translate(-.75rem,.625rem)}.label-container ::slotted([slot=badge][variant=small]){transform:translate(-.375rem,.375rem)}.icon,.label{display:flex;color:rgb(var(--mdui-color-on-surface-variant))}:host([focused]) .icon,:host([focused]) .label,:host([hover]) .icon,:host([hover]) .label,:host([pressed]) .icon,:host([pressed]) .label{color:rgb(var(--mdui-color-on-surface))}:host([active]) .icon,:host([active]) .label{color:rgb(var(--mdui-color-primary))}:host([active]) .variant-secondary .icon,:host([active]) .variant-secondary .label{color:rgb(var(--mdui-color-on-surface))}.icon{font-size:1.5rem}.label{font-size:var(--mdui-typescale-title-small-size);font-weight:var(--mdui-typescale-title-small-weight);letter-spacing:var(--mdui-typescale-title-small-tracking);line-height:var(--mdui-typescale-title-small-line-height)}.icon mdui-icon,::slotted([slot=icon]){font-size:inherit;color:inherit}`;let Tn=class extends dr(Ui(Re)){constructor(){super(...arguments),this.inline=!1,this.active=!1,this.variant="primary",this.key=Pn(),this.rippleRef=ge(),this.hasSlotController=new It(this,"icon","custom")}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return!1}get focusElement(){return this}get focusDisabled(){return!1}render(){const t=this.icon||this.hasSlotController.test("icon"),i=this.hasSlotController.test("custom"),r=()=>P``;return P`
${Ze(t||this.icon,r)}${this.icon?P``:Ve}
${Ze(!t,r)}
`}};Tn.styles=[Ce,C_];v([R({reflect:!0})],Tn.prototype,"value",void 0);v([R({reflect:!0})],Tn.prototype,"icon",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Tn.prototype,"inline",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Tn.prototype,"active",void 0);v([_e()],Tn.prototype,"variant",void 0);Tn=v([se("mdui-tab")],Tn);const E_=pe`:host{display:block;overflow-y:auto;flex:1 1 auto}:host(:not([active])){display:none}`;let Za=class extends Re{constructor(){super(...arguments),this.active=!1}render(){return P``}};Za.styles=[Ce,E_];v([R({reflect:!0})],Za.prototype,"value",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Za.prototype,"active",void 0);Za=v([se("mdui-tab-panel")],Za);const x_=pe`:host{position:relative;display:flex}:host([placement^=top]){flex-direction:column}:host([placement^=bottom]){flex-direction:column-reverse}:host([placement^=left]){flex-direction:row}:host([placement^=right]){flex-direction:row-reverse}.container{position:relative;display:flex;flex:0 0 auto;overflow-x:auto;background-color:rgb(var(--mdui-color-surface))}:host([placement^=bottom]) .container,:host([placement^=top]) .container{flex-direction:row}:host([placement^=left]) .container,:host([placement^=right]) .container{flex-direction:column}:host([placement$='-start']) .container{justify-content:flex-start}:host([placement=bottom]) .container,:host([placement=left]) .container,:host([placement=right]) .container,:host([placement=top]) .container{justify-content:center}:host([placement$='-end']) .container{justify-content:flex-end}.container::after{content:' ';position:absolute;background-color:rgb(var(--mdui-color-surface-variant))}:host([placement^=bottom]) .container::after,:host([placement^=top]) .container::after{left:0;width:100%;height:.0625rem}:host([placement^=top]) .container::after{bottom:0}:host([placement^=bottom]) .container::after{top:0}:host([placement^=left]) .container::after,:host([placement^=right]) .container::after{top:0;height:100%;width:.0625rem}:host([placement^=left]) .container::after{right:0}:host([placement^=right]) .container::after{left:0}.indicator{position:absolute;z-index:1;background-color:rgb(var(--mdui-color-primary))}.container:not(.initial) .indicator{transition-duration:var(--mdui-motion-duration-medium2);transition-timing-function:var(--mdui-motion-easing-standard-decelerate)}:host([placement^=bottom]) .indicator,:host([placement^=top]) .indicator{transition-property:transform,left,width}:host([placement^=left]) .indicator,:host([placement^=right]) .indicator{transition-property:transform,top,height}:host([placement^=top]) .indicator{bottom:0}:host([placement^=bottom]) .indicator{top:0}:host([placement^=left]) .indicator{right:0}:host([placement^=right]) .indicator{left:0}:host([placement^=bottom][variant=primary]) .indicator,:host([placement^=top][variant=primary]) .indicator{height:.1875rem}:host([placement^=bottom][variant=secondary]) .indicator,:host([placement^=top][variant=secondary]) .indicator{height:.125rem}:host([placement^=left][variant=primary]) .indicator,:host([placement^=right][variant=primary]) .indicator{width:.1875rem}:host([placement^=left][variant=secondary]) .indicator,:host([placement^=right][variant=secondary]) .indicator{width:.125rem}:host([placement^=top][variant=primary]) .indicator{border-top-left-radius:.1875rem;border-top-right-radius:.1875rem}:host([placement^=bottom][variant=primary]) .indicator{border-bottom-right-radius:.1875rem;border-bottom-left-radius:.1875rem}:host([placement^=left][variant=primary]) .indicator{border-top-left-radius:.1875rem;border-bottom-left-radius:.1875rem}:host([placement^=right][variant=primary]) .indicator{border-top-right-radius:.1875rem;border-bottom-right-radius:.1875rem}:host([full-width]) ::slotted(mdui-tab){flex:1}`;let Ei=class extends Re{constructor(){super(...arguments),this.variant="primary",this.placement="top-start",this.fullWidth=!1,this.activeKey=0,this.isInitial=!0,this.containerRef=ge(),this.indicatorRef=ge(),this.definedController=new zt(this,{relatedElements:["mdui-tab","mdui-tab-panel"]})}async onActiveKeyChange(){var t;await this.definedController.whenDefined(),this.value=(t=this.tabs.find(i=>i.key===this.activeKey))==null?void 0:t.value,this.updateActive(),this.isInitial||this.emit("change")}async onValueChange(){this.isInitial=!this.hasUpdated,await this.definedController.whenDefined();const t=this.tabs.find(i=>i.value===this.value);this.activeKey=(t==null?void 0:t.key)??0}async onIndicatorChange(){await this.updateComplete,this.updateIndicator()}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.observeResize)==null||t.unobserve()}firstUpdated(t){super.firstUpdated(t),this.observeResize=Ds(this.containerRef.value,()=>this.updateIndicator())}render(){return P`
`}async onSlotChange(){await this.definedController.whenDefined(),this.updateActive()}async onClick(t){if(t.button)return;await this.definedController.whenDefined();const r=t.target.closest("mdui-tab");r&&(this.activeKey=r.key,this.isInitial=!1,this.updateActive())}updateActive(){this.activeTab=this.tabs.map(t=>(t.active=this.activeKey===t.key,t)).find(t=>t.active),this.panels.forEach(t=>{var i;return t.active=t.value===((i=this.activeTab)==null?void 0:i.value)}),this.updateIndicator()}updateIndicator(){const t=this.activeTab,i=O(this.indicatorRef.value),r=this.placement.startsWith("left")||this.placement.startsWith("right");if(!t){i.css({transform:r?"scaleY(0)":"scaleX(0)"});return}const n=O(t),s=t.offsetTop,o=t.offsetLeft,a=r?{transform:"scaleY(1)",width:"",left:""}:{transform:"scaleX(1)",height:"",top:""};let l={};if(this.variant==="primary"){const c=n.find(':scope > [slot="custom"]'),d=c.length?c.get():O(t.renderRoot).find('slot[name="custom"]').children().get();if(r){const u=Math.min(...d.map(f=>f.offsetTop))+s,h=Math.max(...d.map(f=>f.offsetTop+f.offsetHeight))+s;l={top:u,height:h-u}}else{const u=Math.min(...d.map(f=>f.offsetLeft))+o,h=Math.max(...d.map(f=>f.offsetLeft+f.offsetWidth))+o;l={left:u,width:h-u}}}this.variant==="secondary"&&(l=r?{top:s,height:t.offsetHeight}:{left:o,width:t.offsetWidth}),i.css({...a,...l})}};Ei.styles=[Ce,x_];v([R({reflect:!0})],Ei.prototype,"variant",void 0);v([R({reflect:!0})],Ei.prototype,"value",void 0);v([R({reflect:!0})],Ei.prototype,"placement",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"full-width"})],Ei.prototype,"fullWidth",void 0);v([_e()],Ei.prototype,"activeKey",void 0);v([_e()],Ei.prototype,"isInitial",void 0);v([Hi({selector:"mdui-tab",flatten:!0})],Ei.prototype,"tabs",void 0);v([Hi({selector:"mdui-tab-panel",slot:"panel",flatten:!0})],Ei.prototype,"panels",void 0);v([re("activeKey",!0)],Ei.prototype,"onActiveKeyChange",null);v([re("value")],Ei.prototype,"onValueChange",null);v([re("variant",!0),re("placement",!0),re("fullWidth",!0)],Ei.prototype,"onIndicatorChange",null);Ei=v([se("mdui-tabs")],Ei);class S_{constructor(t,i){this.isHover=!1,this.uniqueID=Pn(),this.enterEventName=`mouseenter.${this.uniqueID}.hoverController`,this.leaveEventName=`mouseleave.${this.uniqueID}.hoverController`,this.mouseEnterItems=[],this.mouseLeaveItems=[],(this.host=t).addController(this),this.elementRef=i}hostConnected(){this.host.updateComplete.then(()=>{O(this.elementRef.value).on(this.enterEventName,()=>{this.isHover=!0;for(let t=this.mouseEnterItems.length-1;t>=0;t--){const i=this.mouseEnterItems[t];i.callback(),i.one&&this.mouseEnterItems.splice(t,1)}}).on(this.leaveEventName,()=>{this.isHover=!1;for(let t=this.mouseLeaveItems.length-1;t>=0;t--){const i=this.mouseLeaveItems[t];i.callback(),i.one&&this.mouseLeaveItems.splice(t,1)}})})}hostDisconnected(){O(this.elementRef.value).off(this.enterEventName).off(this.leaveEventName)}onMouseEnter(t,i=!1){this.mouseEnterItems.push({callback:t,one:i})}onMouseLeave(t,i=!1){this.mouseLeaveItems.push({callback:t,one:i})}}const A_=pe`:host{--shape-corner-plain:var(--mdui-shape-corner-extra-small);--shape-corner-rich:var(--mdui-shape-corner-medium);--z-index:2500;display:contents}.popup{position:fixed;display:flex;flex-direction:column;z-index:var(--z-index);border-radius:var(--shape-corner-plain);background-color:rgb(var(--mdui-color-inverse-surface));padding:0 .5rem;min-width:1.75rem;max-width:20rem}:host([variant=rich]) .popup{border-radius:var(--shape-corner-rich);background-color:rgb(var(--mdui-color-surface-container));box-shadow:var(--mdui-elevation-level2);padding:.75rem 1rem .5rem 1rem}.headline{display:flex;color:rgb(var(--mdui-color-on-surface-variant));font-size:var(--mdui-typescale-title-small-size);font-weight:var(--mdui-typescale-title-small-weight);letter-spacing:var(--mdui-typescale-title-small-tracking);line-height:var(--mdui-typescale-title-small-line-height)}.content{display:flex;padding:.25rem 0;color:rgb(var(--mdui-color-inverse-on-surface));font-size:var(--mdui-typescale-body-small-size);font-weight:var(--mdui-typescale-body-small-weight);letter-spacing:var(--mdui-typescale-body-small-tracking);line-height:var(--mdui-typescale-body-small-line-height)}:host([variant=rich]) .content{color:rgb(var(--mdui-color-on-surface-variant));font-size:var(--mdui-typescale-body-medium-size);font-weight:var(--mdui-typescale-body-medium-weight);letter-spacing:var(--mdui-typescale-body-medium-tracking);line-height:var(--mdui-typescale-body-medium-line-height)}.action{display:flex;justify-content:flex-start;padding-top:.5rem}.action ::slotted(:not(:last-child)){margin-right:.5rem}`;let xi=class extends Re{constructor(){super(),this.variant="plain",this.placement="auto",this.openDelay=150,this.closeDelay=150,this.trigger="hover focus",this.disabled=!1,this.open=!1,this.popupRef=ge(),this.hasSlotController=new It(this,"headline","action"),this.hoverController=new S_(this,this.popupRef),this.definedController=new zt(this,{needDomReady:!0}),this.onDocumentClick=this.onDocumentClick.bind(this),this.onWindowScroll=this.onWindowScroll.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this),this.onClick=this.onClick.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onMouseEnter=this.onMouseEnter.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this)}get target(){return[...this.children].find(t=>t.tagName.toLowerCase()!=="style"&&t.getAttribute("slot")!=="content")}async onPositionChange(){this.open&&(await this.definedController.whenDefined(),this.updatePositioner())}async onOpenChange(){const t=this.hasUpdated,i=Qi(this,"short4"),r=Gt(this,"standard");if(this.open){if(await this.definedController.whenDefined(),O(`mdui-tooltip[variant="${this.variant}"]`).filter((n,s)=>s!==this).prop("open",!1),t||await this.updateComplete,t&&!this.emit("open",{cancelable:!0}))return;await yi(this.popupRef.value),this.popupRef.value.hidden=!1,this.updatePositioner(),await We(this.popupRef.value,[{transform:"scale(0)"},{transform:"scale(1)"}],{duration:t?i:0,easing:r}),t&&this.emit("opened");return}if(!this.open&&t){if(!this.emit("close",{cancelable:!0}))return;await yi(this.popupRef.value),await We(this.popupRef.value,[{transform:"scale(1)"},{transform:"scale(0)"}],{duration:i,easing:r}),this.popupRef.value.hidden=!0,this.emit("closed")}}connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.onDocumentClick),this.overflowAncestors=Kc(this.target),this.overflowAncestors.forEach(t=>{t.addEventListener("scroll",this.onWindowScroll)})}disconnectedCallback(){var t,i;super.disconnectedCallback(),document.removeEventListener("pointerdown",this.onDocumentClick),(t=this.overflowAncestors)==null||t.forEach(r=>{r.removeEventListener("scroll",this.onWindowScroll)}),(i=this.observeResize)==null||i.unobserve()}firstUpdated(t){super.firstUpdated(t),this.definedController.whenDefined().then(()=>{const i=this.target;i.addEventListener("focus",this.onFocus),i.addEventListener("blur",this.onBlur),i.addEventListener("pointerdown",this.onClick),i.addEventListener("keydown",this.onKeydown),i.addEventListener("mouseenter",this.onMouseEnter),i.addEventListener("mouseleave",this.onMouseLeave),this.observeResize=Ds(i,()=>{this.updatePositioner()})})}render(){const t=this.isRich()&&(this.headline||this.hasSlotController.test("headline")),i=this.isRich()&&this.hasSlotController.test("action");return P``}isRich(){return this.variant==="rich"}requestClose(){if(!this.hoverController.isHover){this.open=!1;return}this.hoverController.onMouseLeave(()=>{this.hasTrigger("hover")?this.hoverTimeout=window.setTimeout(()=>{this.open=!1},this.closeDelay||50):this.open=!1},!0)}hasTrigger(t){return this.trigger.split(" ").includes(t)}onFocus(){this.disabled||this.open||!this.hasTrigger("focus")||(this.open=!0)}onBlur(){this.disabled||!this.open||!this.hasTrigger("focus")||this.requestClose()}onClick(t){this.disabled||t.button||!this.hasTrigger("click")||this.open&&(this.hasTrigger("hover")||this.hasTrigger("focus"))||(this.open=!this.open)}onKeydown(t){this.disabled||!this.open||t.key!=="Escape"||(t.stopPropagation(),this.requestClose())}onMouseEnter(){this.disabled||this.open||!this.hasTrigger("hover")||(this.openDelay?(window.clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>{this.open=!0},this.openDelay)):this.open=!0)}onMouseLeave(){window.clearTimeout(this.hoverTimeout),!(this.disabled||!this.open||!this.hasTrigger("hover"))&&(this.hoverTimeout=window.setTimeout(()=>{this.requestClose()},this.closeDelay||50))}onDocumentClick(t){if(this.disabled||!this.open)return;t.composedPath().includes(this)||this.requestClose()}onWindowScroll(){window.requestAnimationFrame(()=>this.updatePositioner())}updatePositioner(){const t=O(this.popupRef.value),i=this.isRich()?0:4,r=4,n=this.target.getBoundingClientRect(),s=n.top,o=n.left,a=n.height,l=n.width,c=this.popupRef.value.offsetHeight,d=this.popupRef.value.offsetWidth,u=d+i+r,h=c+i+r;let f,g,b,w,x=this.placement;if(x==="auto"){const y=O(window),C=s>h,_=y.height()-s-a>h,E=o>u,S=y.width()-o-l>u;this.isRich()?(x="bottom-right",_&&S?x="bottom-right":_&&E?x="bottom-left":C&&S?x="top-right":C&&E?x="top-left":_?x="bottom":C?x="top":S?x="right":E&&(x="left")):(x="top",C?x="top":_?x="bottom":E?x="left":S&&(x="right"))}const[m,p]=x.split("-");switch(m){case"top":g="bottom",b=s-c-i;break;case"bottom":g="top",b=s+a+i;break;default:switch(g="center",p){case"start":b=s;break;case"end":b=s+a-c;break;default:b=s+a/2-c/2;break}break}switch(m){case"left":f="right",w=o-d-i;break;case"right":f="left",w=o+l+i;break;default:switch(f="center",p){case"start":w=o;break;case"end":w=o+l-d;break;case"left":f="right",w=o-d-i;break;case"right":f="left",w=o+l+i;break;default:w=o+l/2-d/2;break}break}t.css({top:b,left:w,transformOrigin:[f,g].join(" ")})}};xi.styles=[Ce,A_];v([R({reflect:!0})],xi.prototype,"variant",void 0);v([R({reflect:!0})],xi.prototype,"placement",void 0);v([R({type:Number,reflect:!0,attribute:"open-delay"})],xi.prototype,"openDelay",void 0);v([R({type:Number,reflect:!0,attribute:"close-delay"})],xi.prototype,"closeDelay",void 0);v([R({reflect:!0})],xi.prototype,"headline",void 0);v([R({reflect:!0})],xi.prototype,"content",void 0);v([R({reflect:!0})],xi.prototype,"trigger",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],xi.prototype,"disabled",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],xi.prototype,"open",void 0);v([re("placement",!0),re("content",!0)],xi.prototype,"onPositionChange",null);v([re("open")],xi.prototype,"onOpenChange",null);xi=v([se("mdui-tooltip")],xi);const T_=e=>{const t=e.assignedNodes({flatten:!0});let i="";return[...t].forEach(r=>{r.nodeType===Node.ELEMENT_NODE&&(i+=r.outerHTML),r.nodeType===Node.TEXT_NODE&&(i+=r.textContent)}),i},R_=pe`:host{display:block;width:100%;flex-shrink:initial!important;overflow:hidden;color:rgb(var(--mdui-color-on-surface));font-size:var(--mdui-typescale-title-large-size);font-weight:var(--mdui-typescale-title-large-weight);letter-spacing:var(--mdui-typescale-title-large-tracking);line-height:var(--mdui-typescale-title-large-line-height);line-height:2.5rem}.label{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;opacity:1;transition:opacity var(--mdui-motion-duration-short2) var(--mdui-motion-easing-linear)}.label.variant-center-aligned{text-align:center}.label.variant-large:not(.shrink),.label.variant-medium:not(.shrink){opacity:0}.label.variant-large.shrink,.label.variant-medium.shrink{transition-delay:var(--mdui-motion-duration-short2)}.label-large{display:none;position:absolute;width:100%;left:0;margin-right:0;padding:0 1rem;transition:opacity var(--mdui-motion-duration-short2) var(--mdui-motion-easing-linear)}.label-large.variant-large,.label-large.variant-medium{display:block}.label-large.variant-medium{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;bottom:.75rem;font-size:var(--mdui-typescale-headline-small-size);font-weight:var(--mdui-typescale-headline-small-weight);letter-spacing:var(--mdui-typescale-headline-small-tracking);line-height:var(--mdui-typescale-headline-small-line-height)}.label-large.variant-large{display:-webkit-box;overflow:hidden;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2;bottom:1.25rem;font-size:var(--mdui-typescale-headline-medium-size);font-weight:var(--mdui-typescale-headline-medium-weight);letter-spacing:var(--mdui-typescale-headline-medium-tracking);line-height:var(--mdui-typescale-headline-medium-line-height)}.label-large.variant-large:not(.shrink),.label-large.variant-medium:not(.shrink){opacity:1;transition-delay:var(--mdui-motion-duration-short2)}.label-large.variant-large.shrink,.label-large.variant-medium.shrink{opacity:0;z-index:-1}`;let Xa=class extends Re{constructor(){super(...arguments),this.variant="small",this.shrink=!1,this.hasSlotController=new It(this,"label-large"),this.labelLargeRef=ge(),this.defaultSlotRef=ge()}render(){const t=this.hasSlotController.test("label-large"),i=ht({shrink:this.shrink,"variant-center-aligned":this.variant==="center-aligned","variant-small":this.variant==="small","variant-medium":this.variant==="medium","variant-large":this.variant==="large"});return P`${t?P``:P`
`}`}onSlotChange(t){t||(this.labelLargeRef.value.innerHTML=T_(this.defaultSlotRef.value))}};Xa.styles=[Ce,R_];v([_e()],Xa.prototype,"variant",void 0);v([_e()],Xa.prototype,"shrink",void 0);Xa=v([se("mdui-top-app-bar-title")],Xa);const $_=pe`:host{--shape-corner:var(--mdui-shape-corner-none);--z-index:2000;position:fixed;top:0;right:0;left:0;display:flex;flex:0 0 auto;align-items:flex-start;justify-content:flex-start;border-bottom-left-radius:var(--shape-corner);border-bottom-right-radius:var(--shape-corner);z-index:var(--z-index);transition:top var(--mdui-motion-duration-long2) var(--mdui-motion-easing-standard),height var(--mdui-motion-duration-long2) var(--mdui-motion-easing-standard),box-shadow var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear),background-color var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear);padding:.75rem .5rem;height:4rem;background-color:rgb(var(--mdui-color-surface))}:host([scroll-target]:not([scroll-target=''])){position:absolute}:host([scroll-behavior~=shrink]){transition-duration:var(--mdui-motion-duration-short4)}:host([scrolling]){background-color:rgb(var(--mdui-color-surface-container));box-shadow:var(--mdui-elevation-level2)}::slotted(mdui-button-icon){color:rgb(var(--mdui-color-on-surface-variant));font-size:1.5rem}::slotted(mdui-button-icon:first-child){color:rgb(var(--mdui-color-on-surface))}::slotted(mdui-avatar){width:1.875rem;height:1.875rem;margin-top:.3125rem;margin-bottom:.3125rem}::slotted(*){flex-shrink:0}::slotted(:not(:last-child)){margin-right:.5rem}:host([variant=medium]){height:7rem}:host([variant=large]){height:9.5rem}:host([hide]){transition-duration:var(--mdui-motion-duration-short4);top:-4.625rem}:host([hide][variant=medium]){top:-7.625rem}:host([hide][variant=large]){top:-10.125rem}:host([shrink][variant=large]),:host([shrink][variant=medium]){transition-duration:var(--mdui-motion-duration-short4);height:4rem}`;let cr=class extends Lp(Bn){constructor(){super(...arguments),this.variant="small",this.hide=!1,this.shrink=!1,this.scrolling=!1}get scrollPaddingPosition(){return"top"}get layoutPlacement(){return"top"}async onVariantChange(){this.hasUpdated?this.addEventListener("transitionend",async()=>{await this.scrollBehaviorDefinedController.whenDefined(),this.updateContainerPadding()},{once:!0}):await this.updateComplete,this.titleElements.forEach(t=>{t.variant=this.variant})}async onShrinkChange(){this.hasUpdated||await this.updateComplete,this.titleElements.forEach(t=>{t.shrink=this.shrink})}firstUpdated(t){super.firstUpdated(t),this.addEventListener("transitionend",i=>{i.target===this&&this.emit(this.hide?"hidden":"shown")})}render(){return P``}runScrollNoThreshold(t,i){this.hasScrollBehavior("shrink")&&t&&i<8&&(this.shrink=!1)}runScrollThreshold(t,i){this.hasScrollBehavior("elevate")&&(this.scrolling=!!i),this.hasScrollBehavior("shrink")&&(t||(this.shrink=!0)),this.hasScrollBehavior("hide")&&(!t&&!this.hide&&this.emit("hide",{cancelable:!0})&&(this.hide=!0),t&&this.hide&&this.emit("show",{cancelable:!0})&&(this.hide=!1))}};cr.styles=[Ce,$_];v([R({reflect:!0})],cr.prototype,"variant",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],cr.prototype,"hide",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],cr.prototype,"shrink",void 0);v([R({reflect:!0,attribute:"scroll-behavior"})],cr.prototype,"scrollBehavior",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],cr.prototype,"scrolling",void 0);v([Hi({selector:"mdui-top-app-bar-title",flatten:!0})],cr.prototype,"titleElements",void 0);v([re("variant")],cr.prototype,"onVariantChange",null);v([re("shrink")],cr.prototype,"onShrinkChange",null);cr=v([se("mdui-top-app-bar")],cr);function I_(e){return!!e&&(typeof e=="object"||typeof e=="function")&&typeof e.then=="function"}const Zn={};function D_(e,t){if(et(Zn[e])&&(Zn[e]=[]),et(t))return Zn[e];Zn[e].push(t)}function P_(e){if(et(Zn[e])||!Zn[e].length)return;Zn[e].shift()()}/** * @license * Copyright 2021 Google LLC * @@ -261,7 +261,7 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class or{static make(t=V_(),i=200/Math.PI*pn(50)/100,r=50,n=2,s=!1){const o=t,a=o[0]*.401288+o[1]*.650173+o[2]*-.051461,l=o[0]*-.250268+o[1]*1.204414+o[2]*.045854,c=o[0]*-.002079+o[1]*.048952+o[2]*.953127,d=.8+n/10,u=d>=.9?ya(.59,.69,(d-.9)*10):ya(.525,.59,(d-.8)*10);let h=s?1:d*(1-1/3.6*Math.exp((-i-42)/92));h=h>1?1:h<0?0:h;const f=d,g=[h*(100/a)+1-h,h*(100/l)+1-h,h*(100/c)+1-h],b=1/(5*i+1),w=b*b*b*b,x=1-w,m=w*i+.1*x*x*Math.cbrt(5*i),p=pn(r)/t[1],y=1.48+Math.sqrt(p),_=.725/Math.pow(p,.2),C=_,E=[Math.pow(m*g[0]*a/100,.42),Math.pow(m*g[1]*l/100,.42),Math.pow(m*g[2]*c/100,.42)],A=[400*E[0]/(E[0]+27.13),400*E[1]/(E[1]+27.13),400*E[2]/(E[2]+27.13)],S=(2*A[0]+A[1]+.05*A[2])*_;return new or(p,S,_,C,u,f,g,m,Math.pow(m,.25),y)}constructor(t,i,r,n,s,o,a,l,c,d){this.n=t,this.aw=i,this.nbb=r,this.ncb=n,this.c=s,this.nc=o,this.rgbD=a,this.fl=l,this.fLRoot=c,this.z=d}}or.DEFAULT=or.make();/** + */class or{static make(t=V_(),i=200/Math.PI*pn(50)/100,r=50,n=2,s=!1){const o=t,a=o[0]*.401288+o[1]*.650173+o[2]*-.051461,l=o[0]*-.250268+o[1]*1.204414+o[2]*.045854,c=o[0]*-.002079+o[1]*.048952+o[2]*.953127,d=.8+n/10,u=d>=.9?ya(.59,.69,(d-.9)*10):ya(.525,.59,(d-.8)*10);let h=s?1:d*(1-1/3.6*Math.exp((-i-42)/92));h=h>1?1:h<0?0:h;const f=d,g=[h*(100/a)+1-h,h*(100/l)+1-h,h*(100/c)+1-h],b=1/(5*i+1),w=b*b*b*b,x=1-w,m=w*i+.1*x*x*Math.cbrt(5*i),p=pn(r)/t[1],y=1.48+Math.sqrt(p),C=.725/Math.pow(p,.2),_=C,E=[Math.pow(m*g[0]*a/100,.42),Math.pow(m*g[1]*l/100,.42),Math.pow(m*g[2]*c/100,.42)],S=[400*E[0]/(E[0]+27.13),400*E[1]/(E[1]+27.13),400*E[2]/(E[2]+27.13)],A=(2*S[0]+S[1]+.05*S[2])*C;return new or(p,A,C,_,u,f,g,m,Math.pow(m,.25),y)}constructor(t,i,r,n,s,o,a,l,c,d){this.n=t,this.aw=i,this.nbb=r,this.ncb=n,this.c=s,this.nc=o,this.rgbD=a,this.fl=l,this.fLRoot=c,this.z=d}}or.DEFAULT=or.make();/** * @license * Copyright 2021 Google LLC * @@ -276,7 +276,7 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class At{constructor(t,i,r,n,s,o,a,l,c){this.hue=t,this.chroma=i,this.j=r,this.q=n,this.m=s,this.s=o,this.jstar=a,this.astar=l,this.bstar=c}distance(t){const i=this.jstar-t.jstar,r=this.astar-t.astar,n=this.bstar-t.bstar,s=Math.sqrt(i*i+r*r+n*n);return 1.41*Math.pow(s,.63)}static fromInt(t){return At.fromIntInViewingConditions(t,or.DEFAULT)}static fromIntInViewingConditions(t,i){const r=(t&16711680)>>16,n=(t&65280)>>8,s=t&255,o=oo(r),a=oo(n),l=oo(s),c=.41233895*o+.35762064*a+.18051042*l,d=.2126*o+.7152*a+.0722*l,u=.01932141*o+.11916382*a+.95034478*l,h=.401288*c+.650173*d-.051461*u,f=-.250268*c+1.204414*d+.045854*u,g=-.002079*c+.048952*d+.953127*u,b=i.rgbD[0]*h,w=i.rgbD[1]*f,x=i.rgbD[2]*g,m=Math.pow(i.fl*Math.abs(b)/100,.42),p=Math.pow(i.fl*Math.abs(w)/100,.42),y=Math.pow(i.fl*Math.abs(x)/100,.42),_=hi(b)*400*m/(m+27.13),C=hi(w)*400*p/(p+27.13),E=hi(x)*400*y/(y+27.13),A=(11*_+-12*C+E)/11,S=(_+C-2*E)/9,k=(20*_+20*C+21*E)/20,T=(40*_+20*C+E)/20,I=Math.atan2(S,A)*180/Math.PI,L=I<0?I+360:I>=360?I-360:I,N=L*Math.PI/180,M=T*i.nbb,X=100*Math.pow(M/i.aw,i.c*i.z),q=4/i.c*Math.sqrt(X/100)*(i.aw+4)*i.fLRoot,he=L<20.14?L+360:L,ve=.25*(Math.cos(he*Math.PI/180+2)+3.8),U=5e4/13*ve*i.nc*i.ncb*Math.sqrt(A*A+S*S)/(k+.305),V=Math.pow(U,.9)*Math.pow(1.64-Math.pow(.29,i.n),.73),K=V*Math.sqrt(X/100),Ne=K*i.fLRoot,Se=50*Math.sqrt(V*i.c/(i.aw+4)),ot=(1+100*.007)*X/(1+.007*X),ye=1/.0228*Math.log(1+.0228*Ne),ur=ye*Math.cos(N),Jt=ye*Math.sin(N);return new At(L,K,X,q,Ne,Se,ot,ur,Jt)}static fromJch(t,i,r){return At.fromJchInViewingConditions(t,i,r,or.DEFAULT)}static fromJchInViewingConditions(t,i,r,n){const s=4/n.c*Math.sqrt(t/100)*(n.aw+4)*n.fLRoot,o=i*n.fLRoot,a=i/Math.sqrt(t/100),l=50*Math.sqrt(a*n.c/(n.aw+4)),c=r*Math.PI/180,d=(1+100*.007)*t/(1+.007*t),u=1/.0228*Math.log(1+.0228*o),h=u*Math.cos(c),f=u*Math.sin(c);return new At(r,i,t,s,o,l,d,h,f)}static fromUcs(t,i,r){return At.fromUcsInViewingConditions(t,i,r,or.DEFAULT)}static fromUcsInViewingConditions(t,i,r,n){const s=i,o=r,a=Math.sqrt(s*s+o*o),c=(Math.exp(a*.0228)-1)/.0228/n.fLRoot;let d=Math.atan2(o,s)*(180/Math.PI);d<0&&(d+=360);const u=t/(1-(t-100)*.007);return At.fromJchInViewingConditions(u,c,d,n)}toInt(){return this.viewed(or.DEFAULT)}viewed(t){const i=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),r=Math.pow(i/Math.pow(1.64-Math.pow(.29,t.n),.73),1/.9),n=this.hue*Math.PI/180,s=.25*(Math.cos(n+2)+3.8),o=t.aw*Math.pow(this.j/100,1/t.c/t.z),a=s*(5e4/13)*t.nc*t.ncb,l=o/t.nbb,c=Math.sin(n),d=Math.cos(n),u=23*(l+.305)*r/(23*a+11*r*d+108*r*c),h=u*d,f=u*c,g=(460*l+451*h+288*f)/1403,b=(460*l-891*h-261*f)/1403,w=(460*l-220*h-6300*f)/1403,x=Math.max(0,27.13*Math.abs(g)/(400-Math.abs(g))),m=hi(g)*(100/t.fl)*Math.pow(x,1/.42),p=Math.max(0,27.13*Math.abs(b)/(400-Math.abs(b))),y=hi(b)*(100/t.fl)*Math.pow(p,1/.42),_=Math.max(0,27.13*Math.abs(w)/(400-Math.abs(w))),C=hi(w)*(100/t.fl)*Math.pow(_,1/.42),E=m/t.rgbD[0],A=y/t.rgbD[1],S=C/t.rgbD[2],k=1.86206786*E-1.01125463*A+.14918677*S,T=.38752654*E+.62144744*A-.00897398*S,$=-.0158415*E-.03412294*A+1.04996444*S;return z_(k,T,$)}static fromXyzInViewingConditions(t,i,r,n){const s=.401288*t+.650173*i-.051461*r,o=-.250268*t+1.204414*i+.045854*r,a=-.002079*t+.048952*i+.953127*r,l=n.rgbD[0]*s,c=n.rgbD[1]*o,d=n.rgbD[2]*a,u=Math.pow(n.fl*Math.abs(l)/100,.42),h=Math.pow(n.fl*Math.abs(c)/100,.42),f=Math.pow(n.fl*Math.abs(d)/100,.42),g=hi(l)*400*u/(u+27.13),b=hi(c)*400*h/(h+27.13),w=hi(d)*400*f/(f+27.13),x=(11*g+-12*b+w)/11,m=(g+b-2*w)/9,p=(20*g+20*b+21*w)/20,y=(40*g+20*b+w)/20,C=Math.atan2(m,x)*180/Math.PI,E=C<0?C+360:C>=360?C-360:C,A=E*Math.PI/180,S=y*n.nbb,k=100*Math.pow(S/n.aw,n.c*n.z),T=4/n.c*Math.sqrt(k/100)*(n.aw+4)*n.fLRoot,$=E<20.14?E+360:E,I=1/4*(Math.cos($*Math.PI/180+2)+3.8),N=5e4/13*I*n.nc*n.ncb*Math.sqrt(x*x+m*m)/(p+.305),M=Math.pow(N,.9)*Math.pow(1.64-Math.pow(.29,n.n),.73),X=M*Math.sqrt(k/100),q=X*n.fLRoot,he=50*Math.sqrt(M*n.c/(n.aw+4)),ve=(1+100*.007)*k/(1+.007*k),z=Math.log(1+.0228*q)/.0228,U=z*Math.cos(A),V=z*Math.sin(A);return new At(E,X,k,T,q,he,ve,U,V)}xyzInViewingConditions(t){const i=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),r=Math.pow(i/Math.pow(1.64-Math.pow(.29,t.n),.73),1/.9),n=this.hue*Math.PI/180,s=.25*(Math.cos(n+2)+3.8),o=t.aw*Math.pow(this.j/100,1/t.c/t.z),a=s*(5e4/13)*t.nc*t.ncb,l=o/t.nbb,c=Math.sin(n),d=Math.cos(n),u=23*(l+.305)*r/(23*a+11*r*d+108*r*c),h=u*d,f=u*c,g=(460*l+451*h+288*f)/1403,b=(460*l-891*h-261*f)/1403,w=(460*l-220*h-6300*f)/1403,x=Math.max(0,27.13*Math.abs(g)/(400-Math.abs(g))),m=hi(g)*(100/t.fl)*Math.pow(x,1/.42),p=Math.max(0,27.13*Math.abs(b)/(400-Math.abs(b))),y=hi(b)*(100/t.fl)*Math.pow(p,1/.42),_=Math.max(0,27.13*Math.abs(w)/(400-Math.abs(w))),C=hi(w)*(100/t.fl)*Math.pow(_,1/.42),E=m/t.rgbD[0],A=y/t.rgbD[1],S=C/t.rgbD[2],k=1.86206786*E-1.01125463*A+.14918677*S,T=.38752654*E+.62144744*A-.00897398*S,$=-.0158415*E-.03412294*A+1.04996444*S;return[k,T,$]}}/** + */class At{constructor(t,i,r,n,s,o,a,l,c){this.hue=t,this.chroma=i,this.j=r,this.q=n,this.m=s,this.s=o,this.jstar=a,this.astar=l,this.bstar=c}distance(t){const i=this.jstar-t.jstar,r=this.astar-t.astar,n=this.bstar-t.bstar,s=Math.sqrt(i*i+r*r+n*n);return 1.41*Math.pow(s,.63)}static fromInt(t){return At.fromIntInViewingConditions(t,or.DEFAULT)}static fromIntInViewingConditions(t,i){const r=(t&16711680)>>16,n=(t&65280)>>8,s=t&255,o=oo(r),a=oo(n),l=oo(s),c=.41233895*o+.35762064*a+.18051042*l,d=.2126*o+.7152*a+.0722*l,u=.01932141*o+.11916382*a+.95034478*l,h=.401288*c+.650173*d-.051461*u,f=-.250268*c+1.204414*d+.045854*u,g=-.002079*c+.048952*d+.953127*u,b=i.rgbD[0]*h,w=i.rgbD[1]*f,x=i.rgbD[2]*g,m=Math.pow(i.fl*Math.abs(b)/100,.42),p=Math.pow(i.fl*Math.abs(w)/100,.42),y=Math.pow(i.fl*Math.abs(x)/100,.42),C=hi(b)*400*m/(m+27.13),_=hi(w)*400*p/(p+27.13),E=hi(x)*400*y/(y+27.13),S=(11*C+-12*_+E)/11,A=(C+_-2*E)/9,k=(20*C+20*_+21*E)/20,T=(40*C+20*_+E)/20,I=Math.atan2(A,S)*180/Math.PI,L=I<0?I+360:I>=360?I-360:I,N=L*Math.PI/180,M=T*i.nbb,X=100*Math.pow(M/i.aw,i.c*i.z),q=4/i.c*Math.sqrt(X/100)*(i.aw+4)*i.fLRoot,he=L<20.14?L+360:L,ve=.25*(Math.cos(he*Math.PI/180+2)+3.8),U=5e4/13*ve*i.nc*i.ncb*Math.sqrt(S*S+A*A)/(k+.305),V=Math.pow(U,.9)*Math.pow(1.64-Math.pow(.29,i.n),.73),K=V*Math.sqrt(X/100),Ne=K*i.fLRoot,Se=50*Math.sqrt(V*i.c/(i.aw+4)),ot=(1+100*.007)*X/(1+.007*X),ye=1/.0228*Math.log(1+.0228*Ne),ur=ye*Math.cos(N),Jt=ye*Math.sin(N);return new At(L,K,X,q,Ne,Se,ot,ur,Jt)}static fromJch(t,i,r){return At.fromJchInViewingConditions(t,i,r,or.DEFAULT)}static fromJchInViewingConditions(t,i,r,n){const s=4/n.c*Math.sqrt(t/100)*(n.aw+4)*n.fLRoot,o=i*n.fLRoot,a=i/Math.sqrt(t/100),l=50*Math.sqrt(a*n.c/(n.aw+4)),c=r*Math.PI/180,d=(1+100*.007)*t/(1+.007*t),u=1/.0228*Math.log(1+.0228*o),h=u*Math.cos(c),f=u*Math.sin(c);return new At(r,i,t,s,o,l,d,h,f)}static fromUcs(t,i,r){return At.fromUcsInViewingConditions(t,i,r,or.DEFAULT)}static fromUcsInViewingConditions(t,i,r,n){const s=i,o=r,a=Math.sqrt(s*s+o*o),c=(Math.exp(a*.0228)-1)/.0228/n.fLRoot;let d=Math.atan2(o,s)*(180/Math.PI);d<0&&(d+=360);const u=t/(1-(t-100)*.007);return At.fromJchInViewingConditions(u,c,d,n)}toInt(){return this.viewed(or.DEFAULT)}viewed(t){const i=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),r=Math.pow(i/Math.pow(1.64-Math.pow(.29,t.n),.73),1/.9),n=this.hue*Math.PI/180,s=.25*(Math.cos(n+2)+3.8),o=t.aw*Math.pow(this.j/100,1/t.c/t.z),a=s*(5e4/13)*t.nc*t.ncb,l=o/t.nbb,c=Math.sin(n),d=Math.cos(n),u=23*(l+.305)*r/(23*a+11*r*d+108*r*c),h=u*d,f=u*c,g=(460*l+451*h+288*f)/1403,b=(460*l-891*h-261*f)/1403,w=(460*l-220*h-6300*f)/1403,x=Math.max(0,27.13*Math.abs(g)/(400-Math.abs(g))),m=hi(g)*(100/t.fl)*Math.pow(x,1/.42),p=Math.max(0,27.13*Math.abs(b)/(400-Math.abs(b))),y=hi(b)*(100/t.fl)*Math.pow(p,1/.42),C=Math.max(0,27.13*Math.abs(w)/(400-Math.abs(w))),_=hi(w)*(100/t.fl)*Math.pow(C,1/.42),E=m/t.rgbD[0],S=y/t.rgbD[1],A=_/t.rgbD[2],k=1.86206786*E-1.01125463*S+.14918677*A,T=.38752654*E+.62144744*S-.00897398*A,$=-.0158415*E-.03412294*S+1.04996444*A;return z_(k,T,$)}static fromXyzInViewingConditions(t,i,r,n){const s=.401288*t+.650173*i-.051461*r,o=-.250268*t+1.204414*i+.045854*r,a=-.002079*t+.048952*i+.953127*r,l=n.rgbD[0]*s,c=n.rgbD[1]*o,d=n.rgbD[2]*a,u=Math.pow(n.fl*Math.abs(l)/100,.42),h=Math.pow(n.fl*Math.abs(c)/100,.42),f=Math.pow(n.fl*Math.abs(d)/100,.42),g=hi(l)*400*u/(u+27.13),b=hi(c)*400*h/(h+27.13),w=hi(d)*400*f/(f+27.13),x=(11*g+-12*b+w)/11,m=(g+b-2*w)/9,p=(20*g+20*b+21*w)/20,y=(40*g+20*b+w)/20,_=Math.atan2(m,x)*180/Math.PI,E=_<0?_+360:_>=360?_-360:_,S=E*Math.PI/180,A=y*n.nbb,k=100*Math.pow(A/n.aw,n.c*n.z),T=4/n.c*Math.sqrt(k/100)*(n.aw+4)*n.fLRoot,$=E<20.14?E+360:E,I=1/4*(Math.cos($*Math.PI/180+2)+3.8),N=5e4/13*I*n.nc*n.ncb*Math.sqrt(x*x+m*m)/(p+.305),M=Math.pow(N,.9)*Math.pow(1.64-Math.pow(.29,n.n),.73),X=M*Math.sqrt(k/100),q=X*n.fLRoot,he=50*Math.sqrt(M*n.c/(n.aw+4)),ve=(1+100*.007)*k/(1+.007*k),z=Math.log(1+.0228*q)/.0228,U=z*Math.cos(S),V=z*Math.sin(S);return new At(E,X,k,T,q,he,ve,U,V)}xyzInViewingConditions(t){const i=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),r=Math.pow(i/Math.pow(1.64-Math.pow(.29,t.n),.73),1/.9),n=this.hue*Math.PI/180,s=.25*(Math.cos(n+2)+3.8),o=t.aw*Math.pow(this.j/100,1/t.c/t.z),a=s*(5e4/13)*t.nc*t.ncb,l=o/t.nbb,c=Math.sin(n),d=Math.cos(n),u=23*(l+.305)*r/(23*a+11*r*d+108*r*c),h=u*d,f=u*c,g=(460*l+451*h+288*f)/1403,b=(460*l-891*h-261*f)/1403,w=(460*l-220*h-6300*f)/1403,x=Math.max(0,27.13*Math.abs(g)/(400-Math.abs(g))),m=hi(g)*(100/t.fl)*Math.pow(x,1/.42),p=Math.max(0,27.13*Math.abs(b)/(400-Math.abs(b))),y=hi(b)*(100/t.fl)*Math.pow(p,1/.42),C=Math.max(0,27.13*Math.abs(w)/(400-Math.abs(w))),_=hi(w)*(100/t.fl)*Math.pow(C,1/.42),E=m/t.rgbD[0],S=y/t.rgbD[1],A=_/t.rgbD[2],k=1.86206786*E-1.01125463*S+.14918677*A,T=.38752654*E+.62144744*S-.00897398*A,$=-.0158415*E-.03412294*S+1.04996444*A;return[k,T,$]}}/** * @license * Copyright 2021 Google LLC * @@ -291,7 +291,7 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class ue{static sanitizeRadians(t){return(t+Math.PI*8)%(Math.PI*2)}static trueDelinearized(t){const i=t/100;let r=0;return i<=.0031308?r=i*12.92:r=1.055*Math.pow(i,1/2.4)-.055,r*255}static chromaticAdaptation(t){const i=Math.pow(Math.abs(t),.42);return hi(t)*400*i/(i+27.13)}static hueOf(t){const i=Jh(t,ue.SCALED_DISCOUNT_FROM_LINRGB),r=ue.chromaticAdaptation(i[0]),n=ue.chromaticAdaptation(i[1]),s=ue.chromaticAdaptation(i[2]),o=(11*r+-12*n+s)/11,a=(r+n-2*s)/9;return Math.atan2(a,o)}static areInCyclicOrder(t,i,r){const n=ue.sanitizeRadians(i-t),s=ue.sanitizeRadians(r-t);return n100.01||k[1]>100.01||k[2]>100.01?0:Vm(k);n=n-(L-r)*n/(2*L)}return 0}static solveToInt(t,i,r){if(i<1e-4||r<1e-4||r>99.9999)return U_(r);t=Np(t);const n=t/180*Math.PI,s=pn(r),o=ue.findResultByJ(n,i,s);if(o!==0)return o;const a=ue.bisectToLimit(s,n);return Vm(a)}static solveToCam(t,i,r){return At.fromInt(ue.solveToInt(t,i,r))}}ue.SCALED_DISCOUNT_FROM_LINRGB=[[.001200833568784504,.002389694492170889,.0002795742885861124],[.0005891086651375999,.0029785502573438758,.0003270666104008398],[.00010146692491640572,.0005364214359186694,.0032979401770712076]];ue.LINRGB_FROM_SCALED_DISCOUNT=[[1373.2198709594231,-1100.4251190754821,-7.278681089101213],[-271.815969077903,559.6580465940733,-32.46047482791194],[1.9622899599665666,-57.173814538844006,308.7233197812385]];ue.Y_FROM_LINRGB=[.2126,.7152,.0722];ue.CRITICAL_PLANES=[.015176349177441876,.045529047532325624,.07588174588720938,.10623444424209313,.13658714259697685,.16693984095186062,.19729253930674434,.2276452376616281,.2579979360165119,.28835063437139563,.3188300904430532,.350925934958123,.3848314933096426,.42057480301049466,.458183274052838,.4976837250274023,.5391024159806381,.5824650784040898,.6277969426914107,.6751227633498623,.7244668422128921,.775853049866786,.829304845476233,.8848452951698498,.942497089126609,1.0022825574869039,1.0642236851973577,1.1283421258858297,1.1946592148522128,1.2631959812511864,1.3339731595349034,1.407011200216447,1.4823302800086415,1.5599503113873272,1.6398909516233677,1.7221716113234105,1.8068114625156377,1.8938294463134073,1.9832442801866852,2.075074464868551,2.1693382909216234,2.2660538449872063,2.36523901573795,2.4669114995532007,2.5710888059345764,2.6777882626779785,2.7870270208169257,2.898822059350997,3.0131901897720907,3.1301480604002863,3.2497121605402226,3.3718988244681087,3.4967242352587946,3.624204428461639,3.754355295633311,3.887192587735158,4.022731918402185,4.160988767090289,4.301978482107941,4.445716283538092,4.592217266055746,4.741496401646282,4.893568542229298,5.048448422192488,5.20615066083972,5.3666897647573375,5.5300801301023865,5.696336044816294,5.865471690767354,6.037501145825082,6.212438385869475,6.390297286737924,6.571091626112461,6.7548350853498045,6.941541251256611,7.131223617812143,7.323895587840543,7.5195704746346665,7.7182615035334345,7.919981813454504,8.124744458384042,8.332562408825165,8.543448553206703,8.757415699253682,8.974476575321063,9.194643831691977,9.417930041841839,9.644347703669503,9.873909240696694,10.106627003236781,10.342513269534024,10.58158024687427,10.8238400726681,11.069304815507364,11.317986476196008,11.569896988756009,11.825048221409341,12.083451977536606,12.345119996613247,12.610063955123938,12.878295467455942,13.149826086772048,13.42466730586372,13.702830557985108,13.984327217668513,14.269168601521828,14.55736596900856,14.848930523210871,15.143873411576273,15.44220572664832,15.743938506781891,16.04908273684337,16.35764934889634,16.66964922287304,16.985093187232053,17.30399201960269,17.62635644741625,17.95219714852476,18.281524751807332,18.614349837764564,18.95068293910138,19.290534541298456,19.633915083172692,19.98083495742689,20.331304511189067,20.685334046541502,21.042933821039977,21.404114048223256,21.76888489811322,22.137256497705877,22.50923893145328,22.884842241736916,23.264076429332462,23.6469514538663,24.033477234264016,24.42366364919083,24.817520537484558,25.21505769858089,25.61628489293138,26.021211842414342,26.429848230738664,26.842203703840827,27.258287870275353,27.678110301598522,28.10168053274597,28.529008062403893,28.96010235337422,29.39497283293396,29.83362889318845,30.276079891419332,30.722335150426627,31.172403958865512,31.62629557157785,32.08401920991837,32.54558406207592,33.010999283389665,33.4802739966603,33.953417292456834,34.430438229418264,34.911345834551085,35.39614910352207,35.88485700094671,36.37747846067349,36.87402238606382,37.37449765026789,37.87891309649659,38.38727753828926,38.89959975977785,39.41588851594697,39.93615253289054,40.460400508064545,40.98864111053629,41.520882981230194,42.05713473317016,42.597404951718396,43.141702194811224,43.6900349931913,44.24241185063697,44.798841244188324,45.35933162437017,45.92389141541209,46.49252901546552,47.065252796817916,47.64207110610409,48.22299226451468,48.808024568002054,49.3971762874833,49.9904556690408,50.587870934119984,51.189430279724725,51.79514187861014,52.40501387947288,53.0190544071392,53.637271562750364,54.259673423945976,54.88626804504493,55.517063457223934,56.15206766869424,56.79128866487574,57.43473440856916,58.08241284012621,58.734331877617365,59.39049941699807,60.05092333227251,60.715611475655585,61.38457167773311,62.057811747619894,62.7353394731159,63.417162620860914,64.10328893648692,64.79372614476921,65.48848194977529,66.18756403501224,66.89098006357258,67.59873767827808,68.31084450182222,69.02730813691093,69.74813616640164,70.47333615344107,71.20291564160104,71.93688215501312,72.67524319850172,73.41800625771542,74.16517879925733,74.9167682708136,75.67278210128072,76.43322770089146,77.1981124613393,77.96744375590167,78.74122893956174,79.51947534912904,80.30219030335869,81.08938110306934,81.88105503125999,82.67721935322541,83.4778813166706,84.28304815182372,85.09272707154808,85.90692527145302,86.72564993000343,87.54890820862819,88.3767072518277,89.2090541872801,90.04595612594655,90.88742016217518,91.73345337380438,92.58406282226491,93.43925555268066,94.29903859396902,95.16341895893969,96.03240364439274,96.9059996312159,97.78421388448044,98.6670533535366,99.55452497210776];/** + */class ue{static sanitizeRadians(t){return(t+Math.PI*8)%(Math.PI*2)}static trueDelinearized(t){const i=t/100;let r=0;return i<=.0031308?r=i*12.92:r=1.055*Math.pow(i,1/2.4)-.055,r*255}static chromaticAdaptation(t){const i=Math.pow(Math.abs(t),.42);return hi(t)*400*i/(i+27.13)}static hueOf(t){const i=Jh(t,ue.SCALED_DISCOUNT_FROM_LINRGB),r=ue.chromaticAdaptation(i[0]),n=ue.chromaticAdaptation(i[1]),s=ue.chromaticAdaptation(i[2]),o=(11*r+-12*n+s)/11,a=(r+n-2*s)/9;return Math.atan2(a,o)}static areInCyclicOrder(t,i,r){const n=ue.sanitizeRadians(i-t),s=ue.sanitizeRadians(r-t);return n100.01||k[1]>100.01||k[2]>100.01?0:Vm(k);n=n-(L-r)*n/(2*L)}return 0}static solveToInt(t,i,r){if(i<1e-4||r<1e-4||r>99.9999)return U_(r);t=Np(t);const n=t/180*Math.PI,s=pn(r),o=ue.findResultByJ(n,i,s);if(o!==0)return o;const a=ue.bisectToLimit(s,n);return Vm(a)}static solveToCam(t,i,r){return At.fromInt(ue.solveToInt(t,i,r))}}ue.SCALED_DISCOUNT_FROM_LINRGB=[[.001200833568784504,.002389694492170889,.0002795742885861124],[.0005891086651375999,.0029785502573438758,.0003270666104008398],[.00010146692491640572,.0005364214359186694,.0032979401770712076]];ue.LINRGB_FROM_SCALED_DISCOUNT=[[1373.2198709594231,-1100.4251190754821,-7.278681089101213],[-271.815969077903,559.6580465940733,-32.46047482791194],[1.9622899599665666,-57.173814538844006,308.7233197812385]];ue.Y_FROM_LINRGB=[.2126,.7152,.0722];ue.CRITICAL_PLANES=[.015176349177441876,.045529047532325624,.07588174588720938,.10623444424209313,.13658714259697685,.16693984095186062,.19729253930674434,.2276452376616281,.2579979360165119,.28835063437139563,.3188300904430532,.350925934958123,.3848314933096426,.42057480301049466,.458183274052838,.4976837250274023,.5391024159806381,.5824650784040898,.6277969426914107,.6751227633498623,.7244668422128921,.775853049866786,.829304845476233,.8848452951698498,.942497089126609,1.0022825574869039,1.0642236851973577,1.1283421258858297,1.1946592148522128,1.2631959812511864,1.3339731595349034,1.407011200216447,1.4823302800086415,1.5599503113873272,1.6398909516233677,1.7221716113234105,1.8068114625156377,1.8938294463134073,1.9832442801866852,2.075074464868551,2.1693382909216234,2.2660538449872063,2.36523901573795,2.4669114995532007,2.5710888059345764,2.6777882626779785,2.7870270208169257,2.898822059350997,3.0131901897720907,3.1301480604002863,3.2497121605402226,3.3718988244681087,3.4967242352587946,3.624204428461639,3.754355295633311,3.887192587735158,4.022731918402185,4.160988767090289,4.301978482107941,4.445716283538092,4.592217266055746,4.741496401646282,4.893568542229298,5.048448422192488,5.20615066083972,5.3666897647573375,5.5300801301023865,5.696336044816294,5.865471690767354,6.037501145825082,6.212438385869475,6.390297286737924,6.571091626112461,6.7548350853498045,6.941541251256611,7.131223617812143,7.323895587840543,7.5195704746346665,7.7182615035334345,7.919981813454504,8.124744458384042,8.332562408825165,8.543448553206703,8.757415699253682,8.974476575321063,9.194643831691977,9.417930041841839,9.644347703669503,9.873909240696694,10.106627003236781,10.342513269534024,10.58158024687427,10.8238400726681,11.069304815507364,11.317986476196008,11.569896988756009,11.825048221409341,12.083451977536606,12.345119996613247,12.610063955123938,12.878295467455942,13.149826086772048,13.42466730586372,13.702830557985108,13.984327217668513,14.269168601521828,14.55736596900856,14.848930523210871,15.143873411576273,15.44220572664832,15.743938506781891,16.04908273684337,16.35764934889634,16.66964922287304,16.985093187232053,17.30399201960269,17.62635644741625,17.95219714852476,18.281524751807332,18.614349837764564,18.95068293910138,19.290534541298456,19.633915083172692,19.98083495742689,20.331304511189067,20.685334046541502,21.042933821039977,21.404114048223256,21.76888489811322,22.137256497705877,22.50923893145328,22.884842241736916,23.264076429332462,23.6469514538663,24.033477234264016,24.42366364919083,24.817520537484558,25.21505769858089,25.61628489293138,26.021211842414342,26.429848230738664,26.842203703840827,27.258287870275353,27.678110301598522,28.10168053274597,28.529008062403893,28.96010235337422,29.39497283293396,29.83362889318845,30.276079891419332,30.722335150426627,31.172403958865512,31.62629557157785,32.08401920991837,32.54558406207592,33.010999283389665,33.4802739966603,33.953417292456834,34.430438229418264,34.911345834551085,35.39614910352207,35.88485700094671,36.37747846067349,36.87402238606382,37.37449765026789,37.87891309649659,38.38727753828926,38.89959975977785,39.41588851594697,39.93615253289054,40.460400508064545,40.98864111053629,41.520882981230194,42.05713473317016,42.597404951718396,43.141702194811224,43.6900349931913,44.24241185063697,44.798841244188324,45.35933162437017,45.92389141541209,46.49252901546552,47.065252796817916,47.64207110610409,48.22299226451468,48.808024568002054,49.3971762874833,49.9904556690408,50.587870934119984,51.189430279724725,51.79514187861014,52.40501387947288,53.0190544071392,53.637271562750364,54.259673423945976,54.88626804504493,55.517063457223934,56.15206766869424,56.79128866487574,57.43473440856916,58.08241284012621,58.734331877617365,59.39049941699807,60.05092333227251,60.715611475655585,61.38457167773311,62.057811747619894,62.7353394731159,63.417162620860914,64.10328893648692,64.79372614476921,65.48848194977529,66.18756403501224,66.89098006357258,67.59873767827808,68.31084450182222,69.02730813691093,69.74813616640164,70.47333615344107,71.20291564160104,71.93688215501312,72.67524319850172,73.41800625771542,74.16517879925733,74.9167682708136,75.67278210128072,76.43322770089146,77.1981124613393,77.96744375590167,78.74122893956174,79.51947534912904,80.30219030335869,81.08938110306934,81.88105503125999,82.67721935322541,83.4778813166706,84.28304815182372,85.09272707154808,85.90692527145302,86.72564993000343,87.54890820862819,88.3767072518277,89.2090541872801,90.04595612594655,90.88742016217518,91.73345337380438,92.58406282226491,93.43925555268066,94.29903859396902,95.16341895893969,96.03240364439274,96.9059996312159,97.78421388448044,98.6670533535366,99.55452497210776];/** * @license * Copyright 2021 Google LLC * @@ -366,7 +366,7 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class ie{static fromPalette(t){return new ie(t.name??"",t.palette,t.tone,t.isBackground??!1,t.background,t.secondBackground,t.contrastCurve,t.toneDeltaPair)}constructor(t,i,r,n,s,o,a,l){if(this.name=t,this.palette=i,this.tone=r,this.isBackground=n,this.background=s,this.secondBackground=o,this.contrastCurve=a,this.toneDeltaPair=l,this.hctCache=new Map,!s&&o)throw new Error(`Color ${t} has secondBackgrounddefined, but background is not defined.`);if(!s&&a)throw new Error(`Color ${t} has contrastCurvedefined, but background is not defined.`);if(s&&!a)throw new Error(`Color ${t} has backgrounddefined, but contrastCurve is not defined.`)}getArgb(t){return this.getHct(t).toInt()}getHct(t){const i=this.hctCache.get(t);if(i!=null)return i;const r=this.getTone(t),n=this.palette(t).getHct(r);return this.hctCache.size>4&&this.hctCache.clear(),this.hctCache.set(t,n),n}getTone(t){const i=t.contrastLevel<0;if(this.toneDeltaPair){const r=this.toneDeltaPair(t),n=r.roleA,s=r.roleB,o=r.delta,a=r.polarity,l=r.stayTogether,d=this.background(t).getTone(t),u=a==="nearer"||a==="lighter"&&!t.isDark||a==="darker"&&t.isDark,h=u?n:s,f=u?s:n,g=this.name===h.name,b=t.isDark?1:-1,w=h.contrastCurve.getContrast(t.contrastLevel),x=f.contrastCurve.getContrast(t.contrastLevel),m=h.tone(t);let p=Ct.ratioOfTones(d,m)>=w?m:ie.foregroundTone(d,w);const y=f.tone(t);let _=Ct.ratioOfTones(d,y)>=x?y:ie.foregroundTone(d,x);return i&&(p=ie.foregroundTone(d,w),_=ie.foregroundTone(d,x)),(_-p)*b>=o||(_=qc(0,100,p+o*b),(_-p)*b>=o||(p=qc(0,100,_-o*b))),50<=p&&p<60?b>0?(p=60,_=Math.max(_,p+o*b)):(p=49,_=Math.min(_,p+o*b)):50<=_&&_<60&&(l?b>0?(p=60,_=Math.max(_,p+o*b)):(p=49,_=Math.min(_,p+o*b)):b>0?_=60:_=49),g?p:_}else{let r=this.tone(t);if(this.background==null)return r;const n=this.background(t).getTone(t),s=this.contrastCurve.getContrast(t.contrastLevel);if(Ct.ratioOfTones(n,r)>=s||(r=ie.foregroundTone(n,s)),i&&(r=ie.foregroundTone(n,s)),this.isBackground&&50<=r&&r<60&&(Ct.ratioOfTones(49,n)>=s?r=49:r=60),this.secondBackground){const[o,a]=[this.background,this.secondBackground],[l,c]=[o(t).getTone(t),a(t).getTone(t)],[d,u]=[Math.max(l,c),Math.min(l,c)];if(Ct.ratioOfTones(d,r)>=s&&Ct.ratioOfTones(u,r)>=s)return r;const h=Ct.lighter(d,s),f=Ct.darker(u,s),g=[];return h!==-1&&g.push(h),f!==-1&&g.push(f),ie.tonePrefersLightForeground(l)||ie.tonePrefersLightForeground(c)?h<0?100:h:g.length===1?g[0]:f<0?0:f}return r}}static foregroundTone(t,i){const r=Ct.lighterUnsafe(t,i),n=Ct.darkerUnsafe(t,i),s=Ct.ratioOfTones(r,t),o=Ct.ratioOfTones(n,t);if(ie.tonePrefersLightForeground(t)){const l=Math.abs(s-o)<.1&&s=i||s>=o||l?r:n}else return o>=i||o>=s?n:r}static tonePrefersLightForeground(t){return Math.round(t)<60}static toneAllowsLightForeground(t){return Math.round(t)<=49}static enableLightForeground(t){return ie.tonePrefersLightForeground(t)&&!ie.toneAllowsLightForeground(t)?49:t}}/** + */class ie{static fromPalette(t){return new ie(t.name??"",t.palette,t.tone,t.isBackground??!1,t.background,t.secondBackground,t.contrastCurve,t.toneDeltaPair)}constructor(t,i,r,n,s,o,a,l){if(this.name=t,this.palette=i,this.tone=r,this.isBackground=n,this.background=s,this.secondBackground=o,this.contrastCurve=a,this.toneDeltaPair=l,this.hctCache=new Map,!s&&o)throw new Error(`Color ${t} has secondBackgrounddefined, but background is not defined.`);if(!s&&a)throw new Error(`Color ${t} has contrastCurvedefined, but background is not defined.`);if(s&&!a)throw new Error(`Color ${t} has backgrounddefined, but contrastCurve is not defined.`)}getArgb(t){return this.getHct(t).toInt()}getHct(t){const i=this.hctCache.get(t);if(i!=null)return i;const r=this.getTone(t),n=this.palette(t).getHct(r);return this.hctCache.size>4&&this.hctCache.clear(),this.hctCache.set(t,n),n}getTone(t){const i=t.contrastLevel<0;if(this.toneDeltaPair){const r=this.toneDeltaPair(t),n=r.roleA,s=r.roleB,o=r.delta,a=r.polarity,l=r.stayTogether,d=this.background(t).getTone(t),u=a==="nearer"||a==="lighter"&&!t.isDark||a==="darker"&&t.isDark,h=u?n:s,f=u?s:n,g=this.name===h.name,b=t.isDark?1:-1,w=h.contrastCurve.getContrast(t.contrastLevel),x=f.contrastCurve.getContrast(t.contrastLevel),m=h.tone(t);let p=Ct.ratioOfTones(d,m)>=w?m:ie.foregroundTone(d,w);const y=f.tone(t);let C=Ct.ratioOfTones(d,y)>=x?y:ie.foregroundTone(d,x);return i&&(p=ie.foregroundTone(d,w),C=ie.foregroundTone(d,x)),(C-p)*b>=o||(C=qc(0,100,p+o*b),(C-p)*b>=o||(p=qc(0,100,C-o*b))),50<=p&&p<60?b>0?(p=60,C=Math.max(C,p+o*b)):(p=49,C=Math.min(C,p+o*b)):50<=C&&C<60&&(l?b>0?(p=60,C=Math.max(C,p+o*b)):(p=49,C=Math.min(C,p+o*b)):b>0?C=60:C=49),g?p:C}else{let r=this.tone(t);if(this.background==null)return r;const n=this.background(t).getTone(t),s=this.contrastCurve.getContrast(t.contrastLevel);if(Ct.ratioOfTones(n,r)>=s||(r=ie.foregroundTone(n,s)),i&&(r=ie.foregroundTone(n,s)),this.isBackground&&50<=r&&r<60&&(Ct.ratioOfTones(49,n)>=s?r=49:r=60),this.secondBackground){const[o,a]=[this.background,this.secondBackground],[l,c]=[o(t).getTone(t),a(t).getTone(t)],[d,u]=[Math.max(l,c),Math.min(l,c)];if(Ct.ratioOfTones(d,r)>=s&&Ct.ratioOfTones(u,r)>=s)return r;const h=Ct.lighter(d,s),f=Ct.darker(u,s),g=[];return h!==-1&&g.push(h),f!==-1&&g.push(f),ie.tonePrefersLightForeground(l)||ie.tonePrefersLightForeground(c)?h<0?100:h:g.length===1?g[0]:f<0?0:f}return r}}static foregroundTone(t,i){const r=Ct.lighterUnsafe(t,i),n=Ct.darkerUnsafe(t,i),s=Ct.ratioOfTones(r,t),o=Ct.ratioOfTones(n,t);if(ie.tonePrefersLightForeground(t)){const l=Math.abs(s-o)<.1&&s=i||s>=o||l?r:n}else return o>=i||o>=s?n:r}static tonePrefersLightForeground(t){return Math.round(t)<60}static toneAllowsLightForeground(t){return Math.round(t)<=49}static enableLightForeground(t){return ie.tonePrefersLightForeground(t)&&!ie.toneAllowsLightForeground(t)?49:t}}/** * @license * Copyright 2022 Google LLC * @@ -520,7 +520,7 @@ .mdui-theme-auto.${a} { ${o("dark",c=>`--mdui-color-${c}: var(--mdui-color-${c}-dark);`)} } -}`;G_(r),O(i.head).append(``),r.addClass(a)},J_=(e,t)=>{const i=lb(e);Q_(i)},Km="mdui.functions.snackbar.";let ql;const tu=e=>{const t=new Ci,i=O(t);return Object.entries(e).forEach(([r,n])=>{if(r==="message")t.innerHTML=n;else if(["onClick","onActionClick","onOpen","onOpened","onClose","onClosed"].includes(r)){const s=Ha(r.slice(2));i.on(s,()=>{if(r==="onActionClick"){const o=(e.onActionClick??l9).call(t,t);I_(o)?(t.actionLoading=!0,o.then(()=>{t.open=!1}).finally(()=>{t.actionLoading=!1})):o!==!1&&(t.open=!1)}else n.call(t,t)})}else t[r]=n}),i.appendTo("body").on("closed",()=>{i.remove(),e.queue&&(ql=void 0,P_(Km+e.queue))}),e.queue?ql?D_(Km+e.queue,()=>{t.open=!0,ql=t}):(setTimeout(()=>{t.open=!0}),ql=t):setTimeout(()=>{t.open=!0}),t};let rf=class extends nt{render(){return Ut('')}};rf.styles=Ht;rf=v([se("mdui-icon-menu")],rf);const ek=["id"],tk=Re("div",{class:"ImScrollBarThumb"},null,-1),ik=[tk],rk={__name:"ImScrollBar",props:{ContainerId:String,ContentContainerId:String,Direction:String,Length:String,Width:String,PBottom:String,PRight:String,PMarginOne:String,PMarginTwo:String,Id:String},setup(e){const t=e;var i=ut(!1),r=ut(!1),n=ut(!1);function s(o){if(i.value){document.getElementById(t.Id).style.opacity="0";return}o.type=="mouseover"||n.value?(document.getElementById(t.Id).style.opacity="0.701",r.value=!0):(o.type=="mouseout"||!n.value)&&(document.getElementById(t.Id).style.opacity="0.4",setTimeout(function(){document.getElementById(t.Id).style.opacity!="0.701"&&(document.getElementById(t.Id).style.opacity="0",r.value=!1)},1e3))}return Kf(()=>{}),Xr(()=>{var o=document.getElementById(t.Id),a=document.getElementById(t.ContentContainerId),l=document.getElementById(t.ContainerId);t.Direction=="Left"?(o.style.float="left",o.style.height=t.Length,o.style.width=t.Width,o.style.bottom=t.PBottom,o.style.right=t.PRight,o.style.marginBottom=t.PMarginOne,o.style.marginTop=t.PMarginTwo):t.Direction=="Right"?(o.style.float="right",o.style.height=t.Length,o.style.width=t.Width,o.style.bottom=t.PBottom,o.style.right=t.PRight,o.style.marginBottom=t.PMarginOne,o.style.marginTop=t.PMarginTwo):(t.Direction=="Top"||t.Direction=="Bottom")&&(o.style.float="left",o.style.width=t.Length,o.style.height=t.Width,o.style.bottom=t.PBottom,o.style.right=t.PRight,o.style.marginLeft=t.PMarginOne,o.style.marginRight=t.PMarginTwo);const c=ut("0%");var d;const u=new ResizeObserver(C=>{C.forEach(E=>{const A=E.target;if(A.id==t.ContentContainerId){const q=l;var S=A.scrollHeight,k=A.scrollWidth,T=q.clientHeight,$=q.clientWidth}if(A.id==t.ContainerId){const q=a;var S=q.scrollHeight,k=q.scrollWidth,T=A.clientHeight,$=A.clientWidth}var I,L;t.Direction=="Left"||t.Direction=="Right"?(I=S,L=T):(t.Direction=="Top"||t.Direction=="Bottom")&&(I=k,L=$),I<=L?i.value=!0:i.value=!1;var N=L/I*100;if(I>L){var M=o.childNodes[0],X;t.Direction=="Left"||t.Direction=="Right"?(M.style.width="100%",M.style.height=N.toString()+"%",X=l.scrollTop/a.scrollHeight*100,M.style.top=X.toString()+"%"):(t.Direction=="Top"||t.Direction=="Bottom")&&(M.style.width=N.toString()+"%",M.style.height="100%",X=l.scrollLeft/a.scrollWidth*100,M.style.left=X.toString()+"%"),c.value=X,t.Direction=="Left"||t.Direction=="Right"?d=o.offsetHeight-M.offsetHeight:(t.Direction=="Top"||t.Direction=="Bottom")&&(d=o.offsetWidth-M.offsetWidth)}})});u.observe(l),u.observe(a);var h=o.childNodes[0],f,g,b=!0,w,x,m;function p(){function C(A){b||(A.preventDefault(),n.value=!0,s({type:"null"}),t.Direction=="Left"||t.Direction=="Right"?w=A.clientY-f+g:(t.Direction=="Top"||t.Direction=="Bottom")&&(w=A.clientX-f+g),w>=d&&(w=d),w<=0&&(w=0),t.Direction=="Left"||t.Direction=="Right"?(h.style.top=w+"px",x=w/o.offsetHeight,m=a.scrollHeight*x,l.scrollTop=m):(t.Direction=="Top"||t.Direction=="Bottom")&&(h.style.left=w+"px",x=w/o.offsetWidth,m=a.scrollWidth*x,l.scrollLeft=m))}function E(A){n.value=!1,s({type:"null"}),document.removeEventListener("mousemove",C),b=!0}document.addEventListener("mouseup",E,{once:!0}),document.addEventListener("mousemove",C)}h.addEventListener("mousedown",function(C){t.Direction=="Left"?(f=C.clientY,g=this.offsetTop):t.Direction=="Right"?(f=C.clientY,g=this.offsetTop):t.Direction=="Top"?(f=C.clientX,g=this.offsetLeft):t.Direction=="Bottom"&&(f=C.clientX,g=this.offsetLeft),b=!1,p()});var y=null;function _(C){var E;n.value=!0,s({type:"null"}),t.Direction=="Left"||t.Direction=="Right"?(E=l.scrollTop/a.scrollHeight*100,h.style.top=E.toString()+"%"):(t.Direction=="Top"||t.Direction=="Bottom")&&(E=l.scrollLeft/a.scrollWidth*100,h.style.left=E.toString()+"%"),b&&(clearTimeout(y),y=setTimeout(function(){n.value=!1,s({type:"null"})},200))}l.addEventListener("scroll",_)}),(o,a)=>(pi(),Vr("div",{class:"ImScrollBarTrack",id:t.Id,onMouseover:s,onMouseout:s},ik,40,ek))}},nk=["id"],sk=["name"],Qo={__name:"MdCard",props:{id:String,icon:String,Background:String,TextColor:String,Width:String,Height:String,Other:Object},setup(e){const t=e,i=ut({});return i.value={background:t.Background,width:t.Width,height:t.Height,...t.Other},(r,n)=>(pi(),Vr("mdui-card",{id:e.id,class:"baseCard",variant:"filled",style:ps(i.value)},[t.icon?(pi(),Vr("mdui-icon",{key:0,class:"cardIcon",name:t.icon,style:{"font-size":"140px"}},null,8,sk)):js("",!0),Re("div",{class:"cardContent",style:ps({color:t.TextColor,"z-index":5})},[bv(r.$slots,"default")],4)],12,nk))}};let nf=class extends nt{render(){return Ut('')}};nf.styles=Ht;nf=v([se("mdui-icon-autorenew--rounded")],nf);let sf=class extends nt{render(){return Ut('')}};sf.styles=Ht;sf=v([se("mdui-icon-do-not-disturb-alt--rounded")],sf);let of=class extends nt{render(){return Ut('')}};of.styles=Ht;of=v([se("mdui-icon-explore")],of);let af=class extends nt{render(){return Ut('')}};af.styles=Ht;af=v([se("mdui-icon-done--rounded")],af);var ok=Object.defineProperty,db=e=>{throw TypeError(e)},ak=(e,t,i)=>t in e?ok(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,kl=(e,t,i)=>ak(e,typeof t!="symbol"?t+"":t,i),ub=(e,t,i)=>t.has(e)||db("Cannot "+i),Ti=(e,t,i)=>(ub(e,t,"read from private field"),i?i.call(e):t.get(e)),iu=(e,t,i)=>t.has(e)?db("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),Hn=(e,t,i,r)=>(ub(e,t,"write to private field"),t.set(e,i),i),Jo,ea,Wt;const hb="3.7.7",lk=hb,Mo=typeof Buffer=="function",Wm=typeof TextDecoder=="function"?new TextDecoder:void 0,qm=typeof TextEncoder=="function"?new TextEncoder:void 0,ck="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",ta=Array.prototype.slice.call(ck),jl=(e=>{let t={};return e.forEach((i,r)=>t[i]=r),t})(ta),dk=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Lt=String.fromCharCode.bind(String),jm=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),fb=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),pb=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),mb=e=>{let t,i,r,n,s="";const o=e.length%3;for(let a=0;a255||(r=e.charCodeAt(a++))>255||(n=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");t=i<<16|r<<8|n,s+=ta[t>>18&63]+ta[t>>12&63]+ta[t>>6&63]+ta[t&63]}return o?s.slice(0,o-3)+"===".substring(o):s},Vp=typeof btoa=="function"?e=>btoa(e):Mo?e=>Buffer.from(e,"binary").toString("base64"):mb,lf=Mo?e=>Buffer.from(e).toString("base64"):e=>{let i=[];for(let r=0,n=e.length;rt?fb(lf(e)):lf(e),uk=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?Lt(192|t>>>6)+Lt(128|t&63):Lt(224|t>>>12&15)+Lt(128|t>>>6&63)+Lt(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return Lt(240|t>>>18&7)+Lt(128|t>>>12&63)+Lt(128|t>>>6&63)+Lt(128|t&63)}},hk=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,gb=e=>e.replace(hk,uk),Ym=Mo?e=>Buffer.from(e,"utf8").toString("base64"):qm?e=>lf(qm.encode(e)):e=>Vp(gb(e)),ao=(e,t=!1)=>t?fb(Ym(e)):Ym(e),Zm=e=>ao(e,!0),fk=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,pk=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),i=t-65536;return Lt((i>>>10)+55296)+Lt((i&1023)+56320);case 3:return Lt((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return Lt((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},vb=e=>e.replace(fk,pk),yb=e=>{if(e=e.replace(/\s+/g,""),!dk.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let t,i="",r,n;for(let s=0;s>16&255):n===64?Lt(t>>16&255,t>>8&255):Lt(t>>16&255,t>>8&255,t&255);return i},Kp=typeof atob=="function"?e=>atob(pb(e)):Mo?e=>Buffer.from(e,"base64").toString("binary"):yb,bb=Mo?e=>jm(Buffer.from(e,"base64")):e=>jm(Kp(e).split("").map(t=>t.charCodeAt(0))),wb=e=>bb(_b(e)),mk=Mo?e=>Buffer.from(e,"base64").toString("utf8"):Wm?e=>Wm.decode(bb(e)):e=>vb(Kp(e)),_b=e=>pb(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),cf=e=>mk(_b(e)),gk=e=>{if(typeof e!="string")return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},kb=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),Cb=function(){const e=(t,i)=>Object.defineProperty(String.prototype,t,kb(i));e("fromBase64",function(){return cf(this)}),e("toBase64",function(t){return ao(this,t)}),e("toBase64URI",function(){return ao(this,!0)}),e("toBase64URL",function(){return ao(this,!0)}),e("toUint8Array",function(){return wb(this)})},Eb=function(){const e=(t,i)=>Object.defineProperty(Uint8Array.prototype,t,kb(i));e("toBase64",function(t){return hc(this,t)}),e("toBase64URI",function(){return hc(this,!0)}),e("toBase64URL",function(){return hc(this,!0)})},vk=()=>{Cb(),Eb()},Ro={version:hb,VERSION:lk,atob:Kp,atobPolyfill:yb,btoa:Vp,btoaPolyfill:mb,fromBase64:cf,toBase64:ao,encode:ao,encodeURI:Zm,encodeURL:Zm,utob:gb,btou:vb,decode:cf,isValid:gk,fromUint8Array:hc,toUint8Array:wb,extendString:Cb,extendUint8Array:Eb,extendBuiltins:vk};var xe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yk(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function bk(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var i=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};i.prototype=t.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(i,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}),i}var xb={exports:{}};function wk(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var ru={exports:{}};const _k={},kk=Object.freeze(Object.defineProperty({__proto__:null,default:_k},Symbol.toStringTag,{value:"Module"})),Ck=bk(kk);var Xm;function De(){return Xm||(Xm=1,function(e,t){(function(i,r){e.exports=r()})(xe,function(){var i=i||function(r,n){var s;if(typeof window<"u"&&window.crypto&&(s=window.crypto),typeof self<"u"&&self.crypto&&(s=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(s=globalThis.crypto),!s&&typeof window<"u"&&window.msCrypto&&(s=window.msCrypto),!s&&typeof xe<"u"&&xe.crypto&&(s=xe.crypto),!s&&typeof wk=="function")try{s=Ck}catch{}var o=function(){if(s){if(typeof s.getRandomValues=="function")try{return s.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof s.randomBytes=="function")try{return s.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function m(){}return function(p){var y;return m.prototype=p,y=new m,m.prototype=null,y}}(),l={},c=l.lib={},d=c.Base=function(){return{extend:function(m){var p=a(this);return m&&p.mixIn(m),(!p.hasOwnProperty("init")||this.init===p.init)&&(p.init=function(){p.$super.init.apply(this,arguments)}),p.init.prototype=p,p.$super=this,p},create:function(){var m=this.extend();return m.init.apply(m,arguments),m},init:function(){},mixIn:function(m){for(var p in m)m.hasOwnProperty(p)&&(this[p]=m[p]);m.hasOwnProperty("toString")&&(this.toString=m.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),u=c.WordArray=d.extend({init:function(m,p){m=this.words=m||[],p!=n?this.sigBytes=p:this.sigBytes=m.length*4},toString:function(m){return(m||f).stringify(this)},concat:function(m){var p=this.words,y=m.words,_=this.sigBytes,C=m.sigBytes;if(this.clamp(),_%4)for(var E=0;E>>2]>>>24-E%4*8&255;p[_+E>>>2]|=A<<24-(_+E)%4*8}else for(var S=0;S>>2]=y[S>>>2];return this.sigBytes+=C,this},clamp:function(){var m=this.words,p=this.sigBytes;m[p>>>2]&=4294967295<<32-p%4*8,m.length=r.ceil(p/4)},clone:function(){var m=d.clone.call(this);return m.words=this.words.slice(0),m},random:function(m){for(var p=[],y=0;y>>2]>>>24-C%4*8&255;_.push((E>>>4).toString(16)),_.push((E&15).toString(16))}return _.join("")},parse:function(m){for(var p=m.length,y=[],_=0;_>>3]|=parseInt(m.substr(_,2),16)<<24-_%8*4;return new u.init(y,p/2)}},g=h.Latin1={stringify:function(m){for(var p=m.words,y=m.sigBytes,_=[],C=0;C>>2]>>>24-C%4*8&255;_.push(String.fromCharCode(E))}return _.join("")},parse:function(m){for(var p=m.length,y=[],_=0;_>>2]|=(m.charCodeAt(_)&255)<<24-_%4*8;return new u.init(y,p)}},b=h.Utf8={stringify:function(m){try{return decodeURIComponent(escape(g.stringify(m)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(m){return g.parse(unescape(encodeURIComponent(m)))}},w=c.BufferedBlockAlgorithm=d.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(m){typeof m=="string"&&(m=b.parse(m)),this._data.concat(m),this._nDataBytes+=m.sigBytes},_process:function(m){var p,y=this._data,_=y.words,C=y.sigBytes,E=this.blockSize,A=E*4,S=C/A;m?S=r.ceil(S):S=r.max((S|0)-this._minBufferSize,0);var k=S*E,T=r.min(k*4,C);if(k){for(var $=0;$>>2]|=l[u]<<24-u%4*8;o.call(this,d,c)}else o.apply(this,arguments)};a.prototype=s}}(),i.lib.WordArray})}(su)),su.exports}var ou={exports:{}},Jm;function xk(){return Jm||(Jm=1,function(e,t){(function(i,r){e.exports=r(De())})(xe,function(i){return function(){var r=i,n=r.lib,s=n.WordArray,o=r.enc;o.Utf16=o.Utf16BE={stringify:function(l){for(var c=l.words,d=l.sigBytes,u=[],h=0;h>>2]>>>16-h%4*8&65535;u.push(String.fromCharCode(f))}return u.join("")},parse:function(l){for(var c=l.length,d=[],u=0;u>>1]|=l.charCodeAt(u)<<16-u%2*16;return s.create(d,c*2)}},o.Utf16LE={stringify:function(l){for(var c=l.words,d=l.sigBytes,u=[],h=0;h>>2]>>>16-h%4*8&65535);u.push(String.fromCharCode(f))}return u.join("")},parse:function(l){for(var c=l.length,d=[],u=0;u>>1]|=a(l.charCodeAt(u)<<16-u%2*16);return s.create(d,c*2)}};function a(l){return l<<8&4278255360|l>>>8&16711935}}(),i.enc.Utf16})}(ou)),ou.exports}var au={exports:{}},e1;function Ps(){return e1||(e1=1,function(e,t){(function(i,r){e.exports=r(De())})(xe,function(i){return function(){var r=i,n=r.lib,s=n.WordArray,o=r.enc;o.Base64={stringify:function(l){var c=l.words,d=l.sigBytes,u=this._map;l.clamp();for(var h=[],f=0;f>>2]>>>24-f%4*8&255,b=c[f+1>>>2]>>>24-(f+1)%4*8&255,w=c[f+2>>>2]>>>24-(f+2)%4*8&255,x=g<<16|b<<8|w,m=0;m<4&&f+m*.75>>6*(3-m)&63));var p=u.charAt(64);if(p)for(;h.length%4;)h.push(p);return h.join("")},parse:function(l){var c=l.length,d=this._map,u=this._reverseMap;if(!u){u=this._reverseMap=[];for(var h=0;h>>6-f%4*2,w=g|b;u[h>>>2]|=w<<24-h%4*8,h++}return s.create(u,h)}}(),i.enc.Base64})}(au)),au.exports}var lu={exports:{}},t1;function Sk(){return t1||(t1=1,function(e,t){(function(i,r){e.exports=r(De())})(xe,function(i){return function(){var r=i,n=r.lib,s=n.WordArray,o=r.enc;o.Base64url={stringify:function(l,c){c===void 0&&(c=!0);var d=l.words,u=l.sigBytes,h=c?this._safe_map:this._map;l.clamp();for(var f=[],g=0;g>>2]>>>24-g%4*8&255,w=d[g+1>>>2]>>>24-(g+1)%4*8&255,x=d[g+2>>>2]>>>24-(g+2)%4*8&255,m=b<<16|w<<8|x,p=0;p<4&&g+p*.75>>6*(3-p)&63));var y=h.charAt(64);if(y)for(;f.length%4;)f.push(y);return f.join("")},parse:function(l,c){c===void 0&&(c=!0);var d=l.length,u=c?this._safe_map:this._map,h=this._reverseMap;if(!h){h=this._reverseMap=[];for(var f=0;f>>6-f%4*2,w=g|b;u[h>>>2]|=w<<24-h%4*8,h++}return s.create(u,h)}}(),i.enc.Base64url})}(lu)),lu.exports}var cu={exports:{}},i1;function Bs(){return i1||(i1=1,function(e,t){(function(i,r){e.exports=r(De())})(xe,function(i){return function(r){var n=i,s=n.lib,o=s.WordArray,a=s.Hasher,l=n.algo,c=[];(function(){for(var b=0;b<64;b++)c[b]=r.abs(r.sin(b+1))*4294967296|0})();var d=l.MD5=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(b,w){for(var x=0;x<16;x++){var m=w+x,p=b[m];b[m]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360}var y=this._hash.words,_=b[w+0],C=b[w+1],E=b[w+2],A=b[w+3],S=b[w+4],k=b[w+5],T=b[w+6],$=b[w+7],I=b[w+8],L=b[w+9],N=b[w+10],M=b[w+11],X=b[w+12],q=b[w+13],he=b[w+14],ve=b[w+15],z=y[0],U=y[1],V=y[2],K=y[3];z=u(z,U,V,K,_,7,c[0]),K=u(K,z,U,V,C,12,c[1]),V=u(V,K,z,U,E,17,c[2]),U=u(U,V,K,z,A,22,c[3]),z=u(z,U,V,K,S,7,c[4]),K=u(K,z,U,V,k,12,c[5]),V=u(V,K,z,U,T,17,c[6]),U=u(U,V,K,z,$,22,c[7]),z=u(z,U,V,K,I,7,c[8]),K=u(K,z,U,V,L,12,c[9]),V=u(V,K,z,U,N,17,c[10]),U=u(U,V,K,z,M,22,c[11]),z=u(z,U,V,K,X,7,c[12]),K=u(K,z,U,V,q,12,c[13]),V=u(V,K,z,U,he,17,c[14]),U=u(U,V,K,z,ve,22,c[15]),z=h(z,U,V,K,C,5,c[16]),K=h(K,z,U,V,T,9,c[17]),V=h(V,K,z,U,M,14,c[18]),U=h(U,V,K,z,_,20,c[19]),z=h(z,U,V,K,k,5,c[20]),K=h(K,z,U,V,N,9,c[21]),V=h(V,K,z,U,ve,14,c[22]),U=h(U,V,K,z,S,20,c[23]),z=h(z,U,V,K,L,5,c[24]),K=h(K,z,U,V,he,9,c[25]),V=h(V,K,z,U,A,14,c[26]),U=h(U,V,K,z,I,20,c[27]),z=h(z,U,V,K,q,5,c[28]),K=h(K,z,U,V,E,9,c[29]),V=h(V,K,z,U,$,14,c[30]),U=h(U,V,K,z,X,20,c[31]),z=f(z,U,V,K,k,4,c[32]),K=f(K,z,U,V,I,11,c[33]),V=f(V,K,z,U,M,16,c[34]),U=f(U,V,K,z,he,23,c[35]),z=f(z,U,V,K,C,4,c[36]),K=f(K,z,U,V,S,11,c[37]),V=f(V,K,z,U,$,16,c[38]),U=f(U,V,K,z,N,23,c[39]),z=f(z,U,V,K,q,4,c[40]),K=f(K,z,U,V,_,11,c[41]),V=f(V,K,z,U,A,16,c[42]),U=f(U,V,K,z,T,23,c[43]),z=f(z,U,V,K,L,4,c[44]),K=f(K,z,U,V,X,11,c[45]),V=f(V,K,z,U,ve,16,c[46]),U=f(U,V,K,z,E,23,c[47]),z=g(z,U,V,K,_,6,c[48]),K=g(K,z,U,V,$,10,c[49]),V=g(V,K,z,U,he,15,c[50]),U=g(U,V,K,z,k,21,c[51]),z=g(z,U,V,K,X,6,c[52]),K=g(K,z,U,V,A,10,c[53]),V=g(V,K,z,U,N,15,c[54]),U=g(U,V,K,z,C,21,c[55]),z=g(z,U,V,K,I,6,c[56]),K=g(K,z,U,V,ve,10,c[57]),V=g(V,K,z,U,T,15,c[58]),U=g(U,V,K,z,q,21,c[59]),z=g(z,U,V,K,S,6,c[60]),K=g(K,z,U,V,M,10,c[61]),V=g(V,K,z,U,E,15,c[62]),U=g(U,V,K,z,L,21,c[63]),y[0]=y[0]+z|0,y[1]=y[1]+U|0,y[2]=y[2]+V|0,y[3]=y[3]+K|0},_doFinalize:function(){var b=this._data,w=b.words,x=this._nDataBytes*8,m=b.sigBytes*8;w[m>>>5]|=128<<24-m%32;var p=r.floor(x/4294967296),y=x;w[(m+64>>>9<<4)+15]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,w[(m+64>>>9<<4)+14]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,b.sigBytes=(w.length+1)*4,this._process();for(var _=this._hash,C=_.words,E=0;E<4;E++){var A=C[E];C[E]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360}return _},clone:function(){var b=a.clone.call(this);return b._hash=this._hash.clone(),b}});function u(b,w,x,m,p,y,_){var C=b+(w&x|~w&m)+p+_;return(C<>>32-y)+w}function h(b,w,x,m,p,y,_){var C=b+(w&m|x&~m)+p+_;return(C<>>32-y)+w}function f(b,w,x,m,p,y,_){var C=b+(w^x^m)+p+_;return(C<>>32-y)+w}function g(b,w,x,m,p,y,_){var C=b+(x^(w|~m))+p+_;return(C<>>32-y)+w}n.MD5=a._createHelper(d),n.HmacMD5=a._createHmacHelper(d)}(Math),i.MD5})}(cu)),cu.exports}var du={exports:{}},r1;function Sb(){return r1||(r1=1,function(e,t){(function(i,r){e.exports=r(De())})(xe,function(i){return function(){var r=i,n=r.lib,s=n.WordArray,o=n.Hasher,a=r.algo,l=[],c=a.SHA1=o.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(d,u){for(var h=this._hash.words,f=h[0],g=h[1],b=h[2],w=h[3],x=h[4],m=0;m<80;m++){if(m<16)l[m]=d[u+m]|0;else{var p=l[m-3]^l[m-8]^l[m-14]^l[m-16];l[m]=p<<1|p>>>31}var y=(f<<5|f>>>27)+x+l[m];m<20?y+=(g&b|~g&w)+1518500249:m<40?y+=(g^b^w)+1859775393:m<60?y+=(g&b|g&w|b&w)-1894007588:y+=(g^b^w)-899497514,x=w,w=b,b=g<<30|g>>>2,g=f,f=y}h[0]=h[0]+f|0,h[1]=h[1]+g|0,h[2]=h[2]+b|0,h[3]=h[3]+w|0,h[4]=h[4]+x|0},_doFinalize:function(){var d=this._data,u=d.words,h=this._nDataBytes*8,f=d.sigBytes*8;return u[f>>>5]|=128<<24-f%32,u[(f+64>>>9<<4)+14]=Math.floor(h/4294967296),u[(f+64>>>9<<4)+15]=h,d.sigBytes=u.length*4,this._process(),this._hash},clone:function(){var d=o.clone.call(this);return d._hash=this._hash.clone(),d}});r.SHA1=o._createHelper(c),r.HmacSHA1=o._createHmacHelper(c)}(),i.SHA1})}(du)),du.exports}var uu={exports:{}},n1;function Wp(){return n1||(n1=1,function(e,t){(function(i,r){e.exports=r(De())})(xe,function(i){return function(r){var n=i,s=n.lib,o=s.WordArray,a=s.Hasher,l=n.algo,c=[],d=[];(function(){function f(x){for(var m=r.sqrt(x),p=2;p<=m;p++)if(!(x%p))return!1;return!0}function g(x){return(x-(x|0))*4294967296|0}for(var b=2,w=0;w<64;)f(b)&&(w<8&&(c[w]=g(r.pow(b,1/2))),d[w]=g(r.pow(b,1/3)),w++),b++})();var u=[],h=l.SHA256=a.extend({_doReset:function(){this._hash=new o.init(c.slice(0))},_doProcessBlock:function(f,g){for(var b=this._hash.words,w=b[0],x=b[1],m=b[2],p=b[3],y=b[4],_=b[5],C=b[6],E=b[7],A=0;A<64;A++){if(A<16)u[A]=f[g+A]|0;else{var S=u[A-15],k=(S<<25|S>>>7)^(S<<14|S>>>18)^S>>>3,T=u[A-2],$=(T<<15|T>>>17)^(T<<13|T>>>19)^T>>>10;u[A]=k+u[A-7]+$+u[A-16]}var I=y&_^~y&C,L=w&x^w&m^x&m,N=(w<<30|w>>>2)^(w<<19|w>>>13)^(w<<10|w>>>22),M=(y<<26|y>>>6)^(y<<21|y>>>11)^(y<<7|y>>>25),X=E+M+I+d[A]+u[A],q=N+L;E=C,C=_,_=y,y=p+X|0,p=m,m=x,x=w,w=X+q|0}b[0]=b[0]+w|0,b[1]=b[1]+x|0,b[2]=b[2]+m|0,b[3]=b[3]+p|0,b[4]=b[4]+y|0,b[5]=b[5]+_|0,b[6]=b[6]+C|0,b[7]=b[7]+E|0},_doFinalize:function(){var f=this._data,g=f.words,b=this._nDataBytes*8,w=f.sigBytes*8;return g[w>>>5]|=128<<24-w%32,g[(w+64>>>9<<4)+14]=r.floor(b/4294967296),g[(w+64>>>9<<4)+15]=b,f.sigBytes=g.length*4,this._process(),this._hash},clone:function(){var f=a.clone.call(this);return f._hash=this._hash.clone(),f}});n.SHA256=a._createHelper(h),n.HmacSHA256=a._createHmacHelper(h)}(Math),i.SHA256})}(uu)),uu.exports}var hu={exports:{}},s1;function Ak(){return s1||(s1=1,function(e,t){(function(i,r,n){e.exports=r(De(),Wp())})(xe,function(i){return function(){var r=i,n=r.lib,s=n.WordArray,o=r.algo,a=o.SHA256,l=o.SHA224=a.extend({_doReset:function(){this._hash=new s.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=a._doFinalize.call(this);return c.sigBytes-=4,c}});r.SHA224=a._createHelper(l),r.HmacSHA224=a._createHmacHelper(l)}(),i.SHA224})}(hu)),hu.exports}var fu={exports:{}},o1;function Ab(){return o1||(o1=1,function(e,t){(function(i,r,n){e.exports=r(De(),Ad())})(xe,function(i){return function(){var r=i,n=r.lib,s=n.Hasher,o=r.x64,a=o.Word,l=o.WordArray,c=r.algo;function d(){return a.create.apply(a,arguments)}var u=[d(1116352408,3609767458),d(1899447441,602891725),d(3049323471,3964484399),d(3921009573,2173295548),d(961987163,4081628472),d(1508970993,3053834265),d(2453635748,2937671579),d(2870763221,3664609560),d(3624381080,2734883394),d(310598401,1164996542),d(607225278,1323610764),d(1426881987,3590304994),d(1925078388,4068182383),d(2162078206,991336113),d(2614888103,633803317),d(3248222580,3479774868),d(3835390401,2666613458),d(4022224774,944711139),d(264347078,2341262773),d(604807628,2007800933),d(770255983,1495990901),d(1249150122,1856431235),d(1555081692,3175218132),d(1996064986,2198950837),d(2554220882,3999719339),d(2821834349,766784016),d(2952996808,2566594879),d(3210313671,3203337956),d(3336571891,1034457026),d(3584528711,2466948901),d(113926993,3758326383),d(338241895,168717936),d(666307205,1188179964),d(773529912,1546045734),d(1294757372,1522805485),d(1396182291,2643833823),d(1695183700,2343527390),d(1986661051,1014477480),d(2177026350,1206759142),d(2456956037,344077627),d(2730485921,1290863460),d(2820302411,3158454273),d(3259730800,3505952657),d(3345764771,106217008),d(3516065817,3606008344),d(3600352804,1432725776),d(4094571909,1467031594),d(275423344,851169720),d(430227734,3100823752),d(506948616,1363258195),d(659060556,3750685593),d(883997877,3785050280),d(958139571,3318307427),d(1322822218,3812723403),d(1537002063,2003034995),d(1747873779,3602036899),d(1955562222,1575990012),d(2024104815,1125592928),d(2227730452,2716904306),d(2361852424,442776044),d(2428436474,593698344),d(2756734187,3733110249),d(3204031479,2999351573),d(3329325298,3815920427),d(3391569614,3928383900),d(3515267271,566280711),d(3940187606,3454069534),d(4118630271,4000239992),d(116418474,1914138554),d(174292421,2731055270),d(289380356,3203993006),d(460393269,320620315),d(685471733,587496836),d(852142971,1086792851),d(1017036298,365543100),d(1126000580,2618297676),d(1288033470,3409855158),d(1501505948,4234509866),d(1607167915,987167468),d(1816402316,1246189591)],h=[];(function(){for(var g=0;g<80;g++)h[g]=d()})();var f=c.SHA512=s.extend({_doReset:function(){this._hash=new l.init([new a.init(1779033703,4089235720),new a.init(3144134277,2227873595),new a.init(1013904242,4271175723),new a.init(2773480762,1595750129),new a.init(1359893119,2917565137),new a.init(2600822924,725511199),new a.init(528734635,4215389547),new a.init(1541459225,327033209)])},_doProcessBlock:function(g,b){for(var w=this._hash.words,x=w[0],m=w[1],p=w[2],y=w[3],_=w[4],C=w[5],E=w[6],A=w[7],S=x.high,k=x.low,T=m.high,$=m.low,I=p.high,L=p.low,N=y.high,M=y.low,X=_.high,q=_.low,he=C.high,ve=C.low,z=E.high,U=E.low,V=A.high,K=A.low,Ne=S,Se=k,ot=T,ye=$,ur=I,Jt=L,Mn=N,xr=M,D=X,B=q,H=he,j=ve,Z=z,J=U,ee=V,Q=K,G=0;G<80;G++){var W,te,ae=h[G];if(G<16)te=ae.high=g[b+G*2]|0,W=ae.low=g[b+G*2+1]|0;else{var oe=h[G-15],fe=oe.high,we=oe.low,je=(fe>>>1|we<<31)^(fe>>>8|we<<24)^fe>>>7,Le=(we>>>1|fe<<31)^(we>>>8|fe<<24)^(we>>>7|fe<<25),at=h[G-2],kt=at.high,Vi=at.low,Al=(kt>>>19|Vi<<13)^(kt<<3|Vi>>>29)^kt>>>6,Jr=(Vi>>>19|kt<<13)^(Vi<<3|kt>>>29)^(Vi>>>6|kt<<26),Uo=h[G-7],ei=Uo.high,Ki=Uo.low,Vo=h[G-16],E5=Vo.high,r0=Vo.low;W=Le+Ki,te=je+ei+(W>>>0>>0?1:0),W=W+Jr,te=te+Al+(W>>>0>>0?1:0),W=W+r0,te=te+E5+(W>>>0>>0?1:0),ae.high=te,ae.low=W}var x5=D&H^~D&Z,n0=B&j^~B&J,S5=Ne&ot^Ne&ur^ot&ur,A5=Se&ye^Se&Jt^ye&Jt,T5=(Ne>>>28|Se<<4)^(Ne<<30|Se>>>2)^(Ne<<25|Se>>>7),s0=(Se>>>28|Ne<<4)^(Se<<30|Ne>>>2)^(Se<<25|Ne>>>7),R5=(D>>>14|B<<18)^(D>>>18|B<<14)^(D<<23|B>>>9),$5=(B>>>14|D<<18)^(B>>>18|D<<14)^(B<<23|D>>>9),o0=u[G],I5=o0.high,a0=o0.low,Ai=Q+$5,en=ee+R5+(Ai>>>0>>0?1:0),Ai=Ai+n0,en=en+x5+(Ai>>>0>>0?1:0),Ai=Ai+a0,en=en+I5+(Ai>>>0>>0?1:0),Ai=Ai+W,en=en+te+(Ai>>>0>>0?1:0),l0=s0+A5,D5=T5+S5+(l0>>>0>>0?1:0);ee=Z,Q=J,Z=H,J=j,H=D,j=B,B=xr+Ai|0,D=Mn+en+(B>>>0>>0?1:0)|0,Mn=ur,xr=Jt,ur=ot,Jt=ye,ot=Ne,ye=Se,Se=Ai+l0|0,Ne=en+D5+(Se>>>0>>0?1:0)|0}k=x.low=k+Se,x.high=S+Ne+(k>>>0>>0?1:0),$=m.low=$+ye,m.high=T+ot+($>>>0>>0?1:0),L=p.low=L+Jt,p.high=I+ur+(L>>>0>>0?1:0),M=y.low=M+xr,y.high=N+Mn+(M>>>0>>0?1:0),q=_.low=q+B,_.high=X+D+(q>>>0>>0?1:0),ve=C.low=ve+j,C.high=he+H+(ve>>>0>>0?1:0),U=E.low=U+J,E.high=z+Z+(U>>>0>>0?1:0),K=A.low=K+Q,A.high=V+ee+(K>>>0>>0?1:0)},_doFinalize:function(){var g=this._data,b=g.words,w=this._nDataBytes*8,x=g.sigBytes*8;b[x>>>5]|=128<<24-x%32,b[(x+128>>>10<<5)+30]=Math.floor(w/4294967296),b[(x+128>>>10<<5)+31]=w,g.sigBytes=b.length*4,this._process();var m=this._hash.toX32();return m},clone:function(){var g=s.clone.call(this);return g._hash=this._hash.clone(),g},blockSize:1024/32});r.SHA512=s._createHelper(f),r.HmacSHA512=s._createHmacHelper(f)}(),i.SHA512})}(fu)),fu.exports}var pu={exports:{}},a1;function Tk(){return a1||(a1=1,function(e,t){(function(i,r,n){e.exports=r(De(),Ad(),Ab())})(xe,function(i){return function(){var r=i,n=r.x64,s=n.Word,o=n.WordArray,a=r.algo,l=a.SHA512,c=a.SHA384=l.extend({_doReset:function(){this._hash=new o.init([new s.init(3418070365,3238371032),new s.init(1654270250,914150663),new s.init(2438529370,812702999),new s.init(355462360,4144912697),new s.init(1731405415,4290775857),new s.init(2394180231,1750603025),new s.init(3675008525,1694076839),new s.init(1203062813,3204075428)])},_doFinalize:function(){var d=l._doFinalize.call(this);return d.sigBytes-=16,d}});r.SHA384=l._createHelper(c),r.HmacSHA384=l._createHmacHelper(c)}(),i.SHA384})}(pu)),pu.exports}var mu={exports:{}},l1;function Rk(){return l1||(l1=1,function(e,t){(function(i,r,n){e.exports=r(De(),Ad())})(xe,function(i){return function(r){var n=i,s=n.lib,o=s.WordArray,a=s.Hasher,l=n.x64,c=l.Word,d=n.algo,u=[],h=[],f=[];(function(){for(var w=1,x=0,m=0;m<24;m++){u[w+5*x]=(m+1)*(m+2)/2%64;var p=x%5,y=(2*w+3*x)%5;w=p,x=y}for(var w=0;w<5;w++)for(var x=0;x<5;x++)h[w+5*x]=x+(2*w+3*x)%5*5;for(var _=1,C=0;C<24;C++){for(var E=0,A=0,S=0;S<7;S++){if(_&1){var k=(1<>>24)&16711935|(_<<24|_>>>8)&4278255360,C=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360;var E=m[y];E.high^=C,E.low^=_}for(var A=0;A<24;A++){for(var S=0;S<5;S++){for(var k=0,T=0,$=0;$<5;$++){var E=m[S+5*$];k^=E.high,T^=E.low}var I=g[S];I.high=k,I.low=T}for(var S=0;S<5;S++)for(var L=g[(S+4)%5],N=g[(S+1)%5],M=N.high,X=N.low,k=L.high^(M<<1|X>>>31),T=L.low^(X<<1|M>>>31),$=0;$<5;$++){var E=m[S+5*$];E.high^=k,E.low^=T}for(var q=1;q<25;q++){var k,T,E=m[q],he=E.high,ve=E.low,z=u[q];z<32?(k=he<>>32-z,T=ve<>>32-z):(k=ve<>>64-z,T=he<>>64-z);var U=g[h[q]];U.high=k,U.low=T}var V=g[0],K=m[0];V.high=K.high,V.low=K.low;for(var S=0;S<5;S++)for(var $=0;$<5;$++){var q=S+5*$,E=m[q],Ne=g[q],Se=g[(S+1)%5+5*$],ot=g[(S+2)%5+5*$];E.high=Ne.high^~Se.high&ot.high,E.low=Ne.low^~Se.low&ot.low}var E=m[0],ye=f[A];E.high^=ye.high,E.low^=ye.low}},_doFinalize:function(){var w=this._data,x=w.words;this._nDataBytes*8;var m=w.sigBytes*8,p=this.blockSize*32;x[m>>>5]|=1<<24-m%32,x[(r.ceil((m+1)/p)*p>>>5)-1]|=128,w.sigBytes=x.length*4,this._process();for(var y=this._state,_=this.cfg.outputLength/8,C=_/8,E=[],A=0;A>>24)&16711935|(k<<24|k>>>8)&4278255360,T=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,E.push(T),E.push(k)}return new o.init(E,_)},clone:function(){for(var w=a.clone.call(this),x=w._state=this._state.slice(0),m=0;m<25;m++)x[m]=x[m].clone();return w}});n.SHA3=a._createHelper(b),n.HmacSHA3=a._createHmacHelper(b)}(Math),i.SHA3})}(mu)),mu.exports}var gu={exports:{}},c1;function $k(){return c1||(c1=1,function(e,t){(function(i,r){e.exports=r(De())})(xe,function(i){/** @preserve +}`;G_(r),O(i.head).append(``),r.addClass(a)},J_=(e,t)=>{const i=lb(e);Q_(i)},Km="mdui.functions.snackbar.";let ql;const tu=e=>{const t=new Ci,i=O(t);return Object.entries(e).forEach(([r,n])=>{if(r==="message")t.innerHTML=n;else if(["onClick","onActionClick","onOpen","onOpened","onClose","onClosed"].includes(r)){const s=Ha(r.slice(2));i.on(s,()=>{if(r==="onActionClick"){const o=(e.onActionClick??l9).call(t,t);I_(o)?(t.actionLoading=!0,o.then(()=>{t.open=!1}).finally(()=>{t.actionLoading=!1})):o!==!1&&(t.open=!1)}else n.call(t,t)})}else t[r]=n}),i.appendTo("body").on("closed",()=>{i.remove(),e.queue&&(ql=void 0,P_(Km+e.queue))}),e.queue?ql?D_(Km+e.queue,()=>{t.open=!0,ql=t}):(setTimeout(()=>{t.open=!0}),ql=t):setTimeout(()=>{t.open=!0}),t};let rf=class extends nt{render(){return Ut('')}};rf.styles=Ht;rf=v([se("mdui-icon-menu")],rf);const ek=["id"],tk=Te("div",{class:"ImScrollBarThumb"},null,-1),ik=[tk],rk={__name:"ImScrollBar",props:{ContainerId:String,ContentContainerId:String,Direction:String,Length:String,Width:String,PBottom:String,PRight:String,PMarginOne:String,PMarginTwo:String,Id:String},setup(e){const t=e;var i=ut(!1),r=ut(!1),n=ut(!1);function s(o){if(i.value){document.getElementById(t.Id).style.opacity="0";return}o.type=="mouseover"||n.value?(document.getElementById(t.Id).style.opacity="0.701",r.value=!0):(o.type=="mouseout"||!n.value)&&(document.getElementById(t.Id).style.opacity="0.4",setTimeout(function(){document.getElementById(t.Id).style.opacity!="0.701"&&(document.getElementById(t.Id).style.opacity="0",r.value=!1)},1e3))}return Kf(()=>{}),Xr(()=>{var o=document.getElementById(t.Id),a=document.getElementById(t.ContentContainerId),l=document.getElementById(t.ContainerId);t.Direction=="Left"?(o.style.float="left",o.style.height=t.Length,o.style.width=t.Width,o.style.bottom=t.PBottom,o.style.right=t.PRight,o.style.marginBottom=t.PMarginOne,o.style.marginTop=t.PMarginTwo):t.Direction=="Right"?(o.style.float="right",o.style.height=t.Length,o.style.width=t.Width,o.style.bottom=t.PBottom,o.style.right=t.PRight,o.style.marginBottom=t.PMarginOne,o.style.marginTop=t.PMarginTwo):(t.Direction=="Top"||t.Direction=="Bottom")&&(o.style.float="left",o.style.width=t.Length,o.style.height=t.Width,o.style.bottom=t.PBottom,o.style.right=t.PRight,o.style.marginLeft=t.PMarginOne,o.style.marginRight=t.PMarginTwo);const c=ut("0%");var d;const u=new ResizeObserver(_=>{_.forEach(E=>{const S=E.target;if(S.id==t.ContentContainerId){const q=l;var A=S.scrollHeight,k=S.scrollWidth,T=q.clientHeight,$=q.clientWidth}if(S.id==t.ContainerId){const q=a;var A=q.scrollHeight,k=q.scrollWidth,T=S.clientHeight,$=S.clientWidth}var I,L;t.Direction=="Left"||t.Direction=="Right"?(I=A,L=T):(t.Direction=="Top"||t.Direction=="Bottom")&&(I=k,L=$),I<=L?i.value=!0:i.value=!1;var N=L/I*100;if(I>L){var M=o.childNodes[0],X;t.Direction=="Left"||t.Direction=="Right"?(M.style.width="100%",M.style.height=N.toString()+"%",X=l.scrollTop/a.scrollHeight*100,M.style.top=X.toString()+"%"):(t.Direction=="Top"||t.Direction=="Bottom")&&(M.style.width=N.toString()+"%",M.style.height="100%",X=l.scrollLeft/a.scrollWidth*100,M.style.left=X.toString()+"%"),c.value=X,t.Direction=="Left"||t.Direction=="Right"?d=o.offsetHeight-M.offsetHeight:(t.Direction=="Top"||t.Direction=="Bottom")&&(d=o.offsetWidth-M.offsetWidth)}})});u.observe(l),u.observe(a);var h=o.childNodes[0],f,g,b=!0,w,x,m;function p(){function _(S){b||(S.preventDefault(),n.value=!0,s({type:"null"}),t.Direction=="Left"||t.Direction=="Right"?w=S.clientY-f+g:(t.Direction=="Top"||t.Direction=="Bottom")&&(w=S.clientX-f+g),w>=d&&(w=d),w<=0&&(w=0),t.Direction=="Left"||t.Direction=="Right"?(h.style.top=w+"px",x=w/o.offsetHeight,m=a.scrollHeight*x,l.scrollTop=m):(t.Direction=="Top"||t.Direction=="Bottom")&&(h.style.left=w+"px",x=w/o.offsetWidth,m=a.scrollWidth*x,l.scrollLeft=m))}function E(S){n.value=!1,s({type:"null"}),document.removeEventListener("mousemove",_),b=!0}document.addEventListener("mouseup",E,{once:!0}),document.addEventListener("mousemove",_)}h.addEventListener("mousedown",function(_){t.Direction=="Left"?(f=_.clientY,g=this.offsetTop):t.Direction=="Right"?(f=_.clientY,g=this.offsetTop):t.Direction=="Top"?(f=_.clientX,g=this.offsetLeft):t.Direction=="Bottom"&&(f=_.clientX,g=this.offsetLeft),b=!1,p()});var y=null;function C(_){var E;n.value=!0,s({type:"null"}),t.Direction=="Left"||t.Direction=="Right"?(E=l.scrollTop/a.scrollHeight*100,h.style.top=E.toString()+"%"):(t.Direction=="Top"||t.Direction=="Bottom")&&(E=l.scrollLeft/a.scrollWidth*100,h.style.left=E.toString()+"%"),b&&(clearTimeout(y),y=setTimeout(function(){n.value=!1,s({type:"null"})},200))}l.addEventListener("scroll",C)}),(o,a)=>(pi(),Vr("div",{class:"ImScrollBarTrack",id:t.Id,onMouseover:s,onMouseout:s},ik,40,ek))}},nk=["id"],sk=["name"],Qo={__name:"MdCard",props:{id:String,icon:String,Background:String,TextColor:String,Width:String,Height:String,Other:Object},setup(e){const t=e,i=ut({});return i.value={background:t.Background,width:t.Width,height:t.Height,...t.Other},(r,n)=>(pi(),Vr("mdui-card",{id:e.id,class:"baseCard",variant:"filled",style:ps(i.value)},[t.icon?(pi(),Vr("mdui-icon",{key:0,class:"cardIcon",name:t.icon,style:{"font-size":"140px"}},null,8,sk)):js("",!0),Te("div",{class:"cardContent",style:ps({color:t.TextColor,"z-index":5})},[bv(r.$slots,"default")],4)],12,nk))}};let nf=class extends nt{render(){return Ut('')}};nf.styles=Ht;nf=v([se("mdui-icon-autorenew--rounded")],nf);let sf=class extends nt{render(){return Ut('')}};sf.styles=Ht;sf=v([se("mdui-icon-do-not-disturb-alt--rounded")],sf);let of=class extends nt{render(){return Ut('')}};of.styles=Ht;of=v([se("mdui-icon-explore")],of);let af=class extends nt{render(){return Ut('')}};af.styles=Ht;af=v([se("mdui-icon-done--rounded")],af);var ok=Object.defineProperty,db=e=>{throw TypeError(e)},ak=(e,t,i)=>t in e?ok(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,kl=(e,t,i)=>ak(e,typeof t!="symbol"?t+"":t,i),ub=(e,t,i)=>t.has(e)||db("Cannot "+i),Ti=(e,t,i)=>(ub(e,t,"read from private field"),i?i.call(e):t.get(e)),iu=(e,t,i)=>t.has(e)?db("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),Hn=(e,t,i,r)=>(ub(e,t,"write to private field"),t.set(e,i),i),Jo,ea,Wt;const hb="3.7.7",lk=hb,Mo=typeof Buffer=="function",Wm=typeof TextDecoder=="function"?new TextDecoder:void 0,qm=typeof TextEncoder=="function"?new TextEncoder:void 0,ck="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",ta=Array.prototype.slice.call(ck),jl=(e=>{let t={};return e.forEach((i,r)=>t[i]=r),t})(ta),dk=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Lt=String.fromCharCode.bind(String),jm=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),fb=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),pb=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),mb=e=>{let t,i,r,n,s="";const o=e.length%3;for(let a=0;a255||(r=e.charCodeAt(a++))>255||(n=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");t=i<<16|r<<8|n,s+=ta[t>>18&63]+ta[t>>12&63]+ta[t>>6&63]+ta[t&63]}return o?s.slice(0,o-3)+"===".substring(o):s},Vp=typeof btoa=="function"?e=>btoa(e):Mo?e=>Buffer.from(e,"binary").toString("base64"):mb,lf=Mo?e=>Buffer.from(e).toString("base64"):e=>{let i=[];for(let r=0,n=e.length;rt?fb(lf(e)):lf(e),uk=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?Lt(192|t>>>6)+Lt(128|t&63):Lt(224|t>>>12&15)+Lt(128|t>>>6&63)+Lt(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return Lt(240|t>>>18&7)+Lt(128|t>>>12&63)+Lt(128|t>>>6&63)+Lt(128|t&63)}},hk=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,gb=e=>e.replace(hk,uk),Ym=Mo?e=>Buffer.from(e,"utf8").toString("base64"):qm?e=>lf(qm.encode(e)):e=>Vp(gb(e)),ao=(e,t=!1)=>t?fb(Ym(e)):Ym(e),Zm=e=>ao(e,!0),fk=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,pk=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),i=t-65536;return Lt((i>>>10)+55296)+Lt((i&1023)+56320);case 3:return Lt((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return Lt((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},vb=e=>e.replace(fk,pk),yb=e=>{if(e=e.replace(/\s+/g,""),!dk.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let t,i="",r,n;for(let s=0;s>16&255):n===64?Lt(t>>16&255,t>>8&255):Lt(t>>16&255,t>>8&255,t&255);return i},Kp=typeof atob=="function"?e=>atob(pb(e)):Mo?e=>Buffer.from(e,"base64").toString("binary"):yb,bb=Mo?e=>jm(Buffer.from(e,"base64")):e=>jm(Kp(e).split("").map(t=>t.charCodeAt(0))),wb=e=>bb(_b(e)),mk=Mo?e=>Buffer.from(e,"base64").toString("utf8"):Wm?e=>Wm.decode(bb(e)):e=>vb(Kp(e)),_b=e=>pb(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),cf=e=>mk(_b(e)),gk=e=>{if(typeof e!="string")return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},kb=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),Cb=function(){const e=(t,i)=>Object.defineProperty(String.prototype,t,kb(i));e("fromBase64",function(){return cf(this)}),e("toBase64",function(t){return ao(this,t)}),e("toBase64URI",function(){return ao(this,!0)}),e("toBase64URL",function(){return ao(this,!0)}),e("toUint8Array",function(){return wb(this)})},Eb=function(){const e=(t,i)=>Object.defineProperty(Uint8Array.prototype,t,kb(i));e("toBase64",function(t){return hc(this,t)}),e("toBase64URI",function(){return hc(this,!0)}),e("toBase64URL",function(){return hc(this,!0)})},vk=()=>{Cb(),Eb()},Ro={version:hb,VERSION:lk,atob:Kp,atobPolyfill:yb,btoa:Vp,btoaPolyfill:mb,fromBase64:cf,toBase64:ao,encode:ao,encodeURI:Zm,encodeURL:Zm,utob:gb,btou:vb,decode:cf,isValid:gk,fromUint8Array:hc,toUint8Array:wb,extendString:Cb,extendUint8Array:Eb,extendBuiltins:vk};var xe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yk(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function bk(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var i=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};i.prototype=t.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(i,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}),i}var xb={exports:{}};function wk(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var ru={exports:{}};const _k={},kk=Object.freeze(Object.defineProperty({__proto__:null,default:_k},Symbol.toStringTag,{value:"Module"})),Ck=bk(kk);var Xm;function De(){return Xm||(Xm=1,function(e,t){(function(i,r){e.exports=r()})(xe,function(){var i=i||function(r,n){var s;if(typeof window<"u"&&window.crypto&&(s=window.crypto),typeof self<"u"&&self.crypto&&(s=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(s=globalThis.crypto),!s&&typeof window<"u"&&window.msCrypto&&(s=window.msCrypto),!s&&typeof xe<"u"&&xe.crypto&&(s=xe.crypto),!s&&typeof wk=="function")try{s=Ck}catch{}var o=function(){if(s){if(typeof s.getRandomValues=="function")try{return s.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof s.randomBytes=="function")try{return s.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function m(){}return function(p){var y;return m.prototype=p,y=new m,m.prototype=null,y}}(),l={},c=l.lib={},d=c.Base=function(){return{extend:function(m){var p=a(this);return m&&p.mixIn(m),(!p.hasOwnProperty("init")||this.init===p.init)&&(p.init=function(){p.$super.init.apply(this,arguments)}),p.init.prototype=p,p.$super=this,p},create:function(){var m=this.extend();return m.init.apply(m,arguments),m},init:function(){},mixIn:function(m){for(var p in m)m.hasOwnProperty(p)&&(this[p]=m[p]);m.hasOwnProperty("toString")&&(this.toString=m.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),u=c.WordArray=d.extend({init:function(m,p){m=this.words=m||[],p!=n?this.sigBytes=p:this.sigBytes=m.length*4},toString:function(m){return(m||f).stringify(this)},concat:function(m){var p=this.words,y=m.words,C=this.sigBytes,_=m.sigBytes;if(this.clamp(),C%4)for(var E=0;E<_;E++){var S=y[E>>>2]>>>24-E%4*8&255;p[C+E>>>2]|=S<<24-(C+E)%4*8}else for(var A=0;A<_;A+=4)p[C+A>>>2]=y[A>>>2];return this.sigBytes+=_,this},clamp:function(){var m=this.words,p=this.sigBytes;m[p>>>2]&=4294967295<<32-p%4*8,m.length=r.ceil(p/4)},clone:function(){var m=d.clone.call(this);return m.words=this.words.slice(0),m},random:function(m){for(var p=[],y=0;y>>2]>>>24-_%4*8&255;C.push((E>>>4).toString(16)),C.push((E&15).toString(16))}return C.join("")},parse:function(m){for(var p=m.length,y=[],C=0;C>>3]|=parseInt(m.substr(C,2),16)<<24-C%8*4;return new u.init(y,p/2)}},g=h.Latin1={stringify:function(m){for(var p=m.words,y=m.sigBytes,C=[],_=0;_>>2]>>>24-_%4*8&255;C.push(String.fromCharCode(E))}return C.join("")},parse:function(m){for(var p=m.length,y=[],C=0;C>>2]|=(m.charCodeAt(C)&255)<<24-C%4*8;return new u.init(y,p)}},b=h.Utf8={stringify:function(m){try{return decodeURIComponent(escape(g.stringify(m)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(m){return g.parse(unescape(encodeURIComponent(m)))}},w=c.BufferedBlockAlgorithm=d.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(m){typeof m=="string"&&(m=b.parse(m)),this._data.concat(m),this._nDataBytes+=m.sigBytes},_process:function(m){var p,y=this._data,C=y.words,_=y.sigBytes,E=this.blockSize,S=E*4,A=_/S;m?A=r.ceil(A):A=r.max((A|0)-this._minBufferSize,0);var k=A*E,T=r.min(k*4,_);if(k){for(var $=0;$>>2]|=l[u]<<24-u%4*8;o.call(this,d,c)}else o.apply(this,arguments)};a.prototype=s}}(),i.lib.WordArray})}(su)),su.exports}var ou={exports:{}},Jm;function xk(){return Jm||(Jm=1,function(e,t){(function(i,r){e.exports=r(De())})(xe,function(i){return function(){var r=i,n=r.lib,s=n.WordArray,o=r.enc;o.Utf16=o.Utf16BE={stringify:function(l){for(var c=l.words,d=l.sigBytes,u=[],h=0;h>>2]>>>16-h%4*8&65535;u.push(String.fromCharCode(f))}return u.join("")},parse:function(l){for(var c=l.length,d=[],u=0;u>>1]|=l.charCodeAt(u)<<16-u%2*16;return s.create(d,c*2)}},o.Utf16LE={stringify:function(l){for(var c=l.words,d=l.sigBytes,u=[],h=0;h>>2]>>>16-h%4*8&65535);u.push(String.fromCharCode(f))}return u.join("")},parse:function(l){for(var c=l.length,d=[],u=0;u>>1]|=a(l.charCodeAt(u)<<16-u%2*16);return s.create(d,c*2)}};function a(l){return l<<8&4278255360|l>>>8&16711935}}(),i.enc.Utf16})}(ou)),ou.exports}var au={exports:{}},e1;function Ps(){return e1||(e1=1,function(e,t){(function(i,r){e.exports=r(De())})(xe,function(i){return function(){var r=i,n=r.lib,s=n.WordArray,o=r.enc;o.Base64={stringify:function(l){var c=l.words,d=l.sigBytes,u=this._map;l.clamp();for(var h=[],f=0;f>>2]>>>24-f%4*8&255,b=c[f+1>>>2]>>>24-(f+1)%4*8&255,w=c[f+2>>>2]>>>24-(f+2)%4*8&255,x=g<<16|b<<8|w,m=0;m<4&&f+m*.75>>6*(3-m)&63));var p=u.charAt(64);if(p)for(;h.length%4;)h.push(p);return h.join("")},parse:function(l){var c=l.length,d=this._map,u=this._reverseMap;if(!u){u=this._reverseMap=[];for(var h=0;h>>6-f%4*2,w=g|b;u[h>>>2]|=w<<24-h%4*8,h++}return s.create(u,h)}}(),i.enc.Base64})}(au)),au.exports}var lu={exports:{}},t1;function Sk(){return t1||(t1=1,function(e,t){(function(i,r){e.exports=r(De())})(xe,function(i){return function(){var r=i,n=r.lib,s=n.WordArray,o=r.enc;o.Base64url={stringify:function(l,c){c===void 0&&(c=!0);var d=l.words,u=l.sigBytes,h=c?this._safe_map:this._map;l.clamp();for(var f=[],g=0;g>>2]>>>24-g%4*8&255,w=d[g+1>>>2]>>>24-(g+1)%4*8&255,x=d[g+2>>>2]>>>24-(g+2)%4*8&255,m=b<<16|w<<8|x,p=0;p<4&&g+p*.75>>6*(3-p)&63));var y=h.charAt(64);if(y)for(;f.length%4;)f.push(y);return f.join("")},parse:function(l,c){c===void 0&&(c=!0);var d=l.length,u=c?this._safe_map:this._map,h=this._reverseMap;if(!h){h=this._reverseMap=[];for(var f=0;f>>6-f%4*2,w=g|b;u[h>>>2]|=w<<24-h%4*8,h++}return s.create(u,h)}}(),i.enc.Base64url})}(lu)),lu.exports}var cu={exports:{}},i1;function Bs(){return i1||(i1=1,function(e,t){(function(i,r){e.exports=r(De())})(xe,function(i){return function(r){var n=i,s=n.lib,o=s.WordArray,a=s.Hasher,l=n.algo,c=[];(function(){for(var b=0;b<64;b++)c[b]=r.abs(r.sin(b+1))*4294967296|0})();var d=l.MD5=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(b,w){for(var x=0;x<16;x++){var m=w+x,p=b[m];b[m]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360}var y=this._hash.words,C=b[w+0],_=b[w+1],E=b[w+2],S=b[w+3],A=b[w+4],k=b[w+5],T=b[w+6],$=b[w+7],I=b[w+8],L=b[w+9],N=b[w+10],M=b[w+11],X=b[w+12],q=b[w+13],he=b[w+14],ve=b[w+15],z=y[0],U=y[1],V=y[2],K=y[3];z=u(z,U,V,K,C,7,c[0]),K=u(K,z,U,V,_,12,c[1]),V=u(V,K,z,U,E,17,c[2]),U=u(U,V,K,z,S,22,c[3]),z=u(z,U,V,K,A,7,c[4]),K=u(K,z,U,V,k,12,c[5]),V=u(V,K,z,U,T,17,c[6]),U=u(U,V,K,z,$,22,c[7]),z=u(z,U,V,K,I,7,c[8]),K=u(K,z,U,V,L,12,c[9]),V=u(V,K,z,U,N,17,c[10]),U=u(U,V,K,z,M,22,c[11]),z=u(z,U,V,K,X,7,c[12]),K=u(K,z,U,V,q,12,c[13]),V=u(V,K,z,U,he,17,c[14]),U=u(U,V,K,z,ve,22,c[15]),z=h(z,U,V,K,_,5,c[16]),K=h(K,z,U,V,T,9,c[17]),V=h(V,K,z,U,M,14,c[18]),U=h(U,V,K,z,C,20,c[19]),z=h(z,U,V,K,k,5,c[20]),K=h(K,z,U,V,N,9,c[21]),V=h(V,K,z,U,ve,14,c[22]),U=h(U,V,K,z,A,20,c[23]),z=h(z,U,V,K,L,5,c[24]),K=h(K,z,U,V,he,9,c[25]),V=h(V,K,z,U,S,14,c[26]),U=h(U,V,K,z,I,20,c[27]),z=h(z,U,V,K,q,5,c[28]),K=h(K,z,U,V,E,9,c[29]),V=h(V,K,z,U,$,14,c[30]),U=h(U,V,K,z,X,20,c[31]),z=f(z,U,V,K,k,4,c[32]),K=f(K,z,U,V,I,11,c[33]),V=f(V,K,z,U,M,16,c[34]),U=f(U,V,K,z,he,23,c[35]),z=f(z,U,V,K,_,4,c[36]),K=f(K,z,U,V,A,11,c[37]),V=f(V,K,z,U,$,16,c[38]),U=f(U,V,K,z,N,23,c[39]),z=f(z,U,V,K,q,4,c[40]),K=f(K,z,U,V,C,11,c[41]),V=f(V,K,z,U,S,16,c[42]),U=f(U,V,K,z,T,23,c[43]),z=f(z,U,V,K,L,4,c[44]),K=f(K,z,U,V,X,11,c[45]),V=f(V,K,z,U,ve,16,c[46]),U=f(U,V,K,z,E,23,c[47]),z=g(z,U,V,K,C,6,c[48]),K=g(K,z,U,V,$,10,c[49]),V=g(V,K,z,U,he,15,c[50]),U=g(U,V,K,z,k,21,c[51]),z=g(z,U,V,K,X,6,c[52]),K=g(K,z,U,V,S,10,c[53]),V=g(V,K,z,U,N,15,c[54]),U=g(U,V,K,z,_,21,c[55]),z=g(z,U,V,K,I,6,c[56]),K=g(K,z,U,V,ve,10,c[57]),V=g(V,K,z,U,T,15,c[58]),U=g(U,V,K,z,q,21,c[59]),z=g(z,U,V,K,A,6,c[60]),K=g(K,z,U,V,M,10,c[61]),V=g(V,K,z,U,E,15,c[62]),U=g(U,V,K,z,L,21,c[63]),y[0]=y[0]+z|0,y[1]=y[1]+U|0,y[2]=y[2]+V|0,y[3]=y[3]+K|0},_doFinalize:function(){var b=this._data,w=b.words,x=this._nDataBytes*8,m=b.sigBytes*8;w[m>>>5]|=128<<24-m%32;var p=r.floor(x/4294967296),y=x;w[(m+64>>>9<<4)+15]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,w[(m+64>>>9<<4)+14]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,b.sigBytes=(w.length+1)*4,this._process();for(var C=this._hash,_=C.words,E=0;E<4;E++){var S=_[E];_[E]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360}return C},clone:function(){var b=a.clone.call(this);return b._hash=this._hash.clone(),b}});function u(b,w,x,m,p,y,C){var _=b+(w&x|~w&m)+p+C;return(_<>>32-y)+w}function h(b,w,x,m,p,y,C){var _=b+(w&m|x&~m)+p+C;return(_<>>32-y)+w}function f(b,w,x,m,p,y,C){var _=b+(w^x^m)+p+C;return(_<>>32-y)+w}function g(b,w,x,m,p,y,C){var _=b+(x^(w|~m))+p+C;return(_<>>32-y)+w}n.MD5=a._createHelper(d),n.HmacMD5=a._createHmacHelper(d)}(Math),i.MD5})}(cu)),cu.exports}var du={exports:{}},r1;function Sb(){return r1||(r1=1,function(e,t){(function(i,r){e.exports=r(De())})(xe,function(i){return function(){var r=i,n=r.lib,s=n.WordArray,o=n.Hasher,a=r.algo,l=[],c=a.SHA1=o.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(d,u){for(var h=this._hash.words,f=h[0],g=h[1],b=h[2],w=h[3],x=h[4],m=0;m<80;m++){if(m<16)l[m]=d[u+m]|0;else{var p=l[m-3]^l[m-8]^l[m-14]^l[m-16];l[m]=p<<1|p>>>31}var y=(f<<5|f>>>27)+x+l[m];m<20?y+=(g&b|~g&w)+1518500249:m<40?y+=(g^b^w)+1859775393:m<60?y+=(g&b|g&w|b&w)-1894007588:y+=(g^b^w)-899497514,x=w,w=b,b=g<<30|g>>>2,g=f,f=y}h[0]=h[0]+f|0,h[1]=h[1]+g|0,h[2]=h[2]+b|0,h[3]=h[3]+w|0,h[4]=h[4]+x|0},_doFinalize:function(){var d=this._data,u=d.words,h=this._nDataBytes*8,f=d.sigBytes*8;return u[f>>>5]|=128<<24-f%32,u[(f+64>>>9<<4)+14]=Math.floor(h/4294967296),u[(f+64>>>9<<4)+15]=h,d.sigBytes=u.length*4,this._process(),this._hash},clone:function(){var d=o.clone.call(this);return d._hash=this._hash.clone(),d}});r.SHA1=o._createHelper(c),r.HmacSHA1=o._createHmacHelper(c)}(),i.SHA1})}(du)),du.exports}var uu={exports:{}},n1;function Wp(){return n1||(n1=1,function(e,t){(function(i,r){e.exports=r(De())})(xe,function(i){return function(r){var n=i,s=n.lib,o=s.WordArray,a=s.Hasher,l=n.algo,c=[],d=[];(function(){function f(x){for(var m=r.sqrt(x),p=2;p<=m;p++)if(!(x%p))return!1;return!0}function g(x){return(x-(x|0))*4294967296|0}for(var b=2,w=0;w<64;)f(b)&&(w<8&&(c[w]=g(r.pow(b,1/2))),d[w]=g(r.pow(b,1/3)),w++),b++})();var u=[],h=l.SHA256=a.extend({_doReset:function(){this._hash=new o.init(c.slice(0))},_doProcessBlock:function(f,g){for(var b=this._hash.words,w=b[0],x=b[1],m=b[2],p=b[3],y=b[4],C=b[5],_=b[6],E=b[7],S=0;S<64;S++){if(S<16)u[S]=f[g+S]|0;else{var A=u[S-15],k=(A<<25|A>>>7)^(A<<14|A>>>18)^A>>>3,T=u[S-2],$=(T<<15|T>>>17)^(T<<13|T>>>19)^T>>>10;u[S]=k+u[S-7]+$+u[S-16]}var I=y&C^~y&_,L=w&x^w&m^x&m,N=(w<<30|w>>>2)^(w<<19|w>>>13)^(w<<10|w>>>22),M=(y<<26|y>>>6)^(y<<21|y>>>11)^(y<<7|y>>>25),X=E+M+I+d[S]+u[S],q=N+L;E=_,_=C,C=y,y=p+X|0,p=m,m=x,x=w,w=X+q|0}b[0]=b[0]+w|0,b[1]=b[1]+x|0,b[2]=b[2]+m|0,b[3]=b[3]+p|0,b[4]=b[4]+y|0,b[5]=b[5]+C|0,b[6]=b[6]+_|0,b[7]=b[7]+E|0},_doFinalize:function(){var f=this._data,g=f.words,b=this._nDataBytes*8,w=f.sigBytes*8;return g[w>>>5]|=128<<24-w%32,g[(w+64>>>9<<4)+14]=r.floor(b/4294967296),g[(w+64>>>9<<4)+15]=b,f.sigBytes=g.length*4,this._process(),this._hash},clone:function(){var f=a.clone.call(this);return f._hash=this._hash.clone(),f}});n.SHA256=a._createHelper(h),n.HmacSHA256=a._createHmacHelper(h)}(Math),i.SHA256})}(uu)),uu.exports}var hu={exports:{}},s1;function Ak(){return s1||(s1=1,function(e,t){(function(i,r,n){e.exports=r(De(),Wp())})(xe,function(i){return function(){var r=i,n=r.lib,s=n.WordArray,o=r.algo,a=o.SHA256,l=o.SHA224=a.extend({_doReset:function(){this._hash=new s.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=a._doFinalize.call(this);return c.sigBytes-=4,c}});r.SHA224=a._createHelper(l),r.HmacSHA224=a._createHmacHelper(l)}(),i.SHA224})}(hu)),hu.exports}var fu={exports:{}},o1;function Ab(){return o1||(o1=1,function(e,t){(function(i,r,n){e.exports=r(De(),Ad())})(xe,function(i){return function(){var r=i,n=r.lib,s=n.Hasher,o=r.x64,a=o.Word,l=o.WordArray,c=r.algo;function d(){return a.create.apply(a,arguments)}var u=[d(1116352408,3609767458),d(1899447441,602891725),d(3049323471,3964484399),d(3921009573,2173295548),d(961987163,4081628472),d(1508970993,3053834265),d(2453635748,2937671579),d(2870763221,3664609560),d(3624381080,2734883394),d(310598401,1164996542),d(607225278,1323610764),d(1426881987,3590304994),d(1925078388,4068182383),d(2162078206,991336113),d(2614888103,633803317),d(3248222580,3479774868),d(3835390401,2666613458),d(4022224774,944711139),d(264347078,2341262773),d(604807628,2007800933),d(770255983,1495990901),d(1249150122,1856431235),d(1555081692,3175218132),d(1996064986,2198950837),d(2554220882,3999719339),d(2821834349,766784016),d(2952996808,2566594879),d(3210313671,3203337956),d(3336571891,1034457026),d(3584528711,2466948901),d(113926993,3758326383),d(338241895,168717936),d(666307205,1188179964),d(773529912,1546045734),d(1294757372,1522805485),d(1396182291,2643833823),d(1695183700,2343527390),d(1986661051,1014477480),d(2177026350,1206759142),d(2456956037,344077627),d(2730485921,1290863460),d(2820302411,3158454273),d(3259730800,3505952657),d(3345764771,106217008),d(3516065817,3606008344),d(3600352804,1432725776),d(4094571909,1467031594),d(275423344,851169720),d(430227734,3100823752),d(506948616,1363258195),d(659060556,3750685593),d(883997877,3785050280),d(958139571,3318307427),d(1322822218,3812723403),d(1537002063,2003034995),d(1747873779,3602036899),d(1955562222,1575990012),d(2024104815,1125592928),d(2227730452,2716904306),d(2361852424,442776044),d(2428436474,593698344),d(2756734187,3733110249),d(3204031479,2999351573),d(3329325298,3815920427),d(3391569614,3928383900),d(3515267271,566280711),d(3940187606,3454069534),d(4118630271,4000239992),d(116418474,1914138554),d(174292421,2731055270),d(289380356,3203993006),d(460393269,320620315),d(685471733,587496836),d(852142971,1086792851),d(1017036298,365543100),d(1126000580,2618297676),d(1288033470,3409855158),d(1501505948,4234509866),d(1607167915,987167468),d(1816402316,1246189591)],h=[];(function(){for(var g=0;g<80;g++)h[g]=d()})();var f=c.SHA512=s.extend({_doReset:function(){this._hash=new l.init([new a.init(1779033703,4089235720),new a.init(3144134277,2227873595),new a.init(1013904242,4271175723),new a.init(2773480762,1595750129),new a.init(1359893119,2917565137),new a.init(2600822924,725511199),new a.init(528734635,4215389547),new a.init(1541459225,327033209)])},_doProcessBlock:function(g,b){for(var w=this._hash.words,x=w[0],m=w[1],p=w[2],y=w[3],C=w[4],_=w[5],E=w[6],S=w[7],A=x.high,k=x.low,T=m.high,$=m.low,I=p.high,L=p.low,N=y.high,M=y.low,X=C.high,q=C.low,he=_.high,ve=_.low,z=E.high,U=E.low,V=S.high,K=S.low,Ne=A,Se=k,ot=T,ye=$,ur=I,Jt=L,Mn=N,xr=M,D=X,B=q,H=he,j=ve,Z=z,J=U,ee=V,Q=K,G=0;G<80;G++){var W,te,ae=h[G];if(G<16)te=ae.high=g[b+G*2]|0,W=ae.low=g[b+G*2+1]|0;else{var oe=h[G-15],fe=oe.high,we=oe.low,je=(fe>>>1|we<<31)^(fe>>>8|we<<24)^fe>>>7,Le=(we>>>1|fe<<31)^(we>>>8|fe<<24)^(we>>>7|fe<<25),at=h[G-2],kt=at.high,Vi=at.low,Al=(kt>>>19|Vi<<13)^(kt<<3|Vi>>>29)^kt>>>6,Jr=(Vi>>>19|kt<<13)^(Vi<<3|kt>>>29)^(Vi>>>6|kt<<26),Uo=h[G-7],ei=Uo.high,Ki=Uo.low,Vo=h[G-16],E5=Vo.high,r0=Vo.low;W=Le+Ki,te=je+ei+(W>>>0>>0?1:0),W=W+Jr,te=te+Al+(W>>>0>>0?1:0),W=W+r0,te=te+E5+(W>>>0>>0?1:0),ae.high=te,ae.low=W}var x5=D&H^~D&Z,n0=B&j^~B&J,S5=Ne&ot^Ne&ur^ot&ur,A5=Se&ye^Se&Jt^ye&Jt,T5=(Ne>>>28|Se<<4)^(Ne<<30|Se>>>2)^(Ne<<25|Se>>>7),s0=(Se>>>28|Ne<<4)^(Se<<30|Ne>>>2)^(Se<<25|Ne>>>7),R5=(D>>>14|B<<18)^(D>>>18|B<<14)^(D<<23|B>>>9),$5=(B>>>14|D<<18)^(B>>>18|D<<14)^(B<<23|D>>>9),o0=u[G],I5=o0.high,a0=o0.low,Ai=Q+$5,en=ee+R5+(Ai>>>0>>0?1:0),Ai=Ai+n0,en=en+x5+(Ai>>>0>>0?1:0),Ai=Ai+a0,en=en+I5+(Ai>>>0>>0?1:0),Ai=Ai+W,en=en+te+(Ai>>>0>>0?1:0),l0=s0+A5,D5=T5+S5+(l0>>>0>>0?1:0);ee=Z,Q=J,Z=H,J=j,H=D,j=B,B=xr+Ai|0,D=Mn+en+(B>>>0>>0?1:0)|0,Mn=ur,xr=Jt,ur=ot,Jt=ye,ot=Ne,ye=Se,Se=Ai+l0|0,Ne=en+D5+(Se>>>0>>0?1:0)|0}k=x.low=k+Se,x.high=A+Ne+(k>>>0>>0?1:0),$=m.low=$+ye,m.high=T+ot+($>>>0>>0?1:0),L=p.low=L+Jt,p.high=I+ur+(L>>>0>>0?1:0),M=y.low=M+xr,y.high=N+Mn+(M>>>0>>0?1:0),q=C.low=q+B,C.high=X+D+(q>>>0>>0?1:0),ve=_.low=ve+j,_.high=he+H+(ve>>>0>>0?1:0),U=E.low=U+J,E.high=z+Z+(U>>>0>>0?1:0),K=S.low=K+Q,S.high=V+ee+(K>>>0>>0?1:0)},_doFinalize:function(){var g=this._data,b=g.words,w=this._nDataBytes*8,x=g.sigBytes*8;b[x>>>5]|=128<<24-x%32,b[(x+128>>>10<<5)+30]=Math.floor(w/4294967296),b[(x+128>>>10<<5)+31]=w,g.sigBytes=b.length*4,this._process();var m=this._hash.toX32();return m},clone:function(){var g=s.clone.call(this);return g._hash=this._hash.clone(),g},blockSize:1024/32});r.SHA512=s._createHelper(f),r.HmacSHA512=s._createHmacHelper(f)}(),i.SHA512})}(fu)),fu.exports}var pu={exports:{}},a1;function Tk(){return a1||(a1=1,function(e,t){(function(i,r,n){e.exports=r(De(),Ad(),Ab())})(xe,function(i){return function(){var r=i,n=r.x64,s=n.Word,o=n.WordArray,a=r.algo,l=a.SHA512,c=a.SHA384=l.extend({_doReset:function(){this._hash=new o.init([new s.init(3418070365,3238371032),new s.init(1654270250,914150663),new s.init(2438529370,812702999),new s.init(355462360,4144912697),new s.init(1731405415,4290775857),new s.init(2394180231,1750603025),new s.init(3675008525,1694076839),new s.init(1203062813,3204075428)])},_doFinalize:function(){var d=l._doFinalize.call(this);return d.sigBytes-=16,d}});r.SHA384=l._createHelper(c),r.HmacSHA384=l._createHmacHelper(c)}(),i.SHA384})}(pu)),pu.exports}var mu={exports:{}},l1;function Rk(){return l1||(l1=1,function(e,t){(function(i,r,n){e.exports=r(De(),Ad())})(xe,function(i){return function(r){var n=i,s=n.lib,o=s.WordArray,a=s.Hasher,l=n.x64,c=l.Word,d=n.algo,u=[],h=[],f=[];(function(){for(var w=1,x=0,m=0;m<24;m++){u[w+5*x]=(m+1)*(m+2)/2%64;var p=x%5,y=(2*w+3*x)%5;w=p,x=y}for(var w=0;w<5;w++)for(var x=0;x<5;x++)h[w+5*x]=x+(2*w+3*x)%5*5;for(var C=1,_=0;_<24;_++){for(var E=0,S=0,A=0;A<7;A++){if(C&1){var k=(1<>>24)&16711935|(C<<24|C>>>8)&4278255360,_=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360;var E=m[y];E.high^=_,E.low^=C}for(var S=0;S<24;S++){for(var A=0;A<5;A++){for(var k=0,T=0,$=0;$<5;$++){var E=m[A+5*$];k^=E.high,T^=E.low}var I=g[A];I.high=k,I.low=T}for(var A=0;A<5;A++)for(var L=g[(A+4)%5],N=g[(A+1)%5],M=N.high,X=N.low,k=L.high^(M<<1|X>>>31),T=L.low^(X<<1|M>>>31),$=0;$<5;$++){var E=m[A+5*$];E.high^=k,E.low^=T}for(var q=1;q<25;q++){var k,T,E=m[q],he=E.high,ve=E.low,z=u[q];z<32?(k=he<>>32-z,T=ve<>>32-z):(k=ve<>>64-z,T=he<>>64-z);var U=g[h[q]];U.high=k,U.low=T}var V=g[0],K=m[0];V.high=K.high,V.low=K.low;for(var A=0;A<5;A++)for(var $=0;$<5;$++){var q=A+5*$,E=m[q],Ne=g[q],Se=g[(A+1)%5+5*$],ot=g[(A+2)%5+5*$];E.high=Ne.high^~Se.high&ot.high,E.low=Ne.low^~Se.low&ot.low}var E=m[0],ye=f[S];E.high^=ye.high,E.low^=ye.low}},_doFinalize:function(){var w=this._data,x=w.words;this._nDataBytes*8;var m=w.sigBytes*8,p=this.blockSize*32;x[m>>>5]|=1<<24-m%32,x[(r.ceil((m+1)/p)*p>>>5)-1]|=128,w.sigBytes=x.length*4,this._process();for(var y=this._state,C=this.cfg.outputLength/8,_=C/8,E=[],S=0;S<_;S++){var A=y[S],k=A.high,T=A.low;k=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360,T=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,E.push(T),E.push(k)}return new o.init(E,C)},clone:function(){for(var w=a.clone.call(this),x=w._state=this._state.slice(0),m=0;m<25;m++)x[m]=x[m].clone();return w}});n.SHA3=a._createHelper(b),n.HmacSHA3=a._createHmacHelper(b)}(Math),i.SHA3})}(mu)),mu.exports}var gu={exports:{}},c1;function $k(){return c1||(c1=1,function(e,t){(function(i,r){e.exports=r(De())})(xe,function(i){/** @preserve (c) 2012 by Cédric Mesnil. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: @@ -529,11 +529,11 @@ - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */return function(r){var n=i,s=n.lib,o=s.WordArray,a=s.Hasher,l=n.algo,c=o.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),d=o.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),u=o.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),h=o.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),f=o.create([0,1518500249,1859775393,2400959708,2840853838]),g=o.create([1352829926,1548603684,1836072691,2053994217,0]),b=l.RIPEMD160=a.extend({_doReset:function(){this._hash=o.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(C,E){for(var A=0;A<16;A++){var S=E+A,k=C[S];C[S]=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360}var T=this._hash.words,$=f.words,I=g.words,L=c.words,N=d.words,M=u.words,X=h.words,q,he,ve,z,U,V,K,Ne,Se,ot;V=q=T[0],K=he=T[1],Ne=ve=T[2],Se=z=T[3],ot=U=T[4];for(var ye,A=0;A<80;A+=1)ye=q+C[E+L[A]]|0,A<16?ye+=w(he,ve,z)+$[0]:A<32?ye+=x(he,ve,z)+$[1]:A<48?ye+=m(he,ve,z)+$[2]:A<64?ye+=p(he,ve,z)+$[3]:ye+=y(he,ve,z)+$[4],ye=ye|0,ye=_(ye,M[A]),ye=ye+U|0,q=U,U=z,z=_(ve,10),ve=he,he=ye,ye=V+C[E+N[A]]|0,A<16?ye+=y(K,Ne,Se)+I[0]:A<32?ye+=p(K,Ne,Se)+I[1]:A<48?ye+=m(K,Ne,Se)+I[2]:A<64?ye+=x(K,Ne,Se)+I[3]:ye+=w(K,Ne,Se)+I[4],ye=ye|0,ye=_(ye,X[A]),ye=ye+ot|0,V=ot,ot=Se,Se=_(Ne,10),Ne=K,K=ye;ye=T[1]+ve+Se|0,T[1]=T[2]+z+ot|0,T[2]=T[3]+U+V|0,T[3]=T[4]+q+K|0,T[4]=T[0]+he+Ne|0,T[0]=ye},_doFinalize:function(){var C=this._data,E=C.words,A=this._nDataBytes*8,S=C.sigBytes*8;E[S>>>5]|=128<<24-S%32,E[(S+64>>>9<<4)+14]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,C.sigBytes=(E.length+1)*4,this._process();for(var k=this._hash,T=k.words,$=0;$<5;$++){var I=T[$];T[$]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360}return k},clone:function(){var C=a.clone.call(this);return C._hash=this._hash.clone(),C}});function w(C,E,A){return C^E^A}function x(C,E,A){return C&E|~C&A}function m(C,E,A){return(C|~E)^A}function p(C,E,A){return C&A|E&~A}function y(C,E,A){return C^(E|~A)}function _(C,E){return C<>>32-E}n.RIPEMD160=a._createHelper(b),n.HmacRIPEMD160=a._createHmacHelper(b)}(),i.RIPEMD160})}(gu)),gu.exports}var vu={exports:{}},d1;function qp(){return d1||(d1=1,function(e,t){(function(i,r){e.exports=r(De())})(xe,function(i){(function(){var r=i,n=r.lib,s=n.Base,o=r.enc,a=o.Utf8,l=r.algo;l.HMAC=s.extend({init:function(c,d){c=this._hasher=new c.init,typeof d=="string"&&(d=a.parse(d));var u=c.blockSize,h=u*4;d.sigBytes>h&&(d=c.finalize(d)),d.clamp();for(var f=this._oKey=d.clone(),g=this._iKey=d.clone(),b=f.words,w=g.words,x=0;x>>2]&255;k.sigBytes-=T}};s.BlockCipher=f.extend({cfg:f.cfg.extend({mode:w,padding:m}),reset:function(){var k;f.reset.call(this);var T=this.cfg,$=T.iv,I=T.mode;this._xformMode==this._ENC_XFORM_MODE?k=I.createEncryptor:(k=I.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==k?this._mode.init(this,$&&$.words):(this._mode=k.call(I,this,$&&$.words),this._mode.__creator=k)},_doProcessBlock:function(k,T){this._mode.processBlock(k,T)},_doFinalize:function(){var k,T=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(T.pad(this._data,this.blockSize),k=this._process(!0)):(k=this._process(!0),T.unpad(k)),k},blockSize:128/32});var p=s.CipherParams=o.extend({init:function(k){this.mixIn(k)},toString:function(k){return(k||this.formatter).stringify(this)}}),y=n.format={},_=y.OpenSSL={stringify:function(k){var T,$=k.ciphertext,I=k.salt;return I?T=a.create([1398893684,1701076831]).concat(I).concat($):T=$,T.toString(d)},parse:function(k){var T,$=d.parse(k),I=$.words;return I[0]==1398893684&&I[1]==1701076831&&(T=a.create(I.slice(2,4)),I.splice(0,4),$.sigBytes-=16),p.create({ciphertext:$,salt:T})}},C=s.SerializableCipher=o.extend({cfg:o.extend({format:_}),encrypt:function(k,T,$,I){I=this.cfg.extend(I);var L=k.createEncryptor($,I),N=L.finalize(T),M=L.cfg;return p.create({ciphertext:N,key:$,iv:M.iv,algorithm:k,mode:M.mode,padding:M.padding,blockSize:k.blockSize,formatter:I.format})},decrypt:function(k,T,$,I){I=this.cfg.extend(I),T=this._parse(T,I.format);var L=k.createDecryptor($,I).finalize(T.ciphertext);return L},_parse:function(k,T){return typeof k=="string"?T.parse(k,this):k}}),E=n.kdf={},A=E.OpenSSL={execute:function(k,T,$,I,L){if(I||(I=a.random(64/8)),L)var N=h.create({keySize:T+$,hasher:L}).compute(k,I);else var N=h.create({keySize:T+$}).compute(k,I);var M=a.create(N.words.slice(T),$*4);return N.sigBytes=T*4,p.create({key:N,iv:M,salt:I})}},S=s.PasswordBasedCipher=C.extend({cfg:C.cfg.extend({kdf:A}),encrypt:function(k,T,$,I){I=this.cfg.extend(I);var L=I.kdf.execute($,k.keySize,k.ivSize,I.salt,I.hasher);I.iv=L.iv;var N=C.encrypt.call(this,k,T,L.key,I);return N.mixIn(L),N},decrypt:function(k,T,$,I){I=this.cfg.extend(I),T=this._parse(T,I.format);var L=I.kdf.execute($,k.keySize,k.ivSize,T.salt,I.hasher);I.iv=L.iv;var N=C.decrypt.call(this,k,T,L.key,I);return N}})}()})}(wu)),wu.exports}var _u={exports:{}},p1;function Dk(){return p1||(p1=1,function(e,t){(function(i,r,n){e.exports=r(De(),Dt())})(xe,function(i){return i.mode.CFB=function(){var r=i.lib.BlockCipherMode.extend();r.Encryptor=r.extend({processBlock:function(s,o){var a=this._cipher,l=a.blockSize;n.call(this,s,o,l,a),this._prevBlock=s.slice(o,o+l)}}),r.Decryptor=r.extend({processBlock:function(s,o){var a=this._cipher,l=a.blockSize,c=s.slice(o,o+l);n.call(this,s,o,l,a),this._prevBlock=c}});function n(s,o,a,l){var c,d=this._iv;d?(c=d.slice(0),this._iv=void 0):c=this._prevBlock,l.encryptBlock(c,0);for(var u=0;u>>24)&16711935|(k<<24|k>>>8)&4278255360}var T=this._hash.words,$=f.words,I=g.words,L=c.words,N=d.words,M=u.words,X=h.words,q,he,ve,z,U,V,K,Ne,Se,ot;V=q=T[0],K=he=T[1],Ne=ve=T[2],Se=z=T[3],ot=U=T[4];for(var ye,S=0;S<80;S+=1)ye=q+_[E+L[S]]|0,S<16?ye+=w(he,ve,z)+$[0]:S<32?ye+=x(he,ve,z)+$[1]:S<48?ye+=m(he,ve,z)+$[2]:S<64?ye+=p(he,ve,z)+$[3]:ye+=y(he,ve,z)+$[4],ye=ye|0,ye=C(ye,M[S]),ye=ye+U|0,q=U,U=z,z=C(ve,10),ve=he,he=ye,ye=V+_[E+N[S]]|0,S<16?ye+=y(K,Ne,Se)+I[0]:S<32?ye+=p(K,Ne,Se)+I[1]:S<48?ye+=m(K,Ne,Se)+I[2]:S<64?ye+=x(K,Ne,Se)+I[3]:ye+=w(K,Ne,Se)+I[4],ye=ye|0,ye=C(ye,X[S]),ye=ye+ot|0,V=ot,ot=Se,Se=C(Ne,10),Ne=K,K=ye;ye=T[1]+ve+Se|0,T[1]=T[2]+z+ot|0,T[2]=T[3]+U+V|0,T[3]=T[4]+q+K|0,T[4]=T[0]+he+Ne|0,T[0]=ye},_doFinalize:function(){var _=this._data,E=_.words,S=this._nDataBytes*8,A=_.sigBytes*8;E[A>>>5]|=128<<24-A%32,E[(A+64>>>9<<4)+14]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,_.sigBytes=(E.length+1)*4,this._process();for(var k=this._hash,T=k.words,$=0;$<5;$++){var I=T[$];T[$]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360}return k},clone:function(){var _=a.clone.call(this);return _._hash=this._hash.clone(),_}});function w(_,E,S){return _^E^S}function x(_,E,S){return _&E|~_&S}function m(_,E,S){return(_|~E)^S}function p(_,E,S){return _&S|E&~S}function y(_,E,S){return _^(E|~S)}function C(_,E){return _<>>32-E}n.RIPEMD160=a._createHelper(b),n.HmacRIPEMD160=a._createHmacHelper(b)}(),i.RIPEMD160})}(gu)),gu.exports}var vu={exports:{}},d1;function qp(){return d1||(d1=1,function(e,t){(function(i,r){e.exports=r(De())})(xe,function(i){(function(){var r=i,n=r.lib,s=n.Base,o=r.enc,a=o.Utf8,l=r.algo;l.HMAC=s.extend({init:function(c,d){c=this._hasher=new c.init,typeof d=="string"&&(d=a.parse(d));var u=c.blockSize,h=u*4;d.sigBytes>h&&(d=c.finalize(d)),d.clamp();for(var f=this._oKey=d.clone(),g=this._iKey=d.clone(),b=f.words,w=g.words,x=0;x>>2]&255;k.sigBytes-=T}};s.BlockCipher=f.extend({cfg:f.cfg.extend({mode:w,padding:m}),reset:function(){var k;f.reset.call(this);var T=this.cfg,$=T.iv,I=T.mode;this._xformMode==this._ENC_XFORM_MODE?k=I.createEncryptor:(k=I.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==k?this._mode.init(this,$&&$.words):(this._mode=k.call(I,this,$&&$.words),this._mode.__creator=k)},_doProcessBlock:function(k,T){this._mode.processBlock(k,T)},_doFinalize:function(){var k,T=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(T.pad(this._data,this.blockSize),k=this._process(!0)):(k=this._process(!0),T.unpad(k)),k},blockSize:128/32});var p=s.CipherParams=o.extend({init:function(k){this.mixIn(k)},toString:function(k){return(k||this.formatter).stringify(this)}}),y=n.format={},C=y.OpenSSL={stringify:function(k){var T,$=k.ciphertext,I=k.salt;return I?T=a.create([1398893684,1701076831]).concat(I).concat($):T=$,T.toString(d)},parse:function(k){var T,$=d.parse(k),I=$.words;return I[0]==1398893684&&I[1]==1701076831&&(T=a.create(I.slice(2,4)),I.splice(0,4),$.sigBytes-=16),p.create({ciphertext:$,salt:T})}},_=s.SerializableCipher=o.extend({cfg:o.extend({format:C}),encrypt:function(k,T,$,I){I=this.cfg.extend(I);var L=k.createEncryptor($,I),N=L.finalize(T),M=L.cfg;return p.create({ciphertext:N,key:$,iv:M.iv,algorithm:k,mode:M.mode,padding:M.padding,blockSize:k.blockSize,formatter:I.format})},decrypt:function(k,T,$,I){I=this.cfg.extend(I),T=this._parse(T,I.format);var L=k.createDecryptor($,I).finalize(T.ciphertext);return L},_parse:function(k,T){return typeof k=="string"?T.parse(k,this):k}}),E=n.kdf={},S=E.OpenSSL={execute:function(k,T,$,I,L){if(I||(I=a.random(64/8)),L)var N=h.create({keySize:T+$,hasher:L}).compute(k,I);else var N=h.create({keySize:T+$}).compute(k,I);var M=a.create(N.words.slice(T),$*4);return N.sigBytes=T*4,p.create({key:N,iv:M,salt:I})}},A=s.PasswordBasedCipher=_.extend({cfg:_.cfg.extend({kdf:S}),encrypt:function(k,T,$,I){I=this.cfg.extend(I);var L=I.kdf.execute($,k.keySize,k.ivSize,I.salt,I.hasher);I.iv=L.iv;var N=_.encrypt.call(this,k,T,L.key,I);return N.mixIn(L),N},decrypt:function(k,T,$,I){I=this.cfg.extend(I),T=this._parse(T,I.format);var L=I.kdf.execute($,k.keySize,k.ivSize,T.salt,I.hasher);I.iv=L.iv;var N=_.decrypt.call(this,k,T,L.key,I);return N}})}()})}(wu)),wu.exports}var _u={exports:{}},p1;function Dk(){return p1||(p1=1,function(e,t){(function(i,r,n){e.exports=r(De(),Dt())})(xe,function(i){return i.mode.CFB=function(){var r=i.lib.BlockCipherMode.extend();r.Encryptor=r.extend({processBlock:function(s,o){var a=this._cipher,l=a.blockSize;n.call(this,s,o,l,a),this._prevBlock=s.slice(o,o+l)}}),r.Decryptor=r.extend({processBlock:function(s,o){var a=this._cipher,l=a.blockSize,c=s.slice(o,o+l);n.call(this,s,o,l,a),this._prevBlock=c}});function n(s,o,a,l){var c,d=this._iv;d?(c=d.slice(0),this._iv=void 0):c=this._prevBlock,l.encryptBlock(c,0);for(var u=0;u>24&255)===255){var l=a>>16&255,c=a>>8&255,d=a&255;l===255?(l=0,c===255?(c=0,d===255?d=0:++d):++c):++l,a=0,a+=l<<16,a+=c<<8,a+=d}else a+=1<<24;return a}function s(a){return(a[0]=n(a[0]))===0&&(a[1]=n(a[1])),a}var o=r.Encryptor=r.extend({processBlock:function(a,l){var c=this._cipher,d=c.blockSize,u=this._iv,h=this._counter;u&&(h=this._counter=u.slice(0),this._iv=void 0),s(h);var f=h.slice(0);c.encryptBlock(f,0);for(var g=0;g>>2]|=a<<24-l%4*8,r.sigBytes+=a},unpad:function(r){var n=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=n}},i.pad.Ansix923})}(Su)),Su.exports}var Au={exports:{}},w1;function Nk(){return w1||(w1=1,function(e,t){(function(i,r,n){e.exports=r(De(),Dt())})(xe,function(i){return i.pad.Iso10126={pad:function(r,n){var s=n*4,o=s-r.sigBytes%s;r.concat(i.lib.WordArray.random(o-1)).concat(i.lib.WordArray.create([o<<24],1))},unpad:function(r){var n=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=n}},i.pad.Iso10126})}(Au)),Au.exports}var Tu={exports:{}},_1;function Fk(){return _1||(_1=1,function(e,t){(function(i,r,n){e.exports=r(De(),Dt())})(xe,function(i){return i.pad.Iso97971={pad:function(r,n){r.concat(i.lib.WordArray.create([2147483648],1)),i.pad.ZeroPadding.pad(r,n)},unpad:function(r){i.pad.ZeroPadding.unpad(r),r.sigBytes--}},i.pad.Iso97971})}(Tu)),Tu.exports}var Ru={exports:{}},k1;function zk(){return k1||(k1=1,function(e,t){(function(i,r,n){e.exports=r(De(),Dt())})(xe,function(i){return i.pad.ZeroPadding={pad:function(r,n){var s=n*4;r.clamp(),r.sigBytes+=s-(r.sigBytes%s||s)},unpad:function(r){for(var n=r.words,s=r.sigBytes-1,s=r.sigBytes-1;s>=0;s--)if(n[s>>>2]>>>24-s%4*8&255){r.sigBytes=s+1;break}}},i.pad.ZeroPadding})}(Ru)),Ru.exports}var $u={exports:{}},C1;function Hk(){return C1||(C1=1,function(e,t){(function(i,r,n){e.exports=r(De(),Dt())})(xe,function(i){return i.pad.NoPadding={pad:function(){},unpad:function(){}},i.pad.NoPadding})}($u)),$u.exports}var Iu={exports:{}},E1;function Uk(){return E1||(E1=1,function(e,t){(function(i,r,n){e.exports=r(De(),Dt())})(xe,function(i){return function(r){var n=i,s=n.lib,o=s.CipherParams,a=n.enc,l=a.Hex,c=n.format;c.Hex={stringify:function(d){return d.ciphertext.toString(l)},parse:function(d){var u=l.parse(d);return o.create({ciphertext:u})}}}(),i.format.Hex})}(Iu)),Iu.exports}var Du={exports:{}},x1;function Vk(){return x1||(x1=1,function(e,t){(function(i,r,n){e.exports=r(De(),Ps(),Bs(),Ln(),Dt())})(xe,function(i){return function(){var r=i,n=r.lib,s=n.BlockCipher,o=r.algo,a=[],l=[],c=[],d=[],u=[],h=[],f=[],g=[],b=[],w=[];(function(){for(var p=[],y=0;y<256;y++)y<128?p[y]=y<<1:p[y]=y<<1^283;for(var _=0,C=0,y=0;y<256;y++){var E=C^C<<1^C<<2^C<<3^C<<4;E=E>>>8^E&255^99,a[_]=E,l[E]=_;var A=p[_],S=p[A],k=p[S],T=p[E]*257^E*16843008;c[_]=T<<24|T>>>8,d[_]=T<<16|T>>>16,u[_]=T<<8|T>>>24,h[_]=T;var T=k*16843009^S*65537^A*257^_*16843008;f[E]=T<<24|T>>>8,g[E]=T<<16|T>>>16,b[E]=T<<8|T>>>24,w[E]=T,_?(_=A^p[p[p[k^A]]],C^=p[p[C]]):_=C=1}})();var x=[0,1,2,4,8,16,32,64,128,27,54],m=o.AES=s.extend({_doReset:function(){var p;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var y=this._keyPriorReset=this._key,_=y.words,C=y.sigBytes/4,E=this._nRounds=C+6,A=(E+1)*4,S=this._keySchedule=[],k=0;k6&&k%C==4&&(p=a[p>>>24]<<24|a[p>>>16&255]<<16|a[p>>>8&255]<<8|a[p&255]):(p=p<<8|p>>>24,p=a[p>>>24]<<24|a[p>>>16&255]<<16|a[p>>>8&255]<<8|a[p&255],p^=x[k/C|0]<<24),S[k]=S[k-C]^p);for(var T=this._invKeySchedule=[],$=0;$>>24]]^g[a[p>>>16&255]]^b[a[p>>>8&255]]^w[a[p&255]]}}},encryptBlock:function(p,y){this._doCryptBlock(p,y,this._keySchedule,c,d,u,h,a)},decryptBlock:function(p,y){var _=p[y+1];p[y+1]=p[y+3],p[y+3]=_,this._doCryptBlock(p,y,this._invKeySchedule,f,g,b,w,l);var _=p[y+1];p[y+1]=p[y+3],p[y+3]=_},_doCryptBlock:function(p,y,_,C,E,A,S,k){for(var T=this._nRounds,$=p[y]^_[0],I=p[y+1]^_[1],L=p[y+2]^_[2],N=p[y+3]^_[3],M=4,X=1;X>>24]^E[I>>>16&255]^A[L>>>8&255]^S[N&255]^_[M++],he=C[I>>>24]^E[L>>>16&255]^A[N>>>8&255]^S[$&255]^_[M++],ve=C[L>>>24]^E[N>>>16&255]^A[$>>>8&255]^S[I&255]^_[M++],z=C[N>>>24]^E[$>>>16&255]^A[I>>>8&255]^S[L&255]^_[M++];$=q,I=he,L=ve,N=z}var q=(k[$>>>24]<<24|k[I>>>16&255]<<16|k[L>>>8&255]<<8|k[N&255])^_[M++],he=(k[I>>>24]<<24|k[L>>>16&255]<<16|k[N>>>8&255]<<8|k[$&255])^_[M++],ve=(k[L>>>24]<<24|k[N>>>16&255]<<16|k[$>>>8&255]<<8|k[I&255])^_[M++],z=(k[N>>>24]<<24|k[$>>>16&255]<<16|k[I>>>8&255]<<8|k[L&255])^_[M++];p[y]=q,p[y+1]=he,p[y+2]=ve,p[y+3]=z},keySize:256/32});r.AES=s._createHelper(m)}(),i.AES})}(Du)),Du.exports}var Pu={exports:{}},S1;function Kk(){return S1||(S1=1,function(e,t){(function(i,r,n){e.exports=r(De(),Ps(),Bs(),Ln(),Dt())})(xe,function(i){return function(){var r=i,n=r.lib,s=n.WordArray,o=n.BlockCipher,a=r.algo,l=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],c=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],d=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],h=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],f=a.DES=o.extend({_doReset:function(){for(var x=this._key,m=x.words,p=[],y=0;y<56;y++){var _=l[y]-1;p[y]=m[_>>>5]>>>31-_%32&1}for(var C=this._subKeys=[],E=0;E<16;E++){for(var A=C[E]=[],S=d[E],y=0;y<24;y++)A[y/6|0]|=p[(c[y]-1+S)%28]<<31-y%6,A[4+(y/6|0)]|=p[28+(c[y+24]-1+S)%28]<<31-y%6;A[0]=A[0]<<1|A[0]>>>31;for(var y=1;y<7;y++)A[y]=A[y]>>>(y-1)*4+3;A[7]=A[7]<<5|A[7]>>>27}for(var k=this._invSubKeys=[],y=0;y<16;y++)k[y]=C[15-y]},encryptBlock:function(x,m){this._doCryptBlock(x,m,this._subKeys)},decryptBlock:function(x,m){this._doCryptBlock(x,m,this._invSubKeys)},_doCryptBlock:function(x,m,p){this._lBlock=x[m],this._rBlock=x[m+1],g.call(this,4,252645135),g.call(this,16,65535),b.call(this,2,858993459),b.call(this,8,16711935),g.call(this,1,1431655765);for(var y=0;y<16;y++){for(var _=p[y],C=this._lBlock,E=this._rBlock,A=0,S=0;S<8;S++)A|=u[S][((E^_[S])&h[S])>>>0];this._lBlock=E,this._rBlock=C^A}var k=this._lBlock;this._lBlock=this._rBlock,this._rBlock=k,g.call(this,1,1431655765),b.call(this,8,16711935),b.call(this,2,858993459),g.call(this,16,65535),g.call(this,4,252645135),x[m]=this._lBlock,x[m+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function g(x,m){var p=(this._lBlock>>>x^this._rBlock)&m;this._rBlock^=p,this._lBlock^=p<>>x^this._lBlock)&m;this._lBlock^=p,this._rBlock^=p<192.");var p=m.slice(0,2),y=m.length<4?m.slice(0,2):m.slice(2,4),_=m.length<6?m.slice(0,2):m.slice(4,6);this._des1=f.createEncryptor(s.create(p)),this._des2=f.createEncryptor(s.create(y)),this._des3=f.createEncryptor(s.create(_))},encryptBlock:function(x,m){this._des1.encryptBlock(x,m),this._des2.decryptBlock(x,m),this._des3.encryptBlock(x,m)},decryptBlock:function(x,m){this._des3.decryptBlock(x,m),this._des2.encryptBlock(x,m),this._des1.decryptBlock(x,m)},keySize:192/32,ivSize:64/32,blockSize:64/32});r.TripleDES=o._createHelper(w)}(),i.TripleDES})}(Pu)),Pu.exports}var Bu={exports:{}},A1;function Wk(){return A1||(A1=1,function(e,t){(function(i,r,n){e.exports=r(De(),Ps(),Bs(),Ln(),Dt())})(xe,function(i){return function(){var r=i,n=r.lib,s=n.StreamCipher,o=r.algo,a=o.RC4=s.extend({_doReset:function(){for(var d=this._key,u=d.words,h=d.sigBytes,f=this._S=[],g=0;g<256;g++)f[g]=g;for(var g=0,b=0;g<256;g++){var w=g%h,x=u[w>>>2]>>>24-w%4*8&255;b=(b+f[g]+x)%256;var m=f[g];f[g]=f[b],f[b]=m}this._i=this._j=0},_doProcessBlock:function(d,u){d[u]^=l.call(this)},keySize:256/32,ivSize:0});function l(){for(var d=this._S,u=this._i,h=this._j,f=0,g=0;g<4;g++){u=(u+1)%256,h=(h+d[u])%256;var b=d[u];d[u]=d[h],d[h]=b,f|=d[(d[u]+d[h])%256]<<24-g*8}return this._i=u,this._j=h,f}r.RC4=s._createHelper(a);var c=o.RC4Drop=a.extend({cfg:a.cfg.extend({drop:192}),_doReset:function(){a._doReset.call(this);for(var d=this.cfg.drop;d>0;d--)l.call(this)}});r.RC4Drop=s._createHelper(c)}(),i.RC4})}(Bu)),Bu.exports}var Ou={exports:{}},T1;function qk(){return T1||(T1=1,function(e,t){(function(i,r,n){e.exports=r(De(),Ps(),Bs(),Ln(),Dt())})(xe,function(i){return function(){var r=i,n=r.lib,s=n.StreamCipher,o=r.algo,a=[],l=[],c=[],d=o.Rabbit=s.extend({_doReset:function(){for(var h=this._key.words,f=this.cfg.iv,g=0;g<4;g++)h[g]=(h[g]<<8|h[g]>>>24)&16711935|(h[g]<<24|h[g]>>>8)&4278255360;var b=this._X=[h[0],h[3]<<16|h[2]>>>16,h[1],h[0]<<16|h[3]>>>16,h[2],h[1]<<16|h[0]>>>16,h[3],h[2]<<16|h[1]>>>16],w=this._C=[h[2]<<16|h[2]>>>16,h[0]&4294901760|h[1]&65535,h[3]<<16|h[3]>>>16,h[1]&4294901760|h[2]&65535,h[0]<<16|h[0]>>>16,h[2]&4294901760|h[3]&65535,h[1]<<16|h[1]>>>16,h[3]&4294901760|h[0]&65535];this._b=0;for(var g=0;g<4;g++)u.call(this);for(var g=0;g<8;g++)w[g]^=b[g+4&7];if(f){var x=f.words,m=x[0],p=x[1],y=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360,_=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,C=y>>>16|_&4294901760,E=_<<16|y&65535;w[0]^=y,w[1]^=C,w[2]^=_,w[3]^=E,w[4]^=y,w[5]^=C,w[6]^=_,w[7]^=E;for(var g=0;g<4;g++)u.call(this)}},_doProcessBlock:function(h,f){var g=this._X;u.call(this),a[0]=g[0]^g[5]>>>16^g[3]<<16,a[1]=g[2]^g[7]>>>16^g[5]<<16,a[2]=g[4]^g[1]>>>16^g[7]<<16,a[3]=g[6]^g[3]>>>16^g[1]<<16;for(var b=0;b<4;b++)a[b]=(a[b]<<8|a[b]>>>24)&16711935|(a[b]<<24|a[b]>>>8)&4278255360,h[f+b]^=a[b]},blockSize:128/32,ivSize:64/32});function u(){for(var h=this._X,f=this._C,g=0;g<8;g++)l[g]=f[g];f[0]=f[0]+1295307597+this._b|0,f[1]=f[1]+3545052371+(f[0]>>>0>>0?1:0)|0,f[2]=f[2]+886263092+(f[1]>>>0>>0?1:0)|0,f[3]=f[3]+1295307597+(f[2]>>>0>>0?1:0)|0,f[4]=f[4]+3545052371+(f[3]>>>0>>0?1:0)|0,f[5]=f[5]+886263092+(f[4]>>>0>>0?1:0)|0,f[6]=f[6]+1295307597+(f[5]>>>0>>0?1:0)|0,f[7]=f[7]+3545052371+(f[6]>>>0>>0?1:0)|0,this._b=f[7]>>>0>>0?1:0;for(var g=0;g<8;g++){var b=h[g]+f[g],w=b&65535,x=b>>>16,m=((w*w>>>17)+w*x>>>15)+x*x,p=((b&4294901760)*b|0)+((b&65535)*b|0);c[g]=m^p}h[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,h[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,h[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,h[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,h[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,h[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,h[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,h[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}r.Rabbit=s._createHelper(d)}(),i.Rabbit})}(Ou)),Ou.exports}var Lu={exports:{}},R1;function jk(){return R1||(R1=1,function(e,t){(function(i,r,n){e.exports=r(De(),Ps(),Bs(),Ln(),Dt())})(xe,function(i){return function(){var r=i,n=r.lib,s=n.StreamCipher,o=r.algo,a=[],l=[],c=[],d=o.RabbitLegacy=s.extend({_doReset:function(){var h=this._key.words,f=this.cfg.iv,g=this._X=[h[0],h[3]<<16|h[2]>>>16,h[1],h[0]<<16|h[3]>>>16,h[2],h[1]<<16|h[0]>>>16,h[3],h[2]<<16|h[1]>>>16],b=this._C=[h[2]<<16|h[2]>>>16,h[0]&4294901760|h[1]&65535,h[3]<<16|h[3]>>>16,h[1]&4294901760|h[2]&65535,h[0]<<16|h[0]>>>16,h[2]&4294901760|h[3]&65535,h[1]<<16|h[1]>>>16,h[3]&4294901760|h[0]&65535];this._b=0;for(var w=0;w<4;w++)u.call(this);for(var w=0;w<8;w++)b[w]^=g[w+4&7];if(f){var x=f.words,m=x[0],p=x[1],y=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360,_=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,C=y>>>16|_&4294901760,E=_<<16|y&65535;b[0]^=y,b[1]^=C,b[2]^=_,b[3]^=E,b[4]^=y,b[5]^=C,b[6]^=_,b[7]^=E;for(var w=0;w<4;w++)u.call(this)}},_doProcessBlock:function(h,f){var g=this._X;u.call(this),a[0]=g[0]^g[5]>>>16^g[3]<<16,a[1]=g[2]^g[7]>>>16^g[5]<<16,a[2]=g[4]^g[1]>>>16^g[7]<<16,a[3]=g[6]^g[3]>>>16^g[1]<<16;for(var b=0;b<4;b++)a[b]=(a[b]<<8|a[b]>>>24)&16711935|(a[b]<<24|a[b]>>>8)&4278255360,h[f+b]^=a[b]},blockSize:128/32,ivSize:64/32});function u(){for(var h=this._X,f=this._C,g=0;g<8;g++)l[g]=f[g];f[0]=f[0]+1295307597+this._b|0,f[1]=f[1]+3545052371+(f[0]>>>0>>0?1:0)|0,f[2]=f[2]+886263092+(f[1]>>>0>>0?1:0)|0,f[3]=f[3]+1295307597+(f[2]>>>0>>0?1:0)|0,f[4]=f[4]+3545052371+(f[3]>>>0>>0?1:0)|0,f[5]=f[5]+886263092+(f[4]>>>0>>0?1:0)|0,f[6]=f[6]+1295307597+(f[5]>>>0>>0?1:0)|0,f[7]=f[7]+3545052371+(f[6]>>>0>>0?1:0)|0,this._b=f[7]>>>0>>0?1:0;for(var g=0;g<8;g++){var b=h[g]+f[g],w=b&65535,x=b>>>16,m=((w*w>>>17)+w*x>>>15)+x*x,p=((b&4294901760)*b|0)+((b&65535)*b|0);c[g]=m^p}h[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,h[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,h[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,h[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,h[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,h[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,h[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,h[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}r.RabbitLegacy=s._createHelper(d)}(),i.RabbitLegacy})}(Lu)),Lu.exports}var Mu={exports:{}},$1;function Yk(){return $1||($1=1,function(e,t){(function(i,r,n){e.exports=r(De(),Ps(),Bs(),Ln(),Dt())})(xe,function(i){return function(){var r=i,n=r.lib,s=n.BlockCipher,o=r.algo;const a=16,l=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],c=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var d={pbox:[],sbox:[]};function u(w,x){let m=x>>24&255,p=x>>16&255,y=x>>8&255,_=x&255,C=w.sbox[0][m]+w.sbox[1][p];return C=C^w.sbox[2][y],C=C+w.sbox[3][_],C}function h(w,x,m){let p=x,y=m,_;for(let C=0;C1;--C)p=p^w.pbox[C],y=u(w,p)^y,_=p,p=y,y=_;return _=p,p=y,y=_,y=y^w.pbox[1],p=p^w.pbox[0],{left:p,right:y}}function g(w,x,m){for(let E=0;E<4;E++){w.sbox[E]=[];for(let A=0;A<256;A++)w.sbox[E][A]=c[E][A]}let p=0;for(let E=0;E=m&&(p=0);let y=0,_=0,C=0;for(let E=0;E=0;)e[t]=0}const Qk=0,Tb=1,Jk=2,eC=3,tC=258,jp=29,Cl=256,Qa=Cl+1+jp,lo=30,Yp=19,Rb=2*Qa+1,Xn=15,Nu=16,iC=7,Zp=256,$b=16,Ib=17,Db=18,df=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),fc=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),rC=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),Pb=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),nC=512,Or=new Array((Qa+2)*2);No(Or);const ba=new Array(lo*2);No(ba);const Ja=new Array(nC);No(Ja);const el=new Array(tC-eC+1);No(el);const Xp=new Array(jp);No(Xp);const jc=new Array(lo);No(jc);function Fu(e,t,i,r,n){this.static_tree=e,this.extra_bits=t,this.extra_base=i,this.elems=r,this.max_length=n,this.has_stree=e&&e.length}let Bb,Ob,Lb;function zu(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}const Mb=e=>e<256?Ja[e]:Ja[256+(e>>>7)],tl=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},bi=(e,t,i)=>{e.bi_valid>Nu-i?(e.bi_buf|=t<>Nu-e.bi_valid,e.bi_valid+=i-Nu):(e.bi_buf|=t<{bi(e,i[t*2],i[t*2+1])},Nb=(e,t)=>{let i=0;do i|=e&1,e>>>=1,i<<=1;while(--t>0);return i>>>1},sC=e=>{e.bi_valid===16?(tl(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},oC=(e,t)=>{const i=t.dyn_tree,r=t.max_code,n=t.stat_desc.static_tree,s=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,a=t.stat_desc.extra_base,l=t.stat_desc.max_length;let c,d,u,h,f,g,b=0;for(h=0;h<=Xn;h++)e.bl_count[h]=0;for(i[e.heap[e.heap_max]*2+1]=0,c=e.heap_max+1;cl&&(h=l,b++),i[d*2+1]=h,!(d>r)&&(e.bl_count[h]++,f=0,d>=a&&(f=o[d-a]),g=i[d*2],e.opt_len+=g*(h+f),s&&(e.static_len+=g*(n[d*2+1]+f)));if(b!==0){do{for(h=l-1;e.bl_count[h]===0;)h--;e.bl_count[h]--,e.bl_count[h+1]+=2,e.bl_count[l]--,b-=2}while(b>0);for(h=l;h!==0;h--)for(d=e.bl_count[h];d!==0;)u=e.heap[--c],!(u>r)&&(i[u*2+1]!==h&&(e.opt_len+=(h-i[u*2+1])*i[u*2],i[u*2+1]=h),d--)}},Fb=(e,t,i)=>{const r=new Array(Xn+1);let n=0,s,o;for(s=1;s<=Xn;s++)n=n+i[s-1]<<1,r[s]=n;for(o=0;o<=t;o++){let a=e[o*2+1];a!==0&&(e[o*2]=Nb(r[a]++,a))}},aC=()=>{let e,t,i,r,n;const s=new Array(Xn+1);for(i=0,r=0;r>=7;r{let t;for(t=0;t{e.bi_valid>8?tl(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},P1=(e,t,i,r)=>{const n=t*2,s=i*2;return e[n]{const r=e.heap[i];let n=i<<1;for(;n<=e.heap_len&&(n{let r,n,s=0,o,a;if(e.sym_next!==0)do r=e.pending_buf[e.sym_buf+s++]&255,r+=(e.pending_buf[e.sym_buf+s++]&255)<<8,n=e.pending_buf[e.sym_buf+s++],r===0?gr(e,n,t):(o=el[n],gr(e,o+Cl+1,t),a=df[o],a!==0&&(n-=Xp[o],bi(e,n,a)),r--,o=Mb(r),gr(e,o,i),a=fc[o],a!==0&&(r-=jc[o],bi(e,r,a)));while(s{const i=t.dyn_tree,r=t.stat_desc.static_tree,n=t.stat_desc.has_stree,s=t.stat_desc.elems;let o,a,l=-1,c;for(e.heap_len=0,e.heap_max=Rb,o=0;o>1;o>=1;o--)Hu(e,i,o);c=s;do o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Hu(e,i,1),a=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=a,i[c*2]=i[o*2]+i[a*2],e.depth[c]=(e.depth[o]>=e.depth[a]?e.depth[o]:e.depth[a])+1,i[o*2+1]=i[a*2+1]=c,e.heap[1]=c++,Hu(e,i,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],oC(e,t),Fb(i,l,e.bl_count)},O1=(e,t,i)=>{let r,n=-1,s,o=t[0*2+1],a=0,l=7,c=4;for(o===0&&(l=138,c=3),t[(i+1)*2+1]=65535,r=0;r<=i;r++)s=o,o=t[(r+1)*2+1],!(++a{let r,n=-1,s,o=t[0*2+1],a=0,l=7,c=4;for(o===0&&(l=138,c=3),r=0;r<=i;r++)if(s=o,o=t[(r+1)*2+1],!(++a{let t;for(O1(e,e.dyn_ltree,e.l_desc.max_code),O1(e,e.dyn_dtree,e.d_desc.max_code),uf(e,e.bl_desc),t=Yp-1;t>=3&&e.bl_tree[Pb[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},cC=(e,t,i,r)=>{let n;for(bi(e,t-257,5),bi(e,i-1,5),bi(e,r-4,4),n=0;n{let t=4093624447,i;for(i=0;i<=31;i++,t>>>=1)if(t&1&&e.dyn_ltree[i*2]!==0)return I1;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return D1;for(i=32;i{M1||(aC(),M1=!0),e.l_desc=new zu(e.dyn_ltree,Bb),e.d_desc=new zu(e.dyn_dtree,Ob),e.bl_desc=new zu(e.bl_tree,Lb),e.bi_buf=0,e.bi_valid=0,zb(e)},Ub=(e,t,i,r)=>{bi(e,(Qk<<1)+(r?1:0),3),Hb(e),tl(e,i),tl(e,~i),i&&e.pending_buf.set(e.window.subarray(t,t+i),e.pending),e.pending+=i},hC=e=>{bi(e,Tb<<1,3),gr(e,Zp,Or),sC(e)},fC=(e,t,i,r)=>{let n,s,o=0;e.level>0?(e.strm.data_type===Gk&&(e.strm.data_type=dC(e)),uf(e,e.l_desc),uf(e,e.d_desc),o=lC(e),n=e.opt_len+3+7>>>3,s=e.static_len+3+7>>>3,s<=n&&(n=s)):n=s=i+5,i+4<=n&&t!==-1?Ub(e,t,i,r):e.strategy===Xk||s===n?(bi(e,(Tb<<1)+(r?1:0),3),B1(e,Or,ba)):(bi(e,(Jk<<1)+(r?1:0),3),cC(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),B1(e,e.dyn_ltree,e.dyn_dtree)),zb(e),r&&Hb(e)},pC=(e,t,i)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=i,t===0?e.dyn_ltree[i*2]++:(e.matches++,t--,e.dyn_ltree[(el[i]+Cl+1)*2]++,e.dyn_dtree[Mb(t)*2]++),e.sym_next===e.sym_end);var mC=uC,gC=Ub,vC=fC,yC=pC,bC=hC,wC={_tr_init:mC,_tr_stored_block:gC,_tr_flush_block:vC,_tr_tally:yC,_tr_align:bC};const _C=(e,t,i,r)=>{let n=e&65535|0,s=e>>>16&65535|0,o=0;for(;i!==0;){o=i>2e3?2e3:i,i-=o;do n=n+t[r++]|0,s=s+n|0;while(--o);n%=65521,s%=65521}return n|s<<16|0};var il=_C;const kC=()=>{let e,t=[];for(var i=0;i<256;i++){e=i;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[i]=e}return t},CC=new Uint32Array(kC()),EC=(e,t,i,r)=>{const n=CC,s=r+i;e^=-1;for(let o=r;o>>8^n[(e^t[o])&255];return e^-1};var xt=EC,Cs={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Os={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:xC,_tr_stored_block:hf,_tr_flush_block:SC,_tr_tally:wn,_tr_align:AC}=wC,{Z_NO_FLUSH:_n,Z_PARTIAL_FLUSH:TC,Z_FULL_FLUSH:RC,Z_FINISH:ji,Z_BLOCK:N1,Z_OK:Bt,Z_STREAM_END:F1,Z_STREAM_ERROR:vr,Z_DATA_ERROR:$C,Z_BUF_ERROR:Uu,Z_DEFAULT_COMPRESSION:IC,Z_FILTERED:DC,Z_HUFFMAN_ONLY:Yl,Z_RLE:PC,Z_FIXED:BC,Z_DEFAULT_STRATEGY:OC,Z_UNKNOWN:LC,Z_DEFLATED:Td}=Os,MC=9,NC=15,FC=8,zC=29,HC=256,ff=HC+1+zC,UC=30,VC=19,KC=2*ff+1,WC=15,$e=3,mn=258,yr=mn+$e+1,qC=32,$o=42,Gp=57,pf=69,mf=73,gf=91,vf=103,Gn=113,ia=666,si=1,Fo=2,Es=3,zo=4,jC=3,Qn=(e,t)=>(e.msg=Cs[t],t),z1=e=>e*2-(e>4?9:0),fn=e=>{let t=e.length;for(;--t>=0;)e[t]=0},YC=e=>{let t,i,r,n=e.w_size;t=e.hash_size,r=t;do i=e.head[--r],e.head[r]=i>=n?i-n:0;while(--t);t=n,r=t;do i=e.prev[--r],e.prev[r]=i>=n?i-n:0;while(--t)};let ZC=(e,t,i)=>(t<{const t=e.state;let i=t.pending;i>e.avail_out&&(i=e.avail_out),i!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+i),e.next_out),e.next_out+=i,t.pending_out+=i,e.total_out+=i,e.avail_out-=i,t.pending-=i,t.pending===0&&(t.pending_out=0))},Bi=(e,t)=>{SC(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Ri(e.strm)},ze=(e,t)=>{e.pending_buf[e.pending++]=t},Zo=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},yf=(e,t,i,r)=>{let n=e.avail_in;return n>r&&(n=r),n===0?0:(e.avail_in-=n,t.set(e.input.subarray(e.next_in,e.next_in+n),i),e.state.wrap===1?e.adler=il(e.adler,t,n,i):e.state.wrap===2&&(e.adler=xt(e.adler,t,n,i)),e.next_in+=n,e.total_in+=n,n)},Vb=(e,t)=>{let i=e.max_chain_length,r=e.strstart,n,s,o=e.prev_length,a=e.nice_match;const l=e.strstart>e.w_size-yr?e.strstart-(e.w_size-yr):0,c=e.window,d=e.w_mask,u=e.prev,h=e.strstart+mn;let f=c[r+o-1],g=c[r+o];e.prev_length>=e.good_match&&(i>>=2),a>e.lookahead&&(a=e.lookahead);do if(n=t,!(c[n+o]!==g||c[n+o-1]!==f||c[n]!==c[r]||c[++n]!==c[r+1])){r+=2,n++;do;while(c[++r]===c[++n]&&c[++r]===c[++n]&&c[++r]===c[++n]&&c[++r]===c[++n]&&c[++r]===c[++n]&&c[++r]===c[++n]&&c[++r]===c[++n]&&c[++r]===c[++n]&&ro){if(e.match_start=t,o=s,s>=a)break;f=c[r+o-1],g=c[r+o]}}while((t=u[t&d])>l&&--i!==0);return o<=e.lookahead?o:e.lookahead},Io=e=>{const t=e.w_size;let i,r,n;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-yr)&&(e.window.set(e.window.subarray(t,t+t-r),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),YC(e),r+=t),e.strm.avail_in===0)break;if(i=yf(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=i,e.lookahead+e.insert>=$e)for(n=e.strstart-e.insert,e.ins_h=e.window[n],e.ins_h=kn(e,e.ins_h,e.window[n+1]);e.insert&&(e.ins_h=kn(e,e.ins_h,e.window[n+$e-1]),e.prev[n&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=n,n++,e.insert--,!(e.lookahead+e.insert<$e)););}while(e.lookahead{let i=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,r,n,s,o=0,a=e.strm.avail_in;do{if(r=65535,s=e.bi_valid+42>>3,e.strm.avail_outn+e.strm.avail_in&&(r=n+e.strm.avail_in),r>s&&(r=s),r>8,e.pending_buf[e.pending-2]=~r,e.pending_buf[e.pending-1]=~r>>8,Ri(e.strm),n&&(n>r&&(n=r),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+n),e.strm.next_out),e.strm.next_out+=n,e.strm.avail_out-=n,e.strm.total_out+=n,e.block_start+=n,r-=n),r&&(yf(e.strm,e.strm.output,e.strm.next_out,r),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r)}while(o===0);return a-=e.strm.avail_in,a&&(a>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=a&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-a,e.strm.next_in),e.strstart),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.block_start=e.strstart),e.high_waters&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,s+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),s>e.strm.avail_in&&(s=e.strm.avail_in),s&&(yf(e.strm,e.window,e.strstart,s),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.high_water>3,s=e.pending_buf_size-s>65535?65535:e.pending_buf_size-s,i=s>e.w_size?e.w_size:s,n=e.strstart-e.block_start,(n>=i||(n||t===ji)&&t!==_n&&e.strm.avail_in===0&&n<=s)&&(r=n>s?s:n,o=t===ji&&e.strm.avail_in===0&&r===n?1:0,hf(e,e.block_start,r,o),e.block_start+=r,Ri(e.strm)),o?Es:si)},Vu=(e,t)=>{let i,r;for(;;){if(e.lookahead=$e&&(e.ins_h=kn(e,e.ins_h,e.window[e.strstart+$e-1]),i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),i!==0&&e.strstart-i<=e.w_size-yr&&(e.match_length=Vb(e,i)),e.match_length>=$e)if(r=wn(e,e.strstart-e.match_start,e.match_length-$e),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=$e){e.match_length--;do e.strstart++,e.ins_h=kn(e,e.ins_h,e.window[e.strstart+$e-1]),i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=kn(e,e.ins_h,e.window[e.strstart+1]);else r=wn(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(Bi(e,!1),e.strm.avail_out===0))return si}return e.insert=e.strstart<$e-1?e.strstart:$e-1,t===ji?(Bi(e,!0),e.strm.avail_out===0?Es:zo):e.sym_next&&(Bi(e,!1),e.strm.avail_out===0)?si:Fo},Fs=(e,t)=>{let i,r,n;for(;;){if(e.lookahead=$e&&(e.ins_h=kn(e,e.ins_h,e.window[e.strstart+$e-1]),i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=$e-1,i!==0&&e.prev_length4096)&&(e.match_length=$e-1)),e.prev_length>=$e&&e.match_length<=e.prev_length){n=e.strstart+e.lookahead-$e,r=wn(e,e.strstart-1-e.prev_match,e.prev_length-$e),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=n&&(e.ins_h=kn(e,e.ins_h,e.window[e.strstart+$e-1]),i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=$e-1,e.strstart++,r&&(Bi(e,!1),e.strm.avail_out===0))return si}else if(e.match_available){if(r=wn(e,0,e.window[e.strstart-1]),r&&Bi(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return si}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=wn(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<$e-1?e.strstart:$e-1,t===ji?(Bi(e,!0),e.strm.avail_out===0?Es:zo):e.sym_next&&(Bi(e,!1),e.strm.avail_out===0)?si:Fo},XC=(e,t)=>{let i,r,n,s;const o=e.window;for(;;){if(e.lookahead<=mn){if(Io(e),e.lookahead<=mn&&t===_n)return si;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=$e&&e.strstart>0&&(n=e.strstart-1,r=o[n],r===o[++n]&&r===o[++n]&&r===o[++n])){s=e.strstart+mn;do;while(r===o[++n]&&r===o[++n]&&r===o[++n]&&r===o[++n]&&r===o[++n]&&r===o[++n]&&r===o[++n]&&r===o[++n]&&ne.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=$e?(i=wn(e,1,e.match_length-$e),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(i=wn(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),i&&(Bi(e,!1),e.strm.avail_out===0))return si}return e.insert=0,t===ji?(Bi(e,!0),e.strm.avail_out===0?Es:zo):e.sym_next&&(Bi(e,!1),e.strm.avail_out===0)?si:Fo},GC=(e,t)=>{let i;for(;;){if(e.lookahead===0&&(Io(e),e.lookahead===0)){if(t===_n)return si;break}if(e.match_length=0,i=wn(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,i&&(Bi(e,!1),e.strm.avail_out===0))return si}return e.insert=0,t===ji?(Bi(e,!0),e.strm.avail_out===0?Es:zo):e.sym_next&&(Bi(e,!1),e.strm.avail_out===0)?si:Fo};function hr(e,t,i,r,n){this.good_length=e,this.max_lazy=t,this.nice_length=i,this.max_chain=r,this.func=n}const ra=[new hr(0,0,0,0,Kb),new hr(4,4,8,4,Vu),new hr(4,5,16,8,Vu),new hr(4,6,32,32,Vu),new hr(4,4,16,16,Fs),new hr(8,16,32,32,Fs),new hr(8,16,128,128,Fs),new hr(8,32,128,256,Fs),new hr(32,128,258,1024,Fs),new hr(32,258,258,4096,Fs)],QC=e=>{e.window_size=2*e.w_size,fn(e.head),e.max_lazy_match=ra[e.level].max_lazy,e.good_match=ra[e.level].good_length,e.nice_match=ra[e.level].nice_length,e.max_chain_length=ra[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=$e-1,e.match_available=0,e.ins_h=0};function JC(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Td,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(KC*2),this.dyn_dtree=new Uint16Array((2*UC+1)*2),this.bl_tree=new Uint16Array((2*VC+1)*2),fn(this.dyn_ltree),fn(this.dyn_dtree),fn(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(WC+1),this.heap=new Uint16Array(2*ff+1),fn(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*ff+1),fn(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const El=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==$o&&t.status!==Gp&&t.status!==pf&&t.status!==mf&&t.status!==gf&&t.status!==vf&&t.status!==Gn&&t.status!==ia?1:0},Wb=e=>{if(El(e))return Qn(e,vr);e.total_in=e.total_out=0,e.data_type=LC;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?Gp:t.wrap?$o:Gn,e.adler=t.wrap===2?0:1,t.last_flush=-2,xC(t),Bt},qb=e=>{const t=Wb(e);return t===Bt&&QC(e.state),t},eE=(e,t)=>El(e)||e.state.wrap!==2?vr:(e.state.gzhead=t,Bt),jb=(e,t,i,r,n,s)=>{if(!e)return vr;let o=1;if(t===IC&&(t=6),r<0?(o=0,r=-r):r>15&&(o=2,r-=16),n<1||n>MC||i!==Td||r<8||r>15||t<0||t>9||s<0||s>BC||r===8&&o!==1)return Qn(e,vr);r===8&&(r=9);const a=new JC;return e.state=a,a.strm=e,a.status=$o,a.wrap=o,a.gzhead=null,a.w_bits=r,a.w_size=1<jb(e,t,Td,NC,FC,OC),iE=(e,t)=>{if(El(e)||t>N1||t<0)return e?Qn(e,vr):vr;const i=e.state;if(!e.output||e.avail_in!==0&&!e.input||i.status===ia&&t!==ji)return Qn(e,e.avail_out===0?Uu:vr);const r=i.last_flush;if(i.last_flush=t,i.pending!==0){if(Ri(e),e.avail_out===0)return i.last_flush=-1,Bt}else if(e.avail_in===0&&z1(t)<=z1(r)&&t!==ji)return Qn(e,Uu);if(i.status===ia&&e.avail_in!==0)return Qn(e,Uu);if(i.status===$o&&i.wrap===0&&(i.status=Gn),i.status===$o){let n=Td+(i.w_bits-8<<4)<<8,s=-1;if(i.strategy>=Yl||i.level<2?s=0:i.level<6?s=1:i.level===6?s=2:s=3,n|=s<<6,i.strstart!==0&&(n|=qC),n+=31-n%31,Zo(i,n),i.strstart!==0&&(Zo(i,e.adler>>>16),Zo(i,e.adler&65535)),e.adler=1,i.status=Gn,Ri(e),i.pending!==0)return i.last_flush=-1,Bt}if(i.status===Gp){if(e.adler=0,ze(i,31),ze(i,139),ze(i,8),i.gzhead)ze(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),ze(i,i.gzhead.time&255),ze(i,i.gzhead.time>>8&255),ze(i,i.gzhead.time>>16&255),ze(i,i.gzhead.time>>24&255),ze(i,i.level===9?2:i.strategy>=Yl||i.level<2?4:0),ze(i,i.gzhead.os&255),i.gzhead.extra&&i.gzhead.extra.length&&(ze(i,i.gzhead.extra.length&255),ze(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=xt(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=pf;else if(ze(i,0),ze(i,0),ze(i,0),ze(i,0),ze(i,0),ze(i,i.level===9?2:i.strategy>=Yl||i.level<2?4:0),ze(i,jC),i.status=Gn,Ri(e),i.pending!==0)return i.last_flush=-1,Bt}if(i.status===pf){if(i.gzhead.extra){let n=i.pending,s=(i.gzhead.extra.length&65535)-i.gzindex;for(;i.pending+s>i.pending_buf_size;){let a=i.pending_buf_size-i.pending;if(i.pending_buf.set(i.gzhead.extra.subarray(i.gzindex,i.gzindex+a),i.pending),i.pending=i.pending_buf_size,i.gzhead.hcrc&&i.pending>n&&(e.adler=xt(e.adler,i.pending_buf,i.pending-n,n)),i.gzindex+=a,Ri(e),i.pending!==0)return i.last_flush=-1,Bt;n=0,s-=a}let o=new Uint8Array(i.gzhead.extra);i.pending_buf.set(o.subarray(i.gzindex,i.gzindex+s),i.pending),i.pending+=s,i.gzhead.hcrc&&i.pending>n&&(e.adler=xt(e.adler,i.pending_buf,i.pending-n,n)),i.gzindex=0}i.status=mf}if(i.status===mf){if(i.gzhead.name){let n=i.pending,s;do{if(i.pending===i.pending_buf_size){if(i.gzhead.hcrc&&i.pending>n&&(e.adler=xt(e.adler,i.pending_buf,i.pending-n,n)),Ri(e),i.pending!==0)return i.last_flush=-1,Bt;n=0}i.gzindexn&&(e.adler=xt(e.adler,i.pending_buf,i.pending-n,n)),i.gzindex=0}i.status=gf}if(i.status===gf){if(i.gzhead.comment){let n=i.pending,s;do{if(i.pending===i.pending_buf_size){if(i.gzhead.hcrc&&i.pending>n&&(e.adler=xt(e.adler,i.pending_buf,i.pending-n,n)),Ri(e),i.pending!==0)return i.last_flush=-1,Bt;n=0}i.gzindexn&&(e.adler=xt(e.adler,i.pending_buf,i.pending-n,n))}i.status=vf}if(i.status===vf){if(i.gzhead.hcrc){if(i.pending+2>i.pending_buf_size&&(Ri(e),i.pending!==0))return i.last_flush=-1,Bt;ze(i,e.adler&255),ze(i,e.adler>>8&255),e.adler=0}if(i.status=Gn,Ri(e),i.pending!==0)return i.last_flush=-1,Bt}if(e.avail_in!==0||i.lookahead!==0||t!==_n&&i.status!==ia){let n=i.level===0?Kb(i,t):i.strategy===Yl?GC(i,t):i.strategy===PC?XC(i,t):ra[i.level].func(i,t);if((n===Es||n===zo)&&(i.status=ia),n===si||n===Es)return e.avail_out===0&&(i.last_flush=-1),Bt;if(n===Fo&&(t===TC?AC(i):t!==N1&&(hf(i,0,0,!1),t===RC&&(fn(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),Ri(e),e.avail_out===0))return i.last_flush=-1,Bt}return t!==ji?Bt:i.wrap<=0?F1:(i.wrap===2?(ze(i,e.adler&255),ze(i,e.adler>>8&255),ze(i,e.adler>>16&255),ze(i,e.adler>>24&255),ze(i,e.total_in&255),ze(i,e.total_in>>8&255),ze(i,e.total_in>>16&255),ze(i,e.total_in>>24&255)):(Zo(i,e.adler>>>16),Zo(i,e.adler&65535)),Ri(e),i.wrap>0&&(i.wrap=-i.wrap),i.pending!==0?Bt:F1)},rE=e=>{if(El(e))return vr;const t=e.state.status;return e.state=null,t===Gn?Qn(e,$C):Bt},nE=(e,t)=>{let i=t.length;if(El(e))return vr;const r=e.state,n=r.wrap;if(n===2||n===1&&r.status!==$o||r.lookahead)return vr;if(n===1&&(e.adler=il(e.adler,t,i,0)),r.wrap=0,i>=r.w_size){n===0&&(fn(r.head),r.strstart=0,r.block_start=0,r.insert=0);let l=new Uint8Array(r.w_size);l.set(t.subarray(i-r.w_size,i),0),t=l,i=r.w_size}const s=e.avail_in,o=e.next_in,a=e.input;for(e.avail_in=i,e.next_in=0,e.input=t,Io(r);r.lookahead>=$e;){let l=r.strstart,c=r.lookahead-($e-1);do r.ins_h=kn(r,r.ins_h,r.window[l+$e-1]),r.prev[l&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=l,l++;while(--c);r.strstart=l,r.lookahead=$e-1,Io(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=$e-1,r.match_available=0,e.next_in=o,e.input=a,e.avail_in=s,r.wrap=n,Bt};var sE=tE,oE=jb,aE=qb,lE=Wb,cE=eE,dE=iE,uE=rE,hE=nE,fE="pako deflate (from Nodeca project)",wa={deflateInit:sE,deflateInit2:oE,deflateReset:aE,deflateResetKeep:lE,deflateSetHeader:cE,deflate:dE,deflateEnd:uE,deflateSetDictionary:hE,deflateInfo:fE};const pE=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var mE=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const i=t.shift();if(i){if(typeof i!="object")throw new TypeError(i+"must be non-object");for(const r in i)pE(i,r)&&(e[r]=i[r])}}return e},gE=e=>{let t=0;for(let r=0,n=e.length;r=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;rl[254]=rl[254]=1;var vE=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,i,r,n,s,o=e.length,a=0;for(n=0;n>>6,t[s++]=128|i&63):i<65536?(t[s++]=224|i>>>12,t[s++]=128|i>>>6&63,t[s++]=128|i&63):(t[s++]=240|i>>>18,t[s++]=128|i>>>12&63,t[s++]=128|i>>>6&63,t[s++]=128|i&63);return t};const yE=(e,t)=>{if(t<65534&&e.subarray&&Yb)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let i="";for(let r=0;r{const i=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let r,n;const s=new Array(i*2);for(n=0,r=0;r4){s[n++]=65533,r+=a-1;continue}for(o&=a===2?31:a===3?15:7;a>1&&r1){s[n++]=65533;continue}o<65536?s[n++]=o:(o-=65536,s[n++]=55296|o>>10&1023,s[n++]=56320|o&1023)}return yE(s,n)},wE=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let i=t-1;for(;i>=0&&(e[i]&192)===128;)i--;return i<0||i===0?t:i+rl[e[i]]>t?i:t},nl={string2buf:vE,buf2string:bE,utf8border:wE};function _E(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var Zb=_E;const Xb=Object.prototype.toString,{Z_NO_FLUSH:kE,Z_SYNC_FLUSH:CE,Z_FULL_FLUSH:EE,Z_FINISH:xE,Z_OK:Yc,Z_STREAM_END:SE,Z_DEFAULT_COMPRESSION:AE,Z_DEFAULT_STRATEGY:TE,Z_DEFLATED:RE}=Os;function xl(e){this.options=Rd.assign({level:AE,method:RE,chunkSize:16384,windowBits:15,memLevel:8,strategy:TE},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Zb,this.strm.avail_out=0;let i=wa.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(i!==Yc)throw new Error(Cs[i]);if(t.header&&wa.deflateSetHeader(this.strm,t.header),t.dictionary){let r;if(typeof t.dictionary=="string"?r=nl.string2buf(t.dictionary):Xb.call(t.dictionary)==="[object ArrayBuffer]"?r=new Uint8Array(t.dictionary):r=t.dictionary,i=wa.deflateSetDictionary(this.strm,r),i!==Yc)throw new Error(Cs[i]);this._dict_set=!0}}xl.prototype.push=function(e,t){const i=this.strm,r=this.options.chunkSize;let n,s;if(this.ended)return!1;for(t===~~t?s=t:s=t===!0?xE:kE,typeof e=="string"?i.input=nl.string2buf(e):Xb.call(e)==="[object ArrayBuffer]"?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;;){if(i.avail_out===0&&(i.output=new Uint8Array(r),i.next_out=0,i.avail_out=r),(s===CE||s===EE)&&i.avail_out<=6){this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;continue}if(n=wa.deflate(i,s),n===SE)return i.next_out>0&&this.onData(i.output.subarray(0,i.next_out)),n=wa.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Yc;if(i.avail_out===0){this.onData(i.output);continue}if(s>0&&i.next_out>0){this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;continue}if(i.avail_in===0)break}return!0};xl.prototype.onData=function(e){this.chunks.push(e)};xl.prototype.onEnd=function(e){e===Yc&&(this.result=Rd.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Qp(e,t){const i=new xl(t);if(i.push(e,!0),i.err)throw i.msg||Cs[i.err];return i.result}function $E(e,t){return t=t||{},t.raw=!0,Qp(e,t)}function IE(e,t){return t=t||{},t.gzip=!0,Qp(e,t)}var DE=xl,PE=Qp,BE=$E,OE=IE,LE=Os,ME={Deflate:DE,deflate:PE,deflateRaw:BE,gzip:OE,constants:LE};const Zl=16209,NE=16191;var FE=function(t,i){let r,n,s,o,a,l,c,d,u,h,f,g,b,w,x,m,p,y,_,C,E,A,S,k;const T=t.state;r=t.next_in,S=t.input,n=r+(t.avail_in-5),s=t.next_out,k=t.output,o=s-(i-t.avail_out),a=s+(t.avail_out-257),l=T.dmax,c=T.wsize,d=T.whave,u=T.wnext,h=T.window,f=T.hold,g=T.bits,b=T.lencode,w=T.distcode,x=(1<>>24,f>>>=y,g-=y,y=p>>>16&255,y===0)k[s++]=p&65535;else if(y&16){_=p&65535,y&=15,y&&(g>>=y,g-=y),g<15&&(f+=S[r++]<>>24,f>>>=y,g-=y,y=p>>>16&255,y&16){if(C=p&65535,y&=15,gl){t.msg="invalid distance too far back",T.mode=Zl;break e}if(f>>>=y,g-=y,y=s-o,C>y){if(y=C-y,y>d&&T.sane){t.msg="invalid distance too far back",T.mode=Zl;break e}if(E=0,A=h,u===0){if(E+=c-y,y<_){_-=y;do k[s++]=h[E++];while(--y);E=s-C,A=k}}else if(u2;)k[s++]=A[E++],k[s++]=A[E++],k[s++]=A[E++],_-=3;_&&(k[s++]=A[E++],_>1&&(k[s++]=A[E++]))}else{E=s-C;do k[s++]=k[E++],k[s++]=k[E++],k[s++]=k[E++],_-=3;while(_>2);_&&(k[s++]=k[E++],_>1&&(k[s++]=k[E++]))}}else if(y&64){t.msg="invalid distance code",T.mode=Zl;break e}else{p=w[(p&65535)+(f&(1<>3,r-=_,g-=_<<3,f&=(1<{const l=a.bits;let c=0,d=0,u=0,h=0,f=0,g=0,b=0,w=0,x=0,m=0,p,y,_,C,E,A=null,S;const k=new Uint16Array(zs+1),T=new Uint16Array(zs+1);let $=null,I,L,N;for(c=0;c<=zs;c++)k[c]=0;for(d=0;d=1&&k[h]===0;h--);if(f>h&&(f=h),h===0)return n[s++]=1<<24|64<<16|0,n[s++]=1<<24|64<<16|0,a.bits=1,0;for(u=1;u0&&(e===V1||h!==1))return-1;for(T[1]=0,c=1;cH1||e===K1&&x>U1)return 1;for(;;){I=c-b,o[d]+1=S?(L=$[o[d]-S],N=A[o[d]-S]):(L=96,N=0),p=1<>b)+y]=I<<24|L<<16|N|0;while(y!==0);for(p=1<>=1;if(p!==0?(m&=p-1,m+=p):m=0,d++,--k[c]===0){if(c===h)break;c=t[i+o[d]]}if(c>f&&(m&C)!==_){for(b===0&&(b=f),E+=u,g=c-b,w=1<H1||e===K1&&x>U1)return 1;_=m&C,n[_]=f<<24|g<<16|E-s|0}}return m!==0&&(n[E+m]=c-b<<24|64<<16|0),a.bits=f,0};var _a=KE;const WE=0,Gb=1,Qb=2,{Z_FINISH:W1,Z_BLOCK:qE,Z_TREES:Xl,Z_OK:xs,Z_STREAM_END:jE,Z_NEED_DICT:YE,Z_STREAM_ERROR:tr,Z_DATA_ERROR:Jb,Z_MEM_ERROR:e5,Z_BUF_ERROR:ZE,Z_DEFLATED:q1}=Os,$d=16180,j1=16181,Y1=16182,Z1=16183,X1=16184,G1=16185,Q1=16186,J1=16187,eg=16188,tg=16189,Zc=16190,Tr=16191,Wu=16192,ig=16193,qu=16194,rg=16195,ng=16196,sg=16197,og=16198,Gl=16199,Ql=16200,ag=16201,lg=16202,cg=16203,dg=16204,ug=16205,ju=16206,hg=16207,fg=16208,Xe=16209,t5=16210,i5=16211,XE=852,GE=592,QE=15,JE=QE,pg=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function ex(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Ls=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<$d||t.mode>i5?1:0},r5=e=>{if(Ls(e))return tr;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=$d,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(XE),t.distcode=t.distdyn=new Int32Array(GE),t.sane=1,t.back=-1,xs},n5=e=>{if(Ls(e))return tr;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,r5(e)},s5=(e,t)=>{let i;if(Ls(e))return tr;const r=e.state;return t<0?(i=0,t=-t):(i=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?tr:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=i,r.wbits=t,n5(e))},o5=(e,t)=>{if(!e)return tr;const i=new ex;e.state=i,i.strm=e,i.window=null,i.mode=$d;const r=s5(e,t);return r!==xs&&(e.state=null),r},tx=e=>o5(e,JE);let mg=!0,Yu,Zu;const ix=e=>{if(mg){Yu=new Int32Array(512),Zu=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(_a(Gb,e.lens,0,288,Yu,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;_a(Qb,e.lens,0,32,Zu,0,e.work,{bits:5}),mg=!1}e.lencode=Yu,e.lenbits=9,e.distcode=Zu,e.distbits=5},a5=(e,t,i,r)=>{let n;const s=e.state;return s.window===null&&(s.wsize=1<=s.wsize?(s.window.set(t.subarray(i-s.wsize,i),0),s.wnext=0,s.whave=s.wsize):(n=s.wsize-s.wnext,n>r&&(n=r),s.window.set(t.subarray(i-r,i-r+n),s.wnext),r-=n,r?(s.window.set(t.subarray(i-r,i),0),s.wnext=r,s.whave=s.wsize):(s.wnext+=n,s.wnext===s.wsize&&(s.wnext=0),s.whave{let i,r,n,s,o,a,l,c,d,u,h,f,g,b,w=0,x,m,p,y,_,C,E,A;const S=new Uint8Array(4);let k,T;const $=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Ls(e)||!e.output||!e.input&&e.avail_in!==0)return tr;i=e.state,i.mode===Tr&&(i.mode=Wu),o=e.next_out,n=e.output,l=e.avail_out,s=e.next_in,r=e.input,a=e.avail_in,c=i.hold,d=i.bits,u=a,h=l,A=xs;e:for(;;)switch(i.mode){case $d:if(i.wrap===0){i.mode=Wu;break}for(;d<16;){if(a===0)break e;a--,c+=r[s++]<>>8&255,i.check=xt(i.check,S,2,0),c=0,d=0,i.mode=j1;break}if(i.head&&(i.head.done=!1),!(i.wrap&1)||(((c&255)<<8)+(c>>8))%31){e.msg="incorrect header check",i.mode=Xe;break}if((c&15)!==q1){e.msg="unknown compression method",i.mode=Xe;break}if(c>>>=4,d-=4,E=(c&15)+8,i.wbits===0&&(i.wbits=E),E>15||E>i.wbits){e.msg="invalid window size",i.mode=Xe;break}i.dmax=1<>8&1),i.flags&512&&i.wrap&4&&(S[0]=c&255,S[1]=c>>>8&255,i.check=xt(i.check,S,2,0)),c=0,d=0,i.mode=Y1;case Y1:for(;d<32;){if(a===0)break e;a--,c+=r[s++]<>>8&255,S[2]=c>>>16&255,S[3]=c>>>24&255,i.check=xt(i.check,S,4,0)),c=0,d=0,i.mode=Z1;case Z1:for(;d<16;){if(a===0)break e;a--,c+=r[s++]<>8),i.flags&512&&i.wrap&4&&(S[0]=c&255,S[1]=c>>>8&255,i.check=xt(i.check,S,2,0)),c=0,d=0,i.mode=X1;case X1:if(i.flags&1024){for(;d<16;){if(a===0)break e;a--,c+=r[s++]<>>8&255,i.check=xt(i.check,S,2,0)),c=0,d=0}else i.head&&(i.head.extra=null);i.mode=G1;case G1:if(i.flags&1024&&(f=i.length,f>a&&(f=a),f&&(i.head&&(E=i.head.extra_len-i.length,i.head.extra||(i.head.extra=new Uint8Array(i.head.extra_len)),i.head.extra.set(r.subarray(s,s+f),E)),i.flags&512&&i.wrap&4&&(i.check=xt(i.check,r,f,s)),a-=f,s+=f,i.length-=f),i.length))break e;i.length=0,i.mode=Q1;case Q1:if(i.flags&2048){if(a===0)break e;f=0;do E=r[s+f++],i.head&&E&&i.length<65536&&(i.head.name+=String.fromCharCode(E));while(E&&f>9&1,i.head.done=!0),e.adler=i.check=0,i.mode=Tr;break;case tg:for(;d<32;){if(a===0)break e;a--,c+=r[s++]<>>=d&7,d-=d&7,i.mode=ju;break}for(;d<3;){if(a===0)break e;a--,c+=r[s++]<>>=1,d-=1,c&3){case 0:i.mode=ig;break;case 1:if(ix(i),i.mode=Gl,t===Xl){c>>>=2,d-=2;break e}break;case 2:i.mode=ng;break;case 3:e.msg="invalid block type",i.mode=Xe}c>>>=2,d-=2;break;case ig:for(c>>>=d&7,d-=d&7;d<32;){if(a===0)break e;a--,c+=r[s++]<>>16^65535)){e.msg="invalid stored block lengths",i.mode=Xe;break}if(i.length=c&65535,c=0,d=0,i.mode=qu,t===Xl)break e;case qu:i.mode=rg;case rg:if(f=i.length,f){if(f>a&&(f=a),f>l&&(f=l),f===0)break e;n.set(r.subarray(s,s+f),o),a-=f,s+=f,l-=f,o+=f,i.length-=f;break}i.mode=Tr;break;case ng:for(;d<14;){if(a===0)break e;a--,c+=r[s++]<>>=5,d-=5,i.ndist=(c&31)+1,c>>>=5,d-=5,i.ncode=(c&15)+4,c>>>=4,d-=4,i.nlen>286||i.ndist>30){e.msg="too many length or distance symbols",i.mode=Xe;break}i.have=0,i.mode=sg;case sg:for(;i.have>>=3,d-=3}for(;i.have<19;)i.lens[$[i.have++]]=0;if(i.lencode=i.lendyn,i.lenbits=7,k={bits:i.lenbits},A=_a(WE,i.lens,0,19,i.lencode,0,i.work,k),i.lenbits=k.bits,A){e.msg="invalid code lengths set",i.mode=Xe;break}i.have=0,i.mode=og;case og:for(;i.have>>24,m=w>>>16&255,p=w&65535,!(x<=d);){if(a===0)break e;a--,c+=r[s++]<>>=x,d-=x,i.lens[i.have++]=p;else{if(p===16){for(T=x+2;d>>=x,d-=x,i.have===0){e.msg="invalid bit length repeat",i.mode=Xe;break}E=i.lens[i.have-1],f=3+(c&3),c>>>=2,d-=2}else if(p===17){for(T=x+3;d>>=x,d-=x,E=0,f=3+(c&7),c>>>=3,d-=3}else{for(T=x+7;d>>=x,d-=x,E=0,f=11+(c&127),c>>>=7,d-=7}if(i.have+f>i.nlen+i.ndist){e.msg="invalid bit length repeat",i.mode=Xe;break}for(;f--;)i.lens[i.have++]=E}}if(i.mode===Xe)break;if(i.lens[256]===0){e.msg="invalid code -- missing end-of-block",i.mode=Xe;break}if(i.lenbits=9,k={bits:i.lenbits},A=_a(Gb,i.lens,0,i.nlen,i.lencode,0,i.work,k),i.lenbits=k.bits,A){e.msg="invalid literal/lengths set",i.mode=Xe;break}if(i.distbits=6,i.distcode=i.distdyn,k={bits:i.distbits},A=_a(Qb,i.lens,i.nlen,i.ndist,i.distcode,0,i.work,k),i.distbits=k.bits,A){e.msg="invalid distances set",i.mode=Xe;break}if(i.mode=Gl,t===Xl)break e;case Gl:i.mode=Ql;case Ql:if(a>=6&&l>=258){e.next_out=o,e.avail_out=l,e.next_in=s,e.avail_in=a,i.hold=c,i.bits=d,FE(e,h),o=e.next_out,n=e.output,l=e.avail_out,s=e.next_in,r=e.input,a=e.avail_in,c=i.hold,d=i.bits,i.mode===Tr&&(i.back=-1);break}for(i.back=0;w=i.lencode[c&(1<>>24,m=w>>>16&255,p=w&65535,!(x<=d);){if(a===0)break e;a--,c+=r[s++]<>y)],x=w>>>24,m=w>>>16&255,p=w&65535,!(y+x<=d);){if(a===0)break e;a--,c+=r[s++]<>>=y,d-=y,i.back+=y}if(c>>>=x,d-=x,i.back+=x,i.length=p,m===0){i.mode=ug;break}if(m&32){i.back=-1,i.mode=Tr;break}if(m&64){e.msg="invalid literal/length code",i.mode=Xe;break}i.extra=m&15,i.mode=ag;case ag:if(i.extra){for(T=i.extra;d>>=i.extra,d-=i.extra,i.back+=i.extra}i.was=i.length,i.mode=lg;case lg:for(;w=i.distcode[c&(1<>>24,m=w>>>16&255,p=w&65535,!(x<=d);){if(a===0)break e;a--,c+=r[s++]<>y)],x=w>>>24,m=w>>>16&255,p=w&65535,!(y+x<=d);){if(a===0)break e;a--,c+=r[s++]<>>=y,d-=y,i.back+=y}if(c>>>=x,d-=x,i.back+=x,m&64){e.msg="invalid distance code",i.mode=Xe;break}i.offset=p,i.extra=m&15,i.mode=cg;case cg:if(i.extra){for(T=i.extra;d>>=i.extra,d-=i.extra,i.back+=i.extra}if(i.offset>i.dmax){e.msg="invalid distance too far back",i.mode=Xe;break}i.mode=dg;case dg:if(l===0)break e;if(f=h-l,i.offset>f){if(f=i.offset-f,f>i.whave&&i.sane){e.msg="invalid distance too far back",i.mode=Xe;break}f>i.wnext?(f-=i.wnext,g=i.wsize-f):g=i.wnext-f,f>i.length&&(f=i.length),b=i.window}else b=n,g=o-i.offset,f=i.length;f>l&&(f=l),l-=f,i.length-=f;do n[o++]=b[g++];while(--f);i.length===0&&(i.mode=Ql);break;case ug:if(l===0)break e;n[o++]=i.length,l--,i.mode=Ql;break;case ju:if(i.wrap){for(;d<32;){if(a===0)break e;a--,c|=r[s++]<{if(Ls(e))return tr;let t=e.state;return t.window&&(t.window=null),e.state=null,xs},sx=(e,t)=>{if(Ls(e))return tr;const i=e.state;return i.wrap&2?(i.head=t,t.done=!1,xs):tr},ox=(e,t)=>{const i=t.length;let r,n,s;return Ls(e)||(r=e.state,r.wrap!==0&&r.mode!==Zc)?tr:r.mode===Zc&&(n=1,n=il(n,t,i,0),n!==r.check)?Jb:(s=a5(e,t,i,i),s?(r.mode=t5,e5):(r.havedict=1,xs))};var ax=n5,lx=s5,cx=r5,dx=tx,ux=o5,hx=rx,fx=nx,px=sx,mx=ox,gx="pako inflate (from Nodeca project)",Lr={inflateReset:ax,inflateReset2:lx,inflateResetKeep:cx,inflateInit:dx,inflateInit2:ux,inflate:hx,inflateEnd:fx,inflateGetHeader:px,inflateSetDictionary:mx,inflateInfo:gx};function vx(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var yx=vx;const l5=Object.prototype.toString,{Z_NO_FLUSH:bx,Z_FINISH:wx,Z_OK:sl,Z_STREAM_END:Xu,Z_NEED_DICT:Gu,Z_STREAM_ERROR:_x,Z_DATA_ERROR:gg,Z_MEM_ERROR:kx}=Os;function Sl(e){this.options=Rd.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Zb,this.strm.avail_out=0;let i=Lr.inflateInit2(this.strm,t.windowBits);if(i!==sl)throw new Error(Cs[i]);if(this.header=new yx,Lr.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=nl.string2buf(t.dictionary):l5.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(i=Lr.inflateSetDictionary(this.strm,t.dictionary),i!==sl)))throw new Error(Cs[i])}Sl.prototype.push=function(e,t){const i=this.strm,r=this.options.chunkSize,n=this.options.dictionary;let s,o,a;if(this.ended)return!1;for(t===~~t?o=t:o=t===!0?wx:bx,l5.call(e)==="[object ArrayBuffer]"?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;;){for(i.avail_out===0&&(i.output=new Uint8Array(r),i.next_out=0,i.avail_out=r),s=Lr.inflate(i,o),s===Gu&&n&&(s=Lr.inflateSetDictionary(i,n),s===sl?s=Lr.inflate(i,o):s===gg&&(s=Gu));i.avail_in>0&&s===Xu&&i.state.wrap>0&&e[i.next_in]!==0;)Lr.inflateReset(i),s=Lr.inflate(i,o);switch(s){case _x:case gg:case Gu:case kx:return this.onEnd(s),this.ended=!0,!1}if(a=i.avail_out,i.next_out&&(i.avail_out===0||s===Xu))if(this.options.to==="string"){let l=nl.utf8border(i.output,i.next_out),c=i.next_out-l,d=nl.buf2string(i.output,l);i.next_out=c,i.avail_out=r-c,c&&i.output.set(i.output.subarray(l,l+c),0),this.onData(d)}else this.onData(i.output.length===i.next_out?i.output:i.output.subarray(0,i.next_out));if(!(s===sl&&a===0)){if(s===Xu)return s=Lr.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(i.avail_in===0)break}}return!0};Sl.prototype.onData=function(e){this.chunks.push(e)};Sl.prototype.onEnd=function(e){e===sl&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Rd.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Jp(e,t){const i=new Sl(t);if(i.push(e),i.err)throw i.msg||Cs[i.err];return i.result}function Cx(e,t){return t=t||{},t.raw=!0,Jp(e,t)}var Ex=Sl,xx=Jp,Sx=Cx,Ax=Jp,Tx=Os,Rx={Inflate:Ex,inflate:xx,inflateRaw:Sx,ungzip:Ax,constants:Tx};const{Deflate:$x,deflate:Ix,deflateRaw:Dx,gzip:Px}=ME,{Inflate:Bx,inflate:Ox,inflateRaw:Lx,ungzip:Mx}=Rx;var Nx=$x,Fx=Ix,zx=Dx,Hx=Px,Ux=Bx,Vx=Ox,Kx=Lx,Wx=Mx,qx=Os,c5={Deflate:Nx,deflate:Fx,deflateRaw:zx,gzip:Hx,Inflate:Ux,inflate:Vx,inflateRaw:Kx,ungzip:Wx,constants:qx},d5=new Uint8Array([0,64,128,192,224]),u5=new Uint8Array([2,2,2,3,3]),h5=['": "','": ',": -\0[]\\;' @*&?!^|\r~\`\0\0\0`,"\0,.01925-/34678() =+$%#\0\0\0\0\0"],pc=new Array(94),Ca=new Uint8Array([0,64,96,128,144,160,176,192,208,216,224,228,232,236,238,240,242,244,246,247,248,249,250,251,252,253,254,255]),Ea=new Uint8Array([2,3,3,4,4,4,4,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8]),vg=new Uint8Array([57,58,59,87,88,89]),mi=5;const jx=90,yg=91,Yx=39,Zx=40,Xx=54,Gx=46,bg=81,bf=248,wf=5,Qx=128,Jx=2,eS=0,p5=2,m5=0,g5=6,v5=4,wg=33;function tS(e,t,i){for(var r=0;r32&&(pc[i-wg]=(e<<5)+t,i>=97&&i<=122&&(pc[i-wg-32]=(e<<5)+t))}_g=1}}var iS=new Uint8Array([128,192,224,240,248,252,254,255]);function ce(e,t,i,r,n){for(var s,o,a,l;n>0;){if(s=i%8,o=n,a=r&iS[o-1],a>>=s,o+s>8&&(o=8-s),l=i/8,l<0||t<=l)return-1;s==0?e[i>>3]=a:e[i>>3]|=a,r<<=o,i+=o,n-=o}return i}function ri(e,t,i,r){return r==Ge?(i=ce(e,t,i,bf,wf),i=ce(e,t,i,Qx,Jx)):i=ce(e,t,i,eS,p5),i}function Un(e,t,i,r,n,s,o){var a=r>>5,l=r&31;if(o[a]==0&&a!=Ae)return[i,n];switch(a){case Ae:n!=Ae&&(i=ri(e,t,i,n),i=ce(e,t,i,s[Ae],o[Ae]),n=Ae);break;case ka:i=ri(e,t,i,n),i=ce(e,t,i,s[ka],o[ka]);break;case lt:n!=lt&&(i=ri(e,t,i,n),i=ce(e,t,i,s[lt],o[lt]),Xc[a].charCodeAt(l)>=48&&Xc[a].charCodeAt(l)<=57&&(n=lt))}return[ce(e,t,i,Ca[l],Ea[l]),n]}const Jn=new Uint8Array([2,4,7,11,16]),_f=[4,20,148,2196,67732],Gc=new Uint8Array([1,130,195,228,244]);function Fr(e,t,i,r){for(var n=0;n<5;n++)if(r<_f[n]){i=ce(e,t,i,Gc[n]&248,Gc[n]&7);var s=r-(n>0?_f[n-1]:0)<<16-Jn[n];return Jn[n]>8?(i=ce(e,t,i,s>>8,8),i=ce(e,t,i,s&255,Jn[n]-8)):i=ce(e,t,i,s>>8,Jn[n]),i}return i}const qi=new Uint8Array([6,12,14,16,21]),b5=[0,64,4160,20544,86080];function rS(e,t,i,r,n){const s=new Uint8Array([1,130,195,228,245,253]);var o=0,a=r-n;a<0&&(a=-a);for(var l=0;l<5;l++)if(o+=1<r?128:0,1);var c=a-b5[l];return qi[l]>16?(c<<=24-qi[l],i=ce(e,t,i,c>>16,8),i=ce(e,t,i,c>>8&255,8),i=ce(e,t,i,c&255,qi[l]-16)):qi[l]>8?(c<<=16-qi[l],i=ce(e,t,i,c>>8,8),i=ce(e,t,i,c&255,qi[l]-8)):(c<<=8-qi[l],i=ce(e,t,i,c&255,qi[l])),i}return i}function Qu(e,t,i){var r=0;if(typeof e=="string")return r=e.codePointAt(i),[r,r===e.charCodeAt(i)?1:2];var n=0;return i=0;c--){for(d=i;d>6==2;)d--;if(d-i>mi-1){var f=d-i-mi,g=i-c-mi+1;f>h&&(h=f,u=g)}}return h>0?(s=ri(r,n,s,o),s=ce(r,n,s,a[Ss],l[Ss]),s=Fr(r,n,s,h),s=Fr(r,n,s,u),i+=h+mi,i--,[i,s]):[-i,s]}function sS(e,t,i,r,n,s,o,a,l,c,d){var u=s,h=0,f=0,g=0,b=0,w=0;do for(var x,m,p=o[a-b],y=p.length,_=b==0?i:y;w<_;w++){for(x=i,m=w;m>6==2;)m--;if(m-w>=mi){if(h>0){if(w>f)continue;s=u}h=m-w,f=w,g=b,s=ri(r,n,s,l),s=ce(r,n,s,c[Ss],d[Ss]),s=Fr(r,n,s,h-mi),s=Fr(r,n,s,f),s=Fr(r,n,s,g),w+=h}}while(b++0?(i+=h,i--,[i,s]):[-i,s]}function Ju(e){return e>=48&&e<=57?e-48<<4:e>=65&&e<=70?e-65+10<<4:e>=97&&e<=102?e-97+10<<4:0}const Dr=0,pr=1,Do=2,kf=3;function Jl(e){return e>=48&&e<=57?Dr:e>=97&&e<=102?pr:e>=65&&e<=70?Do:kf}function ec(e,t,i,r,n,s){return i=ri(e,t,i,r),i=ce(e,t,i,n[lt],s[lt]),i=ce(e,t,i,0,2),i}function oS(e,t,i,r,n,s,o){return o[Ae]?(lt!=r&&(i=ri(e,t,i,r),i=ce(e,t,i,s[lt],o[lt])),i=ce(e,t,i,Ca[yg&31],Ea[yg&31])):i=ce(e,t,i,m5,n?v5:g5),i=ce(e,t,i,i==0||e[(i-1)/8]<<(i-1&7)>=0?0:255,8-i%8&7),i}function aS(e,t,i){if(i)return e===t;if(e.length!==t.length)return!1;for(var r=0;r0&&l0)continue;if(l<0&&d<0)return m+1;l=-l}else{if([l,d]=nS(e,t,l,i,m,d,a,r,n),l>0)continue;if(l<0&&d<0)return m+1;l=-l}if(u=e[l],l>0&&t>4&&l0&&u<=(p?"~":126)&&u==e[l-1]&&u==e[l+1]&&u==e[l+2]&&u==e[l+3]){for(var y=l+4;y0){var _=p?"-":45,C=Dr;if(e[l+8]===_&&e[l+13]===_&&e[l+18]===_&&e[l+23]===_){for(var E=l;E0){var C=Dr,k=0;do{var A=p?e.charCodeAt(l+k):e[l+k],S=Jl(A);if(S==kf)break;if(S!=Dr){if(C!=Dr&&C!=S)break;C=S}k++}while(l+k10&&C==Dr&&(C=pr),(C==pr||C==Do)&&k>3){d=ec(i,m,d,a,r,n),d=ce(i,m,d,C==pr?128:224,C==pr?2:4),d=Fr(i,m,d,k);do{var A=p?e.charCodeAt(l):e[l];d=ce(i,m,d,Ju(A),4),l++}while(--k>0);l--;continue}}if(o!=null&&o!=null){var T;for(T=0;T<5;T++)if(typeof o[T]=="string"){for(var $=o[T].length,I=0;I<$&&l+I(L==="r"?55:L==="t"?51:49))break}else if(L.charCodeAt(0)!==u)break}if(I/$>.66){$=$-I,d=ec(i,m,d,a,r,n),d=ce(i,m,d,0,1),d=ce(i,m,d,Gc[T]&248,Gc[T]&7),d=Fr(i,m,d,$);for(var N=0;N=0&&l<=t-M&&n[vg[T]>>5]&&aS(s[T].slice(0,M),e.slice(l,l+M),p)){[d,a]=Un(i,m,d,vg[T],a,r,n),l+=M,l--;break}}if(T<6)continue}if(u=p?e.charCodeAt(l):e[l],g=!1,u>=65&&u<=90?g=!0:b&&(b=!1,d=ri(i,m,d,a),d=ce(i,m,d,r[Ae],n[Ae]),a=Ae),g&&!b&&(a==lt&&(d=ri(i,m,d,a),d=ce(i,m,d,r[Ae],n[Ae]),a=Ae),d=ri(i,m,d,a),d=ce(i,m,d,r[Ae],n[Ae]),a==Ge&&(a=Ae,d=ri(i,m,d,a),d=ce(i,m,d,r[Ae],n[Ae]))),h=0,l+1=32&&u<=126){if(g&&!b){for(c=l+4;c>=l&&c90)break}c==l-1&&(d=ri(i,m,d,a),d=ce(i,m,d,r[Ae],n[Ae]),a=Ae,b=!0)}if(a==Ge){var q=" .,".indexOf(String.fromCharCode(u));if(q!=-1){d=ce(i,m,d,bf,wf),d=ce(i,m,d,lS[q],cS[q]);continue}}u-=32,b&&g&&(u+=32),u===0?a==lt?d=ce(i,m,d,Ca[bg&31],Ea[bg&31]):d=ce(i,m,d,Ca[1],Ea[1]):(u=u-1,[d,a]=Un(i,m,d,pc[u],a,r,n))}else if(u===13&&h===10)[d,a]=Un(i,m,d,Zx,a,r,n),l++;else if(u===10)a==Ge?(d=ce(i,m,d,bf,wf),d=ce(i,m,d,240,4)):[d,a]=Un(i,m,d,Yx,a,r,n);else if(u===13)[d,a]=Un(i,m,d,Xx,a,r,n);else if(u===9)[d,a]=Un(i,m,d,Gx,a,r,n);else{var he,ve,z;if([he,ve]=Qu(e,t,l),he>0)l+=ve,a!=Ge&&([z,ve]=Qu(e,t,l),z>0?(a!=Ae&&(d=ri(i,m,d,a),d=ce(i,m,d,r[Ae],n[Ae])),d=ri(i,m,d,a),d=ce(i,m,d,r[Ae],n[Ae]),d=ce(i,m,d,Ca[1],Ea[1]),a=Ge):(d=ri(i,m,d,a),d=ce(i,m,d,r[Ge],n[Ge]))),d=rS(i,m,d,he,f),f=he,l--;else{for(var U=1,V=l+1;V0||V0);l--}}}{var Ne=(d+7)/8;return d=oS(i,Ne,d,a,b,r,n),Ne}}function uS(e,t,i){return dS(e,t,i,d5,u5,h5,f5)}function e0(e,t){return e[t>>3]&128>>t%8}function t0(e,t,i){var r=i&7,n=i>>3;t>>=3;var s=e[n]<>8-r:s|=255>>8-r,[s,i]}const hS=5,fS=new Uint8Array([127,191,223,239,255]),pS=new Uint8Array([0,4,8,12,20]),mS=new Uint8Array([127,63,31,15,15]),gS=new Uint8Array([5,4,3,1,0]),vS=new Uint8Array([32,32,65,66,99,100,101,102,103,103,136,137,170,170,171,171,172,172,205,206,207,207,208,208,209,209,242,243,244,245,246,247,248,249,250,251]);function eh(e,t,i){if(i>gS[n])];return i+=(s>>5)+1,i>t?[99,i]:[s&31,i]}while(++n0&&(s&yS[n[o]-1])==r[o])return i+=n[o],[o,i]}return[99,i]}function ol(e,t,i,r){for(var n=0;i0;)if(n++,i++,n==r)return[n,i];return i>=t?[99,i]:(i++,[n,i])}function xa(e,t,i,r){for(var n=0;r-- >0&&i0?1<=i)return[-1,t];var n=xa(e,i,t,Jn[r])+(r>0?_f[r-1]:0);return t+=Jn[r],[n,t]}function bS(e,t,i){var r=0;if([r,t]=ol(e,i,t,5),r==99)return[2147483491,t];if(r==5)return[r,t]=ol(e,i,t,4),[2147483392+r,t];if(r>=0){var n=t=i)return[2147483491,t];var s=xa(e,i,t,qi[r]);return s+=b5[r],t+=qi[r],[n>0?-s:s,t]}return[0,t]}function kg(e,t,i,r,n,s,o,a,l,c,d){var u=0;if([u,n]=zr(e,n,t),u+=mi,u=i.length);b++)i[r]=g[h+b],r++;return[n,r]}function Cg(e,t,i,r,n){var s=0;if([s,n]=zr(e,n,t),s+=mi,s=i.length);a++)i[r]=i[r-o],r++;return[n,r]}function Eg(e,t){return e>=0&&e<=9?String.fromCharCode(48+e):t>6),e[t++]=128+(i&63)):i<65536?(e[t++]=224+(i>>12),e[t++]=128+(i>>6&63),e[t++]=128+(i&63)):(e[t++]=240+(i>>18),e[t++]=128+(i>>12&63),e[t++]=128+(i>>6&63),e[t++]=128+(i&63)),t}function ir(e,t,i){return e==null?t+=i:t=e.length);r++)e[t++]=i.charCodeAt(r);return t}function Cf(e,t,i,r,n,s,o){var a,l,c,d,u,h=null,f;y5(),l=1,a=c=Ae,u=0;var g=0;e instanceof Array&&(h=e,f=t,e=h[f],t=e.length),t<<=3;for(var b=i==null?"":0;l>8==8388607){var m=x&255;if(m==99)break;switch(m){case 0:b=ir(i,b," ");continue;case 1:if([c,l]=th(e,t,l,r,n),c==99){l=t;continue}if(c==Ge||c==Ae){a=c;continue}if(c==Ss){if(h==null?[l,b]=Cg(e,t,i,b,l):[l,b]=kg(e,t,i,b,l,h,f,r,n,s,o),l<0)return b;c=a;continue}break;case 2:b=ir(i,b,",");continue;case 3:b=ir(i,b,".");continue;case 4:b=ir(i,b,` -`);continue}}else g+=x,g>0&&(i==null?b+=String.fromCodePoint(g):b=wS(i,b,g));if(a==Ge&&c==Ge)continue}else c=a;var p="",y=u;if([d,l]=eh(e,t,l),d==99||c==99){l=w;break}if(d==0&&c!=ka){if(l>=t)break;if((c!=lt||a!=Ge)&&([c,l]=th(e,t,l,r,n),c==99||l>=t)){l=w;break}if(c==Ae)if(a==Ae){if(n[Ae]==0&&m5==(t0(e,t,l-p5)&255<<8-(u?v5:g5)))break;if(u){y=u=0;continue}if([d,l]=eh(e,t,l),d==99){l=w;break}if(d==0){if([c,l]=th(e,t,l,r,n),c==99){l=w;break}if(c==Ae){u=1;continue}}y=1}else{a=Ae;continue}else if(c==Ss){if(h==null?[l,b]=Cg(e,t,i,b,l):[l,b]=kg(e,t,i,b,l,h,f,r,n,s,o),l<0)break;continue}else{if(c==Ge)continue;if((c!=lt||a!=Ge)&&([d,l]=eh(e,t,l)),d==99){l=w;break}if(c==lt&&d==0){var _;if([_,l]=ol(e,t,l,5),_==99)break;if(_==0){if([_,l]=ol(e,t,l,4),_>=5)break;var C;if([C,l]=zr(e,l,t),C<0||o[_]==null)break;var E=o[_].length;if(C>E)break;C=E-C;for(var A=!1,S=0;S0)}else{var M=0;if(_==2||_==4)M=32;else if([M,l]=zr(e,l,t),M<0||M==0)break;do{var X=xa(e,t,l,4);if(X<0)break;var I=Eg(X,_<3?pr:Do);b=ir(i,b,I),(_==2||_==4)&&(M==25||M==21||M==17||M==13)&&(b=ir(i,b,"-")),l+=4}while(--M>0);if(M>0)break}a==Ge&&(c=Ge);continue}}}if(y&&d==1){c=a=Ge;continue}if(c<3&&d<28&&(p=Xc[c].charAt(d)),p>="a"&&p<="z")a=Ae,y&&(p=String.fromCharCode(p.charCodeAt(0)-32));else if(p!==0&&p.charCodeAt(0)>=48&&p.charCodeAt(0)<=57)a=lt;else if(p.charCodeAt(0)===0&&p!=="0"){if(d==8)b=ih(i,b,`\r -`);else if(c==lt&&d==26){var q;if([q,l]=zr(e,l,t),q<0)break;q+=4;for(var he=i==null?b.charAt(b.length-1):String.fromCharCode(i[b-1]);q--;)b=ir(i,b,he)}else if(c==ka&&d>24)d-=25,b=ih(i,b,s[d]);else if(c==lt&&d>22&&d<26)d-=20,b=ih(i,b,s[d]);else break;a==Ge&&(c=Ge);continue}a==Ge&&(c=Ge),b=ir(i,b,p)}return b}const _S='{"basic":{"alphabet":{"a":["请","上","中","之","等","人","到","年","个","将"],"b":["得","可","并","发","过","协","曲","闭","斋","峦"],"c":["页","于","而","被","无","挽","裕","斜","绪","镜"],"d":["由","把","好","从","会","帕","莹","盈","敬","粒"],"e":["的","在","了","是","为","有","和","我","一","与"],"f":["站","最","号","及","能","迟","鸭","呈","玻","据"],"g":["着","很","此","但","看","浩","附","侃","汐","绸"],"h":["名","呢","又","图","啊","棉","畅","蒸","玫","添"],"i":["对","地","您","给","这","下","网","也","来","你"],"j":["更","天","去","用","只","矽","萌","镁","芯","夸"],"k":["第","者","所","两","里","氢","羟","纽","夏","春"],"l":["自","做","前","二","他","氦","汀","兰","竹","捷"],"m":["家","点","路","至","十","锂","羧","暑","夕","振"],"n":["区","想","向","主","四","铍","烃","惠","芳","岩"],"o":["就","新","吗","该","不","多","还","要","让","大"],"p":["小","如","成","位","其","硼","酞","褔","苑","笋"],"q":["吧","每","机","几","总","碳","铂","涓","绣","悦"],"r":["起","它","内","高","次","氮","铵","奏","鲤","淳"],"s":["非","元","类","五","使","氧","醇","迷","霁","琅"],"t":["首","进","即","没","市","氖","酯","琳","绫","濑"],"u":["后","三","本","都","时","月","或","说","已","以"],"v":["种","快","那","篇","万","钠","炔","柯","睿","琼"],"w":["长","按","报","比","信","硅","烷","静","欣","束"],"x":["再","带","才","全","呀","磷","烯","柔","雪","冰"],"y":["业","却","版","美","们","硫","桉","寒","冻","玖"],"z":["像","走","文","各","当","氯","缬","妃","琉","璃"],"A":["贴","则","老","生","达","商","行","周","证","经"],"B":["事","场","同","化","找","建","手","道","间","式"],"C":["特","城","型","定","接","局","问","重","叫","通"],"D":["件","少","面","金","近","买","听","学","见","称"],"E":["写","选","片","体","组","先","仅","别","表","现"],"F":["雨","泊","注","织","赴","茶","因","设","环","青"],"G":["数","心","子","处","作","项","谁","分","转","字"],"H":["砂","妥","鹦","课","栗","霞","鹉","翌","蕴","憩"],"I":["畔","珑","咫","瑞","玲","郊","蛟","昱","祉","菁"],"J":["铁","宙","耕","琴","铃","瑰","旬","茉","砺","莅"],"K":["钇","莉","筱","森","曳","苹","踵","晰","砥","舀"],"L":["锆","粟","魄","辉","谜","馅","醋","甄","韶","泪"],"M":["钌","倘","祥","善","泉","惦","铠","骏","韵","泣"],"N":["铑","筑","铿","智","禀","磊","桨","檀","荧","铭"],"O":["钯","骐","烛","蔬","凛","溯","困","炯","酿","瑕"],"P":["银","榻","驿","缎","澟","绒","莺","萤","桅","枕"],"Q":["镉","赞","瑾","程","怡","漱","穗","湍","栀","皆"],"R":["碘","礼","饴","舒","芷","麟","沥","描","锄","墩"],"S":["锡","彰","瞻","雅","贮","喵","翊","闪","翎","婉"],"T":["钨","咨","涌","益","嵩","御","饶","纺","栩","稔"],"U":["铋","骆","橘","未","泰","频","琥","囍","浣","裳"],"V":["钕","飒","浇","哦","途","瓢","珀","涨","仓","棠"],"W":["祁","蓬","灿","部","涧","舫","曙","航","礁","渡"],"X":["旺","嫦","漫","佑","钥","谧","葵","咩","诵","绮"],"Y":["阐","译","锻","茜","坞","砌","靛","猫","芮","绚"],"Z":["拌","皎","笙","沃","悟","拓","遨","揽","昼","蔗"]},"numbersymbol":{"0":["卡","风","水","放","花","钾","宏","谊","探","棋"],"1":["需","头","话","曾","楼","钙","吾","恋","菲","遥"],"2":["连","系","门","力","量","钛","苗","氛","鹤","雀"],"3":["书","亿","跟","深","方","钒","鸳","鸯","纸","鸢"],"4":["若","低","谈","明","百","铬","羯","尧","舜","兆"],"5":["关","客","读","双","回","锰","熙","瀚","渊","灯"],"6":["较","品","嘛","单","价","钴","阑","珊","雁","鹂"],"7":["山","西","动","厂","热","锌","鹃","鸠","昆","仑"],"8":["言","笑","度","易","身","镓","乾","坤","澈","饺"],"9":["份","星","千","仍","办","锗","彗","聪","慧","磋"],"+":["集","费","传","室","拉"],"/":["难","界","指","管","具"],"?":["相","儿","李","早","拿"],"-":["科","白","段","飞","住"],".":["利","红","板","光","约"],"(":["变","款","林","夹","院"],")":["服","句","声","务","游"],"[":["股","南","社","阿","远"],"]":["意","换","些","必","赛"],"<":["届","完","乐","彩","讲"],">":["展","帮","且","物","班"],",":["何","流","密","某","房"],"|":["语","亚","常","除","装"],"=":["极","载","题","刚","气"],"@":["米","影","德","世","坐"],"#":["北","招","短","活","斯"],"!":["值","店","树","哪","余"],"~":["盘","速","座","求","创"],"`":["梦","足","半","视","安"],"$":["空","歌","派","顶","登"],"%":["夜","云","感","啦","欲"],"^":["边","工","眼","街","奖"],"&":["获","占","理","任","实"],"*":["知","掉","色","讯","克"],"_":["直","评","往","层","园"],"{":["留","靠","亦","罗","营"],"}":["合","尚","产","诚","汨"],":":["曱","朩","杉","杸","歩"],";":["毋","氕","気","氘","氙"]}},"special":{"DECRYPT":{"JP":["桜","込","凪","雫","実","沢"],"CN":["玚","俟","玊","欤","瞐","珏"]}}}';var na=0,i0=new Uint8Array(32);const fs="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";var es="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",ts="FbPoDRStyJKAUcdahfVXlqwnOGpHZejzvmrBCigQILxkYMuWTEsN",is="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";const kS="ABCDEFGHIJKLMNOPQRSTUVWXYZ",CS="1234567890",ES="+=_-/?.>,<|`~!@#$%^&*(){}[];:",co="1234567890+=_-/?.>,<|`~!@#$%^&*(){}[];:";var rs="1234567890+=_-/?.>,<|`~!@#$%^&*(){}[];:",ns="~3{8}_-$[6(2^|1*%0,<9:`+@7/?.>4=];!)",ss="1234567890+=_-/?.>,<|`~!@#$%^&*(){}[];:";const xS="桜込凪雫実沢",SS="玚俟玊欤瞐珏",Rn="孎",St=JSON.parse(_S);function w5(e,t,i){let r=Ir.SHA256(t),n=mc(r),s=new Uint8Array(n.byteLength+2);s.set(n,0),s.set([i[0],i[1]],n.byteLength),n=s;let o=Ir.lib.WordArray.create(n),a=Ir.SHA256(o),l=mc(a),c=new Uint8Array(16);for(var d=0;d<16;d++)c[d]=l[d];let u=Ir.lib.WordArray.create(c),h=Ir.lib.WordArray.create(e),f=Ir.AES.encrypt(h,r,{mode:Ir.mode.CTR,padding:Ir.pad.NoPadding,iv:u});return mc(f.ciphertext)}function xg(e){let t=c5.gzip(e);return t.byteLength>=e.byteLength?e:t}function AS(e){const t=new Uint8Array(e.buffer,0,2);return t[0]===31&&t[1]===139?c5.ungzip(e):e}function TS(e){let t=new Uint8Array(2048),i=uS(e,e.byteLength,t),r=t.subarray(0,i);if(r.byteLength>=e.byteLength)return e;let n=new Uint8Array(r.byteLength+2);return n.set(r,0),n.set([255,255],r.byteLength),r=n,r}function RS(e){const t=e[e.byteLength-1],i=e[e.byteLength-2];if(t!=255||i!=255)return e;let r=e.subarray(0,e.byteLength-2),n=new Uint8Array(2048),s=Cf(r,r.byteLength,n,d5,u5,h5,f5);return n.subarray(0,s)}function mc(e){const t=new Uint8Array(e.sigBytes);for(let i=0;i>>2]>>>24-i%4*8&255;return t}function $S(e){let t=Ro.encode(e);return Ro.toUint8Array(t)}function Ef(e){let t=Ro.fromUint8Array(e);return Ro.decode(t)}function Sg(e,t,i){return t>e.length-1?e:e.substring(0,t)+i+e.substring(t+1)}function Mr(e){return Math.floor(Math.random()*1e4)%e}function Ag(e,t,i){return e.slice(0,i)+t+e.slice(i)}function IS(e,t){return e.filter(i=>!t.includes(i))}function Hs(e,t){return e.slice(t)+e.slice(0,t)}function Us(e,t){return e.slice(e.length-t)+e.slice(0,e.length-t)}function Vs(e){let t,i,r,n,s,o;return t=fs.indexOf(e),i=co.indexOf(e),r=fs.indexOf(es[t]),n=co.indexOf(rs[i]),s=fs.indexOf(ts[r]),o=co.indexOf(ns[n]),t!=-1?is[s]:i!=-1?ss[o]:Rn}function Tg(e){let t,i,r,n,s,o;return t=is.indexOf(e),i=ss.indexOf(e),r=ts.indexOf(fs[t]),n=ns.indexOf(co[i]),s=es.indexOf(fs[r]),o=rs.indexOf(co[n]),t!=-1?fs[s]:i!=-1?co[o]:Rn}function Qc(){let e=0;na==32&&(na=0),e=i0[na]%10,e==0&&(e=10),e%2==0?(es=Hs(es,6),rs=Hs(rs,6),ts=Us(ts,e*2),ns=Us(ns,e*2),is=Hs(is,e/2+1),ss=Hs(ss,e/2+1)):(es=Us(es,3),rs=Us(rs,3),ts=Hs(ts,e),ns=Hs(ns,e),is=Us(is,(e+7)/2),ss=Us(ss,(e+7)/2)),na++}function Sa(){na=0,i0=new Array(32),es="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",ts="FbPoDRStyJKAUcdahfVXlqwnOGpHZejzvmrBCigQILxkYMuWTEsN",is="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",rs="1234567890+=_-/?.>,<|`~!@#$%^&*(){}[];:",ns="~3{8}_-$[6(2^|1*%0,<9:`+@7/?.>4=];!)",ss="1234567890+=_-/?.>,<|`~!@#$%^&*(){}[];:"}function _5(e){let t=Ir.SHA256(e);i0=mc(t)}class k5{constructor(t,i=!1){this.output=t,this.isEncrypted=i}}function Rg(e){let t=String(e),i=t.length,r,n=!1,s=!1,o=!1;for(let l=0;l{t==n&&(i=Tg(r))});if(i)return i;for(let r in St.basic.numbersymbol)St.basic.numbersymbol[r].forEach(n=>{t==n&&(i=Tg(r))});return i||Rn}const Ho=class ii{constructor(t=ii.TEXT,i=ii.TEXT){if(iu(this,Jo,""),iu(this,ea,""),iu(this,Wt,null),t!=ii.TEXT&&t!=ii.UINT8||i!=ii.TEXT&&i!=ii.UINT8)throw"Unexpected Argument";Hn(this,Jo,t),Hn(this,ea,i)}Input(t,i,r="ABRACADABRA",n=!1){if(Ti(this,Jo)==ii.UINT8){if(Object.prototype.toString.call(t)!="[object Uint8Array]")throw"Unexpected Input Type";let s=new TextDecoder("utf-8",{fatal:!0}),o=!1,a="";try{a=s.decode(t)}catch{o=!0}let l;o?(l=new k5(t,!0,!1),Hn(this,Wt,rh(l,r,n))):(l=Rg(a),l.isEncrypted&&i!=ii.ENCRYPT||i==ii.DECRYPT?Hn(this,Wt,$g(l,r)):Hn(this,Wt,rh(l,r,n)))}else if(Ti(this,Jo)==ii.TEXT){if(Object.prototype.toString.call(t)!="[object String]")throw"Unexpected Input Type";let s=Rg(t);s.isEncrypted&&i!=ii.ENCRYPT||i==ii.DECRYPT?Hn(this,Wt,$g(s,r)):Hn(this,Wt,rh(s,r,n))}return 0}Output(){if(Ti(this,Wt)==null)throw"Null Output, please input some data at first.";if(typeof Ti(this,Wt)=="object")return Ti(this,ea)==ii.TEXT?Ti(this,Wt).output:Ti(this,Wt).output_B!=null?Ti(this,Wt).output_B:new TextEncoder().encode(Ti(this,Wt).output);if(typeof Ti(this,Wt)=="string")return Ti(this,ea)==ii.TEXT?Ti(this,Wt):new TextEncoder().encode(Ti(this,Wt))}};Jo=new WeakMap;ea=new WeakMap;Wt=new WeakMap;kl(Ho,"TEXT","TEXT");kl(Ho,"UINT8","UINT8");kl(Ho,"ENCRYPT","ENCRYPT");kl(Ho,"DECRYPT","DECRYPT");kl(Ho,"AUTO","AUTO");let BS=Ho;const OS=Re("div",{id:"MagicBadge",style:{}},[Re("span",{style:{"font-size":"3rem","font-weight":"bold",margin:"10px 10px 10px 20px",height:"fit-content",width:"fit-content"}},"魔曰"),Re("span",{style:{"font-size":"1rem","font-variant":"petite-caps","margin-left":"20px",height:"fit-content",width:"fit-content"}},"Abracadabra")],-1),LS={id:"MainContainer",style:{display:"grid","grid-template-rows":"80px 150px 80px","grid-gap":"7px"}},MS={key:0,id:"InputCard",variant:"outlined",rows:"2",label:"话语",placeholder:"你渴求吟唱的话语",style:{"grid-area":"1",height:"80px",width:"360px"}},NS=Re("h1",{style:{"align-self":"center","justify-self":"center"}},"选择文件",-1),FS=Re("p",{style:{"align-self":"center","justify-self":"center"}},"拖拽或点击",-1),zS={style:{"align-self":"center","justify-self":"center","margin-bottom":"0"}},HS=Re("mdui-text-field",{id:"KeyCard",variant:"outlined",rows:"1",label:"魔咒",placeholder:"将一切雪藏的魔咒",style:{"grid-column":"span 3","align-self":"center",width:"360px"}},null,-1),US={key:2,id:"OutputText",variant:"outlined",rows:"4",label:"符文",placeholder:"回路末端的符文",style:{"grid-area":"3",height:"120px",width:"360px"}},VS=Re("h1",{style:{"align-self":"center","justify-self":"center"}},"输出文件",-1),KS=Re("div",{id:"CopyrightBadger",style:{"grid-area":"4",display:"grid","grid-template-columns":"50% 50%"}},[Re("p",{style:{position:"relative",width:"fit-content",height:"fit-content",top:"60px","font-size":"1rem","font-variant":"petite-caps","text-align":"left",padding:"6px","border-radius":"inherit",margin:"0px"}},[fd(" Abracadabra V2.5.2"),Re("br"),Re("a",{href:"https://github.com/SheepChef/Abracadabra"},"Github Repo")]),Re("p",{style:{position:"relative",width:"fit-content",height:"fit-content",top:"92px","font-size":"1rem","font-variant":"petite-caps","text-align":"left",padding:"6px","border-radius":"inherit",margin:"0px","justify-self":"end",opacity:"0.5"}}," SheepChef © ")],-1),WS={id:"CryptControl"},qS=Re("span",{style:{"align-self":"center","justify-self":"right","margin-right":"0px"}},"雪藏话语",-1),jS=Re("span",{style:{"align-self":"center","justify-self":"right","margin-right":"0px"}},"探求真意",-1),YS=Re("span",{style:{"align-self":"center","justify-self":"right","margin-right":"0px"}},"去除标志",-1),ZS=Re("div",{id:"PositionOccupie"},null,-1),XS={__name:"HomeView",setup(e){const t=ut("TEXT"),i=ut("TEXT"),r=ut(!1),n=ut(!1),s=ut(!1);ut("#5b6169");var o=ut(new Array);const a=ut(null),l=ut("");no(()=>o.value[0],_=>{a.value=_,l.value=_.name,window.inputfile=_});function c(_){return new Promise((C,E)=>{const A=new FileReader;A.onload=S=>{const k=new Uint8Array(S.target.result);C(k)},A.onerror=E,A.readAsArrayBuffer(_)})}function d(_,C,E){const A=new Blob([_],{type:E});return new File([A],C,{type:E})}function u(_){_.preventDefault(),document.getElementById("FileCard").style.background="#6ea0be"}function h(_){_.preventDefault(),document.getElementById("FileCard").style.background="#5b6169"}function f(_){_.preventDefault()}function g(_){_.preventDefault(),document.getElementById("FileCard").style.background="#5b6169";const C=_.dataTransfer.files;x(C)}function b(_){const C=_.target.files;x(C)}function w(_){document.querySelector("#fileIn").click()}function x(_){o.value=[];for(let C=0;C<_.length;C++){const E=_[C];o.value.push(E)}}function m(){document.getElementById("ForceEnc").checked==!0?(document.getElementById("ForceDec").disabled=!0,document.getElementById("ForceDec").checked=!1,r.value=!0,n.value=!1):document.getElementById("ForceDec").checked==!0?(document.getElementById("ForceEnc").disabled=!0,document.getElementById("Forceq").disabled=!0,document.getElementById("ForceEnc").checked=!1,r.value=!1,n.value=!0):(document.getElementById("ForceDec").disabled=!1,document.getElementById("ForceEnc").disabled=!1,document.getElementById("Forceq").disabled=!1,r.value=!1,n.value=!1)}function p(){document.getElementById("Forceq").checked==!0?s.value=!0:s.value=!1}async function y(){let _=new BS(t.value,i.value),C;try{if(t.value=="TEXT"){if(document.getElementById("InputCard").value=="")return;document.getElementById("KeyCard").value==""?(C="ABRACADABRA",tu({message:"你没有填写魔咒,自动使用默认魔咒,这不安全",autoCloseDelay:1500})):C=document.getElementById("KeyCard").value,r.value?s.value?_.Input(document.getElementById("InputCard").value,"ENCRYPT",C,!0):_.Input(document.getElementById("InputCard").value,"ENCRYPT",C,!1):n.value?_.Input(document.getElementById("InputCard").value,"DECRYPT",C):_.Input(document.getElementById("InputCard").value,"AUTO",C,s.value)}else if(t.value=="UINT8"){if(window.inputfile==null||window.inputfile==null)return;document.getElementById("KeyCard").value==""?(C="ABRACADABRA",tu({message:"你没有填写魔咒,自动使用默认魔咒,这不安全",autoCloseDelay:1500})):C=document.getElementById("KeyCard").value;let E=await c(window.inputfile);r.value?s.value?_.Input(E,"ENCRYPT",C,!0):_.Input(E,"ENCRYPT",C,!1):n.value?_.Input(E,"DECRYPT",C):_.Input(E,"AUTO",C,s.value)}if(i.value=="TEXT")document.getElementById("OutputText").value=_.Output();else if(i.value=="UINT8"){let E=_.Output(),A=d(E,"Abracadabra_Result","application/octet-stream"),S=document.createElement("a");S.download=A.name;let k=URL.createObjectURL(A);S.href=k,S.click(),URL.revokeObjectURL(k)}}catch(E){tu({message:"发生错误, "+E.toString()})}}return Xr(()=>{m()}),ll(()=>{}),(_,C)=>(pi(),Vr(gt,null,[OS,Ue(Qo,{id:"FunctionCard"},{default:Wn(()=>[Re("div",LS,[t.value=="TEXT"?(pi(),Vr("mdui-text-field",MS)):js("",!0),t.value=="UINT8"?(pi(),Ba(Qo,{key:1,id:"FileCard",Background:"#5b6169",Width:"360px",Height:"80px",Other:{"grid-area":1,transition:"all 1s ease"},clickable:"",onDragenter:u,onDragleave:h,onDragover:f,onDrop:g,onClick:w},{default:Wn(()=>[NS,FS,Re("p",zS,Ng(l.value),1),Re("input",{type:"file",id:"fileIn",style:{display:"contents"},onChange:b},null,32)]),_:1})):js("",!0),Re("div",{id:"controlBar",style:{"grid-area":"2",display:"grid","grid-template-columns":"360px"}},[HS,Re("mdui-button",{icon:"arrow_downward--rounded",onClick:y,"full-width":"",style:{"align-self":"center"}},"吟唱你的魔法")]),i.value=="TEXT"?(pi(),Vr("mdui-text-field",US)):js("",!0),i.value=="UINT8"?(pi(),Ba(Qo,{key:3,id:"FileCard2",Background:"#5b6169",Width:"360px",Height:"120px",Other:{"grid-area":3,transition:"all 1s ease"}},{default:Wn(()=>[VS]),_:1})):js("",!0),KS])]),_:1}),Ue(Qo,{id:"FloatCard"},{default:Wn(()=>[Re("div",WS,[qS,Re("mdui-switch",{id:"ForceEnc",style:{"align-self":"center","justify-self":"left"},"unchecked-icon":"hdr_auto--rounded","checked-icon":"auto_awesome--rounded",onChange:m},null,32),jS,Re("mdui-switch",{id:"ForceDec",style:{"align-self":"center","justify-self":"left"},"unchecked-icon":"hdr_auto--rounded","checked-icon":"auto_awesome--rounded",onChange:m},null,32),YS,Re("mdui-switch",{id:"Forceq","checked-icon":"auto_awesome--rounded",style:{"align-self":"center","justify-self":"left"},onChange:p},null,32)])]),_:1}),ZS],64))}},GS={id:"ImWindowContainer",ref:"ImContainer"},QS={id:"ImContentContainer"},JS={id:"main_content",style:{height:"fit-content"}},eA={__name:"ImMainView",setup(e){const t=ut(0),i=new ResizeObserver(r=>{r.forEach(n=>{t.value=n.contentRect.height})});return Xr(()=>{i.observe(document.getElementById("ImWindowContainer"))}),(r,n)=>(pi(),Vr("div",GS,[Ue(rk,{ContainerId:"ImWindowContainer",ContentContainerId:"ImContentContainer",Direction:"Right",Length:"calc(100% - 120px)",Width:"10px",PBottom:"10px",PRight:"2px",PMarginOne:"27px",PMarginTwo:"0px",Id:"TestBar"}),Re("div",QS,[Re("div",JS,[Ue(XS)])])],512))}},tA=Re("header",null,[Re("link",{rel:"shortcut icon",href:"favicon.ico"})],-1),iA={style:{width:"100% !important",height:"100%"}},rA={class:"InnerUI",fullHeight:""},nA={__name:"App",setup(e){return Xr(()=>{}),(t,i)=>(pi(),Vr(gt,null,[tA,Re("mdui-layout",iA,[Re("mdui-layout-main",rA,[Ue(eA)])])],64))}};window.addEventListener("beforeinstallprompt",e=>{e.preventDefault(),window.deferredPrompt=e});const C5=$2(nA);J_("#09355b");C5.component("Card",Qo);C5.mount("body"); + */return i.mode.CTRGladman=function(){var r=i.lib.BlockCipherMode.extend();function n(a){if((a>>24&255)===255){var l=a>>16&255,c=a>>8&255,d=a&255;l===255?(l=0,c===255?(c=0,d===255?d=0:++d):++c):++l,a=0,a+=l<<16,a+=c<<8,a+=d}else a+=1<<24;return a}function s(a){return(a[0]=n(a[0]))===0&&(a[1]=n(a[1])),a}var o=r.Encryptor=r.extend({processBlock:function(a,l){var c=this._cipher,d=c.blockSize,u=this._iv,h=this._counter;u&&(h=this._counter=u.slice(0),this._iv=void 0),s(h);var f=h.slice(0);c.encryptBlock(f,0);for(var g=0;g>>2]|=a<<24-l%4*8,r.sigBytes+=a},unpad:function(r){var n=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=n}},i.pad.Ansix923})}(Su)),Su.exports}var Au={exports:{}},w1;function Nk(){return w1||(w1=1,function(e,t){(function(i,r,n){e.exports=r(De(),Dt())})(xe,function(i){return i.pad.Iso10126={pad:function(r,n){var s=n*4,o=s-r.sigBytes%s;r.concat(i.lib.WordArray.random(o-1)).concat(i.lib.WordArray.create([o<<24],1))},unpad:function(r){var n=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=n}},i.pad.Iso10126})}(Au)),Au.exports}var Tu={exports:{}},_1;function Fk(){return _1||(_1=1,function(e,t){(function(i,r,n){e.exports=r(De(),Dt())})(xe,function(i){return i.pad.Iso97971={pad:function(r,n){r.concat(i.lib.WordArray.create([2147483648],1)),i.pad.ZeroPadding.pad(r,n)},unpad:function(r){i.pad.ZeroPadding.unpad(r),r.sigBytes--}},i.pad.Iso97971})}(Tu)),Tu.exports}var Ru={exports:{}},k1;function zk(){return k1||(k1=1,function(e,t){(function(i,r,n){e.exports=r(De(),Dt())})(xe,function(i){return i.pad.ZeroPadding={pad:function(r,n){var s=n*4;r.clamp(),r.sigBytes+=s-(r.sigBytes%s||s)},unpad:function(r){for(var n=r.words,s=r.sigBytes-1,s=r.sigBytes-1;s>=0;s--)if(n[s>>>2]>>>24-s%4*8&255){r.sigBytes=s+1;break}}},i.pad.ZeroPadding})}(Ru)),Ru.exports}var $u={exports:{}},C1;function Hk(){return C1||(C1=1,function(e,t){(function(i,r,n){e.exports=r(De(),Dt())})(xe,function(i){return i.pad.NoPadding={pad:function(){},unpad:function(){}},i.pad.NoPadding})}($u)),$u.exports}var Iu={exports:{}},E1;function Uk(){return E1||(E1=1,function(e,t){(function(i,r,n){e.exports=r(De(),Dt())})(xe,function(i){return function(r){var n=i,s=n.lib,o=s.CipherParams,a=n.enc,l=a.Hex,c=n.format;c.Hex={stringify:function(d){return d.ciphertext.toString(l)},parse:function(d){var u=l.parse(d);return o.create({ciphertext:u})}}}(),i.format.Hex})}(Iu)),Iu.exports}var Du={exports:{}},x1;function Vk(){return x1||(x1=1,function(e,t){(function(i,r,n){e.exports=r(De(),Ps(),Bs(),Ln(),Dt())})(xe,function(i){return function(){var r=i,n=r.lib,s=n.BlockCipher,o=r.algo,a=[],l=[],c=[],d=[],u=[],h=[],f=[],g=[],b=[],w=[];(function(){for(var p=[],y=0;y<256;y++)y<128?p[y]=y<<1:p[y]=y<<1^283;for(var C=0,_=0,y=0;y<256;y++){var E=_^_<<1^_<<2^_<<3^_<<4;E=E>>>8^E&255^99,a[C]=E,l[E]=C;var S=p[C],A=p[S],k=p[A],T=p[E]*257^E*16843008;c[C]=T<<24|T>>>8,d[C]=T<<16|T>>>16,u[C]=T<<8|T>>>24,h[C]=T;var T=k*16843009^A*65537^S*257^C*16843008;f[E]=T<<24|T>>>8,g[E]=T<<16|T>>>16,b[E]=T<<8|T>>>24,w[E]=T,C?(C=S^p[p[p[k^S]]],_^=p[p[_]]):C=_=1}})();var x=[0,1,2,4,8,16,32,64,128,27,54],m=o.AES=s.extend({_doReset:function(){var p;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var y=this._keyPriorReset=this._key,C=y.words,_=y.sigBytes/4,E=this._nRounds=_+6,S=(E+1)*4,A=this._keySchedule=[],k=0;k6&&k%_==4&&(p=a[p>>>24]<<24|a[p>>>16&255]<<16|a[p>>>8&255]<<8|a[p&255]):(p=p<<8|p>>>24,p=a[p>>>24]<<24|a[p>>>16&255]<<16|a[p>>>8&255]<<8|a[p&255],p^=x[k/_|0]<<24),A[k]=A[k-_]^p);for(var T=this._invKeySchedule=[],$=0;$>>24]]^g[a[p>>>16&255]]^b[a[p>>>8&255]]^w[a[p&255]]}}},encryptBlock:function(p,y){this._doCryptBlock(p,y,this._keySchedule,c,d,u,h,a)},decryptBlock:function(p,y){var C=p[y+1];p[y+1]=p[y+3],p[y+3]=C,this._doCryptBlock(p,y,this._invKeySchedule,f,g,b,w,l);var C=p[y+1];p[y+1]=p[y+3],p[y+3]=C},_doCryptBlock:function(p,y,C,_,E,S,A,k){for(var T=this._nRounds,$=p[y]^C[0],I=p[y+1]^C[1],L=p[y+2]^C[2],N=p[y+3]^C[3],M=4,X=1;X>>24]^E[I>>>16&255]^S[L>>>8&255]^A[N&255]^C[M++],he=_[I>>>24]^E[L>>>16&255]^S[N>>>8&255]^A[$&255]^C[M++],ve=_[L>>>24]^E[N>>>16&255]^S[$>>>8&255]^A[I&255]^C[M++],z=_[N>>>24]^E[$>>>16&255]^S[I>>>8&255]^A[L&255]^C[M++];$=q,I=he,L=ve,N=z}var q=(k[$>>>24]<<24|k[I>>>16&255]<<16|k[L>>>8&255]<<8|k[N&255])^C[M++],he=(k[I>>>24]<<24|k[L>>>16&255]<<16|k[N>>>8&255]<<8|k[$&255])^C[M++],ve=(k[L>>>24]<<24|k[N>>>16&255]<<16|k[$>>>8&255]<<8|k[I&255])^C[M++],z=(k[N>>>24]<<24|k[$>>>16&255]<<16|k[I>>>8&255]<<8|k[L&255])^C[M++];p[y]=q,p[y+1]=he,p[y+2]=ve,p[y+3]=z},keySize:256/32});r.AES=s._createHelper(m)}(),i.AES})}(Du)),Du.exports}var Pu={exports:{}},S1;function Kk(){return S1||(S1=1,function(e,t){(function(i,r,n){e.exports=r(De(),Ps(),Bs(),Ln(),Dt())})(xe,function(i){return function(){var r=i,n=r.lib,s=n.WordArray,o=n.BlockCipher,a=r.algo,l=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],c=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],d=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],h=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],f=a.DES=o.extend({_doReset:function(){for(var x=this._key,m=x.words,p=[],y=0;y<56;y++){var C=l[y]-1;p[y]=m[C>>>5]>>>31-C%32&1}for(var _=this._subKeys=[],E=0;E<16;E++){for(var S=_[E]=[],A=d[E],y=0;y<24;y++)S[y/6|0]|=p[(c[y]-1+A)%28]<<31-y%6,S[4+(y/6|0)]|=p[28+(c[y+24]-1+A)%28]<<31-y%6;S[0]=S[0]<<1|S[0]>>>31;for(var y=1;y<7;y++)S[y]=S[y]>>>(y-1)*4+3;S[7]=S[7]<<5|S[7]>>>27}for(var k=this._invSubKeys=[],y=0;y<16;y++)k[y]=_[15-y]},encryptBlock:function(x,m){this._doCryptBlock(x,m,this._subKeys)},decryptBlock:function(x,m){this._doCryptBlock(x,m,this._invSubKeys)},_doCryptBlock:function(x,m,p){this._lBlock=x[m],this._rBlock=x[m+1],g.call(this,4,252645135),g.call(this,16,65535),b.call(this,2,858993459),b.call(this,8,16711935),g.call(this,1,1431655765);for(var y=0;y<16;y++){for(var C=p[y],_=this._lBlock,E=this._rBlock,S=0,A=0;A<8;A++)S|=u[A][((E^C[A])&h[A])>>>0];this._lBlock=E,this._rBlock=_^S}var k=this._lBlock;this._lBlock=this._rBlock,this._rBlock=k,g.call(this,1,1431655765),b.call(this,8,16711935),b.call(this,2,858993459),g.call(this,16,65535),g.call(this,4,252645135),x[m]=this._lBlock,x[m+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function g(x,m){var p=(this._lBlock>>>x^this._rBlock)&m;this._rBlock^=p,this._lBlock^=p<>>x^this._lBlock)&m;this._lBlock^=p,this._rBlock^=p<192.");var p=m.slice(0,2),y=m.length<4?m.slice(0,2):m.slice(2,4),C=m.length<6?m.slice(0,2):m.slice(4,6);this._des1=f.createEncryptor(s.create(p)),this._des2=f.createEncryptor(s.create(y)),this._des3=f.createEncryptor(s.create(C))},encryptBlock:function(x,m){this._des1.encryptBlock(x,m),this._des2.decryptBlock(x,m),this._des3.encryptBlock(x,m)},decryptBlock:function(x,m){this._des3.decryptBlock(x,m),this._des2.encryptBlock(x,m),this._des1.decryptBlock(x,m)},keySize:192/32,ivSize:64/32,blockSize:64/32});r.TripleDES=o._createHelper(w)}(),i.TripleDES})}(Pu)),Pu.exports}var Bu={exports:{}},A1;function Wk(){return A1||(A1=1,function(e,t){(function(i,r,n){e.exports=r(De(),Ps(),Bs(),Ln(),Dt())})(xe,function(i){return function(){var r=i,n=r.lib,s=n.StreamCipher,o=r.algo,a=o.RC4=s.extend({_doReset:function(){for(var d=this._key,u=d.words,h=d.sigBytes,f=this._S=[],g=0;g<256;g++)f[g]=g;for(var g=0,b=0;g<256;g++){var w=g%h,x=u[w>>>2]>>>24-w%4*8&255;b=(b+f[g]+x)%256;var m=f[g];f[g]=f[b],f[b]=m}this._i=this._j=0},_doProcessBlock:function(d,u){d[u]^=l.call(this)},keySize:256/32,ivSize:0});function l(){for(var d=this._S,u=this._i,h=this._j,f=0,g=0;g<4;g++){u=(u+1)%256,h=(h+d[u])%256;var b=d[u];d[u]=d[h],d[h]=b,f|=d[(d[u]+d[h])%256]<<24-g*8}return this._i=u,this._j=h,f}r.RC4=s._createHelper(a);var c=o.RC4Drop=a.extend({cfg:a.cfg.extend({drop:192}),_doReset:function(){a._doReset.call(this);for(var d=this.cfg.drop;d>0;d--)l.call(this)}});r.RC4Drop=s._createHelper(c)}(),i.RC4})}(Bu)),Bu.exports}var Ou={exports:{}},T1;function qk(){return T1||(T1=1,function(e,t){(function(i,r,n){e.exports=r(De(),Ps(),Bs(),Ln(),Dt())})(xe,function(i){return function(){var r=i,n=r.lib,s=n.StreamCipher,o=r.algo,a=[],l=[],c=[],d=o.Rabbit=s.extend({_doReset:function(){for(var h=this._key.words,f=this.cfg.iv,g=0;g<4;g++)h[g]=(h[g]<<8|h[g]>>>24)&16711935|(h[g]<<24|h[g]>>>8)&4278255360;var b=this._X=[h[0],h[3]<<16|h[2]>>>16,h[1],h[0]<<16|h[3]>>>16,h[2],h[1]<<16|h[0]>>>16,h[3],h[2]<<16|h[1]>>>16],w=this._C=[h[2]<<16|h[2]>>>16,h[0]&4294901760|h[1]&65535,h[3]<<16|h[3]>>>16,h[1]&4294901760|h[2]&65535,h[0]<<16|h[0]>>>16,h[2]&4294901760|h[3]&65535,h[1]<<16|h[1]>>>16,h[3]&4294901760|h[0]&65535];this._b=0;for(var g=0;g<4;g++)u.call(this);for(var g=0;g<8;g++)w[g]^=b[g+4&7];if(f){var x=f.words,m=x[0],p=x[1],y=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360,C=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,_=y>>>16|C&4294901760,E=C<<16|y&65535;w[0]^=y,w[1]^=_,w[2]^=C,w[3]^=E,w[4]^=y,w[5]^=_,w[6]^=C,w[7]^=E;for(var g=0;g<4;g++)u.call(this)}},_doProcessBlock:function(h,f){var g=this._X;u.call(this),a[0]=g[0]^g[5]>>>16^g[3]<<16,a[1]=g[2]^g[7]>>>16^g[5]<<16,a[2]=g[4]^g[1]>>>16^g[7]<<16,a[3]=g[6]^g[3]>>>16^g[1]<<16;for(var b=0;b<4;b++)a[b]=(a[b]<<8|a[b]>>>24)&16711935|(a[b]<<24|a[b]>>>8)&4278255360,h[f+b]^=a[b]},blockSize:128/32,ivSize:64/32});function u(){for(var h=this._X,f=this._C,g=0;g<8;g++)l[g]=f[g];f[0]=f[0]+1295307597+this._b|0,f[1]=f[1]+3545052371+(f[0]>>>0>>0?1:0)|0,f[2]=f[2]+886263092+(f[1]>>>0>>0?1:0)|0,f[3]=f[3]+1295307597+(f[2]>>>0>>0?1:0)|0,f[4]=f[4]+3545052371+(f[3]>>>0>>0?1:0)|0,f[5]=f[5]+886263092+(f[4]>>>0>>0?1:0)|0,f[6]=f[6]+1295307597+(f[5]>>>0>>0?1:0)|0,f[7]=f[7]+3545052371+(f[6]>>>0>>0?1:0)|0,this._b=f[7]>>>0>>0?1:0;for(var g=0;g<8;g++){var b=h[g]+f[g],w=b&65535,x=b>>>16,m=((w*w>>>17)+w*x>>>15)+x*x,p=((b&4294901760)*b|0)+((b&65535)*b|0);c[g]=m^p}h[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,h[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,h[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,h[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,h[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,h[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,h[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,h[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}r.Rabbit=s._createHelper(d)}(),i.Rabbit})}(Ou)),Ou.exports}var Lu={exports:{}},R1;function jk(){return R1||(R1=1,function(e,t){(function(i,r,n){e.exports=r(De(),Ps(),Bs(),Ln(),Dt())})(xe,function(i){return function(){var r=i,n=r.lib,s=n.StreamCipher,o=r.algo,a=[],l=[],c=[],d=o.RabbitLegacy=s.extend({_doReset:function(){var h=this._key.words,f=this.cfg.iv,g=this._X=[h[0],h[3]<<16|h[2]>>>16,h[1],h[0]<<16|h[3]>>>16,h[2],h[1]<<16|h[0]>>>16,h[3],h[2]<<16|h[1]>>>16],b=this._C=[h[2]<<16|h[2]>>>16,h[0]&4294901760|h[1]&65535,h[3]<<16|h[3]>>>16,h[1]&4294901760|h[2]&65535,h[0]<<16|h[0]>>>16,h[2]&4294901760|h[3]&65535,h[1]<<16|h[1]>>>16,h[3]&4294901760|h[0]&65535];this._b=0;for(var w=0;w<4;w++)u.call(this);for(var w=0;w<8;w++)b[w]^=g[w+4&7];if(f){var x=f.words,m=x[0],p=x[1],y=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360,C=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,_=y>>>16|C&4294901760,E=C<<16|y&65535;b[0]^=y,b[1]^=_,b[2]^=C,b[3]^=E,b[4]^=y,b[5]^=_,b[6]^=C,b[7]^=E;for(var w=0;w<4;w++)u.call(this)}},_doProcessBlock:function(h,f){var g=this._X;u.call(this),a[0]=g[0]^g[5]>>>16^g[3]<<16,a[1]=g[2]^g[7]>>>16^g[5]<<16,a[2]=g[4]^g[1]>>>16^g[7]<<16,a[3]=g[6]^g[3]>>>16^g[1]<<16;for(var b=0;b<4;b++)a[b]=(a[b]<<8|a[b]>>>24)&16711935|(a[b]<<24|a[b]>>>8)&4278255360,h[f+b]^=a[b]},blockSize:128/32,ivSize:64/32});function u(){for(var h=this._X,f=this._C,g=0;g<8;g++)l[g]=f[g];f[0]=f[0]+1295307597+this._b|0,f[1]=f[1]+3545052371+(f[0]>>>0>>0?1:0)|0,f[2]=f[2]+886263092+(f[1]>>>0>>0?1:0)|0,f[3]=f[3]+1295307597+(f[2]>>>0>>0?1:0)|0,f[4]=f[4]+3545052371+(f[3]>>>0>>0?1:0)|0,f[5]=f[5]+886263092+(f[4]>>>0>>0?1:0)|0,f[6]=f[6]+1295307597+(f[5]>>>0>>0?1:0)|0,f[7]=f[7]+3545052371+(f[6]>>>0>>0?1:0)|0,this._b=f[7]>>>0>>0?1:0;for(var g=0;g<8;g++){var b=h[g]+f[g],w=b&65535,x=b>>>16,m=((w*w>>>17)+w*x>>>15)+x*x,p=((b&4294901760)*b|0)+((b&65535)*b|0);c[g]=m^p}h[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,h[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,h[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,h[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,h[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,h[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,h[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,h[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}r.RabbitLegacy=s._createHelper(d)}(),i.RabbitLegacy})}(Lu)),Lu.exports}var Mu={exports:{}},$1;function Yk(){return $1||($1=1,function(e,t){(function(i,r,n){e.exports=r(De(),Ps(),Bs(),Ln(),Dt())})(xe,function(i){return function(){var r=i,n=r.lib,s=n.BlockCipher,o=r.algo;const a=16,l=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],c=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var d={pbox:[],sbox:[]};function u(w,x){let m=x>>24&255,p=x>>16&255,y=x>>8&255,C=x&255,_=w.sbox[0][m]+w.sbox[1][p];return _=_^w.sbox[2][y],_=_+w.sbox[3][C],_}function h(w,x,m){let p=x,y=m,C;for(let _=0;_1;--_)p=p^w.pbox[_],y=u(w,p)^y,C=p,p=y,y=C;return C=p,p=y,y=C,y=y^w.pbox[1],p=p^w.pbox[0],{left:p,right:y}}function g(w,x,m){for(let E=0;E<4;E++){w.sbox[E]=[];for(let S=0;S<256;S++)w.sbox[E][S]=c[E][S]}let p=0;for(let E=0;E=m&&(p=0);let y=0,C=0,_=0;for(let E=0;E=0;)e[t]=0}const Qk=0,Tb=1,Jk=2,eC=3,tC=258,jp=29,Cl=256,Qa=Cl+1+jp,lo=30,Yp=19,Rb=2*Qa+1,Xn=15,Nu=16,iC=7,Zp=256,$b=16,Ib=17,Db=18,df=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),fc=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),rC=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),Pb=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),nC=512,Or=new Array((Qa+2)*2);No(Or);const ba=new Array(lo*2);No(ba);const Ja=new Array(nC);No(Ja);const el=new Array(tC-eC+1);No(el);const Xp=new Array(jp);No(Xp);const jc=new Array(lo);No(jc);function Fu(e,t,i,r,n){this.static_tree=e,this.extra_bits=t,this.extra_base=i,this.elems=r,this.max_length=n,this.has_stree=e&&e.length}let Bb,Ob,Lb;function zu(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}const Mb=e=>e<256?Ja[e]:Ja[256+(e>>>7)],tl=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},bi=(e,t,i)=>{e.bi_valid>Nu-i?(e.bi_buf|=t<>Nu-e.bi_valid,e.bi_valid+=i-Nu):(e.bi_buf|=t<{bi(e,i[t*2],i[t*2+1])},Nb=(e,t)=>{let i=0;do i|=e&1,e>>>=1,i<<=1;while(--t>0);return i>>>1},sC=e=>{e.bi_valid===16?(tl(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},oC=(e,t)=>{const i=t.dyn_tree,r=t.max_code,n=t.stat_desc.static_tree,s=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,a=t.stat_desc.extra_base,l=t.stat_desc.max_length;let c,d,u,h,f,g,b=0;for(h=0;h<=Xn;h++)e.bl_count[h]=0;for(i[e.heap[e.heap_max]*2+1]=0,c=e.heap_max+1;cl&&(h=l,b++),i[d*2+1]=h,!(d>r)&&(e.bl_count[h]++,f=0,d>=a&&(f=o[d-a]),g=i[d*2],e.opt_len+=g*(h+f),s&&(e.static_len+=g*(n[d*2+1]+f)));if(b!==0){do{for(h=l-1;e.bl_count[h]===0;)h--;e.bl_count[h]--,e.bl_count[h+1]+=2,e.bl_count[l]--,b-=2}while(b>0);for(h=l;h!==0;h--)for(d=e.bl_count[h];d!==0;)u=e.heap[--c],!(u>r)&&(i[u*2+1]!==h&&(e.opt_len+=(h-i[u*2+1])*i[u*2],i[u*2+1]=h),d--)}},Fb=(e,t,i)=>{const r=new Array(Xn+1);let n=0,s,o;for(s=1;s<=Xn;s++)n=n+i[s-1]<<1,r[s]=n;for(o=0;o<=t;o++){let a=e[o*2+1];a!==0&&(e[o*2]=Nb(r[a]++,a))}},aC=()=>{let e,t,i,r,n;const s=new Array(Xn+1);for(i=0,r=0;r>=7;r{let t;for(t=0;t{e.bi_valid>8?tl(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},P1=(e,t,i,r)=>{const n=t*2,s=i*2;return e[n]{const r=e.heap[i];let n=i<<1;for(;n<=e.heap_len&&(n{let r,n,s=0,o,a;if(e.sym_next!==0)do r=e.pending_buf[e.sym_buf+s++]&255,r+=(e.pending_buf[e.sym_buf+s++]&255)<<8,n=e.pending_buf[e.sym_buf+s++],r===0?gr(e,n,t):(o=el[n],gr(e,o+Cl+1,t),a=df[o],a!==0&&(n-=Xp[o],bi(e,n,a)),r--,o=Mb(r),gr(e,o,i),a=fc[o],a!==0&&(r-=jc[o],bi(e,r,a)));while(s{const i=t.dyn_tree,r=t.stat_desc.static_tree,n=t.stat_desc.has_stree,s=t.stat_desc.elems;let o,a,l=-1,c;for(e.heap_len=0,e.heap_max=Rb,o=0;o>1;o>=1;o--)Hu(e,i,o);c=s;do o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Hu(e,i,1),a=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=a,i[c*2]=i[o*2]+i[a*2],e.depth[c]=(e.depth[o]>=e.depth[a]?e.depth[o]:e.depth[a])+1,i[o*2+1]=i[a*2+1]=c,e.heap[1]=c++,Hu(e,i,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],oC(e,t),Fb(i,l,e.bl_count)},O1=(e,t,i)=>{let r,n=-1,s,o=t[0*2+1],a=0,l=7,c=4;for(o===0&&(l=138,c=3),t[(i+1)*2+1]=65535,r=0;r<=i;r++)s=o,o=t[(r+1)*2+1],!(++a{let r,n=-1,s,o=t[0*2+1],a=0,l=7,c=4;for(o===0&&(l=138,c=3),r=0;r<=i;r++)if(s=o,o=t[(r+1)*2+1],!(++a{let t;for(O1(e,e.dyn_ltree,e.l_desc.max_code),O1(e,e.dyn_dtree,e.d_desc.max_code),uf(e,e.bl_desc),t=Yp-1;t>=3&&e.bl_tree[Pb[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},cC=(e,t,i,r)=>{let n;for(bi(e,t-257,5),bi(e,i-1,5),bi(e,r-4,4),n=0;n{let t=4093624447,i;for(i=0;i<=31;i++,t>>>=1)if(t&1&&e.dyn_ltree[i*2]!==0)return I1;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return D1;for(i=32;i{M1||(aC(),M1=!0),e.l_desc=new zu(e.dyn_ltree,Bb),e.d_desc=new zu(e.dyn_dtree,Ob),e.bl_desc=new zu(e.bl_tree,Lb),e.bi_buf=0,e.bi_valid=0,zb(e)},Ub=(e,t,i,r)=>{bi(e,(Qk<<1)+(r?1:0),3),Hb(e),tl(e,i),tl(e,~i),i&&e.pending_buf.set(e.window.subarray(t,t+i),e.pending),e.pending+=i},hC=e=>{bi(e,Tb<<1,3),gr(e,Zp,Or),sC(e)},fC=(e,t,i,r)=>{let n,s,o=0;e.level>0?(e.strm.data_type===Gk&&(e.strm.data_type=dC(e)),uf(e,e.l_desc),uf(e,e.d_desc),o=lC(e),n=e.opt_len+3+7>>>3,s=e.static_len+3+7>>>3,s<=n&&(n=s)):n=s=i+5,i+4<=n&&t!==-1?Ub(e,t,i,r):e.strategy===Xk||s===n?(bi(e,(Tb<<1)+(r?1:0),3),B1(e,Or,ba)):(bi(e,(Jk<<1)+(r?1:0),3),cC(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),B1(e,e.dyn_ltree,e.dyn_dtree)),zb(e),r&&Hb(e)},pC=(e,t,i)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=i,t===0?e.dyn_ltree[i*2]++:(e.matches++,t--,e.dyn_ltree[(el[i]+Cl+1)*2]++,e.dyn_dtree[Mb(t)*2]++),e.sym_next===e.sym_end);var mC=uC,gC=Ub,vC=fC,yC=pC,bC=hC,wC={_tr_init:mC,_tr_stored_block:gC,_tr_flush_block:vC,_tr_tally:yC,_tr_align:bC};const _C=(e,t,i,r)=>{let n=e&65535|0,s=e>>>16&65535|0,o=0;for(;i!==0;){o=i>2e3?2e3:i,i-=o;do n=n+t[r++]|0,s=s+n|0;while(--o);n%=65521,s%=65521}return n|s<<16|0};var il=_C;const kC=()=>{let e,t=[];for(var i=0;i<256;i++){e=i;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[i]=e}return t},CC=new Uint32Array(kC()),EC=(e,t,i,r)=>{const n=CC,s=r+i;e^=-1;for(let o=r;o>>8^n[(e^t[o])&255];return e^-1};var xt=EC,Cs={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Os={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:xC,_tr_stored_block:hf,_tr_flush_block:SC,_tr_tally:wn,_tr_align:AC}=wC,{Z_NO_FLUSH:_n,Z_PARTIAL_FLUSH:TC,Z_FULL_FLUSH:RC,Z_FINISH:ji,Z_BLOCK:N1,Z_OK:Bt,Z_STREAM_END:F1,Z_STREAM_ERROR:vr,Z_DATA_ERROR:$C,Z_BUF_ERROR:Uu,Z_DEFAULT_COMPRESSION:IC,Z_FILTERED:DC,Z_HUFFMAN_ONLY:Yl,Z_RLE:PC,Z_FIXED:BC,Z_DEFAULT_STRATEGY:OC,Z_UNKNOWN:LC,Z_DEFLATED:Td}=Os,MC=9,NC=15,FC=8,zC=29,HC=256,ff=HC+1+zC,UC=30,VC=19,KC=2*ff+1,WC=15,$e=3,mn=258,yr=mn+$e+1,qC=32,$o=42,Gp=57,pf=69,mf=73,gf=91,vf=103,Gn=113,ia=666,si=1,Fo=2,Es=3,zo=4,jC=3,Qn=(e,t)=>(e.msg=Cs[t],t),z1=e=>e*2-(e>4?9:0),fn=e=>{let t=e.length;for(;--t>=0;)e[t]=0},YC=e=>{let t,i,r,n=e.w_size;t=e.hash_size,r=t;do i=e.head[--r],e.head[r]=i>=n?i-n:0;while(--t);t=n,r=t;do i=e.prev[--r],e.prev[r]=i>=n?i-n:0;while(--t)};let ZC=(e,t,i)=>(t<{const t=e.state;let i=t.pending;i>e.avail_out&&(i=e.avail_out),i!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+i),e.next_out),e.next_out+=i,t.pending_out+=i,e.total_out+=i,e.avail_out-=i,t.pending-=i,t.pending===0&&(t.pending_out=0))},Bi=(e,t)=>{SC(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Ri(e.strm)},ze=(e,t)=>{e.pending_buf[e.pending++]=t},Zo=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},yf=(e,t,i,r)=>{let n=e.avail_in;return n>r&&(n=r),n===0?0:(e.avail_in-=n,t.set(e.input.subarray(e.next_in,e.next_in+n),i),e.state.wrap===1?e.adler=il(e.adler,t,n,i):e.state.wrap===2&&(e.adler=xt(e.adler,t,n,i)),e.next_in+=n,e.total_in+=n,n)},Vb=(e,t)=>{let i=e.max_chain_length,r=e.strstart,n,s,o=e.prev_length,a=e.nice_match;const l=e.strstart>e.w_size-yr?e.strstart-(e.w_size-yr):0,c=e.window,d=e.w_mask,u=e.prev,h=e.strstart+mn;let f=c[r+o-1],g=c[r+o];e.prev_length>=e.good_match&&(i>>=2),a>e.lookahead&&(a=e.lookahead);do if(n=t,!(c[n+o]!==g||c[n+o-1]!==f||c[n]!==c[r]||c[++n]!==c[r+1])){r+=2,n++;do;while(c[++r]===c[++n]&&c[++r]===c[++n]&&c[++r]===c[++n]&&c[++r]===c[++n]&&c[++r]===c[++n]&&c[++r]===c[++n]&&c[++r]===c[++n]&&c[++r]===c[++n]&&ro){if(e.match_start=t,o=s,s>=a)break;f=c[r+o-1],g=c[r+o]}}while((t=u[t&d])>l&&--i!==0);return o<=e.lookahead?o:e.lookahead},Io=e=>{const t=e.w_size;let i,r,n;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-yr)&&(e.window.set(e.window.subarray(t,t+t-r),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),YC(e),r+=t),e.strm.avail_in===0)break;if(i=yf(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=i,e.lookahead+e.insert>=$e)for(n=e.strstart-e.insert,e.ins_h=e.window[n],e.ins_h=kn(e,e.ins_h,e.window[n+1]);e.insert&&(e.ins_h=kn(e,e.ins_h,e.window[n+$e-1]),e.prev[n&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=n,n++,e.insert--,!(e.lookahead+e.insert<$e)););}while(e.lookahead{let i=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,r,n,s,o=0,a=e.strm.avail_in;do{if(r=65535,s=e.bi_valid+42>>3,e.strm.avail_outn+e.strm.avail_in&&(r=n+e.strm.avail_in),r>s&&(r=s),r>8,e.pending_buf[e.pending-2]=~r,e.pending_buf[e.pending-1]=~r>>8,Ri(e.strm),n&&(n>r&&(n=r),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+n),e.strm.next_out),e.strm.next_out+=n,e.strm.avail_out-=n,e.strm.total_out+=n,e.block_start+=n,r-=n),r&&(yf(e.strm,e.strm.output,e.strm.next_out,r),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r)}while(o===0);return a-=e.strm.avail_in,a&&(a>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=a&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-a,e.strm.next_in),e.strstart),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.block_start=e.strstart),e.high_waters&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,s+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),s>e.strm.avail_in&&(s=e.strm.avail_in),s&&(yf(e.strm,e.window,e.strstart,s),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.high_water>3,s=e.pending_buf_size-s>65535?65535:e.pending_buf_size-s,i=s>e.w_size?e.w_size:s,n=e.strstart-e.block_start,(n>=i||(n||t===ji)&&t!==_n&&e.strm.avail_in===0&&n<=s)&&(r=n>s?s:n,o=t===ji&&e.strm.avail_in===0&&r===n?1:0,hf(e,e.block_start,r,o),e.block_start+=r,Ri(e.strm)),o?Es:si)},Vu=(e,t)=>{let i,r;for(;;){if(e.lookahead=$e&&(e.ins_h=kn(e,e.ins_h,e.window[e.strstart+$e-1]),i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),i!==0&&e.strstart-i<=e.w_size-yr&&(e.match_length=Vb(e,i)),e.match_length>=$e)if(r=wn(e,e.strstart-e.match_start,e.match_length-$e),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=$e){e.match_length--;do e.strstart++,e.ins_h=kn(e,e.ins_h,e.window[e.strstart+$e-1]),i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=kn(e,e.ins_h,e.window[e.strstart+1]);else r=wn(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(Bi(e,!1),e.strm.avail_out===0))return si}return e.insert=e.strstart<$e-1?e.strstart:$e-1,t===ji?(Bi(e,!0),e.strm.avail_out===0?Es:zo):e.sym_next&&(Bi(e,!1),e.strm.avail_out===0)?si:Fo},Fs=(e,t)=>{let i,r,n;for(;;){if(e.lookahead=$e&&(e.ins_h=kn(e,e.ins_h,e.window[e.strstart+$e-1]),i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=$e-1,i!==0&&e.prev_length4096)&&(e.match_length=$e-1)),e.prev_length>=$e&&e.match_length<=e.prev_length){n=e.strstart+e.lookahead-$e,r=wn(e,e.strstart-1-e.prev_match,e.prev_length-$e),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=n&&(e.ins_h=kn(e,e.ins_h,e.window[e.strstart+$e-1]),i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=$e-1,e.strstart++,r&&(Bi(e,!1),e.strm.avail_out===0))return si}else if(e.match_available){if(r=wn(e,0,e.window[e.strstart-1]),r&&Bi(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return si}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=wn(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<$e-1?e.strstart:$e-1,t===ji?(Bi(e,!0),e.strm.avail_out===0?Es:zo):e.sym_next&&(Bi(e,!1),e.strm.avail_out===0)?si:Fo},XC=(e,t)=>{let i,r,n,s;const o=e.window;for(;;){if(e.lookahead<=mn){if(Io(e),e.lookahead<=mn&&t===_n)return si;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=$e&&e.strstart>0&&(n=e.strstart-1,r=o[n],r===o[++n]&&r===o[++n]&&r===o[++n])){s=e.strstart+mn;do;while(r===o[++n]&&r===o[++n]&&r===o[++n]&&r===o[++n]&&r===o[++n]&&r===o[++n]&&r===o[++n]&&r===o[++n]&&ne.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=$e?(i=wn(e,1,e.match_length-$e),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(i=wn(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),i&&(Bi(e,!1),e.strm.avail_out===0))return si}return e.insert=0,t===ji?(Bi(e,!0),e.strm.avail_out===0?Es:zo):e.sym_next&&(Bi(e,!1),e.strm.avail_out===0)?si:Fo},GC=(e,t)=>{let i;for(;;){if(e.lookahead===0&&(Io(e),e.lookahead===0)){if(t===_n)return si;break}if(e.match_length=0,i=wn(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,i&&(Bi(e,!1),e.strm.avail_out===0))return si}return e.insert=0,t===ji?(Bi(e,!0),e.strm.avail_out===0?Es:zo):e.sym_next&&(Bi(e,!1),e.strm.avail_out===0)?si:Fo};function hr(e,t,i,r,n){this.good_length=e,this.max_lazy=t,this.nice_length=i,this.max_chain=r,this.func=n}const ra=[new hr(0,0,0,0,Kb),new hr(4,4,8,4,Vu),new hr(4,5,16,8,Vu),new hr(4,6,32,32,Vu),new hr(4,4,16,16,Fs),new hr(8,16,32,32,Fs),new hr(8,16,128,128,Fs),new hr(8,32,128,256,Fs),new hr(32,128,258,1024,Fs),new hr(32,258,258,4096,Fs)],QC=e=>{e.window_size=2*e.w_size,fn(e.head),e.max_lazy_match=ra[e.level].max_lazy,e.good_match=ra[e.level].good_length,e.nice_match=ra[e.level].nice_length,e.max_chain_length=ra[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=$e-1,e.match_available=0,e.ins_h=0};function JC(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Td,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(KC*2),this.dyn_dtree=new Uint16Array((2*UC+1)*2),this.bl_tree=new Uint16Array((2*VC+1)*2),fn(this.dyn_ltree),fn(this.dyn_dtree),fn(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(WC+1),this.heap=new Uint16Array(2*ff+1),fn(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*ff+1),fn(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const El=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==$o&&t.status!==Gp&&t.status!==pf&&t.status!==mf&&t.status!==gf&&t.status!==vf&&t.status!==Gn&&t.status!==ia?1:0},Wb=e=>{if(El(e))return Qn(e,vr);e.total_in=e.total_out=0,e.data_type=LC;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?Gp:t.wrap?$o:Gn,e.adler=t.wrap===2?0:1,t.last_flush=-2,xC(t),Bt},qb=e=>{const t=Wb(e);return t===Bt&&QC(e.state),t},eE=(e,t)=>El(e)||e.state.wrap!==2?vr:(e.state.gzhead=t,Bt),jb=(e,t,i,r,n,s)=>{if(!e)return vr;let o=1;if(t===IC&&(t=6),r<0?(o=0,r=-r):r>15&&(o=2,r-=16),n<1||n>MC||i!==Td||r<8||r>15||t<0||t>9||s<0||s>BC||r===8&&o!==1)return Qn(e,vr);r===8&&(r=9);const a=new JC;return e.state=a,a.strm=e,a.status=$o,a.wrap=o,a.gzhead=null,a.w_bits=r,a.w_size=1<jb(e,t,Td,NC,FC,OC),iE=(e,t)=>{if(El(e)||t>N1||t<0)return e?Qn(e,vr):vr;const i=e.state;if(!e.output||e.avail_in!==0&&!e.input||i.status===ia&&t!==ji)return Qn(e,e.avail_out===0?Uu:vr);const r=i.last_flush;if(i.last_flush=t,i.pending!==0){if(Ri(e),e.avail_out===0)return i.last_flush=-1,Bt}else if(e.avail_in===0&&z1(t)<=z1(r)&&t!==ji)return Qn(e,Uu);if(i.status===ia&&e.avail_in!==0)return Qn(e,Uu);if(i.status===$o&&i.wrap===0&&(i.status=Gn),i.status===$o){let n=Td+(i.w_bits-8<<4)<<8,s=-1;if(i.strategy>=Yl||i.level<2?s=0:i.level<6?s=1:i.level===6?s=2:s=3,n|=s<<6,i.strstart!==0&&(n|=qC),n+=31-n%31,Zo(i,n),i.strstart!==0&&(Zo(i,e.adler>>>16),Zo(i,e.adler&65535)),e.adler=1,i.status=Gn,Ri(e),i.pending!==0)return i.last_flush=-1,Bt}if(i.status===Gp){if(e.adler=0,ze(i,31),ze(i,139),ze(i,8),i.gzhead)ze(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),ze(i,i.gzhead.time&255),ze(i,i.gzhead.time>>8&255),ze(i,i.gzhead.time>>16&255),ze(i,i.gzhead.time>>24&255),ze(i,i.level===9?2:i.strategy>=Yl||i.level<2?4:0),ze(i,i.gzhead.os&255),i.gzhead.extra&&i.gzhead.extra.length&&(ze(i,i.gzhead.extra.length&255),ze(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=xt(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=pf;else if(ze(i,0),ze(i,0),ze(i,0),ze(i,0),ze(i,0),ze(i,i.level===9?2:i.strategy>=Yl||i.level<2?4:0),ze(i,jC),i.status=Gn,Ri(e),i.pending!==0)return i.last_flush=-1,Bt}if(i.status===pf){if(i.gzhead.extra){let n=i.pending,s=(i.gzhead.extra.length&65535)-i.gzindex;for(;i.pending+s>i.pending_buf_size;){let a=i.pending_buf_size-i.pending;if(i.pending_buf.set(i.gzhead.extra.subarray(i.gzindex,i.gzindex+a),i.pending),i.pending=i.pending_buf_size,i.gzhead.hcrc&&i.pending>n&&(e.adler=xt(e.adler,i.pending_buf,i.pending-n,n)),i.gzindex+=a,Ri(e),i.pending!==0)return i.last_flush=-1,Bt;n=0,s-=a}let o=new Uint8Array(i.gzhead.extra);i.pending_buf.set(o.subarray(i.gzindex,i.gzindex+s),i.pending),i.pending+=s,i.gzhead.hcrc&&i.pending>n&&(e.adler=xt(e.adler,i.pending_buf,i.pending-n,n)),i.gzindex=0}i.status=mf}if(i.status===mf){if(i.gzhead.name){let n=i.pending,s;do{if(i.pending===i.pending_buf_size){if(i.gzhead.hcrc&&i.pending>n&&(e.adler=xt(e.adler,i.pending_buf,i.pending-n,n)),Ri(e),i.pending!==0)return i.last_flush=-1,Bt;n=0}i.gzindexn&&(e.adler=xt(e.adler,i.pending_buf,i.pending-n,n)),i.gzindex=0}i.status=gf}if(i.status===gf){if(i.gzhead.comment){let n=i.pending,s;do{if(i.pending===i.pending_buf_size){if(i.gzhead.hcrc&&i.pending>n&&(e.adler=xt(e.adler,i.pending_buf,i.pending-n,n)),Ri(e),i.pending!==0)return i.last_flush=-1,Bt;n=0}i.gzindexn&&(e.adler=xt(e.adler,i.pending_buf,i.pending-n,n))}i.status=vf}if(i.status===vf){if(i.gzhead.hcrc){if(i.pending+2>i.pending_buf_size&&(Ri(e),i.pending!==0))return i.last_flush=-1,Bt;ze(i,e.adler&255),ze(i,e.adler>>8&255),e.adler=0}if(i.status=Gn,Ri(e),i.pending!==0)return i.last_flush=-1,Bt}if(e.avail_in!==0||i.lookahead!==0||t!==_n&&i.status!==ia){let n=i.level===0?Kb(i,t):i.strategy===Yl?GC(i,t):i.strategy===PC?XC(i,t):ra[i.level].func(i,t);if((n===Es||n===zo)&&(i.status=ia),n===si||n===Es)return e.avail_out===0&&(i.last_flush=-1),Bt;if(n===Fo&&(t===TC?AC(i):t!==N1&&(hf(i,0,0,!1),t===RC&&(fn(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),Ri(e),e.avail_out===0))return i.last_flush=-1,Bt}return t!==ji?Bt:i.wrap<=0?F1:(i.wrap===2?(ze(i,e.adler&255),ze(i,e.adler>>8&255),ze(i,e.adler>>16&255),ze(i,e.adler>>24&255),ze(i,e.total_in&255),ze(i,e.total_in>>8&255),ze(i,e.total_in>>16&255),ze(i,e.total_in>>24&255)):(Zo(i,e.adler>>>16),Zo(i,e.adler&65535)),Ri(e),i.wrap>0&&(i.wrap=-i.wrap),i.pending!==0?Bt:F1)},rE=e=>{if(El(e))return vr;const t=e.state.status;return e.state=null,t===Gn?Qn(e,$C):Bt},nE=(e,t)=>{let i=t.length;if(El(e))return vr;const r=e.state,n=r.wrap;if(n===2||n===1&&r.status!==$o||r.lookahead)return vr;if(n===1&&(e.adler=il(e.adler,t,i,0)),r.wrap=0,i>=r.w_size){n===0&&(fn(r.head),r.strstart=0,r.block_start=0,r.insert=0);let l=new Uint8Array(r.w_size);l.set(t.subarray(i-r.w_size,i),0),t=l,i=r.w_size}const s=e.avail_in,o=e.next_in,a=e.input;for(e.avail_in=i,e.next_in=0,e.input=t,Io(r);r.lookahead>=$e;){let l=r.strstart,c=r.lookahead-($e-1);do r.ins_h=kn(r,r.ins_h,r.window[l+$e-1]),r.prev[l&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=l,l++;while(--c);r.strstart=l,r.lookahead=$e-1,Io(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=$e-1,r.match_available=0,e.next_in=o,e.input=a,e.avail_in=s,r.wrap=n,Bt};var sE=tE,oE=jb,aE=qb,lE=Wb,cE=eE,dE=iE,uE=rE,hE=nE,fE="pako deflate (from Nodeca project)",wa={deflateInit:sE,deflateInit2:oE,deflateReset:aE,deflateResetKeep:lE,deflateSetHeader:cE,deflate:dE,deflateEnd:uE,deflateSetDictionary:hE,deflateInfo:fE};const pE=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var mE=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const i=t.shift();if(i){if(typeof i!="object")throw new TypeError(i+"must be non-object");for(const r in i)pE(i,r)&&(e[r]=i[r])}}return e},gE=e=>{let t=0;for(let r=0,n=e.length;r=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;rl[254]=rl[254]=1;var vE=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,i,r,n,s,o=e.length,a=0;for(n=0;n>>6,t[s++]=128|i&63):i<65536?(t[s++]=224|i>>>12,t[s++]=128|i>>>6&63,t[s++]=128|i&63):(t[s++]=240|i>>>18,t[s++]=128|i>>>12&63,t[s++]=128|i>>>6&63,t[s++]=128|i&63);return t};const yE=(e,t)=>{if(t<65534&&e.subarray&&Yb)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let i="";for(let r=0;r{const i=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let r,n;const s=new Array(i*2);for(n=0,r=0;r4){s[n++]=65533,r+=a-1;continue}for(o&=a===2?31:a===3?15:7;a>1&&r1){s[n++]=65533;continue}o<65536?s[n++]=o:(o-=65536,s[n++]=55296|o>>10&1023,s[n++]=56320|o&1023)}return yE(s,n)},wE=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let i=t-1;for(;i>=0&&(e[i]&192)===128;)i--;return i<0||i===0?t:i+rl[e[i]]>t?i:t},nl={string2buf:vE,buf2string:bE,utf8border:wE};function _E(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var Zb=_E;const Xb=Object.prototype.toString,{Z_NO_FLUSH:kE,Z_SYNC_FLUSH:CE,Z_FULL_FLUSH:EE,Z_FINISH:xE,Z_OK:Yc,Z_STREAM_END:SE,Z_DEFAULT_COMPRESSION:AE,Z_DEFAULT_STRATEGY:TE,Z_DEFLATED:RE}=Os;function xl(e){this.options=Rd.assign({level:AE,method:RE,chunkSize:16384,windowBits:15,memLevel:8,strategy:TE},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Zb,this.strm.avail_out=0;let i=wa.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(i!==Yc)throw new Error(Cs[i]);if(t.header&&wa.deflateSetHeader(this.strm,t.header),t.dictionary){let r;if(typeof t.dictionary=="string"?r=nl.string2buf(t.dictionary):Xb.call(t.dictionary)==="[object ArrayBuffer]"?r=new Uint8Array(t.dictionary):r=t.dictionary,i=wa.deflateSetDictionary(this.strm,r),i!==Yc)throw new Error(Cs[i]);this._dict_set=!0}}xl.prototype.push=function(e,t){const i=this.strm,r=this.options.chunkSize;let n,s;if(this.ended)return!1;for(t===~~t?s=t:s=t===!0?xE:kE,typeof e=="string"?i.input=nl.string2buf(e):Xb.call(e)==="[object ArrayBuffer]"?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;;){if(i.avail_out===0&&(i.output=new Uint8Array(r),i.next_out=0,i.avail_out=r),(s===CE||s===EE)&&i.avail_out<=6){this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;continue}if(n=wa.deflate(i,s),n===SE)return i.next_out>0&&this.onData(i.output.subarray(0,i.next_out)),n=wa.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Yc;if(i.avail_out===0){this.onData(i.output);continue}if(s>0&&i.next_out>0){this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;continue}if(i.avail_in===0)break}return!0};xl.prototype.onData=function(e){this.chunks.push(e)};xl.prototype.onEnd=function(e){e===Yc&&(this.result=Rd.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Qp(e,t){const i=new xl(t);if(i.push(e,!0),i.err)throw i.msg||Cs[i.err];return i.result}function $E(e,t){return t=t||{},t.raw=!0,Qp(e,t)}function IE(e,t){return t=t||{},t.gzip=!0,Qp(e,t)}var DE=xl,PE=Qp,BE=$E,OE=IE,LE=Os,ME={Deflate:DE,deflate:PE,deflateRaw:BE,gzip:OE,constants:LE};const Zl=16209,NE=16191;var FE=function(t,i){let r,n,s,o,a,l,c,d,u,h,f,g,b,w,x,m,p,y,C,_,E,S,A,k;const T=t.state;r=t.next_in,A=t.input,n=r+(t.avail_in-5),s=t.next_out,k=t.output,o=s-(i-t.avail_out),a=s+(t.avail_out-257),l=T.dmax,c=T.wsize,d=T.whave,u=T.wnext,h=T.window,f=T.hold,g=T.bits,b=T.lencode,w=T.distcode,x=(1<>>24,f>>>=y,g-=y,y=p>>>16&255,y===0)k[s++]=p&65535;else if(y&16){C=p&65535,y&=15,y&&(g>>=y,g-=y),g<15&&(f+=A[r++]<>>24,f>>>=y,g-=y,y=p>>>16&255,y&16){if(_=p&65535,y&=15,gl){t.msg="invalid distance too far back",T.mode=Zl;break e}if(f>>>=y,g-=y,y=s-o,_>y){if(y=_-y,y>d&&T.sane){t.msg="invalid distance too far back",T.mode=Zl;break e}if(E=0,S=h,u===0){if(E+=c-y,y2;)k[s++]=S[E++],k[s++]=S[E++],k[s++]=S[E++],C-=3;C&&(k[s++]=S[E++],C>1&&(k[s++]=S[E++]))}else{E=s-_;do k[s++]=k[E++],k[s++]=k[E++],k[s++]=k[E++],C-=3;while(C>2);C&&(k[s++]=k[E++],C>1&&(k[s++]=k[E++]))}}else if(y&64){t.msg="invalid distance code",T.mode=Zl;break e}else{p=w[(p&65535)+(f&(1<>3,r-=C,g-=C<<3,f&=(1<{const l=a.bits;let c=0,d=0,u=0,h=0,f=0,g=0,b=0,w=0,x=0,m=0,p,y,C,_,E,S=null,A;const k=new Uint16Array(zs+1),T=new Uint16Array(zs+1);let $=null,I,L,N;for(c=0;c<=zs;c++)k[c]=0;for(d=0;d=1&&k[h]===0;h--);if(f>h&&(f=h),h===0)return n[s++]=1<<24|64<<16|0,n[s++]=1<<24|64<<16|0,a.bits=1,0;for(u=1;u0&&(e===V1||h!==1))return-1;for(T[1]=0,c=1;cH1||e===K1&&x>U1)return 1;for(;;){I=c-b,o[d]+1=A?(L=$[o[d]-A],N=S[o[d]-A]):(L=96,N=0),p=1<>b)+y]=I<<24|L<<16|N|0;while(y!==0);for(p=1<>=1;if(p!==0?(m&=p-1,m+=p):m=0,d++,--k[c]===0){if(c===h)break;c=t[i+o[d]]}if(c>f&&(m&_)!==C){for(b===0&&(b=f),E+=u,g=c-b,w=1<H1||e===K1&&x>U1)return 1;C=m&_,n[C]=f<<24|g<<16|E-s|0}}return m!==0&&(n[E+m]=c-b<<24|64<<16|0),a.bits=f,0};var _a=KE;const WE=0,Gb=1,Qb=2,{Z_FINISH:W1,Z_BLOCK:qE,Z_TREES:Xl,Z_OK:xs,Z_STREAM_END:jE,Z_NEED_DICT:YE,Z_STREAM_ERROR:tr,Z_DATA_ERROR:Jb,Z_MEM_ERROR:e5,Z_BUF_ERROR:ZE,Z_DEFLATED:q1}=Os,$d=16180,j1=16181,Y1=16182,Z1=16183,X1=16184,G1=16185,Q1=16186,J1=16187,eg=16188,tg=16189,Zc=16190,Tr=16191,Wu=16192,ig=16193,qu=16194,rg=16195,ng=16196,sg=16197,og=16198,Gl=16199,Ql=16200,ag=16201,lg=16202,cg=16203,dg=16204,ug=16205,ju=16206,hg=16207,fg=16208,Xe=16209,t5=16210,i5=16211,XE=852,GE=592,QE=15,JE=QE,pg=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function ex(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Ls=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<$d||t.mode>i5?1:0},r5=e=>{if(Ls(e))return tr;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=$d,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(XE),t.distcode=t.distdyn=new Int32Array(GE),t.sane=1,t.back=-1,xs},n5=e=>{if(Ls(e))return tr;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,r5(e)},s5=(e,t)=>{let i;if(Ls(e))return tr;const r=e.state;return t<0?(i=0,t=-t):(i=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?tr:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=i,r.wbits=t,n5(e))},o5=(e,t)=>{if(!e)return tr;const i=new ex;e.state=i,i.strm=e,i.window=null,i.mode=$d;const r=s5(e,t);return r!==xs&&(e.state=null),r},tx=e=>o5(e,JE);let mg=!0,Yu,Zu;const ix=e=>{if(mg){Yu=new Int32Array(512),Zu=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(_a(Gb,e.lens,0,288,Yu,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;_a(Qb,e.lens,0,32,Zu,0,e.work,{bits:5}),mg=!1}e.lencode=Yu,e.lenbits=9,e.distcode=Zu,e.distbits=5},a5=(e,t,i,r)=>{let n;const s=e.state;return s.window===null&&(s.wsize=1<=s.wsize?(s.window.set(t.subarray(i-s.wsize,i),0),s.wnext=0,s.whave=s.wsize):(n=s.wsize-s.wnext,n>r&&(n=r),s.window.set(t.subarray(i-r,i-r+n),s.wnext),r-=n,r?(s.window.set(t.subarray(i-r,i),0),s.wnext=r,s.whave=s.wsize):(s.wnext+=n,s.wnext===s.wsize&&(s.wnext=0),s.whave{let i,r,n,s,o,a,l,c,d,u,h,f,g,b,w=0,x,m,p,y,C,_,E,S;const A=new Uint8Array(4);let k,T;const $=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Ls(e)||!e.output||!e.input&&e.avail_in!==0)return tr;i=e.state,i.mode===Tr&&(i.mode=Wu),o=e.next_out,n=e.output,l=e.avail_out,s=e.next_in,r=e.input,a=e.avail_in,c=i.hold,d=i.bits,u=a,h=l,S=xs;e:for(;;)switch(i.mode){case $d:if(i.wrap===0){i.mode=Wu;break}for(;d<16;){if(a===0)break e;a--,c+=r[s++]<>>8&255,i.check=xt(i.check,A,2,0),c=0,d=0,i.mode=j1;break}if(i.head&&(i.head.done=!1),!(i.wrap&1)||(((c&255)<<8)+(c>>8))%31){e.msg="incorrect header check",i.mode=Xe;break}if((c&15)!==q1){e.msg="unknown compression method",i.mode=Xe;break}if(c>>>=4,d-=4,E=(c&15)+8,i.wbits===0&&(i.wbits=E),E>15||E>i.wbits){e.msg="invalid window size",i.mode=Xe;break}i.dmax=1<>8&1),i.flags&512&&i.wrap&4&&(A[0]=c&255,A[1]=c>>>8&255,i.check=xt(i.check,A,2,0)),c=0,d=0,i.mode=Y1;case Y1:for(;d<32;){if(a===0)break e;a--,c+=r[s++]<>>8&255,A[2]=c>>>16&255,A[3]=c>>>24&255,i.check=xt(i.check,A,4,0)),c=0,d=0,i.mode=Z1;case Z1:for(;d<16;){if(a===0)break e;a--,c+=r[s++]<>8),i.flags&512&&i.wrap&4&&(A[0]=c&255,A[1]=c>>>8&255,i.check=xt(i.check,A,2,0)),c=0,d=0,i.mode=X1;case X1:if(i.flags&1024){for(;d<16;){if(a===0)break e;a--,c+=r[s++]<>>8&255,i.check=xt(i.check,A,2,0)),c=0,d=0}else i.head&&(i.head.extra=null);i.mode=G1;case G1:if(i.flags&1024&&(f=i.length,f>a&&(f=a),f&&(i.head&&(E=i.head.extra_len-i.length,i.head.extra||(i.head.extra=new Uint8Array(i.head.extra_len)),i.head.extra.set(r.subarray(s,s+f),E)),i.flags&512&&i.wrap&4&&(i.check=xt(i.check,r,f,s)),a-=f,s+=f,i.length-=f),i.length))break e;i.length=0,i.mode=Q1;case Q1:if(i.flags&2048){if(a===0)break e;f=0;do E=r[s+f++],i.head&&E&&i.length<65536&&(i.head.name+=String.fromCharCode(E));while(E&&f>9&1,i.head.done=!0),e.adler=i.check=0,i.mode=Tr;break;case tg:for(;d<32;){if(a===0)break e;a--,c+=r[s++]<>>=d&7,d-=d&7,i.mode=ju;break}for(;d<3;){if(a===0)break e;a--,c+=r[s++]<>>=1,d-=1,c&3){case 0:i.mode=ig;break;case 1:if(ix(i),i.mode=Gl,t===Xl){c>>>=2,d-=2;break e}break;case 2:i.mode=ng;break;case 3:e.msg="invalid block type",i.mode=Xe}c>>>=2,d-=2;break;case ig:for(c>>>=d&7,d-=d&7;d<32;){if(a===0)break e;a--,c+=r[s++]<>>16^65535)){e.msg="invalid stored block lengths",i.mode=Xe;break}if(i.length=c&65535,c=0,d=0,i.mode=qu,t===Xl)break e;case qu:i.mode=rg;case rg:if(f=i.length,f){if(f>a&&(f=a),f>l&&(f=l),f===0)break e;n.set(r.subarray(s,s+f),o),a-=f,s+=f,l-=f,o+=f,i.length-=f;break}i.mode=Tr;break;case ng:for(;d<14;){if(a===0)break e;a--,c+=r[s++]<>>=5,d-=5,i.ndist=(c&31)+1,c>>>=5,d-=5,i.ncode=(c&15)+4,c>>>=4,d-=4,i.nlen>286||i.ndist>30){e.msg="too many length or distance symbols",i.mode=Xe;break}i.have=0,i.mode=sg;case sg:for(;i.have>>=3,d-=3}for(;i.have<19;)i.lens[$[i.have++]]=0;if(i.lencode=i.lendyn,i.lenbits=7,k={bits:i.lenbits},S=_a(WE,i.lens,0,19,i.lencode,0,i.work,k),i.lenbits=k.bits,S){e.msg="invalid code lengths set",i.mode=Xe;break}i.have=0,i.mode=og;case og:for(;i.have>>24,m=w>>>16&255,p=w&65535,!(x<=d);){if(a===0)break e;a--,c+=r[s++]<>>=x,d-=x,i.lens[i.have++]=p;else{if(p===16){for(T=x+2;d>>=x,d-=x,i.have===0){e.msg="invalid bit length repeat",i.mode=Xe;break}E=i.lens[i.have-1],f=3+(c&3),c>>>=2,d-=2}else if(p===17){for(T=x+3;d>>=x,d-=x,E=0,f=3+(c&7),c>>>=3,d-=3}else{for(T=x+7;d>>=x,d-=x,E=0,f=11+(c&127),c>>>=7,d-=7}if(i.have+f>i.nlen+i.ndist){e.msg="invalid bit length repeat",i.mode=Xe;break}for(;f--;)i.lens[i.have++]=E}}if(i.mode===Xe)break;if(i.lens[256]===0){e.msg="invalid code -- missing end-of-block",i.mode=Xe;break}if(i.lenbits=9,k={bits:i.lenbits},S=_a(Gb,i.lens,0,i.nlen,i.lencode,0,i.work,k),i.lenbits=k.bits,S){e.msg="invalid literal/lengths set",i.mode=Xe;break}if(i.distbits=6,i.distcode=i.distdyn,k={bits:i.distbits},S=_a(Qb,i.lens,i.nlen,i.ndist,i.distcode,0,i.work,k),i.distbits=k.bits,S){e.msg="invalid distances set",i.mode=Xe;break}if(i.mode=Gl,t===Xl)break e;case Gl:i.mode=Ql;case Ql:if(a>=6&&l>=258){e.next_out=o,e.avail_out=l,e.next_in=s,e.avail_in=a,i.hold=c,i.bits=d,FE(e,h),o=e.next_out,n=e.output,l=e.avail_out,s=e.next_in,r=e.input,a=e.avail_in,c=i.hold,d=i.bits,i.mode===Tr&&(i.back=-1);break}for(i.back=0;w=i.lencode[c&(1<>>24,m=w>>>16&255,p=w&65535,!(x<=d);){if(a===0)break e;a--,c+=r[s++]<>y)],x=w>>>24,m=w>>>16&255,p=w&65535,!(y+x<=d);){if(a===0)break e;a--,c+=r[s++]<>>=y,d-=y,i.back+=y}if(c>>>=x,d-=x,i.back+=x,i.length=p,m===0){i.mode=ug;break}if(m&32){i.back=-1,i.mode=Tr;break}if(m&64){e.msg="invalid literal/length code",i.mode=Xe;break}i.extra=m&15,i.mode=ag;case ag:if(i.extra){for(T=i.extra;d>>=i.extra,d-=i.extra,i.back+=i.extra}i.was=i.length,i.mode=lg;case lg:for(;w=i.distcode[c&(1<>>24,m=w>>>16&255,p=w&65535,!(x<=d);){if(a===0)break e;a--,c+=r[s++]<>y)],x=w>>>24,m=w>>>16&255,p=w&65535,!(y+x<=d);){if(a===0)break e;a--,c+=r[s++]<>>=y,d-=y,i.back+=y}if(c>>>=x,d-=x,i.back+=x,m&64){e.msg="invalid distance code",i.mode=Xe;break}i.offset=p,i.extra=m&15,i.mode=cg;case cg:if(i.extra){for(T=i.extra;d>>=i.extra,d-=i.extra,i.back+=i.extra}if(i.offset>i.dmax){e.msg="invalid distance too far back",i.mode=Xe;break}i.mode=dg;case dg:if(l===0)break e;if(f=h-l,i.offset>f){if(f=i.offset-f,f>i.whave&&i.sane){e.msg="invalid distance too far back",i.mode=Xe;break}f>i.wnext?(f-=i.wnext,g=i.wsize-f):g=i.wnext-f,f>i.length&&(f=i.length),b=i.window}else b=n,g=o-i.offset,f=i.length;f>l&&(f=l),l-=f,i.length-=f;do n[o++]=b[g++];while(--f);i.length===0&&(i.mode=Ql);break;case ug:if(l===0)break e;n[o++]=i.length,l--,i.mode=Ql;break;case ju:if(i.wrap){for(;d<32;){if(a===0)break e;a--,c|=r[s++]<{if(Ls(e))return tr;let t=e.state;return t.window&&(t.window=null),e.state=null,xs},sx=(e,t)=>{if(Ls(e))return tr;const i=e.state;return i.wrap&2?(i.head=t,t.done=!1,xs):tr},ox=(e,t)=>{const i=t.length;let r,n,s;return Ls(e)||(r=e.state,r.wrap!==0&&r.mode!==Zc)?tr:r.mode===Zc&&(n=1,n=il(n,t,i,0),n!==r.check)?Jb:(s=a5(e,t,i,i),s?(r.mode=t5,e5):(r.havedict=1,xs))};var ax=n5,lx=s5,cx=r5,dx=tx,ux=o5,hx=rx,fx=nx,px=sx,mx=ox,gx="pako inflate (from Nodeca project)",Lr={inflateReset:ax,inflateReset2:lx,inflateResetKeep:cx,inflateInit:dx,inflateInit2:ux,inflate:hx,inflateEnd:fx,inflateGetHeader:px,inflateSetDictionary:mx,inflateInfo:gx};function vx(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var yx=vx;const l5=Object.prototype.toString,{Z_NO_FLUSH:bx,Z_FINISH:wx,Z_OK:sl,Z_STREAM_END:Xu,Z_NEED_DICT:Gu,Z_STREAM_ERROR:_x,Z_DATA_ERROR:gg,Z_MEM_ERROR:kx}=Os;function Sl(e){this.options=Rd.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Zb,this.strm.avail_out=0;let i=Lr.inflateInit2(this.strm,t.windowBits);if(i!==sl)throw new Error(Cs[i]);if(this.header=new yx,Lr.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=nl.string2buf(t.dictionary):l5.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(i=Lr.inflateSetDictionary(this.strm,t.dictionary),i!==sl)))throw new Error(Cs[i])}Sl.prototype.push=function(e,t){const i=this.strm,r=this.options.chunkSize,n=this.options.dictionary;let s,o,a;if(this.ended)return!1;for(t===~~t?o=t:o=t===!0?wx:bx,l5.call(e)==="[object ArrayBuffer]"?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;;){for(i.avail_out===0&&(i.output=new Uint8Array(r),i.next_out=0,i.avail_out=r),s=Lr.inflate(i,o),s===Gu&&n&&(s=Lr.inflateSetDictionary(i,n),s===sl?s=Lr.inflate(i,o):s===gg&&(s=Gu));i.avail_in>0&&s===Xu&&i.state.wrap>0&&e[i.next_in]!==0;)Lr.inflateReset(i),s=Lr.inflate(i,o);switch(s){case _x:case gg:case Gu:case kx:return this.onEnd(s),this.ended=!0,!1}if(a=i.avail_out,i.next_out&&(i.avail_out===0||s===Xu))if(this.options.to==="string"){let l=nl.utf8border(i.output,i.next_out),c=i.next_out-l,d=nl.buf2string(i.output,l);i.next_out=c,i.avail_out=r-c,c&&i.output.set(i.output.subarray(l,l+c),0),this.onData(d)}else this.onData(i.output.length===i.next_out?i.output:i.output.subarray(0,i.next_out));if(!(s===sl&&a===0)){if(s===Xu)return s=Lr.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(i.avail_in===0)break}}return!0};Sl.prototype.onData=function(e){this.chunks.push(e)};Sl.prototype.onEnd=function(e){e===sl&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Rd.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Jp(e,t){const i=new Sl(t);if(i.push(e),i.err)throw i.msg||Cs[i.err];return i.result}function Cx(e,t){return t=t||{},t.raw=!0,Jp(e,t)}var Ex=Sl,xx=Jp,Sx=Cx,Ax=Jp,Tx=Os,Rx={Inflate:Ex,inflate:xx,inflateRaw:Sx,ungzip:Ax,constants:Tx};const{Deflate:$x,deflate:Ix,deflateRaw:Dx,gzip:Px}=ME,{Inflate:Bx,inflate:Ox,inflateRaw:Lx,ungzip:Mx}=Rx;var Nx=$x,Fx=Ix,zx=Dx,Hx=Px,Ux=Bx,Vx=Ox,Kx=Lx,Wx=Mx,qx=Os,c5={Deflate:Nx,deflate:Fx,deflateRaw:zx,gzip:Hx,Inflate:Ux,inflate:Vx,inflateRaw:Kx,ungzip:Wx,constants:qx},d5=new Uint8Array([0,64,128,192,224]),u5=new Uint8Array([2,2,2,3,3]),h5=['": "','": ',": +\0[]\\;' @*&?!^|\r~\`\0\0\0`,"\0,.01925-/34678() =+$%#\0\0\0\0\0"],pc=new Array(94),Ca=new Uint8Array([0,64,96,128,144,160,176,192,208,216,224,228,232,236,238,240,242,244,246,247,248,249,250,251,252,253,254,255]),Ea=new Uint8Array([2,3,3,4,4,4,4,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8]),vg=new Uint8Array([57,58,59,87,88,89]),mi=5;const jx=90,yg=91,Yx=39,Zx=40,Xx=54,Gx=46,bg=81,bf=248,wf=5,Qx=128,Jx=2,eS=0,p5=2,m5=0,g5=6,v5=4,wg=33;function tS(e,t,i){for(var r=0;r32&&(pc[i-wg]=(e<<5)+t,i>=97&&i<=122&&(pc[i-wg-32]=(e<<5)+t))}_g=1}}var iS=new Uint8Array([128,192,224,240,248,252,254,255]);function ce(e,t,i,r,n){for(var s,o,a,l;n>0;){if(s=i%8,o=n,a=r&iS[o-1],a>>=s,o+s>8&&(o=8-s),l=i/8,l<0||t<=l)return-1;s==0?e[i>>3]=a:e[i>>3]|=a,r<<=o,i+=o,n-=o}return i}function ri(e,t,i,r){return r==Ge?(i=ce(e,t,i,bf,wf),i=ce(e,t,i,Qx,Jx)):i=ce(e,t,i,eS,p5),i}function Un(e,t,i,r,n,s,o){var a=r>>5,l=r&31;if(o[a]==0&&a!=Ae)return[i,n];switch(a){case Ae:n!=Ae&&(i=ri(e,t,i,n),i=ce(e,t,i,s[Ae],o[Ae]),n=Ae);break;case ka:i=ri(e,t,i,n),i=ce(e,t,i,s[ka],o[ka]);break;case lt:n!=lt&&(i=ri(e,t,i,n),i=ce(e,t,i,s[lt],o[lt]),Xc[a].charCodeAt(l)>=48&&Xc[a].charCodeAt(l)<=57&&(n=lt))}return[ce(e,t,i,Ca[l],Ea[l]),n]}const Jn=new Uint8Array([2,4,7,11,16]),_f=[4,20,148,2196,67732],Gc=new Uint8Array([1,130,195,228,244]);function Fr(e,t,i,r){for(var n=0;n<5;n++)if(r<_f[n]){i=ce(e,t,i,Gc[n]&248,Gc[n]&7);var s=r-(n>0?_f[n-1]:0)<<16-Jn[n];return Jn[n]>8?(i=ce(e,t,i,s>>8,8),i=ce(e,t,i,s&255,Jn[n]-8)):i=ce(e,t,i,s>>8,Jn[n]),i}return i}const qi=new Uint8Array([6,12,14,16,21]),b5=[0,64,4160,20544,86080];function rS(e,t,i,r,n){const s=new Uint8Array([1,130,195,228,245,253]);var o=0,a=r-n;a<0&&(a=-a);for(var l=0;l<5;l++)if(o+=1<r?128:0,1);var c=a-b5[l];return qi[l]>16?(c<<=24-qi[l],i=ce(e,t,i,c>>16,8),i=ce(e,t,i,c>>8&255,8),i=ce(e,t,i,c&255,qi[l]-16)):qi[l]>8?(c<<=16-qi[l],i=ce(e,t,i,c>>8,8),i=ce(e,t,i,c&255,qi[l]-8)):(c<<=8-qi[l],i=ce(e,t,i,c&255,qi[l])),i}return i}function Qu(e,t,i){var r=0;if(typeof e=="string")return r=e.codePointAt(i),[r,r===e.charCodeAt(i)?1:2];var n=0;return i=0;c--){for(d=i;d>6==2;)d--;if(d-i>mi-1){var f=d-i-mi,g=i-c-mi+1;f>h&&(h=f,u=g)}}return h>0?(s=ri(r,n,s,o),s=ce(r,n,s,a[Ss],l[Ss]),s=Fr(r,n,s,h),s=Fr(r,n,s,u),i+=h+mi,i--,[i,s]):[-i,s]}function sS(e,t,i,r,n,s,o,a,l,c,d){var u=s,h=0,f=0,g=0,b=0,w=0;do for(var x,m,p=o[a-b],y=p.length,C=b==0?i:y;w>6==2;)m--;if(m-w>=mi){if(h>0){if(w>f)continue;s=u}h=m-w,f=w,g=b,s=ri(r,n,s,l),s=ce(r,n,s,c[Ss],d[Ss]),s=Fr(r,n,s,h-mi),s=Fr(r,n,s,f),s=Fr(r,n,s,g),w+=h}}while(b++0?(i+=h,i--,[i,s]):[-i,s]}function Ju(e){return e>=48&&e<=57?e-48<<4:e>=65&&e<=70?e-65+10<<4:e>=97&&e<=102?e-97+10<<4:0}const Dr=0,pr=1,Do=2,kf=3;function Jl(e){return e>=48&&e<=57?Dr:e>=97&&e<=102?pr:e>=65&&e<=70?Do:kf}function ec(e,t,i,r,n,s){return i=ri(e,t,i,r),i=ce(e,t,i,n[lt],s[lt]),i=ce(e,t,i,0,2),i}function oS(e,t,i,r,n,s,o){return o[Ae]?(lt!=r&&(i=ri(e,t,i,r),i=ce(e,t,i,s[lt],o[lt])),i=ce(e,t,i,Ca[yg&31],Ea[yg&31])):i=ce(e,t,i,m5,n?v5:g5),i=ce(e,t,i,i==0||e[(i-1)/8]<<(i-1&7)>=0?0:255,8-i%8&7),i}function aS(e,t,i){if(i)return e===t;if(e.length!==t.length)return!1;for(var r=0;r0&&l0)continue;if(l<0&&d<0)return m+1;l=-l}else{if([l,d]=nS(e,t,l,i,m,d,a,r,n),l>0)continue;if(l<0&&d<0)return m+1;l=-l}if(u=e[l],l>0&&t>4&&l0&&u<=(p?"~":126)&&u==e[l-1]&&u==e[l+1]&&u==e[l+2]&&u==e[l+3]){for(var y=l+4;y0){var C=p?"-":45,_=Dr;if(e[l+8]===C&&e[l+13]===C&&e[l+18]===C&&e[l+23]===C){for(var E=l;E0){var _=Dr,k=0;do{var S=p?e.charCodeAt(l+k):e[l+k],A=Jl(S);if(A==kf)break;if(A!=Dr){if(_!=Dr&&_!=A)break;_=A}k++}while(l+k10&&_==Dr&&(_=pr),(_==pr||_==Do)&&k>3){d=ec(i,m,d,a,r,n),d=ce(i,m,d,_==pr?128:224,_==pr?2:4),d=Fr(i,m,d,k);do{var S=p?e.charCodeAt(l):e[l];d=ce(i,m,d,Ju(S),4),l++}while(--k>0);l--;continue}}if(o!=null&&o!=null){var T;for(T=0;T<5;T++)if(typeof o[T]=="string"){for(var $=o[T].length,I=0;I<$&&l+I(L==="r"?55:L==="t"?51:49))break}else if(L.charCodeAt(0)!==u)break}if(I/$>.66){$=$-I,d=ec(i,m,d,a,r,n),d=ce(i,m,d,0,1),d=ce(i,m,d,Gc[T]&248,Gc[T]&7),d=Fr(i,m,d,$);for(var N=0;N=0&&l<=t-M&&n[vg[T]>>5]&&aS(s[T].slice(0,M),e.slice(l,l+M),p)){[d,a]=Un(i,m,d,vg[T],a,r,n),l+=M,l--;break}}if(T<6)continue}if(u=p?e.charCodeAt(l):e[l],g=!1,u>=65&&u<=90?g=!0:b&&(b=!1,d=ri(i,m,d,a),d=ce(i,m,d,r[Ae],n[Ae]),a=Ae),g&&!b&&(a==lt&&(d=ri(i,m,d,a),d=ce(i,m,d,r[Ae],n[Ae]),a=Ae),d=ri(i,m,d,a),d=ce(i,m,d,r[Ae],n[Ae]),a==Ge&&(a=Ae,d=ri(i,m,d,a),d=ce(i,m,d,r[Ae],n[Ae]))),h=0,l+1=32&&u<=126){if(g&&!b){for(c=l+4;c>=l&&c90)break}c==l-1&&(d=ri(i,m,d,a),d=ce(i,m,d,r[Ae],n[Ae]),a=Ae,b=!0)}if(a==Ge){var q=" .,".indexOf(String.fromCharCode(u));if(q!=-1){d=ce(i,m,d,bf,wf),d=ce(i,m,d,lS[q],cS[q]);continue}}u-=32,b&&g&&(u+=32),u===0?a==lt?d=ce(i,m,d,Ca[bg&31],Ea[bg&31]):d=ce(i,m,d,Ca[1],Ea[1]):(u=u-1,[d,a]=Un(i,m,d,pc[u],a,r,n))}else if(u===13&&h===10)[d,a]=Un(i,m,d,Zx,a,r,n),l++;else if(u===10)a==Ge?(d=ce(i,m,d,bf,wf),d=ce(i,m,d,240,4)):[d,a]=Un(i,m,d,Yx,a,r,n);else if(u===13)[d,a]=Un(i,m,d,Xx,a,r,n);else if(u===9)[d,a]=Un(i,m,d,Gx,a,r,n);else{var he,ve,z;if([he,ve]=Qu(e,t,l),he>0)l+=ve,a!=Ge&&([z,ve]=Qu(e,t,l),z>0?(a!=Ae&&(d=ri(i,m,d,a),d=ce(i,m,d,r[Ae],n[Ae])),d=ri(i,m,d,a),d=ce(i,m,d,r[Ae],n[Ae]),d=ce(i,m,d,Ca[1],Ea[1]),a=Ge):(d=ri(i,m,d,a),d=ce(i,m,d,r[Ge],n[Ge]))),d=rS(i,m,d,he,f),f=he,l--;else{for(var U=1,V=l+1;V0||V0);l--}}}{var Ne=(d+7)/8;return d=oS(i,Ne,d,a,b,r,n),Ne}}function uS(e,t,i){return dS(e,t,i,d5,u5,h5,f5)}function e0(e,t){return e[t>>3]&128>>t%8}function t0(e,t,i){var r=i&7,n=i>>3;t>>=3;var s=e[n]<>8-r:s|=255>>8-r,[s,i]}const hS=5,fS=new Uint8Array([127,191,223,239,255]),pS=new Uint8Array([0,4,8,12,20]),mS=new Uint8Array([127,63,31,15,15]),gS=new Uint8Array([5,4,3,1,0]),vS=new Uint8Array([32,32,65,66,99,100,101,102,103,103,136,137,170,170,171,171,172,172,205,206,207,207,208,208,209,209,242,243,244,245,246,247,248,249,250,251]);function eh(e,t,i){if(i>gS[n])];return i+=(s>>5)+1,i>t?[99,i]:[s&31,i]}while(++n0&&(s&yS[n[o]-1])==r[o])return i+=n[o],[o,i]}return[99,i]}function ol(e,t,i,r){for(var n=0;i0;)if(n++,i++,n==r)return[n,i];return i>=t?[99,i]:(i++,[n,i])}function xa(e,t,i,r){for(var n=0;r-- >0&&i0?1<=i)return[-1,t];var n=xa(e,i,t,Jn[r])+(r>0?_f[r-1]:0);return t+=Jn[r],[n,t]}function bS(e,t,i){var r=0;if([r,t]=ol(e,i,t,5),r==99)return[2147483491,t];if(r==5)return[r,t]=ol(e,i,t,4),[2147483392+r,t];if(r>=0){var n=t=i)return[2147483491,t];var s=xa(e,i,t,qi[r]);return s+=b5[r],t+=qi[r],[n>0?-s:s,t]}return[0,t]}function kg(e,t,i,r,n,s,o,a,l,c,d){var u=0;if([u,n]=zr(e,n,t),u+=mi,u=i.length);b++)i[r]=g[h+b],r++;return[n,r]}function Cg(e,t,i,r,n){var s=0;if([s,n]=zr(e,n,t),s+=mi,s=i.length);a++)i[r]=i[r-o],r++;return[n,r]}function Eg(e,t){return e>=0&&e<=9?String.fromCharCode(48+e):t>6),e[t++]=128+(i&63)):i<65536?(e[t++]=224+(i>>12),e[t++]=128+(i>>6&63),e[t++]=128+(i&63)):(e[t++]=240+(i>>18),e[t++]=128+(i>>12&63),e[t++]=128+(i>>6&63),e[t++]=128+(i&63)),t}function ir(e,t,i){return e==null?t+=i:t=e.length);r++)e[t++]=i.charCodeAt(r);return t}function Cf(e,t,i,r,n,s,o){var a,l,c,d,u,h=null,f;y5(),l=1,a=c=Ae,u=0;var g=0;e instanceof Array&&(h=e,f=t,e=h[f],t=e.length),t<<=3;for(var b=i==null?"":0;l>8==8388607){var m=x&255;if(m==99)break;switch(m){case 0:b=ir(i,b," ");continue;case 1:if([c,l]=th(e,t,l,r,n),c==99){l=t;continue}if(c==Ge||c==Ae){a=c;continue}if(c==Ss){if(h==null?[l,b]=Cg(e,t,i,b,l):[l,b]=kg(e,t,i,b,l,h,f,r,n,s,o),l<0)return b;c=a;continue}break;case 2:b=ir(i,b,",");continue;case 3:b=ir(i,b,".");continue;case 4:b=ir(i,b,` +`);continue}}else g+=x,g>0&&(i==null?b+=String.fromCodePoint(g):b=wS(i,b,g));if(a==Ge&&c==Ge)continue}else c=a;var p="",y=u;if([d,l]=eh(e,t,l),d==99||c==99){l=w;break}if(d==0&&c!=ka){if(l>=t)break;if((c!=lt||a!=Ge)&&([c,l]=th(e,t,l,r,n),c==99||l>=t)){l=w;break}if(c==Ae)if(a==Ae){if(n[Ae]==0&&m5==(t0(e,t,l-p5)&255<<8-(u?v5:g5)))break;if(u){y=u=0;continue}if([d,l]=eh(e,t,l),d==99){l=w;break}if(d==0){if([c,l]=th(e,t,l,r,n),c==99){l=w;break}if(c==Ae){u=1;continue}}y=1}else{a=Ae;continue}else if(c==Ss){if(h==null?[l,b]=Cg(e,t,i,b,l):[l,b]=kg(e,t,i,b,l,h,f,r,n,s,o),l<0)break;continue}else{if(c==Ge)continue;if((c!=lt||a!=Ge)&&([d,l]=eh(e,t,l)),d==99){l=w;break}if(c==lt&&d==0){var C;if([C,l]=ol(e,t,l,5),C==99)break;if(C==0){if([C,l]=ol(e,t,l,4),C>=5)break;var _;if([_,l]=zr(e,l,t),_<0||o[C]==null)break;var E=o[C].length;if(_>E)break;_=E-_;for(var S=!1,A=0;A<_;A++){var k=o[C][A];if(k==="f"||k==="r"||k==="t"||k==="o"||k==="F"){var T=k==="f"||k==="F"?4:k==="r"?3:k==="t"?2:1,$=xa(e,t,l,T);if($<0){S=!0;break}var I=Eg($,k==="f"?pr:Do);b=ir(i,b,I),l+=T}else b=ir(i,b,k)}if(S)break}else if(C==5){var L;if([L,l]=zr(e,l,t),L<0||L==0)break;do{var $=xa(e,t,l,8);if($<0)break;var N=String.fromCharCode($);b=ir(i,b,N),l+=8}while(--L>0)}else{var M=0;if(C==2||C==4)M=32;else if([M,l]=zr(e,l,t),M<0||M==0)break;do{var X=xa(e,t,l,4);if(X<0)break;var I=Eg(X,C<3?pr:Do);b=ir(i,b,I),(C==2||C==4)&&(M==25||M==21||M==17||M==13)&&(b=ir(i,b,"-")),l+=4}while(--M>0);if(M>0)break}a==Ge&&(c=Ge);continue}}}if(y&&d==1){c=a=Ge;continue}if(c<3&&d<28&&(p=Xc[c].charAt(d)),p>="a"&&p<="z")a=Ae,y&&(p=String.fromCharCode(p.charCodeAt(0)-32));else if(p!==0&&p.charCodeAt(0)>=48&&p.charCodeAt(0)<=57)a=lt;else if(p.charCodeAt(0)===0&&p!=="0"){if(d==8)b=ih(i,b,`\r +`);else if(c==lt&&d==26){var q;if([q,l]=zr(e,l,t),q<0)break;q+=4;for(var he=i==null?b.charAt(b.length-1):String.fromCharCode(i[b-1]);q--;)b=ir(i,b,he)}else if(c==ka&&d>24)d-=25,b=ih(i,b,s[d]);else if(c==lt&&d>22&&d<26)d-=20,b=ih(i,b,s[d]);else break;a==Ge&&(c=Ge);continue}a==Ge&&(c=Ge),b=ir(i,b,p)}return b}const _S='{"basic":{"alphabet":{"a":["请","上","中","之","等","人","到","年","个","将"],"b":["得","可","并","发","过","协","曲","闭","斋","峦"],"c":["页","于","而","被","无","挽","裕","斜","绪","镜"],"d":["由","把","好","从","会","帕","莹","盈","敬","粒"],"e":["的","在","了","是","为","有","和","我","一","与"],"f":["站","最","号","及","能","迟","鸭","呈","玻","据"],"g":["着","很","此","但","看","浩","附","侃","汐","绸"],"h":["名","呢","又","图","啊","棉","畅","蒸","玫","添"],"i":["对","地","您","给","这","下","网","也","来","你"],"j":["更","天","去","用","只","矽","萌","镁","芯","夸"],"k":["第","者","所","两","里","氢","羟","纽","夏","春"],"l":["自","做","前","二","他","氦","汀","兰","竹","捷"],"m":["家","点","路","至","十","锂","羧","暑","夕","振"],"n":["区","想","向","主","四","铍","烃","惠","芳","岩"],"o":["就","新","吗","该","不","多","还","要","让","大"],"p":["小","如","成","位","其","硼","酞","褔","苑","笋"],"q":["吧","每","机","几","总","碳","铂","涓","绣","悦"],"r":["起","它","内","高","次","氮","铵","奏","鲤","淳"],"s":["非","元","类","五","使","氧","醇","迷","霁","琅"],"t":["首","进","即","没","市","氖","酯","琳","绫","濑"],"u":["后","三","本","都","时","月","或","说","已","以"],"v":["种","快","那","篇","万","钠","炔","柯","睿","琼"],"w":["长","按","报","比","信","硅","烷","静","欣","束"],"x":["再","带","才","全","呀","磷","烯","柔","雪","冰"],"y":["业","却","版","美","们","硫","桉","寒","冻","玖"],"z":["像","走","文","各","当","氯","缬","妃","琉","璃"],"A":["贴","则","老","生","达","商","行","周","证","经"],"B":["事","场","同","化","找","建","手","道","间","式"],"C":["特","城","型","定","接","局","问","重","叫","通"],"D":["件","少","面","金","近","买","听","学","见","称"],"E":["写","选","片","体","组","先","仅","别","表","现"],"F":["雨","泊","注","织","赴","茶","因","设","环","青"],"G":["数","心","子","处","作","项","谁","分","转","字"],"H":["砂","妥","鹦","课","栗","霞","鹉","翌","蕴","憩"],"I":["畔","珑","咫","瑞","玲","郊","蛟","昱","祉","菁"],"J":["铁","宙","耕","琴","铃","瑰","旬","茉","砺","莅"],"K":["钇","莉","筱","森","曳","苹","踵","晰","砥","舀"],"L":["锆","粟","魄","辉","谜","馅","醋","甄","韶","泪"],"M":["钌","倘","祥","善","泉","惦","铠","骏","韵","泣"],"N":["铑","筑","铿","智","禀","磊","桨","檀","荧","铭"],"O":["钯","骐","烛","蔬","凛","溯","困","炯","酿","瑕"],"P":["银","榻","驿","缎","澟","绒","莺","萤","桅","枕"],"Q":["镉","赞","瑾","程","怡","漱","穗","湍","栀","皆"],"R":["碘","礼","饴","舒","芷","麟","沥","描","锄","墩"],"S":["锡","彰","瞻","雅","贮","喵","翊","闪","翎","婉"],"T":["钨","咨","涌","益","嵩","御","饶","纺","栩","稔"],"U":["铋","骆","橘","未","泰","频","琥","囍","浣","裳"],"V":["钕","飒","浇","哦","途","瓢","珀","涨","仓","棠"],"W":["祁","蓬","灿","部","涧","舫","曙","航","礁","渡"],"X":["旺","嫦","漫","佑","钥","谧","葵","咩","诵","绮"],"Y":["阐","译","锻","茜","坞","砌","靛","猫","芮","绚"],"Z":["拌","皎","笙","沃","悟","拓","遨","揽","昼","蔗"]},"numbersymbol":{"0":["卡","风","水","放","花","钾","宏","谊","探","棋"],"1":["需","头","话","曾","楼","钙","吾","恋","菲","遥"],"2":["连","系","门","力","量","钛","苗","氛","鹤","雀"],"3":["书","亿","跟","深","方","钒","鸳","鸯","纸","鸢"],"4":["若","低","谈","明","百","铬","羯","尧","舜","兆"],"5":["关","客","读","双","回","锰","熙","瀚","渊","灯"],"6":["较","品","嘛","单","价","钴","阑","珊","雁","鹂"],"7":["山","西","动","厂","热","锌","鹃","鸠","昆","仑"],"8":["言","笑","度","易","身","镓","乾","坤","澈","饺"],"9":["份","星","千","仍","办","锗","彗","聪","慧","磋"],"+":["集","费","传","室","拉"],"/":["难","界","指","管","具"],"?":["相","儿","李","早","拿"],"-":["科","白","段","飞","住"],".":["利","红","板","光","约"],"(":["变","款","林","夹","院"],")":["服","句","声","务","游"],"[":["股","南","社","阿","远"],"]":["意","换","些","必","赛"],"<":["届","完","乐","彩","讲"],">":["展","帮","且","物","班"],",":["何","流","密","某","房"],"|":["语","亚","常","除","装"],"=":["极","载","题","刚","气"],"@":["米","影","德","世","坐"],"#":["北","招","短","活","斯"],"!":["值","店","树","哪","余"],"~":["盘","速","座","求","创"],"`":["梦","足","半","视","安"],"$":["空","歌","派","顶","登"],"%":["夜","云","感","啦","欲"],"^":["边","工","眼","街","奖"],"&":["获","占","理","任","实"],"*":["知","掉","色","讯","克"],"_":["直","评","往","层","园"],"{":["留","靠","亦","罗","营"],"}":["合","尚","产","诚","汨"],":":["曱","朩","杉","杸","歩"],";":["毋","氕","気","氘","氙"]}},"special":{"DECRYPT":{"JP":["桜","込","凪","雫","実","沢"],"CN":["玚","俟","玊","欤","瞐","珏"]}}}';var na=0,i0=new Uint8Array(32);const fs="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";var es="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",ts="FbPoDRStyJKAUcdahfVXlqwnOGpHZejzvmrBCigQILxkYMuWTEsN",is="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";const kS="ABCDEFGHIJKLMNOPQRSTUVWXYZ",CS="1234567890",ES="+=_-/?.>,<|`~!@#$%^&*(){}[];:",co="1234567890+=_-/?.>,<|`~!@#$%^&*(){}[];:";var rs="1234567890+=_-/?.>,<|`~!@#$%^&*(){}[];:",ns="~3{8}_-$[6(2^|1*%0,<9:`+@7/?.>4=];!)",ss="1234567890+=_-/?.>,<|`~!@#$%^&*(){}[];:";const xS="桜込凪雫実沢",SS="玚俟玊欤瞐珏",Rn="孎",St=JSON.parse(_S);function w5(e,t,i){let r=Ir.SHA256(t),n=mc(r),s=new Uint8Array(n.byteLength+2);s.set(n,0),s.set([i[0],i[1]],n.byteLength),n=s;let o=Ir.lib.WordArray.create(n),a=Ir.SHA256(o),l=mc(a),c=new Uint8Array(16);for(var d=0;d<16;d++)c[d]=l[d];let u=Ir.lib.WordArray.create(c),h=Ir.lib.WordArray.create(e),f=Ir.AES.encrypt(h,r,{mode:Ir.mode.CTR,padding:Ir.pad.NoPadding,iv:u});return mc(f.ciphertext)}function xg(e){let t=c5.gzip(e);return t.byteLength>=e.byteLength?e:t}function AS(e){const t=new Uint8Array(e.buffer,0,2);return t[0]===31&&t[1]===139?c5.ungzip(e):e}function TS(e){let t=new Uint8Array(2048),i=uS(e,e.byteLength,t),r=t.subarray(0,i);if(r.byteLength>=e.byteLength)return e;let n=new Uint8Array(r.byteLength+2);return n.set(r,0),n.set([255,255],r.byteLength),r=n,r}function RS(e){const t=e[e.byteLength-1],i=e[e.byteLength-2];if(t!=255||i!=255)return e;let r=e.subarray(0,e.byteLength-2),n=new Uint8Array(2048),s=Cf(r,r.byteLength,n,d5,u5,h5,f5);return n.subarray(0,s)}function mc(e){const t=new Uint8Array(e.sigBytes);for(let i=0;i>>2]>>>24-i%4*8&255;return t}function $S(e){let t=Ro.encode(e);return Ro.toUint8Array(t)}function Ef(e){let t=Ro.fromUint8Array(e);return Ro.decode(t)}function Sg(e,t,i){return t>e.length-1?e:e.substring(0,t)+i+e.substring(t+1)}function Mr(e){return Math.floor(Math.random()*1e4)%e}function Ag(e,t,i){return e.slice(0,i)+t+e.slice(i)}function IS(e,t){return e.filter(i=>!t.includes(i))}function Hs(e,t){return e.slice(t)+e.slice(0,t)}function Us(e,t){return e.slice(e.length-t)+e.slice(0,e.length-t)}function Vs(e){let t,i,r,n,s,o;return t=fs.indexOf(e),i=co.indexOf(e),r=fs.indexOf(es[t]),n=co.indexOf(rs[i]),s=fs.indexOf(ts[r]),o=co.indexOf(ns[n]),t!=-1?is[s]:i!=-1?ss[o]:Rn}function Tg(e){let t,i,r,n,s,o;return t=is.indexOf(e),i=ss.indexOf(e),r=ts.indexOf(fs[t]),n=ns.indexOf(co[i]),s=es.indexOf(fs[r]),o=rs.indexOf(co[n]),t!=-1?fs[s]:i!=-1?co[o]:Rn}function Qc(){let e=0;na==32&&(na=0),e=i0[na]%10,e==0&&(e=10),e%2==0?(es=Hs(es,6),rs=Hs(rs,6),ts=Us(ts,e*2),ns=Us(ns,e*2),is=Hs(is,e/2+1),ss=Hs(ss,e/2+1)):(es=Us(es,3),rs=Us(rs,3),ts=Hs(ts,e),ns=Hs(ns,e),is=Us(is,(e+7)/2),ss=Us(ss,(e+7)/2)),na++}function Sa(){na=0,i0=new Array(32),es="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",ts="FbPoDRStyJKAUcdahfVXlqwnOGpHZejzvmrBCigQILxkYMuWTEsN",is="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",rs="1234567890+=_-/?.>,<|`~!@#$%^&*(){}[];:",ns="~3{8}_-$[6(2^|1*%0,<9:`+@7/?.>4=];!)",ss="1234567890+=_-/?.>,<|`~!@#$%^&*(){}[];:"}function _5(e){let t=Ir.SHA256(e);i0=mc(t)}class k5{constructor(t,i=!1){this.output=t,this.isEncrypted=i}}function Rg(e){let t=String(e),i=t.length,r,n=!1,s=!1,o=!1;for(let l=0;l{t==n&&(i=Tg(r))});if(i)return i;for(let r in St.basic.numbersymbol)St.basic.numbersymbol[r].forEach(n=>{t==n&&(i=Tg(r))});return i||Rn}const Ho=class ii{constructor(t=ii.TEXT,i=ii.TEXT){if(iu(this,Jo,""),iu(this,ea,""),iu(this,Wt,null),t!=ii.TEXT&&t!=ii.UINT8||i!=ii.TEXT&&i!=ii.UINT8)throw"Unexpected Argument";Hn(this,Jo,t),Hn(this,ea,i)}Input(t,i,r="ABRACADABRA",n=!1){if(Ti(this,Jo)==ii.UINT8){if(Object.prototype.toString.call(t)!="[object Uint8Array]")throw"Unexpected Input Type";let s=new TextDecoder("utf-8",{fatal:!0}),o=!1,a="";try{a=s.decode(t)}catch{o=!0}let l;o?(l=new k5(t,!0,!1),Hn(this,Wt,rh(l,r,n))):(l=Rg(a),l.isEncrypted&&i!=ii.ENCRYPT||i==ii.DECRYPT?Hn(this,Wt,$g(l,r)):Hn(this,Wt,rh(l,r,n)))}else if(Ti(this,Jo)==ii.TEXT){if(Object.prototype.toString.call(t)!="[object String]")throw"Unexpected Input Type";let s=Rg(t);s.isEncrypted&&i!=ii.ENCRYPT||i==ii.DECRYPT?Hn(this,Wt,$g(s,r)):Hn(this,Wt,rh(s,r,n))}return 0}Output(){if(Ti(this,Wt)==null)throw"Null Output, please input some data at first.";if(typeof Ti(this,Wt)=="object")return Ti(this,ea)==ii.TEXT?Ti(this,Wt).output:Ti(this,Wt).output_B!=null?Ti(this,Wt).output_B:new TextEncoder().encode(Ti(this,Wt).output);if(typeof Ti(this,Wt)=="string")return Ti(this,ea)==ii.TEXT?Ti(this,Wt):new TextEncoder().encode(Ti(this,Wt))}};Jo=new WeakMap;ea=new WeakMap;Wt=new WeakMap;kl(Ho,"TEXT","TEXT");kl(Ho,"UINT8","UINT8");kl(Ho,"ENCRYPT","ENCRYPT");kl(Ho,"DECRYPT","DECRYPT");kl(Ho,"AUTO","AUTO");let BS=Ho;const OS=Te("div",{id:"MagicBadge",style:{}},[Te("span",{style:{"font-size":"3rem","font-weight":"bold",margin:"10px 10px 10px 20px",height:"fit-content",width:"fit-content"}},"魔曰"),Te("span",{style:{"font-size":"1rem","font-variant":"petite-caps","margin-left":"20px",height:"fit-content",width:"fit-content"}},"Abracadabra")],-1),LS={id:"MainContainer",style:{display:"grid","grid-template-rows":"80px 150px 80px","grid-gap":"7px"}},MS={key:0,id:"InputCard",variant:"outlined",rows:"2",label:"话语",placeholder:"你渴求吟唱的话语",style:{"grid-area":"1",height:"80px",width:"360px"}},NS=Te("h1",{style:{"align-self":"center","justify-self":"center"}},"选择文件",-1),FS=Te("p",{style:{"align-self":"center","justify-self":"center"}},"拖拽或点击",-1),zS={style:{"align-self":"center","justify-self":"center","margin-bottom":"0"}},HS=Te("mdui-text-field",{id:"KeyCard",variant:"outlined",rows:"1",label:"魔咒",placeholder:"将一切雪藏的魔咒",style:{"grid-column":"span 3","align-self":"center",width:"360px"}},null,-1),US={key:2,id:"OutputText",variant:"outlined",rows:"4",label:"符文",placeholder:"回路末端的符文",style:{"grid-area":"3",height:"120px",width:"360px"}},VS=Te("h1",{style:{"align-self":"center","justify-self":"center"}},"输出文件",-1),KS=Te("div",{id:"CopyrightBadger",style:{"grid-area":"4",display:"grid","grid-template-columns":"50% 50%"}},[Te("p",{style:{position:"relative",width:"fit-content",height:"fit-content",top:"60px","font-size":"1rem","font-variant":"petite-caps","text-align":"left",padding:"6px","border-radius":"inherit",margin:"0px"}},[fd(" Abracadabra V2.5.2"),Te("br"),Te("a",{href:"https://github.com/SheepChef/Abracadabra"},"Github Repo")]),Te("p",{style:{position:"relative",width:"fit-content",height:"fit-content",top:"92px","font-size":"1rem","font-variant":"petite-caps","text-align":"left",padding:"6px","border-radius":"inherit",margin:"0px","justify-self":"end",opacity:"0.5"}}," SheepChef © ")],-1),WS={id:"CryptControl"},qS=Te("span",{style:{"align-self":"center","justify-self":"right","margin-right":"0px"}},"雪藏话语",-1),jS=Te("span",{style:{"align-self":"center","justify-self":"right","margin-right":"0px"}},"探求真意",-1),YS=Te("span",{style:{"align-self":"center","justify-self":"right","margin-right":"0px"}},"去除标志",-1),ZS=Te("div",{id:"PositionOccupie"},null,-1),XS={__name:"HomeView",setup(e){const t=ut("TEXT"),i=ut("TEXT"),r=ut(!1),n=ut(!1),s=ut(!1);ut("#5b6169");var o=ut(new Array);const a=ut(null),l=ut("");no(()=>o.value[0],_=>{a.value=_,l.value=_.name,window.inputfile=_});function c(_){return new Promise((E,S)=>{const A=new FileReader;A.onload=k=>{const T=new Uint8Array(k.target.result);E(T)},A.onerror=S,A.readAsArrayBuffer(_)})}function d(_,E,S){const A=new Blob([_],{type:S});return new File([A],E,{type:S})}function u(_){_.preventDefault(),document.getElementById("FileCard").style.background="#6ea0be"}function h(_){_.preventDefault(),document.getElementById("FileCard").style.background="#5b6169"}function f(_){_.preventDefault()}function g(_){_.preventDefault(),document.getElementById("FileCard").style.background="#5b6169";const E=_.dataTransfer.files;x(E)}function b(_){const E=_.target.files;x(E)}function w(_){document.querySelector("#fileIn").click()}function x(_){o.value=[];for(let E=0;E<_.length;E++){const S=_[E];o.value.push(S)}}function m(){document.getElementById("ForceEnc").checked==!0?(document.getElementById("ForceDec").disabled=!0,document.getElementById("ForceDec").checked=!1,r.value=!0,n.value=!1):document.getElementById("ForceDec").checked==!0?(document.getElementById("ForceEnc").disabled=!0,document.getElementById("Forceq").disabled=!0,document.getElementById("ForceEnc").checked=!1,r.value=!1,n.value=!0):(document.getElementById("ForceDec").disabled=!1,document.getElementById("ForceEnc").disabled=!1,document.getElementById("Forceq").disabled=!1,r.value=!1,n.value=!1)}function p(){document.getElementById("Forceq").checked==!0?s.value=!0:s.value=!1}async function y(){let _=new BS(t.value,i.value),E;try{if(t.value=="TEXT"){if(document.getElementById("InputCard").value=="")return;document.getElementById("KeyCard").value==""?(E="ABRACADABRA",tu({message:"你没有填写魔咒,自动使用默认魔咒,这不安全",autoCloseDelay:1500})):E=document.getElementById("KeyCard").value,r.value?s.value?_.Input(document.getElementById("InputCard").value,"ENCRYPT",E,!0):_.Input(document.getElementById("InputCard").value,"ENCRYPT",E,!1):n.value?_.Input(document.getElementById("InputCard").value,"DECRYPT",E):_.Input(document.getElementById("InputCard").value,"AUTO",E,s.value)}else if(t.value=="UINT8"){if(window.inputfile==null||window.inputfile==null)return;document.getElementById("KeyCard").value==""?(E="ABRACADABRA",tu({message:"你没有填写魔咒,自动使用默认魔咒,这不安全",autoCloseDelay:1500})):E=document.getElementById("KeyCard").value;let S=await c(window.inputfile);r.value?s.value?_.Input(S,"ENCRYPT",E,!0):_.Input(S,"ENCRYPT",E,!1):n.value?_.Input(S,"DECRYPT",E):_.Input(S,"AUTO",E,s.value)}if(i.value=="TEXT")document.getElementById("OutputText").value=_.Output();else if(i.value=="UINT8"){let S=_.Output(),A=d(S,"Abracadabra_Result","application/octet-stream"),k=document.createElement("a");k.download=A.name;let T=URL.createObjectURL(A);k.href=T,k.click(),URL.revokeObjectURL(T)}}catch(S){tu({message:"发生错误, "+S.toString()})}}function C(){document.getElementById("OutputText").value!=""&&(document.getElementById("OutputText").select(),navigator.clipboard.writeText(window.getSelection().toString()))}return Xr(()=>{m()}),ll(()=>{}),(_,E)=>(pi(),Vr(gt,null,[OS,Ue(Qo,{id:"FunctionCard"},{default:Wn(()=>[Te("div",LS,[t.value=="TEXT"?(pi(),Vr("mdui-text-field",MS)):js("",!0),t.value=="UINT8"?(pi(),Ba(Qo,{key:1,id:"FileCard",Background:"#5b6169",Width:"360px",Height:"80px",Other:{"grid-area":1,transition:"all 1s ease"},clickable:"",onDragenter:u,onDragleave:h,onDragover:f,onDrop:g,onClick:w},{default:Wn(()=>[NS,FS,Te("p",zS,Ng(l.value),1),Te("input",{type:"file",id:"fileIn",style:{display:"contents"},onChange:b},null,32)]),_:1})):js("",!0),Te("div",{id:"controlBar",style:{"grid-area":"2",display:"grid","grid-template-columns":"360px"}},[HS,Te("mdui-button",{icon:"arrow_downward--rounded",onClick:y,"full-width":"",style:{"align-self":"center"}},"吟唱你的魔法")]),i.value=="TEXT"?(pi(),Vr("mdui-text-field",US)):js("",!0),Te("mdui-button-icon",{icon:"content_copy--rounded",style:{position:"absolute",bottom:"95px",right:"22px",background:"rgb(11 11 11 / 25%)","backdrop-filter":"blur(2px)"},onClick:C}),i.value=="UINT8"?(pi(),Ba(Qo,{key:3,id:"FileCard2",Background:"#5b6169",Width:"360px",Height:"120px",Other:{"grid-area":3,transition:"all 1s ease"}},{default:Wn(()=>[VS]),_:1})):js("",!0),KS])]),_:1}),Ue(Qo,{id:"FloatCard"},{default:Wn(()=>[Te("div",WS,[qS,Te("mdui-switch",{id:"ForceEnc",style:{"align-self":"center","justify-self":"left"},"unchecked-icon":"hdr_auto--rounded","checked-icon":"auto_awesome--rounded",onChange:m},null,32),jS,Te("mdui-switch",{id:"ForceDec",style:{"align-self":"center","justify-self":"left"},"unchecked-icon":"hdr_auto--rounded","checked-icon":"auto_awesome--rounded",onChange:m},null,32),YS,Te("mdui-switch",{id:"Forceq","checked-icon":"auto_awesome--rounded",style:{"align-self":"center","justify-self":"left"},onChange:p},null,32)])]),_:1}),ZS],64))}},GS={id:"ImWindowContainer",ref:"ImContainer"},QS={id:"ImContentContainer"},JS={id:"main_content",style:{height:"fit-content"}},eA={__name:"ImMainView",setup(e){const t=ut(0),i=new ResizeObserver(r=>{r.forEach(n=>{t.value=n.contentRect.height})});return Xr(()=>{i.observe(document.getElementById("ImWindowContainer"))}),(r,n)=>(pi(),Vr("div",GS,[Ue(rk,{ContainerId:"ImWindowContainer",ContentContainerId:"ImContentContainer",Direction:"Right",Length:"calc(100% - 120px)",Width:"10px",PBottom:"10px",PRight:"2px",PMarginOne:"27px",PMarginTwo:"0px",Id:"TestBar"}),Te("div",QS,[Te("div",JS,[Ue(XS)])])],512))}},tA=Te("header",null,[Te("link",{rel:"shortcut icon",href:"favicon.ico"})],-1),iA={style:{width:"100% !important",height:"100%"}},rA={class:"InnerUI",fullHeight:""},nA={__name:"App",setup(e){return Xr(()=>{}),(t,i)=>(pi(),Vr(gt,null,[tA,Te("mdui-layout",iA,[Te("mdui-layout-main",rA,[Ue(eA)])])],64))}};window.addEventListener("beforeinstallprompt",e=>{e.preventDefault(),window.deferredPrompt=e});const C5=$2(nA);J_("#09355b");C5.component("Card",Qo);C5.mount("body"); diff --git a/docs/assets/index-BgJwclCu.css b/docs/assets/index-CVSA6z77.css similarity index 96% rename from docs/assets/index-BgJwclCu.css rename to docs/assets/index-CVSA6z77.css index e8b3baf..acb5a2e 100644 --- a/docs/assets/index-BgJwclCu.css +++ b/docs/assets/index-CVSA6z77.css @@ -1 +1 @@ -@font-face{font-family:SamsungSans;src:url(./SamsungSans-Regular-BsRQoNIc.ttf)}html,body{height:100%;width:100%;margin:0;padding:0;font-family:SamsungSans,"sans-serif";background:url(./bg-CjkYdVK5.webp);background-size:cover}h1{margin-top:unset}#main_content{width:100%;display:grid}:root{--mdui-breakpoint-xs:0px;--mdui-breakpoint-sm:600px;--mdui-breakpoint-md:840px;--mdui-breakpoint-lg:1080px;--mdui-breakpoint-xl:1440px;--mdui-breakpoint-xxl:1920px}:root{--mdui-color-primary-light:103,80,164;--mdui-color-primary-container-light:234,221,255;--mdui-color-on-primary-light:255,255,255;--mdui-color-on-primary-container-light:33,0,94;--mdui-color-inverse-primary-light:208,188,255;--mdui-color-secondary-light:98,91,113;--mdui-color-secondary-container-light:232,222,248;--mdui-color-on-secondary-light:255,255,255;--mdui-color-on-secondary-container-light:30,25,43;--mdui-color-tertiary-light:125,82,96;--mdui-color-tertiary-container-light:255,216,228;--mdui-color-on-tertiary-light:255,255,255;--mdui-color-on-tertiary-container-light:55,11,30;--mdui-color-surface-light:254,247,255;--mdui-color-surface-dim-light:222,216,225;--mdui-color-surface-bright-light:254,247,255;--mdui-color-surface-container-lowest-light:255,255,255;--mdui-color-surface-container-low-light:247,242,250;--mdui-color-surface-container-light:243,237,247;--mdui-color-surface-container-high-light:236,230,240;--mdui-color-surface-container-highest-light:230,224,233;--mdui-color-surface-variant-light:231,224,236;--mdui-color-on-surface-light:28,27,31;--mdui-color-on-surface-variant-light:73,69,78;--mdui-color-inverse-surface-light:49,48,51;--mdui-color-inverse-on-surface-light:244,239,244;--mdui-color-background-light:254,247,255;--mdui-color-on-background-light:28,27,31;--mdui-color-error-light:179,38,30;--mdui-color-error-container-light:249,222,220;--mdui-color-on-error-light:255,255,255;--mdui-color-on-error-container-light:65,14,11;--mdui-color-outline-light:121,116,126;--mdui-color-outline-variant-light:196,199,197;--mdui-color-shadow-light:0,0,0;--mdui-color-surface-tint-color-light:103,80,164;--mdui-color-scrim-light:0,0,0;--mdui-color-primary-dark:208,188,255;--mdui-color-primary-container-dark:79,55,139;--mdui-color-on-primary-dark:55,30,115;--mdui-color-on-primary-container-dark:234,221,255;--mdui-color-inverse-primary-dark:103,80,164;--mdui-color-secondary-dark:204,194,220;--mdui-color-secondary-container-dark:74,68,88;--mdui-color-on-secondary-dark:51,45,65;--mdui-color-on-secondary-container-dark:232,222,248;--mdui-color-tertiary-dark:239,184,200;--mdui-color-tertiary-container-dark:99,59,72;--mdui-color-on-tertiary-dark:73,37,50;--mdui-color-on-tertiary-container-dark:255,216,228;--mdui-color-surface-dark:20,18,24;--mdui-color-surface-dim-dark:20,18,24;--mdui-color-surface-bright-dark:59,56,62;--mdui-color-surface-container-lowest-dark:15,13,19;--mdui-color-surface-container-low-dark:29,27,32;--mdui-color-surface-container-dark:33,31,38;--mdui-color-surface-container-high-dark:43,41,48;--mdui-color-surface-container-highest-dark:54,52,59;--mdui-color-surface-variant-dark:73,69,79;--mdui-color-on-surface-dark:230,225,229;--mdui-color-on-surface-variant-dark:202,196,208;--mdui-color-inverse-surface-dark:230,225,229;--mdui-color-inverse-on-surface-dark:49,48,51;--mdui-color-background-dark:20,18,24;--mdui-color-on-background-dark:230,225,229;--mdui-color-error-dark:242,184,181;--mdui-color-error-container-dark:140,29,24;--mdui-color-on-error-dark:96,20,16;--mdui-color-on-error-container-dark:249,222,220;--mdui-color-outline-dark:147,143,153;--mdui-color-outline-variant-dark:68,71,70;--mdui-color-shadow-dark:0,0,0;--mdui-color-surface-tint-color-dark:208,188,255;--mdui-color-scrim-dark:0,0,0;font-size:16px}.mdui-theme-light,:root{color-scheme:light;--mdui-color-primary:var(--mdui-color-primary-light);--mdui-color-primary-container:var(--mdui-color-primary-container-light);--mdui-color-on-primary:var(--mdui-color-on-primary-light);--mdui-color-on-primary-container:var(--mdui-color-on-primary-container-light);--mdui-color-inverse-primary:var(--mdui-color-inverse-primary-light);--mdui-color-secondary:var(--mdui-color-secondary-light);--mdui-color-secondary-container:var(--mdui-color-secondary-container-light);--mdui-color-on-secondary:var(--mdui-color-on-secondary-light);--mdui-color-on-secondary-container:var(--mdui-color-on-secondary-container-light);--mdui-color-tertiary:var(--mdui-color-tertiary-light);--mdui-color-tertiary-container:var(--mdui-color-tertiary-container-light);--mdui-color-on-tertiary:var(--mdui-color-on-tertiary-light);--mdui-color-on-tertiary-container:var(--mdui-color-on-tertiary-container-light);--mdui-color-surface:var(--mdui-color-surface-light);--mdui-color-surface-dim:var(--mdui-color-surface-dim-light);--mdui-color-surface-bright:var(--mdui-color-surface-bright-light);--mdui-color-surface-container-lowest:var(--mdui-color-surface-container-lowest-light);--mdui-color-surface-container-low:var(--mdui-color-surface-container-low-light);--mdui-color-surface-container:var(--mdui-color-surface-container-light);--mdui-color-surface-container-high:var(--mdui-color-surface-container-high-light);--mdui-color-surface-container-highest:var(--mdui-color-surface-container-highest-light);--mdui-color-surface-variant:var(--mdui-color-surface-variant-light);--mdui-color-on-surface:var(--mdui-color-on-surface-light);--mdui-color-on-surface-variant:var(--mdui-color-on-surface-variant-light);--mdui-color-inverse-surface:var(--mdui-color-inverse-surface-light);--mdui-color-inverse-on-surface:var(--mdui-color-inverse-on-surface-light);--mdui-color-background:var(--mdui-color-background-light);--mdui-color-on-background:var(--mdui-color-on-background-light);--mdui-color-error:var(--mdui-color-error-light);--mdui-color-error-container:var(--mdui-color-error-container-light);--mdui-color-on-error:var(--mdui-color-on-error-light);--mdui-color-on-error-container:var(--mdui-color-on-error-container-light);--mdui-color-outline:var(--mdui-color-outline-light);--mdui-color-outline-variant:var(--mdui-color-outline-variant-light);--mdui-color-shadow:var(--mdui-color-shadow-light);--mdui-color-surface-tint-color:var(--mdui-color-surface-tint-color-light);--mdui-color-scrim:var(--mdui-color-scrim-light);color:rgb(var(--mdui-color-on-background));background-color:rgb(var(--mdui-color-background))}.mdui-theme-dark{color-scheme:dark;--mdui-color-primary:var(--mdui-color-primary-dark);--mdui-color-primary-container:var(--mdui-color-primary-container-dark);--mdui-color-on-primary:var(--mdui-color-on-primary-dark);--mdui-color-on-primary-container:var(--mdui-color-on-primary-container-dark);--mdui-color-inverse-primary:var(--mdui-color-inverse-primary-dark);--mdui-color-secondary:var(--mdui-color-secondary-dark);--mdui-color-secondary-container:var(--mdui-color-secondary-container-dark);--mdui-color-on-secondary:var(--mdui-color-on-secondary-dark);--mdui-color-on-secondary-container:var(--mdui-color-on-secondary-container-dark);--mdui-color-tertiary:var(--mdui-color-tertiary-dark);--mdui-color-tertiary-container:var(--mdui-color-tertiary-container-dark);--mdui-color-on-tertiary:var(--mdui-color-on-tertiary-dark);--mdui-color-on-tertiary-container:var(--mdui-color-on-tertiary-container-dark);--mdui-color-surface:var(--mdui-color-surface-dark);--mdui-color-surface-dim:var(--mdui-color-surface-dim-dark);--mdui-color-surface-bright:var(--mdui-color-surface-bright-dark);--mdui-color-surface-container-lowest:var(--mdui-color-surface-container-lowest-dark);--mdui-color-surface-container-low:var(--mdui-color-surface-container-low-dark);--mdui-color-surface-container:var(--mdui-color-surface-container-dark);--mdui-color-surface-container-high:var(--mdui-color-surface-container-high-dark);--mdui-color-surface-container-highest:var(--mdui-color-surface-container-highest-dark);--mdui-color-surface-variant:var(--mdui-color-surface-variant-dark);--mdui-color-on-surface:var(--mdui-color-on-surface-dark);--mdui-color-on-surface-variant:var(--mdui-color-on-surface-variant-dark);--mdui-color-inverse-surface:var(--mdui-color-inverse-surface-dark);--mdui-color-inverse-on-surface:var(--mdui-color-inverse-on-surface-dark);--mdui-color-background:var(--mdui-color-background-dark);--mdui-color-on-background:var(--mdui-color-on-background-dark);--mdui-color-error:var(--mdui-color-error-dark);--mdui-color-error-container:var(--mdui-color-error-container-dark);--mdui-color-on-error:var(--mdui-color-on-error-dark);--mdui-color-on-error-container:var(--mdui-color-on-error-container-dark);--mdui-color-outline:var(--mdui-color-outline-dark);--mdui-color-outline-variant:var(--mdui-color-outline-variant-dark);--mdui-color-shadow:var(--mdui-color-shadow-dark);--mdui-color-surface-tint-color:var(--mdui-color-surface-tint-color-dark);--mdui-color-scrim:var(--mdui-color-scrim-dark);color:rgb(var(--mdui-color-on-background));background-color:rgb(var(--mdui-color-background))}@media (prefers-color-scheme:dark){.mdui-theme-auto{color-scheme:dark;--mdui-color-primary:var(--mdui-color-primary-dark);--mdui-color-primary-container:var(--mdui-color-primary-container-dark);--mdui-color-on-primary:var(--mdui-color-on-primary-dark);--mdui-color-on-primary-container:var(--mdui-color-on-primary-container-dark);--mdui-color-inverse-primary:var(--mdui-color-inverse-primary-dark);--mdui-color-secondary:var(--mdui-color-secondary-dark);--mdui-color-secondary-container:var(--mdui-color-secondary-container-dark);--mdui-color-on-secondary:var(--mdui-color-on-secondary-dark);--mdui-color-on-secondary-container:var(--mdui-color-on-secondary-container-dark);--mdui-color-tertiary:var(--mdui-color-tertiary-dark);--mdui-color-tertiary-container:var(--mdui-color-tertiary-container-dark);--mdui-color-on-tertiary:var(--mdui-color-on-tertiary-dark);--mdui-color-on-tertiary-container:var(--mdui-color-on-tertiary-container-dark);--mdui-color-surface:var(--mdui-color-surface-dark);--mdui-color-surface-dim:var(--mdui-color-surface-dim-dark);--mdui-color-surface-bright:var(--mdui-color-surface-bright-dark);--mdui-color-surface-container-lowest:var(--mdui-color-surface-container-lowest-dark);--mdui-color-surface-container-low:var(--mdui-color-surface-container-low-dark);--mdui-color-surface-container:var(--mdui-color-surface-container-dark);--mdui-color-surface-container-high:var(--mdui-color-surface-container-high-dark);--mdui-color-surface-container-highest:var(--mdui-color-surface-container-highest-dark);--mdui-color-surface-variant:var(--mdui-color-surface-variant-dark);--mdui-color-on-surface:var(--mdui-color-on-surface-dark);--mdui-color-on-surface-variant:var(--mdui-color-on-surface-variant-dark);--mdui-color-inverse-surface:var(--mdui-color-inverse-surface-dark);--mdui-color-inverse-on-surface:var(--mdui-color-inverse-on-surface-dark);--mdui-color-background:var(--mdui-color-background-dark);--mdui-color-on-background:var(--mdui-color-on-background-dark);--mdui-color-error:var(--mdui-color-error-dark);--mdui-color-error-container:var(--mdui-color-error-container-dark);--mdui-color-on-error:var(--mdui-color-on-error-dark);--mdui-color-on-error-container:var(--mdui-color-on-error-container-dark);--mdui-color-outline:var(--mdui-color-outline-dark);--mdui-color-outline-variant:var(--mdui-color-outline-variant-dark);--mdui-color-shadow:var(--mdui-color-shadow-dark);--mdui-color-surface-tint-color:var(--mdui-color-surface-tint-color-dark);--mdui-color-scrim:var(--mdui-color-scrim-dark);color:rgb(var(--mdui-color-on-background));background-color:rgb(var(--mdui-color-background))}}:root{--mdui-elevation-level0:none;--mdui-elevation-level1:0 .5px 1.5px 0 rgba(var(--mdui-color-shadow), 19%),0 0 1px 0 rgba(var(--mdui-color-shadow), 3.9%);--mdui-elevation-level2:0 .85px 3px 0 rgba(var(--mdui-color-shadow), 19%),0 .25px 1px 0 rgba(var(--mdui-color-shadow), 3.9%);--mdui-elevation-level3:0 1.25px 5px 0 rgba(var(--mdui-color-shadow), 19%),0 .3333px 1.5px 0 rgba(var(--mdui-color-shadow), 3.9%);--mdui-elevation-level4:0 1.85px 6.25px 0 rgba(var(--mdui-color-shadow), 19%),0 .5px 1.75px 0 rgba(var(--mdui-color-shadow), 3.9%);--mdui-elevation-level5:0 2.75px 9px 0 rgba(var(--mdui-color-shadow), 19%),0 .25px 3px 0 rgba(var(--mdui-color-shadow), 3.9%)}:root{--mdui-motion-easing-linear:cubic-bezier(0, 0, 1, 1);--mdui-motion-easing-standard:cubic-bezier(.2, 0, 0, 1);--mdui-motion-easing-standard-accelerate:cubic-bezier(.3, 0, 1, 1);--mdui-motion-easing-standard-decelerate:cubic-bezier(0, 0, 0, 1);--mdui-motion-easing-emphasized:var(--mdui-motion-easing-standard);--mdui-motion-easing-emphasized-accelerate:cubic-bezier(.3, 0, .8, .15);--mdui-motion-easing-emphasized-decelerate:cubic-bezier(.05, .7, .1, 1);--mdui-motion-duration-short1:50ms;--mdui-motion-duration-short2:.1s;--mdui-motion-duration-short3:.15s;--mdui-motion-duration-short4:.2s;--mdui-motion-duration-medium1:.25s;--mdui-motion-duration-medium2:.3s;--mdui-motion-duration-medium3:.35s;--mdui-motion-duration-medium4:.4s;--mdui-motion-duration-long1:.45s;--mdui-motion-duration-long2:.5s;--mdui-motion-duration-long3:.55s;--mdui-motion-duration-long4:.6s;--mdui-motion-duration-extra-long1:.7s;--mdui-motion-duration-extra-long2:.8s;--mdui-motion-duration-extra-long3:.9s;--mdui-motion-duration-extra-long4:1s}.mdui-prose{line-height:1.75;word-wrap:break-word}.mdui-prose :first-child{margin-top:0}.mdui-prose :last-child{margin-bottom:0}.mdui-prose code,.mdui-prose kbd,.mdui-prose pre,.mdui-prose pre tt,.mdui-prose samp{font-family:Consolas,Courier,Courier New,monospace}.mdui-prose caption{text-align:left}.mdui-prose [draggable=true],.mdui-prose [draggable]{cursor:move}.mdui-prose [draggable=false]{cursor:inherit}.mdui-prose dl,.mdui-prose form,.mdui-prose ol,.mdui-prose p,.mdui-prose ul{margin-top:1.25em;margin-bottom:1.25em}.mdui-prose a{text-decoration:none;outline:0;color:rgb(var(--mdui-color-primary))}.mdui-prose a:focus,.mdui-prose a:hover{border-bottom:.0625rem solid rgb(var(--mdui-color-primary))}.mdui-prose small{font-size:.875em}.mdui-prose strong{font-weight:600}.mdui-prose blockquote{margin:1.6em 2em;padding-left:1em;border-left:.25rem solid rgb(var(--mdui-color-surface-variant))}@media only screen and (max-width:599.98px){.mdui-prose blockquote{margin:1.6em 0}}.mdui-prose blockquote footer{font-size:86%;color:rgb(var(--mdui-color-on-surface-variant))}.mdui-prose mark{color:inherit;background-color:rgb(var(--mdui-color-secondary-container));border-bottom:.0625rem solid rgb(var(--mdui-color-secondary));margin:0 .375rem;padding:.125rem}.mdui-prose h1,.mdui-prose h2,.mdui-prose h3,.mdui-prose h4,.mdui-prose h5,.mdui-prose h6{font-weight:400}.mdui-prose h1 small,.mdui-prose h2 small,.mdui-prose h3 small,.mdui-prose h4 small,.mdui-prose h5 small,.mdui-prose h6 small{font-weight:inherit;font-size:65%;color:rgb(var(--mdui-color-on-surface-variant))}.mdui-prose h1 strong,.mdui-prose h2 strong,.mdui-prose h3 strong,.mdui-prose h4 strong,.mdui-prose h5 strong,.mdui-prose h6 strong{font-weight:600}.mdui-prose h1{font-size:2.5em;margin-top:0;margin-bottom:1.25em;line-height:1.1111}.mdui-prose h2{font-size:1.875em;margin-top:2.25em;margin-bottom:1.125em;line-height:1.3333}.mdui-prose h3{font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.6}.mdui-prose h4{font-size:1.25em;margin-top:1.875em;margin-bottom:.875em;line-height:1.5}.mdui-prose h2+*,.mdui-prose h3+*,.mdui-prose h4+*,.mdui-prose hr+*{margin-top:0}.mdui-prose code,.mdui-prose kbd{font-size:.875em;color:rgb(var(--mdui-color-on-surface-container));background-color:rgba(var(--mdui-color-surface-variant),.28);padding:.125rem .375rem;border-radius:var(--mdui-shape-corner-extra-small)}.mdui-prose kbd{font-size:.9em}.mdui-prose abbr[title]{text-decoration:none;cursor:help;border-bottom:.0625rem dotted rgb(var(--mdui-color-on-surface-variant))}.mdui-prose ins,.mdui-prose u{text-decoration:none;border-bottom:.0625rem solid rgb(var(--mdui-color-on-surface-variant))}.mdui-prose del{text-decoration:line-through}.mdui-prose hr{margin-top:3em;margin-bottom:3em;border:none;border-bottom:.0625rem solid rgb(var(--mdui-color-surface-variant))}.mdui-prose pre{margin-top:1.7143em;margin-bottom:1.7143em}.mdui-prose pre code{padding:.8571em 1.1429em;overflow-x:auto;-webkit-overflow-scrolling:touch;background-color:rgb(var(--mdui-color-surface-container));color:rgb(var(--mdui-color-on-surface-container));border-radius:var(--mdui-shape-corner-extra-small)}.mdui-prose ol,.mdui-prose ul{padding-left:1.625em}.mdui-prose ul{list-style-type:disc}.mdui-prose ol{list-style-type:decimal}.mdui-prose ol[type=A]{list-style-type:upper-alpha}.mdui-prose ol[type=a]{list-style-type:lower-alpha}.mdui-prose ol[type=I]{list-style-type:upper-roman}.mdui-prose ol[type=i]{list-style-type:lower-roman}.mdui-prose ol[type="1"]{list-style-type:decimal}.mdui-prose li{margin-top:.5em;margin-bottom:.5em}.mdui-prose ol>li,.mdui-prose ul>li{padding-left:.375em}.mdui-prose ol>li>p,.mdui-prose ul>li>p{margin-top:.75em;margin-bottom:.75em}.mdui-prose ol>li>:first-child,.mdui-prose ul>li>:first-child{margin-top:1.25em}.mdui-prose ol>li>:last-child,.mdui-prose ul>li>:last-child{margin-bottom:1.25em}.mdui-prose ol>li::marker{font-weight:400;color:rgb(var(--mdui-color-on-surface-variant))}.mdui-prose ul>li::marker{color:rgb(var(--mdui-color-on-surface-variant))}.mdui-prose ol ol,.mdui-prose ol ul,.mdui-prose ul ol,.mdui-prose ul ul{margin-top:.75em;margin-bottom:.75em}.mdui-prose fieldset,.mdui-prose img{border:none}.mdui-prose figure,.mdui-prose img,.mdui-prose video{margin-top:2em;margin-bottom:2em;max-width:100%}.mdui-prose figure>*{margin-top:0;margin-bottom:0}.mdui-prose figcaption{font-size:.875em;line-height:1.4286;margin-top:.8571em;color:rgb(var(--mdui-color-on-surface-variant))}.mdui-prose figcaption:empty:before{z-index:-1;cursor:text;content:attr(placeholder);color:rgb(var(--mdui-color-on-surface-variant))}.mdui-prose table{margin-top:2em;margin-bottom:2em;border:.0625rem solid rgb(var(--mdui-color-surface-variant));border-radius:var(--mdui-shape-corner-large)}.mdui-table{width:100%;overflow-x:auto;margin-top:2em;margin-bottom:2em;border:.0625rem solid rgb(var(--mdui-color-surface-variant));border-radius:var(--mdui-shape-corner-large)}.mdui-table table{margin-top:0;margin-bottom:0;border:none;border-radius:0}.mdui-prose table,.mdui-table table{width:100%;text-align:left;border-collapse:collapse;border-spacing:0}.mdui-prose td,.mdui-prose th,.mdui-table td,.mdui-table th{border-top:.0625rem solid rgb(var(--mdui-color-surface-variant))}.mdui-prose td:not(:first-child),.mdui-prose th:not(:first-child),.mdui-table td:not(:first-child),.mdui-table th:not(:first-child){border-left:.0625rem solid rgb(var(--mdui-color-surface-variant))}.mdui-prose td:not(:last-child),.mdui-prose th:not(:last-child),.mdui-table td:not(:last-child),.mdui-table th:not(:last-child){border-right:.0625rem solid rgb(var(--mdui-color-surface-variant))}.mdui-prose tbody:first-child tr:first-child td,.mdui-prose thead:first-child tr:first-child th,.mdui-table tbody:first-child tr:first-child td,.mdui-table thead:first-child tr:first-child th{border-top:0}.mdui-prose tfoot td,.mdui-prose tfoot th,.mdui-prose thead td,.mdui-prose thead th,.mdui-table tfoot td,.mdui-table tfoot th,.mdui-table thead td,.mdui-table thead th{position:relative;vertical-align:middle;padding:1.125rem 1rem;font-weight:var(--mdui-typescale-title-medium-weight);letter-spacing:var(--mdui-typescale-title-medium-tracking);line-height:var(--mdui-typescale-title-medium-line-height);color:rgb(var(--mdui-color-on-surface-variant));box-shadow:var(--mdui-elevation-level1)}.mdui-prose tbody td,.mdui-prose tbody th,.mdui-table tbody td,.mdui-table tbody th{padding:.875rem 1rem}.mdui-prose tbody th,.mdui-table tbody th{vertical-align:middle;font-weight:inherit}.mdui-prose tbody td,.mdui-table tbody td{vertical-align:baseline}:root{--mdui-shape-corner-none:0;--mdui-shape-corner-extra-small:.25rem;--mdui-shape-corner-small:.5rem;--mdui-shape-corner-medium:.75rem;--mdui-shape-corner-large:1rem;--mdui-shape-corner-extra-large:1.75rem;--mdui-shape-corner-full:1000rem}:root{--mdui-state-layer-hover:.08;--mdui-state-layer-focus:.12;--mdui-state-layer-pressed:.12;--mdui-state-layer-dragged:.16}:root{--mdui-typescale-display-large-weight:400;--mdui-typescale-display-medium-weight:400;--mdui-typescale-display-small-weight:400;--mdui-typescale-display-large-line-height:4rem;--mdui-typescale-display-medium-line-height:3.25rem;--mdui-typescale-display-small-line-height:2.75rem;--mdui-typescale-display-large-size:3.5625rem;--mdui-typescale-display-medium-size:2.8125rem;--mdui-typescale-display-small-size:2.25rem;--mdui-typescale-display-large-tracking:0rem;--mdui-typescale-display-medium-tracking:0rem;--mdui-typescale-display-small-tracking:0rem;--mdui-typescale-headline-large-weight:400;--mdui-typescale-headline-medium-weight:400;--mdui-typescale-headline-small-weight:400;--mdui-typescale-headline-large-line-height:2.5rem;--mdui-typescale-headline-medium-line-height:2.25rem;--mdui-typescale-headline-small-line-height:2rem;--mdui-typescale-headline-large-size:2rem;--mdui-typescale-headline-medium-size:1.75rem;--mdui-typescale-headline-small-size:1.5rem;--mdui-typescale-headline-large-tracking:0rem;--mdui-typescale-headline-medium-tracking:0rem;--mdui-typescale-headline-small-tracking:0rem;--mdui-typescale-title-large-weight:400;--mdui-typescale-title-medium-weight:500;--mdui-typescale-title-small-weight:500;--mdui-typescale-title-large-line-height:1.75rem;--mdui-typescale-title-medium-line-height:1.5rem;--mdui-typescale-title-small-line-height:1.25rem;--mdui-typescale-title-large-size:1.375rem;--mdui-typescale-title-medium-size:1rem;--mdui-typescale-title-small-size:.875rem;--mdui-typescale-title-large-tracking:0rem;--mdui-typescale-title-medium-tracking:.009375rem;--mdui-typescale-title-small-tracking:.00625rem;--mdui-typescale-label-large-weight:500;--mdui-typescale-label-medium-weight:500;--mdui-typescale-label-small-weight:500;--mdui-typescale-label-large-line-height:1.25rem;--mdui-typescale-label-medium-line-height:1rem;--mdui-typescale-label-small-line-height:.375rem;--mdui-typescale-label-large-size:.875rem;--mdui-typescale-label-medium-size:.75rem;--mdui-typescale-label-small-size:.6875rem;--mdui-typescale-label-large-tracking:.00625rem;--mdui-typescale-label-medium-tracking:.03125rem;--mdui-typescale-label-small-tracking:.03125rem;--mdui-typescale-body-large-weight:400;--mdui-typescale-body-medium-weight:400;--mdui-typescale-body-small-weight:400;--mdui-typescale-body-large-line-height:1.5rem;--mdui-typescale-body-medium-line-height:1.25rem;--mdui-typescale-body-small-line-height:1rem;--mdui-typescale-body-large-size:1rem;--mdui-typescale-body-medium-size:.875rem;--mdui-typescale-body-small-size:.75rem;--mdui-typescale-body-large-tracking:.009375rem;--mdui-typescale-body-medium-tracking:.015625rem;--mdui-typescale-body-small-tracking:.025rem}.mdui-lock-screen{overflow:hidden!important}@font-face{font-family:Material Icons Round;font-style:normal;font-weight:400;src:url(./mdui-round-DrirKXBx.woff2) format("woff2")}.material-icons-round{font-family:Material Icons Round;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:"liga";font-feature-settings:"liga";-webkit-font-smoothing:antialiased}#ImWindowContainer{position:absolute;display:flex;width:100%;top:0;height:100%;overflow-x:hidden;overflow-y:scroll;z-index:9}#ImContentContainer{position:absolute;width:100%;height:100%;top:0;z-index:7}#ImWindowContainer::-webkit-scrollbar{width:0!important}@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes fade-in-out{0%{opacity:1}50%{opacity:.7}to{opacity:1}}@media screen and (max-width: 700px){#MagicBadge{position:absolute;display:grid;height:220px;width:100%;top:0;background-image:linear-gradient(0deg,#5753c900,#5753c957 20%,#6e7ff3);grid-template-rows:min-content}#FunctionCard{width:390px;height:480px;position:relative;top:130px;padding:20px 15px 15px;align-self:center;justify-self:center;background:#0a021599;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);box-shadow:0 6px 20px #000000a8}#FloatCard{width:390px;height:50px;background:#29323c;position:relative;justify-self:center;z-index:-1;top:140px;background:#0a021599;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);box-shadow:0 6px 20px #000000a8}#CryptControl{display:grid;width:219px;grid-template-columns:30% 30% 30% 30% 30% 30%;scale:.9;column-gap:2px;margin-top:-5px;align-content:center}#PositionOccupie{display:block;width:390px;height:20px;background:transparent;position:relative;justify-self:center;z-index:-1;top:140px}}@media screen and (min-width: 700px){#MagicBadge{position:absolute;display:grid;height:220px;width:100%;top:80px;background-image:linear-gradient(-435deg,#5753c9b5,#5753c900 35%,#5753c9 85%,#6e7ff3);grid-template-rows:min-content}#FunctionCard{width:390px;height:480px;background:#0a021599;position:relative;float:right;left:calc(80% - 360px);top:70px;padding:20px 15px 15px;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);box-shadow:0 6px 20px #000000a8}#FloatCard{width:150px;height:130px;position:relative;float:right;left:calc(80% - 520px);top:-80px;background:#0a021599;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);box-shadow:0 6px 20px #000000a8}#CryptControl{display:grid;grid-template-columns:50% 50%;grid-template-rows:40px 40px 40px;scale:.9;column-gap:10px;margin-top:-5px;align-content:center}#PositionOccupie{display:none}}mdui-text-field::part(label){background-color:transparent}.ImScrollBarTrack{position:fixed;transition:opacity .1s linear;opacity:0;border-radius:100px;z-index:8;background-color:rgb(var(--mdui-color-surface-bright));align-self:center}.ImScrollBarTrack:hover{opacity:.701}.ImScrollBarThumb{position:absolute;background-color:rgb(var(--mdui-color-tertiary-light));opacity:inherit;border-radius:100px}.baseCard{background-color:rgb(var(--mdui-color-secondary-container));color:rgb(var(--mdui-color-secondary));padding:10px;overflow:hidden;display:flex;z-index:3}.rawCard{background:rgb(var(--mdui-color-secondary-container));color:rgb(var(--mdui-color-secondary));padding:10px;transition:all 1s ease;overflow:hidden;display:flex;z-index:3}.cardIcon{font-size:120px!important;top:-10px;right:-15px;position:absolute;opacity:.15;z-index:4;color:#000}.cardContent{display:grid;width:100%;height:100%;color:#fff} +@font-face{font-family:SamsungSans;src:url(./SamsungSans-Regular-BsRQoNIc.ttf)}html,body{height:100%;width:100%;margin:0;padding:0;font-family:SamsungSans,"sans-serif";background:url(./bg-CjkYdVK5.webp);background-size:cover}h1{margin-top:unset}#main_content{width:100%;display:grid}:root{--mdui-breakpoint-xs:0px;--mdui-breakpoint-sm:600px;--mdui-breakpoint-md:840px;--mdui-breakpoint-lg:1080px;--mdui-breakpoint-xl:1440px;--mdui-breakpoint-xxl:1920px}:root{--mdui-color-primary-light:103,80,164;--mdui-color-primary-container-light:234,221,255;--mdui-color-on-primary-light:255,255,255;--mdui-color-on-primary-container-light:33,0,94;--mdui-color-inverse-primary-light:208,188,255;--mdui-color-secondary-light:98,91,113;--mdui-color-secondary-container-light:232,222,248;--mdui-color-on-secondary-light:255,255,255;--mdui-color-on-secondary-container-light:30,25,43;--mdui-color-tertiary-light:125,82,96;--mdui-color-tertiary-container-light:255,216,228;--mdui-color-on-tertiary-light:255,255,255;--mdui-color-on-tertiary-container-light:55,11,30;--mdui-color-surface-light:254,247,255;--mdui-color-surface-dim-light:222,216,225;--mdui-color-surface-bright-light:254,247,255;--mdui-color-surface-container-lowest-light:255,255,255;--mdui-color-surface-container-low-light:247,242,250;--mdui-color-surface-container-light:243,237,247;--mdui-color-surface-container-high-light:236,230,240;--mdui-color-surface-container-highest-light:230,224,233;--mdui-color-surface-variant-light:231,224,236;--mdui-color-on-surface-light:28,27,31;--mdui-color-on-surface-variant-light:73,69,78;--mdui-color-inverse-surface-light:49,48,51;--mdui-color-inverse-on-surface-light:244,239,244;--mdui-color-background-light:254,247,255;--mdui-color-on-background-light:28,27,31;--mdui-color-error-light:179,38,30;--mdui-color-error-container-light:249,222,220;--mdui-color-on-error-light:255,255,255;--mdui-color-on-error-container-light:65,14,11;--mdui-color-outline-light:121,116,126;--mdui-color-outline-variant-light:196,199,197;--mdui-color-shadow-light:0,0,0;--mdui-color-surface-tint-color-light:103,80,164;--mdui-color-scrim-light:0,0,0;--mdui-color-primary-dark:208,188,255;--mdui-color-primary-container-dark:79,55,139;--mdui-color-on-primary-dark:55,30,115;--mdui-color-on-primary-container-dark:234,221,255;--mdui-color-inverse-primary-dark:103,80,164;--mdui-color-secondary-dark:204,194,220;--mdui-color-secondary-container-dark:74,68,88;--mdui-color-on-secondary-dark:51,45,65;--mdui-color-on-secondary-container-dark:232,222,248;--mdui-color-tertiary-dark:239,184,200;--mdui-color-tertiary-container-dark:99,59,72;--mdui-color-on-tertiary-dark:73,37,50;--mdui-color-on-tertiary-container-dark:255,216,228;--mdui-color-surface-dark:20,18,24;--mdui-color-surface-dim-dark:20,18,24;--mdui-color-surface-bright-dark:59,56,62;--mdui-color-surface-container-lowest-dark:15,13,19;--mdui-color-surface-container-low-dark:29,27,32;--mdui-color-surface-container-dark:33,31,38;--mdui-color-surface-container-high-dark:43,41,48;--mdui-color-surface-container-highest-dark:54,52,59;--mdui-color-surface-variant-dark:73,69,79;--mdui-color-on-surface-dark:230,225,229;--mdui-color-on-surface-variant-dark:202,196,208;--mdui-color-inverse-surface-dark:230,225,229;--mdui-color-inverse-on-surface-dark:49,48,51;--mdui-color-background-dark:20,18,24;--mdui-color-on-background-dark:230,225,229;--mdui-color-error-dark:242,184,181;--mdui-color-error-container-dark:140,29,24;--mdui-color-on-error-dark:96,20,16;--mdui-color-on-error-container-dark:249,222,220;--mdui-color-outline-dark:147,143,153;--mdui-color-outline-variant-dark:68,71,70;--mdui-color-shadow-dark:0,0,0;--mdui-color-surface-tint-color-dark:208,188,255;--mdui-color-scrim-dark:0,0,0;font-size:16px}.mdui-theme-light,:root{color-scheme:light;--mdui-color-primary:var(--mdui-color-primary-light);--mdui-color-primary-container:var(--mdui-color-primary-container-light);--mdui-color-on-primary:var(--mdui-color-on-primary-light);--mdui-color-on-primary-container:var(--mdui-color-on-primary-container-light);--mdui-color-inverse-primary:var(--mdui-color-inverse-primary-light);--mdui-color-secondary:var(--mdui-color-secondary-light);--mdui-color-secondary-container:var(--mdui-color-secondary-container-light);--mdui-color-on-secondary:var(--mdui-color-on-secondary-light);--mdui-color-on-secondary-container:var(--mdui-color-on-secondary-container-light);--mdui-color-tertiary:var(--mdui-color-tertiary-light);--mdui-color-tertiary-container:var(--mdui-color-tertiary-container-light);--mdui-color-on-tertiary:var(--mdui-color-on-tertiary-light);--mdui-color-on-tertiary-container:var(--mdui-color-on-tertiary-container-light);--mdui-color-surface:var(--mdui-color-surface-light);--mdui-color-surface-dim:var(--mdui-color-surface-dim-light);--mdui-color-surface-bright:var(--mdui-color-surface-bright-light);--mdui-color-surface-container-lowest:var(--mdui-color-surface-container-lowest-light);--mdui-color-surface-container-low:var(--mdui-color-surface-container-low-light);--mdui-color-surface-container:var(--mdui-color-surface-container-light);--mdui-color-surface-container-high:var(--mdui-color-surface-container-high-light);--mdui-color-surface-container-highest:var(--mdui-color-surface-container-highest-light);--mdui-color-surface-variant:var(--mdui-color-surface-variant-light);--mdui-color-on-surface:var(--mdui-color-on-surface-light);--mdui-color-on-surface-variant:var(--mdui-color-on-surface-variant-light);--mdui-color-inverse-surface:var(--mdui-color-inverse-surface-light);--mdui-color-inverse-on-surface:var(--mdui-color-inverse-on-surface-light);--mdui-color-background:var(--mdui-color-background-light);--mdui-color-on-background:var(--mdui-color-on-background-light);--mdui-color-error:var(--mdui-color-error-light);--mdui-color-error-container:var(--mdui-color-error-container-light);--mdui-color-on-error:var(--mdui-color-on-error-light);--mdui-color-on-error-container:var(--mdui-color-on-error-container-light);--mdui-color-outline:var(--mdui-color-outline-light);--mdui-color-outline-variant:var(--mdui-color-outline-variant-light);--mdui-color-shadow:var(--mdui-color-shadow-light);--mdui-color-surface-tint-color:var(--mdui-color-surface-tint-color-light);--mdui-color-scrim:var(--mdui-color-scrim-light);color:rgb(var(--mdui-color-on-background));background-color:rgb(var(--mdui-color-background))}.mdui-theme-dark{color-scheme:dark;--mdui-color-primary:var(--mdui-color-primary-dark);--mdui-color-primary-container:var(--mdui-color-primary-container-dark);--mdui-color-on-primary:var(--mdui-color-on-primary-dark);--mdui-color-on-primary-container:var(--mdui-color-on-primary-container-dark);--mdui-color-inverse-primary:var(--mdui-color-inverse-primary-dark);--mdui-color-secondary:var(--mdui-color-secondary-dark);--mdui-color-secondary-container:var(--mdui-color-secondary-container-dark);--mdui-color-on-secondary:var(--mdui-color-on-secondary-dark);--mdui-color-on-secondary-container:var(--mdui-color-on-secondary-container-dark);--mdui-color-tertiary:var(--mdui-color-tertiary-dark);--mdui-color-tertiary-container:var(--mdui-color-tertiary-container-dark);--mdui-color-on-tertiary:var(--mdui-color-on-tertiary-dark);--mdui-color-on-tertiary-container:var(--mdui-color-on-tertiary-container-dark);--mdui-color-surface:var(--mdui-color-surface-dark);--mdui-color-surface-dim:var(--mdui-color-surface-dim-dark);--mdui-color-surface-bright:var(--mdui-color-surface-bright-dark);--mdui-color-surface-container-lowest:var(--mdui-color-surface-container-lowest-dark);--mdui-color-surface-container-low:var(--mdui-color-surface-container-low-dark);--mdui-color-surface-container:var(--mdui-color-surface-container-dark);--mdui-color-surface-container-high:var(--mdui-color-surface-container-high-dark);--mdui-color-surface-container-highest:var(--mdui-color-surface-container-highest-dark);--mdui-color-surface-variant:var(--mdui-color-surface-variant-dark);--mdui-color-on-surface:var(--mdui-color-on-surface-dark);--mdui-color-on-surface-variant:var(--mdui-color-on-surface-variant-dark);--mdui-color-inverse-surface:var(--mdui-color-inverse-surface-dark);--mdui-color-inverse-on-surface:var(--mdui-color-inverse-on-surface-dark);--mdui-color-background:var(--mdui-color-background-dark);--mdui-color-on-background:var(--mdui-color-on-background-dark);--mdui-color-error:var(--mdui-color-error-dark);--mdui-color-error-container:var(--mdui-color-error-container-dark);--mdui-color-on-error:var(--mdui-color-on-error-dark);--mdui-color-on-error-container:var(--mdui-color-on-error-container-dark);--mdui-color-outline:var(--mdui-color-outline-dark);--mdui-color-outline-variant:var(--mdui-color-outline-variant-dark);--mdui-color-shadow:var(--mdui-color-shadow-dark);--mdui-color-surface-tint-color:var(--mdui-color-surface-tint-color-dark);--mdui-color-scrim:var(--mdui-color-scrim-dark);color:rgb(var(--mdui-color-on-background));background-color:rgb(var(--mdui-color-background))}@media (prefers-color-scheme:dark){.mdui-theme-auto{color-scheme:dark;--mdui-color-primary:var(--mdui-color-primary-dark);--mdui-color-primary-container:var(--mdui-color-primary-container-dark);--mdui-color-on-primary:var(--mdui-color-on-primary-dark);--mdui-color-on-primary-container:var(--mdui-color-on-primary-container-dark);--mdui-color-inverse-primary:var(--mdui-color-inverse-primary-dark);--mdui-color-secondary:var(--mdui-color-secondary-dark);--mdui-color-secondary-container:var(--mdui-color-secondary-container-dark);--mdui-color-on-secondary:var(--mdui-color-on-secondary-dark);--mdui-color-on-secondary-container:var(--mdui-color-on-secondary-container-dark);--mdui-color-tertiary:var(--mdui-color-tertiary-dark);--mdui-color-tertiary-container:var(--mdui-color-tertiary-container-dark);--mdui-color-on-tertiary:var(--mdui-color-on-tertiary-dark);--mdui-color-on-tertiary-container:var(--mdui-color-on-tertiary-container-dark);--mdui-color-surface:var(--mdui-color-surface-dark);--mdui-color-surface-dim:var(--mdui-color-surface-dim-dark);--mdui-color-surface-bright:var(--mdui-color-surface-bright-dark);--mdui-color-surface-container-lowest:var(--mdui-color-surface-container-lowest-dark);--mdui-color-surface-container-low:var(--mdui-color-surface-container-low-dark);--mdui-color-surface-container:var(--mdui-color-surface-container-dark);--mdui-color-surface-container-high:var(--mdui-color-surface-container-high-dark);--mdui-color-surface-container-highest:var(--mdui-color-surface-container-highest-dark);--mdui-color-surface-variant:var(--mdui-color-surface-variant-dark);--mdui-color-on-surface:var(--mdui-color-on-surface-dark);--mdui-color-on-surface-variant:var(--mdui-color-on-surface-variant-dark);--mdui-color-inverse-surface:var(--mdui-color-inverse-surface-dark);--mdui-color-inverse-on-surface:var(--mdui-color-inverse-on-surface-dark);--mdui-color-background:var(--mdui-color-background-dark);--mdui-color-on-background:var(--mdui-color-on-background-dark);--mdui-color-error:var(--mdui-color-error-dark);--mdui-color-error-container:var(--mdui-color-error-container-dark);--mdui-color-on-error:var(--mdui-color-on-error-dark);--mdui-color-on-error-container:var(--mdui-color-on-error-container-dark);--mdui-color-outline:var(--mdui-color-outline-dark);--mdui-color-outline-variant:var(--mdui-color-outline-variant-dark);--mdui-color-shadow:var(--mdui-color-shadow-dark);--mdui-color-surface-tint-color:var(--mdui-color-surface-tint-color-dark);--mdui-color-scrim:var(--mdui-color-scrim-dark);color:rgb(var(--mdui-color-on-background));background-color:rgb(var(--mdui-color-background))}}:root{--mdui-elevation-level0:none;--mdui-elevation-level1:0 .5px 1.5px 0 rgba(var(--mdui-color-shadow), 19%),0 0 1px 0 rgba(var(--mdui-color-shadow), 3.9%);--mdui-elevation-level2:0 .85px 3px 0 rgba(var(--mdui-color-shadow), 19%),0 .25px 1px 0 rgba(var(--mdui-color-shadow), 3.9%);--mdui-elevation-level3:0 1.25px 5px 0 rgba(var(--mdui-color-shadow), 19%),0 .3333px 1.5px 0 rgba(var(--mdui-color-shadow), 3.9%);--mdui-elevation-level4:0 1.85px 6.25px 0 rgba(var(--mdui-color-shadow), 19%),0 .5px 1.75px 0 rgba(var(--mdui-color-shadow), 3.9%);--mdui-elevation-level5:0 2.75px 9px 0 rgba(var(--mdui-color-shadow), 19%),0 .25px 3px 0 rgba(var(--mdui-color-shadow), 3.9%)}:root{--mdui-motion-easing-linear:cubic-bezier(0, 0, 1, 1);--mdui-motion-easing-standard:cubic-bezier(.2, 0, 0, 1);--mdui-motion-easing-standard-accelerate:cubic-bezier(.3, 0, 1, 1);--mdui-motion-easing-standard-decelerate:cubic-bezier(0, 0, 0, 1);--mdui-motion-easing-emphasized:var(--mdui-motion-easing-standard);--mdui-motion-easing-emphasized-accelerate:cubic-bezier(.3, 0, .8, .15);--mdui-motion-easing-emphasized-decelerate:cubic-bezier(.05, .7, .1, 1);--mdui-motion-duration-short1:50ms;--mdui-motion-duration-short2:.1s;--mdui-motion-duration-short3:.15s;--mdui-motion-duration-short4:.2s;--mdui-motion-duration-medium1:.25s;--mdui-motion-duration-medium2:.3s;--mdui-motion-duration-medium3:.35s;--mdui-motion-duration-medium4:.4s;--mdui-motion-duration-long1:.45s;--mdui-motion-duration-long2:.5s;--mdui-motion-duration-long3:.55s;--mdui-motion-duration-long4:.6s;--mdui-motion-duration-extra-long1:.7s;--mdui-motion-duration-extra-long2:.8s;--mdui-motion-duration-extra-long3:.9s;--mdui-motion-duration-extra-long4:1s}.mdui-prose{line-height:1.75;word-wrap:break-word}.mdui-prose :first-child{margin-top:0}.mdui-prose :last-child{margin-bottom:0}.mdui-prose code,.mdui-prose kbd,.mdui-prose pre,.mdui-prose pre tt,.mdui-prose samp{font-family:Consolas,Courier,Courier New,monospace}.mdui-prose caption{text-align:left}.mdui-prose [draggable=true],.mdui-prose [draggable]{cursor:move}.mdui-prose [draggable=false]{cursor:inherit}.mdui-prose dl,.mdui-prose form,.mdui-prose ol,.mdui-prose p,.mdui-prose ul{margin-top:1.25em;margin-bottom:1.25em}.mdui-prose a{text-decoration:none;outline:0;color:rgb(var(--mdui-color-primary))}.mdui-prose a:focus,.mdui-prose a:hover{border-bottom:.0625rem solid rgb(var(--mdui-color-primary))}.mdui-prose small{font-size:.875em}.mdui-prose strong{font-weight:600}.mdui-prose blockquote{margin:1.6em 2em;padding-left:1em;border-left:.25rem solid rgb(var(--mdui-color-surface-variant))}@media only screen and (max-width:599.98px){.mdui-prose blockquote{margin:1.6em 0}}.mdui-prose blockquote footer{font-size:86%;color:rgb(var(--mdui-color-on-surface-variant))}.mdui-prose mark{color:inherit;background-color:rgb(var(--mdui-color-secondary-container));border-bottom:.0625rem solid rgb(var(--mdui-color-secondary));margin:0 .375rem;padding:.125rem}.mdui-prose h1,.mdui-prose h2,.mdui-prose h3,.mdui-prose h4,.mdui-prose h5,.mdui-prose h6{font-weight:400}.mdui-prose h1 small,.mdui-prose h2 small,.mdui-prose h3 small,.mdui-prose h4 small,.mdui-prose h5 small,.mdui-prose h6 small{font-weight:inherit;font-size:65%;color:rgb(var(--mdui-color-on-surface-variant))}.mdui-prose h1 strong,.mdui-prose h2 strong,.mdui-prose h3 strong,.mdui-prose h4 strong,.mdui-prose h5 strong,.mdui-prose h6 strong{font-weight:600}.mdui-prose h1{font-size:2.5em;margin-top:0;margin-bottom:1.25em;line-height:1.1111}.mdui-prose h2{font-size:1.875em;margin-top:2.25em;margin-bottom:1.125em;line-height:1.3333}.mdui-prose h3{font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.6}.mdui-prose h4{font-size:1.25em;margin-top:1.875em;margin-bottom:.875em;line-height:1.5}.mdui-prose h2+*,.mdui-prose h3+*,.mdui-prose h4+*,.mdui-prose hr+*{margin-top:0}.mdui-prose code,.mdui-prose kbd{font-size:.875em;color:rgb(var(--mdui-color-on-surface-container));background-color:rgba(var(--mdui-color-surface-variant),.28);padding:.125rem .375rem;border-radius:var(--mdui-shape-corner-extra-small)}.mdui-prose kbd{font-size:.9em}.mdui-prose abbr[title]{text-decoration:none;cursor:help;border-bottom:.0625rem dotted rgb(var(--mdui-color-on-surface-variant))}.mdui-prose ins,.mdui-prose u{text-decoration:none;border-bottom:.0625rem solid rgb(var(--mdui-color-on-surface-variant))}.mdui-prose del{text-decoration:line-through}.mdui-prose hr{margin-top:3em;margin-bottom:3em;border:none;border-bottom:.0625rem solid rgb(var(--mdui-color-surface-variant))}.mdui-prose pre{margin-top:1.7143em;margin-bottom:1.7143em}.mdui-prose pre code{padding:.8571em 1.1429em;overflow-x:auto;-webkit-overflow-scrolling:touch;background-color:rgb(var(--mdui-color-surface-container));color:rgb(var(--mdui-color-on-surface-container));border-radius:var(--mdui-shape-corner-extra-small)}.mdui-prose ol,.mdui-prose ul{padding-left:1.625em}.mdui-prose ul{list-style-type:disc}.mdui-prose ol{list-style-type:decimal}.mdui-prose ol[type=A]{list-style-type:upper-alpha}.mdui-prose ol[type=a]{list-style-type:lower-alpha}.mdui-prose ol[type=I]{list-style-type:upper-roman}.mdui-prose ol[type=i]{list-style-type:lower-roman}.mdui-prose ol[type="1"]{list-style-type:decimal}.mdui-prose li{margin-top:.5em;margin-bottom:.5em}.mdui-prose ol>li,.mdui-prose ul>li{padding-left:.375em}.mdui-prose ol>li>p,.mdui-prose ul>li>p{margin-top:.75em;margin-bottom:.75em}.mdui-prose ol>li>:first-child,.mdui-prose ul>li>:first-child{margin-top:1.25em}.mdui-prose ol>li>:last-child,.mdui-prose ul>li>:last-child{margin-bottom:1.25em}.mdui-prose ol>li::marker{font-weight:400;color:rgb(var(--mdui-color-on-surface-variant))}.mdui-prose ul>li::marker{color:rgb(var(--mdui-color-on-surface-variant))}.mdui-prose ol ol,.mdui-prose ol ul,.mdui-prose ul ol,.mdui-prose ul ul{margin-top:.75em;margin-bottom:.75em}.mdui-prose fieldset,.mdui-prose img{border:none}.mdui-prose figure,.mdui-prose img,.mdui-prose video{margin-top:2em;margin-bottom:2em;max-width:100%}.mdui-prose figure>*{margin-top:0;margin-bottom:0}.mdui-prose figcaption{font-size:.875em;line-height:1.4286;margin-top:.8571em;color:rgb(var(--mdui-color-on-surface-variant))}.mdui-prose figcaption:empty:before{z-index:-1;cursor:text;content:attr(placeholder);color:rgb(var(--mdui-color-on-surface-variant))}.mdui-prose table{margin-top:2em;margin-bottom:2em;border:.0625rem solid rgb(var(--mdui-color-surface-variant));border-radius:var(--mdui-shape-corner-large)}.mdui-table{width:100%;overflow-x:auto;margin-top:2em;margin-bottom:2em;border:.0625rem solid rgb(var(--mdui-color-surface-variant));border-radius:var(--mdui-shape-corner-large)}.mdui-table table{margin-top:0;margin-bottom:0;border:none;border-radius:0}.mdui-prose table,.mdui-table table{width:100%;text-align:left;border-collapse:collapse;border-spacing:0}.mdui-prose td,.mdui-prose th,.mdui-table td,.mdui-table th{border-top:.0625rem solid rgb(var(--mdui-color-surface-variant))}.mdui-prose td:not(:first-child),.mdui-prose th:not(:first-child),.mdui-table td:not(:first-child),.mdui-table th:not(:first-child){border-left:.0625rem solid rgb(var(--mdui-color-surface-variant))}.mdui-prose td:not(:last-child),.mdui-prose th:not(:last-child),.mdui-table td:not(:last-child),.mdui-table th:not(:last-child){border-right:.0625rem solid rgb(var(--mdui-color-surface-variant))}.mdui-prose tbody:first-child tr:first-child td,.mdui-prose thead:first-child tr:first-child th,.mdui-table tbody:first-child tr:first-child td,.mdui-table thead:first-child tr:first-child th{border-top:0}.mdui-prose tfoot td,.mdui-prose tfoot th,.mdui-prose thead td,.mdui-prose thead th,.mdui-table tfoot td,.mdui-table tfoot th,.mdui-table thead td,.mdui-table thead th{position:relative;vertical-align:middle;padding:1.125rem 1rem;font-weight:var(--mdui-typescale-title-medium-weight);letter-spacing:var(--mdui-typescale-title-medium-tracking);line-height:var(--mdui-typescale-title-medium-line-height);color:rgb(var(--mdui-color-on-surface-variant));box-shadow:var(--mdui-elevation-level1)}.mdui-prose tbody td,.mdui-prose tbody th,.mdui-table tbody td,.mdui-table tbody th{padding:.875rem 1rem}.mdui-prose tbody th,.mdui-table tbody th{vertical-align:middle;font-weight:inherit}.mdui-prose tbody td,.mdui-table tbody td{vertical-align:baseline}:root{--mdui-shape-corner-none:0;--mdui-shape-corner-extra-small:.25rem;--mdui-shape-corner-small:.5rem;--mdui-shape-corner-medium:.75rem;--mdui-shape-corner-large:1rem;--mdui-shape-corner-extra-large:1.75rem;--mdui-shape-corner-full:1000rem}:root{--mdui-state-layer-hover:.08;--mdui-state-layer-focus:.12;--mdui-state-layer-pressed:.12;--mdui-state-layer-dragged:.16}:root{--mdui-typescale-display-large-weight:400;--mdui-typescale-display-medium-weight:400;--mdui-typescale-display-small-weight:400;--mdui-typescale-display-large-line-height:4rem;--mdui-typescale-display-medium-line-height:3.25rem;--mdui-typescale-display-small-line-height:2.75rem;--mdui-typescale-display-large-size:3.5625rem;--mdui-typescale-display-medium-size:2.8125rem;--mdui-typescale-display-small-size:2.25rem;--mdui-typescale-display-large-tracking:0rem;--mdui-typescale-display-medium-tracking:0rem;--mdui-typescale-display-small-tracking:0rem;--mdui-typescale-headline-large-weight:400;--mdui-typescale-headline-medium-weight:400;--mdui-typescale-headline-small-weight:400;--mdui-typescale-headline-large-line-height:2.5rem;--mdui-typescale-headline-medium-line-height:2.25rem;--mdui-typescale-headline-small-line-height:2rem;--mdui-typescale-headline-large-size:2rem;--mdui-typescale-headline-medium-size:1.75rem;--mdui-typescale-headline-small-size:1.5rem;--mdui-typescale-headline-large-tracking:0rem;--mdui-typescale-headline-medium-tracking:0rem;--mdui-typescale-headline-small-tracking:0rem;--mdui-typescale-title-large-weight:400;--mdui-typescale-title-medium-weight:500;--mdui-typescale-title-small-weight:500;--mdui-typescale-title-large-line-height:1.75rem;--mdui-typescale-title-medium-line-height:1.5rem;--mdui-typescale-title-small-line-height:1.25rem;--mdui-typescale-title-large-size:1.375rem;--mdui-typescale-title-medium-size:1rem;--mdui-typescale-title-small-size:.875rem;--mdui-typescale-title-large-tracking:0rem;--mdui-typescale-title-medium-tracking:.009375rem;--mdui-typescale-title-small-tracking:.00625rem;--mdui-typescale-label-large-weight:500;--mdui-typescale-label-medium-weight:500;--mdui-typescale-label-small-weight:500;--mdui-typescale-label-large-line-height:1.25rem;--mdui-typescale-label-medium-line-height:1rem;--mdui-typescale-label-small-line-height:.375rem;--mdui-typescale-label-large-size:.875rem;--mdui-typescale-label-medium-size:.75rem;--mdui-typescale-label-small-size:.6875rem;--mdui-typescale-label-large-tracking:.00625rem;--mdui-typescale-label-medium-tracking:.03125rem;--mdui-typescale-label-small-tracking:.03125rem;--mdui-typescale-body-large-weight:400;--mdui-typescale-body-medium-weight:400;--mdui-typescale-body-small-weight:400;--mdui-typescale-body-large-line-height:1.5rem;--mdui-typescale-body-medium-line-height:1.25rem;--mdui-typescale-body-small-line-height:1rem;--mdui-typescale-body-large-size:1rem;--mdui-typescale-body-medium-size:.875rem;--mdui-typescale-body-small-size:.75rem;--mdui-typescale-body-large-tracking:.009375rem;--mdui-typescale-body-medium-tracking:.015625rem;--mdui-typescale-body-small-tracking:.025rem}.mdui-lock-screen{overflow:hidden!important}@font-face{font-family:Material Icons Round;font-style:normal;font-weight:400;src:url(./mdui-round-DrirKXBx.woff2) format("woff2")}.material-icons-round{font-family:Material Icons Round;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:"liga";font-feature-settings:"liga";-webkit-font-smoothing:antialiased}#ImWindowContainer{position:absolute;display:flex;width:100%;top:0;height:100%;overflow-x:hidden;overflow-y:scroll;z-index:9}#ImContentContainer{position:absolute;width:100%;height:100%;top:0;z-index:7}#ImWindowContainer::-webkit-scrollbar{width:0!important}@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes fade-in-out{0%{opacity:1}50%{opacity:.7}to{opacity:1}}@media screen and (max-width: 700px){#MagicBadge{position:absolute;display:grid;height:220px;width:100%;top:0;background-image:linear-gradient(0deg,#5753c900,#5753c957 20%,#6e7ff3);grid-template-rows:min-content}#FunctionCard{width:390px;height:480px;position:relative;top:130px;padding:20px 15px 15px;align-self:center;justify-self:center;background:#0a021599;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);box-shadow:0 6px 20px #000000a8}#FloatCard{width:390px;height:50px;background:#29323c;position:relative;justify-self:center;z-index:-1;top:140px;background:#0a021599;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);box-shadow:0 6px 20px #000000a8}#CryptControl{display:grid;width:219px;grid-template-columns:30% 30% 30% 30% 30% 30%;scale:.9;column-gap:2px;margin-top:-5px;align-content:center}#PositionOccupie{display:block;width:390px;height:20px;background:transparent;position:relative;justify-self:center;z-index:-1;top:140px}}@media screen and (min-width: 700px){#MagicBadge{position:absolute;display:grid;height:220px;width:100%;top:80px;background-image:linear-gradient(-435deg,#5753c9b5,#5753c900 35%,#5753c9 85%,#6e7ff3);grid-template-rows:min-content}#FunctionCard{width:390px;height:480px;background:#0a021599;position:relative;float:right;left:calc(80% - 360px);top:70px;padding:20px 15px 15px;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);box-shadow:0 6px 20px #000000a8}#FloatCard{width:150px;height:130px;position:relative;float:right;left:calc(80% - 520px);top:-80px;background:#0a021599;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);box-shadow:0 6px 20px #000000a8}#CryptControl{display:grid;grid-template-columns:50% 50%;grid-template-rows:40px 40px 40px;scale:.9;column-gap:10px;margin-top:-5px;align-content:center}#PositionOccupie{display:none}}mdui-text-field::part(label){background-color:transparent}mdui-text-field::part(input){scrollbar-width:none}.ImScrollBarTrack{position:fixed;transition:opacity .1s linear;opacity:0;border-radius:100px;z-index:8;background-color:rgb(var(--mdui-color-surface-bright));align-self:center}.ImScrollBarTrack:hover{opacity:.701}.ImScrollBarThumb{position:absolute;background-color:rgb(var(--mdui-color-tertiary-light));opacity:inherit;border-radius:100px}.baseCard{background-color:rgb(var(--mdui-color-secondary-container));color:rgb(var(--mdui-color-secondary));padding:10px;overflow:hidden;display:flex;z-index:3}.rawCard{background:rgb(var(--mdui-color-secondary-container));color:rgb(var(--mdui-color-secondary));padding:10px;transition:all 1s ease;overflow:hidden;display:flex;z-index:3}.cardIcon{font-size:120px!important;top:-10px;right:-15px;position:absolute;opacity:.15;z-index:4;color:#000}.cardContent{display:grid;width:100%;height:100%;color:#fff} diff --git a/docs/index.html b/docs/index.html index 19ad35f..0cd8d78 100644 --- a/docs/index.html +++ b/docs/index.html @@ -11,8 +11,8 @@ return this._attachShadow({ mode: "open" }); }; - - + +
diff --git a/docs/sw.js b/docs/sw.js index 4385526..910e3bf 100644 --- a/docs/sw.js +++ b/docs/sw.js @@ -1 +1 @@ -if(!self.define){let e,s={};const n=(n,i)=>(n=new URL(n+".js",i).href,s[n]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=n,e.onload=s,document.head.appendChild(e)}else e=n,importScripts(n),s()})).then((()=>{let e=s[n];if(!e)throw new Error(`Module ${n} didn’t register its module`);return e})));self.define=(i,r)=>{const t=e||("document"in self?document.currentScript.src:"")||location.href;if(s[t])return;let a={};const l=e=>n(e,t),u={module:{uri:t},exports:a,require:l};s[t]=Promise.all(i.map((e=>u[e]||l(e)))).then((e=>(r(...e),a)))}}define(["./workbox-20f94e4f"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"assets/bg-CjkYdVK5.webp",revision:null},{url:"assets/favicon-aOK6_042.ico",revision:null},{url:"assets/index-BgJwclCu.css",revision:null},{url:"assets/index-vHVaBdQA.js",revision:null},{url:"assets/mdui-round-DrirKXBx.woff2",revision:null},{url:"assets/SamsungSans-Regular-BsRQoNIc.ttf",revision:null},{url:"index.html",revision:"99c81c660639da2d2b74f3a6c0895b79"},{url:"registerSW.js",revision:"402b66900e731ca748771b6fc5e7a068"},{url:"manifest.webmanifest",revision:"bb69ddda7143ce9786815542f7f773ee"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html"))),e.registerRoute(/\.(?:png|jpg|jpeg|svg)$/,new e.CacheFirst({cacheName:"wisbayar-images",plugins:[new e.ExpirationPlugin({maxEntries:30})]}),"GET"),e.registerRoute(/.*\.js.*/,new e.StaleWhileRevalidate({cacheName:"wisbayar-js",plugins:[new e.ExpirationPlugin({maxEntries:30,maxAgeSeconds:2592e3}),new e.CacheableResponsePlugin({statuses:[200]})]}),"GET"),e.registerRoute(/.*\.css.*/,new e.StaleWhileRevalidate({cacheName:"wisbayar-css",plugins:[new e.ExpirationPlugin({maxEntries:20,maxAgeSeconds:2592e3}),new e.CacheableResponsePlugin({statuses:[200]})]}),"GET"),e.registerRoute(/.*\.html.*/,new e.StaleWhileRevalidate({cacheName:"wisbayar-html",plugins:[new e.ExpirationPlugin({maxEntries:20,maxAgeSeconds:2592e3}),new e.CacheableResponsePlugin({statuses:[200]})]}),"GET")})); +if(!self.define){let e,s={};const n=(n,i)=>(n=new URL(n+".js",i).href,s[n]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=n,e.onload=s,document.head.appendChild(e)}else e=n,importScripts(n),s()})).then((()=>{let e=s[n];if(!e)throw new Error(`Module ${n} didn’t register its module`);return e})));self.define=(i,r)=>{const t=e||("document"in self?document.currentScript.src:"")||location.href;if(s[t])return;let a={};const l=e=>n(e,t),o={module:{uri:t},exports:a,require:l};s[t]=Promise.all(i.map((e=>o[e]||l(e)))).then((e=>(r(...e),a)))}}define(["./workbox-20f94e4f"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"assets/bg-CjkYdVK5.webp",revision:null},{url:"assets/favicon-aOK6_042.ico",revision:null},{url:"assets/index-CDNxQT5U.js",revision:null},{url:"assets/index-CVSA6z77.css",revision:null},{url:"assets/mdui-round-DrirKXBx.woff2",revision:null},{url:"assets/SamsungSans-Regular-BsRQoNIc.ttf",revision:null},{url:"index.html",revision:"f0b9164dcc096c43f582e5935eef9595"},{url:"registerSW.js",revision:"402b66900e731ca748771b6fc5e7a068"},{url:"manifest.webmanifest",revision:"bb69ddda7143ce9786815542f7f773ee"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html"))),e.registerRoute(/\.(?:png|jpg|jpeg|svg)$/,new e.CacheFirst({cacheName:"wisbayar-images",plugins:[new e.ExpirationPlugin({maxEntries:30})]}),"GET"),e.registerRoute(/.*\.js.*/,new e.StaleWhileRevalidate({cacheName:"wisbayar-js",plugins:[new e.ExpirationPlugin({maxEntries:30,maxAgeSeconds:2592e3}),new e.CacheableResponsePlugin({statuses:[200]})]}),"GET"),e.registerRoute(/.*\.css.*/,new e.StaleWhileRevalidate({cacheName:"wisbayar-css",plugins:[new e.ExpirationPlugin({maxEntries:20,maxAgeSeconds:2592e3}),new e.CacheableResponsePlugin({statuses:[200]})]}),"GET"),e.registerRoute(/.*\.html.*/,new e.StaleWhileRevalidate({cacheName:"wisbayar-html",plugins:[new e.ExpirationPlugin({maxEntries:20,maxAgeSeconds:2592e3}),new e.CacheableResponsePlugin({statuses:[200]})]}),"GET")}));