@xcpcio/board-app 0.50.1 → 0.50.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/dist/404.html +1 -1
  2. package/dist/assets/{Board-e49fa5a5.js → Board-38585e67.js} +1 -1
  3. package/dist/assets/{DataSourceInput.vue_vue_type_script_setup_true_lang-f7a94fde.js → DataSourceInput.vue_vue_type_script_setup_true_lang-114e3155.js} +1 -1
  4. package/dist/assets/{TheInput.vue_vue_type_script_setup_true_lang-71fc9a51.js → TheInput.vue_vue_type_script_setup_true_lang-bd5395e9.js} +1 -1
  5. package/dist/assets/{_...all_-a7c27024.js → _...all_-0bc53d25.js} +1 -1
  6. package/dist/assets/{_...all_-b664c765.js → _...all_-8c4ba3cf.js} +1 -1
  7. package/dist/assets/{_name_-f7eb77b8.js → _name_-a532ea53.js} +1 -1
  8. package/dist/assets/{about-2103c294.js → about-6f40b1d0.js} +1 -1
  9. package/dist/assets/{board-a30142c4.js → board-08dfd01a.js} +1 -1
  10. package/dist/assets/{board-layout-8a7f024d.js → board-layout-74a77f38.js} +1 -1
  11. package/dist/assets/{headless-7cb9b4e2.js → headless-54fb8186.js} +1 -1
  12. package/dist/assets/{home-4f35cc24.js → home-9515d6d7.js} +1 -1
  13. package/dist/assets/{index-018d4b03.js → index-0e85099d.js} +4 -4
  14. package/dist/assets/{index-4a515f06.js → index-3a723320.js} +1 -1
  15. package/dist/assets/{index-57ca4f0a.js → index-67faeda8.js} +1 -1
  16. package/dist/assets/{index-d357dc60.js → index-de0376d5.js} +1 -1
  17. package/dist/assets/{index-layout-f7a16f8b.js → index-layout-2b7977ec.js} +1 -1
  18. package/dist/assets/{pagination-b2b8c1d7.js → pagination-672f41c6.js} +1 -1
  19. package/dist/assets/{query-49959a5e.js → query-61045468.js} +1 -1
  20. package/dist/assets/{test-2ab0c86d.js → test-3d1287e8.js} +1 -1
  21. package/dist/assets/{user-f6e65dcb.js → user-3576d2ec.js} +1 -1
  22. package/dist/assets/{virtual_pwa-register-b980ead8.js → virtual_pwa-register-c4e95d0e.js} +1 -1
  23. package/dist/index.html +1 -1
  24. package/dist/sw.js +1 -1
  25. package/package.json +3 -3
@@ -23,11 +23,11 @@ var u_=(t,n,s)=>{if(!n.has(t))throw TypeError("Cannot "+s)};var ht=(t,n,s)=>(u_(
23
23
  * pinia v2.1.6
24
24
  * (c) 2023 Eduardo San Martin Morote
25
25
  * @license MIT
26
- */let l6;const $v=t=>l6=t,c6=Symbol();function cy(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var Zp;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(Zp||(Zp={}));function yS(){const t=wv(!0),n=t.run(()=>ur({}));let s=[],a=[];const r=Lg({install(e){$v(r),r._a=e,e.provide(c6,r),e.config.globalProperties.$pinia=r,a.forEach(d=>s.push(d)),a=[]},use(e){return!this._a&&!_S?a.push(e):s.push(e),this},_p:s,_a:null,_e:t,_s:new Map,state:n});return r}const u6=()=>{};function fw(t,n,s,a=u6){t.push(n);const r=()=>{const e=t.indexOf(n);e>-1&&(t.splice(e,1),a())};return!s&&Dv()&&Hy(r),r}function Bd(t,...n){t.slice().forEach(s=>{s(...n)})}const wS=t=>t();function uy(t,n){t instanceof Map&&n instanceof Map&&n.forEach((s,a)=>t.set(a,s)),t instanceof Set&&n instanceof Set&&n.forEach(t.add,t);for(const s in n){if(!n.hasOwnProperty(s))continue;const a=n[s],r=t[s];cy(r)&&cy(a)&&t.hasOwnProperty(s)&&!$n(a)&&!ru(a)?t[s]=uy(r,a):t[s]=a}return t}const DS=Symbol();function ES(t){return!cy(t)||!t.hasOwnProperty(DS)}const{assign:bf}=Object;function FS(t){return!!($n(t)&&t.effect)}function xS(t,n,s,a){const{state:r,actions:e,getters:d}=n,_=s.state.value[t];let y;function E(){_||(s.state.value[t]=r?r():{});const T=ME(s.state.value[t]);return bf(T,e,Object.keys(d||{}).reduce((A,R)=>(A[R]=Lg(cn(()=>{$v(s);const L=s._s.get(t);return d[R].call(L,L)})),A),{}))}return y=f6(t,E,n,s,a,!0),y}function f6(t,n,s={},a,r,e){let d;const _=bf({actions:{}},s),y={deep:!0};let E,T,A=[],R=[],L;const B=a.state.value[t];!e&&!B&&(a.state.value[t]={}),ur({});let P;function V(U){let W;E=T=!1,typeof U=="function"?(U(a.state.value[t]),W={type:Zp.patchFunction,storeId:t,events:L}):(uy(a.state.value[t],U),W={type:Zp.patchObject,payload:U,storeId:t,events:L});const te=P=Symbol();uc().then(()=>{P===te&&(E=!0)}),T=!0,Bd(A,W,a.state.value[t])}const z=e?function(){const{state:W}=s,te=W?W():{};this.$patch(fe=>{bf(fe,te)})}:u6;function q(){d.stop(),A=[],R=[],a._s.delete(t)}function oe(U,W){return function(){$v(a);const te=Array.from(arguments),fe=[],xe=[];function _e(je){fe.push(je)}function be(je){xe.push(je)}Bd(R,{args:te,name:U,store:G,after:_e,onError:be});let $e;try{$e=W.apply(this&&this.$id===t?this:G,te)}catch(je){throw Bd(xe,je),je}return $e instanceof Promise?$e.then(je=>(Bd(fe,je),je)).catch(je=>(Bd(xe,je),Promise.reject(je))):(Bd(fe,$e),$e)}}const K={_p:a,$id:t,$onAction:fw.bind(null,R),$patch:V,$reset:z,$subscribe(U,W={}){const te=fw(A,U,W.detached,()=>fe()),fe=d.run(()=>Zn(()=>a.state.value[t],xe=>{(W.flush==="sync"?T:E)&&U({storeId:t,type:Zp.direct,events:L},xe)},bf({},y,W)));return te},$dispose:q},G=Hf(K);a._s.set(t,G);const ne=a._a&&a._a.runWithContext||wS,ce=a._e.run(()=>(d=wv(),ne(()=>d.run(n))));for(const U in ce){const W=ce[U];if($n(W)&&!FS(W)||ru(W))e||(B&&ES(W)&&($n(W)?W.value=B[U]:uy(W,B[U])),a.state.value[t][U]=W);else if(typeof W=="function"){const te=oe(U,W);ce[U]=te,_.actions[U]=W}}return bf(G,ce),bf(yn(G),ce),Object.defineProperty(G,"$state",{get:()=>a.state.value[t],set:U=>{V(W=>{bf(W,U)})}}),a._p.forEach(U=>{bf(G,d.run(()=>U({store:G,app:a._a,pinia:a,options:_})))}),B&&e&&s.hydrate&&s.hydrate(G.$state,B),E=!0,T=!0,G}function qM(t,n,s){let a,r;const e=typeof n=="function";typeof t=="string"?(a=t,r=e?s:n):(r=t,a=t.id);function d(_,y){const E=fF();return _=_||(E?xa(c6,null):null),_&&$v(_),_=l6,_._s.has(a)||(e?f6(a,n,r,_):xS(a,r,_)),_._s.get(a)}return d.$id=a,d}const TS=({isClient:t,initialState:n,app:s})=>{const a=yS();s.use(a),t?a.state.value=n.pinia||{}:n.pinia=a.state.value},CS=Object.freeze(Object.defineProperty({__proto__:null,install:TS},Symbol.toStringTag,{value:"Module"})),AS=({isClient:t,router:n})=>{t&&n.isReady().then(async()=>{const{registerSW:s}=await Zs(()=>import("./virtual_pwa-register-b980ead8.js"),[],import.meta.url);s({immediate:!0})}).catch(()=>{})},SS=Object.freeze(Object.defineProperty({__proto__:null,install:AS},Symbol.toStringTag,{value:"Module"}));var h6={exports:{}};const kS=a6(G8);(function(t,n){(function(a,r){t.exports=r(kS)})(ms,s=>(()=>{var a={661:(_,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=(E,T)=>{const A=E.__vccOpts||E;for(const[R,L]of T)A[R]=L;return A}},976:_=>{_.exports=s}},r={};function e(_){var y=r[_];if(y!==void 0)return y.exports;var E=r[_]={exports:{}};return a[_](E,E.exports,e),E.exports}e.d=(_,y)=>{for(var E in y)e.o(y,E)&&!e.o(_,E)&&Object.defineProperty(_,E,{enumerable:!0,get:y[E]})},e.o=(_,y)=>Object.prototype.hasOwnProperty.call(_,y),e.r=_=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(_,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(_,"__esModule",{value:!0})};var d={};return(()=>{e.r(d),e.d(d,{ToastComponent:()=>G,ToastPlugin:()=>ce,ToastPositions:()=>B,default:()=>U,useToast:()=>ne});var _=e(976);const y=(0,_.createElementVNode)("div",{class:"v-toast__icon"},null,-1),E=["innerHTML"];function T(W,te,fe,xe,_e,be){return(0,_.openBlock)(),(0,_.createBlock)(_.Transition,{"enter-active-class":W.transition.enter,"leave-active-class":W.transition.leave},{default:(0,_.withCtx)(()=>[(0,_.withDirectives)((0,_.createElementVNode)("div",{ref:"root",role:"alert",class:(0,_.normalizeClass)(["v-toast__item",[`v-toast__item--${W.type}`,`v-toast__item--${W.position}`]]),onMouseover:te[0]||(te[0]=$e=>W.toggleTimer(!0)),onMouseleave:te[1]||(te[1]=$e=>W.toggleTimer(!1)),onClick:te[2]||(te[2]=function(){return W.whenClicked&&W.whenClicked(...arguments)})},[y,(0,_.createElementVNode)("p",{class:"v-toast__text",innerHTML:W.message},null,8,E)],34),[[_.vShow,W.isActive]])]),_:1},8,["enter-active-class","leave-active-class"])}function A(W){var te;typeof W.remove<"u"?W.remove():(te=W.parentNode)==null||te.removeChild(W)}function R(W,te,fe){let xe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const _e=(0,_.h)(W,te,xe),be=document.createElement("div");return be.classList.add("v-toast--pending"),fe.appendChild(be),(0,_.render)(_e,be),_e.component}class L{constructor(te,fe){this.startedAt=Date.now(),this.callback=te,this.delay=fe,this.timer=setTimeout(te,fe)}pause(){this.stop(),this.delay-=Date.now()-this.startedAt}resume(){this.stop(),this.startedAt=Date.now(),this.timer=setTimeout(this.callback,this.delay)}stop(){clearTimeout(this.timer)}}const B=Object.freeze({TOP_RIGHT:"top-right",TOP:"top",TOP_LEFT:"top-left",BOTTOM_RIGHT:"bottom-right",BOTTOM:"bottom",BOTTOM_LEFT:"bottom-left"});function P(W){return{all:W=W||new Map,on:function(te,fe){var xe=W.get(te);xe?xe.push(fe):W.set(te,[fe])},off:function(te,fe){var xe=W.get(te);xe&&(fe?xe.splice(xe.indexOf(fe)>>>0,1):W.set(te,[]))},emit:function(te,fe){var xe=W.get(te);xe&&xe.slice().map(function(_e){_e(fe)}),(xe=W.get("*"))&&xe.slice().map(function(_e){_e(te,fe)})}}}const z=P(),q=(0,_.defineComponent)({name:"Toast",props:{message:{type:String,required:!0},type:{type:String,default:"success"},position:{type:String,default:B.BOTTOM_RIGHT,validator(W){return Object.values(B).includes(W)}},duration:{type:Number,default:3e3},dismissible:{type:Boolean,default:!0},onDismiss:{type:Function,default:()=>{}},onClick:{type:Function,default:()=>{}},queue:Boolean,pauseOnHover:{type:Boolean,default:!0}},data(){return{isActive:!1,parentTop:null,parentBottom:null,isHovered:!1}},beforeMount(){this.setupContainer()},mounted(){this.showNotice(),z.on("toast-clear",this.dismiss)},methods:{setupContainer(){if(this.parentTop=document.querySelector(".v-toast.v-toast--top"),this.parentBottom=document.querySelector(".v-toast.v-toast--bottom"),this.parentTop&&this.parentBottom)return;this.parentTop||(this.parentTop=document.createElement("div"),this.parentTop.className="v-toast v-toast--top"),this.parentBottom||(this.parentBottom=document.createElement("div"),this.parentBottom.className="v-toast v-toast--bottom");const W=document.body;W.appendChild(this.parentTop),W.appendChild(this.parentBottom)},shouldQueue(){return this.queue?this.parentTop.childElementCount>0||this.parentBottom.childElementCount>0:!1},dismiss(){this.timer&&this.timer.stop(),clearTimeout(this.queueTimer),this.isActive=!1,setTimeout(()=>{this.onDismiss.apply(null,arguments);const W=this.$refs.root;(0,_.render)(null,W),A(W)},150)},showNotice(){if(this.shouldQueue()){this.queueTimer=setTimeout(this.showNotice,250);return}const W=this.$refs.root.parentElement;this.correctParent.insertAdjacentElement("afterbegin",this.$refs.root),A(W),this.isActive=!0,this.duration&&(this.timer=new L(this.dismiss,this.duration))},whenClicked(){this.dismissible&&(this.onClick.apply(null,arguments),this.dismiss())},toggleTimer(W){!this.pauseOnHover||!this.timer||(W?this.timer.pause():this.timer.resume())}},computed:{correctParent(){switch(this.position){case B.TOP:case B.TOP_RIGHT:case B.TOP_LEFT:return this.parentTop;case B.BOTTOM:case B.BOTTOM_RIGHT:case B.BOTTOM_LEFT:return this.parentBottom}},transition(){switch(this.position){case B.TOP:case B.TOP_RIGHT:case B.TOP_LEFT:return{enter:"v-toast--fade-in-down",leave:"v-toast--fade-out"};case B.BOTTOM:case B.BOTTOM_RIGHT:case B.BOTTOM_LEFT:return{enter:"v-toast--fade-in-up",leave:"v-toast--fade-out"}}}},beforeUnmount(){z.off("toast-clear",this.dismiss)}});var oe=e(661);const G=(0,oe.default)(q,[["render",T]]),ne=function(){let W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return{open(te){let fe=null;typeof te=="string"&&(fe=te);const _e=Object.assign({},{message:fe},W,te);return{dismiss:R(G,_e,document.body).ctx.dismiss}},clear(){z.emit("toast-clear")},success(te){let fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.open(Object.assign({},{message:te,type:"success"},fe))},error(te){let fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.open(Object.assign({},{message:te,type:"error"},fe))},info(te){let fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.open(Object.assign({},{message:te,type:"info"},fe))},warning(te){let fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.open(Object.assign({},{message:te,type:"warning"},fe))},default(te){let fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.open(Object.assign({},{message:te,type:"default"},fe))}}},ce={install:function(W){let te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},fe=ne(te);W.config.globalProperties.$toast=fe,W.provide("$toast",fe)}},U=ce})(),d})())})(h6);var OS=h6.exports;const RS=ra(OS);const IS=({app:t})=>{t.use(RS,{position:"bottom-right"})},PS=Object.freeze(Object.defineProperty({__proto__:null,install:IS},Symbol.toStringTag,{value:"Module"}));/*!
26
+ */let l6;const $v=t=>l6=t,c6=Symbol();function cy(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var Zp;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(Zp||(Zp={}));function yS(){const t=wv(!0),n=t.run(()=>ur({}));let s=[],a=[];const r=Lg({install(e){$v(r),r._a=e,e.provide(c6,r),e.config.globalProperties.$pinia=r,a.forEach(d=>s.push(d)),a=[]},use(e){return!this._a&&!_S?a.push(e):s.push(e),this},_p:s,_a:null,_e:t,_s:new Map,state:n});return r}const u6=()=>{};function fw(t,n,s,a=u6){t.push(n);const r=()=>{const e=t.indexOf(n);e>-1&&(t.splice(e,1),a())};return!s&&Dv()&&Hy(r),r}function Bd(t,...n){t.slice().forEach(s=>{s(...n)})}const wS=t=>t();function uy(t,n){t instanceof Map&&n instanceof Map&&n.forEach((s,a)=>t.set(a,s)),t instanceof Set&&n instanceof Set&&n.forEach(t.add,t);for(const s in n){if(!n.hasOwnProperty(s))continue;const a=n[s],r=t[s];cy(r)&&cy(a)&&t.hasOwnProperty(s)&&!$n(a)&&!ru(a)?t[s]=uy(r,a):t[s]=a}return t}const DS=Symbol();function ES(t){return!cy(t)||!t.hasOwnProperty(DS)}const{assign:bf}=Object;function FS(t){return!!($n(t)&&t.effect)}function xS(t,n,s,a){const{state:r,actions:e,getters:d}=n,_=s.state.value[t];let y;function E(){_||(s.state.value[t]=r?r():{});const T=ME(s.state.value[t]);return bf(T,e,Object.keys(d||{}).reduce((A,R)=>(A[R]=Lg(cn(()=>{$v(s);const L=s._s.get(t);return d[R].call(L,L)})),A),{}))}return y=f6(t,E,n,s,a,!0),y}function f6(t,n,s={},a,r,e){let d;const _=bf({actions:{}},s),y={deep:!0};let E,T,A=[],R=[],L;const B=a.state.value[t];!e&&!B&&(a.state.value[t]={}),ur({});let P;function V(U){let W;E=T=!1,typeof U=="function"?(U(a.state.value[t]),W={type:Zp.patchFunction,storeId:t,events:L}):(uy(a.state.value[t],U),W={type:Zp.patchObject,payload:U,storeId:t,events:L});const te=P=Symbol();uc().then(()=>{P===te&&(E=!0)}),T=!0,Bd(A,W,a.state.value[t])}const z=e?function(){const{state:W}=s,te=W?W():{};this.$patch(fe=>{bf(fe,te)})}:u6;function q(){d.stop(),A=[],R=[],a._s.delete(t)}function oe(U,W){return function(){$v(a);const te=Array.from(arguments),fe=[],xe=[];function _e(je){fe.push(je)}function be(je){xe.push(je)}Bd(R,{args:te,name:U,store:G,after:_e,onError:be});let $e;try{$e=W.apply(this&&this.$id===t?this:G,te)}catch(je){throw Bd(xe,je),je}return $e instanceof Promise?$e.then(je=>(Bd(fe,je),je)).catch(je=>(Bd(xe,je),Promise.reject(je))):(Bd(fe,$e),$e)}}const K={_p:a,$id:t,$onAction:fw.bind(null,R),$patch:V,$reset:z,$subscribe(U,W={}){const te=fw(A,U,W.detached,()=>fe()),fe=d.run(()=>Zn(()=>a.state.value[t],xe=>{(W.flush==="sync"?T:E)&&U({storeId:t,type:Zp.direct,events:L},xe)},bf({},y,W)));return te},$dispose:q},G=Hf(K);a._s.set(t,G);const ne=a._a&&a._a.runWithContext||wS,ce=a._e.run(()=>(d=wv(),ne(()=>d.run(n))));for(const U in ce){const W=ce[U];if($n(W)&&!FS(W)||ru(W))e||(B&&ES(W)&&($n(W)?W.value=B[U]:uy(W,B[U])),a.state.value[t][U]=W);else if(typeof W=="function"){const te=oe(U,W);ce[U]=te,_.actions[U]=W}}return bf(G,ce),bf(yn(G),ce),Object.defineProperty(G,"$state",{get:()=>a.state.value[t],set:U=>{V(W=>{bf(W,U)})}}),a._p.forEach(U=>{bf(G,d.run(()=>U({store:G,app:a._a,pinia:a,options:_})))}),B&&e&&s.hydrate&&s.hydrate(G.$state,B),E=!0,T=!0,G}function qM(t,n,s){let a,r;const e=typeof n=="function";typeof t=="string"?(a=t,r=e?s:n):(r=t,a=t.id);function d(_,y){const E=fF();return _=_||(E?xa(c6,null):null),_&&$v(_),_=l6,_._s.has(a)||(e?f6(a,n,r,_):xS(a,r,_)),_._s.get(a)}return d.$id=a,d}const TS=({isClient:t,initialState:n,app:s})=>{const a=yS();s.use(a),t?a.state.value=n.pinia||{}:n.pinia=a.state.value},CS=Object.freeze(Object.defineProperty({__proto__:null,install:TS},Symbol.toStringTag,{value:"Module"})),AS=({isClient:t,router:n})=>{t&&n.isReady().then(async()=>{const{registerSW:s}=await Zs(()=>import("./virtual_pwa-register-c4e95d0e.js"),[],import.meta.url);s({immediate:!0})}).catch(()=>{})},SS=Object.freeze(Object.defineProperty({__proto__:null,install:AS},Symbol.toStringTag,{value:"Module"}));var h6={exports:{}};const kS=a6(G8);(function(t,n){(function(a,r){t.exports=r(kS)})(ms,s=>(()=>{var a={661:(_,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=(E,T)=>{const A=E.__vccOpts||E;for(const[R,L]of T)A[R]=L;return A}},976:_=>{_.exports=s}},r={};function e(_){var y=r[_];if(y!==void 0)return y.exports;var E=r[_]={exports:{}};return a[_](E,E.exports,e),E.exports}e.d=(_,y)=>{for(var E in y)e.o(y,E)&&!e.o(_,E)&&Object.defineProperty(_,E,{enumerable:!0,get:y[E]})},e.o=(_,y)=>Object.prototype.hasOwnProperty.call(_,y),e.r=_=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(_,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(_,"__esModule",{value:!0})};var d={};return(()=>{e.r(d),e.d(d,{ToastComponent:()=>G,ToastPlugin:()=>ce,ToastPositions:()=>B,default:()=>U,useToast:()=>ne});var _=e(976);const y=(0,_.createElementVNode)("div",{class:"v-toast__icon"},null,-1),E=["innerHTML"];function T(W,te,fe,xe,_e,be){return(0,_.openBlock)(),(0,_.createBlock)(_.Transition,{"enter-active-class":W.transition.enter,"leave-active-class":W.transition.leave},{default:(0,_.withCtx)(()=>[(0,_.withDirectives)((0,_.createElementVNode)("div",{ref:"root",role:"alert",class:(0,_.normalizeClass)(["v-toast__item",[`v-toast__item--${W.type}`,`v-toast__item--${W.position}`]]),onMouseover:te[0]||(te[0]=$e=>W.toggleTimer(!0)),onMouseleave:te[1]||(te[1]=$e=>W.toggleTimer(!1)),onClick:te[2]||(te[2]=function(){return W.whenClicked&&W.whenClicked(...arguments)})},[y,(0,_.createElementVNode)("p",{class:"v-toast__text",innerHTML:W.message},null,8,E)],34),[[_.vShow,W.isActive]])]),_:1},8,["enter-active-class","leave-active-class"])}function A(W){var te;typeof W.remove<"u"?W.remove():(te=W.parentNode)==null||te.removeChild(W)}function R(W,te,fe){let xe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const _e=(0,_.h)(W,te,xe),be=document.createElement("div");return be.classList.add("v-toast--pending"),fe.appendChild(be),(0,_.render)(_e,be),_e.component}class L{constructor(te,fe){this.startedAt=Date.now(),this.callback=te,this.delay=fe,this.timer=setTimeout(te,fe)}pause(){this.stop(),this.delay-=Date.now()-this.startedAt}resume(){this.stop(),this.startedAt=Date.now(),this.timer=setTimeout(this.callback,this.delay)}stop(){clearTimeout(this.timer)}}const B=Object.freeze({TOP_RIGHT:"top-right",TOP:"top",TOP_LEFT:"top-left",BOTTOM_RIGHT:"bottom-right",BOTTOM:"bottom",BOTTOM_LEFT:"bottom-left"});function P(W){return{all:W=W||new Map,on:function(te,fe){var xe=W.get(te);xe?xe.push(fe):W.set(te,[fe])},off:function(te,fe){var xe=W.get(te);xe&&(fe?xe.splice(xe.indexOf(fe)>>>0,1):W.set(te,[]))},emit:function(te,fe){var xe=W.get(te);xe&&xe.slice().map(function(_e){_e(fe)}),(xe=W.get("*"))&&xe.slice().map(function(_e){_e(te,fe)})}}}const z=P(),q=(0,_.defineComponent)({name:"Toast",props:{message:{type:String,required:!0},type:{type:String,default:"success"},position:{type:String,default:B.BOTTOM_RIGHT,validator(W){return Object.values(B).includes(W)}},duration:{type:Number,default:3e3},dismissible:{type:Boolean,default:!0},onDismiss:{type:Function,default:()=>{}},onClick:{type:Function,default:()=>{}},queue:Boolean,pauseOnHover:{type:Boolean,default:!0}},data(){return{isActive:!1,parentTop:null,parentBottom:null,isHovered:!1}},beforeMount(){this.setupContainer()},mounted(){this.showNotice(),z.on("toast-clear",this.dismiss)},methods:{setupContainer(){if(this.parentTop=document.querySelector(".v-toast.v-toast--top"),this.parentBottom=document.querySelector(".v-toast.v-toast--bottom"),this.parentTop&&this.parentBottom)return;this.parentTop||(this.parentTop=document.createElement("div"),this.parentTop.className="v-toast v-toast--top"),this.parentBottom||(this.parentBottom=document.createElement("div"),this.parentBottom.className="v-toast v-toast--bottom");const W=document.body;W.appendChild(this.parentTop),W.appendChild(this.parentBottom)},shouldQueue(){return this.queue?this.parentTop.childElementCount>0||this.parentBottom.childElementCount>0:!1},dismiss(){this.timer&&this.timer.stop(),clearTimeout(this.queueTimer),this.isActive=!1,setTimeout(()=>{this.onDismiss.apply(null,arguments);const W=this.$refs.root;(0,_.render)(null,W),A(W)},150)},showNotice(){if(this.shouldQueue()){this.queueTimer=setTimeout(this.showNotice,250);return}const W=this.$refs.root.parentElement;this.correctParent.insertAdjacentElement("afterbegin",this.$refs.root),A(W),this.isActive=!0,this.duration&&(this.timer=new L(this.dismiss,this.duration))},whenClicked(){this.dismissible&&(this.onClick.apply(null,arguments),this.dismiss())},toggleTimer(W){!this.pauseOnHover||!this.timer||(W?this.timer.pause():this.timer.resume())}},computed:{correctParent(){switch(this.position){case B.TOP:case B.TOP_RIGHT:case B.TOP_LEFT:return this.parentTop;case B.BOTTOM:case B.BOTTOM_RIGHT:case B.BOTTOM_LEFT:return this.parentBottom}},transition(){switch(this.position){case B.TOP:case B.TOP_RIGHT:case B.TOP_LEFT:return{enter:"v-toast--fade-in-down",leave:"v-toast--fade-out"};case B.BOTTOM:case B.BOTTOM_RIGHT:case B.BOTTOM_LEFT:return{enter:"v-toast--fade-in-up",leave:"v-toast--fade-out"}}}},beforeUnmount(){z.off("toast-clear",this.dismiss)}});var oe=e(661);const G=(0,oe.default)(q,[["render",T]]),ne=function(){let W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return{open(te){let fe=null;typeof te=="string"&&(fe=te);const _e=Object.assign({},{message:fe},W,te);return{dismiss:R(G,_e,document.body).ctx.dismiss}},clear(){z.emit("toast-clear")},success(te){let fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.open(Object.assign({},{message:te,type:"success"},fe))},error(te){let fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.open(Object.assign({},{message:te,type:"error"},fe))},info(te){let fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.open(Object.assign({},{message:te,type:"info"},fe))},warning(te){let fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.open(Object.assign({},{message:te,type:"warning"},fe))},default(te){let fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.open(Object.assign({},{message:te,type:"default"},fe))}}},ce={install:function(W){let te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},fe=ne(te);W.config.globalProperties.$toast=fe,W.provide("$toast",fe)}},U=ce})(),d})())})(h6);var OS=h6.exports;const RS=ra(OS);const IS=({app:t})=>{t.use(RS,{position:"bottom-right"})},PS=Object.freeze(Object.defineProperty({__proto__:null,install:IS},Symbol.toStringTag,{value:"Module"}));/*!
27
27
  * vue-router v4.2.4
28
28
  * (c) 2023 Eduardo San Martin Morote
29
29
  * @license MIT
30
- */const Hd=typeof window<"u";function NS(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const qn=Object.assign;function w_(t,n){const s={};for(const a in n){const r=n[a];s[a]=Al(r)?r.map(t):t(r)}return s}const eg=()=>{},Al=Array.isArray,MS=/\/$/,LS=t=>t.replace(MS,"");function D_(t,n,s="/"){let a,r={},e="",d="";const _=n.indexOf("#");let y=n.indexOf("?");return _<y&&_>=0&&(y=-1),y>-1&&(a=n.slice(0,y),e=n.slice(y+1,_>-1?_:n.length),r=t(e)),_>-1&&(a=a||n.slice(0,_),d=n.slice(_,n.length)),a=HS(a??n,s),{fullPath:a+(e&&"?")+e+d,path:a,query:r,hash:d}}function BS(t,n){const s=n.query?t(n.query):"";return n.path+(s&&"?")+s+(n.hash||"")}function hw(t,n){return!n||!t.toLowerCase().startsWith(n.toLowerCase())?t:t.slice(n.length)||"/"}function US(t,n,s){const a=n.matched.length-1,r=s.matched.length-1;return a>-1&&a===r&&g1(n.matched[a],s.matched[r])&&d6(n.params,s.params)&&t(n.query)===t(s.query)&&n.hash===s.hash}function g1(t,n){return(t.aliasOf||t)===(n.aliasOf||n)}function d6(t,n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(const s in t)if(!$S(t[s],n[s]))return!1;return!0}function $S(t,n){return Al(t)?dw(t,n):Al(n)?dw(n,t):t===n}function dw(t,n){return Al(n)?t.length===n.length&&t.every((s,a)=>s===n[a]):t.length===1&&t[0]===n}function HS(t,n){if(t.startsWith("/"))return t;if(!t)return n;const s=n.split("/"),a=t.split("/"),r=a[a.length-1];(r===".."||r===".")&&a.push("");let e=s.length-1,d,_;for(d=0;d<a.length;d++)if(_=a[d],_!==".")if(_==="..")e>1&&e--;else break;return s.slice(0,e).join("/")+"/"+a.slice(d-(d===a.length?1:0)).join("/")}var m1;(function(t){t.pop="pop",t.push="push"})(m1||(m1={}));var Dh;(function(t){t.back="back",t.forward="forward",t.unknown=""})(Dh||(Dh={}));const E_="";function p6(t){if(!t)if(Hd){const n=document.querySelector("base");t=n&&n.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),LS(t)}const WS=/^[^#]+#/;function g6(t,n){return t.replace(WS,"#")+n}function zS(t,n){const s=document.documentElement.getBoundingClientRect(),a=t.getBoundingClientRect();return{behavior:n.behavior,left:a.left-s.left-(n.left||0),top:a.top-s.top-(n.top||0)}}const Hv=()=>({left:window.pageXOffset,top:window.pageYOffset});function jS(t){let n;if("el"in t){const s=t.el,a=typeof s=="string"&&s.startsWith("#"),r=typeof s=="string"?a?document.getElementById(s.slice(1)):document.querySelector(s):s;if(!r)return;n=zS(r,t)}else n=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(n):window.scrollTo(n.left!=null?n.left:window.pageXOffset,n.top!=null?n.top:window.pageYOffset)}function pw(t,n){return(history.state?history.state.position-n:-1)+t}const fy=new Map;function GS(t,n){fy.set(t,n)}function VS(t){const n=fy.get(t);return fy.delete(t),n}let YS=()=>location.protocol+"//"+location.host;function m6(t,n){const{pathname:s,search:a,hash:r}=n,e=t.indexOf("#");if(e>-1){let _=r.includes(t.slice(e))?t.slice(e).length:1,y=r.slice(_);return y[0]!=="/"&&(y="/"+y),hw(y,"")}return hw(s,t)+a+r}function KS(t,n,s,a){let r=[],e=[],d=null;const _=({state:R})=>{const L=m6(t,location),B=s.value,P=n.value;let V=0;if(R){if(s.value=L,n.value=R,d&&d===B){d=null;return}V=P?R.position-P.position:0}else a(L);r.forEach(z=>{z(s.value,B,{delta:V,type:m1.pop,direction:V?V>0?Dh.forward:Dh.back:Dh.unknown})})};function y(){d=s.value}function E(R){r.push(R);const L=()=>{const B=r.indexOf(R);B>-1&&r.splice(B,1)};return e.push(L),L}function T(){const{history:R}=window;R.state&&R.replaceState(qn({},R.state,{scroll:Hv()}),"")}function A(){for(const R of e)R();e=[],window.removeEventListener("popstate",_),window.removeEventListener("beforeunload",T)}return window.addEventListener("popstate",_),window.addEventListener("beforeunload",T,{passive:!0}),{pauseListeners:y,listen:E,destroy:A}}function gw(t,n,s,a=!1,r=!1){return{back:t,current:n,forward:s,replaced:a,position:window.history.length,scroll:r?Hv():null}}function qS(t){const{history:n,location:s}=window,a={value:m6(t,s)},r={value:n.state};r.value||e(a.value,{back:null,current:a.value,forward:null,position:n.length-1,replaced:!0,scroll:null},!0);function e(y,E,T){const A=t.indexOf("#"),R=A>-1?(s.host&&document.querySelector("base")?t:t.slice(A))+y:YS()+t+y;try{n[T?"replaceState":"pushState"](E,"",R),r.value=E}catch(L){console.error(L),s[T?"replace":"assign"](R)}}function d(y,E){const T=qn({},n.state,gw(r.value.back,y,r.value.forward,!0),E,{position:r.value.position});e(y,T,!0),a.value=y}function _(y,E){const T=qn({},r.value,n.state,{forward:y,scroll:Hv()});e(T.current,T,!0);const A=qn({},gw(a.value,y,null),{position:T.position+1},E);e(y,A,!1),a.value=y}return{location:a,state:r,push:_,replace:d}}function QS(t){t=p6(t);const n=qS(t),s=KS(t,n.state,n.location,n.replace);function a(e,d=!0){d||s.pauseListeners(),history.go(e)}const r=qn({location:"",base:t,go:a,createHref:g6.bind(null,t)},n,s);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>n.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>n.state.value}),r}function XS(t=""){let n=[],s=[E_],a=0;t=p6(t);function r(_){a++,a===s.length||s.splice(a),s.push(_)}function e(_,y,{direction:E,delta:T}){const A={direction:E,delta:T,type:m1.pop};for(const R of n)R(_,y,A)}const d={location:E_,state:{},base:t,createHref:g6.bind(null,t),replace(_){s.splice(a--,1),r(_)},push(_,y){r(_)},listen(_){return n.push(_),()=>{const y=n.indexOf(_);y>-1&&n.splice(y,1)}},destroy(){n=[],s=[E_],a=0},go(_,y=!0){const E=this.location,T=_<0?Dh.back:Dh.forward;a=Math.max(0,Math.min(a+_,s.length-1)),y&&e(this.location,E,{direction:T,delta:_})}};return Object.defineProperty(d,"location",{enumerable:!0,get:()=>s[a]}),d}function JS(t){return typeof t=="string"||t&&typeof t=="object"}function v6(t){return typeof t=="string"||typeof t=="symbol"}const gf={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},b6=Symbol("");var mw;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(mw||(mw={}));function v1(t,n){return qn(new Error,{type:t,[b6]:!0},n)}function Qc(t,n){return t instanceof Error&&b6 in t&&(n==null||!!(t.type&n))}const vw="[^/]+?",ZS={sensitive:!1,strict:!1,start:!0,end:!0},ek=/[.+*?^${}()[\]/\\]/g;function tk(t,n){const s=qn({},ZS,n),a=[];let r=s.start?"^":"";const e=[];for(const E of t){const T=E.length?[]:[90];s.strict&&!E.length&&(r+="/");for(let A=0;A<E.length;A++){const R=E[A];let L=40+(s.sensitive?.25:0);if(R.type===0)A||(r+="/"),r+=R.value.replace(ek,"\\$&"),L+=40;else if(R.type===1){const{value:B,repeatable:P,optional:V,regexp:z}=R;e.push({name:B,repeatable:P,optional:V});const q=z||vw;if(q!==vw){L+=10;try{new RegExp(`(${q})`)}catch(K){throw new Error(`Invalid custom RegExp for param "${B}" (${q}): `+K.message)}}let oe=P?`((?:${q})(?:/(?:${q}))*)`:`(${q})`;A||(oe=V&&E.length<2?`(?:/${oe})`:"/"+oe),V&&(oe+="?"),r+=oe,L+=20,V&&(L+=-8),P&&(L+=-20),q===".*"&&(L+=-50)}T.push(L)}a.push(T)}if(s.strict&&s.end){const E=a.length-1;a[E][a[E].length-1]+=.7000000000000001}s.strict||(r+="/?"),s.end?r+="$":s.strict&&(r+="(?:/|$)");const d=new RegExp(r,s.sensitive?"":"i");function _(E){const T=E.match(d),A={};if(!T)return null;for(let R=1;R<T.length;R++){const L=T[R]||"",B=e[R-1];A[B.name]=L&&B.repeatable?L.split("/"):L}return A}function y(E){let T="",A=!1;for(const R of t){(!A||!T.endsWith("/"))&&(T+="/"),A=!1;for(const L of R)if(L.type===0)T+=L.value;else if(L.type===1){const{value:B,repeatable:P,optional:V}=L,z=B in E?E[B]:"";if(Al(z)&&!P)throw new Error(`Provided param "${B}" is an array but it is not repeatable (* or + modifiers)`);const q=Al(z)?z.join("/"):z;if(!q)if(V)R.length<2&&(T.endsWith("/")?T=T.slice(0,-1):A=!0);else throw new Error(`Missing required param "${B}"`);T+=q}}return T||"/"}return{re:d,score:a,keys:e,parse:_,stringify:y}}function rk(t,n){let s=0;for(;s<t.length&&s<n.length;){const a=n[s]-t[s];if(a)return a;s++}return t.length<n.length?t.length===1&&t[0]===40+40?-1:1:t.length>n.length?n.length===1&&n[0]===40+40?1:-1:0}function nk(t,n){let s=0;const a=t.score,r=n.score;for(;s<a.length&&s<r.length;){const e=rk(a[s],r[s]);if(e)return e;s++}if(Math.abs(r.length-a.length)===1){if(bw(a))return 1;if(bw(r))return-1}return r.length-a.length}function bw(t){const n=t[t.length-1];return t.length>0&&n[n.length-1]<0}const ik={type:0,value:""},sk=/[a-zA-Z0-9_]/;function ak(t){if(!t)return[[]];if(t==="/")return[[ik]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function n(L){throw new Error(`ERR (${s})/"${E}": ${L}`)}let s=0,a=s;const r=[];let e;function d(){e&&r.push(e),e=[]}let _=0,y,E="",T="";function A(){E&&(s===0?e.push({type:0,value:E}):s===1||s===2||s===3?(e.length>1&&(y==="*"||y==="+")&&n(`A repeatable param (${E}) must be alone in its segment. eg: '/:ids+.`),e.push({type:1,value:E,regexp:T,repeatable:y==="*"||y==="+",optional:y==="*"||y==="?"})):n("Invalid state to consume buffer"),E="")}function R(){E+=y}for(;_<t.length;){if(y=t[_++],y==="\\"&&s!==2){a=s,s=4;continue}switch(s){case 0:y==="/"?(E&&A(),d()):y===":"?(A(),s=1):R();break;case 4:R(),s=a;break;case 1:y==="("?s=2:sk.test(y)?R():(A(),s=0,y!=="*"&&y!=="?"&&y!=="+"&&_--);break;case 2:y===")"?T[T.length-1]=="\\"?T=T.slice(0,-1)+y:s=3:T+=y;break;case 3:A(),s=0,y!=="*"&&y!=="?"&&y!=="+"&&_--,T="";break;default:n("Unknown state");break}}return s===2&&n(`Unfinished custom RegExp for param "${E}"`),A(),d(),r}function ok(t,n,s){const a=tk(ak(t.path),s),r=qn(a,{record:t,parent:n,children:[],alias:[]});return n&&!r.record.aliasOf==!n.record.aliasOf&&n.children.push(r),r}function lk(t,n){const s=[],a=new Map;n=ww({strict:!1,end:!0,sensitive:!1},n);function r(T){return a.get(T)}function e(T,A,R){const L=!R,B=ck(T);B.aliasOf=R&&R.record;const P=ww(n,T),V=[B];if("alias"in T){const oe=typeof T.alias=="string"?[T.alias]:T.alias;for(const K of oe)V.push(qn({},B,{components:R?R.record.components:B.components,path:K,aliasOf:R?R.record:B}))}let z,q;for(const oe of V){const{path:K}=oe;if(A&&K[0]!=="/"){const G=A.record.path,ne=G[G.length-1]==="/"?"":"/";oe.path=A.record.path+(K&&ne+K)}if(z=ok(oe,A,P),R?R.alias.push(z):(q=q||z,q!==z&&q.alias.push(z),L&&T.name&&!yw(z)&&d(T.name)),B.children){const G=B.children;for(let ne=0;ne<G.length;ne++)e(G[ne],z,R&&R.children[ne])}R=R||z,(z.record.components&&Object.keys(z.record.components).length||z.record.name||z.record.redirect)&&y(z)}return q?()=>{d(q)}:eg}function d(T){if(v6(T)){const A=a.get(T);A&&(a.delete(T),s.splice(s.indexOf(A),1),A.children.forEach(d),A.alias.forEach(d))}else{const A=s.indexOf(T);A>-1&&(s.splice(A,1),T.record.name&&a.delete(T.record.name),T.children.forEach(d),T.alias.forEach(d))}}function _(){return s}function y(T){let A=0;for(;A<s.length&&nk(T,s[A])>=0&&(T.record.path!==s[A].record.path||!_6(T,s[A]));)A++;s.splice(A,0,T),T.record.name&&!yw(T)&&a.set(T.record.name,T)}function E(T,A){let R,L={},B,P;if("name"in T&&T.name){if(R=a.get(T.name),!R)throw v1(1,{location:T});P=R.record.name,L=qn(_w(A.params,R.keys.filter(q=>!q.optional).map(q=>q.name)),T.params&&_w(T.params,R.keys.map(q=>q.name))),B=R.stringify(L)}else if("path"in T)B=T.path,R=s.find(q=>q.re.test(B)),R&&(L=R.parse(B),P=R.record.name);else{if(R=A.name?a.get(A.name):s.find(q=>q.re.test(A.path)),!R)throw v1(1,{location:T,currentLocation:A});P=R.record.name,L=qn({},A.params,T.params),B=R.stringify(L)}const V=[];let z=R;for(;z;)V.unshift(z.record),z=z.parent;return{name:P,path:B,params:L,matched:V,meta:fk(V)}}return t.forEach(T=>e(T)),{addRoute:e,resolve:E,removeRoute:d,getRoutes:_,getRecordMatcher:r}}function _w(t,n){const s={};for(const a of n)a in t&&(s[a]=t[a]);return s}function ck(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:uk(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function uk(t){const n={},s=t.props||!1;if("component"in t)n.default=s;else for(const a in t.components)n[a]=typeof s=="object"?s[a]:s;return n}function yw(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function fk(t){return t.reduce((n,s)=>qn(n,s.meta),{})}function ww(t,n){const s={};for(const a in t)s[a]=a in n?n[a]:t[a];return s}function _6(t,n){return n.children.some(s=>s===t||_6(t,s))}const y6=/#/g,hk=/&/g,dk=/\//g,pk=/=/g,gk=/\?/g,w6=/\+/g,mk=/%5B/g,vk=/%5D/g,D6=/%5E/g,bk=/%60/g,E6=/%7B/g,_k=/%7C/g,F6=/%7D/g,yk=/%20/g;function y4(t){return encodeURI(""+t).replace(_k,"|").replace(mk,"[").replace(vk,"]")}function wk(t){return y4(t).replace(E6,"{").replace(F6,"}").replace(D6,"^")}function hy(t){return y4(t).replace(w6,"%2B").replace(yk,"+").replace(y6,"%23").replace(hk,"%26").replace(bk,"`").replace(E6,"{").replace(F6,"}").replace(D6,"^")}function Dk(t){return hy(t).replace(pk,"%3D")}function Ek(t){return y4(t).replace(y6,"%23").replace(gk,"%3F")}function Fk(t){return t==null?"":Ek(t).replace(dk,"%2F")}function Q2(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function xk(t){const n={};if(t===""||t==="?")return n;const a=(t[0]==="?"?t.slice(1):t).split("&");for(let r=0;r<a.length;++r){const e=a[r].replace(w6," "),d=e.indexOf("="),_=Q2(d<0?e:e.slice(0,d)),y=d<0?null:Q2(e.slice(d+1));if(_ in n){let E=n[_];Al(E)||(E=n[_]=[E]),E.push(y)}else n[_]=y}return n}function Dw(t){let n="";for(let s in t){const a=t[s];if(s=Dk(s),a==null){a!==void 0&&(n+=(n.length?"&":"")+s);continue}(Al(a)?a.map(e=>e&&hy(e)):[a&&hy(a)]).forEach(e=>{e!==void 0&&(n+=(n.length?"&":"")+s,e!=null&&(n+="="+e))})}return n}function Tk(t){const n={};for(const s in t){const a=t[s];a!==void 0&&(n[s]=Al(a)?a.map(r=>r==null?null:""+r):a==null?a:""+a)}return n}const Ck=Symbol(""),Ew=Symbol(""),Wv=Symbol(""),w4=Symbol(""),dy=Symbol("");function Lp(){let t=[];function n(a){return t.push(a),()=>{const r=t.indexOf(a);r>-1&&t.splice(r,1)}}function s(){t=[]}return{add:n,list:()=>t.slice(),reset:s}}function Ef(t,n,s,a,r){const e=a&&(a.enterCallbacks[r]=a.enterCallbacks[r]||[]);return()=>new Promise((d,_)=>{const y=A=>{A===!1?_(v1(4,{from:s,to:n})):A instanceof Error?_(A):JS(A)?_(v1(2,{from:n,to:A})):(e&&a.enterCallbacks[r]===e&&typeof A=="function"&&e.push(A),d())},E=t.call(a&&a.instances[r],n,s,y);let T=Promise.resolve(E);t.length<3&&(T=T.then(y)),T.catch(A=>_(A))})}function F_(t,n,s,a){const r=[];for(const e of t)for(const d in e.components){let _=e.components[d];if(!(n!=="beforeRouteEnter"&&!e.instances[d]))if(Ak(_)){const E=(_.__vccOpts||_)[n];E&&r.push(Ef(E,s,a,e,d))}else{let y=_();r.push(()=>y.then(E=>{if(!E)return Promise.reject(new Error(`Couldn't resolve component "${d}" at "${e.path}"`));const T=NS(E)?E.default:E;e.components[d]=T;const R=(T.__vccOpts||T)[n];return R&&Ef(R,s,a,e,d)()}))}}return r}function Ak(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function Fw(t){const n=xa(Wv),s=xa(w4),a=cn(()=>n.resolve(mr(t.to))),r=cn(()=>{const{matched:y}=a.value,{length:E}=y,T=y[E-1],A=s.matched;if(!T||!A.length)return-1;const R=A.findIndex(g1.bind(null,T));if(R>-1)return R;const L=xw(y[E-2]);return E>1&&xw(T)===L&&A[A.length-1].path!==L?A.findIndex(g1.bind(null,y[E-2])):R}),e=cn(()=>r.value>-1&&Rk(s.params,a.value.params)),d=cn(()=>r.value>-1&&r.value===s.matched.length-1&&d6(s.params,a.value.params));function _(y={}){return Ok(y)?n[mr(t.replace)?"replace":"push"](mr(t.to)).catch(eg):Promise.resolve()}return{route:a,href:cn(()=>a.value.href),isActive:e,isExactActive:d,navigate:_}}const Sk=vs({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Fw,setup(t,{slots:n}){const s=Hf(Fw(t)),{options:a}=xa(Wv),r=cn(()=>({[Tw(t.activeClass,a.linkActiveClass,"router-link-active")]:s.isActive,[Tw(t.exactActiveClass,a.linkExactActiveClass,"router-link-exact-active")]:s.isExactActive}));return()=>{const e=n.default&&n.default(s);return t.custom?e:Ph("a",{"aria-current":s.isExactActive?t.ariaCurrentValue:null,href:s.href,onClick:s.navigate,class:r.value},e)}}}),kk=Sk;function Ok(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const n=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(n))return}return t.preventDefault&&t.preventDefault(),!0}}function Rk(t,n){for(const s in n){const a=n[s],r=t[s];if(typeof a=="string"){if(a!==r)return!1}else if(!Al(r)||r.length!==a.length||a.some((e,d)=>e!==r[d]))return!1}return!0}function xw(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const Tw=(t,n,s)=>t??n??s,Ik=vs({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:n,slots:s}){const a=xa(dy),r=cn(()=>t.route||a.value),e=xa(Ew,0),d=cn(()=>{let E=mr(e);const{matched:T}=r.value;let A;for(;(A=T[E])&&!A.components;)E++;return E}),_=cn(()=>r.value.matched[d.value]);Kp(Ew,cn(()=>d.value+1)),Kp(Ck,_),Kp(dy,r);const y=ur();return Zn(()=>[y.value,_.value,t.name],([E,T,A],[R,L,B])=>{T&&(T.instances[A]=E,L&&L!==T&&E&&E===R&&(T.leaveGuards.size||(T.leaveGuards=L.leaveGuards),T.updateGuards.size||(T.updateGuards=L.updateGuards))),E&&T&&(!L||!g1(T,L)||!R)&&(T.enterCallbacks[A]||[]).forEach(P=>P(E))},{flush:"post"}),()=>{const E=r.value,T=t.name,A=_.value,R=A&&A.components[T];if(!R)return Cw(s.default,{Component:R,route:E});const L=A.props[T],B=L?L===!0?E.params:typeof L=="function"?L(E):L:null,V=Ph(R,qn({},B,n,{onVnodeUnmounted:z=>{z.component.isUnmounted&&(A.instances[T]=null)},ref:y}));return Cw(s.default,{Component:V,route:E})||V}}});function Cw(t,n){if(!t)return null;const s=t(n);return s.length===1?s[0]:s}const Pk=Ik;function Nk(t){const n=lk(t.routes,t),s=t.parseQuery||xk,a=t.stringifyQuery||Dw,r=t.history,e=Lp(),d=Lp(),_=Lp(),y=qd(gf);let E=gf;Hd&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const T=w_.bind(null,ie=>""+ie),A=w_.bind(null,Fk),R=w_.bind(null,Q2);function L(ie,He){let pe,it;return v6(ie)?(pe=n.getRecordMatcher(ie),it=He):it=ie,n.addRoute(it,pe)}function B(ie){const He=n.getRecordMatcher(ie);He&&n.removeRoute(He)}function P(){return n.getRoutes().map(ie=>ie.record)}function V(ie){return!!n.getRecordMatcher(ie)}function z(ie,He){if(He=qn({},He||y.value),typeof ie=="string"){const he=D_(s,ie,He.path),Ue=n.resolve({path:he.path},He),Le=r.createHref(he.fullPath);return qn(he,Ue,{params:R(Ue.params),hash:Q2(he.hash),redirectedFrom:void 0,href:Le})}let pe;if("path"in ie)pe=qn({},ie,{path:D_(s,ie.path,He.path).path});else{const he=qn({},ie.params);for(const Ue in he)he[Ue]==null&&delete he[Ue];pe=qn({},ie,{params:A(he)}),He.params=A(He.params)}const it=n.resolve(pe,He),Ot=ie.hash||"";it.params=T(R(it.params));const re=BS(a,qn({},ie,{hash:wk(Ot),path:it.path})),le=r.createHref(re);return qn({fullPath:re,hash:Ot,query:a===Dw?Tk(ie.query):ie.query||{}},it,{redirectedFrom:void 0,href:le})}function q(ie){return typeof ie=="string"?D_(s,ie,y.value.path):qn({},ie)}function oe(ie,He){if(E!==ie)return v1(8,{from:He,to:ie})}function K(ie){return ce(ie)}function G(ie){return K(qn(q(ie),{replace:!0}))}function ne(ie){const He=ie.matched[ie.matched.length-1];if(He&&He.redirect){const{redirect:pe}=He;let it=typeof pe=="function"?pe(ie):pe;return typeof it=="string"&&(it=it.includes("?")||it.includes("#")?it=q(it):{path:it},it.params={}),qn({query:ie.query,hash:ie.hash,params:"path"in it?{}:ie.params},it)}}function ce(ie,He){const pe=E=z(ie),it=y.value,Ot=ie.state,re=ie.force,le=ie.replace===!0,he=ne(pe);if(he)return ce(qn(q(he),{state:typeof he=="object"?qn({},Ot,he.state):Ot,force:re,replace:le}),He||pe);const Ue=pe;Ue.redirectedFrom=He;let Le;return!re&&US(a,it,pe)&&(Le=v1(16,{to:Ue,from:it}),de(it,it,!0,!1)),(Le?Promise.resolve(Le):te(Ue,it)).catch(et=>Qc(et)?Qc(et,2)?et:Je(et):lt(et,Ue,it)).then(et=>{if(et){if(Qc(et,2))return ce(qn({replace:le},q(et.to),{state:typeof et.to=="object"?qn({},Ot,et.to.state):Ot,force:re}),He||Ue)}else et=xe(Ue,it,!0,le,Ot);return fe(Ue,it,et),et})}function U(ie,He){const pe=oe(ie,He);return pe?Promise.reject(pe):Promise.resolve()}function W(ie){const He=We.values().next().value;return He&&typeof He.runWithContext=="function"?He.runWithContext(ie):ie()}function te(ie,He){let pe;const[it,Ot,re]=Mk(ie,He);pe=F_(it.reverse(),"beforeRouteLeave",ie,He);for(const he of it)he.leaveGuards.forEach(Ue=>{pe.push(Ef(Ue,ie,He))});const le=U.bind(null,ie,He);return pe.push(le),Be(pe).then(()=>{pe=[];for(const he of e.list())pe.push(Ef(he,ie,He));return pe.push(le),Be(pe)}).then(()=>{pe=F_(Ot,"beforeRouteUpdate",ie,He);for(const he of Ot)he.updateGuards.forEach(Ue=>{pe.push(Ef(Ue,ie,He))});return pe.push(le),Be(pe)}).then(()=>{pe=[];for(const he of re)if(he.beforeEnter)if(Al(he.beforeEnter))for(const Ue of he.beforeEnter)pe.push(Ef(Ue,ie,He));else pe.push(Ef(he.beforeEnter,ie,He));return pe.push(le),Be(pe)}).then(()=>(ie.matched.forEach(he=>he.enterCallbacks={}),pe=F_(re,"beforeRouteEnter",ie,He),pe.push(le),Be(pe))).then(()=>{pe=[];for(const he of d.list())pe.push(Ef(he,ie,He));return pe.push(le),Be(pe)}).catch(he=>Qc(he,8)?he:Promise.reject(he))}function fe(ie,He,pe){_.list().forEach(it=>W(()=>it(ie,He,pe)))}function xe(ie,He,pe,it,Ot){const re=oe(ie,He);if(re)return re;const le=He===gf,he=Hd?history.state:{};pe&&(it||le?r.replace(ie.fullPath,qn({scroll:le&&he&&he.scroll},Ot)):r.push(ie.fullPath,Ot)),y.value=ie,de(ie,He,pe,le),Je()}let _e;function be(){_e||(_e=r.listen((ie,He,pe)=>{if(!Fe.listening)return;const it=z(ie),Ot=ne(it);if(Ot){ce(qn(Ot,{replace:!0}),it).catch(eg);return}E=it;const re=y.value;Hd&&GS(pw(re.fullPath,pe.delta),Hv()),te(it,re).catch(le=>Qc(le,12)?le:Qc(le,2)?(ce(le.to,it).then(he=>{Qc(he,20)&&!pe.delta&&pe.type===m1.pop&&r.go(-1,!1)}).catch(eg),Promise.reject()):(pe.delta&&r.go(-pe.delta,!1),lt(le,it,re))).then(le=>{le=le||xe(it,re,!1),le&&(pe.delta&&!Qc(le,8)?r.go(-pe.delta,!1):pe.type===m1.pop&&Qc(le,20)&&r.go(-1,!1)),fe(it,re,le)}).catch(eg)}))}let $e=Lp(),je=Lp(),Ee;function lt(ie,He,pe){Je(ie);const it=je.list();return it.length?it.forEach(Ot=>Ot(ie,He,pe)):console.error(ie),Promise.reject(ie)}function Xe(){return Ee&&y.value!==gf?Promise.resolve():new Promise((ie,He)=>{$e.add([ie,He])})}function Je(ie){return Ee||(Ee=!ie,be(),$e.list().forEach(([He,pe])=>ie?pe(ie):He()),$e.reset()),ie}function de(ie,He,pe,it){const{scrollBehavior:Ot}=t;if(!Hd||!Ot)return Promise.resolve();const re=!pe&&VS(pw(ie.fullPath,0))||(it||!pe)&&history.state&&history.state.scroll||null;return uc().then(()=>Ot(ie,He,re)).then(le=>le&&jS(le)).catch(le=>lt(le,ie,He))}const Se=ie=>r.go(ie);let rt;const We=new Set,Fe={currentRoute:y,listening:!0,addRoute:L,removeRoute:B,hasRoute:V,getRoutes:P,resolve:z,options:t,push:K,replace:G,go:Se,back:()=>Se(-1),forward:()=>Se(1),beforeEach:e.add,beforeResolve:d.add,afterEach:_.add,onError:je.add,isReady:Xe,install(ie){const He=this;ie.component("RouterLink",kk),ie.component("RouterView",Pk),ie.config.globalProperties.$router=He,Object.defineProperty(ie.config.globalProperties,"$route",{enumerable:!0,get:()=>mr(y)}),Hd&&!rt&&y.value===gf&&(rt=!0,K(r.location).catch(Ot=>{}));const pe={};for(const Ot in gf)Object.defineProperty(pe,Ot,{get:()=>y.value[Ot],enumerable:!0});ie.provide(Wv,He),ie.provide(w4,jy(pe)),ie.provide(dy,y);const it=ie.unmount;We.add(ie),ie.unmount=function(){We.delete(ie),We.size<1&&(E=gf,_e&&_e(),_e=null,y.value=gf,rt=!1,Ee=!1),it()}}};function Be(ie){return ie.reduce((He,pe)=>He.then(()=>W(pe)),Promise.resolve())}return Fe}function Mk(t,n){const s=[],a=[],r=[],e=Math.max(n.matched.length,t.matched.length);for(let d=0;d<e;d++){const _=n.matched[d];_&&(t.matched.find(E=>g1(E,_))?a.push(_):s.push(_));const y=t.matched[d];y&&(n.matched.find(E=>g1(E,y))||r.push(y))}return[s,a,r]}function Lk(){return xa(Wv)}function x6(){return xa(w4)}function py(t,n={},s){for(const a in t){const r=t[a],e=s?`${s}:${a}`:a;typeof r=="object"&&r!==null?py(r,n,e):typeof r=="function"&&(n[e]=r)}return n}const Bk={run:t=>t()},Uk=()=>Bk,T6=typeof console.createTask<"u"?console.createTask:Uk;function $k(t,n){const s=n.shift(),a=T6(s);return t.reduce((r,e)=>r.then(()=>a.run(()=>e(...n))),Promise.resolve())}function Hk(t,n){const s=n.shift(),a=T6(s);return Promise.all(t.map(r=>a.run(()=>r(...n))))}function x_(t,n){for(const s of[...t])s(n)}class Wk{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(n,s,a={}){if(!n||typeof s!="function")return()=>{};const r=n;let e;for(;this._deprecatedHooks[n];)e=this._deprecatedHooks[n],n=e.to;if(e&&!a.allowDeprecated){let d=e.message;d||(d=`${r} hook has been deprecated`+(e.to?`, please use ${e.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(d)||(console.warn(d),this._deprecatedMessages.add(d))}if(!s.name)try{Object.defineProperty(s,"name",{get:()=>"_"+n.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[n]=this._hooks[n]||[],this._hooks[n].push(s),()=>{s&&(this.removeHook(n,s),s=void 0)}}hookOnce(n,s){let a,r=(...e)=>(typeof a=="function"&&a(),a=void 0,r=void 0,s(...e));return a=this.hook(n,r),a}removeHook(n,s){if(this._hooks[n]){const a=this._hooks[n].indexOf(s);a!==-1&&this._hooks[n].splice(a,1),this._hooks[n].length===0&&delete this._hooks[n]}}deprecateHook(n,s){this._deprecatedHooks[n]=typeof s=="string"?{to:s}:s;const a=this._hooks[n]||[];delete this._hooks[n];for(const r of a)this.hook(n,r)}deprecateHooks(n){Object.assign(this._deprecatedHooks,n);for(const s in n)this.deprecateHook(s,n[s])}addHooks(n){const s=py(n),a=Object.keys(s).map(r=>this.hook(r,s[r]));return()=>{for(const r of a.splice(0,a.length))r()}}removeHooks(n){const s=py(n);for(const a in s)this.removeHook(a,s[a])}removeAllHooks(){for(const n in this._hooks)delete this._hooks[n]}callHook(n,...s){return s.unshift(n),this.callHookWith($k,n,...s)}callHookParallel(n,...s){return s.unshift(n),this.callHookWith(Hk,n,...s)}callHookWith(n,s,...a){const r=this._before||this._after?{name:s,args:a,context:{}}:void 0;this._before&&x_(this._before,r);const e=n(s in this._hooks?[...this._hooks[s]]:[],a);return e instanceof Promise?e.finally(()=>{this._after&&r&&x_(this._after,r)}):(this._after&&r&&x_(this._after,r),e)}beforeEach(n){return this._before=this._before||[],this._before.push(n),()=>{if(this._before!==void 0){const s=this._before.indexOf(n);s!==-1&&this._before.splice(s,1)}}}afterEach(n){return this._after=this._after||[],this._after.push(n),()=>{if(this._after!==void 0){const s=this._after.indexOf(n);s!==-1&&this._after.splice(s,1)}}}}function zk(){return new Wk}function jk(t){return Array.isArray(t)?t:[t]}const Gk=["title","titleTemplate","script","style","noscript"],I2=["base","meta","link","style","script","noscript"],Vk=["title","titleTemplate","templateParams","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"],Yk=["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"],C6=["tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"],Kk=typeof window<"u";function A6(t){let n=9;for(let s=0;s<t.length;)n=Math.imul(n^t.charCodeAt(s++),9**9);return((n^n>>>9)+65536).toString(16).substring(1,8).toLowerCase()}function Aw(t){return t._h||A6(t._d?t._d:`${t.tag}:${t.textContent||t.innerHTML||""}:${Object.entries(t.props).map(([n,s])=>`${n}:${String(s)}`).join(",")}`)}function S6(t,n){const{props:s,tag:a}=t;if(Yk.includes(a))return a;if(a==="link"&&s.rel==="canonical")return"canonical";if(s.charset)return"charset";const r=["id"];a==="meta"&&r.push("name","property","http-equiv");for(const e of r)if(typeof s[e]<"u"){const d=String(s[e]);return n&&!n(d)?!1:`${a}:${e}:${d}`}return!1}function Sw(t,n){return t==null?n||null:typeof t=="function"?t(n):t}async function qk(t,n,s){const a={tag:t,props:await k6(typeof n=="object"&&typeof n!="function"&&!(n instanceof Promise)?{...n}:{[["script","noscript","style"].includes(t)?"innerHTML":"textContent"]:n},["templateParams","titleTemplate"].includes(t))};return C6.forEach(r=>{const e=typeof a.props[r]<"u"?a.props[r]:s[r];typeof e<"u"&&((!["innerHTML","textContent"].includes(r)||Gk.includes(a.tag))&&(a[r]=e),delete a.props[r])}),a.props.body&&(a.tagPosition="bodyClose",delete a.props.body),a.props.children&&(a.innerHTML=a.props.children,delete a.props.children),a.tag==="script"&&(typeof a.innerHTML=="object"&&(a.innerHTML=JSON.stringify(a.innerHTML),a.props.type=a.props.type||"application/json"),a.innerHTML&&["application/ld+json","application/json"].includes(a.props.type)&&(a.innerHTML=a.innerHTML.replace(/</g,"\\u003C"))),Array.isArray(a.props.content)?a.props.content.map(r=>({...a,props:{...a.props,content:r}})):a}function Qk(t){return typeof t=="object"&&!Array.isArray(t)&&(t=Object.keys(t).filter(n=>t[n])),(Array.isArray(t)?t.join(" "):t).split(" ").filter(n=>n.trim()).filter(Boolean).join(" ")}async function k6(t,n){for(const s of Object.keys(t)){if(s==="class"){t[s]=Qk(t[s]);continue}if(t[s]instanceof Promise&&(t[s]=await t[s]),!n&&!C6.includes(s)){const a=String(t[s]),r=s.startsWith("data-");a==="true"||a===""?t[s]=r?"true":!0:t[s]||(r&&a==="false"?t[s]="false":delete t[s])}}return t}const Xk=10;async function Jk(t){const n=[];return Object.entries(t.resolvedInput).filter(([s,a])=>typeof a<"u"&&Vk.includes(s)).forEach(([s,a])=>{const r=jk(a);n.push(...r.map(e=>qk(s,e,t)).flat())}),(await Promise.all(n)).flat().filter(Boolean).map((s,a)=>(s._e=t._i,t.mode&&(s._m=t.mode),s._p=(t._i<<Xk)+a,s))}const kw={base:-10,title:10},Ow={critical:-80,high:-10,low:20};function X2(t){let n=100;const s=t.tagPriority;return typeof s=="number"?s:(t.tag==="meta"?(t.props["http-equiv"]==="content-security-policy"&&(n=-30),t.props.charset&&(n=-20),t.props.name==="viewport"&&(n=-15)):t.tag==="link"&&t.props.rel==="preconnect"?n=20:t.tag in kw&&(n=kw[t.tag]),typeof s=="string"&&s in Ow?n+Ow[s]:n)}const Zk=[{prefix:"before:",offset:-1},{prefix:"after:",offset:1}],mf="%separator";function lh(t,n,s){if(typeof t!="string"||!t.includes("%"))return t;function a(d){let _;return["s","pageTitle"].includes(d)?_=n.pageTitle:d.includes(".")?_=d.split(".").reduce((y,E)=>y&&y[E]||void 0,n):_=n[d],typeof _<"u"?(_||"").replace(/"/g,'\\"'):!1}let r=t;try{r=decodeURI(t)}catch{}return(r.match(/%(\w+\.+\w+)|%(\w+)/g)||[]).sort().reverse().forEach(d=>{const _=a(d.slice(1));typeof _=="string"&&(t=t.replace(new RegExp(`\\${d}(\\W|$)`,"g"),(y,E)=>`${_}${E}`).trim())}),t.includes(mf)&&(t.endsWith(mf)&&(t=t.slice(0,-mf.length).trim()),t.startsWith(mf)&&(t=t.slice(mf.length).trim()),t=t.replace(new RegExp(`\\${mf}\\s*\\${mf}`,"g"),mf),t=lh(t,{separator:s},s)),t}async function e7(t){const n={tag:t.tagName.toLowerCase(),props:await k6(t.getAttributeNames().reduce((s,a)=>({...s,[a]:t.getAttribute(a)}),{})),innerHTML:t.innerHTML};return n._d=S6(n),n}async function t7(t,n={}){var T;const s=n.document||t.resolvedOptions.document;if(!s)return;const a={shouldRender:t.dirty,tags:[]};if(await t.hooks.callHook("dom:beforeRender",a),!a.shouldRender)return;const r=(await t.resolveTags()).map(A=>({tag:A,id:I2.includes(A.tag)?Aw(A):A.tag,shouldRender:!0}));let e=t._dom;if(!e){e={elMap:{htmlAttrs:s.documentElement,bodyAttrs:s.body}};for(const A of["body","head"]){const R=(T=s==null?void 0:s[A])==null?void 0:T.children;for(const L of[...R].filter(B=>I2.includes(B.tagName.toLowerCase())))e.elMap[L.getAttribute("data-hid")||Aw(await e7(L))]=L}}e.pendingSideEffects={...e.sideEffects||{}},e.sideEffects={};function d(A,R,L){const B=`${A}:${R}`;e.sideEffects[B]=L,delete e.pendingSideEffects[B]}function _({id:A,$el:R,tag:L}){const B=L.tag.endsWith("Attrs");e.elMap[A]=R,B||(["textContent","innerHTML"].forEach(P=>{L[P]&&L[P]!==R[P]&&(R[P]=L[P])}),d(A,"el",()=>{e.elMap[A].remove(),delete e.elMap[A]})),Object.entries(L.props).forEach(([P,V])=>{const z=`attr:${P}`;if(P==="class")for(const q of(V||"").split(" ").filter(Boolean))B&&d(A,`${z}:${q}`,()=>R.classList.remove(q)),!R.classList.contains(q)&&R.classList.add(q);else R.getAttribute(P)!==V&&R.setAttribute(P,V===!0?"":String(V)),B&&d(A,z,()=>R.removeAttribute(P))})}const y=[],E={bodyClose:void 0,bodyOpen:void 0,head:void 0};for(const A of r){const{tag:R,shouldRender:L,id:B}=A;if(L){if(R.tag==="title"){s.title=R.textContent;continue}A.$el=A.$el||e.elMap[B],A.$el?_(A):I2.includes(R.tag)&&y.push(A)}}for(const A of y){const R=A.tag.tagPosition||"head";A.$el=s.createElement(A.tag.tag),_(A),E[R]=E[R]||s.createDocumentFragment(),E[R].appendChild(A.$el)}for(const A of r)await t.hooks.callHook("dom:renderTag",A,s,d);E.head&&s.head.appendChild(E.head),E.bodyOpen&&s.body.insertBefore(E.bodyOpen,s.body.firstChild),E.bodyClose&&s.body.appendChild(E.bodyClose),Object.values(e.pendingSideEffects).forEach(A=>A()),t._dom=e,t.dirty=!1,await t.hooks.callHook("dom:rendered",{renders:r})}async function r7(t,n={}){const s=n.delayFn||(a=>setTimeout(a,10));return t._domUpdatePromise=t._domUpdatePromise||new Promise(a=>s(async()=>{await t7(t,n),delete t._domUpdatePromise,a()}))}function n7(t){return n=>{var a,r;const s=((r=(a=n.resolvedOptions.document)==null?void 0:a.head.querySelector('script[id="unhead:payload"]'))==null?void 0:r.innerHTML)||!1;return s&&n.push(JSON.parse(s)),{mode:"client",hooks:{"entries:updated":function(e){r7(e,t)}}}}}const i7=["templateParams","htmlAttrs","bodyAttrs"],s7={hooks:{"tag:normalise":function({tag:t}){["hid","vmid","key"].forEach(a=>{t.props[a]&&(t.key=t.props[a],delete t.props[a])});const s=S6(t)||(t.key?`${t.tag}:${t.key}`:!1);s&&(t._d=s)},"tags:resolve":function(t){const n={};t.tags.forEach(a=>{const r=(a.key?`${a.tag}:${a.key}`:a._d)||a._p,e=n[r];if(e){let _=a==null?void 0:a.tagDuplicateStrategy;if(!_&&i7.includes(a.tag)&&(_="merge"),_==="merge"){const y=e.props;["class","style"].forEach(E=>{a.props[E]&&y[E]&&(E==="style"&&!y[E].endsWith(";")&&(y[E]+=";"),a.props[E]=`${y[E]} ${a.props[E]}`)}),n[r].props={...y,...a.props};return}else if(a._e===e._e){e._duped=e._duped||[],a._d=`${e._d}:${e._duped.length+1}`,e._duped.push(a);return}else if(X2(a)>X2(e))return}const d=Object.keys(a.props).length+(a.innerHTML?1:0)+(a.textContent?1:0);if(I2.includes(a.tag)&&d===0){delete n[r];return}n[r]=a});const s=[];Object.values(n).forEach(a=>{const r=a._duped;delete a._duped,s.push(a),r&&s.push(...r)}),t.tags=s,t.tags=t.tags.filter(a=>!(a.tag==="meta"&&(a.props.name||a.props.property)&&!a.props.content))}}},a7={mode:"server",hooks:{"tags:resolve":function(t){const n={};t.tags.filter(s=>["titleTemplate","templateParams","title"].includes(s.tag)&&s._m==="server").forEach(s=>{n[s.tag]=s.tag.startsWith("title")?s.textContent:s.props}),Object.keys(n).length&&t.tags.push({tag:"script",innerHTML:JSON.stringify(n),props:{id:"unhead:payload",type:"application/json"}})}}},Rw=["script","link","bodyAttrs"];function Iw(t){const n={},s={};return Object.entries(t.props).forEach(([a,r])=>{a.startsWith("on")&&typeof r=="function"?s[a]=r:n[a]=r}),{props:n,eventHandlers:s}}const o7={hooks:{"ssr:render":function(t){t.tags=t.tags.map(n=>(!Rw.includes(n.tag)||!Object.entries(n.props).find(([s,a])=>s.startsWith("on")&&typeof a=="function")||(n.props=Iw(n).props),n))},"tags:resolve":function(t){t.tags=t.tags.map(n=>{if(!Rw.includes(n.tag))return n;const{props:s,eventHandlers:a}=Iw(n);return Object.keys(a).length&&(n.props=s,n._eventHandlers=a),n})},"dom:renderTag":function(t,n,s){if(!t.tag._eventHandlers)return;const a=t.tag.tag==="bodyAttrs"?n.defaultView:t.$el;Object.entries(t.tag._eventHandlers).forEach(([r,e])=>{const d=`${t.tag._d||t.tag._p}:${r}`,_=r.slice(2).toLowerCase(),y=`data-h-${_}`;if(s(t.id,d,()=>{}),t.$el.hasAttribute(y))return;const E=e;t.$el.setAttribute(y,""),a.addEventListener(_,E),t.entry&&s(t.id,d,()=>{a.removeEventListener(_,E),t.$el.removeAttribute(y)})})}}},l7=["link","style","script","noscript"],c7={hooks:{"tag:normalise":({tag:t})=>{t.key&&l7.includes(t.tag)&&(t.props["data-hid"]=t._h=A6(t.key))}}},u7={hooks:{"tags:resolve":t=>{const n=s=>{var a;return(a=t.tags.find(r=>r._d===s))==null?void 0:a._p};for(const{prefix:s,offset:a}of Zk)for(const r of t.tags.filter(e=>typeof e.tagPriority=="string"&&e.tagPriority.startsWith(s))){const e=n(r.tagPriority.replace(s,""));typeof e<"u"&&(r._p=e+a)}t.tags.sort((s,a)=>s._p-a._p).sort((s,a)=>X2(s)-X2(a))}}},f7={hooks:{"tags:resolve":t=>{var d;const{tags:n}=t,s=(d=n.find(_=>_.tag==="title"))==null?void 0:d.textContent,a=n.findIndex(_=>_.tag==="templateParams"),r=a!==-1?n[a].props:{},e=r.separator||"|";delete r.separator,r.pageTitle=lh(r.pageTitle||s||"",r,e);for(const _ of n)_.processTemplateParams!==!1&&(["titleTemplate","title"].includes(_.tag)&&typeof _.textContent=="string"?_.textContent=lh(_.textContent,r,e):_.tag==="meta"&&typeof _.props.content=="string"?_.props.content=lh(_.props.content,r,e):_.tag==="link"&&typeof _.props.href=="string"?_.props.href=lh(_.props.href,r,e):_.processTemplateParams===!0&&(_.innerHTML?_.innerHTML=lh(_.innerHTML,r,e):_.textContent&&(_.textContent=lh(_.textContent,r,e))));t.tags=n.filter(_=>_.tag!=="templateParams")}}},h7={hooks:{"tags:resolve":t=>{const{tags:n}=t;let s=n.findIndex(r=>r.tag==="titleTemplate");const a=n.findIndex(r=>r.tag==="title");if(a!==-1&&s!==-1){const r=Sw(n[s].textContent,n[a].textContent);r!==null?n[a].textContent=r||n[a].textContent:delete n[a]}else if(s!==-1){const r=Sw(n[s].textContent);r!==null&&(n[s].textContent=r,n[s].tag="title",s=-1)}s!==-1&&delete n[s],t.tags=n.filter(Boolean)}}};function d7(t={}){const n=p7(t);return n.use(n7()),n}function Pw(t,n){return!t||t==="server"&&n||t==="client"&&!n}function p7(t={}){const n=zk();n.addHooks(t.hooks||{}),t.document=t.document||(Kk?document:void 0);const s=!t.document;t.plugins=[s7,a7,o7,c7,u7,f7,h7,...(t==null?void 0:t.plugins)||[]];const a=()=>{d.dirty=!0,n.callHook("entries:updated",d)};let r=0,e=[];const d={dirty:!1,resolvedOptions:t,hooks:n,headEntries(){return e},use(_){const y=typeof _=="function"?_(d):_;Pw(y.mode,s)&&n.addHooks(y.hooks||{})},push(_,y){y==null||delete y.head;const E={_i:r++,input:_,...y};return Pw(E.mode,s)&&(e.push(E),a()),{dispose(){e=e.filter(T=>T._i!==E._i),n.callHook("entries:updated",d),a()},patch(T){e=e.map(A=>(A._i===E._i&&(A.input=E.input=T),A)),a()}}},async resolveTags(){const _={tags:[],entries:[...e]};await n.callHook("entries:resolve",_);for(const y of _.entries){const E=y.resolvedInput||y.input;if(y.resolvedInput=await(y.transform?y.transform(E):E),y.resolvedInput)for(const T of await Jk(y)){const A={tag:T,entry:y,resolvedOptions:d.resolvedOptions};await n.callHook("tag:normalise",A),_.tags.push(A.tag)}}return await n.callHook("tags:beforeResolve",_),await n.callHook("tags:resolve",_),_.tags},ssr:s};return t.plugins.forEach(_=>d.use(_)),d.hooks.callHook("init",d),d}const g7=d4.startsWith("3");function m7(t){return typeof t=="function"?t():mr(t)}function gy(t,n=""){if(t instanceof Promise)return t;const s=m7(t);return!t||!s?s:Array.isArray(s)?s.map(a=>gy(a,n)):typeof s=="object"?Object.fromEntries(Object.entries(s).map(([a,r])=>a==="titleTemplate"||a.startsWith("on")?[a,mr(r)]:[a,gy(r,a)])):s}const v7={hooks:{"entries:resolve":function(t){for(const n of t.entries)n.resolvedInput=gy(n.input)}}},b7="usehead";function _7(t){return{install(s){g7&&(s.config.globalProperties.$unhead=t,s.config.globalProperties.$head=t,s.provide(b7,t))}}.install}function y7(t={}){t.domDelayFn=t.domDelayFn||(s=>uc(()=>setTimeout(()=>s(),0)));const n=d7(t);return n.use(v7),n.install=_7(n),n}function w7(t){try{return JSON.parse(t||"{}")}catch(n){return console.error("[SSG] On state deserialization -",n,t),{}}}function D7(t){return document.readyState==="loading"?new Promise(n=>{document.addEventListener("DOMContentLoaded",()=>n(t))}):Promise.resolve(t)}const E7=vs({setup(t,{slots:n}){const s=ur(!1);return Sl(()=>s.value=!0),()=>s.value?n.default&&n.default({}):n.placeholder&&n.placeholder({})}});function F7(t,n,s,a={}){const{transformState:r,registerComponents:e=!0,useHead:d=!0,rootContainer:_="#app"}=a,y=typeof window<"u";async function E(T=!1,A){const R=T?v4(t):QF(t);let L;d&&(L=y7(),R.use(L));const B=Nk({history:T?QS(n.base):XS(n.base),...n}),{routes:P}=n;e&&R.component("ClientOnly",E7);const V=[],oe={app:R,head:L,isClient:y,router:B,routes:P,onSSRAppRendered:T?()=>{}:ce=>V.push(ce),triggerOnSSRAppRendered:()=>Promise.all(V.map(ce=>ce())),initialState:{},transformState:r,routePath:A};T&&(await D7(),oe.initialState=(r==null?void 0:r(window.__INITIAL_STATE__||{}))||w7(window.__INITIAL_STATE__)),await(s==null?void 0:s(oe)),R.use(B);let K,G=!0;if(B.beforeEach((ce,U,W)=>{(G||K&&K===ce.path)&&(G=!1,K=ce.path,ce.meta.state=oe.initialState),W()}),!T){const ce=oe.routePath??"/";B.push(ce),await B.isReady(),oe.initialState=B.currentRoute.value.meta.state||{}}const ne=oe.initialState;return{...oe,initialState:ne}}return y&&(async()=>{const{app:T,router:A}=await E(!0);await A.isReady(),T.mount(_,!0)})(),E}var x7=function(){function t(n,s){s===void 0&&(s=[]),this._eventType=n,this._eventFunctions=s}return t.prototype.init=function(){var n=this;this._eventFunctions.forEach(function(s){typeof window<"u"&&window.addEventListener(n._eventType,s)})},t}(),J2=globalThis&&globalThis.__assign||function(){return J2=Object.assign||function(t){for(var n,s=1,a=arguments.length;s<a;s++){n=arguments[s];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},J2.apply(this,arguments)},Z2={alwaysOpen:!1,activeClasses:"bg-gray-100 dark:bg-gray-800 text-gray-900 dark:text-white",inactiveClasses:"text-gray-500 dark:text-gray-400",onOpen:function(){},onClose:function(){},onToggle:function(){}},O6=function(){function t(n,s){n===void 0&&(n=[]),s===void 0&&(s=Z2),this._items=n,this._options=J2(J2({},Z2),s),this._init()}return t.prototype._init=function(){var n=this;this._items.length&&this._items.map(function(s){s.active&&n.open(s.id),s.triggerEl.addEventListener("click",function(){n.toggle(s.id)})})},t.prototype.getItem=function(n){return this._items.filter(function(s){return s.id===n})[0]},t.prototype.open=function(n){var s,a,r=this,e=this.getItem(n);this._options.alwaysOpen||this._items.map(function(d){var _,y;d!==e&&((_=d.triggerEl.classList).remove.apply(_,r._options.activeClasses.split(" ")),(y=d.triggerEl.classList).add.apply(y,r._options.inactiveClasses.split(" ")),d.targetEl.classList.add("hidden"),d.triggerEl.setAttribute("aria-expanded","false"),d.active=!1,d.iconEl&&d.iconEl.classList.remove("rotate-180"))}),(s=e.triggerEl.classList).add.apply(s,this._options.activeClasses.split(" ")),(a=e.triggerEl.classList).remove.apply(a,this._options.inactiveClasses.split(" ")),e.triggerEl.setAttribute("aria-expanded","true"),e.targetEl.classList.remove("hidden"),e.active=!0,e.iconEl&&e.iconEl.classList.add("rotate-180"),this._options.onOpen(this,e)},t.prototype.toggle=function(n){var s=this.getItem(n);s.active?this.close(n):this.open(n),this._options.onToggle(this,s)},t.prototype.close=function(n){var s,a,r=this.getItem(n);(s=r.triggerEl.classList).remove.apply(s,this._options.activeClasses.split(" ")),(a=r.triggerEl.classList).add.apply(a,this._options.inactiveClasses.split(" ")),r.targetEl.classList.add("hidden"),r.triggerEl.setAttribute("aria-expanded","false"),r.active=!1,r.iconEl&&r.iconEl.classList.remove("rotate-180"),this._options.onClose(this,r)},t}();function D4(){document.querySelectorAll("[data-accordion]").forEach(function(t){var n=t.getAttribute("data-accordion"),s=t.getAttribute("data-active-classes"),a=t.getAttribute("data-inactive-classes"),r=[];t.querySelectorAll("[data-accordion-target]").forEach(function(e){if(e.closest("[data-accordion]")===t){var d={id:e.getAttribute("data-accordion-target"),triggerEl:e,targetEl:document.querySelector(e.getAttribute("data-accordion-target")),iconEl:e.querySelector("[data-accordion-icon]"),active:e.getAttribute("aria-expanded")==="true"};r.push(d)}}),new O6(r,{alwaysOpen:n==="open",activeClasses:s||Z2.activeClasses,inactiveClasses:a||Z2.inactiveClasses})})}typeof window<"u"&&(window.Accordion=O6,window.initAccordions=D4);var ev=globalThis&&globalThis.__assign||function(){return ev=Object.assign||function(t){for(var n,s=1,a=arguments.length;s<a;s++){n=arguments[s];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ev.apply(this,arguments)},Nw={onCollapse:function(){},onExpand:function(){},onToggle:function(){}},R6=function(){function t(n,s,a){n===void 0&&(n=null),s===void 0&&(s=null),a===void 0&&(a=Nw),this._targetEl=n,this._triggerEl=s,this._options=ev(ev({},Nw),a),this._visible=!1,this._init()}return t.prototype._init=function(){var n=this;this._triggerEl&&(this._triggerEl.hasAttribute("aria-expanded")?this._visible=this._triggerEl.getAttribute("aria-expanded")==="true":this._visible=!this._targetEl.classList.contains("hidden"),this._triggerEl.addEventListener("click",function(){n.toggle()}))},t.prototype.collapse=function(){this._targetEl.classList.add("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","false"),this._visible=!1,this._options.onCollapse(this)},t.prototype.expand=function(){this._targetEl.classList.remove("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","true"),this._visible=!0,this._options.onExpand(this)},t.prototype.toggle=function(){this._visible?this.collapse():this.expand(),this._options.onToggle(this)},t}();function E4(){document.querySelectorAll("[data-collapse-toggle]").forEach(function(t){var n=t.getAttribute("data-collapse-toggle"),s=document.getElementById(n);s?new R6(s,t):console.error('The target element with id "'.concat(n,'" does not exist. Please check the data-collapse-toggle attribute.'))})}typeof window<"u"&&(window.Collapse=R6,window.initCollapses=E4);var hh=globalThis&&globalThis.__assign||function(){return hh=Object.assign||function(t){for(var n,s=1,a=arguments.length;s<a;s++){n=arguments[s];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},hh.apply(this,arguments)},P2={defaultPosition:0,indicators:{items:[],activeClasses:"bg-white dark:bg-gray-800",inactiveClasses:"bg-white/50 dark:bg-gray-800/50 hover:bg-white dark:hover:bg-gray-800"},interval:3e3,onNext:function(){},onPrev:function(){},onChange:function(){}},I6=function(){function t(n,s){n===void 0&&(n=[]),s===void 0&&(s=P2),this._items=n,this._options=hh(hh(hh({},P2),s),{indicators:hh(hh({},P2.indicators),s.indicators)}),this._activeItem=this.getItem(this._options.defaultPosition),this._indicators=this._options.indicators.items,this._intervalDuration=this._options.interval,this._intervalInstance=null,this._init()}return t.prototype._init=function(){var n=this;this._items.map(function(s){s.el.classList.add("absolute","inset-0","transition-transform","transform")}),this._getActiveItem()?this.slideTo(this._getActiveItem().position):this.slideTo(0),this._indicators.map(function(s,a){s.el.addEventListener("click",function(){n.slideTo(a)})})},t.prototype.getItem=function(n){return this._items[n]},t.prototype.slideTo=function(n){var s=this._items[n],a={left:s.position===0?this._items[this._items.length-1]:this._items[s.position-1],middle:s,right:s.position===this._items.length-1?this._items[0]:this._items[s.position+1]};this._rotate(a),this._setActiveItem(s),this._intervalInstance&&(this.pause(),this.cycle()),this._options.onChange(this)},t.prototype.next=function(){var n=this._getActiveItem(),s=null;n.position===this._items.length-1?s=this._items[0]:s=this._items[n.position+1],this.slideTo(s.position),this._options.onNext(this)},t.prototype.prev=function(){var n=this._getActiveItem(),s=null;n.position===0?s=this._items[this._items.length-1]:s=this._items[n.position-1],this.slideTo(s.position),this._options.onPrev(this)},t.prototype._rotate=function(n){this._items.map(function(s){s.el.classList.add("hidden")}),n.left.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-20"),n.left.el.classList.add("-translate-x-full","z-10"),n.middle.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-10"),n.middle.el.classList.add("translate-x-0","z-20"),n.right.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-20"),n.right.el.classList.add("translate-x-full","z-10")},t.prototype.cycle=function(){var n=this;typeof window<"u"&&(this._intervalInstance=window.setInterval(function(){n.next()},this._intervalDuration))},t.prototype.pause=function(){clearInterval(this._intervalInstance)},t.prototype._getActiveItem=function(){return this._activeItem},t.prototype._setActiveItem=function(n){var s,a,r=this;this._activeItem=n;var e=n.position;this._indicators.length&&(this._indicators.map(function(d){var _,y;d.el.setAttribute("aria-current","false"),(_=d.el.classList).remove.apply(_,r._options.indicators.activeClasses.split(" ")),(y=d.el.classList).add.apply(y,r._options.indicators.inactiveClasses.split(" "))}),(s=this._indicators[e].el.classList).add.apply(s,this._options.indicators.activeClasses.split(" ")),(a=this._indicators[e].el.classList).remove.apply(a,this._options.indicators.inactiveClasses.split(" ")),this._indicators[e].el.setAttribute("aria-current","true"))},t}();function F4(){document.querySelectorAll("[data-carousel]").forEach(function(t){var n=t.getAttribute("data-carousel-interval"),s=t.getAttribute("data-carousel")==="slide",a=[],r=0;t.querySelectorAll("[data-carousel-item]").length&&Array.from(t.querySelectorAll("[data-carousel-item]")).map(function(E,T){a.push({position:T,el:E}),E.getAttribute("data-carousel-item")==="active"&&(r=T)});var e=[];t.querySelectorAll("[data-carousel-slide-to]").length&&Array.from(t.querySelectorAll("[data-carousel-slide-to]")).map(function(E){e.push({position:parseInt(E.getAttribute("data-carousel-slide-to")),el:E})});var d=new I6(a,{defaultPosition:r,indicators:{items:e},interval:n||P2.interval});s&&d.cycle();var _=t.querySelector("[data-carousel-next]"),y=t.querySelector("[data-carousel-prev]");_&&_.addEventListener("click",function(){d.next()}),y&&y.addEventListener("click",function(){d.prev()})})}typeof window<"u"&&(window.Carousel=I6,window.initCarousels=F4);var tv=globalThis&&globalThis.__assign||function(){return tv=Object.assign||function(t){for(var n,s=1,a=arguments.length;s<a;s++){n=arguments[s];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},tv.apply(this,arguments)},Mw={transition:"transition-opacity",duration:300,timing:"ease-out",onHide:function(){}},P6=function(){function t(n,s,a){n===void 0&&(n=null),s===void 0&&(s=null),a===void 0&&(a=Mw),this._targetEl=n,this._triggerEl=s,this._options=tv(tv({},Mw),a),this._init()}return t.prototype._init=function(){var n=this;this._triggerEl&&this._triggerEl.addEventListener("click",function(){n.hide()})},t.prototype.hide=function(){var n=this;this._targetEl.classList.add(this._options.transition,"duration-".concat(this._options.duration),this._options.timing,"opacity-0"),setTimeout(function(){n._targetEl.classList.add("hidden")},this._options.duration),this._options.onHide(this,this._targetEl)},t}();function x4(){document.querySelectorAll("[data-dismiss-target]").forEach(function(t){var n=t.getAttribute("data-dismiss-target"),s=document.querySelector(n);s?new P6(s,t):console.error('The dismiss element with id "'.concat(n,'" does not exist. Please check the data-dismiss-target attribute.'))})}typeof window<"u"&&(window.Dismiss=P6,window.initDismisses=x4);var Ga="top",Wo="bottom",zo="right",Va="left",T4="auto",Hg=[Ga,Wo,zo,Va],b1="start",wg="end",T7="clippingParents",N6="viewport",Bp="popper",C7="reference",Lw=Hg.reduce(function(t,n){return t.concat([n+"-"+b1,n+"-"+wg])},[]),M6=[].concat(Hg,[T4]).reduce(function(t,n){return t.concat([n,n+"-"+b1,n+"-"+wg])},[]),A7="beforeRead",S7="read",k7="afterRead",O7="beforeMain",R7="main",I7="afterMain",P7="beforeWrite",N7="write",M7="afterWrite",L7=[A7,S7,k7,O7,R7,I7,P7,N7,M7];function oc(t){return t?(t.nodeName||"").toLowerCase():null}function vo(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var n=t.ownerDocument;return n&&n.defaultView||window}return t}function Ah(t){var n=vo(t).Element;return t instanceof n||t instanceof Element}function $o(t){var n=vo(t).HTMLElement;return t instanceof n||t instanceof HTMLElement}function C4(t){if(typeof ShadowRoot>"u")return!1;var n=vo(t).ShadowRoot;return t instanceof n||t instanceof ShadowRoot}function B7(t){var n=t.state;Object.keys(n.elements).forEach(function(s){var a=n.styles[s]||{},r=n.attributes[s]||{},e=n.elements[s];!$o(e)||!oc(e)||(Object.assign(e.style,a),Object.keys(r).forEach(function(d){var _=r[d];_===!1?e.removeAttribute(d):e.setAttribute(d,_===!0?"":_)}))})}function U7(t){var n=t.state,s={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,s.popper),n.styles=s,n.elements.arrow&&Object.assign(n.elements.arrow.style,s.arrow),function(){Object.keys(n.elements).forEach(function(a){var r=n.elements[a],e=n.attributes[a]||{},d=Object.keys(n.styles.hasOwnProperty(a)?n.styles[a]:s[a]),_=d.reduce(function(y,E){return y[E]="",y},{});!$o(r)||!oc(r)||(Object.assign(r.style,_),Object.keys(e).forEach(function(y){r.removeAttribute(y)}))})}}const $7={name:"applyStyles",enabled:!0,phase:"write",fn:B7,effect:U7,requires:["computeStyles"]};function nc(t){return t.split("-")[0]}var Eh=Math.max,rv=Math.min,_1=Math.round;function my(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(n){return n.brand+"/"+n.version}).join(" "):navigator.userAgent}function L6(){return!/^((?!chrome|android).)*safari/i.test(my())}function y1(t,n,s){n===void 0&&(n=!1),s===void 0&&(s=!1);var a=t.getBoundingClientRect(),r=1,e=1;n&&$o(t)&&(r=t.offsetWidth>0&&_1(a.width)/t.offsetWidth||1,e=t.offsetHeight>0&&_1(a.height)/t.offsetHeight||1);var d=Ah(t)?vo(t):window,_=d.visualViewport,y=!L6()&&s,E=(a.left+(y&&_?_.offsetLeft:0))/r,T=(a.top+(y&&_?_.offsetTop:0))/e,A=a.width/r,R=a.height/e;return{width:A,height:R,top:T,right:E+A,bottom:T+R,left:E,x:E,y:T}}function A4(t){var n=y1(t),s=t.offsetWidth,a=t.offsetHeight;return Math.abs(n.width-s)<=1&&(s=n.width),Math.abs(n.height-a)<=1&&(a=n.height),{x:t.offsetLeft,y:t.offsetTop,width:s,height:a}}function B6(t,n){var s=n.getRootNode&&n.getRootNode();if(t.contains(n))return!0;if(s&&C4(s)){var a=n;do{if(a&&t.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function ou(t){return vo(t).getComputedStyle(t)}function H7(t){return["table","td","th"].indexOf(oc(t))>=0}function qf(t){return((Ah(t)?t.ownerDocument:t.document)||window.document).documentElement}function zv(t){return oc(t)==="html"?t:t.assignedSlot||t.parentNode||(C4(t)?t.host:null)||qf(t)}function Bw(t){return!$o(t)||ou(t).position==="fixed"?null:t.offsetParent}function W7(t){var n=/firefox/i.test(my()),s=/Trident/i.test(my());if(s&&$o(t)){var a=ou(t);if(a.position==="fixed")return null}var r=zv(t);for(C4(r)&&(r=r.host);$o(r)&&["html","body"].indexOf(oc(r))<0;){var e=ou(r);if(e.transform!=="none"||e.perspective!=="none"||e.contain==="paint"||["transform","perspective"].indexOf(e.willChange)!==-1||n&&e.willChange==="filter"||n&&e.filter&&e.filter!=="none")return r;r=r.parentNode}return null}function Wg(t){for(var n=vo(t),s=Bw(t);s&&H7(s)&&ou(s).position==="static";)s=Bw(s);return s&&(oc(s)==="html"||oc(s)==="body"&&ou(s).position==="static")?n:s||W7(t)||n}function S4(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function tg(t,n,s){return Eh(t,rv(n,s))}function z7(t,n,s){var a=tg(t,n,s);return a>s?s:a}function U6(){return{top:0,right:0,bottom:0,left:0}}function $6(t){return Object.assign({},U6(),t)}function H6(t,n){return n.reduce(function(s,a){return s[a]=t,s},{})}var j7=function(n,s){return n=typeof n=="function"?n(Object.assign({},s.rects,{placement:s.placement})):n,$6(typeof n!="number"?n:H6(n,Hg))};function G7(t){var n,s=t.state,a=t.name,r=t.options,e=s.elements.arrow,d=s.modifiersData.popperOffsets,_=nc(s.placement),y=S4(_),E=[Va,zo].indexOf(_)>=0,T=E?"height":"width";if(!(!e||!d)){var A=j7(r.padding,s),R=A4(e),L=y==="y"?Ga:Va,B=y==="y"?Wo:zo,P=s.rects.reference[T]+s.rects.reference[y]-d[y]-s.rects.popper[T],V=d[y]-s.rects.reference[y],z=Wg(e),q=z?y==="y"?z.clientHeight||0:z.clientWidth||0:0,oe=P/2-V/2,K=A[L],G=q-R[T]-A[B],ne=q/2-R[T]/2+oe,ce=tg(K,ne,G),U=y;s.modifiersData[a]=(n={},n[U]=ce,n.centerOffset=ce-ne,n)}}function V7(t){var n=t.state,s=t.options,a=s.element,r=a===void 0?"[data-popper-arrow]":a;r!=null&&(typeof r=="string"&&(r=n.elements.popper.querySelector(r),!r)||B6(n.elements.popper,r)&&(n.elements.arrow=r))}const Y7={name:"arrow",enabled:!0,phase:"main",fn:G7,effect:V7,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function w1(t){return t.split("-")[1]}var K7={top:"auto",right:"auto",bottom:"auto",left:"auto"};function q7(t,n){var s=t.x,a=t.y,r=n.devicePixelRatio||1;return{x:_1(s*r)/r||0,y:_1(a*r)/r||0}}function Uw(t){var n,s=t.popper,a=t.popperRect,r=t.placement,e=t.variation,d=t.offsets,_=t.position,y=t.gpuAcceleration,E=t.adaptive,T=t.roundOffsets,A=t.isFixed,R=d.x,L=R===void 0?0:R,B=d.y,P=B===void 0?0:B,V=typeof T=="function"?T({x:L,y:P}):{x:L,y:P};L=V.x,P=V.y;var z=d.hasOwnProperty("x"),q=d.hasOwnProperty("y"),oe=Va,K=Ga,G=window;if(E){var ne=Wg(s),ce="clientHeight",U="clientWidth";if(ne===vo(s)&&(ne=qf(s),ou(ne).position!=="static"&&_==="absolute"&&(ce="scrollHeight",U="scrollWidth")),ne=ne,r===Ga||(r===Va||r===zo)&&e===wg){K=Wo;var W=A&&ne===G&&G.visualViewport?G.visualViewport.height:ne[ce];P-=W-a.height,P*=y?1:-1}if(r===Va||(r===Ga||r===Wo)&&e===wg){oe=zo;var te=A&&ne===G&&G.visualViewport?G.visualViewport.width:ne[U];L-=te-a.width,L*=y?1:-1}}var fe=Object.assign({position:_},E&&K7),xe=T===!0?q7({x:L,y:P},vo(s)):{x:L,y:P};if(L=xe.x,P=xe.y,y){var _e;return Object.assign({},fe,(_e={},_e[K]=q?"0":"",_e[oe]=z?"0":"",_e.transform=(G.devicePixelRatio||1)<=1?"translate("+L+"px, "+P+"px)":"translate3d("+L+"px, "+P+"px, 0)",_e))}return Object.assign({},fe,(n={},n[K]=q?P+"px":"",n[oe]=z?L+"px":"",n.transform="",n))}function Q7(t){var n=t.state,s=t.options,a=s.gpuAcceleration,r=a===void 0?!0:a,e=s.adaptive,d=e===void 0?!0:e,_=s.roundOffsets,y=_===void 0?!0:_,E={placement:nc(n.placement),variation:w1(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:r,isFixed:n.options.strategy==="fixed"};n.modifiersData.popperOffsets!=null&&(n.styles.popper=Object.assign({},n.styles.popper,Uw(Object.assign({},E,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:d,roundOffsets:y})))),n.modifiersData.arrow!=null&&(n.styles.arrow=Object.assign({},n.styles.arrow,Uw(Object.assign({},E,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:y})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})}const X7={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Q7,data:{}};var _2={passive:!0};function J7(t){var n=t.state,s=t.instance,a=t.options,r=a.scroll,e=r===void 0?!0:r,d=a.resize,_=d===void 0?!0:d,y=vo(n.elements.popper),E=[].concat(n.scrollParents.reference,n.scrollParents.popper);return e&&E.forEach(function(T){T.addEventListener("scroll",s.update,_2)}),_&&y.addEventListener("resize",s.update,_2),function(){e&&E.forEach(function(T){T.removeEventListener("scroll",s.update,_2)}),_&&y.removeEventListener("resize",s.update,_2)}}const Z7={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:J7,data:{}};var eO={left:"right",right:"left",bottom:"top",top:"bottom"};function N2(t){return t.replace(/left|right|bottom|top/g,function(n){return eO[n]})}var tO={start:"end",end:"start"};function $w(t){return t.replace(/start|end/g,function(n){return tO[n]})}function k4(t){var n=vo(t),s=n.pageXOffset,a=n.pageYOffset;return{scrollLeft:s,scrollTop:a}}function O4(t){return y1(qf(t)).left+k4(t).scrollLeft}function rO(t,n){var s=vo(t),a=qf(t),r=s.visualViewport,e=a.clientWidth,d=a.clientHeight,_=0,y=0;if(r){e=r.width,d=r.height;var E=L6();(E||!E&&n==="fixed")&&(_=r.offsetLeft,y=r.offsetTop)}return{width:e,height:d,x:_+O4(t),y}}function nO(t){var n,s=qf(t),a=k4(t),r=(n=t.ownerDocument)==null?void 0:n.body,e=Eh(s.scrollWidth,s.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),d=Eh(s.scrollHeight,s.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),_=-a.scrollLeft+O4(t),y=-a.scrollTop;return ou(r||s).direction==="rtl"&&(_+=Eh(s.clientWidth,r?r.clientWidth:0)-e),{width:e,height:d,x:_,y}}function R4(t){var n=ou(t),s=n.overflow,a=n.overflowX,r=n.overflowY;return/auto|scroll|overlay|hidden/.test(s+r+a)}function W6(t){return["html","body","#document"].indexOf(oc(t))>=0?t.ownerDocument.body:$o(t)&&R4(t)?t:W6(zv(t))}function rg(t,n){var s;n===void 0&&(n=[]);var a=W6(t),r=a===((s=t.ownerDocument)==null?void 0:s.body),e=vo(a),d=r?[e].concat(e.visualViewport||[],R4(a)?a:[]):a,_=n.concat(d);return r?_:_.concat(rg(zv(d)))}function vy(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function iO(t,n){var s=y1(t,!1,n==="fixed");return s.top=s.top+t.clientTop,s.left=s.left+t.clientLeft,s.bottom=s.top+t.clientHeight,s.right=s.left+t.clientWidth,s.width=t.clientWidth,s.height=t.clientHeight,s.x=s.left,s.y=s.top,s}function Hw(t,n,s){return n===N6?vy(rO(t,s)):Ah(n)?iO(n,s):vy(nO(qf(t)))}function sO(t){var n=rg(zv(t)),s=["absolute","fixed"].indexOf(ou(t).position)>=0,a=s&&$o(t)?Wg(t):t;return Ah(a)?n.filter(function(r){return Ah(r)&&B6(r,a)&&oc(r)!=="body"}):[]}function aO(t,n,s,a){var r=n==="clippingParents"?sO(t):[].concat(n),e=[].concat(r,[s]),d=e[0],_=e.reduce(function(y,E){var T=Hw(t,E,a);return y.top=Eh(T.top,y.top),y.right=rv(T.right,y.right),y.bottom=rv(T.bottom,y.bottom),y.left=Eh(T.left,y.left),y},Hw(t,d,a));return _.width=_.right-_.left,_.height=_.bottom-_.top,_.x=_.left,_.y=_.top,_}function z6(t){var n=t.reference,s=t.element,a=t.placement,r=a?nc(a):null,e=a?w1(a):null,d=n.x+n.width/2-s.width/2,_=n.y+n.height/2-s.height/2,y;switch(r){case Ga:y={x:d,y:n.y-s.height};break;case Wo:y={x:d,y:n.y+n.height};break;case zo:y={x:n.x+n.width,y:_};break;case Va:y={x:n.x-s.width,y:_};break;default:y={x:n.x,y:n.y}}var E=r?S4(r):null;if(E!=null){var T=E==="y"?"height":"width";switch(e){case b1:y[E]=y[E]-(n[T]/2-s[T]/2);break;case wg:y[E]=y[E]+(n[T]/2-s[T]/2);break}}return y}function Dg(t,n){n===void 0&&(n={});var s=n,a=s.placement,r=a===void 0?t.placement:a,e=s.strategy,d=e===void 0?t.strategy:e,_=s.boundary,y=_===void 0?T7:_,E=s.rootBoundary,T=E===void 0?N6:E,A=s.elementContext,R=A===void 0?Bp:A,L=s.altBoundary,B=L===void 0?!1:L,P=s.padding,V=P===void 0?0:P,z=$6(typeof V!="number"?V:H6(V,Hg)),q=R===Bp?C7:Bp,oe=t.rects.popper,K=t.elements[B?q:R],G=aO(Ah(K)?K:K.contextElement||qf(t.elements.popper),y,T,d),ne=y1(t.elements.reference),ce=z6({reference:ne,element:oe,strategy:"absolute",placement:r}),U=vy(Object.assign({},oe,ce)),W=R===Bp?U:ne,te={top:G.top-W.top+z.top,bottom:W.bottom-G.bottom+z.bottom,left:G.left-W.left+z.left,right:W.right-G.right+z.right},fe=t.modifiersData.offset;if(R===Bp&&fe){var xe=fe[r];Object.keys(te).forEach(function(_e){var be=[zo,Wo].indexOf(_e)>=0?1:-1,$e=[Ga,Wo].indexOf(_e)>=0?"y":"x";te[_e]+=xe[$e]*be})}return te}function oO(t,n){n===void 0&&(n={});var s=n,a=s.placement,r=s.boundary,e=s.rootBoundary,d=s.padding,_=s.flipVariations,y=s.allowedAutoPlacements,E=y===void 0?M6:y,T=w1(a),A=T?_?Lw:Lw.filter(function(B){return w1(B)===T}):Hg,R=A.filter(function(B){return E.indexOf(B)>=0});R.length===0&&(R=A);var L=R.reduce(function(B,P){return B[P]=Dg(t,{placement:P,boundary:r,rootBoundary:e,padding:d})[nc(P)],B},{});return Object.keys(L).sort(function(B,P){return L[B]-L[P]})}function lO(t){if(nc(t)===T4)return[];var n=N2(t);return[$w(t),n,$w(n)]}function cO(t){var n=t.state,s=t.options,a=t.name;if(!n.modifiersData[a]._skip){for(var r=s.mainAxis,e=r===void 0?!0:r,d=s.altAxis,_=d===void 0?!0:d,y=s.fallbackPlacements,E=s.padding,T=s.boundary,A=s.rootBoundary,R=s.altBoundary,L=s.flipVariations,B=L===void 0?!0:L,P=s.allowedAutoPlacements,V=n.options.placement,z=nc(V),q=z===V,oe=y||(q||!B?[N2(V)]:lO(V)),K=[V].concat(oe).reduce(function(We,Fe){return We.concat(nc(Fe)===T4?oO(n,{placement:Fe,boundary:T,rootBoundary:A,padding:E,flipVariations:B,allowedAutoPlacements:P}):Fe)},[]),G=n.rects.reference,ne=n.rects.popper,ce=new Map,U=!0,W=K[0],te=0;te<K.length;te++){var fe=K[te],xe=nc(fe),_e=w1(fe)===b1,be=[Ga,Wo].indexOf(xe)>=0,$e=be?"width":"height",je=Dg(n,{placement:fe,boundary:T,rootBoundary:A,altBoundary:R,padding:E}),Ee=be?_e?zo:Va:_e?Wo:Ga;G[$e]>ne[$e]&&(Ee=N2(Ee));var lt=N2(Ee),Xe=[];if(e&&Xe.push(je[xe]<=0),_&&Xe.push(je[Ee]<=0,je[lt]<=0),Xe.every(function(We){return We})){W=fe,U=!1;break}ce.set(fe,Xe)}if(U)for(var Je=B?3:1,de=function(Fe){var Be=K.find(function(ie){var He=ce.get(ie);if(He)return He.slice(0,Fe).every(function(pe){return pe})});if(Be)return W=Be,"break"},Se=Je;Se>0;Se--){var rt=de(Se);if(rt==="break")break}n.placement!==W&&(n.modifiersData[a]._skip=!0,n.placement=W,n.reset=!0)}}const uO={name:"flip",enabled:!0,phase:"main",fn:cO,requiresIfExists:["offset"],data:{_skip:!1}};function Ww(t,n,s){return s===void 0&&(s={x:0,y:0}),{top:t.top-n.height-s.y,right:t.right-n.width+s.x,bottom:t.bottom-n.height+s.y,left:t.left-n.width-s.x}}function zw(t){return[Ga,zo,Wo,Va].some(function(n){return t[n]>=0})}function fO(t){var n=t.state,s=t.name,a=n.rects.reference,r=n.rects.popper,e=n.modifiersData.preventOverflow,d=Dg(n,{elementContext:"reference"}),_=Dg(n,{altBoundary:!0}),y=Ww(d,a),E=Ww(_,r,e),T=zw(y),A=zw(E);n.modifiersData[s]={referenceClippingOffsets:y,popperEscapeOffsets:E,isReferenceHidden:T,hasPopperEscaped:A},n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-reference-hidden":T,"data-popper-escaped":A})}const hO={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:fO};function dO(t,n,s){var a=nc(t),r=[Va,Ga].indexOf(a)>=0?-1:1,e=typeof s=="function"?s(Object.assign({},n,{placement:t})):s,d=e[0],_=e[1];return d=d||0,_=(_||0)*r,[Va,zo].indexOf(a)>=0?{x:_,y:d}:{x:d,y:_}}function pO(t){var n=t.state,s=t.options,a=t.name,r=s.offset,e=r===void 0?[0,0]:r,d=M6.reduce(function(T,A){return T[A]=dO(A,n.rects,e),T},{}),_=d[n.placement],y=_.x,E=_.y;n.modifiersData.popperOffsets!=null&&(n.modifiersData.popperOffsets.x+=y,n.modifiersData.popperOffsets.y+=E),n.modifiersData[a]=d}const gO={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:pO};function mO(t){var n=t.state,s=t.name;n.modifiersData[s]=z6({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})}const vO={name:"popperOffsets",enabled:!0,phase:"read",fn:mO,data:{}};function bO(t){return t==="x"?"y":"x"}function _O(t){var n=t.state,s=t.options,a=t.name,r=s.mainAxis,e=r===void 0?!0:r,d=s.altAxis,_=d===void 0?!1:d,y=s.boundary,E=s.rootBoundary,T=s.altBoundary,A=s.padding,R=s.tether,L=R===void 0?!0:R,B=s.tetherOffset,P=B===void 0?0:B,V=Dg(n,{boundary:y,rootBoundary:E,padding:A,altBoundary:T}),z=nc(n.placement),q=w1(n.placement),oe=!q,K=S4(z),G=bO(K),ne=n.modifiersData.popperOffsets,ce=n.rects.reference,U=n.rects.popper,W=typeof P=="function"?P(Object.assign({},n.rects,{placement:n.placement})):P,te=typeof W=="number"?{mainAxis:W,altAxis:W}:Object.assign({mainAxis:0,altAxis:0},W),fe=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,xe={x:0,y:0};if(ne){if(e){var _e,be=K==="y"?Ga:Va,$e=K==="y"?Wo:zo,je=K==="y"?"height":"width",Ee=ne[K],lt=Ee+V[be],Xe=Ee-V[$e],Je=L?-U[je]/2:0,de=q===b1?ce[je]:U[je],Se=q===b1?-U[je]:-ce[je],rt=n.elements.arrow,We=L&&rt?A4(rt):{width:0,height:0},Fe=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:U6(),Be=Fe[be],ie=Fe[$e],He=tg(0,ce[je],We[je]),pe=oe?ce[je]/2-Je-He-Be-te.mainAxis:de-He-Be-te.mainAxis,it=oe?-ce[je]/2+Je+He+ie+te.mainAxis:Se+He+ie+te.mainAxis,Ot=n.elements.arrow&&Wg(n.elements.arrow),re=Ot?K==="y"?Ot.clientTop||0:Ot.clientLeft||0:0,le=(_e=fe==null?void 0:fe[K])!=null?_e:0,he=Ee+pe-le-re,Ue=Ee+it-le,Le=tg(L?rv(lt,he):lt,Ee,L?Eh(Xe,Ue):Xe);ne[K]=Le,xe[K]=Le-Ee}if(_){var et,Tt=K==="x"?Ga:Va,_t=K==="x"?Wo:zo,vt=ne[G],qe=G==="y"?"height":"width",Ae=vt+V[Tt],Re=vt-V[_t],It=[Ga,Va].indexOf(z)!==-1,wt=(et=fe==null?void 0:fe[G])!=null?et:0,ir=It?Ae:vt-ce[qe]-U[qe]-wt+te.altAxis,dr=It?vt+ce[qe]+U[qe]-wt-te.altAxis:Re,sr=L&&It?z7(ir,vt,dr):tg(L?ir:Ae,vt,L?dr:Re);ne[G]=sr,xe[G]=sr-vt}n.modifiersData[a]=xe}}const yO={name:"preventOverflow",enabled:!0,phase:"main",fn:_O,requiresIfExists:["offset"]};function wO(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function DO(t){return t===vo(t)||!$o(t)?k4(t):wO(t)}function EO(t){var n=t.getBoundingClientRect(),s=_1(n.width)/t.offsetWidth||1,a=_1(n.height)/t.offsetHeight||1;return s!==1||a!==1}function FO(t,n,s){s===void 0&&(s=!1);var a=$o(n),r=$o(n)&&EO(n),e=qf(n),d=y1(t,r,s),_={scrollLeft:0,scrollTop:0},y={x:0,y:0};return(a||!a&&!s)&&((oc(n)!=="body"||R4(e))&&(_=DO(n)),$o(n)?(y=y1(n,!0),y.x+=n.clientLeft,y.y+=n.clientTop):e&&(y.x=O4(e))),{x:d.left+_.scrollLeft-y.x,y:d.top+_.scrollTop-y.y,width:d.width,height:d.height}}function xO(t){var n=new Map,s=new Set,a=[];t.forEach(function(e){n.set(e.name,e)});function r(e){s.add(e.name);var d=[].concat(e.requires||[],e.requiresIfExists||[]);d.forEach(function(_){if(!s.has(_)){var y=n.get(_);y&&r(y)}}),a.push(e)}return t.forEach(function(e){s.has(e.name)||r(e)}),a}function TO(t){var n=xO(t);return L7.reduce(function(s,a){return s.concat(n.filter(function(r){return r.phase===a}))},[])}function CO(t){var n;return function(){return n||(n=new Promise(function(s){Promise.resolve().then(function(){n=void 0,s(t())})})),n}}function AO(t){var n=t.reduce(function(s,a){var r=s[a.name];return s[a.name]=r?Object.assign({},r,a,{options:Object.assign({},r.options,a.options),data:Object.assign({},r.data,a.data)}):a,s},{});return Object.keys(n).map(function(s){return n[s]})}var jw={placement:"bottom",modifiers:[],strategy:"absolute"};function Gw(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];return!n.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function SO(t){t===void 0&&(t={});var n=t,s=n.defaultModifiers,a=s===void 0?[]:s,r=n.defaultOptions,e=r===void 0?jw:r;return function(_,y,E){E===void 0&&(E=e);var T={placement:"bottom",orderedModifiers:[],options:Object.assign({},jw,e),modifiersData:{},elements:{reference:_,popper:y},attributes:{},styles:{}},A=[],R=!1,L={state:T,setOptions:function(z){var q=typeof z=="function"?z(T.options):z;P(),T.options=Object.assign({},e,T.options,q),T.scrollParents={reference:Ah(_)?rg(_):_.contextElement?rg(_.contextElement):[],popper:rg(y)};var oe=TO(AO([].concat(a,T.options.modifiers)));return T.orderedModifiers=oe.filter(function(K){return K.enabled}),B(),L.update()},forceUpdate:function(){if(!R){var z=T.elements,q=z.reference,oe=z.popper;if(Gw(q,oe)){T.rects={reference:FO(q,Wg(oe),T.options.strategy==="fixed"),popper:A4(oe)},T.reset=!1,T.placement=T.options.placement,T.orderedModifiers.forEach(function(te){return T.modifiersData[te.name]=Object.assign({},te.data)});for(var K=0;K<T.orderedModifiers.length;K++){if(T.reset===!0){T.reset=!1,K=-1;continue}var G=T.orderedModifiers[K],ne=G.fn,ce=G.options,U=ce===void 0?{}:ce,W=G.name;typeof ne=="function"&&(T=ne({state:T,options:U,name:W,instance:L})||T)}}}},update:CO(function(){return new Promise(function(V){L.forceUpdate(),V(T)})}),destroy:function(){P(),R=!0}};if(!Gw(_,y))return L;L.setOptions(E).then(function(V){!R&&E.onFirstUpdate&&E.onFirstUpdate(V)});function B(){T.orderedModifiers.forEach(function(V){var z=V.name,q=V.options,oe=q===void 0?{}:q,K=V.effect;if(typeof K=="function"){var G=K({state:T,name:z,instance:L,options:oe}),ne=function(){};A.push(G||ne)}})}function P(){A.forEach(function(V){return V()}),A=[]}return L}}var kO=[Z7,vO,X7,$7,gO,uO,yO,Y7,hO],I4=SO({defaultModifiers:kO}),Ff=globalThis&&globalThis.__assign||function(){return Ff=Object.assign||function(t){for(var n,s=1,a=arguments.length;s<a;s++){n=arguments[s];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ff.apply(this,arguments)},y2=globalThis&&globalThis.__spreadArray||function(t,n,s){if(s||arguments.length===2)for(var a=0,r=n.length,e;a<r;a++)(e||!(a in n))&&(e||(e=Array.prototype.slice.call(n,0,a)),e[a]=n[a]);return t.concat(e||Array.prototype.slice.call(n))},xf={placement:"bottom",triggerType:"click",offsetSkidding:0,offsetDistance:10,delay:300,ignoreClickOutsideClass:!1,onShow:function(){},onHide:function(){},onToggle:function(){}},j6=function(){function t(n,s,a){n===void 0&&(n=null),s===void 0&&(s=null),a===void 0&&(a=xf),this._targetEl=n,this._triggerEl=s,this._options=Ff(Ff({},xf),a),this._popperInstance=this._createPopperInstance(),this._visible=!1,this._init()}return t.prototype._init=function(){this._triggerEl&&this._setupEventListeners()},t.prototype._setupEventListeners=function(){var n=this,s=this._getTriggerEvents();this._options.triggerType==="click"&&s.showEvents.forEach(function(a){n._triggerEl.addEventListener(a,function(){n.toggle()})}),this._options.triggerType==="hover"&&(s.showEvents.forEach(function(a){n._triggerEl.addEventListener(a,function(){a==="click"?n.toggle():setTimeout(function(){n.show()},n._options.delay)}),n._targetEl.addEventListener(a,function(){n.show()})}),s.hideEvents.forEach(function(a){n._triggerEl.addEventListener(a,function(){setTimeout(function(){n._targetEl.matches(":hover")||n.hide()},n._options.delay)}),n._targetEl.addEventListener(a,function(){setTimeout(function(){n._triggerEl.matches(":hover")||n.hide()},n._options.delay)})}))},t.prototype._createPopperInstance=function(){return I4(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[this._options.offsetSkidding,this._options.offsetDistance]}}]})},t.prototype._setupClickOutsideListener=function(){var n=this;this._clickOutsideEventListener=function(s){n._handleClickOutside(s,n._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._handleClickOutside=function(n,s){var a=n.target,r=this._options.ignoreClickOutsideClass,e=!1;if(r){var d=document.querySelectorAll(".".concat(r));d.forEach(function(_){if(_.contains(a)){e=!0;return}})}a!==s&&!s.contains(a)&&!this._triggerEl.contains(a)&&!e&&this.isVisible()&&this.hide()},t.prototype._getTriggerEvents=function(){switch(this._options.triggerType){case"hover":return{showEvents:["mouseenter","click"],hideEvents:["mouseleave"]};case"click":return{showEvents:["click"],hideEvents:[]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["click"],hideEvents:[]}}},t.prototype.toggle=function(){this.isVisible()?this.hide():this.show(),this._options.onToggle(this)},t.prototype.isVisible=function(){return this._visible},t.prototype.show=function(){this._targetEl.classList.remove("hidden"),this._targetEl.classList.add("block"),this._popperInstance.setOptions(function(n){return Ff(Ff({},n),{modifiers:y2(y2([],n.modifiers,!0),[{name:"eventListeners",enabled:!0}],!1)})}),this._setupClickOutsideListener(),this._popperInstance.update(),this._visible=!0,this._options.onShow(this)},t.prototype.hide=function(){this._targetEl.classList.remove("block"),this._targetEl.classList.add("hidden"),this._popperInstance.setOptions(function(n){return Ff(Ff({},n),{modifiers:y2(y2([],n.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._visible=!1,this._removeClickOutsideListener(),this._options.onHide(this)},t}();function P4(){document.querySelectorAll("[data-dropdown-toggle]").forEach(function(t){var n=t.getAttribute("data-dropdown-toggle"),s=document.getElementById(n);if(s){var a=t.getAttribute("data-dropdown-placement"),r=t.getAttribute("data-dropdown-offset-skidding"),e=t.getAttribute("data-dropdown-offset-distance"),d=t.getAttribute("data-dropdown-trigger"),_=t.getAttribute("data-dropdown-delay"),y=t.getAttribute("data-dropdown-ignore-click-outside-class");new j6(s,t,{placement:a||xf.placement,triggerType:d||xf.triggerType,offsetSkidding:r?parseInt(r):xf.offsetSkidding,offsetDistance:e?parseInt(e):xf.offsetDistance,delay:_?parseInt(_):xf.delay,ignoreClickOutsideClass:y||xf.ignoreClickOutsideClass})}else console.error('The dropdown element with id "'.concat(n,'" does not exist. Please check the data-dropdown-toggle attribute.'))})}typeof window<"u"&&(window.Dropdown=j6,window.initDropdowns=P4);var nv=globalThis&&globalThis.__assign||function(){return nv=Object.assign||function(t){for(var n,s=1,a=arguments.length;s<a;s++){n=arguments[s];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},nv.apply(this,arguments)},jd={placement:"center",backdropClasses:"bg-gray-900 bg-opacity-50 dark:bg-opacity-80 fixed inset-0 z-40",backdrop:"dynamic",closable:!0,onHide:function(){},onShow:function(){},onToggle:function(){}},by=function(){function t(n,s){n===void 0&&(n=null),s===void 0&&(s=jd),this._targetEl=n,this._options=nv(nv({},jd),s),this._isHidden=!0,this._backdropEl=null,this._init()}return t.prototype._init=function(){var n=this;this._targetEl&&this._getPlacementClasses().map(function(s){n._targetEl.classList.add(s)})},t.prototype._createBackdrop=function(){var n;if(this._isHidden){var s=document.createElement("div");s.setAttribute("modal-backdrop",""),(n=s.classList).add.apply(n,this._options.backdropClasses.split(" ")),document.querySelector("body").append(s),this._backdropEl=s}},t.prototype._destroyBackdropEl=function(){this._isHidden||document.querySelector("[modal-backdrop]").remove()},t.prototype._setupModalCloseEventListeners=function(){var n=this;this._options.backdrop==="dynamic"&&(this._clickOutsideEventListener=function(s){n._handleOutsideClick(s.target)},this._targetEl.addEventListener("click",this._clickOutsideEventListener,!0)),this._keydownEventListener=function(s){s.key==="Escape"&&n.hide()},document.body.addEventListener("keydown",this._keydownEventListener,!0)},t.prototype._removeModalCloseEventListeners=function(){this._options.backdrop==="dynamic"&&this._targetEl.removeEventListener("click",this._clickOutsideEventListener,!0),document.body.removeEventListener("keydown",this._keydownEventListener,!0)},t.prototype._handleOutsideClick=function(n){(n===this._targetEl||n===this._backdropEl&&this.isVisible())&&this.hide()},t.prototype._getPlacementClasses=function(){switch(this._options.placement){case"top-left":return["justify-start","items-start"];case"top-center":return["justify-center","items-start"];case"top-right":return["justify-end","items-start"];case"center-left":return["justify-start","items-center"];case"center":return["justify-center","items-center"];case"center-right":return["justify-end","items-center"];case"bottom-left":return["justify-start","items-end"];case"bottom-center":return["justify-center","items-end"];case"bottom-right":return["justify-end","items-end"];default:return["justify-center","items-center"]}},t.prototype.toggle=function(){this._isHidden?this.show():this.hide(),this._options.onToggle(this)},t.prototype.show=function(){this.isHidden&&(this._targetEl.classList.add("flex"),this._targetEl.classList.remove("hidden"),this._targetEl.setAttribute("aria-modal","true"),this._targetEl.setAttribute("role","dialog"),this._targetEl.removeAttribute("aria-hidden"),this._createBackdrop(),this._isHidden=!1,document.body.classList.add("overflow-hidden"),this._options.closable&&this._setupModalCloseEventListeners(),this._options.onShow(this))},t.prototype.hide=function(){this.isVisible&&(this._targetEl.classList.add("hidden"),this._targetEl.classList.remove("flex"),this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.removeAttribute("aria-modal"),this._targetEl.removeAttribute("role"),this._destroyBackdropEl(),this._isHidden=!0,document.body.classList.remove("overflow-hidden"),this._options.closable&&this._removeModalCloseEventListeners(),this._options.onHide(this))},t.prototype.isVisible=function(){return!this._isHidden},t.prototype.isHidden=function(){return this._isHidden},t}(),w2=function(t,n){return n.some(function(s){return s.id===t})?n.find(function(s){return s.id===t}):null};function N4(){var t=[];document.querySelectorAll("[data-modal-target]").forEach(function(n){var s=n.getAttribute("data-modal-target"),a=document.getElementById(s);if(a){var r=a.getAttribute("data-modal-placement"),e=a.getAttribute("data-modal-backdrop");w2(s,t)||t.push({id:s,object:new by(a,{placement:r||jd.placement,backdrop:e||jd.backdrop})})}else console.error("Modal with id ".concat(s," does not exist. Are you sure that the data-modal-target attribute points to the correct modal id?."))}),document.querySelectorAll("[data-modal-toggle]").forEach(function(n){var s=n.getAttribute("data-modal-toggle"),a=document.getElementById(s);if(a){var r=a.getAttribute("data-modal-placement"),e=a.getAttribute("data-modal-backdrop"),d=w2(s,t);d||(d={id:s,object:new by(a,{placement:r||jd.placement,backdrop:e||jd.backdrop})},t.push(d)),n.addEventListener("click",function(){d.object.toggle()})}else console.error("Modal with id ".concat(s," does not exist. Are you sure that the data-modal-toggle attribute points to the correct modal id?"))}),document.querySelectorAll("[data-modal-show]").forEach(function(n){var s=n.getAttribute("data-modal-show"),a=document.getElementById(s);if(a){var r=w2(s,t);r?n.addEventListener("click",function(){r.object.isHidden&&r.object.show()}):console.error("Modal with id ".concat(s," has not been initialized. Please initialize it using the data-modal-target attribute."))}else console.error("Modal with id ".concat(s," does not exist. Are you sure that the data-modal-show attribute points to the correct modal id?"))}),document.querySelectorAll("[data-modal-hide]").forEach(function(n){var s=n.getAttribute("data-modal-hide"),a=document.getElementById(s);if(a){var r=w2(s,t);r?n.addEventListener("click",function(){r.object.isVisible&&r.object.hide()}):console.error("Modal with id ".concat(s," has not been initialized. Please initialize it using the data-modal-target attribute."))}else console.error("Modal with id ".concat(s," does not exist. Are you sure that the data-modal-hide attribute points to the correct modal id?"))})}typeof window<"u"&&(window.Modal=by,window.initModals=N4);var iv=globalThis&&globalThis.__assign||function(){return iv=Object.assign||function(t){for(var n,s=1,a=arguments.length;s<a;s++){n=arguments[s];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},iv.apply(this,arguments)},dh={placement:"left",bodyScrolling:!1,backdrop:!0,edge:!1,edgeOffset:"bottom-[60px]",backdropClasses:"bg-gray-900 bg-opacity-50 dark:bg-opacity-80 fixed inset-0 z-30",onShow:function(){},onHide:function(){},onToggle:function(){}},G6=function(){function t(n,s){n===void 0&&(n=null),s===void 0&&(s=dh),this._targetEl=n,this._options=iv(iv({},dh),s),this._visible=!1,this._init()}return t.prototype._init=function(){var n=this;this._targetEl&&(this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.classList.add("transition-transform")),this._getPlacementClasses(this._options.placement).base.map(function(s){n._targetEl.classList.add(s)}),document.addEventListener("keydown",function(s){s.key==="Escape"&&n.isVisible()&&n.hide()})},t.prototype.hide=function(){var n=this;this._options.edge?(this._getPlacementClasses(this._options.placement+"-edge").active.map(function(s){n._targetEl.classList.remove(s)}),this._getPlacementClasses(this._options.placement+"-edge").inactive.map(function(s){n._targetEl.classList.add(s)})):(this._getPlacementClasses(this._options.placement).active.map(function(s){n._targetEl.classList.remove(s)}),this._getPlacementClasses(this._options.placement).inactive.map(function(s){n._targetEl.classList.add(s)})),this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.removeAttribute("aria-modal"),this._targetEl.removeAttribute("role"),this._options.bodyScrolling||document.body.classList.remove("overflow-hidden"),this._options.backdrop&&this._destroyBackdropEl(),this._visible=!1,this._options.onHide(this)},t.prototype.show=function(){var n=this;this._options.edge?(this._getPlacementClasses(this._options.placement+"-edge").active.map(function(s){n._targetEl.classList.add(s)}),this._getPlacementClasses(this._options.placement+"-edge").inactive.map(function(s){n._targetEl.classList.remove(s)})):(this._getPlacementClasses(this._options.placement).active.map(function(s){n._targetEl.classList.add(s)}),this._getPlacementClasses(this._options.placement).inactive.map(function(s){n._targetEl.classList.remove(s)})),this._targetEl.setAttribute("aria-modal","true"),this._targetEl.setAttribute("role","dialog"),this._targetEl.removeAttribute("aria-hidden"),this._options.bodyScrolling||document.body.classList.add("overflow-hidden"),this._options.backdrop&&this._createBackdrop(),this._visible=!0,this._options.onShow(this)},t.prototype.toggle=function(){this.isVisible()?this.hide():this.show()},t.prototype._createBackdrop=function(){var n,s=this;if(!this._visible){var a=document.createElement("div");a.setAttribute("drawer-backdrop",""),(n=a.classList).add.apply(n,this._options.backdropClasses.split(" ")),document.querySelector("body").append(a),a.addEventListener("click",function(){s.hide()})}},t.prototype._destroyBackdropEl=function(){this._visible&&document.querySelector("[drawer-backdrop]").remove()},t.prototype._getPlacementClasses=function(n){switch(n){case"top":return{base:["top-0","left-0","right-0"],active:["transform-none"],inactive:["-translate-y-full"]};case"right":return{base:["right-0","top-0"],active:["transform-none"],inactive:["translate-x-full"]};case"bottom":return{base:["bottom-0","left-0","right-0"],active:["transform-none"],inactive:["translate-y-full"]};case"left":return{base:["left-0","top-0"],active:["transform-none"],inactive:["-translate-x-full"]};case"bottom-edge":return{base:["left-0","top-0"],active:["transform-none"],inactive:["translate-y-full",this._options.edgeOffset]};default:return{base:["left-0","top-0"],active:["transform-none"],inactive:["-translate-x-full"]}}},t.prototype.isHidden=function(){return!this._visible},t.prototype.isVisible=function(){return this._visible},t}(),D2=function(t,n){if(n.some(function(s){return s.id===t}))return n.find(function(s){return s.id===t})};function M4(){var t=[];document.querySelectorAll("[data-drawer-target]").forEach(function(n){var s=n.getAttribute("data-drawer-target"),a=document.getElementById(s);if(a){var r=n.getAttribute("data-drawer-placement"),e=n.getAttribute("data-drawer-body-scrolling"),d=n.getAttribute("data-drawer-backdrop"),_=n.getAttribute("data-drawer-edge"),y=n.getAttribute("data-drawer-edge-offset");D2(s,t)||t.push({id:s,object:new G6(a,{placement:r||dh.placement,bodyScrolling:e?e==="true":dh.bodyScrolling,backdrop:d?d==="true":dh.backdrop,edge:_?_==="true":dh.edge,edgeOffset:y||dh.edgeOffset})})}else console.error("Drawer with id ".concat(s," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?"))}),document.querySelectorAll("[data-drawer-toggle]").forEach(function(n){var s=n.getAttribute("data-drawer-toggle"),a=document.getElementById(s);if(a){var r=D2(s,t);r?n.addEventListener("click",function(){r.object.toggle()}):console.error("Drawer with id ".concat(s," has not been initialized. Please initialize it using the data-drawer-target attribute."))}else console.error("Drawer with id ".concat(s," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?"))}),document.querySelectorAll("[data-drawer-dismiss], [data-drawer-hide]").forEach(function(n){var s=n.getAttribute("data-drawer-dismiss")?n.getAttribute("data-drawer-dismiss"):n.getAttribute("data-drawer-hide"),a=document.getElementById(s);if(a){var r=D2(s,t);r?n.addEventListener("click",function(){r.object.hide()}):console.error("Drawer with id ".concat(s," has not been initialized. Please initialize it using the data-drawer-target attribute."))}else console.error("Drawer with id ".concat(s," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id"))}),document.querySelectorAll("[data-drawer-show]").forEach(function(n){var s=n.getAttribute("data-drawer-show"),a=document.getElementById(s);if(a){var r=D2(s,t);r?n.addEventListener("click",function(){r.object.show()}):console.error("Drawer with id ".concat(s," has not been initialized. Please initialize it using the data-drawer-target attribute."))}else console.error("Drawer with id ".concat(s," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?"))})}typeof window<"u"&&(window.Drawer=G6,window.initDrawers=M4);var sv=globalThis&&globalThis.__assign||function(){return sv=Object.assign||function(t){for(var n,s=1,a=arguments.length;s<a;s++){n=arguments[s];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},sv.apply(this,arguments)},Vw={defaultTabId:null,activeClasses:"text-blue-600 hover:text-blue-600 dark:text-blue-500 dark:hover:text-blue-500 border-blue-600 dark:border-blue-500",inactiveClasses:"dark:border-transparent text-gray-500 hover:text-gray-600 dark:text-gray-400 border-gray-100 hover:border-gray-300 dark:border-gray-700 dark:hover:text-gray-300",onShow:function(){}},V6=function(){function t(n,s){n===void 0&&(n=[]),s===void 0&&(s=Vw),this._items=n,this._activeTab=s?this.getTab(s.defaultTabId):null,this._options=sv(sv({},Vw),s),this._init()}return t.prototype._init=function(){var n=this;this._items.length&&(this._activeTab||this._setActiveTab(this._items[0]),this.show(this._activeTab.id,!0),this._items.map(function(s){s.triggerEl.addEventListener("click",function(){n.show(s.id)})}))},t.prototype.getActiveTab=function(){return this._activeTab},t.prototype._setActiveTab=function(n){this._activeTab=n},t.prototype.getTab=function(n){return this._items.filter(function(s){return s.id===n})[0]},t.prototype.show=function(n,s){var a,r,e=this;s===void 0&&(s=!1);var d=this.getTab(n);d===this._activeTab&&!s||(this._items.map(function(_){var y,E;_!==d&&((y=_.triggerEl.classList).remove.apply(y,e._options.activeClasses.split(" ")),(E=_.triggerEl.classList).add.apply(E,e._options.inactiveClasses.split(" ")),_.targetEl.classList.add("hidden"),_.triggerEl.setAttribute("aria-selected","false"))}),(a=d.triggerEl.classList).add.apply(a,this._options.activeClasses.split(" ")),(r=d.triggerEl.classList).remove.apply(r,this._options.inactiveClasses.split(" ")),d.triggerEl.setAttribute("aria-selected","true"),d.targetEl.classList.remove("hidden"),this._setActiveTab(d),this._options.onShow(this,d))},t}();function L4(){document.querySelectorAll("[data-tabs-toggle]").forEach(function(t){var n=[],s=null;t.querySelectorAll('[role="tab"]').forEach(function(a){var r=a.getAttribute("aria-selected")==="true",e={id:a.getAttribute("data-tabs-target"),triggerEl:a,targetEl:document.querySelector(a.getAttribute("data-tabs-target"))};n.push(e),r&&(s=e.id)}),new V6(n,{defaultTabId:s})})}typeof window<"u"&&(window.Tabs=V6,window.initTabs=L4);var Tf=globalThis&&globalThis.__assign||function(){return Tf=Object.assign||function(t){for(var n,s=1,a=arguments.length;s<a;s++){n=arguments[s];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Tf.apply(this,arguments)},E2=globalThis&&globalThis.__spreadArray||function(t,n,s){if(s||arguments.length===2)for(var a=0,r=n.length,e;a<r;a++)(e||!(a in n))&&(e||(e=Array.prototype.slice.call(n,0,a)),e[a]=n[a]);return t.concat(e||Array.prototype.slice.call(n))},av={placement:"top",triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},B4=function(){function t(n,s,a){n===void 0&&(n=null),s===void 0&&(s=null),a===void 0&&(a=av),this._targetEl=n,this._triggerEl=s,this._options=Tf(Tf({},av),a),this._popperInstance=this._createPopperInstance(),this._visible=!1,this._init()}return t.prototype._init=function(){this._triggerEl&&this._setupEventListeners()},t.prototype._setupEventListeners=function(){var n=this,s=this._getTriggerEvents();s.showEvents.forEach(function(a){n._triggerEl.addEventListener(a,function(){n.show()})}),s.hideEvents.forEach(function(a){n._triggerEl.addEventListener(a,function(){n.hide()})})},t.prototype._createPopperInstance=function(){return I4(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[0,8]}}]})},t.prototype._getTriggerEvents=function(){switch(this._options.triggerType){case"hover":return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]};case"click":return{showEvents:["click","focus"],hideEvents:["focusout","blur"]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]}}},t.prototype._setupKeydownListener=function(){var n=this;this._keydownEventListener=function(s){s.key==="Escape"&&n.hide()},document.body.addEventListener("keydown",this._keydownEventListener,!0)},t.prototype._removeKeydownListener=function(){document.body.removeEventListener("keydown",this._keydownEventListener,!0)},t.prototype._setupClickOutsideListener=function(){var n=this;this._clickOutsideEventListener=function(s){n._handleClickOutside(s,n._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._handleClickOutside=function(n,s){var a=n.target;a!==s&&!s.contains(a)&&!this._triggerEl.contains(a)&&this.isVisible()&&this.hide()},t.prototype.isVisible=function(){return this._visible},t.prototype.toggle=function(){this.isVisible()?this.hide():this.show()},t.prototype.show=function(){this._targetEl.classList.remove("opacity-0","invisible"),this._targetEl.classList.add("opacity-100","visible"),this._popperInstance.setOptions(function(n){return Tf(Tf({},n),{modifiers:E2(E2([],n.modifiers,!0),[{name:"eventListeners",enabled:!0}],!1)})}),this._setupClickOutsideListener(),this._setupKeydownListener(),this._popperInstance.update(),this._visible=!0,this._options.onShow(this)},t.prototype.hide=function(){this._targetEl.classList.remove("opacity-100","visible"),this._targetEl.classList.add("opacity-0","invisible"),this._popperInstance.setOptions(function(n){return Tf(Tf({},n),{modifiers:E2(E2([],n.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._removeClickOutsideListener(),this._removeKeydownListener(),this._visible=!1,this._options.onHide(this)},t}();function U4(){document.querySelectorAll("[data-tooltip-target]").forEach(function(t){var n=t.getAttribute("data-tooltip-target"),s=document.getElementById(n);if(s){var a=t.getAttribute("data-tooltip-trigger"),r=t.getAttribute("data-tooltip-placement");new B4(s,t,{placement:r||av.placement,triggerType:a||av.triggerType})}else console.error('The tooltip element with id "'.concat(n,'" does not exist. Please check the data-tooltip-target attribute.'))})}typeof window<"u"&&(window.Tooltip=B4,window.initTooltips=U4);var Cf=globalThis&&globalThis.__assign||function(){return Cf=Object.assign||function(t){for(var n,s=1,a=arguments.length;s<a;s++){n=arguments[s];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Cf.apply(this,arguments)},F2=globalThis&&globalThis.__spreadArray||function(t,n,s){if(s||arguments.length===2)for(var a=0,r=n.length,e;a<r;a++)(e||!(a in n))&&(e||(e=Array.prototype.slice.call(n,0,a)),e[a]=n[a]);return t.concat(e||Array.prototype.slice.call(n))},ng={placement:"top",offset:10,triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},Y6=function(){function t(n,s,a){n===void 0&&(n=null),s===void 0&&(s=null),a===void 0&&(a=ng),this._targetEl=n,this._triggerEl=s,this._options=Cf(Cf({},ng),a),this._popperInstance=this._createPopperInstance(),this._visible=!1,this._init()}return t.prototype._init=function(){this._triggerEl&&this._setupEventListeners()},t.prototype._setupEventListeners=function(){var n=this,s=this._getTriggerEvents();s.showEvents.forEach(function(a){n._triggerEl.addEventListener(a,function(){n.show()}),n._targetEl.addEventListener(a,function(){n.show()})}),s.hideEvents.forEach(function(a){n._triggerEl.addEventListener(a,function(){setTimeout(function(){n._targetEl.matches(":hover")||n.hide()},100)}),n._targetEl.addEventListener(a,function(){setTimeout(function(){n._triggerEl.matches(":hover")||n.hide()},100)})})},t.prototype._createPopperInstance=function(){return I4(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[0,this._options.offset]}}]})},t.prototype._getTriggerEvents=function(){switch(this._options.triggerType){case"hover":return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]};case"click":return{showEvents:["click","focus"],hideEvents:["focusout","blur"]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]}}},t.prototype._setupKeydownListener=function(){var n=this;this._keydownEventListener=function(s){s.key==="Escape"&&n.hide()},document.body.addEventListener("keydown",this._keydownEventListener,!0)},t.prototype._removeKeydownListener=function(){document.body.removeEventListener("keydown",this._keydownEventListener,!0)},t.prototype._setupClickOutsideListener=function(){var n=this;this._clickOutsideEventListener=function(s){n._handleClickOutside(s,n._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._handleClickOutside=function(n,s){var a=n.target;a!==s&&!s.contains(a)&&!this._triggerEl.contains(a)&&this.isVisible()&&this.hide()},t.prototype.isVisible=function(){return this._visible},t.prototype.toggle=function(){this.isVisible()?this.hide():this.show(),this._options.onToggle(this)},t.prototype.show=function(){this._targetEl.classList.remove("opacity-0","invisible"),this._targetEl.classList.add("opacity-100","visible"),this._popperInstance.setOptions(function(n){return Cf(Cf({},n),{modifiers:F2(F2([],n.modifiers,!0),[{name:"eventListeners",enabled:!0}],!1)})}),this._setupClickOutsideListener(),this._setupKeydownListener(),this._popperInstance.update(),this._visible=!0,this._options.onShow(this)},t.prototype.hide=function(){this._targetEl.classList.remove("opacity-100","visible"),this._targetEl.classList.add("opacity-0","invisible"),this._popperInstance.setOptions(function(n){return Cf(Cf({},n),{modifiers:F2(F2([],n.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._removeClickOutsideListener(),this._removeKeydownListener(),this._visible=!1,this._options.onHide(this)},t}();function $4(){document.querySelectorAll("[data-popover-target]").forEach(function(t){var n=t.getAttribute("data-popover-target"),s=document.getElementById(n);if(s){var a=t.getAttribute("data-popover-trigger"),r=t.getAttribute("data-popover-placement"),e=t.getAttribute("data-popover-offset");new Y6(s,t,{placement:r||ng.placement,offset:e?parseInt(e):ng.offset,triggerType:a||ng.triggerType})}else console.error('The popover element with id "'.concat(n,'" does not exist. Please check the data-popover-target attribute.'))})}typeof window<"u"&&(window.Popover=Y6,window.initPopovers=$4);var ov=globalThis&&globalThis.__assign||function(){return ov=Object.assign||function(t){for(var n,s=1,a=arguments.length;s<a;s++){n=arguments[s];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ov.apply(this,arguments)},_y={triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},K6=function(){function t(n,s,a,r){n===void 0&&(n=null),s===void 0&&(s=null),a===void 0&&(a=null),r===void 0&&(r=_y),this._parentEl=n,this._triggerEl=s,this._targetEl=a,this._options=ov(ov({},_y),r),this._visible=!1,this._init()}return t.prototype._init=function(){var n=this;if(this._triggerEl){var s=this._getTriggerEventTypes(this._options.triggerType);s.showEvents.forEach(function(a){n._triggerEl.addEventListener(a,function(){n.show()}),n._targetEl.addEventListener(a,function(){n.show()})}),s.hideEvents.forEach(function(a){n._parentEl.addEventListener(a,function(){n._parentEl.matches(":hover")||n.hide()})})}},t.prototype.hide=function(){this._targetEl.classList.add("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","false"),this._visible=!1,this._options.onHide(this)},t.prototype.show=function(){this._targetEl.classList.remove("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","true"),this._visible=!0,this._options.onShow(this)},t.prototype.toggle=function(){this._visible?this.hide():this.show()},t.prototype.isHidden=function(){return!this._visible},t.prototype.isVisible=function(){return this._visible},t.prototype._getTriggerEventTypes=function(n){switch(n){case"hover":return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]};case"click":return{showEvents:["click","focus"],hideEvents:["focusout","blur"]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]}}},t}();function H4(){document.querySelectorAll("[data-dial-init]").forEach(function(t){var n=t.querySelector("[data-dial-toggle]");if(n){var s=n.getAttribute("data-dial-toggle"),a=document.getElementById(s);if(a){var r=n.getAttribute("data-dial-trigger");new K6(t,n,a,{triggerType:r||_y.triggerType})}else console.error("Dial with id ".concat(s," does not exist. Are you sure that the data-dial-toggle attribute points to the correct modal id?"))}else console.error("Dial with id ".concat(t.id," does not have a trigger element. Are you sure that the data-dial-toggle attribute exists?"))})}typeof window<"u"&&(window.Dial=K6,window.initDials=H4);function OO(){D4(),E4(),F4(),x4(),P4(),N4(),M4(),L4(),U4(),$4(),H4()}typeof window<"u"&&(window.initFlowbite=OO);var RO=new x7("load",[D4,E4,F4,x4,P4,N4,M4,L4,U4,$4,H4]);RO.init();const IO=Wt("div",{class:"tooltip-arrow","data-popper-arrow":""},null,-1),q6=vs({__name:"Tooltip",props:{placement:null},setup(t){const n=t,s=ur(null),a=ur(null),r=cn(()=>n.placement??"auto");return Sl(()=>{if(s.value&&a.value){const e={placement:r.value,triggerType:"hover"};new B4(s.value,a.value,e)}}),(e,d)=>(pn(),Qn("div",null,[Wt("div",{ref_key:"tooltipTriggerEl",ref:a},[Th(e.$slots,"default")],512),Wt("div",{ref_key:"tooltipTargetEl",ref:s,role:"tooltip",class:"tooltip inline-block absolute invisible px-3 py-2 transition-opacity duration-300 shadow-sm opacity-0","z-99999":"",rounded:"","text-base":"","text-white":"","font-medium":"","bg-gray-900":"","dark:bg-gray-700":""},[Wt("div",null,[Th(e.$slots,"popper")]),IO],512)]))}}),PO="Board - XCPCIO",QM="Rating - XCPCIO",XM="Balloon - XCPCIO",JM="Countdown - XCPCIO",NO=cn(()=>window?window.CDN_HOST:""),Q6=cn(()=>window?window.DATA_HOST:""),ZM=cn(()=>Q6.value.replace("/data/","/rating-data/")),MO=cn(()=>window?window.DATA_REGION:""),LO="0.50.1",X6="https://github.com/xcpcio/xcpcio",BO="623fa19e8a",UO="https://xcpcio.com";var El=(t=>(t.PENDING="PENDING",t.RUNNING="RUNNING",t.FROZEN="FROZEN",t.FINISHED="FINISHED",t.PAUSED="PAUSED",t))(El||{}),Ht=(t=>(t.PENDING="PENDING",t.WAITING="WAITING",t.PREPARING="PREPARING",t.COMPILING="COMPILING",t.RUNNING="RUNNING",t.JUDGING="JUDGING",t.FROZEN="FROZEN",t.ACCEPTED="ACCEPTED",t.CORRECT="CORRECT",t.PARTIALLY_CORRECT="PARTIALLY_CORRECT",t.REJECTED="REJECTED",t.WRONG_ANSWER="WRONG_ANSWER",t.NO_OUTPUT="NO_OUTPUT",t.COMPILATION_ERROR="COMPILATION_ERROR",t.PRESENTATION_ERROR="PRESENTATION_ERROR",t.RUNTIME_ERROR="RUNTIME_ERROR",t.TIME_LIMIT_EXCEEDED="TIME_LIMIT_EXCEEDED",t.MEMORY_LIMIT_EXCEEDED="MEMORY_LIMIT_EXCEEDED",t.OUTPUT_LIMIT_EXCEEDED="OUTPUT_LIMIT_EXCEEDED",t.IDLENESS_LIMIT_EXCEEDED="IDLENESS_LIMIT_EXCEEDED",t.HACKED="HACKED",t.JUDGEMENT_FAILED="JUDGEMENT_FAILED",t.CONFIGURATION_ERROR="CONFIGURATION_ERROR",t.FILE_ERROR="FILE_ERROR",t.SYSTEM_ERROR="SYSTEM_ERROR",t.CANCELED="CANCELED",t.SKIPPED="SKIPPED",t.SECURITY_VIOLATED="SECURITY_VIOLATED",t.DENIAL_OF_JUDGEMENT="DENIAL_OF_JUDGEMENT",t.UNKNOWN="UNKNOWN",t.UNDEFINED="UNDEFINED",t))(Ht||{});const eL={PENDING:"Pending",WAITING:"Waiting",PREPARING:"Preparing",COMPILING:"Compiling",RUNNING:"Running",JUDGING:"Judging",FROZEN:"Frozen",ACCEPTED:"Accepted",CORRECT:"Correct",PARTIALLY_CORRECT:"Partially Correct",REJECTED:"Rejected",WRONG_ANSWER:"Wrong Answer",NO_OUTPUT:"No Output",COMPILATION_ERROR:"Compilation Error",PRESENTATION_ERROR:"Presentation Error",RUNTIME_ERROR:"Runtime Error",TIME_LIMIT_EXCEEDED:"Time Limit Exceeded",MEMORY_LIMIT_EXCEEDED:"Memory Limit Exceeded",OUTPUT_LIMIT_EXCEEDED:"Output Limit Exceeded",IDLENESS_LIMIT_EXCEEDED:"Idleness Limit Exceeded",HACKED:"Hacked",JUDGEMENT_FAILED:"Judgement Failed",CONFIGURATION_ERROR:"Configuration Error",FILE_ERROR:"File Error",SYSTEM_ERROR:"System Error",CANCELED:"Canceled",SKIPPED:"Skipped",SECURITY_VIOLATED:"Security Violated",DENIAL_OF_JUDGEMENT:"Denial Of Judgement",UNKNOWN:"Unknown",UNDEFINED:"Undefined"},tL={PENDING:"PD",WAITING:"PD",PREPARING:"PD",COMPILING:"PD",RUNNING:"PD",JUDGING:"PD",FROZEN:"?",ACCEPTED:"AC",CORRECT:"AC",PARTIALLY_CORRECT:"RJ",REJECTED:"RJ",WRONG_ANSWER:"WA",NO_OUTPUT:"NO",COMPILATION_ERROR:"CE",PRESENTATION_ERROR:"PE",RUNTIME_ERROR:"RTE",TIME_LIMIT_EXCEEDED:"TLE",MEMORY_LIMIT_EXCEEDED:"MLE",OUTPUT_LIMIT_EXCEEDED:"OLE",IDLENESS_LIMIT_EXCEEDED:"ILE",HACKED:"RJ",JUDGEMENT_FAILED:"RJ",CONFIGURATION_ERROR:"RJ",FILE_ERROR:"RJ",SYSTEM_ERROR:"RJ",CANCELED:"RJ",SKIPPED:"RJ",SECURITY_VIOLATED:"RJ",DENIAL_OF_JUDGEMENT:"RJ",UNKNOWN:"RJ",UNDEFINED:"RJ"},$O={"mt-8":"","py-4":"","md:py-8":"","lg:py-10":"","w-full":"",flex:"","justify-center":"","items-center":""},HO={"text-center":"","w-full":""},WO=Wt("div",{"i-ion-balloon-sharp":"","mr-4":"","h-8":""},null,-1),zO=Wt("p",{"my-6":"","text-gray-500":"","dark:text-gray-400":"","w-full":"",flex:"","justify-center":""}," Open-source project of ICPC/CCPC Standings. ",-1),jO={"mb-6":"","w-full":"",flex:"","flex-wrap":"","items-center":"","justify-center":"","text-gray-900":"","dark:text-white":""},GO={"mr-4":"","md:mr-6":""},VO=["href"],YO={flex:"","justify-center":"","items-start":"","flex-col":""},KO={"mr-4":"","md:mr-6":""},qO=Wt("a",{href:"mailto:hi@dup4.com","hover:underline":""}," Contact ",-1),QO={flex:"","justify-center":"","items-start":"","flex-col":""},XO={"text-sm":"","text-gray-500":"","sm:text-center":"","dark:text-gray-400":"","w-full":""},JO=vs({__name:"Footer",setup(t){return(n,s)=>{const a=Cl("RouterLink"),r=q6;return pn(),Qn("footer",$O,[Wt("div",HO,[Kr(a,{flex:"","items-center":"","justify-center":"","text-2xl":"","font-semibold":"","text-gray-900":"","dark:text-white":"",to:"/"},{default:As(()=>[WO,tc(" Get more balloons ")]),_:1}),zO,Wt("ul",jO,[Wt("li",null,[Kr(a,{to:"/","mr-4":"","md:mr-6":"","hover:underline":""},{default:As(()=>[tc(" Home ")]),_:1})]),Wt("li",null,[Wt("div",GO,[Kr(r,null,{popper:As(()=>[Wt("div",YO,[Wt("div",null,"Tag: "+as(mr(LO)),1),Wt("div",null,"Sha: "+as(mr(BO)),1)])]),default:As(()=>[Wt("a",{href:mr(X6),"hover:underline":"",rel:"noreferrer",target:"_blank",title:"GitHub"}," GitHub ",8,VO)]),_:1})])]),Wt("li",null,[Wt("div",KO,[Kr(r,null,{popper:As(()=>[Wt("div",QO,[Wt("div",null,"CDN Host: "+as("CDN_HOST"in n?n.CDN_HOST:mr(NO)),1),Wt("div",null,"DATA Host: "+as("DATA_HOST"in n?n.DATA_HOST:mr(Q6)),1),Wt("div",null,"Data Region: "+as("DATA_REGION"in n?n.DATA_REGION:mr(MO)),1)])]),default:As(()=>[qO]),_:1})])])]),Wt("span",XO,[tc("© 2020-PRESENT "),Kr(a,{to:"/","hover:underline":""},{default:As(()=>[tc("XCPCIO™")]),_:1}),tc(". All Rights Reserved.")])])])}}});function lc(t){return Dv()?(Hy(t),!0):!1}function T_(){const t=new Set,n=r=>{t.delete(r)};return{on:r=>{t.add(r);const e=()=>n(r);return lc(e),{off:e}},off:n,trigger:r=>Promise.all(Array.from(t).map(e=>e(r)))}}function Ti(t){return typeof t=="function"?t():mr(t)}const D1=typeof window<"u",ZO=t=>typeof t<"u",e9=t=>t!=null,Nf=()=>{};function J6(t,n){function s(...a){return new Promise((r,e)=>{Promise.resolve(t(()=>n.apply(this,a),{fn:n,thisArg:this,args:a})).then(r).catch(e)})}return s}const Z6=t=>t();function t9(t,n=!0,s=!0,a=!1){let r=0,e,d=!0,_=Nf,y;const E=()=>{e&&(clearTimeout(e),e=void 0,_(),_=Nf)};return A=>{const R=Ti(t),L=Date.now()-r,B=()=>y=A();return E(),R<=0?(r=Date.now(),B()):(L>R&&(s||!d)?(r=Date.now(),B()):n&&(y=new Promise((P,V)=>{_=a?V:P,e=setTimeout(()=>{r=Date.now(),d=!0,P(B()),E()},Math.max(0,R-L))})),!s&&!e&&(e=setTimeout(()=>d=!0,R)),d=!1,y)}}function r9(t=Z6){const n=ur(!0);function s(){n.value=!1}function a(){n.value=!0}const r=(...e)=>{n.value&&t(...e)};return{isActive:Oh(n),pause:s,resume:a,eventFilter:r}}function Yw(t,n=!1,s="Timeout"){return new Promise((a,r)=>{setTimeout(n?()=>r(s):a,t)})}function n9(t,...n){return n.some(s=>s in t)}function ig(...t){if(t.length!==1)return LE(...t);const n=t[0];return typeof n=="function"?Oh(qy(()=>({get:n,set:Nf}))):ur(n)}function rL(t,n=200,s=!1,a=!0,r=!1){return J6(t9(n,s,a,r),t)}function i9(t,n=!0){Os()?Sl(t):n?t():uc(t)}function yy(t,n=!1){function s(A,{flush:R="sync",deep:L=!1,timeout:B,throwOnTimeout:P}={}){let V=null;const q=[new Promise(oe=>{V=Zn(t,K=>{A(K)!==n&&(V==null||V(),oe(K))},{flush:R,deep:L,immediate:!0})})];return B!=null&&q.push(Yw(B,P).then(()=>Ti(t)).finally(()=>V==null?void 0:V())),Promise.race(q)}function a(A,R){if(!$n(A))return s(K=>K===A,R);const{flush:L="sync",deep:B=!1,timeout:P,throwOnTimeout:V}=R??{};let z=null;const oe=[new Promise(K=>{z=Zn([t,A],([G,ne])=>{n!==(G===ne)&&(z==null||z(),K(G))},{flush:L,deep:B,immediate:!0})})];return P!=null&&oe.push(Yw(P,V).then(()=>Ti(t)).finally(()=>(z==null||z(),Ti(t)))),Promise.race(oe)}function r(A){return s(R=>!!R,A)}function e(A){return a(null,A)}function d(A){return a(void 0,A)}function _(A){return s(Number.isNaN,A)}function y(A,R){return s(L=>{const B=Array.from(L);return B.includes(A)||B.includes(Ti(A))},R)}function E(A){return T(1,A)}function T(A=1,R){let L=-1;return s(()=>(L+=1,L>=A),R)}return Array.isArray(Ti(t))?{toMatch:s,toContains:y,changed:E,changedTimes:T,get not(){return yy(t,!n)}}:{toMatch:s,toBe:a,toBeTruthy:r,toBeNull:e,toBeNaN:_,toBeUndefined:d,changed:E,changedTimes:T,get not(){return yy(t,!n)}}}function s9(t){return yy(t)}function a9(t,n=1e3,s={}){const{immediate:a=!0,immediateCallback:r=!1}=s;let e=null;const d=ur(!1);function _(){e&&(clearInterval(e),e=null)}function y(){d.value=!1,_()}function E(){const T=Ti(n);T<=0||(d.value=!0,r&&t(),_(),e=setInterval(t,T))}if(a&&D1&&E(),$n(n)||typeof n=="function"){const T=Zn(n,()=>{d.value&&D1&&E()});lc(T)}return lc(y),{isActive:d,pause:y,resume:E}}function e5(t,n,s={}){const{immediate:a=!0}=s,r=ur(!1);let e=null;function d(){e&&(clearTimeout(e),e=null)}function _(){r.value=!1,d()}function y(...E){d(),r.value=!0,e=setTimeout(()=>{r.value=!1,e=null,t(...E)},Ti(n))}return a&&(r.value=!0,D1&&y()),lc(_),{isPending:Oh(r),start:y,stop:_}}function o9(t=!1,n={}){const{truthyValue:s=!0,falsyValue:a=!1}=n,r=$n(t),e=ur(t);function d(_){if(arguments.length)return e.value=_,e.value;{const y=Ti(s);return e.value=e.value===y?Ti(a):y,e.value}}return r?d:[e,d]}var Kw=Object.getOwnPropertySymbols,l9=Object.prototype.hasOwnProperty,c9=Object.prototype.propertyIsEnumerable,u9=(t,n)=>{var s={};for(var a in t)l9.call(t,a)&&n.indexOf(a)<0&&(s[a]=t[a]);if(t!=null&&Kw)for(var a of Kw(t))n.indexOf(a)<0&&c9.call(t,a)&&(s[a]=t[a]);return s};function f9(t,n,s={}){const a=s,{eventFilter:r=Z6}=a,e=u9(a,["eventFilter"]);return Zn(t,J6(r,n),e)}var h9=Object.defineProperty,d9=Object.defineProperties,p9=Object.getOwnPropertyDescriptors,lv=Object.getOwnPropertySymbols,t5=Object.prototype.hasOwnProperty,r5=Object.prototype.propertyIsEnumerable,qw=(t,n,s)=>n in t?h9(t,n,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[n]=s,g9=(t,n)=>{for(var s in n||(n={}))t5.call(n,s)&&qw(t,s,n[s]);if(lv)for(var s of lv(n))r5.call(n,s)&&qw(t,s,n[s]);return t},m9=(t,n)=>d9(t,p9(n)),v9=(t,n)=>{var s={};for(var a in t)t5.call(t,a)&&n.indexOf(a)<0&&(s[a]=t[a]);if(t!=null&&lv)for(var a of lv(t))n.indexOf(a)<0&&r5.call(t,a)&&(s[a]=t[a]);return s};function b9(t,n,s={}){const a=s,{eventFilter:r}=a,e=v9(a,["eventFilter"]),{eventFilter:d,pause:_,resume:y,isActive:E}=r9(r);return{stop:f9(t,n,m9(g9({},e),{eventFilter:d})),pause:_,resume:y,isActive:E}}function Jd(t){var n;const s=Ti(t);return(n=s==null?void 0:s.$el)!=null?n:s}const bo=D1?window:void 0,n5=D1?window.document:void 0,_9=D1?window.navigator:void 0;function rc(...t){let n,s,a,r;if(typeof t[0]=="string"||Array.isArray(t[0])?([s,a,r]=t,n=bo):[n,s,a,r]=t,!n)return Nf;Array.isArray(s)||(s=[s]),Array.isArray(a)||(a=[a]);const e=[],d=()=>{e.forEach(T=>T()),e.length=0},_=(T,A,R,L)=>(T.addEventListener(A,R,L),()=>T.removeEventListener(A,R,L)),y=Zn(()=>[Jd(n),Ti(r)],([T,A])=>{d(),T&&e.push(...s.flatMap(R=>a.map(L=>_(T,R,L,A))))},{immediate:!0,flush:"post"}),E=()=>{y(),d()};return lc(E),E}function y9(t){return typeof t=="function"?t:typeof t=="string"?n=>n.key===t:Array.isArray(t)?n=>t.includes(n.key):()=>!0}function nL(...t){let n,s,a={};t.length===3?(n=t[0],s=t[1],a=t[2]):t.length===2?typeof t[1]=="object"?(n=!0,s=t[0],a=t[1]):(n=t[0],s=t[1]):(n=!0,s=t[0]);const{target:r=bo,eventName:e="keydown",passive:d=!1,dedupe:_=!1}=a,y=y9(n);return rc(r,e,T=>{T.repeat&&Ti(_)||y(T)&&s(T)},d)}function w9(){const t=ur(!1);return Os()&&Sl(()=>{t.value=!0}),t}function jv(t){const n=w9();return cn(()=>(n.value,!!t()))}function D9(t,n={}){const{immediate:s=!0,window:a=bo}=n,r=ur(!1);let e=0,d=null;function _(T){if(!r.value||!a)return;const A=T-(e||T);t({delta:A,timestamp:T}),e=T,d=a.requestAnimationFrame(_)}function y(){!r.value&&a&&(r.value=!0,d=a.requestAnimationFrame(_))}function E(){r.value=!1,d!=null&&a&&(a.cancelAnimationFrame(d),d=null)}return s&&y(),lc(E),{isActive:Oh(r),pause:E,resume:y}}function E9(t,n={}){const{window:s=bo}=n,a=jv(()=>s&&"matchMedia"in s&&typeof s.matchMedia=="function");let r;const e=ur(!1),d=E=>{e.value=E.matches},_=()=>{r&&("removeEventListener"in r?r.removeEventListener("change",d):r.removeListener(d))},y=e4(()=>{a.value&&(_(),r=s.matchMedia(Ti(t)),"addEventListener"in r?r.addEventListener("change",d):r.addListener(d),e.value=r.matches)});return lc(()=>{y(),_(),r=void 0}),e}function iL(t={}){const{navigator:n=_9,read:s=!1,source:a,copiedDuring:r=1500,legacy:e=!1}=t,d=jv(()=>n&&"clipboard"in n),_=cn(()=>d.value||e),y=ur(""),E=ur(!1),T=e5(()=>E.value=!1,r);function A(){d.value?n.clipboard.readText().then(P=>{y.value=P}):y.value=B()}_.value&&s&&rc(["copy","cut"],A);async function R(P=Ti(a)){_.value&&P!=null&&(d.value?await n.clipboard.writeText(P):L(P),y.value=P,E.value=!0,T.start())}function L(P){const V=document.createElement("textarea");V.value=P??"",V.style.position="absolute",V.style.opacity="0",document.body.appendChild(V),V.select(),document.execCommand("copy"),V.remove()}function B(){var P,V,z;return(z=(V=(P=document==null?void 0:document.getSelection)==null?void 0:P.call(document))==null?void 0:V.toString())!=null?z:""}return{isSupported:_,text:y,copied:E,copy:R}}function F9(t){return JSON.parse(JSON.stringify(t))}const x2=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},T2="__vueuse_ssr_handlers__",x9=T9();function T9(){return T2 in x2||(x2[T2]=x2[T2]||{}),x2[T2]}function i5(t,n){return x9[t]||n}function C9(t){return t==null?"any":t instanceof Set?"set":t instanceof Map?"map":t instanceof Date?"date":typeof t=="boolean"?"boolean":typeof t=="string"?"string":typeof t=="object"?"object":Number.isNaN(t)?"any":"number"}var A9=Object.defineProperty,Qw=Object.getOwnPropertySymbols,S9=Object.prototype.hasOwnProperty,k9=Object.prototype.propertyIsEnumerable,Xw=(t,n,s)=>n in t?A9(t,n,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[n]=s,Jw=(t,n)=>{for(var s in n||(n={}))S9.call(n,s)&&Xw(t,s,n[s]);if(Qw)for(var s of Qw(n))k9.call(n,s)&&Xw(t,s,n[s]);return t};const O9={boolean:{read:t=>t==="true",write:t=>String(t)},object:{read:t=>JSON.parse(t),write:t=>JSON.stringify(t)},number:{read:t=>Number.parseFloat(t),write:t=>String(t)},any:{read:t=>t,write:t=>String(t)},string:{read:t=>t,write:t=>String(t)},map:{read:t=>new Map(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t.entries()))},set:{read:t=>new Set(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t))},date:{read:t=>new Date(t),write:t=>t.toISOString()}},Zw="vueuse-storage";function R9(t,n,s,a={}){var r;const{flush:e="pre",deep:d=!0,listenToStorageChanges:_=!0,writeDefaults:y=!0,mergeDefaults:E=!1,shallow:T,window:A=bo,eventFilter:R,onError:L=U=>{console.error(U)}}=a,B=(T?qd:ur)(n);if(!s)try{s=i5("getDefaultStorage",()=>{var U;return(U=bo)==null?void 0:U.localStorage})()}catch(U){L(U)}if(!s)return B;const P=Ti(n),V=C9(P),z=(r=a.serializer)!=null?r:O9[V],{pause:q,resume:oe}=b9(B,()=>K(B.value),{flush:e,deep:d,eventFilter:R});return A&&_&&(rc(A,"storage",ce),rc(A,Zw,ne)),ce(),B;function K(U){try{if(U==null)s.removeItem(t);else{const W=z.write(U),te=s.getItem(t);te!==W&&(s.setItem(t,W),A&&A.dispatchEvent(new CustomEvent(Zw,{detail:{key:t,oldValue:te,newValue:W,storageArea:s}})))}}catch(W){L(W)}}function G(U){const W=U?U.newValue:s.getItem(t);if(W==null)return y&&P!==null&&s.setItem(t,z.write(P)),P;if(!U&&E){const te=z.read(W);return typeof E=="function"?E(te,P):V==="object"&&!Array.isArray(te)?Jw(Jw({},P),te):te}else return typeof W!="string"?W:z.read(W)}function ne(U){ce(U.detail)}function ce(U){if(!(U&&U.storageArea!==s)){if(U&&U.key==null){B.value=P;return}if(!(U&&U.key!==t)){q();try{B.value=G(U)}catch(W){L(W)}finally{U?uc(oe):oe()}}}}}function s5(t){return E9("(prefers-color-scheme: dark)",t)}var I9=Object.defineProperty,eD=Object.getOwnPropertySymbols,P9=Object.prototype.hasOwnProperty,N9=Object.prototype.propertyIsEnumerable,tD=(t,n,s)=>n in t?I9(t,n,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[n]=s,M9=(t,n)=>{for(var s in n||(n={}))P9.call(n,s)&&tD(t,s,n[s]);if(eD)for(var s of eD(n))N9.call(n,s)&&tD(t,s,n[s]);return t};function L9(t={}){const{selector:n="html",attribute:s="class",initialValue:a="auto",window:r=bo,storage:e,storageKey:d="vueuse-color-scheme",listenToStorageChanges:_=!0,storageRef:y,emitAuto:E,disableTransition:T=!0}=t,A=M9({auto:"",light:"light",dark:"dark"},t.modes||{}),R=s5({window:r}),L=cn(()=>R.value?"dark":"light"),B=y||(d==null?ig(a):R9(d,a,e,{window:r,listenToStorageChanges:_})),P=cn(()=>B.value==="auto"?L.value:B.value),V=i5("updateHTMLAttrs",(K,G,ne)=>{const ce=typeof K=="string"?r==null?void 0:r.document.querySelector(K):Jd(K);if(!ce)return;let U;if(T){U=r.document.createElement("style");const W="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";U.appendChild(document.createTextNode(W)),r.document.head.appendChild(U)}if(G==="class"){const W=ne.split(/\s/g);Object.values(A).flatMap(te=>(te||"").split(/\s/g)).filter(Boolean).forEach(te=>{W.includes(te)?ce.classList.add(te):ce.classList.remove(te)})}else ce.setAttribute(G,ne);T&&(r.getComputedStyle(U).opacity,document.head.removeChild(U))});function z(K){var G;V(n,s,(G=A[K])!=null?G:K)}function q(K){t.onChanged?t.onChanged(K,z):z(K)}Zn(P,q,{flush:"post",immediate:!0}),i9(()=>q(P.value));const oe=cn({get(){return E?B.value:P.value},set(K){B.value=K}});try{return Object.assign(oe,{store:B,system:L,state:P})}catch{return oe}}var rD=Object.getOwnPropertySymbols,B9=Object.prototype.hasOwnProperty,U9=Object.prototype.propertyIsEnumerable,$9=(t,n)=>{var s={};for(var a in t)B9.call(t,a)&&n.indexOf(a)<0&&(s[a]=t[a]);if(t!=null&&rD)for(var a of rD(t))n.indexOf(a)<0&&U9.call(t,a)&&(s[a]=t[a]);return s};function H9(t,n,s={}){const a=s,{window:r=bo}=a,e=$9(a,["window"]);let d;const _=jv(()=>r&&"MutationObserver"in r),y=()=>{d&&(d.disconnect(),d=void 0)},E=Zn(()=>Jd(t),A=>{y(),_.value&&r&&A&&(d=new MutationObserver(n),d.observe(A,e))},{immediate:!0}),T=()=>{y(),E()};return lc(T),{isSupported:_,stop:T}}var W9=Object.defineProperty,z9=Object.defineProperties,j9=Object.getOwnPropertyDescriptors,nD=Object.getOwnPropertySymbols,G9=Object.prototype.hasOwnProperty,V9=Object.prototype.propertyIsEnumerable,iD=(t,n,s)=>n in t?W9(t,n,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[n]=s,Y9=(t,n)=>{for(var s in n||(n={}))G9.call(n,s)&&iD(t,s,n[s]);if(nD)for(var s of nD(n))V9.call(n,s)&&iD(t,s,n[s]);return t},K9=(t,n)=>z9(t,j9(n));function q9(t={}){const{valueDark:n="dark",valueLight:s=""}=t,a=L9(K9(Y9({},t),{onChanged:(e,d)=>{var _;t.onChanged?(_=t.onChanged)==null||_.call(t,e==="dark",d,e):d(e)},modes:{dark:n,light:s}}));return cn({get(){return a.value==="dark"},set(e){const d=e?"dark":"light";a.system.value===d?a.value="auto":a.value=d}})}function sL({document:t=n5}={}){if(!t)return ur("visible");const n=ur(t.visibilityState);return rc(t,"visibilitychange",()=>{n.value=t.visibilityState}),n}function Q9(t,n,s={}){const{root:a,rootMargin:r="0px",threshold:e=.1,window:d=bo,immediate:_=!0}=s,y=jv(()=>d&&"IntersectionObserver"in d),E=cn(()=>{const B=Ti(t);return(Array.isArray(B)?B:[B]).map(Jd).filter(e9)});let T=Nf;const A=ur(_),R=y.value?Zn(()=>[E.value,Jd(a),A.value],([B,P])=>{if(T(),!A.value||!B.length)return;const V=new IntersectionObserver(n,{root:Jd(P),rootMargin:r,threshold:e});B.forEach(z=>z&&V.observe(z)),T=()=>{V.disconnect(),T=Nf}},{immediate:_,flush:"post"}):Nf,L=()=>{T(),R(),A.value=!1};return lc(L),{isSupported:y,isActive:A,pause(){T(),A.value=!1},resume(){A.value=!0},stop:L}}function X9(t,{window:n=bo,scrollTarget:s}={}){const a=ur(!1);return Q9(t,([{isIntersecting:r}])=>{a.value=r},{root:s,window:n}),a}var J9=Object.defineProperty,Z9=Object.defineProperties,eR=Object.getOwnPropertyDescriptors,sD=Object.getOwnPropertySymbols,tR=Object.prototype.hasOwnProperty,rR=Object.prototype.propertyIsEnumerable,aD=(t,n,s)=>n in t?J9(t,n,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[n]=s,Ha=(t,n)=>{for(var s in n||(n={}))tR.call(n,s)&&aD(t,s,n[s]);if(sD)for(var s of sD(n))rR.call(n,s)&&aD(t,s,n[s]);return t},Up=(t,n)=>Z9(t,eR(n));const nR={json:"application/json",text:"text/plain"};function oD(t){return t&&n9(t,"immediate","refetch","initialData","timeout","beforeFetch","afterFetch","onFetchError","fetch")}function C_(t){return typeof Headers<"u"&&t instanceof Headers?Object.fromEntries([...t.entries()]):t}function iR(t,...n){var s;const a=typeof AbortController=="function";let r={},e={immediate:!0,refetch:!1,timeout:0};const d={method:"GET",type:"text",payload:void 0};n.length>0&&(oD(n[0])?e=Ha(Ha({},e),n[0]):r=n[0]),n.length>1&&oD(n[1])&&(e=Ha(Ha({},e),n[1]));const{fetch:_=(s=bo)==null?void 0:s.fetch,initialData:y,timeout:E}=e,T=T_(),A=T_(),R=T_(),L=ur(!1),B=ur(!1),P=ur(!1),V=ur(null),z=qd(null),q=qd(null),oe=qd(y||null),K=cn(()=>a&&B.value);let G,ne;const ce=()=>{a&&(G==null||G.abort(),G=new AbortController,G.signal.onabort=()=>P.value=!0,r=Up(Ha({},r),{signal:G.signal}))},U=$e=>{B.value=$e,L.value=!$e};E&&(ne=e5(ce,E,{immediate:!1}));const W=async($e=!1)=>{var je;ce(),U(!0),q.value=null,V.value=null,P.value=!1;const Ee={method:d.method,headers:{}};if(d.payload){const de=C_(Ee.headers),Se=Ti(d.payload);!d.payloadType&&Se&&Object.getPrototypeOf(Se)===Object.prototype&&!(Se instanceof FormData)&&(d.payloadType="json"),d.payloadType&&(de["Content-Type"]=(je=nR[d.payloadType])!=null?je:d.payloadType),Ee.body=d.payloadType==="json"?JSON.stringify(Se):Se}let lt=!1;const Xe={url:Ti(t),options:Ha(Ha({},Ee),r),cancel:()=>{lt=!0}};if(e.beforeFetch&&Object.assign(Xe,await e.beforeFetch(Xe)),lt||!_)return U(!1),Promise.resolve(null);let Je=null;return ne&&ne.start(),new Promise((de,Se)=>{var rt;_(Xe.url,Up(Ha(Ha({},Ee),Xe.options),{headers:Ha(Ha({},C_(Ee.headers)),C_((rt=Xe.options)==null?void 0:rt.headers))})).then(async We=>{if(z.value=We,V.value=We.status,Je=await We[d.type](),!We.ok)throw oe.value=y||null,new Error(We.statusText);return e.afterFetch&&({data:Je}=await e.afterFetch({data:Je,response:We})),oe.value=Je,T.trigger(We),de(We)}).catch(async We=>{let Fe=We.message||We.name;return e.onFetchError&&({error:Fe}=await e.onFetchError({data:Je,error:We,response:z.value})),q.value=Fe,A.trigger(We),$e?Se(We):de(null)}).finally(()=>{U(!1),ne&&ne.stop(),R.trigger(null)})})},te=ig(e.refetch);Zn([te,ig(t)],([$e])=>$e&&W(),{deep:!0});const fe={isFinished:L,statusCode:V,response:z,error:q,data:oe,isFetching:B,canAbort:K,aborted:P,abort:ce,execute:W,onFetchResponse:T.on,onFetchError:A.on,onFetchFinally:R.on,get:xe("GET"),put:xe("PUT"),post:xe("POST"),delete:xe("DELETE"),patch:xe("PATCH"),head:xe("HEAD"),options:xe("OPTIONS"),json:be("json"),text:be("text"),blob:be("blob"),arrayBuffer:be("arrayBuffer"),formData:be("formData")};function xe($e){return(je,Ee)=>{if(!B.value)return d.method=$e,d.payload=je,d.payloadType=Ee,$n(d.payload)&&Zn([te,ig(d.payload)],([lt])=>lt&&W(),{deep:!0}),Up(Ha({},fe),{then(lt,Xe){return _e().then(lt,Xe)}})}}function _e(){return new Promise(($e,je)=>{s9(L).toBe(!0).then(()=>$e(fe)).catch(Ee=>je(Ee))})}function be($e){return()=>{if(!B.value)return d.type=$e,Up(Ha({},fe),{then(je,Ee){return _e().then(je,Ee)}})}}return e.immediate&&Promise.resolve().then(()=>W()),Up(Ha({},fe),{then($e,je){return _e().then($e,je)}})}const sR={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function aL(t={}){const{reactive:n=!1,target:s=bo,aliasMap:a=sR,passive:r=!0,onEventFired:e=Nf}=t,d=Hf(new Set),_={toJSON(){return{}},current:d},y=n?Hf(_):_,E=new Set,T=new Set;function A(P,V){P in y&&(n?y[P]=V:y[P].value=V)}function R(){d.clear();for(const P of T)A(P,!1)}function L(P,V){var z,q;const oe=(z=P.key)==null?void 0:z.toLowerCase(),G=[(q=P.code)==null?void 0:q.toLowerCase(),oe].filter(Boolean);oe&&(V?d.add(oe):d.delete(oe));for(const ne of G)T.add(ne),A(ne,V);oe==="meta"&&!V?(E.forEach(ne=>{d.delete(ne),A(ne,!1)}),E.clear()):typeof P.getModifierState=="function"&&P.getModifierState("Meta")&&V&&[...d,...G].forEach(ne=>E.add(ne))}rc(s,"keydown",P=>(L(P,!0),e(P)),{passive:r}),rc(s,"keyup",P=>(L(P,!1),e(P)),{passive:r}),rc("blur",R,{passive:!0}),rc("focus",R,{passive:!0});const B=new Proxy(y,{get(P,V,z){if(typeof V!="string")return Reflect.get(P,V,z);if(V=V.toLowerCase(),V in a&&(V=a[V]),!(V in y))if(/[+_-]/.test(V)){const oe=V.split(/[+_-]/g).map(K=>K.trim());y[V]=cn(()=>oe.every(K=>Ti(B[K])))}else y[V]=ur(!1);const q=Reflect.get(P,V,z);return n?Ti(q):q}});return B}var aR=Object.defineProperty,lD=Object.getOwnPropertySymbols,oR=Object.prototype.hasOwnProperty,lR=Object.prototype.propertyIsEnumerable,cD=(t,n,s)=>n in t?aR(t,n,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[n]=s,cR=(t,n)=>{for(var s in n||(n={}))oR.call(n,s)&&cD(t,s,n[s]);if(lD)for(var s of lD(n))lR.call(n,s)&&cD(t,s,n[s]);return t};function a5(t={}){const{controls:n=!1,interval:s="requestAnimationFrame"}=t,a=ur(new Date),r=()=>a.value=new Date,e=s==="requestAnimationFrame"?D9(r,{immediate:!0}):a9(r,s,{immediate:!0});return n?cR({now:a},e):a}function uR(t=null,n={}){var s,a;const{document:r=n5}=n,e=ig((s=t??(r==null?void 0:r.title))!=null?s:null),d=t&&typeof t=="function";function _(y){if(!("titleTemplate"in n))return y;const E=n.titleTemplate||"%s";return typeof E=="function"?E(y):Ti(E).replace(/%s/g,y)}return Zn(e,(y,E)=>{y!==E&&r&&(r.title=_(typeof y=="string"?y:""))},{immediate:!0}),n.observe&&!n.titleTemplate&&r&&!d&&H9((a=r.head)==null?void 0:a.querySelector("title"),()=>{r&&r.title!==e.value&&(e.value=_(r.title))},{childList:!0}),e}function uD(t,n,s,a={}){var r,e,d;const{clone:_=!1,passive:y=!1,eventName:E,deep:T=!1,defaultValue:A,shouldEmit:R}=a,L=Os(),B=s||(L==null?void 0:L.emit)||((r=L==null?void 0:L.$emit)==null?void 0:r.bind(L))||((d=(e=L==null?void 0:L.proxy)==null?void 0:e.$emit)==null?void 0:d.bind(L==null?void 0:L.proxy));let P=E;n||(n="modelValue"),P=P||`update:${n.toString()}`;const V=oe=>_?typeof _=="function"?_(oe):F9(oe):oe,z=()=>ZO(t[n])?V(t[n]):A,q=oe=>{R?R(oe)&&B(P,oe):B(P,oe)};if(y){const oe=z(),K=ur(oe);return Zn(()=>t[n],G=>K.value=V(G)),Zn(K,G=>{(G!==t[n]||T)&&q(G)},{deep:T}),K}else return cn({get(){return z()},set(oe){q(oe)}})}function fR({window:t=bo}={}){if(!t)return{x:ur(0),y:ur(0)};const n=ur(t.scrollX),s=ur(t.scrollY);return rc(t,"scroll",()=>{n.value=t.scrollX,s.value=t.scrollY},{capture:!1,passive:!0}),{x:n,y:s}}const o5=q9(),hR=o9(o5),dR=s5(),Nh=t=>(Ov("data-v-e157f5ef"),t=t(),Rv(),t),pR=Nh(()=>Wt("div",{"i-ri-arrow-up-line":""},null,-1)),gR=[pR],mR=Nh(()=>Wt("div",{class:"spacer"},null,-1)),vR={class:"right","print:op0":""},bR=Nh(()=>Wt("div",{"i-ion-balloon-sharp":""},null,-1)),_R=["title"],yR=Nh(()=>Wt("div",{"i-carbon-language":""},null,-1)),wR=[yR],DR=["title"],ER=Nh(()=>Wt("div",{i:"carbon-sun dark:carbon-moon"},null,-1)),FR=[ER],xR=["href"],TR=Nh(()=>Wt("div",{"i-carbon-logo-github":""},null,-1)),CR=[TR],AR=["href"],SR=Nh(()=>Wt("div",{"i-simple-icons-githubsponsors":""},null,-1)),kR=[SR],OR=vs({__name:"NavBar",props:{width:null},setup(t){const n=t,{t:s,locale:a}=T1(),{y:r}=fR(),e=x6();function d(){window.scrollTo({top:0,behavior:"smooth"})}async function _(){const E=s6,T=E[(E.indexOf(a.value)+1)%E.length];await _4(T),a.value=T}const y=cn(()=>e.fullPath.startsWith("/rating")?"/rating":"/");return(E,T)=>{const A=Cl("RouterLink");return pn(),Qn("header",{class:Fa(["header z-40",[(n==null?void 0:n.width)??""]])},[Wt("button",{title:"Scroll to top",fixed:"","bottom-6":"","right-6":"","z-100":"","h-10":"","w-10":"","rounded-full":"",transition:"","duration-300":"","print:hidden":"","hover-bg-hex-8883":"","hover:op100":"",class:Fa(mr(r)>300?"op30":"op0! pointer-events-none"),onClick:T[0]||(T[0]=R=>d())},gR,2),Wt("nav",{class:Fa(["nav",[n!=null&&n.width?"":"fixed"]]),"text-xl":""},[mR,Wt("div",vR,[Kr(A,{"icon-btn":"",title:mr(s)("button.home"),to:mr(y),focusable:"false"},{default:As(()=>[bR]),_:1},8,["title","to"]),Wt("a",{"icon-btn":"",title:mr(s)("button.toggle_langs"),onClick:T[1]||(T[1]=R=>_())},wR,8,_R),Wt("a",{"icon-btn":"",title:mr(s)("button.toggle_dark"),onClick:T[2]||(T[2]=R=>("toggleDark"in E?E.toggleDark:mr(hR))())},FR,8,DR),Wt("a",{"icon-btn":"",rel:"noreferrer",href:mr(X6),target:"_blank",title:"GitHub"},CR,8,xR),Wt("a",{"icon-btn":"",rel:"noreferrer",href:mr(UO),target:"_blank",title:"GitHub"},kR,8,AR)])],2)],2)}}});const C1=(t,n)=>{const s=t.__vccOpts||t;for(const[a,r]of n)s[a]=r;return s},RR=C1(OR,[["__scopeId","data-v-e157f5ef"]]),IR={},PR={"py-10":"","text-gray-700":"","dark:text-gray-200":""};function NR(t,n){const s=RR,a=Cl("RouterView"),r=JO;return pn(),Qn(Ui,null,[Kr(s),Wt("main",PR,[Kr(a),Kr(r)])],64)}const MR=C1(IR,[["render",NR]]),LR={"board-layout":()=>Zs(()=>import("./board-layout-8a7f024d.js"),[],import.meta.url),default:MR,headless:()=>Zs(()=>import("./headless-7cb9b4e2.js"),[],import.meta.url),home:()=>Zs(()=>import("./home-4f35cc24.js"),[],import.meta.url),"index-layout":()=>Zs(()=>import("./index-layout-f7a16f8b.js"),[],import.meta.url)};function BR(t){return t.map(n=>{var s;return{path:n.path,meta:n.meta,component:LR[((s=n.meta)==null?void 0:s.layout)||"default"],children:n.path==="/"?[n]:[{...n,path:""}]}})}const UR=["top","right","bottom","left"],fD=["start","end"],hD=UR.reduce((t,n)=>t.concat(n,n+"-"+fD[0],n+"-"+fD[1]),[]),Eg=Math.min,ch=Math.max,$R={left:"right",right:"left",bottom:"top",top:"bottom"},HR={start:"end",end:"start"};function wy(t,n,s){return ch(t,Eg(n,s))}function Mh(t,n){return typeof t=="function"?t(n):t}function cc(t){return t.split("-")[0]}function Tl(t){return t.split("-")[1]}function l5(t){return t==="x"?"y":"x"}function W4(t){return t==="y"?"height":"width"}function zg(t){return["top","bottom"].includes(cc(t))?"y":"x"}function z4(t){return l5(zg(t))}function c5(t,n,s){s===void 0&&(s=!1);const a=Tl(t),r=z4(t),e=W4(r);let d=r==="x"?a===(s?"end":"start")?"right":"left":a==="start"?"bottom":"top";return n.reference[e]>n.floating[e]&&(d=uv(d)),[d,uv(d)]}function WR(t){const n=uv(t);return[cv(t),n,cv(n)]}function cv(t){return t.replace(/start|end/g,n=>HR[n])}function zR(t,n,s){const a=["left","right"],r=["right","left"],e=["top","bottom"],d=["bottom","top"];switch(t){case"top":case"bottom":return s?n?r:a:n?a:r;case"left":case"right":return n?e:d;default:return[]}}function jR(t,n,s,a){const r=Tl(t);let e=zR(cc(t),s==="start",a);return r&&(e=e.map(d=>d+"-"+r),n&&(e=e.concat(e.map(cv)))),e}function uv(t){return t.replace(/left|right|bottom|top/g,n=>$R[n])}function GR(t){return{top:0,right:0,bottom:0,left:0,...t}}function u5(t){return typeof t!="number"?GR(t):{top:t,right:t,bottom:t,left:t}}function sg(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function dD(t,n,s){let{reference:a,floating:r}=t;const e=zg(n),d=z4(n),_=W4(d),y=cc(n),E=e==="y",T=a.x+a.width/2-r.width/2,A=a.y+a.height/2-r.height/2,R=a[_]/2-r[_]/2;let L;switch(y){case"top":L={x:T,y:a.y-r.height};break;case"bottom":L={x:T,y:a.y+a.height};break;case"right":L={x:a.x+a.width,y:A};break;case"left":L={x:a.x-r.width,y:A};break;default:L={x:a.x,y:a.y}}switch(Tl(n)){case"start":L[d]-=R*(s&&E?-1:1);break;case"end":L[d]+=R*(s&&E?-1:1);break}return L}const VR=async(t,n,s)=>{const{placement:a="bottom",strategy:r="absolute",middleware:e=[],platform:d}=s,_=e.filter(Boolean),y=await(d.isRTL==null?void 0:d.isRTL(n));let E=await d.getElementRects({reference:t,floating:n,strategy:r}),{x:T,y:A}=dD(E,a,y),R=a,L={},B=0;for(let P=0;P<_.length;P++){const{name:V,fn:z}=_[P],{x:q,y:oe,data:K,reset:G}=await z({x:T,y:A,initialPlacement:a,placement:R,strategy:r,middlewareData:L,rects:E,platform:d,elements:{reference:t,floating:n}});if(T=q??T,A=oe??A,L={...L,[V]:{...L[V],...K}},G&&B<=50){B++,typeof G=="object"&&(G.placement&&(R=G.placement),G.rects&&(E=G.rects===!0?await d.getElementRects({reference:t,floating:n,strategy:r}):G.rects),{x:T,y:A}=dD(E,R,y)),P=-1;continue}}return{x:T,y:A,placement:R,strategy:r,middlewareData:L}};async function Gv(t,n){var s;n===void 0&&(n={});const{x:a,y:r,platform:e,rects:d,elements:_,strategy:y}=t,{boundary:E="clippingAncestors",rootBoundary:T="viewport",elementContext:A="floating",altBoundary:R=!1,padding:L=0}=Mh(n,t),B=u5(L),V=_[R?A==="floating"?"reference":"floating":A],z=sg(await e.getClippingRect({element:(s=await(e.isElement==null?void 0:e.isElement(V)))==null||s?V:V.contextElement||await(e.getDocumentElement==null?void 0:e.getDocumentElement(_.floating)),boundary:E,rootBoundary:T,strategy:y})),q=A==="floating"?{...d.floating,x:a,y:r}:d.reference,oe=await(e.getOffsetParent==null?void 0:e.getOffsetParent(_.floating)),K=await(e.isElement==null?void 0:e.isElement(oe))?await(e.getScale==null?void 0:e.getScale(oe))||{x:1,y:1}:{x:1,y:1},G=sg(e.convertOffsetParentRelativeRectToViewportRelativeRect?await e.convertOffsetParentRelativeRectToViewportRelativeRect({rect:q,offsetParent:oe,strategy:y}):q);return{top:(z.top-G.top+B.top)/K.y,bottom:(G.bottom-z.bottom+B.bottom)/K.y,left:(z.left-G.left+B.left)/K.x,right:(G.right-z.right+B.right)/K.x}}const YR=t=>({name:"arrow",options:t,async fn(n){const{x:s,y:a,placement:r,rects:e,platform:d,elements:_}=n,{element:y,padding:E=0}=Mh(t,n)||{};if(y==null)return{};const T=u5(E),A={x:s,y:a},R=z4(r),L=W4(R),B=await d.getDimensions(y),P=R==="y",V=P?"top":"left",z=P?"bottom":"right",q=P?"clientHeight":"clientWidth",oe=e.reference[L]+e.reference[R]-A[R]-e.floating[L],K=A[R]-e.reference[R],G=await(d.getOffsetParent==null?void 0:d.getOffsetParent(y));let ne=G?G[q]:0;(!ne||!await(d.isElement==null?void 0:d.isElement(G)))&&(ne=_.floating[q]||e.floating[L]);const ce=oe/2-K/2,U=ne/2-B[L]/2-1,W=Eg(T[V],U),te=Eg(T[z],U),fe=W,xe=ne-B[L]-te,_e=ne/2-B[L]/2+ce,be=wy(fe,_e,xe),je=Tl(r)!=null&&_e!=be&&e.reference[L]/2-(_e<fe?W:te)-B[L]/2<0?_e<fe?fe-_e:xe-_e:0;return{[R]:A[R]-je,data:{[R]:be,centerOffset:_e-be+je}}}});function KR(t,n,s){return(t?[...s.filter(r=>Tl(r)===t),...s.filter(r=>Tl(r)!==t)]:s.filter(r=>cc(r)===r)).filter(r=>t?Tl(r)===t||(n?cv(r)!==r:!1):!0)}const qR=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(n){var s,a,r;const{rects:e,middlewareData:d,placement:_,platform:y,elements:E}=n,{crossAxis:T=!1,alignment:A,allowedPlacements:R=hD,autoAlignment:L=!0,...B}=Mh(t,n),P=A!==void 0||R===hD?KR(A||null,L,R):R,V=await Gv(n,B),z=((s=d.autoPlacement)==null?void 0:s.index)||0,q=P[z];if(q==null)return{};const oe=c5(q,e,await(y.isRTL==null?void 0:y.isRTL(E.floating)));if(_!==q)return{reset:{placement:P[0]}};const K=[V[cc(q)],V[oe[0]],V[oe[1]]],G=[...((a=d.autoPlacement)==null?void 0:a.overflows)||[],{placement:q,overflows:K}],ne=P[z+1];if(ne)return{data:{index:z+1,overflows:G},reset:{placement:ne}};const ce=G.map(te=>{const fe=Tl(te.placement);return[te.placement,fe&&T?te.overflows.slice(0,2).reduce((xe,_e)=>xe+_e,0):te.overflows[0],te.overflows]}).sort((te,fe)=>te[1]-fe[1]),W=((r=ce.filter(te=>te[2].slice(0,Tl(te[0])?2:3).every(fe=>fe<=0))[0])==null?void 0:r[0])||ce[0][0];return W!==_?{data:{index:z+1,overflows:G},reset:{placement:W}}:{}}}},QR=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(n){var s;const{placement:a,middlewareData:r,rects:e,initialPlacement:d,platform:_,elements:y}=n,{mainAxis:E=!0,crossAxis:T=!0,fallbackPlacements:A,fallbackStrategy:R="bestFit",fallbackAxisSideDirection:L="none",flipAlignment:B=!0,...P}=Mh(t,n),V=cc(a),z=cc(d)===d,q=await(_.isRTL==null?void 0:_.isRTL(y.floating)),oe=A||(z||!B?[uv(d)]:WR(d));!A&&L!=="none"&&oe.push(...jR(d,B,L,q));const K=[d,...oe],G=await Gv(n,P),ne=[];let ce=((s=r.flip)==null?void 0:s.overflows)||[];if(E&&ne.push(G[V]),T){const fe=c5(a,e,q);ne.push(G[fe[0]],G[fe[1]])}if(ce=[...ce,{placement:a,overflows:ne}],!ne.every(fe=>fe<=0)){var U,W;const fe=(((U=r.flip)==null?void 0:U.index)||0)+1,xe=K[fe];if(xe)return{data:{index:fe,overflows:ce},reset:{placement:xe}};let _e=(W=ce.filter(be=>be.overflows[0]<=0).sort((be,$e)=>be.overflows[1]-$e.overflows[1])[0])==null?void 0:W.placement;if(!_e)switch(R){case"bestFit":{var te;const be=(te=ce.map($e=>[$e.placement,$e.overflows.filter(je=>je>0).reduce((je,Ee)=>je+Ee,0)]).sort(($e,je)=>$e[1]-je[1])[0])==null?void 0:te[0];be&&(_e=be);break}case"initialPlacement":_e=d;break}if(a!==_e)return{reset:{placement:_e}}}return{}}}};async function XR(t,n){const{placement:s,platform:a,elements:r}=t,e=await(a.isRTL==null?void 0:a.isRTL(r.floating)),d=cc(s),_=Tl(s),y=zg(s)==="y",E=["left","top"].includes(d)?-1:1,T=e&&y?-1:1,A=Mh(n,t);let{mainAxis:R,crossAxis:L,alignmentAxis:B}=typeof A=="number"?{mainAxis:A,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...A};return _&&typeof B=="number"&&(L=_==="end"?B*-1:B),y?{x:L*T,y:R*E}:{x:R*E,y:L*T}}const JR=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(n){const{x:s,y:a}=n,r=await XR(n,t);return{x:s+r.x,y:a+r.y,data:r}}}},ZR=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(n){const{x:s,y:a,placement:r}=n,{mainAxis:e=!0,crossAxis:d=!1,limiter:_={fn:V=>{let{x:z,y:q}=V;return{x:z,y:q}}},...y}=Mh(t,n),E={x:s,y:a},T=await Gv(n,y),A=zg(cc(r)),R=l5(A);let L=E[R],B=E[A];if(e){const V=R==="y"?"top":"left",z=R==="y"?"bottom":"right",q=L+T[V],oe=L-T[z];L=wy(q,L,oe)}if(d){const V=A==="y"?"top":"left",z=A==="y"?"bottom":"right",q=B+T[V],oe=B-T[z];B=wy(q,B,oe)}const P=_.fn({...n,[R]:L,[A]:B});return{...P,data:{x:P.x-s,y:P.y-a}}}}},eI=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(n){const{placement:s,rects:a,platform:r,elements:e}=n,{apply:d=()=>{},..._}=Mh(t,n),y=await Gv(n,_),E=cc(s),T=Tl(s),A=zg(s)==="y",{width:R,height:L}=a.floating;let B,P;E==="top"||E==="bottom"?(B=E,P=T===(await(r.isRTL==null?void 0:r.isRTL(e.floating))?"start":"end")?"left":"right"):(P=E,B=T==="end"?"top":"bottom");const V=L-y[B],z=R-y[P],q=!n.middlewareData.shift;let oe=V,K=z;if(A){const ne=R-y.left-y.right;K=T||q?Eg(z,ne):ne}else{const ne=L-y.top-y.bottom;oe=T||q?Eg(V,ne):ne}if(q&&!T){const ne=ch(y.left,0),ce=ch(y.right,0),U=ch(y.top,0),W=ch(y.bottom,0);A?K=R-2*(ne!==0||ce!==0?ne+ce:ch(y.left,y.right)):oe=L-2*(U!==0||W!==0?U+W:ch(y.top,y.bottom))}await d({...n,availableWidth:K,availableHeight:oe});const G=await r.getDimensions(e.floating);return R!==G.width||L!==G.height?{reset:{rects:!0}}:{}}}};function Uo(t){var n;return((n=t.ownerDocument)==null?void 0:n.defaultView)||window}function ic(t){return Uo(t).getComputedStyle(t)}const pD=Math.min,ag=Math.max,fv=Math.round;function f5(t){const n=ic(t);let s=parseFloat(n.width),a=parseFloat(n.height);const r=t.offsetWidth,e=t.offsetHeight,d=fv(s)!==r||fv(a)!==e;return d&&(s=r,a=e),{width:s,height:a,fallback:d}}function Vf(t){return d5(t)?(t.nodeName||"").toLowerCase():""}let C2;function h5(){if(C2)return C2;const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?(C2=t.brands.map(n=>n.brand+"/"+n.version).join(" "),C2):navigator.userAgent}function sc(t){return t instanceof Uo(t).HTMLElement}function Mf(t){return t instanceof Uo(t).Element}function d5(t){return t instanceof Uo(t).Node}function gD(t){return typeof ShadowRoot>"u"?!1:t instanceof Uo(t).ShadowRoot||t instanceof ShadowRoot}function Vv(t){const{overflow:n,overflowX:s,overflowY:a,display:r}=ic(t);return/auto|scroll|overlay|hidden|clip/.test(n+a+s)&&!["inline","contents"].includes(r)}function tI(t){return["table","td","th"].includes(Vf(t))}function Dy(t){const n=/firefox/i.test(h5()),s=ic(t),a=s.backdropFilter||s.WebkitBackdropFilter;return s.transform!=="none"||s.perspective!=="none"||!!a&&a!=="none"||n&&s.willChange==="filter"||n&&!!s.filter&&s.filter!=="none"||["transform","perspective"].some(r=>s.willChange.includes(r))||["paint","layout","strict","content"].some(r=>{const e=s.contain;return e!=null&&e.includes(r)})}function p5(){return!/^((?!chrome|android).)*safari/i.test(h5())}function j4(t){return["html","body","#document"].includes(Vf(t))}function g5(t){return Mf(t)?t:t.contextElement}const m5={x:1,y:1};function Zd(t){const n=g5(t);if(!sc(n))return m5;const s=n.getBoundingClientRect(),{width:a,height:r,fallback:e}=f5(n);let d=(e?fv(s.width):s.width)/a,_=(e?fv(s.height):s.height)/r;return d&&Number.isFinite(d)||(d=1),_&&Number.isFinite(_)||(_=1),{x:d,y:_}}function Fg(t,n,s,a){var r,e;n===void 0&&(n=!1),s===void 0&&(s=!1);const d=t.getBoundingClientRect(),_=g5(t);let y=m5;n&&(a?Mf(a)&&(y=Zd(a)):y=Zd(t));const E=_?Uo(_):window,T=!p5()&&s;let A=(d.left+(T&&((r=E.visualViewport)==null?void 0:r.offsetLeft)||0))/y.x,R=(d.top+(T&&((e=E.visualViewport)==null?void 0:e.offsetTop)||0))/y.y,L=d.width/y.x,B=d.height/y.y;if(_){const P=Uo(_),V=a&&Mf(a)?Uo(a):a;let z=P.frameElement;for(;z&&a&&V!==P;){const q=Zd(z),oe=z.getBoundingClientRect(),K=getComputedStyle(z);oe.x+=(z.clientLeft+parseFloat(K.paddingLeft))*q.x,oe.y+=(z.clientTop+parseFloat(K.paddingTop))*q.y,A*=q.x,R*=q.y,L*=q.x,B*=q.y,A+=oe.x,R+=oe.y,z=Uo(z).frameElement}}return{width:L,height:B,top:R,right:A+L,bottom:R+B,left:A,x:A,y:R}}function Lf(t){return((d5(t)?t.ownerDocument:t.document)||window.document).documentElement}function Yv(t){return Mf(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function v5(t){return Fg(Lf(t)).left+Yv(t).scrollLeft}function xg(t){if(Vf(t)==="html")return t;const n=t.assignedSlot||t.parentNode||gD(t)&&t.host||Lf(t);return gD(n)?n.host:n}function b5(t){const n=xg(t);return j4(n)?n.ownerDocument.body:sc(n)&&Vv(n)?n:b5(n)}function hv(t,n){var s;n===void 0&&(n=[]);const a=b5(t),r=a===((s=t.ownerDocument)==null?void 0:s.body),e=Uo(a);return r?n.concat(e,e.visualViewport||[],Vv(a)?a:[]):n.concat(a,hv(a))}function mD(t,n,s){return n==="viewport"?sg(function(a,r){const e=Uo(a),d=Lf(a),_=e.visualViewport;let y=d.clientWidth,E=d.clientHeight,T=0,A=0;if(_){y=_.width,E=_.height;const R=p5();(R||!R&&r==="fixed")&&(T=_.offsetLeft,A=_.offsetTop)}return{width:y,height:E,x:T,y:A}}(t,s)):Mf(n)?sg(function(a,r){const e=Fg(a,!0,r==="fixed"),d=e.top+a.clientTop,_=e.left+a.clientLeft,y=sc(a)?Zd(a):{x:1,y:1};return{width:a.clientWidth*y.x,height:a.clientHeight*y.y,x:_*y.x,y:d*y.y}}(n,s)):sg(function(a){const r=Lf(a),e=Yv(a),d=a.ownerDocument.body,_=ag(r.scrollWidth,r.clientWidth,d.scrollWidth,d.clientWidth),y=ag(r.scrollHeight,r.clientHeight,d.scrollHeight,d.clientHeight);let E=-e.scrollLeft+v5(a);const T=-e.scrollTop;return ic(d).direction==="rtl"&&(E+=ag(r.clientWidth,d.clientWidth)-_),{width:_,height:y,x:E,y:T}}(Lf(t)))}function vD(t){return sc(t)&&ic(t).position!=="fixed"?t.offsetParent:null}function bD(t){const n=Uo(t);let s=vD(t);for(;s&&tI(s)&&ic(s).position==="static";)s=vD(s);return s&&(Vf(s)==="html"||Vf(s)==="body"&&ic(s).position==="static"&&!Dy(s))?n:s||function(a){let r=xg(a);for(;sc(r)&&!j4(r);){if(Dy(r))return r;r=xg(r)}return null}(t)||n}function rI(t,n,s){const a=sc(n),r=Lf(n),e=Fg(t,!0,s==="fixed",n);let d={scrollLeft:0,scrollTop:0};const _={x:0,y:0};if(a||!a&&s!=="fixed")if((Vf(n)!=="body"||Vv(r))&&(d=Yv(n)),sc(n)){const y=Fg(n,!0);_.x=y.x+n.clientLeft,_.y=y.y+n.clientTop}else r&&(_.x=v5(r));return{x:e.left+d.scrollLeft-_.x,y:e.top+d.scrollTop-_.y,width:e.width,height:e.height}}const nI={getClippingRect:function(t){let{element:n,boundary:s,rootBoundary:a,strategy:r}=t;const e=s==="clippingAncestors"?function(E,T){const A=T.get(E);if(A)return A;let R=hv(E).filter(V=>Mf(V)&&Vf(V)!=="body"),L=null;const B=ic(E).position==="fixed";let P=B?xg(E):E;for(;Mf(P)&&!j4(P);){const V=ic(P),z=Dy(P);(B?z||L:z||V.position!=="static"||!L||!["absolute","fixed"].includes(L.position))?L=V:R=R.filter(q=>q!==P),P=xg(P)}return T.set(E,R),R}(n,this._c):[].concat(s),d=[...e,a],_=d[0],y=d.reduce((E,T)=>{const A=mD(n,T,r);return E.top=ag(A.top,E.top),E.right=pD(A.right,E.right),E.bottom=pD(A.bottom,E.bottom),E.left=ag(A.left,E.left),E},mD(n,_,r));return{width:y.right-y.left,height:y.bottom-y.top,x:y.left,y:y.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:n,offsetParent:s,strategy:a}=t;const r=sc(s),e=Lf(s);if(s===e)return n;let d={scrollLeft:0,scrollTop:0},_={x:1,y:1};const y={x:0,y:0};if((r||!r&&a!=="fixed")&&((Vf(s)!=="body"||Vv(e))&&(d=Yv(s)),sc(s))){const E=Fg(s);_=Zd(s),y.x=E.x+s.clientLeft,y.y=E.y+s.clientTop}return{width:n.width*_.x,height:n.height*_.y,x:n.x*_.x-d.scrollLeft*_.x+y.x,y:n.y*_.y-d.scrollTop*_.y+y.y}},isElement:Mf,getDimensions:function(t){return sc(t)?f5(t):t.getBoundingClientRect()},getOffsetParent:bD,getDocumentElement:Lf,getScale:Zd,async getElementRects(t){let{reference:n,floating:s,strategy:a}=t;const r=this.getOffsetParent||bD,e=this.getDimensions;return{reference:rI(n,await r(s),a),floating:{x:0,y:0,...await e(s)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>ic(t).direction==="rtl"},iI=(t,n,s)=>{const a=new Map,r={platform:nI,...s},e={...r.platform,_c:a};return VR(t,n,{...r,platform:e})};function _5(t,n){for(const s in n)Object.prototype.hasOwnProperty.call(n,s)&&(typeof n[s]=="object"&&t[s]?_5(t[s],n[s]):t[s]=n[s])}const iu={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:5e3,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:t=>[...t,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover","focus"],delay:{show:0,hide:400}}}};function Tg(t,n){let s=iu.themes[t]||{},a;do a=s[n],typeof a>"u"?s.$extend?s=iu.themes[s.$extend]||{}:(s=null,a=iu[n]):s=null;while(s);return a}function sI(t){const n=[t];let s=iu.themes[t]||{};do s.$extend&&!s.$resetCss?(n.push(s.$extend),s=iu.themes[s.$extend]||{}):s=null;while(s);return n.map(a=>`v-popper--theme-${a}`)}function _D(t){const n=[t];let s=iu.themes[t]||{};do s.$extend?(n.push(s.$extend),s=iu.themes[s.$extend]||{}):s=null;while(s);return n}let Sh=!1;if(typeof window<"u"){Sh=!1;try{const t=Object.defineProperty({},"passive",{get(){Sh=!0}});window.addEventListener("test",null,t)}catch{}}let y5=!1;typeof window<"u"&&typeof navigator<"u"&&(y5=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const w5=["auto","top","bottom","left","right"].reduce((t,n)=>t.concat([n,`${n}-start`,`${n}-end`]),[]),yD={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},wD={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function DD(t,n){const s=t.indexOf(n);s!==-1&&t.splice(s,1)}function A_(){return new Promise(t=>requestAnimationFrame(()=>{requestAnimationFrame(t)}))}const Dl=[];let oh=null;const ED={};function FD(t){let n=ED[t];return n||(n=ED[t]=[]),n}let Ey=function(){};typeof window<"u"&&(Ey=window.Element);function Sn(t){return function(n){return Tg(n.theme,t)}}const S_="__floating-vue__popper",D5=()=>vs({name:"VPopper",provide(){return{[S_]:{parentPopper:this}}},inject:{[S_]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:Sn("disabled")},positioningDisabled:{type:Boolean,default:Sn("positioningDisabled")},placement:{type:String,default:Sn("placement"),validator:t=>w5.includes(t)},delay:{type:[String,Number,Object],default:Sn("delay")},distance:{type:[Number,String],default:Sn("distance")},skidding:{type:[Number,String],default:Sn("skidding")},triggers:{type:Array,default:Sn("triggers")},showTriggers:{type:[Array,Function],default:Sn("showTriggers")},hideTriggers:{type:[Array,Function],default:Sn("hideTriggers")},popperTriggers:{type:Array,default:Sn("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:Sn("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:Sn("popperHideTriggers")},container:{type:[String,Object,Ey,Boolean],default:Sn("container")},boundary:{type:[String,Ey],default:Sn("boundary")},strategy:{type:String,validator:t=>["absolute","fixed"].includes(t),default:Sn("strategy")},autoHide:{type:[Boolean,Function],default:Sn("autoHide")},handleResize:{type:Boolean,default:Sn("handleResize")},instantMove:{type:Boolean,default:Sn("instantMove")},eagerMount:{type:Boolean,default:Sn("eagerMount")},popperClass:{type:[String,Array,Object],default:Sn("popperClass")},computeTransformOrigin:{type:Boolean,default:Sn("computeTransformOrigin")},autoMinSize:{type:Boolean,default:Sn("autoMinSize")},autoSize:{type:[Boolean,String],default:Sn("autoSize")},autoMaxSize:{type:Boolean,default:Sn("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:Sn("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:Sn("preventOverflow")},overflowPadding:{type:[Number,String],default:Sn("overflowPadding")},arrowPadding:{type:[Number,String],default:Sn("arrowPadding")},arrowOverflow:{type:Boolean,default:Sn("arrowOverflow")},flip:{type:Boolean,default:Sn("flip")},shift:{type:Boolean,default:Sn("shift")},shiftCrossAxis:{type:Boolean,default:Sn("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:Sn("noAutoFocus")},disposeTimeout:{type:Number,default:Sn("disposeTimeout")}},emits:["show","hide","update:shown","apply-show","apply-hide","close-group","close-directive","auto-hide","resize","dispose"],data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},shownChildren:new Set,lastAutoHide:!0}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var t;return(t=this[S_])==null?void 0:t.parentPopper},hasPopperShowTriggerHover(){var t,n;return((t=this.popperTriggers)==null?void 0:t.includes("hover"))||((n=this.popperShowTriggers)==null?void 0:n.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(t){t?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},...["triggers","positioningDisabled"].reduce((t,n)=>(t[n]="$_refreshListeners",t),{}),...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((t,n)=>(t[n]="$_computePosition",t),{})},created(){this.$_isDisposed=!0,this.randomId=`popper_${[Math.random(),Date.now()].map(t=>t.toString(36).substring(2,10)).join("_")}`,this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:t=null,skipDelay:n=!1,force:s=!1}={}){var a,r;(a=this.parentPopper)!=null&&a.lockedChild&&this.parentPopper.lockedChild!==this||(this.$_pendingHide=!1,(s||!this.disabled)&&(((r=this.parentPopper)==null?void 0:r.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(t,n),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:t=null,skipDelay:n=!1}={}){var s;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:n}),this.parentPopper.lockedChild=null)},1e3));return}((s=this.parentPopper)==null?void 0:s.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_pendingHide=!1,this.$_scheduleHide(t,n),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var t;this.$_isDisposed&&(this.$_isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((t=this.referenceNode)==null?void 0:t.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(n=>n.nodeType===n.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.$_isDisposed||(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"),this.$emit("dispose"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.$_isDisposed||this.positioningDisabled)return;const t={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&t.middleware.push(JR({mainAxis:this.distance,crossAxis:this.skidding}));const n=this.placement.startsWith("auto");if(n?t.middleware.push(qR({alignment:this.placement.split("-")[1]??""})):t.placement=this.placement,this.preventOverflow&&(this.shift&&t.middleware.push(ZR({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!n&&this.flip&&t.middleware.push(QR({padding:this.overflowPadding,boundary:this.boundary}))),t.middleware.push(YR({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&t.middleware.push({name:"arrowOverflow",fn:({placement:a,rects:r,middlewareData:e})=>{let d;const{centerOffset:_}=e.arrow;return a.startsWith("top")||a.startsWith("bottom")?d=Math.abs(_)>r.reference.width/2:d=Math.abs(_)>r.reference.height/2,{data:{overflow:d}}}}),this.autoMinSize||this.autoSize){const a=this.autoSize?this.autoSize:this.autoMinSize?"min":null;t.middleware.push({name:"autoSize",fn:({rects:r,placement:e,middlewareData:d})=>{var _;if((_=d.autoSize)!=null&&_.skip)return{};let y,E;return e.startsWith("top")||e.startsWith("bottom")?y=r.reference.width:E=r.reference.height,this.$_innerNode.style[a==="min"?"minWidth":a==="max"?"maxWidth":"width"]=y!=null?`${y}px`:null,this.$_innerNode.style[a==="min"?"minHeight":a==="max"?"maxHeight":"height"]=E!=null?`${E}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,t.middleware.push(eI({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:a,availableHeight:r})=>{this.$_innerNode.style.maxWidth=a!=null?`${a}px`:null,this.$_innerNode.style.maxHeight=r!=null?`${r}px`:null}})));const s=await iI(this.$_referenceNode,this.$_popperNode,t);Object.assign(this.result,{x:s.x,y:s.y,placement:s.placement,strategy:s.strategy,arrow:{...s.middlewareData.arrow,...s.middlewareData.arrowOverflow}})},$_scheduleShow(t=null,n=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),oh&&this.instantMove&&oh.instantMove&&oh!==this.parentPopper){oh.$_applyHide(!0),this.$_applyShow(!0);return}n?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(t=null,n=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(oh=this),n?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(t){const n=this.delay;return parseInt(n&&n[t]||n||0)},async $_applyShow(t=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=t,!this.isShown&&(this.$_ensureTeleport(),await A_(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...hv(this.$_referenceNode),...hv(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const n=this.$_referenceNode.getBoundingClientRect(),s=this.$_popperNode.querySelector(".v-popper__wrapper"),a=s.parentNode.getBoundingClientRect(),r=n.x+n.width/2-(a.left+s.offsetLeft),e=n.y+n.height/2-(a.top+s.offsetTop);this.result.transformOrigin=`${r}px ${e}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const t=this.showGroup;if(t){let n;for(let s=0;s<Dl.length;s++)n=Dl[s],n.showGroup!==t&&(n.hide(),n.$emit("close-group"))}Dl.push(this),document.body.classList.add("v-popper--some-open");for(const n of _D(this.theme))FD(n).push(this),document.body.classList.add(`v-popper--some-open--${n}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await A_(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(t=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=t,DD(Dl,this),Dl.length===0&&document.body.classList.remove("v-popper--some-open");for(const s of _D(this.theme)){const a=FD(s);DD(a,this),a.length===0&&document.body.classList.remove(`v-popper--some-open--${s}`)}oh===this&&(oh=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const n=this.disposeTimeout;n!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},n)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await A_(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.$_isDisposed)return;let t=this.container;if(typeof t=="string"?t=window.document.querySelector(t):t===!1&&(t=this.$_targetNodes[0].parentNode),!t)throw new Error("No container for popover: "+this.container);t.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const t=s=>{this.isShown&&!this.$_hideInProgress||(s.usedByTooltip=!0,!this.$_preventShow&&this.show({event:s}))};this.$_registerTriggerListeners(this.$_targetNodes,yD,this.triggers,this.showTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],yD,this.popperTriggers,this.popperShowTriggers,t);const n=s=>{s.usedByTooltip||this.hide({event:s})};this.$_registerTriggerListeners(this.$_targetNodes,wD,this.triggers,this.hideTriggers,n),this.$_registerTriggerListeners([this.$_popperNode],wD,this.popperTriggers,this.popperHideTriggers,n)},$_registerEventListeners(t,n,s){this.$_events.push({targetNodes:t,eventType:n,handler:s}),t.forEach(a=>a.addEventListener(n,s,Sh?{passive:!0}:void 0))},$_registerTriggerListeners(t,n,s,a,r){let e=s;a!=null&&(e=typeof a=="function"?a(e):a),e.forEach(d=>{const _=n[d];_&&this.$_registerEventListeners(t,_,r)})},$_removeEventListeners(t){const n=[];this.$_events.forEach(s=>{const{targetNodes:a,eventType:r,handler:e}=s;!t||t===r?a.forEach(d=>d.removeEventListener(r,e)):n.push(s)}),this.$_events=n},$_refreshListeners(){this.$_isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(t,n=!1){this.$_showFrameLocked||(this.hide({event:t}),t.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),n&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(t,n){for(const s of this.$_targetNodes){const a=s.getAttribute(t);a&&(s.removeAttribute(t),s.setAttribute(n,a))}},$_applyAttrsToTarget(t){for(const n of this.$_targetNodes)for(const s in t){const a=t[s];a==null?n.removeAttribute(s):n.setAttribute(s,a)}},$_updateParentShownChildren(t){let n=this.parentPopper;for(;n;)t?n.shownChildren.add(this.randomId):(n.shownChildren.delete(this.randomId),n.$_pendingHide&&n.hide()),n=n.parentPopper},$_isAimingPopper(){const t=this.$_referenceNode.getBoundingClientRect();if(og>=t.left&&og<=t.right&&lg>=t.top&&lg<=t.bottom){const n=this.$_popperNode.getBoundingClientRect(),s=og-_f,a=lg-yf,r=n.left+n.width/2-_f+(n.top+n.height/2)-yf+n.width+n.height,e=_f+s*r,d=yf+a*r;return A2(_f,yf,e,d,n.left,n.top,n.left,n.bottom)||A2(_f,yf,e,d,n.left,n.top,n.right,n.top)||A2(_f,yf,e,d,n.right,n.top,n.right,n.bottom)||A2(_f,yf,e,d,n.left,n.bottom,n.right,n.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});typeof document<"u"&&typeof window<"u"&&(y5?(document.addEventListener("touchstart",xD,Sh?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",oI,Sh?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",xD,!0),window.addEventListener("click",aI,!0)),window.addEventListener("resize",uI));function xD(t){for(let n=0;n<Dl.length;n++){const s=Dl[n];try{const a=s.popperNode();s.$_mouseDownContains=a.contains(t.target)}catch{}}}function aI(t){E5(t)}function oI(t){E5(t,!0)}function E5(t,n=!1){const s={};for(let a=Dl.length-1;a>=0;a--){const r=Dl[a];try{const e=r.$_containsGlobalTarget=lI(r,t);r.$_pendingHide=!1,requestAnimationFrame(()=>{if(r.$_pendingHide=!1,!s[r.randomId]&&TD(r,e,t)){if(r.$_handleGlobalClose(t,n),!t.closeAllPopover&&t.closePopover&&e){let _=r.parentPopper;for(;_;)s[_.randomId]=!0,_=_.parentPopper;return}let d=r.parentPopper;for(;d&&TD(d,d.$_containsGlobalTarget,t);)d.$_handleGlobalClose(t,n),d=d.parentPopper}})}catch{}}}function lI(t,n){const s=t.popperNode();return t.$_mouseDownContains||s.contains(n.target)}function TD(t,n,s){return s.closeAllPopover||s.closePopover&&n||cI(t,s)&&!n}function cI(t,n){if(typeof t.autoHide=="function"){const s=t.autoHide(n);return t.lastAutoHide=s,s}return t.autoHide}function uI(t){for(let n=0;n<Dl.length;n++)Dl[n].$_computePosition(t)}let _f=0,yf=0,og=0,lg=0;typeof window<"u"&&window.addEventListener("mousemove",t=>{_f=og,yf=lg,og=t.clientX,lg=t.clientY},Sh?{passive:!0}:void 0);function A2(t,n,s,a,r,e,d,_){const y=((d-r)*(n-e)-(_-e)*(t-r))/((_-e)*(s-t)-(d-r)*(a-n)),E=((s-t)*(n-e)-(a-n)*(t-r))/((_-e)*(s-t)-(d-r)*(a-n));return y>=0&&y<=1&&E>=0&&E<=1}const fI={extends:D5()},Kv=(t,n)=>{const s=t.__vccOpts||t;for(const[a,r]of n)s[a]=r;return s};function hI(t,n,s,a,r,e){return pn(),Qn("div",{ref:"reference",class:Fa(["v-popper",{"v-popper--shown":t.slotData.isShown}])},[Th(t.$slots,"default",_E(u4(t.slotData)))],2)}const dI=Kv(fI,[["render",hI]]);function pI(){var t=window.navigator.userAgent,n=t.indexOf("MSIE ");if(n>0)return parseInt(t.substring(n+5,t.indexOf(".",n)),10);var s=t.indexOf("Trident/");if(s>0){var a=t.indexOf("rv:");return parseInt(t.substring(a+3,t.indexOf(".",a)),10)}var r=t.indexOf("Edge/");return r>0?parseInt(t.substring(r+5,t.indexOf(".",r)),10):-1}let M2;function Fy(){Fy.init||(Fy.init=!0,M2=pI()!==-1)}var qv={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Fy(),uc(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const t=document.createElement("object");this._resizeObject=t,t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",M2&&this.$el.appendChild(t),t.data="about:blank",M2||this.$el.appendChild(t)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!M2&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const gI=jE();Ov("data-v-b329ee4c");const mI={class:"resize-observer",tabindex:"-1"};Rv();const vI=gI((t,n,s,a,r,e)=>(pn(),cu("div",mI)));qv.render=vI;qv.__scopeId="data-v-b329ee4c";qv.__file="src/components/ResizeObserver.vue";const F5=(t="theme")=>({computed:{themeClass(){return sI(this[t])}}}),bI=vs({name:"VPopperContent",components:{ResizeObserver:qv},mixins:[F5()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(t){return t!=null&&!isNaN(t)?`${t}px`:null}}}),_I=["id","aria-hidden","tabindex","data-popper-placement"],yI={ref:"inner",class:"v-popper__inner"},wI=Wt("div",{class:"v-popper__arrow-outer"},null,-1),DI=Wt("div",{class:"v-popper__arrow-inner"},null,-1),EI=[wI,DI];function FI(t,n,s,a,r,e){const d=Cl("ResizeObserver");return pn(),Qn("div",{id:t.popperId,ref:"popover",class:Fa(["v-popper__popper",[t.themeClass,t.classes.popperClass,{"v-popper__popper--shown":t.shown,"v-popper__popper--hidden":!t.shown,"v-popper__popper--show-from":t.classes.showFrom,"v-popper__popper--show-to":t.classes.showTo,"v-popper__popper--hide-from":t.classes.hideFrom,"v-popper__popper--hide-to":t.classes.hideTo,"v-popper__popper--skip-transition":t.skipTransition,"v-popper__popper--arrow-overflow":t.result&&t.result.arrow.overflow,"v-popper__popper--no-positioning":!t.result}]]),style:xl(t.result?{position:t.result.strategy,transform:`translate3d(${Math.round(t.result.x)}px,${Math.round(t.result.y)}px,0)`}:void 0),"aria-hidden":t.shown?"false":"true",tabindex:t.autoHide?0:void 0,"data-popper-placement":t.result?t.result.placement:void 0,onKeyup:n[2]||(n[2]=jF(_=>t.autoHide&&t.$emit("hide"),["esc"]))},[Wt("div",{class:"v-popper__backdrop",onClick:n[0]||(n[0]=_=>t.autoHide&&t.$emit("hide"))}),Wt("div",{class:"v-popper__wrapper",style:xl(t.result?{transformOrigin:t.result.transformOrigin}:void 0)},[Wt("div",yI,[t.mounted?(pn(),Qn(Ui,{key:0},[Wt("div",null,[Th(t.$slots,"default")]),t.handleResize?(pn(),cu(d,{key:0,onNotify:n[1]||(n[1]=_=>t.$emit("resize",_))})):po("",!0)],64)):po("",!0)],512),Wt("div",{ref:"arrow",class:"v-popper__arrow-container",style:xl(t.result?{left:t.toPx(t.result.arrow.x),top:t.toPx(t.result.arrow.y)}:void 0)},EI,4)],4)],46,_I)}const x5=Kv(bI,[["render",FI]]),T5={methods:{show(...t){return this.$refs.popper.show(...t)},hide(...t){return this.$refs.popper.hide(...t)},dispose(...t){return this.$refs.popper.dispose(...t)},onResize(...t){return this.$refs.popper.onResize(...t)}}},xI=vs({name:"VPopperWrapper",components:{Popper:dI,PopperContent:x5},mixins:[T5,F5("finalTheme")],props:{theme:{type:String,default:null}},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(t=>t!==this.$refs.popperContent.$el)}}});function TI(t,n,s,a,r,e){const d=Cl("PopperContent"),_=Cl("Popper");return pn(),cu(_,{ref:"popper",theme:t.finalTheme,"target-nodes":t.getTargetNodes,"popper-node":()=>t.$refs.popperContent.$el,class:Fa([t.themeClass])},{default:As(({popperId:y,isShown:E,shouldMountContent:T,skipTransition:A,autoHide:R,show:L,hide:B,handleResize:P,onResize:V,classes:z,result:q})=>[Th(t.$slots,"default",{shown:E,show:L,hide:B}),Kr(d,{ref:"popperContent","popper-id":y,theme:t.finalTheme,shown:E,mounted:T,"skip-transition":A,"auto-hide":R,"handle-resize":P,classes:z,result:q,onHide:B,onResize:V},{default:As(()=>[Th(t.$slots,"popper",{shown:E,hide:B})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},8,["theme","target-nodes","popper-node","class"])}const G4=Kv(xI,[["render",TI]]),CI={...G4,name:"VDropdown",vPopperTheme:"dropdown"},AI={...G4,name:"VMenu",vPopperTheme:"menu"},SI={...G4,name:"VTooltip",vPopperTheme:"tooltip"},kI=vs({name:"VTooltipDirective",components:{Popper:D5(),PopperContent:x5},mixins:[T5],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:t=>Tg(t.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:t=>Tg(t.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(t){if(typeof this.content=="function"&&this.$_isShown&&(t||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const n=++this.$_fetchId,s=this.content(this);s.then?s.then(a=>this.onResult(n,a)):this.onResult(n,s)}},onResult(t,n){t===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=n)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),OI=["innerHTML"],RI=["textContent"];function II(t,n,s,a,r,e){const d=Cl("PopperContent"),_=Cl("Popper");return pn(),cu(_,Lv({ref:"popper"},t.$attrs,{theme:t.theme,"target-nodes":t.targetNodes,"popper-node":()=>t.$refs.popperContent.$el,onApplyShow:t.onShow,onApplyHide:t.onHide}),{default:As(({popperId:y,isShown:E,shouldMountContent:T,skipTransition:A,autoHide:R,hide:L,handleResize:B,onResize:P,classes:V,result:z})=>[Kr(d,{ref:"popperContent",class:Fa({"v-popper--tooltip-loading":t.loading}),"popper-id":y,theme:t.theme,shown:E,mounted:T,"skip-transition":A,"auto-hide":R,"handle-resize":B,classes:V,result:z,onHide:L,onResize:P},{default:As(()=>[t.html?(pn(),Qn("div",{key:0,innerHTML:t.finalContent},null,8,OI)):(pn(),Qn("div",{key:1,textContent:as(t.finalContent)},null,8,RI))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const PI=Kv(kI,[["render",II]]),C5="v-popper--has-tooltip";function NI(t,n){let s=t.placement;if(!s&&n)for(const a of w5)n[a]&&(s=a);return s||(s=Tg(t.theme||"tooltip","placement")),s}function A5(t,n,s){let a;const r=typeof n;return r==="string"?a={content:n}:n&&r==="object"?a=n:a={content:!1},a.placement=NI(a,s),a.targetNodes=()=>[t],a.referenceNode=()=>t,a}let k_,Cg,MI=0;function LI(){if(k_)return;Cg=ur([]),k_=v4({name:"VTooltipDirectiveApp",setup(){return{directives:Cg}},render(){return this.directives.map(n=>Ph(PI,{...n.options,shown:n.shown||n.options.shown,key:n.id}))},devtools:{hide:!0}});const t=document.createElement("div");document.body.appendChild(t),k_.mount(t)}function BI(t,n,s){LI();const a=ur(A5(t,n,s)),r=ur(!1),e={id:MI++,options:a,shown:r};return Cg.value.push(e),t.classList&&t.classList.add(C5),t.$_popper={options:a,item:e,show(){r.value=!0},hide(){r.value=!1}}}function S5(t){if(t.$_popper){const n=Cg.value.indexOf(t.$_popper.item);n!==-1&&Cg.value.splice(n,1),delete t.$_popper,delete t.$_popperOldShown,delete t.$_popperMountTarget}t.classList&&t.classList.remove(C5)}function CD(t,{value:n,modifiers:s}){const a=A5(t,n,s);if(!a.content||Tg(a.theme||"tooltip","disabled"))S5(t);else{let r;t.$_popper?(r=t.$_popper,r.options.value=a):r=BI(t,n,s),typeof n.shown<"u"&&n.shown!==t.$_popperOldShown&&(t.$_popperOldShown=n.shown,n.shown?r.show():r.hide())}}const UI={beforeMount:CD,updated:CD,beforeUnmount(t){S5(t)}};function AD(t){t.addEventListener("click",k5),t.addEventListener("touchstart",O5,Sh?{passive:!0}:!1)}function SD(t){t.removeEventListener("click",k5),t.removeEventListener("touchstart",O5),t.removeEventListener("touchend",R5),t.removeEventListener("touchcancel",I5)}function k5(t){const n=t.currentTarget;t.closePopover=!n.$_vclosepopover_touch,t.closeAllPopover=n.$_closePopoverModifiers&&!!n.$_closePopoverModifiers.all}function O5(t){if(t.changedTouches.length===1){const n=t.currentTarget;n.$_vclosepopover_touch=!0;const s=t.changedTouches[0];n.$_vclosepopover_touchPoint=s,n.addEventListener("touchend",R5),n.addEventListener("touchcancel",I5)}}function R5(t){const n=t.currentTarget;if(n.$_vclosepopover_touch=!1,t.changedTouches.length===1){const s=t.changedTouches[0],a=n.$_vclosepopover_touchPoint;t.closePopover=Math.abs(s.screenY-a.screenY)<20&&Math.abs(s.screenX-a.screenX)<20,t.closeAllPopover=n.$_closePopoverModifiers&&!!n.$_closePopoverModifiers.all}}function I5(t){const n=t.currentTarget;n.$_vclosepopover_touch=!1}const $I={beforeMount(t,{value:n,modifiers:s}){t.$_closePopoverModifiers=s,(typeof n>"u"||n)&&AD(t)},updated(t,{value:n,oldValue:s,modifiers:a}){t.$_closePopoverModifiers=a,n!==s&&(typeof n>"u"||n?AD(t):SD(t))},beforeUnmount(t){SD(t)}};function HI(t,n={}){t.$_vTooltipInstalled||(t.$_vTooltipInstalled=!0,_5(iu,n),t.directive("tooltip",UI),t.directive("close-popper",$I),t.component("VTooltip",SI),t.component("VDropdown",CI),t.component("VMenu",AI))}const WI={version:"2.0.0-beta.24",install:HI,options:iu};var Qv=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},jg=typeof window>"u"||"Deno"in globalThis;function bl(){}function zI(t,n){return typeof t=="function"?t(n):t}function jI(t){return typeof t=="number"&&t>=0&&t!==1/0}function GI(t,n){return Math.max(t+(n||0)-Date.now(),0)}function kD(t,n){const{type:s="all",exact:a,fetchStatus:r,predicate:e,queryKey:d,stale:_}=t;if(d){if(a){if(n.queryHash!==V4(d,n.options))return!1}else if(!Sg(n.queryKey,d))return!1}if(s!=="all"){const y=n.isActive();if(s==="active"&&!y||s==="inactive"&&y)return!1}return!(typeof _=="boolean"&&n.isStale()!==_||r&&r!==n.state.fetchStatus||e&&!e(n))}function OD(t,n){const{exact:s,status:a,predicate:r,mutationKey:e}=t;if(e){if(!n.options.mutationKey)return!1;if(s){if(Ag(n.options.mutationKey)!==Ag(e))return!1}else if(!Sg(n.options.mutationKey,e))return!1}return!(a&&n.state.status!==a||r&&!r(n))}function V4(t,n){return((n==null?void 0:n.queryKeyHashFn)||Ag)(t)}function Ag(t){return JSON.stringify(t,(n,s)=>xy(s)?Object.keys(s).sort().reduce((a,r)=>(a[r]=s[r],a),{}):s)}function Sg(t,n){return t===n?!0:typeof t!=typeof n?!1:t&&n&&typeof t=="object"&&typeof n=="object"?!Object.keys(n).some(s=>!Sg(t[s],n[s])):!1}function P5(t,n){if(t===n)return t;const s=RD(t)&&RD(n);if(s||xy(t)&&xy(n)){const a=s?t:Object.keys(t),r=a.length,e=s?n:Object.keys(n),d=e.length,_=s?[]:{};let y=0;for(let E=0;E<d;E++){const T=s?E:e[E];!s&&t[T]===void 0&&n[T]===void 0&&a.includes(T)?(_[T]=void 0,y++):(_[T]=P5(t[T],n[T]),_[T]===t[T]&&t[T]!==void 0&&y++)}return r===d&&y===r?t:_}return n}function oL(t,n){if(!n||Object.keys(t).length!==Object.keys(n).length)return!1;for(const s in t)if(t[s]!==n[s])return!1;return!0}function RD(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function xy(t){if(!ID(t))return!1;const n=t.constructor;if(n===void 0)return!0;const s=n.prototype;return!(!ID(s)||!s.hasOwnProperty("isPrototypeOf"))}function ID(t){return Object.prototype.toString.call(t)==="[object Object]"}function VI(t){return new Promise(n=>{setTimeout(n,t)})}function YI(t,n,s){return typeof s.structuralSharing=="function"?s.structuralSharing(t,n):s.structuralSharing!==!1?P5(t,n):n}function KI(t,n,s=0){const a=[...t,n];return s&&a.length>s?a.slice(1):a}function qI(t,n,s=0){const a=[n,...t];return s&&a.length>s?a.slice(0,-1):a}var Y4=Symbol(),gh,Af,t1,qD,QI=(qD=class extends Qv{constructor(){super();Nn(this,gh,void 0);Nn(this,Af,void 0);Nn(this,t1,void 0);Ur(this,t1,n=>{if(!jg&&window.addEventListener){const s=()=>n();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}})}onSubscribe(){ht(this,Af)||this.setEventListener(ht(this,t1))}onUnsubscribe(){var n;this.hasListeners()||((n=ht(this,Af))==null||n.call(this),Ur(this,Af,void 0))}setEventListener(n){var s;Ur(this,t1,n),(s=ht(this,Af))==null||s.call(this),Ur(this,Af,n(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()}))}setFocused(n){ht(this,gh)!==n&&(Ur(this,gh,n),this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(s=>{s(n)})}isFocused(){var n;return typeof ht(this,gh)=="boolean"?ht(this,gh):((n=globalThis.document)==null?void 0:n.visibilityState)!=="hidden"}},gh=new WeakMap,Af=new WeakMap,t1=new WeakMap,qD),N5=new QI,r1,Sf,n1,QD,XI=(QD=class extends Qv{constructor(){super();Nn(this,r1,!0);Nn(this,Sf,void 0);Nn(this,n1,void 0);Ur(this,n1,n=>{if(!jg&&window.addEventListener){const s=()=>n(!0),a=()=>n(!1);return window.addEventListener("online",s,!1),window.addEventListener("offline",a,!1),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",a)}}})}onSubscribe(){ht(this,Sf)||this.setEventListener(ht(this,n1))}onUnsubscribe(){var n;this.hasListeners()||((n=ht(this,Sf))==null||n.call(this),Ur(this,Sf,void 0))}setEventListener(n){var s;Ur(this,n1,n),(s=ht(this,Sf))==null||s.call(this),Ur(this,Sf,n(this.setOnline.bind(this)))}setOnline(n){ht(this,r1)!==n&&(Ur(this,r1,n),this.listeners.forEach(a=>{a(n)}))}isOnline(){return ht(this,r1)}},r1=new WeakMap,Sf=new WeakMap,n1=new WeakMap,QD),dv=new XI;function JI(t){return Math.min(1e3*2**t,3e4)}function K4(t){return(t??"online")==="online"?dv.isOnline():!0}var M5=class{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function O_(t){return t instanceof M5}function L5(t){let n=!1,s=0,a=!1,r,e,d;const _=new Promise((V,z)=>{e=V,d=z}),y=V=>{var z;a||(L(new M5(V)),(z=t.abort)==null||z.call(t))},E=()=>{n=!0},T=()=>{n=!1},A=()=>!N5.isFocused()||t.networkMode!=="always"&&!dv.isOnline(),R=V=>{var z;a||(a=!0,(z=t.onSuccess)==null||z.call(t,V),r==null||r(),e(V))},L=V=>{var z;a||(a=!0,(z=t.onError)==null||z.call(t,V),r==null||r(),d(V))},B=()=>new Promise(V=>{var z;r=q=>{const oe=a||!A();return oe&&V(q),oe},(z=t.onPause)==null||z.call(t)}).then(()=>{var V;r=void 0,a||(V=t.onContinue)==null||V.call(t)}),P=()=>{if(a)return;let V;try{V=t.fn()}catch(z){V=Promise.reject(z)}Promise.resolve(V).then(R).catch(z=>{var ne;if(a)return;const q=t.retry??(jg?0:3),oe=t.retryDelay??JI,K=typeof oe=="function"?oe(s,z):oe,G=q===!0||typeof q=="number"&&s<q||typeof q=="function"&&q(s,z);if(n||!G){L(z);return}s++,(ne=t.onFail)==null||ne.call(t,s,z),VI(K).then(()=>{if(A())return B()}).then(()=>{n?L(z):P()})})};return K4(t.networkMode)?P():B().then(P),{promise:_,cancel:y,continue:()=>(r==null?void 0:r())?_:Promise.resolve(),cancelRetry:E,continueRetry:T}}function ZI(){let t=[],n=0,s=R=>{R()},a=R=>{R()},r=R=>setTimeout(R,0);const e=R=>{r=R},d=R=>{let L;n++;try{L=R()}finally{n--,n||E()}return L},_=R=>{n?t.push(R):r(()=>{s(R)})},y=R=>(...L)=>{_(()=>{R(...L)})},E=()=>{const R=t;t=[],R.length&&r(()=>{a(()=>{R.forEach(L=>{s(L)})})})};return{batch:d,batchCalls:y,schedule:_,setNotifyFunction:R=>{s=R},setBatchNotifyFunction:R=>{a=R},setScheduler:e}}var Da=ZI(),mh,XD,B5=(XD=class{constructor(){Nn(this,mh,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),jI(this.gcTime)&&Ur(this,mh,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(jg?1/0:5*60*1e3))}clearGcTimeout(){ht(this,mh)&&(clearTimeout(ht(this,mh)),Ur(this,mh,void 0))}},mh=new WeakMap,XD),i1,s1,Mo,wa,Cs,Og,vh,_l,Jc,JD,eP=(JD=class extends B5{constructor(n){super();Nn(this,_l);Nn(this,i1,void 0);Nn(this,s1,void 0);Nn(this,Mo,void 0);Nn(this,wa,void 0);Nn(this,Cs,void 0);Nn(this,Og,void 0);Nn(this,vh,void 0);Ur(this,vh,!1),Ur(this,Og,n.defaultOptions),this.setOptions(n.options),Ur(this,Cs,[]),Ur(this,Mo,n.cache),this.queryKey=n.queryKey,this.queryHash=n.queryHash,Ur(this,i1,n.state||rP(this.options)),this.state=ht(this,i1),this.scheduleGc()}get meta(){return this.options.meta}setOptions(n){this.options={...ht(this,Og),...n},this.updateGcTime(this.options.gcTime)}optionalRemove(){!ht(this,Cs).length&&this.state.fetchStatus==="idle"&&ht(this,Mo).remove(this)}setData(n,s){const a=YI(this.state.data,n,this.options);return Xs(this,_l,Jc).call(this,{data:a,type:"success",dataUpdatedAt:s==null?void 0:s.updatedAt,manual:s==null?void 0:s.manual}),a}setState(n,s){Xs(this,_l,Jc).call(this,{type:"setState",state:n,setStateOptions:s})}cancel(n){var a,r;const s=(a=ht(this,wa))==null?void 0:a.promise;return(r=ht(this,wa))==null||r.cancel(n),s?s.then(bl).catch(bl):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(ht(this,i1))}isActive(){return ht(this,Cs).some(n=>n.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?ht(this,Cs).some(n=>n.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(n=0){return this.state.isInvalidated||this.state.data===void 0||!GI(this.state.dataUpdatedAt,n)}onFocus(){var s;const n=ht(this,Cs).find(a=>a.shouldFetchOnWindowFocus());n==null||n.refetch({cancelRefetch:!1}),(s=ht(this,wa))==null||s.continue()}onOnline(){var s;const n=ht(this,Cs).find(a=>a.shouldFetchOnReconnect());n==null||n.refetch({cancelRefetch:!1}),(s=ht(this,wa))==null||s.continue()}addObserver(n){ht(this,Cs).includes(n)||(ht(this,Cs).push(n),this.clearGcTimeout(),ht(this,Mo).notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){ht(this,Cs).includes(n)&&(Ur(this,Cs,ht(this,Cs).filter(s=>s!==n)),ht(this,Cs).length||(ht(this,wa)&&(ht(this,vh)?ht(this,wa).cancel({revert:!0}):ht(this,wa).cancelRetry()),this.scheduleGc()),ht(this,Mo).notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return ht(this,Cs).length}invalidate(){this.state.isInvalidated||Xs(this,_l,Jc).call(this,{type:"invalidate"})}fetch(n,s){var E,T,A;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(s!=null&&s.cancelRefetch))this.cancel({silent:!0});else if(ht(this,wa))return ht(this,wa).continueRetry(),ht(this,wa).promise}if(n&&this.setOptions(n),!this.options.queryFn){const R=ht(this,Cs).find(L=>L.options.queryFn);R&&this.setOptions(R.options)}const a=new AbortController,r={queryKey:this.queryKey,meta:this.meta},e=R=>{Object.defineProperty(R,"signal",{enumerable:!0,get:()=>(Ur(this,vh,!0),a.signal)})};e(r);const d=()=>!this.options.queryFn||this.options.queryFn===Y4?Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)):(Ur(this,vh,!1),this.options.persister?this.options.persister(this.options.queryFn,r,this):this.options.queryFn(r)),_={fetchOptions:s,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:d};e(_),(E=this.options.behavior)==null||E.onFetch(_,this),Ur(this,s1,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((T=_.fetchOptions)==null?void 0:T.meta))&&Xs(this,_l,Jc).call(this,{type:"fetch",meta:(A=_.fetchOptions)==null?void 0:A.meta});const y=R=>{var L,B,P,V;O_(R)&&R.silent||Xs(this,_l,Jc).call(this,{type:"error",error:R}),O_(R)||((B=(L=ht(this,Mo).config).onError)==null||B.call(L,R,this),(V=(P=ht(this,Mo).config).onSettled)==null||V.call(P,this.state.data,R,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return Ur(this,wa,L5({fn:_.fetchFn,abort:a.abort.bind(a),onSuccess:R=>{var L,B,P,V;if(R===void 0){y(new Error(`${this.queryHash} data is undefined`));return}this.setData(R),(B=(L=ht(this,Mo).config).onSuccess)==null||B.call(L,R,this),(V=(P=ht(this,Mo).config).onSettled)==null||V.call(P,R,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:y,onFail:(R,L)=>{Xs(this,_l,Jc).call(this,{type:"failed",failureCount:R,error:L})},onPause:()=>{Xs(this,_l,Jc).call(this,{type:"pause"})},onContinue:()=>{Xs(this,_l,Jc).call(this,{type:"continue"})},retry:_.options.retry,retryDelay:_.options.retryDelay,networkMode:_.options.networkMode})),ht(this,wa).promise}},i1=new WeakMap,s1=new WeakMap,Mo=new WeakMap,wa=new WeakMap,Cs=new WeakMap,Og=new WeakMap,vh=new WeakMap,_l=new WeakSet,Jc=function(n){const s=a=>{switch(n.type){case"failed":return{...a,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...a,fetchStatus:"paused"};case"continue":return{...a,fetchStatus:"fetching"};case"fetch":return{...a,...tP(a.data,this.options),fetchMeta:n.meta??null};case"success":return{...a,data:n.data,dataUpdateCount:a.dataUpdateCount+1,dataUpdatedAt:n.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const r=n.error;return O_(r)&&r.revert&&ht(this,s1)?{...ht(this,s1),fetchStatus:"idle"}:{...a,error:r,errorUpdateCount:a.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:a.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...a,isInvalidated:!0};case"setState":return{...a,...n.state}}};this.state=s(this.state),Da.batch(()=>{ht(this,Cs).forEach(a=>{a.onQueryUpdate()}),ht(this,Mo).notify({query:this,type:"updated",action:n})})},JD);function tP(t,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:K4(n.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function rP(t){const n=typeof t.initialData=="function"?t.initialData():t.initialData,s=n!==void 0,a=s?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:n,dataUpdateCount:0,dataUpdatedAt:s?a??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var Ql,ZD,U5=(ZD=class extends Qv{constructor(s={}){super();Nn(this,Ql,void 0);this.config=s,Ur(this,Ql,new Map)}build(s,a,r){const e=a.queryKey,d=a.queryHash??V4(e,a);let _=this.get(d);return _||(_=new eP({cache:this,queryKey:e,queryHash:d,options:s.defaultQueryOptions(a),state:r,defaultOptions:s.getQueryDefaults(e)}),this.add(_)),_}add(s){ht(this,Ql).has(s.queryHash)||(ht(this,Ql).set(s.queryHash,s),this.notify({type:"added",query:s}))}remove(s){const a=ht(this,Ql).get(s.queryHash);a&&(s.destroy(),a===s&&ht(this,Ql).delete(s.queryHash),this.notify({type:"removed",query:s}))}clear(){Da.batch(()=>{this.getAll().forEach(s=>{this.remove(s)})})}get(s){return ht(this,Ql).get(s)}getAll(){return[...ht(this,Ql).values()]}find(s){const a={exact:!0,...s};return this.getAll().find(r=>kD(a,r))}findAll(s={}){const a=this.getAll();return Object.keys(s).length>0?a.filter(r=>kD(s,r)):a}notify(s){Da.batch(()=>{this.listeners.forEach(a=>{a(s)})})}onFocus(){Da.batch(()=>{this.getAll().forEach(s=>{s.onFocus()})})}onOnline(){Da.batch(()=>{this.getAll().forEach(s=>{s.onOnline()})})}},Ql=new WeakMap,ZD),Xl,Rg,uo,a1,Jl,wf,eE,nP=(eE=class extends B5{constructor(n){super();Nn(this,Jl);Nn(this,Xl,void 0);Nn(this,Rg,void 0);Nn(this,uo,void 0);Nn(this,a1,void 0);this.mutationId=n.mutationId,Ur(this,Rg,n.defaultOptions),Ur(this,uo,n.mutationCache),Ur(this,Xl,[]),this.state=n.state||iP(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options={...ht(this,Rg),...n},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){ht(this,Xl).includes(n)||(ht(this,Xl).push(n),this.clearGcTimeout(),ht(this,uo).notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){Ur(this,Xl,ht(this,Xl).filter(s=>s!==n)),this.scheduleGc(),ht(this,uo).notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){ht(this,Xl).length||(this.state.status==="pending"?this.scheduleGc():ht(this,uo).remove(this))}continue(){var n;return((n=ht(this,a1))==null?void 0:n.continue())??this.execute(this.state.variables)}async execute(n){var r,e,d,_,y,E,T,A,R,L,B,P,V,z,q,oe,K,G,ne,ce;const s=()=>(Ur(this,a1,L5({fn:()=>this.options.mutationFn?this.options.mutationFn(n):Promise.reject(new Error("No mutationFn found")),onFail:(U,W)=>{Xs(this,Jl,wf).call(this,{type:"failed",failureCount:U,error:W})},onPause:()=>{Xs(this,Jl,wf).call(this,{type:"pause"})},onContinue:()=>{Xs(this,Jl,wf).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),ht(this,a1).promise),a=this.state.status==="pending";try{if(!a){Xs(this,Jl,wf).call(this,{type:"pending",variables:n}),await((e=(r=ht(this,uo).config).onMutate)==null?void 0:e.call(r,n,this));const W=await((_=(d=this.options).onMutate)==null?void 0:_.call(d,n));W!==this.state.context&&Xs(this,Jl,wf).call(this,{type:"pending",context:W,variables:n})}const U=await s();return await((E=(y=ht(this,uo).config).onSuccess)==null?void 0:E.call(y,U,n,this.state.context,this)),await((A=(T=this.options).onSuccess)==null?void 0:A.call(T,U,n,this.state.context)),await((L=(R=ht(this,uo).config).onSettled)==null?void 0:L.call(R,U,null,this.state.variables,this.state.context,this)),await((P=(B=this.options).onSettled)==null?void 0:P.call(B,U,null,n,this.state.context)),Xs(this,Jl,wf).call(this,{type:"success",data:U}),U}catch(U){try{throw await((z=(V=ht(this,uo).config).onError)==null?void 0:z.call(V,U,n,this.state.context,this)),await((oe=(q=this.options).onError)==null?void 0:oe.call(q,U,n,this.state.context)),await((G=(K=ht(this,uo).config).onSettled)==null?void 0:G.call(K,void 0,U,this.state.variables,this.state.context,this)),await((ce=(ne=this.options).onSettled)==null?void 0:ce.call(ne,void 0,U,n,this.state.context)),U}finally{Xs(this,Jl,wf).call(this,{type:"error",error:U})}}}},Xl=new WeakMap,Rg=new WeakMap,uo=new WeakMap,a1=new WeakMap,Jl=new WeakSet,wf=function(n){const s=a=>{switch(n.type){case"failed":return{...a,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...a,isPaused:!0};case"continue":return{...a,isPaused:!1};case"pending":return{...a,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!K4(this.options.networkMode),status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...a,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...a,data:void 0,error:n.error,failureCount:a.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=s(this.state),Da.batch(()=>{ht(this,Xl).forEach(a=>{a.onMutationUpdate(n)}),ht(this,uo).notify({mutation:this,type:"updated",action:n})})},eE);function iP(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Lo,Ig,bh,tE,$5=(tE=class extends Qv{constructor(s={}){super();Nn(this,Lo,void 0);Nn(this,Ig,void 0);Nn(this,bh,void 0);this.config=s,Ur(this,Lo,[]),Ur(this,Ig,0)}build(s,a,r){const e=new nP({mutationCache:this,mutationId:++a2(this,Ig)._,options:s.defaultMutationOptions(a),state:r});return this.add(e),e}add(s){ht(this,Lo).push(s),this.notify({type:"added",mutation:s})}remove(s){Ur(this,Lo,ht(this,Lo).filter(a=>a!==s)),this.notify({type:"removed",mutation:s})}clear(){Da.batch(()=>{ht(this,Lo).forEach(s=>{this.remove(s)})})}getAll(){return ht(this,Lo)}find(s){const a={exact:!0,...s};return ht(this,Lo).find(r=>OD(a,r))}findAll(s={}){return ht(this,Lo).filter(a=>OD(s,a))}notify(s){Da.batch(()=>{this.listeners.forEach(a=>{a(s)})})}resumePausedMutations(){return Ur(this,bh,(ht(this,bh)??Promise.resolve()).then(()=>{const s=ht(this,Lo).filter(a=>a.state.isPaused);return Da.batch(()=>s.reduce((a,r)=>a.then(()=>r.continue().catch(bl)),Promise.resolve()))}).then(()=>{Ur(this,bh,void 0)})),ht(this,bh)}},Lo=new WeakMap,Ig=new WeakMap,bh=new WeakMap,tE);function sP(t){return{onFetch:(n,s)=>{const a=async()=>{var B,P,V,z,q;const r=n.options,e=(V=(P=(B=n.fetchOptions)==null?void 0:B.meta)==null?void 0:P.fetchMore)==null?void 0:V.direction,d=((z=n.state.data)==null?void 0:z.pages)||[],_=((q=n.state.data)==null?void 0:q.pageParams)||[],y={pages:[],pageParams:[]};let E=!1;const T=oe=>{Object.defineProperty(oe,"signal",{enumerable:!0,get:()=>(n.signal.aborted?E=!0:n.signal.addEventListener("abort",()=>{E=!0}),n.signal)})},A=n.options.queryFn&&n.options.queryFn!==Y4?n.options.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${n.options.queryHash}'`)),R=async(oe,K,G)=>{if(E)return Promise.reject();if(K==null&&oe.pages.length)return Promise.resolve(oe);const ne={queryKey:n.queryKey,pageParam:K,direction:G?"backward":"forward",meta:n.options.meta};T(ne);const ce=await A(ne),{maxPages:U}=n.options,W=G?qI:KI;return{pages:W(oe.pages,ce,U),pageParams:W(oe.pageParams,K,U)}};let L;if(e&&d.length){const oe=e==="backward",K=oe?aP:PD,G={pages:d,pageParams:_},ne=K(r,G);L=await R(G,ne,oe)}else{L=await R(y,_[0]??r.initialPageParam);const oe=t??d.length;for(let K=1;K<oe;K++){const G=PD(r,L);L=await R(L,G)}}return L};n.options.persister?n.fetchFn=()=>{var r,e;return(e=(r=n.options).persister)==null?void 0:e.call(r,a,{queryKey:n.queryKey,meta:n.options.meta,signal:n.signal},s)}:n.fetchFn=a}}}function PD(t,{pages:n,pageParams:s}){const a=n.length-1;return t.getNextPageParam(n[a],n,s[a],s)}function aP(t,{pages:n,pageParams:s}){var a;return(a=t.getPreviousPageParam)==null?void 0:a.call(t,n[0],n,s[0],s)}var Bi,kf,Of,o1,l1,Rf,c1,u1,rE,oP=(rE=class{constructor(n={}){Nn(this,Bi,void 0);Nn(this,kf,void 0);Nn(this,Of,void 0);Nn(this,o1,void 0);Nn(this,l1,void 0);Nn(this,Rf,void 0);Nn(this,c1,void 0);Nn(this,u1,void 0);Ur(this,Bi,n.queryCache||new U5),Ur(this,kf,n.mutationCache||new $5),Ur(this,Of,n.defaultOptions||{}),Ur(this,o1,new Map),Ur(this,l1,new Map),Ur(this,Rf,0)}mount(){a2(this,Rf)._++,ht(this,Rf)===1&&(Ur(this,c1,N5.subscribe(async n=>{n&&(await this.resumePausedMutations(),ht(this,Bi).onFocus())})),Ur(this,u1,dv.subscribe(async n=>{n&&(await this.resumePausedMutations(),ht(this,Bi).onOnline())})))}unmount(){var n,s;a2(this,Rf)._--,ht(this,Rf)===0&&((n=ht(this,c1))==null||n.call(this),Ur(this,c1,void 0),(s=ht(this,u1))==null||s.call(this),Ur(this,u1,void 0))}isFetching(n){return ht(this,Bi).findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return ht(this,kf).findAll({...n,status:"pending"}).length}getQueryData(n){var a;const s=this.defaultQueryOptions({queryKey:n});return(a=ht(this,Bi).get(s.queryHash))==null?void 0:a.state.data}ensureQueryData(n){const s=this.getQueryData(n.queryKey);if(s===void 0)return this.fetchQuery(n);{const a=this.defaultQueryOptions(n),r=ht(this,Bi).build(this,a);return n.revalidateIfStale&&r.isStaleByTime(a.staleTime)&&this.prefetchQuery(a),Promise.resolve(s)}}getQueriesData(n){return ht(this,Bi).findAll(n).map(({queryKey:s,state:a})=>{const r=a.data;return[s,r]})}setQueryData(n,s,a){const r=this.defaultQueryOptions({queryKey:n}),e=ht(this,Bi).get(r.queryHash),d=e==null?void 0:e.state.data,_=zI(s,d);if(_!==void 0)return ht(this,Bi).build(this,r).setData(_,{...a,manual:!0})}setQueriesData(n,s,a){return Da.batch(()=>ht(this,Bi).findAll(n).map(({queryKey:r})=>[r,this.setQueryData(r,s,a)]))}getQueryState(n){var a;const s=this.defaultQueryOptions({queryKey:n});return(a=ht(this,Bi).get(s.queryHash))==null?void 0:a.state}removeQueries(n){const s=ht(this,Bi);Da.batch(()=>{s.findAll(n).forEach(a=>{s.remove(a)})})}resetQueries(n,s){const a=ht(this,Bi),r={type:"active",...n};return Da.batch(()=>(a.findAll(n).forEach(e=>{e.reset()}),this.refetchQueries(r,s)))}cancelQueries(n={},s={}){const a={revert:!0,...s},r=Da.batch(()=>ht(this,Bi).findAll(n).map(e=>e.cancel(a)));return Promise.all(r).then(bl).catch(bl)}invalidateQueries(n={},s={}){return Da.batch(()=>{if(ht(this,Bi).findAll(n).forEach(r=>{r.invalidate()}),n.refetchType==="none")return Promise.resolve();const a={...n,type:n.refetchType??n.type??"active"};return this.refetchQueries(a,s)})}refetchQueries(n={},s){const a={...s,cancelRefetch:(s==null?void 0:s.cancelRefetch)??!0},r=Da.batch(()=>ht(this,Bi).findAll(n).filter(e=>!e.isDisabled()).map(e=>{let d=e.fetch(void 0,a);return a.throwOnError||(d=d.catch(bl)),e.state.fetchStatus==="paused"?Promise.resolve():d}));return Promise.all(r).then(bl)}fetchQuery(n){const s=this.defaultQueryOptions(n);s.retry===void 0&&(s.retry=!1);const a=ht(this,Bi).build(this,s);return a.isStaleByTime(s.staleTime)?a.fetch(s):Promise.resolve(a.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(bl).catch(bl)}fetchInfiniteQuery(n){return n.behavior=sP(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(bl).catch(bl)}resumePausedMutations(){return dv.isOnline()?ht(this,kf).resumePausedMutations():Promise.resolve()}getQueryCache(){return ht(this,Bi)}getMutationCache(){return ht(this,kf)}getDefaultOptions(){return ht(this,Of)}setDefaultOptions(n){Ur(this,Of,n)}setQueryDefaults(n,s){ht(this,o1).set(Ag(n),{queryKey:n,defaultOptions:s})}getQueryDefaults(n){const s=[...ht(this,o1).values()];let a={};return s.forEach(r=>{Sg(n,r.queryKey)&&(a={...a,...r.defaultOptions})}),a}setMutationDefaults(n,s){ht(this,l1).set(Ag(n),{mutationKey:n,defaultOptions:s})}getMutationDefaults(n){const s=[...ht(this,l1).values()];let a={};return s.forEach(r=>{Sg(n,r.mutationKey)&&(a={...a,...r.defaultOptions})}),a}defaultQueryOptions(n){if(n._defaulted)return n;const s={...ht(this,Of).queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return s.queryHash||(s.queryHash=V4(s.queryKey,s)),s.refetchOnReconnect===void 0&&(s.refetchOnReconnect=s.networkMode!=="always"),s.throwOnError===void 0&&(s.throwOnError=!!s.suspense),!s.networkMode&&s.persister&&(s.networkMode="offlineFirst"),s.enabled!==!0&&s.queryFn===Y4&&(s.enabled=!1),s}defaultMutationOptions(n){return n!=null&&n._defaulted?n:{...ht(this,Of).mutations,...(n==null?void 0:n.mutationKey)&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){ht(this,Bi).clear(),ht(this,kf).clear()}},Bi=new WeakMap,kf=new WeakMap,Of=new WeakMap,o1=new WeakMap,l1=new WeakMap,Rf=new WeakMap,c1=new WeakMap,u1=new WeakMap,rE),lP="VUE_QUERY_CLIENT";function cP(t){const n=t?`:${t}`:"";return`${lP}${n}`}function fL(t,n){Object.keys(t).forEach(s=>{t[s]=n[s]})}function Ty(t,n){if(n){const s=n(t);if(s===void 0&&$n(t)||s!==void 0)return s}if(Array.isArray(t))return t.map(s=>Ty(s,n));if(typeof t=="object"&&uP(t)){const s=Object.entries(t).map(([a,r])=>[a,Ty(r,n)]);return Object.fromEntries(s)}return t}function Fn(t){return Ty(t,n=>{if($n(n))return Fn(mr(n))})}function uP(t){if(Object.prototype.toString.call(t)!=="[object Object]")return!1;const n=Object.getPrototypeOf(t);return n===null||n===Object.prototype}function hL(t,n){return typeof t=="function"?t(...n):!!t}var fP=class extends U5{find(t){return super.find(Fn(t))}findAll(t={}){return super.findAll(Fn(t))}},hP=class extends $5{find(t){return super.find(Fn(t))}findAll(t={}){return super.findAll(Fn(t))}},dP=class extends oP{constructor(t={}){const n={defaultOptions:t.defaultOptions,queryCache:t.queryCache||new fP,mutationCache:t.mutationCache||new hP};super(n),this.isRestoring=ur(!1)}isFetching(t={}){return super.isFetching(Fn(t))}isMutating(t={}){return super.isMutating(Fn(t))}getQueryData(t){return super.getQueryData(Fn(t))}ensureQueryData(t){return super.ensureQueryData(Fn(t))}getQueriesData(t){return super.getQueriesData(Fn(t))}setQueryData(t,n,s={}){return super.setQueryData(Fn(t),n,Fn(s))}setQueriesData(t,n,s={}){return super.setQueriesData(Fn(t),n,Fn(s))}getQueryState(t){return super.getQueryState(Fn(t))}removeQueries(t={}){return super.removeQueries(Fn(t))}resetQueries(t={},n={}){return super.resetQueries(Fn(t),Fn(n))}cancelQueries(t={},n={}){return super.cancelQueries(Fn(t),Fn(n))}invalidateQueries(t={},n={}){return new Promise(s=>{setTimeout(async()=>{await super.invalidateQueries(Fn(t),Fn(n)),s()},0)})}refetchQueries(t={},n={}){return super.refetchQueries(Fn(t),Fn(n))}fetchQuery(t){return super.fetchQuery(Fn(t))}prefetchQuery(t){return super.prefetchQuery(Fn(t))}fetchInfiniteQuery(t){return super.fetchInfiniteQuery(Fn(t))}prefetchInfiniteQuery(t){return super.prefetchInfiniteQuery(Fn(t))}setDefaultOptions(t){super.setDefaultOptions(Fn(t))}setQueryDefaults(t,n){super.setQueryDefaults(Fn(t),Fn(n))}getQueryDefaults(t){return super.getQueryDefaults(Fn(t))}setMutationDefaults(t,n){super.setMutationDefaults(Fn(t),Fn(n))}getMutationDefaults(t){return super.getMutationDefaults(Fn(t))}},pP={install:(t,n={})=>{const s=cP(n.queryClientKey);let a;if("queryClient"in n&&n.queryClient)a=n.queryClient;else{const d="queryClientConfig"in n?n.queryClientConfig:void 0;a=new dP(d)}jg||a.mount();let r=()=>{};if(n.clientPersister){a.isRestoring.value=!0;const[d,_]=n.clientPersister(a);r=d,_.then(()=>{var y;a.isRestoring.value=!1,(y=n.clientPersisterOnSuccess)==null||y.call(n,a)})}const e=()=>{a.unmount(),r()};if(t.onUnmount)t.onUnmount(e);else{const d=t.unmount;t.unmount=function(){e(),d()}}t.provide(s,a)}};let gP;function mP(){return gP}function vP(t){return typeof t=="function"?t():mr(t)}function Cy(t,n=""){if(t instanceof Promise)return t;const s=vP(t);return!t||!s?s:Array.isArray(s)?s.map(a=>Cy(a,n)):typeof s=="object"?Object.fromEntries(Object.entries(s).map(([a,r])=>a==="titleTemplate"||a.startsWith("on")?[a,mr(r)]:[a,Cy(r,a)])):s}const bP="usehead";function _P(){return Os()&&xa(bP)||mP()}function yP(t,n={}){const s=_P();if(s)return s.ssr?s.push(t,n):wP(s,t,n)}function wP(t,n,s={}){const a=ur(!1),r=ur({});e4(()=>{r.value=a.value?{}:Cy(n)});const e=t.push(r.value,s);return Zn(r,_=>{e.patch(_)}),Os()&&($g(()=>{e.dispose()}),i4(()=>{a.value=!0}),n4(()=>{a.value=!1})),e}const DP=vs({__name:"App",setup(t){return yP({title:"Board - XCPCIO",meta:[{name:"description",content:"XCPCIO-Board 主要收录 *CPC 系列竞赛的榜单。"},{name:"keywords",content:"icpc, ccpc, rank, board, standings"},{name:"theme-color",content:()=>o5.value?"#00aba9":"#ffffff"}],link:[{rel:"icon",type:"image/svg+xml",href:()=>dR.value?"/favicon-dark.svg":"/favicon.svg"}]}),(n,s)=>{const a=Cl("RouterView");return pn(),cu(a)}}});var EP=Object.defineProperty,ND=Object.getOwnPropertySymbols,FP=Object.prototype.hasOwnProperty,xP=Object.prototype.propertyIsEnumerable,MD=(t,n,s)=>n in t?EP(t,n,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[n]=s,LD=(t,n)=>{for(var s in n||(n={}))FP.call(n,s)&&MD(t,s,n[s]);if(ND)for(var s of ND(n))xP.call(n,s)&&MD(t,s,n[s]);return t};const R_=new WeakMap;function H5(t,n,s={}){const{mode:a="replace",route:r=x6(),router:e=Lk(),transform:d=T=>T}=s;R_.has(r)||R_.set(r,new Map);const _=R_.get(r);lc(()=>{_.delete(t)}),_.set(t,r.query[t]);let y;const E=qy((T,A)=>(y=A,{get(){T();const R=_.get(t);return d(R!==void 0?R:Ti(n))},set(R){_.get(t)!==R&&(_.set(t,R),A(),uc(()=>{const{params:L,query:B,hash:P}=r;e[Ti(a)]({params:L,query:LD(LD({},B),Object.fromEntries(_.entries())),hash:P})}))}}));return Zn(()=>r.query[t],T=>{_.set(t,T),y()},{flush:"sync"}),E}var W5={exports:{}};(function(t,n){(function(s,a){t.exports=a()})(ms,function(){var s=1e3,a=6e4,r=36e5,e="millisecond",d="second",_="minute",y="hour",E="day",T="week",A="month",R="quarter",L="year",B="date",P="Invalid Date",V=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,z=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,q={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(_e){var be=["th","st","nd","rd"],$e=_e%100;return"["+_e+(be[($e-20)%10]||be[$e]||be[0])+"]"}},oe=function(_e,be,$e){var je=String(_e);return!je||je.length>=be?_e:""+Array(be+1-je.length).join($e)+_e},K={s:oe,z:function(_e){var be=-_e.utcOffset(),$e=Math.abs(be),je=Math.floor($e/60),Ee=$e%60;return(be<=0?"+":"-")+oe(je,2,"0")+":"+oe(Ee,2,"0")},m:function _e(be,$e){if(be.date()<$e.date())return-_e($e,be);var je=12*($e.year()-be.year())+($e.month()-be.month()),Ee=be.clone().add(je,A),lt=$e-Ee<0,Xe=be.clone().add(je+(lt?-1:1),A);return+(-(je+($e-Ee)/(lt?Ee-Xe:Xe-Ee))||0)},a:function(_e){return _e<0?Math.ceil(_e)||0:Math.floor(_e)},p:function(_e){return{M:A,y:L,w:T,d:E,D:B,h:y,m:_,s:d,ms:e,Q:R}[_e]||String(_e||"").toLowerCase().replace(/s$/,"")},u:function(_e){return _e===void 0}},G="en",ne={};ne[G]=q;var ce=function(_e){return _e instanceof fe},U=function _e(be,$e,je){var Ee;if(!be)return G;if(typeof be=="string"){var lt=be.toLowerCase();ne[lt]&&(Ee=lt),$e&&(ne[lt]=$e,Ee=lt);var Xe=be.split("-");if(!Ee&&Xe.length>1)return _e(Xe[0])}else{var Je=be.name;ne[Je]=be,Ee=Je}return!je&&Ee&&(G=Ee),Ee||!je&&G},W=function(_e,be){if(ce(_e))return _e.clone();var $e=typeof be=="object"?be:{};return $e.date=_e,$e.args=arguments,new fe($e)},te=K;te.l=U,te.i=ce,te.w=function(_e,be){return W(_e,{locale:be.$L,utc:be.$u,x:be.$x,$offset:be.$offset})};var fe=function(){function _e($e){this.$L=U($e.locale,null,!0),this.parse($e)}var be=_e.prototype;return be.parse=function($e){this.$d=function(je){var Ee=je.date,lt=je.utc;if(Ee===null)return new Date(NaN);if(te.u(Ee))return new Date;if(Ee instanceof Date)return new Date(Ee);if(typeof Ee=="string"&&!/Z$/i.test(Ee)){var Xe=Ee.match(V);if(Xe){var Je=Xe[2]-1||0,de=(Xe[7]||"0").substring(0,3);return lt?new Date(Date.UTC(Xe[1],Je,Xe[3]||1,Xe[4]||0,Xe[5]||0,Xe[6]||0,de)):new Date(Xe[1],Je,Xe[3]||1,Xe[4]||0,Xe[5]||0,Xe[6]||0,de)}}return new Date(Ee)}($e),this.$x=$e.x||{},this.init()},be.init=function(){var $e=this.$d;this.$y=$e.getFullYear(),this.$M=$e.getMonth(),this.$D=$e.getDate(),this.$W=$e.getDay(),this.$H=$e.getHours(),this.$m=$e.getMinutes(),this.$s=$e.getSeconds(),this.$ms=$e.getMilliseconds()},be.$utils=function(){return te},be.isValid=function(){return this.$d.toString()!==P},be.isSame=function($e,je){var Ee=W($e);return this.startOf(je)<=Ee&&Ee<=this.endOf(je)},be.isAfter=function($e,je){return W($e)<this.startOf(je)},be.isBefore=function($e,je){return this.endOf(je)<W($e)},be.$g=function($e,je,Ee){return te.u($e)?this[je]:this.set(Ee,$e)},be.unix=function(){return Math.floor(this.valueOf()/1e3)},be.valueOf=function(){return this.$d.getTime()},be.startOf=function($e,je){var Ee=this,lt=!!te.u(je)||je,Xe=te.p($e),Je=function(He,pe){var it=te.w(Ee.$u?Date.UTC(Ee.$y,pe,He):new Date(Ee.$y,pe,He),Ee);return lt?it:it.endOf(E)},de=function(He,pe){return te.w(Ee.toDate()[He].apply(Ee.toDate("s"),(lt?[0,0,0,0]:[23,59,59,999]).slice(pe)),Ee)},Se=this.$W,rt=this.$M,We=this.$D,Fe="set"+(this.$u?"UTC":"");switch(Xe){case L:return lt?Je(1,0):Je(31,11);case A:return lt?Je(1,rt):Je(0,rt+1);case T:var Be=this.$locale().weekStart||0,ie=(Se<Be?Se+7:Se)-Be;return Je(lt?We-ie:We+(6-ie),rt);case E:case B:return de(Fe+"Hours",0);case y:return de(Fe+"Minutes",1);case _:return de(Fe+"Seconds",2);case d:return de(Fe+"Milliseconds",3);default:return this.clone()}},be.endOf=function($e){return this.startOf($e,!1)},be.$set=function($e,je){var Ee,lt=te.p($e),Xe="set"+(this.$u?"UTC":""),Je=(Ee={},Ee[E]=Xe+"Date",Ee[B]=Xe+"Date",Ee[A]=Xe+"Month",Ee[L]=Xe+"FullYear",Ee[y]=Xe+"Hours",Ee[_]=Xe+"Minutes",Ee[d]=Xe+"Seconds",Ee[e]=Xe+"Milliseconds",Ee)[lt],de=lt===E?this.$D+(je-this.$W):je;if(lt===A||lt===L){var Se=this.clone().set(B,1);Se.$d[Je](de),Se.init(),this.$d=Se.set(B,Math.min(this.$D,Se.daysInMonth())).$d}else Je&&this.$d[Je](de);return this.init(),this},be.set=function($e,je){return this.clone().$set($e,je)},be.get=function($e){return this[te.p($e)]()},be.add=function($e,je){var Ee,lt=this;$e=Number($e);var Xe=te.p(je),Je=function(rt){var We=W(lt);return te.w(We.date(We.date()+Math.round(rt*$e)),lt)};if(Xe===A)return this.set(A,this.$M+$e);if(Xe===L)return this.set(L,this.$y+$e);if(Xe===E)return Je(1);if(Xe===T)return Je(7);var de=(Ee={},Ee[_]=a,Ee[y]=r,Ee[d]=s,Ee)[Xe]||1,Se=this.$d.getTime()+$e*de;return te.w(Se,this)},be.subtract=function($e,je){return this.add(-1*$e,je)},be.format=function($e){var je=this,Ee=this.$locale();if(!this.isValid())return Ee.invalidDate||P;var lt=$e||"YYYY-MM-DDTHH:mm:ssZ",Xe=te.z(this),Je=this.$H,de=this.$m,Se=this.$M,rt=Ee.weekdays,We=Ee.months,Fe=function(pe,it,Ot,re){return pe&&(pe[it]||pe(je,lt))||Ot[it].slice(0,re)},Be=function(pe){return te.s(Je%12||12,pe,"0")},ie=Ee.meridiem||function(pe,it,Ot){var re=pe<12?"AM":"PM";return Ot?re.toLowerCase():re},He={YY:String(this.$y).slice(-2),YYYY:te.s(this.$y,4,"0"),M:Se+1,MM:te.s(Se+1,2,"0"),MMM:Fe(Ee.monthsShort,Se,We,3),MMMM:Fe(We,Se),D:this.$D,DD:te.s(this.$D,2,"0"),d:String(this.$W),dd:Fe(Ee.weekdaysMin,this.$W,rt,2),ddd:Fe(Ee.weekdaysShort,this.$W,rt,3),dddd:rt[this.$W],H:String(Je),HH:te.s(Je,2,"0"),h:Be(1),hh:Be(2),a:ie(Je,de,!0),A:ie(Je,de,!1),m:String(de),mm:te.s(de,2,"0"),s:String(this.$s),ss:te.s(this.$s,2,"0"),SSS:te.s(this.$ms,3,"0"),Z:Xe};return lt.replace(z,function(pe,it){return it||He[pe]||Xe.replace(":","")})},be.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},be.diff=function($e,je,Ee){var lt,Xe=te.p(je),Je=W($e),de=(Je.utcOffset()-this.utcOffset())*a,Se=this-Je,rt=te.m(this,Je);return rt=(lt={},lt[L]=rt/12,lt[A]=rt,lt[R]=rt/3,lt[T]=(Se-de)/6048e5,lt[E]=(Se-de)/864e5,lt[y]=Se/r,lt[_]=Se/a,lt[d]=Se/s,lt)[Xe]||Se,Ee?rt:te.a(rt)},be.daysInMonth=function(){return this.endOf(A).$D},be.$locale=function(){return ne[this.$L]},be.locale=function($e,je){if(!$e)return this.$L;var Ee=this.clone(),lt=U($e,je,!0);return lt&&(Ee.$L=lt),Ee},be.clone=function(){return te.w(this.$d,this)},be.toDate=function(){return new Date(this.valueOf())},be.toJSON=function(){return this.isValid()?this.toISOString():null},be.toISOString=function(){return this.$d.toISOString()},be.toString=function(){return this.$d.toUTCString()},_e}(),xe=fe.prototype;return W.prototype=xe,[["$ms",e],["$s",d],["$m",_],["$H",y],["$W",E],["$M",A],["$y",L],["$D",B]].forEach(function(_e){xe[_e[1]]=function(be){return this.$g(be,_e[0],_e[1])}}),W.extend=function(_e,be){return _e.$i||(_e(be,fe,W),_e.$i=!0),W},W.locale=U,W.isDayjs=ce,W.unix=function(_e){return W(1e3*_e)},W.en=ne[G],W.Ls=ne,W.p={},W})})(W5);var TP=W5.exports;const ea=ra(TP);var z5={exports:{}};(function(t,n){(function(s,a){t.exports=a()})(ms,function(){var s,a,r=1e3,e=6e4,d=36e5,_=864e5,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,E=31536e6,T=2592e6,A=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,R={years:E,months:T,days:_,hours:d,minutes:e,seconds:r,milliseconds:1,weeks:6048e5},L=function(G){return G instanceof K},B=function(G,ne,ce){return new K(G,ce,ne.$l)},P=function(G){return a.p(G)+"s"},V=function(G){return G<0},z=function(G){return V(G)?Math.ceil(G):Math.floor(G)},q=function(G){return Math.abs(G)},oe=function(G,ne){return G?V(G)?{negative:!0,format:""+q(G)+ne}:{negative:!1,format:""+G+ne}:{negative:!1,format:""}},K=function(){function G(ce,U,W){var te=this;if(this.$d={},this.$l=W,ce===void 0&&(this.$ms=0,this.parseFromMilliseconds()),U)return B(ce*R[P(U)],this);if(typeof ce=="number")return this.$ms=ce,this.parseFromMilliseconds(),this;if(typeof ce=="object")return Object.keys(ce).forEach(function(_e){te.$d[P(_e)]=ce[_e]}),this.calMilliseconds(),this;if(typeof ce=="string"){var fe=ce.match(A);if(fe){var xe=fe.slice(2).map(function(_e){return _e!=null?Number(_e):0});return this.$d.years=xe[0],this.$d.months=xe[1],this.$d.weeks=xe[2],this.$d.days=xe[3],this.$d.hours=xe[4],this.$d.minutes=xe[5],this.$d.seconds=xe[6],this.calMilliseconds(),this}}return this}var ne=G.prototype;return ne.calMilliseconds=function(){var ce=this;this.$ms=Object.keys(this.$d).reduce(function(U,W){return U+(ce.$d[W]||0)*R[W]},0)},ne.parseFromMilliseconds=function(){var ce=this.$ms;this.$d.years=z(ce/E),ce%=E,this.$d.months=z(ce/T),ce%=T,this.$d.days=z(ce/_),ce%=_,this.$d.hours=z(ce/d),ce%=d,this.$d.minutes=z(ce/e),ce%=e,this.$d.seconds=z(ce/r),ce%=r,this.$d.milliseconds=ce},ne.toISOString=function(){var ce=oe(this.$d.years,"Y"),U=oe(this.$d.months,"M"),W=+this.$d.days||0;this.$d.weeks&&(W+=7*this.$d.weeks);var te=oe(W,"D"),fe=oe(this.$d.hours,"H"),xe=oe(this.$d.minutes,"M"),_e=this.$d.seconds||0;this.$d.milliseconds&&(_e+=this.$d.milliseconds/1e3);var be=oe(_e,"S"),$e=ce.negative||U.negative||te.negative||fe.negative||xe.negative||be.negative,je=fe.format||xe.format||be.format?"T":"",Ee=($e?"-":"")+"P"+ce.format+U.format+te.format+je+fe.format+xe.format+be.format;return Ee==="P"||Ee==="-P"?"P0D":Ee},ne.toJSON=function(){return this.toISOString()},ne.format=function(ce){var U=ce||"YYYY-MM-DDTHH:mm:ss",W={Y:this.$d.years,YY:a.s(this.$d.years,2,"0"),YYYY:a.s(this.$d.years,4,"0"),M:this.$d.months,MM:a.s(this.$d.months,2,"0"),D:this.$d.days,DD:a.s(this.$d.days,2,"0"),H:this.$d.hours,HH:a.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:a.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:a.s(this.$d.seconds,2,"0"),SSS:a.s(this.$d.milliseconds,3,"0")};return U.replace(y,function(te,fe){return fe||String(W[te])})},ne.as=function(ce){return this.$ms/R[P(ce)]},ne.get=function(ce){var U=this.$ms,W=P(ce);return W==="milliseconds"?U%=1e3:U=W==="weeks"?z(U/R[W]):this.$d[W],U===0?0:U},ne.add=function(ce,U,W){var te;return te=U?ce*R[P(U)]:L(ce)?ce.$ms:B(ce,this).$ms,B(this.$ms+te*(W?-1:1),this)},ne.subtract=function(ce,U){return this.add(ce,U,!0)},ne.locale=function(ce){var U=this.clone();return U.$l=ce,U},ne.clone=function(){return B(this.$ms,this)},ne.humanize=function(ce){return s().add(this.$ms,"ms").locale(this.$l).fromNow(!ce)},ne.valueOf=function(){return this.asMilliseconds()},ne.milliseconds=function(){return this.get("milliseconds")},ne.asMilliseconds=function(){return this.as("milliseconds")},ne.seconds=function(){return this.get("seconds")},ne.asSeconds=function(){return this.as("seconds")},ne.minutes=function(){return this.get("minutes")},ne.asMinutes=function(){return this.as("minutes")},ne.hours=function(){return this.get("hours")},ne.asHours=function(){return this.as("hours")},ne.days=function(){return this.get("days")},ne.asDays=function(){return this.as("days")},ne.weeks=function(){return this.get("weeks")},ne.asWeeks=function(){return this.as("weeks")},ne.months=function(){return this.get("months")},ne.asMonths=function(){return this.as("months")},ne.years=function(){return this.get("years")},ne.asYears=function(){return this.as("years")},G}();return function(G,ne,ce){s=ce,a=ce().$utils(),ce.duration=function(te,fe){var xe=ce.locale();return B(te,{$l:xe},fe)},ce.isDuration=L;var U=ne.prototype.add,W=ne.prototype.subtract;ne.prototype.add=function(te,fe){return L(te)&&(te=te.asMilliseconds()),U.bind(this)(te,fe)},ne.prototype.subtract=function(te,fe){return L(te)&&(te=te.asMilliseconds()),W.bind(this)(te,fe)}}})})(z5);var CP=z5.exports;const AP=ra(CP);var j5={exports:{}};(function(t,n){(function(s,a){t.exports=a()})(ms,function(){var s="minute",a=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(e,d,_){var y=d.prototype;_.utc=function(P){var V={date:P,utc:!0,args:arguments};return new d(V)},y.utc=function(P){var V=_(this.toDate(),{locale:this.$L,utc:!0});return P?V.add(this.utcOffset(),s):V},y.local=function(){return _(this.toDate(),{locale:this.$L,utc:!1})};var E=y.parse;y.parse=function(P){P.utc&&(this.$u=!0),this.$utils().u(P.$offset)||(this.$offset=P.$offset),E.call(this,P)};var T=y.init;y.init=function(){if(this.$u){var P=this.$d;this.$y=P.getUTCFullYear(),this.$M=P.getUTCMonth(),this.$D=P.getUTCDate(),this.$W=P.getUTCDay(),this.$H=P.getUTCHours(),this.$m=P.getUTCMinutes(),this.$s=P.getUTCSeconds(),this.$ms=P.getUTCMilliseconds()}else T.call(this)};var A=y.utcOffset;y.utcOffset=function(P,V){var z=this.$utils().u;if(z(P))return this.$u?0:z(this.$offset)?A.call(this):this.$offset;if(typeof P=="string"&&(P=function(G){G===void 0&&(G="");var ne=G.match(a);if(!ne)return null;var ce=(""+ne[0]).match(r)||["-",0,0],U=ce[0],W=60*+ce[1]+ +ce[2];return W===0?0:U==="+"?W:-W}(P),P===null))return this;var q=Math.abs(P)<=16?60*P:P,oe=this;if(V)return oe.$offset=q,oe.$u=P===0,oe;if(P!==0){var K=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(oe=this.local().add(q+K,s)).$offset=q,oe.$x.$localOffset=K}else oe=this.utc();return oe};var R=y.format;y.format=function(P){var V=P||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return R.call(this,V)},y.valueOf=function(){var P=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*P},y.isUTC=function(){return!!this.$u},y.toISOString=function(){return this.toDate().toISOString()},y.toString=function(){return this.toDate().toUTCString()};var L=y.toDate;y.toDate=function(P){return P==="s"&&this.$offset?_(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():L.call(this)};var B=y.diff;y.diff=function(P,V,z){if(P&&this.$u===P.$u)return B.call(this,P,V,z);var q=this.local(),oe=_(P).local();return B.call(q,oe,V,z)}}})})(j5);var SP=j5.exports;const kP=ra(SP);var G5={exports:{}};(function(t,n){(function(s,a){t.exports=a()})(ms,function(){var s={year:0,month:1,day:2,hour:3,minute:4,second:5},a={};return function(r,e,d){var _,y=function(R,L,B){B===void 0&&(B={});var P=new Date(R),V=function(z,q){q===void 0&&(q={});var oe=q.timeZoneName||"short",K=z+"|"+oe,G=a[K];return G||(G=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:z,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:oe}),a[K]=G),G}(L,B);return V.formatToParts(P)},E=function(R,L){for(var B=y(R,L),P=[],V=0;V<B.length;V+=1){var z=B[V],q=z.type,oe=z.value,K=s[q];K>=0&&(P[K]=parseInt(oe,10))}var G=P[3],ne=G===24?0:G,ce=P[0]+"-"+P[1]+"-"+P[2]+" "+ne+":"+P[4]+":"+P[5]+":000",U=+R;return(d.utc(ce).valueOf()-(U-=U%1e3))/6e4},T=e.prototype;T.tz=function(R,L){R===void 0&&(R=_);var B=this.utcOffset(),P=this.toDate(),V=P.toLocaleString("en-US",{timeZone:R}),z=Math.round((P-new Date(V))/1e3/60),q=d(V).$set("millisecond",this.$ms).utcOffset(15*-Math.round(P.getTimezoneOffset()/15)-z,!0);if(L){var oe=q.utcOffset();q=q.add(B-oe,"minute")}return q.$x.$timezone=R,q},T.offsetName=function(R){var L=this.$x.$timezone||d.tz.guess(),B=y(this.valueOf(),L,{timeZoneName:R}).find(function(P){return P.type.toLowerCase()==="timezonename"});return B&&B.value};var A=T.startOf;T.startOf=function(R,L){if(!this.$x||!this.$x.$timezone)return A.call(this,R,L);var B=d(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return A.call(B,R,L).tz(this.$x.$timezone,!0)},d.tz=function(R,L,B){var P=B&&L,V=B||L||_,z=E(+d(),V);if(typeof R!="string")return d(R).tz(V);var q=function(ne,ce,U){var W=ne-60*ce*1e3,te=E(W,U);if(ce===te)return[W,ce];var fe=E(W-=60*(te-ce)*1e3,U);return te===fe?[W,te]:[ne-60*Math.min(te,fe)*1e3,Math.max(te,fe)]}(d.utc(R,P).valueOf(),z,V),oe=q[0],K=q[1],G=d(oe).utcOffset(K);return G.$x.$timezone=V,G},d.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},d.tz.setDefault=function(R){_=R}}})})(G5);var OP=G5.exports;const RP=ra(OP);var V5={exports:{}};(function(t,n){(function(s,a){t.exports=a()})(ms,function(){return function(s,a){var r=a.prototype,e=r.format;r.format=function(d){var _=this,y=this.$locale();if(!this.isValid())return e.bind(this)(d);var E=this.$utils(),T=(d||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(A){switch(A){case"Q":return Math.ceil((_.$M+1)/3);case"Do":return y.ordinal(_.$D);case"gggg":return _.weekYear();case"GGGG":return _.isoWeekYear();case"wo":return y.ordinal(_.week(),"W");case"w":case"ww":return E.s(_.week(),A==="w"?1:2,"0");case"W":case"WW":return E.s(_.isoWeek(),A==="W"?1:2,"0");case"k":case"kk":return E.s(String(_.$H===0?24:_.$H),A==="k"?1:2,"0");case"X":return Math.floor(_.$d.getTime()/1e3);case"x":return _.$d.getTime();case"z":return"["+_.offsetName()+"]";case"zzz":return"["+_.offsetName("long")+"]";default:return A}});return e.bind(this)(T)}}})})(V5);var IP=V5.exports;const PP=ra(IP);var Y5={exports:{}};(function(t,n){(function(s,a){t.exports=a()})(ms,function(){return function(s,a){a.prototype.isSameOrBefore=function(r,e){return this.isSame(r,e)||this.isBefore(r,e)}}})})(Y5);var NP=Y5.exports;const MP=ra(NP);var K5={exports:{}};(function(t,n){(function(s,a){t.exports=a()})(ms,function(){return function(s,a){a.prototype.isSameOrAfter=function(r,e){return this.isSame(r,e)||this.isAfter(r,e)}}})})(K5);var LP=K5.exports;const BP=ra(LP);var q5={exports:{}};(function(t,n){(function(s,a){t.exports=a()})(ms,function(){return function(s,a,r){var e=function(d,_){if(!_||!_.length||!_[0]||_.length===1&&!_[0].length)return null;var y;_.length===1&&_[0].length>0&&(_=_[0]),y=_[0];for(var E=1;E<_.length;E+=1)_[E].isValid()&&!_[E][d](y)||(y=_[E]);return y};r.max=function(){var d=[].slice.call(arguments,0);return e("isAfter",d)},r.min=function(){var d=[].slice.call(arguments,0);return e("isBefore",d)}}})})(q5);var UP=q5.exports;const $P=ra(UP);var Q5={exports:{}};(function(t,n){(function(s,a){t.exports=a()})(ms,function(){return function(s,a,r){s=s||{};var e=a.prototype,d={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function _(E,T,A,R){return e.fromToBase(E,T,A,R)}r.en.relativeTime=d,e.fromToBase=function(E,T,A,R,L){for(var B,P,V,z=A.$locale().relativeTime||d,q=s.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],oe=q.length,K=0;K<oe;K+=1){var G=q[K];G.d&&(B=R?r(E).diff(A,G.d,!0):A.diff(E,G.d,!0));var ne=(s.rounding||Math.round)(Math.abs(B));if(V=B>0,ne<=G.r||!G.r){ne<=1&&K>0&&(G=q[K-1]);var ce=z[G.l];L&&(ne=L(""+ne)),P=typeof ce=="string"?ce.replace("%d",ne):ce(ne,T,G.l,V);break}}if(T)return P;var U=V?z.future:z.past;return typeof U=="function"?U(P):U.replace("%s",P)},e.to=function(E,T){return _(E,T,this,!0)},e.from=function(E,T){return _(E,T,this)};var y=function(E){return E.$u?r.utc():r()};e.toNow=function(E){return this.to(y(this),E)},e.fromNow=function(E){return this.from(y(this),E)}}})})(Q5);var HP=Q5.exports;const WP=ra(HP);var pv={exports:{}};/**
30
+ */const Hd=typeof window<"u";function NS(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const qn=Object.assign;function w_(t,n){const s={};for(const a in n){const r=n[a];s[a]=Al(r)?r.map(t):t(r)}return s}const eg=()=>{},Al=Array.isArray,MS=/\/$/,LS=t=>t.replace(MS,"");function D_(t,n,s="/"){let a,r={},e="",d="";const _=n.indexOf("#");let y=n.indexOf("?");return _<y&&_>=0&&(y=-1),y>-1&&(a=n.slice(0,y),e=n.slice(y+1,_>-1?_:n.length),r=t(e)),_>-1&&(a=a||n.slice(0,_),d=n.slice(_,n.length)),a=HS(a??n,s),{fullPath:a+(e&&"?")+e+d,path:a,query:r,hash:d}}function BS(t,n){const s=n.query?t(n.query):"";return n.path+(s&&"?")+s+(n.hash||"")}function hw(t,n){return!n||!t.toLowerCase().startsWith(n.toLowerCase())?t:t.slice(n.length)||"/"}function US(t,n,s){const a=n.matched.length-1,r=s.matched.length-1;return a>-1&&a===r&&g1(n.matched[a],s.matched[r])&&d6(n.params,s.params)&&t(n.query)===t(s.query)&&n.hash===s.hash}function g1(t,n){return(t.aliasOf||t)===(n.aliasOf||n)}function d6(t,n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(const s in t)if(!$S(t[s],n[s]))return!1;return!0}function $S(t,n){return Al(t)?dw(t,n):Al(n)?dw(n,t):t===n}function dw(t,n){return Al(n)?t.length===n.length&&t.every((s,a)=>s===n[a]):t.length===1&&t[0]===n}function HS(t,n){if(t.startsWith("/"))return t;if(!t)return n;const s=n.split("/"),a=t.split("/"),r=a[a.length-1];(r===".."||r===".")&&a.push("");let e=s.length-1,d,_;for(d=0;d<a.length;d++)if(_=a[d],_!==".")if(_==="..")e>1&&e--;else break;return s.slice(0,e).join("/")+"/"+a.slice(d-(d===a.length?1:0)).join("/")}var m1;(function(t){t.pop="pop",t.push="push"})(m1||(m1={}));var Dh;(function(t){t.back="back",t.forward="forward",t.unknown=""})(Dh||(Dh={}));const E_="";function p6(t){if(!t)if(Hd){const n=document.querySelector("base");t=n&&n.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),LS(t)}const WS=/^[^#]+#/;function g6(t,n){return t.replace(WS,"#")+n}function zS(t,n){const s=document.documentElement.getBoundingClientRect(),a=t.getBoundingClientRect();return{behavior:n.behavior,left:a.left-s.left-(n.left||0),top:a.top-s.top-(n.top||0)}}const Hv=()=>({left:window.pageXOffset,top:window.pageYOffset});function jS(t){let n;if("el"in t){const s=t.el,a=typeof s=="string"&&s.startsWith("#"),r=typeof s=="string"?a?document.getElementById(s.slice(1)):document.querySelector(s):s;if(!r)return;n=zS(r,t)}else n=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(n):window.scrollTo(n.left!=null?n.left:window.pageXOffset,n.top!=null?n.top:window.pageYOffset)}function pw(t,n){return(history.state?history.state.position-n:-1)+t}const fy=new Map;function GS(t,n){fy.set(t,n)}function VS(t){const n=fy.get(t);return fy.delete(t),n}let YS=()=>location.protocol+"//"+location.host;function m6(t,n){const{pathname:s,search:a,hash:r}=n,e=t.indexOf("#");if(e>-1){let _=r.includes(t.slice(e))?t.slice(e).length:1,y=r.slice(_);return y[0]!=="/"&&(y="/"+y),hw(y,"")}return hw(s,t)+a+r}function KS(t,n,s,a){let r=[],e=[],d=null;const _=({state:R})=>{const L=m6(t,location),B=s.value,P=n.value;let V=0;if(R){if(s.value=L,n.value=R,d&&d===B){d=null;return}V=P?R.position-P.position:0}else a(L);r.forEach(z=>{z(s.value,B,{delta:V,type:m1.pop,direction:V?V>0?Dh.forward:Dh.back:Dh.unknown})})};function y(){d=s.value}function E(R){r.push(R);const L=()=>{const B=r.indexOf(R);B>-1&&r.splice(B,1)};return e.push(L),L}function T(){const{history:R}=window;R.state&&R.replaceState(qn({},R.state,{scroll:Hv()}),"")}function A(){for(const R of e)R();e=[],window.removeEventListener("popstate",_),window.removeEventListener("beforeunload",T)}return window.addEventListener("popstate",_),window.addEventListener("beforeunload",T,{passive:!0}),{pauseListeners:y,listen:E,destroy:A}}function gw(t,n,s,a=!1,r=!1){return{back:t,current:n,forward:s,replaced:a,position:window.history.length,scroll:r?Hv():null}}function qS(t){const{history:n,location:s}=window,a={value:m6(t,s)},r={value:n.state};r.value||e(a.value,{back:null,current:a.value,forward:null,position:n.length-1,replaced:!0,scroll:null},!0);function e(y,E,T){const A=t.indexOf("#"),R=A>-1?(s.host&&document.querySelector("base")?t:t.slice(A))+y:YS()+t+y;try{n[T?"replaceState":"pushState"](E,"",R),r.value=E}catch(L){console.error(L),s[T?"replace":"assign"](R)}}function d(y,E){const T=qn({},n.state,gw(r.value.back,y,r.value.forward,!0),E,{position:r.value.position});e(y,T,!0),a.value=y}function _(y,E){const T=qn({},r.value,n.state,{forward:y,scroll:Hv()});e(T.current,T,!0);const A=qn({},gw(a.value,y,null),{position:T.position+1},E);e(y,A,!1),a.value=y}return{location:a,state:r,push:_,replace:d}}function QS(t){t=p6(t);const n=qS(t),s=KS(t,n.state,n.location,n.replace);function a(e,d=!0){d||s.pauseListeners(),history.go(e)}const r=qn({location:"",base:t,go:a,createHref:g6.bind(null,t)},n,s);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>n.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>n.state.value}),r}function XS(t=""){let n=[],s=[E_],a=0;t=p6(t);function r(_){a++,a===s.length||s.splice(a),s.push(_)}function e(_,y,{direction:E,delta:T}){const A={direction:E,delta:T,type:m1.pop};for(const R of n)R(_,y,A)}const d={location:E_,state:{},base:t,createHref:g6.bind(null,t),replace(_){s.splice(a--,1),r(_)},push(_,y){r(_)},listen(_){return n.push(_),()=>{const y=n.indexOf(_);y>-1&&n.splice(y,1)}},destroy(){n=[],s=[E_],a=0},go(_,y=!0){const E=this.location,T=_<0?Dh.back:Dh.forward;a=Math.max(0,Math.min(a+_,s.length-1)),y&&e(this.location,E,{direction:T,delta:_})}};return Object.defineProperty(d,"location",{enumerable:!0,get:()=>s[a]}),d}function JS(t){return typeof t=="string"||t&&typeof t=="object"}function v6(t){return typeof t=="string"||typeof t=="symbol"}const gf={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},b6=Symbol("");var mw;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(mw||(mw={}));function v1(t,n){return qn(new Error,{type:t,[b6]:!0},n)}function Qc(t,n){return t instanceof Error&&b6 in t&&(n==null||!!(t.type&n))}const vw="[^/]+?",ZS={sensitive:!1,strict:!1,start:!0,end:!0},ek=/[.+*?^${}()[\]/\\]/g;function tk(t,n){const s=qn({},ZS,n),a=[];let r=s.start?"^":"";const e=[];for(const E of t){const T=E.length?[]:[90];s.strict&&!E.length&&(r+="/");for(let A=0;A<E.length;A++){const R=E[A];let L=40+(s.sensitive?.25:0);if(R.type===0)A||(r+="/"),r+=R.value.replace(ek,"\\$&"),L+=40;else if(R.type===1){const{value:B,repeatable:P,optional:V,regexp:z}=R;e.push({name:B,repeatable:P,optional:V});const q=z||vw;if(q!==vw){L+=10;try{new RegExp(`(${q})`)}catch(K){throw new Error(`Invalid custom RegExp for param "${B}" (${q}): `+K.message)}}let oe=P?`((?:${q})(?:/(?:${q}))*)`:`(${q})`;A||(oe=V&&E.length<2?`(?:/${oe})`:"/"+oe),V&&(oe+="?"),r+=oe,L+=20,V&&(L+=-8),P&&(L+=-20),q===".*"&&(L+=-50)}T.push(L)}a.push(T)}if(s.strict&&s.end){const E=a.length-1;a[E][a[E].length-1]+=.7000000000000001}s.strict||(r+="/?"),s.end?r+="$":s.strict&&(r+="(?:/|$)");const d=new RegExp(r,s.sensitive?"":"i");function _(E){const T=E.match(d),A={};if(!T)return null;for(let R=1;R<T.length;R++){const L=T[R]||"",B=e[R-1];A[B.name]=L&&B.repeatable?L.split("/"):L}return A}function y(E){let T="",A=!1;for(const R of t){(!A||!T.endsWith("/"))&&(T+="/"),A=!1;for(const L of R)if(L.type===0)T+=L.value;else if(L.type===1){const{value:B,repeatable:P,optional:V}=L,z=B in E?E[B]:"";if(Al(z)&&!P)throw new Error(`Provided param "${B}" is an array but it is not repeatable (* or + modifiers)`);const q=Al(z)?z.join("/"):z;if(!q)if(V)R.length<2&&(T.endsWith("/")?T=T.slice(0,-1):A=!0);else throw new Error(`Missing required param "${B}"`);T+=q}}return T||"/"}return{re:d,score:a,keys:e,parse:_,stringify:y}}function rk(t,n){let s=0;for(;s<t.length&&s<n.length;){const a=n[s]-t[s];if(a)return a;s++}return t.length<n.length?t.length===1&&t[0]===40+40?-1:1:t.length>n.length?n.length===1&&n[0]===40+40?1:-1:0}function nk(t,n){let s=0;const a=t.score,r=n.score;for(;s<a.length&&s<r.length;){const e=rk(a[s],r[s]);if(e)return e;s++}if(Math.abs(r.length-a.length)===1){if(bw(a))return 1;if(bw(r))return-1}return r.length-a.length}function bw(t){const n=t[t.length-1];return t.length>0&&n[n.length-1]<0}const ik={type:0,value:""},sk=/[a-zA-Z0-9_]/;function ak(t){if(!t)return[[]];if(t==="/")return[[ik]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function n(L){throw new Error(`ERR (${s})/"${E}": ${L}`)}let s=0,a=s;const r=[];let e;function d(){e&&r.push(e),e=[]}let _=0,y,E="",T="";function A(){E&&(s===0?e.push({type:0,value:E}):s===1||s===2||s===3?(e.length>1&&(y==="*"||y==="+")&&n(`A repeatable param (${E}) must be alone in its segment. eg: '/:ids+.`),e.push({type:1,value:E,regexp:T,repeatable:y==="*"||y==="+",optional:y==="*"||y==="?"})):n("Invalid state to consume buffer"),E="")}function R(){E+=y}for(;_<t.length;){if(y=t[_++],y==="\\"&&s!==2){a=s,s=4;continue}switch(s){case 0:y==="/"?(E&&A(),d()):y===":"?(A(),s=1):R();break;case 4:R(),s=a;break;case 1:y==="("?s=2:sk.test(y)?R():(A(),s=0,y!=="*"&&y!=="?"&&y!=="+"&&_--);break;case 2:y===")"?T[T.length-1]=="\\"?T=T.slice(0,-1)+y:s=3:T+=y;break;case 3:A(),s=0,y!=="*"&&y!=="?"&&y!=="+"&&_--,T="";break;default:n("Unknown state");break}}return s===2&&n(`Unfinished custom RegExp for param "${E}"`),A(),d(),r}function ok(t,n,s){const a=tk(ak(t.path),s),r=qn(a,{record:t,parent:n,children:[],alias:[]});return n&&!r.record.aliasOf==!n.record.aliasOf&&n.children.push(r),r}function lk(t,n){const s=[],a=new Map;n=ww({strict:!1,end:!0,sensitive:!1},n);function r(T){return a.get(T)}function e(T,A,R){const L=!R,B=ck(T);B.aliasOf=R&&R.record;const P=ww(n,T),V=[B];if("alias"in T){const oe=typeof T.alias=="string"?[T.alias]:T.alias;for(const K of oe)V.push(qn({},B,{components:R?R.record.components:B.components,path:K,aliasOf:R?R.record:B}))}let z,q;for(const oe of V){const{path:K}=oe;if(A&&K[0]!=="/"){const G=A.record.path,ne=G[G.length-1]==="/"?"":"/";oe.path=A.record.path+(K&&ne+K)}if(z=ok(oe,A,P),R?R.alias.push(z):(q=q||z,q!==z&&q.alias.push(z),L&&T.name&&!yw(z)&&d(T.name)),B.children){const G=B.children;for(let ne=0;ne<G.length;ne++)e(G[ne],z,R&&R.children[ne])}R=R||z,(z.record.components&&Object.keys(z.record.components).length||z.record.name||z.record.redirect)&&y(z)}return q?()=>{d(q)}:eg}function d(T){if(v6(T)){const A=a.get(T);A&&(a.delete(T),s.splice(s.indexOf(A),1),A.children.forEach(d),A.alias.forEach(d))}else{const A=s.indexOf(T);A>-1&&(s.splice(A,1),T.record.name&&a.delete(T.record.name),T.children.forEach(d),T.alias.forEach(d))}}function _(){return s}function y(T){let A=0;for(;A<s.length&&nk(T,s[A])>=0&&(T.record.path!==s[A].record.path||!_6(T,s[A]));)A++;s.splice(A,0,T),T.record.name&&!yw(T)&&a.set(T.record.name,T)}function E(T,A){let R,L={},B,P;if("name"in T&&T.name){if(R=a.get(T.name),!R)throw v1(1,{location:T});P=R.record.name,L=qn(_w(A.params,R.keys.filter(q=>!q.optional).map(q=>q.name)),T.params&&_w(T.params,R.keys.map(q=>q.name))),B=R.stringify(L)}else if("path"in T)B=T.path,R=s.find(q=>q.re.test(B)),R&&(L=R.parse(B),P=R.record.name);else{if(R=A.name?a.get(A.name):s.find(q=>q.re.test(A.path)),!R)throw v1(1,{location:T,currentLocation:A});P=R.record.name,L=qn({},A.params,T.params),B=R.stringify(L)}const V=[];let z=R;for(;z;)V.unshift(z.record),z=z.parent;return{name:P,path:B,params:L,matched:V,meta:fk(V)}}return t.forEach(T=>e(T)),{addRoute:e,resolve:E,removeRoute:d,getRoutes:_,getRecordMatcher:r}}function _w(t,n){const s={};for(const a of n)a in t&&(s[a]=t[a]);return s}function ck(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:uk(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function uk(t){const n={},s=t.props||!1;if("component"in t)n.default=s;else for(const a in t.components)n[a]=typeof s=="object"?s[a]:s;return n}function yw(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function fk(t){return t.reduce((n,s)=>qn(n,s.meta),{})}function ww(t,n){const s={};for(const a in t)s[a]=a in n?n[a]:t[a];return s}function _6(t,n){return n.children.some(s=>s===t||_6(t,s))}const y6=/#/g,hk=/&/g,dk=/\//g,pk=/=/g,gk=/\?/g,w6=/\+/g,mk=/%5B/g,vk=/%5D/g,D6=/%5E/g,bk=/%60/g,E6=/%7B/g,_k=/%7C/g,F6=/%7D/g,yk=/%20/g;function y4(t){return encodeURI(""+t).replace(_k,"|").replace(mk,"[").replace(vk,"]")}function wk(t){return y4(t).replace(E6,"{").replace(F6,"}").replace(D6,"^")}function hy(t){return y4(t).replace(w6,"%2B").replace(yk,"+").replace(y6,"%23").replace(hk,"%26").replace(bk,"`").replace(E6,"{").replace(F6,"}").replace(D6,"^")}function Dk(t){return hy(t).replace(pk,"%3D")}function Ek(t){return y4(t).replace(y6,"%23").replace(gk,"%3F")}function Fk(t){return t==null?"":Ek(t).replace(dk,"%2F")}function Q2(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function xk(t){const n={};if(t===""||t==="?")return n;const a=(t[0]==="?"?t.slice(1):t).split("&");for(let r=0;r<a.length;++r){const e=a[r].replace(w6," "),d=e.indexOf("="),_=Q2(d<0?e:e.slice(0,d)),y=d<0?null:Q2(e.slice(d+1));if(_ in n){let E=n[_];Al(E)||(E=n[_]=[E]),E.push(y)}else n[_]=y}return n}function Dw(t){let n="";for(let s in t){const a=t[s];if(s=Dk(s),a==null){a!==void 0&&(n+=(n.length?"&":"")+s);continue}(Al(a)?a.map(e=>e&&hy(e)):[a&&hy(a)]).forEach(e=>{e!==void 0&&(n+=(n.length?"&":"")+s,e!=null&&(n+="="+e))})}return n}function Tk(t){const n={};for(const s in t){const a=t[s];a!==void 0&&(n[s]=Al(a)?a.map(r=>r==null?null:""+r):a==null?a:""+a)}return n}const Ck=Symbol(""),Ew=Symbol(""),Wv=Symbol(""),w4=Symbol(""),dy=Symbol("");function Lp(){let t=[];function n(a){return t.push(a),()=>{const r=t.indexOf(a);r>-1&&t.splice(r,1)}}function s(){t=[]}return{add:n,list:()=>t.slice(),reset:s}}function Ef(t,n,s,a,r){const e=a&&(a.enterCallbacks[r]=a.enterCallbacks[r]||[]);return()=>new Promise((d,_)=>{const y=A=>{A===!1?_(v1(4,{from:s,to:n})):A instanceof Error?_(A):JS(A)?_(v1(2,{from:n,to:A})):(e&&a.enterCallbacks[r]===e&&typeof A=="function"&&e.push(A),d())},E=t.call(a&&a.instances[r],n,s,y);let T=Promise.resolve(E);t.length<3&&(T=T.then(y)),T.catch(A=>_(A))})}function F_(t,n,s,a){const r=[];for(const e of t)for(const d in e.components){let _=e.components[d];if(!(n!=="beforeRouteEnter"&&!e.instances[d]))if(Ak(_)){const E=(_.__vccOpts||_)[n];E&&r.push(Ef(E,s,a,e,d))}else{let y=_();r.push(()=>y.then(E=>{if(!E)return Promise.reject(new Error(`Couldn't resolve component "${d}" at "${e.path}"`));const T=NS(E)?E.default:E;e.components[d]=T;const R=(T.__vccOpts||T)[n];return R&&Ef(R,s,a,e,d)()}))}}return r}function Ak(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function Fw(t){const n=xa(Wv),s=xa(w4),a=cn(()=>n.resolve(mr(t.to))),r=cn(()=>{const{matched:y}=a.value,{length:E}=y,T=y[E-1],A=s.matched;if(!T||!A.length)return-1;const R=A.findIndex(g1.bind(null,T));if(R>-1)return R;const L=xw(y[E-2]);return E>1&&xw(T)===L&&A[A.length-1].path!==L?A.findIndex(g1.bind(null,y[E-2])):R}),e=cn(()=>r.value>-1&&Rk(s.params,a.value.params)),d=cn(()=>r.value>-1&&r.value===s.matched.length-1&&d6(s.params,a.value.params));function _(y={}){return Ok(y)?n[mr(t.replace)?"replace":"push"](mr(t.to)).catch(eg):Promise.resolve()}return{route:a,href:cn(()=>a.value.href),isActive:e,isExactActive:d,navigate:_}}const Sk=vs({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Fw,setup(t,{slots:n}){const s=Hf(Fw(t)),{options:a}=xa(Wv),r=cn(()=>({[Tw(t.activeClass,a.linkActiveClass,"router-link-active")]:s.isActive,[Tw(t.exactActiveClass,a.linkExactActiveClass,"router-link-exact-active")]:s.isExactActive}));return()=>{const e=n.default&&n.default(s);return t.custom?e:Ph("a",{"aria-current":s.isExactActive?t.ariaCurrentValue:null,href:s.href,onClick:s.navigate,class:r.value},e)}}}),kk=Sk;function Ok(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const n=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(n))return}return t.preventDefault&&t.preventDefault(),!0}}function Rk(t,n){for(const s in n){const a=n[s],r=t[s];if(typeof a=="string"){if(a!==r)return!1}else if(!Al(r)||r.length!==a.length||a.some((e,d)=>e!==r[d]))return!1}return!0}function xw(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const Tw=(t,n,s)=>t??n??s,Ik=vs({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:n,slots:s}){const a=xa(dy),r=cn(()=>t.route||a.value),e=xa(Ew,0),d=cn(()=>{let E=mr(e);const{matched:T}=r.value;let A;for(;(A=T[E])&&!A.components;)E++;return E}),_=cn(()=>r.value.matched[d.value]);Kp(Ew,cn(()=>d.value+1)),Kp(Ck,_),Kp(dy,r);const y=ur();return Zn(()=>[y.value,_.value,t.name],([E,T,A],[R,L,B])=>{T&&(T.instances[A]=E,L&&L!==T&&E&&E===R&&(T.leaveGuards.size||(T.leaveGuards=L.leaveGuards),T.updateGuards.size||(T.updateGuards=L.updateGuards))),E&&T&&(!L||!g1(T,L)||!R)&&(T.enterCallbacks[A]||[]).forEach(P=>P(E))},{flush:"post"}),()=>{const E=r.value,T=t.name,A=_.value,R=A&&A.components[T];if(!R)return Cw(s.default,{Component:R,route:E});const L=A.props[T],B=L?L===!0?E.params:typeof L=="function"?L(E):L:null,V=Ph(R,qn({},B,n,{onVnodeUnmounted:z=>{z.component.isUnmounted&&(A.instances[T]=null)},ref:y}));return Cw(s.default,{Component:V,route:E})||V}}});function Cw(t,n){if(!t)return null;const s=t(n);return s.length===1?s[0]:s}const Pk=Ik;function Nk(t){const n=lk(t.routes,t),s=t.parseQuery||xk,a=t.stringifyQuery||Dw,r=t.history,e=Lp(),d=Lp(),_=Lp(),y=qd(gf);let E=gf;Hd&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const T=w_.bind(null,ie=>""+ie),A=w_.bind(null,Fk),R=w_.bind(null,Q2);function L(ie,He){let pe,it;return v6(ie)?(pe=n.getRecordMatcher(ie),it=He):it=ie,n.addRoute(it,pe)}function B(ie){const He=n.getRecordMatcher(ie);He&&n.removeRoute(He)}function P(){return n.getRoutes().map(ie=>ie.record)}function V(ie){return!!n.getRecordMatcher(ie)}function z(ie,He){if(He=qn({},He||y.value),typeof ie=="string"){const he=D_(s,ie,He.path),Ue=n.resolve({path:he.path},He),Le=r.createHref(he.fullPath);return qn(he,Ue,{params:R(Ue.params),hash:Q2(he.hash),redirectedFrom:void 0,href:Le})}let pe;if("path"in ie)pe=qn({},ie,{path:D_(s,ie.path,He.path).path});else{const he=qn({},ie.params);for(const Ue in he)he[Ue]==null&&delete he[Ue];pe=qn({},ie,{params:A(he)}),He.params=A(He.params)}const it=n.resolve(pe,He),Ot=ie.hash||"";it.params=T(R(it.params));const re=BS(a,qn({},ie,{hash:wk(Ot),path:it.path})),le=r.createHref(re);return qn({fullPath:re,hash:Ot,query:a===Dw?Tk(ie.query):ie.query||{}},it,{redirectedFrom:void 0,href:le})}function q(ie){return typeof ie=="string"?D_(s,ie,y.value.path):qn({},ie)}function oe(ie,He){if(E!==ie)return v1(8,{from:He,to:ie})}function K(ie){return ce(ie)}function G(ie){return K(qn(q(ie),{replace:!0}))}function ne(ie){const He=ie.matched[ie.matched.length-1];if(He&&He.redirect){const{redirect:pe}=He;let it=typeof pe=="function"?pe(ie):pe;return typeof it=="string"&&(it=it.includes("?")||it.includes("#")?it=q(it):{path:it},it.params={}),qn({query:ie.query,hash:ie.hash,params:"path"in it?{}:ie.params},it)}}function ce(ie,He){const pe=E=z(ie),it=y.value,Ot=ie.state,re=ie.force,le=ie.replace===!0,he=ne(pe);if(he)return ce(qn(q(he),{state:typeof he=="object"?qn({},Ot,he.state):Ot,force:re,replace:le}),He||pe);const Ue=pe;Ue.redirectedFrom=He;let Le;return!re&&US(a,it,pe)&&(Le=v1(16,{to:Ue,from:it}),de(it,it,!0,!1)),(Le?Promise.resolve(Le):te(Ue,it)).catch(et=>Qc(et)?Qc(et,2)?et:Je(et):lt(et,Ue,it)).then(et=>{if(et){if(Qc(et,2))return ce(qn({replace:le},q(et.to),{state:typeof et.to=="object"?qn({},Ot,et.to.state):Ot,force:re}),He||Ue)}else et=xe(Ue,it,!0,le,Ot);return fe(Ue,it,et),et})}function U(ie,He){const pe=oe(ie,He);return pe?Promise.reject(pe):Promise.resolve()}function W(ie){const He=We.values().next().value;return He&&typeof He.runWithContext=="function"?He.runWithContext(ie):ie()}function te(ie,He){let pe;const[it,Ot,re]=Mk(ie,He);pe=F_(it.reverse(),"beforeRouteLeave",ie,He);for(const he of it)he.leaveGuards.forEach(Ue=>{pe.push(Ef(Ue,ie,He))});const le=U.bind(null,ie,He);return pe.push(le),Be(pe).then(()=>{pe=[];for(const he of e.list())pe.push(Ef(he,ie,He));return pe.push(le),Be(pe)}).then(()=>{pe=F_(Ot,"beforeRouteUpdate",ie,He);for(const he of Ot)he.updateGuards.forEach(Ue=>{pe.push(Ef(Ue,ie,He))});return pe.push(le),Be(pe)}).then(()=>{pe=[];for(const he of re)if(he.beforeEnter)if(Al(he.beforeEnter))for(const Ue of he.beforeEnter)pe.push(Ef(Ue,ie,He));else pe.push(Ef(he.beforeEnter,ie,He));return pe.push(le),Be(pe)}).then(()=>(ie.matched.forEach(he=>he.enterCallbacks={}),pe=F_(re,"beforeRouteEnter",ie,He),pe.push(le),Be(pe))).then(()=>{pe=[];for(const he of d.list())pe.push(Ef(he,ie,He));return pe.push(le),Be(pe)}).catch(he=>Qc(he,8)?he:Promise.reject(he))}function fe(ie,He,pe){_.list().forEach(it=>W(()=>it(ie,He,pe)))}function xe(ie,He,pe,it,Ot){const re=oe(ie,He);if(re)return re;const le=He===gf,he=Hd?history.state:{};pe&&(it||le?r.replace(ie.fullPath,qn({scroll:le&&he&&he.scroll},Ot)):r.push(ie.fullPath,Ot)),y.value=ie,de(ie,He,pe,le),Je()}let _e;function be(){_e||(_e=r.listen((ie,He,pe)=>{if(!Fe.listening)return;const it=z(ie),Ot=ne(it);if(Ot){ce(qn(Ot,{replace:!0}),it).catch(eg);return}E=it;const re=y.value;Hd&&GS(pw(re.fullPath,pe.delta),Hv()),te(it,re).catch(le=>Qc(le,12)?le:Qc(le,2)?(ce(le.to,it).then(he=>{Qc(he,20)&&!pe.delta&&pe.type===m1.pop&&r.go(-1,!1)}).catch(eg),Promise.reject()):(pe.delta&&r.go(-pe.delta,!1),lt(le,it,re))).then(le=>{le=le||xe(it,re,!1),le&&(pe.delta&&!Qc(le,8)?r.go(-pe.delta,!1):pe.type===m1.pop&&Qc(le,20)&&r.go(-1,!1)),fe(it,re,le)}).catch(eg)}))}let $e=Lp(),je=Lp(),Ee;function lt(ie,He,pe){Je(ie);const it=je.list();return it.length?it.forEach(Ot=>Ot(ie,He,pe)):console.error(ie),Promise.reject(ie)}function Xe(){return Ee&&y.value!==gf?Promise.resolve():new Promise((ie,He)=>{$e.add([ie,He])})}function Je(ie){return Ee||(Ee=!ie,be(),$e.list().forEach(([He,pe])=>ie?pe(ie):He()),$e.reset()),ie}function de(ie,He,pe,it){const{scrollBehavior:Ot}=t;if(!Hd||!Ot)return Promise.resolve();const re=!pe&&VS(pw(ie.fullPath,0))||(it||!pe)&&history.state&&history.state.scroll||null;return uc().then(()=>Ot(ie,He,re)).then(le=>le&&jS(le)).catch(le=>lt(le,ie,He))}const Se=ie=>r.go(ie);let rt;const We=new Set,Fe={currentRoute:y,listening:!0,addRoute:L,removeRoute:B,hasRoute:V,getRoutes:P,resolve:z,options:t,push:K,replace:G,go:Se,back:()=>Se(-1),forward:()=>Se(1),beforeEach:e.add,beforeResolve:d.add,afterEach:_.add,onError:je.add,isReady:Xe,install(ie){const He=this;ie.component("RouterLink",kk),ie.component("RouterView",Pk),ie.config.globalProperties.$router=He,Object.defineProperty(ie.config.globalProperties,"$route",{enumerable:!0,get:()=>mr(y)}),Hd&&!rt&&y.value===gf&&(rt=!0,K(r.location).catch(Ot=>{}));const pe={};for(const Ot in gf)Object.defineProperty(pe,Ot,{get:()=>y.value[Ot],enumerable:!0});ie.provide(Wv,He),ie.provide(w4,jy(pe)),ie.provide(dy,y);const it=ie.unmount;We.add(ie),ie.unmount=function(){We.delete(ie),We.size<1&&(E=gf,_e&&_e(),_e=null,y.value=gf,rt=!1,Ee=!1),it()}}};function Be(ie){return ie.reduce((He,pe)=>He.then(()=>W(pe)),Promise.resolve())}return Fe}function Mk(t,n){const s=[],a=[],r=[],e=Math.max(n.matched.length,t.matched.length);for(let d=0;d<e;d++){const _=n.matched[d];_&&(t.matched.find(E=>g1(E,_))?a.push(_):s.push(_));const y=t.matched[d];y&&(n.matched.find(E=>g1(E,y))||r.push(y))}return[s,a,r]}function Lk(){return xa(Wv)}function x6(){return xa(w4)}function py(t,n={},s){for(const a in t){const r=t[a],e=s?`${s}:${a}`:a;typeof r=="object"&&r!==null?py(r,n,e):typeof r=="function"&&(n[e]=r)}return n}const Bk={run:t=>t()},Uk=()=>Bk,T6=typeof console.createTask<"u"?console.createTask:Uk;function $k(t,n){const s=n.shift(),a=T6(s);return t.reduce((r,e)=>r.then(()=>a.run(()=>e(...n))),Promise.resolve())}function Hk(t,n){const s=n.shift(),a=T6(s);return Promise.all(t.map(r=>a.run(()=>r(...n))))}function x_(t,n){for(const s of[...t])s(n)}class Wk{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(n,s,a={}){if(!n||typeof s!="function")return()=>{};const r=n;let e;for(;this._deprecatedHooks[n];)e=this._deprecatedHooks[n],n=e.to;if(e&&!a.allowDeprecated){let d=e.message;d||(d=`${r} hook has been deprecated`+(e.to?`, please use ${e.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(d)||(console.warn(d),this._deprecatedMessages.add(d))}if(!s.name)try{Object.defineProperty(s,"name",{get:()=>"_"+n.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[n]=this._hooks[n]||[],this._hooks[n].push(s),()=>{s&&(this.removeHook(n,s),s=void 0)}}hookOnce(n,s){let a,r=(...e)=>(typeof a=="function"&&a(),a=void 0,r=void 0,s(...e));return a=this.hook(n,r),a}removeHook(n,s){if(this._hooks[n]){const a=this._hooks[n].indexOf(s);a!==-1&&this._hooks[n].splice(a,1),this._hooks[n].length===0&&delete this._hooks[n]}}deprecateHook(n,s){this._deprecatedHooks[n]=typeof s=="string"?{to:s}:s;const a=this._hooks[n]||[];delete this._hooks[n];for(const r of a)this.hook(n,r)}deprecateHooks(n){Object.assign(this._deprecatedHooks,n);for(const s in n)this.deprecateHook(s,n[s])}addHooks(n){const s=py(n),a=Object.keys(s).map(r=>this.hook(r,s[r]));return()=>{for(const r of a.splice(0,a.length))r()}}removeHooks(n){const s=py(n);for(const a in s)this.removeHook(a,s[a])}removeAllHooks(){for(const n in this._hooks)delete this._hooks[n]}callHook(n,...s){return s.unshift(n),this.callHookWith($k,n,...s)}callHookParallel(n,...s){return s.unshift(n),this.callHookWith(Hk,n,...s)}callHookWith(n,s,...a){const r=this._before||this._after?{name:s,args:a,context:{}}:void 0;this._before&&x_(this._before,r);const e=n(s in this._hooks?[...this._hooks[s]]:[],a);return e instanceof Promise?e.finally(()=>{this._after&&r&&x_(this._after,r)}):(this._after&&r&&x_(this._after,r),e)}beforeEach(n){return this._before=this._before||[],this._before.push(n),()=>{if(this._before!==void 0){const s=this._before.indexOf(n);s!==-1&&this._before.splice(s,1)}}}afterEach(n){return this._after=this._after||[],this._after.push(n),()=>{if(this._after!==void 0){const s=this._after.indexOf(n);s!==-1&&this._after.splice(s,1)}}}}function zk(){return new Wk}function jk(t){return Array.isArray(t)?t:[t]}const Gk=["title","titleTemplate","script","style","noscript"],I2=["base","meta","link","style","script","noscript"],Vk=["title","titleTemplate","templateParams","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"],Yk=["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"],C6=["tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"],Kk=typeof window<"u";function A6(t){let n=9;for(let s=0;s<t.length;)n=Math.imul(n^t.charCodeAt(s++),9**9);return((n^n>>>9)+65536).toString(16).substring(1,8).toLowerCase()}function Aw(t){return t._h||A6(t._d?t._d:`${t.tag}:${t.textContent||t.innerHTML||""}:${Object.entries(t.props).map(([n,s])=>`${n}:${String(s)}`).join(",")}`)}function S6(t,n){const{props:s,tag:a}=t;if(Yk.includes(a))return a;if(a==="link"&&s.rel==="canonical")return"canonical";if(s.charset)return"charset";const r=["id"];a==="meta"&&r.push("name","property","http-equiv");for(const e of r)if(typeof s[e]<"u"){const d=String(s[e]);return n&&!n(d)?!1:`${a}:${e}:${d}`}return!1}function Sw(t,n){return t==null?n||null:typeof t=="function"?t(n):t}async function qk(t,n,s){const a={tag:t,props:await k6(typeof n=="object"&&typeof n!="function"&&!(n instanceof Promise)?{...n}:{[["script","noscript","style"].includes(t)?"innerHTML":"textContent"]:n},["templateParams","titleTemplate"].includes(t))};return C6.forEach(r=>{const e=typeof a.props[r]<"u"?a.props[r]:s[r];typeof e<"u"&&((!["innerHTML","textContent"].includes(r)||Gk.includes(a.tag))&&(a[r]=e),delete a.props[r])}),a.props.body&&(a.tagPosition="bodyClose",delete a.props.body),a.props.children&&(a.innerHTML=a.props.children,delete a.props.children),a.tag==="script"&&(typeof a.innerHTML=="object"&&(a.innerHTML=JSON.stringify(a.innerHTML),a.props.type=a.props.type||"application/json"),a.innerHTML&&["application/ld+json","application/json"].includes(a.props.type)&&(a.innerHTML=a.innerHTML.replace(/</g,"\\u003C"))),Array.isArray(a.props.content)?a.props.content.map(r=>({...a,props:{...a.props,content:r}})):a}function Qk(t){return typeof t=="object"&&!Array.isArray(t)&&(t=Object.keys(t).filter(n=>t[n])),(Array.isArray(t)?t.join(" "):t).split(" ").filter(n=>n.trim()).filter(Boolean).join(" ")}async function k6(t,n){for(const s of Object.keys(t)){if(s==="class"){t[s]=Qk(t[s]);continue}if(t[s]instanceof Promise&&(t[s]=await t[s]),!n&&!C6.includes(s)){const a=String(t[s]),r=s.startsWith("data-");a==="true"||a===""?t[s]=r?"true":!0:t[s]||(r&&a==="false"?t[s]="false":delete t[s])}}return t}const Xk=10;async function Jk(t){const n=[];return Object.entries(t.resolvedInput).filter(([s,a])=>typeof a<"u"&&Vk.includes(s)).forEach(([s,a])=>{const r=jk(a);n.push(...r.map(e=>qk(s,e,t)).flat())}),(await Promise.all(n)).flat().filter(Boolean).map((s,a)=>(s._e=t._i,t.mode&&(s._m=t.mode),s._p=(t._i<<Xk)+a,s))}const kw={base:-10,title:10},Ow={critical:-80,high:-10,low:20};function X2(t){let n=100;const s=t.tagPriority;return typeof s=="number"?s:(t.tag==="meta"?(t.props["http-equiv"]==="content-security-policy"&&(n=-30),t.props.charset&&(n=-20),t.props.name==="viewport"&&(n=-15)):t.tag==="link"&&t.props.rel==="preconnect"?n=20:t.tag in kw&&(n=kw[t.tag]),typeof s=="string"&&s in Ow?n+Ow[s]:n)}const Zk=[{prefix:"before:",offset:-1},{prefix:"after:",offset:1}],mf="%separator";function lh(t,n,s){if(typeof t!="string"||!t.includes("%"))return t;function a(d){let _;return["s","pageTitle"].includes(d)?_=n.pageTitle:d.includes(".")?_=d.split(".").reduce((y,E)=>y&&y[E]||void 0,n):_=n[d],typeof _<"u"?(_||"").replace(/"/g,'\\"'):!1}let r=t;try{r=decodeURI(t)}catch{}return(r.match(/%(\w+\.+\w+)|%(\w+)/g)||[]).sort().reverse().forEach(d=>{const _=a(d.slice(1));typeof _=="string"&&(t=t.replace(new RegExp(`\\${d}(\\W|$)`,"g"),(y,E)=>`${_}${E}`).trim())}),t.includes(mf)&&(t.endsWith(mf)&&(t=t.slice(0,-mf.length).trim()),t.startsWith(mf)&&(t=t.slice(mf.length).trim()),t=t.replace(new RegExp(`\\${mf}\\s*\\${mf}`,"g"),mf),t=lh(t,{separator:s},s)),t}async function e7(t){const n={tag:t.tagName.toLowerCase(),props:await k6(t.getAttributeNames().reduce((s,a)=>({...s,[a]:t.getAttribute(a)}),{})),innerHTML:t.innerHTML};return n._d=S6(n),n}async function t7(t,n={}){var T;const s=n.document||t.resolvedOptions.document;if(!s)return;const a={shouldRender:t.dirty,tags:[]};if(await t.hooks.callHook("dom:beforeRender",a),!a.shouldRender)return;const r=(await t.resolveTags()).map(A=>({tag:A,id:I2.includes(A.tag)?Aw(A):A.tag,shouldRender:!0}));let e=t._dom;if(!e){e={elMap:{htmlAttrs:s.documentElement,bodyAttrs:s.body}};for(const A of["body","head"]){const R=(T=s==null?void 0:s[A])==null?void 0:T.children;for(const L of[...R].filter(B=>I2.includes(B.tagName.toLowerCase())))e.elMap[L.getAttribute("data-hid")||Aw(await e7(L))]=L}}e.pendingSideEffects={...e.sideEffects||{}},e.sideEffects={};function d(A,R,L){const B=`${A}:${R}`;e.sideEffects[B]=L,delete e.pendingSideEffects[B]}function _({id:A,$el:R,tag:L}){const B=L.tag.endsWith("Attrs");e.elMap[A]=R,B||(["textContent","innerHTML"].forEach(P=>{L[P]&&L[P]!==R[P]&&(R[P]=L[P])}),d(A,"el",()=>{e.elMap[A].remove(),delete e.elMap[A]})),Object.entries(L.props).forEach(([P,V])=>{const z=`attr:${P}`;if(P==="class")for(const q of(V||"").split(" ").filter(Boolean))B&&d(A,`${z}:${q}`,()=>R.classList.remove(q)),!R.classList.contains(q)&&R.classList.add(q);else R.getAttribute(P)!==V&&R.setAttribute(P,V===!0?"":String(V)),B&&d(A,z,()=>R.removeAttribute(P))})}const y=[],E={bodyClose:void 0,bodyOpen:void 0,head:void 0};for(const A of r){const{tag:R,shouldRender:L,id:B}=A;if(L){if(R.tag==="title"){s.title=R.textContent;continue}A.$el=A.$el||e.elMap[B],A.$el?_(A):I2.includes(R.tag)&&y.push(A)}}for(const A of y){const R=A.tag.tagPosition||"head";A.$el=s.createElement(A.tag.tag),_(A),E[R]=E[R]||s.createDocumentFragment(),E[R].appendChild(A.$el)}for(const A of r)await t.hooks.callHook("dom:renderTag",A,s,d);E.head&&s.head.appendChild(E.head),E.bodyOpen&&s.body.insertBefore(E.bodyOpen,s.body.firstChild),E.bodyClose&&s.body.appendChild(E.bodyClose),Object.values(e.pendingSideEffects).forEach(A=>A()),t._dom=e,t.dirty=!1,await t.hooks.callHook("dom:rendered",{renders:r})}async function r7(t,n={}){const s=n.delayFn||(a=>setTimeout(a,10));return t._domUpdatePromise=t._domUpdatePromise||new Promise(a=>s(async()=>{await t7(t,n),delete t._domUpdatePromise,a()}))}function n7(t){return n=>{var a,r;const s=((r=(a=n.resolvedOptions.document)==null?void 0:a.head.querySelector('script[id="unhead:payload"]'))==null?void 0:r.innerHTML)||!1;return s&&n.push(JSON.parse(s)),{mode:"client",hooks:{"entries:updated":function(e){r7(e,t)}}}}}const i7=["templateParams","htmlAttrs","bodyAttrs"],s7={hooks:{"tag:normalise":function({tag:t}){["hid","vmid","key"].forEach(a=>{t.props[a]&&(t.key=t.props[a],delete t.props[a])});const s=S6(t)||(t.key?`${t.tag}:${t.key}`:!1);s&&(t._d=s)},"tags:resolve":function(t){const n={};t.tags.forEach(a=>{const r=(a.key?`${a.tag}:${a.key}`:a._d)||a._p,e=n[r];if(e){let _=a==null?void 0:a.tagDuplicateStrategy;if(!_&&i7.includes(a.tag)&&(_="merge"),_==="merge"){const y=e.props;["class","style"].forEach(E=>{a.props[E]&&y[E]&&(E==="style"&&!y[E].endsWith(";")&&(y[E]+=";"),a.props[E]=`${y[E]} ${a.props[E]}`)}),n[r].props={...y,...a.props};return}else if(a._e===e._e){e._duped=e._duped||[],a._d=`${e._d}:${e._duped.length+1}`,e._duped.push(a);return}else if(X2(a)>X2(e))return}const d=Object.keys(a.props).length+(a.innerHTML?1:0)+(a.textContent?1:0);if(I2.includes(a.tag)&&d===0){delete n[r];return}n[r]=a});const s=[];Object.values(n).forEach(a=>{const r=a._duped;delete a._duped,s.push(a),r&&s.push(...r)}),t.tags=s,t.tags=t.tags.filter(a=>!(a.tag==="meta"&&(a.props.name||a.props.property)&&!a.props.content))}}},a7={mode:"server",hooks:{"tags:resolve":function(t){const n={};t.tags.filter(s=>["titleTemplate","templateParams","title"].includes(s.tag)&&s._m==="server").forEach(s=>{n[s.tag]=s.tag.startsWith("title")?s.textContent:s.props}),Object.keys(n).length&&t.tags.push({tag:"script",innerHTML:JSON.stringify(n),props:{id:"unhead:payload",type:"application/json"}})}}},Rw=["script","link","bodyAttrs"];function Iw(t){const n={},s={};return Object.entries(t.props).forEach(([a,r])=>{a.startsWith("on")&&typeof r=="function"?s[a]=r:n[a]=r}),{props:n,eventHandlers:s}}const o7={hooks:{"ssr:render":function(t){t.tags=t.tags.map(n=>(!Rw.includes(n.tag)||!Object.entries(n.props).find(([s,a])=>s.startsWith("on")&&typeof a=="function")||(n.props=Iw(n).props),n))},"tags:resolve":function(t){t.tags=t.tags.map(n=>{if(!Rw.includes(n.tag))return n;const{props:s,eventHandlers:a}=Iw(n);return Object.keys(a).length&&(n.props=s,n._eventHandlers=a),n})},"dom:renderTag":function(t,n,s){if(!t.tag._eventHandlers)return;const a=t.tag.tag==="bodyAttrs"?n.defaultView:t.$el;Object.entries(t.tag._eventHandlers).forEach(([r,e])=>{const d=`${t.tag._d||t.tag._p}:${r}`,_=r.slice(2).toLowerCase(),y=`data-h-${_}`;if(s(t.id,d,()=>{}),t.$el.hasAttribute(y))return;const E=e;t.$el.setAttribute(y,""),a.addEventListener(_,E),t.entry&&s(t.id,d,()=>{a.removeEventListener(_,E),t.$el.removeAttribute(y)})})}}},l7=["link","style","script","noscript"],c7={hooks:{"tag:normalise":({tag:t})=>{t.key&&l7.includes(t.tag)&&(t.props["data-hid"]=t._h=A6(t.key))}}},u7={hooks:{"tags:resolve":t=>{const n=s=>{var a;return(a=t.tags.find(r=>r._d===s))==null?void 0:a._p};for(const{prefix:s,offset:a}of Zk)for(const r of t.tags.filter(e=>typeof e.tagPriority=="string"&&e.tagPriority.startsWith(s))){const e=n(r.tagPriority.replace(s,""));typeof e<"u"&&(r._p=e+a)}t.tags.sort((s,a)=>s._p-a._p).sort((s,a)=>X2(s)-X2(a))}}},f7={hooks:{"tags:resolve":t=>{var d;const{tags:n}=t,s=(d=n.find(_=>_.tag==="title"))==null?void 0:d.textContent,a=n.findIndex(_=>_.tag==="templateParams"),r=a!==-1?n[a].props:{},e=r.separator||"|";delete r.separator,r.pageTitle=lh(r.pageTitle||s||"",r,e);for(const _ of n)_.processTemplateParams!==!1&&(["titleTemplate","title"].includes(_.tag)&&typeof _.textContent=="string"?_.textContent=lh(_.textContent,r,e):_.tag==="meta"&&typeof _.props.content=="string"?_.props.content=lh(_.props.content,r,e):_.tag==="link"&&typeof _.props.href=="string"?_.props.href=lh(_.props.href,r,e):_.processTemplateParams===!0&&(_.innerHTML?_.innerHTML=lh(_.innerHTML,r,e):_.textContent&&(_.textContent=lh(_.textContent,r,e))));t.tags=n.filter(_=>_.tag!=="templateParams")}}},h7={hooks:{"tags:resolve":t=>{const{tags:n}=t;let s=n.findIndex(r=>r.tag==="titleTemplate");const a=n.findIndex(r=>r.tag==="title");if(a!==-1&&s!==-1){const r=Sw(n[s].textContent,n[a].textContent);r!==null?n[a].textContent=r||n[a].textContent:delete n[a]}else if(s!==-1){const r=Sw(n[s].textContent);r!==null&&(n[s].textContent=r,n[s].tag="title",s=-1)}s!==-1&&delete n[s],t.tags=n.filter(Boolean)}}};function d7(t={}){const n=p7(t);return n.use(n7()),n}function Pw(t,n){return!t||t==="server"&&n||t==="client"&&!n}function p7(t={}){const n=zk();n.addHooks(t.hooks||{}),t.document=t.document||(Kk?document:void 0);const s=!t.document;t.plugins=[s7,a7,o7,c7,u7,f7,h7,...(t==null?void 0:t.plugins)||[]];const a=()=>{d.dirty=!0,n.callHook("entries:updated",d)};let r=0,e=[];const d={dirty:!1,resolvedOptions:t,hooks:n,headEntries(){return e},use(_){const y=typeof _=="function"?_(d):_;Pw(y.mode,s)&&n.addHooks(y.hooks||{})},push(_,y){y==null||delete y.head;const E={_i:r++,input:_,...y};return Pw(E.mode,s)&&(e.push(E),a()),{dispose(){e=e.filter(T=>T._i!==E._i),n.callHook("entries:updated",d),a()},patch(T){e=e.map(A=>(A._i===E._i&&(A.input=E.input=T),A)),a()}}},async resolveTags(){const _={tags:[],entries:[...e]};await n.callHook("entries:resolve",_);for(const y of _.entries){const E=y.resolvedInput||y.input;if(y.resolvedInput=await(y.transform?y.transform(E):E),y.resolvedInput)for(const T of await Jk(y)){const A={tag:T,entry:y,resolvedOptions:d.resolvedOptions};await n.callHook("tag:normalise",A),_.tags.push(A.tag)}}return await n.callHook("tags:beforeResolve",_),await n.callHook("tags:resolve",_),_.tags},ssr:s};return t.plugins.forEach(_=>d.use(_)),d.hooks.callHook("init",d),d}const g7=d4.startsWith("3");function m7(t){return typeof t=="function"?t():mr(t)}function gy(t,n=""){if(t instanceof Promise)return t;const s=m7(t);return!t||!s?s:Array.isArray(s)?s.map(a=>gy(a,n)):typeof s=="object"?Object.fromEntries(Object.entries(s).map(([a,r])=>a==="titleTemplate"||a.startsWith("on")?[a,mr(r)]:[a,gy(r,a)])):s}const v7={hooks:{"entries:resolve":function(t){for(const n of t.entries)n.resolvedInput=gy(n.input)}}},b7="usehead";function _7(t){return{install(s){g7&&(s.config.globalProperties.$unhead=t,s.config.globalProperties.$head=t,s.provide(b7,t))}}.install}function y7(t={}){t.domDelayFn=t.domDelayFn||(s=>uc(()=>setTimeout(()=>s(),0)));const n=d7(t);return n.use(v7),n.install=_7(n),n}function w7(t){try{return JSON.parse(t||"{}")}catch(n){return console.error("[SSG] On state deserialization -",n,t),{}}}function D7(t){return document.readyState==="loading"?new Promise(n=>{document.addEventListener("DOMContentLoaded",()=>n(t))}):Promise.resolve(t)}const E7=vs({setup(t,{slots:n}){const s=ur(!1);return Sl(()=>s.value=!0),()=>s.value?n.default&&n.default({}):n.placeholder&&n.placeholder({})}});function F7(t,n,s,a={}){const{transformState:r,registerComponents:e=!0,useHead:d=!0,rootContainer:_="#app"}=a,y=typeof window<"u";async function E(T=!1,A){const R=T?v4(t):QF(t);let L;d&&(L=y7(),R.use(L));const B=Nk({history:T?QS(n.base):XS(n.base),...n}),{routes:P}=n;e&&R.component("ClientOnly",E7);const V=[],oe={app:R,head:L,isClient:y,router:B,routes:P,onSSRAppRendered:T?()=>{}:ce=>V.push(ce),triggerOnSSRAppRendered:()=>Promise.all(V.map(ce=>ce())),initialState:{},transformState:r,routePath:A};T&&(await D7(),oe.initialState=(r==null?void 0:r(window.__INITIAL_STATE__||{}))||w7(window.__INITIAL_STATE__)),await(s==null?void 0:s(oe)),R.use(B);let K,G=!0;if(B.beforeEach((ce,U,W)=>{(G||K&&K===ce.path)&&(G=!1,K=ce.path,ce.meta.state=oe.initialState),W()}),!T){const ce=oe.routePath??"/";B.push(ce),await B.isReady(),oe.initialState=B.currentRoute.value.meta.state||{}}const ne=oe.initialState;return{...oe,initialState:ne}}return y&&(async()=>{const{app:T,router:A}=await E(!0);await A.isReady(),T.mount(_,!0)})(),E}var x7=function(){function t(n,s){s===void 0&&(s=[]),this._eventType=n,this._eventFunctions=s}return t.prototype.init=function(){var n=this;this._eventFunctions.forEach(function(s){typeof window<"u"&&window.addEventListener(n._eventType,s)})},t}(),J2=globalThis&&globalThis.__assign||function(){return J2=Object.assign||function(t){for(var n,s=1,a=arguments.length;s<a;s++){n=arguments[s];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},J2.apply(this,arguments)},Z2={alwaysOpen:!1,activeClasses:"bg-gray-100 dark:bg-gray-800 text-gray-900 dark:text-white",inactiveClasses:"text-gray-500 dark:text-gray-400",onOpen:function(){},onClose:function(){},onToggle:function(){}},O6=function(){function t(n,s){n===void 0&&(n=[]),s===void 0&&(s=Z2),this._items=n,this._options=J2(J2({},Z2),s),this._init()}return t.prototype._init=function(){var n=this;this._items.length&&this._items.map(function(s){s.active&&n.open(s.id),s.triggerEl.addEventListener("click",function(){n.toggle(s.id)})})},t.prototype.getItem=function(n){return this._items.filter(function(s){return s.id===n})[0]},t.prototype.open=function(n){var s,a,r=this,e=this.getItem(n);this._options.alwaysOpen||this._items.map(function(d){var _,y;d!==e&&((_=d.triggerEl.classList).remove.apply(_,r._options.activeClasses.split(" ")),(y=d.triggerEl.classList).add.apply(y,r._options.inactiveClasses.split(" ")),d.targetEl.classList.add("hidden"),d.triggerEl.setAttribute("aria-expanded","false"),d.active=!1,d.iconEl&&d.iconEl.classList.remove("rotate-180"))}),(s=e.triggerEl.classList).add.apply(s,this._options.activeClasses.split(" ")),(a=e.triggerEl.classList).remove.apply(a,this._options.inactiveClasses.split(" ")),e.triggerEl.setAttribute("aria-expanded","true"),e.targetEl.classList.remove("hidden"),e.active=!0,e.iconEl&&e.iconEl.classList.add("rotate-180"),this._options.onOpen(this,e)},t.prototype.toggle=function(n){var s=this.getItem(n);s.active?this.close(n):this.open(n),this._options.onToggle(this,s)},t.prototype.close=function(n){var s,a,r=this.getItem(n);(s=r.triggerEl.classList).remove.apply(s,this._options.activeClasses.split(" ")),(a=r.triggerEl.classList).add.apply(a,this._options.inactiveClasses.split(" ")),r.targetEl.classList.add("hidden"),r.triggerEl.setAttribute("aria-expanded","false"),r.active=!1,r.iconEl&&r.iconEl.classList.remove("rotate-180"),this._options.onClose(this,r)},t}();function D4(){document.querySelectorAll("[data-accordion]").forEach(function(t){var n=t.getAttribute("data-accordion"),s=t.getAttribute("data-active-classes"),a=t.getAttribute("data-inactive-classes"),r=[];t.querySelectorAll("[data-accordion-target]").forEach(function(e){if(e.closest("[data-accordion]")===t){var d={id:e.getAttribute("data-accordion-target"),triggerEl:e,targetEl:document.querySelector(e.getAttribute("data-accordion-target")),iconEl:e.querySelector("[data-accordion-icon]"),active:e.getAttribute("aria-expanded")==="true"};r.push(d)}}),new O6(r,{alwaysOpen:n==="open",activeClasses:s||Z2.activeClasses,inactiveClasses:a||Z2.inactiveClasses})})}typeof window<"u"&&(window.Accordion=O6,window.initAccordions=D4);var ev=globalThis&&globalThis.__assign||function(){return ev=Object.assign||function(t){for(var n,s=1,a=arguments.length;s<a;s++){n=arguments[s];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ev.apply(this,arguments)},Nw={onCollapse:function(){},onExpand:function(){},onToggle:function(){}},R6=function(){function t(n,s,a){n===void 0&&(n=null),s===void 0&&(s=null),a===void 0&&(a=Nw),this._targetEl=n,this._triggerEl=s,this._options=ev(ev({},Nw),a),this._visible=!1,this._init()}return t.prototype._init=function(){var n=this;this._triggerEl&&(this._triggerEl.hasAttribute("aria-expanded")?this._visible=this._triggerEl.getAttribute("aria-expanded")==="true":this._visible=!this._targetEl.classList.contains("hidden"),this._triggerEl.addEventListener("click",function(){n.toggle()}))},t.prototype.collapse=function(){this._targetEl.classList.add("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","false"),this._visible=!1,this._options.onCollapse(this)},t.prototype.expand=function(){this._targetEl.classList.remove("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","true"),this._visible=!0,this._options.onExpand(this)},t.prototype.toggle=function(){this._visible?this.collapse():this.expand(),this._options.onToggle(this)},t}();function E4(){document.querySelectorAll("[data-collapse-toggle]").forEach(function(t){var n=t.getAttribute("data-collapse-toggle"),s=document.getElementById(n);s?new R6(s,t):console.error('The target element with id "'.concat(n,'" does not exist. Please check the data-collapse-toggle attribute.'))})}typeof window<"u"&&(window.Collapse=R6,window.initCollapses=E4);var hh=globalThis&&globalThis.__assign||function(){return hh=Object.assign||function(t){for(var n,s=1,a=arguments.length;s<a;s++){n=arguments[s];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},hh.apply(this,arguments)},P2={defaultPosition:0,indicators:{items:[],activeClasses:"bg-white dark:bg-gray-800",inactiveClasses:"bg-white/50 dark:bg-gray-800/50 hover:bg-white dark:hover:bg-gray-800"},interval:3e3,onNext:function(){},onPrev:function(){},onChange:function(){}},I6=function(){function t(n,s){n===void 0&&(n=[]),s===void 0&&(s=P2),this._items=n,this._options=hh(hh(hh({},P2),s),{indicators:hh(hh({},P2.indicators),s.indicators)}),this._activeItem=this.getItem(this._options.defaultPosition),this._indicators=this._options.indicators.items,this._intervalDuration=this._options.interval,this._intervalInstance=null,this._init()}return t.prototype._init=function(){var n=this;this._items.map(function(s){s.el.classList.add("absolute","inset-0","transition-transform","transform")}),this._getActiveItem()?this.slideTo(this._getActiveItem().position):this.slideTo(0),this._indicators.map(function(s,a){s.el.addEventListener("click",function(){n.slideTo(a)})})},t.prototype.getItem=function(n){return this._items[n]},t.prototype.slideTo=function(n){var s=this._items[n],a={left:s.position===0?this._items[this._items.length-1]:this._items[s.position-1],middle:s,right:s.position===this._items.length-1?this._items[0]:this._items[s.position+1]};this._rotate(a),this._setActiveItem(s),this._intervalInstance&&(this.pause(),this.cycle()),this._options.onChange(this)},t.prototype.next=function(){var n=this._getActiveItem(),s=null;n.position===this._items.length-1?s=this._items[0]:s=this._items[n.position+1],this.slideTo(s.position),this._options.onNext(this)},t.prototype.prev=function(){var n=this._getActiveItem(),s=null;n.position===0?s=this._items[this._items.length-1]:s=this._items[n.position-1],this.slideTo(s.position),this._options.onPrev(this)},t.prototype._rotate=function(n){this._items.map(function(s){s.el.classList.add("hidden")}),n.left.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-20"),n.left.el.classList.add("-translate-x-full","z-10"),n.middle.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-10"),n.middle.el.classList.add("translate-x-0","z-20"),n.right.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-20"),n.right.el.classList.add("translate-x-full","z-10")},t.prototype.cycle=function(){var n=this;typeof window<"u"&&(this._intervalInstance=window.setInterval(function(){n.next()},this._intervalDuration))},t.prototype.pause=function(){clearInterval(this._intervalInstance)},t.prototype._getActiveItem=function(){return this._activeItem},t.prototype._setActiveItem=function(n){var s,a,r=this;this._activeItem=n;var e=n.position;this._indicators.length&&(this._indicators.map(function(d){var _,y;d.el.setAttribute("aria-current","false"),(_=d.el.classList).remove.apply(_,r._options.indicators.activeClasses.split(" ")),(y=d.el.classList).add.apply(y,r._options.indicators.inactiveClasses.split(" "))}),(s=this._indicators[e].el.classList).add.apply(s,this._options.indicators.activeClasses.split(" ")),(a=this._indicators[e].el.classList).remove.apply(a,this._options.indicators.inactiveClasses.split(" ")),this._indicators[e].el.setAttribute("aria-current","true"))},t}();function F4(){document.querySelectorAll("[data-carousel]").forEach(function(t){var n=t.getAttribute("data-carousel-interval"),s=t.getAttribute("data-carousel")==="slide",a=[],r=0;t.querySelectorAll("[data-carousel-item]").length&&Array.from(t.querySelectorAll("[data-carousel-item]")).map(function(E,T){a.push({position:T,el:E}),E.getAttribute("data-carousel-item")==="active"&&(r=T)});var e=[];t.querySelectorAll("[data-carousel-slide-to]").length&&Array.from(t.querySelectorAll("[data-carousel-slide-to]")).map(function(E){e.push({position:parseInt(E.getAttribute("data-carousel-slide-to")),el:E})});var d=new I6(a,{defaultPosition:r,indicators:{items:e},interval:n||P2.interval});s&&d.cycle();var _=t.querySelector("[data-carousel-next]"),y=t.querySelector("[data-carousel-prev]");_&&_.addEventListener("click",function(){d.next()}),y&&y.addEventListener("click",function(){d.prev()})})}typeof window<"u"&&(window.Carousel=I6,window.initCarousels=F4);var tv=globalThis&&globalThis.__assign||function(){return tv=Object.assign||function(t){for(var n,s=1,a=arguments.length;s<a;s++){n=arguments[s];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},tv.apply(this,arguments)},Mw={transition:"transition-opacity",duration:300,timing:"ease-out",onHide:function(){}},P6=function(){function t(n,s,a){n===void 0&&(n=null),s===void 0&&(s=null),a===void 0&&(a=Mw),this._targetEl=n,this._triggerEl=s,this._options=tv(tv({},Mw),a),this._init()}return t.prototype._init=function(){var n=this;this._triggerEl&&this._triggerEl.addEventListener("click",function(){n.hide()})},t.prototype.hide=function(){var n=this;this._targetEl.classList.add(this._options.transition,"duration-".concat(this._options.duration),this._options.timing,"opacity-0"),setTimeout(function(){n._targetEl.classList.add("hidden")},this._options.duration),this._options.onHide(this,this._targetEl)},t}();function x4(){document.querySelectorAll("[data-dismiss-target]").forEach(function(t){var n=t.getAttribute("data-dismiss-target"),s=document.querySelector(n);s?new P6(s,t):console.error('The dismiss element with id "'.concat(n,'" does not exist. Please check the data-dismiss-target attribute.'))})}typeof window<"u"&&(window.Dismiss=P6,window.initDismisses=x4);var Ga="top",Wo="bottom",zo="right",Va="left",T4="auto",Hg=[Ga,Wo,zo,Va],b1="start",wg="end",T7="clippingParents",N6="viewport",Bp="popper",C7="reference",Lw=Hg.reduce(function(t,n){return t.concat([n+"-"+b1,n+"-"+wg])},[]),M6=[].concat(Hg,[T4]).reduce(function(t,n){return t.concat([n,n+"-"+b1,n+"-"+wg])},[]),A7="beforeRead",S7="read",k7="afterRead",O7="beforeMain",R7="main",I7="afterMain",P7="beforeWrite",N7="write",M7="afterWrite",L7=[A7,S7,k7,O7,R7,I7,P7,N7,M7];function oc(t){return t?(t.nodeName||"").toLowerCase():null}function vo(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var n=t.ownerDocument;return n&&n.defaultView||window}return t}function Ah(t){var n=vo(t).Element;return t instanceof n||t instanceof Element}function $o(t){var n=vo(t).HTMLElement;return t instanceof n||t instanceof HTMLElement}function C4(t){if(typeof ShadowRoot>"u")return!1;var n=vo(t).ShadowRoot;return t instanceof n||t instanceof ShadowRoot}function B7(t){var n=t.state;Object.keys(n.elements).forEach(function(s){var a=n.styles[s]||{},r=n.attributes[s]||{},e=n.elements[s];!$o(e)||!oc(e)||(Object.assign(e.style,a),Object.keys(r).forEach(function(d){var _=r[d];_===!1?e.removeAttribute(d):e.setAttribute(d,_===!0?"":_)}))})}function U7(t){var n=t.state,s={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,s.popper),n.styles=s,n.elements.arrow&&Object.assign(n.elements.arrow.style,s.arrow),function(){Object.keys(n.elements).forEach(function(a){var r=n.elements[a],e=n.attributes[a]||{},d=Object.keys(n.styles.hasOwnProperty(a)?n.styles[a]:s[a]),_=d.reduce(function(y,E){return y[E]="",y},{});!$o(r)||!oc(r)||(Object.assign(r.style,_),Object.keys(e).forEach(function(y){r.removeAttribute(y)}))})}}const $7={name:"applyStyles",enabled:!0,phase:"write",fn:B7,effect:U7,requires:["computeStyles"]};function nc(t){return t.split("-")[0]}var Eh=Math.max,rv=Math.min,_1=Math.round;function my(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(n){return n.brand+"/"+n.version}).join(" "):navigator.userAgent}function L6(){return!/^((?!chrome|android).)*safari/i.test(my())}function y1(t,n,s){n===void 0&&(n=!1),s===void 0&&(s=!1);var a=t.getBoundingClientRect(),r=1,e=1;n&&$o(t)&&(r=t.offsetWidth>0&&_1(a.width)/t.offsetWidth||1,e=t.offsetHeight>0&&_1(a.height)/t.offsetHeight||1);var d=Ah(t)?vo(t):window,_=d.visualViewport,y=!L6()&&s,E=(a.left+(y&&_?_.offsetLeft:0))/r,T=(a.top+(y&&_?_.offsetTop:0))/e,A=a.width/r,R=a.height/e;return{width:A,height:R,top:T,right:E+A,bottom:T+R,left:E,x:E,y:T}}function A4(t){var n=y1(t),s=t.offsetWidth,a=t.offsetHeight;return Math.abs(n.width-s)<=1&&(s=n.width),Math.abs(n.height-a)<=1&&(a=n.height),{x:t.offsetLeft,y:t.offsetTop,width:s,height:a}}function B6(t,n){var s=n.getRootNode&&n.getRootNode();if(t.contains(n))return!0;if(s&&C4(s)){var a=n;do{if(a&&t.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function ou(t){return vo(t).getComputedStyle(t)}function H7(t){return["table","td","th"].indexOf(oc(t))>=0}function qf(t){return((Ah(t)?t.ownerDocument:t.document)||window.document).documentElement}function zv(t){return oc(t)==="html"?t:t.assignedSlot||t.parentNode||(C4(t)?t.host:null)||qf(t)}function Bw(t){return!$o(t)||ou(t).position==="fixed"?null:t.offsetParent}function W7(t){var n=/firefox/i.test(my()),s=/Trident/i.test(my());if(s&&$o(t)){var a=ou(t);if(a.position==="fixed")return null}var r=zv(t);for(C4(r)&&(r=r.host);$o(r)&&["html","body"].indexOf(oc(r))<0;){var e=ou(r);if(e.transform!=="none"||e.perspective!=="none"||e.contain==="paint"||["transform","perspective"].indexOf(e.willChange)!==-1||n&&e.willChange==="filter"||n&&e.filter&&e.filter!=="none")return r;r=r.parentNode}return null}function Wg(t){for(var n=vo(t),s=Bw(t);s&&H7(s)&&ou(s).position==="static";)s=Bw(s);return s&&(oc(s)==="html"||oc(s)==="body"&&ou(s).position==="static")?n:s||W7(t)||n}function S4(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function tg(t,n,s){return Eh(t,rv(n,s))}function z7(t,n,s){var a=tg(t,n,s);return a>s?s:a}function U6(){return{top:0,right:0,bottom:0,left:0}}function $6(t){return Object.assign({},U6(),t)}function H6(t,n){return n.reduce(function(s,a){return s[a]=t,s},{})}var j7=function(n,s){return n=typeof n=="function"?n(Object.assign({},s.rects,{placement:s.placement})):n,$6(typeof n!="number"?n:H6(n,Hg))};function G7(t){var n,s=t.state,a=t.name,r=t.options,e=s.elements.arrow,d=s.modifiersData.popperOffsets,_=nc(s.placement),y=S4(_),E=[Va,zo].indexOf(_)>=0,T=E?"height":"width";if(!(!e||!d)){var A=j7(r.padding,s),R=A4(e),L=y==="y"?Ga:Va,B=y==="y"?Wo:zo,P=s.rects.reference[T]+s.rects.reference[y]-d[y]-s.rects.popper[T],V=d[y]-s.rects.reference[y],z=Wg(e),q=z?y==="y"?z.clientHeight||0:z.clientWidth||0:0,oe=P/2-V/2,K=A[L],G=q-R[T]-A[B],ne=q/2-R[T]/2+oe,ce=tg(K,ne,G),U=y;s.modifiersData[a]=(n={},n[U]=ce,n.centerOffset=ce-ne,n)}}function V7(t){var n=t.state,s=t.options,a=s.element,r=a===void 0?"[data-popper-arrow]":a;r!=null&&(typeof r=="string"&&(r=n.elements.popper.querySelector(r),!r)||B6(n.elements.popper,r)&&(n.elements.arrow=r))}const Y7={name:"arrow",enabled:!0,phase:"main",fn:G7,effect:V7,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function w1(t){return t.split("-")[1]}var K7={top:"auto",right:"auto",bottom:"auto",left:"auto"};function q7(t,n){var s=t.x,a=t.y,r=n.devicePixelRatio||1;return{x:_1(s*r)/r||0,y:_1(a*r)/r||0}}function Uw(t){var n,s=t.popper,a=t.popperRect,r=t.placement,e=t.variation,d=t.offsets,_=t.position,y=t.gpuAcceleration,E=t.adaptive,T=t.roundOffsets,A=t.isFixed,R=d.x,L=R===void 0?0:R,B=d.y,P=B===void 0?0:B,V=typeof T=="function"?T({x:L,y:P}):{x:L,y:P};L=V.x,P=V.y;var z=d.hasOwnProperty("x"),q=d.hasOwnProperty("y"),oe=Va,K=Ga,G=window;if(E){var ne=Wg(s),ce="clientHeight",U="clientWidth";if(ne===vo(s)&&(ne=qf(s),ou(ne).position!=="static"&&_==="absolute"&&(ce="scrollHeight",U="scrollWidth")),ne=ne,r===Ga||(r===Va||r===zo)&&e===wg){K=Wo;var W=A&&ne===G&&G.visualViewport?G.visualViewport.height:ne[ce];P-=W-a.height,P*=y?1:-1}if(r===Va||(r===Ga||r===Wo)&&e===wg){oe=zo;var te=A&&ne===G&&G.visualViewport?G.visualViewport.width:ne[U];L-=te-a.width,L*=y?1:-1}}var fe=Object.assign({position:_},E&&K7),xe=T===!0?q7({x:L,y:P},vo(s)):{x:L,y:P};if(L=xe.x,P=xe.y,y){var _e;return Object.assign({},fe,(_e={},_e[K]=q?"0":"",_e[oe]=z?"0":"",_e.transform=(G.devicePixelRatio||1)<=1?"translate("+L+"px, "+P+"px)":"translate3d("+L+"px, "+P+"px, 0)",_e))}return Object.assign({},fe,(n={},n[K]=q?P+"px":"",n[oe]=z?L+"px":"",n.transform="",n))}function Q7(t){var n=t.state,s=t.options,a=s.gpuAcceleration,r=a===void 0?!0:a,e=s.adaptive,d=e===void 0?!0:e,_=s.roundOffsets,y=_===void 0?!0:_,E={placement:nc(n.placement),variation:w1(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:r,isFixed:n.options.strategy==="fixed"};n.modifiersData.popperOffsets!=null&&(n.styles.popper=Object.assign({},n.styles.popper,Uw(Object.assign({},E,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:d,roundOffsets:y})))),n.modifiersData.arrow!=null&&(n.styles.arrow=Object.assign({},n.styles.arrow,Uw(Object.assign({},E,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:y})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})}const X7={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Q7,data:{}};var _2={passive:!0};function J7(t){var n=t.state,s=t.instance,a=t.options,r=a.scroll,e=r===void 0?!0:r,d=a.resize,_=d===void 0?!0:d,y=vo(n.elements.popper),E=[].concat(n.scrollParents.reference,n.scrollParents.popper);return e&&E.forEach(function(T){T.addEventListener("scroll",s.update,_2)}),_&&y.addEventListener("resize",s.update,_2),function(){e&&E.forEach(function(T){T.removeEventListener("scroll",s.update,_2)}),_&&y.removeEventListener("resize",s.update,_2)}}const Z7={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:J7,data:{}};var eO={left:"right",right:"left",bottom:"top",top:"bottom"};function N2(t){return t.replace(/left|right|bottom|top/g,function(n){return eO[n]})}var tO={start:"end",end:"start"};function $w(t){return t.replace(/start|end/g,function(n){return tO[n]})}function k4(t){var n=vo(t),s=n.pageXOffset,a=n.pageYOffset;return{scrollLeft:s,scrollTop:a}}function O4(t){return y1(qf(t)).left+k4(t).scrollLeft}function rO(t,n){var s=vo(t),a=qf(t),r=s.visualViewport,e=a.clientWidth,d=a.clientHeight,_=0,y=0;if(r){e=r.width,d=r.height;var E=L6();(E||!E&&n==="fixed")&&(_=r.offsetLeft,y=r.offsetTop)}return{width:e,height:d,x:_+O4(t),y}}function nO(t){var n,s=qf(t),a=k4(t),r=(n=t.ownerDocument)==null?void 0:n.body,e=Eh(s.scrollWidth,s.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),d=Eh(s.scrollHeight,s.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),_=-a.scrollLeft+O4(t),y=-a.scrollTop;return ou(r||s).direction==="rtl"&&(_+=Eh(s.clientWidth,r?r.clientWidth:0)-e),{width:e,height:d,x:_,y}}function R4(t){var n=ou(t),s=n.overflow,a=n.overflowX,r=n.overflowY;return/auto|scroll|overlay|hidden/.test(s+r+a)}function W6(t){return["html","body","#document"].indexOf(oc(t))>=0?t.ownerDocument.body:$o(t)&&R4(t)?t:W6(zv(t))}function rg(t,n){var s;n===void 0&&(n=[]);var a=W6(t),r=a===((s=t.ownerDocument)==null?void 0:s.body),e=vo(a),d=r?[e].concat(e.visualViewport||[],R4(a)?a:[]):a,_=n.concat(d);return r?_:_.concat(rg(zv(d)))}function vy(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function iO(t,n){var s=y1(t,!1,n==="fixed");return s.top=s.top+t.clientTop,s.left=s.left+t.clientLeft,s.bottom=s.top+t.clientHeight,s.right=s.left+t.clientWidth,s.width=t.clientWidth,s.height=t.clientHeight,s.x=s.left,s.y=s.top,s}function Hw(t,n,s){return n===N6?vy(rO(t,s)):Ah(n)?iO(n,s):vy(nO(qf(t)))}function sO(t){var n=rg(zv(t)),s=["absolute","fixed"].indexOf(ou(t).position)>=0,a=s&&$o(t)?Wg(t):t;return Ah(a)?n.filter(function(r){return Ah(r)&&B6(r,a)&&oc(r)!=="body"}):[]}function aO(t,n,s,a){var r=n==="clippingParents"?sO(t):[].concat(n),e=[].concat(r,[s]),d=e[0],_=e.reduce(function(y,E){var T=Hw(t,E,a);return y.top=Eh(T.top,y.top),y.right=rv(T.right,y.right),y.bottom=rv(T.bottom,y.bottom),y.left=Eh(T.left,y.left),y},Hw(t,d,a));return _.width=_.right-_.left,_.height=_.bottom-_.top,_.x=_.left,_.y=_.top,_}function z6(t){var n=t.reference,s=t.element,a=t.placement,r=a?nc(a):null,e=a?w1(a):null,d=n.x+n.width/2-s.width/2,_=n.y+n.height/2-s.height/2,y;switch(r){case Ga:y={x:d,y:n.y-s.height};break;case Wo:y={x:d,y:n.y+n.height};break;case zo:y={x:n.x+n.width,y:_};break;case Va:y={x:n.x-s.width,y:_};break;default:y={x:n.x,y:n.y}}var E=r?S4(r):null;if(E!=null){var T=E==="y"?"height":"width";switch(e){case b1:y[E]=y[E]-(n[T]/2-s[T]/2);break;case wg:y[E]=y[E]+(n[T]/2-s[T]/2);break}}return y}function Dg(t,n){n===void 0&&(n={});var s=n,a=s.placement,r=a===void 0?t.placement:a,e=s.strategy,d=e===void 0?t.strategy:e,_=s.boundary,y=_===void 0?T7:_,E=s.rootBoundary,T=E===void 0?N6:E,A=s.elementContext,R=A===void 0?Bp:A,L=s.altBoundary,B=L===void 0?!1:L,P=s.padding,V=P===void 0?0:P,z=$6(typeof V!="number"?V:H6(V,Hg)),q=R===Bp?C7:Bp,oe=t.rects.popper,K=t.elements[B?q:R],G=aO(Ah(K)?K:K.contextElement||qf(t.elements.popper),y,T,d),ne=y1(t.elements.reference),ce=z6({reference:ne,element:oe,strategy:"absolute",placement:r}),U=vy(Object.assign({},oe,ce)),W=R===Bp?U:ne,te={top:G.top-W.top+z.top,bottom:W.bottom-G.bottom+z.bottom,left:G.left-W.left+z.left,right:W.right-G.right+z.right},fe=t.modifiersData.offset;if(R===Bp&&fe){var xe=fe[r];Object.keys(te).forEach(function(_e){var be=[zo,Wo].indexOf(_e)>=0?1:-1,$e=[Ga,Wo].indexOf(_e)>=0?"y":"x";te[_e]+=xe[$e]*be})}return te}function oO(t,n){n===void 0&&(n={});var s=n,a=s.placement,r=s.boundary,e=s.rootBoundary,d=s.padding,_=s.flipVariations,y=s.allowedAutoPlacements,E=y===void 0?M6:y,T=w1(a),A=T?_?Lw:Lw.filter(function(B){return w1(B)===T}):Hg,R=A.filter(function(B){return E.indexOf(B)>=0});R.length===0&&(R=A);var L=R.reduce(function(B,P){return B[P]=Dg(t,{placement:P,boundary:r,rootBoundary:e,padding:d})[nc(P)],B},{});return Object.keys(L).sort(function(B,P){return L[B]-L[P]})}function lO(t){if(nc(t)===T4)return[];var n=N2(t);return[$w(t),n,$w(n)]}function cO(t){var n=t.state,s=t.options,a=t.name;if(!n.modifiersData[a]._skip){for(var r=s.mainAxis,e=r===void 0?!0:r,d=s.altAxis,_=d===void 0?!0:d,y=s.fallbackPlacements,E=s.padding,T=s.boundary,A=s.rootBoundary,R=s.altBoundary,L=s.flipVariations,B=L===void 0?!0:L,P=s.allowedAutoPlacements,V=n.options.placement,z=nc(V),q=z===V,oe=y||(q||!B?[N2(V)]:lO(V)),K=[V].concat(oe).reduce(function(We,Fe){return We.concat(nc(Fe)===T4?oO(n,{placement:Fe,boundary:T,rootBoundary:A,padding:E,flipVariations:B,allowedAutoPlacements:P}):Fe)},[]),G=n.rects.reference,ne=n.rects.popper,ce=new Map,U=!0,W=K[0],te=0;te<K.length;te++){var fe=K[te],xe=nc(fe),_e=w1(fe)===b1,be=[Ga,Wo].indexOf(xe)>=0,$e=be?"width":"height",je=Dg(n,{placement:fe,boundary:T,rootBoundary:A,altBoundary:R,padding:E}),Ee=be?_e?zo:Va:_e?Wo:Ga;G[$e]>ne[$e]&&(Ee=N2(Ee));var lt=N2(Ee),Xe=[];if(e&&Xe.push(je[xe]<=0),_&&Xe.push(je[Ee]<=0,je[lt]<=0),Xe.every(function(We){return We})){W=fe,U=!1;break}ce.set(fe,Xe)}if(U)for(var Je=B?3:1,de=function(Fe){var Be=K.find(function(ie){var He=ce.get(ie);if(He)return He.slice(0,Fe).every(function(pe){return pe})});if(Be)return W=Be,"break"},Se=Je;Se>0;Se--){var rt=de(Se);if(rt==="break")break}n.placement!==W&&(n.modifiersData[a]._skip=!0,n.placement=W,n.reset=!0)}}const uO={name:"flip",enabled:!0,phase:"main",fn:cO,requiresIfExists:["offset"],data:{_skip:!1}};function Ww(t,n,s){return s===void 0&&(s={x:0,y:0}),{top:t.top-n.height-s.y,right:t.right-n.width+s.x,bottom:t.bottom-n.height+s.y,left:t.left-n.width-s.x}}function zw(t){return[Ga,zo,Wo,Va].some(function(n){return t[n]>=0})}function fO(t){var n=t.state,s=t.name,a=n.rects.reference,r=n.rects.popper,e=n.modifiersData.preventOverflow,d=Dg(n,{elementContext:"reference"}),_=Dg(n,{altBoundary:!0}),y=Ww(d,a),E=Ww(_,r,e),T=zw(y),A=zw(E);n.modifiersData[s]={referenceClippingOffsets:y,popperEscapeOffsets:E,isReferenceHidden:T,hasPopperEscaped:A},n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-reference-hidden":T,"data-popper-escaped":A})}const hO={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:fO};function dO(t,n,s){var a=nc(t),r=[Va,Ga].indexOf(a)>=0?-1:1,e=typeof s=="function"?s(Object.assign({},n,{placement:t})):s,d=e[0],_=e[1];return d=d||0,_=(_||0)*r,[Va,zo].indexOf(a)>=0?{x:_,y:d}:{x:d,y:_}}function pO(t){var n=t.state,s=t.options,a=t.name,r=s.offset,e=r===void 0?[0,0]:r,d=M6.reduce(function(T,A){return T[A]=dO(A,n.rects,e),T},{}),_=d[n.placement],y=_.x,E=_.y;n.modifiersData.popperOffsets!=null&&(n.modifiersData.popperOffsets.x+=y,n.modifiersData.popperOffsets.y+=E),n.modifiersData[a]=d}const gO={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:pO};function mO(t){var n=t.state,s=t.name;n.modifiersData[s]=z6({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})}const vO={name:"popperOffsets",enabled:!0,phase:"read",fn:mO,data:{}};function bO(t){return t==="x"?"y":"x"}function _O(t){var n=t.state,s=t.options,a=t.name,r=s.mainAxis,e=r===void 0?!0:r,d=s.altAxis,_=d===void 0?!1:d,y=s.boundary,E=s.rootBoundary,T=s.altBoundary,A=s.padding,R=s.tether,L=R===void 0?!0:R,B=s.tetherOffset,P=B===void 0?0:B,V=Dg(n,{boundary:y,rootBoundary:E,padding:A,altBoundary:T}),z=nc(n.placement),q=w1(n.placement),oe=!q,K=S4(z),G=bO(K),ne=n.modifiersData.popperOffsets,ce=n.rects.reference,U=n.rects.popper,W=typeof P=="function"?P(Object.assign({},n.rects,{placement:n.placement})):P,te=typeof W=="number"?{mainAxis:W,altAxis:W}:Object.assign({mainAxis:0,altAxis:0},W),fe=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,xe={x:0,y:0};if(ne){if(e){var _e,be=K==="y"?Ga:Va,$e=K==="y"?Wo:zo,je=K==="y"?"height":"width",Ee=ne[K],lt=Ee+V[be],Xe=Ee-V[$e],Je=L?-U[je]/2:0,de=q===b1?ce[je]:U[je],Se=q===b1?-U[je]:-ce[je],rt=n.elements.arrow,We=L&&rt?A4(rt):{width:0,height:0},Fe=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:U6(),Be=Fe[be],ie=Fe[$e],He=tg(0,ce[je],We[je]),pe=oe?ce[je]/2-Je-He-Be-te.mainAxis:de-He-Be-te.mainAxis,it=oe?-ce[je]/2+Je+He+ie+te.mainAxis:Se+He+ie+te.mainAxis,Ot=n.elements.arrow&&Wg(n.elements.arrow),re=Ot?K==="y"?Ot.clientTop||0:Ot.clientLeft||0:0,le=(_e=fe==null?void 0:fe[K])!=null?_e:0,he=Ee+pe-le-re,Ue=Ee+it-le,Le=tg(L?rv(lt,he):lt,Ee,L?Eh(Xe,Ue):Xe);ne[K]=Le,xe[K]=Le-Ee}if(_){var et,Tt=K==="x"?Ga:Va,_t=K==="x"?Wo:zo,vt=ne[G],qe=G==="y"?"height":"width",Ae=vt+V[Tt],Re=vt-V[_t],It=[Ga,Va].indexOf(z)!==-1,wt=(et=fe==null?void 0:fe[G])!=null?et:0,ir=It?Ae:vt-ce[qe]-U[qe]-wt+te.altAxis,dr=It?vt+ce[qe]+U[qe]-wt-te.altAxis:Re,sr=L&&It?z7(ir,vt,dr):tg(L?ir:Ae,vt,L?dr:Re);ne[G]=sr,xe[G]=sr-vt}n.modifiersData[a]=xe}}const yO={name:"preventOverflow",enabled:!0,phase:"main",fn:_O,requiresIfExists:["offset"]};function wO(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function DO(t){return t===vo(t)||!$o(t)?k4(t):wO(t)}function EO(t){var n=t.getBoundingClientRect(),s=_1(n.width)/t.offsetWidth||1,a=_1(n.height)/t.offsetHeight||1;return s!==1||a!==1}function FO(t,n,s){s===void 0&&(s=!1);var a=$o(n),r=$o(n)&&EO(n),e=qf(n),d=y1(t,r,s),_={scrollLeft:0,scrollTop:0},y={x:0,y:0};return(a||!a&&!s)&&((oc(n)!=="body"||R4(e))&&(_=DO(n)),$o(n)?(y=y1(n,!0),y.x+=n.clientLeft,y.y+=n.clientTop):e&&(y.x=O4(e))),{x:d.left+_.scrollLeft-y.x,y:d.top+_.scrollTop-y.y,width:d.width,height:d.height}}function xO(t){var n=new Map,s=new Set,a=[];t.forEach(function(e){n.set(e.name,e)});function r(e){s.add(e.name);var d=[].concat(e.requires||[],e.requiresIfExists||[]);d.forEach(function(_){if(!s.has(_)){var y=n.get(_);y&&r(y)}}),a.push(e)}return t.forEach(function(e){s.has(e.name)||r(e)}),a}function TO(t){var n=xO(t);return L7.reduce(function(s,a){return s.concat(n.filter(function(r){return r.phase===a}))},[])}function CO(t){var n;return function(){return n||(n=new Promise(function(s){Promise.resolve().then(function(){n=void 0,s(t())})})),n}}function AO(t){var n=t.reduce(function(s,a){var r=s[a.name];return s[a.name]=r?Object.assign({},r,a,{options:Object.assign({},r.options,a.options),data:Object.assign({},r.data,a.data)}):a,s},{});return Object.keys(n).map(function(s){return n[s]})}var jw={placement:"bottom",modifiers:[],strategy:"absolute"};function Gw(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];return!n.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function SO(t){t===void 0&&(t={});var n=t,s=n.defaultModifiers,a=s===void 0?[]:s,r=n.defaultOptions,e=r===void 0?jw:r;return function(_,y,E){E===void 0&&(E=e);var T={placement:"bottom",orderedModifiers:[],options:Object.assign({},jw,e),modifiersData:{},elements:{reference:_,popper:y},attributes:{},styles:{}},A=[],R=!1,L={state:T,setOptions:function(z){var q=typeof z=="function"?z(T.options):z;P(),T.options=Object.assign({},e,T.options,q),T.scrollParents={reference:Ah(_)?rg(_):_.contextElement?rg(_.contextElement):[],popper:rg(y)};var oe=TO(AO([].concat(a,T.options.modifiers)));return T.orderedModifiers=oe.filter(function(K){return K.enabled}),B(),L.update()},forceUpdate:function(){if(!R){var z=T.elements,q=z.reference,oe=z.popper;if(Gw(q,oe)){T.rects={reference:FO(q,Wg(oe),T.options.strategy==="fixed"),popper:A4(oe)},T.reset=!1,T.placement=T.options.placement,T.orderedModifiers.forEach(function(te){return T.modifiersData[te.name]=Object.assign({},te.data)});for(var K=0;K<T.orderedModifiers.length;K++){if(T.reset===!0){T.reset=!1,K=-1;continue}var G=T.orderedModifiers[K],ne=G.fn,ce=G.options,U=ce===void 0?{}:ce,W=G.name;typeof ne=="function"&&(T=ne({state:T,options:U,name:W,instance:L})||T)}}}},update:CO(function(){return new Promise(function(V){L.forceUpdate(),V(T)})}),destroy:function(){P(),R=!0}};if(!Gw(_,y))return L;L.setOptions(E).then(function(V){!R&&E.onFirstUpdate&&E.onFirstUpdate(V)});function B(){T.orderedModifiers.forEach(function(V){var z=V.name,q=V.options,oe=q===void 0?{}:q,K=V.effect;if(typeof K=="function"){var G=K({state:T,name:z,instance:L,options:oe}),ne=function(){};A.push(G||ne)}})}function P(){A.forEach(function(V){return V()}),A=[]}return L}}var kO=[Z7,vO,X7,$7,gO,uO,yO,Y7,hO],I4=SO({defaultModifiers:kO}),Ff=globalThis&&globalThis.__assign||function(){return Ff=Object.assign||function(t){for(var n,s=1,a=arguments.length;s<a;s++){n=arguments[s];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ff.apply(this,arguments)},y2=globalThis&&globalThis.__spreadArray||function(t,n,s){if(s||arguments.length===2)for(var a=0,r=n.length,e;a<r;a++)(e||!(a in n))&&(e||(e=Array.prototype.slice.call(n,0,a)),e[a]=n[a]);return t.concat(e||Array.prototype.slice.call(n))},xf={placement:"bottom",triggerType:"click",offsetSkidding:0,offsetDistance:10,delay:300,ignoreClickOutsideClass:!1,onShow:function(){},onHide:function(){},onToggle:function(){}},j6=function(){function t(n,s,a){n===void 0&&(n=null),s===void 0&&(s=null),a===void 0&&(a=xf),this._targetEl=n,this._triggerEl=s,this._options=Ff(Ff({},xf),a),this._popperInstance=this._createPopperInstance(),this._visible=!1,this._init()}return t.prototype._init=function(){this._triggerEl&&this._setupEventListeners()},t.prototype._setupEventListeners=function(){var n=this,s=this._getTriggerEvents();this._options.triggerType==="click"&&s.showEvents.forEach(function(a){n._triggerEl.addEventListener(a,function(){n.toggle()})}),this._options.triggerType==="hover"&&(s.showEvents.forEach(function(a){n._triggerEl.addEventListener(a,function(){a==="click"?n.toggle():setTimeout(function(){n.show()},n._options.delay)}),n._targetEl.addEventListener(a,function(){n.show()})}),s.hideEvents.forEach(function(a){n._triggerEl.addEventListener(a,function(){setTimeout(function(){n._targetEl.matches(":hover")||n.hide()},n._options.delay)}),n._targetEl.addEventListener(a,function(){setTimeout(function(){n._triggerEl.matches(":hover")||n.hide()},n._options.delay)})}))},t.prototype._createPopperInstance=function(){return I4(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[this._options.offsetSkidding,this._options.offsetDistance]}}]})},t.prototype._setupClickOutsideListener=function(){var n=this;this._clickOutsideEventListener=function(s){n._handleClickOutside(s,n._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._handleClickOutside=function(n,s){var a=n.target,r=this._options.ignoreClickOutsideClass,e=!1;if(r){var d=document.querySelectorAll(".".concat(r));d.forEach(function(_){if(_.contains(a)){e=!0;return}})}a!==s&&!s.contains(a)&&!this._triggerEl.contains(a)&&!e&&this.isVisible()&&this.hide()},t.prototype._getTriggerEvents=function(){switch(this._options.triggerType){case"hover":return{showEvents:["mouseenter","click"],hideEvents:["mouseleave"]};case"click":return{showEvents:["click"],hideEvents:[]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["click"],hideEvents:[]}}},t.prototype.toggle=function(){this.isVisible()?this.hide():this.show(),this._options.onToggle(this)},t.prototype.isVisible=function(){return this._visible},t.prototype.show=function(){this._targetEl.classList.remove("hidden"),this._targetEl.classList.add("block"),this._popperInstance.setOptions(function(n){return Ff(Ff({},n),{modifiers:y2(y2([],n.modifiers,!0),[{name:"eventListeners",enabled:!0}],!1)})}),this._setupClickOutsideListener(),this._popperInstance.update(),this._visible=!0,this._options.onShow(this)},t.prototype.hide=function(){this._targetEl.classList.remove("block"),this._targetEl.classList.add("hidden"),this._popperInstance.setOptions(function(n){return Ff(Ff({},n),{modifiers:y2(y2([],n.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._visible=!1,this._removeClickOutsideListener(),this._options.onHide(this)},t}();function P4(){document.querySelectorAll("[data-dropdown-toggle]").forEach(function(t){var n=t.getAttribute("data-dropdown-toggle"),s=document.getElementById(n);if(s){var a=t.getAttribute("data-dropdown-placement"),r=t.getAttribute("data-dropdown-offset-skidding"),e=t.getAttribute("data-dropdown-offset-distance"),d=t.getAttribute("data-dropdown-trigger"),_=t.getAttribute("data-dropdown-delay"),y=t.getAttribute("data-dropdown-ignore-click-outside-class");new j6(s,t,{placement:a||xf.placement,triggerType:d||xf.triggerType,offsetSkidding:r?parseInt(r):xf.offsetSkidding,offsetDistance:e?parseInt(e):xf.offsetDistance,delay:_?parseInt(_):xf.delay,ignoreClickOutsideClass:y||xf.ignoreClickOutsideClass})}else console.error('The dropdown element with id "'.concat(n,'" does not exist. Please check the data-dropdown-toggle attribute.'))})}typeof window<"u"&&(window.Dropdown=j6,window.initDropdowns=P4);var nv=globalThis&&globalThis.__assign||function(){return nv=Object.assign||function(t){for(var n,s=1,a=arguments.length;s<a;s++){n=arguments[s];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},nv.apply(this,arguments)},jd={placement:"center",backdropClasses:"bg-gray-900 bg-opacity-50 dark:bg-opacity-80 fixed inset-0 z-40",backdrop:"dynamic",closable:!0,onHide:function(){},onShow:function(){},onToggle:function(){}},by=function(){function t(n,s){n===void 0&&(n=null),s===void 0&&(s=jd),this._targetEl=n,this._options=nv(nv({},jd),s),this._isHidden=!0,this._backdropEl=null,this._init()}return t.prototype._init=function(){var n=this;this._targetEl&&this._getPlacementClasses().map(function(s){n._targetEl.classList.add(s)})},t.prototype._createBackdrop=function(){var n;if(this._isHidden){var s=document.createElement("div");s.setAttribute("modal-backdrop",""),(n=s.classList).add.apply(n,this._options.backdropClasses.split(" ")),document.querySelector("body").append(s),this._backdropEl=s}},t.prototype._destroyBackdropEl=function(){this._isHidden||document.querySelector("[modal-backdrop]").remove()},t.prototype._setupModalCloseEventListeners=function(){var n=this;this._options.backdrop==="dynamic"&&(this._clickOutsideEventListener=function(s){n._handleOutsideClick(s.target)},this._targetEl.addEventListener("click",this._clickOutsideEventListener,!0)),this._keydownEventListener=function(s){s.key==="Escape"&&n.hide()},document.body.addEventListener("keydown",this._keydownEventListener,!0)},t.prototype._removeModalCloseEventListeners=function(){this._options.backdrop==="dynamic"&&this._targetEl.removeEventListener("click",this._clickOutsideEventListener,!0),document.body.removeEventListener("keydown",this._keydownEventListener,!0)},t.prototype._handleOutsideClick=function(n){(n===this._targetEl||n===this._backdropEl&&this.isVisible())&&this.hide()},t.prototype._getPlacementClasses=function(){switch(this._options.placement){case"top-left":return["justify-start","items-start"];case"top-center":return["justify-center","items-start"];case"top-right":return["justify-end","items-start"];case"center-left":return["justify-start","items-center"];case"center":return["justify-center","items-center"];case"center-right":return["justify-end","items-center"];case"bottom-left":return["justify-start","items-end"];case"bottom-center":return["justify-center","items-end"];case"bottom-right":return["justify-end","items-end"];default:return["justify-center","items-center"]}},t.prototype.toggle=function(){this._isHidden?this.show():this.hide(),this._options.onToggle(this)},t.prototype.show=function(){this.isHidden&&(this._targetEl.classList.add("flex"),this._targetEl.classList.remove("hidden"),this._targetEl.setAttribute("aria-modal","true"),this._targetEl.setAttribute("role","dialog"),this._targetEl.removeAttribute("aria-hidden"),this._createBackdrop(),this._isHidden=!1,document.body.classList.add("overflow-hidden"),this._options.closable&&this._setupModalCloseEventListeners(),this._options.onShow(this))},t.prototype.hide=function(){this.isVisible&&(this._targetEl.classList.add("hidden"),this._targetEl.classList.remove("flex"),this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.removeAttribute("aria-modal"),this._targetEl.removeAttribute("role"),this._destroyBackdropEl(),this._isHidden=!0,document.body.classList.remove("overflow-hidden"),this._options.closable&&this._removeModalCloseEventListeners(),this._options.onHide(this))},t.prototype.isVisible=function(){return!this._isHidden},t.prototype.isHidden=function(){return this._isHidden},t}(),w2=function(t,n){return n.some(function(s){return s.id===t})?n.find(function(s){return s.id===t}):null};function N4(){var t=[];document.querySelectorAll("[data-modal-target]").forEach(function(n){var s=n.getAttribute("data-modal-target"),a=document.getElementById(s);if(a){var r=a.getAttribute("data-modal-placement"),e=a.getAttribute("data-modal-backdrop");w2(s,t)||t.push({id:s,object:new by(a,{placement:r||jd.placement,backdrop:e||jd.backdrop})})}else console.error("Modal with id ".concat(s," does not exist. Are you sure that the data-modal-target attribute points to the correct modal id?."))}),document.querySelectorAll("[data-modal-toggle]").forEach(function(n){var s=n.getAttribute("data-modal-toggle"),a=document.getElementById(s);if(a){var r=a.getAttribute("data-modal-placement"),e=a.getAttribute("data-modal-backdrop"),d=w2(s,t);d||(d={id:s,object:new by(a,{placement:r||jd.placement,backdrop:e||jd.backdrop})},t.push(d)),n.addEventListener("click",function(){d.object.toggle()})}else console.error("Modal with id ".concat(s," does not exist. Are you sure that the data-modal-toggle attribute points to the correct modal id?"))}),document.querySelectorAll("[data-modal-show]").forEach(function(n){var s=n.getAttribute("data-modal-show"),a=document.getElementById(s);if(a){var r=w2(s,t);r?n.addEventListener("click",function(){r.object.isHidden&&r.object.show()}):console.error("Modal with id ".concat(s," has not been initialized. Please initialize it using the data-modal-target attribute."))}else console.error("Modal with id ".concat(s," does not exist. Are you sure that the data-modal-show attribute points to the correct modal id?"))}),document.querySelectorAll("[data-modal-hide]").forEach(function(n){var s=n.getAttribute("data-modal-hide"),a=document.getElementById(s);if(a){var r=w2(s,t);r?n.addEventListener("click",function(){r.object.isVisible&&r.object.hide()}):console.error("Modal with id ".concat(s," has not been initialized. Please initialize it using the data-modal-target attribute."))}else console.error("Modal with id ".concat(s," does not exist. Are you sure that the data-modal-hide attribute points to the correct modal id?"))})}typeof window<"u"&&(window.Modal=by,window.initModals=N4);var iv=globalThis&&globalThis.__assign||function(){return iv=Object.assign||function(t){for(var n,s=1,a=arguments.length;s<a;s++){n=arguments[s];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},iv.apply(this,arguments)},dh={placement:"left",bodyScrolling:!1,backdrop:!0,edge:!1,edgeOffset:"bottom-[60px]",backdropClasses:"bg-gray-900 bg-opacity-50 dark:bg-opacity-80 fixed inset-0 z-30",onShow:function(){},onHide:function(){},onToggle:function(){}},G6=function(){function t(n,s){n===void 0&&(n=null),s===void 0&&(s=dh),this._targetEl=n,this._options=iv(iv({},dh),s),this._visible=!1,this._init()}return t.prototype._init=function(){var n=this;this._targetEl&&(this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.classList.add("transition-transform")),this._getPlacementClasses(this._options.placement).base.map(function(s){n._targetEl.classList.add(s)}),document.addEventListener("keydown",function(s){s.key==="Escape"&&n.isVisible()&&n.hide()})},t.prototype.hide=function(){var n=this;this._options.edge?(this._getPlacementClasses(this._options.placement+"-edge").active.map(function(s){n._targetEl.classList.remove(s)}),this._getPlacementClasses(this._options.placement+"-edge").inactive.map(function(s){n._targetEl.classList.add(s)})):(this._getPlacementClasses(this._options.placement).active.map(function(s){n._targetEl.classList.remove(s)}),this._getPlacementClasses(this._options.placement).inactive.map(function(s){n._targetEl.classList.add(s)})),this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.removeAttribute("aria-modal"),this._targetEl.removeAttribute("role"),this._options.bodyScrolling||document.body.classList.remove("overflow-hidden"),this._options.backdrop&&this._destroyBackdropEl(),this._visible=!1,this._options.onHide(this)},t.prototype.show=function(){var n=this;this._options.edge?(this._getPlacementClasses(this._options.placement+"-edge").active.map(function(s){n._targetEl.classList.add(s)}),this._getPlacementClasses(this._options.placement+"-edge").inactive.map(function(s){n._targetEl.classList.remove(s)})):(this._getPlacementClasses(this._options.placement).active.map(function(s){n._targetEl.classList.add(s)}),this._getPlacementClasses(this._options.placement).inactive.map(function(s){n._targetEl.classList.remove(s)})),this._targetEl.setAttribute("aria-modal","true"),this._targetEl.setAttribute("role","dialog"),this._targetEl.removeAttribute("aria-hidden"),this._options.bodyScrolling||document.body.classList.add("overflow-hidden"),this._options.backdrop&&this._createBackdrop(),this._visible=!0,this._options.onShow(this)},t.prototype.toggle=function(){this.isVisible()?this.hide():this.show()},t.prototype._createBackdrop=function(){var n,s=this;if(!this._visible){var a=document.createElement("div");a.setAttribute("drawer-backdrop",""),(n=a.classList).add.apply(n,this._options.backdropClasses.split(" ")),document.querySelector("body").append(a),a.addEventListener("click",function(){s.hide()})}},t.prototype._destroyBackdropEl=function(){this._visible&&document.querySelector("[drawer-backdrop]").remove()},t.prototype._getPlacementClasses=function(n){switch(n){case"top":return{base:["top-0","left-0","right-0"],active:["transform-none"],inactive:["-translate-y-full"]};case"right":return{base:["right-0","top-0"],active:["transform-none"],inactive:["translate-x-full"]};case"bottom":return{base:["bottom-0","left-0","right-0"],active:["transform-none"],inactive:["translate-y-full"]};case"left":return{base:["left-0","top-0"],active:["transform-none"],inactive:["-translate-x-full"]};case"bottom-edge":return{base:["left-0","top-0"],active:["transform-none"],inactive:["translate-y-full",this._options.edgeOffset]};default:return{base:["left-0","top-0"],active:["transform-none"],inactive:["-translate-x-full"]}}},t.prototype.isHidden=function(){return!this._visible},t.prototype.isVisible=function(){return this._visible},t}(),D2=function(t,n){if(n.some(function(s){return s.id===t}))return n.find(function(s){return s.id===t})};function M4(){var t=[];document.querySelectorAll("[data-drawer-target]").forEach(function(n){var s=n.getAttribute("data-drawer-target"),a=document.getElementById(s);if(a){var r=n.getAttribute("data-drawer-placement"),e=n.getAttribute("data-drawer-body-scrolling"),d=n.getAttribute("data-drawer-backdrop"),_=n.getAttribute("data-drawer-edge"),y=n.getAttribute("data-drawer-edge-offset");D2(s,t)||t.push({id:s,object:new G6(a,{placement:r||dh.placement,bodyScrolling:e?e==="true":dh.bodyScrolling,backdrop:d?d==="true":dh.backdrop,edge:_?_==="true":dh.edge,edgeOffset:y||dh.edgeOffset})})}else console.error("Drawer with id ".concat(s," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?"))}),document.querySelectorAll("[data-drawer-toggle]").forEach(function(n){var s=n.getAttribute("data-drawer-toggle"),a=document.getElementById(s);if(a){var r=D2(s,t);r?n.addEventListener("click",function(){r.object.toggle()}):console.error("Drawer with id ".concat(s," has not been initialized. Please initialize it using the data-drawer-target attribute."))}else console.error("Drawer with id ".concat(s," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?"))}),document.querySelectorAll("[data-drawer-dismiss], [data-drawer-hide]").forEach(function(n){var s=n.getAttribute("data-drawer-dismiss")?n.getAttribute("data-drawer-dismiss"):n.getAttribute("data-drawer-hide"),a=document.getElementById(s);if(a){var r=D2(s,t);r?n.addEventListener("click",function(){r.object.hide()}):console.error("Drawer with id ".concat(s," has not been initialized. Please initialize it using the data-drawer-target attribute."))}else console.error("Drawer with id ".concat(s," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id"))}),document.querySelectorAll("[data-drawer-show]").forEach(function(n){var s=n.getAttribute("data-drawer-show"),a=document.getElementById(s);if(a){var r=D2(s,t);r?n.addEventListener("click",function(){r.object.show()}):console.error("Drawer with id ".concat(s," has not been initialized. Please initialize it using the data-drawer-target attribute."))}else console.error("Drawer with id ".concat(s," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?"))})}typeof window<"u"&&(window.Drawer=G6,window.initDrawers=M4);var sv=globalThis&&globalThis.__assign||function(){return sv=Object.assign||function(t){for(var n,s=1,a=arguments.length;s<a;s++){n=arguments[s];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},sv.apply(this,arguments)},Vw={defaultTabId:null,activeClasses:"text-blue-600 hover:text-blue-600 dark:text-blue-500 dark:hover:text-blue-500 border-blue-600 dark:border-blue-500",inactiveClasses:"dark:border-transparent text-gray-500 hover:text-gray-600 dark:text-gray-400 border-gray-100 hover:border-gray-300 dark:border-gray-700 dark:hover:text-gray-300",onShow:function(){}},V6=function(){function t(n,s){n===void 0&&(n=[]),s===void 0&&(s=Vw),this._items=n,this._activeTab=s?this.getTab(s.defaultTabId):null,this._options=sv(sv({},Vw),s),this._init()}return t.prototype._init=function(){var n=this;this._items.length&&(this._activeTab||this._setActiveTab(this._items[0]),this.show(this._activeTab.id,!0),this._items.map(function(s){s.triggerEl.addEventListener("click",function(){n.show(s.id)})}))},t.prototype.getActiveTab=function(){return this._activeTab},t.prototype._setActiveTab=function(n){this._activeTab=n},t.prototype.getTab=function(n){return this._items.filter(function(s){return s.id===n})[0]},t.prototype.show=function(n,s){var a,r,e=this;s===void 0&&(s=!1);var d=this.getTab(n);d===this._activeTab&&!s||(this._items.map(function(_){var y,E;_!==d&&((y=_.triggerEl.classList).remove.apply(y,e._options.activeClasses.split(" ")),(E=_.triggerEl.classList).add.apply(E,e._options.inactiveClasses.split(" ")),_.targetEl.classList.add("hidden"),_.triggerEl.setAttribute("aria-selected","false"))}),(a=d.triggerEl.classList).add.apply(a,this._options.activeClasses.split(" ")),(r=d.triggerEl.classList).remove.apply(r,this._options.inactiveClasses.split(" ")),d.triggerEl.setAttribute("aria-selected","true"),d.targetEl.classList.remove("hidden"),this._setActiveTab(d),this._options.onShow(this,d))},t}();function L4(){document.querySelectorAll("[data-tabs-toggle]").forEach(function(t){var n=[],s=null;t.querySelectorAll('[role="tab"]').forEach(function(a){var r=a.getAttribute("aria-selected")==="true",e={id:a.getAttribute("data-tabs-target"),triggerEl:a,targetEl:document.querySelector(a.getAttribute("data-tabs-target"))};n.push(e),r&&(s=e.id)}),new V6(n,{defaultTabId:s})})}typeof window<"u"&&(window.Tabs=V6,window.initTabs=L4);var Tf=globalThis&&globalThis.__assign||function(){return Tf=Object.assign||function(t){for(var n,s=1,a=arguments.length;s<a;s++){n=arguments[s];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Tf.apply(this,arguments)},E2=globalThis&&globalThis.__spreadArray||function(t,n,s){if(s||arguments.length===2)for(var a=0,r=n.length,e;a<r;a++)(e||!(a in n))&&(e||(e=Array.prototype.slice.call(n,0,a)),e[a]=n[a]);return t.concat(e||Array.prototype.slice.call(n))},av={placement:"top",triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},B4=function(){function t(n,s,a){n===void 0&&(n=null),s===void 0&&(s=null),a===void 0&&(a=av),this._targetEl=n,this._triggerEl=s,this._options=Tf(Tf({},av),a),this._popperInstance=this._createPopperInstance(),this._visible=!1,this._init()}return t.prototype._init=function(){this._triggerEl&&this._setupEventListeners()},t.prototype._setupEventListeners=function(){var n=this,s=this._getTriggerEvents();s.showEvents.forEach(function(a){n._triggerEl.addEventListener(a,function(){n.show()})}),s.hideEvents.forEach(function(a){n._triggerEl.addEventListener(a,function(){n.hide()})})},t.prototype._createPopperInstance=function(){return I4(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[0,8]}}]})},t.prototype._getTriggerEvents=function(){switch(this._options.triggerType){case"hover":return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]};case"click":return{showEvents:["click","focus"],hideEvents:["focusout","blur"]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]}}},t.prototype._setupKeydownListener=function(){var n=this;this._keydownEventListener=function(s){s.key==="Escape"&&n.hide()},document.body.addEventListener("keydown",this._keydownEventListener,!0)},t.prototype._removeKeydownListener=function(){document.body.removeEventListener("keydown",this._keydownEventListener,!0)},t.prototype._setupClickOutsideListener=function(){var n=this;this._clickOutsideEventListener=function(s){n._handleClickOutside(s,n._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._handleClickOutside=function(n,s){var a=n.target;a!==s&&!s.contains(a)&&!this._triggerEl.contains(a)&&this.isVisible()&&this.hide()},t.prototype.isVisible=function(){return this._visible},t.prototype.toggle=function(){this.isVisible()?this.hide():this.show()},t.prototype.show=function(){this._targetEl.classList.remove("opacity-0","invisible"),this._targetEl.classList.add("opacity-100","visible"),this._popperInstance.setOptions(function(n){return Tf(Tf({},n),{modifiers:E2(E2([],n.modifiers,!0),[{name:"eventListeners",enabled:!0}],!1)})}),this._setupClickOutsideListener(),this._setupKeydownListener(),this._popperInstance.update(),this._visible=!0,this._options.onShow(this)},t.prototype.hide=function(){this._targetEl.classList.remove("opacity-100","visible"),this._targetEl.classList.add("opacity-0","invisible"),this._popperInstance.setOptions(function(n){return Tf(Tf({},n),{modifiers:E2(E2([],n.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._removeClickOutsideListener(),this._removeKeydownListener(),this._visible=!1,this._options.onHide(this)},t}();function U4(){document.querySelectorAll("[data-tooltip-target]").forEach(function(t){var n=t.getAttribute("data-tooltip-target"),s=document.getElementById(n);if(s){var a=t.getAttribute("data-tooltip-trigger"),r=t.getAttribute("data-tooltip-placement");new B4(s,t,{placement:r||av.placement,triggerType:a||av.triggerType})}else console.error('The tooltip element with id "'.concat(n,'" does not exist. Please check the data-tooltip-target attribute.'))})}typeof window<"u"&&(window.Tooltip=B4,window.initTooltips=U4);var Cf=globalThis&&globalThis.__assign||function(){return Cf=Object.assign||function(t){for(var n,s=1,a=arguments.length;s<a;s++){n=arguments[s];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Cf.apply(this,arguments)},F2=globalThis&&globalThis.__spreadArray||function(t,n,s){if(s||arguments.length===2)for(var a=0,r=n.length,e;a<r;a++)(e||!(a in n))&&(e||(e=Array.prototype.slice.call(n,0,a)),e[a]=n[a]);return t.concat(e||Array.prototype.slice.call(n))},ng={placement:"top",offset:10,triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},Y6=function(){function t(n,s,a){n===void 0&&(n=null),s===void 0&&(s=null),a===void 0&&(a=ng),this._targetEl=n,this._triggerEl=s,this._options=Cf(Cf({},ng),a),this._popperInstance=this._createPopperInstance(),this._visible=!1,this._init()}return t.prototype._init=function(){this._triggerEl&&this._setupEventListeners()},t.prototype._setupEventListeners=function(){var n=this,s=this._getTriggerEvents();s.showEvents.forEach(function(a){n._triggerEl.addEventListener(a,function(){n.show()}),n._targetEl.addEventListener(a,function(){n.show()})}),s.hideEvents.forEach(function(a){n._triggerEl.addEventListener(a,function(){setTimeout(function(){n._targetEl.matches(":hover")||n.hide()},100)}),n._targetEl.addEventListener(a,function(){setTimeout(function(){n._triggerEl.matches(":hover")||n.hide()},100)})})},t.prototype._createPopperInstance=function(){return I4(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[0,this._options.offset]}}]})},t.prototype._getTriggerEvents=function(){switch(this._options.triggerType){case"hover":return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]};case"click":return{showEvents:["click","focus"],hideEvents:["focusout","blur"]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]}}},t.prototype._setupKeydownListener=function(){var n=this;this._keydownEventListener=function(s){s.key==="Escape"&&n.hide()},document.body.addEventListener("keydown",this._keydownEventListener,!0)},t.prototype._removeKeydownListener=function(){document.body.removeEventListener("keydown",this._keydownEventListener,!0)},t.prototype._setupClickOutsideListener=function(){var n=this;this._clickOutsideEventListener=function(s){n._handleClickOutside(s,n._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._handleClickOutside=function(n,s){var a=n.target;a!==s&&!s.contains(a)&&!this._triggerEl.contains(a)&&this.isVisible()&&this.hide()},t.prototype.isVisible=function(){return this._visible},t.prototype.toggle=function(){this.isVisible()?this.hide():this.show(),this._options.onToggle(this)},t.prototype.show=function(){this._targetEl.classList.remove("opacity-0","invisible"),this._targetEl.classList.add("opacity-100","visible"),this._popperInstance.setOptions(function(n){return Cf(Cf({},n),{modifiers:F2(F2([],n.modifiers,!0),[{name:"eventListeners",enabled:!0}],!1)})}),this._setupClickOutsideListener(),this._setupKeydownListener(),this._popperInstance.update(),this._visible=!0,this._options.onShow(this)},t.prototype.hide=function(){this._targetEl.classList.remove("opacity-100","visible"),this._targetEl.classList.add("opacity-0","invisible"),this._popperInstance.setOptions(function(n){return Cf(Cf({},n),{modifiers:F2(F2([],n.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._removeClickOutsideListener(),this._removeKeydownListener(),this._visible=!1,this._options.onHide(this)},t}();function $4(){document.querySelectorAll("[data-popover-target]").forEach(function(t){var n=t.getAttribute("data-popover-target"),s=document.getElementById(n);if(s){var a=t.getAttribute("data-popover-trigger"),r=t.getAttribute("data-popover-placement"),e=t.getAttribute("data-popover-offset");new Y6(s,t,{placement:r||ng.placement,offset:e?parseInt(e):ng.offset,triggerType:a||ng.triggerType})}else console.error('The popover element with id "'.concat(n,'" does not exist. Please check the data-popover-target attribute.'))})}typeof window<"u"&&(window.Popover=Y6,window.initPopovers=$4);var ov=globalThis&&globalThis.__assign||function(){return ov=Object.assign||function(t){for(var n,s=1,a=arguments.length;s<a;s++){n=arguments[s];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ov.apply(this,arguments)},_y={triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},K6=function(){function t(n,s,a,r){n===void 0&&(n=null),s===void 0&&(s=null),a===void 0&&(a=null),r===void 0&&(r=_y),this._parentEl=n,this._triggerEl=s,this._targetEl=a,this._options=ov(ov({},_y),r),this._visible=!1,this._init()}return t.prototype._init=function(){var n=this;if(this._triggerEl){var s=this._getTriggerEventTypes(this._options.triggerType);s.showEvents.forEach(function(a){n._triggerEl.addEventListener(a,function(){n.show()}),n._targetEl.addEventListener(a,function(){n.show()})}),s.hideEvents.forEach(function(a){n._parentEl.addEventListener(a,function(){n._parentEl.matches(":hover")||n.hide()})})}},t.prototype.hide=function(){this._targetEl.classList.add("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","false"),this._visible=!1,this._options.onHide(this)},t.prototype.show=function(){this._targetEl.classList.remove("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","true"),this._visible=!0,this._options.onShow(this)},t.prototype.toggle=function(){this._visible?this.hide():this.show()},t.prototype.isHidden=function(){return!this._visible},t.prototype.isVisible=function(){return this._visible},t.prototype._getTriggerEventTypes=function(n){switch(n){case"hover":return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]};case"click":return{showEvents:["click","focus"],hideEvents:["focusout","blur"]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]}}},t}();function H4(){document.querySelectorAll("[data-dial-init]").forEach(function(t){var n=t.querySelector("[data-dial-toggle]");if(n){var s=n.getAttribute("data-dial-toggle"),a=document.getElementById(s);if(a){var r=n.getAttribute("data-dial-trigger");new K6(t,n,a,{triggerType:r||_y.triggerType})}else console.error("Dial with id ".concat(s," does not exist. Are you sure that the data-dial-toggle attribute points to the correct modal id?"))}else console.error("Dial with id ".concat(t.id," does not have a trigger element. Are you sure that the data-dial-toggle attribute exists?"))})}typeof window<"u"&&(window.Dial=K6,window.initDials=H4);function OO(){D4(),E4(),F4(),x4(),P4(),N4(),M4(),L4(),U4(),$4(),H4()}typeof window<"u"&&(window.initFlowbite=OO);var RO=new x7("load",[D4,E4,F4,x4,P4,N4,M4,L4,U4,$4,H4]);RO.init();const IO=Wt("div",{class:"tooltip-arrow","data-popper-arrow":""},null,-1),q6=vs({__name:"Tooltip",props:{placement:null},setup(t){const n=t,s=ur(null),a=ur(null),r=cn(()=>n.placement??"auto");return Sl(()=>{if(s.value&&a.value){const e={placement:r.value,triggerType:"hover"};new B4(s.value,a.value,e)}}),(e,d)=>(pn(),Qn("div",null,[Wt("div",{ref_key:"tooltipTriggerEl",ref:a},[Th(e.$slots,"default")],512),Wt("div",{ref_key:"tooltipTargetEl",ref:s,role:"tooltip",class:"tooltip inline-block absolute invisible px-3 py-2 transition-opacity duration-300 shadow-sm opacity-0","z-99999":"",rounded:"","text-base":"","text-white":"","font-medium":"","bg-gray-900":"","dark:bg-gray-700":""},[Wt("div",null,[Th(e.$slots,"popper")]),IO],512)]))}}),PO="Board - XCPCIO",QM="Rating - XCPCIO",XM="Balloon - XCPCIO",JM="Countdown - XCPCIO",NO=cn(()=>window?window.CDN_HOST:""),Q6=cn(()=>window?window.DATA_HOST:""),ZM=cn(()=>Q6.value.replace("/data/","/rating-data/")),MO=cn(()=>window?window.DATA_REGION:""),LO="0.50.2",X6="https://github.com/xcpcio/xcpcio",BO="840ed3d63f",UO="https://xcpcio.com";var El=(t=>(t.PENDING="PENDING",t.RUNNING="RUNNING",t.FROZEN="FROZEN",t.FINISHED="FINISHED",t.PAUSED="PAUSED",t))(El||{}),Ht=(t=>(t.PENDING="PENDING",t.WAITING="WAITING",t.PREPARING="PREPARING",t.COMPILING="COMPILING",t.RUNNING="RUNNING",t.JUDGING="JUDGING",t.FROZEN="FROZEN",t.ACCEPTED="ACCEPTED",t.CORRECT="CORRECT",t.PARTIALLY_CORRECT="PARTIALLY_CORRECT",t.REJECTED="REJECTED",t.WRONG_ANSWER="WRONG_ANSWER",t.NO_OUTPUT="NO_OUTPUT",t.COMPILATION_ERROR="COMPILATION_ERROR",t.PRESENTATION_ERROR="PRESENTATION_ERROR",t.RUNTIME_ERROR="RUNTIME_ERROR",t.TIME_LIMIT_EXCEEDED="TIME_LIMIT_EXCEEDED",t.MEMORY_LIMIT_EXCEEDED="MEMORY_LIMIT_EXCEEDED",t.OUTPUT_LIMIT_EXCEEDED="OUTPUT_LIMIT_EXCEEDED",t.IDLENESS_LIMIT_EXCEEDED="IDLENESS_LIMIT_EXCEEDED",t.HACKED="HACKED",t.JUDGEMENT_FAILED="JUDGEMENT_FAILED",t.CONFIGURATION_ERROR="CONFIGURATION_ERROR",t.FILE_ERROR="FILE_ERROR",t.SYSTEM_ERROR="SYSTEM_ERROR",t.CANCELED="CANCELED",t.SKIPPED="SKIPPED",t.SECURITY_VIOLATED="SECURITY_VIOLATED",t.DENIAL_OF_JUDGEMENT="DENIAL_OF_JUDGEMENT",t.UNKNOWN="UNKNOWN",t.UNDEFINED="UNDEFINED",t))(Ht||{});const eL={PENDING:"Pending",WAITING:"Waiting",PREPARING:"Preparing",COMPILING:"Compiling",RUNNING:"Running",JUDGING:"Judging",FROZEN:"Frozen",ACCEPTED:"Accepted",CORRECT:"Correct",PARTIALLY_CORRECT:"Partially Correct",REJECTED:"Rejected",WRONG_ANSWER:"Wrong Answer",NO_OUTPUT:"No Output",COMPILATION_ERROR:"Compilation Error",PRESENTATION_ERROR:"Presentation Error",RUNTIME_ERROR:"Runtime Error",TIME_LIMIT_EXCEEDED:"Time Limit Exceeded",MEMORY_LIMIT_EXCEEDED:"Memory Limit Exceeded",OUTPUT_LIMIT_EXCEEDED:"Output Limit Exceeded",IDLENESS_LIMIT_EXCEEDED:"Idleness Limit Exceeded",HACKED:"Hacked",JUDGEMENT_FAILED:"Judgement Failed",CONFIGURATION_ERROR:"Configuration Error",FILE_ERROR:"File Error",SYSTEM_ERROR:"System Error",CANCELED:"Canceled",SKIPPED:"Skipped",SECURITY_VIOLATED:"Security Violated",DENIAL_OF_JUDGEMENT:"Denial Of Judgement",UNKNOWN:"Unknown",UNDEFINED:"Undefined"},tL={PENDING:"PD",WAITING:"PD",PREPARING:"PD",COMPILING:"PD",RUNNING:"PD",JUDGING:"PD",FROZEN:"?",ACCEPTED:"AC",CORRECT:"AC",PARTIALLY_CORRECT:"RJ",REJECTED:"RJ",WRONG_ANSWER:"WA",NO_OUTPUT:"NO",COMPILATION_ERROR:"CE",PRESENTATION_ERROR:"PE",RUNTIME_ERROR:"RTE",TIME_LIMIT_EXCEEDED:"TLE",MEMORY_LIMIT_EXCEEDED:"MLE",OUTPUT_LIMIT_EXCEEDED:"OLE",IDLENESS_LIMIT_EXCEEDED:"ILE",HACKED:"RJ",JUDGEMENT_FAILED:"RJ",CONFIGURATION_ERROR:"RJ",FILE_ERROR:"RJ",SYSTEM_ERROR:"RJ",CANCELED:"RJ",SKIPPED:"RJ",SECURITY_VIOLATED:"RJ",DENIAL_OF_JUDGEMENT:"RJ",UNKNOWN:"RJ",UNDEFINED:"RJ"},$O={"mt-8":"","py-4":"","md:py-8":"","lg:py-10":"","w-full":"",flex:"","justify-center":"","items-center":""},HO={"text-center":"","w-full":""},WO=Wt("div",{"i-ion-balloon-sharp":"","mr-4":"","h-8":""},null,-1),zO=Wt("p",{"my-6":"","text-gray-500":"","dark:text-gray-400":"","w-full":"",flex:"","justify-center":""}," Open-source project of ICPC/CCPC Standings. ",-1),jO={"mb-6":"","w-full":"",flex:"","flex-wrap":"","items-center":"","justify-center":"","text-gray-900":"","dark:text-white":""},GO={"mr-4":"","md:mr-6":""},VO=["href"],YO={flex:"","justify-center":"","items-start":"","flex-col":""},KO={"mr-4":"","md:mr-6":""},qO=Wt("a",{href:"mailto:hi@dup4.com","hover:underline":""}," Contact ",-1),QO={flex:"","justify-center":"","items-start":"","flex-col":""},XO={"text-sm":"","text-gray-500":"","sm:text-center":"","dark:text-gray-400":"","w-full":""},JO=vs({__name:"Footer",setup(t){return(n,s)=>{const a=Cl("RouterLink"),r=q6;return pn(),Qn("footer",$O,[Wt("div",HO,[Kr(a,{flex:"","items-center":"","justify-center":"","text-2xl":"","font-semibold":"","text-gray-900":"","dark:text-white":"",to:"/"},{default:As(()=>[WO,tc(" Get more balloons ")]),_:1}),zO,Wt("ul",jO,[Wt("li",null,[Kr(a,{to:"/","mr-4":"","md:mr-6":"","hover:underline":""},{default:As(()=>[tc(" Home ")]),_:1})]),Wt("li",null,[Wt("div",GO,[Kr(r,null,{popper:As(()=>[Wt("div",YO,[Wt("div",null,"Tag: "+as(mr(LO)),1),Wt("div",null,"Sha: "+as(mr(BO)),1)])]),default:As(()=>[Wt("a",{href:mr(X6),"hover:underline":"",rel:"noreferrer",target:"_blank",title:"GitHub"}," GitHub ",8,VO)]),_:1})])]),Wt("li",null,[Wt("div",KO,[Kr(r,null,{popper:As(()=>[Wt("div",QO,[Wt("div",null,"CDN Host: "+as("CDN_HOST"in n?n.CDN_HOST:mr(NO)),1),Wt("div",null,"DATA Host: "+as("DATA_HOST"in n?n.DATA_HOST:mr(Q6)),1),Wt("div",null,"Data Region: "+as("DATA_REGION"in n?n.DATA_REGION:mr(MO)),1)])]),default:As(()=>[qO]),_:1})])])]),Wt("span",XO,[tc("© 2020-PRESENT "),Kr(a,{to:"/","hover:underline":""},{default:As(()=>[tc("XCPCIO™")]),_:1}),tc(". All Rights Reserved.")])])])}}});function lc(t){return Dv()?(Hy(t),!0):!1}function T_(){const t=new Set,n=r=>{t.delete(r)};return{on:r=>{t.add(r);const e=()=>n(r);return lc(e),{off:e}},off:n,trigger:r=>Promise.all(Array.from(t).map(e=>e(r)))}}function Ti(t){return typeof t=="function"?t():mr(t)}const D1=typeof window<"u",ZO=t=>typeof t<"u",e9=t=>t!=null,Nf=()=>{};function J6(t,n){function s(...a){return new Promise((r,e)=>{Promise.resolve(t(()=>n.apply(this,a),{fn:n,thisArg:this,args:a})).then(r).catch(e)})}return s}const Z6=t=>t();function t9(t,n=!0,s=!0,a=!1){let r=0,e,d=!0,_=Nf,y;const E=()=>{e&&(clearTimeout(e),e=void 0,_(),_=Nf)};return A=>{const R=Ti(t),L=Date.now()-r,B=()=>y=A();return E(),R<=0?(r=Date.now(),B()):(L>R&&(s||!d)?(r=Date.now(),B()):n&&(y=new Promise((P,V)=>{_=a?V:P,e=setTimeout(()=>{r=Date.now(),d=!0,P(B()),E()},Math.max(0,R-L))})),!s&&!e&&(e=setTimeout(()=>d=!0,R)),d=!1,y)}}function r9(t=Z6){const n=ur(!0);function s(){n.value=!1}function a(){n.value=!0}const r=(...e)=>{n.value&&t(...e)};return{isActive:Oh(n),pause:s,resume:a,eventFilter:r}}function Yw(t,n=!1,s="Timeout"){return new Promise((a,r)=>{setTimeout(n?()=>r(s):a,t)})}function n9(t,...n){return n.some(s=>s in t)}function ig(...t){if(t.length!==1)return LE(...t);const n=t[0];return typeof n=="function"?Oh(qy(()=>({get:n,set:Nf}))):ur(n)}function rL(t,n=200,s=!1,a=!0,r=!1){return J6(t9(n,s,a,r),t)}function i9(t,n=!0){Os()?Sl(t):n?t():uc(t)}function yy(t,n=!1){function s(A,{flush:R="sync",deep:L=!1,timeout:B,throwOnTimeout:P}={}){let V=null;const q=[new Promise(oe=>{V=Zn(t,K=>{A(K)!==n&&(V==null||V(),oe(K))},{flush:R,deep:L,immediate:!0})})];return B!=null&&q.push(Yw(B,P).then(()=>Ti(t)).finally(()=>V==null?void 0:V())),Promise.race(q)}function a(A,R){if(!$n(A))return s(K=>K===A,R);const{flush:L="sync",deep:B=!1,timeout:P,throwOnTimeout:V}=R??{};let z=null;const oe=[new Promise(K=>{z=Zn([t,A],([G,ne])=>{n!==(G===ne)&&(z==null||z(),K(G))},{flush:L,deep:B,immediate:!0})})];return P!=null&&oe.push(Yw(P,V).then(()=>Ti(t)).finally(()=>(z==null||z(),Ti(t)))),Promise.race(oe)}function r(A){return s(R=>!!R,A)}function e(A){return a(null,A)}function d(A){return a(void 0,A)}function _(A){return s(Number.isNaN,A)}function y(A,R){return s(L=>{const B=Array.from(L);return B.includes(A)||B.includes(Ti(A))},R)}function E(A){return T(1,A)}function T(A=1,R){let L=-1;return s(()=>(L+=1,L>=A),R)}return Array.isArray(Ti(t))?{toMatch:s,toContains:y,changed:E,changedTimes:T,get not(){return yy(t,!n)}}:{toMatch:s,toBe:a,toBeTruthy:r,toBeNull:e,toBeNaN:_,toBeUndefined:d,changed:E,changedTimes:T,get not(){return yy(t,!n)}}}function s9(t){return yy(t)}function a9(t,n=1e3,s={}){const{immediate:a=!0,immediateCallback:r=!1}=s;let e=null;const d=ur(!1);function _(){e&&(clearInterval(e),e=null)}function y(){d.value=!1,_()}function E(){const T=Ti(n);T<=0||(d.value=!0,r&&t(),_(),e=setInterval(t,T))}if(a&&D1&&E(),$n(n)||typeof n=="function"){const T=Zn(n,()=>{d.value&&D1&&E()});lc(T)}return lc(y),{isActive:d,pause:y,resume:E}}function e5(t,n,s={}){const{immediate:a=!0}=s,r=ur(!1);let e=null;function d(){e&&(clearTimeout(e),e=null)}function _(){r.value=!1,d()}function y(...E){d(),r.value=!0,e=setTimeout(()=>{r.value=!1,e=null,t(...E)},Ti(n))}return a&&(r.value=!0,D1&&y()),lc(_),{isPending:Oh(r),start:y,stop:_}}function o9(t=!1,n={}){const{truthyValue:s=!0,falsyValue:a=!1}=n,r=$n(t),e=ur(t);function d(_){if(arguments.length)return e.value=_,e.value;{const y=Ti(s);return e.value=e.value===y?Ti(a):y,e.value}}return r?d:[e,d]}var Kw=Object.getOwnPropertySymbols,l9=Object.prototype.hasOwnProperty,c9=Object.prototype.propertyIsEnumerable,u9=(t,n)=>{var s={};for(var a in t)l9.call(t,a)&&n.indexOf(a)<0&&(s[a]=t[a]);if(t!=null&&Kw)for(var a of Kw(t))n.indexOf(a)<0&&c9.call(t,a)&&(s[a]=t[a]);return s};function f9(t,n,s={}){const a=s,{eventFilter:r=Z6}=a,e=u9(a,["eventFilter"]);return Zn(t,J6(r,n),e)}var h9=Object.defineProperty,d9=Object.defineProperties,p9=Object.getOwnPropertyDescriptors,lv=Object.getOwnPropertySymbols,t5=Object.prototype.hasOwnProperty,r5=Object.prototype.propertyIsEnumerable,qw=(t,n,s)=>n in t?h9(t,n,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[n]=s,g9=(t,n)=>{for(var s in n||(n={}))t5.call(n,s)&&qw(t,s,n[s]);if(lv)for(var s of lv(n))r5.call(n,s)&&qw(t,s,n[s]);return t},m9=(t,n)=>d9(t,p9(n)),v9=(t,n)=>{var s={};for(var a in t)t5.call(t,a)&&n.indexOf(a)<0&&(s[a]=t[a]);if(t!=null&&lv)for(var a of lv(t))n.indexOf(a)<0&&r5.call(t,a)&&(s[a]=t[a]);return s};function b9(t,n,s={}){const a=s,{eventFilter:r}=a,e=v9(a,["eventFilter"]),{eventFilter:d,pause:_,resume:y,isActive:E}=r9(r);return{stop:f9(t,n,m9(g9({},e),{eventFilter:d})),pause:_,resume:y,isActive:E}}function Jd(t){var n;const s=Ti(t);return(n=s==null?void 0:s.$el)!=null?n:s}const bo=D1?window:void 0,n5=D1?window.document:void 0,_9=D1?window.navigator:void 0;function rc(...t){let n,s,a,r;if(typeof t[0]=="string"||Array.isArray(t[0])?([s,a,r]=t,n=bo):[n,s,a,r]=t,!n)return Nf;Array.isArray(s)||(s=[s]),Array.isArray(a)||(a=[a]);const e=[],d=()=>{e.forEach(T=>T()),e.length=0},_=(T,A,R,L)=>(T.addEventListener(A,R,L),()=>T.removeEventListener(A,R,L)),y=Zn(()=>[Jd(n),Ti(r)],([T,A])=>{d(),T&&e.push(...s.flatMap(R=>a.map(L=>_(T,R,L,A))))},{immediate:!0,flush:"post"}),E=()=>{y(),d()};return lc(E),E}function y9(t){return typeof t=="function"?t:typeof t=="string"?n=>n.key===t:Array.isArray(t)?n=>t.includes(n.key):()=>!0}function nL(...t){let n,s,a={};t.length===3?(n=t[0],s=t[1],a=t[2]):t.length===2?typeof t[1]=="object"?(n=!0,s=t[0],a=t[1]):(n=t[0],s=t[1]):(n=!0,s=t[0]);const{target:r=bo,eventName:e="keydown",passive:d=!1,dedupe:_=!1}=a,y=y9(n);return rc(r,e,T=>{T.repeat&&Ti(_)||y(T)&&s(T)},d)}function w9(){const t=ur(!1);return Os()&&Sl(()=>{t.value=!0}),t}function jv(t){const n=w9();return cn(()=>(n.value,!!t()))}function D9(t,n={}){const{immediate:s=!0,window:a=bo}=n,r=ur(!1);let e=0,d=null;function _(T){if(!r.value||!a)return;const A=T-(e||T);t({delta:A,timestamp:T}),e=T,d=a.requestAnimationFrame(_)}function y(){!r.value&&a&&(r.value=!0,d=a.requestAnimationFrame(_))}function E(){r.value=!1,d!=null&&a&&(a.cancelAnimationFrame(d),d=null)}return s&&y(),lc(E),{isActive:Oh(r),pause:E,resume:y}}function E9(t,n={}){const{window:s=bo}=n,a=jv(()=>s&&"matchMedia"in s&&typeof s.matchMedia=="function");let r;const e=ur(!1),d=E=>{e.value=E.matches},_=()=>{r&&("removeEventListener"in r?r.removeEventListener("change",d):r.removeListener(d))},y=e4(()=>{a.value&&(_(),r=s.matchMedia(Ti(t)),"addEventListener"in r?r.addEventListener("change",d):r.addListener(d),e.value=r.matches)});return lc(()=>{y(),_(),r=void 0}),e}function iL(t={}){const{navigator:n=_9,read:s=!1,source:a,copiedDuring:r=1500,legacy:e=!1}=t,d=jv(()=>n&&"clipboard"in n),_=cn(()=>d.value||e),y=ur(""),E=ur(!1),T=e5(()=>E.value=!1,r);function A(){d.value?n.clipboard.readText().then(P=>{y.value=P}):y.value=B()}_.value&&s&&rc(["copy","cut"],A);async function R(P=Ti(a)){_.value&&P!=null&&(d.value?await n.clipboard.writeText(P):L(P),y.value=P,E.value=!0,T.start())}function L(P){const V=document.createElement("textarea");V.value=P??"",V.style.position="absolute",V.style.opacity="0",document.body.appendChild(V),V.select(),document.execCommand("copy"),V.remove()}function B(){var P,V,z;return(z=(V=(P=document==null?void 0:document.getSelection)==null?void 0:P.call(document))==null?void 0:V.toString())!=null?z:""}return{isSupported:_,text:y,copied:E,copy:R}}function F9(t){return JSON.parse(JSON.stringify(t))}const x2=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},T2="__vueuse_ssr_handlers__",x9=T9();function T9(){return T2 in x2||(x2[T2]=x2[T2]||{}),x2[T2]}function i5(t,n){return x9[t]||n}function C9(t){return t==null?"any":t instanceof Set?"set":t instanceof Map?"map":t instanceof Date?"date":typeof t=="boolean"?"boolean":typeof t=="string"?"string":typeof t=="object"?"object":Number.isNaN(t)?"any":"number"}var A9=Object.defineProperty,Qw=Object.getOwnPropertySymbols,S9=Object.prototype.hasOwnProperty,k9=Object.prototype.propertyIsEnumerable,Xw=(t,n,s)=>n in t?A9(t,n,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[n]=s,Jw=(t,n)=>{for(var s in n||(n={}))S9.call(n,s)&&Xw(t,s,n[s]);if(Qw)for(var s of Qw(n))k9.call(n,s)&&Xw(t,s,n[s]);return t};const O9={boolean:{read:t=>t==="true",write:t=>String(t)},object:{read:t=>JSON.parse(t),write:t=>JSON.stringify(t)},number:{read:t=>Number.parseFloat(t),write:t=>String(t)},any:{read:t=>t,write:t=>String(t)},string:{read:t=>t,write:t=>String(t)},map:{read:t=>new Map(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t.entries()))},set:{read:t=>new Set(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t))},date:{read:t=>new Date(t),write:t=>t.toISOString()}},Zw="vueuse-storage";function R9(t,n,s,a={}){var r;const{flush:e="pre",deep:d=!0,listenToStorageChanges:_=!0,writeDefaults:y=!0,mergeDefaults:E=!1,shallow:T,window:A=bo,eventFilter:R,onError:L=U=>{console.error(U)}}=a,B=(T?qd:ur)(n);if(!s)try{s=i5("getDefaultStorage",()=>{var U;return(U=bo)==null?void 0:U.localStorage})()}catch(U){L(U)}if(!s)return B;const P=Ti(n),V=C9(P),z=(r=a.serializer)!=null?r:O9[V],{pause:q,resume:oe}=b9(B,()=>K(B.value),{flush:e,deep:d,eventFilter:R});return A&&_&&(rc(A,"storage",ce),rc(A,Zw,ne)),ce(),B;function K(U){try{if(U==null)s.removeItem(t);else{const W=z.write(U),te=s.getItem(t);te!==W&&(s.setItem(t,W),A&&A.dispatchEvent(new CustomEvent(Zw,{detail:{key:t,oldValue:te,newValue:W,storageArea:s}})))}}catch(W){L(W)}}function G(U){const W=U?U.newValue:s.getItem(t);if(W==null)return y&&P!==null&&s.setItem(t,z.write(P)),P;if(!U&&E){const te=z.read(W);return typeof E=="function"?E(te,P):V==="object"&&!Array.isArray(te)?Jw(Jw({},P),te):te}else return typeof W!="string"?W:z.read(W)}function ne(U){ce(U.detail)}function ce(U){if(!(U&&U.storageArea!==s)){if(U&&U.key==null){B.value=P;return}if(!(U&&U.key!==t)){q();try{B.value=G(U)}catch(W){L(W)}finally{U?uc(oe):oe()}}}}}function s5(t){return E9("(prefers-color-scheme: dark)",t)}var I9=Object.defineProperty,eD=Object.getOwnPropertySymbols,P9=Object.prototype.hasOwnProperty,N9=Object.prototype.propertyIsEnumerable,tD=(t,n,s)=>n in t?I9(t,n,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[n]=s,M9=(t,n)=>{for(var s in n||(n={}))P9.call(n,s)&&tD(t,s,n[s]);if(eD)for(var s of eD(n))N9.call(n,s)&&tD(t,s,n[s]);return t};function L9(t={}){const{selector:n="html",attribute:s="class",initialValue:a="auto",window:r=bo,storage:e,storageKey:d="vueuse-color-scheme",listenToStorageChanges:_=!0,storageRef:y,emitAuto:E,disableTransition:T=!0}=t,A=M9({auto:"",light:"light",dark:"dark"},t.modes||{}),R=s5({window:r}),L=cn(()=>R.value?"dark":"light"),B=y||(d==null?ig(a):R9(d,a,e,{window:r,listenToStorageChanges:_})),P=cn(()=>B.value==="auto"?L.value:B.value),V=i5("updateHTMLAttrs",(K,G,ne)=>{const ce=typeof K=="string"?r==null?void 0:r.document.querySelector(K):Jd(K);if(!ce)return;let U;if(T){U=r.document.createElement("style");const W="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";U.appendChild(document.createTextNode(W)),r.document.head.appendChild(U)}if(G==="class"){const W=ne.split(/\s/g);Object.values(A).flatMap(te=>(te||"").split(/\s/g)).filter(Boolean).forEach(te=>{W.includes(te)?ce.classList.add(te):ce.classList.remove(te)})}else ce.setAttribute(G,ne);T&&(r.getComputedStyle(U).opacity,document.head.removeChild(U))});function z(K){var G;V(n,s,(G=A[K])!=null?G:K)}function q(K){t.onChanged?t.onChanged(K,z):z(K)}Zn(P,q,{flush:"post",immediate:!0}),i9(()=>q(P.value));const oe=cn({get(){return E?B.value:P.value},set(K){B.value=K}});try{return Object.assign(oe,{store:B,system:L,state:P})}catch{return oe}}var rD=Object.getOwnPropertySymbols,B9=Object.prototype.hasOwnProperty,U9=Object.prototype.propertyIsEnumerable,$9=(t,n)=>{var s={};for(var a in t)B9.call(t,a)&&n.indexOf(a)<0&&(s[a]=t[a]);if(t!=null&&rD)for(var a of rD(t))n.indexOf(a)<0&&U9.call(t,a)&&(s[a]=t[a]);return s};function H9(t,n,s={}){const a=s,{window:r=bo}=a,e=$9(a,["window"]);let d;const _=jv(()=>r&&"MutationObserver"in r),y=()=>{d&&(d.disconnect(),d=void 0)},E=Zn(()=>Jd(t),A=>{y(),_.value&&r&&A&&(d=new MutationObserver(n),d.observe(A,e))},{immediate:!0}),T=()=>{y(),E()};return lc(T),{isSupported:_,stop:T}}var W9=Object.defineProperty,z9=Object.defineProperties,j9=Object.getOwnPropertyDescriptors,nD=Object.getOwnPropertySymbols,G9=Object.prototype.hasOwnProperty,V9=Object.prototype.propertyIsEnumerable,iD=(t,n,s)=>n in t?W9(t,n,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[n]=s,Y9=(t,n)=>{for(var s in n||(n={}))G9.call(n,s)&&iD(t,s,n[s]);if(nD)for(var s of nD(n))V9.call(n,s)&&iD(t,s,n[s]);return t},K9=(t,n)=>z9(t,j9(n));function q9(t={}){const{valueDark:n="dark",valueLight:s=""}=t,a=L9(K9(Y9({},t),{onChanged:(e,d)=>{var _;t.onChanged?(_=t.onChanged)==null||_.call(t,e==="dark",d,e):d(e)},modes:{dark:n,light:s}}));return cn({get(){return a.value==="dark"},set(e){const d=e?"dark":"light";a.system.value===d?a.value="auto":a.value=d}})}function sL({document:t=n5}={}){if(!t)return ur("visible");const n=ur(t.visibilityState);return rc(t,"visibilitychange",()=>{n.value=t.visibilityState}),n}function Q9(t,n,s={}){const{root:a,rootMargin:r="0px",threshold:e=.1,window:d=bo,immediate:_=!0}=s,y=jv(()=>d&&"IntersectionObserver"in d),E=cn(()=>{const B=Ti(t);return(Array.isArray(B)?B:[B]).map(Jd).filter(e9)});let T=Nf;const A=ur(_),R=y.value?Zn(()=>[E.value,Jd(a),A.value],([B,P])=>{if(T(),!A.value||!B.length)return;const V=new IntersectionObserver(n,{root:Jd(P),rootMargin:r,threshold:e});B.forEach(z=>z&&V.observe(z)),T=()=>{V.disconnect(),T=Nf}},{immediate:_,flush:"post"}):Nf,L=()=>{T(),R(),A.value=!1};return lc(L),{isSupported:y,isActive:A,pause(){T(),A.value=!1},resume(){A.value=!0},stop:L}}function X9(t,{window:n=bo,scrollTarget:s}={}){const a=ur(!1);return Q9(t,([{isIntersecting:r}])=>{a.value=r},{root:s,window:n}),a}var J9=Object.defineProperty,Z9=Object.defineProperties,eR=Object.getOwnPropertyDescriptors,sD=Object.getOwnPropertySymbols,tR=Object.prototype.hasOwnProperty,rR=Object.prototype.propertyIsEnumerable,aD=(t,n,s)=>n in t?J9(t,n,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[n]=s,Ha=(t,n)=>{for(var s in n||(n={}))tR.call(n,s)&&aD(t,s,n[s]);if(sD)for(var s of sD(n))rR.call(n,s)&&aD(t,s,n[s]);return t},Up=(t,n)=>Z9(t,eR(n));const nR={json:"application/json",text:"text/plain"};function oD(t){return t&&n9(t,"immediate","refetch","initialData","timeout","beforeFetch","afterFetch","onFetchError","fetch")}function C_(t){return typeof Headers<"u"&&t instanceof Headers?Object.fromEntries([...t.entries()]):t}function iR(t,...n){var s;const a=typeof AbortController=="function";let r={},e={immediate:!0,refetch:!1,timeout:0};const d={method:"GET",type:"text",payload:void 0};n.length>0&&(oD(n[0])?e=Ha(Ha({},e),n[0]):r=n[0]),n.length>1&&oD(n[1])&&(e=Ha(Ha({},e),n[1]));const{fetch:_=(s=bo)==null?void 0:s.fetch,initialData:y,timeout:E}=e,T=T_(),A=T_(),R=T_(),L=ur(!1),B=ur(!1),P=ur(!1),V=ur(null),z=qd(null),q=qd(null),oe=qd(y||null),K=cn(()=>a&&B.value);let G,ne;const ce=()=>{a&&(G==null||G.abort(),G=new AbortController,G.signal.onabort=()=>P.value=!0,r=Up(Ha({},r),{signal:G.signal}))},U=$e=>{B.value=$e,L.value=!$e};E&&(ne=e5(ce,E,{immediate:!1}));const W=async($e=!1)=>{var je;ce(),U(!0),q.value=null,V.value=null,P.value=!1;const Ee={method:d.method,headers:{}};if(d.payload){const de=C_(Ee.headers),Se=Ti(d.payload);!d.payloadType&&Se&&Object.getPrototypeOf(Se)===Object.prototype&&!(Se instanceof FormData)&&(d.payloadType="json"),d.payloadType&&(de["Content-Type"]=(je=nR[d.payloadType])!=null?je:d.payloadType),Ee.body=d.payloadType==="json"?JSON.stringify(Se):Se}let lt=!1;const Xe={url:Ti(t),options:Ha(Ha({},Ee),r),cancel:()=>{lt=!0}};if(e.beforeFetch&&Object.assign(Xe,await e.beforeFetch(Xe)),lt||!_)return U(!1),Promise.resolve(null);let Je=null;return ne&&ne.start(),new Promise((de,Se)=>{var rt;_(Xe.url,Up(Ha(Ha({},Ee),Xe.options),{headers:Ha(Ha({},C_(Ee.headers)),C_((rt=Xe.options)==null?void 0:rt.headers))})).then(async We=>{if(z.value=We,V.value=We.status,Je=await We[d.type](),!We.ok)throw oe.value=y||null,new Error(We.statusText);return e.afterFetch&&({data:Je}=await e.afterFetch({data:Je,response:We})),oe.value=Je,T.trigger(We),de(We)}).catch(async We=>{let Fe=We.message||We.name;return e.onFetchError&&({error:Fe}=await e.onFetchError({data:Je,error:We,response:z.value})),q.value=Fe,A.trigger(We),$e?Se(We):de(null)}).finally(()=>{U(!1),ne&&ne.stop(),R.trigger(null)})})},te=ig(e.refetch);Zn([te,ig(t)],([$e])=>$e&&W(),{deep:!0});const fe={isFinished:L,statusCode:V,response:z,error:q,data:oe,isFetching:B,canAbort:K,aborted:P,abort:ce,execute:W,onFetchResponse:T.on,onFetchError:A.on,onFetchFinally:R.on,get:xe("GET"),put:xe("PUT"),post:xe("POST"),delete:xe("DELETE"),patch:xe("PATCH"),head:xe("HEAD"),options:xe("OPTIONS"),json:be("json"),text:be("text"),blob:be("blob"),arrayBuffer:be("arrayBuffer"),formData:be("formData")};function xe($e){return(je,Ee)=>{if(!B.value)return d.method=$e,d.payload=je,d.payloadType=Ee,$n(d.payload)&&Zn([te,ig(d.payload)],([lt])=>lt&&W(),{deep:!0}),Up(Ha({},fe),{then(lt,Xe){return _e().then(lt,Xe)}})}}function _e(){return new Promise(($e,je)=>{s9(L).toBe(!0).then(()=>$e(fe)).catch(Ee=>je(Ee))})}function be($e){return()=>{if(!B.value)return d.type=$e,Up(Ha({},fe),{then(je,Ee){return _e().then(je,Ee)}})}}return e.immediate&&Promise.resolve().then(()=>W()),Up(Ha({},fe),{then($e,je){return _e().then($e,je)}})}const sR={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function aL(t={}){const{reactive:n=!1,target:s=bo,aliasMap:a=sR,passive:r=!0,onEventFired:e=Nf}=t,d=Hf(new Set),_={toJSON(){return{}},current:d},y=n?Hf(_):_,E=new Set,T=new Set;function A(P,V){P in y&&(n?y[P]=V:y[P].value=V)}function R(){d.clear();for(const P of T)A(P,!1)}function L(P,V){var z,q;const oe=(z=P.key)==null?void 0:z.toLowerCase(),G=[(q=P.code)==null?void 0:q.toLowerCase(),oe].filter(Boolean);oe&&(V?d.add(oe):d.delete(oe));for(const ne of G)T.add(ne),A(ne,V);oe==="meta"&&!V?(E.forEach(ne=>{d.delete(ne),A(ne,!1)}),E.clear()):typeof P.getModifierState=="function"&&P.getModifierState("Meta")&&V&&[...d,...G].forEach(ne=>E.add(ne))}rc(s,"keydown",P=>(L(P,!0),e(P)),{passive:r}),rc(s,"keyup",P=>(L(P,!1),e(P)),{passive:r}),rc("blur",R,{passive:!0}),rc("focus",R,{passive:!0});const B=new Proxy(y,{get(P,V,z){if(typeof V!="string")return Reflect.get(P,V,z);if(V=V.toLowerCase(),V in a&&(V=a[V]),!(V in y))if(/[+_-]/.test(V)){const oe=V.split(/[+_-]/g).map(K=>K.trim());y[V]=cn(()=>oe.every(K=>Ti(B[K])))}else y[V]=ur(!1);const q=Reflect.get(P,V,z);return n?Ti(q):q}});return B}var aR=Object.defineProperty,lD=Object.getOwnPropertySymbols,oR=Object.prototype.hasOwnProperty,lR=Object.prototype.propertyIsEnumerable,cD=(t,n,s)=>n in t?aR(t,n,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[n]=s,cR=(t,n)=>{for(var s in n||(n={}))oR.call(n,s)&&cD(t,s,n[s]);if(lD)for(var s of lD(n))lR.call(n,s)&&cD(t,s,n[s]);return t};function a5(t={}){const{controls:n=!1,interval:s="requestAnimationFrame"}=t,a=ur(new Date),r=()=>a.value=new Date,e=s==="requestAnimationFrame"?D9(r,{immediate:!0}):a9(r,s,{immediate:!0});return n?cR({now:a},e):a}function uR(t=null,n={}){var s,a;const{document:r=n5}=n,e=ig((s=t??(r==null?void 0:r.title))!=null?s:null),d=t&&typeof t=="function";function _(y){if(!("titleTemplate"in n))return y;const E=n.titleTemplate||"%s";return typeof E=="function"?E(y):Ti(E).replace(/%s/g,y)}return Zn(e,(y,E)=>{y!==E&&r&&(r.title=_(typeof y=="string"?y:""))},{immediate:!0}),n.observe&&!n.titleTemplate&&r&&!d&&H9((a=r.head)==null?void 0:a.querySelector("title"),()=>{r&&r.title!==e.value&&(e.value=_(r.title))},{childList:!0}),e}function uD(t,n,s,a={}){var r,e,d;const{clone:_=!1,passive:y=!1,eventName:E,deep:T=!1,defaultValue:A,shouldEmit:R}=a,L=Os(),B=s||(L==null?void 0:L.emit)||((r=L==null?void 0:L.$emit)==null?void 0:r.bind(L))||((d=(e=L==null?void 0:L.proxy)==null?void 0:e.$emit)==null?void 0:d.bind(L==null?void 0:L.proxy));let P=E;n||(n="modelValue"),P=P||`update:${n.toString()}`;const V=oe=>_?typeof _=="function"?_(oe):F9(oe):oe,z=()=>ZO(t[n])?V(t[n]):A,q=oe=>{R?R(oe)&&B(P,oe):B(P,oe)};if(y){const oe=z(),K=ur(oe);return Zn(()=>t[n],G=>K.value=V(G)),Zn(K,G=>{(G!==t[n]||T)&&q(G)},{deep:T}),K}else return cn({get(){return z()},set(oe){q(oe)}})}function fR({window:t=bo}={}){if(!t)return{x:ur(0),y:ur(0)};const n=ur(t.scrollX),s=ur(t.scrollY);return rc(t,"scroll",()=>{n.value=t.scrollX,s.value=t.scrollY},{capture:!1,passive:!0}),{x:n,y:s}}const o5=q9(),hR=o9(o5),dR=s5(),Nh=t=>(Ov("data-v-e157f5ef"),t=t(),Rv(),t),pR=Nh(()=>Wt("div",{"i-ri-arrow-up-line":""},null,-1)),gR=[pR],mR=Nh(()=>Wt("div",{class:"spacer"},null,-1)),vR={class:"right","print:op0":""},bR=Nh(()=>Wt("div",{"i-ion-balloon-sharp":""},null,-1)),_R=["title"],yR=Nh(()=>Wt("div",{"i-carbon-language":""},null,-1)),wR=[yR],DR=["title"],ER=Nh(()=>Wt("div",{i:"carbon-sun dark:carbon-moon"},null,-1)),FR=[ER],xR=["href"],TR=Nh(()=>Wt("div",{"i-carbon-logo-github":""},null,-1)),CR=[TR],AR=["href"],SR=Nh(()=>Wt("div",{"i-simple-icons-githubsponsors":""},null,-1)),kR=[SR],OR=vs({__name:"NavBar",props:{width:null},setup(t){const n=t,{t:s,locale:a}=T1(),{y:r}=fR(),e=x6();function d(){window.scrollTo({top:0,behavior:"smooth"})}async function _(){const E=s6,T=E[(E.indexOf(a.value)+1)%E.length];await _4(T),a.value=T}const y=cn(()=>e.fullPath.startsWith("/rating")?"/rating":"/");return(E,T)=>{const A=Cl("RouterLink");return pn(),Qn("header",{class:Fa(["header z-40",[(n==null?void 0:n.width)??""]])},[Wt("button",{title:"Scroll to top",fixed:"","bottom-6":"","right-6":"","z-100":"","h-10":"","w-10":"","rounded-full":"",transition:"","duration-300":"","print:hidden":"","hover-bg-hex-8883":"","hover:op100":"",class:Fa(mr(r)>300?"op30":"op0! pointer-events-none"),onClick:T[0]||(T[0]=R=>d())},gR,2),Wt("nav",{class:Fa(["nav",[n!=null&&n.width?"":"fixed"]]),"text-xl":""},[mR,Wt("div",vR,[Kr(A,{"icon-btn":"",title:mr(s)("button.home"),to:mr(y),focusable:"false"},{default:As(()=>[bR]),_:1},8,["title","to"]),Wt("a",{"icon-btn":"",title:mr(s)("button.toggle_langs"),onClick:T[1]||(T[1]=R=>_())},wR,8,_R),Wt("a",{"icon-btn":"",title:mr(s)("button.toggle_dark"),onClick:T[2]||(T[2]=R=>("toggleDark"in E?E.toggleDark:mr(hR))())},FR,8,DR),Wt("a",{"icon-btn":"",rel:"noreferrer",href:mr(X6),target:"_blank",title:"GitHub"},CR,8,xR),Wt("a",{"icon-btn":"",rel:"noreferrer",href:mr(UO),target:"_blank",title:"GitHub"},kR,8,AR)])],2)],2)}}});const C1=(t,n)=>{const s=t.__vccOpts||t;for(const[a,r]of n)s[a]=r;return s},RR=C1(OR,[["__scopeId","data-v-e157f5ef"]]),IR={},PR={"py-10":"","text-gray-700":"","dark:text-gray-200":""};function NR(t,n){const s=RR,a=Cl("RouterView"),r=JO;return pn(),Qn(Ui,null,[Kr(s),Wt("main",PR,[Kr(a),Kr(r)])],64)}const MR=C1(IR,[["render",NR]]),LR={"board-layout":()=>Zs(()=>import("./board-layout-74a77f38.js"),[],import.meta.url),default:MR,headless:()=>Zs(()=>import("./headless-54fb8186.js"),[],import.meta.url),home:()=>Zs(()=>import("./home-9515d6d7.js"),[],import.meta.url),"index-layout":()=>Zs(()=>import("./index-layout-2b7977ec.js"),[],import.meta.url)};function BR(t){return t.map(n=>{var s;return{path:n.path,meta:n.meta,component:LR[((s=n.meta)==null?void 0:s.layout)||"default"],children:n.path==="/"?[n]:[{...n,path:""}]}})}const UR=["top","right","bottom","left"],fD=["start","end"],hD=UR.reduce((t,n)=>t.concat(n,n+"-"+fD[0],n+"-"+fD[1]),[]),Eg=Math.min,ch=Math.max,$R={left:"right",right:"left",bottom:"top",top:"bottom"},HR={start:"end",end:"start"};function wy(t,n,s){return ch(t,Eg(n,s))}function Mh(t,n){return typeof t=="function"?t(n):t}function cc(t){return t.split("-")[0]}function Tl(t){return t.split("-")[1]}function l5(t){return t==="x"?"y":"x"}function W4(t){return t==="y"?"height":"width"}function zg(t){return["top","bottom"].includes(cc(t))?"y":"x"}function z4(t){return l5(zg(t))}function c5(t,n,s){s===void 0&&(s=!1);const a=Tl(t),r=z4(t),e=W4(r);let d=r==="x"?a===(s?"end":"start")?"right":"left":a==="start"?"bottom":"top";return n.reference[e]>n.floating[e]&&(d=uv(d)),[d,uv(d)]}function WR(t){const n=uv(t);return[cv(t),n,cv(n)]}function cv(t){return t.replace(/start|end/g,n=>HR[n])}function zR(t,n,s){const a=["left","right"],r=["right","left"],e=["top","bottom"],d=["bottom","top"];switch(t){case"top":case"bottom":return s?n?r:a:n?a:r;case"left":case"right":return n?e:d;default:return[]}}function jR(t,n,s,a){const r=Tl(t);let e=zR(cc(t),s==="start",a);return r&&(e=e.map(d=>d+"-"+r),n&&(e=e.concat(e.map(cv)))),e}function uv(t){return t.replace(/left|right|bottom|top/g,n=>$R[n])}function GR(t){return{top:0,right:0,bottom:0,left:0,...t}}function u5(t){return typeof t!="number"?GR(t):{top:t,right:t,bottom:t,left:t}}function sg(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function dD(t,n,s){let{reference:a,floating:r}=t;const e=zg(n),d=z4(n),_=W4(d),y=cc(n),E=e==="y",T=a.x+a.width/2-r.width/2,A=a.y+a.height/2-r.height/2,R=a[_]/2-r[_]/2;let L;switch(y){case"top":L={x:T,y:a.y-r.height};break;case"bottom":L={x:T,y:a.y+a.height};break;case"right":L={x:a.x+a.width,y:A};break;case"left":L={x:a.x-r.width,y:A};break;default:L={x:a.x,y:a.y}}switch(Tl(n)){case"start":L[d]-=R*(s&&E?-1:1);break;case"end":L[d]+=R*(s&&E?-1:1);break}return L}const VR=async(t,n,s)=>{const{placement:a="bottom",strategy:r="absolute",middleware:e=[],platform:d}=s,_=e.filter(Boolean),y=await(d.isRTL==null?void 0:d.isRTL(n));let E=await d.getElementRects({reference:t,floating:n,strategy:r}),{x:T,y:A}=dD(E,a,y),R=a,L={},B=0;for(let P=0;P<_.length;P++){const{name:V,fn:z}=_[P],{x:q,y:oe,data:K,reset:G}=await z({x:T,y:A,initialPlacement:a,placement:R,strategy:r,middlewareData:L,rects:E,platform:d,elements:{reference:t,floating:n}});if(T=q??T,A=oe??A,L={...L,[V]:{...L[V],...K}},G&&B<=50){B++,typeof G=="object"&&(G.placement&&(R=G.placement),G.rects&&(E=G.rects===!0?await d.getElementRects({reference:t,floating:n,strategy:r}):G.rects),{x:T,y:A}=dD(E,R,y)),P=-1;continue}}return{x:T,y:A,placement:R,strategy:r,middlewareData:L}};async function Gv(t,n){var s;n===void 0&&(n={});const{x:a,y:r,platform:e,rects:d,elements:_,strategy:y}=t,{boundary:E="clippingAncestors",rootBoundary:T="viewport",elementContext:A="floating",altBoundary:R=!1,padding:L=0}=Mh(n,t),B=u5(L),V=_[R?A==="floating"?"reference":"floating":A],z=sg(await e.getClippingRect({element:(s=await(e.isElement==null?void 0:e.isElement(V)))==null||s?V:V.contextElement||await(e.getDocumentElement==null?void 0:e.getDocumentElement(_.floating)),boundary:E,rootBoundary:T,strategy:y})),q=A==="floating"?{...d.floating,x:a,y:r}:d.reference,oe=await(e.getOffsetParent==null?void 0:e.getOffsetParent(_.floating)),K=await(e.isElement==null?void 0:e.isElement(oe))?await(e.getScale==null?void 0:e.getScale(oe))||{x:1,y:1}:{x:1,y:1},G=sg(e.convertOffsetParentRelativeRectToViewportRelativeRect?await e.convertOffsetParentRelativeRectToViewportRelativeRect({rect:q,offsetParent:oe,strategy:y}):q);return{top:(z.top-G.top+B.top)/K.y,bottom:(G.bottom-z.bottom+B.bottom)/K.y,left:(z.left-G.left+B.left)/K.x,right:(G.right-z.right+B.right)/K.x}}const YR=t=>({name:"arrow",options:t,async fn(n){const{x:s,y:a,placement:r,rects:e,platform:d,elements:_}=n,{element:y,padding:E=0}=Mh(t,n)||{};if(y==null)return{};const T=u5(E),A={x:s,y:a},R=z4(r),L=W4(R),B=await d.getDimensions(y),P=R==="y",V=P?"top":"left",z=P?"bottom":"right",q=P?"clientHeight":"clientWidth",oe=e.reference[L]+e.reference[R]-A[R]-e.floating[L],K=A[R]-e.reference[R],G=await(d.getOffsetParent==null?void 0:d.getOffsetParent(y));let ne=G?G[q]:0;(!ne||!await(d.isElement==null?void 0:d.isElement(G)))&&(ne=_.floating[q]||e.floating[L]);const ce=oe/2-K/2,U=ne/2-B[L]/2-1,W=Eg(T[V],U),te=Eg(T[z],U),fe=W,xe=ne-B[L]-te,_e=ne/2-B[L]/2+ce,be=wy(fe,_e,xe),je=Tl(r)!=null&&_e!=be&&e.reference[L]/2-(_e<fe?W:te)-B[L]/2<0?_e<fe?fe-_e:xe-_e:0;return{[R]:A[R]-je,data:{[R]:be,centerOffset:_e-be+je}}}});function KR(t,n,s){return(t?[...s.filter(r=>Tl(r)===t),...s.filter(r=>Tl(r)!==t)]:s.filter(r=>cc(r)===r)).filter(r=>t?Tl(r)===t||(n?cv(r)!==r:!1):!0)}const qR=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(n){var s,a,r;const{rects:e,middlewareData:d,placement:_,platform:y,elements:E}=n,{crossAxis:T=!1,alignment:A,allowedPlacements:R=hD,autoAlignment:L=!0,...B}=Mh(t,n),P=A!==void 0||R===hD?KR(A||null,L,R):R,V=await Gv(n,B),z=((s=d.autoPlacement)==null?void 0:s.index)||0,q=P[z];if(q==null)return{};const oe=c5(q,e,await(y.isRTL==null?void 0:y.isRTL(E.floating)));if(_!==q)return{reset:{placement:P[0]}};const K=[V[cc(q)],V[oe[0]],V[oe[1]]],G=[...((a=d.autoPlacement)==null?void 0:a.overflows)||[],{placement:q,overflows:K}],ne=P[z+1];if(ne)return{data:{index:z+1,overflows:G},reset:{placement:ne}};const ce=G.map(te=>{const fe=Tl(te.placement);return[te.placement,fe&&T?te.overflows.slice(0,2).reduce((xe,_e)=>xe+_e,0):te.overflows[0],te.overflows]}).sort((te,fe)=>te[1]-fe[1]),W=((r=ce.filter(te=>te[2].slice(0,Tl(te[0])?2:3).every(fe=>fe<=0))[0])==null?void 0:r[0])||ce[0][0];return W!==_?{data:{index:z+1,overflows:G},reset:{placement:W}}:{}}}},QR=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(n){var s;const{placement:a,middlewareData:r,rects:e,initialPlacement:d,platform:_,elements:y}=n,{mainAxis:E=!0,crossAxis:T=!0,fallbackPlacements:A,fallbackStrategy:R="bestFit",fallbackAxisSideDirection:L="none",flipAlignment:B=!0,...P}=Mh(t,n),V=cc(a),z=cc(d)===d,q=await(_.isRTL==null?void 0:_.isRTL(y.floating)),oe=A||(z||!B?[uv(d)]:WR(d));!A&&L!=="none"&&oe.push(...jR(d,B,L,q));const K=[d,...oe],G=await Gv(n,P),ne=[];let ce=((s=r.flip)==null?void 0:s.overflows)||[];if(E&&ne.push(G[V]),T){const fe=c5(a,e,q);ne.push(G[fe[0]],G[fe[1]])}if(ce=[...ce,{placement:a,overflows:ne}],!ne.every(fe=>fe<=0)){var U,W;const fe=(((U=r.flip)==null?void 0:U.index)||0)+1,xe=K[fe];if(xe)return{data:{index:fe,overflows:ce},reset:{placement:xe}};let _e=(W=ce.filter(be=>be.overflows[0]<=0).sort((be,$e)=>be.overflows[1]-$e.overflows[1])[0])==null?void 0:W.placement;if(!_e)switch(R){case"bestFit":{var te;const be=(te=ce.map($e=>[$e.placement,$e.overflows.filter(je=>je>0).reduce((je,Ee)=>je+Ee,0)]).sort(($e,je)=>$e[1]-je[1])[0])==null?void 0:te[0];be&&(_e=be);break}case"initialPlacement":_e=d;break}if(a!==_e)return{reset:{placement:_e}}}return{}}}};async function XR(t,n){const{placement:s,platform:a,elements:r}=t,e=await(a.isRTL==null?void 0:a.isRTL(r.floating)),d=cc(s),_=Tl(s),y=zg(s)==="y",E=["left","top"].includes(d)?-1:1,T=e&&y?-1:1,A=Mh(n,t);let{mainAxis:R,crossAxis:L,alignmentAxis:B}=typeof A=="number"?{mainAxis:A,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...A};return _&&typeof B=="number"&&(L=_==="end"?B*-1:B),y?{x:L*T,y:R*E}:{x:R*E,y:L*T}}const JR=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(n){const{x:s,y:a}=n,r=await XR(n,t);return{x:s+r.x,y:a+r.y,data:r}}}},ZR=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(n){const{x:s,y:a,placement:r}=n,{mainAxis:e=!0,crossAxis:d=!1,limiter:_={fn:V=>{let{x:z,y:q}=V;return{x:z,y:q}}},...y}=Mh(t,n),E={x:s,y:a},T=await Gv(n,y),A=zg(cc(r)),R=l5(A);let L=E[R],B=E[A];if(e){const V=R==="y"?"top":"left",z=R==="y"?"bottom":"right",q=L+T[V],oe=L-T[z];L=wy(q,L,oe)}if(d){const V=A==="y"?"top":"left",z=A==="y"?"bottom":"right",q=B+T[V],oe=B-T[z];B=wy(q,B,oe)}const P=_.fn({...n,[R]:L,[A]:B});return{...P,data:{x:P.x-s,y:P.y-a}}}}},eI=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(n){const{placement:s,rects:a,platform:r,elements:e}=n,{apply:d=()=>{},..._}=Mh(t,n),y=await Gv(n,_),E=cc(s),T=Tl(s),A=zg(s)==="y",{width:R,height:L}=a.floating;let B,P;E==="top"||E==="bottom"?(B=E,P=T===(await(r.isRTL==null?void 0:r.isRTL(e.floating))?"start":"end")?"left":"right"):(P=E,B=T==="end"?"top":"bottom");const V=L-y[B],z=R-y[P],q=!n.middlewareData.shift;let oe=V,K=z;if(A){const ne=R-y.left-y.right;K=T||q?Eg(z,ne):ne}else{const ne=L-y.top-y.bottom;oe=T||q?Eg(V,ne):ne}if(q&&!T){const ne=ch(y.left,0),ce=ch(y.right,0),U=ch(y.top,0),W=ch(y.bottom,0);A?K=R-2*(ne!==0||ce!==0?ne+ce:ch(y.left,y.right)):oe=L-2*(U!==0||W!==0?U+W:ch(y.top,y.bottom))}await d({...n,availableWidth:K,availableHeight:oe});const G=await r.getDimensions(e.floating);return R!==G.width||L!==G.height?{reset:{rects:!0}}:{}}}};function Uo(t){var n;return((n=t.ownerDocument)==null?void 0:n.defaultView)||window}function ic(t){return Uo(t).getComputedStyle(t)}const pD=Math.min,ag=Math.max,fv=Math.round;function f5(t){const n=ic(t);let s=parseFloat(n.width),a=parseFloat(n.height);const r=t.offsetWidth,e=t.offsetHeight,d=fv(s)!==r||fv(a)!==e;return d&&(s=r,a=e),{width:s,height:a,fallback:d}}function Vf(t){return d5(t)?(t.nodeName||"").toLowerCase():""}let C2;function h5(){if(C2)return C2;const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?(C2=t.brands.map(n=>n.brand+"/"+n.version).join(" "),C2):navigator.userAgent}function sc(t){return t instanceof Uo(t).HTMLElement}function Mf(t){return t instanceof Uo(t).Element}function d5(t){return t instanceof Uo(t).Node}function gD(t){return typeof ShadowRoot>"u"?!1:t instanceof Uo(t).ShadowRoot||t instanceof ShadowRoot}function Vv(t){const{overflow:n,overflowX:s,overflowY:a,display:r}=ic(t);return/auto|scroll|overlay|hidden|clip/.test(n+a+s)&&!["inline","contents"].includes(r)}function tI(t){return["table","td","th"].includes(Vf(t))}function Dy(t){const n=/firefox/i.test(h5()),s=ic(t),a=s.backdropFilter||s.WebkitBackdropFilter;return s.transform!=="none"||s.perspective!=="none"||!!a&&a!=="none"||n&&s.willChange==="filter"||n&&!!s.filter&&s.filter!=="none"||["transform","perspective"].some(r=>s.willChange.includes(r))||["paint","layout","strict","content"].some(r=>{const e=s.contain;return e!=null&&e.includes(r)})}function p5(){return!/^((?!chrome|android).)*safari/i.test(h5())}function j4(t){return["html","body","#document"].includes(Vf(t))}function g5(t){return Mf(t)?t:t.contextElement}const m5={x:1,y:1};function Zd(t){const n=g5(t);if(!sc(n))return m5;const s=n.getBoundingClientRect(),{width:a,height:r,fallback:e}=f5(n);let d=(e?fv(s.width):s.width)/a,_=(e?fv(s.height):s.height)/r;return d&&Number.isFinite(d)||(d=1),_&&Number.isFinite(_)||(_=1),{x:d,y:_}}function Fg(t,n,s,a){var r,e;n===void 0&&(n=!1),s===void 0&&(s=!1);const d=t.getBoundingClientRect(),_=g5(t);let y=m5;n&&(a?Mf(a)&&(y=Zd(a)):y=Zd(t));const E=_?Uo(_):window,T=!p5()&&s;let A=(d.left+(T&&((r=E.visualViewport)==null?void 0:r.offsetLeft)||0))/y.x,R=(d.top+(T&&((e=E.visualViewport)==null?void 0:e.offsetTop)||0))/y.y,L=d.width/y.x,B=d.height/y.y;if(_){const P=Uo(_),V=a&&Mf(a)?Uo(a):a;let z=P.frameElement;for(;z&&a&&V!==P;){const q=Zd(z),oe=z.getBoundingClientRect(),K=getComputedStyle(z);oe.x+=(z.clientLeft+parseFloat(K.paddingLeft))*q.x,oe.y+=(z.clientTop+parseFloat(K.paddingTop))*q.y,A*=q.x,R*=q.y,L*=q.x,B*=q.y,A+=oe.x,R+=oe.y,z=Uo(z).frameElement}}return{width:L,height:B,top:R,right:A+L,bottom:R+B,left:A,x:A,y:R}}function Lf(t){return((d5(t)?t.ownerDocument:t.document)||window.document).documentElement}function Yv(t){return Mf(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function v5(t){return Fg(Lf(t)).left+Yv(t).scrollLeft}function xg(t){if(Vf(t)==="html")return t;const n=t.assignedSlot||t.parentNode||gD(t)&&t.host||Lf(t);return gD(n)?n.host:n}function b5(t){const n=xg(t);return j4(n)?n.ownerDocument.body:sc(n)&&Vv(n)?n:b5(n)}function hv(t,n){var s;n===void 0&&(n=[]);const a=b5(t),r=a===((s=t.ownerDocument)==null?void 0:s.body),e=Uo(a);return r?n.concat(e,e.visualViewport||[],Vv(a)?a:[]):n.concat(a,hv(a))}function mD(t,n,s){return n==="viewport"?sg(function(a,r){const e=Uo(a),d=Lf(a),_=e.visualViewport;let y=d.clientWidth,E=d.clientHeight,T=0,A=0;if(_){y=_.width,E=_.height;const R=p5();(R||!R&&r==="fixed")&&(T=_.offsetLeft,A=_.offsetTop)}return{width:y,height:E,x:T,y:A}}(t,s)):Mf(n)?sg(function(a,r){const e=Fg(a,!0,r==="fixed"),d=e.top+a.clientTop,_=e.left+a.clientLeft,y=sc(a)?Zd(a):{x:1,y:1};return{width:a.clientWidth*y.x,height:a.clientHeight*y.y,x:_*y.x,y:d*y.y}}(n,s)):sg(function(a){const r=Lf(a),e=Yv(a),d=a.ownerDocument.body,_=ag(r.scrollWidth,r.clientWidth,d.scrollWidth,d.clientWidth),y=ag(r.scrollHeight,r.clientHeight,d.scrollHeight,d.clientHeight);let E=-e.scrollLeft+v5(a);const T=-e.scrollTop;return ic(d).direction==="rtl"&&(E+=ag(r.clientWidth,d.clientWidth)-_),{width:_,height:y,x:E,y:T}}(Lf(t)))}function vD(t){return sc(t)&&ic(t).position!=="fixed"?t.offsetParent:null}function bD(t){const n=Uo(t);let s=vD(t);for(;s&&tI(s)&&ic(s).position==="static";)s=vD(s);return s&&(Vf(s)==="html"||Vf(s)==="body"&&ic(s).position==="static"&&!Dy(s))?n:s||function(a){let r=xg(a);for(;sc(r)&&!j4(r);){if(Dy(r))return r;r=xg(r)}return null}(t)||n}function rI(t,n,s){const a=sc(n),r=Lf(n),e=Fg(t,!0,s==="fixed",n);let d={scrollLeft:0,scrollTop:0};const _={x:0,y:0};if(a||!a&&s!=="fixed")if((Vf(n)!=="body"||Vv(r))&&(d=Yv(n)),sc(n)){const y=Fg(n,!0);_.x=y.x+n.clientLeft,_.y=y.y+n.clientTop}else r&&(_.x=v5(r));return{x:e.left+d.scrollLeft-_.x,y:e.top+d.scrollTop-_.y,width:e.width,height:e.height}}const nI={getClippingRect:function(t){let{element:n,boundary:s,rootBoundary:a,strategy:r}=t;const e=s==="clippingAncestors"?function(E,T){const A=T.get(E);if(A)return A;let R=hv(E).filter(V=>Mf(V)&&Vf(V)!=="body"),L=null;const B=ic(E).position==="fixed";let P=B?xg(E):E;for(;Mf(P)&&!j4(P);){const V=ic(P),z=Dy(P);(B?z||L:z||V.position!=="static"||!L||!["absolute","fixed"].includes(L.position))?L=V:R=R.filter(q=>q!==P),P=xg(P)}return T.set(E,R),R}(n,this._c):[].concat(s),d=[...e,a],_=d[0],y=d.reduce((E,T)=>{const A=mD(n,T,r);return E.top=ag(A.top,E.top),E.right=pD(A.right,E.right),E.bottom=pD(A.bottom,E.bottom),E.left=ag(A.left,E.left),E},mD(n,_,r));return{width:y.right-y.left,height:y.bottom-y.top,x:y.left,y:y.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:n,offsetParent:s,strategy:a}=t;const r=sc(s),e=Lf(s);if(s===e)return n;let d={scrollLeft:0,scrollTop:0},_={x:1,y:1};const y={x:0,y:0};if((r||!r&&a!=="fixed")&&((Vf(s)!=="body"||Vv(e))&&(d=Yv(s)),sc(s))){const E=Fg(s);_=Zd(s),y.x=E.x+s.clientLeft,y.y=E.y+s.clientTop}return{width:n.width*_.x,height:n.height*_.y,x:n.x*_.x-d.scrollLeft*_.x+y.x,y:n.y*_.y-d.scrollTop*_.y+y.y}},isElement:Mf,getDimensions:function(t){return sc(t)?f5(t):t.getBoundingClientRect()},getOffsetParent:bD,getDocumentElement:Lf,getScale:Zd,async getElementRects(t){let{reference:n,floating:s,strategy:a}=t;const r=this.getOffsetParent||bD,e=this.getDimensions;return{reference:rI(n,await r(s),a),floating:{x:0,y:0,...await e(s)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>ic(t).direction==="rtl"},iI=(t,n,s)=>{const a=new Map,r={platform:nI,...s},e={...r.platform,_c:a};return VR(t,n,{...r,platform:e})};function _5(t,n){for(const s in n)Object.prototype.hasOwnProperty.call(n,s)&&(typeof n[s]=="object"&&t[s]?_5(t[s],n[s]):t[s]=n[s])}const iu={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:5e3,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:t=>[...t,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover","focus"],delay:{show:0,hide:400}}}};function Tg(t,n){let s=iu.themes[t]||{},a;do a=s[n],typeof a>"u"?s.$extend?s=iu.themes[s.$extend]||{}:(s=null,a=iu[n]):s=null;while(s);return a}function sI(t){const n=[t];let s=iu.themes[t]||{};do s.$extend&&!s.$resetCss?(n.push(s.$extend),s=iu.themes[s.$extend]||{}):s=null;while(s);return n.map(a=>`v-popper--theme-${a}`)}function _D(t){const n=[t];let s=iu.themes[t]||{};do s.$extend?(n.push(s.$extend),s=iu.themes[s.$extend]||{}):s=null;while(s);return n}let Sh=!1;if(typeof window<"u"){Sh=!1;try{const t=Object.defineProperty({},"passive",{get(){Sh=!0}});window.addEventListener("test",null,t)}catch{}}let y5=!1;typeof window<"u"&&typeof navigator<"u"&&(y5=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const w5=["auto","top","bottom","left","right"].reduce((t,n)=>t.concat([n,`${n}-start`,`${n}-end`]),[]),yD={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},wD={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function DD(t,n){const s=t.indexOf(n);s!==-1&&t.splice(s,1)}function A_(){return new Promise(t=>requestAnimationFrame(()=>{requestAnimationFrame(t)}))}const Dl=[];let oh=null;const ED={};function FD(t){let n=ED[t];return n||(n=ED[t]=[]),n}let Ey=function(){};typeof window<"u"&&(Ey=window.Element);function Sn(t){return function(n){return Tg(n.theme,t)}}const S_="__floating-vue__popper",D5=()=>vs({name:"VPopper",provide(){return{[S_]:{parentPopper:this}}},inject:{[S_]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:Sn("disabled")},positioningDisabled:{type:Boolean,default:Sn("positioningDisabled")},placement:{type:String,default:Sn("placement"),validator:t=>w5.includes(t)},delay:{type:[String,Number,Object],default:Sn("delay")},distance:{type:[Number,String],default:Sn("distance")},skidding:{type:[Number,String],default:Sn("skidding")},triggers:{type:Array,default:Sn("triggers")},showTriggers:{type:[Array,Function],default:Sn("showTriggers")},hideTriggers:{type:[Array,Function],default:Sn("hideTriggers")},popperTriggers:{type:Array,default:Sn("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:Sn("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:Sn("popperHideTriggers")},container:{type:[String,Object,Ey,Boolean],default:Sn("container")},boundary:{type:[String,Ey],default:Sn("boundary")},strategy:{type:String,validator:t=>["absolute","fixed"].includes(t),default:Sn("strategy")},autoHide:{type:[Boolean,Function],default:Sn("autoHide")},handleResize:{type:Boolean,default:Sn("handleResize")},instantMove:{type:Boolean,default:Sn("instantMove")},eagerMount:{type:Boolean,default:Sn("eagerMount")},popperClass:{type:[String,Array,Object],default:Sn("popperClass")},computeTransformOrigin:{type:Boolean,default:Sn("computeTransformOrigin")},autoMinSize:{type:Boolean,default:Sn("autoMinSize")},autoSize:{type:[Boolean,String],default:Sn("autoSize")},autoMaxSize:{type:Boolean,default:Sn("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:Sn("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:Sn("preventOverflow")},overflowPadding:{type:[Number,String],default:Sn("overflowPadding")},arrowPadding:{type:[Number,String],default:Sn("arrowPadding")},arrowOverflow:{type:Boolean,default:Sn("arrowOverflow")},flip:{type:Boolean,default:Sn("flip")},shift:{type:Boolean,default:Sn("shift")},shiftCrossAxis:{type:Boolean,default:Sn("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:Sn("noAutoFocus")},disposeTimeout:{type:Number,default:Sn("disposeTimeout")}},emits:["show","hide","update:shown","apply-show","apply-hide","close-group","close-directive","auto-hide","resize","dispose"],data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},shownChildren:new Set,lastAutoHide:!0}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var t;return(t=this[S_])==null?void 0:t.parentPopper},hasPopperShowTriggerHover(){var t,n;return((t=this.popperTriggers)==null?void 0:t.includes("hover"))||((n=this.popperShowTriggers)==null?void 0:n.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(t){t?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},...["triggers","positioningDisabled"].reduce((t,n)=>(t[n]="$_refreshListeners",t),{}),...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((t,n)=>(t[n]="$_computePosition",t),{})},created(){this.$_isDisposed=!0,this.randomId=`popper_${[Math.random(),Date.now()].map(t=>t.toString(36).substring(2,10)).join("_")}`,this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:t=null,skipDelay:n=!1,force:s=!1}={}){var a,r;(a=this.parentPopper)!=null&&a.lockedChild&&this.parentPopper.lockedChild!==this||(this.$_pendingHide=!1,(s||!this.disabled)&&(((r=this.parentPopper)==null?void 0:r.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(t,n),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:t=null,skipDelay:n=!1}={}){var s;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:n}),this.parentPopper.lockedChild=null)},1e3));return}((s=this.parentPopper)==null?void 0:s.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_pendingHide=!1,this.$_scheduleHide(t,n),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var t;this.$_isDisposed&&(this.$_isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((t=this.referenceNode)==null?void 0:t.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(n=>n.nodeType===n.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.$_isDisposed||(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"),this.$emit("dispose"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.$_isDisposed||this.positioningDisabled)return;const t={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&t.middleware.push(JR({mainAxis:this.distance,crossAxis:this.skidding}));const n=this.placement.startsWith("auto");if(n?t.middleware.push(qR({alignment:this.placement.split("-")[1]??""})):t.placement=this.placement,this.preventOverflow&&(this.shift&&t.middleware.push(ZR({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!n&&this.flip&&t.middleware.push(QR({padding:this.overflowPadding,boundary:this.boundary}))),t.middleware.push(YR({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&t.middleware.push({name:"arrowOverflow",fn:({placement:a,rects:r,middlewareData:e})=>{let d;const{centerOffset:_}=e.arrow;return a.startsWith("top")||a.startsWith("bottom")?d=Math.abs(_)>r.reference.width/2:d=Math.abs(_)>r.reference.height/2,{data:{overflow:d}}}}),this.autoMinSize||this.autoSize){const a=this.autoSize?this.autoSize:this.autoMinSize?"min":null;t.middleware.push({name:"autoSize",fn:({rects:r,placement:e,middlewareData:d})=>{var _;if((_=d.autoSize)!=null&&_.skip)return{};let y,E;return e.startsWith("top")||e.startsWith("bottom")?y=r.reference.width:E=r.reference.height,this.$_innerNode.style[a==="min"?"minWidth":a==="max"?"maxWidth":"width"]=y!=null?`${y}px`:null,this.$_innerNode.style[a==="min"?"minHeight":a==="max"?"maxHeight":"height"]=E!=null?`${E}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,t.middleware.push(eI({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:a,availableHeight:r})=>{this.$_innerNode.style.maxWidth=a!=null?`${a}px`:null,this.$_innerNode.style.maxHeight=r!=null?`${r}px`:null}})));const s=await iI(this.$_referenceNode,this.$_popperNode,t);Object.assign(this.result,{x:s.x,y:s.y,placement:s.placement,strategy:s.strategy,arrow:{...s.middlewareData.arrow,...s.middlewareData.arrowOverflow}})},$_scheduleShow(t=null,n=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),oh&&this.instantMove&&oh.instantMove&&oh!==this.parentPopper){oh.$_applyHide(!0),this.$_applyShow(!0);return}n?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(t=null,n=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(oh=this),n?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(t){const n=this.delay;return parseInt(n&&n[t]||n||0)},async $_applyShow(t=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=t,!this.isShown&&(this.$_ensureTeleport(),await A_(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...hv(this.$_referenceNode),...hv(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const n=this.$_referenceNode.getBoundingClientRect(),s=this.$_popperNode.querySelector(".v-popper__wrapper"),a=s.parentNode.getBoundingClientRect(),r=n.x+n.width/2-(a.left+s.offsetLeft),e=n.y+n.height/2-(a.top+s.offsetTop);this.result.transformOrigin=`${r}px ${e}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const t=this.showGroup;if(t){let n;for(let s=0;s<Dl.length;s++)n=Dl[s],n.showGroup!==t&&(n.hide(),n.$emit("close-group"))}Dl.push(this),document.body.classList.add("v-popper--some-open");for(const n of _D(this.theme))FD(n).push(this),document.body.classList.add(`v-popper--some-open--${n}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await A_(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(t=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=t,DD(Dl,this),Dl.length===0&&document.body.classList.remove("v-popper--some-open");for(const s of _D(this.theme)){const a=FD(s);DD(a,this),a.length===0&&document.body.classList.remove(`v-popper--some-open--${s}`)}oh===this&&(oh=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const n=this.disposeTimeout;n!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},n)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await A_(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.$_isDisposed)return;let t=this.container;if(typeof t=="string"?t=window.document.querySelector(t):t===!1&&(t=this.$_targetNodes[0].parentNode),!t)throw new Error("No container for popover: "+this.container);t.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const t=s=>{this.isShown&&!this.$_hideInProgress||(s.usedByTooltip=!0,!this.$_preventShow&&this.show({event:s}))};this.$_registerTriggerListeners(this.$_targetNodes,yD,this.triggers,this.showTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],yD,this.popperTriggers,this.popperShowTriggers,t);const n=s=>{s.usedByTooltip||this.hide({event:s})};this.$_registerTriggerListeners(this.$_targetNodes,wD,this.triggers,this.hideTriggers,n),this.$_registerTriggerListeners([this.$_popperNode],wD,this.popperTriggers,this.popperHideTriggers,n)},$_registerEventListeners(t,n,s){this.$_events.push({targetNodes:t,eventType:n,handler:s}),t.forEach(a=>a.addEventListener(n,s,Sh?{passive:!0}:void 0))},$_registerTriggerListeners(t,n,s,a,r){let e=s;a!=null&&(e=typeof a=="function"?a(e):a),e.forEach(d=>{const _=n[d];_&&this.$_registerEventListeners(t,_,r)})},$_removeEventListeners(t){const n=[];this.$_events.forEach(s=>{const{targetNodes:a,eventType:r,handler:e}=s;!t||t===r?a.forEach(d=>d.removeEventListener(r,e)):n.push(s)}),this.$_events=n},$_refreshListeners(){this.$_isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(t,n=!1){this.$_showFrameLocked||(this.hide({event:t}),t.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),n&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(t,n){for(const s of this.$_targetNodes){const a=s.getAttribute(t);a&&(s.removeAttribute(t),s.setAttribute(n,a))}},$_applyAttrsToTarget(t){for(const n of this.$_targetNodes)for(const s in t){const a=t[s];a==null?n.removeAttribute(s):n.setAttribute(s,a)}},$_updateParentShownChildren(t){let n=this.parentPopper;for(;n;)t?n.shownChildren.add(this.randomId):(n.shownChildren.delete(this.randomId),n.$_pendingHide&&n.hide()),n=n.parentPopper},$_isAimingPopper(){const t=this.$_referenceNode.getBoundingClientRect();if(og>=t.left&&og<=t.right&&lg>=t.top&&lg<=t.bottom){const n=this.$_popperNode.getBoundingClientRect(),s=og-_f,a=lg-yf,r=n.left+n.width/2-_f+(n.top+n.height/2)-yf+n.width+n.height,e=_f+s*r,d=yf+a*r;return A2(_f,yf,e,d,n.left,n.top,n.left,n.bottom)||A2(_f,yf,e,d,n.left,n.top,n.right,n.top)||A2(_f,yf,e,d,n.right,n.top,n.right,n.bottom)||A2(_f,yf,e,d,n.left,n.bottom,n.right,n.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});typeof document<"u"&&typeof window<"u"&&(y5?(document.addEventListener("touchstart",xD,Sh?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",oI,Sh?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",xD,!0),window.addEventListener("click",aI,!0)),window.addEventListener("resize",uI));function xD(t){for(let n=0;n<Dl.length;n++){const s=Dl[n];try{const a=s.popperNode();s.$_mouseDownContains=a.contains(t.target)}catch{}}}function aI(t){E5(t)}function oI(t){E5(t,!0)}function E5(t,n=!1){const s={};for(let a=Dl.length-1;a>=0;a--){const r=Dl[a];try{const e=r.$_containsGlobalTarget=lI(r,t);r.$_pendingHide=!1,requestAnimationFrame(()=>{if(r.$_pendingHide=!1,!s[r.randomId]&&TD(r,e,t)){if(r.$_handleGlobalClose(t,n),!t.closeAllPopover&&t.closePopover&&e){let _=r.parentPopper;for(;_;)s[_.randomId]=!0,_=_.parentPopper;return}let d=r.parentPopper;for(;d&&TD(d,d.$_containsGlobalTarget,t);)d.$_handleGlobalClose(t,n),d=d.parentPopper}})}catch{}}}function lI(t,n){const s=t.popperNode();return t.$_mouseDownContains||s.contains(n.target)}function TD(t,n,s){return s.closeAllPopover||s.closePopover&&n||cI(t,s)&&!n}function cI(t,n){if(typeof t.autoHide=="function"){const s=t.autoHide(n);return t.lastAutoHide=s,s}return t.autoHide}function uI(t){for(let n=0;n<Dl.length;n++)Dl[n].$_computePosition(t)}let _f=0,yf=0,og=0,lg=0;typeof window<"u"&&window.addEventListener("mousemove",t=>{_f=og,yf=lg,og=t.clientX,lg=t.clientY},Sh?{passive:!0}:void 0);function A2(t,n,s,a,r,e,d,_){const y=((d-r)*(n-e)-(_-e)*(t-r))/((_-e)*(s-t)-(d-r)*(a-n)),E=((s-t)*(n-e)-(a-n)*(t-r))/((_-e)*(s-t)-(d-r)*(a-n));return y>=0&&y<=1&&E>=0&&E<=1}const fI={extends:D5()},Kv=(t,n)=>{const s=t.__vccOpts||t;for(const[a,r]of n)s[a]=r;return s};function hI(t,n,s,a,r,e){return pn(),Qn("div",{ref:"reference",class:Fa(["v-popper",{"v-popper--shown":t.slotData.isShown}])},[Th(t.$slots,"default",_E(u4(t.slotData)))],2)}const dI=Kv(fI,[["render",hI]]);function pI(){var t=window.navigator.userAgent,n=t.indexOf("MSIE ");if(n>0)return parseInt(t.substring(n+5,t.indexOf(".",n)),10);var s=t.indexOf("Trident/");if(s>0){var a=t.indexOf("rv:");return parseInt(t.substring(a+3,t.indexOf(".",a)),10)}var r=t.indexOf("Edge/");return r>0?parseInt(t.substring(r+5,t.indexOf(".",r)),10):-1}let M2;function Fy(){Fy.init||(Fy.init=!0,M2=pI()!==-1)}var qv={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Fy(),uc(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const t=document.createElement("object");this._resizeObject=t,t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",M2&&this.$el.appendChild(t),t.data="about:blank",M2||this.$el.appendChild(t)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!M2&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const gI=jE();Ov("data-v-b329ee4c");const mI={class:"resize-observer",tabindex:"-1"};Rv();const vI=gI((t,n,s,a,r,e)=>(pn(),cu("div",mI)));qv.render=vI;qv.__scopeId="data-v-b329ee4c";qv.__file="src/components/ResizeObserver.vue";const F5=(t="theme")=>({computed:{themeClass(){return sI(this[t])}}}),bI=vs({name:"VPopperContent",components:{ResizeObserver:qv},mixins:[F5()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(t){return t!=null&&!isNaN(t)?`${t}px`:null}}}),_I=["id","aria-hidden","tabindex","data-popper-placement"],yI={ref:"inner",class:"v-popper__inner"},wI=Wt("div",{class:"v-popper__arrow-outer"},null,-1),DI=Wt("div",{class:"v-popper__arrow-inner"},null,-1),EI=[wI,DI];function FI(t,n,s,a,r,e){const d=Cl("ResizeObserver");return pn(),Qn("div",{id:t.popperId,ref:"popover",class:Fa(["v-popper__popper",[t.themeClass,t.classes.popperClass,{"v-popper__popper--shown":t.shown,"v-popper__popper--hidden":!t.shown,"v-popper__popper--show-from":t.classes.showFrom,"v-popper__popper--show-to":t.classes.showTo,"v-popper__popper--hide-from":t.classes.hideFrom,"v-popper__popper--hide-to":t.classes.hideTo,"v-popper__popper--skip-transition":t.skipTransition,"v-popper__popper--arrow-overflow":t.result&&t.result.arrow.overflow,"v-popper__popper--no-positioning":!t.result}]]),style:xl(t.result?{position:t.result.strategy,transform:`translate3d(${Math.round(t.result.x)}px,${Math.round(t.result.y)}px,0)`}:void 0),"aria-hidden":t.shown?"false":"true",tabindex:t.autoHide?0:void 0,"data-popper-placement":t.result?t.result.placement:void 0,onKeyup:n[2]||(n[2]=jF(_=>t.autoHide&&t.$emit("hide"),["esc"]))},[Wt("div",{class:"v-popper__backdrop",onClick:n[0]||(n[0]=_=>t.autoHide&&t.$emit("hide"))}),Wt("div",{class:"v-popper__wrapper",style:xl(t.result?{transformOrigin:t.result.transformOrigin}:void 0)},[Wt("div",yI,[t.mounted?(pn(),Qn(Ui,{key:0},[Wt("div",null,[Th(t.$slots,"default")]),t.handleResize?(pn(),cu(d,{key:0,onNotify:n[1]||(n[1]=_=>t.$emit("resize",_))})):po("",!0)],64)):po("",!0)],512),Wt("div",{ref:"arrow",class:"v-popper__arrow-container",style:xl(t.result?{left:t.toPx(t.result.arrow.x),top:t.toPx(t.result.arrow.y)}:void 0)},EI,4)],4)],46,_I)}const x5=Kv(bI,[["render",FI]]),T5={methods:{show(...t){return this.$refs.popper.show(...t)},hide(...t){return this.$refs.popper.hide(...t)},dispose(...t){return this.$refs.popper.dispose(...t)},onResize(...t){return this.$refs.popper.onResize(...t)}}},xI=vs({name:"VPopperWrapper",components:{Popper:dI,PopperContent:x5},mixins:[T5,F5("finalTheme")],props:{theme:{type:String,default:null}},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(t=>t!==this.$refs.popperContent.$el)}}});function TI(t,n,s,a,r,e){const d=Cl("PopperContent"),_=Cl("Popper");return pn(),cu(_,{ref:"popper",theme:t.finalTheme,"target-nodes":t.getTargetNodes,"popper-node":()=>t.$refs.popperContent.$el,class:Fa([t.themeClass])},{default:As(({popperId:y,isShown:E,shouldMountContent:T,skipTransition:A,autoHide:R,show:L,hide:B,handleResize:P,onResize:V,classes:z,result:q})=>[Th(t.$slots,"default",{shown:E,show:L,hide:B}),Kr(d,{ref:"popperContent","popper-id":y,theme:t.finalTheme,shown:E,mounted:T,"skip-transition":A,"auto-hide":R,"handle-resize":P,classes:z,result:q,onHide:B,onResize:V},{default:As(()=>[Th(t.$slots,"popper",{shown:E,hide:B})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},8,["theme","target-nodes","popper-node","class"])}const G4=Kv(xI,[["render",TI]]),CI={...G4,name:"VDropdown",vPopperTheme:"dropdown"},AI={...G4,name:"VMenu",vPopperTheme:"menu"},SI={...G4,name:"VTooltip",vPopperTheme:"tooltip"},kI=vs({name:"VTooltipDirective",components:{Popper:D5(),PopperContent:x5},mixins:[T5],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:t=>Tg(t.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:t=>Tg(t.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(t){if(typeof this.content=="function"&&this.$_isShown&&(t||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const n=++this.$_fetchId,s=this.content(this);s.then?s.then(a=>this.onResult(n,a)):this.onResult(n,s)}},onResult(t,n){t===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=n)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),OI=["innerHTML"],RI=["textContent"];function II(t,n,s,a,r,e){const d=Cl("PopperContent"),_=Cl("Popper");return pn(),cu(_,Lv({ref:"popper"},t.$attrs,{theme:t.theme,"target-nodes":t.targetNodes,"popper-node":()=>t.$refs.popperContent.$el,onApplyShow:t.onShow,onApplyHide:t.onHide}),{default:As(({popperId:y,isShown:E,shouldMountContent:T,skipTransition:A,autoHide:R,hide:L,handleResize:B,onResize:P,classes:V,result:z})=>[Kr(d,{ref:"popperContent",class:Fa({"v-popper--tooltip-loading":t.loading}),"popper-id":y,theme:t.theme,shown:E,mounted:T,"skip-transition":A,"auto-hide":R,"handle-resize":B,classes:V,result:z,onHide:L,onResize:P},{default:As(()=>[t.html?(pn(),Qn("div",{key:0,innerHTML:t.finalContent},null,8,OI)):(pn(),Qn("div",{key:1,textContent:as(t.finalContent)},null,8,RI))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const PI=Kv(kI,[["render",II]]),C5="v-popper--has-tooltip";function NI(t,n){let s=t.placement;if(!s&&n)for(const a of w5)n[a]&&(s=a);return s||(s=Tg(t.theme||"tooltip","placement")),s}function A5(t,n,s){let a;const r=typeof n;return r==="string"?a={content:n}:n&&r==="object"?a=n:a={content:!1},a.placement=NI(a,s),a.targetNodes=()=>[t],a.referenceNode=()=>t,a}let k_,Cg,MI=0;function LI(){if(k_)return;Cg=ur([]),k_=v4({name:"VTooltipDirectiveApp",setup(){return{directives:Cg}},render(){return this.directives.map(n=>Ph(PI,{...n.options,shown:n.shown||n.options.shown,key:n.id}))},devtools:{hide:!0}});const t=document.createElement("div");document.body.appendChild(t),k_.mount(t)}function BI(t,n,s){LI();const a=ur(A5(t,n,s)),r=ur(!1),e={id:MI++,options:a,shown:r};return Cg.value.push(e),t.classList&&t.classList.add(C5),t.$_popper={options:a,item:e,show(){r.value=!0},hide(){r.value=!1}}}function S5(t){if(t.$_popper){const n=Cg.value.indexOf(t.$_popper.item);n!==-1&&Cg.value.splice(n,1),delete t.$_popper,delete t.$_popperOldShown,delete t.$_popperMountTarget}t.classList&&t.classList.remove(C5)}function CD(t,{value:n,modifiers:s}){const a=A5(t,n,s);if(!a.content||Tg(a.theme||"tooltip","disabled"))S5(t);else{let r;t.$_popper?(r=t.$_popper,r.options.value=a):r=BI(t,n,s),typeof n.shown<"u"&&n.shown!==t.$_popperOldShown&&(t.$_popperOldShown=n.shown,n.shown?r.show():r.hide())}}const UI={beforeMount:CD,updated:CD,beforeUnmount(t){S5(t)}};function AD(t){t.addEventListener("click",k5),t.addEventListener("touchstart",O5,Sh?{passive:!0}:!1)}function SD(t){t.removeEventListener("click",k5),t.removeEventListener("touchstart",O5),t.removeEventListener("touchend",R5),t.removeEventListener("touchcancel",I5)}function k5(t){const n=t.currentTarget;t.closePopover=!n.$_vclosepopover_touch,t.closeAllPopover=n.$_closePopoverModifiers&&!!n.$_closePopoverModifiers.all}function O5(t){if(t.changedTouches.length===1){const n=t.currentTarget;n.$_vclosepopover_touch=!0;const s=t.changedTouches[0];n.$_vclosepopover_touchPoint=s,n.addEventListener("touchend",R5),n.addEventListener("touchcancel",I5)}}function R5(t){const n=t.currentTarget;if(n.$_vclosepopover_touch=!1,t.changedTouches.length===1){const s=t.changedTouches[0],a=n.$_vclosepopover_touchPoint;t.closePopover=Math.abs(s.screenY-a.screenY)<20&&Math.abs(s.screenX-a.screenX)<20,t.closeAllPopover=n.$_closePopoverModifiers&&!!n.$_closePopoverModifiers.all}}function I5(t){const n=t.currentTarget;n.$_vclosepopover_touch=!1}const $I={beforeMount(t,{value:n,modifiers:s}){t.$_closePopoverModifiers=s,(typeof n>"u"||n)&&AD(t)},updated(t,{value:n,oldValue:s,modifiers:a}){t.$_closePopoverModifiers=a,n!==s&&(typeof n>"u"||n?AD(t):SD(t))},beforeUnmount(t){SD(t)}};function HI(t,n={}){t.$_vTooltipInstalled||(t.$_vTooltipInstalled=!0,_5(iu,n),t.directive("tooltip",UI),t.directive("close-popper",$I),t.component("VTooltip",SI),t.component("VDropdown",CI),t.component("VMenu",AI))}const WI={version:"2.0.0-beta.24",install:HI,options:iu};var Qv=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},jg=typeof window>"u"||"Deno"in globalThis;function bl(){}function zI(t,n){return typeof t=="function"?t(n):t}function jI(t){return typeof t=="number"&&t>=0&&t!==1/0}function GI(t,n){return Math.max(t+(n||0)-Date.now(),0)}function kD(t,n){const{type:s="all",exact:a,fetchStatus:r,predicate:e,queryKey:d,stale:_}=t;if(d){if(a){if(n.queryHash!==V4(d,n.options))return!1}else if(!Sg(n.queryKey,d))return!1}if(s!=="all"){const y=n.isActive();if(s==="active"&&!y||s==="inactive"&&y)return!1}return!(typeof _=="boolean"&&n.isStale()!==_||r&&r!==n.state.fetchStatus||e&&!e(n))}function OD(t,n){const{exact:s,status:a,predicate:r,mutationKey:e}=t;if(e){if(!n.options.mutationKey)return!1;if(s){if(Ag(n.options.mutationKey)!==Ag(e))return!1}else if(!Sg(n.options.mutationKey,e))return!1}return!(a&&n.state.status!==a||r&&!r(n))}function V4(t,n){return((n==null?void 0:n.queryKeyHashFn)||Ag)(t)}function Ag(t){return JSON.stringify(t,(n,s)=>xy(s)?Object.keys(s).sort().reduce((a,r)=>(a[r]=s[r],a),{}):s)}function Sg(t,n){return t===n?!0:typeof t!=typeof n?!1:t&&n&&typeof t=="object"&&typeof n=="object"?!Object.keys(n).some(s=>!Sg(t[s],n[s])):!1}function P5(t,n){if(t===n)return t;const s=RD(t)&&RD(n);if(s||xy(t)&&xy(n)){const a=s?t:Object.keys(t),r=a.length,e=s?n:Object.keys(n),d=e.length,_=s?[]:{};let y=0;for(let E=0;E<d;E++){const T=s?E:e[E];!s&&t[T]===void 0&&n[T]===void 0&&a.includes(T)?(_[T]=void 0,y++):(_[T]=P5(t[T],n[T]),_[T]===t[T]&&t[T]!==void 0&&y++)}return r===d&&y===r?t:_}return n}function oL(t,n){if(!n||Object.keys(t).length!==Object.keys(n).length)return!1;for(const s in t)if(t[s]!==n[s])return!1;return!0}function RD(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function xy(t){if(!ID(t))return!1;const n=t.constructor;if(n===void 0)return!0;const s=n.prototype;return!(!ID(s)||!s.hasOwnProperty("isPrototypeOf"))}function ID(t){return Object.prototype.toString.call(t)==="[object Object]"}function VI(t){return new Promise(n=>{setTimeout(n,t)})}function YI(t,n,s){return typeof s.structuralSharing=="function"?s.structuralSharing(t,n):s.structuralSharing!==!1?P5(t,n):n}function KI(t,n,s=0){const a=[...t,n];return s&&a.length>s?a.slice(1):a}function qI(t,n,s=0){const a=[n,...t];return s&&a.length>s?a.slice(0,-1):a}var Y4=Symbol(),gh,Af,t1,qD,QI=(qD=class extends Qv{constructor(){super();Nn(this,gh,void 0);Nn(this,Af,void 0);Nn(this,t1,void 0);Ur(this,t1,n=>{if(!jg&&window.addEventListener){const s=()=>n();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}})}onSubscribe(){ht(this,Af)||this.setEventListener(ht(this,t1))}onUnsubscribe(){var n;this.hasListeners()||((n=ht(this,Af))==null||n.call(this),Ur(this,Af,void 0))}setEventListener(n){var s;Ur(this,t1,n),(s=ht(this,Af))==null||s.call(this),Ur(this,Af,n(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()}))}setFocused(n){ht(this,gh)!==n&&(Ur(this,gh,n),this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(s=>{s(n)})}isFocused(){var n;return typeof ht(this,gh)=="boolean"?ht(this,gh):((n=globalThis.document)==null?void 0:n.visibilityState)!=="hidden"}},gh=new WeakMap,Af=new WeakMap,t1=new WeakMap,qD),N5=new QI,r1,Sf,n1,QD,XI=(QD=class extends Qv{constructor(){super();Nn(this,r1,!0);Nn(this,Sf,void 0);Nn(this,n1,void 0);Ur(this,n1,n=>{if(!jg&&window.addEventListener){const s=()=>n(!0),a=()=>n(!1);return window.addEventListener("online",s,!1),window.addEventListener("offline",a,!1),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",a)}}})}onSubscribe(){ht(this,Sf)||this.setEventListener(ht(this,n1))}onUnsubscribe(){var n;this.hasListeners()||((n=ht(this,Sf))==null||n.call(this),Ur(this,Sf,void 0))}setEventListener(n){var s;Ur(this,n1,n),(s=ht(this,Sf))==null||s.call(this),Ur(this,Sf,n(this.setOnline.bind(this)))}setOnline(n){ht(this,r1)!==n&&(Ur(this,r1,n),this.listeners.forEach(a=>{a(n)}))}isOnline(){return ht(this,r1)}},r1=new WeakMap,Sf=new WeakMap,n1=new WeakMap,QD),dv=new XI;function JI(t){return Math.min(1e3*2**t,3e4)}function K4(t){return(t??"online")==="online"?dv.isOnline():!0}var M5=class{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function O_(t){return t instanceof M5}function L5(t){let n=!1,s=0,a=!1,r,e,d;const _=new Promise((V,z)=>{e=V,d=z}),y=V=>{var z;a||(L(new M5(V)),(z=t.abort)==null||z.call(t))},E=()=>{n=!0},T=()=>{n=!1},A=()=>!N5.isFocused()||t.networkMode!=="always"&&!dv.isOnline(),R=V=>{var z;a||(a=!0,(z=t.onSuccess)==null||z.call(t,V),r==null||r(),e(V))},L=V=>{var z;a||(a=!0,(z=t.onError)==null||z.call(t,V),r==null||r(),d(V))},B=()=>new Promise(V=>{var z;r=q=>{const oe=a||!A();return oe&&V(q),oe},(z=t.onPause)==null||z.call(t)}).then(()=>{var V;r=void 0,a||(V=t.onContinue)==null||V.call(t)}),P=()=>{if(a)return;let V;try{V=t.fn()}catch(z){V=Promise.reject(z)}Promise.resolve(V).then(R).catch(z=>{var ne;if(a)return;const q=t.retry??(jg?0:3),oe=t.retryDelay??JI,K=typeof oe=="function"?oe(s,z):oe,G=q===!0||typeof q=="number"&&s<q||typeof q=="function"&&q(s,z);if(n||!G){L(z);return}s++,(ne=t.onFail)==null||ne.call(t,s,z),VI(K).then(()=>{if(A())return B()}).then(()=>{n?L(z):P()})})};return K4(t.networkMode)?P():B().then(P),{promise:_,cancel:y,continue:()=>(r==null?void 0:r())?_:Promise.resolve(),cancelRetry:E,continueRetry:T}}function ZI(){let t=[],n=0,s=R=>{R()},a=R=>{R()},r=R=>setTimeout(R,0);const e=R=>{r=R},d=R=>{let L;n++;try{L=R()}finally{n--,n||E()}return L},_=R=>{n?t.push(R):r(()=>{s(R)})},y=R=>(...L)=>{_(()=>{R(...L)})},E=()=>{const R=t;t=[],R.length&&r(()=>{a(()=>{R.forEach(L=>{s(L)})})})};return{batch:d,batchCalls:y,schedule:_,setNotifyFunction:R=>{s=R},setBatchNotifyFunction:R=>{a=R},setScheduler:e}}var Da=ZI(),mh,XD,B5=(XD=class{constructor(){Nn(this,mh,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),jI(this.gcTime)&&Ur(this,mh,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(jg?1/0:5*60*1e3))}clearGcTimeout(){ht(this,mh)&&(clearTimeout(ht(this,mh)),Ur(this,mh,void 0))}},mh=new WeakMap,XD),i1,s1,Mo,wa,Cs,Og,vh,_l,Jc,JD,eP=(JD=class extends B5{constructor(n){super();Nn(this,_l);Nn(this,i1,void 0);Nn(this,s1,void 0);Nn(this,Mo,void 0);Nn(this,wa,void 0);Nn(this,Cs,void 0);Nn(this,Og,void 0);Nn(this,vh,void 0);Ur(this,vh,!1),Ur(this,Og,n.defaultOptions),this.setOptions(n.options),Ur(this,Cs,[]),Ur(this,Mo,n.cache),this.queryKey=n.queryKey,this.queryHash=n.queryHash,Ur(this,i1,n.state||rP(this.options)),this.state=ht(this,i1),this.scheduleGc()}get meta(){return this.options.meta}setOptions(n){this.options={...ht(this,Og),...n},this.updateGcTime(this.options.gcTime)}optionalRemove(){!ht(this,Cs).length&&this.state.fetchStatus==="idle"&&ht(this,Mo).remove(this)}setData(n,s){const a=YI(this.state.data,n,this.options);return Xs(this,_l,Jc).call(this,{data:a,type:"success",dataUpdatedAt:s==null?void 0:s.updatedAt,manual:s==null?void 0:s.manual}),a}setState(n,s){Xs(this,_l,Jc).call(this,{type:"setState",state:n,setStateOptions:s})}cancel(n){var a,r;const s=(a=ht(this,wa))==null?void 0:a.promise;return(r=ht(this,wa))==null||r.cancel(n),s?s.then(bl).catch(bl):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(ht(this,i1))}isActive(){return ht(this,Cs).some(n=>n.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?ht(this,Cs).some(n=>n.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(n=0){return this.state.isInvalidated||this.state.data===void 0||!GI(this.state.dataUpdatedAt,n)}onFocus(){var s;const n=ht(this,Cs).find(a=>a.shouldFetchOnWindowFocus());n==null||n.refetch({cancelRefetch:!1}),(s=ht(this,wa))==null||s.continue()}onOnline(){var s;const n=ht(this,Cs).find(a=>a.shouldFetchOnReconnect());n==null||n.refetch({cancelRefetch:!1}),(s=ht(this,wa))==null||s.continue()}addObserver(n){ht(this,Cs).includes(n)||(ht(this,Cs).push(n),this.clearGcTimeout(),ht(this,Mo).notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){ht(this,Cs).includes(n)&&(Ur(this,Cs,ht(this,Cs).filter(s=>s!==n)),ht(this,Cs).length||(ht(this,wa)&&(ht(this,vh)?ht(this,wa).cancel({revert:!0}):ht(this,wa).cancelRetry()),this.scheduleGc()),ht(this,Mo).notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return ht(this,Cs).length}invalidate(){this.state.isInvalidated||Xs(this,_l,Jc).call(this,{type:"invalidate"})}fetch(n,s){var E,T,A;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(s!=null&&s.cancelRefetch))this.cancel({silent:!0});else if(ht(this,wa))return ht(this,wa).continueRetry(),ht(this,wa).promise}if(n&&this.setOptions(n),!this.options.queryFn){const R=ht(this,Cs).find(L=>L.options.queryFn);R&&this.setOptions(R.options)}const a=new AbortController,r={queryKey:this.queryKey,meta:this.meta},e=R=>{Object.defineProperty(R,"signal",{enumerable:!0,get:()=>(Ur(this,vh,!0),a.signal)})};e(r);const d=()=>!this.options.queryFn||this.options.queryFn===Y4?Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)):(Ur(this,vh,!1),this.options.persister?this.options.persister(this.options.queryFn,r,this):this.options.queryFn(r)),_={fetchOptions:s,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:d};e(_),(E=this.options.behavior)==null||E.onFetch(_,this),Ur(this,s1,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((T=_.fetchOptions)==null?void 0:T.meta))&&Xs(this,_l,Jc).call(this,{type:"fetch",meta:(A=_.fetchOptions)==null?void 0:A.meta});const y=R=>{var L,B,P,V;O_(R)&&R.silent||Xs(this,_l,Jc).call(this,{type:"error",error:R}),O_(R)||((B=(L=ht(this,Mo).config).onError)==null||B.call(L,R,this),(V=(P=ht(this,Mo).config).onSettled)==null||V.call(P,this.state.data,R,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return Ur(this,wa,L5({fn:_.fetchFn,abort:a.abort.bind(a),onSuccess:R=>{var L,B,P,V;if(R===void 0){y(new Error(`${this.queryHash} data is undefined`));return}this.setData(R),(B=(L=ht(this,Mo).config).onSuccess)==null||B.call(L,R,this),(V=(P=ht(this,Mo).config).onSettled)==null||V.call(P,R,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:y,onFail:(R,L)=>{Xs(this,_l,Jc).call(this,{type:"failed",failureCount:R,error:L})},onPause:()=>{Xs(this,_l,Jc).call(this,{type:"pause"})},onContinue:()=>{Xs(this,_l,Jc).call(this,{type:"continue"})},retry:_.options.retry,retryDelay:_.options.retryDelay,networkMode:_.options.networkMode})),ht(this,wa).promise}},i1=new WeakMap,s1=new WeakMap,Mo=new WeakMap,wa=new WeakMap,Cs=new WeakMap,Og=new WeakMap,vh=new WeakMap,_l=new WeakSet,Jc=function(n){const s=a=>{switch(n.type){case"failed":return{...a,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...a,fetchStatus:"paused"};case"continue":return{...a,fetchStatus:"fetching"};case"fetch":return{...a,...tP(a.data,this.options),fetchMeta:n.meta??null};case"success":return{...a,data:n.data,dataUpdateCount:a.dataUpdateCount+1,dataUpdatedAt:n.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const r=n.error;return O_(r)&&r.revert&&ht(this,s1)?{...ht(this,s1),fetchStatus:"idle"}:{...a,error:r,errorUpdateCount:a.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:a.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...a,isInvalidated:!0};case"setState":return{...a,...n.state}}};this.state=s(this.state),Da.batch(()=>{ht(this,Cs).forEach(a=>{a.onQueryUpdate()}),ht(this,Mo).notify({query:this,type:"updated",action:n})})},JD);function tP(t,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:K4(n.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function rP(t){const n=typeof t.initialData=="function"?t.initialData():t.initialData,s=n!==void 0,a=s?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:n,dataUpdateCount:0,dataUpdatedAt:s?a??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var Ql,ZD,U5=(ZD=class extends Qv{constructor(s={}){super();Nn(this,Ql,void 0);this.config=s,Ur(this,Ql,new Map)}build(s,a,r){const e=a.queryKey,d=a.queryHash??V4(e,a);let _=this.get(d);return _||(_=new eP({cache:this,queryKey:e,queryHash:d,options:s.defaultQueryOptions(a),state:r,defaultOptions:s.getQueryDefaults(e)}),this.add(_)),_}add(s){ht(this,Ql).has(s.queryHash)||(ht(this,Ql).set(s.queryHash,s),this.notify({type:"added",query:s}))}remove(s){const a=ht(this,Ql).get(s.queryHash);a&&(s.destroy(),a===s&&ht(this,Ql).delete(s.queryHash),this.notify({type:"removed",query:s}))}clear(){Da.batch(()=>{this.getAll().forEach(s=>{this.remove(s)})})}get(s){return ht(this,Ql).get(s)}getAll(){return[...ht(this,Ql).values()]}find(s){const a={exact:!0,...s};return this.getAll().find(r=>kD(a,r))}findAll(s={}){const a=this.getAll();return Object.keys(s).length>0?a.filter(r=>kD(s,r)):a}notify(s){Da.batch(()=>{this.listeners.forEach(a=>{a(s)})})}onFocus(){Da.batch(()=>{this.getAll().forEach(s=>{s.onFocus()})})}onOnline(){Da.batch(()=>{this.getAll().forEach(s=>{s.onOnline()})})}},Ql=new WeakMap,ZD),Xl,Rg,uo,a1,Jl,wf,eE,nP=(eE=class extends B5{constructor(n){super();Nn(this,Jl);Nn(this,Xl,void 0);Nn(this,Rg,void 0);Nn(this,uo,void 0);Nn(this,a1,void 0);this.mutationId=n.mutationId,Ur(this,Rg,n.defaultOptions),Ur(this,uo,n.mutationCache),Ur(this,Xl,[]),this.state=n.state||iP(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options={...ht(this,Rg),...n},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){ht(this,Xl).includes(n)||(ht(this,Xl).push(n),this.clearGcTimeout(),ht(this,uo).notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){Ur(this,Xl,ht(this,Xl).filter(s=>s!==n)),this.scheduleGc(),ht(this,uo).notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){ht(this,Xl).length||(this.state.status==="pending"?this.scheduleGc():ht(this,uo).remove(this))}continue(){var n;return((n=ht(this,a1))==null?void 0:n.continue())??this.execute(this.state.variables)}async execute(n){var r,e,d,_,y,E,T,A,R,L,B,P,V,z,q,oe,K,G,ne,ce;const s=()=>(Ur(this,a1,L5({fn:()=>this.options.mutationFn?this.options.mutationFn(n):Promise.reject(new Error("No mutationFn found")),onFail:(U,W)=>{Xs(this,Jl,wf).call(this,{type:"failed",failureCount:U,error:W})},onPause:()=>{Xs(this,Jl,wf).call(this,{type:"pause"})},onContinue:()=>{Xs(this,Jl,wf).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),ht(this,a1).promise),a=this.state.status==="pending";try{if(!a){Xs(this,Jl,wf).call(this,{type:"pending",variables:n}),await((e=(r=ht(this,uo).config).onMutate)==null?void 0:e.call(r,n,this));const W=await((_=(d=this.options).onMutate)==null?void 0:_.call(d,n));W!==this.state.context&&Xs(this,Jl,wf).call(this,{type:"pending",context:W,variables:n})}const U=await s();return await((E=(y=ht(this,uo).config).onSuccess)==null?void 0:E.call(y,U,n,this.state.context,this)),await((A=(T=this.options).onSuccess)==null?void 0:A.call(T,U,n,this.state.context)),await((L=(R=ht(this,uo).config).onSettled)==null?void 0:L.call(R,U,null,this.state.variables,this.state.context,this)),await((P=(B=this.options).onSettled)==null?void 0:P.call(B,U,null,n,this.state.context)),Xs(this,Jl,wf).call(this,{type:"success",data:U}),U}catch(U){try{throw await((z=(V=ht(this,uo).config).onError)==null?void 0:z.call(V,U,n,this.state.context,this)),await((oe=(q=this.options).onError)==null?void 0:oe.call(q,U,n,this.state.context)),await((G=(K=ht(this,uo).config).onSettled)==null?void 0:G.call(K,void 0,U,this.state.variables,this.state.context,this)),await((ce=(ne=this.options).onSettled)==null?void 0:ce.call(ne,void 0,U,n,this.state.context)),U}finally{Xs(this,Jl,wf).call(this,{type:"error",error:U})}}}},Xl=new WeakMap,Rg=new WeakMap,uo=new WeakMap,a1=new WeakMap,Jl=new WeakSet,wf=function(n){const s=a=>{switch(n.type){case"failed":return{...a,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...a,isPaused:!0};case"continue":return{...a,isPaused:!1};case"pending":return{...a,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!K4(this.options.networkMode),status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...a,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...a,data:void 0,error:n.error,failureCount:a.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=s(this.state),Da.batch(()=>{ht(this,Xl).forEach(a=>{a.onMutationUpdate(n)}),ht(this,uo).notify({mutation:this,type:"updated",action:n})})},eE);function iP(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Lo,Ig,bh,tE,$5=(tE=class extends Qv{constructor(s={}){super();Nn(this,Lo,void 0);Nn(this,Ig,void 0);Nn(this,bh,void 0);this.config=s,Ur(this,Lo,[]),Ur(this,Ig,0)}build(s,a,r){const e=new nP({mutationCache:this,mutationId:++a2(this,Ig)._,options:s.defaultMutationOptions(a),state:r});return this.add(e),e}add(s){ht(this,Lo).push(s),this.notify({type:"added",mutation:s})}remove(s){Ur(this,Lo,ht(this,Lo).filter(a=>a!==s)),this.notify({type:"removed",mutation:s})}clear(){Da.batch(()=>{ht(this,Lo).forEach(s=>{this.remove(s)})})}getAll(){return ht(this,Lo)}find(s){const a={exact:!0,...s};return ht(this,Lo).find(r=>OD(a,r))}findAll(s={}){return ht(this,Lo).filter(a=>OD(s,a))}notify(s){Da.batch(()=>{this.listeners.forEach(a=>{a(s)})})}resumePausedMutations(){return Ur(this,bh,(ht(this,bh)??Promise.resolve()).then(()=>{const s=ht(this,Lo).filter(a=>a.state.isPaused);return Da.batch(()=>s.reduce((a,r)=>a.then(()=>r.continue().catch(bl)),Promise.resolve()))}).then(()=>{Ur(this,bh,void 0)})),ht(this,bh)}},Lo=new WeakMap,Ig=new WeakMap,bh=new WeakMap,tE);function sP(t){return{onFetch:(n,s)=>{const a=async()=>{var B,P,V,z,q;const r=n.options,e=(V=(P=(B=n.fetchOptions)==null?void 0:B.meta)==null?void 0:P.fetchMore)==null?void 0:V.direction,d=((z=n.state.data)==null?void 0:z.pages)||[],_=((q=n.state.data)==null?void 0:q.pageParams)||[],y={pages:[],pageParams:[]};let E=!1;const T=oe=>{Object.defineProperty(oe,"signal",{enumerable:!0,get:()=>(n.signal.aborted?E=!0:n.signal.addEventListener("abort",()=>{E=!0}),n.signal)})},A=n.options.queryFn&&n.options.queryFn!==Y4?n.options.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${n.options.queryHash}'`)),R=async(oe,K,G)=>{if(E)return Promise.reject();if(K==null&&oe.pages.length)return Promise.resolve(oe);const ne={queryKey:n.queryKey,pageParam:K,direction:G?"backward":"forward",meta:n.options.meta};T(ne);const ce=await A(ne),{maxPages:U}=n.options,W=G?qI:KI;return{pages:W(oe.pages,ce,U),pageParams:W(oe.pageParams,K,U)}};let L;if(e&&d.length){const oe=e==="backward",K=oe?aP:PD,G={pages:d,pageParams:_},ne=K(r,G);L=await R(G,ne,oe)}else{L=await R(y,_[0]??r.initialPageParam);const oe=t??d.length;for(let K=1;K<oe;K++){const G=PD(r,L);L=await R(L,G)}}return L};n.options.persister?n.fetchFn=()=>{var r,e;return(e=(r=n.options).persister)==null?void 0:e.call(r,a,{queryKey:n.queryKey,meta:n.options.meta,signal:n.signal},s)}:n.fetchFn=a}}}function PD(t,{pages:n,pageParams:s}){const a=n.length-1;return t.getNextPageParam(n[a],n,s[a],s)}function aP(t,{pages:n,pageParams:s}){var a;return(a=t.getPreviousPageParam)==null?void 0:a.call(t,n[0],n,s[0],s)}var Bi,kf,Of,o1,l1,Rf,c1,u1,rE,oP=(rE=class{constructor(n={}){Nn(this,Bi,void 0);Nn(this,kf,void 0);Nn(this,Of,void 0);Nn(this,o1,void 0);Nn(this,l1,void 0);Nn(this,Rf,void 0);Nn(this,c1,void 0);Nn(this,u1,void 0);Ur(this,Bi,n.queryCache||new U5),Ur(this,kf,n.mutationCache||new $5),Ur(this,Of,n.defaultOptions||{}),Ur(this,o1,new Map),Ur(this,l1,new Map),Ur(this,Rf,0)}mount(){a2(this,Rf)._++,ht(this,Rf)===1&&(Ur(this,c1,N5.subscribe(async n=>{n&&(await this.resumePausedMutations(),ht(this,Bi).onFocus())})),Ur(this,u1,dv.subscribe(async n=>{n&&(await this.resumePausedMutations(),ht(this,Bi).onOnline())})))}unmount(){var n,s;a2(this,Rf)._--,ht(this,Rf)===0&&((n=ht(this,c1))==null||n.call(this),Ur(this,c1,void 0),(s=ht(this,u1))==null||s.call(this),Ur(this,u1,void 0))}isFetching(n){return ht(this,Bi).findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return ht(this,kf).findAll({...n,status:"pending"}).length}getQueryData(n){var a;const s=this.defaultQueryOptions({queryKey:n});return(a=ht(this,Bi).get(s.queryHash))==null?void 0:a.state.data}ensureQueryData(n){const s=this.getQueryData(n.queryKey);if(s===void 0)return this.fetchQuery(n);{const a=this.defaultQueryOptions(n),r=ht(this,Bi).build(this,a);return n.revalidateIfStale&&r.isStaleByTime(a.staleTime)&&this.prefetchQuery(a),Promise.resolve(s)}}getQueriesData(n){return ht(this,Bi).findAll(n).map(({queryKey:s,state:a})=>{const r=a.data;return[s,r]})}setQueryData(n,s,a){const r=this.defaultQueryOptions({queryKey:n}),e=ht(this,Bi).get(r.queryHash),d=e==null?void 0:e.state.data,_=zI(s,d);if(_!==void 0)return ht(this,Bi).build(this,r).setData(_,{...a,manual:!0})}setQueriesData(n,s,a){return Da.batch(()=>ht(this,Bi).findAll(n).map(({queryKey:r})=>[r,this.setQueryData(r,s,a)]))}getQueryState(n){var a;const s=this.defaultQueryOptions({queryKey:n});return(a=ht(this,Bi).get(s.queryHash))==null?void 0:a.state}removeQueries(n){const s=ht(this,Bi);Da.batch(()=>{s.findAll(n).forEach(a=>{s.remove(a)})})}resetQueries(n,s){const a=ht(this,Bi),r={type:"active",...n};return Da.batch(()=>(a.findAll(n).forEach(e=>{e.reset()}),this.refetchQueries(r,s)))}cancelQueries(n={},s={}){const a={revert:!0,...s},r=Da.batch(()=>ht(this,Bi).findAll(n).map(e=>e.cancel(a)));return Promise.all(r).then(bl).catch(bl)}invalidateQueries(n={},s={}){return Da.batch(()=>{if(ht(this,Bi).findAll(n).forEach(r=>{r.invalidate()}),n.refetchType==="none")return Promise.resolve();const a={...n,type:n.refetchType??n.type??"active"};return this.refetchQueries(a,s)})}refetchQueries(n={},s){const a={...s,cancelRefetch:(s==null?void 0:s.cancelRefetch)??!0},r=Da.batch(()=>ht(this,Bi).findAll(n).filter(e=>!e.isDisabled()).map(e=>{let d=e.fetch(void 0,a);return a.throwOnError||(d=d.catch(bl)),e.state.fetchStatus==="paused"?Promise.resolve():d}));return Promise.all(r).then(bl)}fetchQuery(n){const s=this.defaultQueryOptions(n);s.retry===void 0&&(s.retry=!1);const a=ht(this,Bi).build(this,s);return a.isStaleByTime(s.staleTime)?a.fetch(s):Promise.resolve(a.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(bl).catch(bl)}fetchInfiniteQuery(n){return n.behavior=sP(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(bl).catch(bl)}resumePausedMutations(){return dv.isOnline()?ht(this,kf).resumePausedMutations():Promise.resolve()}getQueryCache(){return ht(this,Bi)}getMutationCache(){return ht(this,kf)}getDefaultOptions(){return ht(this,Of)}setDefaultOptions(n){Ur(this,Of,n)}setQueryDefaults(n,s){ht(this,o1).set(Ag(n),{queryKey:n,defaultOptions:s})}getQueryDefaults(n){const s=[...ht(this,o1).values()];let a={};return s.forEach(r=>{Sg(n,r.queryKey)&&(a={...a,...r.defaultOptions})}),a}setMutationDefaults(n,s){ht(this,l1).set(Ag(n),{mutationKey:n,defaultOptions:s})}getMutationDefaults(n){const s=[...ht(this,l1).values()];let a={};return s.forEach(r=>{Sg(n,r.mutationKey)&&(a={...a,...r.defaultOptions})}),a}defaultQueryOptions(n){if(n._defaulted)return n;const s={...ht(this,Of).queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return s.queryHash||(s.queryHash=V4(s.queryKey,s)),s.refetchOnReconnect===void 0&&(s.refetchOnReconnect=s.networkMode!=="always"),s.throwOnError===void 0&&(s.throwOnError=!!s.suspense),!s.networkMode&&s.persister&&(s.networkMode="offlineFirst"),s.enabled!==!0&&s.queryFn===Y4&&(s.enabled=!1),s}defaultMutationOptions(n){return n!=null&&n._defaulted?n:{...ht(this,Of).mutations,...(n==null?void 0:n.mutationKey)&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){ht(this,Bi).clear(),ht(this,kf).clear()}},Bi=new WeakMap,kf=new WeakMap,Of=new WeakMap,o1=new WeakMap,l1=new WeakMap,Rf=new WeakMap,c1=new WeakMap,u1=new WeakMap,rE),lP="VUE_QUERY_CLIENT";function cP(t){const n=t?`:${t}`:"";return`${lP}${n}`}function fL(t,n){Object.keys(t).forEach(s=>{t[s]=n[s]})}function Ty(t,n){if(n){const s=n(t);if(s===void 0&&$n(t)||s!==void 0)return s}if(Array.isArray(t))return t.map(s=>Ty(s,n));if(typeof t=="object"&&uP(t)){const s=Object.entries(t).map(([a,r])=>[a,Ty(r,n)]);return Object.fromEntries(s)}return t}function Fn(t){return Ty(t,n=>{if($n(n))return Fn(mr(n))})}function uP(t){if(Object.prototype.toString.call(t)!=="[object Object]")return!1;const n=Object.getPrototypeOf(t);return n===null||n===Object.prototype}function hL(t,n){return typeof t=="function"?t(...n):!!t}var fP=class extends U5{find(t){return super.find(Fn(t))}findAll(t={}){return super.findAll(Fn(t))}},hP=class extends $5{find(t){return super.find(Fn(t))}findAll(t={}){return super.findAll(Fn(t))}},dP=class extends oP{constructor(t={}){const n={defaultOptions:t.defaultOptions,queryCache:t.queryCache||new fP,mutationCache:t.mutationCache||new hP};super(n),this.isRestoring=ur(!1)}isFetching(t={}){return super.isFetching(Fn(t))}isMutating(t={}){return super.isMutating(Fn(t))}getQueryData(t){return super.getQueryData(Fn(t))}ensureQueryData(t){return super.ensureQueryData(Fn(t))}getQueriesData(t){return super.getQueriesData(Fn(t))}setQueryData(t,n,s={}){return super.setQueryData(Fn(t),n,Fn(s))}setQueriesData(t,n,s={}){return super.setQueriesData(Fn(t),n,Fn(s))}getQueryState(t){return super.getQueryState(Fn(t))}removeQueries(t={}){return super.removeQueries(Fn(t))}resetQueries(t={},n={}){return super.resetQueries(Fn(t),Fn(n))}cancelQueries(t={},n={}){return super.cancelQueries(Fn(t),Fn(n))}invalidateQueries(t={},n={}){return new Promise(s=>{setTimeout(async()=>{await super.invalidateQueries(Fn(t),Fn(n)),s()},0)})}refetchQueries(t={},n={}){return super.refetchQueries(Fn(t),Fn(n))}fetchQuery(t){return super.fetchQuery(Fn(t))}prefetchQuery(t){return super.prefetchQuery(Fn(t))}fetchInfiniteQuery(t){return super.fetchInfiniteQuery(Fn(t))}prefetchInfiniteQuery(t){return super.prefetchInfiniteQuery(Fn(t))}setDefaultOptions(t){super.setDefaultOptions(Fn(t))}setQueryDefaults(t,n){super.setQueryDefaults(Fn(t),Fn(n))}getQueryDefaults(t){return super.getQueryDefaults(Fn(t))}setMutationDefaults(t,n){super.setMutationDefaults(Fn(t),Fn(n))}getMutationDefaults(t){return super.getMutationDefaults(Fn(t))}},pP={install:(t,n={})=>{const s=cP(n.queryClientKey);let a;if("queryClient"in n&&n.queryClient)a=n.queryClient;else{const d="queryClientConfig"in n?n.queryClientConfig:void 0;a=new dP(d)}jg||a.mount();let r=()=>{};if(n.clientPersister){a.isRestoring.value=!0;const[d,_]=n.clientPersister(a);r=d,_.then(()=>{var y;a.isRestoring.value=!1,(y=n.clientPersisterOnSuccess)==null||y.call(n,a)})}const e=()=>{a.unmount(),r()};if(t.onUnmount)t.onUnmount(e);else{const d=t.unmount;t.unmount=function(){e(),d()}}t.provide(s,a)}};let gP;function mP(){return gP}function vP(t){return typeof t=="function"?t():mr(t)}function Cy(t,n=""){if(t instanceof Promise)return t;const s=vP(t);return!t||!s?s:Array.isArray(s)?s.map(a=>Cy(a,n)):typeof s=="object"?Object.fromEntries(Object.entries(s).map(([a,r])=>a==="titleTemplate"||a.startsWith("on")?[a,mr(r)]:[a,Cy(r,a)])):s}const bP="usehead";function _P(){return Os()&&xa(bP)||mP()}function yP(t,n={}){const s=_P();if(s)return s.ssr?s.push(t,n):wP(s,t,n)}function wP(t,n,s={}){const a=ur(!1),r=ur({});e4(()=>{r.value=a.value?{}:Cy(n)});const e=t.push(r.value,s);return Zn(r,_=>{e.patch(_)}),Os()&&($g(()=>{e.dispose()}),i4(()=>{a.value=!0}),n4(()=>{a.value=!1})),e}const DP=vs({__name:"App",setup(t){return yP({title:"Board - XCPCIO",meta:[{name:"description",content:"XCPCIO-Board 主要收录 *CPC 系列竞赛的榜单。"},{name:"keywords",content:"icpc, ccpc, rank, board, standings"},{name:"theme-color",content:()=>o5.value?"#00aba9":"#ffffff"}],link:[{rel:"icon",type:"image/svg+xml",href:()=>dR.value?"/favicon-dark.svg":"/favicon.svg"}]}),(n,s)=>{const a=Cl("RouterView");return pn(),cu(a)}}});var EP=Object.defineProperty,ND=Object.getOwnPropertySymbols,FP=Object.prototype.hasOwnProperty,xP=Object.prototype.propertyIsEnumerable,MD=(t,n,s)=>n in t?EP(t,n,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[n]=s,LD=(t,n)=>{for(var s in n||(n={}))FP.call(n,s)&&MD(t,s,n[s]);if(ND)for(var s of ND(n))xP.call(n,s)&&MD(t,s,n[s]);return t};const R_=new WeakMap;function H5(t,n,s={}){const{mode:a="replace",route:r=x6(),router:e=Lk(),transform:d=T=>T}=s;R_.has(r)||R_.set(r,new Map);const _=R_.get(r);lc(()=>{_.delete(t)}),_.set(t,r.query[t]);let y;const E=qy((T,A)=>(y=A,{get(){T();const R=_.get(t);return d(R!==void 0?R:Ti(n))},set(R){_.get(t)!==R&&(_.set(t,R),A(),uc(()=>{const{params:L,query:B,hash:P}=r;e[Ti(a)]({params:L,query:LD(LD({},B),Object.fromEntries(_.entries())),hash:P})}))}}));return Zn(()=>r.query[t],T=>{_.set(t,T),y()},{flush:"sync"}),E}var W5={exports:{}};(function(t,n){(function(s,a){t.exports=a()})(ms,function(){var s=1e3,a=6e4,r=36e5,e="millisecond",d="second",_="minute",y="hour",E="day",T="week",A="month",R="quarter",L="year",B="date",P="Invalid Date",V=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,z=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,q={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(_e){var be=["th","st","nd","rd"],$e=_e%100;return"["+_e+(be[($e-20)%10]||be[$e]||be[0])+"]"}},oe=function(_e,be,$e){var je=String(_e);return!je||je.length>=be?_e:""+Array(be+1-je.length).join($e)+_e},K={s:oe,z:function(_e){var be=-_e.utcOffset(),$e=Math.abs(be),je=Math.floor($e/60),Ee=$e%60;return(be<=0?"+":"-")+oe(je,2,"0")+":"+oe(Ee,2,"0")},m:function _e(be,$e){if(be.date()<$e.date())return-_e($e,be);var je=12*($e.year()-be.year())+($e.month()-be.month()),Ee=be.clone().add(je,A),lt=$e-Ee<0,Xe=be.clone().add(je+(lt?-1:1),A);return+(-(je+($e-Ee)/(lt?Ee-Xe:Xe-Ee))||0)},a:function(_e){return _e<0?Math.ceil(_e)||0:Math.floor(_e)},p:function(_e){return{M:A,y:L,w:T,d:E,D:B,h:y,m:_,s:d,ms:e,Q:R}[_e]||String(_e||"").toLowerCase().replace(/s$/,"")},u:function(_e){return _e===void 0}},G="en",ne={};ne[G]=q;var ce=function(_e){return _e instanceof fe},U=function _e(be,$e,je){var Ee;if(!be)return G;if(typeof be=="string"){var lt=be.toLowerCase();ne[lt]&&(Ee=lt),$e&&(ne[lt]=$e,Ee=lt);var Xe=be.split("-");if(!Ee&&Xe.length>1)return _e(Xe[0])}else{var Je=be.name;ne[Je]=be,Ee=Je}return!je&&Ee&&(G=Ee),Ee||!je&&G},W=function(_e,be){if(ce(_e))return _e.clone();var $e=typeof be=="object"?be:{};return $e.date=_e,$e.args=arguments,new fe($e)},te=K;te.l=U,te.i=ce,te.w=function(_e,be){return W(_e,{locale:be.$L,utc:be.$u,x:be.$x,$offset:be.$offset})};var fe=function(){function _e($e){this.$L=U($e.locale,null,!0),this.parse($e)}var be=_e.prototype;return be.parse=function($e){this.$d=function(je){var Ee=je.date,lt=je.utc;if(Ee===null)return new Date(NaN);if(te.u(Ee))return new Date;if(Ee instanceof Date)return new Date(Ee);if(typeof Ee=="string"&&!/Z$/i.test(Ee)){var Xe=Ee.match(V);if(Xe){var Je=Xe[2]-1||0,de=(Xe[7]||"0").substring(0,3);return lt?new Date(Date.UTC(Xe[1],Je,Xe[3]||1,Xe[4]||0,Xe[5]||0,Xe[6]||0,de)):new Date(Xe[1],Je,Xe[3]||1,Xe[4]||0,Xe[5]||0,Xe[6]||0,de)}}return new Date(Ee)}($e),this.$x=$e.x||{},this.init()},be.init=function(){var $e=this.$d;this.$y=$e.getFullYear(),this.$M=$e.getMonth(),this.$D=$e.getDate(),this.$W=$e.getDay(),this.$H=$e.getHours(),this.$m=$e.getMinutes(),this.$s=$e.getSeconds(),this.$ms=$e.getMilliseconds()},be.$utils=function(){return te},be.isValid=function(){return this.$d.toString()!==P},be.isSame=function($e,je){var Ee=W($e);return this.startOf(je)<=Ee&&Ee<=this.endOf(je)},be.isAfter=function($e,je){return W($e)<this.startOf(je)},be.isBefore=function($e,je){return this.endOf(je)<W($e)},be.$g=function($e,je,Ee){return te.u($e)?this[je]:this.set(Ee,$e)},be.unix=function(){return Math.floor(this.valueOf()/1e3)},be.valueOf=function(){return this.$d.getTime()},be.startOf=function($e,je){var Ee=this,lt=!!te.u(je)||je,Xe=te.p($e),Je=function(He,pe){var it=te.w(Ee.$u?Date.UTC(Ee.$y,pe,He):new Date(Ee.$y,pe,He),Ee);return lt?it:it.endOf(E)},de=function(He,pe){return te.w(Ee.toDate()[He].apply(Ee.toDate("s"),(lt?[0,0,0,0]:[23,59,59,999]).slice(pe)),Ee)},Se=this.$W,rt=this.$M,We=this.$D,Fe="set"+(this.$u?"UTC":"");switch(Xe){case L:return lt?Je(1,0):Je(31,11);case A:return lt?Je(1,rt):Je(0,rt+1);case T:var Be=this.$locale().weekStart||0,ie=(Se<Be?Se+7:Se)-Be;return Je(lt?We-ie:We+(6-ie),rt);case E:case B:return de(Fe+"Hours",0);case y:return de(Fe+"Minutes",1);case _:return de(Fe+"Seconds",2);case d:return de(Fe+"Milliseconds",3);default:return this.clone()}},be.endOf=function($e){return this.startOf($e,!1)},be.$set=function($e,je){var Ee,lt=te.p($e),Xe="set"+(this.$u?"UTC":""),Je=(Ee={},Ee[E]=Xe+"Date",Ee[B]=Xe+"Date",Ee[A]=Xe+"Month",Ee[L]=Xe+"FullYear",Ee[y]=Xe+"Hours",Ee[_]=Xe+"Minutes",Ee[d]=Xe+"Seconds",Ee[e]=Xe+"Milliseconds",Ee)[lt],de=lt===E?this.$D+(je-this.$W):je;if(lt===A||lt===L){var Se=this.clone().set(B,1);Se.$d[Je](de),Se.init(),this.$d=Se.set(B,Math.min(this.$D,Se.daysInMonth())).$d}else Je&&this.$d[Je](de);return this.init(),this},be.set=function($e,je){return this.clone().$set($e,je)},be.get=function($e){return this[te.p($e)]()},be.add=function($e,je){var Ee,lt=this;$e=Number($e);var Xe=te.p(je),Je=function(rt){var We=W(lt);return te.w(We.date(We.date()+Math.round(rt*$e)),lt)};if(Xe===A)return this.set(A,this.$M+$e);if(Xe===L)return this.set(L,this.$y+$e);if(Xe===E)return Je(1);if(Xe===T)return Je(7);var de=(Ee={},Ee[_]=a,Ee[y]=r,Ee[d]=s,Ee)[Xe]||1,Se=this.$d.getTime()+$e*de;return te.w(Se,this)},be.subtract=function($e,je){return this.add(-1*$e,je)},be.format=function($e){var je=this,Ee=this.$locale();if(!this.isValid())return Ee.invalidDate||P;var lt=$e||"YYYY-MM-DDTHH:mm:ssZ",Xe=te.z(this),Je=this.$H,de=this.$m,Se=this.$M,rt=Ee.weekdays,We=Ee.months,Fe=function(pe,it,Ot,re){return pe&&(pe[it]||pe(je,lt))||Ot[it].slice(0,re)},Be=function(pe){return te.s(Je%12||12,pe,"0")},ie=Ee.meridiem||function(pe,it,Ot){var re=pe<12?"AM":"PM";return Ot?re.toLowerCase():re},He={YY:String(this.$y).slice(-2),YYYY:te.s(this.$y,4,"0"),M:Se+1,MM:te.s(Se+1,2,"0"),MMM:Fe(Ee.monthsShort,Se,We,3),MMMM:Fe(We,Se),D:this.$D,DD:te.s(this.$D,2,"0"),d:String(this.$W),dd:Fe(Ee.weekdaysMin,this.$W,rt,2),ddd:Fe(Ee.weekdaysShort,this.$W,rt,3),dddd:rt[this.$W],H:String(Je),HH:te.s(Je,2,"0"),h:Be(1),hh:Be(2),a:ie(Je,de,!0),A:ie(Je,de,!1),m:String(de),mm:te.s(de,2,"0"),s:String(this.$s),ss:te.s(this.$s,2,"0"),SSS:te.s(this.$ms,3,"0"),Z:Xe};return lt.replace(z,function(pe,it){return it||He[pe]||Xe.replace(":","")})},be.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},be.diff=function($e,je,Ee){var lt,Xe=te.p(je),Je=W($e),de=(Je.utcOffset()-this.utcOffset())*a,Se=this-Je,rt=te.m(this,Je);return rt=(lt={},lt[L]=rt/12,lt[A]=rt,lt[R]=rt/3,lt[T]=(Se-de)/6048e5,lt[E]=(Se-de)/864e5,lt[y]=Se/r,lt[_]=Se/a,lt[d]=Se/s,lt)[Xe]||Se,Ee?rt:te.a(rt)},be.daysInMonth=function(){return this.endOf(A).$D},be.$locale=function(){return ne[this.$L]},be.locale=function($e,je){if(!$e)return this.$L;var Ee=this.clone(),lt=U($e,je,!0);return lt&&(Ee.$L=lt),Ee},be.clone=function(){return te.w(this.$d,this)},be.toDate=function(){return new Date(this.valueOf())},be.toJSON=function(){return this.isValid()?this.toISOString():null},be.toISOString=function(){return this.$d.toISOString()},be.toString=function(){return this.$d.toUTCString()},_e}(),xe=fe.prototype;return W.prototype=xe,[["$ms",e],["$s",d],["$m",_],["$H",y],["$W",E],["$M",A],["$y",L],["$D",B]].forEach(function(_e){xe[_e[1]]=function(be){return this.$g(be,_e[0],_e[1])}}),W.extend=function(_e,be){return _e.$i||(_e(be,fe,W),_e.$i=!0),W},W.locale=U,W.isDayjs=ce,W.unix=function(_e){return W(1e3*_e)},W.en=ne[G],W.Ls=ne,W.p={},W})})(W5);var TP=W5.exports;const ea=ra(TP);var z5={exports:{}};(function(t,n){(function(s,a){t.exports=a()})(ms,function(){var s,a,r=1e3,e=6e4,d=36e5,_=864e5,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,E=31536e6,T=2592e6,A=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,R={years:E,months:T,days:_,hours:d,minutes:e,seconds:r,milliseconds:1,weeks:6048e5},L=function(G){return G instanceof K},B=function(G,ne,ce){return new K(G,ce,ne.$l)},P=function(G){return a.p(G)+"s"},V=function(G){return G<0},z=function(G){return V(G)?Math.ceil(G):Math.floor(G)},q=function(G){return Math.abs(G)},oe=function(G,ne){return G?V(G)?{negative:!0,format:""+q(G)+ne}:{negative:!1,format:""+G+ne}:{negative:!1,format:""}},K=function(){function G(ce,U,W){var te=this;if(this.$d={},this.$l=W,ce===void 0&&(this.$ms=0,this.parseFromMilliseconds()),U)return B(ce*R[P(U)],this);if(typeof ce=="number")return this.$ms=ce,this.parseFromMilliseconds(),this;if(typeof ce=="object")return Object.keys(ce).forEach(function(_e){te.$d[P(_e)]=ce[_e]}),this.calMilliseconds(),this;if(typeof ce=="string"){var fe=ce.match(A);if(fe){var xe=fe.slice(2).map(function(_e){return _e!=null?Number(_e):0});return this.$d.years=xe[0],this.$d.months=xe[1],this.$d.weeks=xe[2],this.$d.days=xe[3],this.$d.hours=xe[4],this.$d.minutes=xe[5],this.$d.seconds=xe[6],this.calMilliseconds(),this}}return this}var ne=G.prototype;return ne.calMilliseconds=function(){var ce=this;this.$ms=Object.keys(this.$d).reduce(function(U,W){return U+(ce.$d[W]||0)*R[W]},0)},ne.parseFromMilliseconds=function(){var ce=this.$ms;this.$d.years=z(ce/E),ce%=E,this.$d.months=z(ce/T),ce%=T,this.$d.days=z(ce/_),ce%=_,this.$d.hours=z(ce/d),ce%=d,this.$d.minutes=z(ce/e),ce%=e,this.$d.seconds=z(ce/r),ce%=r,this.$d.milliseconds=ce},ne.toISOString=function(){var ce=oe(this.$d.years,"Y"),U=oe(this.$d.months,"M"),W=+this.$d.days||0;this.$d.weeks&&(W+=7*this.$d.weeks);var te=oe(W,"D"),fe=oe(this.$d.hours,"H"),xe=oe(this.$d.minutes,"M"),_e=this.$d.seconds||0;this.$d.milliseconds&&(_e+=this.$d.milliseconds/1e3);var be=oe(_e,"S"),$e=ce.negative||U.negative||te.negative||fe.negative||xe.negative||be.negative,je=fe.format||xe.format||be.format?"T":"",Ee=($e?"-":"")+"P"+ce.format+U.format+te.format+je+fe.format+xe.format+be.format;return Ee==="P"||Ee==="-P"?"P0D":Ee},ne.toJSON=function(){return this.toISOString()},ne.format=function(ce){var U=ce||"YYYY-MM-DDTHH:mm:ss",W={Y:this.$d.years,YY:a.s(this.$d.years,2,"0"),YYYY:a.s(this.$d.years,4,"0"),M:this.$d.months,MM:a.s(this.$d.months,2,"0"),D:this.$d.days,DD:a.s(this.$d.days,2,"0"),H:this.$d.hours,HH:a.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:a.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:a.s(this.$d.seconds,2,"0"),SSS:a.s(this.$d.milliseconds,3,"0")};return U.replace(y,function(te,fe){return fe||String(W[te])})},ne.as=function(ce){return this.$ms/R[P(ce)]},ne.get=function(ce){var U=this.$ms,W=P(ce);return W==="milliseconds"?U%=1e3:U=W==="weeks"?z(U/R[W]):this.$d[W],U===0?0:U},ne.add=function(ce,U,W){var te;return te=U?ce*R[P(U)]:L(ce)?ce.$ms:B(ce,this).$ms,B(this.$ms+te*(W?-1:1),this)},ne.subtract=function(ce,U){return this.add(ce,U,!0)},ne.locale=function(ce){var U=this.clone();return U.$l=ce,U},ne.clone=function(){return B(this.$ms,this)},ne.humanize=function(ce){return s().add(this.$ms,"ms").locale(this.$l).fromNow(!ce)},ne.valueOf=function(){return this.asMilliseconds()},ne.milliseconds=function(){return this.get("milliseconds")},ne.asMilliseconds=function(){return this.as("milliseconds")},ne.seconds=function(){return this.get("seconds")},ne.asSeconds=function(){return this.as("seconds")},ne.minutes=function(){return this.get("minutes")},ne.asMinutes=function(){return this.as("minutes")},ne.hours=function(){return this.get("hours")},ne.asHours=function(){return this.as("hours")},ne.days=function(){return this.get("days")},ne.asDays=function(){return this.as("days")},ne.weeks=function(){return this.get("weeks")},ne.asWeeks=function(){return this.as("weeks")},ne.months=function(){return this.get("months")},ne.asMonths=function(){return this.as("months")},ne.years=function(){return this.get("years")},ne.asYears=function(){return this.as("years")},G}();return function(G,ne,ce){s=ce,a=ce().$utils(),ce.duration=function(te,fe){var xe=ce.locale();return B(te,{$l:xe},fe)},ce.isDuration=L;var U=ne.prototype.add,W=ne.prototype.subtract;ne.prototype.add=function(te,fe){return L(te)&&(te=te.asMilliseconds()),U.bind(this)(te,fe)},ne.prototype.subtract=function(te,fe){return L(te)&&(te=te.asMilliseconds()),W.bind(this)(te,fe)}}})})(z5);var CP=z5.exports;const AP=ra(CP);var j5={exports:{}};(function(t,n){(function(s,a){t.exports=a()})(ms,function(){var s="minute",a=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(e,d,_){var y=d.prototype;_.utc=function(P){var V={date:P,utc:!0,args:arguments};return new d(V)},y.utc=function(P){var V=_(this.toDate(),{locale:this.$L,utc:!0});return P?V.add(this.utcOffset(),s):V},y.local=function(){return _(this.toDate(),{locale:this.$L,utc:!1})};var E=y.parse;y.parse=function(P){P.utc&&(this.$u=!0),this.$utils().u(P.$offset)||(this.$offset=P.$offset),E.call(this,P)};var T=y.init;y.init=function(){if(this.$u){var P=this.$d;this.$y=P.getUTCFullYear(),this.$M=P.getUTCMonth(),this.$D=P.getUTCDate(),this.$W=P.getUTCDay(),this.$H=P.getUTCHours(),this.$m=P.getUTCMinutes(),this.$s=P.getUTCSeconds(),this.$ms=P.getUTCMilliseconds()}else T.call(this)};var A=y.utcOffset;y.utcOffset=function(P,V){var z=this.$utils().u;if(z(P))return this.$u?0:z(this.$offset)?A.call(this):this.$offset;if(typeof P=="string"&&(P=function(G){G===void 0&&(G="");var ne=G.match(a);if(!ne)return null;var ce=(""+ne[0]).match(r)||["-",0,0],U=ce[0],W=60*+ce[1]+ +ce[2];return W===0?0:U==="+"?W:-W}(P),P===null))return this;var q=Math.abs(P)<=16?60*P:P,oe=this;if(V)return oe.$offset=q,oe.$u=P===0,oe;if(P!==0){var K=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(oe=this.local().add(q+K,s)).$offset=q,oe.$x.$localOffset=K}else oe=this.utc();return oe};var R=y.format;y.format=function(P){var V=P||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return R.call(this,V)},y.valueOf=function(){var P=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*P},y.isUTC=function(){return!!this.$u},y.toISOString=function(){return this.toDate().toISOString()},y.toString=function(){return this.toDate().toUTCString()};var L=y.toDate;y.toDate=function(P){return P==="s"&&this.$offset?_(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():L.call(this)};var B=y.diff;y.diff=function(P,V,z){if(P&&this.$u===P.$u)return B.call(this,P,V,z);var q=this.local(),oe=_(P).local();return B.call(q,oe,V,z)}}})})(j5);var SP=j5.exports;const kP=ra(SP);var G5={exports:{}};(function(t,n){(function(s,a){t.exports=a()})(ms,function(){var s={year:0,month:1,day:2,hour:3,minute:4,second:5},a={};return function(r,e,d){var _,y=function(R,L,B){B===void 0&&(B={});var P=new Date(R),V=function(z,q){q===void 0&&(q={});var oe=q.timeZoneName||"short",K=z+"|"+oe,G=a[K];return G||(G=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:z,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:oe}),a[K]=G),G}(L,B);return V.formatToParts(P)},E=function(R,L){for(var B=y(R,L),P=[],V=0;V<B.length;V+=1){var z=B[V],q=z.type,oe=z.value,K=s[q];K>=0&&(P[K]=parseInt(oe,10))}var G=P[3],ne=G===24?0:G,ce=P[0]+"-"+P[1]+"-"+P[2]+" "+ne+":"+P[4]+":"+P[5]+":000",U=+R;return(d.utc(ce).valueOf()-(U-=U%1e3))/6e4},T=e.prototype;T.tz=function(R,L){R===void 0&&(R=_);var B=this.utcOffset(),P=this.toDate(),V=P.toLocaleString("en-US",{timeZone:R}),z=Math.round((P-new Date(V))/1e3/60),q=d(V).$set("millisecond",this.$ms).utcOffset(15*-Math.round(P.getTimezoneOffset()/15)-z,!0);if(L){var oe=q.utcOffset();q=q.add(B-oe,"minute")}return q.$x.$timezone=R,q},T.offsetName=function(R){var L=this.$x.$timezone||d.tz.guess(),B=y(this.valueOf(),L,{timeZoneName:R}).find(function(P){return P.type.toLowerCase()==="timezonename"});return B&&B.value};var A=T.startOf;T.startOf=function(R,L){if(!this.$x||!this.$x.$timezone)return A.call(this,R,L);var B=d(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return A.call(B,R,L).tz(this.$x.$timezone,!0)},d.tz=function(R,L,B){var P=B&&L,V=B||L||_,z=E(+d(),V);if(typeof R!="string")return d(R).tz(V);var q=function(ne,ce,U){var W=ne-60*ce*1e3,te=E(W,U);if(ce===te)return[W,ce];var fe=E(W-=60*(te-ce)*1e3,U);return te===fe?[W,te]:[ne-60*Math.min(te,fe)*1e3,Math.max(te,fe)]}(d.utc(R,P).valueOf(),z,V),oe=q[0],K=q[1],G=d(oe).utcOffset(K);return G.$x.$timezone=V,G},d.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},d.tz.setDefault=function(R){_=R}}})})(G5);var OP=G5.exports;const RP=ra(OP);var V5={exports:{}};(function(t,n){(function(s,a){t.exports=a()})(ms,function(){return function(s,a){var r=a.prototype,e=r.format;r.format=function(d){var _=this,y=this.$locale();if(!this.isValid())return e.bind(this)(d);var E=this.$utils(),T=(d||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(A){switch(A){case"Q":return Math.ceil((_.$M+1)/3);case"Do":return y.ordinal(_.$D);case"gggg":return _.weekYear();case"GGGG":return _.isoWeekYear();case"wo":return y.ordinal(_.week(),"W");case"w":case"ww":return E.s(_.week(),A==="w"?1:2,"0");case"W":case"WW":return E.s(_.isoWeek(),A==="W"?1:2,"0");case"k":case"kk":return E.s(String(_.$H===0?24:_.$H),A==="k"?1:2,"0");case"X":return Math.floor(_.$d.getTime()/1e3);case"x":return _.$d.getTime();case"z":return"["+_.offsetName()+"]";case"zzz":return"["+_.offsetName("long")+"]";default:return A}});return e.bind(this)(T)}}})})(V5);var IP=V5.exports;const PP=ra(IP);var Y5={exports:{}};(function(t,n){(function(s,a){t.exports=a()})(ms,function(){return function(s,a){a.prototype.isSameOrBefore=function(r,e){return this.isSame(r,e)||this.isBefore(r,e)}}})})(Y5);var NP=Y5.exports;const MP=ra(NP);var K5={exports:{}};(function(t,n){(function(s,a){t.exports=a()})(ms,function(){return function(s,a){a.prototype.isSameOrAfter=function(r,e){return this.isSame(r,e)||this.isAfter(r,e)}}})})(K5);var LP=K5.exports;const BP=ra(LP);var q5={exports:{}};(function(t,n){(function(s,a){t.exports=a()})(ms,function(){return function(s,a,r){var e=function(d,_){if(!_||!_.length||!_[0]||_.length===1&&!_[0].length)return null;var y;_.length===1&&_[0].length>0&&(_=_[0]),y=_[0];for(var E=1;E<_.length;E+=1)_[E].isValid()&&!_[E][d](y)||(y=_[E]);return y};r.max=function(){var d=[].slice.call(arguments,0);return e("isAfter",d)},r.min=function(){var d=[].slice.call(arguments,0);return e("isBefore",d)}}})})(q5);var UP=q5.exports;const $P=ra(UP);var Q5={exports:{}};(function(t,n){(function(s,a){t.exports=a()})(ms,function(){return function(s,a,r){s=s||{};var e=a.prototype,d={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function _(E,T,A,R){return e.fromToBase(E,T,A,R)}r.en.relativeTime=d,e.fromToBase=function(E,T,A,R,L){for(var B,P,V,z=A.$locale().relativeTime||d,q=s.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],oe=q.length,K=0;K<oe;K+=1){var G=q[K];G.d&&(B=R?r(E).diff(A,G.d,!0):A.diff(E,G.d,!0));var ne=(s.rounding||Math.round)(Math.abs(B));if(V=B>0,ne<=G.r||!G.r){ne<=1&&K>0&&(G=q[K-1]);var ce=z[G.l];L&&(ne=L(""+ne)),P=typeof ce=="string"?ce.replace("%d",ne):ce(ne,T,G.l,V);break}}if(T)return P;var U=V?z.future:z.past;return typeof U=="function"?U(P):U.replace("%s",P)},e.to=function(E,T){return _(E,T,this,!0)},e.from=function(E,T){return _(E,T,this)};var y=function(E){return E.$u?r.utc():r()};e.toNow=function(E){return this.to(y(this),E)},e.fromNow=function(E){return this.from(y(this),E)}}})})(Q5);var HP=Q5.exports;const WP=ra(HP);var pv={exports:{}};/**
31
31
  * @license
32
32
  * Lodash <https://lodash.com/>
33
33
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
@@ -267,8 +267,8 @@ License: MIT
267
267
  `});let a=1;const r=new Map,e=new Map;n.teams.forEach(d=>{let _=d.name;d.organization&&(_=`${d.organization} - ${_}`),d.members&&(_=`${_} - ${d.membersToString}`),s+=`@t ${a},0,1,"${_}"
268
268
  `,r.set(d.id,a),a++;{const y=new Map;n.contest.problems.forEach(E=>{y.set(E.id,0)}),e.set(d.id,y)}});for(let d=0;d<100;d++)s+=`@t ${a},0,1,"Пополнить команду"
269
269
  `,a++;return n.getSubmissions().forEach(d=>{var R;const _=d.teamId,y=d.problemId,E=n.contest.problemsMap.get(y),T=r.get(_);if(!E||!T)return;const A=this.submissionStatusToCodeforcesGymDatStatus(d.status);e.get(_).set(y,e.get(_).get(y)+1),s+=`@s ${T},${E.label},${(R=e.get(_))==null?void 0:R.get(y)},${d.timestampToSecond},${A}
270
- `}),s}submissionStatusToCodeforcesGymDatStatus(n){return gx(n)?"OK":n===Ht.WRONG_ANSWER?"WA":n===Ht.TIME_LIMIT_EXCEEDED?"TL":n===Ht.MEMORY_LIMIT_EXCEEDED?"ML":n===Ht.OUTPUT_LIMIT_EXCEEDED?"IL":n===Ht.PRESENTATION_ERROR?"PE":n===Ht.RUNTIME_ERROR?"RT":n===Ht.COMPILATION_ERROR||vx(n)?"CE":mx(n)?"PD":"RJ"}}var tu=(t=>(t.UNKNOWN="Unknown",t.GOLD="Gold",t.SILVER="Silver",t.BRONZE="Bronze",t.HONORABLE="Honorable",t))(tu||{});class Gd{constructor(){this.medalType="Unknown",this.minRank=0,this.maxRank=0}}function bx(t){return["Gold","Silver","Bronze","Honorable"].includes(t)}class pL{constructor(){}convert(n){const s=Bf.cloneDeep(n);s.options.disableFilterTeamsByGroup(),s.options.disableFilterSubmissionByTimestamp();const a=Ud.utils.book_new();for(const[r,e]of s.contest.group){s.options.setGroup(r),s.buildRank();const d=this.convertToSheet(s);Ud.utils.book_append_sheet(a,d,e.names.get(e.defaultLang))}return a}convertAndWrite(n,s){return Ud.writeFile(this.convert(n),s,{compression:!0})}convertToSheet(n){const s=this.convertToAoa(n),a=Ud.utils.aoa_to_sheet(s),r=[],e=s[1];for(let E=0;E<e.length;E++){let T=10;for(let A=1;A<s.length;A++)T=Math.max(T,ZP(s[A][E])+2);r.push({wch:T})}a["!cols"]=r;{const E={s:{r:0,c:0},e:{r:0,c:e.length-1}},T=[{s:E.s,e:E.e}];a["!merges"]=T}const d={name:"Arial Unicode MS",bold:!1,italic:!1,sz:12},_={style:"thin"},y={alignment:{vertical:"center",horizontal:"center"},border:{top:_,bottom:_,left:_,right:_},font:d};for(let E=1;E<s.length;E++)for(let T=0;T<s[E].length;T++){const A=Ud.utils.encode_cell({r:E,c:T}),R=a[A];R.s=y}{const E=Ud.utils.encode_cell({r:0,c:0}),T=a[E],A=Bf.cloneDeep(y);A.font.sz=28,A.font.bold=!0,T.s=A}return a}convertToAoa(n){var d,_;const s=[],a=n.contest.isEnableAwards(n.options.group),r=(Array.isArray(n.teams)&&((d=n.teams[0])==null?void 0:d.members))??!1,e=((_=n.teams[0])==null?void 0:_.coach)??!1;s.push([n.contest.name]);{const y=[];y.push("Rank"),n.contest.organization&&(y.push(`${n.contest.organization} Rank`),y.push(n.contest.organization)),y.push("Team","Solved","Penalty",...n.contest.problems.map(E=>E.label),"Dirt"),a&&y.push("Medal"),r&&y.push("Member1","Member2","Member3"),e&&y.push("Coach"),y.push("Unofficial"),y.push("Girl"),s.push(y)}for(const y of n.teams){const E=[];E.push(y.rank.toString()),y.organization&&(y.organizationRank!==-1?E.push(y.organizationRank.toString()):E.push(""),E.push(y.organization)),E.push(y.name,y.solvedProblemNum.toString(),y.penaltyToMinute.toString());for(const T of y.problemStatistics)T.isUnSubmitted&&E.push("-"),T.isSolved&&E.push(`+${T.totalCount}(${T.solvedTimestampToMinute})`),T.isWrongAnswer&&E.push(`-${T.failedCount}`),T.isPending&&E.push(`? ${T.failedCount} + ${T.pendingCount}`);if(E.push(`${y.dirt}%`),a){const T=y.awards.filter(A=>bx(A)).map(A=>A.toString());E.push(T.join(", "))}if(r){const T=y.members;Array.isArray(T)?(E.push(T[0]??""),E.push(T[1]??""),E.push(T[2]??"")):E.push("","","")}e&&(typeof y.coach=="string"?E.push(y.coach??""):E.push("")),E.push(y.isUnofficial?"Y":"N"),E.push(y.isGirl?"Y":"N"),s.push(E)}return s}}class gL{constructor(){}convert(n){var e;const s=Bf.cloneDeep(n);s.options.disableFilterTeamsByGroup(),s.options.disableFilterSubmissionByTimestamp(),s.options.setGroup("official"),s.buildRank();const a=[];for(const d of s.teams){const _={teamId:d.icpcID??"",rank:d.rank,medalCitation:this.getMedalCitation(d),problemsSolved:d.solvedProblemNum,totalTime:d.penaltyToMinute,lastProblemTime:((e=d.lastSolvedProblemStatistics)==null?void 0:e.solvedTimestampToMinute)??0,siteCitation:s.contest.name,citation:iN(d.rank),teamName:d.name,institution:d.organization};a.push(_)}return tN.unparse(a)}getMedalCitation(n){if(n.solvedProblemNum===0)return"";const s=n.awards.filter(a=>bx(a)).map(a=>a.toString());if(s.length===1){const a=s[0];if(a==="Gold")return"Gold Medal";if(a==="Silver")return"Silver Medal";if(a==="Bronze")return"Bronze Medal";if(a==="Honorable")return"Honorable Mention"}return""}}class su{constructor(n=""){this.name=n}toJSON(){return{name:this.name}}static fromJSON(n){typeof n=="string"&&(n=JSON.parse(n));const s=new su;return s.name=n.name,s}}function $p(t){if(typeof t=="string"){for(const n of" ,、|")if(t.includes(n))return t.split(n).map(s=>new su(s));return[new su(t)]}return t.map(n=>new su(n))}function _x(t,n){return n===0?0:Math.floor((t-n)*100/t)}function yx(t){const[n,s,a]=aN(t).rgb();return(n*299+s*587+a*114)/1e3<=148?"#fff":"#000"}class Xv{constructor(){this.rank=0,this.rating=0,this.teamName="",this.organization="",this.members=[],this.coaches=[],this.contestID="",this.contestName="",this.contestLink="",this.contestTime=Ws()}toJSON(){return{rank:this.rank,rating:this.rating,teamName:this.teamName,organization:this.organization,members:this.members.map(n=>n.toJSON()),coaches:this.coaches.map(n=>n.toJSON()),contestID:this.contestID,contestName:this.contestName,contestLink:this.contestLink,contestTime:this.contestTime.toDate()}}static fromJSON(n){typeof n=="string"&&(n=JSON.parse(n));const s=new Xv;return s.rank=n.rank,s.rating=n.rating,s.teamName=n.teamName,s.organization=n.organization,s.members=n.members.map(a=>su.fromJSON(a)),s.coaches=n.coaches.map(a=>su.fromJSON(a)),s.contestID=n.contestID,s.contestName=n.contestName,s.contestLink=n.contestLink,s.contestTime=Ws(n.contestTime),s}}class kg{constructor(){this.id="",this.name="",this.organization="",this.members=[],this.coaches=[],this.rating=0,this.minRating=1061109567,this.maxRating=-1061109567,this.rank=0,this.oldRating=0,this.seed=1,this.delta=0,this.ratingHistories=[]}UpdateRating(n){this.rating=n,this.minRating=Math.min(this.minRating,n),this.maxRating=Math.max(this.maxRating,n)}toJSON(){return{id:this.id,name:this.name,organization:this.organization,members:this.members.map(n=>n.toJSON()),coaches:this.coaches.map(n=>n.toJSON()),rating:this.rating,minRating:this.minRating,maxRating:this.maxRating,ratingHistories:this.ratingHistories.map(n=>n.toJSON())}}static fromJSON(n){typeof n=="string"&&(n=JSON.parse(n));const s=new kg;s.id=n.id,s.name=n.name,s.organization=n.organization,s.members=n.members.map(a=>su.fromJSON(a)),s.coaches=n.coaches.map(a=>su.fromJSON(a)),s.rating=n.rating,s.minRating=n.minRating,s.maxRating=n.maxRating;for(const a of n.ratingHistories)s.ratingHistories.push(Xv.fromJSON(a));return s}}class wN{constructor(){this.users=[]}calculate(){this.calculateInternal()}calcP(n,s){return 1/(1+10**((s.oldRating-n.oldRating)/400))}getExSeed(n,s,a){const r=new kg;r.oldRating=s;let e=0;return n.forEach(d=>{d.id!==a.id&&(e+=this.calcP(d,r))}),e}calcRating(n,s,a){let r=1,e=8e3;for(;e-r>1;){const d=Math.floor((r+e)/2);this.getExSeed(n,d,a)<s?e=d:r=d}return r}calculateInternal(){for(let e=0;e<this.users.length;e++){const d=this.users[e];d.seed=1;for(let _=0;_<this.users.length;_++)if(e!==_){const y=this.users[_];d.seed+=this.calcP(y,d)}}let n=0;for(let e=0;e<this.users.length;e++){const d=this.users[e];d.delta=Math.floor((this.calcRating(this.users,Math.sqrt(d.rank*d.seed),d)-d.oldRating)/2),n+=d.delta}let s=Math.floor(-n/this.users.length)-1;for(let e=0;e<this.users.length;e++){const d=this.users[e];d.delta+=s}this.users=this.users.sort((e,d)=>d.oldRating-e.oldRating);const a=Math.min(this.users.length,Math.floor(4*Math.round(Math.sqrt(this.users.length))));let r=0;for(let e=0;e<a;e++)r+=this.users[e].delta;s=Math.min(Math.max(Math.floor(-r/a),-10),0),this.users.forEach(e=>{e.delta+=s,e.UpdateRating(e.oldRating+e.delta)}),this.users=this.users.sort((e,d)=>e.rank-d.rank)}}const mL={NEWBIE:"Newbie",PUPIL:"Pupil",SPECIALIST:"Specialist",EXPERT:"Expert",CANDIDATE_MASTER:"Candidate Master",MASTER:"Master",INTERNATIONAL_MASTER:"International Master",GRANDMASTER:"Grandmaster",INTERNATIONAL_GRANDMASTER:"International Grandmaster",LEGENDARY_GRANDMASTER:"Legendary Grandmaster"};class vL{static getRatingLevel(n){return n>=3e3?"LEGENDARY_GRANDMASTER":n>=2600?"INTERNATIONAL_GRANDMASTER":n>=2400?"GRANDMASTER":n>=2300?"INTERNATIONAL_MASTER":n>=2100?"MASTER":n>=1900?"CANDIDATE_MASTER":n>=1600?"EXPERT":n>=1400?"SPECIALIST":n>=1200?"PUPIL":"NEWBIE"}static getRatingLevelClass(n){if(typeof n=="number")return this.getRatingLevelClass(this.getRatingLevel(n));switch(n){case"NEWBIE":return"user-gray";case"PUPIL":return"user-green";case"SPECIALIST":return"user-cyan";case"EXPERT":return"user-blue";case"CANDIDATE_MASTER":return"user-violet";case"MASTER":return"user-orange";case"INTERNATIONAL_MASTER":return"user-orange";case"GRANDMASTER":return"user-red";case"INTERNATIONAL_GRANDMASTER":return"user-red";case"LEGENDARY_GRANDMASTER":return"user-legendary"}}}class wx{constructor(){this.id="",this.name="",this.baseRating=1500,this.contestIDs=[],this.users=[],this.ranks=[],this.userMap=new Map}buildRating(){for(const n of this.ranks){n.buildRank();const s=new wN;for(const a of n.teams){const r=this.generateTeamId(a);let e=null;this.userMap.has(r)?(e=this.userMap.get(r),e.rank=a.rank,e.oldRating=e.rating,s.users.push(e)):(e=new kg,e.id=r,e.name=a.name,e.organization=a.organization,e.members=$p(a.members??[]),e.coaches=$p(a.coach??[]),e.rank=a.rank,e.oldRating=this.baseRating,e.UpdateRating(this.baseRating),this.userMap.set(r,e),this.users.push(e),s.users.push(e));{const d=new Xv;d.rank=a.rank,d.rating=e.rating,d.teamName=a.name,d.organization=a.organization,d.members=$p(a.members??[]),d.coaches=$p(a.coach??[]),d.contestID=n.contest.id,d.contestLink=d.contestID,d.contestName=n.contest.name,d.contestTime=n.contest.startTime,e.ratingHistories.push(d)}}s.calculate();for(const a of s.users)a.ratingHistories.at(-1).rating=a.rating}}generateTeamId(n){const s=$p(n.members??[]);return s.length>0?s.map(a=>a.name.trim()).sort().join("|"):`${n.organization}-${n.name}`}toJSON(){return{id:this.id,name:this.name,baseRating:this.baseRating,contestIDs:this.contestIDs,users:this.users.map(n=>n.toJSON())}}static fromJSON(n){typeof n=="string"&&(n=JSON.parse(n));const s=new wx;s.id=n.id,s.name=n.name,s.baseRating=n.baseRating,s.contestIDs=n.contestIDs;for(const a of n.users)s.users.push(kg.fromJSON(a));return s}}class DN{constructor(){this.acceptedNum=0,this.rejectedNum=0,this.pendingNum=0,this.submittedNum=0,this.attemptedNum=0,this.ignoreNum=0,this.se=0,this.firstSolveSubmissions=[],this.lastSolveSubmissions=[]}reset(){this.acceptedNum=0,this.rejectedNum=0,this.pendingNum=0,this.submittedNum=0,this.attemptedNum=0,this.ignoreNum=0,this.se=0,this.firstSolveSubmissions=[],this.lastSolveSubmissions=[]}get dirt(){return this.acceptedNum===0?0:_x(this.attemptedNum,this.acceptedNum)}calcSE(n){const s=(n-this.acceptedNum)/n;return this.se=Math.round(s*100)/100,this.se}}class Jv{constructor(){this.id="",this.label="",this.name="",this.statistics=new DN,this.balloonColor={background_color:"#a0f0a0",color:"#000"}}}function EN(t){const n=new Jv;return n.id=String(t.id),n.label=t.label,n.name=t.name??"",n.timeLimit=t.time_limit,n.memoryLimit=t.memory_limit,t.balloon_color&&(n.balloonColor=Bf.cloneDeep(t.balloon_color)),n.balloonColor.color=yx(n.balloonColor.background_color),n}function FN(t){return t.map(n=>EN(n))}function xN(t,n){const s=t.map((a,r)=>{const e=new Jv;return e.id=String(r),e.label=a,e});if(n!=null)for(const a in n)s[a].balloonColor=Bf.cloneDeep(n[a]);return s.forEach(a=>{a.balloonColor.color=yx(a.balloonColor.background_color)}),s}class TN{constructor(n){var s,a,r,e,d,_,y,E,T,A,R,L;this.isFirstSolved=((s=n==null?void 0:n.teamProblemStatistics)==null?void 0:s.isFirstSolved)??!1,this.isSolved=((a=n==null?void 0:n.teamProblemStatistics)==null?void 0:a.isSolved)??!1,this.solvedTimestamp=((r=n==null?void 0:n.teamProblemStatistics)==null?void 0:r.solvedTimestamp)??0,this.isSubmitted=((e=n==null?void 0:n.teamProblemStatistics)==null?void 0:e.isSubmitted)??!1,this.lastSubmitTimestamp=((d=n==null?void 0:n.teamProblemStatistics)==null?void 0:d.lastSubmitTimestamp)??0,this.failedCount=((_=n==null?void 0:n.teamProblemStatistics)==null?void 0:_.failedCount)??0,this.pendingCount=((y=n==null?void 0:n.teamProblemStatistics)==null?void 0:y.pendingCount)??0,this.ignoreCount=((E=n==null?void 0:n.teamProblemStatistics)==null?void 0:E.ignoreCount)??0,this.totalCount=((T=n==null?void 0:n.teamProblemStatistics)==null?void 0:T.totalCount)??0,this.submissions=((A=n==null?void 0:n.teamProblemStatistics)==null?void 0:A.submissions)??[],this.problem=((R=n==null?void 0:n.teamProblemStatistics)==null?void 0:R.problem)??new Jv,this.contestPenalty=((L=n==null?void 0:n.teamProblemStatistics)==null?void 0:L.contestPenalty)??20*60}get isAccepted(){return this.isSolved}get isWrongAnswer(){return!this.isSolved&&this.pendingCount===0&&this.failedCount>0}get isPending(){return!this.isSolved&&this.pendingCount>0}get isUnSubmitted(){return this.totalCount===0}get solvedTimestampToMinute(){return Math.floor(this.solvedTimestamp/60)}get penalty(){return this.isSolved===!1?0:this.solvedTimestampToMinute*60+this.failedCount*this.contestPenalty}get penaltyToMinute(){return Math.floor(this.penalty/60)}get penaltyInSecond(){return this.isSolved===!1?0:this.solvedTimestamp+this.failedCount*this.contestPenalty}}class cg{constructor(){this.id="",this.name="",this.organization="",this.group=[],this.tag=[],this.rank=0,this.originalRank=0,this.organizationRank=-1,this.solvedProblemNum=0,this.attemptedProblemNum=0,this.lastSolvedProblem=null,this.lastSolvedProblemStatistics=null,this.penalty=0,this.problemStatistics=[],this.problemStatisticsMap=new Map,this.submissions=[],this.placeChartPoints=[],this.awards=[],this.se=0}reset(){this.rank=0,this.originalRank=0,this.organizationRank=-1,this.solvedProblemNum=0,this.attemptedProblemNum=0,this.lastSolvedProblem=null,this.lastSolvedProblemStatistics=null,this.penalty=0,this.problemStatistics=[],this.problemStatisticsMap=new Map,this.submissions=[],this.placeChartPoints=[],this.awards=[],this.se=0}get penaltyToMinute(){return Math.floor(this.penalty/60)}get isUnofficial(){return this.group.includes("unofficial")}get isGirl(){return this.group.includes("girl")}get membersToArray(){if(Array.isArray(this.members))return this.members;if(typeof this.members=="string"){if(this.members.includes(", "))return this.members.split(", ");if(this.members.includes("、"))return this.members.split("、")}return[]}get membersToString(){var n;return typeof this.members=="string"?this.members:(n=this.members)==null?void 0:n.join(", ")}get isEffectiveTeam(){return this.solvedProblemNum>0}get dirt(){const n=this.attemptedProblemNum,s=this.solvedProblemNum;return _x(n,s)}calcSE(n){let s=0,a=0;if(this.problemStatistics.forEach(e=>{e.isSolved&&(s+=1,a+=e.problem.statistics.acceptedNum)}),n===0||s===0)return 0;const r=(s*n-a)/n/s;return this.se=Math.round(r*100)/100,this.se}calcSolvedData(n){this.solvedProblemNum=0,this.attemptedProblemNum=0,this.penalty=0;for(const s of this.problemStatistics)s.isAccepted&&(this.solvedProblemNum++,this.attemptedProblemNum+=s.failedCount+1,(n==null?void 0:n.calculationOfPenalty)==="in_seconds"||(n==null?void 0:n.calculationOfPenalty)==="accumulate_in_seconds_and_finally_to_the_minute"?this.penalty+=s.penaltyInSecond:this.penalty+=s.penalty);(n==null?void 0:n.calculationOfPenalty)==="accumulate_in_seconds_and_finally_to_the_minute"&&(this.penalty=Math.floor(this.penalty/60)*60)}calcAwards(n){if(n)for(const s of n)this.rank>=s.minRank&&this.rank<=s.maxRank&&this.awards.push(s.medalType)}isEqualRank(n){return this.solvedProblemNum===n.solvedProblemNum&&this.penalty===n.penalty}postProcessPlaceChartPoints(){if(this.placeChartPoints.length===0)return;const n=[];n.push(this.placeChartPoints[0]);for(let s=1;s<this.placeChartPoints.length-1;s++){const a=this.placeChartPoints[s],r=n[n.length-1];(a.rank!==r.rank||a.lastSolvedProblem!==r.lastSolvedProblem)&&n.push(a)}this.placeChartPoints.length>1&&n.push(this.placeChartPoints[this.placeChartPoints.length-1]),this.placeChartPoints=n}static compare(n,s){return n.solvedProblemNum!==s.solvedProblemNum?s.solvedProblemNum-n.solvedProblemNum:n.penalty!==s.penalty?n.penalty-s.penalty:n.lastSolvedProblemStatistics&&s.lastSolvedProblemStatistics?n.lastSolvedProblemStatistics.solvedTimestampToMinute-s.lastSolvedProblemStatistics.solvedTimestampToMinute:n.name<s.name?-1:n.name>s.name?1:0}}function jD(t){const n=new cg;n.id=t.id??t.team_id??"",n.name=t.name??t.team_name??"",n.organization=t.organization??"",n.badge=t.badge,n.group=t.group??[],n.tag=t.group??[],n.coach=t.coach,n.members=t.members,t.official&&n.group.push("official"),t.unofficial&&n.group.push("unofficial"),t.girl&&n.group.push("girl");{const s=t;for(const a of Object.keys(s))(s[a]===1||s[a]===!0)&&n.group.push(a)}return n.group=[...new Set(n.group)],n.group.sort(),t.location&&(n.location=t.location),t.icpc_id&&(n.icpcID=t.icpc_id),n}function bL(t){return Array.isArray(t)?t.map(n=>jD(n)):Object.entries(t).map(([s,a])=>jD({...a,team_id:a.team_id??s}))}class gv{constructor(){this.status=Ht.UNKNOWN,this.isIgnore=!1,this.isSolved=!1,this.isFirstSolved=!1,this.id="",this.teamId="",this.problemId="",this.timestamp=0,this.timestampUnit="second"}isAccepted(){return gx(this.status)}isRejected(){return yN(this.status)}isPending(){return mx(this.status)}isNotCalculatedPenaltyStatus(){return vx(this.status)}get timestampToMinute(){return this.timestampUnit==="nanosecond"?Math.floor(this.timestamp/60/1e3/1e3/1e3):this.timestampUnit==="microsecond"?Math.floor(this.timestamp/60/1e3/1e3):this.timestampUnit==="millisecond"?Math.floor(this.timestamp/60/1e3):Math.floor(this.timestamp/60)}get timestampToSecond(){return this.timestampUnit==="nanosecond"?Math.floor(this.timestamp/1e3/1e3/1e3):this.timestampUnit==="microsecond"?Math.floor(this.timestamp/1e3/1e3):this.timestampUnit==="millisecond"?Math.floor(this.timestamp/1e3):this.timestamp}get timestampDisplayFormatWithSecond(){const n=this.timestampToSecond,s=Math.floor(n/3600),a=Math.floor(n%3600/60),r=n%60,e=_=>_.toString().padStart(2,"0");return`${e(s)}:${e(a)}:${e(r)}`}get timestampDisplayFormatWithMilliSecond(){let n=this.timestampDisplayFormatWithSecond;if(this.timestampUnit==="millisecond"){const s=(this.timestamp%1e3).toString().padEnd(3,"0");n+=`.${s}`}return n}static compare(n,s){if(n.timestamp!==s.timestamp)return n.timestamp-s.timestamp;if(n.teamId===s.teamId){if(n.isAccepted()&&!s.isAccepted())return-1;if(!n.isAccepted()&&s.isAccepted())return 1}return n.id<s.id?-1:n.id===s.id?0:1}}function GD(t){const n=new gv;return n.id=String(t.id??t.submission_id??""),n.teamId=String(t.team_id),n.problemId=String(t.problem_id),n.timestamp=t.timestamp,n.status=_N(t.status),n.isIgnore=t.is_ignore??!1,t.time&&(n.time=t.time),t.language&&(n.language=t.language),n}function _L(t){return Array.isArray(t)?t.map((n,s)=>GD({...n,id:n.submission_id??String(s)})):Object.entries(t).map(([s,a])=>GD({...a,id:a.submission_id??s}))}class CN{constructor(){this.problem=new Jv,this.team=new cg,this.submission=new gv}get key(){return`balloon-${this.team.id}-${this.problem.id}`}static compare(n,s){return gv.compare(n.submission,s.submission)}}var AN=(t=>(t[t.BLUE=0]="BLUE",t[t.RED=1]="RED",t))(AN||{});class k2{constructor(n=0){this.type=n,this.name=`${n===0?"Blue":"Red"} Team`,this.teams=[],this.filterOrganizations=[],this.filterOrganizationMap=new Map,this.filterTeams=[],this.filterTeamMap=new Map}setFilterOrganizations(n){const s=new Map;n.forEach(a=>{s.set(a.value,a)}),this.filterOrganizations=n,this.filterOrganizationMap=s}setFilterTeams(n){const s=new Map;n.forEach(a=>{s.set(a.value,a)}),this.filterTeams=n,this.filterTeamMap=s}refreshName(){return this.filterOrganizations.length>0?this.name=this.filterOrganizations[0].text:this.name=`${this.type===0?"Blue":"Red"} Team`,this.name}get totalSolvedProblemNum(){let n=0;return this.teams.forEach(s=>{n+=s.solvedProblemNum}),n}get totalPenalty(){let n=0;return this.teams.forEach(s=>{n+=s.penaltyToMinute}),n}get totalPenaltyToString(){const n=this.totalPenalty,s=e=>e<10?`0${e}`:String(e),a=Math.floor(n/60),r=Math.floor(n%60);return[s(a),s(r)].join(":")}toJSON(){return{type:this.type,name:this.name,filterOrganizations:this.filterOrganizations,filterTeams:this.filterTeams}}}class SN{constructor(){this.enable=!1,this.topX=5,this.equalTeams=!0,this.persist=!1,this.blueTeam=new k2(0),this.redTeam=new k2(1)}ToBase64(){return N_.encode(JSON.stringify(this))}FromBase64(n){if(n.length===0||N_.isValid(n)===!1)return;const s=JSON.parse(N_.decode(n));this.enable=s.enable,this.topX=s.topX,this.equalTeams=s.equalTeams,this.persist=s.persist,this.blueTeam=new k2(0),this.blueTeam.name=s.blueTeam.name,this.blueTeam.setFilterOrganizations(s.blueTeam.filterOrganizations),this.blueTeam.setFilterTeams(s.blueTeam.filterTeams),this.redTeam=new k2(1),this.redTeam.name=s.redTeam.name,this.redTeam.setFilterOrganizations(s.redTeam.filterOrganizations),this.redTeam.setFilterTeams(s.redTeam.filterTeams)}}class VD{constructor(){this.names=new Map,this.defaultLang="zh-CN",this.isDefault=!1}}class Dx{constructor(){this.calculationOfPenalty="in_minutes",this.submissionTimestampUnit="second",this.submissionHasTimeField=!1,this.submissionHasLanguageField=!1}}function kN(t={}){const n=t,s=new Dx;return n.calculation_of_penalty&&(s.calculationOfPenalty=n.calculation_of_penalty),n.submission_timestamp_unit&&(s.submissionTimestampUnit=n.submission_timestamp_unit),s}class Ex{constructor(){this.id="",this.name="",this.startTime=Ws(),this.endTime=Ws(),this.freezeTime=Ws(),this.totalDurationTimestamp=0,this.freezeDurationTimestamp=0,this.unFreezeDurationTimestamp=0,this.penalty=20*60,this.problems=[],this.problemsMap=new Map,this.statusTimeDisplay={correct:!0,incorrect:!0,pending:!0},this.group=new Map,this.tag=new Map,this.options=new Dx}getStartTime(){return this.replayStartTime??this.startTime}getEndTime(){return this.replayEndTime??this.endTime}getFreezeTime(){return this.replayFreezeTime??this.freezeTime}getContestDuration(n="HH:mm:ss"){return ea.duration(this.getEndTime().diff(this.getStartTime())).format(n)}getContestState(n){const s=Ws(n);return s.isBefore(this.getStartTime())?El.PENDING:s.isSameOrAfter(this.getEndTime())?El.FINISHED:s.isSameOrAfter(this.getFreezeTime())?El.FROZEN:El.RUNNING}getContestPendingTime(n){let s=Ws(n);return s.isAfter(this.getStartTime())&&(s=this.getStartTime()),U2(Math.floor(ea.duration(this.getStartTime().diff(s)).asSeconds()))}getContestElapsedTime(n){let s=Ws(n);return s.isAfter(this.getEndTime())&&(s=this.getEndTime()),s.isBefore(this.getStartTime())&&(s=this.getStartTime()),U2(Math.floor(ea.duration(s.diff(this.getStartTime())).asSeconds()))}getContestRemainingTime(n){let s=Ws(n);return s.isAfter(this.getEndTime())&&(s=this.getEndTime()),s.isBefore(this.getStartTime())&&(s=this.getStartTime()),U2(Math.floor(ea.duration(this.getEndTime().diff(s)).asSeconds()))}getContestProgressRatio(n){const s=Ws(n);if(this.getStartTime().isSameOrAfter(s))return 0;if(this.getEndTime().isSameOrBefore(s))return 100;const a=this.getEndTime().diff(this.getStartTime(),"s"),r=s.diff(this.getStartTime(),"s");return Math.round(r*100/a)}isEnableAwards(n){return!(!this.awards||!this.awards.has(n))}resetReplayTime(){this.replayStartTime=void 0,this.replayEndTime=void 0,this.replayFreezeTime=void 0,this.replayNowTime=void 0,this.replayContestStartTimestamp=void 0}setReplayTime(n){if(n===0){this.resetReplayTime();return}const a=Ws(n).diff(this.startTime,"s");this.replayStartTime=this.startTime.add(a,"s"),this.replayEndTime=this.endTime.add(a,"s"),this.replayFreezeTime=this.freezeTime.add(a,"s"),this.replayNowTime=Ws(),this.replayContestStartTimestamp=this.replayNowTime.diff(this.replayStartTime,"s")}}function ON(t){const n=new Ex;n.name=t.contest_name,n.startTime=Ws(t.start_time),n.endTime=Ws(t.end_time),n.totalDurationTimestamp=n.endTime.unix()-n.startTime.unix();{if(n.freezeTime=n.endTime,n.freezeDurationTimestamp=0,t.frozen_time!==void 0&&t.frozen_time!=null){const s=Number(t.frozen_time);n.freezeTime=Ws(n.endTime.unix()-s),n.freezeDurationTimestamp=s}t.freeze_time!==void 0&&t.freeze_time!==null&&(n.freezeTime=Ws(t.freeze_time),n.freezeDurationTimestamp=n.endTime.unix()-n.freezeTime.unix()),n.unFreezeDurationTimestamp=n.totalDurationTimestamp-n.freezeDurationTimestamp}n.penalty=t.penalty,t.problem_id!==void 0&&t.problem_id!==null&&(n.problems=xN(t.problem_id,t.balloon_color)),t.problems!==void 0&&t.problems!==null&&(n.problems=FN(t.problems)),n.problemsMap=new Map(n.problems.map(s=>[s.id,s])),t.status_time_display!==void 0&&t.status_time_display!==null&&(n.statusTimeDisplay={correct:!!(t.status_time_display.correct??!1),incorrect:!!(t.status_time_display.incorrect??!1),pending:!!(t.status_time_display.pending??!1)}),n.badge=t.badge,n.medal=t.medal,(()=>{if(!(t.medal===void 0||t.medal===null)&&(n.awards=new Map,typeof t.medal!="string"))for(const s in t.medal){const a=t.medal[s];{const r=[];let e=1;const d=(_,y)=>{if(Object.keys(a).includes(_)){const E=new Gd;E.medalType=y,E.minRank=e,e+=Number(a[_]),E.maxRank=e-1,r.push(E)}};d("gold",tu.GOLD),d("silver",tu.SILVER),d("bronze",tu.BRONZE);{const _=new Gd;_.medalType=tu.HONORABLE,_.minRank=e,_.maxRank=1061109567,r.push(_)}n.awards.set(s,r)}}})(),n.organization=t.organization;{const s=new VD;s.names.set("en","All"),s.names.set("zh-CN","所有队伍"),s.isDefault=!0,n.group.set("all",s)}for(const[s,a]of Object.entries((t==null?void 0:t.group)??{})){let r=s;const e=new VD;e.names.set("zh-CN",a),s==="official"&&e.names.set("en","Official"),s==="unofficial"&&e.names.set("en","Unofficial"),(s==="girl"||s==="girls")&&(e.names.set("en","Girls"),r="girl"),n.group.set(r,e)}return n.banner=t.banner,n.banner&&(n.bannerMode=t.banner_mode??"ALL"),n.logo=t.logo,n.boardLink=t.board_link,t.options&&(n.options=kN(t.options)),n}class RN{constructor(){this.contest=new Ex,this.boardLink=""}}function IN(t){const n=new RN,s=t.config;return n.contest=ON(s),n.boardLink=t.board_link,n}function PN(t){const n=[],s=a=>{if(Object.prototype.hasOwnProperty.call(a,"config"))n.push(IN(a));else for(const r in a)s(a[r])};return s(t),n.sort((a,r)=>a.contest.startTime.isBefore(r.contest.startTime)?1:a.contest.startTime.isAfter(r.contest.startTime)?-1:a.contest.endTime.isBefore(r.contest.endTime)?1:a.contest.endTime.isAfter(r.contest.endTime)?-1:a.contest.name<r.contest.name?1:a.contest.name>r.contest.name?-1:0),n}function NN(t,n){return t!=null&&t.url?!n||t.url.startsWith("http")?t.url:`${n}/${t.url}`:t!=null&&t.base64?`data:image/${t.type??"png"};base64,${t.base64}`:""}class MN{constructor(){this.teamSolvedNum=[],this.teamSolvedNumIndex=[],this.maxSolvedProblems=0,this.effectiveTeamNum=0,this.totalTeamNum=0}reset(){this.teamSolvedNum=[],this.teamSolvedNumIndex=[],this.maxSolvedProblems=0,this.effectiveTeamNum=0,this.totalTeamNum=0}getTeamSolvedNumIndex(n){return this.teamSolvedNumIndex[n]??0}}class LN{constructor(){this.enableFilterSubmissionsByTimestamp=!1,this.width=0,this.timestamp=0,this.enableFilterTeamsByGroup=!1,this.group="all",this.filterOrganizations=[],this.filterOrganizationMap=new Map,this.filterTeams=[],this.filterTeamMap=new Map,this.enableAnimatedSubmissions=!1,this.battleOfGiants=new SN}setSelf(n){this.enableFilterSubmissionsByTimestamp=n.enableFilterSubmissionsByTimestamp,this.width=n.width,this.timestamp=n.timestamp,this.enableFilterTeamsByGroup=n.enableFilterTeamsByGroup,this.group=n.group,this.filterOrganizations=n.filterOrganizations,this.filterOrganizationMap=n.filterOrganizationMap,this.filterTeams=n.filterTeams,this.filterTeamMap=n.filterTeamMap,this.enableAnimatedSubmissions=n.enableAnimatedSubmissions,this.battleOfGiants=n.battleOfGiants}setWidth(n,s){this.width=n,this.timestamp=Math.floor((s.getEndTime().unix()-s.getStartTime().unix())*this.width*1e-4),this.enableFilterSubmissionsByTimestamp=!0}disableFilterSubmissionByTimestamp(){this.enableFilterSubmissionsByTimestamp=!1}setGroup(n){this.group=n,this.enableFilterTeamsByGroup=!0,this.group==="all"&&this.disableFilterTeamsByGroup()}disableFilterTeamsByGroup(){this.enableFilterTeamsByGroup=!1,this.group="all"}setFilterOrganizations(n){const s=new Map;n.forEach(a=>{s.set(a.value,a)}),this.filterOrganizations=n,this.filterOrganizationMap=s}setFilterTeams(n){const s=new Map;n.forEach(a=>{s.set(a.value,a)}),this.filterTeams=n,this.filterTeamMap=s}isNeedReBuildRank(n){return this.enableFilterSubmissionsByTimestamp!==n.enableFilterSubmissionsByTimestamp||this.width!==n.width||this.timestamp!==n.timestamp||this.enableFilterTeamsByGroup!==n.enableFilterTeamsByGroup||this.group!==n.group}}class yL{constructor(n,s,a){this.contest=n,this.teams=Bf.cloneDeep(s),this.teamsMap=new Map(this.teams.map(r=>[r.id,r])),this.submissions=Bf.cloneDeep(a).sort(gv.compare);{const r=this.contest.options,e=Bf.cloneDeep(r.submissionTimestampUnit);this.submissions.forEach(d=>{d.timestampUnit=e,d.time&&(r.submissionHasTimeField=!0),d.language&&(r.submissionHasLanguageField=!0)})}this.submissionsMap=new Map(this.submissions.map(r=>[r.id,r])),this.organizations=this.buildOrganizations(),this.originTeams=this.teams.map(r=>r),this.originTeams.sort(cg.compare),this.rankStatistics=new MN,this.options=new LN,this.balloons=[];{const r=new Set;this.submissions.forEach(e=>{e.language&&r.add(e.language)}),this.languages=[...r].sort()}{const r=new Set;this.submissions.forEach(e=>{r.add(e.status)}),this.statuses=[...r].sort()}}cleanRank(){(()=>{this.teams=[];for(const[n,s]of this.teamsMap)this.filterTeamByOrg(s)||this.teams.push(s)})();for(const n of this.teams)n.reset(),n.problemStatistics=this.contest.problems.map(s=>{const a=new TN;return a.problem=s,a.contestPenalty=this.contest.penalty,a}),n.problemStatisticsMap=new Map(n.problemStatistics.map(s=>[s.problem.id,s]));this.contest.problems.forEach(n=>{n.statistics.reset()})}buildRank(){return(()=>{this.cleanRank(),this.teams.forEach(a=>a.placeChartPoints.push({timePoint:0,rank:1,lastSolvedProblem:null})),this.rankStatistics.reset(),this.rankStatistics.teamSolvedNum=Array(this.contest.problems.length+1).fill(0),this.rankStatistics.teamSolvedNumIndex=Array(this.contest.problems.length+1).fill(0);let n=0;const s=this.getSubmissions();for(let a=0;a<s.length;a++){const r=s[a],e=r.teamId,d=r.problemId,_=this.teamsMap.get(e),y=this.contest.problemsMap.get(d);(()=>{if(_===void 0||this.filterTeamByOrg(_)||y===void 0)return;const E=_.problemStatisticsMap.get(d);if(E.submissions.push(r),_.submissions.push(r),y.statistics.submittedNum++,E.isSolved){r.isSolved=!1,r.isFirstSolved=!1;return}if(r.isIgnore||r.isNotCalculatedPenaltyStatus()){y.statistics.ignoreNum++,E.ignoreCount++;return}if(E.isSubmitted=!0,E.lastSubmitTimestamp=r.timestampToSecond,E.totalCount++,r.isAccepted()){for(r.isSolved=!0,E.isSolved=!0,E.solvedTimestamp=r.timestampToSecond,y.statistics.acceptedNum++,y.statistics.attemptedNum+=E.failedCount+1,(y.statistics.firstSolveSubmissions.length===0||y.statistics.firstSolveSubmissions[y.statistics.firstSolveSubmissions.length-1].timestamp===r.timestamp)&&(r.isFirstSolved=!0,E.isFirstSolved=!0,y.statistics.firstSolveSubmissions.push(r));y.statistics.lastSolveSubmissions.length>0;)y.statistics.lastSolveSubmissions.pop();y.statistics.lastSolveSubmissions.push(r),_.lastSolvedProblem=y,_.lastSolvedProblemStatistics=E}r.isRejected()&&(E.failedCount++,y.statistics.rejectedNum++),r.isPending()&&(E.pendingCount++,y.statistics.pendingNum++)})(),(r.timestampToMinute>n||a===s.length-1)&&(this.teams.forEach(E=>E.calcSolvedData(this.contest.options)),this.teams.sort(cg.compare),this.buildTeamRank(),this.teams.forEach(E=>E.placeChartPoints.push({timePoint:r.timestampToMinute,rank:E.rank,lastSolvedProblem:E.lastSolvedProblem}))),n=r.timestampToMinute}this.teams.forEach(a=>a.calcSolvedData(this.contest.options)),this.teams.sort(cg.compare),this.buildTeamRank(),this.buildOrgRank(),this.rankStatistics.effectiveTeamNum=this.teams.filter(a=>a.isEffectiveTeam).length,this.rankStatistics.totalTeamNum=this.teams.length,this.teams.forEach(a=>a.calcSE(this.rankStatistics.totalTeamNum)),this.contest.problems.forEach(a=>a.statistics.calcSE(this.rankStatistics.totalTeamNum)),this.buildAwards(),this.teams.forEach(a=>{var r;return a.calcAwards((r=this.contest.awards)==null?void 0:r.get(this.options.group))}),this.teams.forEach(a=>a.postProcessPlaceChartPoints())})(),(()=>{for(const n of this.teams)this.rankStatistics.teamSolvedNum[n.solvedProblemNum]++;{let n=0;const s=this.rankStatistics.teamSolvedNum,a=this.rankStatistics.teamSolvedNumIndex;for(let r=a.length-1;r>=0;r--)n+=s[r]>0?1:0,a[r]=n}this.teams.length>0&&(this.rankStatistics.maxSolvedProblems=this.teams[0].solvedProblemNum)})(),this}buildTeamRank(){let n=1,s=1,a=null;for(const r of this.teams)r.rank=n++,r.originalRank=s++,a!==null&&r.isEqualRank(a)&&(r.rank=a.rank),a=r}buildOrgRank(){if(!this.contest.organization)return;let n=1,s=null;const a=new Set;for(const r of this.teams){const e=r.organization;a.has(e)||(a.add(e),r.organizationRank=n++,s!==null&&r.isEqualRank(s)&&(r.organizationRank=s.organizationRank),s=r)}}buildOrganizations(){if(!this.contest.organization)return[];const n=new Array,s=new Set;return this.teams.forEach(a=>{const r=a.organization;s.has(r)||(n.push(r),s.add(r))}),n.sort(),n}buildAwards(){if(this.contest.medal==="ccpc"){this.contest.awards=new Map;const n=this.rankStatistics.effectiveTeamNum,s=[],a=new Gd,r=new Gd,e=new Gd,d=new Gd;a.medalType=tu.GOLD,a.minRank=1,a.maxRank=Math.ceil(n*.1),a.maxRank>=a.minRank&&s.push(a),r.medalType=tu.SILVER,r.minRank=a.maxRank+1,r.maxRank=Math.ceil(n*.3),r.maxRank>=r.minRank&&s.push(r),e.medalType=tu.BRONZE,e.minRank=r.maxRank+1,e.maxRank=Math.ceil(n*.6),e.maxRank>=e.minRank&&s.push(e),d.medalType=tu.HONORABLE,d.minRank=e.maxRank+1,this.teams.forEach(_=>{_.solvedProblemNum>0&&(d.maxRank=Math.max(d.maxRank,_.rank))}),d.maxRank>=d.minRank&&s.push(d),this.contest.awards.set("official",s)}}filterTeamByOrg(n){var a;const s=this.options;return!!(s.enableFilterTeamsByGroup&&!((a=n.group)!=null&&a.includes(s.group)))}getSubmissions(){return this.contest.replayContestStartTimestamp===void 0&&this.options.enableFilterSubmissionsByTimestamp===!1?this.submissions:this.submissions.filter(n=>!(this.contest.replayContestStartTimestamp!==void 0&&n.timestampToSecond>this.contest.replayContestStartTimestamp||this.options.enableFilterSubmissionsByTimestamp&&n.timestampToSecond>this.options.timestamp))}buildBalloons(){this.balloons=[],this.cleanRank();const n=this.getSubmissions();for(let s=0;s<n.length;s++){const a=n[s],r=a.teamId,e=a.problemId,d=this.teamsMap.get(r),_=this.contest.problemsMap.get(e);(()=>{if(d===void 0||_===void 0)return;const y=d.problemStatisticsMap.get(e);if(!y.isSolved&&a.isAccepted()){y.isSolved=!0,y.solvedTimestamp=a.timestampToSecond;const E=new CN;E.team=d,E.problem=_,E.submission=a,this.balloons.push(E)}})()}}setReplayTime(n){this.contest.setReplayTime(n)}}const BN=(...t)=>{const n=Os().proxy.$props,s=Object.create(null);for(const a of t)if(typeof a=="string")s[a]=uD(n,a,void 0,{eventName:`update:${a}`,passive:!0});else{const[r,e=r,d=`update:${r}`,_={}]=a;s[r]=uD(n,e,void 0,{eventName:d,passive:!0,..._})}return s},UN={relative:""},$N=Wt("span",{"i-carbon-close":"",ma:"",block:"","aria-hidden":"true"},null,-1),HN=[$N],WN=vs({__name:"SearchInput",props:{modelValue:null},emits:["update:modelValue"],setup(t,{expose:n}){const{modelValue:s}=BN("modelValue"),a=ur(),r={mounted:_=>_.focus()};function e(){var _;s.value=null,(_=a.value)==null||_.focus()}function d(){var _;(_=a.value)==null||_.focus()}return n({focus:d}),(_,y)=>{var E;return pn(),Qn("div",UN,[qE(Wt("input",Lv({ref_key:"inputEl",ref:a,"onUpdate:modelValue":y[0]||(y[0]=T=>$n(s)?s.value=T:null),type:"text"},_.$attrs,{p:"x-4 y-2",text:"left",bg:"transparent",autocomplete:"off",w:"full",border:"~ rounded gray-300 dark:gray-500",outline:"none active:none","aria-label":"Search",placeholder:"Search..."}),null,16),[[yg,mr(s)],[r]]),(E=mr(s))!=null&&E.length?(pn(),Qn("button",{key:0,absolute:"",flex:"","right-2":"","w-10":"","top-2":"","bottom-2":"","text-xl":"",op30:"","hover:op90":"","aria-label":"Clear search",onClick:y[1]||(y[1]=T=>e())},HN)):po("",!0)])}}}),zN={},jN={class:"color-gray-700 dark:color-gray-200"},GN=Wt("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1161",width:"30",height:"30"},[Wt("path",{d:"M837.9904 570.0608H124.5696a29.0304 29.0304 0 0 1-29.0304-29.0304V482.9696a29.0304 29.0304 0 0 1 29.0304-29.0304h713.4208z",fill:"currentColor","p-id":"1162"}),Wt("path",{d:"M561.3056 808.96l-40.96-40.96a28.928 28.928 0 0 1 0-40.96l215.04-215.04-215.04-215.04a28.9792 28.9792 0 0 1 0-40.96l40.96-40.96a28.9792 28.9792 0 0 1 40.96 0l296.96 296.96-296.96 296.96a28.9792 28.9792 0 0 1-40.96 0z",fill:"currentColor","p-id":"1163"})],-1),VN=[GN];function YN(t,n){return pn(),Qn("div",jN,VN)}const KN=C1(zN,[["render",YN]]),qN=vs({__name:"Progress",props:{width:null,state:null,needScroll:{type:Boolean},rank:null,rankOptions:null,elapsedTime:null},emits:["update:rank-options"],setup(t,{emit:n}){const s=t,a=cn({get(){return s.rankOptions},set(K){n("update:rank-options",K)}}),r=cn(()=>{switch(s.state){case El.PENDING:return"am-progress-bar-secondary";case El.RUNNING:return"am-progress-bar-success";case El.FROZEN:return"am-progress-bar-danger";case El.FINISHED:return"am-progress-bar-primary"}}),e=ur(!1),d=ur(!1),_=ur(0),y=ur(s.width),E=ur(0),T=H5("progress-ratio",-1,{transform:Number}),A=ur(null),R=ur(null),L=ur(null),B=ur(null),P=ur(null);function V(K){d.value=!0;const G=K.clientX-L.value.offsetLeft,ne=U=>{var xe,_e;if(!d.value)return;e.value=!0;let W=U.clientX-G;W=Math.max(W,0),W=Math.min(W,A.value.offsetWidth-L.value.offsetWidth);const te=A.value.offsetWidth*Number.parseInt((xe=R.value.style)==null?void 0:xe.width)*.01;W>=te&&(W=te,e.value=!1);let fe=0;W>0&&(fe=Math.round((W+L.value.offsetWidth)/A.value.offsetWidth*1e4)),fe>1e4&&(fe=1e4),fe===1e4&&(e.value=!1),(_e=window.getSelection())==null||_e.removeAllRanges(),_.value=fe,E.value=W,y.value=fe*.01},ce=()=>{var U,W;document.removeEventListener("mouseup",ce),document.removeEventListener("mousemove",ne),d.value=!1,e.value===!0?(T.value=_.value,(U=a.value)==null||U.setWidth(_.value,s.rank.contest)):(T.value=void 0,(W=a.value)==null||W.disableFilterSubmissionByTimestamp())};document.addEventListener("mousemove",ne),document.addEventListener("mouseup",ce)}function z(){const K=s.rank.contest.getStartTime(),G=s.rank.contest.getEndTime(),ne=G.unix()-K.unix(),ce=Math.floor(ne*y.value*.01),U=Ws(),W=Math.max(0,Math.min(U.unix(),G.unix())-K.unix());return U2(Math.min(ce,W))}function q(){return e.value===!0?z():s.elapsedTime}function oe(){return e.value===!0?`${Math.max(0,E.value)}px`:`max(calc(0%), min(calc(${s.width}%), calc(100% - 10px)))`}return Sl(()=>{var K,G;s.needScroll===!0&&(A.value.onmouseenter=()=>{B.value.classList.add("in")},A.value.onmouseleave=()=>{B.value.classList.remove("in")}),T.value!==-1?(e.value=!0,_.value=Math.max(0,Math.min(1e4,T.value)),y.value=_.value*.01,E.value=y.value*.01*A.value.offsetWidth-L.value.offsetWidth,(K=a.value)==null||K.setWidth(T.value,s.rank.contest)):(G=a.value)==null||G.disableFilterSubmissionByTimestamp()}),Ih(()=>{}),(K,G)=>(pn(),Qn("div",{ref_key:"scroll",ref:A,class:"am-progress am-progress-striped am-active","w-full":"",style:{position:"relative"}},[Wt("div",{ref_key:"mask",ref:R,class:Fa(["am-progress-bar",[mr(r)]]),style:xl({width:`${s.width}%`})},[s.needScroll?(pn(),Qn(Ui,{key:0},[Wt("div",{ref_key:"tooltip",ref:B,class:"tooltip tooltip-top",style:xl({marginLeft:"-32px",bottom:"22px",left:oe()})},[Wt("div",{ref_key:"tooltipInner",ref:P,class:"tooltip-inner"},as(q()),513)],4),Wt("div",{ref_key:"bar",ref:L,class:Fa(["am-progress-bar am-progress-cursor am-progress-scroll-size z-999",[mr(r)]]),style:xl({left:oe()}),onMousedown:V},null,38)],64)):po("",!0)],6)],512))}});const QN=C1(qN,[["__scopeId","data-v-20f092d3"]]),XN={flex:"","flex-row":"","items-center":"","justify-center":""},JN={key:0,"ml-2":""},ZN={key:1,"ml-2":""},eM=vs({__name:"ContestStateBadge",props:{state:null,pendingTime:null,pausedTime:null},setup(t){const n=t;return(s,a)=>(pn(),Qn("div",XN,[Wt("div",{class:Fa(["label",n.state])},null,2),Wt("div",null,as(n.state),1),n.pendingTime&&n.state===mr(El).PENDING?(pn(),Qn("div",JN,as(n.pendingTime),1)):po("",!0),n.pausedTime&&n.state===mr(El).PAUSED?(pn(),Qn("div",ZN,as(n.pausedTime),1)):po("",!0)]))}});const tM=C1(eM,[["__scopeId","data-v-68586c4d"]]);function rM(){const t={};return t.base64=String.raw`
270
+ `}),s}submissionStatusToCodeforcesGymDatStatus(n){return gx(n)?"OK":n===Ht.WRONG_ANSWER?"WA":n===Ht.TIME_LIMIT_EXCEEDED?"TL":n===Ht.MEMORY_LIMIT_EXCEEDED?"ML":n===Ht.OUTPUT_LIMIT_EXCEEDED?"IL":n===Ht.PRESENTATION_ERROR?"PE":n===Ht.RUNTIME_ERROR?"RT":n===Ht.COMPILATION_ERROR||vx(n)?"CE":mx(n)?"PD":"RJ"}}var tu=(t=>(t.UNKNOWN="Unknown",t.GOLD="Gold",t.SILVER="Silver",t.BRONZE="Bronze",t.HONORABLE="Honorable",t))(tu||{});class Gd{constructor(){this.medalType="Unknown",this.minRank=0,this.maxRank=0}}function bx(t){return["Gold","Silver","Bronze","Honorable"].includes(t)}class pL{constructor(){}convert(n){const s=Bf.cloneDeep(n);s.options.disableFilterTeamsByGroup(),s.options.disableFilterSubmissionByTimestamp();const a=Ud.utils.book_new();for(const[r,e]of s.contest.group){s.options.setGroup(r),s.buildRank();const d=this.convertToSheet(s);Ud.utils.book_append_sheet(a,d,e.names.get(e.defaultLang))}return a}convertAndWrite(n,s){return Ud.writeFile(this.convert(n),s,{compression:!0})}convertToSheet(n){const s=this.convertToAoa(n),a=Ud.utils.aoa_to_sheet(s),r=[],e=s[1];for(let E=0;E<e.length;E++){let T=10;for(let A=1;A<s.length;A++)T=Math.max(T,ZP(s[A][E])+2);r.push({wch:T})}a["!cols"]=r;{const E={s:{r:0,c:0},e:{r:0,c:e.length-1}},T=[{s:E.s,e:E.e}];a["!merges"]=T}const d={name:"Arial Unicode MS",bold:!1,italic:!1,sz:12},_={style:"thin"},y={alignment:{vertical:"center",horizontal:"center"},border:{top:_,bottom:_,left:_,right:_},font:d};for(let E=1;E<s.length;E++)for(let T=0;T<s[E].length;T++){const A=Ud.utils.encode_cell({r:E,c:T}),R=a[A];R.s=y}{const E=Ud.utils.encode_cell({r:0,c:0}),T=a[E],A=Bf.cloneDeep(y);A.font.sz=28,A.font.bold=!0,T.s=A}return a}convertToAoa(n){var d,_;const s=[],a=n.contest.isEnableAwards(n.options.group),r=(Array.isArray(n.teams)&&((d=n.teams[0])==null?void 0:d.members))??!1,e=((_=n.teams[0])==null?void 0:_.coach)??!1;s.push([n.contest.name]);{const y=[];y.push("Rank"),n.contest.organization&&(y.push(`${n.contest.organization} Rank`),y.push(n.contest.organization)),y.push("Team","Solved","Penalty",...n.contest.problems.map(E=>E.label),"Dirt"),a&&y.push("Medal"),r&&y.push("Member1","Member2","Member3"),e&&y.push("Coach"),y.push("Unofficial"),y.push("Girl"),s.push(y)}for(const y of n.teams){const E=[];E.push(y.rank.toString()),y.organization&&(y.organizationRank!==-1?E.push(y.organizationRank.toString()):E.push(""),E.push(y.organization)),E.push(y.name,y.solvedProblemNum.toString(),y.penaltyToMinute.toString());for(const T of y.problemStatistics)T.isUnSubmitted&&E.push("-"),T.isSolved&&E.push(`+${T.totalCount}(${T.solvedTimestampToMinute})`),T.isWrongAnswer&&E.push(`-${T.failedCount}`),T.isPending&&E.push(`? ${T.failedCount} + ${T.pendingCount}`);if(E.push(`${y.dirt}%`),a){const T=y.awards.filter(A=>bx(A)).map(A=>A.toString());E.push(T.join(", "))}if(r){const T=y.members;Array.isArray(T)?(E.push(T[0]??""),E.push(T[1]??""),E.push(T[2]??"")):E.push("","","")}e&&(typeof y.coach=="string"?E.push(y.coach??""):E.push("")),E.push(y.isUnofficial?"Y":"N"),E.push(y.isGirl?"Y":"N"),s.push(E)}return s}}class gL{constructor(){}convert(n){var e;const s=Bf.cloneDeep(n);s.options.disableFilterTeamsByGroup(),s.options.disableFilterSubmissionByTimestamp(),s.options.setGroup("official"),s.buildRank();const a=[];for(const d of s.teams){const _={teamId:d.icpcID??"",rank:d.rank,medalCitation:this.getMedalCitation(d),problemsSolved:d.solvedProblemNum,totalTime:d.penaltyToMinute,lastProblemTime:((e=d.lastSolvedProblemStatistics)==null?void 0:e.solvedTimestampToMinute)??0,siteCitation:s.contest.name,citation:iN(d.rank),teamName:d.name,institution:d.organization};a.push(_)}return tN.unparse(a)}getMedalCitation(n){if(n.solvedProblemNum===0)return"";const s=n.awards.filter(a=>bx(a)).map(a=>a.toString());if(s.length===1){const a=s[0];if(a==="Gold")return"Gold Medal";if(a==="Silver")return"Silver Medal";if(a==="Bronze")return"Bronze Medal";if(a==="Honorable")return"Honorable Mention"}return""}}class su{constructor(n=""){this.name=n}toJSON(){return{name:this.name}}static fromJSON(n){typeof n=="string"&&(n=JSON.parse(n));const s=new su;return s.name=n.name,s}}function $p(t){if(typeof t=="string"){for(const n of" ,、|")if(t.includes(n))return t.split(n).map(s=>new su(s));return[new su(t)]}return t.map(n=>new su(n))}function _x(t,n){return n===0?0:Math.floor((t-n)*100/t)}function yx(t){const[n,s,a]=aN(t).rgb();return(n*299+s*587+a*114)/1e3<=148?"#fff":"#000"}class Xv{constructor(){this.rank=0,this.rating=0,this.teamName="",this.organization="",this.members=[],this.coaches=[],this.contestID="",this.contestName="",this.contestLink="",this.contestTime=Ws()}toJSON(){return{rank:this.rank,rating:this.rating,teamName:this.teamName,organization:this.organization,members:this.members.map(n=>n.toJSON()),coaches:this.coaches.map(n=>n.toJSON()),contestID:this.contestID,contestName:this.contestName,contestLink:this.contestLink,contestTime:this.contestTime.toDate()}}static fromJSON(n){typeof n=="string"&&(n=JSON.parse(n));const s=new Xv;return s.rank=n.rank,s.rating=n.rating,s.teamName=n.teamName,s.organization=n.organization,s.members=n.members.map(a=>su.fromJSON(a)),s.coaches=n.coaches.map(a=>su.fromJSON(a)),s.contestID=n.contestID,s.contestName=n.contestName,s.contestLink=n.contestLink,s.contestTime=Ws(n.contestTime),s}}class kg{constructor(){this.id="",this.name="",this.organization="",this.members=[],this.coaches=[],this.rating=0,this.minRating=1061109567,this.maxRating=-1061109567,this.rank=0,this.oldRating=0,this.seed=1,this.delta=0,this.ratingHistories=[]}UpdateRating(n){this.rating=n,this.minRating=Math.min(this.minRating,n),this.maxRating=Math.max(this.maxRating,n)}toJSON(){return{id:this.id,name:this.name,organization:this.organization,members:this.members.map(n=>n.toJSON()),coaches:this.coaches.map(n=>n.toJSON()),rating:this.rating,minRating:this.minRating,maxRating:this.maxRating,ratingHistories:this.ratingHistories.map(n=>n.toJSON())}}static fromJSON(n){typeof n=="string"&&(n=JSON.parse(n));const s=new kg;s.id=n.id,s.name=n.name,s.organization=n.organization,s.members=n.members.map(a=>su.fromJSON(a)),s.coaches=n.coaches.map(a=>su.fromJSON(a)),s.rating=n.rating,s.minRating=n.minRating,s.maxRating=n.maxRating;for(const a of n.ratingHistories)s.ratingHistories.push(Xv.fromJSON(a));return s}}class wN{constructor(){this.users=[]}calculate(){this.calculateInternal()}calcP(n,s){return 1/(1+10**((s.oldRating-n.oldRating)/400))}getExSeed(n,s,a){const r=new kg;r.oldRating=s;let e=0;return n.forEach(d=>{d.id!==a.id&&(e+=this.calcP(d,r))}),e}calcRating(n,s,a){let r=1,e=8e3;for(;e-r>1;){const d=Math.floor((r+e)/2);this.getExSeed(n,d,a)<s?e=d:r=d}return r}calculateInternal(){for(let e=0;e<this.users.length;e++){const d=this.users[e];d.seed=1;for(let _=0;_<this.users.length;_++)if(e!==_){const y=this.users[_];d.seed+=this.calcP(y,d)}}let n=0;for(let e=0;e<this.users.length;e++){const d=this.users[e];d.delta=Math.floor((this.calcRating(this.users,Math.sqrt(d.rank*d.seed),d)-d.oldRating)/2),n+=d.delta}let s=Math.floor(-n/this.users.length)-1;for(let e=0;e<this.users.length;e++){const d=this.users[e];d.delta+=s}this.users=this.users.sort((e,d)=>d.oldRating-e.oldRating);const a=Math.min(this.users.length,Math.floor(4*Math.round(Math.sqrt(this.users.length))));let r=0;for(let e=0;e<a;e++)r+=this.users[e].delta;s=Math.min(Math.max(Math.floor(-r/a),-10),0),this.users.forEach(e=>{e.delta+=s,e.UpdateRating(e.oldRating+e.delta)}),this.users=this.users.sort((e,d)=>e.rank-d.rank)}}const mL={NEWBIE:"Newbie",PUPIL:"Pupil",SPECIALIST:"Specialist",EXPERT:"Expert",CANDIDATE_MASTER:"Candidate Master",MASTER:"Master",INTERNATIONAL_MASTER:"International Master",GRANDMASTER:"Grandmaster",INTERNATIONAL_GRANDMASTER:"International Grandmaster",LEGENDARY_GRANDMASTER:"Legendary Grandmaster"};class vL{static getRatingLevel(n){return n>=3e3?"LEGENDARY_GRANDMASTER":n>=2600?"INTERNATIONAL_GRANDMASTER":n>=2400?"GRANDMASTER":n>=2300?"INTERNATIONAL_MASTER":n>=2100?"MASTER":n>=1900?"CANDIDATE_MASTER":n>=1600?"EXPERT":n>=1400?"SPECIALIST":n>=1200?"PUPIL":"NEWBIE"}static getRatingLevelClass(n){if(typeof n=="number")return this.getRatingLevelClass(this.getRatingLevel(n));switch(n){case"NEWBIE":return"user-gray";case"PUPIL":return"user-green";case"SPECIALIST":return"user-cyan";case"EXPERT":return"user-blue";case"CANDIDATE_MASTER":return"user-violet";case"MASTER":return"user-orange";case"INTERNATIONAL_MASTER":return"user-orange";case"GRANDMASTER":return"user-red";case"INTERNATIONAL_GRANDMASTER":return"user-red";case"LEGENDARY_GRANDMASTER":return"user-legendary"}}}class wx{constructor(){this.id="",this.name="",this.baseRating=1500,this.contestIDs=[],this.users=[],this.ranks=[],this.userMap=new Map}buildRating(){for(const n of this.ranks){n.buildRank();const s=new wN;for(const a of n.teams){const r=this.generateTeamId(a);let e=null;this.userMap.has(r)?(e=this.userMap.get(r),e.rank=a.rank,e.oldRating=e.rating,s.users.push(e)):(e=new kg,e.id=r,e.name=a.name,e.organization=a.organization,e.members=$p(a.members??[]),e.coaches=$p(a.coach??[]),e.rank=a.rank,e.oldRating=this.baseRating,e.UpdateRating(this.baseRating),this.userMap.set(r,e),this.users.push(e),s.users.push(e));{const d=new Xv;d.rank=a.rank,d.rating=e.rating,d.teamName=a.name,d.organization=a.organization,d.members=$p(a.members??[]),d.coaches=$p(a.coach??[]),d.contestID=n.contest.id,d.contestLink=d.contestID,d.contestName=n.contest.name,d.contestTime=n.contest.startTime,e.ratingHistories.push(d)}}s.calculate();for(const a of s.users)a.ratingHistories.at(-1).rating=a.rating}}generateTeamId(n){const s=$p(n.members??[]);return s.length>0?s.map(a=>a.name.trim()).sort().join("|"):`${n.organization}-${n.name}`}toJSON(){return{id:this.id,name:this.name,baseRating:this.baseRating,contestIDs:this.contestIDs,users:this.users.map(n=>n.toJSON())}}static fromJSON(n){typeof n=="string"&&(n=JSON.parse(n));const s=new wx;s.id=n.id,s.name=n.name,s.baseRating=n.baseRating,s.contestIDs=n.contestIDs;for(const a of n.users)s.users.push(kg.fromJSON(a));return s}}class DN{constructor(){this.acceptedNum=0,this.rejectedNum=0,this.pendingNum=0,this.submittedNum=0,this.attemptedNum=0,this.ignoreNum=0,this.se=0,this.firstSolveSubmissions=[],this.lastSolveSubmissions=[]}reset(){this.acceptedNum=0,this.rejectedNum=0,this.pendingNum=0,this.submittedNum=0,this.attemptedNum=0,this.ignoreNum=0,this.se=0,this.firstSolveSubmissions=[],this.lastSolveSubmissions=[]}get dirt(){return this.acceptedNum===0?0:_x(this.attemptedNum,this.acceptedNum)}calcSE(n){const s=(n-this.acceptedNum)/n;return this.se=Math.round(s*100)/100,this.se}}class Jv{constructor(){this.id="",this.label="",this.name="",this.statistics=new DN,this.balloonColor={background_color:"#a0f0a0",color:"#000"}}}function EN(t){const n=new Jv;return n.id=String(t.id),n.label=t.label,n.name=t.name??"",n.timeLimit=t.time_limit,n.memoryLimit=t.memory_limit,t.balloon_color&&(n.balloonColor=Bf.cloneDeep(t.balloon_color)),n.balloonColor.color=yx(n.balloonColor.background_color),n}function FN(t){return t.map(n=>EN(n))}function xN(t,n){const s=t.map((a,r)=>{const e=new Jv;return e.id=String(r),e.label=a,e});if(n!=null)for(const a in n)s[a].balloonColor=Bf.cloneDeep(n[a]);return s.forEach(a=>{a.balloonColor.color=yx(a.balloonColor.background_color)}),s}class TN{constructor(n){var s,a,r,e,d,_,y,E,T,A,R,L;this.isFirstSolved=((s=n==null?void 0:n.teamProblemStatistics)==null?void 0:s.isFirstSolved)??!1,this.isSolved=((a=n==null?void 0:n.teamProblemStatistics)==null?void 0:a.isSolved)??!1,this.solvedTimestamp=((r=n==null?void 0:n.teamProblemStatistics)==null?void 0:r.solvedTimestamp)??0,this.isSubmitted=((e=n==null?void 0:n.teamProblemStatistics)==null?void 0:e.isSubmitted)??!1,this.lastSubmitTimestamp=((d=n==null?void 0:n.teamProblemStatistics)==null?void 0:d.lastSubmitTimestamp)??0,this.failedCount=((_=n==null?void 0:n.teamProblemStatistics)==null?void 0:_.failedCount)??0,this.pendingCount=((y=n==null?void 0:n.teamProblemStatistics)==null?void 0:y.pendingCount)??0,this.ignoreCount=((E=n==null?void 0:n.teamProblemStatistics)==null?void 0:E.ignoreCount)??0,this.totalCount=((T=n==null?void 0:n.teamProblemStatistics)==null?void 0:T.totalCount)??0,this.submissions=((A=n==null?void 0:n.teamProblemStatistics)==null?void 0:A.submissions)??[],this.problem=((R=n==null?void 0:n.teamProblemStatistics)==null?void 0:R.problem)??new Jv,this.contestPenalty=((L=n==null?void 0:n.teamProblemStatistics)==null?void 0:L.contestPenalty)??20*60}get isAccepted(){return this.isSolved}get isWrongAnswer(){return!this.isSolved&&this.pendingCount===0&&this.failedCount>0}get isPending(){return!this.isSolved&&this.pendingCount>0}get isUnSubmitted(){return this.totalCount===0}get solvedTimestampToMinute(){return Math.floor(this.solvedTimestamp/60)}get penalty(){return this.isSolved===!1?0:this.solvedTimestampToMinute*60+this.failedCount*this.contestPenalty}get penaltyToMinute(){return Math.floor(this.penalty/60)}get penaltyInSecond(){return this.isSolved===!1?0:this.solvedTimestamp+this.failedCount*this.contestPenalty}}class cg{constructor(){this.id="",this.name="",this.organization="",this.group=[],this.tag=[],this.rank=0,this.originalRank=0,this.organizationRank=-1,this.solvedProblemNum=0,this.attemptedProblemNum=0,this.lastSolvedProblem=null,this.lastSolvedProblemStatistics=null,this.penalty=0,this.problemStatistics=[],this.problemStatisticsMap=new Map,this.submissions=[],this.placeChartPoints=[],this.awards=[],this.se=0}reset(){this.rank=0,this.originalRank=0,this.organizationRank=-1,this.solvedProblemNum=0,this.attemptedProblemNum=0,this.lastSolvedProblem=null,this.lastSolvedProblemStatistics=null,this.penalty=0,this.problemStatistics=[],this.problemStatisticsMap=new Map,this.submissions=[],this.placeChartPoints=[],this.awards=[],this.se=0}get penaltyToMinute(){return Math.floor(this.penalty/60)}get isUnofficial(){return this.group.includes("unofficial")}get isGirl(){return this.group.includes("girl")}get membersToArray(){if(Array.isArray(this.members))return this.members;if(typeof this.members=="string"){if(this.members.includes(", "))return this.members.split(", ");if(this.members.includes("、"))return this.members.split("、")}return[]}get membersToString(){var n;return typeof this.members=="string"?this.members:(n=this.members)==null?void 0:n.join(", ")}get isEffectiveTeam(){return this.solvedProblemNum>0}get dirt(){const n=this.attemptedProblemNum,s=this.solvedProblemNum;return _x(n,s)}calcSE(n){let s=0,a=0;if(this.problemStatistics.forEach(e=>{e.isSolved&&(s+=1,a+=e.problem.statistics.acceptedNum)}),n===0||s===0)return 0;const r=(s*n-a)/n/s;return this.se=Math.round(r*100)/100,this.se}calcSolvedData(n){this.solvedProblemNum=0,this.attemptedProblemNum=0,this.penalty=0;for(const s of this.problemStatistics)s.isAccepted&&(this.solvedProblemNum++,this.attemptedProblemNum+=s.failedCount+1,(n==null?void 0:n.calculationOfPenalty)==="in_seconds"||(n==null?void 0:n.calculationOfPenalty)==="accumulate_in_seconds_and_finally_to_the_minute"?this.penalty+=s.penaltyInSecond:this.penalty+=s.penalty);(n==null?void 0:n.calculationOfPenalty)==="accumulate_in_seconds_and_finally_to_the_minute"&&(this.penalty=Math.floor(this.penalty/60)*60)}calcAwards(n){if(n)for(const s of n)this.rank>=s.minRank&&this.rank<=s.maxRank&&this.awards.push(s.medalType)}isEqualRank(n){return this.solvedProblemNum===n.solvedProblemNum&&this.penalty===n.penalty}postProcessPlaceChartPoints(){if(this.placeChartPoints.length===0)return;const n=[];n.push(this.placeChartPoints[0]);for(let s=1;s<this.placeChartPoints.length-1;s++){const a=this.placeChartPoints[s],r=n[n.length-1];(a.rank!==r.rank||a.lastSolvedProblem!==r.lastSolvedProblem)&&n.push(a)}this.placeChartPoints.length>1&&n.push(this.placeChartPoints[this.placeChartPoints.length-1]),this.placeChartPoints=n}static compare(n,s){return n.solvedProblemNum!==s.solvedProblemNum?s.solvedProblemNum-n.solvedProblemNum:n.penalty!==s.penalty?n.penalty-s.penalty:n.lastSolvedProblemStatistics&&s.lastSolvedProblemStatistics?n.lastSolvedProblemStatistics.solvedTimestampToMinute-s.lastSolvedProblemStatistics.solvedTimestampToMinute:n.name<s.name?-1:n.name>s.name?1:0}}function jD(t){const n=new cg;n.id=t.id??t.team_id??"",n.name=t.name??t.team_name??"",n.organization=t.organization??"",n.badge=t.badge,n.group=t.group??[],n.tag=t.group??[],n.coach=t.coach,n.members=t.members,t.official&&n.group.push("official"),t.unofficial&&n.group.push("unofficial"),t.girl&&n.group.push("girl");{const s=t;for(const a of Object.keys(s))(s[a]===1||s[a]===!0)&&n.group.push(a)}return n.group=[...new Set(n.group)],n.group.sort(),t.location&&(n.location=t.location),t.icpc_id&&(n.icpcID=t.icpc_id),n}function bL(t){return Array.isArray(t)?t.map(n=>jD(n)):Object.entries(t).map(([s,a])=>jD({...a,team_id:a.team_id??s}))}class gv{constructor(){this.status=Ht.UNKNOWN,this.isIgnore=!1,this.isSolved=!1,this.isFirstSolved=!1,this.id="",this.teamId="",this.problemId="",this.timestamp=0,this.timestampUnit="second"}isAccepted(){return gx(this.status)}isRejected(){return yN(this.status)}isPending(){return mx(this.status)}isNotCalculatedPenaltyStatus(){return vx(this.status)}get timestampToMinute(){return this.timestampUnit==="nanosecond"?Math.floor(this.timestamp/60/1e3/1e3/1e3):this.timestampUnit==="microsecond"?Math.floor(this.timestamp/60/1e3/1e3):this.timestampUnit==="millisecond"?Math.floor(this.timestamp/60/1e3):Math.floor(this.timestamp/60)}get timestampToSecond(){return this.timestampUnit==="nanosecond"?Math.floor(this.timestamp/1e3/1e3/1e3):this.timestampUnit==="microsecond"?Math.floor(this.timestamp/1e3/1e3):this.timestampUnit==="millisecond"?Math.floor(this.timestamp/1e3):this.timestamp}get timestampDisplayFormatWithSecond(){const n=this.timestampToSecond,s=Math.floor(n/3600),a=Math.floor(n%3600/60),r=n%60,e=_=>_.toString().padStart(2,"0");return`${e(s)}:${e(a)}:${e(r)}`}get timestampDisplayFormatWithMilliSecond(){let n=this.timestampDisplayFormatWithSecond;if(this.timestampUnit==="millisecond"){const s=(this.timestamp%1e3).toString().padStart(3,"0");n+=`.${s}`}return n}static compare(n,s){if(n.timestamp!==s.timestamp)return n.timestamp-s.timestamp;if(n.teamId===s.teamId){if(n.isAccepted()&&!s.isAccepted())return-1;if(!n.isAccepted()&&s.isAccepted())return 1}return n.id<s.id?-1:n.id===s.id?0:1}}function GD(t){const n=new gv;return n.id=String(t.id??t.submission_id??""),n.teamId=String(t.team_id),n.problemId=String(t.problem_id),n.timestamp=t.timestamp,n.status=_N(t.status),n.isIgnore=t.is_ignore??!1,t.time&&(n.time=t.time),t.language&&(n.language=t.language),n}function _L(t){return Array.isArray(t)?t.map((n,s)=>GD({...n,id:n.submission_id??String(s)})):Object.entries(t).map(([s,a])=>GD({...a,id:a.submission_id??s}))}class CN{constructor(){this.problem=new Jv,this.team=new cg,this.submission=new gv}get key(){return`balloon-${this.team.id}-${this.problem.id}`}static compare(n,s){return gv.compare(n.submission,s.submission)}}var AN=(t=>(t[t.BLUE=0]="BLUE",t[t.RED=1]="RED",t))(AN||{});class k2{constructor(n=0){this.type=n,this.name=`${n===0?"Blue":"Red"} Team`,this.teams=[],this.filterOrganizations=[],this.filterOrganizationMap=new Map,this.filterTeams=[],this.filterTeamMap=new Map}setFilterOrganizations(n){const s=new Map;n.forEach(a=>{s.set(a.value,a)}),this.filterOrganizations=n,this.filterOrganizationMap=s}setFilterTeams(n){const s=new Map;n.forEach(a=>{s.set(a.value,a)}),this.filterTeams=n,this.filterTeamMap=s}refreshName(){return this.filterOrganizations.length>0?this.name=this.filterOrganizations[0].text:this.name=`${this.type===0?"Blue":"Red"} Team`,this.name}get totalSolvedProblemNum(){let n=0;return this.teams.forEach(s=>{n+=s.solvedProblemNum}),n}get totalPenalty(){let n=0;return this.teams.forEach(s=>{n+=s.penaltyToMinute}),n}get totalPenaltyToString(){const n=this.totalPenalty,s=e=>e<10?`0${e}`:String(e),a=Math.floor(n/60),r=Math.floor(n%60);return[s(a),s(r)].join(":")}toJSON(){return{type:this.type,name:this.name,filterOrganizations:this.filterOrganizations,filterTeams:this.filterTeams}}}class SN{constructor(){this.enable=!1,this.topX=5,this.equalTeams=!0,this.persist=!1,this.blueTeam=new k2(0),this.redTeam=new k2(1)}ToBase64(){return N_.encode(JSON.stringify(this))}FromBase64(n){if(n.length===0||N_.isValid(n)===!1)return;const s=JSON.parse(N_.decode(n));this.enable=s.enable,this.topX=s.topX,this.equalTeams=s.equalTeams,this.persist=s.persist,this.blueTeam=new k2(0),this.blueTeam.name=s.blueTeam.name,this.blueTeam.setFilterOrganizations(s.blueTeam.filterOrganizations),this.blueTeam.setFilterTeams(s.blueTeam.filterTeams),this.redTeam=new k2(1),this.redTeam.name=s.redTeam.name,this.redTeam.setFilterOrganizations(s.redTeam.filterOrganizations),this.redTeam.setFilterTeams(s.redTeam.filterTeams)}}class VD{constructor(){this.names=new Map,this.defaultLang="zh-CN",this.isDefault=!1}}class Dx{constructor(){this.calculationOfPenalty="in_minutes",this.submissionTimestampUnit="second",this.submissionHasTimeField=!1,this.submissionHasLanguageField=!1}}function kN(t={}){const n=t,s=new Dx;return n.calculation_of_penalty&&(s.calculationOfPenalty=n.calculation_of_penalty),n.submission_timestamp_unit&&(s.submissionTimestampUnit=n.submission_timestamp_unit),s}class Ex{constructor(){this.id="",this.name="",this.startTime=Ws(),this.endTime=Ws(),this.freezeTime=Ws(),this.totalDurationTimestamp=0,this.freezeDurationTimestamp=0,this.unFreezeDurationTimestamp=0,this.penalty=20*60,this.problems=[],this.problemsMap=new Map,this.statusTimeDisplay={correct:!0,incorrect:!0,pending:!0},this.group=new Map,this.tag=new Map,this.options=new Dx}getStartTime(){return this.replayStartTime??this.startTime}getEndTime(){return this.replayEndTime??this.endTime}getFreezeTime(){return this.replayFreezeTime??this.freezeTime}getContestDuration(n="HH:mm:ss"){return ea.duration(this.getEndTime().diff(this.getStartTime())).format(n)}getContestState(n){const s=Ws(n);return s.isBefore(this.getStartTime())?El.PENDING:s.isSameOrAfter(this.getEndTime())?El.FINISHED:s.isSameOrAfter(this.getFreezeTime())?El.FROZEN:El.RUNNING}getContestPendingTime(n){let s=Ws(n);return s.isAfter(this.getStartTime())&&(s=this.getStartTime()),U2(Math.floor(ea.duration(this.getStartTime().diff(s)).asSeconds()))}getContestElapsedTime(n){let s=Ws(n);return s.isAfter(this.getEndTime())&&(s=this.getEndTime()),s.isBefore(this.getStartTime())&&(s=this.getStartTime()),U2(Math.floor(ea.duration(s.diff(this.getStartTime())).asSeconds()))}getContestRemainingTime(n){let s=Ws(n);return s.isAfter(this.getEndTime())&&(s=this.getEndTime()),s.isBefore(this.getStartTime())&&(s=this.getStartTime()),U2(Math.floor(ea.duration(this.getEndTime().diff(s)).asSeconds()))}getContestProgressRatio(n){const s=Ws(n);if(this.getStartTime().isSameOrAfter(s))return 0;if(this.getEndTime().isSameOrBefore(s))return 100;const a=this.getEndTime().diff(this.getStartTime(),"s"),r=s.diff(this.getStartTime(),"s");return Math.round(r*100/a)}isEnableAwards(n){return!(!this.awards||!this.awards.has(n))}resetReplayTime(){this.replayStartTime=void 0,this.replayEndTime=void 0,this.replayFreezeTime=void 0,this.replayNowTime=void 0,this.replayContestStartTimestamp=void 0}setReplayTime(n){if(n===0){this.resetReplayTime();return}const a=Ws(n).diff(this.startTime,"s");this.replayStartTime=this.startTime.add(a,"s"),this.replayEndTime=this.endTime.add(a,"s"),this.replayFreezeTime=this.freezeTime.add(a,"s"),this.replayNowTime=Ws(),this.replayContestStartTimestamp=this.replayNowTime.diff(this.replayStartTime,"s")}}function ON(t){const n=new Ex;n.name=t.contest_name,n.startTime=Ws(t.start_time),n.endTime=Ws(t.end_time),n.totalDurationTimestamp=n.endTime.unix()-n.startTime.unix();{if(n.freezeTime=n.endTime,n.freezeDurationTimestamp=0,t.frozen_time!==void 0&&t.frozen_time!=null){const s=Number(t.frozen_time);n.freezeTime=Ws(n.endTime.unix()-s),n.freezeDurationTimestamp=s}t.freeze_time!==void 0&&t.freeze_time!==null&&(n.freezeTime=Ws(t.freeze_time),n.freezeDurationTimestamp=n.endTime.unix()-n.freezeTime.unix()),n.unFreezeDurationTimestamp=n.totalDurationTimestamp-n.freezeDurationTimestamp}n.penalty=t.penalty,t.problem_id!==void 0&&t.problem_id!==null&&(n.problems=xN(t.problem_id,t.balloon_color)),t.problems!==void 0&&t.problems!==null&&(n.problems=FN(t.problems)),n.problemsMap=new Map(n.problems.map(s=>[s.id,s])),t.status_time_display!==void 0&&t.status_time_display!==null&&(n.statusTimeDisplay={correct:!!(t.status_time_display.correct??!1),incorrect:!!(t.status_time_display.incorrect??!1),pending:!!(t.status_time_display.pending??!1)}),n.badge=t.badge,n.medal=t.medal,(()=>{if(!(t.medal===void 0||t.medal===null)&&(n.awards=new Map,typeof t.medal!="string"))for(const s in t.medal){const a=t.medal[s];{const r=[];let e=1;const d=(_,y)=>{if(Object.keys(a).includes(_)){const E=new Gd;E.medalType=y,E.minRank=e,e+=Number(a[_]),E.maxRank=e-1,r.push(E)}};d("gold",tu.GOLD),d("silver",tu.SILVER),d("bronze",tu.BRONZE);{const _=new Gd;_.medalType=tu.HONORABLE,_.minRank=e,_.maxRank=1061109567,r.push(_)}n.awards.set(s,r)}}})(),n.organization=t.organization;{const s=new VD;s.names.set("en","All"),s.names.set("zh-CN","所有队伍"),s.isDefault=!0,n.group.set("all",s)}for(const[s,a]of Object.entries((t==null?void 0:t.group)??{})){let r=s;const e=new VD;e.names.set("zh-CN",a),s==="official"&&e.names.set("en","Official"),s==="unofficial"&&e.names.set("en","Unofficial"),(s==="girl"||s==="girls")&&(e.names.set("en","Girls"),r="girl"),n.group.set(r,e)}return n.banner=t.banner,n.banner&&(n.bannerMode=t.banner_mode??"ALL"),n.logo=t.logo,n.boardLink=t.board_link,t.options&&(n.options=kN(t.options)),n}class RN{constructor(){this.contest=new Ex,this.boardLink=""}}function IN(t){const n=new RN,s=t.config;return n.contest=ON(s),n.boardLink=t.board_link,n}function PN(t){const n=[],s=a=>{if(Object.prototype.hasOwnProperty.call(a,"config"))n.push(IN(a));else for(const r in a)s(a[r])};return s(t),n.sort((a,r)=>a.contest.startTime.isBefore(r.contest.startTime)?1:a.contest.startTime.isAfter(r.contest.startTime)?-1:a.contest.endTime.isBefore(r.contest.endTime)?1:a.contest.endTime.isAfter(r.contest.endTime)?-1:a.contest.name<r.contest.name?1:a.contest.name>r.contest.name?-1:0),n}function NN(t,n){return t!=null&&t.url?!n||t.url.startsWith("http")?t.url:`${n}/${t.url}`:t!=null&&t.base64?`data:image/${t.type??"png"};base64,${t.base64}`:""}class MN{constructor(){this.teamSolvedNum=[],this.teamSolvedNumIndex=[],this.maxSolvedProblems=0,this.effectiveTeamNum=0,this.totalTeamNum=0}reset(){this.teamSolvedNum=[],this.teamSolvedNumIndex=[],this.maxSolvedProblems=0,this.effectiveTeamNum=0,this.totalTeamNum=0}getTeamSolvedNumIndex(n){return this.teamSolvedNumIndex[n]??0}}class LN{constructor(){this.enableFilterSubmissionsByTimestamp=!1,this.width=0,this.timestamp=0,this.enableFilterTeamsByGroup=!1,this.group="all",this.filterOrganizations=[],this.filterOrganizationMap=new Map,this.filterTeams=[],this.filterTeamMap=new Map,this.enableAnimatedSubmissions=!1,this.battleOfGiants=new SN}setSelf(n){this.enableFilterSubmissionsByTimestamp=n.enableFilterSubmissionsByTimestamp,this.width=n.width,this.timestamp=n.timestamp,this.enableFilterTeamsByGroup=n.enableFilterTeamsByGroup,this.group=n.group,this.filterOrganizations=n.filterOrganizations,this.filterOrganizationMap=n.filterOrganizationMap,this.filterTeams=n.filterTeams,this.filterTeamMap=n.filterTeamMap,this.enableAnimatedSubmissions=n.enableAnimatedSubmissions,this.battleOfGiants=n.battleOfGiants}setWidth(n,s){this.width=n,this.timestamp=Math.floor((s.getEndTime().unix()-s.getStartTime().unix())*this.width*1e-4),this.enableFilterSubmissionsByTimestamp=!0}disableFilterSubmissionByTimestamp(){this.enableFilterSubmissionsByTimestamp=!1}setGroup(n){this.group=n,this.enableFilterTeamsByGroup=!0,this.group==="all"&&this.disableFilterTeamsByGroup()}disableFilterTeamsByGroup(){this.enableFilterTeamsByGroup=!1,this.group="all"}setFilterOrganizations(n){const s=new Map;n.forEach(a=>{s.set(a.value,a)}),this.filterOrganizations=n,this.filterOrganizationMap=s}setFilterTeams(n){const s=new Map;n.forEach(a=>{s.set(a.value,a)}),this.filterTeams=n,this.filterTeamMap=s}isNeedReBuildRank(n){return this.enableFilterSubmissionsByTimestamp!==n.enableFilterSubmissionsByTimestamp||this.width!==n.width||this.timestamp!==n.timestamp||this.enableFilterTeamsByGroup!==n.enableFilterTeamsByGroup||this.group!==n.group}}class yL{constructor(n,s,a){this.contest=n,this.teams=Bf.cloneDeep(s),this.teamsMap=new Map(this.teams.map(r=>[r.id,r])),this.submissions=Bf.cloneDeep(a).sort(gv.compare);{const r=this.contest.options,e=Bf.cloneDeep(r.submissionTimestampUnit);this.submissions.forEach(d=>{d.timestampUnit=e,d.time&&(r.submissionHasTimeField=!0),d.language&&(r.submissionHasLanguageField=!0)})}this.submissionsMap=new Map(this.submissions.map(r=>[r.id,r])),this.organizations=this.buildOrganizations(),this.originTeams=this.teams.map(r=>r),this.originTeams.sort(cg.compare),this.rankStatistics=new MN,this.options=new LN,this.balloons=[];{const r=new Set;this.submissions.forEach(e=>{e.language&&r.add(e.language)}),this.languages=[...r].sort()}{const r=new Set;this.submissions.forEach(e=>{r.add(e.status)}),this.statuses=[...r].sort()}}cleanRank(){(()=>{this.teams=[];for(const[n,s]of this.teamsMap)this.filterTeamByOrg(s)||this.teams.push(s)})();for(const n of this.teams)n.reset(),n.problemStatistics=this.contest.problems.map(s=>{const a=new TN;return a.problem=s,a.contestPenalty=this.contest.penalty,a}),n.problemStatisticsMap=new Map(n.problemStatistics.map(s=>[s.problem.id,s]));this.contest.problems.forEach(n=>{n.statistics.reset()})}buildRank(){return(()=>{this.cleanRank(),this.teams.forEach(a=>a.placeChartPoints.push({timePoint:0,rank:1,lastSolvedProblem:null})),this.rankStatistics.reset(),this.rankStatistics.teamSolvedNum=Array(this.contest.problems.length+1).fill(0),this.rankStatistics.teamSolvedNumIndex=Array(this.contest.problems.length+1).fill(0);let n=0;const s=this.getSubmissions();for(let a=0;a<s.length;a++){const r=s[a],e=r.teamId,d=r.problemId,_=this.teamsMap.get(e),y=this.contest.problemsMap.get(d);(()=>{if(_===void 0||this.filterTeamByOrg(_)||y===void 0)return;const E=_.problemStatisticsMap.get(d);if(E.submissions.push(r),_.submissions.push(r),y.statistics.submittedNum++,E.isSolved){r.isSolved=!1,r.isFirstSolved=!1;return}if(r.isIgnore||r.isNotCalculatedPenaltyStatus()){y.statistics.ignoreNum++,E.ignoreCount++;return}if(E.isSubmitted=!0,E.lastSubmitTimestamp=r.timestampToSecond,E.totalCount++,r.isAccepted()){for(r.isSolved=!0,E.isSolved=!0,E.solvedTimestamp=r.timestampToSecond,y.statistics.acceptedNum++,y.statistics.attemptedNum+=E.failedCount+1,(y.statistics.firstSolveSubmissions.length===0||y.statistics.firstSolveSubmissions[y.statistics.firstSolveSubmissions.length-1].timestamp===r.timestamp)&&(r.isFirstSolved=!0,E.isFirstSolved=!0,y.statistics.firstSolveSubmissions.push(r));y.statistics.lastSolveSubmissions.length>0;)y.statistics.lastSolveSubmissions.pop();y.statistics.lastSolveSubmissions.push(r),_.lastSolvedProblem=y,_.lastSolvedProblemStatistics=E}r.isRejected()&&(E.failedCount++,y.statistics.rejectedNum++),r.isPending()&&(E.pendingCount++,y.statistics.pendingNum++)})(),(r.timestampToMinute>n||a===s.length-1)&&(this.teams.forEach(E=>E.calcSolvedData(this.contest.options)),this.teams.sort(cg.compare),this.buildTeamRank(),this.teams.forEach(E=>E.placeChartPoints.push({timePoint:r.timestampToMinute,rank:E.rank,lastSolvedProblem:E.lastSolvedProblem}))),n=r.timestampToMinute}this.teams.forEach(a=>a.calcSolvedData(this.contest.options)),this.teams.sort(cg.compare),this.buildTeamRank(),this.buildOrgRank(),this.rankStatistics.effectiveTeamNum=this.teams.filter(a=>a.isEffectiveTeam).length,this.rankStatistics.totalTeamNum=this.teams.length,this.teams.forEach(a=>a.calcSE(this.rankStatistics.totalTeamNum)),this.contest.problems.forEach(a=>a.statistics.calcSE(this.rankStatistics.totalTeamNum)),this.buildAwards(),this.teams.forEach(a=>{var r;return a.calcAwards((r=this.contest.awards)==null?void 0:r.get(this.options.group))}),this.teams.forEach(a=>a.postProcessPlaceChartPoints())})(),(()=>{for(const n of this.teams)this.rankStatistics.teamSolvedNum[n.solvedProblemNum]++;{let n=0;const s=this.rankStatistics.teamSolvedNum,a=this.rankStatistics.teamSolvedNumIndex;for(let r=a.length-1;r>=0;r--)n+=s[r]>0?1:0,a[r]=n}this.teams.length>0&&(this.rankStatistics.maxSolvedProblems=this.teams[0].solvedProblemNum)})(),this}buildTeamRank(){let n=1,s=1,a=null;for(const r of this.teams)r.rank=n++,r.originalRank=s++,a!==null&&r.isEqualRank(a)&&(r.rank=a.rank),a=r}buildOrgRank(){if(!this.contest.organization)return;let n=1,s=null;const a=new Set;for(const r of this.teams){const e=r.organization;a.has(e)||(a.add(e),r.organizationRank=n++,s!==null&&r.isEqualRank(s)&&(r.organizationRank=s.organizationRank),s=r)}}buildOrganizations(){if(!this.contest.organization)return[];const n=new Array,s=new Set;return this.teams.forEach(a=>{const r=a.organization;s.has(r)||(n.push(r),s.add(r))}),n.sort(),n}buildAwards(){if(this.contest.medal==="ccpc"){this.contest.awards=new Map;const n=this.rankStatistics.effectiveTeamNum,s=[],a=new Gd,r=new Gd,e=new Gd,d=new Gd;a.medalType=tu.GOLD,a.minRank=1,a.maxRank=Math.ceil(n*.1),a.maxRank>=a.minRank&&s.push(a),r.medalType=tu.SILVER,r.minRank=a.maxRank+1,r.maxRank=Math.ceil(n*.3),r.maxRank>=r.minRank&&s.push(r),e.medalType=tu.BRONZE,e.minRank=r.maxRank+1,e.maxRank=Math.ceil(n*.6),e.maxRank>=e.minRank&&s.push(e),d.medalType=tu.HONORABLE,d.minRank=e.maxRank+1,this.teams.forEach(_=>{_.solvedProblemNum>0&&(d.maxRank=Math.max(d.maxRank,_.rank))}),d.maxRank>=d.minRank&&s.push(d),this.contest.awards.set("official",s)}}filterTeamByOrg(n){var a;const s=this.options;return!!(s.enableFilterTeamsByGroup&&!((a=n.group)!=null&&a.includes(s.group)))}getSubmissions(){return this.contest.replayContestStartTimestamp===void 0&&this.options.enableFilterSubmissionsByTimestamp===!1?this.submissions:this.submissions.filter(n=>!(this.contest.replayContestStartTimestamp!==void 0&&n.timestampToSecond>this.contest.replayContestStartTimestamp||this.options.enableFilterSubmissionsByTimestamp&&n.timestampToSecond>this.options.timestamp))}buildBalloons(){this.balloons=[],this.cleanRank();const n=this.getSubmissions();for(let s=0;s<n.length;s++){const a=n[s],r=a.teamId,e=a.problemId,d=this.teamsMap.get(r),_=this.contest.problemsMap.get(e);(()=>{if(d===void 0||_===void 0)return;const y=d.problemStatisticsMap.get(e);if(!y.isSolved&&a.isAccepted()){y.isSolved=!0,y.solvedTimestamp=a.timestampToSecond;const E=new CN;E.team=d,E.problem=_,E.submission=a,this.balloons.push(E)}})()}}setReplayTime(n){this.contest.setReplayTime(n)}}const BN=(...t)=>{const n=Os().proxy.$props,s=Object.create(null);for(const a of t)if(typeof a=="string")s[a]=uD(n,a,void 0,{eventName:`update:${a}`,passive:!0});else{const[r,e=r,d=`update:${r}`,_={}]=a;s[r]=uD(n,e,void 0,{eventName:d,passive:!0,..._})}return s},UN={relative:""},$N=Wt("span",{"i-carbon-close":"",ma:"",block:"","aria-hidden":"true"},null,-1),HN=[$N],WN=vs({__name:"SearchInput",props:{modelValue:null},emits:["update:modelValue"],setup(t,{expose:n}){const{modelValue:s}=BN("modelValue"),a=ur(),r={mounted:_=>_.focus()};function e(){var _;s.value=null,(_=a.value)==null||_.focus()}function d(){var _;(_=a.value)==null||_.focus()}return n({focus:d}),(_,y)=>{var E;return pn(),Qn("div",UN,[qE(Wt("input",Lv({ref_key:"inputEl",ref:a,"onUpdate:modelValue":y[0]||(y[0]=T=>$n(s)?s.value=T:null),type:"text"},_.$attrs,{p:"x-4 y-2",text:"left",bg:"transparent",autocomplete:"off",w:"full",border:"~ rounded gray-300 dark:gray-500",outline:"none active:none","aria-label":"Search",placeholder:"Search..."}),null,16),[[yg,mr(s)],[r]]),(E=mr(s))!=null&&E.length?(pn(),Qn("button",{key:0,absolute:"",flex:"","right-2":"","w-10":"","top-2":"","bottom-2":"","text-xl":"",op30:"","hover:op90":"","aria-label":"Clear search",onClick:y[1]||(y[1]=T=>e())},HN)):po("",!0)])}}}),zN={},jN={class:"color-gray-700 dark:color-gray-200"},GN=Wt("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1161",width:"30",height:"30"},[Wt("path",{d:"M837.9904 570.0608H124.5696a29.0304 29.0304 0 0 1-29.0304-29.0304V482.9696a29.0304 29.0304 0 0 1 29.0304-29.0304h713.4208z",fill:"currentColor","p-id":"1162"}),Wt("path",{d:"M561.3056 808.96l-40.96-40.96a28.928 28.928 0 0 1 0-40.96l215.04-215.04-215.04-215.04a28.9792 28.9792 0 0 1 0-40.96l40.96-40.96a28.9792 28.9792 0 0 1 40.96 0l296.96 296.96-296.96 296.96a28.9792 28.9792 0 0 1-40.96 0z",fill:"currentColor","p-id":"1163"})],-1),VN=[GN];function YN(t,n){return pn(),Qn("div",jN,VN)}const KN=C1(zN,[["render",YN]]),qN=vs({__name:"Progress",props:{width:null,state:null,needScroll:{type:Boolean},rank:null,rankOptions:null,elapsedTime:null},emits:["update:rank-options"],setup(t,{emit:n}){const s=t,a=cn({get(){return s.rankOptions},set(K){n("update:rank-options",K)}}),r=cn(()=>{switch(s.state){case El.PENDING:return"am-progress-bar-secondary";case El.RUNNING:return"am-progress-bar-success";case El.FROZEN:return"am-progress-bar-danger";case El.FINISHED:return"am-progress-bar-primary"}}),e=ur(!1),d=ur(!1),_=ur(0),y=ur(s.width),E=ur(0),T=H5("progress-ratio",-1,{transform:Number}),A=ur(null),R=ur(null),L=ur(null),B=ur(null),P=ur(null);function V(K){d.value=!0;const G=K.clientX-L.value.offsetLeft,ne=U=>{var xe,_e;if(!d.value)return;e.value=!0;let W=U.clientX-G;W=Math.max(W,0),W=Math.min(W,A.value.offsetWidth-L.value.offsetWidth);const te=A.value.offsetWidth*Number.parseInt((xe=R.value.style)==null?void 0:xe.width)*.01;W>=te&&(W=te,e.value=!1);let fe=0;W>0&&(fe=Math.round((W+L.value.offsetWidth)/A.value.offsetWidth*1e4)),fe>1e4&&(fe=1e4),fe===1e4&&(e.value=!1),(_e=window.getSelection())==null||_e.removeAllRanges(),_.value=fe,E.value=W,y.value=fe*.01},ce=()=>{var U,W;document.removeEventListener("mouseup",ce),document.removeEventListener("mousemove",ne),d.value=!1,e.value===!0?(T.value=_.value,(U=a.value)==null||U.setWidth(_.value,s.rank.contest)):(T.value=void 0,(W=a.value)==null||W.disableFilterSubmissionByTimestamp())};document.addEventListener("mousemove",ne),document.addEventListener("mouseup",ce)}function z(){const K=s.rank.contest.getStartTime(),G=s.rank.contest.getEndTime(),ne=G.unix()-K.unix(),ce=Math.floor(ne*y.value*.01),U=Ws(),W=Math.max(0,Math.min(U.unix(),G.unix())-K.unix());return U2(Math.min(ce,W))}function q(){return e.value===!0?z():s.elapsedTime}function oe(){return e.value===!0?`${Math.max(0,E.value)}px`:`max(calc(0%), min(calc(${s.width}%), calc(100% - 10px)))`}return Sl(()=>{var K,G;s.needScroll===!0&&(A.value.onmouseenter=()=>{B.value.classList.add("in")},A.value.onmouseleave=()=>{B.value.classList.remove("in")}),T.value!==-1?(e.value=!0,_.value=Math.max(0,Math.min(1e4,T.value)),y.value=_.value*.01,E.value=y.value*.01*A.value.offsetWidth-L.value.offsetWidth,(K=a.value)==null||K.setWidth(T.value,s.rank.contest)):(G=a.value)==null||G.disableFilterSubmissionByTimestamp()}),Ih(()=>{}),(K,G)=>(pn(),Qn("div",{ref_key:"scroll",ref:A,class:"am-progress am-progress-striped am-active","w-full":"",style:{position:"relative"}},[Wt("div",{ref_key:"mask",ref:R,class:Fa(["am-progress-bar",[mr(r)]]),style:xl({width:`${s.width}%`})},[s.needScroll?(pn(),Qn(Ui,{key:0},[Wt("div",{ref_key:"tooltip",ref:B,class:"tooltip tooltip-top",style:xl({marginLeft:"-32px",bottom:"22px",left:oe()})},[Wt("div",{ref_key:"tooltipInner",ref:P,class:"tooltip-inner"},as(q()),513)],4),Wt("div",{ref_key:"bar",ref:L,class:Fa(["am-progress-bar am-progress-cursor am-progress-scroll-size z-999",[mr(r)]]),style:xl({left:oe()}),onMousedown:V},null,38)],64)):po("",!0)],6)],512))}});const QN=C1(qN,[["__scopeId","data-v-20f092d3"]]),XN={flex:"","flex-row":"","items-center":"","justify-center":""},JN={key:0,"ml-2":""},ZN={key:1,"ml-2":""},eM=vs({__name:"ContestStateBadge",props:{state:null,pendingTime:null,pausedTime:null},setup(t){const n=t;return(s,a)=>(pn(),Qn("div",XN,[Wt("div",{class:Fa(["label",n.state])},null,2),Wt("div",null,as(n.state),1),n.pendingTime&&n.state===mr(El).PENDING?(pn(),Qn("div",JN,as(n.pendingTime),1)):po("",!0),n.pausedTime&&n.state===mr(El).PAUSED?(pn(),Qn("div",ZN,as(n.pausedTime),1)):po("",!0)]))}});const tM=C1(eM,[["__scopeId","data-v-68586c4d"]]);function rM(){const t={};return t.base64=String.raw`
271
271
  iVBORw0KGgoAAAANSUhEUgAAAYYAAAFqCAMAAAAp2A0uAAACNFBMVEUAAABQd7NfgsBfgsBfgsBfgsCYLiIFRHNfgsCYLiLsuUFfgsAjVoqYLiKYLiKpTCiYLiIFRHPsuUFfgsCYLiIFRHPsuUEFRHMFRHMFRHPsuUEFRHMFRHPsuUGYLiJfgsAFRHMFRHMFRHNfgsBfgsDsuUEFRHNfgsBfgsBfgsAFRHPsuUGYLiKYLiKYLiJfgsCYLiKYLiJfgsAFRHOYLiIFRHNfgsAFRHNfgsAFRHOYLiJfgsCYLiKYLiKYLiIFRHMFRHMFRHMFRHMFRHOYLiJfgsDsuUEFRHNfgsCYLiLsuUEFRHNfgsDsuUHsuUFfgsAFRHNfgsCYLiIFRHPsuUEFRHMFRHPsuUEFRHOYLiIFRHOYLiIFRHNfgsCYLiLsuUFfgsDsuUEFRHOYLiJfgsCYLiIFRHOYLiKYLiIFRHMFRHOYLiKYLiIFRHOYLiLsuUEFRHNfgsBfgsCYLiJfgsAFRHPsuUGYLiIFRHNfgsCYLiJfgsCYLiJfgsDsuUHsuUEFRHMFRHNfgsAFRHNfgsBfgsBfgsAFRHPsuUFfgsDsuUHsuUEFRHMFRHPsuUGYLiLsuUFfgsCYLiLsuUEFRHOYLiJfgsDsuUHsuUGYLiKYLiJfgsBfgsDsuUHsuUFfgsBfgsBfgsBfgsBfgsBfgsDsuUHsuUHsuUHsuUGYLiJfgsCYLiJfgsDsuUHsuUFfgsDsuUHsuUFfgsBfgsDsuUFfgsAFRHNfgsBfgsCYLiLsuUEFRHO2wI4EAAAAuHRSTlMABAv98zX++OnoHBUH7hsDFgzo9/rL8XsU3V8o5cv0jE6WRMavBR7vhHUh+K+V2N/fLBgaB+7lxG5kJg7RwbagVS9cO8oaDdXNqmLivJA9q+nYX0ktrKb8jonYkINUEQnTinVUTAr0dEHSiYFoNx8Tz7aaRyMQozixfExGMjD14JuTkGljHxC97cHArD62e3pqKA3Zb28rKNO6ook3IrWglWhZOqOCWDIXml8iqZpyP09HQjw4p2ylG/gsHwAAJuVJREFUeNrs3LFr20AUBvA3CVSQ5UF0qzdPrYUNnkTsyUsC7WAKJQRSigk2JHgx1BBCu4YMTXExNP4D0gSTTl2+++sqpdCmtKTS3VMo8vebM91H7u7de7IQERERERERERERERERERERERHdFU7G17048AB4QdxbjSddoYc1HQ7wp3iZhEIPZRTgF8/zcMc5g3gYrZ8h9M9nnWQ9XSed2bgf4YeoVxcq2zJCJloNa/K7+qjl49Z2TahM6zYyWyP5u5NeA5mlUHmWyAy6co9DZBr7QiW5QCpO5H6Lc6SioVAZuj2kxvJvyQCpQ6ESZGsbJJLLLlK7Quq2APiSV8djDmXYBhB3JbdaxH1J3zGAthQxzXKYCSlaAIi6UkjNA6KFkJ5nAI6loElW6AmpOQGwZ3GecFtSFQNYSHEBEAgpqQM4EgvHfF5S1AN8seIDsZDaP0PL/lDpCGnVDAdipRsBPSENfYelvAYaHBVQ4XLOLgCPrQetouFEbPkAOw9aLTenW9aFkLtrp0tnKwuRVFqfLbE2vL1mkbMtp919DoDzMgp8YO5W+yVCzhpO69i9vWeRMw9eIvYYg1oMa7EWMob/IYZ9Pu7piJzOhg6AqZCzAOi4Pc9yLkBB26mhPGYVrWMALJ3GzNpCKsMxK6cQW0Lu9pye9nzOyOg4ctndQ7Z9lMxdXoWGm9UEDZvNppQEwMjhaPBlc1y+O31fVg4xsCd2Dhqb9ZXDjjGPy4rh0H4iOJvq3qSjocwYssPBNsENqxrKjKFuPyGDrObYIGXGILHtrjQBMJFqujx7nTuGnZsrcTcDIrGxquxgffOpMS/yxhC+Mua5Th90LMWFFZ6rf2LMp7wxfDFpZkqfRIdSWKvCvYZ0wc23fDFkkX3Wmp+cS2FBlSf20hje5ovhpTHmo9asUtvmtupV97eVvhpj8sVwk/2liqHFl6ALVPpTnytjzE2uGIwxH0RHo/iS7lZ8Xu/MmNM8MbxJY3gkOrIKYFx4FqAvFfadvbt7TSqM4wD+7YVIoU6Y7ELYbkoqXOViRFTblUhFDRoDGVESKxosklosiJp3YQ42S0J7cUEwXcRW0i48v7+ucx6to+d5ztHjk2576nMRUeiF3+Pze95NEVG1gxgCRIOQZi3fDHm+6kTdymDKEw20j6HCfRlkZzTGvNVn/QGUViaiqbYxZIjS4Ejd1zDvaZdYEIoLEC21i6HE9VYl+TwMxkaNkn5A5frMLHPtDR/DBtdySXrmoQP6XrHLlPwhpyJ91z2GOBGtQWB9E11a6bg83NLVOg4d56bm+EddHMMaEa2DV5Joqs50eJHMtGqFIU1Eq+BwDT8fQ4aVD041QURldEfzddT9eaAbvkEhhQgRDWrCfAJuMZSJqCScF5SZ+j4yxOcgTuEZlBIOENFACgw/KOBjsGLKgJMjyfmNkQN8DvyAQcUT6Xky+EVfh6JzDCnhQsMGGaqQ8c3M4bTrcXTDDJSjLRFRYgIGewkuOcaQJQrALkuGCuR8C7r1gt5GdWWXn2+QIQSbBNGaUwx+QQUIF83mrQRZI4fM8cMjiEya35VDz1/MP59X8KDVXTJsCsLhYnBeklhfJKK0Bimj90eBtz6HJ/7IuN7sqnLHoUPEL7kVWDTiGPgVCT8ZipDx7swBU2zl4mX2KfNLQ3YPoZgtMgxyTX1evJU4x9WAaoLlKGE8qP8xxP70zbaE4NNbKVmqS4tmDnH7SnPVqXNVlBku8N6e0QU+vEXdo5Wo3hA7PfnsCICLD5RcA9UCRBRIwRJeDOQcMssuVuwzgbQGCWNG7R2Kzc3MPLwViw5ZQUwC0Eau6swB3/AsLCNqHj4sEtFiSw4uoaHJKhl+yF56GLPe/MV7vWGI/W9QZy4fRrM7QTUvLbEGEJ4Myg8XjJocbEn2/gtfvVkCM6PXRae15hgU3SzGDyDai7Phgh9SovbVg9lxnXlkbetrGHt3EXUzu75R8ueSEFn2PCeUypDjWmhp2csM9/wdMKNHLs4F9brx5m19UZ/ecHVy5OKLr6wh29WyFMlBpEqGVXRsnc3QigPKU8JLbdAPBKOx2Jlg8ID+x2zz98WHb2O6ZffPaiTJEFiDQIUMU+hUwGm4MMUqRrbzfRY20flYy9LOo/rm7Tuzw7rlOXa1QpZMizkNnEKGNtExLSMcLmytkmlgWUOHZsd0S2x6BKO20dmZP1cbzs4NX/Yd8sWmd/+ht0KemHISdvENeJBaBsefrYewBk/mp8djsfHTDy/CdNV24HlExUEza7pNkVyP3phyYUh4a1TpYTQb2/UdI7GpLHE1QhKrCcy1OKTMcAdPnil7tGeiHkRE7sHla0Jm+W/s8D5063Sz6aCyB91QyhMTSkKef9CqCZLmdZ7SvwOaKpIpsglJqTQx18KQN66LKH0/RmVVvkag8rsmJAF5o+PDjLn+8364mWIbY1psNWrEBLqUFNYEec/V25Hkys9tk/EmzQZr4MkfeljBv8SoEXmJVwtrgrwhFVfY3G2to3vVJHrh6//76HeCWbZF479tNmpOgOO/7fZg9y/uqGA0+I/1WXeoFV3/t67T26EuK7ktbNe5o///rfqd4BnLQcN/0uRnvYf+/4DPdhsZMvTl9uEvx88e/GuunDyHjvnXBgOmgQKAGwEHORiyAaGBLQAL7K/ppR/o3ORw1NeRcdw3YO6Qz9n7dxrkfH9d+9vOfkRH7qbptwkzBhJbhmGQONYrs/RbdgudmB/TO2SddZjRXV1+iO5dOl7riXto60eELGUAyyS0CSA8SE4KAIpkWYqjnTvDujdzMB326a6iI+jSm1qvPEEbC9wTXyYR1tCkyVEYwAA1W4e7i7pnZ0Yb28bczaArL2u9cx2uVqnFAoAtEphqk0ICBts/Ff5yClZf6YPu7gG6sOdorYdOwsUatcoCKBBncaq+cdvZquCFA0k4ux/Uu/KO2+8q8gzena311CeIiR78PIA42WVKMFRX0+Qox06/2Qy67qPv0umOcrgPr37WeusmHOXJJgLWxLdKpNCgbQYiJDQFYInsKi478ro2ptWn+1xNw6v9tR67DQcTxCkIWqpEZtXqf8ZLd0VJJFlHyS7jcrane1GYHuqujuywL0Ot9hoO0sTZAJAi3sBq047UUmgpQS2WYEjwhXvdcY5IxuVRGB60qSHenKz12gmIxSPEiWjsXK7QYKgQRkNygeuchoiXc1zmlxJr3196D2+u13ruEoT8ROLnd4HEEtl1mDR/llqkYciIkoNYTJdzGSa3MXgQ3pyvSZAaS084DZY1Eln8EQezHCCbMoD1BAnIlwax923fBt4crfXcBQiFHMdhS8RZmABTWYiQXRGOU1EQO6TLWoHh29+r0ftqPXfKPQb+yS5Rq/QNMMlqngSqrK73Lwbr7OGMsjEU7aPrRL5gHV0XWYDhbr9jOKDBcEbVGCgEINyUwl3NGjPk0g5jBj/1OYbGHgFtSNUYMrA3S+mNchwNqfJGgJol/DAUpWKQmF6aUzUG2oBhk1rlN6fiaPDfsNUS5KjPMTCH2VupGgNV6uWBUyxrMCUzrU0YSrQtMVxlVVrZGMjv9IQvwzARaV37RCrRvxj4+Wx1Y0iHIVyGK9uaq8wUDOE0bVMM4zBMKhsDBeIw+NPUjO3b0DZa13qAeIAkYpDzll0moGwMv9cYcgmy3GhdoohMgWuR+h3DMAxRdWOgyI/GtSQtMSQD1gxTGKZqhLYxhkMagEmFYyDa0GDScommGBaJSYSsgXW/Y+A/bKVjIKo/8FqEjyESh2krQtscwwoM0T7FcOLxk8/H+h8DRUIwBAQxaAAqAaLtjiEKw1gfYjh64eleMOdu7+9zDPVLuZf4GNL19mj7Y9A1AB96HsPje2h2qt8x0DqwycewACC/I2I4AmCuxzHcfAqbp/v7HEMBmOBjuAaAdkQMjwA87E0M/Mf38+TjJ29gelVzse/8+aN/OYYKoPExFIDUzonhF3v3+ppUGMBx/KeuYVktOtG72gsNHV2sEYeR1TvDwAojiIiV0aKgKDQpzC4gc3SBaAV2cV1cV0b3iH7ur+tc1JN2zHk8j3NxPq9io4J9p895Hp/znMNCM+Sg+R6XqZHHoShQIwWGXyVpCE8WfS6oIoWZrGxbhq8ANv+VAcDz/skg9NUwC9VcmIaS9hWSr25A5UtTl55Go+hIzJ4M9wGsbc5wG8D7/siwBsBZgRkCUIyGTd5e/CnUzVLhh5loSrIhwz0AT5ozPALwrj8yDAHYKjADFNMeNnmNJhPkd+hWzqbvxPw/R6ZR5cp3n+ERgLvNGTYAONUXGbZD8VRchmEAbk/rHXi5eNI/A8XHKFTRgMwaKZEuQOPLW8xgAHCvOcM9tU1fZNBm0bvFZfgOIN1yz9GPZOM+sEyATWJz0Ez7u8xwEnjbnOE+gJt9keEEFBvFZYgC8PJvMSiy1HmmaiOEmfGVUI15uspwBPjanOEbgPl+yKCtsO4QuLTnBkAzLiDJmvw/t8FKr6HyzXaT4Svw3MigX7teAh73RYZnUGwRmCHSKkMWcmMUxNhSzAfF9y9dZPgMDB3RfACGHmt/AvC1LzLs1M/5EZdhusWbEuVg05WTn/9SBhBlyXqGAzB1vx8y7NefqCswwziAX2xrEln+m9+NAplwW81wD6Y+9UOGXfoyt8AMLwEU2dZwhm3dUDJQiljMsAGm7vZBhmMwBmiR07cQ2wn42d4NL8mBglkG6/ogwxkononM4Am5ALhitMN3BEjKK/+zDOf0u9wFZki4oPEFaYOcPhOM/V8Z9kK1W2CGMjTFsIc2ZUBKHc8tZdhg6vZiZ9hm3F8tKMMNqL7EaJMcFEHS47aSAabuLWIG48d8ZlBYhgGfvlRH2+Rq91+P/z8Zdhj3ggrJILmr69c2Z0CMDFvKsM/EyReLm+Fy9bxiYRly9t8sPV7f1TFlIcNmU0cXNcPh6iHqwjKk9QoCMsyQXPZ/XCnpFU6sE5chAyBNERmiJHMWMqw3tXkRMxyuPZ1PWAYZQIRCMmTUidx/MEQPXoVqaFVFXIZhAGkRGfRRf3rpZxhcbZz3ICxDCEBeTIZXJJf+Beu2NUYFcRniIg66moPKSwaW/Cx6CzSrN1aEZqAbQJH2mqxdr04v9TWls8YTi8VmGINiKmx/BomUlvjS3saL0ByuCM/AGajmJJszJNUXg6UM3w6aWYRZ9PEh42gy4RmkIjQh2b4M+rD/EZYy7IOZK73OsPwyNCf2VERmMHyBbiIs2ZVBrZDAEs4wuB/GsNCbDMbW4EguSRuUD5EccFvMcOCUmSc9zbB8NXTPKsIzGDx5VHlpA21zfgxL97PoC9Dt2FbpSQZDKGLfGt8YhtV/calm2A/jOXzCMgRpSoIiR1vM6rMGNxp9ne/ArStVT+zIsHzhg8K2E9BdXNfhcRodif1j5kt7ZPSZeQCNjsx34B6qTs134DbM7V7woLALVVsGKx1BZ9I0BfsWlzxQfCFlwKCfnLpwLyxluAJzeysLsvsyqi5stLBjoBOzNFO28RyHZO0hEWi0afP8wt19fER3pZMMB2Hu8IIinEbVjt2dz/XQGRdNeHwA3tAeWe2/8ZIzJtf+Qh29hBbajwnLd6DqzFNLB491KMu/DQBwBWkPvbasDtWNhuYFe4FWjrXbC3YRNc/WWdrF1Cl3i43EBdqjjNqrYdbkQwORNm9CKyf++Uo4ZkQ4v87i/pmO5cwPNy/RFgnoGQaMDQGG9fMi3Udrl1v/Ip9FzZnDlu8CsuAVm/kAJGiHgZXQREjCYFyzinMFrbRelhjcY0y7hi5Yf66AJSE2sW3S4HUbI5AXPe1wD620XK/efu0E6o5b/ohuDyyaZaMpm54oEHCjSmpxmMDjtfNivEU7F5pmaud3oG7N1nUVq47DuoBksge7S4kJ1Lxu/ailAyIGiCfv0d6ZPYP1BnuvwrBjf8Wy3dfRlTHZU8NDADL0dOVjoXHJREYrD24ftXW2cPTFJSzM0PmNg4qnu2DYeXZjZdCidc9OoGtu32hN3O/3Z3xdiOBPc/pncC1dWmGjD5vQgYdrVp/BnxVWX7y42pKLqx/CZjmS0iRUNwroWpAMwtG5Q1SFY2EyjG7p+wEcFqRYNwlTGe/UwhdxA3BY8iXIKglmch7SP4r29P0ADquKk6FSqEQy2XpF8NAytPGTpHcKju74SabQxHeHNbEfbrSW0W5Nj8LRLVn9WZu9FMofqUu3DDFMfW+Mo2vuoIcMzqFu2EtFMAP4RqiTD702+YtvBqhIrYTDBr4EFeHs90J0OjcSp6YEXTlGnedOaLzoQtVoLqR/Q5qDwyZxNvL4fagrHPLSEL4TvxOrf0H6CYd9pr0mC6eG0Tc0NQKHvYolvYT31esIFJkbo/hTZkIbCQzJMWfiLMZoIQqVK5ugKj6OBpGZuZFSPl8aKU8U4RDsO+uSETgWxxgV4Xz2jaRtpXEsilGSwz6oijIpu+BYBAky9OcS9g84ei8iMYG6G2QKjt5xQ+fz8CcMzsdqvTMa95L0Blx6hlRDhjAcPTHGmtfASomS689vleDohbK6bDc+M5nUb9zJk/IUdEXSMwpHLwxQ8kE1q4/HYdKThcIXJ5mGoxcmjaeWBEgXMCVT4Q0HqfgFhzAz+ZjXm3z1BYoUJVRN6LcTul6ySp6EQ5gSq1IAAkaGfP2u2pGk7JXjE3CIkyUZyw/f0e9bG6/PmnMNn0k7ixiCJaqXQitTJICgh/HxTLHsJ+msX4s28TGRTC+DIsgyNMvIKLBMYpXHeRcS7Y1xw6DMFDRj+ljgvjOgNgg6q0fCTbIqqu2zi/1m7/xf2zaiAP6UZtNgGkF4RjYyVHKGkxq2QDzXzfKDv624kMIcgk0WvFG8YkjA4G4zpNsCSbPOBBLGIAzGBu22/jQKg411Ke+fm9472ScpTpN0ThZn/vzgpj7pJN1HunenO0t3Z1//wwkOO8Bo8w9vzo+CwdnzlmfesHbd8zP1EefJfd/LGx6LHtojGHHOLMpHpTM3H8KI/4C7joid82yQKooC582Eb5tJo1qtt/vtGH/+P4JhGjEOPpKWZcKp2LUsHaDYwDU4EVuebRajyIR18LOOWARARDiKSAwz4MOydmE4iR3SUEeswakoISYBniFm4EQsy20uYY+Ah4qrQYWjMIOOFMQSDCeHNewjGnAqwqwBrDk4tYY0ojqn6QYirp1WA5j7kaCGMAwnQkPcsiBfySxrAEubiFWL6urtUjlc4MO1cjpkq7Br5TTNzlRTQDQ7sVjHAtCsKOJ2DnTLyoODnl0o7xW5estZSTAye6LM29VYObzv12AgqhwWLPfMTlRjsYp5SIO5V466miLr5VYzkrNSzoYtzmZ/tRy1dYB8DjFqRcSeZ5ZgsDz8cWdmKhR6bfH2/dkj4vqTycWZxcm/PoJ+KDfuLTrrT83sPP7pKA0LiOtImEoaiTzVvES0zYUVV3GVznoDiQIXE7OipZCBvKOPK34mrHA1ZXN2Vb7ImEbSq6GMWAems9fRATaRqQQ0ZJFQaaUcEnuIFkScrTvWY8jMgY3EEmgLSPybC8N9cYBkwzed/t6G/4kzr9FwXEhOtf8ZgnzjexTQzN3+GihOlkuI2IF15++FcJISypk0Yos1pOmQM1SMpYbzwZV6Y71CxRjJON+EW1RVZwHqpCaMHCe20aHkLIMTQLL2KiuIJY8GreGv3ecQcbWFiPs+DXEqVNo7nYoe06uIrIEzc4y0Kh1EhP0MYiPTpIMphxvO5v6lhre8gw4B7vt+STUDyqIvOTR7zGOa7ihHaKgAFBFX+Bw2OP5FRd29Sxowk4uThjJAgsujghgBugK2ODYkwNVQRswBRFRKJg1J/qoIOVQpdKi4MCE16Kqv6teQVuaw7dOg8p824jZlGaYFpYaSGhPhKQXAiU06Ct7zyKA03Dk4xFOfBm08mP5r4CFNQabG+mpQdS6VqAjRXD3sizqgBobbAsmI6gjpAPW2DmBWuhqSroaIY2oCAKqUsM1iYI9rClo+ZWBQQwMkece2u50lj4aE2HyKrswO4i5FF6lBb2ugkLkUhegW739OVI75AWmYPBDcejw9/eS6/1cjVz1vUd/59OqTxW7F9N3hRzRdfzQ9/emtA8HtE2loYZcsaVjj4hFlwGc65KjGwqAGi09I1hcmDWuiB7BEUTaGhE+Dv1IqIi67gXvbo6GJPWh3U1R7SQ2wVlIRPRps7JIbjIanB+K/88C8Iq6NkCI1EFM3ur81vHLAjMlRa+aOG5nn3TuHd0+ooRxl1qhYakENdQrfnVpQQ849oa2ABi7LWMZI+zQoXOcxRq2m7woNlPczvwY1Kuhq2JYaMk7q6mbHpyEWZZYGouHz3t1W/9Vxw6dhBhj2JF+UxVwJRpr74to5iYYst2GYfhqUNMeDfFBDEjHmdpSzPg1VUaH5NHDSQrc+QvrYc7/NSQ2U5wq4dPjKgk2pQWxwXWqo85aYgWgYdwtdMiaqHa+GEHj4qTtawTyRTzv0xxrtBBry4oq3Y+VCPw1aGqMsKBiiG6xkwvkn79PQcUO6X0MbRcm3y4hV/l8CqNhRlxroA00AKx2zocDe8jJE66I5jFJDUdSLlVgsMQgNfwZPdn4kEvHQo+Fun0fOTHs0hjTwMCsG916ooYAYqyaopbGapSaqdtTVsFyoImvoIGYqrEG0/CvZMp3AwathvbCGAQ3cI1BLK8hhnxLUatVRaINXQ46+rqgkWEcHJ3fv1dDYflZiDUDLmWLPw4hpZRAaRGTYAEbO5Hb4U2oYBz+cfgeIjw6IJ32eyX7vhRoSovuWV5FQ8xDUwEW2hUSYQ0Gh233L8kJMOuHVYEFcxOc0NnSpgRMF6TzIlUua1IBAngnOzExz901qCPNedugLiCHlHGmIHHUYhIYDeTJLxkMOX0sNv4FE1jpAzEiNkh9p/VsgqdmbJn1uaQDalk3FbXZKpSSAVlFVtQoOS/amxaGTl4UtO6s7qzipc2DbWWo1hUslSNl2gaNzTFUbrG1306b15uzNPEC8oapZMGx7F3K2bUIXs6U6yxsgyJVVNT0HYq0kQNbeAodCWlVXTXcRu6ZzS0m3bYPUqWo0mbDtfbrRUWo1AYD23B5MbPg12Lpk5gmNNfQdH53uvShrLNTvatE4AzgZijbxwlQ4Aq1/iqYcsbiuHbOy/LpZr8dlp0Am9dm3wWi4Jl8heYrnkWz0wvos10+X7fkA1E+rzdlcL54hUsMj2Qc4WsNU/wwecHNXCLlcaFGUcUJydhruybbp0Rpm+mfwV6+hdfmmltVUh5UmnClSww5XOsdo2IEgHBGe9hpKv8PlQ9c1CHDGGqaO0fBW/3dmPep1MX6FEf+FBnE74+QaastMLa7D2bFkmHA8KWOBuiK5C/AArkBsCB2jYbL/22l+7o00fHn8IGiXJJwVFvfFj6OALmV4AUYsXYCjeFaOFQaoQd4ROkbDaxDgd9Fv6LWUvj65hhicFe0GrsNx5NEhHVbxxdMr1hDnjnYkE8+23/DkA4cvZb9BAz8PhLxev+Fv8PMLrf/Ar6E4MaEsoewQtYFImL28FbMNHnTu1CVN3fOVJvtR3kx0BQLovT8of4miIi6YdOmoiAl3idThNWuIBQjuYMqMdOf2DPpq2DjoU+t8w2X7+9G96JleM1YL9avVbsuuudTg3s2ZA2N1RanxOHsNHcIsRrMRMWOWVg2AaKuaWsAU6Fm+fpYAoNpq5WmIOZVYFQWph1vZYgNxXSumnRUjAKmV1jpApbWSoqzWSE2kg4i21SrFQdDszVRyUtZ688jqpHylFdYzyEUcLdNIuS6GrbGT6tVmaQuUTMxJjOoD1QCiGOf9dU7wDus18KGJhpIs8WDHQfbpAhrWaahlE7HOt4kXPONXYSTSfNsTkQ410ksvcDJTRibFA8xIrCARBXfAYJUyIRydUO5mmpOT1KrARPL5hIwUUccDoipyzAMybciiQOc1GUMR2UcGqEE+ZhW8TLEaGRuC3exbnqK/KS+nwI3wQGzIuzf+444GYoWcoJXfQ1TFaWfs7qHQwKSWHFeJhJMSFhrqW9yxrZMY0oCN7Q6fy2u0tNSAa/EOZ5qlJeMrKDVUaexbkkRHS55cbPNW1e2lGGIFzE1Ew1TitCbt4CqPcORTcYpt5jInDlADFyMzCwIZL37zangMEu6yyVbu4qHo8pAvltsBDaVwuIUOQBrUJoDmzmqI0hUSFmEv2tVAt2KXKhWqvrsamvy5xcoM1jDB53tcjO5LDc4iOm1IU1m+4tHQIYOSGmK2N4sMOSvHfbQboqv8DSygqlCqyQ3vMwjRsqDvaIHZLuOKTPXXMHcPfI3UP4JTBGZlep+WUo41LIuJKiV3XL9Dh0r181xXQxuISLFeVbsaIrzmLoDlaohCd0jO9mnIszuEiCrGPrNSw56/BPfEwqDS1cQuKJcFoYHzqhcKhSilluliye624Uw08MvyiNCGbAUR96UkZkfx/3DuenB6zA2/pUnop2GVot2mOAydy5cPvAVlbNAGlroa3FJipIYsYvN4DaarIUW1iYMhNWz5JzCHxcKwQv+KrZoeDQvYpQlFFBgD1yDH2pjrk59e/evOuJzfIjWwp8Un125cveWmh8a87SZm6s7fVz/tPR33m6CGoqbRwILUoPGYrjuqGwtcDW7jvbFtRtRTazj6arCokJlaOm1DxtVQRkwe0sB29gtMBEC3OkiYZ6QBfiIPfiYV343u6WD6+PcgUciDn9BDOKQBBFKDimm39bRMpVfwxgbRulV1svWyGjSV/55AqSHB57PDBE+ascWeRBBR66NhXdRZZrMJTaO+C9B0cjfOSgPMXu87Z09qgICHmdePfKC0jDTHaOCTbS/Spi5dhFtK9WYVAxqSoO29tAaokoBi2KMB1rltZFJQTotpq812ylmnCkENdd6pWKqdR1QVy1m+DVoFsUAajPZgNcjnKEluzUNQA3zvuWKufA1BNsa9l8orACfREEEXWw7TSw3ufAp0aL2kBrffoHo0KGXsUuSWk0DV/BoK9F0bYjIgNLpLUuKA+g2H3xOmbUxPhpzK5NaD32f7jr4przwa5zJ+1P9VGp9/fe81x9DM3x99DodJezVkqZlO5FX3IB20Nb7vibjV06Bzco5vO5T4wKucDc941cXtqRIlUo6W28aJejW06eTflCHaQa8is2CylSwSsQR4NKSpwuTWmr6KBO1tstGbQgIx1nCOSA3M2Bi8HKlEUtZTkURCB8FS3ZjrHZDzbYFbMslEEghtu/Ys5ayb0OhDoTUpGy2RaDtLJ1IA3e9pESVJ3/CWZBbgJNv+nxql5mq1/Sa4JOeM/V0geBWRi0MzXqT4WKwbBR2YeN3Yp3w4cVeBc0NqOGv49wMK6AtUYgOjgbg5wXVfCoab89KwK4cBBkcdXTIw5JyXBthHJp2EAZJFZlWHIefcNEBke3nLiMNgMevLy/UmDD2OhtHDiP97RhouBCMNF4KRhgvBSMOF4OrB6G0yF4D5mw6jJ6SPGDFixIgRI0aMGDFixIgRI0aMGHGJmd145YKy8b95Iv/8tSsHofELSujKweP/xUtCpq9MfjemKReVsZuP/g/vup68vgEXnJu3p+bhcrM4CUPAg4PL7eHH12AoeHqp3zq+MSxnmTL+C1xe/hqaFxjfvcxTTA7GYFgIXfiWxEvzx3UYGt66CpeVa7dhaJgeon09JdMfgOSXUOg0YfDj9199/hWchi/e+BD68O3zNz+D47kxFC3rf6/hKb1b8Xhk6b3x/ntwGj55/jb4ePedNwDgh+fPPxxp+Ie9s3ltIgjD+NOmhgabJpA9rweFWsjHpoQgaXZPEbrgpbmVohRqSaAhYFsolngRW/AUWlCoCqnWS4gg6MF5/jvnnXzVRQU/Ds3HD3Z3mJ0JYX5k39nN8O6AmeV7+AM8NoB/1GATmloZUw1/i8fCf9EgTDUMWW19m5XZ04P80nprFTjZa2F5LbN1AcPKt8xS5sklumT9CJPJOtDxnaiTNEY2vTo05WRZdtVFP+2UyhBy7VL6fP+oq6HiOpFiKq61JC36fu7Mb+ck1rSdaMSrmhZetpB0HPdoEjWsKHViUmVltpaUWsH9UOiTyqwnVGil+x6U/FZ+kHypaluM2lkckumSQ8qIFZk1NrgJbHCDlhMhawAWSSsdpScaYmnapVKEfIRX0TAjTm6R1o5uE6ZTSnfb+9ykrTvwcFI1nCr1BcBtdUdrUOoUQEatA5gz8fu9CqGHF+4AMduM236Y9aAGlsyApgGk6QJ4Q9GQZQTdkTa9ARgNsTB3AbGalZP0ALj0JlXDkroLzbFSouFeL1nQJW6pNcDY+DzQUAAqTEI4ZyqowcpBQ1tLYtiUXWlU4xFEnHTMDTVUjR057QG+KJQfiD2hGvT2GsK7yxmt4SaEvHqKJb0Jzy5vXtUQ5TaEBktBDR6EqA2kdIVQG4bo+puAhjbLEDqkaNiF5pHFCdXwTKkZ9NAa+lkQ9xYSwezFRkOOzEKI0Qlq2BxoOOcRhG6Iru+WLJIBDUUWIMTDRkNtsjXoQIyhhkT/vu5iNqG+/kTDDlmHsMP0QEOqqyE10OCyCmFf6g5JK5KsbQc0OPrThMWpBq3hVG9XLkowZNTyTKI3RXr940WpP5k5ojvQ4AY1JFmBUJY6spwDENTgsgGhQGuq4WRBqcdXQvQ7aGbluKU+QkioG1c1uNyFUOKGaBAnMTuoockIBF/XdcgzaJoBDRX66Na3pxpOcFetL5jMb89Fg0nbd6HywKkKHQB4oeaBqrfR11CgFZcIHaY+nNMzgTioIU4THKpkSspZ6cCAhjp5aMosTDWcABkV+tRKqNCqaJgLtZ7PdSdPLaVeXmSU+iyDx3L/YYZHJpvnpgL7ZNSz6Qc1YJssbrhMM2U6pDYiLNJqIxalZW7fzoAK6TZ9so0J13BzXpahzLxVmr1ViIbVvC6vH0N4GNLltQMAr2w3B7TTdWhq1NjVXoQgrf1tpwlU9E4oFaGpUtNsOLtAzO+2L5HAYZhWLh4p7khni2R4G5pNxxzOis4EahhwcDycsB4/WxlOnQ5m8RMKjUX0icfxc7LZGHo8ypr2OwjSaXSmj/aCGA3XiKmGa8Hy+GpYfvA7DepaaXg7vv9FX87j18x+eIFrxJO7GFtGaZ3Sa4wteyOzZP3FOC9iPRiVNayYe4gx5ml+BqPAnfGdJxnW1kbBw/P5UfiW/8KDxCmuOQuZEVpr+719O6gBGASCANjUSj+VgA0EIARnJ48HKOB1gRkPm2w22V0taslcmNoX/fQsrJ0gEqv/FU/Q6U3qAQAAAAAAAADgLAMC+fDleFjAMgAAAABJRU5ErkJggg==
272
272
  `,t}function nM(){const t={};return t.base64=String.raw`
273
273
  iVBORw0KGgoAAAANSUhEUgAAAL0AAAC9CAMAAADRCYwCAAAB41BMVEVHcEwau034r2WEe974tmmF5WgnwlPgv5Bz5WT7vHPxe1GRheFscds1Tc8sxlMlxU0/0FZQ3lf9tzxJ3VnyXTXzXjdT3138tTvyWDT5uHErxVQ/UdHxTyo8z1hGzlr9tjxhZ9nwQyHyeFFna9r5rWMauE9Y1mD0e1NPXtMXt0tQ22Atz079uUT9sS1+ed3zXDlL1FgtyFL9tznzcUrza0X9sy5MXdROX9TvOhtLVtbzYT38u184yFo1Tc5UYNb9vlNcZdY1z1Ni1GP9sCn9tzspSMpGWNJh22Ks6X31jGT0b0v5wolV0Gaiwidycdv9tzn0dU79vlE5T9AYt01q32X8v1BeZ9fzdFB6326M5XBDVdJaZNb8v1MPrEyBfNzwSSX8vFmz54R23W/2lG79tDSYi+D3yGXzfVj0e1SfUZxtctn52a2hleH7q0OT3on727bwy22r1DFSuKboztr7y3UwmKSroNv+sSYoR8rvMxYRsksoRcsTtEkRskn+sSQPsEsMrUzvNRclR8kPsU7xMRT/tCfxNhgVtUYJqU30NRcZuVIoSs71PyD/ty4yTtD2TSv/uTw9VdLvuR9wvi6hOXPKN0lfO6VBQrtMuzflMyvMvyLP3agpgLEgsHaZylH/0IGVjSRsRSpHAAAAd3RSTlMA2icvHg7+BxsTNhAf59q3szWEQZQjJFXiZOoz7ZfarYv4U0dF8K6X8LBRScBkbPl8yuhpqPrf/uVox3n59XY1zWLS19n3xGwqjvM2/v1Z9H6Y1D9Z/aHkjEibt9L2p8btV67cl5Czyrj26EjI5ub45K/0t49u/SxprvcAABVaSURBVHja7FtrT9taFiWEJBASEtSAAgTEo7xaiYCCeN2CKBJQYFQhWkFbRDvDVQW9d3Tnw3xJHFs2tuXEDyVCglbVSKP5qbP38bET3okdJSB1owKF5GR5n7XXXvvENDX9il/xK2oYbS0tXVa0tLQ9JeiB4PDJQTy+YEYifvB7KtgWeBLQW7pSSwnDUFRFVWX4UBRFNYzE0niw+dFjDwJ0RZUzEGdm4HeZDFxM4iD1/FFvQDAWN2RZMVGflX+BkGUjGXv+eLHPAnYbbQm2HRnZiJ8+Tvxtu4ky7HcE4E9uPT4FCvQsDakPYSf4leJs12NL/GzxOnYsXFnOlBcw5b/yJdXyuBhvyNcYIqtG0QzDUOUrlMqoxdNHxJ5g3MiUyhSQK8XkQSw2voUxHovNbhdBikroz+Ti7mPRzkAqXsaajHyW2B4f7tkp51XP8O5B4kwtiag89EjIH9hNlsCjJo53Nd9MbKC5a7dcT2Xj9FFwfzgp27QBPZxtvpMTzacJxeaPXBwPPAbOy6VqXFgavg9SW3CpKNtXOtR47gfjagl8MvXQw5vHF2yaKcXhRuv8kg0mYyxVYgKCXxQbfjzY4CZl63zGiFVWhi1fbO0xlhpaubtFC7w6FKuUxcO2wMpGIys3mKA1qMiVgyfwrUppIHcCMcXK/EKqmiSCyNInGrGGoU8NURDyUJXqsWs9U1kYbhhvLAIosSrpG5g1MpQ7S41hvo3gTN2umr3NJvXRr6UaV7KEN4nqdz+wVbSSP9sQs2xvvrHr5NzkgNJOTjaC+c1f6MurzlpOykq+0Qj0u1bqi1vOrv7AIl4DqBNwmfqS3sqJ+s8pw9QjZIa2nFZ90lphuGE1q8adGq22WYpePam35P+5TV9acc7aFB0U69+weuxtd26zUkWK/ku90acsxUk+d52BBqCnA1LmYMfxGi1LKnVqdZ5RLLF21metiJkbmDG26os+uF0LtbPRj9cZfbIWnaZh6Km/lOPNTxi96gr9OBWuuqO3PMp2LXJf3Hqy6DMZeeH5E8593buVhV5xV7X4XnQmU3/0tdGcxMLCwplad5dWG71vw1swtk5O6n0cWJteaw5pEHU2aTsW+npLdU2i7VQx34SVt3eeIHzL358la6LVvlZf5/HxWBRj7PhDt6+mxwzAzVAfDcJTe7YyanCQ53u/NuDx+DVNYzUMv6djbdNXG+TtoVDf4cZGeJ3GxsbhVKhn23z3OKMeuBstfN3d/R2aJDGSwPECBCcIPCtJR57ou263V9A+MrI/EQ6ndT2b1dMYuq4X1sMT3y7PVOUMPhKuqNM53Tt6JPA8x3A8w7IcD5/hO/giCUe9/S8/utGjt/vzBVFMp7Np/AcfWfO7tCj++H7xU1WBOqfOl9/s72XyvMQCbIbjGDaXY3Msy3A5lmPhu3xe+9u0U/jtU4dhHaBDzgloK8z/iHoW8MuK7PjNm9Z+vyZwDMPnWMaEz3HkE8vgXsBVAItGI5uO8IcOz3XMu5n4LPlnXwRugyjqiN/hmzeB7ogm8AzSBdPOwQ4AZuA8/EQi/OFwA3jJH+2seu3Q4J5uQaef6AZYP8Gvevr7ZSbhpN92jnkEnmNzABw/oGJ5IBDDMJLEcwIvIXQGNoZjBanjWWt1eV+ZWNfTNtisxfh02QWY/NfTFz8dnMN2zmg8wIU8Y/qFvMBommdyMhKZnJwc1VhQH7gSuDb4PVzX6NrH6khj5dsGK9qRzdq5J/i/X1YLP/DSg3nNcTxSnBc0f+/M2gcrwaD+HX6NFxjEz2MNCNrAs4oXH9nQTZ2hOAG5Xiicz2OcnxegGiinyIYg/Orul2jt1/ICpJVFenN5tjd6/A9fmbYHfG8+jPXCY5A4LOoPL0UqJE9gao4wvhTr86uLi4tTZiwurqxOLKfFsvyLP779Vg34iMazKCkCn8vlpVf9t9Li4/SAlodGQKoB+BN5WZFODs6nRUsaIbfre6sj3tCVh3i9fStzsAVZa4MAfuWV2z0pAeNB2lEdGf90510d9c3mANEgxsx+byXwp85NXhDGZAsTg+3tN7enKdA+NQeCaimpmP5W6U26m708ch61nZdGo8/ueVrA99ojMahKTI6pCP5IOGvro1iYGwzd+Ujv572Cbsm/mP32WyXwA5t+CXNOWqngef3gRiHLiDSBd5jpfqi9hs1ORBxNeN/7cE+gXUD8cVFB6QY++EELcwy2IkGLdlfAs6gmMKicwB8hem/pBr7OW50UEr8x8uDafdjSCP2z4o/LB2/zQ/DYXdGOSZ7NNxWVyfSoAI/PoURp/ffq/JxNhfT6PaQpo89cQcyatat//xl/4BbjZ68IeAbIIL16X2lzeOERSN+VAP59VPtk6UhaX16pbG3vasHuWxdq8SR4D/7WGWIAQEI4oaPy9tMEO8aiaWYloeNOsgVWlm0bFl6pdGkC32xrPy5lNXEyvHPHBbROgoDkOLRgVYFvenOs5dE04wRwZ/LfnltNSt/rq3xt7wZtbtB0fyqKOrQ9m+ppuxW8hG0fWo9UFXh46pjGg2aiIxp9fxeFiT+ANOrhvmrW9lrVIqYvVLwdVikml2Kx2DhGbJzWQncEbBmHE5QgvHpR7fzYLxFnwXFS9FZla98viJQ46yvVrT2yTJ0/6I5KbwBXDXoLuHHQTDnPY9thkfPVgscGDc/OoZMevfXJ3gnqyUR9pdq1BwvUtukXsmLe6kpuvicR7yLeBqcn0jeFKmljxmspj24HWDdzi7MIHFpSqW+0VzvKtH8Sqd+Ewr1yGz4e1HYheInJIXMk3hn4Jl8EpxgcVkY7b3MI1iQSHql+7VCYWiNI/rW/1FATXdAwsV6BtZwg9ToCD/5IwyYN3NGiN3+5X6CVd77iYOn2Q536HZCda+gXuroHJCLYMI044TzVnQ4BdQeKd+ZGj/aGral11etk7RFQW6JY6Uv56p+ZKAtBsCrAenhhsAcOMw/0nAZjDVMvK/g3b6be7LLi+Vdnpyf7lmp+SxpnMvlTGfOP3OShNXhZ6FLYYZ2DB+bPSAweoAja9HXe7tEX11dDztZeOTdTL57/51+/byeGhgwaxf8RVwm2UnLMeTOiEp6cwEr91yR/kLZZp6lHwTVnRbHwzz93doLBnt/N+Pt/BQEPmSBvUu97N+CbXhzhoQmXE159vCHYZAxMz4Wcrv1JN4+r9FVTcNtIvFkDzrM4i7CSx1XmoW495JiEzfufXbMqItX6FcdrvyWVgx6prF20RiU05zAI8oJb8Kg65PiH066OiG/nqT8Lh5yjnzepU47eF9WwwYM5Z11ynqAfyONYxrLCu1vzlp5rd7x2aIMeMeyFSt5KE3LkPEMS/H+9afL5fG4OtFvX8uBzYCfz/VfMwqJl6w+do0fiE/otfy3ztdjeuRyMRTm/Z2ZmZmDaTfJfI3qQfGGgfL4N/UFN1vqIi7U/FahsfbbBm4dhPOh8L7hzXhDyk27QvztizGPPK+i9f5gnA+Jyn4u1Bwtmvyt8LmUez8FA6Ds6wehAsxVYd+hxuoI6yne0XtNqAr+G6AP9GlgDCd9cEHpfNEVAezgYrF2jx7K9hj5MO82E1xV6sYQeaQOdUeIl0x5EMPdg712ih9TDKlfR94Vpp3WPHgLRtx5r6CoZFHqi8xHyfohb5hxJ+IYQcwt69Ciu0ROj87nJN+bn8OwDPDHV+YhEJjt3uZ/OYz54Jj9wS+6zNcl99vwrcp5ULBCd+vmIRFymK963rOUZJCN79USwdszB4jn/N6ENx+XQz9MxLoKZd1m10Gt5Dscr4YpTqA1zPuGBiiiK83/9v72r/0kjW8OoFCQoFZpo6I3FxGK6ikZJ0DSo+MFtTRQNXdmsvbpxN64/bJvtdu/HmIFhTphMZjJkyKi/mLa7/Vfv+55zBvEbGC/uJPckKv3I8MyZ933e5/044iO07Yp63s5BwWtpS7BrxwH6EBFRrEqlCc8lzqGF1xdOGHNx9s1CrVY9+oKqEoU46PnwuTYnVKH4vneiMWVIjTE9eXJJm1Nx6yxa+YPB0dGf//O7ImHBDJQs8rz9b2O0N3tNXtRKXr4HngO6Sb+o7yHWsmqSI/QM5q8+dFis99VtnhZSFYm2qkoO0ENuhbQlys/WLialts5ZdIr+W3i6CiTPsEWN4D2DXbSECW7btsp81KVAyIPs/vLze8lr2EdLQafgJQmLToA0FL5cz8Ai8DUFgabZHlwHxCr4zvSVvIildW/6HIEfxyaZRDsjT8cvsR3BNiEY/li7W/+shHxZ0qTQJd4a5TKtWBtxAv5JHPYX+5Pi1TTwNRYzsEf7bK1Nn43TJm+JXKml+TGzwGZbdbbPidkgPhH1WNeVWuMTHwGqxpS6PdPpHRBlFPcaMb6/IU4CZ045AU+xS0QJXS2UDoLpoE2JykBb81qvsftTQtH97ErjcGqOc2Ztyd+2zdPugoR6/roEfBpyXKyBy75wG1cfnEG+0cB0rm69J/iqSkvYxaP+NpPDibiCdUb5gs0HoukIXel0+nBDx2RF0shw6xsEuo8oOMyjkevK94vHtI5ZrNTetrP53p+6aC8TqFKnNh/wPj+MxRJblsmWZVk5DWux8H+M1tXCNtqNiAotfl27Hzef6cyFl2241E8+BKZhGjj/xBNYf57IJk1TVct8CfB1cqYj6aBltWo7409xWAfb1OTxtV4z9XdeAq/Otiw0IRmh24rdhfnP/4weFlKqjVwQBPt7TkPbBeV558DBFY9XMKGFO9d915f/g0tVXtSptlrUYXUbSYEwq89//vDVMgWKFr6Ec/CCoJ7qSNiiIhsDvS2RJU6aYhwhysr10cI/tVDh0za171qCj3MQbIaS6Bufv1p8x9mqmw6+/qQRjDhAHcZY8/DXxrB5gaH6svy4wPlsBhA89/iHYCvgFUzYMIfVN34rCDb0+t7z1/CHco4Q2rxBwdAs6/+4YtBWKRgOid/cNhp9UWXjrkeVuear+GGwSWRKEcCfFUzbSuh2c3e1HRf+4lSnKZZMZGO4OfhrK4Yu0qqWfPuICJvNocTTvxlsNooYBKc+wG700xOKUKhvehl8lzMm9WJBQN5RsH+lNDknN0iLESgSgBZu9xba9WRrrinjCYx/Q4dXsVTDwQsCvwFBNa1E7HxlLVNF09epYABMyuPxu7Z/bfsxgeit4XQRufN239bskbTKcROuGx7wyQrNNaVG8GzXsxBgGw8EZdKTB1sMPs6rYx7gG76dOcMrPkKweAaeLt39rHBegg/oHNX+0XcXUYYMnY0+K4QAeNxztu2CmZ3MXKU1fyadVHOajnOkOClKjNDwzZD8yyGR4IAyzlfAzt8dI6Ze1IdfK7U3L2/Zfv/4jAGPn45VinTn60tNFfI3Dcd2H27lwGclmWYCsmLM3GA+j6YfG9gpxQKIpjXpJaNUrrE2QnVhabPvetXT+3omrhAFSF6jNp9TbV4E7Nn0+s0GHcjkcxKRZUJHYSEJjs8sD65dhNa7Nrg8swcPFAcBcfJRNpochcVZIT7Di/hnFzd7rvrSMjINCmLs6ki6TMHzgJqMeG/Xef7ujz5d1tAVMZuRyV58Y2V5e/tHtrbHl1fm43sE58NlVHXI88PNBreepVqlPuV9VK3NLY2MjDbgCU+vzJd0GZkAK6LAlCKC5/HUzGaaUKQfz3TYeyJqOOmqgMuLhm9+g655nw+eJahhUdEkepqAKHePbTak6L/wciobWq9Ua8cv3r60179nfKLOSqwaBilZ9/1p1t3VTGSaeYtHH091XaJkKFPfgVCn45EZHX9QSSMpEBOwhCIroZYkac9if/28ADvjUMGjMnRVv2BdAuvBVLGKEugyi4dXQbASTR6a9B4i9dA5rxK7DgKmE74oCUo4/yor+BZ6fLhVPT06W600HntgAbgC91H8ouFmARWg4UjE2Phc4BYvlM1E0yc+vYefTgnVR4z6JaoG6Mirxu4Fh3dlIj4Ot54G9ywdV4v2AQ17Up3WTL4Y9GQLvgshytNfP3ytBykz38IJtUDezJ0R9B8ZmRMfAzusUcJSOT05QxQjtNxWCh8ceVWjM8bFYrHxwE+xZgB2BQhbl42nw4PvPlhlzpVmoqUTEIGEepI7Q3vHG0BWL9ERX3isogLupJfiM2ODnjZXcPFVDU9pnENnY39/4GQcXNz4ZngbMOyqnCtbMBtuPAnIFnNnGlxLEfm8oIhDvrAzOoGtmXbUWe/bfLtQrJ9Z4icFAH1J1kWIMUjB/nSKU72abfmU81AKiOrkU+70TEOu0RnnwKu9+PzA8o7jU7fBv/0wd0yH7KtFel4GnOEPIvpC02EWPqIFroZVK9ry1QMxk0bok5NPfyLP+wwDvs1vjH0bDvd67mMFR0dHfpnt7+9fOD4+rsHP2d/HJibq5pg2baPPt3HxtMVzGXN3Z2eCr52dezrdySN7H67N9+/f/9wDL3obD+ccqJwuD9o5EOtPmIyv1MT/+nfQXHf++3mKJVPqanvv3p3lPm+lPZ1feSYty+pum2eRIyZDb0Y6D96bZIZTTkXbvcKqytRdovOfSwCUxwhnv92j8QE0HdR41lDHt35X5cqy7efuj/GsQOg4+swWqziVC9H2rwHRjj6/jqOPphjXqzG/gx3giU2kw7/QIvCbyQKtOeRxhJ56/n6H3Tawa7LCU8rBqf71ff78kp1Gz0ONE8PxdO8yqdF59KuM7VVHkWZSZWnlg6CHfbsP9GXhAdCXnbE9Q89o92Esp+xQo0zy5OYh0GNbwTn6B7J7+tDvZe87z/fMchzbPYMfCzwE5zj2WlNFpVPutM5hdi84ZExv5OBgv1CwHgQ90sWB0yutR6PRTn8ABCoFWhNI/nU/L+wOlYac2fm86J4UMsut3Ije/68U7YULaiLgQvg0M0TWsaIuRN+9r/LUIu93IfxoihfytjIuRO9N8p6POulGv83b3fGs151+y3Y/FXHj5h+onPK3hlzpt3a/MOFC26H9A9bij7kQfnSLZxeCdejCiBupj+W4MeKC7di06Ual/DyrnsN/5D74q7yeKQjJQ/e57qRpz2Cqlvv0mj9m8pALrnvgut33Us+1G8fpgCvhs5Kemkqk3fXJ9h4vNR4+/q2mkrtDATc5QCBvqQ1zvGYqm89kMutucQJvfrUBPqTqQmorub87yVb3Xx5/JmueH3gAF1BVe1TQYbGwQ1l6JKXWx8DtF3gPqhvQe/zRZEpthG97srrrht/x7++OZBsMhp/fgB+Fd+6Iu95ILMUbafZsMrwsuEZ+BoZiFjs9c25FlovEsz+d3y808D/IH3dJ/3fRoQvLjXXa/6+b138BVEE6mOU/ueYAAAAASUVORK5CYII=
274
- `,t}function iM(){const t={};return t.url="/logos/hunan_cpc.png",t}function sM(t){if(!t.preset)return t;const n=t.preset.toUpperCase();return n==="ICPC"?rM():n==="CCPC"?nM():n==="HUNAN_CPC"?iM():t}const aM=t=>(Ov("data-v-32fa4e5c"),t=t(),Rv(),t),oM={"h-32":""},lM={key:0},cM={"w-240":"",flex:"","flex-col":"","justify-center":"","font-serif":"","pb-2":"",border:"b-2 gray-200 dark:gray-700"},uM={"w-full":"",flex:""},fM={key:0,class:"logo"},hM=["src"],dM={class:"title","w-inherit":""},pM={"overflow-hidden":"","text-2xl":"",truncate:""},gM={"text-lg":""},mM={flex:"","items-end":""},vM={"float-left":"","font-mono":"","text-base":""},bM={class:"pl-0.5"},_M=aM(()=>Wt("br",null,null,-1)),yM={"flex-1":""},wM={flex:"","items-center":"","justify-center":""},DM={"font-bold":"","font-mono":"",class:"w-[68%]"},EM={"float-right":""},FM={class:"MuiIconButton-label"},xM=vs({__name:"ContestIndexUI",props:{data:null},setup(t){const n=t,{t:s}=T1(),a=cn(()=>n.data.contest),r=a5(),e=ur(null),d=X9(e),_=cn(()=>{if(a.value.logo)return sM(a.value.logo)});return(y,E)=>{const T=q6,A=tM,R=QN,L=KN,B=Cl("RouterLink");return pn(),Qn("div",{ref_key:"el",ref:e},[Wt("div",oM,[mr(d)?(pn(),Qn("div",lM,[Wt("div",cM,[Wt("div",uM,[mr(_)!==void 0?(pn(),Qn("div",fM,[Wt("img",{class:"h-10 w-10",src:mr(NN)(mr(_)),alt:"logo"},null,8,hM)])):po("",!0),Wt("div",dM,[Kr(T,null,{popper:As(()=>[Wt("div",gM,as(mr(a).name),1)]),default:As(()=>[Wt("div",pM,as(mr(a).name),1)]),_:1})])]),Wt("div",mM,[Wt("div",vM,[tc(as(mr(s)("index.start"))+": "+as(mr(a).startTime.format("YYYY-MM-DD HH:mm:ss")),1),Wt("sup",bM,as(mr(a).startTime.format("z")),1),_M,tc(" "+as(mr(s)("index.duration"))+": "+as(mr(a).getContestDuration()),1)]),Wt("div",yM,[Wt("div",wM,[Wt("div",DM,[Wt("div",null,[Kr(A,{state:mr(a).getContestState(mr(r)),"pending-time":mr(a).getContestPendingTime(mr(r))},null,8,["state","pending-time"])]),Kr(R,{width:mr(a).getContestProgressRatio(mr(r)),state:mr(a).getContestState(mr(r))},null,8,["width","state"])])])]),Wt("div",EM,[Kr(B,{class:"go MuiIconButton-root",to:n.data.boardLink},{default:As(()=>[Wt("span",FM,[Kr(L)])]),_:1},8,["to"])])])])])):po("",!0)])],512)}}});const TM=C1(xM,[["__scopeId","data-v-32fa4e5c"]]),CM={class:"sm:w-[1024px] lg:w-screen","lg:of-x-hidden":"",flex:"","flex-col":"","justify-center":"","items-center":""},AM={key:0,"mt-4":"","mb-4":"",class:"sm:w-[1000px] lg:w-screen",flex:"","justify-center":"","items-center":""},SM={key:0},kM={key:1},OM={key:1,class:"sm:w-[1000px] lg:w-screen min-h-120",flex:"","flex-col":"","items-center":""},RM={"w-240":""},IM={key:0,"mt-4":""},PM={key:1,p10:""},NM=Wt("div",{op40:"",italic:"",mb5:""}," No result found ",-1),MM={row:"","justify-center":""},YD=1e3*60*5,Fx=vs({__name:"index",setup(t){const{t:n}=T1();uR(PO);const s=a5(),a=cn(()=>Math.floor(s.value.getTime()/YD));function r(){return`${window.DATA_HOST}index/contest_list.json?t=${a.value}`}const e=ur(r()),d=H5("s","",{transform:String}),_=ur(d.value),y=ur(null),E=ur([]),T=ur([]);function A(){T.value=E.value.filter(z=>{var q;return((q=_.value)==null?void 0:q.length)===0&&(_.value=null),_.value===null?(d.value=void 0,!0):(d.value=_.value,!!(z.contest.name.includes(_.value)||z.contest.name.toLowerCase().includes(_.value.toLowerCase())||z.boardLink.toLocaleLowerCase().includes(_.value.toLowerCase())))})}function R(){var z;_.value=null,(z=y.value)==null||z.focus()}const{error:L,isFetching:B,isFinished:P}=iR(e,{refetch:!0,afterFetch:z=>(E.value=PN(JSON.parse(z.data)),T.value=E.value.map(q=>q),A(),z)}).get();Zn(_,()=>{A()});const V=setInterval(()=>{e.value=r()},YD);return Ih(()=>{clearInterval(V)}),(z,q)=>(pn(),Qn("div",CM,[Wt("div",null,[mr(B)||mr(L)?(pn(),Qn("div",AM,[mr(B)?(pn(),Qn("div",SM,as(mr(n)("common.loading"))+"... ",1)):po("",!0),mr(L)?(pn(),Qn("div",kM,as(mr(L)),1)):po("",!0)])):po("",!0),mr(P)?(pn(),Qn("div",OM,[Wt("div",RM,[Kr(WN,{ref_key:"searchInputRef",ref:y,modelValue:mr(_),"onUpdate:modelValue":q[0]||(q[0]=oe=>$n(_)?_.value=oe:null)},null,8,["modelValue"])]),mr(T).length?(pn(),Qn("div",IM,[(pn(!0),Qn(Ui,null,aF(mr(T),oe=>(pn(),cu(TM,{key:oe.boardLink,data:oe},null,8,["data"]))),128))])):(pn(),Qn("div",PM,[NM,Wt("div",MM,[Wt("button",{btn:"",onClick:q[1]||(q[1]=oe=>R())}," Clear search ")])]))])):po("",!0)])]))}}),KD={};typeof KD=="function"&&KD(Fx);const LM=()=>Zs(()=>import("./index-57ca4f0a.js"),["https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.1/dist/assets/index-57ca4f0a.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.1/dist/assets/index-241beb5a.css"],import.meta.url),BM=()=>Zs(()=>import("./index-d357dc60.js"),["https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.1/dist/assets/index-d357dc60.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.1/dist/assets/query-49959a5e.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.1/dist/assets/DataSourceInput.vue_vue_type_script_setup_true_lang-f7a94fde.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.1/dist/assets/TheInput.vue_vue_type_script_setup_true_lang-71fc9a51.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.1/dist/assets/index-67b2a8c5.css"],import.meta.url),UM=()=>Zs(()=>import("./index-4a515f06.js"),["https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.1/dist/assets/index-4a515f06.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.1/dist/assets/query-49959a5e.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.1/dist/assets/DataSourceInput.vue_vue_type_script_setup_true_lang-f7a94fde.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.1/dist/assets/TheInput.vue_vue_type_script_setup_true_lang-71fc9a51.js"],import.meta.url),$M=()=>Zs(()=>import("./test-2ab0c86d.js"),["https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.1/dist/assets/test-2ab0c86d.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.1/dist/assets/TheInput.vue_vue_type_script_setup_true_lang-71fc9a51.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.1/dist/assets/user-f6e65dcb.js"],import.meta.url),HM=()=>Zs(()=>import("./board-a30142c4.js"),["https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.1/dist/assets/board-a30142c4.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.1/dist/assets/Board-e49fa5a5.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.1/dist/assets/pagination-b2b8c1d7.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.1/dist/assets/TheInput.vue_vue_type_script_setup_true_lang-71fc9a51.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.1/dist/assets/query-49959a5e.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.1/dist/assets/Board-24564942.css","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.1/dist/assets/DataSourceInput.vue_vue_type_script_setup_true_lang-f7a94fde.js"],import.meta.url),WM=()=>Zs(()=>import("./about-2103c294.js"),[],import.meta.url),zM=()=>Zs(()=>import("./_...all_-b664c765.js"),["https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.1/dist/assets/_...all_-b664c765.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.1/dist/assets/Board-e49fa5a5.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.1/dist/assets/pagination-b2b8c1d7.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.1/dist/assets/TheInput.vue_vue_type_script_setup_true_lang-71fc9a51.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.1/dist/assets/query-49959a5e.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.1/dist/assets/Board-24564942.css"],import.meta.url),jM=()=>Zs(()=>import("./_name_-f7eb77b8.js"),["https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.1/dist/assets/_name_-f7eb77b8.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.1/dist/assets/user-f6e65dcb.js"],import.meta.url),GM=()=>Zs(()=>import("./_...all_-a7c27024.js"),["https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.1/dist/assets/_...all_-a7c27024.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.1/dist/assets/pagination-b2b8c1d7.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.1/dist/assets/_...all_-c60acc8c.css"],import.meta.url),VM=[{name:"rating",path:"/rating",component:LM,props:!0,meta:{layout:"index-layout"}},{name:"countdown",path:"/countdown",component:BM,props:!0,meta:{layout:"headless"}},{name:"balloon",path:"/balloon",component:UM,props:!0,meta:{layout:"headless"}},{name:"test",path:"/test",component:$M,props:!0,meta:{layout:"home"}},{name:"index",path:"/",component:Fx,props:!0,meta:{layout:"index-layout"}},{name:"board",path:"/board",component:HM,props:!0,meta:{layout:"board-layout"}},{name:"about",path:"/about",component:WM,props:!0},{name:"all",path:"/:all(.*)*",component:zM,props:!0,meta:{layout:"board-layout"}},{name:"hi-name",path:"/hi/:name",component:jM,props:!0},{name:"rating-all",path:"/rating/:all(.*)",component:GM,props:!0}];const YM=BR(VM);F7(DP,{routes:YM,base:"/"},t=>{Object.values(Object.assign({"./modules/i18n.ts":gS,"./modules/nprogress.ts":bS,"./modules/pinia.ts":CS,"./modules/pwa.ts":SS,"./modules/toast.ts":PS})).forEach(n=>{var s;return(s=n.install)==null?void 0:s.call(n,t)}),t.app.use(WI),t.app.use(pP)});export{Bf as $,Zn as A,ON as B,JM as C,Fa as D,El as E,Ui as F,xl as G,XM as H,bL as I,_L as J,CN as K,yL as L,Lk as M,$n as N,jF as O,x6 as P,yP as Q,QM as R,YA as S,tc as T,AN as U,BN as V,qE as W,g4 as X,Th as Y,R9 as Z,Zs as _,C1 as a,uc as a0,tu as a1,tL as a2,gv as a3,O8 as a4,ms as a5,ra as a6,OS as a7,iL as a8,dL as a9,GI as aA,N5 as aB,tP as aC,YI as aD,Da as aE,fF as aF,xa as aG,cP as aH,Fn as aI,Hf as aJ,fL as aK,Hy as aL,hL as aM,ME as aN,Oh as aO,MO as aP,WF as aQ,Lv as aR,e4 as aS,qM as aT,mL as aU,vL as aV,wx as aW,aL as aX,$8 as aY,yg as aZ,kS as a_,pL as aa,gL as ab,U2 as ac,eL as ad,Ov as ae,Rv as af,NN as ag,cg as ah,H5 as ai,Sl as aj,j6 as ak,PO as al,LN as am,a9 as an,nL as ao,sL as ap,Ih as aq,Q6 as ar,rL as as,tM as at,QN as au,Qv as av,oL as aw,bl as ax,jg as ay,jI as az,Kr as b,Qn as c,Wt as d,RR as e,JO as f,vs as g,cn as h,ur as i,mr as j,po as k,q6 as l,KN as m,T1 as n,pn as o,uR as p,iR as q,Cl as r,aF as s,as as t,X9 as u,cu as v,As as w,ZM as x,KD as y,a5 as z};
274
+ `,t}function iM(){const t={};return t.url="/logos/hunan_cpc.png",t}function sM(t){if(!t.preset)return t;const n=t.preset.toUpperCase();return n==="ICPC"?rM():n==="CCPC"?nM():n==="HUNAN_CPC"?iM():t}const aM=t=>(Ov("data-v-32fa4e5c"),t=t(),Rv(),t),oM={"h-32":""},lM={key:0},cM={"w-240":"",flex:"","flex-col":"","justify-center":"","font-serif":"","pb-2":"",border:"b-2 gray-200 dark:gray-700"},uM={"w-full":"",flex:""},fM={key:0,class:"logo"},hM=["src"],dM={class:"title","w-inherit":""},pM={"overflow-hidden":"","text-2xl":"",truncate:""},gM={"text-lg":""},mM={flex:"","items-end":""},vM={"float-left":"","font-mono":"","text-base":""},bM={class:"pl-0.5"},_M=aM(()=>Wt("br",null,null,-1)),yM={"flex-1":""},wM={flex:"","items-center":"","justify-center":""},DM={"font-bold":"","font-mono":"",class:"w-[68%]"},EM={"float-right":""},FM={class:"MuiIconButton-label"},xM=vs({__name:"ContestIndexUI",props:{data:null},setup(t){const n=t,{t:s}=T1(),a=cn(()=>n.data.contest),r=a5(),e=ur(null),d=X9(e),_=cn(()=>{if(a.value.logo)return sM(a.value.logo)});return(y,E)=>{const T=q6,A=tM,R=QN,L=KN,B=Cl("RouterLink");return pn(),Qn("div",{ref_key:"el",ref:e},[Wt("div",oM,[mr(d)?(pn(),Qn("div",lM,[Wt("div",cM,[Wt("div",uM,[mr(_)!==void 0?(pn(),Qn("div",fM,[Wt("img",{class:"h-10 w-10",src:mr(NN)(mr(_)),alt:"logo"},null,8,hM)])):po("",!0),Wt("div",dM,[Kr(T,null,{popper:As(()=>[Wt("div",gM,as(mr(a).name),1)]),default:As(()=>[Wt("div",pM,as(mr(a).name),1)]),_:1})])]),Wt("div",mM,[Wt("div",vM,[tc(as(mr(s)("index.start"))+": "+as(mr(a).startTime.format("YYYY-MM-DD HH:mm:ss")),1),Wt("sup",bM,as(mr(a).startTime.format("z")),1),_M,tc(" "+as(mr(s)("index.duration"))+": "+as(mr(a).getContestDuration()),1)]),Wt("div",yM,[Wt("div",wM,[Wt("div",DM,[Wt("div",null,[Kr(A,{state:mr(a).getContestState(mr(r)),"pending-time":mr(a).getContestPendingTime(mr(r))},null,8,["state","pending-time"])]),Kr(R,{width:mr(a).getContestProgressRatio(mr(r)),state:mr(a).getContestState(mr(r))},null,8,["width","state"])])])]),Wt("div",EM,[Kr(B,{class:"go MuiIconButton-root",to:n.data.boardLink},{default:As(()=>[Wt("span",FM,[Kr(L)])]),_:1},8,["to"])])])])])):po("",!0)])],512)}}});const TM=C1(xM,[["__scopeId","data-v-32fa4e5c"]]),CM={class:"sm:w-[1024px] lg:w-screen","lg:of-x-hidden":"",flex:"","flex-col":"","justify-center":"","items-center":""},AM={key:0,"mt-4":"","mb-4":"",class:"sm:w-[1000px] lg:w-screen",flex:"","justify-center":"","items-center":""},SM={key:0},kM={key:1},OM={key:1,class:"sm:w-[1000px] lg:w-screen min-h-120",flex:"","flex-col":"","items-center":""},RM={"w-240":""},IM={key:0,"mt-4":""},PM={key:1,p10:""},NM=Wt("div",{op40:"",italic:"",mb5:""}," No result found ",-1),MM={row:"","justify-center":""},YD=1e3*60*5,Fx=vs({__name:"index",setup(t){const{t:n}=T1();uR(PO);const s=a5(),a=cn(()=>Math.floor(s.value.getTime()/YD));function r(){return`${window.DATA_HOST}index/contest_list.json?t=${a.value}`}const e=ur(r()),d=H5("s","",{transform:String}),_=ur(d.value),y=ur(null),E=ur([]),T=ur([]);function A(){T.value=E.value.filter(z=>{var q;return((q=_.value)==null?void 0:q.length)===0&&(_.value=null),_.value===null?(d.value=void 0,!0):(d.value=_.value,!!(z.contest.name.includes(_.value)||z.contest.name.toLowerCase().includes(_.value.toLowerCase())||z.boardLink.toLocaleLowerCase().includes(_.value.toLowerCase())))})}function R(){var z;_.value=null,(z=y.value)==null||z.focus()}const{error:L,isFetching:B,isFinished:P}=iR(e,{refetch:!0,afterFetch:z=>(E.value=PN(JSON.parse(z.data)),T.value=E.value.map(q=>q),A(),z)}).get();Zn(_,()=>{A()});const V=setInterval(()=>{e.value=r()},YD);return Ih(()=>{clearInterval(V)}),(z,q)=>(pn(),Qn("div",CM,[Wt("div",null,[mr(B)||mr(L)?(pn(),Qn("div",AM,[mr(B)?(pn(),Qn("div",SM,as(mr(n)("common.loading"))+"... ",1)):po("",!0),mr(L)?(pn(),Qn("div",kM,as(mr(L)),1)):po("",!0)])):po("",!0),mr(P)?(pn(),Qn("div",OM,[Wt("div",RM,[Kr(WN,{ref_key:"searchInputRef",ref:y,modelValue:mr(_),"onUpdate:modelValue":q[0]||(q[0]=oe=>$n(_)?_.value=oe:null)},null,8,["modelValue"])]),mr(T).length?(pn(),Qn("div",IM,[(pn(!0),Qn(Ui,null,aF(mr(T),oe=>(pn(),cu(TM,{key:oe.boardLink,data:oe},null,8,["data"]))),128))])):(pn(),Qn("div",PM,[NM,Wt("div",MM,[Wt("button",{btn:"",onClick:q[1]||(q[1]=oe=>R())}," Clear search ")])]))])):po("",!0)])]))}}),KD={};typeof KD=="function"&&KD(Fx);const LM=()=>Zs(()=>import("./index-67faeda8.js"),["https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.2/dist/assets/index-67faeda8.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.2/dist/assets/index-241beb5a.css"],import.meta.url),BM=()=>Zs(()=>import("./index-de0376d5.js"),["https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.2/dist/assets/index-de0376d5.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.2/dist/assets/query-61045468.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.2/dist/assets/DataSourceInput.vue_vue_type_script_setup_true_lang-114e3155.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.2/dist/assets/TheInput.vue_vue_type_script_setup_true_lang-bd5395e9.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.2/dist/assets/index-67b2a8c5.css"],import.meta.url),UM=()=>Zs(()=>import("./index-3a723320.js"),["https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.2/dist/assets/index-3a723320.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.2/dist/assets/query-61045468.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.2/dist/assets/DataSourceInput.vue_vue_type_script_setup_true_lang-114e3155.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.2/dist/assets/TheInput.vue_vue_type_script_setup_true_lang-bd5395e9.js"],import.meta.url),$M=()=>Zs(()=>import("./test-3d1287e8.js"),["https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.2/dist/assets/test-3d1287e8.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.2/dist/assets/TheInput.vue_vue_type_script_setup_true_lang-bd5395e9.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.2/dist/assets/user-3576d2ec.js"],import.meta.url),HM=()=>Zs(()=>import("./board-08dfd01a.js"),["https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.2/dist/assets/board-08dfd01a.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.2/dist/assets/Board-38585e67.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.2/dist/assets/pagination-672f41c6.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.2/dist/assets/TheInput.vue_vue_type_script_setup_true_lang-bd5395e9.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.2/dist/assets/query-61045468.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.2/dist/assets/Board-24564942.css","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.2/dist/assets/DataSourceInput.vue_vue_type_script_setup_true_lang-114e3155.js"],import.meta.url),WM=()=>Zs(()=>import("./about-6f40b1d0.js"),[],import.meta.url),zM=()=>Zs(()=>import("./_...all_-8c4ba3cf.js"),["https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.2/dist/assets/_...all_-8c4ba3cf.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.2/dist/assets/Board-38585e67.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.2/dist/assets/pagination-672f41c6.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.2/dist/assets/TheInput.vue_vue_type_script_setup_true_lang-bd5395e9.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.2/dist/assets/query-61045468.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.2/dist/assets/Board-24564942.css"],import.meta.url),jM=()=>Zs(()=>import("./_name_-a532ea53.js"),["https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.2/dist/assets/_name_-a532ea53.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.2/dist/assets/user-3576d2ec.js"],import.meta.url),GM=()=>Zs(()=>import("./_...all_-0bc53d25.js"),["https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.2/dist/assets/_...all_-0bc53d25.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.2/dist/assets/pagination-672f41c6.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.50.2/dist/assets/_...all_-c60acc8c.css"],import.meta.url),VM=[{name:"rating",path:"/rating",component:LM,props:!0,meta:{layout:"index-layout"}},{name:"countdown",path:"/countdown",component:BM,props:!0,meta:{layout:"headless"}},{name:"balloon",path:"/balloon",component:UM,props:!0,meta:{layout:"headless"}},{name:"test",path:"/test",component:$M,props:!0,meta:{layout:"home"}},{name:"index",path:"/",component:Fx,props:!0,meta:{layout:"index-layout"}},{name:"board",path:"/board",component:HM,props:!0,meta:{layout:"board-layout"}},{name:"about",path:"/about",component:WM,props:!0},{name:"all",path:"/:all(.*)*",component:zM,props:!0,meta:{layout:"board-layout"}},{name:"hi-name",path:"/hi/:name",component:jM,props:!0},{name:"rating-all",path:"/rating/:all(.*)",component:GM,props:!0}];const YM=BR(VM);F7(DP,{routes:YM,base:"/"},t=>{Object.values(Object.assign({"./modules/i18n.ts":gS,"./modules/nprogress.ts":bS,"./modules/pinia.ts":CS,"./modules/pwa.ts":SS,"./modules/toast.ts":PS})).forEach(n=>{var s;return(s=n.install)==null?void 0:s.call(n,t)}),t.app.use(WI),t.app.use(pP)});export{Bf as $,Zn as A,ON as B,JM as C,Fa as D,El as E,Ui as F,xl as G,XM as H,bL as I,_L as J,CN as K,yL as L,Lk as M,$n as N,jF as O,x6 as P,yP as Q,QM as R,YA as S,tc as T,AN as U,BN as V,qE as W,g4 as X,Th as Y,R9 as Z,Zs as _,C1 as a,uc as a0,tu as a1,tL as a2,gv as a3,O8 as a4,ms as a5,ra as a6,OS as a7,iL as a8,dL as a9,GI as aA,N5 as aB,tP as aC,YI as aD,Da as aE,fF as aF,xa as aG,cP as aH,Fn as aI,Hf as aJ,fL as aK,Hy as aL,hL as aM,ME as aN,Oh as aO,MO as aP,WF as aQ,Lv as aR,e4 as aS,qM as aT,mL as aU,vL as aV,wx as aW,aL as aX,$8 as aY,yg as aZ,kS as a_,pL as aa,gL as ab,U2 as ac,eL as ad,Ov as ae,Rv as af,NN as ag,cg as ah,H5 as ai,Sl as aj,j6 as ak,PO as al,LN as am,a9 as an,nL as ao,sL as ap,Ih as aq,Q6 as ar,rL as as,tM as at,QN as au,Qv as av,oL as aw,bl as ax,jg as ay,jI as az,Kr as b,Qn as c,Wt as d,RR as e,JO as f,vs as g,cn as h,ur as i,mr as j,po as k,q6 as l,KN as m,T1 as n,pn as o,uR as p,iR as q,Cl as r,aF as s,as as t,X9 as u,cu as v,As as w,ZM as x,KD as y,a5 as z};