@xcpcio/board-app 0.31.1 → 0.32.0

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 (32) hide show
  1. package/dist/assets/Board-5181d383.css +1 -0
  2. package/dist/assets/Board-a9988a0d.js +3 -0
  3. package/dist/assets/{DataSourceInput.vue_vue_type_script_setup_true_lang-b87eba77.js → DataSourceInput.vue_vue_type_script_setup_true_lang-7ca3c000.js} +1 -1
  4. package/dist/assets/{TheInput.vue_vue_type_script_setup_true_lang-079f8c80.js → TheInput.vue_vue_type_script_setup_true_lang-2682b2e3.js} +1 -1
  5. package/dist/assets/{_...all_-019b03b8.js → _...all_-c4727646.js} +1 -1
  6. package/dist/assets/{_name_-6a3b59a1.js → _name_-8853f4a2.js} +1 -1
  7. package/dist/assets/{about-f9061b17.js → about-b984181a.js} +1 -1
  8. package/dist/assets/{board-6d208112.js → board-ce33013d.js} +1 -1
  9. package/dist/assets/{board-layout-5590c53f.js → board-layout-ccb8d7e4.js} +1 -1
  10. package/dist/assets/{headless-94485ccd.js → headless-be8dd44c.js} +1 -1
  11. package/dist/assets/{home-e847177d.js → home-bc4084e9.js} +1 -1
  12. package/dist/assets/index-181beaa6.js +1 -0
  13. package/dist/assets/{index-7a9bcf50.js → index-6c4a0937.js} +5 -5
  14. package/dist/assets/{index-d429549a.css → index-bbe8c4f8.css} +1 -1
  15. package/dist/assets/{index-3735f4c2.js → index-d882800e.js} +1 -1
  16. package/dist/assets/{index-layout-3f26f613.js → index-layout-95eb074e.js} +1 -1
  17. package/dist/assets/{test-24dab276.js → test-fa217a0f.js} +1 -1
  18. package/dist/assets/{useQueryBoardData-b6644ecd.js → useQueryBoardData-95ed94f9.js} +1 -1
  19. package/dist/assets/{user-7a10fa8c.js → user-c1e9292b.js} +1 -1
  20. package/dist/assets/{virtual_pwa-register-41acaeb8.js → virtual_pwa-register-f8259b1b.js} +1 -1
  21. package/dist/index.html +3 -3
  22. package/dist/sw.js +1 -1
  23. package/package.json +3 -3
  24. package/src/components/board/Board.vue +17 -8
  25. package/src/components/board/BottomStatistics.vue +2 -2
  26. package/src/components/board/DynamicSubmissionsModal.vue +131 -0
  27. package/src/components/board/OptionsModal.vue +30 -0
  28. package/src/components.d.ts +1 -0
  29. package/src/styles/submission-status-background.css +123 -0
  30. package/dist/assets/Board-3c31679a.css +0 -1
  31. package/dist/assets/Board-ce0a2c6c.js +0 -3
  32. package/dist/assets/index-4b46c3f4.js +0 -1
@@ -23,11 +23,11 @@
23
23
  * pinia v2.1.6
24
24
  * (c) 2023 Eduardo San Martin Morote
25
25
  * @license MIT
26
- */let JF;const p2=t=>JF=t,ZF=Symbol();function p_(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var Pd;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(Pd||(Pd={}));function HA(){const t=qg(!0),i=t.run(()=>Yt({}));let s=[],a=[];const r=f1({install(e){p2(r),r._a=e,e.provide(ZF,r),e.config.globalProperties.$pinia=r,a.forEach(p=>s.push(p)),a=[]},use(e){return!this._a&&!UA?a.push(e):s.push(e),this},_p:s,_a:null,_e:t,_s:new Map,state:i});return r}const eE=()=>{};function dD(t,i,s,a=eE){t.push(i);const r=()=>{const e=t.indexOf(i);e>-1&&(t.splice(e,1),a())};return!s&&Qg()&&V_(r),r}function zf(t,...i){t.slice().forEach(s=>{s(...i)})}const $A=t=>t();function m_(t,i){t instanceof Map&&i instanceof Map&&i.forEach((s,a)=>t.set(a,s)),t instanceof Set&&i instanceof Set&&i.forEach(t.add,t);for(const s in i){if(!i.hasOwnProperty(s))continue;const a=i[s],r=t[s];p_(r)&&p_(a)&&t.hasOwnProperty(s)&&!rn(a)&&!Qo(a)?t[s]=m_(r,a):t[s]=a}return t}const WA=Symbol();function zA(t){return!p_(t)||!t.hasOwnProperty(WA)}const{assign:Ll}=Object;function jA(t){return!!(rn(t)&&t.effect)}function VA(t,i,s,a){const{state:r,actions:e,getters:p}=i,_=s.state.value[t];let D;function F(){_||(s.state.value[t]=r?r():{});const T=Cw(s.state.value[t]);return Ll(T,e,Object.keys(p||{}).reduce((A,k)=>(A[k]=f1(Hr(()=>{p2(s);const I=s._s.get(t);return p[k].call(I,I)})),A),{}))}return D=tE(t,F,i,s,a,!0),D}function tE(t,i,s={},a,r,e){let p;const _=Ll({actions:{}},s),D={deep:!0};let F,T,A=[],k=[],I;const N=a.state.value[t];!e&&!N&&(a.state.value[t]={}),Yt({});let M;function V(re){let te;F=T=!1,typeof re=="function"?(re(a.state.value[t]),te={type:Pd.patchFunction,storeId:t,events:I}):(m_(a.state.value[t],re),te={type:Pd.patchObject,payload:re,storeId:t,events:I});const ae=M=Symbol();vo().then(()=>{M===ae&&(F=!0)}),T=!0,zf(A,te,a.state.value[t])}const U=e?function(){const{state:te}=s,ae=te?te():{};this.$patch(ve=>{Ll(ve,ae)})}:eE;function G(){p.stop(),A=[],k=[],a._s.delete(t)}function ne(re,te){return function(){p2(a);const ae=Array.from(arguments),ve=[],Ae=[];function De(We){ve.push(We)}function ge(We){Ae.push(We)}zf(k,{args:ae,name:re,store:H,after:De,onError:ge});let Ne;try{Ne=te.apply(this&&this.$id===t?this:H,ae)}catch(We){throw zf(Ae,We),We}return Ne instanceof Promise?Ne.then(We=>(zf(ve,We),We)).catch(We=>(zf(Ae,We),Promise.reject(We))):(zf(ve,Ne),Ne)}}const z={_p:a,$id:t,$onAction:dD.bind(null,k),$patch:V,$reset:U,$subscribe(re,te={}){const ae=dD(A,re,te.detached,()=>ve()),ve=p.run(()=>bn(()=>a.state.value[t],Ae=>{(te.flush==="sync"?T:F)&&re({storeId:t,type:Pd.direct,events:I},Ae)},Ll({},D,te)));return ae},$dispose:G},H=Jl(z);a._s.set(t,H);const Z=a._a&&a._a.runWithContext||$A,ee=a._e.run(()=>(p=qg(),Z(()=>p.run(i))));for(const re in ee){const te=ee[re];if(rn(te)&&!jA(te)||Qo(te))e||(N&&zA(te)&&(rn(te)?te.value=N[re]:m_(te,N[re])),a.state.value[t][re]=te);else if(typeof te=="function"){const ae=ne(re,te);ee[re]=ae,_.actions[re]=te}}return Ll(H,ee),Ll($r(H),ee),Object.defineProperty(H,"$state",{get:()=>a.state.value[t],set:re=>{V(te=>{Ll(te,re)})}}),a._p.forEach(re=>{Ll(H,p.run(()=>re({store:H,app:a._a,pinia:a,options:_})))}),N&&e&&s.hydrate&&s.hydrate(H.$state,N),F=!0,T=!0,H}function OI(t,i,s){let a,r;const e=typeof i=="function";typeof t=="string"?(a=t,r=e?s:i):(r=t,a=t.id);function p(_,D){const F=tF();return _=_||(F?is(ZF,null):null),_&&p2(_),_=JF,_._s.has(a)||(e?tE(a,i,r,_):VA(a,r,_)),_._s.get(a)}return p.$id=a,p}const GA=({isClient:t,initialState:i,app:s})=>{const a=HA();s.use(a),t?a.state.value=i.pinia||{}:i.pinia=a.state.value},YA=Object.freeze(Object.defineProperty({__proto__:null,install:GA},Symbol.toStringTag,{value:"Module"})),KA=({isClient:t,router:i})=>{t&&i.isReady().then(async()=>{const{registerSW:s}=await bs(()=>import("./virtual_pwa-register-41acaeb8.js"),[],import.meta.url);s({immediate:!0})}).catch(()=>{})},qA=Object.freeze(Object.defineProperty({__proto__:null,install:KA},Symbol.toStringTag,{value:"Module"}));var rE={exports:{}};const QA=QF(fA);(function(t,i){(function(a,r){t.exports=r(QA)})(Li,s=>(()=>{var a={661:(_,D)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.default=(F,T)=>{const A=F.__vccOpts||F;for(const[k,I]of T)A[k]=I;return A}},976:_=>{_.exports=s}},r={};function e(_){var D=r[_];if(D!==void 0)return D.exports;var F=r[_]={exports:{}};return a[_](F,F.exports,e),F.exports}e.d=(_,D)=>{for(var F in D)e.o(D,F)&&!e.o(_,F)&&Object.defineProperty(_,F,{enumerable:!0,get:D[F]})},e.o=(_,D)=>Object.prototype.hasOwnProperty.call(_,D),e.r=_=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(_,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(_,"__esModule",{value:!0})};var p={};return(()=>{e.r(p),e.d(p,{ToastComponent:()=>H,ToastPlugin:()=>ee,ToastPositions:()=>N,default:()=>re,useToast:()=>Z});var _=e(976);const D=(0,_.createElementVNode)("div",{class:"v-toast__icon"},null,-1),F=["innerHTML"];function T(te,ae,ve,Ae,De,ge){return(0,_.openBlock)(),(0,_.createBlock)(_.Transition,{"enter-active-class":te.transition.enter,"leave-active-class":te.transition.leave},{default:(0,_.withCtx)(()=>[(0,_.withDirectives)((0,_.createElementVNode)("div",{ref:"root",role:"alert",class:(0,_.normalizeClass)(["v-toast__item",[`v-toast__item--${te.type}`,`v-toast__item--${te.position}`]]),onMouseover:ae[0]||(ae[0]=Ne=>te.toggleTimer(!0)),onMouseleave:ae[1]||(ae[1]=Ne=>te.toggleTimer(!1)),onClick:ae[2]||(ae[2]=function(){return te.whenClicked&&te.whenClicked(...arguments)})},[D,(0,_.createElementVNode)("p",{class:"v-toast__text",innerHTML:te.message},null,8,F)],34),[[_.vShow,te.isActive]])]),_:1},8,["enter-active-class","leave-active-class"])}function A(te){var ae;typeof te.remove<"u"?te.remove():(ae=te.parentNode)==null||ae.removeChild(te)}function k(te,ae,ve){let Ae=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const De=(0,_.h)(te,ae,Ae),ge=document.createElement("div");return ge.classList.add("v-toast--pending"),ve.appendChild(ge),(0,_.render)(De,ge),De.component}class I{constructor(ae,ve){this.startedAt=Date.now(),this.callback=ae,this.delay=ve,this.timer=setTimeout(ae,ve)}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 N=Object.freeze({TOP_RIGHT:"top-right",TOP:"top",TOP_LEFT:"top-left",BOTTOM_RIGHT:"bottom-right",BOTTOM:"bottom",BOTTOM_LEFT:"bottom-left"});function M(te){return{all:te=te||new Map,on:function(ae,ve){var Ae=te.get(ae);Ae?Ae.push(ve):te.set(ae,[ve])},off:function(ae,ve){var Ae=te.get(ae);Ae&&(ve?Ae.splice(Ae.indexOf(ve)>>>0,1):te.set(ae,[]))},emit:function(ae,ve){var Ae=te.get(ae);Ae&&Ae.slice().map(function(De){De(ve)}),(Ae=te.get("*"))&&Ae.slice().map(function(De){De(ae,ve)})}}}const U=M(),G=(0,_.defineComponent)({name:"Toast",props:{message:{type:String,required:!0},type:{type:String,default:"success"},position:{type:String,default:N.BOTTOM_RIGHT,validator(te){return Object.values(N).includes(te)}},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(),U.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 te=document.body;te.appendChild(this.parentTop),te.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 te=this.$refs.root;(0,_.render)(null,te),A(te)},150)},showNotice(){if(this.shouldQueue()){this.queueTimer=setTimeout(this.showNotice,250);return}const te=this.$refs.root.parentElement;this.correctParent.insertAdjacentElement("afterbegin",this.$refs.root),A(te),this.isActive=!0,this.duration&&(this.timer=new I(this.dismiss,this.duration))},whenClicked(){this.dismissible&&(this.onClick.apply(null,arguments),this.dismiss())},toggleTimer(te){!this.pauseOnHover||!this.timer||(te?this.timer.pause():this.timer.resume())}},computed:{correctParent(){switch(this.position){case N.TOP:case N.TOP_RIGHT:case N.TOP_LEFT:return this.parentTop;case N.BOTTOM:case N.BOTTOM_RIGHT:case N.BOTTOM_LEFT:return this.parentBottom}},transition(){switch(this.position){case N.TOP:case N.TOP_RIGHT:case N.TOP_LEFT:return{enter:"v-toast--fade-in-down",leave:"v-toast--fade-out"};case N.BOTTOM:case N.BOTTOM_RIGHT:case N.BOTTOM_LEFT:return{enter:"v-toast--fade-in-up",leave:"v-toast--fade-out"}}}},beforeUnmount(){U.off("toast-clear",this.dismiss)}});var ne=e(661);const H=(0,ne.default)(G,[["render",T]]),Z=function(){let te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return{open(ae){let ve=null;typeof ae=="string"&&(ve=ae);const De=Object.assign({},{message:ve},te,ae);return{dismiss:k(H,De,document.body).ctx.dismiss}},clear(){U.emit("toast-clear")},success(ae){let ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.open(Object.assign({},{message:ae,type:"success"},ve))},error(ae){let ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.open(Object.assign({},{message:ae,type:"error"},ve))},info(ae){let ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.open(Object.assign({},{message:ae,type:"info"},ve))},warning(ae){let ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.open(Object.assign({},{message:ae,type:"warning"},ve))},default(ae){let ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.open(Object.assign({},{message:ae,type:"default"},ve))}}},ee={install:function(te){let ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ve=Z(ae);te.config.globalProperties.$toast=ve,te.provide("$toast",ve)}},re=ee})(),p})())})(rE);var XA=rE.exports;const JA=js(XA);const ZA=({app:t})=>{t.use(JA,{position:"bottom-right"})},e8=Object.freeze(Object.defineProperty({__proto__:null,install:ZA},Symbol.toStringTag,{value:"Module"}));/*!
26
+ */let JF;const p2=t=>JF=t,ZF=Symbol();function p_(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var Pd;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(Pd||(Pd={}));function HA(){const t=qg(!0),i=t.run(()=>Yt({}));let s=[],a=[];const r=f1({install(e){p2(r),r._a=e,e.provide(ZF,r),e.config.globalProperties.$pinia=r,a.forEach(p=>s.push(p)),a=[]},use(e){return!this._a&&!UA?a.push(e):s.push(e),this},_p:s,_a:null,_e:t,_s:new Map,state:i});return r}const eE=()=>{};function dD(t,i,s,a=eE){t.push(i);const r=()=>{const e=t.indexOf(i);e>-1&&(t.splice(e,1),a())};return!s&&Qg()&&V_(r),r}function zf(t,...i){t.slice().forEach(s=>{s(...i)})}const $A=t=>t();function m_(t,i){t instanceof Map&&i instanceof Map&&i.forEach((s,a)=>t.set(a,s)),t instanceof Set&&i instanceof Set&&i.forEach(t.add,t);for(const s in i){if(!i.hasOwnProperty(s))continue;const a=i[s],r=t[s];p_(r)&&p_(a)&&t.hasOwnProperty(s)&&!rn(a)&&!Qo(a)?t[s]=m_(r,a):t[s]=a}return t}const WA=Symbol();function zA(t){return!p_(t)||!t.hasOwnProperty(WA)}const{assign:Ll}=Object;function jA(t){return!!(rn(t)&&t.effect)}function VA(t,i,s,a){const{state:r,actions:e,getters:p}=i,_=s.state.value[t];let D;function F(){_||(s.state.value[t]=r?r():{});const T=Cw(s.state.value[t]);return Ll(T,e,Object.keys(p||{}).reduce((A,k)=>(A[k]=f1(Hr(()=>{p2(s);const I=s._s.get(t);return p[k].call(I,I)})),A),{}))}return D=tE(t,F,i,s,a,!0),D}function tE(t,i,s={},a,r,e){let p;const _=Ll({actions:{}},s),D={deep:!0};let F,T,A=[],k=[],I;const N=a.state.value[t];!e&&!N&&(a.state.value[t]={}),Yt({});let M;function V(re){let te;F=T=!1,typeof re=="function"?(re(a.state.value[t]),te={type:Pd.patchFunction,storeId:t,events:I}):(m_(a.state.value[t],re),te={type:Pd.patchObject,payload:re,storeId:t,events:I});const ae=M=Symbol();vo().then(()=>{M===ae&&(F=!0)}),T=!0,zf(A,te,a.state.value[t])}const U=e?function(){const{state:te}=s,ae=te?te():{};this.$patch(ve=>{Ll(ve,ae)})}:eE;function G(){p.stop(),A=[],k=[],a._s.delete(t)}function ne(re,te){return function(){p2(a);const ae=Array.from(arguments),ve=[],Ae=[];function De(We){ve.push(We)}function ge(We){Ae.push(We)}zf(k,{args:ae,name:re,store:H,after:De,onError:ge});let Ne;try{Ne=te.apply(this&&this.$id===t?this:H,ae)}catch(We){throw zf(Ae,We),We}return Ne instanceof Promise?Ne.then(We=>(zf(ve,We),We)).catch(We=>(zf(Ae,We),Promise.reject(We))):(zf(ve,Ne),Ne)}}const z={_p:a,$id:t,$onAction:dD.bind(null,k),$patch:V,$reset:U,$subscribe(re,te={}){const ae=dD(A,re,te.detached,()=>ve()),ve=p.run(()=>bn(()=>a.state.value[t],Ae=>{(te.flush==="sync"?T:F)&&re({storeId:t,type:Pd.direct,events:I},Ae)},Ll({},D,te)));return ae},$dispose:G},H=Jl(z);a._s.set(t,H);const Z=a._a&&a._a.runWithContext||$A,ee=a._e.run(()=>(p=qg(),Z(()=>p.run(i))));for(const re in ee){const te=ee[re];if(rn(te)&&!jA(te)||Qo(te))e||(N&&zA(te)&&(rn(te)?te.value=N[re]:m_(te,N[re])),a.state.value[t][re]=te);else if(typeof te=="function"){const ae=ne(re,te);ee[re]=ae,_.actions[re]=te}}return Ll(H,ee),Ll($r(H),ee),Object.defineProperty(H,"$state",{get:()=>a.state.value[t],set:re=>{V(te=>{Ll(te,re)})}}),a._p.forEach(re=>{Ll(H,p.run(()=>re({store:H,app:a._a,pinia:a,options:_})))}),N&&e&&s.hydrate&&s.hydrate(H.$state,N),F=!0,T=!0,H}function OI(t,i,s){let a,r;const e=typeof i=="function";typeof t=="string"?(a=t,r=e?s:i):(r=t,a=t.id);function p(_,D){const F=tF();return _=_||(F?is(ZF,null):null),_&&p2(_),_=JF,_._s.has(a)||(e?tE(a,i,r,_):VA(a,r,_)),_._s.get(a)}return p.$id=a,p}const GA=({isClient:t,initialState:i,app:s})=>{const a=HA();s.use(a),t?a.state.value=i.pinia||{}:i.pinia=a.state.value},YA=Object.freeze(Object.defineProperty({__proto__:null,install:GA},Symbol.toStringTag,{value:"Module"})),KA=({isClient:t,router:i})=>{t&&i.isReady().then(async()=>{const{registerSW:s}=await bs(()=>import("./virtual_pwa-register-f8259b1b.js"),[],import.meta.url);s({immediate:!0})}).catch(()=>{})},qA=Object.freeze(Object.defineProperty({__proto__:null,install:KA},Symbol.toStringTag,{value:"Module"}));var rE={exports:{}};const QA=QF(fA);(function(t,i){(function(a,r){t.exports=r(QA)})(Li,s=>(()=>{var a={661:(_,D)=>{Object.defineProperty(D,"__esModule",{value:!0}),D.default=(F,T)=>{const A=F.__vccOpts||F;for(const[k,I]of T)A[k]=I;return A}},976:_=>{_.exports=s}},r={};function e(_){var D=r[_];if(D!==void 0)return D.exports;var F=r[_]={exports:{}};return a[_](F,F.exports,e),F.exports}e.d=(_,D)=>{for(var F in D)e.o(D,F)&&!e.o(_,F)&&Object.defineProperty(_,F,{enumerable:!0,get:D[F]})},e.o=(_,D)=>Object.prototype.hasOwnProperty.call(_,D),e.r=_=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(_,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(_,"__esModule",{value:!0})};var p={};return(()=>{e.r(p),e.d(p,{ToastComponent:()=>H,ToastPlugin:()=>ee,ToastPositions:()=>N,default:()=>re,useToast:()=>Z});var _=e(976);const D=(0,_.createElementVNode)("div",{class:"v-toast__icon"},null,-1),F=["innerHTML"];function T(te,ae,ve,Ae,De,ge){return(0,_.openBlock)(),(0,_.createBlock)(_.Transition,{"enter-active-class":te.transition.enter,"leave-active-class":te.transition.leave},{default:(0,_.withCtx)(()=>[(0,_.withDirectives)((0,_.createElementVNode)("div",{ref:"root",role:"alert",class:(0,_.normalizeClass)(["v-toast__item",[`v-toast__item--${te.type}`,`v-toast__item--${te.position}`]]),onMouseover:ae[0]||(ae[0]=Ne=>te.toggleTimer(!0)),onMouseleave:ae[1]||(ae[1]=Ne=>te.toggleTimer(!1)),onClick:ae[2]||(ae[2]=function(){return te.whenClicked&&te.whenClicked(...arguments)})},[D,(0,_.createElementVNode)("p",{class:"v-toast__text",innerHTML:te.message},null,8,F)],34),[[_.vShow,te.isActive]])]),_:1},8,["enter-active-class","leave-active-class"])}function A(te){var ae;typeof te.remove<"u"?te.remove():(ae=te.parentNode)==null||ae.removeChild(te)}function k(te,ae,ve){let Ae=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const De=(0,_.h)(te,ae,Ae),ge=document.createElement("div");return ge.classList.add("v-toast--pending"),ve.appendChild(ge),(0,_.render)(De,ge),De.component}class I{constructor(ae,ve){this.startedAt=Date.now(),this.callback=ae,this.delay=ve,this.timer=setTimeout(ae,ve)}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 N=Object.freeze({TOP_RIGHT:"top-right",TOP:"top",TOP_LEFT:"top-left",BOTTOM_RIGHT:"bottom-right",BOTTOM:"bottom",BOTTOM_LEFT:"bottom-left"});function M(te){return{all:te=te||new Map,on:function(ae,ve){var Ae=te.get(ae);Ae?Ae.push(ve):te.set(ae,[ve])},off:function(ae,ve){var Ae=te.get(ae);Ae&&(ve?Ae.splice(Ae.indexOf(ve)>>>0,1):te.set(ae,[]))},emit:function(ae,ve){var Ae=te.get(ae);Ae&&Ae.slice().map(function(De){De(ve)}),(Ae=te.get("*"))&&Ae.slice().map(function(De){De(ae,ve)})}}}const U=M(),G=(0,_.defineComponent)({name:"Toast",props:{message:{type:String,required:!0},type:{type:String,default:"success"},position:{type:String,default:N.BOTTOM_RIGHT,validator(te){return Object.values(N).includes(te)}},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(),U.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 te=document.body;te.appendChild(this.parentTop),te.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 te=this.$refs.root;(0,_.render)(null,te),A(te)},150)},showNotice(){if(this.shouldQueue()){this.queueTimer=setTimeout(this.showNotice,250);return}const te=this.$refs.root.parentElement;this.correctParent.insertAdjacentElement("afterbegin",this.$refs.root),A(te),this.isActive=!0,this.duration&&(this.timer=new I(this.dismiss,this.duration))},whenClicked(){this.dismissible&&(this.onClick.apply(null,arguments),this.dismiss())},toggleTimer(te){!this.pauseOnHover||!this.timer||(te?this.timer.pause():this.timer.resume())}},computed:{correctParent(){switch(this.position){case N.TOP:case N.TOP_RIGHT:case N.TOP_LEFT:return this.parentTop;case N.BOTTOM:case N.BOTTOM_RIGHT:case N.BOTTOM_LEFT:return this.parentBottom}},transition(){switch(this.position){case N.TOP:case N.TOP_RIGHT:case N.TOP_LEFT:return{enter:"v-toast--fade-in-down",leave:"v-toast--fade-out"};case N.BOTTOM:case N.BOTTOM_RIGHT:case N.BOTTOM_LEFT:return{enter:"v-toast--fade-in-up",leave:"v-toast--fade-out"}}}},beforeUnmount(){U.off("toast-clear",this.dismiss)}});var ne=e(661);const H=(0,ne.default)(G,[["render",T]]),Z=function(){let te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return{open(ae){let ve=null;typeof ae=="string"&&(ve=ae);const De=Object.assign({},{message:ve},te,ae);return{dismiss:k(H,De,document.body).ctx.dismiss}},clear(){U.emit("toast-clear")},success(ae){let ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.open(Object.assign({},{message:ae,type:"success"},ve))},error(ae){let ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.open(Object.assign({},{message:ae,type:"error"},ve))},info(ae){let ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.open(Object.assign({},{message:ae,type:"info"},ve))},warning(ae){let ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.open(Object.assign({},{message:ae,type:"warning"},ve))},default(ae){let ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.open(Object.assign({},{message:ae,type:"default"},ve))}}},ee={install:function(te){let ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ve=Z(ae);te.config.globalProperties.$toast=ve,te.provide("$toast",ve)}},re=ee})(),p})())})(rE);var XA=rE.exports;const JA=js(XA);const ZA=({app:t})=>{t.use(JA,{position:"bottom-right"})},e8=Object.freeze(Object.defineProperty({__proto__:null,install:ZA},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 Gf=typeof window<"u";function t8(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const un=Object.assign;function Tb(t,i){const s={};for(const a in i){const r=i[a];s[a]=Na(r)?r.map(t):t(r)}return s}const Id=()=>{},Na=Array.isArray,r8=/\/$/,n8=t=>t.replace(r8,"");function Ab(t,i,s="/"){let a,r={},e="",p="";const _=i.indexOf("#");let D=i.indexOf("?");return _<D&&_>=0&&(D=-1),D>-1&&(a=i.slice(0,D),e=i.slice(D+1,_>-1?_:i.length),r=t(e)),_>-1&&(a=a||i.slice(0,_),p=i.slice(_,i.length)),a=o8(a??i,s),{fullPath:a+(e&&"?")+e+p,path:a,query:r,hash:p}}function i8(t,i){const s=i.query?t(i.query):"";return i.path+(s&&"?")+s+(i.hash||"")}function pD(t,i){return!i||!t.toLowerCase().startsWith(i.toLowerCase())?t:t.slice(i.length)||"/"}function s8(t,i,s){const a=i.matched.length-1,r=s.matched.length-1;return a>-1&&a===r&&c0(i.matched[a],s.matched[r])&&nE(i.params,s.params)&&t(i.query)===t(s.query)&&i.hash===s.hash}function c0(t,i){return(t.aliasOf||t)===(i.aliasOf||i)}function nE(t,i){if(Object.keys(t).length!==Object.keys(i).length)return!1;for(const s in t)if(!a8(t[s],i[s]))return!1;return!0}function a8(t,i){return Na(t)?mD(t,i):Na(i)?mD(i,t):t===i}function mD(t,i){return Na(i)?t.length===i.length&&t.every((s,a)=>s===i[a]):t.length===1&&t[0]===i}function o8(t,i){if(t.startsWith("/"))return t;if(!t)return i;const s=i.split("/"),a=t.split("/"),r=a[a.length-1];(r===".."||r===".")&&a.push("");let e=s.length-1,p,_;for(p=0;p<a.length;p++)if(_=a[p],_!==".")if(_==="..")e>1&&e--;else break;return s.slice(0,e).join("/")+"/"+a.slice(p-(p===a.length?1:0)).join("/")}var u0;(function(t){t.pop="pop",t.push="push"})(u0||(u0={}));var _u;(function(t){t.back="back",t.forward="forward",t.unknown=""})(_u||(_u={}));const Sb="";function iE(t){if(!t)if(Gf){const i=document.querySelector("base");t=i&&i.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),n8(t)}const l8=/^[^#]+#/;function sE(t,i){return t.replace(l8,"#")+i}function c8(t,i){const s=document.documentElement.getBoundingClientRect(),a=t.getBoundingClientRect();return{behavior:i.behavior,left:a.left-s.left-(i.left||0),top:a.top-s.top-(i.top||0)}}const m2=()=>({left:window.pageXOffset,top:window.pageYOffset});function u8(t){let i;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;i=c8(r,t)}else i=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(i):window.scrollTo(i.left!=null?i.left:window.pageXOffset,i.top!=null?i.top:window.pageYOffset)}function gD(t,i){return(history.state?history.state.position-i:-1)+t}const g_=new Map;function f8(t,i){g_.set(t,i)}function h8(t){const i=g_.get(t);return g_.delete(t),i}let d8=()=>location.protocol+"//"+location.host;function aE(t,i){const{pathname:s,search:a,hash:r}=i,e=t.indexOf("#");if(e>-1){let _=r.includes(t.slice(e))?t.slice(e).length:1,D=r.slice(_);return D[0]!=="/"&&(D="/"+D),pD(D,"")}return pD(s,t)+a+r}function p8(t,i,s,a){let r=[],e=[],p=null;const _=({state:k})=>{const I=aE(t,location),N=s.value,M=i.value;let V=0;if(k){if(s.value=I,i.value=k,p&&p===N){p=null;return}V=M?k.position-M.position:0}else a(I);r.forEach(U=>{U(s.value,N,{delta:V,type:u0.pop,direction:V?V>0?_u.forward:_u.back:_u.unknown})})};function D(){p=s.value}function F(k){r.push(k);const I=()=>{const N=r.indexOf(k);N>-1&&r.splice(N,1)};return e.push(I),I}function T(){const{history:k}=window;k.state&&k.replaceState(un({},k.state,{scroll:m2()}),"")}function A(){for(const k of e)k();e=[],window.removeEventListener("popstate",_),window.removeEventListener("beforeunload",T)}return window.addEventListener("popstate",_),window.addEventListener("beforeunload",T,{passive:!0}),{pauseListeners:D,listen:F,destroy:A}}function vD(t,i,s,a=!1,r=!1){return{back:t,current:i,forward:s,replaced:a,position:window.history.length,scroll:r?m2():null}}function m8(t){const{history:i,location:s}=window,a={value:aE(t,s)},r={value:i.state};r.value||e(a.value,{back:null,current:a.value,forward:null,position:i.length-1,replaced:!0,scroll:null},!0);function e(D,F,T){const A=t.indexOf("#"),k=A>-1?(s.host&&document.querySelector("base")?t:t.slice(A))+D:d8()+t+D;try{i[T?"replaceState":"pushState"](F,"",k),r.value=F}catch(I){console.error(I),s[T?"replace":"assign"](k)}}function p(D,F){const T=un({},i.state,vD(r.value.back,D,r.value.forward,!0),F,{position:r.value.position});e(D,T,!0),a.value=D}function _(D,F){const T=un({},r.value,i.state,{forward:D,scroll:m2()});e(T.current,T,!0);const A=un({},vD(a.value,D,null),{position:T.position+1},F);e(D,A,!1),a.value=D}return{location:a,state:r,push:_,replace:p}}function g8(t){t=iE(t);const i=m8(t),s=p8(t,i.state,i.location,i.replace);function a(e,p=!0){p||s.pauseListeners(),history.go(e)}const r=un({location:"",base:t,go:a,createHref:sE.bind(null,t)},i,s);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>i.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>i.state.value}),r}function v8(t=""){let i=[],s=[Sb],a=0;t=iE(t);function r(_){a++,a===s.length||s.splice(a),s.push(_)}function e(_,D,{direction:F,delta:T}){const A={direction:F,delta:T,type:u0.pop};for(const k of i)k(_,D,A)}const p={location:Sb,state:{},base:t,createHref:sE.bind(null,t),replace(_){s.splice(a--,1),r(_)},push(_,D){r(_)},listen(_){return i.push(_),()=>{const D=i.indexOf(_);D>-1&&i.splice(D,1)}},destroy(){i=[],s=[Sb],a=0},go(_,D=!0){const F=this.location,T=_<0?_u.back:_u.forward;a=Math.max(0,Math.min(a+_,s.length-1)),D&&e(this.location,F,{direction:T,delta:_})}};return Object.defineProperty(p,"location",{enumerable:!0,get:()=>s[a]}),p}function b8(t){return typeof t=="string"||t&&typeof t=="object"}function oE(t){return typeof t=="string"||typeof t=="symbol"}const Pl={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},lE=Symbol("");var bD;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(bD||(bD={}));function f0(t,i){return un(new Error,{type:t,[lE]:!0},i)}function Vo(t,i){return t instanceof Error&&lE in t&&(i==null||!!(t.type&i))}const _D="[^/]+?",_8={sensitive:!1,strict:!1,start:!0,end:!0},y8=/[.+*?^${}()[\]/\\]/g;function D8(t,i){const s=un({},_8,i),a=[];let r=s.start?"^":"";const e=[];for(const F of t){const T=F.length?[]:[90];s.strict&&!F.length&&(r+="/");for(let A=0;A<F.length;A++){const k=F[A];let I=40+(s.sensitive?.25:0);if(k.type===0)A||(r+="/"),r+=k.value.replace(y8,"\\$&"),I+=40;else if(k.type===1){const{value:N,repeatable:M,optional:V,regexp:U}=k;e.push({name:N,repeatable:M,optional:V});const G=U||_D;if(G!==_D){I+=10;try{new RegExp(`(${G})`)}catch(z){throw new Error(`Invalid custom RegExp for param "${N}" (${G}): `+z.message)}}let ne=M?`((?:${G})(?:/(?:${G}))*)`:`(${G})`;A||(ne=V&&F.length<2?`(?:/${ne})`:"/"+ne),V&&(ne+="?"),r+=ne,I+=20,V&&(I+=-8),M&&(I+=-20),G===".*"&&(I+=-50)}T.push(I)}a.push(T)}if(s.strict&&s.end){const F=a.length-1;a[F][a[F].length-1]+=.7000000000000001}s.strict||(r+="/?"),s.end?r+="$":s.strict&&(r+="(?:/|$)");const p=new RegExp(r,s.sensitive?"":"i");function _(F){const T=F.match(p),A={};if(!T)return null;for(let k=1;k<T.length;k++){const I=T[k]||"",N=e[k-1];A[N.name]=I&&N.repeatable?I.split("/"):I}return A}function D(F){let T="",A=!1;for(const k of t){(!A||!T.endsWith("/"))&&(T+="/"),A=!1;for(const I of k)if(I.type===0)T+=I.value;else if(I.type===1){const{value:N,repeatable:M,optional:V}=I,U=N in F?F[N]:"";if(Na(U)&&!M)throw new Error(`Provided param "${N}" is an array but it is not repeatable (* or + modifiers)`);const G=Na(U)?U.join("/"):U;if(!G)if(V)k.length<2&&(T.endsWith("/")?T=T.slice(0,-1):A=!0);else throw new Error(`Missing required param "${N}"`);T+=G}}return T||"/"}return{re:p,score:a,keys:e,parse:_,stringify:D}}function w8(t,i){let s=0;for(;s<t.length&&s<i.length;){const a=i[s]-t[s];if(a)return a;s++}return t.length<i.length?t.length===1&&t[0]===40+40?-1:1:t.length>i.length?i.length===1&&i[0]===40+40?1:-1:0}function F8(t,i){let s=0;const a=t.score,r=i.score;for(;s<a.length&&s<r.length;){const e=w8(a[s],r[s]);if(e)return e;s++}if(Math.abs(r.length-a.length)===1){if(yD(a))return 1;if(yD(r))return-1}return r.length-a.length}function yD(t){const i=t[t.length-1];return t.length>0&&i[i.length-1]<0}const E8={type:0,value:""},x8=/[a-zA-Z0-9_]/;function C8(t){if(!t)return[[]];if(t==="/")return[[E8]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function i(I){throw new Error(`ERR (${s})/"${F}": ${I}`)}let s=0,a=s;const r=[];let e;function p(){e&&r.push(e),e=[]}let _=0,D,F="",T="";function A(){F&&(s===0?e.push({type:0,value:F}):s===1||s===2||s===3?(e.length>1&&(D==="*"||D==="+")&&i(`A repeatable param (${F}) must be alone in its segment. eg: '/:ids+.`),e.push({type:1,value:F,regexp:T,repeatable:D==="*"||D==="+",optional:D==="*"||D==="?"})):i("Invalid state to consume buffer"),F="")}function k(){F+=D}for(;_<t.length;){if(D=t[_++],D==="\\"&&s!==2){a=s,s=4;continue}switch(s){case 0:D==="/"?(F&&A(),p()):D===":"?(A(),s=1):k();break;case 4:k(),s=a;break;case 1:D==="("?s=2:x8.test(D)?k():(A(),s=0,D!=="*"&&D!=="?"&&D!=="+"&&_--);break;case 2:D===")"?T[T.length-1]=="\\"?T=T.slice(0,-1)+D:s=3:T+=D;break;case 3:A(),s=0,D!=="*"&&D!=="?"&&D!=="+"&&_--,T="";break;default:i("Unknown state");break}}return s===2&&i(`Unfinished custom RegExp for param "${F}"`),A(),p(),r}function T8(t,i,s){const a=D8(C8(t.path),s),r=un(a,{record:t,parent:i,children:[],alias:[]});return i&&!r.record.aliasOf==!i.record.aliasOf&&i.children.push(r),r}function A8(t,i){const s=[],a=new Map;i=FD({strict:!1,end:!0,sensitive:!1},i);function r(T){return a.get(T)}function e(T,A,k){const I=!k,N=S8(T);N.aliasOf=k&&k.record;const M=FD(i,T),V=[N];if("alias"in T){const ne=typeof T.alias=="string"?[T.alias]:T.alias;for(const z of ne)V.push(un({},N,{components:k?k.record.components:N.components,path:z,aliasOf:k?k.record:N}))}let U,G;for(const ne of V){const{path:z}=ne;if(A&&z[0]!=="/"){const H=A.record.path,Z=H[H.length-1]==="/"?"":"/";ne.path=A.record.path+(z&&Z+z)}if(U=T8(ne,A,M),k?k.alias.push(U):(G=G||U,G!==U&&G.alias.push(U),I&&T.name&&!wD(U)&&p(T.name)),N.children){const H=N.children;for(let Z=0;Z<H.length;Z++)e(H[Z],U,k&&k.children[Z])}k=k||U,(U.record.components&&Object.keys(U.record.components).length||U.record.name||U.record.redirect)&&D(U)}return G?()=>{p(G)}:Id}function p(T){if(oE(T)){const A=a.get(T);A&&(a.delete(T),s.splice(s.indexOf(A),1),A.children.forEach(p),A.alias.forEach(p))}else{const A=s.indexOf(T);A>-1&&(s.splice(A,1),T.record.name&&a.delete(T.record.name),T.children.forEach(p),T.alias.forEach(p))}}function _(){return s}function D(T){let A=0;for(;A<s.length&&F8(T,s[A])>=0&&(T.record.path!==s[A].record.path||!cE(T,s[A]));)A++;s.splice(A,0,T),T.record.name&&!wD(T)&&a.set(T.record.name,T)}function F(T,A){let k,I={},N,M;if("name"in T&&T.name){if(k=a.get(T.name),!k)throw f0(1,{location:T});M=k.record.name,I=un(DD(A.params,k.keys.filter(G=>!G.optional).map(G=>G.name)),T.params&&DD(T.params,k.keys.map(G=>G.name))),N=k.stringify(I)}else if("path"in T)N=T.path,k=s.find(G=>G.re.test(N)),k&&(I=k.parse(N),M=k.record.name);else{if(k=A.name?a.get(A.name):s.find(G=>G.re.test(A.path)),!k)throw f0(1,{location:T,currentLocation:A});M=k.record.name,I=un({},A.params,T.params),N=k.stringify(I)}const V=[];let U=k;for(;U;)V.unshift(U.record),U=U.parent;return{name:M,path:N,params:I,matched:V,meta:k8(V)}}return t.forEach(T=>e(T)),{addRoute:e,resolve:F,removeRoute:p,getRoutes:_,getRecordMatcher:r}}function DD(t,i){const s={};for(const a of i)a in t&&(s[a]=t[a]);return s}function S8(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:O8(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 O8(t){const i={},s=t.props||!1;if("component"in t)i.default=s;else for(const a in t.components)i[a]=typeof s=="object"?s[a]:s;return i}function wD(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function k8(t){return t.reduce((i,s)=>un(i,s.meta),{})}function FD(t,i){const s={};for(const a in t)s[a]=a in i?i[a]:t[a];return s}function cE(t,i){return i.children.some(s=>s===t||cE(t,s))}const uE=/#/g,R8=/&/g,P8=/\//g,I8=/=/g,N8=/\?/g,fE=/\+/g,L8=/%5B/g,M8=/%5D/g,hE=/%5E/g,B8=/%60/g,dE=/%7B/g,U8=/%7C/g,pE=/%7D/g,H8=/%20/g;function E4(t){return encodeURI(""+t).replace(U8,"|").replace(L8,"[").replace(M8,"]")}function $8(t){return E4(t).replace(dE,"{").replace(pE,"}").replace(hE,"^")}function v_(t){return E4(t).replace(fE,"%2B").replace(H8,"+").replace(uE,"%23").replace(R8,"%26").replace(B8,"`").replace(dE,"{").replace(pE,"}").replace(hE,"^")}function W8(t){return v_(t).replace(I8,"%3D")}function z8(t){return E4(t).replace(uE,"%23").replace(N8,"%3F")}function j8(t){return t==null?"":z8(t).replace(P8,"%2F")}function wg(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function V8(t){const i={};if(t===""||t==="?")return i;const a=(t[0]==="?"?t.slice(1):t).split("&");for(let r=0;r<a.length;++r){const e=a[r].replace(fE," "),p=e.indexOf("="),_=wg(p<0?e:e.slice(0,p)),D=p<0?null:wg(e.slice(p+1));if(_ in i){let F=i[_];Na(F)||(F=i[_]=[F]),F.push(D)}else i[_]=D}return i}function ED(t){let i="";for(let s in t){const a=t[s];if(s=W8(s),a==null){a!==void 0&&(i+=(i.length?"&":"")+s);continue}(Na(a)?a.map(e=>e&&v_(e)):[a&&v_(a)]).forEach(e=>{e!==void 0&&(i+=(i.length?"&":"")+s,e!=null&&(i+="="+e))})}return i}function G8(t){const i={};for(const s in t){const a=t[s];a!==void 0&&(i[s]=Na(a)?a.map(r=>r==null?null:""+r):a==null?a:""+a)}return i}const Y8=Symbol(""),xD=Symbol(""),g2=Symbol(""),x4=Symbol(""),b_=Symbol("");function bd(){let t=[];function i(a){return t.push(a),()=>{const r=t.indexOf(a);r>-1&&t.splice(r,1)}}function s(){t=[]}return{add:i,list:()=>t.slice(),reset:s}}function Hl(t,i,s,a,r){const e=a&&(a.enterCallbacks[r]=a.enterCallbacks[r]||[]);return()=>new Promise((p,_)=>{const D=A=>{A===!1?_(f0(4,{from:s,to:i})):A instanceof Error?_(A):b8(A)?_(f0(2,{from:i,to:A})):(e&&a.enterCallbacks[r]===e&&typeof A=="function"&&e.push(A),p())},F=t.call(a&&a.instances[r],i,s,D);let T=Promise.resolve(F);t.length<3&&(T=T.then(D)),T.catch(A=>_(A))})}function Ob(t,i,s,a){const r=[];for(const e of t)for(const p in e.components){let _=e.components[p];if(!(i!=="beforeRouteEnter"&&!e.instances[p]))if(K8(_)){const F=(_.__vccOpts||_)[i];F&&r.push(Hl(F,s,a,e,p))}else{let D=_();r.push(()=>D.then(F=>{if(!F)return Promise.reject(new Error(`Couldn't resolve component "${p}" at "${e.path}"`));const T=t8(F)?F.default:F;e.components[p]=T;const k=(T.__vccOpts||T)[i];return k&&Hl(k,s,a,e,p)()}))}}return r}function K8(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function CD(t){const i=is(g2),s=is(x4),a=Hr(()=>i.resolve(Qt(t.to))),r=Hr(()=>{const{matched:D}=a.value,{length:F}=D,T=D[F-1],A=s.matched;if(!T||!A.length)return-1;const k=A.findIndex(c0.bind(null,T));if(k>-1)return k;const I=TD(D[F-2]);return F>1&&TD(T)===I&&A[A.length-1].path!==I?A.findIndex(c0.bind(null,D[F-2])):k}),e=Hr(()=>r.value>-1&&J8(s.params,a.value.params)),p=Hr(()=>r.value>-1&&r.value===s.matched.length-1&&nE(s.params,a.value.params));function _(D={}){return X8(D)?i[Qt(t.replace)?"replace":"push"](Qt(t.to)).catch(Id):Promise.resolve()}return{route:a,href:Hr(()=>a.value.href),isActive:e,isExactActive:p,navigate:_}}const q8=mi({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:CD,setup(t,{slots:i}){const s=Jl(CD(t)),{options:a}=is(g2),r=Hr(()=>({[AD(t.activeClass,a.linkActiveClass,"router-link-active")]:s.isActive,[AD(t.exactActiveClass,a.linkExactActiveClass,"router-link-exact-active")]:s.isExactActive}));return()=>{const e=i.default&&i.default(s);return t.custom?e:Ou("a",{"aria-current":s.isExactActive?t.ariaCurrentValue:null,href:s.href,onClick:s.navigate,class:r.value},e)}}}),Q8=q8;function X8(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 i=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(i))return}return t.preventDefault&&t.preventDefault(),!0}}function J8(t,i){for(const s in i){const a=i[s],r=t[s];if(typeof a=="string"){if(a!==r)return!1}else if(!Na(r)||r.length!==a.length||a.some((e,p)=>e!==r[p]))return!1}return!0}function TD(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const AD=(t,i,s)=>t??i??s,Z8=mi({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:i,slots:s}){const a=is(b_),r=Hr(()=>t.route||a.value),e=is(xD,0),p=Hr(()=>{let F=Qt(e);const{matched:T}=r.value;let A;for(;(A=T[F])&&!A.components;)F++;return F}),_=Hr(()=>r.value.matched[p.value]);Ad(xD,Hr(()=>p.value+1)),Ad(Y8,_),Ad(b_,r);const D=Yt();return bn(()=>[D.value,_.value,t.name],([F,T,A],[k,I,N])=>{T&&(T.instances[A]=F,I&&I!==T&&F&&F===k&&(T.leaveGuards.size||(T.leaveGuards=I.leaveGuards),T.updateGuards.size||(T.updateGuards=I.updateGuards))),F&&T&&(!I||!c0(T,I)||!k)&&(T.enterCallbacks[A]||[]).forEach(M=>M(F))},{flush:"post"}),()=>{const F=r.value,T=t.name,A=_.value,k=A&&A.components[T];if(!k)return SD(s.default,{Component:k,route:F});const I=A.props[T],N=I?I===!0?F.params:typeof I=="function"?I(F):I:null,V=Ou(k,un({},N,i,{onVnodeUnmounted:U=>{U.component.isUnmounted&&(A.instances[T]=null)},ref:D}));return SD(s.default,{Component:V,route:F})||V}}});function SD(t,i){if(!t)return null;const s=t(i);return s.length===1?s[0]:s}const eS=Z8;function tS(t){const i=A8(t.routes,t),s=t.parseQuery||V8,a=t.stringifyQuery||ED,r=t.history,e=bd(),p=bd(),_=bd(),D=Zf(Pl);let F=Pl;Gf&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const T=Tb.bind(null,J=>""+J),A=Tb.bind(null,j8),k=Tb.bind(null,wg);function I(J,Me){let _e,it;return oE(J)?(_e=i.getRecordMatcher(J),it=Me):it=J,i.addRoute(it,_e)}function N(J){const Me=i.getRecordMatcher(J);Me&&i.removeRoute(Me)}function M(){return i.getRoutes().map(J=>J.record)}function V(J){return!!i.getRecordMatcher(J)}function U(J,Me){if(Me=un({},Me||D.value),typeof J=="string"){const ce=Ab(s,J,Me.path),Be=i.resolve({path:ce.path},Me),$e=r.createHref(ce.fullPath);return un(ce,Be,{params:k(Be.params),hash:wg(ce.hash),redirectedFrom:void 0,href:$e})}let _e;if("path"in J)_e=un({},J,{path:Ab(s,J.path,Me.path).path});else{const ce=un({},J.params);for(const Be in ce)ce[Be]==null&&delete ce[Be];_e=un({},J,{params:A(ce)}),Me.params=A(Me.params)}const it=i.resolve(_e,Me),Ut=J.hash||"";it.params=T(k(it.params));const X=i8(a,un({},J,{hash:$8(Ut),path:it.path})),se=r.createHref(X);return un({fullPath:X,hash:Ut,query:a===ED?G8(J.query):J.query||{}},it,{redirectedFrom:void 0,href:se})}function G(J){return typeof J=="string"?Ab(s,J,D.value.path):un({},J)}function ne(J,Me){if(F!==J)return f0(8,{from:Me,to:J})}function z(J){return ee(J)}function H(J){return z(un(G(J),{replace:!0}))}function Z(J){const Me=J.matched[J.matched.length-1];if(Me&&Me.redirect){const{redirect:_e}=Me;let it=typeof _e=="function"?_e(J):_e;return typeof it=="string"&&(it=it.includes("?")||it.includes("#")?it=G(it):{path:it},it.params={}),un({query:J.query,hash:J.hash,params:"path"in it?{}:J.params},it)}}function ee(J,Me){const _e=F=U(J),it=D.value,Ut=J.state,X=J.force,se=J.replace===!0,ce=Z(_e);if(ce)return ee(un(G(ce),{state:typeof ce=="object"?un({},Ut,ce.state):Ut,force:X,replace:se}),Me||_e);const Be=_e;Be.redirectedFrom=Me;let $e;return!X&&s8(a,it,_e)&&($e=f0(16,{to:Be,from:it}),he(it,it,!0,!1)),($e?Promise.resolve($e):ae(Be,it)).catch(Ge=>Vo(Ge)?Vo(Ge,2)?Ge:ze(Ge):lt(Ge,Be,it)).then(Ge=>{if(Ge){if(Vo(Ge,2))return ee(un({replace:se},G(Ge.to),{state:typeof Ge.to=="object"?un({},Ut,Ge.to.state):Ut,force:X}),Me||Be)}else Ge=Ae(Be,it,!0,se,Ut);return ve(Be,it,Ge),Ge})}function re(J,Me){const _e=ne(J,Me);return _e?Promise.reject(_e):Promise.resolve()}function te(J){const Me=Ue.values().next().value;return Me&&typeof Me.runWithContext=="function"?Me.runWithContext(J):J()}function ae(J,Me){let _e;const[it,Ut,X]=rS(J,Me);_e=Ob(it.reverse(),"beforeRouteLeave",J,Me);for(const ce of it)ce.leaveGuards.forEach(Be=>{_e.push(Hl(Be,J,Me))});const se=re.bind(null,J,Me);return _e.push(se),Pe(_e).then(()=>{_e=[];for(const ce of e.list())_e.push(Hl(ce,J,Me));return _e.push(se),Pe(_e)}).then(()=>{_e=Ob(Ut,"beforeRouteUpdate",J,Me);for(const ce of Ut)ce.updateGuards.forEach(Be=>{_e.push(Hl(Be,J,Me))});return _e.push(se),Pe(_e)}).then(()=>{_e=[];for(const ce of X)if(ce.beforeEnter)if(Na(ce.beforeEnter))for(const Be of ce.beforeEnter)_e.push(Hl(Be,J,Me));else _e.push(Hl(ce.beforeEnter,J,Me));return _e.push(se),Pe(_e)}).then(()=>(J.matched.forEach(ce=>ce.enterCallbacks={}),_e=Ob(X,"beforeRouteEnter",J,Me),_e.push(se),Pe(_e))).then(()=>{_e=[];for(const ce of p.list())_e.push(Hl(ce,J,Me));return _e.push(se),Pe(_e)}).catch(ce=>Vo(ce,8)?ce:Promise.reject(ce))}function ve(J,Me,_e){_.list().forEach(it=>te(()=>it(J,Me,_e)))}function Ae(J,Me,_e,it,Ut){const X=ne(J,Me);if(X)return X;const se=Me===Pl,ce=Gf?history.state:{};_e&&(it||se?r.replace(J.fullPath,un({scroll:se&&ce&&ce.scroll},Ut)):r.push(J.fullPath,Ut)),D.value=J,he(J,Me,_e,se),ze()}let De;function ge(){De||(De=r.listen((J,Me,_e)=>{if(!be.listening)return;const it=U(J),Ut=Z(it);if(Ut){ee(un(Ut,{replace:!0}),it).catch(Id);return}F=it;const X=D.value;Gf&&f8(gD(X.fullPath,_e.delta),m2()),ae(it,X).catch(se=>Vo(se,12)?se:Vo(se,2)?(ee(se.to,it).then(ce=>{Vo(ce,20)&&!_e.delta&&_e.type===u0.pop&&r.go(-1,!1)}).catch(Id),Promise.reject()):(_e.delta&&r.go(-_e.delta,!1),lt(se,it,X))).then(se=>{se=se||Ae(it,X,!1),se&&(_e.delta&&!Vo(se,8)?r.go(-_e.delta,!1):_e.type===u0.pop&&Vo(se,20)&&r.go(-1,!1)),ve(it,X,se)}).catch(Id)}))}let Ne=bd(),We=bd(),Se;function lt(J,Me,_e){ze(J);const it=We.list();return it.length?it.forEach(Ut=>Ut(J,Me,_e)):console.error(J),Promise.reject(J)}function at(){return Se&&D.value!==Pl?Promise.resolve():new Promise((J,Me)=>{Ne.add([J,Me])})}function ze(J){return Se||(Se=!J,ge(),Ne.list().forEach(([Me,_e])=>J?_e(J):Me()),Ne.reset()),J}function he(J,Me,_e,it){const{scrollBehavior:Ut}=t;if(!Gf||!Ut)return Promise.resolve();const X=!_e&&h8(gD(J.fullPath,0))||(it||!_e)&&history.state&&history.state.scroll||null;return vo().then(()=>Ut(J,Me,X)).then(se=>se&&u8(se)).catch(se=>lt(se,J,Me))}const He=J=>r.go(J);let Je;const Ue=new Set,be={currentRoute:D,listening:!0,addRoute:I,removeRoute:N,hasRoute:V,getRoutes:M,resolve:U,options:t,push:z,replace:H,go:He,back:()=>He(-1),forward:()=>He(1),beforeEach:e.add,beforeResolve:p.add,afterEach:_.add,onError:We.add,isReady:at,install(J){const Me=this;J.component("RouterLink",Q8),J.component("RouterView",eS),J.config.globalProperties.$router=Me,Object.defineProperty(J.config.globalProperties,"$route",{enumerable:!0,get:()=>Qt(D)}),Gf&&!Je&&D.value===Pl&&(Je=!0,z(r.location).catch(Ut=>{}));const _e={};for(const Ut in Pl)Object.defineProperty(_e,Ut,{get:()=>D.value[Ut],enumerable:!0});J.provide(g2,Me),J.provide(x4,K_(_e)),J.provide(b_,D);const it=J.unmount;Ue.add(J),J.unmount=function(){Ue.delete(J),Ue.size<1&&(F=Pl,De&&De(),De=null,D.value=Pl,Je=!1,Se=!1),it()}}};function Pe(J){return J.reduce((Me,_e)=>Me.then(()=>te(_e)),Promise.resolve())}return be}function rS(t,i){const s=[],a=[],r=[],e=Math.max(i.matched.length,t.matched.length);for(let p=0;p<e;p++){const _=i.matched[p];_&&(t.matched.find(F=>c0(F,_))?a.push(_):s.push(_));const D=t.matched[p];D&&(i.matched.find(F=>c0(F,D))||r.push(D))}return[s,a,r]}function nS(){return is(g2)}function iS(){return is(x4)}function __(t,i={},s){for(const a in t){const r=t[a],e=s?`${s}:${a}`:a;typeof r=="object"&&r!==null?__(r,i,e):typeof r=="function"&&(i[e]=r)}return i}const sS={run:t=>t()},aS=()=>sS,mE=typeof console.createTask<"u"?console.createTask:aS;function oS(t,i){const s=i.shift(),a=mE(s);return t.reduce((r,e)=>r.then(()=>a.run(()=>e(...i))),Promise.resolve())}function lS(t,i){const s=i.shift(),a=mE(s);return Promise.all(t.map(r=>a.run(()=>r(...i))))}function kb(t,i){for(const s of[...t])s(i)}class cS{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(i,s,a={}){if(!i||typeof s!="function")return()=>{};const r=i;let e;for(;this._deprecatedHooks[i];)e=this._deprecatedHooks[i],i=e.to;if(e&&!a.allowDeprecated){let p=e.message;p||(p=`${r} hook has been deprecated`+(e.to?`, please use ${e.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(p)||(console.warn(p),this._deprecatedMessages.add(p))}if(!s.name)try{Object.defineProperty(s,"name",{get:()=>"_"+i.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[i]=this._hooks[i]||[],this._hooks[i].push(s),()=>{s&&(this.removeHook(i,s),s=void 0)}}hookOnce(i,s){let a,r=(...e)=>(typeof a=="function"&&a(),a=void 0,r=void 0,s(...e));return a=this.hook(i,r),a}removeHook(i,s){if(this._hooks[i]){const a=this._hooks[i].indexOf(s);a!==-1&&this._hooks[i].splice(a,1),this._hooks[i].length===0&&delete this._hooks[i]}}deprecateHook(i,s){this._deprecatedHooks[i]=typeof s=="string"?{to:s}:s;const a=this._hooks[i]||[];delete this._hooks[i];for(const r of a)this.hook(i,r)}deprecateHooks(i){Object.assign(this._deprecatedHooks,i);for(const s in i)this.deprecateHook(s,i[s])}addHooks(i){const s=__(i),a=Object.keys(s).map(r=>this.hook(r,s[r]));return()=>{for(const r of a.splice(0,a.length))r()}}removeHooks(i){const s=__(i);for(const a in s)this.removeHook(a,s[a])}removeAllHooks(){for(const i in this._hooks)delete this._hooks[i]}callHook(i,...s){return s.unshift(i),this.callHookWith(oS,i,...s)}callHookParallel(i,...s){return s.unshift(i),this.callHookWith(lS,i,...s)}callHookWith(i,s,...a){const r=this._before||this._after?{name:s,args:a,context:{}}:void 0;this._before&&kb(this._before,r);const e=i(s in this._hooks?[...this._hooks[s]]:[],a);return e instanceof Promise?e.finally(()=>{this._after&&r&&kb(this._after,r)}):(this._after&&r&&kb(this._after,r),e)}beforeEach(i){return this._before=this._before||[],this._before.push(i),()=>{if(this._before!==void 0){const s=this._before.indexOf(i);s!==-1&&this._before.splice(s,1)}}}afterEach(i){return this._after=this._after||[],this._after.push(i),()=>{if(this._after!==void 0){const s=this._after.indexOf(i);s!==-1&&this._after.splice(s,1)}}}}function uS(){return new cS}function fS(t){return Array.isArray(t)?t:[t]}const hS=["title","titleTemplate","script","style","noscript"],ag=["base","meta","link","style","script","noscript"],dS=["title","titleTemplate","templateParams","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"],pS=["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"],gE=["tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"],mS=typeof window<"u";function vE(t){let i=9;for(let s=0;s<t.length;)i=Math.imul(i^t.charCodeAt(s++),9**9);return((i^i>>>9)+65536).toString(16).substring(1,8).toLowerCase()}function OD(t){return t._h||vE(t._d?t._d:`${t.tag}:${t.textContent||t.innerHTML||""}:${Object.entries(t.props).map(([i,s])=>`${i}:${String(s)}`).join(",")}`)}function bE(t,i){const{props:s,tag:a}=t;if(pS.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 p=String(s[e]);return i&&!i(p)?!1:`${a}:${e}:${p}`}return!1}function kD(t,i){return t==null?i||null:typeof t=="function"?t(i):t}async function gS(t,i,s){const a={tag:t,props:await _E(typeof i=="object"&&typeof i!="function"&&!(i instanceof Promise)?{...i}:{[["script","noscript","style"].includes(t)?"innerHTML":"textContent"]:i},["templateParams","titleTemplate"].includes(t))};return gE.forEach(r=>{const e=typeof a.props[r]<"u"?a.props[r]:s[r];typeof e<"u"&&((!["innerHTML","textContent"].includes(r)||hS.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 vS(t){return typeof t=="object"&&!Array.isArray(t)&&(t=Object.keys(t).filter(i=>t[i])),(Array.isArray(t)?t.join(" "):t).split(" ").filter(i=>i.trim()).filter(Boolean).join(" ")}async function _E(t,i){for(const s of Object.keys(t)){if(s==="class"){t[s]=vS(t[s]);continue}if(t[s]instanceof Promise&&(t[s]=await t[s]),!i&&!gE.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 bS=10;async function _S(t){const i=[];return Object.entries(t.resolvedInput).filter(([s,a])=>typeof a<"u"&&dS.includes(s)).forEach(([s,a])=>{const r=fS(a);i.push(...r.map(e=>gS(s,e,t)).flat())}),(await Promise.all(i)).flat().filter(Boolean).map((s,a)=>(s._e=t._i,t.mode&&(s._m=t.mode),s._p=(t._i<<bS)+a,s))}const RD={base:-10,title:10},PD={critical:-80,high:-10,low:20};function Fg(t){let i=100;const s=t.tagPriority;return typeof s=="number"?s:(t.tag==="meta"?(t.props["http-equiv"]==="content-security-policy"&&(i=-30),t.props.charset&&(i=-20),t.props.name==="viewport"&&(i=-15)):t.tag==="link"&&t.props.rel==="preconnect"?i=20:t.tag in RD&&(i=RD[t.tag]),typeof s=="string"&&s in PD?i+PD[s]:i)}const yS=[{prefix:"before:",offset:-1},{prefix:"after:",offset:1}],Il="%separator";function lu(t,i,s){if(typeof t!="string"||!t.includes("%"))return t;function a(p){let _;return["s","pageTitle"].includes(p)?_=i.pageTitle:p.includes(".")?_=p.split(".").reduce((D,F)=>D&&D[F]||void 0,i):_=i[p],typeof _<"u"?(_||"").replace(/"/g,'\\"'):!1}let r=t;try{r=decodeURI(t)}catch{}return(r.match(/%(\w+\.+\w+)|%(\w+)/g)||[]).sort().reverse().forEach(p=>{const _=a(p.slice(1));typeof _=="string"&&(t=t.replace(new RegExp(`\\${p}(\\W|$)`,"g"),(D,F)=>`${_}${F}`).trim())}),t.includes(Il)&&(t.endsWith(Il)&&(t=t.slice(0,-Il.length).trim()),t.startsWith(Il)&&(t=t.slice(Il.length).trim()),t=t.replace(new RegExp(`\\${Il}\\s*\\${Il}`,"g"),Il),t=lu(t,{separator:s},s)),t}async function DS(t){const i={tag:t.tagName.toLowerCase(),props:await _E(t.getAttributeNames().reduce((s,a)=>({...s,[a]:t.getAttribute(a)}),{})),innerHTML:t.innerHTML};return i._d=bE(i),i}async function wS(t,i={}){var T;const s=i.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:ag.includes(A.tag)?OD(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 k=(T=s==null?void 0:s[A])==null?void 0:T.children;for(const I of[...k].filter(N=>ag.includes(N.tagName.toLowerCase())))e.elMap[I.getAttribute("data-hid")||OD(await DS(I))]=I}}e.pendingSideEffects={...e.sideEffects||{}},e.sideEffects={};function p(A,k,I){const N=`${A}:${k}`;e.sideEffects[N]=I,delete e.pendingSideEffects[N]}function _({id:A,$el:k,tag:I}){const N=I.tag.endsWith("Attrs");e.elMap[A]=k,N||(["textContent","innerHTML"].forEach(M=>{I[M]&&I[M]!==k[M]&&(k[M]=I[M])}),p(A,"el",()=>{e.elMap[A].remove(),delete e.elMap[A]})),Object.entries(I.props).forEach(([M,V])=>{const U=`attr:${M}`;if(M==="class")for(const G of(V||"").split(" ").filter(Boolean))N&&p(A,`${U}:${G}`,()=>k.classList.remove(G)),!k.classList.contains(G)&&k.classList.add(G);else k.getAttribute(M)!==V&&k.setAttribute(M,V===!0?"":String(V)),N&&p(A,U,()=>k.removeAttribute(M))})}const D=[],F={bodyClose:void 0,bodyOpen:void 0,head:void 0};for(const A of r){const{tag:k,shouldRender:I,id:N}=A;if(I){if(k.tag==="title"){s.title=k.textContent;continue}A.$el=A.$el||e.elMap[N],A.$el?_(A):ag.includes(k.tag)&&D.push(A)}}for(const A of D){const k=A.tag.tagPosition||"head";A.$el=s.createElement(A.tag.tag),_(A),F[k]=F[k]||s.createDocumentFragment(),F[k].appendChild(A.$el)}for(const A of r)await t.hooks.callHook("dom:renderTag",A,s,p);F.head&&s.head.appendChild(F.head),F.bodyOpen&&s.body.insertBefore(F.bodyOpen,s.body.firstChild),F.bodyClose&&s.body.appendChild(F.bodyClose),Object.values(e.pendingSideEffects).forEach(A=>A()),t._dom=e,t.dirty=!1,await t.hooks.callHook("dom:rendered",{renders:r})}async function FS(t,i={}){const s=i.delayFn||(a=>setTimeout(a,10));return t._domUpdatePromise=t._domUpdatePromise||new Promise(a=>s(async()=>{await wS(t,i),delete t._domUpdatePromise,a()}))}function ES(t){return i=>{var a,r;const s=((r=(a=i.resolvedOptions.document)==null?void 0:a.head.querySelector('script[id="unhead:payload"]'))==null?void 0:r.innerHTML)||!1;return s&&i.push(JSON.parse(s)),{mode:"client",hooks:{"entries:updated":function(e){FS(e,t)}}}}}const xS=["templateParams","htmlAttrs","bodyAttrs"],CS={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=bE(t)||(t.key?`${t.tag}:${t.key}`:!1);s&&(t._d=s)},"tags:resolve":function(t){const i={};t.tags.forEach(a=>{const r=(a.key?`${a.tag}:${a.key}`:a._d)||a._p,e=i[r];if(e){let _=a==null?void 0:a.tagDuplicateStrategy;if(!_&&xS.includes(a.tag)&&(_="merge"),_==="merge"){const D=e.props;["class","style"].forEach(F=>{a.props[F]&&D[F]&&(F==="style"&&!D[F].endsWith(";")&&(D[F]+=";"),a.props[F]=`${D[F]} ${a.props[F]}`)}),i[r].props={...D,...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(Fg(a)>Fg(e))return}const p=Object.keys(a.props).length+(a.innerHTML?1:0)+(a.textContent?1:0);if(ag.includes(a.tag)&&p===0){delete i[r];return}i[r]=a});const s=[];Object.values(i).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))}}},TS={mode:"server",hooks:{"tags:resolve":function(t){const i={};t.tags.filter(s=>["titleTemplate","templateParams","title"].includes(s.tag)&&s._m==="server").forEach(s=>{i[s.tag]=s.tag.startsWith("title")?s.textContent:s.props}),Object.keys(i).length&&t.tags.push({tag:"script",innerHTML:JSON.stringify(i),props:{id:"unhead:payload",type:"application/json"}})}}},ID=["script","link","bodyAttrs"];function ND(t){const i={},s={};return Object.entries(t.props).forEach(([a,r])=>{a.startsWith("on")&&typeof r=="function"?s[a]=r:i[a]=r}),{props:i,eventHandlers:s}}const AS={hooks:{"ssr:render":function(t){t.tags=t.tags.map(i=>(!ID.includes(i.tag)||!Object.entries(i.props).find(([s,a])=>s.startsWith("on")&&typeof a=="function")||(i.props=ND(i).props),i))},"tags:resolve":function(t){t.tags=t.tags.map(i=>{if(!ID.includes(i.tag))return i;const{props:s,eventHandlers:a}=ND(i);return Object.keys(a).length&&(i.props=s,i._eventHandlers=a),i})},"dom:renderTag":function(t,i,s){if(!t.tag._eventHandlers)return;const a=t.tag.tag==="bodyAttrs"?i.defaultView:t.$el;Object.entries(t.tag._eventHandlers).forEach(([r,e])=>{const p=`${t.tag._d||t.tag._p}:${r}`,_=r.slice(2).toLowerCase(),D=`data-h-${_}`;if(s(t.id,p,()=>{}),t.$el.hasAttribute(D))return;const F=e;t.$el.setAttribute(D,""),a.addEventListener(_,F),t.entry&&s(t.id,p,()=>{a.removeEventListener(_,F),t.$el.removeAttribute(D)})})}}},SS=["link","style","script","noscript"],OS={hooks:{"tag:normalise":({tag:t})=>{t.key&&SS.includes(t.tag)&&(t.props["data-hid"]=t._h=vE(t.key))}}},kS={hooks:{"tags:resolve":t=>{const i=s=>{var a;return(a=t.tags.find(r=>r._d===s))==null?void 0:a._p};for(const{prefix:s,offset:a}of yS)for(const r of t.tags.filter(e=>typeof e.tagPriority=="string"&&e.tagPriority.startsWith(s))){const e=i(r.tagPriority.replace(s,""));typeof e<"u"&&(r._p=e+a)}t.tags.sort((s,a)=>s._p-a._p).sort((s,a)=>Fg(s)-Fg(a))}}},RS={hooks:{"tags:resolve":t=>{var p;const{tags:i}=t,s=(p=i.find(_=>_.tag==="title"))==null?void 0:p.textContent,a=i.findIndex(_=>_.tag==="templateParams"),r=a!==-1?i[a].props:{},e=r.separator||"|";delete r.separator,r.pageTitle=lu(r.pageTitle||s||"",r,e);for(const _ of i)_.processTemplateParams!==!1&&(["titleTemplate","title"].includes(_.tag)&&typeof _.textContent=="string"?_.textContent=lu(_.textContent,r,e):_.tag==="meta"&&typeof _.props.content=="string"?_.props.content=lu(_.props.content,r,e):_.tag==="link"&&typeof _.props.href=="string"?_.props.href=lu(_.props.href,r,e):_.processTemplateParams===!0&&(_.innerHTML?_.innerHTML=lu(_.innerHTML,r,e):_.textContent&&(_.textContent=lu(_.textContent,r,e))));t.tags=i.filter(_=>_.tag!=="templateParams")}}},PS={hooks:{"tags:resolve":t=>{const{tags:i}=t;let s=i.findIndex(r=>r.tag==="titleTemplate");const a=i.findIndex(r=>r.tag==="title");if(a!==-1&&s!==-1){const r=kD(i[s].textContent,i[a].textContent);r!==null?i[a].textContent=r||i[a].textContent:delete i[a]}else if(s!==-1){const r=kD(i[s].textContent);r!==null&&(i[s].textContent=r,i[s].tag="title",s=-1)}s!==-1&&delete i[s],t.tags=i.filter(Boolean)}}};function IS(t={}){const i=NS(t);return i.use(ES()),i}function LD(t,i){return!t||t==="server"&&i||t==="client"&&!i}function NS(t={}){const i=uS();i.addHooks(t.hooks||{}),t.document=t.document||(mS?document:void 0);const s=!t.document;t.plugins=[CS,TS,AS,OS,kS,RS,PS,...(t==null?void 0:t.plugins)||[]];const a=()=>{p.dirty=!0,i.callHook("entries:updated",p)};let r=0,e=[];const p={dirty:!1,resolvedOptions:t,hooks:i,headEntries(){return e},use(_){const D=typeof _=="function"?_(p):_;LD(D.mode,s)&&i.addHooks(D.hooks||{})},push(_,D){D==null||delete D.head;const F={_i:r++,input:_,...D};return LD(F.mode,s)&&(e.push(F),a()),{dispose(){e=e.filter(T=>T._i!==F._i),i.callHook("entries:updated",p),a()},patch(T){e=e.map(A=>(A._i===F._i&&(A.input=F.input=T),A)),a()}}},async resolveTags(){const _={tags:[],entries:[...e]};await i.callHook("entries:resolve",_);for(const D of _.entries){const F=D.resolvedInput||D.input;if(D.resolvedInput=await(D.transform?D.transform(F):F),D.resolvedInput)for(const T of await _S(D)){const A={tag:T,entry:D,resolvedOptions:p.resolvedOptions};await i.callHook("tag:normalise",A),_.tags.push(A.tag)}}return await i.callHook("tags:beforeResolve",_),await i.callHook("tags:resolve",_),_.tags},ssr:s};return t.plugins.forEach(_=>p.use(_)),p.hooks.callHook("init",p),p}const LS=v4.startsWith("3");function MS(t){return typeof t=="function"?t():Qt(t)}function y_(t,i=""){if(t instanceof Promise)return t;const s=MS(t);return!t||!s?s:Array.isArray(s)?s.map(a=>y_(a,i)):typeof s=="object"?Object.fromEntries(Object.entries(s).map(([a,r])=>a==="titleTemplate"||a.startsWith("on")?[a,Qt(r)]:[a,y_(r,a)])):s}const BS={hooks:{"entries:resolve":function(t){for(const i of t.entries)i.resolvedInput=y_(i.input)}}},US="usehead";function HS(t){return{install(s){LS&&(s.config.globalProperties.$unhead=t,s.config.globalProperties.$head=t,s.provide(US,t))}}.install}function $S(t={}){t.domDelayFn=t.domDelayFn||(s=>vo(()=>setTimeout(()=>s(),0)));const i=IS(t);return i.use(BS),i.install=HS(i),i}function WS(t){try{return JSON.parse(t||"{}")}catch(i){return console.error("[SSG] On state deserialization -",i,t),{}}}function zS(t){return document.readyState==="loading"?new Promise(i=>{document.addEventListener("DOMContentLoaded",()=>i(t))}):Promise.resolve(t)}const jS=mi({setup(t,{slots:i}){const s=Yt(!1);return La(()=>s.value=!0),()=>s.value?i.default&&i.default({}):i.placeholder&&i.placeholder({})}});function VS(t,i,s,a={}){const{transformState:r,registerComponents:e=!0,useHead:p=!0,rootContainer:_="#app"}=a,D=typeof window<"u";async function F(T=!1,A){const k=T?D4(t):HF(t);let I;p&&(I=$S(),k.use(I));const N=tS({history:T?g8(i.base):v8(i.base),...i}),{routes:M}=i;e&&k.component("ClientOnly",jS);const V=[],ne={app:k,head:I,isClient:D,router:N,routes:M,onSSRAppRendered:T?()=>{}:ee=>V.push(ee),triggerOnSSRAppRendered:()=>Promise.all(V.map(ee=>ee())),initialState:{},transformState:r,routePath:A};T&&(await zS(),ne.initialState=(r==null?void 0:r(window.__INITIAL_STATE__||{}))||WS(window.__INITIAL_STATE__)),await(s==null?void 0:s(ne)),k.use(N);let z,H=!0;if(N.beforeEach((ee,re,te)=>{(H||z&&z===ee.path)&&(H=!1,z=ee.path,ee.meta.state=ne.initialState),te()}),!T){const ee=ne.routePath??"/";N.push(ee),await N.isReady(),ne.initialState=N.currentRoute.value.meta.state||{}}const Z=ne.initialState;return{...ne,initialState:Z}}return D&&(async()=>{const{app:T,router:A}=await F(!0);await A.isReady(),T.mount(_,!0)})(),F}var GS=function(){function t(i,s){s===void 0&&(s=[]),this._eventType=i,this._eventFunctions=s}return t.prototype.init=function(){var i=this;this._eventFunctions.forEach(function(s){typeof window<"u"&&window.addEventListener(i._eventType,s)})},t}(),Eg=globalThis&&globalThis.__assign||function(){return Eg=Object.assign||function(t){for(var i,s=1,a=arguments.length;s<a;s++){i=arguments[s];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t},Eg.apply(this,arguments)},xg={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(){}},yE=function(){function t(i,s){i===void 0&&(i=[]),s===void 0&&(s=xg),this._items=i,this._options=Eg(Eg({},xg),s),this._init()}return t.prototype._init=function(){var i=this;this._items.length&&this._items.map(function(s){s.active&&i.open(s.id),s.triggerEl.addEventListener("click",function(){i.toggle(s.id)})})},t.prototype.getItem=function(i){return this._items.filter(function(s){return s.id===i})[0]},t.prototype.open=function(i){var s,a,r=this,e=this.getItem(i);this._options.alwaysOpen||this._items.map(function(p){var _,D;p!==e&&((_=p.triggerEl.classList).remove.apply(_,r._options.activeClasses.split(" ")),(D=p.triggerEl.classList).add.apply(D,r._options.inactiveClasses.split(" ")),p.targetEl.classList.add("hidden"),p.triggerEl.setAttribute("aria-expanded","false"),p.active=!1,p.iconEl&&p.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(i){var s=this.getItem(i);s.active?this.close(i):this.open(i),this._options.onToggle(this,s)},t.prototype.close=function(i){var s,a,r=this.getItem(i);(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 C4(){document.querySelectorAll("[data-accordion]").forEach(function(t){var i=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 p={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(p)}}),new yE(r,{alwaysOpen:i==="open",activeClasses:s||xg.activeClasses,inactiveClasses:a||xg.inactiveClasses})})}typeof window<"u"&&(window.Accordion=yE,window.initAccordions=C4);var Cg=globalThis&&globalThis.__assign||function(){return Cg=Object.assign||function(t){for(var i,s=1,a=arguments.length;s<a;s++){i=arguments[s];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t},Cg.apply(this,arguments)},MD={onCollapse:function(){},onExpand:function(){},onToggle:function(){}},DE=function(){function t(i,s,a){i===void 0&&(i=null),s===void 0&&(s=null),a===void 0&&(a=MD),this._targetEl=i,this._triggerEl=s,this._options=Cg(Cg({},MD),a),this._visible=!1,this._init()}return t.prototype._init=function(){var i=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(){i.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 T4(){document.querySelectorAll("[data-collapse-toggle]").forEach(function(t){var i=t.getAttribute("data-collapse-toggle"),s=document.getElementById(i);s?new DE(s,t):console.error('The target element with id "'.concat(i,'" does not exist. Please check the data-collapse-toggle attribute.'))})}typeof window<"u"&&(window.Collapse=DE,window.initCollapses=T4);var hu=globalThis&&globalThis.__assign||function(){return hu=Object.assign||function(t){for(var i,s=1,a=arguments.length;s<a;s++){i=arguments[s];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t},hu.apply(this,arguments)},og={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(){}},wE=function(){function t(i,s){i===void 0&&(i=[]),s===void 0&&(s=og),this._items=i,this._options=hu(hu(hu({},og),s),{indicators:hu(hu({},og.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 i=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(){i.slideTo(a)})})},t.prototype.getItem=function(i){return this._items[i]},t.prototype.slideTo=function(i){var s=this._items[i],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 i=this._getActiveItem(),s=null;i.position===this._items.length-1?s=this._items[0]:s=this._items[i.position+1],this.slideTo(s.position),this._options.onNext(this)},t.prototype.prev=function(){var i=this._getActiveItem(),s=null;i.position===0?s=this._items[this._items.length-1]:s=this._items[i.position-1],this.slideTo(s.position),this._options.onPrev(this)},t.prototype._rotate=function(i){this._items.map(function(s){s.el.classList.add("hidden")}),i.left.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-20"),i.left.el.classList.add("-translate-x-full","z-10"),i.middle.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-10"),i.middle.el.classList.add("translate-x-0","z-20"),i.right.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-20"),i.right.el.classList.add("translate-x-full","z-10")},t.prototype.cycle=function(){var i=this;typeof window<"u"&&(this._intervalInstance=window.setInterval(function(){i.next()},this._intervalDuration))},t.prototype.pause=function(){clearInterval(this._intervalInstance)},t.prototype._getActiveItem=function(){return this._activeItem},t.prototype._setActiveItem=function(i){var s,a,r=this;this._activeItem=i;var e=i.position;this._indicators.length&&(this._indicators.map(function(p){var _,D;p.el.setAttribute("aria-current","false"),(_=p.el.classList).remove.apply(_,r._options.indicators.activeClasses.split(" ")),(D=p.el.classList).add.apply(D,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 A4(){document.querySelectorAll("[data-carousel]").forEach(function(t){var i=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(F,T){a.push({position:T,el:F}),F.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(F){e.push({position:parseInt(F.getAttribute("data-carousel-slide-to")),el:F})});var p=new wE(a,{defaultPosition:r,indicators:{items:e},interval:i||og.interval});s&&p.cycle();var _=t.querySelector("[data-carousel-next]"),D=t.querySelector("[data-carousel-prev]");_&&_.addEventListener("click",function(){p.next()}),D&&D.addEventListener("click",function(){p.prev()})})}typeof window<"u"&&(window.Carousel=wE,window.initCarousels=A4);var Tg=globalThis&&globalThis.__assign||function(){return Tg=Object.assign||function(t){for(var i,s=1,a=arguments.length;s<a;s++){i=arguments[s];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t},Tg.apply(this,arguments)},BD={transition:"transition-opacity",duration:300,timing:"ease-out",onHide:function(){}},FE=function(){function t(i,s,a){i===void 0&&(i=null),s===void 0&&(s=null),a===void 0&&(a=BD),this._targetEl=i,this._triggerEl=s,this._options=Tg(Tg({},BD),a),this._init()}return t.prototype._init=function(){var i=this;this._triggerEl&&this._triggerEl.addEventListener("click",function(){i.hide()})},t.prototype.hide=function(){var i=this;this._targetEl.classList.add(this._options.transition,"duration-".concat(this._options.duration),this._options.timing,"opacity-0"),setTimeout(function(){i._targetEl.classList.add("hidden")},this._options.duration),this._options.onHide(this,this._targetEl)},t}();function S4(){document.querySelectorAll("[data-dismiss-target]").forEach(function(t){var i=t.getAttribute("data-dismiss-target"),s=document.querySelector(i);s?new FE(s,t):console.error('The dismiss element with id "'.concat(i,'" does not exist. Please check the data-dismiss-target attribute.'))})}typeof window<"u"&&(window.Dismiss=FE,window.initDismisses=S4);var Ds="top",ha="bottom",da="right",ws="left",O4="auto",m1=[Ds,ha,da,ws],h0="start",t1="end",YS="clippingParents",EE="viewport",_d="popper",KS="reference",UD=m1.reduce(function(t,i){return t.concat([i+"-"+h0,i+"-"+t1])},[]),xE=[].concat(m1,[O4]).reduce(function(t,i){return t.concat([i,i+"-"+h0,i+"-"+t1])},[]),qS="beforeRead",QS="read",XS="afterRead",JS="beforeMain",ZS="main",eO="afterMain",tO="beforeWrite",rO="write",nO="afterWrite",iO=[qS,QS,XS,JS,ZS,eO,tO,rO,nO];function mo(t){return t?(t.nodeName||"").toLowerCase():null}function zs(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var i=t.ownerDocument;return i&&i.defaultView||window}return t}function xu(t){var i=zs(t).Element;return t instanceof i||t instanceof Element}function ua(t){var i=zs(t).HTMLElement;return t instanceof i||t instanceof HTMLElement}function k4(t){if(typeof ShadowRoot>"u")return!1;var i=zs(t).ShadowRoot;return t instanceof i||t instanceof ShadowRoot}function sO(t){var i=t.state;Object.keys(i.elements).forEach(function(s){var a=i.styles[s]||{},r=i.attributes[s]||{},e=i.elements[s];!ua(e)||!mo(e)||(Object.assign(e.style,a),Object.keys(r).forEach(function(p){var _=r[p];_===!1?e.removeAttribute(p):e.setAttribute(p,_===!0?"":_)}))})}function aO(t){var i=t.state,s={popper:{position:i.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(i.elements.popper.style,s.popper),i.styles=s,i.elements.arrow&&Object.assign(i.elements.arrow.style,s.arrow),function(){Object.keys(i.elements).forEach(function(a){var r=i.elements[a],e=i.attributes[a]||{},p=Object.keys(i.styles.hasOwnProperty(a)?i.styles[a]:s[a]),_=p.reduce(function(D,F){return D[F]="",D},{});!ua(r)||!mo(r)||(Object.assign(r.style,_),Object.keys(e).forEach(function(D){r.removeAttribute(D)}))})}}const oO={name:"applyStyles",enabled:!0,phase:"write",fn:sO,effect:aO,requires:["computeStyles"]};function uo(t){return t.split("-")[0]}var yu=Math.max,Ag=Math.min,d0=Math.round;function D_(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(i){return i.brand+"/"+i.version}).join(" "):navigator.userAgent}function CE(){return!/^((?!chrome|android).)*safari/i.test(D_())}function p0(t,i,s){i===void 0&&(i=!1),s===void 0&&(s=!1);var a=t.getBoundingClientRect(),r=1,e=1;i&&ua(t)&&(r=t.offsetWidth>0&&d0(a.width)/t.offsetWidth||1,e=t.offsetHeight>0&&d0(a.height)/t.offsetHeight||1);var p=xu(t)?zs(t):window,_=p.visualViewport,D=!CE()&&s,F=(a.left+(D&&_?_.offsetLeft:0))/r,T=(a.top+(D&&_?_.offsetTop:0))/e,A=a.width/r,k=a.height/e;return{width:A,height:k,top:T,right:F+A,bottom:T+k,left:F,x:F,y:T}}function R4(t){var i=p0(t),s=t.offsetWidth,a=t.offsetHeight;return Math.abs(i.width-s)<=1&&(s=i.width),Math.abs(i.height-a)<=1&&(a=i.height),{x:t.offsetLeft,y:t.offsetTop,width:s,height:a}}function TE(t,i){var s=i.getRootNode&&i.getRootNode();if(t.contains(i))return!0;if(s&&k4(s)){var a=i;do{if(a&&t.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function el(t){return zs(t).getComputedStyle(t)}function lO(t){return["table","td","th"].indexOf(mo(t))>=0}function ac(t){return((xu(t)?t.ownerDocument:t.document)||window.document).documentElement}function v2(t){return mo(t)==="html"?t:t.assignedSlot||t.parentNode||(k4(t)?t.host:null)||ac(t)}function HD(t){return!ua(t)||el(t).position==="fixed"?null:t.offsetParent}function cO(t){var i=/firefox/i.test(D_()),s=/Trident/i.test(D_());if(s&&ua(t)){var a=el(t);if(a.position==="fixed")return null}var r=v2(t);for(k4(r)&&(r=r.host);ua(r)&&["html","body"].indexOf(mo(r))<0;){var e=el(r);if(e.transform!=="none"||e.perspective!=="none"||e.contain==="paint"||["transform","perspective"].indexOf(e.willChange)!==-1||i&&e.willChange==="filter"||i&&e.filter&&e.filter!=="none")return r;r=r.parentNode}return null}function g1(t){for(var i=zs(t),s=HD(t);s&&lO(s)&&el(s).position==="static";)s=HD(s);return s&&(mo(s)==="html"||mo(s)==="body"&&el(s).position==="static")?i:s||cO(t)||i}function P4(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Nd(t,i,s){return yu(t,Ag(i,s))}function uO(t,i,s){var a=Nd(t,i,s);return a>s?s:a}function AE(){return{top:0,right:0,bottom:0,left:0}}function SE(t){return Object.assign({},AE(),t)}function OE(t,i){return i.reduce(function(s,a){return s[a]=t,s},{})}var fO=function(i,s){return i=typeof i=="function"?i(Object.assign({},s.rects,{placement:s.placement})):i,SE(typeof i!="number"?i:OE(i,m1))};function hO(t){var i,s=t.state,a=t.name,r=t.options,e=s.elements.arrow,p=s.modifiersData.popperOffsets,_=uo(s.placement),D=P4(_),F=[ws,da].indexOf(_)>=0,T=F?"height":"width";if(!(!e||!p)){var A=fO(r.padding,s),k=R4(e),I=D==="y"?Ds:ws,N=D==="y"?ha:da,M=s.rects.reference[T]+s.rects.reference[D]-p[D]-s.rects.popper[T],V=p[D]-s.rects.reference[D],U=g1(e),G=U?D==="y"?U.clientHeight||0:U.clientWidth||0:0,ne=M/2-V/2,z=A[I],H=G-k[T]-A[N],Z=G/2-k[T]/2+ne,ee=Nd(z,Z,H),re=D;s.modifiersData[a]=(i={},i[re]=ee,i.centerOffset=ee-Z,i)}}function dO(t){var i=t.state,s=t.options,a=s.element,r=a===void 0?"[data-popper-arrow]":a;r!=null&&(typeof r=="string"&&(r=i.elements.popper.querySelector(r),!r)||TE(i.elements.popper,r)&&(i.elements.arrow=r))}const pO={name:"arrow",enabled:!0,phase:"main",fn:hO,effect:dO,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function m0(t){return t.split("-")[1]}var mO={top:"auto",right:"auto",bottom:"auto",left:"auto"};function gO(t,i){var s=t.x,a=t.y,r=i.devicePixelRatio||1;return{x:d0(s*r)/r||0,y:d0(a*r)/r||0}}function $D(t){var i,s=t.popper,a=t.popperRect,r=t.placement,e=t.variation,p=t.offsets,_=t.position,D=t.gpuAcceleration,F=t.adaptive,T=t.roundOffsets,A=t.isFixed,k=p.x,I=k===void 0?0:k,N=p.y,M=N===void 0?0:N,V=typeof T=="function"?T({x:I,y:M}):{x:I,y:M};I=V.x,M=V.y;var U=p.hasOwnProperty("x"),G=p.hasOwnProperty("y"),ne=ws,z=Ds,H=window;if(F){var Z=g1(s),ee="clientHeight",re="clientWidth";if(Z===zs(s)&&(Z=ac(s),el(Z).position!=="static"&&_==="absolute"&&(ee="scrollHeight",re="scrollWidth")),Z=Z,r===Ds||(r===ws||r===da)&&e===t1){z=ha;var te=A&&Z===H&&H.visualViewport?H.visualViewport.height:Z[ee];M-=te-a.height,M*=D?1:-1}if(r===ws||(r===Ds||r===ha)&&e===t1){ne=da;var ae=A&&Z===H&&H.visualViewport?H.visualViewport.width:Z[re];I-=ae-a.width,I*=D?1:-1}}var ve=Object.assign({position:_},F&&mO),Ae=T===!0?gO({x:I,y:M},zs(s)):{x:I,y:M};if(I=Ae.x,M=Ae.y,D){var De;return Object.assign({},ve,(De={},De[z]=G?"0":"",De[ne]=U?"0":"",De.transform=(H.devicePixelRatio||1)<=1?"translate("+I+"px, "+M+"px)":"translate3d("+I+"px, "+M+"px, 0)",De))}return Object.assign({},ve,(i={},i[z]=G?M+"px":"",i[ne]=U?I+"px":"",i.transform="",i))}function vO(t){var i=t.state,s=t.options,a=s.gpuAcceleration,r=a===void 0?!0:a,e=s.adaptive,p=e===void 0?!0:e,_=s.roundOffsets,D=_===void 0?!0:_,F={placement:uo(i.placement),variation:m0(i.placement),popper:i.elements.popper,popperRect:i.rects.popper,gpuAcceleration:r,isFixed:i.options.strategy==="fixed"};i.modifiersData.popperOffsets!=null&&(i.styles.popper=Object.assign({},i.styles.popper,$D(Object.assign({},F,{offsets:i.modifiersData.popperOffsets,position:i.options.strategy,adaptive:p,roundOffsets:D})))),i.modifiersData.arrow!=null&&(i.styles.arrow=Object.assign({},i.styles.arrow,$D(Object.assign({},F,{offsets:i.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:D})))),i.attributes.popper=Object.assign({},i.attributes.popper,{"data-popper-placement":i.placement})}const bO={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:vO,data:{}};var Ym={passive:!0};function _O(t){var i=t.state,s=t.instance,a=t.options,r=a.scroll,e=r===void 0?!0:r,p=a.resize,_=p===void 0?!0:p,D=zs(i.elements.popper),F=[].concat(i.scrollParents.reference,i.scrollParents.popper);return e&&F.forEach(function(T){T.addEventListener("scroll",s.update,Ym)}),_&&D.addEventListener("resize",s.update,Ym),function(){e&&F.forEach(function(T){T.removeEventListener("scroll",s.update,Ym)}),_&&D.removeEventListener("resize",s.update,Ym)}}const yO={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:_O,data:{}};var DO={left:"right",right:"left",bottom:"top",top:"bottom"};function lg(t){return t.replace(/left|right|bottom|top/g,function(i){return DO[i]})}var wO={start:"end",end:"start"};function WD(t){return t.replace(/start|end/g,function(i){return wO[i]})}function I4(t){var i=zs(t),s=i.pageXOffset,a=i.pageYOffset;return{scrollLeft:s,scrollTop:a}}function N4(t){return p0(ac(t)).left+I4(t).scrollLeft}function FO(t,i){var s=zs(t),a=ac(t),r=s.visualViewport,e=a.clientWidth,p=a.clientHeight,_=0,D=0;if(r){e=r.width,p=r.height;var F=CE();(F||!F&&i==="fixed")&&(_=r.offsetLeft,D=r.offsetTop)}return{width:e,height:p,x:_+N4(t),y:D}}function EO(t){var i,s=ac(t),a=I4(t),r=(i=t.ownerDocument)==null?void 0:i.body,e=yu(s.scrollWidth,s.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),p=yu(s.scrollHeight,s.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),_=-a.scrollLeft+N4(t),D=-a.scrollTop;return el(r||s).direction==="rtl"&&(_+=yu(s.clientWidth,r?r.clientWidth:0)-e),{width:e,height:p,x:_,y:D}}function L4(t){var i=el(t),s=i.overflow,a=i.overflowX,r=i.overflowY;return/auto|scroll|overlay|hidden/.test(s+r+a)}function kE(t){return["html","body","#document"].indexOf(mo(t))>=0?t.ownerDocument.body:ua(t)&&L4(t)?t:kE(v2(t))}function Ld(t,i){var s;i===void 0&&(i=[]);var a=kE(t),r=a===((s=t.ownerDocument)==null?void 0:s.body),e=zs(a),p=r?[e].concat(e.visualViewport||[],L4(a)?a:[]):a,_=i.concat(p);return r?_:_.concat(Ld(v2(p)))}function w_(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function xO(t,i){var s=p0(t,!1,i==="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 zD(t,i,s){return i===EE?w_(FO(t,s)):xu(i)?xO(i,s):w_(EO(ac(t)))}function CO(t){var i=Ld(v2(t)),s=["absolute","fixed"].indexOf(el(t).position)>=0,a=s&&ua(t)?g1(t):t;return xu(a)?i.filter(function(r){return xu(r)&&TE(r,a)&&mo(r)!=="body"}):[]}function TO(t,i,s,a){var r=i==="clippingParents"?CO(t):[].concat(i),e=[].concat(r,[s]),p=e[0],_=e.reduce(function(D,F){var T=zD(t,F,a);return D.top=yu(T.top,D.top),D.right=Ag(T.right,D.right),D.bottom=Ag(T.bottom,D.bottom),D.left=yu(T.left,D.left),D},zD(t,p,a));return _.width=_.right-_.left,_.height=_.bottom-_.top,_.x=_.left,_.y=_.top,_}function RE(t){var i=t.reference,s=t.element,a=t.placement,r=a?uo(a):null,e=a?m0(a):null,p=i.x+i.width/2-s.width/2,_=i.y+i.height/2-s.height/2,D;switch(r){case Ds:D={x:p,y:i.y-s.height};break;case ha:D={x:p,y:i.y+i.height};break;case da:D={x:i.x+i.width,y:_};break;case ws:D={x:i.x-s.width,y:_};break;default:D={x:i.x,y:i.y}}var F=r?P4(r):null;if(F!=null){var T=F==="y"?"height":"width";switch(e){case h0:D[F]=D[F]-(i[T]/2-s[T]/2);break;case t1:D[F]=D[F]+(i[T]/2-s[T]/2);break}}return D}function r1(t,i){i===void 0&&(i={});var s=i,a=s.placement,r=a===void 0?t.placement:a,e=s.strategy,p=e===void 0?t.strategy:e,_=s.boundary,D=_===void 0?YS:_,F=s.rootBoundary,T=F===void 0?EE:F,A=s.elementContext,k=A===void 0?_d:A,I=s.altBoundary,N=I===void 0?!1:I,M=s.padding,V=M===void 0?0:M,U=SE(typeof V!="number"?V:OE(V,m1)),G=k===_d?KS:_d,ne=t.rects.popper,z=t.elements[N?G:k],H=TO(xu(z)?z:z.contextElement||ac(t.elements.popper),D,T,p),Z=p0(t.elements.reference),ee=RE({reference:Z,element:ne,strategy:"absolute",placement:r}),re=w_(Object.assign({},ne,ee)),te=k===_d?re:Z,ae={top:H.top-te.top+U.top,bottom:te.bottom-H.bottom+U.bottom,left:H.left-te.left+U.left,right:te.right-H.right+U.right},ve=t.modifiersData.offset;if(k===_d&&ve){var Ae=ve[r];Object.keys(ae).forEach(function(De){var ge=[da,ha].indexOf(De)>=0?1:-1,Ne=[Ds,ha].indexOf(De)>=0?"y":"x";ae[De]+=Ae[Ne]*ge})}return ae}function AO(t,i){i===void 0&&(i={});var s=i,a=s.placement,r=s.boundary,e=s.rootBoundary,p=s.padding,_=s.flipVariations,D=s.allowedAutoPlacements,F=D===void 0?xE:D,T=m0(a),A=T?_?UD:UD.filter(function(N){return m0(N)===T}):m1,k=A.filter(function(N){return F.indexOf(N)>=0});k.length===0&&(k=A);var I=k.reduce(function(N,M){return N[M]=r1(t,{placement:M,boundary:r,rootBoundary:e,padding:p})[uo(M)],N},{});return Object.keys(I).sort(function(N,M){return I[N]-I[M]})}function SO(t){if(uo(t)===O4)return[];var i=lg(t);return[WD(t),i,WD(i)]}function OO(t){var i=t.state,s=t.options,a=t.name;if(!i.modifiersData[a]._skip){for(var r=s.mainAxis,e=r===void 0?!0:r,p=s.altAxis,_=p===void 0?!0:p,D=s.fallbackPlacements,F=s.padding,T=s.boundary,A=s.rootBoundary,k=s.altBoundary,I=s.flipVariations,N=I===void 0?!0:I,M=s.allowedAutoPlacements,V=i.options.placement,U=uo(V),G=U===V,ne=D||(G||!N?[lg(V)]:SO(V)),z=[V].concat(ne).reduce(function(Ue,be){return Ue.concat(uo(be)===O4?AO(i,{placement:be,boundary:T,rootBoundary:A,padding:F,flipVariations:N,allowedAutoPlacements:M}):be)},[]),H=i.rects.reference,Z=i.rects.popper,ee=new Map,re=!0,te=z[0],ae=0;ae<z.length;ae++){var ve=z[ae],Ae=uo(ve),De=m0(ve)===h0,ge=[Ds,ha].indexOf(Ae)>=0,Ne=ge?"width":"height",We=r1(i,{placement:ve,boundary:T,rootBoundary:A,altBoundary:k,padding:F}),Se=ge?De?da:ws:De?ha:Ds;H[Ne]>Z[Ne]&&(Se=lg(Se));var lt=lg(Se),at=[];if(e&&at.push(We[Ae]<=0),_&&at.push(We[Se]<=0,We[lt]<=0),at.every(function(Ue){return Ue})){te=ve,re=!1;break}ee.set(ve,at)}if(re)for(var ze=N?3:1,he=function(be){var Pe=z.find(function(J){var Me=ee.get(J);if(Me)return Me.slice(0,be).every(function(_e){return _e})});if(Pe)return te=Pe,"break"},He=ze;He>0;He--){var Je=he(He);if(Je==="break")break}i.placement!==te&&(i.modifiersData[a]._skip=!0,i.placement=te,i.reset=!0)}}const kO={name:"flip",enabled:!0,phase:"main",fn:OO,requiresIfExists:["offset"],data:{_skip:!1}};function jD(t,i,s){return s===void 0&&(s={x:0,y:0}),{top:t.top-i.height-s.y,right:t.right-i.width+s.x,bottom:t.bottom-i.height+s.y,left:t.left-i.width-s.x}}function VD(t){return[Ds,da,ha,ws].some(function(i){return t[i]>=0})}function RO(t){var i=t.state,s=t.name,a=i.rects.reference,r=i.rects.popper,e=i.modifiersData.preventOverflow,p=r1(i,{elementContext:"reference"}),_=r1(i,{altBoundary:!0}),D=jD(p,a),F=jD(_,r,e),T=VD(D),A=VD(F);i.modifiersData[s]={referenceClippingOffsets:D,popperEscapeOffsets:F,isReferenceHidden:T,hasPopperEscaped:A},i.attributes.popper=Object.assign({},i.attributes.popper,{"data-popper-reference-hidden":T,"data-popper-escaped":A})}const PO={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:RO};function IO(t,i,s){var a=uo(t),r=[ws,Ds].indexOf(a)>=0?-1:1,e=typeof s=="function"?s(Object.assign({},i,{placement:t})):s,p=e[0],_=e[1];return p=p||0,_=(_||0)*r,[ws,da].indexOf(a)>=0?{x:_,y:p}:{x:p,y:_}}function NO(t){var i=t.state,s=t.options,a=t.name,r=s.offset,e=r===void 0?[0,0]:r,p=xE.reduce(function(T,A){return T[A]=IO(A,i.rects,e),T},{}),_=p[i.placement],D=_.x,F=_.y;i.modifiersData.popperOffsets!=null&&(i.modifiersData.popperOffsets.x+=D,i.modifiersData.popperOffsets.y+=F),i.modifiersData[a]=p}const LO={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:NO};function MO(t){var i=t.state,s=t.name;i.modifiersData[s]=RE({reference:i.rects.reference,element:i.rects.popper,strategy:"absolute",placement:i.placement})}const BO={name:"popperOffsets",enabled:!0,phase:"read",fn:MO,data:{}};function UO(t){return t==="x"?"y":"x"}function HO(t){var i=t.state,s=t.options,a=t.name,r=s.mainAxis,e=r===void 0?!0:r,p=s.altAxis,_=p===void 0?!1:p,D=s.boundary,F=s.rootBoundary,T=s.altBoundary,A=s.padding,k=s.tether,I=k===void 0?!0:k,N=s.tetherOffset,M=N===void 0?0:N,V=r1(i,{boundary:D,rootBoundary:F,padding:A,altBoundary:T}),U=uo(i.placement),G=m0(i.placement),ne=!G,z=P4(U),H=UO(z),Z=i.modifiersData.popperOffsets,ee=i.rects.reference,re=i.rects.popper,te=typeof M=="function"?M(Object.assign({},i.rects,{placement:i.placement})):M,ae=typeof te=="number"?{mainAxis:te,altAxis:te}:Object.assign({mainAxis:0,altAxis:0},te),ve=i.modifiersData.offset?i.modifiersData.offset[i.placement]:null,Ae={x:0,y:0};if(Z){if(e){var De,ge=z==="y"?Ds:ws,Ne=z==="y"?ha:da,We=z==="y"?"height":"width",Se=Z[z],lt=Se+V[ge],at=Se-V[Ne],ze=I?-re[We]/2:0,he=G===h0?ee[We]:re[We],He=G===h0?-re[We]:-ee[We],Je=i.elements.arrow,Ue=I&&Je?R4(Je):{width:0,height:0},be=i.modifiersData["arrow#persistent"]?i.modifiersData["arrow#persistent"].padding:AE(),Pe=be[ge],J=be[Ne],Me=Nd(0,ee[We],Ue[We]),_e=ne?ee[We]/2-ze-Me-Pe-ae.mainAxis:he-Me-Pe-ae.mainAxis,it=ne?-ee[We]/2+ze+Me+J+ae.mainAxis:He+Me+J+ae.mainAxis,Ut=i.elements.arrow&&g1(i.elements.arrow),X=Ut?z==="y"?Ut.clientTop||0:Ut.clientLeft||0:0,se=(De=ve==null?void 0:ve[z])!=null?De:0,ce=Se+_e-se-X,Be=Se+it-se,$e=Nd(I?Ag(lt,ce):lt,Se,I?yu(at,Be):at);Z[z]=$e,Ae[z]=$e-Se}if(_){var Ge,Ft=z==="x"?Ds:ws,dt=z==="x"?ha:da,ut=Z[H],Ve=H==="y"?"height":"width",Fe=ut+V[Ft],xe=ut-V[dt],Et=[Ds,ws].indexOf(U)!==-1,Lt=(Ge=ve==null?void 0:ve[H])!=null?Ge:0,rr=Et?Fe:ut-ee[Ve]-re[Ve]-Lt+ae.altAxis,cr=Et?ut+ee[Ve]+re[Ve]-Lt-ae.altAxis:xe,ir=I&&Et?uO(rr,ut,cr):Nd(I?rr:Fe,ut,I?cr:xe);Z[H]=ir,Ae[H]=ir-ut}i.modifiersData[a]=Ae}}const $O={name:"preventOverflow",enabled:!0,phase:"main",fn:HO,requiresIfExists:["offset"]};function WO(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function zO(t){return t===zs(t)||!ua(t)?I4(t):WO(t)}function jO(t){var i=t.getBoundingClientRect(),s=d0(i.width)/t.offsetWidth||1,a=d0(i.height)/t.offsetHeight||1;return s!==1||a!==1}function VO(t,i,s){s===void 0&&(s=!1);var a=ua(i),r=ua(i)&&jO(i),e=ac(i),p=p0(t,r,s),_={scrollLeft:0,scrollTop:0},D={x:0,y:0};return(a||!a&&!s)&&((mo(i)!=="body"||L4(e))&&(_=zO(i)),ua(i)?(D=p0(i,!0),D.x+=i.clientLeft,D.y+=i.clientTop):e&&(D.x=N4(e))),{x:p.left+_.scrollLeft-D.x,y:p.top+_.scrollTop-D.y,width:p.width,height:p.height}}function GO(t){var i=new Map,s=new Set,a=[];t.forEach(function(e){i.set(e.name,e)});function r(e){s.add(e.name);var p=[].concat(e.requires||[],e.requiresIfExists||[]);p.forEach(function(_){if(!s.has(_)){var D=i.get(_);D&&r(D)}}),a.push(e)}return t.forEach(function(e){s.has(e.name)||r(e)}),a}function YO(t){var i=GO(t);return iO.reduce(function(s,a){return s.concat(i.filter(function(r){return r.phase===a}))},[])}function KO(t){var i;return function(){return i||(i=new Promise(function(s){Promise.resolve().then(function(){i=void 0,s(t())})})),i}}function qO(t){var i=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(i).map(function(s){return i[s]})}var GD={placement:"bottom",modifiers:[],strategy:"absolute"};function YD(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];return!i.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function QO(t){t===void 0&&(t={});var i=t,s=i.defaultModifiers,a=s===void 0?[]:s,r=i.defaultOptions,e=r===void 0?GD:r;return function(_,D,F){F===void 0&&(F=e);var T={placement:"bottom",orderedModifiers:[],options:Object.assign({},GD,e),modifiersData:{},elements:{reference:_,popper:D},attributes:{},styles:{}},A=[],k=!1,I={state:T,setOptions:function(U){var G=typeof U=="function"?U(T.options):U;M(),T.options=Object.assign({},e,T.options,G),T.scrollParents={reference:xu(_)?Ld(_):_.contextElement?Ld(_.contextElement):[],popper:Ld(D)};var ne=YO(qO([].concat(a,T.options.modifiers)));return T.orderedModifiers=ne.filter(function(z){return z.enabled}),N(),I.update()},forceUpdate:function(){if(!k){var U=T.elements,G=U.reference,ne=U.popper;if(YD(G,ne)){T.rects={reference:VO(G,g1(ne),T.options.strategy==="fixed"),popper:R4(ne)},T.reset=!1,T.placement=T.options.placement,T.orderedModifiers.forEach(function(ae){return T.modifiersData[ae.name]=Object.assign({},ae.data)});for(var z=0;z<T.orderedModifiers.length;z++){if(T.reset===!0){T.reset=!1,z=-1;continue}var H=T.orderedModifiers[z],Z=H.fn,ee=H.options,re=ee===void 0?{}:ee,te=H.name;typeof Z=="function"&&(T=Z({state:T,options:re,name:te,instance:I})||T)}}}},update:KO(function(){return new Promise(function(V){I.forceUpdate(),V(T)})}),destroy:function(){M(),k=!0}};if(!YD(_,D))return I;I.setOptions(F).then(function(V){!k&&F.onFirstUpdate&&F.onFirstUpdate(V)});function N(){T.orderedModifiers.forEach(function(V){var U=V.name,G=V.options,ne=G===void 0?{}:G,z=V.effect;if(typeof z=="function"){var H=z({state:T,name:U,instance:I,options:ne}),Z=function(){};A.push(H||Z)}})}function M(){A.forEach(function(V){return V()}),A=[]}return I}}var XO=[yO,BO,bO,oO,LO,kO,$O,pO,PO],M4=QO({defaultModifiers:XO}),$l=globalThis&&globalThis.__assign||function(){return $l=Object.assign||function(t){for(var i,s=1,a=arguments.length;s<a;s++){i=arguments[s];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t},$l.apply(this,arguments)},Km=globalThis&&globalThis.__spreadArray||function(t,i,s){if(s||arguments.length===2)for(var a=0,r=i.length,e;a<r;a++)(e||!(a in i))&&(e||(e=Array.prototype.slice.call(i,0,a)),e[a]=i[a]);return t.concat(e||Array.prototype.slice.call(i))},Wl={placement:"bottom",triggerType:"click",offsetSkidding:0,offsetDistance:10,delay:300,ignoreClickOutsideClass:!1,onShow:function(){},onHide:function(){},onToggle:function(){}},PE=function(){function t(i,s,a){i===void 0&&(i=null),s===void 0&&(s=null),a===void 0&&(a=Wl),this._targetEl=i,this._triggerEl=s,this._options=$l($l({},Wl),a),this._popperInstance=this._createPopperInstance(),this._visible=!1,this._init()}return t.prototype._init=function(){this._triggerEl&&this._setupEventListeners()},t.prototype._setupEventListeners=function(){var i=this,s=this._getTriggerEvents();this._options.triggerType==="click"&&s.showEvents.forEach(function(a){i._triggerEl.addEventListener(a,function(){i.toggle()})}),this._options.triggerType==="hover"&&(s.showEvents.forEach(function(a){i._triggerEl.addEventListener(a,function(){a==="click"?i.toggle():setTimeout(function(){i.show()},i._options.delay)}),i._targetEl.addEventListener(a,function(){i.show()})}),s.hideEvents.forEach(function(a){i._triggerEl.addEventListener(a,function(){setTimeout(function(){i._targetEl.matches(":hover")||i.hide()},i._options.delay)}),i._targetEl.addEventListener(a,function(){setTimeout(function(){i._triggerEl.matches(":hover")||i.hide()},i._options.delay)})}))},t.prototype._createPopperInstance=function(){return M4(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[this._options.offsetSkidding,this._options.offsetDistance]}}]})},t.prototype._setupClickOutsideListener=function(){var i=this;this._clickOutsideEventListener=function(s){i._handleClickOutside(s,i._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._handleClickOutside=function(i,s){var a=i.target,r=this._options.ignoreClickOutsideClass,e=!1;if(r){var p=document.querySelectorAll(".".concat(r));p.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(i){return $l($l({},i),{modifiers:Km(Km([],i.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(i){return $l($l({},i),{modifiers:Km(Km([],i.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._visible=!1,this._removeClickOutsideListener(),this._options.onHide(this)},t}();function B4(){document.querySelectorAll("[data-dropdown-toggle]").forEach(function(t){var i=t.getAttribute("data-dropdown-toggle"),s=document.getElementById(i);if(s){var a=t.getAttribute("data-dropdown-placement"),r=t.getAttribute("data-dropdown-offset-skidding"),e=t.getAttribute("data-dropdown-offset-distance"),p=t.getAttribute("data-dropdown-trigger"),_=t.getAttribute("data-dropdown-delay"),D=t.getAttribute("data-dropdown-ignore-click-outside-class");new PE(s,t,{placement:a||Wl.placement,triggerType:p||Wl.triggerType,offsetSkidding:r?parseInt(r):Wl.offsetSkidding,offsetDistance:e?parseInt(e):Wl.offsetDistance,delay:_?parseInt(_):Wl.delay,ignoreClickOutsideClass:D||Wl.ignoreClickOutsideClass})}else console.error('The dropdown element with id "'.concat(i,'" does not exist. Please check the data-dropdown-toggle attribute.'))})}typeof window<"u"&&(window.Dropdown=PE,window.initDropdowns=B4);var Sg=globalThis&&globalThis.__assign||function(){return Sg=Object.assign||function(t){for(var i,s=1,a=arguments.length;s<a;s++){i=arguments[s];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t},Sg.apply(this,arguments)},qf={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(){}},F_=function(){function t(i,s){i===void 0&&(i=null),s===void 0&&(s=qf),this._targetEl=i,this._options=Sg(Sg({},qf),s),this._isHidden=!0,this._backdropEl=null,this._init()}return t.prototype._init=function(){var i=this;this._targetEl&&this._getPlacementClasses().map(function(s){i._targetEl.classList.add(s)})},t.prototype._createBackdrop=function(){var i;if(this._isHidden){var s=document.createElement("div");s.setAttribute("modal-backdrop",""),(i=s.classList).add.apply(i,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 i=this;this._options.backdrop==="dynamic"&&(this._clickOutsideEventListener=function(s){i._handleOutsideClick(s.target)},this._targetEl.addEventListener("click",this._clickOutsideEventListener,!0)),this._keydownEventListener=function(s){s.key==="Escape"&&i.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(i){(i===this._targetEl||i===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}(),qm=function(t,i){return i.some(function(s){return s.id===t})?i.find(function(s){return s.id===t}):null};function U4(){var t=[];document.querySelectorAll("[data-modal-target]").forEach(function(i){var s=i.getAttribute("data-modal-target"),a=document.getElementById(s);if(a){var r=a.getAttribute("data-modal-placement"),e=a.getAttribute("data-modal-backdrop");qm(s,t)||t.push({id:s,object:new F_(a,{placement:r||qf.placement,backdrop:e||qf.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(i){var s=i.getAttribute("data-modal-toggle"),a=document.getElementById(s);if(a){var r=a.getAttribute("data-modal-placement"),e=a.getAttribute("data-modal-backdrop"),p=qm(s,t);p||(p={id:s,object:new F_(a,{placement:r||qf.placement,backdrop:e||qf.backdrop})},t.push(p)),i.addEventListener("click",function(){p.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(i){var s=i.getAttribute("data-modal-show"),a=document.getElementById(s);if(a){var r=qm(s,t);r?i.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(i){var s=i.getAttribute("data-modal-hide"),a=document.getElementById(s);if(a){var r=qm(s,t);r?i.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=F_,window.initModals=U4);var Og=globalThis&&globalThis.__assign||function(){return Og=Object.assign||function(t){for(var i,s=1,a=arguments.length;s<a;s++){i=arguments[s];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t},Og.apply(this,arguments)},du={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(){}},IE=function(){function t(i,s){i===void 0&&(i=null),s===void 0&&(s=du),this._targetEl=i,this._options=Og(Og({},du),s),this._visible=!1,this._init()}return t.prototype._init=function(){var i=this;this._targetEl&&(this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.classList.add("transition-transform")),this._getPlacementClasses(this._options.placement).base.map(function(s){i._targetEl.classList.add(s)}),document.addEventListener("keydown",function(s){s.key==="Escape"&&i.isVisible()&&i.hide()})},t.prototype.hide=function(){var i=this;this._options.edge?(this._getPlacementClasses(this._options.placement+"-edge").active.map(function(s){i._targetEl.classList.remove(s)}),this._getPlacementClasses(this._options.placement+"-edge").inactive.map(function(s){i._targetEl.classList.add(s)})):(this._getPlacementClasses(this._options.placement).active.map(function(s){i._targetEl.classList.remove(s)}),this._getPlacementClasses(this._options.placement).inactive.map(function(s){i._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 i=this;this._options.edge?(this._getPlacementClasses(this._options.placement+"-edge").active.map(function(s){i._targetEl.classList.add(s)}),this._getPlacementClasses(this._options.placement+"-edge").inactive.map(function(s){i._targetEl.classList.remove(s)})):(this._getPlacementClasses(this._options.placement).active.map(function(s){i._targetEl.classList.add(s)}),this._getPlacementClasses(this._options.placement).inactive.map(function(s){i._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 i,s=this;if(!this._visible){var a=document.createElement("div");a.setAttribute("drawer-backdrop",""),(i=a.classList).add.apply(i,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(i){switch(i){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}(),Qm=function(t,i){if(i.some(function(s){return s.id===t}))return i.find(function(s){return s.id===t})};function H4(){var t=[];document.querySelectorAll("[data-drawer-target]").forEach(function(i){var s=i.getAttribute("data-drawer-target"),a=document.getElementById(s);if(a){var r=i.getAttribute("data-drawer-placement"),e=i.getAttribute("data-drawer-body-scrolling"),p=i.getAttribute("data-drawer-backdrop"),_=i.getAttribute("data-drawer-edge"),D=i.getAttribute("data-drawer-edge-offset");Qm(s,t)||t.push({id:s,object:new IE(a,{placement:r||du.placement,bodyScrolling:e?e==="true":du.bodyScrolling,backdrop:p?p==="true":du.backdrop,edge:_?_==="true":du.edge,edgeOffset:D||du.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(i){var s=i.getAttribute("data-drawer-toggle"),a=document.getElementById(s);if(a){var r=Qm(s,t);r?i.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(i){var s=i.getAttribute("data-drawer-dismiss")?i.getAttribute("data-drawer-dismiss"):i.getAttribute("data-drawer-hide"),a=document.getElementById(s);if(a){var r=Qm(s,t);r?i.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(i){var s=i.getAttribute("data-drawer-show"),a=document.getElementById(s);if(a){var r=Qm(s,t);r?i.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=IE,window.initDrawers=H4);var kg=globalThis&&globalThis.__assign||function(){return kg=Object.assign||function(t){for(var i,s=1,a=arguments.length;s<a;s++){i=arguments[s];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t},kg.apply(this,arguments)},KD={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(){}},NE=function(){function t(i,s){i===void 0&&(i=[]),s===void 0&&(s=KD),this._items=i,this._activeTab=s?this.getTab(s.defaultTabId):null,this._options=kg(kg({},KD),s),this._init()}return t.prototype._init=function(){var i=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(){i.show(s.id)})}))},t.prototype.getActiveTab=function(){return this._activeTab},t.prototype._setActiveTab=function(i){this._activeTab=i},t.prototype.getTab=function(i){return this._items.filter(function(s){return s.id===i})[0]},t.prototype.show=function(i,s){var a,r,e=this;s===void 0&&(s=!1);var p=this.getTab(i);p===this._activeTab&&!s||(this._items.map(function(_){var D,F;_!==p&&((D=_.triggerEl.classList).remove.apply(D,e._options.activeClasses.split(" ")),(F=_.triggerEl.classList).add.apply(F,e._options.inactiveClasses.split(" ")),_.targetEl.classList.add("hidden"),_.triggerEl.setAttribute("aria-selected","false"))}),(a=p.triggerEl.classList).add.apply(a,this._options.activeClasses.split(" ")),(r=p.triggerEl.classList).remove.apply(r,this._options.inactiveClasses.split(" ")),p.triggerEl.setAttribute("aria-selected","true"),p.targetEl.classList.remove("hidden"),this._setActiveTab(p),this._options.onShow(this,p))},t}();function $4(){document.querySelectorAll("[data-tabs-toggle]").forEach(function(t){var i=[],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"))};i.push(e),r&&(s=e.id)}),new NE(i,{defaultTabId:s})})}typeof window<"u"&&(window.Tabs=NE,window.initTabs=$4);var zl=globalThis&&globalThis.__assign||function(){return zl=Object.assign||function(t){for(var i,s=1,a=arguments.length;s<a;s++){i=arguments[s];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t},zl.apply(this,arguments)},Xm=globalThis&&globalThis.__spreadArray||function(t,i,s){if(s||arguments.length===2)for(var a=0,r=i.length,e;a<r;a++)(e||!(a in i))&&(e||(e=Array.prototype.slice.call(i,0,a)),e[a]=i[a]);return t.concat(e||Array.prototype.slice.call(i))},Rg={placement:"top",triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},W4=function(){function t(i,s,a){i===void 0&&(i=null),s===void 0&&(s=null),a===void 0&&(a=Rg),this._targetEl=i,this._triggerEl=s,this._options=zl(zl({},Rg),a),this._popperInstance=this._createPopperInstance(),this._visible=!1,this._init()}return t.prototype._init=function(){this._triggerEl&&this._setupEventListeners()},t.prototype._setupEventListeners=function(){var i=this,s=this._getTriggerEvents();s.showEvents.forEach(function(a){i._triggerEl.addEventListener(a,function(){i.show()})}),s.hideEvents.forEach(function(a){i._triggerEl.addEventListener(a,function(){i.hide()})})},t.prototype._createPopperInstance=function(){return M4(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 i=this;this._keydownEventListener=function(s){s.key==="Escape"&&i.hide()},document.body.addEventListener("keydown",this._keydownEventListener,!0)},t.prototype._removeKeydownListener=function(){document.body.removeEventListener("keydown",this._keydownEventListener,!0)},t.prototype._setupClickOutsideListener=function(){var i=this;this._clickOutsideEventListener=function(s){i._handleClickOutside(s,i._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._handleClickOutside=function(i,s){var a=i.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(i){return zl(zl({},i),{modifiers:Xm(Xm([],i.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(i){return zl(zl({},i),{modifiers:Xm(Xm([],i.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._removeClickOutsideListener(),this._removeKeydownListener(),this._visible=!1,this._options.onHide(this)},t}();function z4(){document.querySelectorAll("[data-tooltip-target]").forEach(function(t){var i=t.getAttribute("data-tooltip-target"),s=document.getElementById(i);if(s){var a=t.getAttribute("data-tooltip-trigger"),r=t.getAttribute("data-tooltip-placement");new W4(s,t,{placement:r||Rg.placement,triggerType:a||Rg.triggerType})}else console.error('The tooltip element with id "'.concat(i,'" does not exist. Please check the data-tooltip-target attribute.'))})}typeof window<"u"&&(window.Tooltip=W4,window.initTooltips=z4);var jl=globalThis&&globalThis.__assign||function(){return jl=Object.assign||function(t){for(var i,s=1,a=arguments.length;s<a;s++){i=arguments[s];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t},jl.apply(this,arguments)},Jm=globalThis&&globalThis.__spreadArray||function(t,i,s){if(s||arguments.length===2)for(var a=0,r=i.length,e;a<r;a++)(e||!(a in i))&&(e||(e=Array.prototype.slice.call(i,0,a)),e[a]=i[a]);return t.concat(e||Array.prototype.slice.call(i))},Md={placement:"top",offset:10,triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},LE=function(){function t(i,s,a){i===void 0&&(i=null),s===void 0&&(s=null),a===void 0&&(a=Md),this._targetEl=i,this._triggerEl=s,this._options=jl(jl({},Md),a),this._popperInstance=this._createPopperInstance(),this._visible=!1,this._init()}return t.prototype._init=function(){this._triggerEl&&this._setupEventListeners()},t.prototype._setupEventListeners=function(){var i=this,s=this._getTriggerEvents();s.showEvents.forEach(function(a){i._triggerEl.addEventListener(a,function(){i.show()}),i._targetEl.addEventListener(a,function(){i.show()})}),s.hideEvents.forEach(function(a){i._triggerEl.addEventListener(a,function(){setTimeout(function(){i._targetEl.matches(":hover")||i.hide()},100)}),i._targetEl.addEventListener(a,function(){setTimeout(function(){i._triggerEl.matches(":hover")||i.hide()},100)})})},t.prototype._createPopperInstance=function(){return M4(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 i=this;this._keydownEventListener=function(s){s.key==="Escape"&&i.hide()},document.body.addEventListener("keydown",this._keydownEventListener,!0)},t.prototype._removeKeydownListener=function(){document.body.removeEventListener("keydown",this._keydownEventListener,!0)},t.prototype._setupClickOutsideListener=function(){var i=this;this._clickOutsideEventListener=function(s){i._handleClickOutside(s,i._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._handleClickOutside=function(i,s){var a=i.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(i){return jl(jl({},i),{modifiers:Jm(Jm([],i.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(i){return jl(jl({},i),{modifiers:Jm(Jm([],i.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._removeClickOutsideListener(),this._removeKeydownListener(),this._visible=!1,this._options.onHide(this)},t}();function j4(){document.querySelectorAll("[data-popover-target]").forEach(function(t){var i=t.getAttribute("data-popover-target"),s=document.getElementById(i);if(s){var a=t.getAttribute("data-popover-trigger"),r=t.getAttribute("data-popover-placement"),e=t.getAttribute("data-popover-offset");new LE(s,t,{placement:r||Md.placement,offset:e?parseInt(e):Md.offset,triggerType:a||Md.triggerType})}else console.error('The popover element with id "'.concat(i,'" does not exist. Please check the data-popover-target attribute.'))})}typeof window<"u"&&(window.Popover=LE,window.initPopovers=j4);var Pg=globalThis&&globalThis.__assign||function(){return Pg=Object.assign||function(t){for(var i,s=1,a=arguments.length;s<a;s++){i=arguments[s];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t},Pg.apply(this,arguments)},E_={triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},ME=function(){function t(i,s,a,r){i===void 0&&(i=null),s===void 0&&(s=null),a===void 0&&(a=null),r===void 0&&(r=E_),this._parentEl=i,this._triggerEl=s,this._targetEl=a,this._options=Pg(Pg({},E_),r),this._visible=!1,this._init()}return t.prototype._init=function(){var i=this;if(this._triggerEl){var s=this._getTriggerEventTypes(this._options.triggerType);s.showEvents.forEach(function(a){i._triggerEl.addEventListener(a,function(){i.show()}),i._targetEl.addEventListener(a,function(){i.show()})}),s.hideEvents.forEach(function(a){i._parentEl.addEventListener(a,function(){i._parentEl.matches(":hover")||i.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(i){switch(i){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 V4(){document.querySelectorAll("[data-dial-init]").forEach(function(t){var i=t.querySelector("[data-dial-toggle]");if(i){var s=i.getAttribute("data-dial-toggle"),a=document.getElementById(s);if(a){var r=i.getAttribute("data-dial-trigger");new ME(t,i,a,{triggerType:r||E_.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=ME,window.initDials=V4);function JO(){C4(),T4(),A4(),S4(),B4(),U4(),H4(),$4(),z4(),j4(),V4()}typeof window<"u"&&(window.initFlowbite=JO);var ZO=new GS("load",[C4,T4,A4,S4,B4,U4,H4,$4,z4,j4,V4]);ZO.init();const ek=Tt("div",{class:"tooltip-arrow","data-popper-arrow":""},null,-1),BE=mi({__name:"Tooltip",props:{placement:null},setup(t){const i=t,s=Yt(null),a=Yt(null),r=Hr(()=>i.placement??"auto");return La(()=>{if(s.value&&a.value){const e={placement:r.value,triggerType:"hover"};new W4(s.value,a.value,e)}}),(e,p)=>(Lr(),fn("div",null,[Tt("div",{ref_key:"tooltipTriggerEl",ref:a},[Fu(e.$slots,"default")],512),Tt("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":""},[Tt("div",null,[Fu(e.$slots,"popper")]),ek],512)]))}}),tk="0.31.1",UE="https://github.com/xcpcio/xcpcio",rk="3780dba57f";var Oa=(t=>(t.PENDING="PENDING",t.RUNNING="RUNNING",t.FROZEN="FROZEN",t.FINISHED="FINISHED",t.PAUSED="PAUSED",t))(Oa||{}),xt=(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.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))(xt||{});const kI={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",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"},nk={"mt-8":"","py-4":"","md:py-8":"","lg:py-10":"","w-full":"",flex:"","justify-center":"","items-center":""},ik={"text-center":"","w-full":""},sk=Tt("div",{"i-ion-balloon-sharp":"","mr-4":"","h-8":""},null,-1),ak=Tt("p",{"my-6":"","text-gray-500":"","dark:text-gray-400":"","w-full":"",flex:"","justify-center":""}," Open-source project of ICPC/CCPC Standings. ",-1),ok={"mb-6":"","w-full":"",flex:"","flex-wrap":"","items-center":"","justify-center":"","text-gray-900":"","dark:text-white":""},lk={"mr-4":"","md:mr-6":""},ck=["href"],uk={flex:"","justify-center":"","items-start":"","flex-col":""},fk={"mr-4":"","md:mr-6":""},hk=Tt("a",{href:"mailto:hi@dup4.com","hover:underline":""}," Contact ",-1),dk={flex:"","justify-center":"","items-start":"","flex-col":""},pk={"text-sm":"","text-gray-500":"","sm:text-center":"","dark:text-gray-400":"","w-full":""},mk=mi({__name:"Footer",setup(t){const i=Hr(()=>window?window.CDN_HOST:""),s=Hr(()=>window?window.DATA_HOST:""),a=Hr(()=>window?window.DATA_REGION:"");return(r,e)=>{const p=Ia("RouterLink"),_=BE;return Lr(),fn("footer",nk,[Tt("div",ik,[Er(p,{flex:"","items-center":"","justify-center":"","text-2xl":"","font-semibold":"","text-gray-900":"","dark:text-white":"",to:"/"},{default:Ei(()=>[sk,co(" Get more balloons ")]),_:1}),ak,Tt("ul",ok,[Tt("li",null,[Er(p,{to:"/","mr-4":"","md:mr-6":"","hover:underline":""},{default:Ei(()=>[co(" Home ")]),_:1})]),Tt("li",null,[Tt("div",lk,[Er(_,null,{popper:Ei(()=>[Tt("div",uk,[Tt("div",null,"Tag: "+ai(Qt(tk)),1),Tt("div",null,"Sha: "+ai(Qt(rk)),1)])]),default:Ei(()=>[Tt("a",{href:Qt(UE),"hover:underline":"",rel:"noreferrer",target:"_blank",title:"GitHub"}," GitHub ",8,ck)]),_:1})])]),Tt("li",null,[Tt("div",fk,[Er(_,null,{popper:Ei(()=>[Tt("div",dk,[Tt("div",null,"CDN Host: "+ai(Qt(i)),1),Tt("div",null,"DATA Host: "+ai(Qt(s)),1),Tt("div",null,"Data Region: "+ai(Qt(a)),1)])]),default:Ei(()=>[hk]),_:1})])])]),Tt("span",pk,[co("© 2020-PRESENT "),Er(p,{to:"/","hover:underline":""},{default:Ei(()=>[co("XCPCIO™")]),_:1}),co(". All Rights Reserved.")])])])}}});function ku(t){return Qg()?(V_(t),!0):!1}function Rb(){const t=new Set,i=r=>{t.delete(r)};return{on:r=>{t.add(r);const e=()=>i(r);return ku(e),{off:e}},off:i,trigger:r=>Promise.all(Array.from(t).map(e=>e(r)))}}function Yn(t){return typeof t=="function"?t():Qt(t)}const b2=typeof window<"u",gk=t=>typeof t<"u",vk=t=>t!=null,r0=()=>{};function bk(t,i){function s(...a){return new Promise((r,e)=>{Promise.resolve(t(()=>i.apply(this,a),{fn:i,thisArg:this,args:a})).then(r).catch(e)})}return s}const HE=t=>t();function _k(t=HE){const i=Yt(!0);function s(){i.value=!1}function a(){i.value=!0}const r=(...e)=>{i.value&&t(...e)};return{isActive:_0(i),pause:s,resume:a,eventFilter:r}}function qD(t,i=!1,s="Timeout"){return new Promise((a,r)=>{setTimeout(i?()=>r(s):a,t)})}function yk(t,...i){return i.some(s=>s in t)}function Bd(...t){if(t.length!==1)return Tw(...t);const i=t[0];return typeof i=="function"?_0(Z_(()=>({get:i,set:r0}))):Yt(i)}function Dk(t,i=!0){Ti()?La(t):i?t():vo(t)}function x_(t,i=!1){function s(A,{flush:k="sync",deep:I=!1,timeout:N,throwOnTimeout:M}={}){let V=null;const G=[new Promise(ne=>{V=bn(t,z=>{A(z)!==i&&(V==null||V(),ne(z))},{flush:k,deep:I,immediate:!0})})];return N!=null&&G.push(qD(N,M).then(()=>Yn(t)).finally(()=>V==null?void 0:V())),Promise.race(G)}function a(A,k){if(!rn(A))return s(z=>z===A,k);const{flush:I="sync",deep:N=!1,timeout:M,throwOnTimeout:V}=k??{};let U=null;const ne=[new Promise(z=>{U=bn([t,A],([H,Z])=>{i!==(H===Z)&&(U==null||U(),z(H))},{flush:I,deep:N,immediate:!0})})];return M!=null&&ne.push(qD(M,V).then(()=>Yn(t)).finally(()=>(U==null||U(),Yn(t)))),Promise.race(ne)}function r(A){return s(k=>!!k,A)}function e(A){return a(null,A)}function p(A){return a(void 0,A)}function _(A){return s(Number.isNaN,A)}function D(A,k){return s(I=>{const N=Array.from(I);return N.includes(A)||N.includes(Yn(A))},k)}function F(A){return T(1,A)}function T(A=1,k){let I=-1;return s(()=>(I+=1,I>=A),k)}return Array.isArray(Yn(t))?{toMatch:s,toContains:D,changed:F,changedTimes:T,get not(){return x_(t,!i)}}:{toMatch:s,toBe:a,toBeTruthy:r,toBeNull:e,toBeNaN:_,toBeUndefined:p,changed:F,changedTimes:T,get not(){return x_(t,!i)}}}function wk(t){return x_(t)}function $E(t,i,s={}){const{immediate:a=!0}=s,r=Yt(!1);let e=null;function p(){e&&(clearTimeout(e),e=null)}function _(){r.value=!1,p()}function D(...F){p(),r.value=!0,e=setTimeout(()=>{r.value=!1,e=null,t(...F)},Yn(i))}return a&&(r.value=!0,b2&&D()),ku(_),{isPending:_0(r),start:D,stop:_}}function Fk(t=!1,i={}){const{truthyValue:s=!0,falsyValue:a=!1}=i,r=rn(t),e=Yt(t);function p(_){if(arguments.length)return e.value=_,e.value;{const D=Yn(s);return e.value=e.value===D?Yn(a):D,e.value}}return r?p:[e,p]}var QD=Object.getOwnPropertySymbols,Ek=Object.prototype.hasOwnProperty,xk=Object.prototype.propertyIsEnumerable,Ck=(t,i)=>{var s={};for(var a in t)Ek.call(t,a)&&i.indexOf(a)<0&&(s[a]=t[a]);if(t!=null&&QD)for(var a of QD(t))i.indexOf(a)<0&&xk.call(t,a)&&(s[a]=t[a]);return s};function Tk(t,i,s={}){const a=s,{eventFilter:r=HE}=a,e=Ck(a,["eventFilter"]);return bn(t,bk(r,i),e)}var Ak=Object.defineProperty,Sk=Object.defineProperties,Ok=Object.getOwnPropertyDescriptors,Ig=Object.getOwnPropertySymbols,WE=Object.prototype.hasOwnProperty,zE=Object.prototype.propertyIsEnumerable,XD=(t,i,s)=>i in t?Ak(t,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[i]=s,kk=(t,i)=>{for(var s in i||(i={}))WE.call(i,s)&&XD(t,s,i[s]);if(Ig)for(var s of Ig(i))zE.call(i,s)&&XD(t,s,i[s]);return t},Rk=(t,i)=>Sk(t,Ok(i)),Pk=(t,i)=>{var s={};for(var a in t)WE.call(t,a)&&i.indexOf(a)<0&&(s[a]=t[a]);if(t!=null&&Ig)for(var a of Ig(t))i.indexOf(a)<0&&zE.call(t,a)&&(s[a]=t[a]);return s};function Ik(t,i,s={}){const a=s,{eventFilter:r}=a,e=Pk(a,["eventFilter"]),{eventFilter:p,pause:_,resume:D,isActive:F}=_k(r);return{stop:Tk(t,i,Rk(kk({},e),{eventFilter:p})),pause:_,resume:D,isActive:F}}function n0(t){var i;const s=Yn(t);return(i=s==null?void 0:s.$el)!=null?i:s}const pa=b2?window:void 0,Nk=b2?window.document:void 0,Lk=b2?window.navigator:void 0;function qo(...t){let i,s,a,r;if(typeof t[0]=="string"||Array.isArray(t[0])?([s,a,r]=t,i=pa):[i,s,a,r]=t,!i)return r0;Array.isArray(s)||(s=[s]),Array.isArray(a)||(a=[a]);const e=[],p=()=>{e.forEach(T=>T()),e.length=0},_=(T,A,k,I)=>(T.addEventListener(A,k,I),()=>T.removeEventListener(A,k,I)),D=bn(()=>[n0(i),Yn(r)],([T,A])=>{p(),T&&e.push(...s.flatMap(k=>a.map(I=>_(T,k,I,A))))},{immediate:!0,flush:"post"}),F=()=>{D(),p()};return ku(F),F}function Mk(t){return typeof t=="function"?t:typeof t=="string"?i=>i.key===t:Array.isArray(t)?i=>t.includes(i.key):()=>!0}function RI(...t){let i,s,a={};t.length===3?(i=t[0],s=t[1],a=t[2]):t.length===2?typeof t[1]=="object"?(i=!0,s=t[0],a=t[1]):(i=t[0],s=t[1]):(i=!0,s=t[0]);const{target:r=pa,eventName:e="keydown",passive:p=!1,dedupe:_=!1}=a,D=Mk(i);return qo(r,e,T=>{T.repeat&&Yn(_)||D(T)&&s(T)},p)}function Bk(){const t=Yt(!1);return Ti()&&La(()=>{t.value=!0}),t}function _2(t){const i=Bk();return Hr(()=>(i.value,!!t()))}function Uk(t,i={}){const{window:s=pa}=i,a=_2(()=>s&&"matchMedia"in s&&typeof s.matchMedia=="function");let r;const e=Yt(!1),p=F=>{e.value=F.matches},_=()=>{r&&("removeEventListener"in r?r.removeEventListener("change",p):r.removeListener(p))},D=i4(()=>{a.value&&(_(),r=s.matchMedia(Yn(t)),"addEventListener"in r?r.addEventListener("change",p):r.addListener(p),e.value=r.matches)});return ku(()=>{D(),_(),r=void 0}),e}function PI(t={}){const{navigator:i=Lk,read:s=!1,source:a,copiedDuring:r=1500,legacy:e=!1}=t,p=_2(()=>i&&"clipboard"in i),_=Hr(()=>p.value||e),D=Yt(""),F=Yt(!1),T=$E(()=>F.value=!1,r);function A(){p.value?i.clipboard.readText().then(M=>{D.value=M}):D.value=N()}_.value&&s&&qo(["copy","cut"],A);async function k(M=Yn(a)){_.value&&M!=null&&(p.value?await i.clipboard.writeText(M):I(M),D.value=M,F.value=!0,T.start())}function I(M){const V=document.createElement("textarea");V.value=M??"",V.style.position="absolute",V.style.opacity="0",document.body.appendChild(V),V.select(),document.execCommand("copy"),V.remove()}function N(){var M,V,U;return(U=(V=(M=document==null?void 0:document.getSelection)==null?void 0:M.call(document))==null?void 0:V.toString())!=null?U:""}return{isSupported:_,text:D,copied:F,copy:k}}function Hk(t){return JSON.parse(JSON.stringify(t))}const Zm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},eg="__vueuse_ssr_handlers__",$k=Wk();function Wk(){return eg in Zm||(Zm[eg]=Zm[eg]||{}),Zm[eg]}function jE(t,i){return $k[t]||i}function zk(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 jk=Object.defineProperty,JD=Object.getOwnPropertySymbols,Vk=Object.prototype.hasOwnProperty,Gk=Object.prototype.propertyIsEnumerable,ZD=(t,i,s)=>i in t?jk(t,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[i]=s,e3=(t,i)=>{for(var s in i||(i={}))Vk.call(i,s)&&ZD(t,s,i[s]);if(JD)for(var s of JD(i))Gk.call(i,s)&&ZD(t,s,i[s]);return t};const Yk={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()}},t3="vueuse-storage";function Kk(t,i,s,a={}){var r;const{flush:e="pre",deep:p=!0,listenToStorageChanges:_=!0,writeDefaults:D=!0,mergeDefaults:F=!1,shallow:T,window:A=pa,eventFilter:k,onError:I=re=>{console.error(re)}}=a,N=(T?Zf:Yt)(i);if(!s)try{s=jE("getDefaultStorage",()=>{var re;return(re=pa)==null?void 0:re.localStorage})()}catch(re){I(re)}if(!s)return N;const M=Yn(i),V=zk(M),U=(r=a.serializer)!=null?r:Yk[V],{pause:G,resume:ne}=Ik(N,()=>z(N.value),{flush:e,deep:p,eventFilter:k});return A&&_&&(qo(A,"storage",ee),qo(A,t3,Z)),ee(),N;function z(re){try{if(re==null)s.removeItem(t);else{const te=U.write(re),ae=s.getItem(t);ae!==te&&(s.setItem(t,te),A&&A.dispatchEvent(new CustomEvent(t3,{detail:{key:t,oldValue:ae,newValue:te,storageArea:s}})))}}catch(te){I(te)}}function H(re){const te=re?re.newValue:s.getItem(t);if(te==null)return D&&M!==null&&s.setItem(t,U.write(M)),M;if(!re&&F){const ae=U.read(te);return typeof F=="function"?F(ae,M):V==="object"&&!Array.isArray(ae)?e3(e3({},M),ae):ae}else return typeof te!="string"?te:U.read(te)}function Z(re){ee(re.detail)}function ee(re){if(!(re&&re.storageArea!==s)){if(re&&re.key==null){N.value=M;return}if(!(re&&re.key!==t)){G();try{N.value=H(re)}catch(te){I(te)}finally{re?vo(ne):ne()}}}}}function VE(t){return Uk("(prefers-color-scheme: dark)",t)}var qk=Object.defineProperty,r3=Object.getOwnPropertySymbols,Qk=Object.prototype.hasOwnProperty,Xk=Object.prototype.propertyIsEnumerable,n3=(t,i,s)=>i in t?qk(t,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[i]=s,Jk=(t,i)=>{for(var s in i||(i={}))Qk.call(i,s)&&n3(t,s,i[s]);if(r3)for(var s of r3(i))Xk.call(i,s)&&n3(t,s,i[s]);return t};function Zk(t={}){const{selector:i="html",attribute:s="class",initialValue:a="auto",window:r=pa,storage:e,storageKey:p="vueuse-color-scheme",listenToStorageChanges:_=!0,storageRef:D,emitAuto:F,disableTransition:T=!0}=t,A=Jk({auto:"",light:"light",dark:"dark"},t.modes||{}),k=VE({window:r}),I=Hr(()=>k.value?"dark":"light"),N=D||(p==null?Bd(a):Kk(p,a,e,{window:r,listenToStorageChanges:_})),M=Hr(()=>N.value==="auto"?I.value:N.value),V=jE("updateHTMLAttrs",(z,H,Z)=>{const ee=typeof z=="string"?r==null?void 0:r.document.querySelector(z):n0(z);if(!ee)return;let re;if(T){re=r.document.createElement("style");const te="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";re.appendChild(document.createTextNode(te)),r.document.head.appendChild(re)}if(H==="class"){const te=Z.split(/\s/g);Object.values(A).flatMap(ae=>(ae||"").split(/\s/g)).filter(Boolean).forEach(ae=>{te.includes(ae)?ee.classList.add(ae):ee.classList.remove(ae)})}else ee.setAttribute(H,Z);T&&(r.getComputedStyle(re).opacity,document.head.removeChild(re))});function U(z){var H;V(i,s,(H=A[z])!=null?H:z)}function G(z){t.onChanged?t.onChanged(z,U):U(z)}bn(M,G,{flush:"post",immediate:!0}),Dk(()=>G(M.value));const ne=Hr({get(){return F?N.value:M.value},set(z){N.value=z}});try{return Object.assign(ne,{store:N,system:I,state:M})}catch{return ne}}var i3=Object.getOwnPropertySymbols,e7=Object.prototype.hasOwnProperty,t7=Object.prototype.propertyIsEnumerable,r7=(t,i)=>{var s={};for(var a in t)e7.call(t,a)&&i.indexOf(a)<0&&(s[a]=t[a]);if(t!=null&&i3)for(var a of i3(t))i.indexOf(a)<0&&t7.call(t,a)&&(s[a]=t[a]);return s};function n7(t,i,s={}){const a=s,{window:r=pa}=a,e=r7(a,["window"]);let p;const _=_2(()=>r&&"MutationObserver"in r),D=()=>{p&&(p.disconnect(),p=void 0)},F=bn(()=>n0(t),A=>{D(),_.value&&r&&A&&(p=new MutationObserver(i),p.observe(A,e))},{immediate:!0}),T=()=>{D(),F()};return ku(T),{isSupported:_,stop:T}}var i7=Object.defineProperty,s7=Object.defineProperties,a7=Object.getOwnPropertyDescriptors,s3=Object.getOwnPropertySymbols,o7=Object.prototype.hasOwnProperty,l7=Object.prototype.propertyIsEnumerable,a3=(t,i,s)=>i in t?i7(t,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[i]=s,c7=(t,i)=>{for(var s in i||(i={}))o7.call(i,s)&&a3(t,s,i[s]);if(s3)for(var s of s3(i))l7.call(i,s)&&a3(t,s,i[s]);return t},u7=(t,i)=>s7(t,a7(i));function f7(t={}){const{valueDark:i="dark",valueLight:s=""}=t,a=Zk(u7(c7({},t),{onChanged:(e,p)=>{var _;t.onChanged?(_=t.onChanged)==null||_.call(t,e==="dark",p,e):p(e)},modes:{dark:i,light:s}}));return Hr({get(){return a.value==="dark"},set(e){const p=e?"dark":"light";a.system.value===p?a.value="auto":a.value=p}})}function h7(t,i,s={}){const{root:a,rootMargin:r="0px",threshold:e=.1,window:p=pa,immediate:_=!0}=s,D=_2(()=>p&&"IntersectionObserver"in p),F=Hr(()=>{const N=Yn(t);return(Array.isArray(N)?N:[N]).map(n0).filter(vk)});let T=r0;const A=Yt(_),k=D.value?bn(()=>[F.value,n0(a),A.value],([N,M])=>{if(T(),!A.value||!N.length)return;const V=new IntersectionObserver(i,{root:n0(M),rootMargin:r,threshold:e});N.forEach(U=>U&&V.observe(U)),T=()=>{V.disconnect(),T=r0}},{immediate:_,flush:"post"}):r0,I=()=>{T(),k(),A.value=!1};return ku(I),{isSupported:D,isActive:A,pause(){T(),A.value=!1},resume(){A.value=!0},stop:I}}function d7(t,{window:i=pa,scrollTarget:s}={}){const a=Yt(!1);return h7(t,([{isIntersecting:r}])=>{a.value=r},{root:s,window:i}),a}var p7=Object.defineProperty,m7=Object.defineProperties,g7=Object.getOwnPropertyDescriptors,o3=Object.getOwnPropertySymbols,v7=Object.prototype.hasOwnProperty,b7=Object.prototype.propertyIsEnumerable,l3=(t,i,s)=>i in t?p7(t,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[i]=s,gs=(t,i)=>{for(var s in i||(i={}))v7.call(i,s)&&l3(t,s,i[s]);if(o3)for(var s of o3(i))b7.call(i,s)&&l3(t,s,i[s]);return t},yd=(t,i)=>m7(t,g7(i));const _7={json:"application/json",text:"text/plain"};function c3(t){return t&&yk(t,"immediate","refetch","initialData","timeout","beforeFetch","afterFetch","onFetchError","fetch")}function Pb(t){return typeof Headers<"u"&&t instanceof Headers?Object.fromEntries([...t.entries()]):t}function y7(t,...i){var s;const a=typeof AbortController=="function";let r={},e={immediate:!0,refetch:!1,timeout:0};const p={method:"GET",type:"text",payload:void 0};i.length>0&&(c3(i[0])?e=gs(gs({},e),i[0]):r=i[0]),i.length>1&&c3(i[1])&&(e=gs(gs({},e),i[1]));const{fetch:_=(s=pa)==null?void 0:s.fetch,initialData:D,timeout:F}=e,T=Rb(),A=Rb(),k=Rb(),I=Yt(!1),N=Yt(!1),M=Yt(!1),V=Yt(null),U=Zf(null),G=Zf(null),ne=Zf(D||null),z=Hr(()=>a&&N.value);let H,Z;const ee=()=>{a&&(H==null||H.abort(),H=new AbortController,H.signal.onabort=()=>M.value=!0,r=yd(gs({},r),{signal:H.signal}))},re=Ne=>{N.value=Ne,I.value=!Ne};F&&(Z=$E(ee,F,{immediate:!1}));const te=async(Ne=!1)=>{var We;ee(),re(!0),G.value=null,V.value=null,M.value=!1;const Se={method:p.method,headers:{}};if(p.payload){const he=Pb(Se.headers),He=Yn(p.payload);!p.payloadType&&He&&Object.getPrototypeOf(He)===Object.prototype&&!(He instanceof FormData)&&(p.payloadType="json"),p.payloadType&&(he["Content-Type"]=(We=_7[p.payloadType])!=null?We:p.payloadType),Se.body=p.payloadType==="json"?JSON.stringify(He):He}let lt=!1;const at={url:Yn(t),options:gs(gs({},Se),r),cancel:()=>{lt=!0}};if(e.beforeFetch&&Object.assign(at,await e.beforeFetch(at)),lt||!_)return re(!1),Promise.resolve(null);let ze=null;return Z&&Z.start(),new Promise((he,He)=>{var Je;_(at.url,yd(gs(gs({},Se),at.options),{headers:gs(gs({},Pb(Se.headers)),Pb((Je=at.options)==null?void 0:Je.headers))})).then(async Ue=>{if(U.value=Ue,V.value=Ue.status,ze=await Ue[p.type](),!Ue.ok)throw ne.value=D||null,new Error(Ue.statusText);return e.afterFetch&&({data:ze}=await e.afterFetch({data:ze,response:Ue})),ne.value=ze,T.trigger(Ue),he(Ue)}).catch(async Ue=>{let be=Ue.message||Ue.name;return e.onFetchError&&({error:be}=await e.onFetchError({data:ze,error:Ue,response:U.value})),G.value=be,A.trigger(Ue),Ne?He(Ue):he(null)}).finally(()=>{re(!1),Z&&Z.stop(),k.trigger(null)})})},ae=Bd(e.refetch);bn([ae,Bd(t)],([Ne])=>Ne&&te(),{deep:!0});const ve={isFinished:I,statusCode:V,response:U,error:G,data:ne,isFetching:N,canAbort:z,aborted:M,abort:ee,execute:te,onFetchResponse:T.on,onFetchError:A.on,onFetchFinally:k.on,get:Ae("GET"),put:Ae("PUT"),post:Ae("POST"),delete:Ae("DELETE"),patch:Ae("PATCH"),head:Ae("HEAD"),options:Ae("OPTIONS"),json:ge("json"),text:ge("text"),blob:ge("blob"),arrayBuffer:ge("arrayBuffer"),formData:ge("formData")};function Ae(Ne){return(We,Se)=>{if(!N.value)return p.method=Ne,p.payload=We,p.payloadType=Se,rn(p.payload)&&bn([ae,Bd(p.payload)],([lt])=>lt&&te(),{deep:!0}),yd(gs({},ve),{then(lt,at){return De().then(lt,at)}})}}function De(){return new Promise((Ne,We)=>{wk(I).toBe(!0).then(()=>Ne(ve)).catch(Se=>We(Se))})}function ge(Ne){return()=>{if(!N.value)return p.type=Ne,yd(gs({},ve),{then(We,Se){return De().then(We,Se)}})}}return e.immediate&&Promise.resolve().then(()=>te()),yd(gs({},ve),{then(Ne,We){return De().then(Ne,We)}})}const D7={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function II(t={}){const{reactive:i=!1,target:s=pa,aliasMap:a=D7,passive:r=!0,onEventFired:e=r0}=t,p=Jl(new Set),_={toJSON(){return{}},current:p},D=i?Jl(_):_,F=new Set,T=new Set;function A(M,V){M in D&&(i?D[M]=V:D[M].value=V)}function k(){p.clear();for(const M of T)A(M,!1)}function I(M,V){var U,G;const ne=(U=M.key)==null?void 0:U.toLowerCase(),H=[(G=M.code)==null?void 0:G.toLowerCase(),ne].filter(Boolean);ne&&(V?p.add(ne):p.delete(ne));for(const Z of H)T.add(Z),A(Z,V);ne==="meta"&&!V?(F.forEach(Z=>{p.delete(Z),A(Z,!1)}),F.clear()):typeof M.getModifierState=="function"&&M.getModifierState("Meta")&&V&&[...p,...H].forEach(Z=>F.add(Z))}qo(s,"keydown",M=>(I(M,!0),e(M)),{passive:r}),qo(s,"keyup",M=>(I(M,!1),e(M)),{passive:r}),qo("blur",k,{passive:!0}),qo("focus",k,{passive:!0});const N=new Proxy(D,{get(M,V,U){if(typeof V!="string")return Reflect.get(M,V,U);if(V=V.toLowerCase(),V in a&&(V=a[V]),!(V in D))if(/[+_-]/.test(V)){const ne=V.split(/[+_-]/g).map(z=>z.trim());D[V]=Hr(()=>ne.every(z=>Yn(N[z])))}else D[V]=Yt(!1);const G=Reflect.get(M,V,U);return i?Yn(G):G}});return N}function w7(t=null,i={}){var s,a;const{document:r=Nk}=i,e=Bd((s=t??(r==null?void 0:r.title))!=null?s:null),p=t&&typeof t=="function";function _(D){if(!("titleTemplate"in i))return D;const F=i.titleTemplate||"%s";return typeof F=="function"?F(D):Yn(F).replace(/%s/g,D)}return bn(e,(D,F)=>{D!==F&&r&&(r.title=_(typeof D=="string"?D:""))},{immediate:!0}),i.observe&&!i.titleTemplate&&r&&!p&&n7((a=r.head)==null?void 0:a.querySelector("title"),()=>{r&&r.title!==e.value&&(e.value=_(r.title))},{childList:!0}),e}function u3(t,i,s,a={}){var r,e,p;const{clone:_=!1,passive:D=!1,eventName:F,deep:T=!1,defaultValue:A,shouldEmit:k}=a,I=Ti(),N=s||(I==null?void 0:I.emit)||((r=I==null?void 0:I.$emit)==null?void 0:r.bind(I))||((p=(e=I==null?void 0:I.proxy)==null?void 0:e.$emit)==null?void 0:p.bind(I==null?void 0:I.proxy));let M=F;i||(i="modelValue"),M=M||`update:${i.toString()}`;const V=ne=>_?typeof _=="function"?_(ne):Hk(ne):ne,U=()=>gk(t[i])?V(t[i]):A,G=ne=>{k?k(ne)&&N(M,ne):N(M,ne)};if(D){const ne=U(),z=Yt(ne);return bn(()=>t[i],H=>z.value=V(H)),bn(z,H=>{(H!==t[i]||T)&&G(H)},{deep:T}),z}else return Hr({get(){return U()},set(ne){G(ne)}})}function F7({window:t=pa}={}){if(!t)return{x:Yt(0),y:Yt(0)};const i=Yt(t.scrollX),s=Yt(t.scrollY);return qo(t,"scroll",()=>{i.value=t.scrollX,s.value=t.scrollY},{capture:!1,passive:!0}),{x:i,y:s}}const GE=f7(),E7=Fk(GE),x7=VE(),D0=t=>(s2("data-v-a79e7085"),t=t(),a2(),t),C7=D0(()=>Tt("div",{"i-ri-arrow-up-line":""},null,-1)),T7=[C7],A7=D0(()=>Tt("div",{class:"spacer"},null,-1)),S7={class:"right","print:op0":""},O7=D0(()=>Tt("div",{"i-ion-balloon-sharp":""},null,-1)),k7=["title"],R7=D0(()=>Tt("div",{"i-carbon-language":""},null,-1)),P7=[R7],I7=["title"],N7=D0(()=>Tt("div",{i:"carbon-sun dark:carbon-moon"},null,-1)),L7=[N7],M7=["href"],B7=D0(()=>Tt("div",{"i-carbon-logo-github":""},null,-1)),U7=[B7],H7=mi({__name:"NavBar",props:{width:null},setup(t){const i=t,{t:s,locale:a}=y0(),{y:r}=F7();function e(){window.scrollTo({top:0,behavior:"smooth"})}async function p(){const _=qF,D=_[(_.indexOf(a.value)+1)%_.length];await F4(D),a.value=D}return(_,D)=>{const F=Ia("RouterLink");return Lr(),fn("header",{class:ns(["header z-40",[(i==null?void 0:i.width)??""]])},[Tt("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:ns(Qt(r)>300?"op30":"op0! pointer-events-none"),onClick:D[0]||(D[0]=T=>e())},T7,2),Tt("nav",{class:ns(["nav",[i!=null&&i.width?"":"fixed"]]),"text-xl":""},[A7,Tt("div",S7,[Er(F,{"icon-btn":"",title:Qt(s)("button.home"),to:"/",focusable:"false"},{default:Ei(()=>[O7]),_:1},8,["title"]),Tt("a",{"icon-btn":"",title:Qt(s)("button.toggle_langs"),onClick:D[1]||(D[1]=T=>p())},P7,8,k7),Tt("a",{"icon-btn":"",title:Qt(s)("button.toggle_dark"),onClick:D[2]||(D[2]=T=>("toggleDark"in _?_.toggleDark:Qt(E7))())},L7,8,I7),Tt("a",{"icon-btn":"",rel:"noreferrer",href:Qt(UE),target:"_blank",title:"GitHub"},U7,8,M7)])],2)],2)}}});const w0=(t,i)=>{const s=t.__vccOpts||t;for(const[a,r]of i)s[a]=r;return s},$7=w0(H7,[["__scopeId","data-v-a79e7085"]]),W7={},z7={"py-10":"","text-gray-700":"","dark:text-gray-200":""};function j7(t,i){const s=$7,a=Ia("RouterView"),r=mk;return Lr(),fn(Gn,null,[Er(s),Tt("main",z7,[Er(a),Er(r)])],64)}const V7=w0(W7,[["render",j7]]),G7={"board-layout":()=>bs(()=>import("./board-layout-5590c53f.js"),[],import.meta.url),default:V7,headless:()=>bs(()=>import("./headless-94485ccd.js"),[],import.meta.url),home:()=>bs(()=>import("./home-e847177d.js"),[],import.meta.url),"index-layout":()=>bs(()=>import("./index-layout-3f26f613.js"),[],import.meta.url)};function Y7(t){return t.map(i=>{var s;return{path:i.path,meta:i.meta,component:G7[((s=i.meta)==null?void 0:s.layout)||"default"],children:i.path==="/"?[i]:[{...i,path:""}]}})}const K7=["top","right","bottom","left"],f3=["start","end"],h3=K7.reduce((t,i)=>t.concat(i,i+"-"+f3[0],i+"-"+f3[1]),[]),n1=Math.min,cu=Math.max,q7={left:"right",right:"left",bottom:"top",top:"bottom"},Q7={start:"end",end:"start"};function C_(t,i,s){return cu(t,n1(i,s))}function Ru(t,i){return typeof t=="function"?t(i):t}function go(t){return t.split("-")[0]}function Pa(t){return t.split("-")[1]}function YE(t){return t==="x"?"y":"x"}function G4(t){return t==="y"?"height":"width"}function v1(t){return["top","bottom"].includes(go(t))?"y":"x"}function Y4(t){return YE(v1(t))}function KE(t,i,s){s===void 0&&(s=!1);const a=Pa(t),r=Y4(t),e=G4(r);let p=r==="x"?a===(s?"end":"start")?"right":"left":a==="start"?"bottom":"top";return i.reference[e]>i.floating[e]&&(p=Lg(p)),[p,Lg(p)]}function X7(t){const i=Lg(t);return[Ng(t),i,Ng(i)]}function Ng(t){return t.replace(/start|end/g,i=>Q7[i])}function J7(t,i,s){const a=["left","right"],r=["right","left"],e=["top","bottom"],p=["bottom","top"];switch(t){case"top":case"bottom":return s?i?r:a:i?a:r;case"left":case"right":return i?e:p;default:return[]}}function Z7(t,i,s,a){const r=Pa(t);let e=J7(go(t),s==="start",a);return r&&(e=e.map(p=>p+"-"+r),i&&(e=e.concat(e.map(Ng)))),e}function Lg(t){return t.replace(/left|right|bottom|top/g,i=>q7[i])}function e9(t){return{top:0,right:0,bottom:0,left:0,...t}}function qE(t){return typeof t!="number"?e9(t):{top:t,right:t,bottom:t,left:t}}function Ud(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function d3(t,i,s){let{reference:a,floating:r}=t;const e=v1(i),p=Y4(i),_=G4(p),D=go(i),F=e==="y",T=a.x+a.width/2-r.width/2,A=a.y+a.height/2-r.height/2,k=a[_]/2-r[_]/2;let I;switch(D){case"top":I={x:T,y:a.y-r.height};break;case"bottom":I={x:T,y:a.y+a.height};break;case"right":I={x:a.x+a.width,y:A};break;case"left":I={x:a.x-r.width,y:A};break;default:I={x:a.x,y:a.y}}switch(Pa(i)){case"start":I[p]-=k*(s&&F?-1:1);break;case"end":I[p]+=k*(s&&F?-1:1);break}return I}const t9=async(t,i,s)=>{const{placement:a="bottom",strategy:r="absolute",middleware:e=[],platform:p}=s,_=e.filter(Boolean),D=await(p.isRTL==null?void 0:p.isRTL(i));let F=await p.getElementRects({reference:t,floating:i,strategy:r}),{x:T,y:A}=d3(F,a,D),k=a,I={},N=0;for(let M=0;M<_.length;M++){const{name:V,fn:U}=_[M],{x:G,y:ne,data:z,reset:H}=await U({x:T,y:A,initialPlacement:a,placement:k,strategy:r,middlewareData:I,rects:F,platform:p,elements:{reference:t,floating:i}});if(T=G??T,A=ne??A,I={...I,[V]:{...I[V],...z}},H&&N<=50){N++,typeof H=="object"&&(H.placement&&(k=H.placement),H.rects&&(F=H.rects===!0?await p.getElementRects({reference:t,floating:i,strategy:r}):H.rects),{x:T,y:A}=d3(F,k,D)),M=-1;continue}}return{x:T,y:A,placement:k,strategy:r,middlewareData:I}};async function y2(t,i){var s;i===void 0&&(i={});const{x:a,y:r,platform:e,rects:p,elements:_,strategy:D}=t,{boundary:F="clippingAncestors",rootBoundary:T="viewport",elementContext:A="floating",altBoundary:k=!1,padding:I=0}=Ru(i,t),N=qE(I),V=_[k?A==="floating"?"reference":"floating":A],U=Ud(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:F,rootBoundary:T,strategy:D})),G=A==="floating"?{...p.floating,x:a,y:r}:p.reference,ne=await(e.getOffsetParent==null?void 0:e.getOffsetParent(_.floating)),z=await(e.isElement==null?void 0:e.isElement(ne))?await(e.getScale==null?void 0:e.getScale(ne))||{x:1,y:1}:{x:1,y:1},H=Ud(e.convertOffsetParentRelativeRectToViewportRelativeRect?await e.convertOffsetParentRelativeRectToViewportRelativeRect({rect:G,offsetParent:ne,strategy:D}):G);return{top:(U.top-H.top+N.top)/z.y,bottom:(H.bottom-U.bottom+N.bottom)/z.y,left:(U.left-H.left+N.left)/z.x,right:(H.right-U.right+N.right)/z.x}}const r9=t=>({name:"arrow",options:t,async fn(i){const{x:s,y:a,placement:r,rects:e,platform:p,elements:_}=i,{element:D,padding:F=0}=Ru(t,i)||{};if(D==null)return{};const T=qE(F),A={x:s,y:a},k=Y4(r),I=G4(k),N=await p.getDimensions(D),M=k==="y",V=M?"top":"left",U=M?"bottom":"right",G=M?"clientHeight":"clientWidth",ne=e.reference[I]+e.reference[k]-A[k]-e.floating[I],z=A[k]-e.reference[k],H=await(p.getOffsetParent==null?void 0:p.getOffsetParent(D));let Z=H?H[G]:0;(!Z||!await(p.isElement==null?void 0:p.isElement(H)))&&(Z=_.floating[G]||e.floating[I]);const ee=ne/2-z/2,re=Z/2-N[I]/2-1,te=n1(T[V],re),ae=n1(T[U],re),ve=te,Ae=Z-N[I]-ae,De=Z/2-N[I]/2+ee,ge=C_(ve,De,Ae),We=Pa(r)!=null&&De!=ge&&e.reference[I]/2-(De<ve?te:ae)-N[I]/2<0?De<ve?ve-De:Ae-De:0;return{[k]:A[k]-We,data:{[k]:ge,centerOffset:De-ge+We}}}});function n9(t,i,s){return(t?[...s.filter(r=>Pa(r)===t),...s.filter(r=>Pa(r)!==t)]:s.filter(r=>go(r)===r)).filter(r=>t?Pa(r)===t||(i?Ng(r)!==r:!1):!0)}const i9=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(i){var s,a,r;const{rects:e,middlewareData:p,placement:_,platform:D,elements:F}=i,{crossAxis:T=!1,alignment:A,allowedPlacements:k=h3,autoAlignment:I=!0,...N}=Ru(t,i),M=A!==void 0||k===h3?n9(A||null,I,k):k,V=await y2(i,N),U=((s=p.autoPlacement)==null?void 0:s.index)||0,G=M[U];if(G==null)return{};const ne=KE(G,e,await(D.isRTL==null?void 0:D.isRTL(F.floating)));if(_!==G)return{reset:{placement:M[0]}};const z=[V[go(G)],V[ne[0]],V[ne[1]]],H=[...((a=p.autoPlacement)==null?void 0:a.overflows)||[],{placement:G,overflows:z}],Z=M[U+1];if(Z)return{data:{index:U+1,overflows:H},reset:{placement:Z}};const ee=H.map(ae=>{const ve=Pa(ae.placement);return[ae.placement,ve&&T?ae.overflows.slice(0,2).reduce((Ae,De)=>Ae+De,0):ae.overflows[0],ae.overflows]}).sort((ae,ve)=>ae[1]-ve[1]),te=((r=ee.filter(ae=>ae[2].slice(0,Pa(ae[0])?2:3).every(ve=>ve<=0))[0])==null?void 0:r[0])||ee[0][0];return te!==_?{data:{index:U+1,overflows:H},reset:{placement:te}}:{}}}},s9=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(i){var s;const{placement:a,middlewareData:r,rects:e,initialPlacement:p,platform:_,elements:D}=i,{mainAxis:F=!0,crossAxis:T=!0,fallbackPlacements:A,fallbackStrategy:k="bestFit",fallbackAxisSideDirection:I="none",flipAlignment:N=!0,...M}=Ru(t,i),V=go(a),U=go(p)===p,G=await(_.isRTL==null?void 0:_.isRTL(D.floating)),ne=A||(U||!N?[Lg(p)]:X7(p));!A&&I!=="none"&&ne.push(...Z7(p,N,I,G));const z=[p,...ne],H=await y2(i,M),Z=[];let ee=((s=r.flip)==null?void 0:s.overflows)||[];if(F&&Z.push(H[V]),T){const ve=KE(a,e,G);Z.push(H[ve[0]],H[ve[1]])}if(ee=[...ee,{placement:a,overflows:Z}],!Z.every(ve=>ve<=0)){var re,te;const ve=(((re=r.flip)==null?void 0:re.index)||0)+1,Ae=z[ve];if(Ae)return{data:{index:ve,overflows:ee},reset:{placement:Ae}};let De=(te=ee.filter(ge=>ge.overflows[0]<=0).sort((ge,Ne)=>ge.overflows[1]-Ne.overflows[1])[0])==null?void 0:te.placement;if(!De)switch(k){case"bestFit":{var ae;const ge=(ae=ee.map(Ne=>[Ne.placement,Ne.overflows.filter(We=>We>0).reduce((We,Se)=>We+Se,0)]).sort((Ne,We)=>Ne[1]-We[1])[0])==null?void 0:ae[0];ge&&(De=ge);break}case"initialPlacement":De=p;break}if(a!==De)return{reset:{placement:De}}}return{}}}};async function a9(t,i){const{placement:s,platform:a,elements:r}=t,e=await(a.isRTL==null?void 0:a.isRTL(r.floating)),p=go(s),_=Pa(s),D=v1(s)==="y",F=["left","top"].includes(p)?-1:1,T=e&&D?-1:1,A=Ru(i,t);let{mainAxis:k,crossAxis:I,alignmentAxis:N}=typeof A=="number"?{mainAxis:A,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...A};return _&&typeof N=="number"&&(I=_==="end"?N*-1:N),D?{x:I*T,y:k*F}:{x:k*F,y:I*T}}const o9=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(i){const{x:s,y:a}=i,r=await a9(i,t);return{x:s+r.x,y:a+r.y,data:r}}}},l9=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(i){const{x:s,y:a,placement:r}=i,{mainAxis:e=!0,crossAxis:p=!1,limiter:_={fn:V=>{let{x:U,y:G}=V;return{x:U,y:G}}},...D}=Ru(t,i),F={x:s,y:a},T=await y2(i,D),A=v1(go(r)),k=YE(A);let I=F[k],N=F[A];if(e){const V=k==="y"?"top":"left",U=k==="y"?"bottom":"right",G=I+T[V],ne=I-T[U];I=C_(G,I,ne)}if(p){const V=A==="y"?"top":"left",U=A==="y"?"bottom":"right",G=N+T[V],ne=N-T[U];N=C_(G,N,ne)}const M=_.fn({...i,[k]:I,[A]:N});return{...M,data:{x:M.x-s,y:M.y-a}}}}},c9=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(i){const{placement:s,rects:a,platform:r,elements:e}=i,{apply:p=()=>{},..._}=Ru(t,i),D=await y2(i,_),F=go(s),T=Pa(s),A=v1(s)==="y",{width:k,height:I}=a.floating;let N,M;F==="top"||F==="bottom"?(N=F,M=T===(await(r.isRTL==null?void 0:r.isRTL(e.floating))?"start":"end")?"left":"right"):(M=F,N=T==="end"?"top":"bottom");const V=I-D[N],U=k-D[M],G=!i.middlewareData.shift;let ne=V,z=U;if(A){const Z=k-D.left-D.right;z=T||G?n1(U,Z):Z}else{const Z=I-D.top-D.bottom;ne=T||G?n1(V,Z):Z}if(G&&!T){const Z=cu(D.left,0),ee=cu(D.right,0),re=cu(D.top,0),te=cu(D.bottom,0);A?z=k-2*(Z!==0||ee!==0?Z+ee:cu(D.left,D.right)):ne=I-2*(re!==0||te!==0?re+te:cu(D.top,D.bottom))}await p({...i,availableWidth:z,availableHeight:ne});const H=await r.getDimensions(e.floating);return k!==H.width||I!==H.height?{reset:{rects:!0}}:{}}}};function ca(t){var i;return((i=t.ownerDocument)==null?void 0:i.defaultView)||window}function fo(t){return ca(t).getComputedStyle(t)}const p3=Math.min,Hd=Math.max,Mg=Math.round;function QE(t){const i=fo(t);let s=parseFloat(i.width),a=parseFloat(i.height);const r=t.offsetWidth,e=t.offsetHeight,p=Mg(s)!==r||Mg(a)!==e;return p&&(s=r,a=e),{width:s,height:a,fallback:p}}function nc(t){return JE(t)?(t.nodeName||"").toLowerCase():""}let tg;function XE(){if(tg)return tg;const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?(tg=t.brands.map(i=>i.brand+"/"+i.version).join(" "),tg):navigator.userAgent}function ho(t){return t instanceof ca(t).HTMLElement}function Kl(t){return t instanceof ca(t).Element}function JE(t){return t instanceof ca(t).Node}function m3(t){return typeof ShadowRoot>"u"?!1:t instanceof ca(t).ShadowRoot||t instanceof ShadowRoot}function D2(t){const{overflow:i,overflowX:s,overflowY:a,display:r}=fo(t);return/auto|scroll|overlay|hidden|clip/.test(i+a+s)&&!["inline","contents"].includes(r)}function u9(t){return["table","td","th"].includes(nc(t))}function T_(t){const i=/firefox/i.test(XE()),s=fo(t),a=s.backdropFilter||s.WebkitBackdropFilter;return s.transform!=="none"||s.perspective!=="none"||!!a&&a!=="none"||i&&s.willChange==="filter"||i&&!!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 ZE(){return!/^((?!chrome|android).)*safari/i.test(XE())}function K4(t){return["html","body","#document"].includes(nc(t))}function e6(t){return Kl(t)?t:t.contextElement}const t6={x:1,y:1};function i0(t){const i=e6(t);if(!ho(i))return t6;const s=i.getBoundingClientRect(),{width:a,height:r,fallback:e}=QE(i);let p=(e?Mg(s.width):s.width)/a,_=(e?Mg(s.height):s.height)/r;return p&&Number.isFinite(p)||(p=1),_&&Number.isFinite(_)||(_=1),{x:p,y:_}}function i1(t,i,s,a){var r,e;i===void 0&&(i=!1),s===void 0&&(s=!1);const p=t.getBoundingClientRect(),_=e6(t);let D=t6;i&&(a?Kl(a)&&(D=i0(a)):D=i0(t));const F=_?ca(_):window,T=!ZE()&&s;let A=(p.left+(T&&((r=F.visualViewport)==null?void 0:r.offsetLeft)||0))/D.x,k=(p.top+(T&&((e=F.visualViewport)==null?void 0:e.offsetTop)||0))/D.y,I=p.width/D.x,N=p.height/D.y;if(_){const M=ca(_),V=a&&Kl(a)?ca(a):a;let U=M.frameElement;for(;U&&a&&V!==M;){const G=i0(U),ne=U.getBoundingClientRect(),z=getComputedStyle(U);ne.x+=(U.clientLeft+parseFloat(z.paddingLeft))*G.x,ne.y+=(U.clientTop+parseFloat(z.paddingTop))*G.y,A*=G.x,k*=G.y,I*=G.x,N*=G.y,A+=ne.x,k+=ne.y,U=ca(U).frameElement}}return{width:I,height:N,top:k,right:A+I,bottom:k+N,left:A,x:A,y:k}}function ql(t){return((JE(t)?t.ownerDocument:t.document)||window.document).documentElement}function w2(t){return Kl(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function r6(t){return i1(ql(t)).left+w2(t).scrollLeft}function s1(t){if(nc(t)==="html")return t;const i=t.assignedSlot||t.parentNode||m3(t)&&t.host||ql(t);return m3(i)?i.host:i}function n6(t){const i=s1(t);return K4(i)?i.ownerDocument.body:ho(i)&&D2(i)?i:n6(i)}function Bg(t,i){var s;i===void 0&&(i=[]);const a=n6(t),r=a===((s=t.ownerDocument)==null?void 0:s.body),e=ca(a);return r?i.concat(e,e.visualViewport||[],D2(a)?a:[]):i.concat(a,Bg(a))}function g3(t,i,s){return i==="viewport"?Ud(function(a,r){const e=ca(a),p=ql(a),_=e.visualViewport;let D=p.clientWidth,F=p.clientHeight,T=0,A=0;if(_){D=_.width,F=_.height;const k=ZE();(k||!k&&r==="fixed")&&(T=_.offsetLeft,A=_.offsetTop)}return{width:D,height:F,x:T,y:A}}(t,s)):Kl(i)?Ud(function(a,r){const e=i1(a,!0,r==="fixed"),p=e.top+a.clientTop,_=e.left+a.clientLeft,D=ho(a)?i0(a):{x:1,y:1};return{width:a.clientWidth*D.x,height:a.clientHeight*D.y,x:_*D.x,y:p*D.y}}(i,s)):Ud(function(a){const r=ql(a),e=w2(a),p=a.ownerDocument.body,_=Hd(r.scrollWidth,r.clientWidth,p.scrollWidth,p.clientWidth),D=Hd(r.scrollHeight,r.clientHeight,p.scrollHeight,p.clientHeight);let F=-e.scrollLeft+r6(a);const T=-e.scrollTop;return fo(p).direction==="rtl"&&(F+=Hd(r.clientWidth,p.clientWidth)-_),{width:_,height:D,x:F,y:T}}(ql(t)))}function v3(t){return ho(t)&&fo(t).position!=="fixed"?t.offsetParent:null}function b3(t){const i=ca(t);let s=v3(t);for(;s&&u9(s)&&fo(s).position==="static";)s=v3(s);return s&&(nc(s)==="html"||nc(s)==="body"&&fo(s).position==="static"&&!T_(s))?i:s||function(a){let r=s1(a);for(;ho(r)&&!K4(r);){if(T_(r))return r;r=s1(r)}return null}(t)||i}function f9(t,i,s){const a=ho(i),r=ql(i),e=i1(t,!0,s==="fixed",i);let p={scrollLeft:0,scrollTop:0};const _={x:0,y:0};if(a||!a&&s!=="fixed")if((nc(i)!=="body"||D2(r))&&(p=w2(i)),ho(i)){const D=i1(i,!0);_.x=D.x+i.clientLeft,_.y=D.y+i.clientTop}else r&&(_.x=r6(r));return{x:e.left+p.scrollLeft-_.x,y:e.top+p.scrollTop-_.y,width:e.width,height:e.height}}const h9={getClippingRect:function(t){let{element:i,boundary:s,rootBoundary:a,strategy:r}=t;const e=s==="clippingAncestors"?function(F,T){const A=T.get(F);if(A)return A;let k=Bg(F).filter(V=>Kl(V)&&nc(V)!=="body"),I=null;const N=fo(F).position==="fixed";let M=N?s1(F):F;for(;Kl(M)&&!K4(M);){const V=fo(M),U=T_(M);(N?U||I:U||V.position!=="static"||!I||!["absolute","fixed"].includes(I.position))?I=V:k=k.filter(G=>G!==M),M=s1(M)}return T.set(F,k),k}(i,this._c):[].concat(s),p=[...e,a],_=p[0],D=p.reduce((F,T)=>{const A=g3(i,T,r);return F.top=Hd(A.top,F.top),F.right=p3(A.right,F.right),F.bottom=p3(A.bottom,F.bottom),F.left=Hd(A.left,F.left),F},g3(i,_,r));return{width:D.right-D.left,height:D.bottom-D.top,x:D.left,y:D.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:i,offsetParent:s,strategy:a}=t;const r=ho(s),e=ql(s);if(s===e)return i;let p={scrollLeft:0,scrollTop:0},_={x:1,y:1};const D={x:0,y:0};if((r||!r&&a!=="fixed")&&((nc(s)!=="body"||D2(e))&&(p=w2(s)),ho(s))){const F=i1(s);_=i0(s),D.x=F.x+s.clientLeft,D.y=F.y+s.clientTop}return{width:i.width*_.x,height:i.height*_.y,x:i.x*_.x-p.scrollLeft*_.x+D.x,y:i.y*_.y-p.scrollTop*_.y+D.y}},isElement:Kl,getDimensions:function(t){return ho(t)?QE(t):t.getBoundingClientRect()},getOffsetParent:b3,getDocumentElement:ql,getScale:i0,async getElementRects(t){let{reference:i,floating:s,strategy:a}=t;const r=this.getOffsetParent||b3,e=this.getDimensions;return{reference:f9(i,await r(s),a),floating:{x:0,y:0,...await e(s)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>fo(t).direction==="rtl"},d9=(t,i,s)=>{const a=new Map,r={platform:h9,...s},e={...r.platform,_c:a};return t9(t,i,{...r,platform:e})};function i6(t,i){for(const s in i)Object.prototype.hasOwnProperty.call(i,s)&&(typeof i[s]=="object"&&t[s]?i6(t[s],i[s]):t[s]=i[s])}const Jo={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 a1(t,i){let s=Jo.themes[t]||{},a;do a=s[i],typeof a>"u"?s.$extend?s=Jo.themes[s.$extend]||{}:(s=null,a=Jo[i]):s=null;while(s);return a}function p9(t){const i=[t];let s=Jo.themes[t]||{};do s.$extend&&!s.$resetCss?(i.push(s.$extend),s=Jo.themes[s.$extend]||{}):s=null;while(s);return i.map(a=>`v-popper--theme-${a}`)}function _3(t){const i=[t];let s=Jo.themes[t]||{};do s.$extend?(i.push(s.$extend),s=Jo.themes[s.$extend]||{}):s=null;while(s);return i}let Cu=!1;if(typeof window<"u"){Cu=!1;try{const t=Object.defineProperty({},"passive",{get(){Cu=!0}});window.addEventListener("test",null,t)}catch{}}let s6=!1;typeof window<"u"&&typeof navigator<"u"&&(s6=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const a6=["auto","top","bottom","left","right"].reduce((t,i)=>t.concat([i,`${i}-start`,`${i}-end`]),[]),y3={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},D3={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function w3(t,i){const s=t.indexOf(i);s!==-1&&t.splice(s,1)}function Ib(){return new Promise(t=>requestAnimationFrame(()=>{requestAnimationFrame(t)}))}const Sa=[];let ou=null;const F3={};function E3(t){let i=F3[t];return i||(i=F3[t]=[]),i}let A_=function(){};typeof window<"u"&&(A_=window.Element);function Yr(t){return function(i){return a1(i.theme,t)}}const Nb="__floating-vue__popper",o6=()=>mi({name:"VPopper",provide(){return{[Nb]:{parentPopper:this}}},inject:{[Nb]:{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:Yr("disabled")},positioningDisabled:{type:Boolean,default:Yr("positioningDisabled")},placement:{type:String,default:Yr("placement"),validator:t=>a6.includes(t)},delay:{type:[String,Number,Object],default:Yr("delay")},distance:{type:[Number,String],default:Yr("distance")},skidding:{type:[Number,String],default:Yr("skidding")},triggers:{type:Array,default:Yr("triggers")},showTriggers:{type:[Array,Function],default:Yr("showTriggers")},hideTriggers:{type:[Array,Function],default:Yr("hideTriggers")},popperTriggers:{type:Array,default:Yr("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:Yr("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:Yr("popperHideTriggers")},container:{type:[String,Object,A_,Boolean],default:Yr("container")},boundary:{type:[String,A_],default:Yr("boundary")},strategy:{type:String,validator:t=>["absolute","fixed"].includes(t),default:Yr("strategy")},autoHide:{type:[Boolean,Function],default:Yr("autoHide")},handleResize:{type:Boolean,default:Yr("handleResize")},instantMove:{type:Boolean,default:Yr("instantMove")},eagerMount:{type:Boolean,default:Yr("eagerMount")},popperClass:{type:[String,Array,Object],default:Yr("popperClass")},computeTransformOrigin:{type:Boolean,default:Yr("computeTransformOrigin")},autoMinSize:{type:Boolean,default:Yr("autoMinSize")},autoSize:{type:[Boolean,String],default:Yr("autoSize")},autoMaxSize:{type:Boolean,default:Yr("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:Yr("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:Yr("preventOverflow")},overflowPadding:{type:[Number,String],default:Yr("overflowPadding")},arrowPadding:{type:[Number,String],default:Yr("arrowPadding")},arrowOverflow:{type:Boolean,default:Yr("arrowOverflow")},flip:{type:Boolean,default:Yr("flip")},shift:{type:Boolean,default:Yr("shift")},shiftCrossAxis:{type:Boolean,default:Yr("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:Yr("noAutoFocus")},disposeTimeout:{type:Number,default:Yr("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[Nb])==null?void 0:t.parentPopper},hasPopperShowTriggerHover(){var t,i;return((t=this.popperTriggers)==null?void 0:t.includes("hover"))||((i=this.popperShowTriggers)==null?void 0:i.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,i)=>(t[i]="$_refreshListeners",t),{}),...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((t,i)=>(t[i]="$_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:i=!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,i),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:t=null,skipDelay:i=!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:i}),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,i),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(i=>i.nodeType===i.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(o9({mainAxis:this.distance,crossAxis:this.skidding}));const i=this.placement.startsWith("auto");if(i?t.middleware.push(i9({alignment:this.placement.split("-")[1]??""})):t.placement=this.placement,this.preventOverflow&&(this.shift&&t.middleware.push(l9({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!i&&this.flip&&t.middleware.push(s9({padding:this.overflowPadding,boundary:this.boundary}))),t.middleware.push(r9({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&t.middleware.push({name:"arrowOverflow",fn:({placement:a,rects:r,middlewareData:e})=>{let p;const{centerOffset:_}=e.arrow;return a.startsWith("top")||a.startsWith("bottom")?p=Math.abs(_)>r.reference.width/2:p=Math.abs(_)>r.reference.height/2,{data:{overflow:p}}}}),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:p})=>{var _;if((_=p.autoSize)!=null&&_.skip)return{};let D,F;return e.startsWith("top")||e.startsWith("bottom")?D=r.reference.width:F=r.reference.height,this.$_innerNode.style[a==="min"?"minWidth":a==="max"?"maxWidth":"width"]=D!=null?`${D}px`:null,this.$_innerNode.style[a==="min"?"minHeight":a==="max"?"maxHeight":"height"]=F!=null?`${F}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(c9({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 d9(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,i=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),ou&&this.instantMove&&ou.instantMove&&ou!==this.parentPopper){ou.$_applyHide(!0),this.$_applyShow(!0);return}i?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(t=null,i=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(ou=this),i?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(t){const i=this.delay;return parseInt(i&&i[t]||i||0)},async $_applyShow(t=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=t,!this.isShown&&(this.$_ensureTeleport(),await Ib(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Bg(this.$_referenceNode),...Bg(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const i=this.$_referenceNode.getBoundingClientRect(),s=this.$_popperNode.querySelector(".v-popper__wrapper"),a=s.parentNode.getBoundingClientRect(),r=i.x+i.width/2-(a.left+s.offsetLeft),e=i.y+i.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 i;for(let s=0;s<Sa.length;s++)i=Sa[s],i.showGroup!==t&&(i.hide(),i.$emit("close-group"))}Sa.push(this),document.body.classList.add("v-popper--some-open");for(const i of _3(this.theme))E3(i).push(this),document.body.classList.add(`v-popper--some-open--${i}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await Ib(),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,w3(Sa,this),Sa.length===0&&document.body.classList.remove("v-popper--some-open");for(const s of _3(this.theme)){const a=E3(s);w3(a,this),a.length===0&&document.body.classList.remove(`v-popper--some-open--${s}`)}ou===this&&(ou=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const i=this.disposeTimeout;i!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},i)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Ib(),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,y3,this.triggers,this.showTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],y3,this.popperTriggers,this.popperShowTriggers,t);const i=s=>{s.usedByTooltip||this.hide({event:s})};this.$_registerTriggerListeners(this.$_targetNodes,D3,this.triggers,this.hideTriggers,i),this.$_registerTriggerListeners([this.$_popperNode],D3,this.popperTriggers,this.popperHideTriggers,i)},$_registerEventListeners(t,i,s){this.$_events.push({targetNodes:t,eventType:i,handler:s}),t.forEach(a=>a.addEventListener(i,s,Cu?{passive:!0}:void 0))},$_registerTriggerListeners(t,i,s,a,r){let e=s;a!=null&&(e=typeof a=="function"?a(e):a),e.forEach(p=>{const _=i[p];_&&this.$_registerEventListeners(t,_,r)})},$_removeEventListeners(t){const i=[];this.$_events.forEach(s=>{const{targetNodes:a,eventType:r,handler:e}=s;!t||t===r?a.forEach(p=>p.removeEventListener(r,e)):i.push(s)}),this.$_events=i},$_refreshListeners(){this.$_isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(t,i=!1){this.$_showFrameLocked||(this.hide({event:t}),t.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),i&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(t,i){for(const s of this.$_targetNodes){const a=s.getAttribute(t);a&&(s.removeAttribute(t),s.setAttribute(i,a))}},$_applyAttrsToTarget(t){for(const i of this.$_targetNodes)for(const s in t){const a=t[s];a==null?i.removeAttribute(s):i.setAttribute(s,a)}},$_updateParentShownChildren(t){let i=this.parentPopper;for(;i;)t?i.shownChildren.add(this.randomId):(i.shownChildren.delete(this.randomId),i.$_pendingHide&&i.hide()),i=i.parentPopper},$_isAimingPopper(){const t=this.$_referenceNode.getBoundingClientRect();if($d>=t.left&&$d<=t.right&&Wd>=t.top&&Wd<=t.bottom){const i=this.$_popperNode.getBoundingClientRect(),s=$d-Ml,a=Wd-Bl,r=i.left+i.width/2-Ml+(i.top+i.height/2)-Bl+i.width+i.height,e=Ml+s*r,p=Bl+a*r;return rg(Ml,Bl,e,p,i.left,i.top,i.left,i.bottom)||rg(Ml,Bl,e,p,i.left,i.top,i.right,i.top)||rg(Ml,Bl,e,p,i.right,i.top,i.right,i.bottom)||rg(Ml,Bl,e,p,i.left,i.bottom,i.right,i.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});typeof document<"u"&&typeof window<"u"&&(s6?(document.addEventListener("touchstart",x3,Cu?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",g9,Cu?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",x3,!0),window.addEventListener("click",m9,!0)),window.addEventListener("resize",_9));function x3(t){for(let i=0;i<Sa.length;i++){const s=Sa[i];try{const a=s.popperNode();s.$_mouseDownContains=a.contains(t.target)}catch{}}}function m9(t){l6(t)}function g9(t){l6(t,!0)}function l6(t,i=!1){const s={};for(let a=Sa.length-1;a>=0;a--){const r=Sa[a];try{const e=r.$_containsGlobalTarget=v9(r,t);r.$_pendingHide=!1,requestAnimationFrame(()=>{if(r.$_pendingHide=!1,!s[r.randomId]&&C3(r,e,t)){if(r.$_handleGlobalClose(t,i),!t.closeAllPopover&&t.closePopover&&e){let _=r.parentPopper;for(;_;)s[_.randomId]=!0,_=_.parentPopper;return}let p=r.parentPopper;for(;p&&C3(p,p.$_containsGlobalTarget,t);)p.$_handleGlobalClose(t,i),p=p.parentPopper}})}catch{}}}function v9(t,i){const s=t.popperNode();return t.$_mouseDownContains||s.contains(i.target)}function C3(t,i,s){return s.closeAllPopover||s.closePopover&&i||b9(t,s)&&!i}function b9(t,i){if(typeof t.autoHide=="function"){const s=t.autoHide(i);return t.lastAutoHide=s,s}return t.autoHide}function _9(t){for(let i=0;i<Sa.length;i++)Sa[i].$_computePosition(t)}let Ml=0,Bl=0,$d=0,Wd=0;typeof window<"u"&&window.addEventListener("mousemove",t=>{Ml=$d,Bl=Wd,$d=t.clientX,Wd=t.clientY},Cu?{passive:!0}:void 0);function rg(t,i,s,a,r,e,p,_){const D=((p-r)*(i-e)-(_-e)*(t-r))/((_-e)*(s-t)-(p-r)*(a-i)),F=((s-t)*(i-e)-(a-i)*(t-r))/((_-e)*(s-t)-(p-r)*(a-i));return D>=0&&D<=1&&F>=0&&F<=1}const y9={extends:o6()},F2=(t,i)=>{const s=t.__vccOpts||t;for(const[a,r]of i)s[a]=r;return s};function D9(t,i,s,a,r,e){return Lr(),fn("div",{ref:"reference",class:ns(["v-popper",{"v-popper--shown":t.slotData.isShown}])},[Fu(t.$slots,"default",cw(p4(t.slotData)))],2)}const w9=F2(y9,[["render",D9]]);function F9(){var t=window.navigator.userAgent,i=t.indexOf("MSIE ");if(i>0)return parseInt(t.substring(i+5,t.indexOf(".",i)),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 cg;function S_(){S_.init||(S_.init=!0,cg=F9()!==-1)}var E2={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){S_(),vo(()=>{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",cg&&this.$el.appendChild(t),t.data="about:blank",cg||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&&(!cg&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const E9=Iw();s2("data-v-b329ee4c");const x9={class:"resize-observer",tabindex:"-1"};a2();const C9=E9((t,i,s,a,r,e)=>(Lr(),rl("div",x9)));E2.render=C9;E2.__scopeId="data-v-b329ee4c";E2.__file="src/components/ResizeObserver.vue";const c6=(t="theme")=>({computed:{themeClass(){return p9(this[t])}}}),T9=mi({name:"VPopperContent",components:{ResizeObserver:E2},mixins:[c6()],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}}}),A9=["id","aria-hidden","tabindex","data-popper-placement"],S9={ref:"inner",class:"v-popper__inner"},O9=Tt("div",{class:"v-popper__arrow-outer"},null,-1),k9=Tt("div",{class:"v-popper__arrow-inner"},null,-1),R9=[O9,k9];function P9(t,i,s,a,r,e){const p=Ia("ResizeObserver");return Lr(),fn("div",{id:t.popperId,ref:"popover",class:ns(["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:Ra(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:i[2]||(i[2]=IF(_=>t.autoHide&&t.$emit("hide"),["esc"]))},[Tt("div",{class:"v-popper__backdrop",onClick:i[0]||(i[0]=_=>t.autoHide&&t.$emit("hide"))}),Tt("div",{class:"v-popper__wrapper",style:Ra(t.result?{transformOrigin:t.result.transformOrigin}:void 0)},[Tt("div",S9,[t.mounted?(Lr(),fn(Gn,{key:0},[Tt("div",null,[Fu(t.$slots,"default")]),t.handleResize?(Lr(),rl(p,{key:0,onNotify:i[1]||(i[1]=_=>t.$emit("resize",_))})):Hs("",!0)],64)):Hs("",!0)],512),Tt("div",{ref:"arrow",class:"v-popper__arrow-container",style:Ra(t.result?{left:t.toPx(t.result.arrow.x),top:t.toPx(t.result.arrow.y)}:void 0)},R9,4)],4)],46,A9)}const u6=F2(T9,[["render",P9]]),f6={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)}}},I9=mi({name:"VPopperWrapper",components:{Popper:w9,PopperContent:u6},mixins:[f6,c6("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 N9(t,i,s,a,r,e){const p=Ia("PopperContent"),_=Ia("Popper");return Lr(),rl(_,{ref:"popper",theme:t.finalTheme,"target-nodes":t.getTargetNodes,"popper-node":()=>t.$refs.popperContent.$el,class:ns([t.themeClass])},{default:Ei(({popperId:D,isShown:F,shouldMountContent:T,skipTransition:A,autoHide:k,show:I,hide:N,handleResize:M,onResize:V,classes:U,result:G})=>[Fu(t.$slots,"default",{shown:F,show:I,hide:N}),Er(p,{ref:"popperContent","popper-id":D,theme:t.finalTheme,shown:F,mounted:T,"skip-transition":A,"auto-hide":k,"handle-resize":M,classes:U,result:G,onHide:N,onResize:V},{default:Ei(()=>[Fu(t.$slots,"popper",{shown:F,hide:N})]),_: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 q4=F2(I9,[["render",N9]]),L9={...q4,name:"VDropdown",vPopperTheme:"dropdown"},M9={...q4,name:"VMenu",vPopperTheme:"menu"},B9={...q4,name:"VTooltip",vPopperTheme:"tooltip"},U9=mi({name:"VTooltipDirective",components:{Popper:o6(),PopperContent:u6},mixins:[f6],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:t=>a1(t.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:t=>a1(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 i=++this.$_fetchId,s=this.content(this);s.then?s.then(a=>this.onResult(i,a)):this.onResult(i,s)}},onResult(t,i){t===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=i)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),H9=["innerHTML"],$9=["textContent"];function W9(t,i,s,a,r,e){const p=Ia("PopperContent"),_=Ia("Popper");return Lr(),rl(_,f2({ref:"popper"},t.$attrs,{theme:t.theme,"target-nodes":t.targetNodes,"popper-node":()=>t.$refs.popperContent.$el,onApplyShow:t.onShow,onApplyHide:t.onHide}),{default:Ei(({popperId:D,isShown:F,shouldMountContent:T,skipTransition:A,autoHide:k,hide:I,handleResize:N,onResize:M,classes:V,result:U})=>[Er(p,{ref:"popperContent",class:ns({"v-popper--tooltip-loading":t.loading}),"popper-id":D,theme:t.theme,shown:F,mounted:T,"skip-transition":A,"auto-hide":k,"handle-resize":N,classes:V,result:U,onHide:I,onResize:M},{default:Ei(()=>[t.html?(Lr(),fn("div",{key:0,innerHTML:t.finalContent},null,8,H9)):(Lr(),fn("div",{key:1,textContent:ai(t.finalContent)},null,8,$9))]),_: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 z9=F2(U9,[["render",W9]]),h6="v-popper--has-tooltip";function j9(t,i){let s=t.placement;if(!s&&i)for(const a of a6)i[a]&&(s=a);return s||(s=a1(t.theme||"tooltip","placement")),s}function d6(t,i,s){let a;const r=typeof i;return r==="string"?a={content:i}:i&&r==="object"?a=i:a={content:!1},a.placement=j9(a,s),a.targetNodes=()=>[t],a.referenceNode=()=>t,a}let Lb,o1,V9=0;function G9(){if(Lb)return;o1=Yt([]),Lb=D4({name:"VTooltipDirectiveApp",setup(){return{directives:o1}},render(){return this.directives.map(i=>Ou(z9,{...i.options,shown:i.shown||i.options.shown,key:i.id}))},devtools:{hide:!0}});const t=document.createElement("div");document.body.appendChild(t),Lb.mount(t)}function Y9(t,i,s){G9();const a=Yt(d6(t,i,s)),r=Yt(!1),e={id:V9++,options:a,shown:r};return o1.value.push(e),t.classList&&t.classList.add(h6),t.$_popper={options:a,item:e,show(){r.value=!0},hide(){r.value=!1}}}function p6(t){if(t.$_popper){const i=o1.value.indexOf(t.$_popper.item);i!==-1&&o1.value.splice(i,1),delete t.$_popper,delete t.$_popperOldShown,delete t.$_popperMountTarget}t.classList&&t.classList.remove(h6)}function T3(t,{value:i,modifiers:s}){const a=d6(t,i,s);if(!a.content||a1(a.theme||"tooltip","disabled"))p6(t);else{let r;t.$_popper?(r=t.$_popper,r.options.value=a):r=Y9(t,i,s),typeof i.shown<"u"&&i.shown!==t.$_popperOldShown&&(t.$_popperOldShown=i.shown,i.shown?r.show():r.hide())}}const K9={beforeMount:T3,updated:T3,beforeUnmount(t){p6(t)}};function A3(t){t.addEventListener("click",m6),t.addEventListener("touchstart",g6,Cu?{passive:!0}:!1)}function S3(t){t.removeEventListener("click",m6),t.removeEventListener("touchstart",g6),t.removeEventListener("touchend",v6),t.removeEventListener("touchcancel",b6)}function m6(t){const i=t.currentTarget;t.closePopover=!i.$_vclosepopover_touch,t.closeAllPopover=i.$_closePopoverModifiers&&!!i.$_closePopoverModifiers.all}function g6(t){if(t.changedTouches.length===1){const i=t.currentTarget;i.$_vclosepopover_touch=!0;const s=t.changedTouches[0];i.$_vclosepopover_touchPoint=s,i.addEventListener("touchend",v6),i.addEventListener("touchcancel",b6)}}function v6(t){const i=t.currentTarget;if(i.$_vclosepopover_touch=!1,t.changedTouches.length===1){const s=t.changedTouches[0],a=i.$_vclosepopover_touchPoint;t.closePopover=Math.abs(s.screenY-a.screenY)<20&&Math.abs(s.screenX-a.screenX)<20,t.closeAllPopover=i.$_closePopoverModifiers&&!!i.$_closePopoverModifiers.all}}function b6(t){const i=t.currentTarget;i.$_vclosepopover_touch=!1}const q9={beforeMount(t,{value:i,modifiers:s}){t.$_closePopoverModifiers=s,(typeof i>"u"||i)&&A3(t)},updated(t,{value:i,oldValue:s,modifiers:a}){t.$_closePopoverModifiers=a,i!==s&&(typeof i>"u"||i?A3(t):S3(t))},beforeUnmount(t){S3(t)}};function Q9(t,i={}){t.$_vTooltipInstalled||(t.$_vTooltipInstalled=!0,i6(Jo,i),t.directive("tooltip",K9),t.directive("close-popper",q9),t.component("VTooltip",B9),t.component("VDropdown",L9),t.component("VMenu",M9))}const X9={version:"2.0.0-beta.24",install:Q9,options:Jo};class x2{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(i){const s={listener:i};return this.listeners.add(s),this.onSubscribe(),()=>{this.listeners.delete(s),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const C2=typeof window>"u"||"Deno"in window;function Ca(){}function J9(t,i){return typeof t=="function"?t(i):t}function Z9(t){return typeof t=="number"&&t>=0&&t!==1/0}function eR(t,i){return Math.max(t+(i||0)-Date.now(),0)}function ng(t,i,s){return T2(t)?typeof i=="function"?{...s,queryKey:t,queryFn:i}:{...i,queryKey:t}:t}function Vl(t,i,s){return T2(t)?[{...i,queryKey:t},s]:[t||{},i]}function O3(t,i){const{type:s="all",exact:a,fetchStatus:r,predicate:e,queryKey:p,stale:_}=t;if(T2(p)){if(a){if(i.queryHash!==Q4(p,i.options))return!1}else if(!Ug(i.queryKey,p))return!1}if(s!=="all"){const D=i.isActive();if(s==="active"&&!D||s==="inactive"&&D)return!1}return!(typeof _=="boolean"&&i.isStale()!==_||typeof r<"u"&&r!==i.state.fetchStatus||e&&!e(i))}function k3(t,i){const{exact:s,fetching:a,predicate:r,mutationKey:e}=t;if(T2(e)){if(!i.options.mutationKey)return!1;if(s){if(mu(i.options.mutationKey)!==mu(e))return!1}else if(!Ug(i.options.mutationKey,e))return!1}return!(typeof a=="boolean"&&i.state.status==="loading"!==a||r&&!r(i))}function Q4(t,i){return((i==null?void 0:i.queryKeyHashFn)||mu)(t)}function mu(t){return JSON.stringify(t,(i,s)=>O_(s)?Object.keys(s).sort().reduce((a,r)=>(a[r]=s[r],a),{}):s)}function Ug(t,i){return _6(t,i)}function _6(t,i){return t===i?!0:typeof t!=typeof i?!1:t&&i&&typeof t=="object"&&typeof i=="object"?!Object.keys(i).some(s=>!_6(t[s],i[s])):!1}function y6(t,i){if(t===i)return t;const s=R3(t)&&R3(i);if(s||O_(t)&&O_(i)){const a=s?t.length:Object.keys(t).length,r=s?i:Object.keys(i),e=r.length,p=s?[]:{};let _=0;for(let D=0;D<e;D++){const F=s?D:r[D];p[F]=y6(t[F],i[F]),p[F]===t[F]&&_++}return a===e&&_===a?t:p}return i}function NI(t,i){if(t&&!i||i&&!t)return!1;for(const s in t)if(t[s]!==i[s])return!1;return!0}function R3(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function O_(t){if(!P3(t))return!1;const i=t.constructor;if(typeof i>"u")return!0;const s=i.prototype;return!(!P3(s)||!s.hasOwnProperty("isPrototypeOf"))}function P3(t){return Object.prototype.toString.call(t)==="[object Object]"}function T2(t){return Array.isArray(t)}function D6(t){return new Promise(i=>{setTimeout(i,t)})}function I3(t){D6(0).then(t)}function tR(){if(typeof AbortController=="function")return new AbortController}function rR(t,i,s){return s.isDataEqual!=null&&s.isDataEqual(t,i)?t:typeof s.structuralSharing=="function"?s.structuralSharing(t,i):s.structuralSharing!==!1?y6(t,i):i}class nR extends x2{constructor(){super(),this.setup=i=>{if(!C2&&window.addEventListener){const s=()=>i();return window.addEventListener("visibilitychange",s,!1),window.addEventListener("focus",s,!1),()=>{window.removeEventListener("visibilitychange",s),window.removeEventListener("focus",s)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var i;(i=this.cleanup)==null||i.call(this),this.cleanup=void 0}}setEventListener(i){var s;this.setup=i,(s=this.cleanup)==null||s.call(this),this.cleanup=i(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()})}setFocused(i){this.focused!==i&&(this.focused=i,this.onFocus())}onFocus(){this.listeners.forEach(({listener:i})=>{i()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const k_=new nR,N3=["online","offline"];class iR extends x2{constructor(){super(),this.setup=i=>{if(!C2&&window.addEventListener){const s=()=>i();return N3.forEach(a=>{window.addEventListener(a,s,!1)}),()=>{N3.forEach(a=>{window.removeEventListener(a,s)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var i;(i=this.cleanup)==null||i.call(this),this.cleanup=void 0}}setEventListener(i){var s;this.setup=i,(s=this.cleanup)==null||s.call(this),this.cleanup=i(a=>{typeof a=="boolean"?this.setOnline(a):this.onOnline()})}setOnline(i){this.online!==i&&(this.online=i,this.onOnline())}onOnline(){this.listeners.forEach(({listener:i})=>{i()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const Hg=new iR;function sR(t){return Math.min(1e3*2**t,3e4)}function X4(t){return(t??"online")==="online"?Hg.isOnline():!0}class w6{constructor(i){this.revert=i==null?void 0:i.revert,this.silent=i==null?void 0:i.silent}}function Mb(t){return t instanceof w6}function F6(t){let i=!1,s=0,a=!1,r,e,p;const _=new Promise((V,U)=>{e=V,p=U}),D=V=>{a||(I(new w6(V)),t.abort==null||t.abort())},F=()=>{i=!0},T=()=>{i=!1},A=()=>!k_.isFocused()||t.networkMode!=="always"&&!Hg.isOnline(),k=V=>{a||(a=!0,t.onSuccess==null||t.onSuccess(V),r==null||r(),e(V))},I=V=>{a||(a=!0,t.onError==null||t.onError(V),r==null||r(),p(V))},N=()=>new Promise(V=>{r=U=>{const G=a||!A();return G&&V(U),G},t.onPause==null||t.onPause()}).then(()=>{r=void 0,a||t.onContinue==null||t.onContinue()}),M=()=>{if(a)return;let V;try{V=t.fn()}catch(U){V=Promise.reject(U)}Promise.resolve(V).then(k).catch(U=>{var G,ne;if(a)return;const z=(G=t.retry)!=null?G:3,H=(ne=t.retryDelay)!=null?ne:sR,Z=typeof H=="function"?H(s,U):H,ee=z===!0||typeof z=="number"&&s<z||typeof z=="function"&&z(s,U);if(i||!ee){I(U);return}s++,t.onFail==null||t.onFail(s,U),D6(Z).then(()=>{if(A())return N()}).then(()=>{i?I(U):M()})})};return X4(t.networkMode)?M():N().then(M),{promise:_,cancel:D,continue:()=>(r==null?void 0:r())?_:Promise.resolve(),cancelRetry:F,continueRetry:T}}const J4=console;function aR(){let t=[],i=0,s=T=>{T()},a=T=>{T()};const r=T=>{let A;i++;try{A=T()}finally{i--,i||_()}return A},e=T=>{i?t.push(T):I3(()=>{s(T)})},p=T=>(...A)=>{e(()=>{T(...A)})},_=()=>{const T=t;t=[],T.length&&I3(()=>{a(()=>{T.forEach(A=>{s(A)})})})};return{batch:r,batchCalls:p,schedule:e,setNotifyFunction:T=>{s=T},setBatchNotifyFunction:T=>{a=T}}}const ts=aR();class E6{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Z9(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(i){this.cacheTime=Math.max(this.cacheTime||0,i??(C2?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class oR extends E6{constructor(i){super(),this.abortSignalConsumed=!1,this.defaultOptions=i.defaultOptions,this.setOptions(i.options),this.observers=[],this.cache=i.cache,this.logger=i.logger||J4,this.queryKey=i.queryKey,this.queryHash=i.queryHash,this.initialState=i.state||lR(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(i){this.options={...this.defaultOptions,...i},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(i,s){const a=rR(this.state.data,i,this.options);return this.dispatch({data:a,type:"success",dataUpdatedAt:s==null?void 0:s.updatedAt,manual:s==null?void 0:s.manual}),a}setState(i,s){this.dispatch({type:"setState",state:i,setStateOptions:s})}cancel(i){var s;const a=this.promise;return(s=this.retryer)==null||s.cancel(i),a?a.then(Ca).catch(Ca):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(i=>i.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(i=>i.getCurrentResult().isStale)}isStaleByTime(i=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!eR(this.state.dataUpdatedAt,i)}onFocus(){var i;const s=this.observers.find(a=>a.shouldFetchOnWindowFocus());s&&s.refetch({cancelRefetch:!1}),(i=this.retryer)==null||i.continue()}onOnline(){var i;const s=this.observers.find(a=>a.shouldFetchOnReconnect());s&&s.refetch({cancelRefetch:!1}),(i=this.retryer)==null||i.continue()}addObserver(i){this.observers.includes(i)||(this.observers.push(i),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:i}))}removeObserver(i){this.observers.includes(i)&&(this.observers=this.observers.filter(s=>s!==i),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:i}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(i,s){var a,r;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&s!=null&&s.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var e;return(e=this.retryer)==null||e.continueRetry(),this.promise}}if(i&&this.setOptions(i),!this.options.queryFn){const I=this.observers.find(N=>N.options.queryFn);I&&this.setOptions(I.options)}Array.isArray(this.options.queryKey);const p=tR(),_={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},D=I=>{Object.defineProperty(I,"signal",{enumerable:!0,get:()=>{if(p)return this.abortSignalConsumed=!0,p.signal}})};D(_);const F=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(_)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),T={fetchOptions:s,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:F};if(D(T),(a=this.options.behavior)==null||a.onFetch(T),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((r=T.fetchOptions)==null?void 0:r.meta)){var A;this.dispatch({type:"fetch",meta:(A=T.fetchOptions)==null?void 0:A.meta})}const k=I=>{if(Mb(I)&&I.silent||this.dispatch({type:"error",error:I}),!Mb(I)){var N,M,V,U;(N=(M=this.cache.config).onError)==null||N.call(M,I,this),(V=(U=this.cache.config).onSettled)==null||V.call(U,this.state.data,I,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=F6({fn:T.fetchFn,abort:p==null?void 0:p.abort.bind(p),onSuccess:I=>{var N,M,V,U;if(typeof I>"u"){k(new Error(this.queryHash+" data is undefined"));return}this.setData(I),(N=(M=this.cache.config).onSuccess)==null||N.call(M,I,this),(V=(U=this.cache.config).onSettled)==null||V.call(U,I,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:k,onFail:(I,N)=>{this.dispatch({type:"failed",failureCount:I,error:N})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:T.options.retry,retryDelay:T.options.retryDelay,networkMode:T.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(i){const s=a=>{var r,e;switch(i.type){case"failed":return{...a,fetchFailureCount:i.failureCount,fetchFailureReason:i.error};case"pause":return{...a,fetchStatus:"paused"};case"continue":return{...a,fetchStatus:"fetching"};case"fetch":return{...a,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(r=i.meta)!=null?r:null,fetchStatus:X4(this.options.networkMode)?"fetching":"paused",...!a.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...a,data:i.data,dataUpdateCount:a.dataUpdateCount+1,dataUpdatedAt:(e=i.dataUpdatedAt)!=null?e:Date.now(),error:null,isInvalidated:!1,status:"success",...!i.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const p=i.error;return Mb(p)&&p.revert&&this.revertState?{...this.revertState}:{...a,error:p,errorUpdateCount:a.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:a.fetchFailureCount+1,fetchFailureReason:p,fetchStatus:"idle",status:"error"};case"invalidate":return{...a,isInvalidated:!0};case"setState":return{...a,...i.state}}};this.state=s(this.state),ts.batch(()=>{this.observers.forEach(a=>{a.onQueryUpdate(i)}),this.cache.notify({query:this,type:"updated",action:i})})}}function lR(t){const i=typeof t.initialData=="function"?t.initialData():t.initialData,s=typeof i<"u",a=s?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:i,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":"loading",fetchStatus:"idle"}}let x6=class extends x2{constructor(i){super(),this.config=i||{},this.queries=[],this.queriesMap={}}build(i,s,a){var r;const e=s.queryKey,p=(r=s.queryHash)!=null?r:Q4(e,s);let _=this.get(p);return _||(_=new oR({cache:this,logger:i.getLogger(),queryKey:e,queryHash:p,options:i.defaultQueryOptions(s),state:a,defaultOptions:i.getQueryDefaults(e)}),this.add(_)),_}add(i){this.queriesMap[i.queryHash]||(this.queriesMap[i.queryHash]=i,this.queries.push(i),this.notify({type:"added",query:i}))}remove(i){const s=this.queriesMap[i.queryHash];s&&(i.destroy(),this.queries=this.queries.filter(a=>a!==i),s===i&&delete this.queriesMap[i.queryHash],this.notify({type:"removed",query:i}))}clear(){ts.batch(()=>{this.queries.forEach(i=>{this.remove(i)})})}get(i){return this.queriesMap[i]}getAll(){return this.queries}find(i,s){const[a]=Vl(i,s);return typeof a.exact>"u"&&(a.exact=!0),this.queries.find(r=>O3(a,r))}findAll(i,s){const[a]=Vl(i,s);return Object.keys(a).length>0?this.queries.filter(r=>O3(a,r)):this.queries}notify(i){ts.batch(()=>{this.listeners.forEach(({listener:s})=>{s(i)})})}onFocus(){ts.batch(()=>{this.queries.forEach(i=>{i.onFocus()})})}onOnline(){ts.batch(()=>{this.queries.forEach(i=>{i.onOnline()})})}};class cR extends E6{constructor(i){super(),this.defaultOptions=i.defaultOptions,this.mutationId=i.mutationId,this.mutationCache=i.mutationCache,this.logger=i.logger||J4,this.observers=[],this.state=i.state||uR(),this.setOptions(i.options),this.scheduleGc()}setOptions(i){this.options={...this.defaultOptions,...i},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(i){this.dispatch({type:"setState",state:i})}addObserver(i){this.observers.includes(i)||(this.observers.push(i),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:i}))}removeObserver(i){this.observers=this.observers.filter(s=>s!==i),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:i})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var i,s;return(i=(s=this.retryer)==null?void 0:s.continue())!=null?i:this.execute()}async execute(){const i=()=>{var ee;return this.retryer=F6({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(re,te)=>{this.dispatch({type:"failed",failureCount:re,error:te})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(ee=this.options.retry)!=null?ee:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},s=this.state.status==="loading";try{var a,r,e,p,_,D,F,T;if(!s){var A,k,I,N;this.dispatch({type:"loading",variables:this.options.variables}),await((A=(k=this.mutationCache.config).onMutate)==null?void 0:A.call(k,this.state.variables,this));const re=await((I=(N=this.options).onMutate)==null?void 0:I.call(N,this.state.variables));re!==this.state.context&&this.dispatch({type:"loading",context:re,variables:this.state.variables})}const ee=await i();return await((a=(r=this.mutationCache.config).onSuccess)==null?void 0:a.call(r,ee,this.state.variables,this.state.context,this)),await((e=(p=this.options).onSuccess)==null?void 0:e.call(p,ee,this.state.variables,this.state.context)),await((_=(D=this.mutationCache.config).onSettled)==null?void 0:_.call(D,ee,null,this.state.variables,this.state.context,this)),await((F=(T=this.options).onSettled)==null?void 0:F.call(T,ee,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:ee}),ee}catch(ee){try{var M,V,U,G,ne,z,H,Z;throw await((M=(V=this.mutationCache.config).onError)==null?void 0:M.call(V,ee,this.state.variables,this.state.context,this)),await((U=(G=this.options).onError)==null?void 0:U.call(G,ee,this.state.variables,this.state.context)),await((ne=(z=this.mutationCache.config).onSettled)==null?void 0:ne.call(z,void 0,ee,this.state.variables,this.state.context,this)),await((H=(Z=this.options).onSettled)==null?void 0:H.call(Z,void 0,ee,this.state.variables,this.state.context)),ee}finally{this.dispatch({type:"error",error:ee})}}}dispatch(i){const s=a=>{switch(i.type){case"failed":return{...a,failureCount:i.failureCount,failureReason:i.error};case"pause":return{...a,isPaused:!0};case"continue":return{...a,isPaused:!1};case"loading":return{...a,context:i.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!X4(this.options.networkMode),status:"loading",variables:i.variables};case"success":return{...a,data:i.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...a,data:void 0,error:i.error,failureCount:a.failureCount+1,failureReason:i.error,isPaused:!1,status:"error"};case"setState":return{...a,...i.state}}};this.state=s(this.state),ts.batch(()=>{this.observers.forEach(a=>{a.onMutationUpdate(i)}),this.mutationCache.notify({mutation:this,type:"updated",action:i})})}}function uR(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}let C6=class extends x2{constructor(i){super(),this.config=i||{},this.mutations=[],this.mutationId=0}build(i,s,a){const r=new cR({mutationCache:this,logger:i.getLogger(),mutationId:++this.mutationId,options:i.defaultMutationOptions(s),state:a,defaultOptions:s.mutationKey?i.getMutationDefaults(s.mutationKey):void 0});return this.add(r),r}add(i){this.mutations.push(i),this.notify({type:"added",mutation:i})}remove(i){this.mutations=this.mutations.filter(s=>s!==i),this.notify({type:"removed",mutation:i})}clear(){ts.batch(()=>{this.mutations.forEach(i=>{this.remove(i)})})}getAll(){return this.mutations}find(i){return typeof i.exact>"u"&&(i.exact=!0),this.mutations.find(s=>k3(i,s))}findAll(i){return this.mutations.filter(s=>k3(i,s))}notify(i){ts.batch(()=>{this.listeners.forEach(({listener:s})=>{s(i)})})}resumePausedMutations(){var i;return this.resuming=((i=this.resuming)!=null?i:Promise.resolve()).then(()=>{const s=this.mutations.filter(a=>a.state.isPaused);return ts.batch(()=>s.reduce((a,r)=>a.then(()=>r.continue().catch(Ca)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}};function fR(){return{onFetch:t=>{t.fetchFn=()=>{var i,s,a,r,e,p;const _=(i=t.fetchOptions)==null||(s=i.meta)==null?void 0:s.refetchPage,D=(a=t.fetchOptions)==null||(r=a.meta)==null?void 0:r.fetchMore,F=D==null?void 0:D.pageParam,T=(D==null?void 0:D.direction)==="forward",A=(D==null?void 0:D.direction)==="backward",k=((e=t.state.data)==null?void 0:e.pages)||[],I=((p=t.state.data)==null?void 0:p.pageParams)||[];let N=I,M=!1;const V=Z=>{Object.defineProperty(Z,"signal",{enumerable:!0,get:()=>{var ee;if((ee=t.signal)!=null&&ee.aborted)M=!0;else{var re;(re=t.signal)==null||re.addEventListener("abort",()=>{M=!0})}return t.signal}})},U=t.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+t.options.queryHash+"'")),G=(Z,ee,re,te)=>(N=te?[ee,...N]:[...N,ee],te?[re,...Z]:[...Z,re]),ne=(Z,ee,re,te)=>{if(M)return Promise.reject("Cancelled");if(typeof re>"u"&&!ee&&Z.length)return Promise.resolve(Z);const ae={queryKey:t.queryKey,pageParam:re,meta:t.options.meta};V(ae);const ve=U(ae);return Promise.resolve(ve).then(De=>G(Z,re,De,te))};let z;if(!k.length)z=ne([]);else if(T){const Z=typeof F<"u",ee=Z?F:L3(t.options,k);z=ne(k,Z,ee)}else if(A){const Z=typeof F<"u",ee=Z?F:hR(t.options,k);z=ne(k,Z,ee,!0)}else{N=[];const Z=typeof t.options.getNextPageParam>"u";z=(_&&k[0]?_(k[0],0,k):!0)?ne([],Z,I[0]):Promise.resolve(G([],I[0],k[0]));for(let re=1;re<k.length;re++)z=z.then(te=>{if(_&&k[re]?_(k[re],re,k):!0){const ve=Z?I[re]:L3(t.options,te);return ne(te,Z,ve)}return Promise.resolve(G(te,I[re],k[re]))})}return z.then(Z=>({pages:Z,pageParams:N}))}}}}function L3(t,i){return t.getNextPageParam==null?void 0:t.getNextPageParam(i[i.length-1],i)}function hR(t,i){return t.getPreviousPageParam==null?void 0:t.getPreviousPageParam(i[0],i)}let dR=class{constructor(i={}){this.queryCache=i.queryCache||new x6,this.mutationCache=i.mutationCache||new C6,this.logger=i.logger||J4,this.defaultOptions=i.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=k_.subscribe(()=>{k_.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=Hg.subscribe(()=>{Hg.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var i,s;this.mountCount--,this.mountCount===0&&((i=this.unsubscribeFocus)==null||i.call(this),this.unsubscribeFocus=void 0,(s=this.unsubscribeOnline)==null||s.call(this),this.unsubscribeOnline=void 0)}isFetching(i,s){const[a]=Vl(i,s);return a.fetchStatus="fetching",this.queryCache.findAll(a).length}isMutating(i){return this.mutationCache.findAll({...i,fetching:!0}).length}getQueryData(i,s){var a;return(a=this.queryCache.find(i,s))==null?void 0:a.state.data}ensureQueryData(i,s,a){const r=ng(i,s,a),e=this.getQueryData(r.queryKey);return e?Promise.resolve(e):this.fetchQuery(r)}getQueriesData(i){return this.getQueryCache().findAll(i).map(({queryKey:s,state:a})=>{const r=a.data;return[s,r]})}setQueryData(i,s,a){const r=this.queryCache.find(i),e=r==null?void 0:r.state.data,p=J9(s,e);if(typeof p>"u")return;const _=ng(i),D=this.defaultQueryOptions(_);return this.queryCache.build(this,D).setData(p,{...a,manual:!0})}setQueriesData(i,s,a){return ts.batch(()=>this.getQueryCache().findAll(i).map(({queryKey:r})=>[r,this.setQueryData(r,s,a)]))}getQueryState(i,s){var a;return(a=this.queryCache.find(i,s))==null?void 0:a.state}removeQueries(i,s){const[a]=Vl(i,s),r=this.queryCache;ts.batch(()=>{r.findAll(a).forEach(e=>{r.remove(e)})})}resetQueries(i,s,a){const[r,e]=Vl(i,s,a),p=this.queryCache,_={type:"active",...r};return ts.batch(()=>(p.findAll(r).forEach(D=>{D.reset()}),this.refetchQueries(_,e)))}cancelQueries(i,s,a){const[r,e={}]=Vl(i,s,a);typeof e.revert>"u"&&(e.revert=!0);const p=ts.batch(()=>this.queryCache.findAll(r).map(_=>_.cancel(e)));return Promise.all(p).then(Ca).catch(Ca)}invalidateQueries(i,s,a){const[r,e]=Vl(i,s,a);return ts.batch(()=>{var p,_;if(this.queryCache.findAll(r).forEach(F=>{F.invalidate()}),r.refetchType==="none")return Promise.resolve();const D={...r,type:(p=(_=r.refetchType)!=null?_:r.type)!=null?p:"active"};return this.refetchQueries(D,e)})}refetchQueries(i,s,a){const[r,e]=Vl(i,s,a),p=ts.batch(()=>this.queryCache.findAll(r).filter(D=>!D.isDisabled()).map(D=>{var F;return D.fetch(void 0,{...e,cancelRefetch:(F=e==null?void 0:e.cancelRefetch)!=null?F:!0,meta:{refetchPage:r.refetchPage}})}));let _=Promise.all(p).then(Ca);return e!=null&&e.throwOnError||(_=_.catch(Ca)),_}fetchQuery(i,s,a){const r=ng(i,s,a),e=this.defaultQueryOptions(r);typeof e.retry>"u"&&(e.retry=!1);const p=this.queryCache.build(this,e);return p.isStaleByTime(e.staleTime)?p.fetch(e):Promise.resolve(p.state.data)}prefetchQuery(i,s,a){return this.fetchQuery(i,s,a).then(Ca).catch(Ca)}fetchInfiniteQuery(i,s,a){const r=ng(i,s,a);return r.behavior=fR(),this.fetchQuery(r)}prefetchInfiniteQuery(i,s,a){return this.fetchInfiniteQuery(i,s,a).then(Ca).catch(Ca)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(i){this.defaultOptions=i}setQueryDefaults(i,s){const a=this.queryDefaults.find(r=>mu(i)===mu(r.queryKey));a?a.defaultOptions=s:this.queryDefaults.push({queryKey:i,defaultOptions:s})}getQueryDefaults(i){if(!i)return;const s=this.queryDefaults.find(a=>Ug(i,a.queryKey));return s==null?void 0:s.defaultOptions}setMutationDefaults(i,s){const a=this.mutationDefaults.find(r=>mu(i)===mu(r.mutationKey));a?a.defaultOptions=s:this.mutationDefaults.push({mutationKey:i,defaultOptions:s})}getMutationDefaults(i){if(!i)return;const s=this.mutationDefaults.find(a=>Ug(i,a.mutationKey));return s==null?void 0:s.defaultOptions}defaultQueryOptions(i){if(i!=null&&i._defaulted)return i;const s={...this.defaultOptions.queries,...this.getQueryDefaults(i==null?void 0:i.queryKey),...i,_defaulted:!0};return!s.queryHash&&s.queryKey&&(s.queryHash=Q4(s.queryKey,s)),typeof s.refetchOnReconnect>"u"&&(s.refetchOnReconnect=s.networkMode!=="always"),typeof s.useErrorBoundary>"u"&&(s.useErrorBoundary=!!s.suspense),s}defaultMutationOptions(i){return i!=null&&i._defaulted?i:{...this.defaultOptions.mutations,...this.getMutationDefaults(i==null?void 0:i.mutationKey),...i,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}};const pR="VUE_QUERY_CLIENT";function mR(t){const i=t?":"+t:"";return""+pR+i}function xa(t){return Array.isArray(t)}function UI(t,i){Object.keys(t).forEach(s=>{t[s]=i[s]})}function R_(t,i){if(i){const s=i(t);if(s!==void 0||rn(t))return s}if(Array.isArray(t))return t.map(s=>R_(s,i));if(typeof t=="object"&&gR(t)){const s=Object.entries(t).map(([a,r])=>[a,R_(r,i)]);return Object.fromEntries(s)}return t}function ar(t){return R_(t,i=>{if(rn(i))return ar(Qt(i))})}function gR(t){if(Object.prototype.toString.call(t)!=="[object Object]")return!1;const i=Object.getPrototypeOf(t);return i===null||i===Object.prototype}function HI(t,i){return typeof t=="function"?t(...i):!!t}class vR extends x6{find(i,s){const a=ar(i),r=ar(s);return super.find(a,r)}findAll(i,s){const a=ar(i),r=ar(s);return xa(a)?super.findAll(a,r):super.findAll(a)}}class bR extends C6{find(i){return super.find(ar(i))}findAll(i){return super.findAll(ar(i))}}class M3 extends dR{constructor(i={}){const s=ar(i),a={logger:ar(s.logger),defaultOptions:ar(s.defaultOptions),queryCache:s.queryCache||new vR,mutationCache:s.mutationCache||new bR};super(a),this.isRestoring=Yt(!1)}isFetching(i,s){const a=ar(i),r=ar(s);return xa(a)?super.isFetching(a,r):super.isFetching(a)}isMutating(i){return super.isMutating(ar(i))}getQueryData(i,s){return super.getQueryData(ar(i),ar(s))}getQueriesData(i){const s=ar(i);return xa(s)?super.getQueriesData(s):super.getQueriesData(s)}setQueryData(i,s,a){return super.setQueryData(ar(i),s,ar(a))}setQueriesData(i,s,a){const r=ar(i),e=ar(a);return xa(r)?super.setQueriesData(r,s,e):super.setQueriesData(r,s,e)}getQueryState(i,s){return super.getQueryState(ar(i),ar(s))}removeQueries(i,s){const a=ar(i);return xa(a)?super.removeQueries(a,ar(s)):super.removeQueries(a)}resetQueries(i,s,a){const r=ar(i),e=ar(s);return xa(r)?super.resetQueries(r,e,ar(a)):super.resetQueries(r,e)}cancelQueries(i,s,a){const r=ar(i),e=ar(s);return xa(r)?super.cancelQueries(r,e,ar(a)):super.cancelQueries(r,e)}invalidateQueries(i,s,a){const r=ar(i),e=ar(s);return xa(r)?super.invalidateQueries(r,e,ar(a)):super.invalidateQueries(r,e)}refetchQueries(i,s,a){const r=ar(i),e=ar(s);return xa(r)?super.refetchQueries(r,e,ar(a)):super.refetchQueries(r,e)}fetchQuery(i,s,a){const r=ar(i),e=ar(s);return xa(r)?super.fetchQuery(r,e,ar(a)):super.fetchQuery(r)}prefetchQuery(i,s,a){return super.prefetchQuery(ar(i),ar(s),ar(a))}fetchInfiniteQuery(i,s,a){const r=ar(i),e=ar(s);return xa(r)?super.fetchInfiniteQuery(r,e,ar(a)):super.fetchInfiniteQuery(r)}prefetchInfiniteQuery(i,s,a){return super.prefetchInfiniteQuery(ar(i),ar(s),ar(a))}setDefaultOptions(i){super.setDefaultOptions(ar(i))}setQueryDefaults(i,s){super.setQueryDefaults(ar(i),ar(s))}getQueryDefaults(i){return super.getQueryDefaults(ar(i))}setMutationDefaults(i,s){super.setMutationDefaults(ar(i),ar(s))}getMutationDefaults(i){return super.getMutationDefaults(ar(i))}}const _R={install:(t,i={})=>{const s=mR(i.queryClientKey);let a;if("queryClient"in i&&i.queryClient)a=i.queryClient;else if(i.contextSharing&&typeof window<"u")if(window.__VUE_QUERY_CONTEXT__)a=window.__VUE_QUERY_CONTEXT__;else{const p="queryClientConfig"in i?i.queryClientConfig:void 0;a=new M3(p),window.__VUE_QUERY_CONTEXT__=a}else{const p="queryClientConfig"in i?i.queryClientConfig:void 0;a=new M3(p)}C2||a.mount();let r=()=>{};if(i.clientPersister){a.isRestoring.value=!0;const[p,_]=i.clientPersister(a);r=p,_.then(()=>{a.isRestoring.value=!1})}const e=()=>{a.unmount(),r()};if(t.onUnmount)t.onUnmount(e);else{const p=t.unmount;t.unmount=function(){e(),p()}}t.provide(s,a)}};let yR;function DR(){return yR}function wR(t){return typeof t=="function"?t():Qt(t)}function P_(t,i=""){if(t instanceof Promise)return t;const s=wR(t);return!t||!s?s:Array.isArray(s)?s.map(a=>P_(a,i)):typeof s=="object"?Object.fromEntries(Object.entries(s).map(([a,r])=>a==="titleTemplate"||a.startsWith("on")?[a,Qt(r)]:[a,P_(r,a)])):s}const FR="usehead";function ER(){return Ti()&&is(FR)||DR()}function xR(t,i={}){const s=ER();if(s)return s.ssr?s.push(t,i):CR(s,t,i)}function CR(t,i,s={}){const a=Yt(!1),r=Yt({});i4(()=>{r.value=a.value?{}:P_(i)});const e=t.push(r.value,s);return bn(r,_=>{e.patch(_)}),Ti()&&(p1(()=>{e.dispose()}),l4(()=>{a.value=!0}),o4(()=>{a.value=!1})),e}const TR=mi({__name:"App",setup(t){return xR({title:"Board - XCPCIO",meta:[{name:"description",content:"XCPCIO-Board 主要收录 *CPC 系列竞赛的榜单。"},{name:"keywords",content:"icpc, ccpc, rank, board, standings"},{name:"theme-color",content:()=>GE.value?"#00aba9":"#ffffff"}],link:[{rel:"icon",type:"image/svg+xml",href:()=>x7.value?"/favicon-dark.svg":"/favicon.svg"}]}),(i,s)=>{const a=Ia("RouterView");return Lr(),rl(a)}}});var AR=Object.defineProperty,B3=Object.getOwnPropertySymbols,SR=Object.prototype.hasOwnProperty,OR=Object.prototype.propertyIsEnumerable,U3=(t,i,s)=>i in t?AR(t,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[i]=s,H3=(t,i)=>{for(var s in i||(i={}))SR.call(i,s)&&U3(t,s,i[s]);if(B3)for(var s of B3(i))OR.call(i,s)&&U3(t,s,i[s]);return t};const Bb=new WeakMap;function T6(t,i,s={}){const{mode:a="replace",route:r=iS(),router:e=nS(),transform:p=T=>T}=s;Bb.has(r)||Bb.set(r,new Map);const _=Bb.get(r);ku(()=>{_.delete(t)}),_.set(t,r.query[t]);let D;const F=Z_((T,A)=>(D=A,{get(){T();const k=_.get(t);return p(k!==void 0?k:Yn(i))},set(k){_.get(t)!==k&&(_.set(t,k),A(),vo(()=>{const{params:I,query:N,hash:M}=r;e[Yn(a)]({params:I,query:H3(H3({},N),Object.fromEntries(_.entries())),hash:M})}))}}));return bn(()=>r.query[t],T=>{_.set(t,T),D()},{flush:"sync"}),F}var A6={exports:{}};(function(t,i){(function(s,a){t.exports=a()})(Li,function(){var s=1e3,a=6e4,r=36e5,e="millisecond",p="second",_="minute",D="hour",F="day",T="week",A="month",k="quarter",I="year",N="date",M="Invalid Date",V=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,U=/\[([^\]]+)]|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,G={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(De){var ge=["th","st","nd","rd"],Ne=De%100;return"["+De+(ge[(Ne-20)%10]||ge[Ne]||ge[0])+"]"}},ne=function(De,ge,Ne){var We=String(De);return!We||We.length>=ge?De:""+Array(ge+1-We.length).join(Ne)+De},z={s:ne,z:function(De){var ge=-De.utcOffset(),Ne=Math.abs(ge),We=Math.floor(Ne/60),Se=Ne%60;return(ge<=0?"+":"-")+ne(We,2,"0")+":"+ne(Se,2,"0")},m:function De(ge,Ne){if(ge.date()<Ne.date())return-De(Ne,ge);var We=12*(Ne.year()-ge.year())+(Ne.month()-ge.month()),Se=ge.clone().add(We,A),lt=Ne-Se<0,at=ge.clone().add(We+(lt?-1:1),A);return+(-(We+(Ne-Se)/(lt?Se-at:at-Se))||0)},a:function(De){return De<0?Math.ceil(De)||0:Math.floor(De)},p:function(De){return{M:A,y:I,w:T,d:F,D:N,h:D,m:_,s:p,ms:e,Q:k}[De]||String(De||"").toLowerCase().replace(/s$/,"")},u:function(De){return De===void 0}},H="en",Z={};Z[H]=G;var ee=function(De){return De instanceof ve},re=function De(ge,Ne,We){var Se;if(!ge)return H;if(typeof ge=="string"){var lt=ge.toLowerCase();Z[lt]&&(Se=lt),Ne&&(Z[lt]=Ne,Se=lt);var at=ge.split("-");if(!Se&&at.length>1)return De(at[0])}else{var ze=ge.name;Z[ze]=ge,Se=ze}return!We&&Se&&(H=Se),Se||!We&&H},te=function(De,ge){if(ee(De))return De.clone();var Ne=typeof ge=="object"?ge:{};return Ne.date=De,Ne.args=arguments,new ve(Ne)},ae=z;ae.l=re,ae.i=ee,ae.w=function(De,ge){return te(De,{locale:ge.$L,utc:ge.$u,x:ge.$x,$offset:ge.$offset})};var ve=function(){function De(Ne){this.$L=re(Ne.locale,null,!0),this.parse(Ne)}var ge=De.prototype;return ge.parse=function(Ne){this.$d=function(We){var Se=We.date,lt=We.utc;if(Se===null)return new Date(NaN);if(ae.u(Se))return new Date;if(Se instanceof Date)return new Date(Se);if(typeof Se=="string"&&!/Z$/i.test(Se)){var at=Se.match(V);if(at){var ze=at[2]-1||0,he=(at[7]||"0").substring(0,3);return lt?new Date(Date.UTC(at[1],ze,at[3]||1,at[4]||0,at[5]||0,at[6]||0,he)):new Date(at[1],ze,at[3]||1,at[4]||0,at[5]||0,at[6]||0,he)}}return new Date(Se)}(Ne),this.$x=Ne.x||{},this.init()},ge.init=function(){var Ne=this.$d;this.$y=Ne.getFullYear(),this.$M=Ne.getMonth(),this.$D=Ne.getDate(),this.$W=Ne.getDay(),this.$H=Ne.getHours(),this.$m=Ne.getMinutes(),this.$s=Ne.getSeconds(),this.$ms=Ne.getMilliseconds()},ge.$utils=function(){return ae},ge.isValid=function(){return this.$d.toString()!==M},ge.isSame=function(Ne,We){var Se=te(Ne);return this.startOf(We)<=Se&&Se<=this.endOf(We)},ge.isAfter=function(Ne,We){return te(Ne)<this.startOf(We)},ge.isBefore=function(Ne,We){return this.endOf(We)<te(Ne)},ge.$g=function(Ne,We,Se){return ae.u(Ne)?this[We]:this.set(Se,Ne)},ge.unix=function(){return Math.floor(this.valueOf()/1e3)},ge.valueOf=function(){return this.$d.getTime()},ge.startOf=function(Ne,We){var Se=this,lt=!!ae.u(We)||We,at=ae.p(Ne),ze=function(Me,_e){var it=ae.w(Se.$u?Date.UTC(Se.$y,_e,Me):new Date(Se.$y,_e,Me),Se);return lt?it:it.endOf(F)},he=function(Me,_e){return ae.w(Se.toDate()[Me].apply(Se.toDate("s"),(lt?[0,0,0,0]:[23,59,59,999]).slice(_e)),Se)},He=this.$W,Je=this.$M,Ue=this.$D,be="set"+(this.$u?"UTC":"");switch(at){case I:return lt?ze(1,0):ze(31,11);case A:return lt?ze(1,Je):ze(0,Je+1);case T:var Pe=this.$locale().weekStart||0,J=(He<Pe?He+7:He)-Pe;return ze(lt?Ue-J:Ue+(6-J),Je);case F:case N:return he(be+"Hours",0);case D:return he(be+"Minutes",1);case _:return he(be+"Seconds",2);case p:return he(be+"Milliseconds",3);default:return this.clone()}},ge.endOf=function(Ne){return this.startOf(Ne,!1)},ge.$set=function(Ne,We){var Se,lt=ae.p(Ne),at="set"+(this.$u?"UTC":""),ze=(Se={},Se[F]=at+"Date",Se[N]=at+"Date",Se[A]=at+"Month",Se[I]=at+"FullYear",Se[D]=at+"Hours",Se[_]=at+"Minutes",Se[p]=at+"Seconds",Se[e]=at+"Milliseconds",Se)[lt],he=lt===F?this.$D+(We-this.$W):We;if(lt===A||lt===I){var He=this.clone().set(N,1);He.$d[ze](he),He.init(),this.$d=He.set(N,Math.min(this.$D,He.daysInMonth())).$d}else ze&&this.$d[ze](he);return this.init(),this},ge.set=function(Ne,We){return this.clone().$set(Ne,We)},ge.get=function(Ne){return this[ae.p(Ne)]()},ge.add=function(Ne,We){var Se,lt=this;Ne=Number(Ne);var at=ae.p(We),ze=function(Je){var Ue=te(lt);return ae.w(Ue.date(Ue.date()+Math.round(Je*Ne)),lt)};if(at===A)return this.set(A,this.$M+Ne);if(at===I)return this.set(I,this.$y+Ne);if(at===F)return ze(1);if(at===T)return ze(7);var he=(Se={},Se[_]=a,Se[D]=r,Se[p]=s,Se)[at]||1,He=this.$d.getTime()+Ne*he;return ae.w(He,this)},ge.subtract=function(Ne,We){return this.add(-1*Ne,We)},ge.format=function(Ne){var We=this,Se=this.$locale();if(!this.isValid())return Se.invalidDate||M;var lt=Ne||"YYYY-MM-DDTHH:mm:ssZ",at=ae.z(this),ze=this.$H,he=this.$m,He=this.$M,Je=Se.weekdays,Ue=Se.months,be=function(_e,it,Ut,X){return _e&&(_e[it]||_e(We,lt))||Ut[it].slice(0,X)},Pe=function(_e){return ae.s(ze%12||12,_e,"0")},J=Se.meridiem||function(_e,it,Ut){var X=_e<12?"AM":"PM";return Ut?X.toLowerCase():X},Me={YY:String(this.$y).slice(-2),YYYY:ae.s(this.$y,4,"0"),M:He+1,MM:ae.s(He+1,2,"0"),MMM:be(Se.monthsShort,He,Ue,3),MMMM:be(Ue,He),D:this.$D,DD:ae.s(this.$D,2,"0"),d:String(this.$W),dd:be(Se.weekdaysMin,this.$W,Je,2),ddd:be(Se.weekdaysShort,this.$W,Je,3),dddd:Je[this.$W],H:String(ze),HH:ae.s(ze,2,"0"),h:Pe(1),hh:Pe(2),a:J(ze,he,!0),A:J(ze,he,!1),m:String(he),mm:ae.s(he,2,"0"),s:String(this.$s),ss:ae.s(this.$s,2,"0"),SSS:ae.s(this.$ms,3,"0"),Z:at};return lt.replace(U,function(_e,it){return it||Me[_e]||at.replace(":","")})},ge.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},ge.diff=function(Ne,We,Se){var lt,at=ae.p(We),ze=te(Ne),he=(ze.utcOffset()-this.utcOffset())*a,He=this-ze,Je=ae.m(this,ze);return Je=(lt={},lt[I]=Je/12,lt[A]=Je,lt[k]=Je/3,lt[T]=(He-he)/6048e5,lt[F]=(He-he)/864e5,lt[D]=He/r,lt[_]=He/a,lt[p]=He/s,lt)[at]||He,Se?Je:ae.a(Je)},ge.daysInMonth=function(){return this.endOf(A).$D},ge.$locale=function(){return Z[this.$L]},ge.locale=function(Ne,We){if(!Ne)return this.$L;var Se=this.clone(),lt=re(Ne,We,!0);return lt&&(Se.$L=lt),Se},ge.clone=function(){return ae.w(this.$d,this)},ge.toDate=function(){return new Date(this.valueOf())},ge.toJSON=function(){return this.isValid()?this.toISOString():null},ge.toISOString=function(){return this.$d.toISOString()},ge.toString=function(){return this.$d.toUTCString()},De}(),Ae=ve.prototype;return te.prototype=Ae,[["$ms",e],["$s",p],["$m",_],["$H",D],["$W",F],["$M",A],["$y",I],["$D",N]].forEach(function(De){Ae[De[1]]=function(ge){return this.$g(ge,De[0],De[1])}}),te.extend=function(De,ge){return De.$i||(De(ge,ve,te),De.$i=!0),te},te.locale=re,te.isDayjs=ee,te.unix=function(De){return te(1e3*De)},te.en=Z[H],te.Ls=Z,te.p={},te})})(A6);var kR=A6.exports;const Wi=js(kR);var S6={exports:{}};(function(t,i){(function(s,a){t.exports=a()})(Li,function(){var s,a,r=1e3,e=6e4,p=36e5,_=864e5,D=/\[([^\]]+)]|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,F=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)?)?$/,k={years:F,months:T,days:_,hours:p,minutes:e,seconds:r,milliseconds:1,weeks:6048e5},I=function(H){return H instanceof z},N=function(H,Z,ee){return new z(H,ee,Z.$l)},M=function(H){return a.p(H)+"s"},V=function(H){return H<0},U=function(H){return V(H)?Math.ceil(H):Math.floor(H)},G=function(H){return Math.abs(H)},ne=function(H,Z){return H?V(H)?{negative:!0,format:""+G(H)+Z}:{negative:!1,format:""+H+Z}:{negative:!1,format:""}},z=function(){function H(ee,re,te){var ae=this;if(this.$d={},this.$l=te,ee===void 0&&(this.$ms=0,this.parseFromMilliseconds()),re)return N(ee*k[M(re)],this);if(typeof ee=="number")return this.$ms=ee,this.parseFromMilliseconds(),this;if(typeof ee=="object")return Object.keys(ee).forEach(function(De){ae.$d[M(De)]=ee[De]}),this.calMilliseconds(),this;if(typeof ee=="string"){var ve=ee.match(A);if(ve){var Ae=ve.slice(2).map(function(De){return De!=null?Number(De):0});return this.$d.years=Ae[0],this.$d.months=Ae[1],this.$d.weeks=Ae[2],this.$d.days=Ae[3],this.$d.hours=Ae[4],this.$d.minutes=Ae[5],this.$d.seconds=Ae[6],this.calMilliseconds(),this}}return this}var Z=H.prototype;return Z.calMilliseconds=function(){var ee=this;this.$ms=Object.keys(this.$d).reduce(function(re,te){return re+(ee.$d[te]||0)*k[te]},0)},Z.parseFromMilliseconds=function(){var ee=this.$ms;this.$d.years=U(ee/F),ee%=F,this.$d.months=U(ee/T),ee%=T,this.$d.days=U(ee/_),ee%=_,this.$d.hours=U(ee/p),ee%=p,this.$d.minutes=U(ee/e),ee%=e,this.$d.seconds=U(ee/r),ee%=r,this.$d.milliseconds=ee},Z.toISOString=function(){var ee=ne(this.$d.years,"Y"),re=ne(this.$d.months,"M"),te=+this.$d.days||0;this.$d.weeks&&(te+=7*this.$d.weeks);var ae=ne(te,"D"),ve=ne(this.$d.hours,"H"),Ae=ne(this.$d.minutes,"M"),De=this.$d.seconds||0;this.$d.milliseconds&&(De+=this.$d.milliseconds/1e3);var ge=ne(De,"S"),Ne=ee.negative||re.negative||ae.negative||ve.negative||Ae.negative||ge.negative,We=ve.format||Ae.format||ge.format?"T":"",Se=(Ne?"-":"")+"P"+ee.format+re.format+ae.format+We+ve.format+Ae.format+ge.format;return Se==="P"||Se==="-P"?"P0D":Se},Z.toJSON=function(){return this.toISOString()},Z.format=function(ee){var re=ee||"YYYY-MM-DDTHH:mm:ss",te={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 re.replace(D,function(ae,ve){return ve||String(te[ae])})},Z.as=function(ee){return this.$ms/k[M(ee)]},Z.get=function(ee){var re=this.$ms,te=M(ee);return te==="milliseconds"?re%=1e3:re=te==="weeks"?U(re/k[te]):this.$d[te],re===0?0:re},Z.add=function(ee,re,te){var ae;return ae=re?ee*k[M(re)]:I(ee)?ee.$ms:N(ee,this).$ms,N(this.$ms+ae*(te?-1:1),this)},Z.subtract=function(ee,re){return this.add(ee,re,!0)},Z.locale=function(ee){var re=this.clone();return re.$l=ee,re},Z.clone=function(){return N(this.$ms,this)},Z.humanize=function(ee){return s().add(this.$ms,"ms").locale(this.$l).fromNow(!ee)},Z.valueOf=function(){return this.asMilliseconds()},Z.milliseconds=function(){return this.get("milliseconds")},Z.asMilliseconds=function(){return this.as("milliseconds")},Z.seconds=function(){return this.get("seconds")},Z.asSeconds=function(){return this.as("seconds")},Z.minutes=function(){return this.get("minutes")},Z.asMinutes=function(){return this.as("minutes")},Z.hours=function(){return this.get("hours")},Z.asHours=function(){return this.as("hours")},Z.days=function(){return this.get("days")},Z.asDays=function(){return this.as("days")},Z.weeks=function(){return this.get("weeks")},Z.asWeeks=function(){return this.as("weeks")},Z.months=function(){return this.get("months")},Z.asMonths=function(){return this.as("months")},Z.years=function(){return this.get("years")},Z.asYears=function(){return this.as("years")},H}();return function(H,Z,ee){s=ee,a=ee().$utils(),ee.duration=function(ae,ve){var Ae=ee.locale();return N(ae,{$l:Ae},ve)},ee.isDuration=I;var re=Z.prototype.add,te=Z.prototype.subtract;Z.prototype.add=function(ae,ve){return I(ae)&&(ae=ae.asMilliseconds()),re.bind(this)(ae,ve)},Z.prototype.subtract=function(ae,ve){return I(ae)&&(ae=ae.asMilliseconds()),te.bind(this)(ae,ve)}}})})(S6);var RR=S6.exports;const PR=js(RR);var O6={exports:{}};(function(t,i){(function(s,a){t.exports=a()})(Li,function(){var s="minute",a=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(e,p,_){var D=p.prototype;_.utc=function(M){var V={date:M,utc:!0,args:arguments};return new p(V)},D.utc=function(M){var V=_(this.toDate(),{locale:this.$L,utc:!0});return M?V.add(this.utcOffset(),s):V},D.local=function(){return _(this.toDate(),{locale:this.$L,utc:!1})};var F=D.parse;D.parse=function(M){M.utc&&(this.$u=!0),this.$utils().u(M.$offset)||(this.$offset=M.$offset),F.call(this,M)};var T=D.init;D.init=function(){if(this.$u){var M=this.$d;this.$y=M.getUTCFullYear(),this.$M=M.getUTCMonth(),this.$D=M.getUTCDate(),this.$W=M.getUTCDay(),this.$H=M.getUTCHours(),this.$m=M.getUTCMinutes(),this.$s=M.getUTCSeconds(),this.$ms=M.getUTCMilliseconds()}else T.call(this)};var A=D.utcOffset;D.utcOffset=function(M,V){var U=this.$utils().u;if(U(M))return this.$u?0:U(this.$offset)?A.call(this):this.$offset;if(typeof M=="string"&&(M=function(H){H===void 0&&(H="");var Z=H.match(a);if(!Z)return null;var ee=(""+Z[0]).match(r)||["-",0,0],re=ee[0],te=60*+ee[1]+ +ee[2];return te===0?0:re==="+"?te:-te}(M),M===null))return this;var G=Math.abs(M)<=16?60*M:M,ne=this;if(V)return ne.$offset=G,ne.$u=M===0,ne;if(M!==0){var z=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(ne=this.local().add(G+z,s)).$offset=G,ne.$x.$localOffset=z}else ne=this.utc();return ne};var k=D.format;D.format=function(M){var V=M||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return k.call(this,V)},D.valueOf=function(){var M=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*M},D.isUTC=function(){return!!this.$u},D.toISOString=function(){return this.toDate().toISOString()},D.toString=function(){return this.toDate().toUTCString()};var I=D.toDate;D.toDate=function(M){return M==="s"&&this.$offset?_(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():I.call(this)};var N=D.diff;D.diff=function(M,V,U){if(M&&this.$u===M.$u)return N.call(this,M,V,U);var G=this.local(),ne=_(M).local();return N.call(G,ne,V,U)}}})})(O6);var IR=O6.exports;const NR=js(IR);var k6={exports:{}};(function(t,i){(function(s,a){t.exports=a()})(Li,function(){var s={year:0,month:1,day:2,hour:3,minute:4,second:5},a={};return function(r,e,p){var _,D=function(k,I,N){N===void 0&&(N={});var M=new Date(k),V=function(U,G){G===void 0&&(G={});var ne=G.timeZoneName||"short",z=U+"|"+ne,H=a[z];return H||(H=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:U,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:ne}),a[z]=H),H}(I,N);return V.formatToParts(M)},F=function(k,I){for(var N=D(k,I),M=[],V=0;V<N.length;V+=1){var U=N[V],G=U.type,ne=U.value,z=s[G];z>=0&&(M[z]=parseInt(ne,10))}var H=M[3],Z=H===24?0:H,ee=M[0]+"-"+M[1]+"-"+M[2]+" "+Z+":"+M[4]+":"+M[5]+":000",re=+k;return(p.utc(ee).valueOf()-(re-=re%1e3))/6e4},T=e.prototype;T.tz=function(k,I){k===void 0&&(k=_);var N=this.utcOffset(),M=this.toDate(),V=M.toLocaleString("en-US",{timeZone:k}),U=Math.round((M-new Date(V))/1e3/60),G=p(V).$set("millisecond",this.$ms).utcOffset(15*-Math.round(M.getTimezoneOffset()/15)-U,!0);if(I){var ne=G.utcOffset();G=G.add(N-ne,"minute")}return G.$x.$timezone=k,G},T.offsetName=function(k){var I=this.$x.$timezone||p.tz.guess(),N=D(this.valueOf(),I,{timeZoneName:k}).find(function(M){return M.type.toLowerCase()==="timezonename"});return N&&N.value};var A=T.startOf;T.startOf=function(k,I){if(!this.$x||!this.$x.$timezone)return A.call(this,k,I);var N=p(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return A.call(N,k,I).tz(this.$x.$timezone,!0)},p.tz=function(k,I,N){var M=N&&I,V=N||I||_,U=F(+p(),V);if(typeof k!="string")return p(k).tz(V);var G=function(Z,ee,re){var te=Z-60*ee*1e3,ae=F(te,re);if(ee===ae)return[te,ee];var ve=F(te-=60*(ae-ee)*1e3,re);return ae===ve?[te,ae]:[Z-60*Math.min(ae,ve)*1e3,Math.max(ae,ve)]}(p.utc(k,M).valueOf(),U,V),ne=G[0],z=G[1],H=p(ne).utcOffset(z);return H.$x.$timezone=V,H},p.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},p.tz.setDefault=function(k){_=k}}})})(k6);var LR=k6.exports;const MR=js(LR);var R6={exports:{}};(function(t,i){(function(s,a){t.exports=a()})(Li,function(){return function(s,a){var r=a.prototype,e=r.format;r.format=function(p){var _=this,D=this.$locale();if(!this.isValid())return e.bind(this)(p);var F=this.$utils(),T=(p||"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 D.ordinal(_.$D);case"gggg":return _.weekYear();case"GGGG":return _.isoWeekYear();case"wo":return D.ordinal(_.week(),"W");case"w":case"ww":return F.s(_.week(),A==="w"?1:2,"0");case"W":case"WW":return F.s(_.isoWeek(),A==="W"?1:2,"0");case"k":case"kk":return F.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)}}})})(R6);var BR=R6.exports;const UR=js(BR);var P6={exports:{}};(function(t,i){(function(s,a){t.exports=a()})(Li,function(){return function(s,a){a.prototype.isSameOrBefore=function(r,e){return this.isSame(r,e)||this.isBefore(r,e)}}})})(P6);var HR=P6.exports;const $R=js(HR);var I6={exports:{}};(function(t,i){(function(s,a){t.exports=a()})(Li,function(){return function(s,a){a.prototype.isSameOrAfter=function(r,e){return this.isSame(r,e)||this.isAfter(r,e)}}})})(I6);var WR=I6.exports;const zR=js(WR);var N6={exports:{}};(function(t,i){(function(s,a){t.exports=a()})(Li,function(){return function(s,a,r){var e=function(p,_){if(!_||!_.length||!_[0]||_.length===1&&!_[0].length)return null;var D;_.length===1&&_[0].length>0&&(_=_[0]),D=_[0];for(var F=1;F<_.length;F+=1)_[F].isValid()&&!_[F][p](D)||(D=_[F]);return D};r.max=function(){var p=[].slice.call(arguments,0);return e("isAfter",p)},r.min=function(){var p=[].slice.call(arguments,0);return e("isBefore",p)}}})})(N6);var jR=N6.exports;const VR=js(jR);var L6={exports:{}};(function(t,i){(function(s,a){t.exports=a()})(Li,function(){return function(s,a,r){s=s||{};var e=a.prototype,p={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 _(F,T,A,k){return e.fromToBase(F,T,A,k)}r.en.relativeTime=p,e.fromToBase=function(F,T,A,k,I){for(var N,M,V,U=A.$locale().relativeTime||p,G=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"}],ne=G.length,z=0;z<ne;z+=1){var H=G[z];H.d&&(N=k?r(F).diff(A,H.d,!0):A.diff(F,H.d,!0));var Z=(s.rounding||Math.round)(Math.abs(N));if(V=N>0,Z<=H.r||!H.r){Z<=1&&z>0&&(H=G[z-1]);var ee=U[H.l];I&&(Z=I(""+Z)),M=typeof ee=="string"?ee.replace("%d",Z):ee(Z,T,H.l,V);break}}if(T)return M;var re=V?U.future:U.past;return typeof re=="function"?re(M):re.replace("%s",M)},e.to=function(F,T){return _(F,T,this,!0)},e.from=function(F,T){return _(F,T,this)};var D=function(F){return F.$u?r.utc():r()};e.toNow=function(F){return this.to(D(this),F)},e.fromNow=function(F){return this.from(D(this),F)}}})})(L6);var GR=L6.exports;const YR=js(GR);var $g={exports:{}};/**
30
+ */const Gf=typeof window<"u";function t8(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const un=Object.assign;function Tb(t,i){const s={};for(const a in i){const r=i[a];s[a]=Na(r)?r.map(t):t(r)}return s}const Id=()=>{},Na=Array.isArray,r8=/\/$/,n8=t=>t.replace(r8,"");function Ab(t,i,s="/"){let a,r={},e="",p="";const _=i.indexOf("#");let D=i.indexOf("?");return _<D&&_>=0&&(D=-1),D>-1&&(a=i.slice(0,D),e=i.slice(D+1,_>-1?_:i.length),r=t(e)),_>-1&&(a=a||i.slice(0,_),p=i.slice(_,i.length)),a=o8(a??i,s),{fullPath:a+(e&&"?")+e+p,path:a,query:r,hash:p}}function i8(t,i){const s=i.query?t(i.query):"";return i.path+(s&&"?")+s+(i.hash||"")}function pD(t,i){return!i||!t.toLowerCase().startsWith(i.toLowerCase())?t:t.slice(i.length)||"/"}function s8(t,i,s){const a=i.matched.length-1,r=s.matched.length-1;return a>-1&&a===r&&c0(i.matched[a],s.matched[r])&&nE(i.params,s.params)&&t(i.query)===t(s.query)&&i.hash===s.hash}function c0(t,i){return(t.aliasOf||t)===(i.aliasOf||i)}function nE(t,i){if(Object.keys(t).length!==Object.keys(i).length)return!1;for(const s in t)if(!a8(t[s],i[s]))return!1;return!0}function a8(t,i){return Na(t)?mD(t,i):Na(i)?mD(i,t):t===i}function mD(t,i){return Na(i)?t.length===i.length&&t.every((s,a)=>s===i[a]):t.length===1&&t[0]===i}function o8(t,i){if(t.startsWith("/"))return t;if(!t)return i;const s=i.split("/"),a=t.split("/"),r=a[a.length-1];(r===".."||r===".")&&a.push("");let e=s.length-1,p,_;for(p=0;p<a.length;p++)if(_=a[p],_!==".")if(_==="..")e>1&&e--;else break;return s.slice(0,e).join("/")+"/"+a.slice(p-(p===a.length?1:0)).join("/")}var u0;(function(t){t.pop="pop",t.push="push"})(u0||(u0={}));var _u;(function(t){t.back="back",t.forward="forward",t.unknown=""})(_u||(_u={}));const Sb="";function iE(t){if(!t)if(Gf){const i=document.querySelector("base");t=i&&i.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),n8(t)}const l8=/^[^#]+#/;function sE(t,i){return t.replace(l8,"#")+i}function c8(t,i){const s=document.documentElement.getBoundingClientRect(),a=t.getBoundingClientRect();return{behavior:i.behavior,left:a.left-s.left-(i.left||0),top:a.top-s.top-(i.top||0)}}const m2=()=>({left:window.pageXOffset,top:window.pageYOffset});function u8(t){let i;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;i=c8(r,t)}else i=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(i):window.scrollTo(i.left!=null?i.left:window.pageXOffset,i.top!=null?i.top:window.pageYOffset)}function gD(t,i){return(history.state?history.state.position-i:-1)+t}const g_=new Map;function f8(t,i){g_.set(t,i)}function h8(t){const i=g_.get(t);return g_.delete(t),i}let d8=()=>location.protocol+"//"+location.host;function aE(t,i){const{pathname:s,search:a,hash:r}=i,e=t.indexOf("#");if(e>-1){let _=r.includes(t.slice(e))?t.slice(e).length:1,D=r.slice(_);return D[0]!=="/"&&(D="/"+D),pD(D,"")}return pD(s,t)+a+r}function p8(t,i,s,a){let r=[],e=[],p=null;const _=({state:k})=>{const I=aE(t,location),N=s.value,M=i.value;let V=0;if(k){if(s.value=I,i.value=k,p&&p===N){p=null;return}V=M?k.position-M.position:0}else a(I);r.forEach(U=>{U(s.value,N,{delta:V,type:u0.pop,direction:V?V>0?_u.forward:_u.back:_u.unknown})})};function D(){p=s.value}function F(k){r.push(k);const I=()=>{const N=r.indexOf(k);N>-1&&r.splice(N,1)};return e.push(I),I}function T(){const{history:k}=window;k.state&&k.replaceState(un({},k.state,{scroll:m2()}),"")}function A(){for(const k of e)k();e=[],window.removeEventListener("popstate",_),window.removeEventListener("beforeunload",T)}return window.addEventListener("popstate",_),window.addEventListener("beforeunload",T,{passive:!0}),{pauseListeners:D,listen:F,destroy:A}}function vD(t,i,s,a=!1,r=!1){return{back:t,current:i,forward:s,replaced:a,position:window.history.length,scroll:r?m2():null}}function m8(t){const{history:i,location:s}=window,a={value:aE(t,s)},r={value:i.state};r.value||e(a.value,{back:null,current:a.value,forward:null,position:i.length-1,replaced:!0,scroll:null},!0);function e(D,F,T){const A=t.indexOf("#"),k=A>-1?(s.host&&document.querySelector("base")?t:t.slice(A))+D:d8()+t+D;try{i[T?"replaceState":"pushState"](F,"",k),r.value=F}catch(I){console.error(I),s[T?"replace":"assign"](k)}}function p(D,F){const T=un({},i.state,vD(r.value.back,D,r.value.forward,!0),F,{position:r.value.position});e(D,T,!0),a.value=D}function _(D,F){const T=un({},r.value,i.state,{forward:D,scroll:m2()});e(T.current,T,!0);const A=un({},vD(a.value,D,null),{position:T.position+1},F);e(D,A,!1),a.value=D}return{location:a,state:r,push:_,replace:p}}function g8(t){t=iE(t);const i=m8(t),s=p8(t,i.state,i.location,i.replace);function a(e,p=!0){p||s.pauseListeners(),history.go(e)}const r=un({location:"",base:t,go:a,createHref:sE.bind(null,t)},i,s);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>i.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>i.state.value}),r}function v8(t=""){let i=[],s=[Sb],a=0;t=iE(t);function r(_){a++,a===s.length||s.splice(a),s.push(_)}function e(_,D,{direction:F,delta:T}){const A={direction:F,delta:T,type:u0.pop};for(const k of i)k(_,D,A)}const p={location:Sb,state:{},base:t,createHref:sE.bind(null,t),replace(_){s.splice(a--,1),r(_)},push(_,D){r(_)},listen(_){return i.push(_),()=>{const D=i.indexOf(_);D>-1&&i.splice(D,1)}},destroy(){i=[],s=[Sb],a=0},go(_,D=!0){const F=this.location,T=_<0?_u.back:_u.forward;a=Math.max(0,Math.min(a+_,s.length-1)),D&&e(this.location,F,{direction:T,delta:_})}};return Object.defineProperty(p,"location",{enumerable:!0,get:()=>s[a]}),p}function b8(t){return typeof t=="string"||t&&typeof t=="object"}function oE(t){return typeof t=="string"||typeof t=="symbol"}const Pl={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},lE=Symbol("");var bD;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(bD||(bD={}));function f0(t,i){return un(new Error,{type:t,[lE]:!0},i)}function Vo(t,i){return t instanceof Error&&lE in t&&(i==null||!!(t.type&i))}const _D="[^/]+?",_8={sensitive:!1,strict:!1,start:!0,end:!0},y8=/[.+*?^${}()[\]/\\]/g;function D8(t,i){const s=un({},_8,i),a=[];let r=s.start?"^":"";const e=[];for(const F of t){const T=F.length?[]:[90];s.strict&&!F.length&&(r+="/");for(let A=0;A<F.length;A++){const k=F[A];let I=40+(s.sensitive?.25:0);if(k.type===0)A||(r+="/"),r+=k.value.replace(y8,"\\$&"),I+=40;else if(k.type===1){const{value:N,repeatable:M,optional:V,regexp:U}=k;e.push({name:N,repeatable:M,optional:V});const G=U||_D;if(G!==_D){I+=10;try{new RegExp(`(${G})`)}catch(z){throw new Error(`Invalid custom RegExp for param "${N}" (${G}): `+z.message)}}let ne=M?`((?:${G})(?:/(?:${G}))*)`:`(${G})`;A||(ne=V&&F.length<2?`(?:/${ne})`:"/"+ne),V&&(ne+="?"),r+=ne,I+=20,V&&(I+=-8),M&&(I+=-20),G===".*"&&(I+=-50)}T.push(I)}a.push(T)}if(s.strict&&s.end){const F=a.length-1;a[F][a[F].length-1]+=.7000000000000001}s.strict||(r+="/?"),s.end?r+="$":s.strict&&(r+="(?:/|$)");const p=new RegExp(r,s.sensitive?"":"i");function _(F){const T=F.match(p),A={};if(!T)return null;for(let k=1;k<T.length;k++){const I=T[k]||"",N=e[k-1];A[N.name]=I&&N.repeatable?I.split("/"):I}return A}function D(F){let T="",A=!1;for(const k of t){(!A||!T.endsWith("/"))&&(T+="/"),A=!1;for(const I of k)if(I.type===0)T+=I.value;else if(I.type===1){const{value:N,repeatable:M,optional:V}=I,U=N in F?F[N]:"";if(Na(U)&&!M)throw new Error(`Provided param "${N}" is an array but it is not repeatable (* or + modifiers)`);const G=Na(U)?U.join("/"):U;if(!G)if(V)k.length<2&&(T.endsWith("/")?T=T.slice(0,-1):A=!0);else throw new Error(`Missing required param "${N}"`);T+=G}}return T||"/"}return{re:p,score:a,keys:e,parse:_,stringify:D}}function w8(t,i){let s=0;for(;s<t.length&&s<i.length;){const a=i[s]-t[s];if(a)return a;s++}return t.length<i.length?t.length===1&&t[0]===40+40?-1:1:t.length>i.length?i.length===1&&i[0]===40+40?1:-1:0}function F8(t,i){let s=0;const a=t.score,r=i.score;for(;s<a.length&&s<r.length;){const e=w8(a[s],r[s]);if(e)return e;s++}if(Math.abs(r.length-a.length)===1){if(yD(a))return 1;if(yD(r))return-1}return r.length-a.length}function yD(t){const i=t[t.length-1];return t.length>0&&i[i.length-1]<0}const E8={type:0,value:""},x8=/[a-zA-Z0-9_]/;function C8(t){if(!t)return[[]];if(t==="/")return[[E8]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function i(I){throw new Error(`ERR (${s})/"${F}": ${I}`)}let s=0,a=s;const r=[];let e;function p(){e&&r.push(e),e=[]}let _=0,D,F="",T="";function A(){F&&(s===0?e.push({type:0,value:F}):s===1||s===2||s===3?(e.length>1&&(D==="*"||D==="+")&&i(`A repeatable param (${F}) must be alone in its segment. eg: '/:ids+.`),e.push({type:1,value:F,regexp:T,repeatable:D==="*"||D==="+",optional:D==="*"||D==="?"})):i("Invalid state to consume buffer"),F="")}function k(){F+=D}for(;_<t.length;){if(D=t[_++],D==="\\"&&s!==2){a=s,s=4;continue}switch(s){case 0:D==="/"?(F&&A(),p()):D===":"?(A(),s=1):k();break;case 4:k(),s=a;break;case 1:D==="("?s=2:x8.test(D)?k():(A(),s=0,D!=="*"&&D!=="?"&&D!=="+"&&_--);break;case 2:D===")"?T[T.length-1]=="\\"?T=T.slice(0,-1)+D:s=3:T+=D;break;case 3:A(),s=0,D!=="*"&&D!=="?"&&D!=="+"&&_--,T="";break;default:i("Unknown state");break}}return s===2&&i(`Unfinished custom RegExp for param "${F}"`),A(),p(),r}function T8(t,i,s){const a=D8(C8(t.path),s),r=un(a,{record:t,parent:i,children:[],alias:[]});return i&&!r.record.aliasOf==!i.record.aliasOf&&i.children.push(r),r}function A8(t,i){const s=[],a=new Map;i=FD({strict:!1,end:!0,sensitive:!1},i);function r(T){return a.get(T)}function e(T,A,k){const I=!k,N=S8(T);N.aliasOf=k&&k.record;const M=FD(i,T),V=[N];if("alias"in T){const ne=typeof T.alias=="string"?[T.alias]:T.alias;for(const z of ne)V.push(un({},N,{components:k?k.record.components:N.components,path:z,aliasOf:k?k.record:N}))}let U,G;for(const ne of V){const{path:z}=ne;if(A&&z[0]!=="/"){const H=A.record.path,Z=H[H.length-1]==="/"?"":"/";ne.path=A.record.path+(z&&Z+z)}if(U=T8(ne,A,M),k?k.alias.push(U):(G=G||U,G!==U&&G.alias.push(U),I&&T.name&&!wD(U)&&p(T.name)),N.children){const H=N.children;for(let Z=0;Z<H.length;Z++)e(H[Z],U,k&&k.children[Z])}k=k||U,(U.record.components&&Object.keys(U.record.components).length||U.record.name||U.record.redirect)&&D(U)}return G?()=>{p(G)}:Id}function p(T){if(oE(T)){const A=a.get(T);A&&(a.delete(T),s.splice(s.indexOf(A),1),A.children.forEach(p),A.alias.forEach(p))}else{const A=s.indexOf(T);A>-1&&(s.splice(A,1),T.record.name&&a.delete(T.record.name),T.children.forEach(p),T.alias.forEach(p))}}function _(){return s}function D(T){let A=0;for(;A<s.length&&F8(T,s[A])>=0&&(T.record.path!==s[A].record.path||!cE(T,s[A]));)A++;s.splice(A,0,T),T.record.name&&!wD(T)&&a.set(T.record.name,T)}function F(T,A){let k,I={},N,M;if("name"in T&&T.name){if(k=a.get(T.name),!k)throw f0(1,{location:T});M=k.record.name,I=un(DD(A.params,k.keys.filter(G=>!G.optional).map(G=>G.name)),T.params&&DD(T.params,k.keys.map(G=>G.name))),N=k.stringify(I)}else if("path"in T)N=T.path,k=s.find(G=>G.re.test(N)),k&&(I=k.parse(N),M=k.record.name);else{if(k=A.name?a.get(A.name):s.find(G=>G.re.test(A.path)),!k)throw f0(1,{location:T,currentLocation:A});M=k.record.name,I=un({},A.params,T.params),N=k.stringify(I)}const V=[];let U=k;for(;U;)V.unshift(U.record),U=U.parent;return{name:M,path:N,params:I,matched:V,meta:k8(V)}}return t.forEach(T=>e(T)),{addRoute:e,resolve:F,removeRoute:p,getRoutes:_,getRecordMatcher:r}}function DD(t,i){const s={};for(const a of i)a in t&&(s[a]=t[a]);return s}function S8(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:O8(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 O8(t){const i={},s=t.props||!1;if("component"in t)i.default=s;else for(const a in t.components)i[a]=typeof s=="object"?s[a]:s;return i}function wD(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function k8(t){return t.reduce((i,s)=>un(i,s.meta),{})}function FD(t,i){const s={};for(const a in t)s[a]=a in i?i[a]:t[a];return s}function cE(t,i){return i.children.some(s=>s===t||cE(t,s))}const uE=/#/g,R8=/&/g,P8=/\//g,I8=/=/g,N8=/\?/g,fE=/\+/g,L8=/%5B/g,M8=/%5D/g,hE=/%5E/g,B8=/%60/g,dE=/%7B/g,U8=/%7C/g,pE=/%7D/g,H8=/%20/g;function E4(t){return encodeURI(""+t).replace(U8,"|").replace(L8,"[").replace(M8,"]")}function $8(t){return E4(t).replace(dE,"{").replace(pE,"}").replace(hE,"^")}function v_(t){return E4(t).replace(fE,"%2B").replace(H8,"+").replace(uE,"%23").replace(R8,"%26").replace(B8,"`").replace(dE,"{").replace(pE,"}").replace(hE,"^")}function W8(t){return v_(t).replace(I8,"%3D")}function z8(t){return E4(t).replace(uE,"%23").replace(N8,"%3F")}function j8(t){return t==null?"":z8(t).replace(P8,"%2F")}function wg(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function V8(t){const i={};if(t===""||t==="?")return i;const a=(t[0]==="?"?t.slice(1):t).split("&");for(let r=0;r<a.length;++r){const e=a[r].replace(fE," "),p=e.indexOf("="),_=wg(p<0?e:e.slice(0,p)),D=p<0?null:wg(e.slice(p+1));if(_ in i){let F=i[_];Na(F)||(F=i[_]=[F]),F.push(D)}else i[_]=D}return i}function ED(t){let i="";for(let s in t){const a=t[s];if(s=W8(s),a==null){a!==void 0&&(i+=(i.length?"&":"")+s);continue}(Na(a)?a.map(e=>e&&v_(e)):[a&&v_(a)]).forEach(e=>{e!==void 0&&(i+=(i.length?"&":"")+s,e!=null&&(i+="="+e))})}return i}function G8(t){const i={};for(const s in t){const a=t[s];a!==void 0&&(i[s]=Na(a)?a.map(r=>r==null?null:""+r):a==null?a:""+a)}return i}const Y8=Symbol(""),xD=Symbol(""),g2=Symbol(""),x4=Symbol(""),b_=Symbol("");function bd(){let t=[];function i(a){return t.push(a),()=>{const r=t.indexOf(a);r>-1&&t.splice(r,1)}}function s(){t=[]}return{add:i,list:()=>t.slice(),reset:s}}function Hl(t,i,s,a,r){const e=a&&(a.enterCallbacks[r]=a.enterCallbacks[r]||[]);return()=>new Promise((p,_)=>{const D=A=>{A===!1?_(f0(4,{from:s,to:i})):A instanceof Error?_(A):b8(A)?_(f0(2,{from:i,to:A})):(e&&a.enterCallbacks[r]===e&&typeof A=="function"&&e.push(A),p())},F=t.call(a&&a.instances[r],i,s,D);let T=Promise.resolve(F);t.length<3&&(T=T.then(D)),T.catch(A=>_(A))})}function Ob(t,i,s,a){const r=[];for(const e of t)for(const p in e.components){let _=e.components[p];if(!(i!=="beforeRouteEnter"&&!e.instances[p]))if(K8(_)){const F=(_.__vccOpts||_)[i];F&&r.push(Hl(F,s,a,e,p))}else{let D=_();r.push(()=>D.then(F=>{if(!F)return Promise.reject(new Error(`Couldn't resolve component "${p}" at "${e.path}"`));const T=t8(F)?F.default:F;e.components[p]=T;const k=(T.__vccOpts||T)[i];return k&&Hl(k,s,a,e,p)()}))}}return r}function K8(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function CD(t){const i=is(g2),s=is(x4),a=Hr(()=>i.resolve(Qt(t.to))),r=Hr(()=>{const{matched:D}=a.value,{length:F}=D,T=D[F-1],A=s.matched;if(!T||!A.length)return-1;const k=A.findIndex(c0.bind(null,T));if(k>-1)return k;const I=TD(D[F-2]);return F>1&&TD(T)===I&&A[A.length-1].path!==I?A.findIndex(c0.bind(null,D[F-2])):k}),e=Hr(()=>r.value>-1&&J8(s.params,a.value.params)),p=Hr(()=>r.value>-1&&r.value===s.matched.length-1&&nE(s.params,a.value.params));function _(D={}){return X8(D)?i[Qt(t.replace)?"replace":"push"](Qt(t.to)).catch(Id):Promise.resolve()}return{route:a,href:Hr(()=>a.value.href),isActive:e,isExactActive:p,navigate:_}}const q8=mi({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:CD,setup(t,{slots:i}){const s=Jl(CD(t)),{options:a}=is(g2),r=Hr(()=>({[AD(t.activeClass,a.linkActiveClass,"router-link-active")]:s.isActive,[AD(t.exactActiveClass,a.linkExactActiveClass,"router-link-exact-active")]:s.isExactActive}));return()=>{const e=i.default&&i.default(s);return t.custom?e:Ou("a",{"aria-current":s.isExactActive?t.ariaCurrentValue:null,href:s.href,onClick:s.navigate,class:r.value},e)}}}),Q8=q8;function X8(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 i=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(i))return}return t.preventDefault&&t.preventDefault(),!0}}function J8(t,i){for(const s in i){const a=i[s],r=t[s];if(typeof a=="string"){if(a!==r)return!1}else if(!Na(r)||r.length!==a.length||a.some((e,p)=>e!==r[p]))return!1}return!0}function TD(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const AD=(t,i,s)=>t??i??s,Z8=mi({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:i,slots:s}){const a=is(b_),r=Hr(()=>t.route||a.value),e=is(xD,0),p=Hr(()=>{let F=Qt(e);const{matched:T}=r.value;let A;for(;(A=T[F])&&!A.components;)F++;return F}),_=Hr(()=>r.value.matched[p.value]);Ad(xD,Hr(()=>p.value+1)),Ad(Y8,_),Ad(b_,r);const D=Yt();return bn(()=>[D.value,_.value,t.name],([F,T,A],[k,I,N])=>{T&&(T.instances[A]=F,I&&I!==T&&F&&F===k&&(T.leaveGuards.size||(T.leaveGuards=I.leaveGuards),T.updateGuards.size||(T.updateGuards=I.updateGuards))),F&&T&&(!I||!c0(T,I)||!k)&&(T.enterCallbacks[A]||[]).forEach(M=>M(F))},{flush:"post"}),()=>{const F=r.value,T=t.name,A=_.value,k=A&&A.components[T];if(!k)return SD(s.default,{Component:k,route:F});const I=A.props[T],N=I?I===!0?F.params:typeof I=="function"?I(F):I:null,V=Ou(k,un({},N,i,{onVnodeUnmounted:U=>{U.component.isUnmounted&&(A.instances[T]=null)},ref:D}));return SD(s.default,{Component:V,route:F})||V}}});function SD(t,i){if(!t)return null;const s=t(i);return s.length===1?s[0]:s}const eS=Z8;function tS(t){const i=A8(t.routes,t),s=t.parseQuery||V8,a=t.stringifyQuery||ED,r=t.history,e=bd(),p=bd(),_=bd(),D=Zf(Pl);let F=Pl;Gf&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const T=Tb.bind(null,J=>""+J),A=Tb.bind(null,j8),k=Tb.bind(null,wg);function I(J,Me){let _e,it;return oE(J)?(_e=i.getRecordMatcher(J),it=Me):it=J,i.addRoute(it,_e)}function N(J){const Me=i.getRecordMatcher(J);Me&&i.removeRoute(Me)}function M(){return i.getRoutes().map(J=>J.record)}function V(J){return!!i.getRecordMatcher(J)}function U(J,Me){if(Me=un({},Me||D.value),typeof J=="string"){const ce=Ab(s,J,Me.path),Be=i.resolve({path:ce.path},Me),$e=r.createHref(ce.fullPath);return un(ce,Be,{params:k(Be.params),hash:wg(ce.hash),redirectedFrom:void 0,href:$e})}let _e;if("path"in J)_e=un({},J,{path:Ab(s,J.path,Me.path).path});else{const ce=un({},J.params);for(const Be in ce)ce[Be]==null&&delete ce[Be];_e=un({},J,{params:A(ce)}),Me.params=A(Me.params)}const it=i.resolve(_e,Me),Ut=J.hash||"";it.params=T(k(it.params));const X=i8(a,un({},J,{hash:$8(Ut),path:it.path})),se=r.createHref(X);return un({fullPath:X,hash:Ut,query:a===ED?G8(J.query):J.query||{}},it,{redirectedFrom:void 0,href:se})}function G(J){return typeof J=="string"?Ab(s,J,D.value.path):un({},J)}function ne(J,Me){if(F!==J)return f0(8,{from:Me,to:J})}function z(J){return ee(J)}function H(J){return z(un(G(J),{replace:!0}))}function Z(J){const Me=J.matched[J.matched.length-1];if(Me&&Me.redirect){const{redirect:_e}=Me;let it=typeof _e=="function"?_e(J):_e;return typeof it=="string"&&(it=it.includes("?")||it.includes("#")?it=G(it):{path:it},it.params={}),un({query:J.query,hash:J.hash,params:"path"in it?{}:J.params},it)}}function ee(J,Me){const _e=F=U(J),it=D.value,Ut=J.state,X=J.force,se=J.replace===!0,ce=Z(_e);if(ce)return ee(un(G(ce),{state:typeof ce=="object"?un({},Ut,ce.state):Ut,force:X,replace:se}),Me||_e);const Be=_e;Be.redirectedFrom=Me;let $e;return!X&&s8(a,it,_e)&&($e=f0(16,{to:Be,from:it}),he(it,it,!0,!1)),($e?Promise.resolve($e):ae(Be,it)).catch(Ge=>Vo(Ge)?Vo(Ge,2)?Ge:ze(Ge):lt(Ge,Be,it)).then(Ge=>{if(Ge){if(Vo(Ge,2))return ee(un({replace:se},G(Ge.to),{state:typeof Ge.to=="object"?un({},Ut,Ge.to.state):Ut,force:X}),Me||Be)}else Ge=Ae(Be,it,!0,se,Ut);return ve(Be,it,Ge),Ge})}function re(J,Me){const _e=ne(J,Me);return _e?Promise.reject(_e):Promise.resolve()}function te(J){const Me=Ue.values().next().value;return Me&&typeof Me.runWithContext=="function"?Me.runWithContext(J):J()}function ae(J,Me){let _e;const[it,Ut,X]=rS(J,Me);_e=Ob(it.reverse(),"beforeRouteLeave",J,Me);for(const ce of it)ce.leaveGuards.forEach(Be=>{_e.push(Hl(Be,J,Me))});const se=re.bind(null,J,Me);return _e.push(se),Pe(_e).then(()=>{_e=[];for(const ce of e.list())_e.push(Hl(ce,J,Me));return _e.push(se),Pe(_e)}).then(()=>{_e=Ob(Ut,"beforeRouteUpdate",J,Me);for(const ce of Ut)ce.updateGuards.forEach(Be=>{_e.push(Hl(Be,J,Me))});return _e.push(se),Pe(_e)}).then(()=>{_e=[];for(const ce of X)if(ce.beforeEnter)if(Na(ce.beforeEnter))for(const Be of ce.beforeEnter)_e.push(Hl(Be,J,Me));else _e.push(Hl(ce.beforeEnter,J,Me));return _e.push(se),Pe(_e)}).then(()=>(J.matched.forEach(ce=>ce.enterCallbacks={}),_e=Ob(X,"beforeRouteEnter",J,Me),_e.push(se),Pe(_e))).then(()=>{_e=[];for(const ce of p.list())_e.push(Hl(ce,J,Me));return _e.push(se),Pe(_e)}).catch(ce=>Vo(ce,8)?ce:Promise.reject(ce))}function ve(J,Me,_e){_.list().forEach(it=>te(()=>it(J,Me,_e)))}function Ae(J,Me,_e,it,Ut){const X=ne(J,Me);if(X)return X;const se=Me===Pl,ce=Gf?history.state:{};_e&&(it||se?r.replace(J.fullPath,un({scroll:se&&ce&&ce.scroll},Ut)):r.push(J.fullPath,Ut)),D.value=J,he(J,Me,_e,se),ze()}let De;function ge(){De||(De=r.listen((J,Me,_e)=>{if(!be.listening)return;const it=U(J),Ut=Z(it);if(Ut){ee(un(Ut,{replace:!0}),it).catch(Id);return}F=it;const X=D.value;Gf&&f8(gD(X.fullPath,_e.delta),m2()),ae(it,X).catch(se=>Vo(se,12)?se:Vo(se,2)?(ee(se.to,it).then(ce=>{Vo(ce,20)&&!_e.delta&&_e.type===u0.pop&&r.go(-1,!1)}).catch(Id),Promise.reject()):(_e.delta&&r.go(-_e.delta,!1),lt(se,it,X))).then(se=>{se=se||Ae(it,X,!1),se&&(_e.delta&&!Vo(se,8)?r.go(-_e.delta,!1):_e.type===u0.pop&&Vo(se,20)&&r.go(-1,!1)),ve(it,X,se)}).catch(Id)}))}let Ne=bd(),We=bd(),Se;function lt(J,Me,_e){ze(J);const it=We.list();return it.length?it.forEach(Ut=>Ut(J,Me,_e)):console.error(J),Promise.reject(J)}function at(){return Se&&D.value!==Pl?Promise.resolve():new Promise((J,Me)=>{Ne.add([J,Me])})}function ze(J){return Se||(Se=!J,ge(),Ne.list().forEach(([Me,_e])=>J?_e(J):Me()),Ne.reset()),J}function he(J,Me,_e,it){const{scrollBehavior:Ut}=t;if(!Gf||!Ut)return Promise.resolve();const X=!_e&&h8(gD(J.fullPath,0))||(it||!_e)&&history.state&&history.state.scroll||null;return vo().then(()=>Ut(J,Me,X)).then(se=>se&&u8(se)).catch(se=>lt(se,J,Me))}const He=J=>r.go(J);let Je;const Ue=new Set,be={currentRoute:D,listening:!0,addRoute:I,removeRoute:N,hasRoute:V,getRoutes:M,resolve:U,options:t,push:z,replace:H,go:He,back:()=>He(-1),forward:()=>He(1),beforeEach:e.add,beforeResolve:p.add,afterEach:_.add,onError:We.add,isReady:at,install(J){const Me=this;J.component("RouterLink",Q8),J.component("RouterView",eS),J.config.globalProperties.$router=Me,Object.defineProperty(J.config.globalProperties,"$route",{enumerable:!0,get:()=>Qt(D)}),Gf&&!Je&&D.value===Pl&&(Je=!0,z(r.location).catch(Ut=>{}));const _e={};for(const Ut in Pl)Object.defineProperty(_e,Ut,{get:()=>D.value[Ut],enumerable:!0});J.provide(g2,Me),J.provide(x4,K_(_e)),J.provide(b_,D);const it=J.unmount;Ue.add(J),J.unmount=function(){Ue.delete(J),Ue.size<1&&(F=Pl,De&&De(),De=null,D.value=Pl,Je=!1,Se=!1),it()}}};function Pe(J){return J.reduce((Me,_e)=>Me.then(()=>te(_e)),Promise.resolve())}return be}function rS(t,i){const s=[],a=[],r=[],e=Math.max(i.matched.length,t.matched.length);for(let p=0;p<e;p++){const _=i.matched[p];_&&(t.matched.find(F=>c0(F,_))?a.push(_):s.push(_));const D=t.matched[p];D&&(i.matched.find(F=>c0(F,D))||r.push(D))}return[s,a,r]}function nS(){return is(g2)}function iS(){return is(x4)}function __(t,i={},s){for(const a in t){const r=t[a],e=s?`${s}:${a}`:a;typeof r=="object"&&r!==null?__(r,i,e):typeof r=="function"&&(i[e]=r)}return i}const sS={run:t=>t()},aS=()=>sS,mE=typeof console.createTask<"u"?console.createTask:aS;function oS(t,i){const s=i.shift(),a=mE(s);return t.reduce((r,e)=>r.then(()=>a.run(()=>e(...i))),Promise.resolve())}function lS(t,i){const s=i.shift(),a=mE(s);return Promise.all(t.map(r=>a.run(()=>r(...i))))}function kb(t,i){for(const s of[...t])s(i)}class cS{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(i,s,a={}){if(!i||typeof s!="function")return()=>{};const r=i;let e;for(;this._deprecatedHooks[i];)e=this._deprecatedHooks[i],i=e.to;if(e&&!a.allowDeprecated){let p=e.message;p||(p=`${r} hook has been deprecated`+(e.to?`, please use ${e.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(p)||(console.warn(p),this._deprecatedMessages.add(p))}if(!s.name)try{Object.defineProperty(s,"name",{get:()=>"_"+i.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[i]=this._hooks[i]||[],this._hooks[i].push(s),()=>{s&&(this.removeHook(i,s),s=void 0)}}hookOnce(i,s){let a,r=(...e)=>(typeof a=="function"&&a(),a=void 0,r=void 0,s(...e));return a=this.hook(i,r),a}removeHook(i,s){if(this._hooks[i]){const a=this._hooks[i].indexOf(s);a!==-1&&this._hooks[i].splice(a,1),this._hooks[i].length===0&&delete this._hooks[i]}}deprecateHook(i,s){this._deprecatedHooks[i]=typeof s=="string"?{to:s}:s;const a=this._hooks[i]||[];delete this._hooks[i];for(const r of a)this.hook(i,r)}deprecateHooks(i){Object.assign(this._deprecatedHooks,i);for(const s in i)this.deprecateHook(s,i[s])}addHooks(i){const s=__(i),a=Object.keys(s).map(r=>this.hook(r,s[r]));return()=>{for(const r of a.splice(0,a.length))r()}}removeHooks(i){const s=__(i);for(const a in s)this.removeHook(a,s[a])}removeAllHooks(){for(const i in this._hooks)delete this._hooks[i]}callHook(i,...s){return s.unshift(i),this.callHookWith(oS,i,...s)}callHookParallel(i,...s){return s.unshift(i),this.callHookWith(lS,i,...s)}callHookWith(i,s,...a){const r=this._before||this._after?{name:s,args:a,context:{}}:void 0;this._before&&kb(this._before,r);const e=i(s in this._hooks?[...this._hooks[s]]:[],a);return e instanceof Promise?e.finally(()=>{this._after&&r&&kb(this._after,r)}):(this._after&&r&&kb(this._after,r),e)}beforeEach(i){return this._before=this._before||[],this._before.push(i),()=>{if(this._before!==void 0){const s=this._before.indexOf(i);s!==-1&&this._before.splice(s,1)}}}afterEach(i){return this._after=this._after||[],this._after.push(i),()=>{if(this._after!==void 0){const s=this._after.indexOf(i);s!==-1&&this._after.splice(s,1)}}}}function uS(){return new cS}function fS(t){return Array.isArray(t)?t:[t]}const hS=["title","titleTemplate","script","style","noscript"],ag=["base","meta","link","style","script","noscript"],dS=["title","titleTemplate","templateParams","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"],pS=["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"],gE=["tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"],mS=typeof window<"u";function vE(t){let i=9;for(let s=0;s<t.length;)i=Math.imul(i^t.charCodeAt(s++),9**9);return((i^i>>>9)+65536).toString(16).substring(1,8).toLowerCase()}function OD(t){return t._h||vE(t._d?t._d:`${t.tag}:${t.textContent||t.innerHTML||""}:${Object.entries(t.props).map(([i,s])=>`${i}:${String(s)}`).join(",")}`)}function bE(t,i){const{props:s,tag:a}=t;if(pS.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 p=String(s[e]);return i&&!i(p)?!1:`${a}:${e}:${p}`}return!1}function kD(t,i){return t==null?i||null:typeof t=="function"?t(i):t}async function gS(t,i,s){const a={tag:t,props:await _E(typeof i=="object"&&typeof i!="function"&&!(i instanceof Promise)?{...i}:{[["script","noscript","style"].includes(t)?"innerHTML":"textContent"]:i},["templateParams","titleTemplate"].includes(t))};return gE.forEach(r=>{const e=typeof a.props[r]<"u"?a.props[r]:s[r];typeof e<"u"&&((!["innerHTML","textContent"].includes(r)||hS.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 vS(t){return typeof t=="object"&&!Array.isArray(t)&&(t=Object.keys(t).filter(i=>t[i])),(Array.isArray(t)?t.join(" "):t).split(" ").filter(i=>i.trim()).filter(Boolean).join(" ")}async function _E(t,i){for(const s of Object.keys(t)){if(s==="class"){t[s]=vS(t[s]);continue}if(t[s]instanceof Promise&&(t[s]=await t[s]),!i&&!gE.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 bS=10;async function _S(t){const i=[];return Object.entries(t.resolvedInput).filter(([s,a])=>typeof a<"u"&&dS.includes(s)).forEach(([s,a])=>{const r=fS(a);i.push(...r.map(e=>gS(s,e,t)).flat())}),(await Promise.all(i)).flat().filter(Boolean).map((s,a)=>(s._e=t._i,t.mode&&(s._m=t.mode),s._p=(t._i<<bS)+a,s))}const RD={base:-10,title:10},PD={critical:-80,high:-10,low:20};function Fg(t){let i=100;const s=t.tagPriority;return typeof s=="number"?s:(t.tag==="meta"?(t.props["http-equiv"]==="content-security-policy"&&(i=-30),t.props.charset&&(i=-20),t.props.name==="viewport"&&(i=-15)):t.tag==="link"&&t.props.rel==="preconnect"?i=20:t.tag in RD&&(i=RD[t.tag]),typeof s=="string"&&s in PD?i+PD[s]:i)}const yS=[{prefix:"before:",offset:-1},{prefix:"after:",offset:1}],Il="%separator";function lu(t,i,s){if(typeof t!="string"||!t.includes("%"))return t;function a(p){let _;return["s","pageTitle"].includes(p)?_=i.pageTitle:p.includes(".")?_=p.split(".").reduce((D,F)=>D&&D[F]||void 0,i):_=i[p],typeof _<"u"?(_||"").replace(/"/g,'\\"'):!1}let r=t;try{r=decodeURI(t)}catch{}return(r.match(/%(\w+\.+\w+)|%(\w+)/g)||[]).sort().reverse().forEach(p=>{const _=a(p.slice(1));typeof _=="string"&&(t=t.replace(new RegExp(`\\${p}(\\W|$)`,"g"),(D,F)=>`${_}${F}`).trim())}),t.includes(Il)&&(t.endsWith(Il)&&(t=t.slice(0,-Il.length).trim()),t.startsWith(Il)&&(t=t.slice(Il.length).trim()),t=t.replace(new RegExp(`\\${Il}\\s*\\${Il}`,"g"),Il),t=lu(t,{separator:s},s)),t}async function DS(t){const i={tag:t.tagName.toLowerCase(),props:await _E(t.getAttributeNames().reduce((s,a)=>({...s,[a]:t.getAttribute(a)}),{})),innerHTML:t.innerHTML};return i._d=bE(i),i}async function wS(t,i={}){var T;const s=i.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:ag.includes(A.tag)?OD(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 k=(T=s==null?void 0:s[A])==null?void 0:T.children;for(const I of[...k].filter(N=>ag.includes(N.tagName.toLowerCase())))e.elMap[I.getAttribute("data-hid")||OD(await DS(I))]=I}}e.pendingSideEffects={...e.sideEffects||{}},e.sideEffects={};function p(A,k,I){const N=`${A}:${k}`;e.sideEffects[N]=I,delete e.pendingSideEffects[N]}function _({id:A,$el:k,tag:I}){const N=I.tag.endsWith("Attrs");e.elMap[A]=k,N||(["textContent","innerHTML"].forEach(M=>{I[M]&&I[M]!==k[M]&&(k[M]=I[M])}),p(A,"el",()=>{e.elMap[A].remove(),delete e.elMap[A]})),Object.entries(I.props).forEach(([M,V])=>{const U=`attr:${M}`;if(M==="class")for(const G of(V||"").split(" ").filter(Boolean))N&&p(A,`${U}:${G}`,()=>k.classList.remove(G)),!k.classList.contains(G)&&k.classList.add(G);else k.getAttribute(M)!==V&&k.setAttribute(M,V===!0?"":String(V)),N&&p(A,U,()=>k.removeAttribute(M))})}const D=[],F={bodyClose:void 0,bodyOpen:void 0,head:void 0};for(const A of r){const{tag:k,shouldRender:I,id:N}=A;if(I){if(k.tag==="title"){s.title=k.textContent;continue}A.$el=A.$el||e.elMap[N],A.$el?_(A):ag.includes(k.tag)&&D.push(A)}}for(const A of D){const k=A.tag.tagPosition||"head";A.$el=s.createElement(A.tag.tag),_(A),F[k]=F[k]||s.createDocumentFragment(),F[k].appendChild(A.$el)}for(const A of r)await t.hooks.callHook("dom:renderTag",A,s,p);F.head&&s.head.appendChild(F.head),F.bodyOpen&&s.body.insertBefore(F.bodyOpen,s.body.firstChild),F.bodyClose&&s.body.appendChild(F.bodyClose),Object.values(e.pendingSideEffects).forEach(A=>A()),t._dom=e,t.dirty=!1,await t.hooks.callHook("dom:rendered",{renders:r})}async function FS(t,i={}){const s=i.delayFn||(a=>setTimeout(a,10));return t._domUpdatePromise=t._domUpdatePromise||new Promise(a=>s(async()=>{await wS(t,i),delete t._domUpdatePromise,a()}))}function ES(t){return i=>{var a,r;const s=((r=(a=i.resolvedOptions.document)==null?void 0:a.head.querySelector('script[id="unhead:payload"]'))==null?void 0:r.innerHTML)||!1;return s&&i.push(JSON.parse(s)),{mode:"client",hooks:{"entries:updated":function(e){FS(e,t)}}}}}const xS=["templateParams","htmlAttrs","bodyAttrs"],CS={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=bE(t)||(t.key?`${t.tag}:${t.key}`:!1);s&&(t._d=s)},"tags:resolve":function(t){const i={};t.tags.forEach(a=>{const r=(a.key?`${a.tag}:${a.key}`:a._d)||a._p,e=i[r];if(e){let _=a==null?void 0:a.tagDuplicateStrategy;if(!_&&xS.includes(a.tag)&&(_="merge"),_==="merge"){const D=e.props;["class","style"].forEach(F=>{a.props[F]&&D[F]&&(F==="style"&&!D[F].endsWith(";")&&(D[F]+=";"),a.props[F]=`${D[F]} ${a.props[F]}`)}),i[r].props={...D,...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(Fg(a)>Fg(e))return}const p=Object.keys(a.props).length+(a.innerHTML?1:0)+(a.textContent?1:0);if(ag.includes(a.tag)&&p===0){delete i[r];return}i[r]=a});const s=[];Object.values(i).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))}}},TS={mode:"server",hooks:{"tags:resolve":function(t){const i={};t.tags.filter(s=>["titleTemplate","templateParams","title"].includes(s.tag)&&s._m==="server").forEach(s=>{i[s.tag]=s.tag.startsWith("title")?s.textContent:s.props}),Object.keys(i).length&&t.tags.push({tag:"script",innerHTML:JSON.stringify(i),props:{id:"unhead:payload",type:"application/json"}})}}},ID=["script","link","bodyAttrs"];function ND(t){const i={},s={};return Object.entries(t.props).forEach(([a,r])=>{a.startsWith("on")&&typeof r=="function"?s[a]=r:i[a]=r}),{props:i,eventHandlers:s}}const AS={hooks:{"ssr:render":function(t){t.tags=t.tags.map(i=>(!ID.includes(i.tag)||!Object.entries(i.props).find(([s,a])=>s.startsWith("on")&&typeof a=="function")||(i.props=ND(i).props),i))},"tags:resolve":function(t){t.tags=t.tags.map(i=>{if(!ID.includes(i.tag))return i;const{props:s,eventHandlers:a}=ND(i);return Object.keys(a).length&&(i.props=s,i._eventHandlers=a),i})},"dom:renderTag":function(t,i,s){if(!t.tag._eventHandlers)return;const a=t.tag.tag==="bodyAttrs"?i.defaultView:t.$el;Object.entries(t.tag._eventHandlers).forEach(([r,e])=>{const p=`${t.tag._d||t.tag._p}:${r}`,_=r.slice(2).toLowerCase(),D=`data-h-${_}`;if(s(t.id,p,()=>{}),t.$el.hasAttribute(D))return;const F=e;t.$el.setAttribute(D,""),a.addEventListener(_,F),t.entry&&s(t.id,p,()=>{a.removeEventListener(_,F),t.$el.removeAttribute(D)})})}}},SS=["link","style","script","noscript"],OS={hooks:{"tag:normalise":({tag:t})=>{t.key&&SS.includes(t.tag)&&(t.props["data-hid"]=t._h=vE(t.key))}}},kS={hooks:{"tags:resolve":t=>{const i=s=>{var a;return(a=t.tags.find(r=>r._d===s))==null?void 0:a._p};for(const{prefix:s,offset:a}of yS)for(const r of t.tags.filter(e=>typeof e.tagPriority=="string"&&e.tagPriority.startsWith(s))){const e=i(r.tagPriority.replace(s,""));typeof e<"u"&&(r._p=e+a)}t.tags.sort((s,a)=>s._p-a._p).sort((s,a)=>Fg(s)-Fg(a))}}},RS={hooks:{"tags:resolve":t=>{var p;const{tags:i}=t,s=(p=i.find(_=>_.tag==="title"))==null?void 0:p.textContent,a=i.findIndex(_=>_.tag==="templateParams"),r=a!==-1?i[a].props:{},e=r.separator||"|";delete r.separator,r.pageTitle=lu(r.pageTitle||s||"",r,e);for(const _ of i)_.processTemplateParams!==!1&&(["titleTemplate","title"].includes(_.tag)&&typeof _.textContent=="string"?_.textContent=lu(_.textContent,r,e):_.tag==="meta"&&typeof _.props.content=="string"?_.props.content=lu(_.props.content,r,e):_.tag==="link"&&typeof _.props.href=="string"?_.props.href=lu(_.props.href,r,e):_.processTemplateParams===!0&&(_.innerHTML?_.innerHTML=lu(_.innerHTML,r,e):_.textContent&&(_.textContent=lu(_.textContent,r,e))));t.tags=i.filter(_=>_.tag!=="templateParams")}}},PS={hooks:{"tags:resolve":t=>{const{tags:i}=t;let s=i.findIndex(r=>r.tag==="titleTemplate");const a=i.findIndex(r=>r.tag==="title");if(a!==-1&&s!==-1){const r=kD(i[s].textContent,i[a].textContent);r!==null?i[a].textContent=r||i[a].textContent:delete i[a]}else if(s!==-1){const r=kD(i[s].textContent);r!==null&&(i[s].textContent=r,i[s].tag="title",s=-1)}s!==-1&&delete i[s],t.tags=i.filter(Boolean)}}};function IS(t={}){const i=NS(t);return i.use(ES()),i}function LD(t,i){return!t||t==="server"&&i||t==="client"&&!i}function NS(t={}){const i=uS();i.addHooks(t.hooks||{}),t.document=t.document||(mS?document:void 0);const s=!t.document;t.plugins=[CS,TS,AS,OS,kS,RS,PS,...(t==null?void 0:t.plugins)||[]];const a=()=>{p.dirty=!0,i.callHook("entries:updated",p)};let r=0,e=[];const p={dirty:!1,resolvedOptions:t,hooks:i,headEntries(){return e},use(_){const D=typeof _=="function"?_(p):_;LD(D.mode,s)&&i.addHooks(D.hooks||{})},push(_,D){D==null||delete D.head;const F={_i:r++,input:_,...D};return LD(F.mode,s)&&(e.push(F),a()),{dispose(){e=e.filter(T=>T._i!==F._i),i.callHook("entries:updated",p),a()},patch(T){e=e.map(A=>(A._i===F._i&&(A.input=F.input=T),A)),a()}}},async resolveTags(){const _={tags:[],entries:[...e]};await i.callHook("entries:resolve",_);for(const D of _.entries){const F=D.resolvedInput||D.input;if(D.resolvedInput=await(D.transform?D.transform(F):F),D.resolvedInput)for(const T of await _S(D)){const A={tag:T,entry:D,resolvedOptions:p.resolvedOptions};await i.callHook("tag:normalise",A),_.tags.push(A.tag)}}return await i.callHook("tags:beforeResolve",_),await i.callHook("tags:resolve",_),_.tags},ssr:s};return t.plugins.forEach(_=>p.use(_)),p.hooks.callHook("init",p),p}const LS=v4.startsWith("3");function MS(t){return typeof t=="function"?t():Qt(t)}function y_(t,i=""){if(t instanceof Promise)return t;const s=MS(t);return!t||!s?s:Array.isArray(s)?s.map(a=>y_(a,i)):typeof s=="object"?Object.fromEntries(Object.entries(s).map(([a,r])=>a==="titleTemplate"||a.startsWith("on")?[a,Qt(r)]:[a,y_(r,a)])):s}const BS={hooks:{"entries:resolve":function(t){for(const i of t.entries)i.resolvedInput=y_(i.input)}}},US="usehead";function HS(t){return{install(s){LS&&(s.config.globalProperties.$unhead=t,s.config.globalProperties.$head=t,s.provide(US,t))}}.install}function $S(t={}){t.domDelayFn=t.domDelayFn||(s=>vo(()=>setTimeout(()=>s(),0)));const i=IS(t);return i.use(BS),i.install=HS(i),i}function WS(t){try{return JSON.parse(t||"{}")}catch(i){return console.error("[SSG] On state deserialization -",i,t),{}}}function zS(t){return document.readyState==="loading"?new Promise(i=>{document.addEventListener("DOMContentLoaded",()=>i(t))}):Promise.resolve(t)}const jS=mi({setup(t,{slots:i}){const s=Yt(!1);return La(()=>s.value=!0),()=>s.value?i.default&&i.default({}):i.placeholder&&i.placeholder({})}});function VS(t,i,s,a={}){const{transformState:r,registerComponents:e=!0,useHead:p=!0,rootContainer:_="#app"}=a,D=typeof window<"u";async function F(T=!1,A){const k=T?D4(t):HF(t);let I;p&&(I=$S(),k.use(I));const N=tS({history:T?g8(i.base):v8(i.base),...i}),{routes:M}=i;e&&k.component("ClientOnly",jS);const V=[],ne={app:k,head:I,isClient:D,router:N,routes:M,onSSRAppRendered:T?()=>{}:ee=>V.push(ee),triggerOnSSRAppRendered:()=>Promise.all(V.map(ee=>ee())),initialState:{},transformState:r,routePath:A};T&&(await zS(),ne.initialState=(r==null?void 0:r(window.__INITIAL_STATE__||{}))||WS(window.__INITIAL_STATE__)),await(s==null?void 0:s(ne)),k.use(N);let z,H=!0;if(N.beforeEach((ee,re,te)=>{(H||z&&z===ee.path)&&(H=!1,z=ee.path,ee.meta.state=ne.initialState),te()}),!T){const ee=ne.routePath??"/";N.push(ee),await N.isReady(),ne.initialState=N.currentRoute.value.meta.state||{}}const Z=ne.initialState;return{...ne,initialState:Z}}return D&&(async()=>{const{app:T,router:A}=await F(!0);await A.isReady(),T.mount(_,!0)})(),F}var GS=function(){function t(i,s){s===void 0&&(s=[]),this._eventType=i,this._eventFunctions=s}return t.prototype.init=function(){var i=this;this._eventFunctions.forEach(function(s){typeof window<"u"&&window.addEventListener(i._eventType,s)})},t}(),Eg=globalThis&&globalThis.__assign||function(){return Eg=Object.assign||function(t){for(var i,s=1,a=arguments.length;s<a;s++){i=arguments[s];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t},Eg.apply(this,arguments)},xg={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(){}},yE=function(){function t(i,s){i===void 0&&(i=[]),s===void 0&&(s=xg),this._items=i,this._options=Eg(Eg({},xg),s),this._init()}return t.prototype._init=function(){var i=this;this._items.length&&this._items.map(function(s){s.active&&i.open(s.id),s.triggerEl.addEventListener("click",function(){i.toggle(s.id)})})},t.prototype.getItem=function(i){return this._items.filter(function(s){return s.id===i})[0]},t.prototype.open=function(i){var s,a,r=this,e=this.getItem(i);this._options.alwaysOpen||this._items.map(function(p){var _,D;p!==e&&((_=p.triggerEl.classList).remove.apply(_,r._options.activeClasses.split(" ")),(D=p.triggerEl.classList).add.apply(D,r._options.inactiveClasses.split(" ")),p.targetEl.classList.add("hidden"),p.triggerEl.setAttribute("aria-expanded","false"),p.active=!1,p.iconEl&&p.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(i){var s=this.getItem(i);s.active?this.close(i):this.open(i),this._options.onToggle(this,s)},t.prototype.close=function(i){var s,a,r=this.getItem(i);(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 C4(){document.querySelectorAll("[data-accordion]").forEach(function(t){var i=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 p={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(p)}}),new yE(r,{alwaysOpen:i==="open",activeClasses:s||xg.activeClasses,inactiveClasses:a||xg.inactiveClasses})})}typeof window<"u"&&(window.Accordion=yE,window.initAccordions=C4);var Cg=globalThis&&globalThis.__assign||function(){return Cg=Object.assign||function(t){for(var i,s=1,a=arguments.length;s<a;s++){i=arguments[s];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t},Cg.apply(this,arguments)},MD={onCollapse:function(){},onExpand:function(){},onToggle:function(){}},DE=function(){function t(i,s,a){i===void 0&&(i=null),s===void 0&&(s=null),a===void 0&&(a=MD),this._targetEl=i,this._triggerEl=s,this._options=Cg(Cg({},MD),a),this._visible=!1,this._init()}return t.prototype._init=function(){var i=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(){i.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 T4(){document.querySelectorAll("[data-collapse-toggle]").forEach(function(t){var i=t.getAttribute("data-collapse-toggle"),s=document.getElementById(i);s?new DE(s,t):console.error('The target element with id "'.concat(i,'" does not exist. Please check the data-collapse-toggle attribute.'))})}typeof window<"u"&&(window.Collapse=DE,window.initCollapses=T4);var hu=globalThis&&globalThis.__assign||function(){return hu=Object.assign||function(t){for(var i,s=1,a=arguments.length;s<a;s++){i=arguments[s];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t},hu.apply(this,arguments)},og={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(){}},wE=function(){function t(i,s){i===void 0&&(i=[]),s===void 0&&(s=og),this._items=i,this._options=hu(hu(hu({},og),s),{indicators:hu(hu({},og.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 i=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(){i.slideTo(a)})})},t.prototype.getItem=function(i){return this._items[i]},t.prototype.slideTo=function(i){var s=this._items[i],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 i=this._getActiveItem(),s=null;i.position===this._items.length-1?s=this._items[0]:s=this._items[i.position+1],this.slideTo(s.position),this._options.onNext(this)},t.prototype.prev=function(){var i=this._getActiveItem(),s=null;i.position===0?s=this._items[this._items.length-1]:s=this._items[i.position-1],this.slideTo(s.position),this._options.onPrev(this)},t.prototype._rotate=function(i){this._items.map(function(s){s.el.classList.add("hidden")}),i.left.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-20"),i.left.el.classList.add("-translate-x-full","z-10"),i.middle.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-10"),i.middle.el.classList.add("translate-x-0","z-20"),i.right.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-20"),i.right.el.classList.add("translate-x-full","z-10")},t.prototype.cycle=function(){var i=this;typeof window<"u"&&(this._intervalInstance=window.setInterval(function(){i.next()},this._intervalDuration))},t.prototype.pause=function(){clearInterval(this._intervalInstance)},t.prototype._getActiveItem=function(){return this._activeItem},t.prototype._setActiveItem=function(i){var s,a,r=this;this._activeItem=i;var e=i.position;this._indicators.length&&(this._indicators.map(function(p){var _,D;p.el.setAttribute("aria-current","false"),(_=p.el.classList).remove.apply(_,r._options.indicators.activeClasses.split(" ")),(D=p.el.classList).add.apply(D,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 A4(){document.querySelectorAll("[data-carousel]").forEach(function(t){var i=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(F,T){a.push({position:T,el:F}),F.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(F){e.push({position:parseInt(F.getAttribute("data-carousel-slide-to")),el:F})});var p=new wE(a,{defaultPosition:r,indicators:{items:e},interval:i||og.interval});s&&p.cycle();var _=t.querySelector("[data-carousel-next]"),D=t.querySelector("[data-carousel-prev]");_&&_.addEventListener("click",function(){p.next()}),D&&D.addEventListener("click",function(){p.prev()})})}typeof window<"u"&&(window.Carousel=wE,window.initCarousels=A4);var Tg=globalThis&&globalThis.__assign||function(){return Tg=Object.assign||function(t){for(var i,s=1,a=arguments.length;s<a;s++){i=arguments[s];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t},Tg.apply(this,arguments)},BD={transition:"transition-opacity",duration:300,timing:"ease-out",onHide:function(){}},FE=function(){function t(i,s,a){i===void 0&&(i=null),s===void 0&&(s=null),a===void 0&&(a=BD),this._targetEl=i,this._triggerEl=s,this._options=Tg(Tg({},BD),a),this._init()}return t.prototype._init=function(){var i=this;this._triggerEl&&this._triggerEl.addEventListener("click",function(){i.hide()})},t.prototype.hide=function(){var i=this;this._targetEl.classList.add(this._options.transition,"duration-".concat(this._options.duration),this._options.timing,"opacity-0"),setTimeout(function(){i._targetEl.classList.add("hidden")},this._options.duration),this._options.onHide(this,this._targetEl)},t}();function S4(){document.querySelectorAll("[data-dismiss-target]").forEach(function(t){var i=t.getAttribute("data-dismiss-target"),s=document.querySelector(i);s?new FE(s,t):console.error('The dismiss element with id "'.concat(i,'" does not exist. Please check the data-dismiss-target attribute.'))})}typeof window<"u"&&(window.Dismiss=FE,window.initDismisses=S4);var Ds="top",ha="bottom",da="right",ws="left",O4="auto",m1=[Ds,ha,da,ws],h0="start",t1="end",YS="clippingParents",EE="viewport",_d="popper",KS="reference",UD=m1.reduce(function(t,i){return t.concat([i+"-"+h0,i+"-"+t1])},[]),xE=[].concat(m1,[O4]).reduce(function(t,i){return t.concat([i,i+"-"+h0,i+"-"+t1])},[]),qS="beforeRead",QS="read",XS="afterRead",JS="beforeMain",ZS="main",eO="afterMain",tO="beforeWrite",rO="write",nO="afterWrite",iO=[qS,QS,XS,JS,ZS,eO,tO,rO,nO];function mo(t){return t?(t.nodeName||"").toLowerCase():null}function zs(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var i=t.ownerDocument;return i&&i.defaultView||window}return t}function xu(t){var i=zs(t).Element;return t instanceof i||t instanceof Element}function ua(t){var i=zs(t).HTMLElement;return t instanceof i||t instanceof HTMLElement}function k4(t){if(typeof ShadowRoot>"u")return!1;var i=zs(t).ShadowRoot;return t instanceof i||t instanceof ShadowRoot}function sO(t){var i=t.state;Object.keys(i.elements).forEach(function(s){var a=i.styles[s]||{},r=i.attributes[s]||{},e=i.elements[s];!ua(e)||!mo(e)||(Object.assign(e.style,a),Object.keys(r).forEach(function(p){var _=r[p];_===!1?e.removeAttribute(p):e.setAttribute(p,_===!0?"":_)}))})}function aO(t){var i=t.state,s={popper:{position:i.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(i.elements.popper.style,s.popper),i.styles=s,i.elements.arrow&&Object.assign(i.elements.arrow.style,s.arrow),function(){Object.keys(i.elements).forEach(function(a){var r=i.elements[a],e=i.attributes[a]||{},p=Object.keys(i.styles.hasOwnProperty(a)?i.styles[a]:s[a]),_=p.reduce(function(D,F){return D[F]="",D},{});!ua(r)||!mo(r)||(Object.assign(r.style,_),Object.keys(e).forEach(function(D){r.removeAttribute(D)}))})}}const oO={name:"applyStyles",enabled:!0,phase:"write",fn:sO,effect:aO,requires:["computeStyles"]};function uo(t){return t.split("-")[0]}var yu=Math.max,Ag=Math.min,d0=Math.round;function D_(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(i){return i.brand+"/"+i.version}).join(" "):navigator.userAgent}function CE(){return!/^((?!chrome|android).)*safari/i.test(D_())}function p0(t,i,s){i===void 0&&(i=!1),s===void 0&&(s=!1);var a=t.getBoundingClientRect(),r=1,e=1;i&&ua(t)&&(r=t.offsetWidth>0&&d0(a.width)/t.offsetWidth||1,e=t.offsetHeight>0&&d0(a.height)/t.offsetHeight||1);var p=xu(t)?zs(t):window,_=p.visualViewport,D=!CE()&&s,F=(a.left+(D&&_?_.offsetLeft:0))/r,T=(a.top+(D&&_?_.offsetTop:0))/e,A=a.width/r,k=a.height/e;return{width:A,height:k,top:T,right:F+A,bottom:T+k,left:F,x:F,y:T}}function R4(t){var i=p0(t),s=t.offsetWidth,a=t.offsetHeight;return Math.abs(i.width-s)<=1&&(s=i.width),Math.abs(i.height-a)<=1&&(a=i.height),{x:t.offsetLeft,y:t.offsetTop,width:s,height:a}}function TE(t,i){var s=i.getRootNode&&i.getRootNode();if(t.contains(i))return!0;if(s&&k4(s)){var a=i;do{if(a&&t.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function el(t){return zs(t).getComputedStyle(t)}function lO(t){return["table","td","th"].indexOf(mo(t))>=0}function ac(t){return((xu(t)?t.ownerDocument:t.document)||window.document).documentElement}function v2(t){return mo(t)==="html"?t:t.assignedSlot||t.parentNode||(k4(t)?t.host:null)||ac(t)}function HD(t){return!ua(t)||el(t).position==="fixed"?null:t.offsetParent}function cO(t){var i=/firefox/i.test(D_()),s=/Trident/i.test(D_());if(s&&ua(t)){var a=el(t);if(a.position==="fixed")return null}var r=v2(t);for(k4(r)&&(r=r.host);ua(r)&&["html","body"].indexOf(mo(r))<0;){var e=el(r);if(e.transform!=="none"||e.perspective!=="none"||e.contain==="paint"||["transform","perspective"].indexOf(e.willChange)!==-1||i&&e.willChange==="filter"||i&&e.filter&&e.filter!=="none")return r;r=r.parentNode}return null}function g1(t){for(var i=zs(t),s=HD(t);s&&lO(s)&&el(s).position==="static";)s=HD(s);return s&&(mo(s)==="html"||mo(s)==="body"&&el(s).position==="static")?i:s||cO(t)||i}function P4(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Nd(t,i,s){return yu(t,Ag(i,s))}function uO(t,i,s){var a=Nd(t,i,s);return a>s?s:a}function AE(){return{top:0,right:0,bottom:0,left:0}}function SE(t){return Object.assign({},AE(),t)}function OE(t,i){return i.reduce(function(s,a){return s[a]=t,s},{})}var fO=function(i,s){return i=typeof i=="function"?i(Object.assign({},s.rects,{placement:s.placement})):i,SE(typeof i!="number"?i:OE(i,m1))};function hO(t){var i,s=t.state,a=t.name,r=t.options,e=s.elements.arrow,p=s.modifiersData.popperOffsets,_=uo(s.placement),D=P4(_),F=[ws,da].indexOf(_)>=0,T=F?"height":"width";if(!(!e||!p)){var A=fO(r.padding,s),k=R4(e),I=D==="y"?Ds:ws,N=D==="y"?ha:da,M=s.rects.reference[T]+s.rects.reference[D]-p[D]-s.rects.popper[T],V=p[D]-s.rects.reference[D],U=g1(e),G=U?D==="y"?U.clientHeight||0:U.clientWidth||0:0,ne=M/2-V/2,z=A[I],H=G-k[T]-A[N],Z=G/2-k[T]/2+ne,ee=Nd(z,Z,H),re=D;s.modifiersData[a]=(i={},i[re]=ee,i.centerOffset=ee-Z,i)}}function dO(t){var i=t.state,s=t.options,a=s.element,r=a===void 0?"[data-popper-arrow]":a;r!=null&&(typeof r=="string"&&(r=i.elements.popper.querySelector(r),!r)||TE(i.elements.popper,r)&&(i.elements.arrow=r))}const pO={name:"arrow",enabled:!0,phase:"main",fn:hO,effect:dO,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function m0(t){return t.split("-")[1]}var mO={top:"auto",right:"auto",bottom:"auto",left:"auto"};function gO(t,i){var s=t.x,a=t.y,r=i.devicePixelRatio||1;return{x:d0(s*r)/r||0,y:d0(a*r)/r||0}}function $D(t){var i,s=t.popper,a=t.popperRect,r=t.placement,e=t.variation,p=t.offsets,_=t.position,D=t.gpuAcceleration,F=t.adaptive,T=t.roundOffsets,A=t.isFixed,k=p.x,I=k===void 0?0:k,N=p.y,M=N===void 0?0:N,V=typeof T=="function"?T({x:I,y:M}):{x:I,y:M};I=V.x,M=V.y;var U=p.hasOwnProperty("x"),G=p.hasOwnProperty("y"),ne=ws,z=Ds,H=window;if(F){var Z=g1(s),ee="clientHeight",re="clientWidth";if(Z===zs(s)&&(Z=ac(s),el(Z).position!=="static"&&_==="absolute"&&(ee="scrollHeight",re="scrollWidth")),Z=Z,r===Ds||(r===ws||r===da)&&e===t1){z=ha;var te=A&&Z===H&&H.visualViewport?H.visualViewport.height:Z[ee];M-=te-a.height,M*=D?1:-1}if(r===ws||(r===Ds||r===ha)&&e===t1){ne=da;var ae=A&&Z===H&&H.visualViewport?H.visualViewport.width:Z[re];I-=ae-a.width,I*=D?1:-1}}var ve=Object.assign({position:_},F&&mO),Ae=T===!0?gO({x:I,y:M},zs(s)):{x:I,y:M};if(I=Ae.x,M=Ae.y,D){var De;return Object.assign({},ve,(De={},De[z]=G?"0":"",De[ne]=U?"0":"",De.transform=(H.devicePixelRatio||1)<=1?"translate("+I+"px, "+M+"px)":"translate3d("+I+"px, "+M+"px, 0)",De))}return Object.assign({},ve,(i={},i[z]=G?M+"px":"",i[ne]=U?I+"px":"",i.transform="",i))}function vO(t){var i=t.state,s=t.options,a=s.gpuAcceleration,r=a===void 0?!0:a,e=s.adaptive,p=e===void 0?!0:e,_=s.roundOffsets,D=_===void 0?!0:_,F={placement:uo(i.placement),variation:m0(i.placement),popper:i.elements.popper,popperRect:i.rects.popper,gpuAcceleration:r,isFixed:i.options.strategy==="fixed"};i.modifiersData.popperOffsets!=null&&(i.styles.popper=Object.assign({},i.styles.popper,$D(Object.assign({},F,{offsets:i.modifiersData.popperOffsets,position:i.options.strategy,adaptive:p,roundOffsets:D})))),i.modifiersData.arrow!=null&&(i.styles.arrow=Object.assign({},i.styles.arrow,$D(Object.assign({},F,{offsets:i.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:D})))),i.attributes.popper=Object.assign({},i.attributes.popper,{"data-popper-placement":i.placement})}const bO={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:vO,data:{}};var Ym={passive:!0};function _O(t){var i=t.state,s=t.instance,a=t.options,r=a.scroll,e=r===void 0?!0:r,p=a.resize,_=p===void 0?!0:p,D=zs(i.elements.popper),F=[].concat(i.scrollParents.reference,i.scrollParents.popper);return e&&F.forEach(function(T){T.addEventListener("scroll",s.update,Ym)}),_&&D.addEventListener("resize",s.update,Ym),function(){e&&F.forEach(function(T){T.removeEventListener("scroll",s.update,Ym)}),_&&D.removeEventListener("resize",s.update,Ym)}}const yO={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:_O,data:{}};var DO={left:"right",right:"left",bottom:"top",top:"bottom"};function lg(t){return t.replace(/left|right|bottom|top/g,function(i){return DO[i]})}var wO={start:"end",end:"start"};function WD(t){return t.replace(/start|end/g,function(i){return wO[i]})}function I4(t){var i=zs(t),s=i.pageXOffset,a=i.pageYOffset;return{scrollLeft:s,scrollTop:a}}function N4(t){return p0(ac(t)).left+I4(t).scrollLeft}function FO(t,i){var s=zs(t),a=ac(t),r=s.visualViewport,e=a.clientWidth,p=a.clientHeight,_=0,D=0;if(r){e=r.width,p=r.height;var F=CE();(F||!F&&i==="fixed")&&(_=r.offsetLeft,D=r.offsetTop)}return{width:e,height:p,x:_+N4(t),y:D}}function EO(t){var i,s=ac(t),a=I4(t),r=(i=t.ownerDocument)==null?void 0:i.body,e=yu(s.scrollWidth,s.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),p=yu(s.scrollHeight,s.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),_=-a.scrollLeft+N4(t),D=-a.scrollTop;return el(r||s).direction==="rtl"&&(_+=yu(s.clientWidth,r?r.clientWidth:0)-e),{width:e,height:p,x:_,y:D}}function L4(t){var i=el(t),s=i.overflow,a=i.overflowX,r=i.overflowY;return/auto|scroll|overlay|hidden/.test(s+r+a)}function kE(t){return["html","body","#document"].indexOf(mo(t))>=0?t.ownerDocument.body:ua(t)&&L4(t)?t:kE(v2(t))}function Ld(t,i){var s;i===void 0&&(i=[]);var a=kE(t),r=a===((s=t.ownerDocument)==null?void 0:s.body),e=zs(a),p=r?[e].concat(e.visualViewport||[],L4(a)?a:[]):a,_=i.concat(p);return r?_:_.concat(Ld(v2(p)))}function w_(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function xO(t,i){var s=p0(t,!1,i==="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 zD(t,i,s){return i===EE?w_(FO(t,s)):xu(i)?xO(i,s):w_(EO(ac(t)))}function CO(t){var i=Ld(v2(t)),s=["absolute","fixed"].indexOf(el(t).position)>=0,a=s&&ua(t)?g1(t):t;return xu(a)?i.filter(function(r){return xu(r)&&TE(r,a)&&mo(r)!=="body"}):[]}function TO(t,i,s,a){var r=i==="clippingParents"?CO(t):[].concat(i),e=[].concat(r,[s]),p=e[0],_=e.reduce(function(D,F){var T=zD(t,F,a);return D.top=yu(T.top,D.top),D.right=Ag(T.right,D.right),D.bottom=Ag(T.bottom,D.bottom),D.left=yu(T.left,D.left),D},zD(t,p,a));return _.width=_.right-_.left,_.height=_.bottom-_.top,_.x=_.left,_.y=_.top,_}function RE(t){var i=t.reference,s=t.element,a=t.placement,r=a?uo(a):null,e=a?m0(a):null,p=i.x+i.width/2-s.width/2,_=i.y+i.height/2-s.height/2,D;switch(r){case Ds:D={x:p,y:i.y-s.height};break;case ha:D={x:p,y:i.y+i.height};break;case da:D={x:i.x+i.width,y:_};break;case ws:D={x:i.x-s.width,y:_};break;default:D={x:i.x,y:i.y}}var F=r?P4(r):null;if(F!=null){var T=F==="y"?"height":"width";switch(e){case h0:D[F]=D[F]-(i[T]/2-s[T]/2);break;case t1:D[F]=D[F]+(i[T]/2-s[T]/2);break}}return D}function r1(t,i){i===void 0&&(i={});var s=i,a=s.placement,r=a===void 0?t.placement:a,e=s.strategy,p=e===void 0?t.strategy:e,_=s.boundary,D=_===void 0?YS:_,F=s.rootBoundary,T=F===void 0?EE:F,A=s.elementContext,k=A===void 0?_d:A,I=s.altBoundary,N=I===void 0?!1:I,M=s.padding,V=M===void 0?0:M,U=SE(typeof V!="number"?V:OE(V,m1)),G=k===_d?KS:_d,ne=t.rects.popper,z=t.elements[N?G:k],H=TO(xu(z)?z:z.contextElement||ac(t.elements.popper),D,T,p),Z=p0(t.elements.reference),ee=RE({reference:Z,element:ne,strategy:"absolute",placement:r}),re=w_(Object.assign({},ne,ee)),te=k===_d?re:Z,ae={top:H.top-te.top+U.top,bottom:te.bottom-H.bottom+U.bottom,left:H.left-te.left+U.left,right:te.right-H.right+U.right},ve=t.modifiersData.offset;if(k===_d&&ve){var Ae=ve[r];Object.keys(ae).forEach(function(De){var ge=[da,ha].indexOf(De)>=0?1:-1,Ne=[Ds,ha].indexOf(De)>=0?"y":"x";ae[De]+=Ae[Ne]*ge})}return ae}function AO(t,i){i===void 0&&(i={});var s=i,a=s.placement,r=s.boundary,e=s.rootBoundary,p=s.padding,_=s.flipVariations,D=s.allowedAutoPlacements,F=D===void 0?xE:D,T=m0(a),A=T?_?UD:UD.filter(function(N){return m0(N)===T}):m1,k=A.filter(function(N){return F.indexOf(N)>=0});k.length===0&&(k=A);var I=k.reduce(function(N,M){return N[M]=r1(t,{placement:M,boundary:r,rootBoundary:e,padding:p})[uo(M)],N},{});return Object.keys(I).sort(function(N,M){return I[N]-I[M]})}function SO(t){if(uo(t)===O4)return[];var i=lg(t);return[WD(t),i,WD(i)]}function OO(t){var i=t.state,s=t.options,a=t.name;if(!i.modifiersData[a]._skip){for(var r=s.mainAxis,e=r===void 0?!0:r,p=s.altAxis,_=p===void 0?!0:p,D=s.fallbackPlacements,F=s.padding,T=s.boundary,A=s.rootBoundary,k=s.altBoundary,I=s.flipVariations,N=I===void 0?!0:I,M=s.allowedAutoPlacements,V=i.options.placement,U=uo(V),G=U===V,ne=D||(G||!N?[lg(V)]:SO(V)),z=[V].concat(ne).reduce(function(Ue,be){return Ue.concat(uo(be)===O4?AO(i,{placement:be,boundary:T,rootBoundary:A,padding:F,flipVariations:N,allowedAutoPlacements:M}):be)},[]),H=i.rects.reference,Z=i.rects.popper,ee=new Map,re=!0,te=z[0],ae=0;ae<z.length;ae++){var ve=z[ae],Ae=uo(ve),De=m0(ve)===h0,ge=[Ds,ha].indexOf(Ae)>=0,Ne=ge?"width":"height",We=r1(i,{placement:ve,boundary:T,rootBoundary:A,altBoundary:k,padding:F}),Se=ge?De?da:ws:De?ha:Ds;H[Ne]>Z[Ne]&&(Se=lg(Se));var lt=lg(Se),at=[];if(e&&at.push(We[Ae]<=0),_&&at.push(We[Se]<=0,We[lt]<=0),at.every(function(Ue){return Ue})){te=ve,re=!1;break}ee.set(ve,at)}if(re)for(var ze=N?3:1,he=function(be){var Pe=z.find(function(J){var Me=ee.get(J);if(Me)return Me.slice(0,be).every(function(_e){return _e})});if(Pe)return te=Pe,"break"},He=ze;He>0;He--){var Je=he(He);if(Je==="break")break}i.placement!==te&&(i.modifiersData[a]._skip=!0,i.placement=te,i.reset=!0)}}const kO={name:"flip",enabled:!0,phase:"main",fn:OO,requiresIfExists:["offset"],data:{_skip:!1}};function jD(t,i,s){return s===void 0&&(s={x:0,y:0}),{top:t.top-i.height-s.y,right:t.right-i.width+s.x,bottom:t.bottom-i.height+s.y,left:t.left-i.width-s.x}}function VD(t){return[Ds,da,ha,ws].some(function(i){return t[i]>=0})}function RO(t){var i=t.state,s=t.name,a=i.rects.reference,r=i.rects.popper,e=i.modifiersData.preventOverflow,p=r1(i,{elementContext:"reference"}),_=r1(i,{altBoundary:!0}),D=jD(p,a),F=jD(_,r,e),T=VD(D),A=VD(F);i.modifiersData[s]={referenceClippingOffsets:D,popperEscapeOffsets:F,isReferenceHidden:T,hasPopperEscaped:A},i.attributes.popper=Object.assign({},i.attributes.popper,{"data-popper-reference-hidden":T,"data-popper-escaped":A})}const PO={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:RO};function IO(t,i,s){var a=uo(t),r=[ws,Ds].indexOf(a)>=0?-1:1,e=typeof s=="function"?s(Object.assign({},i,{placement:t})):s,p=e[0],_=e[1];return p=p||0,_=(_||0)*r,[ws,da].indexOf(a)>=0?{x:_,y:p}:{x:p,y:_}}function NO(t){var i=t.state,s=t.options,a=t.name,r=s.offset,e=r===void 0?[0,0]:r,p=xE.reduce(function(T,A){return T[A]=IO(A,i.rects,e),T},{}),_=p[i.placement],D=_.x,F=_.y;i.modifiersData.popperOffsets!=null&&(i.modifiersData.popperOffsets.x+=D,i.modifiersData.popperOffsets.y+=F),i.modifiersData[a]=p}const LO={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:NO};function MO(t){var i=t.state,s=t.name;i.modifiersData[s]=RE({reference:i.rects.reference,element:i.rects.popper,strategy:"absolute",placement:i.placement})}const BO={name:"popperOffsets",enabled:!0,phase:"read",fn:MO,data:{}};function UO(t){return t==="x"?"y":"x"}function HO(t){var i=t.state,s=t.options,a=t.name,r=s.mainAxis,e=r===void 0?!0:r,p=s.altAxis,_=p===void 0?!1:p,D=s.boundary,F=s.rootBoundary,T=s.altBoundary,A=s.padding,k=s.tether,I=k===void 0?!0:k,N=s.tetherOffset,M=N===void 0?0:N,V=r1(i,{boundary:D,rootBoundary:F,padding:A,altBoundary:T}),U=uo(i.placement),G=m0(i.placement),ne=!G,z=P4(U),H=UO(z),Z=i.modifiersData.popperOffsets,ee=i.rects.reference,re=i.rects.popper,te=typeof M=="function"?M(Object.assign({},i.rects,{placement:i.placement})):M,ae=typeof te=="number"?{mainAxis:te,altAxis:te}:Object.assign({mainAxis:0,altAxis:0},te),ve=i.modifiersData.offset?i.modifiersData.offset[i.placement]:null,Ae={x:0,y:0};if(Z){if(e){var De,ge=z==="y"?Ds:ws,Ne=z==="y"?ha:da,We=z==="y"?"height":"width",Se=Z[z],lt=Se+V[ge],at=Se-V[Ne],ze=I?-re[We]/2:0,he=G===h0?ee[We]:re[We],He=G===h0?-re[We]:-ee[We],Je=i.elements.arrow,Ue=I&&Je?R4(Je):{width:0,height:0},be=i.modifiersData["arrow#persistent"]?i.modifiersData["arrow#persistent"].padding:AE(),Pe=be[ge],J=be[Ne],Me=Nd(0,ee[We],Ue[We]),_e=ne?ee[We]/2-ze-Me-Pe-ae.mainAxis:he-Me-Pe-ae.mainAxis,it=ne?-ee[We]/2+ze+Me+J+ae.mainAxis:He+Me+J+ae.mainAxis,Ut=i.elements.arrow&&g1(i.elements.arrow),X=Ut?z==="y"?Ut.clientTop||0:Ut.clientLeft||0:0,se=(De=ve==null?void 0:ve[z])!=null?De:0,ce=Se+_e-se-X,Be=Se+it-se,$e=Nd(I?Ag(lt,ce):lt,Se,I?yu(at,Be):at);Z[z]=$e,Ae[z]=$e-Se}if(_){var Ge,Ft=z==="x"?Ds:ws,dt=z==="x"?ha:da,ut=Z[H],Ve=H==="y"?"height":"width",Fe=ut+V[Ft],xe=ut-V[dt],Et=[Ds,ws].indexOf(U)!==-1,Lt=(Ge=ve==null?void 0:ve[H])!=null?Ge:0,rr=Et?Fe:ut-ee[Ve]-re[Ve]-Lt+ae.altAxis,cr=Et?ut+ee[Ve]+re[Ve]-Lt-ae.altAxis:xe,ir=I&&Et?uO(rr,ut,cr):Nd(I?rr:Fe,ut,I?cr:xe);Z[H]=ir,Ae[H]=ir-ut}i.modifiersData[a]=Ae}}const $O={name:"preventOverflow",enabled:!0,phase:"main",fn:HO,requiresIfExists:["offset"]};function WO(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function zO(t){return t===zs(t)||!ua(t)?I4(t):WO(t)}function jO(t){var i=t.getBoundingClientRect(),s=d0(i.width)/t.offsetWidth||1,a=d0(i.height)/t.offsetHeight||1;return s!==1||a!==1}function VO(t,i,s){s===void 0&&(s=!1);var a=ua(i),r=ua(i)&&jO(i),e=ac(i),p=p0(t,r,s),_={scrollLeft:0,scrollTop:0},D={x:0,y:0};return(a||!a&&!s)&&((mo(i)!=="body"||L4(e))&&(_=zO(i)),ua(i)?(D=p0(i,!0),D.x+=i.clientLeft,D.y+=i.clientTop):e&&(D.x=N4(e))),{x:p.left+_.scrollLeft-D.x,y:p.top+_.scrollTop-D.y,width:p.width,height:p.height}}function GO(t){var i=new Map,s=new Set,a=[];t.forEach(function(e){i.set(e.name,e)});function r(e){s.add(e.name);var p=[].concat(e.requires||[],e.requiresIfExists||[]);p.forEach(function(_){if(!s.has(_)){var D=i.get(_);D&&r(D)}}),a.push(e)}return t.forEach(function(e){s.has(e.name)||r(e)}),a}function YO(t){var i=GO(t);return iO.reduce(function(s,a){return s.concat(i.filter(function(r){return r.phase===a}))},[])}function KO(t){var i;return function(){return i||(i=new Promise(function(s){Promise.resolve().then(function(){i=void 0,s(t())})})),i}}function qO(t){var i=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(i).map(function(s){return i[s]})}var GD={placement:"bottom",modifiers:[],strategy:"absolute"};function YD(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];return!i.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function QO(t){t===void 0&&(t={});var i=t,s=i.defaultModifiers,a=s===void 0?[]:s,r=i.defaultOptions,e=r===void 0?GD:r;return function(_,D,F){F===void 0&&(F=e);var T={placement:"bottom",orderedModifiers:[],options:Object.assign({},GD,e),modifiersData:{},elements:{reference:_,popper:D},attributes:{},styles:{}},A=[],k=!1,I={state:T,setOptions:function(U){var G=typeof U=="function"?U(T.options):U;M(),T.options=Object.assign({},e,T.options,G),T.scrollParents={reference:xu(_)?Ld(_):_.contextElement?Ld(_.contextElement):[],popper:Ld(D)};var ne=YO(qO([].concat(a,T.options.modifiers)));return T.orderedModifiers=ne.filter(function(z){return z.enabled}),N(),I.update()},forceUpdate:function(){if(!k){var U=T.elements,G=U.reference,ne=U.popper;if(YD(G,ne)){T.rects={reference:VO(G,g1(ne),T.options.strategy==="fixed"),popper:R4(ne)},T.reset=!1,T.placement=T.options.placement,T.orderedModifiers.forEach(function(ae){return T.modifiersData[ae.name]=Object.assign({},ae.data)});for(var z=0;z<T.orderedModifiers.length;z++){if(T.reset===!0){T.reset=!1,z=-1;continue}var H=T.orderedModifiers[z],Z=H.fn,ee=H.options,re=ee===void 0?{}:ee,te=H.name;typeof Z=="function"&&(T=Z({state:T,options:re,name:te,instance:I})||T)}}}},update:KO(function(){return new Promise(function(V){I.forceUpdate(),V(T)})}),destroy:function(){M(),k=!0}};if(!YD(_,D))return I;I.setOptions(F).then(function(V){!k&&F.onFirstUpdate&&F.onFirstUpdate(V)});function N(){T.orderedModifiers.forEach(function(V){var U=V.name,G=V.options,ne=G===void 0?{}:G,z=V.effect;if(typeof z=="function"){var H=z({state:T,name:U,instance:I,options:ne}),Z=function(){};A.push(H||Z)}})}function M(){A.forEach(function(V){return V()}),A=[]}return I}}var XO=[yO,BO,bO,oO,LO,kO,$O,pO,PO],M4=QO({defaultModifiers:XO}),$l=globalThis&&globalThis.__assign||function(){return $l=Object.assign||function(t){for(var i,s=1,a=arguments.length;s<a;s++){i=arguments[s];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t},$l.apply(this,arguments)},Km=globalThis&&globalThis.__spreadArray||function(t,i,s){if(s||arguments.length===2)for(var a=0,r=i.length,e;a<r;a++)(e||!(a in i))&&(e||(e=Array.prototype.slice.call(i,0,a)),e[a]=i[a]);return t.concat(e||Array.prototype.slice.call(i))},Wl={placement:"bottom",triggerType:"click",offsetSkidding:0,offsetDistance:10,delay:300,ignoreClickOutsideClass:!1,onShow:function(){},onHide:function(){},onToggle:function(){}},PE=function(){function t(i,s,a){i===void 0&&(i=null),s===void 0&&(s=null),a===void 0&&(a=Wl),this._targetEl=i,this._triggerEl=s,this._options=$l($l({},Wl),a),this._popperInstance=this._createPopperInstance(),this._visible=!1,this._init()}return t.prototype._init=function(){this._triggerEl&&this._setupEventListeners()},t.prototype._setupEventListeners=function(){var i=this,s=this._getTriggerEvents();this._options.triggerType==="click"&&s.showEvents.forEach(function(a){i._triggerEl.addEventListener(a,function(){i.toggle()})}),this._options.triggerType==="hover"&&(s.showEvents.forEach(function(a){i._triggerEl.addEventListener(a,function(){a==="click"?i.toggle():setTimeout(function(){i.show()},i._options.delay)}),i._targetEl.addEventListener(a,function(){i.show()})}),s.hideEvents.forEach(function(a){i._triggerEl.addEventListener(a,function(){setTimeout(function(){i._targetEl.matches(":hover")||i.hide()},i._options.delay)}),i._targetEl.addEventListener(a,function(){setTimeout(function(){i._triggerEl.matches(":hover")||i.hide()},i._options.delay)})}))},t.prototype._createPopperInstance=function(){return M4(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[this._options.offsetSkidding,this._options.offsetDistance]}}]})},t.prototype._setupClickOutsideListener=function(){var i=this;this._clickOutsideEventListener=function(s){i._handleClickOutside(s,i._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._handleClickOutside=function(i,s){var a=i.target,r=this._options.ignoreClickOutsideClass,e=!1;if(r){var p=document.querySelectorAll(".".concat(r));p.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(i){return $l($l({},i),{modifiers:Km(Km([],i.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(i){return $l($l({},i),{modifiers:Km(Km([],i.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._visible=!1,this._removeClickOutsideListener(),this._options.onHide(this)},t}();function B4(){document.querySelectorAll("[data-dropdown-toggle]").forEach(function(t){var i=t.getAttribute("data-dropdown-toggle"),s=document.getElementById(i);if(s){var a=t.getAttribute("data-dropdown-placement"),r=t.getAttribute("data-dropdown-offset-skidding"),e=t.getAttribute("data-dropdown-offset-distance"),p=t.getAttribute("data-dropdown-trigger"),_=t.getAttribute("data-dropdown-delay"),D=t.getAttribute("data-dropdown-ignore-click-outside-class");new PE(s,t,{placement:a||Wl.placement,triggerType:p||Wl.triggerType,offsetSkidding:r?parseInt(r):Wl.offsetSkidding,offsetDistance:e?parseInt(e):Wl.offsetDistance,delay:_?parseInt(_):Wl.delay,ignoreClickOutsideClass:D||Wl.ignoreClickOutsideClass})}else console.error('The dropdown element with id "'.concat(i,'" does not exist. Please check the data-dropdown-toggle attribute.'))})}typeof window<"u"&&(window.Dropdown=PE,window.initDropdowns=B4);var Sg=globalThis&&globalThis.__assign||function(){return Sg=Object.assign||function(t){for(var i,s=1,a=arguments.length;s<a;s++){i=arguments[s];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t},Sg.apply(this,arguments)},qf={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(){}},F_=function(){function t(i,s){i===void 0&&(i=null),s===void 0&&(s=qf),this._targetEl=i,this._options=Sg(Sg({},qf),s),this._isHidden=!0,this._backdropEl=null,this._init()}return t.prototype._init=function(){var i=this;this._targetEl&&this._getPlacementClasses().map(function(s){i._targetEl.classList.add(s)})},t.prototype._createBackdrop=function(){var i;if(this._isHidden){var s=document.createElement("div");s.setAttribute("modal-backdrop",""),(i=s.classList).add.apply(i,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 i=this;this._options.backdrop==="dynamic"&&(this._clickOutsideEventListener=function(s){i._handleOutsideClick(s.target)},this._targetEl.addEventListener("click",this._clickOutsideEventListener,!0)),this._keydownEventListener=function(s){s.key==="Escape"&&i.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(i){(i===this._targetEl||i===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}(),qm=function(t,i){return i.some(function(s){return s.id===t})?i.find(function(s){return s.id===t}):null};function U4(){var t=[];document.querySelectorAll("[data-modal-target]").forEach(function(i){var s=i.getAttribute("data-modal-target"),a=document.getElementById(s);if(a){var r=a.getAttribute("data-modal-placement"),e=a.getAttribute("data-modal-backdrop");qm(s,t)||t.push({id:s,object:new F_(a,{placement:r||qf.placement,backdrop:e||qf.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(i){var s=i.getAttribute("data-modal-toggle"),a=document.getElementById(s);if(a){var r=a.getAttribute("data-modal-placement"),e=a.getAttribute("data-modal-backdrop"),p=qm(s,t);p||(p={id:s,object:new F_(a,{placement:r||qf.placement,backdrop:e||qf.backdrop})},t.push(p)),i.addEventListener("click",function(){p.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(i){var s=i.getAttribute("data-modal-show"),a=document.getElementById(s);if(a){var r=qm(s,t);r?i.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(i){var s=i.getAttribute("data-modal-hide"),a=document.getElementById(s);if(a){var r=qm(s,t);r?i.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=F_,window.initModals=U4);var Og=globalThis&&globalThis.__assign||function(){return Og=Object.assign||function(t){for(var i,s=1,a=arguments.length;s<a;s++){i=arguments[s];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t},Og.apply(this,arguments)},du={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(){}},IE=function(){function t(i,s){i===void 0&&(i=null),s===void 0&&(s=du),this._targetEl=i,this._options=Og(Og({},du),s),this._visible=!1,this._init()}return t.prototype._init=function(){var i=this;this._targetEl&&(this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.classList.add("transition-transform")),this._getPlacementClasses(this._options.placement).base.map(function(s){i._targetEl.classList.add(s)}),document.addEventListener("keydown",function(s){s.key==="Escape"&&i.isVisible()&&i.hide()})},t.prototype.hide=function(){var i=this;this._options.edge?(this._getPlacementClasses(this._options.placement+"-edge").active.map(function(s){i._targetEl.classList.remove(s)}),this._getPlacementClasses(this._options.placement+"-edge").inactive.map(function(s){i._targetEl.classList.add(s)})):(this._getPlacementClasses(this._options.placement).active.map(function(s){i._targetEl.classList.remove(s)}),this._getPlacementClasses(this._options.placement).inactive.map(function(s){i._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 i=this;this._options.edge?(this._getPlacementClasses(this._options.placement+"-edge").active.map(function(s){i._targetEl.classList.add(s)}),this._getPlacementClasses(this._options.placement+"-edge").inactive.map(function(s){i._targetEl.classList.remove(s)})):(this._getPlacementClasses(this._options.placement).active.map(function(s){i._targetEl.classList.add(s)}),this._getPlacementClasses(this._options.placement).inactive.map(function(s){i._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 i,s=this;if(!this._visible){var a=document.createElement("div");a.setAttribute("drawer-backdrop",""),(i=a.classList).add.apply(i,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(i){switch(i){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}(),Qm=function(t,i){if(i.some(function(s){return s.id===t}))return i.find(function(s){return s.id===t})};function H4(){var t=[];document.querySelectorAll("[data-drawer-target]").forEach(function(i){var s=i.getAttribute("data-drawer-target"),a=document.getElementById(s);if(a){var r=i.getAttribute("data-drawer-placement"),e=i.getAttribute("data-drawer-body-scrolling"),p=i.getAttribute("data-drawer-backdrop"),_=i.getAttribute("data-drawer-edge"),D=i.getAttribute("data-drawer-edge-offset");Qm(s,t)||t.push({id:s,object:new IE(a,{placement:r||du.placement,bodyScrolling:e?e==="true":du.bodyScrolling,backdrop:p?p==="true":du.backdrop,edge:_?_==="true":du.edge,edgeOffset:D||du.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(i){var s=i.getAttribute("data-drawer-toggle"),a=document.getElementById(s);if(a){var r=Qm(s,t);r?i.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(i){var s=i.getAttribute("data-drawer-dismiss")?i.getAttribute("data-drawer-dismiss"):i.getAttribute("data-drawer-hide"),a=document.getElementById(s);if(a){var r=Qm(s,t);r?i.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(i){var s=i.getAttribute("data-drawer-show"),a=document.getElementById(s);if(a){var r=Qm(s,t);r?i.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=IE,window.initDrawers=H4);var kg=globalThis&&globalThis.__assign||function(){return kg=Object.assign||function(t){for(var i,s=1,a=arguments.length;s<a;s++){i=arguments[s];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t},kg.apply(this,arguments)},KD={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(){}},NE=function(){function t(i,s){i===void 0&&(i=[]),s===void 0&&(s=KD),this._items=i,this._activeTab=s?this.getTab(s.defaultTabId):null,this._options=kg(kg({},KD),s),this._init()}return t.prototype._init=function(){var i=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(){i.show(s.id)})}))},t.prototype.getActiveTab=function(){return this._activeTab},t.prototype._setActiveTab=function(i){this._activeTab=i},t.prototype.getTab=function(i){return this._items.filter(function(s){return s.id===i})[0]},t.prototype.show=function(i,s){var a,r,e=this;s===void 0&&(s=!1);var p=this.getTab(i);p===this._activeTab&&!s||(this._items.map(function(_){var D,F;_!==p&&((D=_.triggerEl.classList).remove.apply(D,e._options.activeClasses.split(" ")),(F=_.triggerEl.classList).add.apply(F,e._options.inactiveClasses.split(" ")),_.targetEl.classList.add("hidden"),_.triggerEl.setAttribute("aria-selected","false"))}),(a=p.triggerEl.classList).add.apply(a,this._options.activeClasses.split(" ")),(r=p.triggerEl.classList).remove.apply(r,this._options.inactiveClasses.split(" ")),p.triggerEl.setAttribute("aria-selected","true"),p.targetEl.classList.remove("hidden"),this._setActiveTab(p),this._options.onShow(this,p))},t}();function $4(){document.querySelectorAll("[data-tabs-toggle]").forEach(function(t){var i=[],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"))};i.push(e),r&&(s=e.id)}),new NE(i,{defaultTabId:s})})}typeof window<"u"&&(window.Tabs=NE,window.initTabs=$4);var zl=globalThis&&globalThis.__assign||function(){return zl=Object.assign||function(t){for(var i,s=1,a=arguments.length;s<a;s++){i=arguments[s];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t},zl.apply(this,arguments)},Xm=globalThis&&globalThis.__spreadArray||function(t,i,s){if(s||arguments.length===2)for(var a=0,r=i.length,e;a<r;a++)(e||!(a in i))&&(e||(e=Array.prototype.slice.call(i,0,a)),e[a]=i[a]);return t.concat(e||Array.prototype.slice.call(i))},Rg={placement:"top",triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},W4=function(){function t(i,s,a){i===void 0&&(i=null),s===void 0&&(s=null),a===void 0&&(a=Rg),this._targetEl=i,this._triggerEl=s,this._options=zl(zl({},Rg),a),this._popperInstance=this._createPopperInstance(),this._visible=!1,this._init()}return t.prototype._init=function(){this._triggerEl&&this._setupEventListeners()},t.prototype._setupEventListeners=function(){var i=this,s=this._getTriggerEvents();s.showEvents.forEach(function(a){i._triggerEl.addEventListener(a,function(){i.show()})}),s.hideEvents.forEach(function(a){i._triggerEl.addEventListener(a,function(){i.hide()})})},t.prototype._createPopperInstance=function(){return M4(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 i=this;this._keydownEventListener=function(s){s.key==="Escape"&&i.hide()},document.body.addEventListener("keydown",this._keydownEventListener,!0)},t.prototype._removeKeydownListener=function(){document.body.removeEventListener("keydown",this._keydownEventListener,!0)},t.prototype._setupClickOutsideListener=function(){var i=this;this._clickOutsideEventListener=function(s){i._handleClickOutside(s,i._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._handleClickOutside=function(i,s){var a=i.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(i){return zl(zl({},i),{modifiers:Xm(Xm([],i.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(i){return zl(zl({},i),{modifiers:Xm(Xm([],i.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._removeClickOutsideListener(),this._removeKeydownListener(),this._visible=!1,this._options.onHide(this)},t}();function z4(){document.querySelectorAll("[data-tooltip-target]").forEach(function(t){var i=t.getAttribute("data-tooltip-target"),s=document.getElementById(i);if(s){var a=t.getAttribute("data-tooltip-trigger"),r=t.getAttribute("data-tooltip-placement");new W4(s,t,{placement:r||Rg.placement,triggerType:a||Rg.triggerType})}else console.error('The tooltip element with id "'.concat(i,'" does not exist. Please check the data-tooltip-target attribute.'))})}typeof window<"u"&&(window.Tooltip=W4,window.initTooltips=z4);var jl=globalThis&&globalThis.__assign||function(){return jl=Object.assign||function(t){for(var i,s=1,a=arguments.length;s<a;s++){i=arguments[s];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t},jl.apply(this,arguments)},Jm=globalThis&&globalThis.__spreadArray||function(t,i,s){if(s||arguments.length===2)for(var a=0,r=i.length,e;a<r;a++)(e||!(a in i))&&(e||(e=Array.prototype.slice.call(i,0,a)),e[a]=i[a]);return t.concat(e||Array.prototype.slice.call(i))},Md={placement:"top",offset:10,triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},LE=function(){function t(i,s,a){i===void 0&&(i=null),s===void 0&&(s=null),a===void 0&&(a=Md),this._targetEl=i,this._triggerEl=s,this._options=jl(jl({},Md),a),this._popperInstance=this._createPopperInstance(),this._visible=!1,this._init()}return t.prototype._init=function(){this._triggerEl&&this._setupEventListeners()},t.prototype._setupEventListeners=function(){var i=this,s=this._getTriggerEvents();s.showEvents.forEach(function(a){i._triggerEl.addEventListener(a,function(){i.show()}),i._targetEl.addEventListener(a,function(){i.show()})}),s.hideEvents.forEach(function(a){i._triggerEl.addEventListener(a,function(){setTimeout(function(){i._targetEl.matches(":hover")||i.hide()},100)}),i._targetEl.addEventListener(a,function(){setTimeout(function(){i._triggerEl.matches(":hover")||i.hide()},100)})})},t.prototype._createPopperInstance=function(){return M4(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 i=this;this._keydownEventListener=function(s){s.key==="Escape"&&i.hide()},document.body.addEventListener("keydown",this._keydownEventListener,!0)},t.prototype._removeKeydownListener=function(){document.body.removeEventListener("keydown",this._keydownEventListener,!0)},t.prototype._setupClickOutsideListener=function(){var i=this;this._clickOutsideEventListener=function(s){i._handleClickOutside(s,i._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._handleClickOutside=function(i,s){var a=i.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(i){return jl(jl({},i),{modifiers:Jm(Jm([],i.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(i){return jl(jl({},i),{modifiers:Jm(Jm([],i.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._removeClickOutsideListener(),this._removeKeydownListener(),this._visible=!1,this._options.onHide(this)},t}();function j4(){document.querySelectorAll("[data-popover-target]").forEach(function(t){var i=t.getAttribute("data-popover-target"),s=document.getElementById(i);if(s){var a=t.getAttribute("data-popover-trigger"),r=t.getAttribute("data-popover-placement"),e=t.getAttribute("data-popover-offset");new LE(s,t,{placement:r||Md.placement,offset:e?parseInt(e):Md.offset,triggerType:a||Md.triggerType})}else console.error('The popover element with id "'.concat(i,'" does not exist. Please check the data-popover-target attribute.'))})}typeof window<"u"&&(window.Popover=LE,window.initPopovers=j4);var Pg=globalThis&&globalThis.__assign||function(){return Pg=Object.assign||function(t){for(var i,s=1,a=arguments.length;s<a;s++){i=arguments[s];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t},Pg.apply(this,arguments)},E_={triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},ME=function(){function t(i,s,a,r){i===void 0&&(i=null),s===void 0&&(s=null),a===void 0&&(a=null),r===void 0&&(r=E_),this._parentEl=i,this._triggerEl=s,this._targetEl=a,this._options=Pg(Pg({},E_),r),this._visible=!1,this._init()}return t.prototype._init=function(){var i=this;if(this._triggerEl){var s=this._getTriggerEventTypes(this._options.triggerType);s.showEvents.forEach(function(a){i._triggerEl.addEventListener(a,function(){i.show()}),i._targetEl.addEventListener(a,function(){i.show()})}),s.hideEvents.forEach(function(a){i._parentEl.addEventListener(a,function(){i._parentEl.matches(":hover")||i.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(i){switch(i){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 V4(){document.querySelectorAll("[data-dial-init]").forEach(function(t){var i=t.querySelector("[data-dial-toggle]");if(i){var s=i.getAttribute("data-dial-toggle"),a=document.getElementById(s);if(a){var r=i.getAttribute("data-dial-trigger");new ME(t,i,a,{triggerType:r||E_.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=ME,window.initDials=V4);function JO(){C4(),T4(),A4(),S4(),B4(),U4(),H4(),$4(),z4(),j4(),V4()}typeof window<"u"&&(window.initFlowbite=JO);var ZO=new GS("load",[C4,T4,A4,S4,B4,U4,H4,$4,z4,j4,V4]);ZO.init();const ek=Tt("div",{class:"tooltip-arrow","data-popper-arrow":""},null,-1),BE=mi({__name:"Tooltip",props:{placement:null},setup(t){const i=t,s=Yt(null),a=Yt(null),r=Hr(()=>i.placement??"auto");return La(()=>{if(s.value&&a.value){const e={placement:r.value,triggerType:"hover"};new W4(s.value,a.value,e)}}),(e,p)=>(Lr(),fn("div",null,[Tt("div",{ref_key:"tooltipTriggerEl",ref:a},[Fu(e.$slots,"default")],512),Tt("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":""},[Tt("div",null,[Fu(e.$slots,"popper")]),ek],512)]))}}),tk="0.32.0",UE="https://github.com/xcpcio/xcpcio",rk="93994b215c";var Oa=(t=>(t.PENDING="PENDING",t.RUNNING="RUNNING",t.FROZEN="FROZEN",t.FINISHED="FINISHED",t.PAUSED="PAUSED",t))(Oa||{}),xt=(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.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))(xt||{});const kI={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",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"},RI={PENDING:"PD",WAITING:"PD",PREPARING:"PD",COMPILING:"PD",RUNNING:"PD",JUDGING:"PD",FROZEN:"PD",ACCEPTED:"AC",CORRECT:"AC",PARTIALLY_CORRECT:"RJ",REJECTED:"RJ",WRONG_ANSWER:"WA",COMPILATION_ERROR:"CE",PRESENTATION_ERROR:"PE",RUNTIME_ERROR:"RE",TIME_LIMIT_EXCEEDED:"TL",MEMORY_LIMIT_EXCEEDED:"ML",OUTPUT_LIMIT_EXCEEDED:"OL",IDLENESS_LIMIT_EXCEEDED:"IL",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"},nk={"mt-8":"","py-4":"","md:py-8":"","lg:py-10":"","w-full":"",flex:"","justify-center":"","items-center":""},ik={"text-center":"","w-full":""},sk=Tt("div",{"i-ion-balloon-sharp":"","mr-4":"","h-8":""},null,-1),ak=Tt("p",{"my-6":"","text-gray-500":"","dark:text-gray-400":"","w-full":"",flex:"","justify-center":""}," Open-source project of ICPC/CCPC Standings. ",-1),ok={"mb-6":"","w-full":"",flex:"","flex-wrap":"","items-center":"","justify-center":"","text-gray-900":"","dark:text-white":""},lk={"mr-4":"","md:mr-6":""},ck=["href"],uk={flex:"","justify-center":"","items-start":"","flex-col":""},fk={"mr-4":"","md:mr-6":""},hk=Tt("a",{href:"mailto:hi@dup4.com","hover:underline":""}," Contact ",-1),dk={flex:"","justify-center":"","items-start":"","flex-col":""},pk={"text-sm":"","text-gray-500":"","sm:text-center":"","dark:text-gray-400":"","w-full":""},mk=mi({__name:"Footer",setup(t){const i=Hr(()=>window?window.CDN_HOST:""),s=Hr(()=>window?window.DATA_HOST:""),a=Hr(()=>window?window.DATA_REGION:"");return(r,e)=>{const p=Ia("RouterLink"),_=BE;return Lr(),fn("footer",nk,[Tt("div",ik,[Er(p,{flex:"","items-center":"","justify-center":"","text-2xl":"","font-semibold":"","text-gray-900":"","dark:text-white":"",to:"/"},{default:Ei(()=>[sk,co(" Get more balloons ")]),_:1}),ak,Tt("ul",ok,[Tt("li",null,[Er(p,{to:"/","mr-4":"","md:mr-6":"","hover:underline":""},{default:Ei(()=>[co(" Home ")]),_:1})]),Tt("li",null,[Tt("div",lk,[Er(_,null,{popper:Ei(()=>[Tt("div",uk,[Tt("div",null,"Tag: "+ai(Qt(tk)),1),Tt("div",null,"Sha: "+ai(Qt(rk)),1)])]),default:Ei(()=>[Tt("a",{href:Qt(UE),"hover:underline":"",rel:"noreferrer",target:"_blank",title:"GitHub"}," GitHub ",8,ck)]),_:1})])]),Tt("li",null,[Tt("div",fk,[Er(_,null,{popper:Ei(()=>[Tt("div",dk,[Tt("div",null,"CDN Host: "+ai(Qt(i)),1),Tt("div",null,"DATA Host: "+ai(Qt(s)),1),Tt("div",null,"Data Region: "+ai(Qt(a)),1)])]),default:Ei(()=>[hk]),_:1})])])]),Tt("span",pk,[co("© 2020-PRESENT "),Er(p,{to:"/","hover:underline":""},{default:Ei(()=>[co("XCPCIO™")]),_:1}),co(". All Rights Reserved.")])])])}}});function ku(t){return Qg()?(V_(t),!0):!1}function Rb(){const t=new Set,i=r=>{t.delete(r)};return{on:r=>{t.add(r);const e=()=>i(r);return ku(e),{off:e}},off:i,trigger:r=>Promise.all(Array.from(t).map(e=>e(r)))}}function Yn(t){return typeof t=="function"?t():Qt(t)}const b2=typeof window<"u",gk=t=>typeof t<"u",vk=t=>t!=null,r0=()=>{};function bk(t,i){function s(...a){return new Promise((r,e)=>{Promise.resolve(t(()=>i.apply(this,a),{fn:i,thisArg:this,args:a})).then(r).catch(e)})}return s}const HE=t=>t();function _k(t=HE){const i=Yt(!0);function s(){i.value=!1}function a(){i.value=!0}const r=(...e)=>{i.value&&t(...e)};return{isActive:_0(i),pause:s,resume:a,eventFilter:r}}function qD(t,i=!1,s="Timeout"){return new Promise((a,r)=>{setTimeout(i?()=>r(s):a,t)})}function yk(t,...i){return i.some(s=>s in t)}function Bd(...t){if(t.length!==1)return Tw(...t);const i=t[0];return typeof i=="function"?_0(Z_(()=>({get:i,set:r0}))):Yt(i)}function Dk(t,i=!0){Ti()?La(t):i?t():vo(t)}function x_(t,i=!1){function s(A,{flush:k="sync",deep:I=!1,timeout:N,throwOnTimeout:M}={}){let V=null;const G=[new Promise(ne=>{V=bn(t,z=>{A(z)!==i&&(V==null||V(),ne(z))},{flush:k,deep:I,immediate:!0})})];return N!=null&&G.push(qD(N,M).then(()=>Yn(t)).finally(()=>V==null?void 0:V())),Promise.race(G)}function a(A,k){if(!rn(A))return s(z=>z===A,k);const{flush:I="sync",deep:N=!1,timeout:M,throwOnTimeout:V}=k??{};let U=null;const ne=[new Promise(z=>{U=bn([t,A],([H,Z])=>{i!==(H===Z)&&(U==null||U(),z(H))},{flush:I,deep:N,immediate:!0})})];return M!=null&&ne.push(qD(M,V).then(()=>Yn(t)).finally(()=>(U==null||U(),Yn(t)))),Promise.race(ne)}function r(A){return s(k=>!!k,A)}function e(A){return a(null,A)}function p(A){return a(void 0,A)}function _(A){return s(Number.isNaN,A)}function D(A,k){return s(I=>{const N=Array.from(I);return N.includes(A)||N.includes(Yn(A))},k)}function F(A){return T(1,A)}function T(A=1,k){let I=-1;return s(()=>(I+=1,I>=A),k)}return Array.isArray(Yn(t))?{toMatch:s,toContains:D,changed:F,changedTimes:T,get not(){return x_(t,!i)}}:{toMatch:s,toBe:a,toBeTruthy:r,toBeNull:e,toBeNaN:_,toBeUndefined:p,changed:F,changedTimes:T,get not(){return x_(t,!i)}}}function wk(t){return x_(t)}function $E(t,i,s={}){const{immediate:a=!0}=s,r=Yt(!1);let e=null;function p(){e&&(clearTimeout(e),e=null)}function _(){r.value=!1,p()}function D(...F){p(),r.value=!0,e=setTimeout(()=>{r.value=!1,e=null,t(...F)},Yn(i))}return a&&(r.value=!0,b2&&D()),ku(_),{isPending:_0(r),start:D,stop:_}}function Fk(t=!1,i={}){const{truthyValue:s=!0,falsyValue:a=!1}=i,r=rn(t),e=Yt(t);function p(_){if(arguments.length)return e.value=_,e.value;{const D=Yn(s);return e.value=e.value===D?Yn(a):D,e.value}}return r?p:[e,p]}var QD=Object.getOwnPropertySymbols,Ek=Object.prototype.hasOwnProperty,xk=Object.prototype.propertyIsEnumerable,Ck=(t,i)=>{var s={};for(var a in t)Ek.call(t,a)&&i.indexOf(a)<0&&(s[a]=t[a]);if(t!=null&&QD)for(var a of QD(t))i.indexOf(a)<0&&xk.call(t,a)&&(s[a]=t[a]);return s};function Tk(t,i,s={}){const a=s,{eventFilter:r=HE}=a,e=Ck(a,["eventFilter"]);return bn(t,bk(r,i),e)}var Ak=Object.defineProperty,Sk=Object.defineProperties,Ok=Object.getOwnPropertyDescriptors,Ig=Object.getOwnPropertySymbols,WE=Object.prototype.hasOwnProperty,zE=Object.prototype.propertyIsEnumerable,XD=(t,i,s)=>i in t?Ak(t,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[i]=s,kk=(t,i)=>{for(var s in i||(i={}))WE.call(i,s)&&XD(t,s,i[s]);if(Ig)for(var s of Ig(i))zE.call(i,s)&&XD(t,s,i[s]);return t},Rk=(t,i)=>Sk(t,Ok(i)),Pk=(t,i)=>{var s={};for(var a in t)WE.call(t,a)&&i.indexOf(a)<0&&(s[a]=t[a]);if(t!=null&&Ig)for(var a of Ig(t))i.indexOf(a)<0&&zE.call(t,a)&&(s[a]=t[a]);return s};function Ik(t,i,s={}){const a=s,{eventFilter:r}=a,e=Pk(a,["eventFilter"]),{eventFilter:p,pause:_,resume:D,isActive:F}=_k(r);return{stop:Tk(t,i,Rk(kk({},e),{eventFilter:p})),pause:_,resume:D,isActive:F}}function n0(t){var i;const s=Yn(t);return(i=s==null?void 0:s.$el)!=null?i:s}const pa=b2?window:void 0,Nk=b2?window.document:void 0,Lk=b2?window.navigator:void 0;function qo(...t){let i,s,a,r;if(typeof t[0]=="string"||Array.isArray(t[0])?([s,a,r]=t,i=pa):[i,s,a,r]=t,!i)return r0;Array.isArray(s)||(s=[s]),Array.isArray(a)||(a=[a]);const e=[],p=()=>{e.forEach(T=>T()),e.length=0},_=(T,A,k,I)=>(T.addEventListener(A,k,I),()=>T.removeEventListener(A,k,I)),D=bn(()=>[n0(i),Yn(r)],([T,A])=>{p(),T&&e.push(...s.flatMap(k=>a.map(I=>_(T,k,I,A))))},{immediate:!0,flush:"post"}),F=()=>{D(),p()};return ku(F),F}function Mk(t){return typeof t=="function"?t:typeof t=="string"?i=>i.key===t:Array.isArray(t)?i=>t.includes(i.key):()=>!0}function PI(...t){let i,s,a={};t.length===3?(i=t[0],s=t[1],a=t[2]):t.length===2?typeof t[1]=="object"?(i=!0,s=t[0],a=t[1]):(i=t[0],s=t[1]):(i=!0,s=t[0]);const{target:r=pa,eventName:e="keydown",passive:p=!1,dedupe:_=!1}=a,D=Mk(i);return qo(r,e,T=>{T.repeat&&Yn(_)||D(T)&&s(T)},p)}function Bk(){const t=Yt(!1);return Ti()&&La(()=>{t.value=!0}),t}function _2(t){const i=Bk();return Hr(()=>(i.value,!!t()))}function Uk(t,i={}){const{window:s=pa}=i,a=_2(()=>s&&"matchMedia"in s&&typeof s.matchMedia=="function");let r;const e=Yt(!1),p=F=>{e.value=F.matches},_=()=>{r&&("removeEventListener"in r?r.removeEventListener("change",p):r.removeListener(p))},D=i4(()=>{a.value&&(_(),r=s.matchMedia(Yn(t)),"addEventListener"in r?r.addEventListener("change",p):r.addListener(p),e.value=r.matches)});return ku(()=>{D(),_(),r=void 0}),e}function II(t={}){const{navigator:i=Lk,read:s=!1,source:a,copiedDuring:r=1500,legacy:e=!1}=t,p=_2(()=>i&&"clipboard"in i),_=Hr(()=>p.value||e),D=Yt(""),F=Yt(!1),T=$E(()=>F.value=!1,r);function A(){p.value?i.clipboard.readText().then(M=>{D.value=M}):D.value=N()}_.value&&s&&qo(["copy","cut"],A);async function k(M=Yn(a)){_.value&&M!=null&&(p.value?await i.clipboard.writeText(M):I(M),D.value=M,F.value=!0,T.start())}function I(M){const V=document.createElement("textarea");V.value=M??"",V.style.position="absolute",V.style.opacity="0",document.body.appendChild(V),V.select(),document.execCommand("copy"),V.remove()}function N(){var M,V,U;return(U=(V=(M=document==null?void 0:document.getSelection)==null?void 0:M.call(document))==null?void 0:V.toString())!=null?U:""}return{isSupported:_,text:D,copied:F,copy:k}}function Hk(t){return JSON.parse(JSON.stringify(t))}const Zm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},eg="__vueuse_ssr_handlers__",$k=Wk();function Wk(){return eg in Zm||(Zm[eg]=Zm[eg]||{}),Zm[eg]}function jE(t,i){return $k[t]||i}function zk(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 jk=Object.defineProperty,JD=Object.getOwnPropertySymbols,Vk=Object.prototype.hasOwnProperty,Gk=Object.prototype.propertyIsEnumerable,ZD=(t,i,s)=>i in t?jk(t,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[i]=s,e3=(t,i)=>{for(var s in i||(i={}))Vk.call(i,s)&&ZD(t,s,i[s]);if(JD)for(var s of JD(i))Gk.call(i,s)&&ZD(t,s,i[s]);return t};const Yk={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()}},t3="vueuse-storage";function Kk(t,i,s,a={}){var r;const{flush:e="pre",deep:p=!0,listenToStorageChanges:_=!0,writeDefaults:D=!0,mergeDefaults:F=!1,shallow:T,window:A=pa,eventFilter:k,onError:I=re=>{console.error(re)}}=a,N=(T?Zf:Yt)(i);if(!s)try{s=jE("getDefaultStorage",()=>{var re;return(re=pa)==null?void 0:re.localStorage})()}catch(re){I(re)}if(!s)return N;const M=Yn(i),V=zk(M),U=(r=a.serializer)!=null?r:Yk[V],{pause:G,resume:ne}=Ik(N,()=>z(N.value),{flush:e,deep:p,eventFilter:k});return A&&_&&(qo(A,"storage",ee),qo(A,t3,Z)),ee(),N;function z(re){try{if(re==null)s.removeItem(t);else{const te=U.write(re),ae=s.getItem(t);ae!==te&&(s.setItem(t,te),A&&A.dispatchEvent(new CustomEvent(t3,{detail:{key:t,oldValue:ae,newValue:te,storageArea:s}})))}}catch(te){I(te)}}function H(re){const te=re?re.newValue:s.getItem(t);if(te==null)return D&&M!==null&&s.setItem(t,U.write(M)),M;if(!re&&F){const ae=U.read(te);return typeof F=="function"?F(ae,M):V==="object"&&!Array.isArray(ae)?e3(e3({},M),ae):ae}else return typeof te!="string"?te:U.read(te)}function Z(re){ee(re.detail)}function ee(re){if(!(re&&re.storageArea!==s)){if(re&&re.key==null){N.value=M;return}if(!(re&&re.key!==t)){G();try{N.value=H(re)}catch(te){I(te)}finally{re?vo(ne):ne()}}}}}function VE(t){return Uk("(prefers-color-scheme: dark)",t)}var qk=Object.defineProperty,r3=Object.getOwnPropertySymbols,Qk=Object.prototype.hasOwnProperty,Xk=Object.prototype.propertyIsEnumerable,n3=(t,i,s)=>i in t?qk(t,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[i]=s,Jk=(t,i)=>{for(var s in i||(i={}))Qk.call(i,s)&&n3(t,s,i[s]);if(r3)for(var s of r3(i))Xk.call(i,s)&&n3(t,s,i[s]);return t};function Zk(t={}){const{selector:i="html",attribute:s="class",initialValue:a="auto",window:r=pa,storage:e,storageKey:p="vueuse-color-scheme",listenToStorageChanges:_=!0,storageRef:D,emitAuto:F,disableTransition:T=!0}=t,A=Jk({auto:"",light:"light",dark:"dark"},t.modes||{}),k=VE({window:r}),I=Hr(()=>k.value?"dark":"light"),N=D||(p==null?Bd(a):Kk(p,a,e,{window:r,listenToStorageChanges:_})),M=Hr(()=>N.value==="auto"?I.value:N.value),V=jE("updateHTMLAttrs",(z,H,Z)=>{const ee=typeof z=="string"?r==null?void 0:r.document.querySelector(z):n0(z);if(!ee)return;let re;if(T){re=r.document.createElement("style");const te="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";re.appendChild(document.createTextNode(te)),r.document.head.appendChild(re)}if(H==="class"){const te=Z.split(/\s/g);Object.values(A).flatMap(ae=>(ae||"").split(/\s/g)).filter(Boolean).forEach(ae=>{te.includes(ae)?ee.classList.add(ae):ee.classList.remove(ae)})}else ee.setAttribute(H,Z);T&&(r.getComputedStyle(re).opacity,document.head.removeChild(re))});function U(z){var H;V(i,s,(H=A[z])!=null?H:z)}function G(z){t.onChanged?t.onChanged(z,U):U(z)}bn(M,G,{flush:"post",immediate:!0}),Dk(()=>G(M.value));const ne=Hr({get(){return F?N.value:M.value},set(z){N.value=z}});try{return Object.assign(ne,{store:N,system:I,state:M})}catch{return ne}}var i3=Object.getOwnPropertySymbols,e7=Object.prototype.hasOwnProperty,t7=Object.prototype.propertyIsEnumerable,r7=(t,i)=>{var s={};for(var a in t)e7.call(t,a)&&i.indexOf(a)<0&&(s[a]=t[a]);if(t!=null&&i3)for(var a of i3(t))i.indexOf(a)<0&&t7.call(t,a)&&(s[a]=t[a]);return s};function n7(t,i,s={}){const a=s,{window:r=pa}=a,e=r7(a,["window"]);let p;const _=_2(()=>r&&"MutationObserver"in r),D=()=>{p&&(p.disconnect(),p=void 0)},F=bn(()=>n0(t),A=>{D(),_.value&&r&&A&&(p=new MutationObserver(i),p.observe(A,e))},{immediate:!0}),T=()=>{D(),F()};return ku(T),{isSupported:_,stop:T}}var i7=Object.defineProperty,s7=Object.defineProperties,a7=Object.getOwnPropertyDescriptors,s3=Object.getOwnPropertySymbols,o7=Object.prototype.hasOwnProperty,l7=Object.prototype.propertyIsEnumerable,a3=(t,i,s)=>i in t?i7(t,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[i]=s,c7=(t,i)=>{for(var s in i||(i={}))o7.call(i,s)&&a3(t,s,i[s]);if(s3)for(var s of s3(i))l7.call(i,s)&&a3(t,s,i[s]);return t},u7=(t,i)=>s7(t,a7(i));function f7(t={}){const{valueDark:i="dark",valueLight:s=""}=t,a=Zk(u7(c7({},t),{onChanged:(e,p)=>{var _;t.onChanged?(_=t.onChanged)==null||_.call(t,e==="dark",p,e):p(e)},modes:{dark:i,light:s}}));return Hr({get(){return a.value==="dark"},set(e){const p=e?"dark":"light";a.system.value===p?a.value="auto":a.value=p}})}function h7(t,i,s={}){const{root:a,rootMargin:r="0px",threshold:e=.1,window:p=pa,immediate:_=!0}=s,D=_2(()=>p&&"IntersectionObserver"in p),F=Hr(()=>{const N=Yn(t);return(Array.isArray(N)?N:[N]).map(n0).filter(vk)});let T=r0;const A=Yt(_),k=D.value?bn(()=>[F.value,n0(a),A.value],([N,M])=>{if(T(),!A.value||!N.length)return;const V=new IntersectionObserver(i,{root:n0(M),rootMargin:r,threshold:e});N.forEach(U=>U&&V.observe(U)),T=()=>{V.disconnect(),T=r0}},{immediate:_,flush:"post"}):r0,I=()=>{T(),k(),A.value=!1};return ku(I),{isSupported:D,isActive:A,pause(){T(),A.value=!1},resume(){A.value=!0},stop:I}}function d7(t,{window:i=pa,scrollTarget:s}={}){const a=Yt(!1);return h7(t,([{isIntersecting:r}])=>{a.value=r},{root:s,window:i}),a}var p7=Object.defineProperty,m7=Object.defineProperties,g7=Object.getOwnPropertyDescriptors,o3=Object.getOwnPropertySymbols,v7=Object.prototype.hasOwnProperty,b7=Object.prototype.propertyIsEnumerable,l3=(t,i,s)=>i in t?p7(t,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[i]=s,gs=(t,i)=>{for(var s in i||(i={}))v7.call(i,s)&&l3(t,s,i[s]);if(o3)for(var s of o3(i))b7.call(i,s)&&l3(t,s,i[s]);return t},yd=(t,i)=>m7(t,g7(i));const _7={json:"application/json",text:"text/plain"};function c3(t){return t&&yk(t,"immediate","refetch","initialData","timeout","beforeFetch","afterFetch","onFetchError","fetch")}function Pb(t){return typeof Headers<"u"&&t instanceof Headers?Object.fromEntries([...t.entries()]):t}function y7(t,...i){var s;const a=typeof AbortController=="function";let r={},e={immediate:!0,refetch:!1,timeout:0};const p={method:"GET",type:"text",payload:void 0};i.length>0&&(c3(i[0])?e=gs(gs({},e),i[0]):r=i[0]),i.length>1&&c3(i[1])&&(e=gs(gs({},e),i[1]));const{fetch:_=(s=pa)==null?void 0:s.fetch,initialData:D,timeout:F}=e,T=Rb(),A=Rb(),k=Rb(),I=Yt(!1),N=Yt(!1),M=Yt(!1),V=Yt(null),U=Zf(null),G=Zf(null),ne=Zf(D||null),z=Hr(()=>a&&N.value);let H,Z;const ee=()=>{a&&(H==null||H.abort(),H=new AbortController,H.signal.onabort=()=>M.value=!0,r=yd(gs({},r),{signal:H.signal}))},re=Ne=>{N.value=Ne,I.value=!Ne};F&&(Z=$E(ee,F,{immediate:!1}));const te=async(Ne=!1)=>{var We;ee(),re(!0),G.value=null,V.value=null,M.value=!1;const Se={method:p.method,headers:{}};if(p.payload){const he=Pb(Se.headers),He=Yn(p.payload);!p.payloadType&&He&&Object.getPrototypeOf(He)===Object.prototype&&!(He instanceof FormData)&&(p.payloadType="json"),p.payloadType&&(he["Content-Type"]=(We=_7[p.payloadType])!=null?We:p.payloadType),Se.body=p.payloadType==="json"?JSON.stringify(He):He}let lt=!1;const at={url:Yn(t),options:gs(gs({},Se),r),cancel:()=>{lt=!0}};if(e.beforeFetch&&Object.assign(at,await e.beforeFetch(at)),lt||!_)return re(!1),Promise.resolve(null);let ze=null;return Z&&Z.start(),new Promise((he,He)=>{var Je;_(at.url,yd(gs(gs({},Se),at.options),{headers:gs(gs({},Pb(Se.headers)),Pb((Je=at.options)==null?void 0:Je.headers))})).then(async Ue=>{if(U.value=Ue,V.value=Ue.status,ze=await Ue[p.type](),!Ue.ok)throw ne.value=D||null,new Error(Ue.statusText);return e.afterFetch&&({data:ze}=await e.afterFetch({data:ze,response:Ue})),ne.value=ze,T.trigger(Ue),he(Ue)}).catch(async Ue=>{let be=Ue.message||Ue.name;return e.onFetchError&&({error:be}=await e.onFetchError({data:ze,error:Ue,response:U.value})),G.value=be,A.trigger(Ue),Ne?He(Ue):he(null)}).finally(()=>{re(!1),Z&&Z.stop(),k.trigger(null)})})},ae=Bd(e.refetch);bn([ae,Bd(t)],([Ne])=>Ne&&te(),{deep:!0});const ve={isFinished:I,statusCode:V,response:U,error:G,data:ne,isFetching:N,canAbort:z,aborted:M,abort:ee,execute:te,onFetchResponse:T.on,onFetchError:A.on,onFetchFinally:k.on,get:Ae("GET"),put:Ae("PUT"),post:Ae("POST"),delete:Ae("DELETE"),patch:Ae("PATCH"),head:Ae("HEAD"),options:Ae("OPTIONS"),json:ge("json"),text:ge("text"),blob:ge("blob"),arrayBuffer:ge("arrayBuffer"),formData:ge("formData")};function Ae(Ne){return(We,Se)=>{if(!N.value)return p.method=Ne,p.payload=We,p.payloadType=Se,rn(p.payload)&&bn([ae,Bd(p.payload)],([lt])=>lt&&te(),{deep:!0}),yd(gs({},ve),{then(lt,at){return De().then(lt,at)}})}}function De(){return new Promise((Ne,We)=>{wk(I).toBe(!0).then(()=>Ne(ve)).catch(Se=>We(Se))})}function ge(Ne){return()=>{if(!N.value)return p.type=Ne,yd(gs({},ve),{then(We,Se){return De().then(We,Se)}})}}return e.immediate&&Promise.resolve().then(()=>te()),yd(gs({},ve),{then(Ne,We){return De().then(Ne,We)}})}const D7={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function NI(t={}){const{reactive:i=!1,target:s=pa,aliasMap:a=D7,passive:r=!0,onEventFired:e=r0}=t,p=Jl(new Set),_={toJSON(){return{}},current:p},D=i?Jl(_):_,F=new Set,T=new Set;function A(M,V){M in D&&(i?D[M]=V:D[M].value=V)}function k(){p.clear();for(const M of T)A(M,!1)}function I(M,V){var U,G;const ne=(U=M.key)==null?void 0:U.toLowerCase(),H=[(G=M.code)==null?void 0:G.toLowerCase(),ne].filter(Boolean);ne&&(V?p.add(ne):p.delete(ne));for(const Z of H)T.add(Z),A(Z,V);ne==="meta"&&!V?(F.forEach(Z=>{p.delete(Z),A(Z,!1)}),F.clear()):typeof M.getModifierState=="function"&&M.getModifierState("Meta")&&V&&[...p,...H].forEach(Z=>F.add(Z))}qo(s,"keydown",M=>(I(M,!0),e(M)),{passive:r}),qo(s,"keyup",M=>(I(M,!1),e(M)),{passive:r}),qo("blur",k,{passive:!0}),qo("focus",k,{passive:!0});const N=new Proxy(D,{get(M,V,U){if(typeof V!="string")return Reflect.get(M,V,U);if(V=V.toLowerCase(),V in a&&(V=a[V]),!(V in D))if(/[+_-]/.test(V)){const ne=V.split(/[+_-]/g).map(z=>z.trim());D[V]=Hr(()=>ne.every(z=>Yn(N[z])))}else D[V]=Yt(!1);const G=Reflect.get(M,V,U);return i?Yn(G):G}});return N}function w7(t=null,i={}){var s,a;const{document:r=Nk}=i,e=Bd((s=t??(r==null?void 0:r.title))!=null?s:null),p=t&&typeof t=="function";function _(D){if(!("titleTemplate"in i))return D;const F=i.titleTemplate||"%s";return typeof F=="function"?F(D):Yn(F).replace(/%s/g,D)}return bn(e,(D,F)=>{D!==F&&r&&(r.title=_(typeof D=="string"?D:""))},{immediate:!0}),i.observe&&!i.titleTemplate&&r&&!p&&n7((a=r.head)==null?void 0:a.querySelector("title"),()=>{r&&r.title!==e.value&&(e.value=_(r.title))},{childList:!0}),e}function u3(t,i,s,a={}){var r,e,p;const{clone:_=!1,passive:D=!1,eventName:F,deep:T=!1,defaultValue:A,shouldEmit:k}=a,I=Ti(),N=s||(I==null?void 0:I.emit)||((r=I==null?void 0:I.$emit)==null?void 0:r.bind(I))||((p=(e=I==null?void 0:I.proxy)==null?void 0:e.$emit)==null?void 0:p.bind(I==null?void 0:I.proxy));let M=F;i||(i="modelValue"),M=M||`update:${i.toString()}`;const V=ne=>_?typeof _=="function"?_(ne):Hk(ne):ne,U=()=>gk(t[i])?V(t[i]):A,G=ne=>{k?k(ne)&&N(M,ne):N(M,ne)};if(D){const ne=U(),z=Yt(ne);return bn(()=>t[i],H=>z.value=V(H)),bn(z,H=>{(H!==t[i]||T)&&G(H)},{deep:T}),z}else return Hr({get(){return U()},set(ne){G(ne)}})}function F7({window:t=pa}={}){if(!t)return{x:Yt(0),y:Yt(0)};const i=Yt(t.scrollX),s=Yt(t.scrollY);return qo(t,"scroll",()=>{i.value=t.scrollX,s.value=t.scrollY},{capture:!1,passive:!0}),{x:i,y:s}}const GE=f7(),E7=Fk(GE),x7=VE(),D0=t=>(s2("data-v-a79e7085"),t=t(),a2(),t),C7=D0(()=>Tt("div",{"i-ri-arrow-up-line":""},null,-1)),T7=[C7],A7=D0(()=>Tt("div",{class:"spacer"},null,-1)),S7={class:"right","print:op0":""},O7=D0(()=>Tt("div",{"i-ion-balloon-sharp":""},null,-1)),k7=["title"],R7=D0(()=>Tt("div",{"i-carbon-language":""},null,-1)),P7=[R7],I7=["title"],N7=D0(()=>Tt("div",{i:"carbon-sun dark:carbon-moon"},null,-1)),L7=[N7],M7=["href"],B7=D0(()=>Tt("div",{"i-carbon-logo-github":""},null,-1)),U7=[B7],H7=mi({__name:"NavBar",props:{width:null},setup(t){const i=t,{t:s,locale:a}=y0(),{y:r}=F7();function e(){window.scrollTo({top:0,behavior:"smooth"})}async function p(){const _=qF,D=_[(_.indexOf(a.value)+1)%_.length];await F4(D),a.value=D}return(_,D)=>{const F=Ia("RouterLink");return Lr(),fn("header",{class:ns(["header z-40",[(i==null?void 0:i.width)??""]])},[Tt("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:ns(Qt(r)>300?"op30":"op0! pointer-events-none"),onClick:D[0]||(D[0]=T=>e())},T7,2),Tt("nav",{class:ns(["nav",[i!=null&&i.width?"":"fixed"]]),"text-xl":""},[A7,Tt("div",S7,[Er(F,{"icon-btn":"",title:Qt(s)("button.home"),to:"/",focusable:"false"},{default:Ei(()=>[O7]),_:1},8,["title"]),Tt("a",{"icon-btn":"",title:Qt(s)("button.toggle_langs"),onClick:D[1]||(D[1]=T=>p())},P7,8,k7),Tt("a",{"icon-btn":"",title:Qt(s)("button.toggle_dark"),onClick:D[2]||(D[2]=T=>("toggleDark"in _?_.toggleDark:Qt(E7))())},L7,8,I7),Tt("a",{"icon-btn":"",rel:"noreferrer",href:Qt(UE),target:"_blank",title:"GitHub"},U7,8,M7)])],2)],2)}}});const w0=(t,i)=>{const s=t.__vccOpts||t;for(const[a,r]of i)s[a]=r;return s},$7=w0(H7,[["__scopeId","data-v-a79e7085"]]),W7={},z7={"py-10":"","text-gray-700":"","dark:text-gray-200":""};function j7(t,i){const s=$7,a=Ia("RouterView"),r=mk;return Lr(),fn(Gn,null,[Er(s),Tt("main",z7,[Er(a),Er(r)])],64)}const V7=w0(W7,[["render",j7]]),G7={"board-layout":()=>bs(()=>import("./board-layout-ccb8d7e4.js"),[],import.meta.url),default:V7,headless:()=>bs(()=>import("./headless-be8dd44c.js"),[],import.meta.url),home:()=>bs(()=>import("./home-bc4084e9.js"),[],import.meta.url),"index-layout":()=>bs(()=>import("./index-layout-95eb074e.js"),[],import.meta.url)};function Y7(t){return t.map(i=>{var s;return{path:i.path,meta:i.meta,component:G7[((s=i.meta)==null?void 0:s.layout)||"default"],children:i.path==="/"?[i]:[{...i,path:""}]}})}const K7=["top","right","bottom","left"],f3=["start","end"],h3=K7.reduce((t,i)=>t.concat(i,i+"-"+f3[0],i+"-"+f3[1]),[]),n1=Math.min,cu=Math.max,q7={left:"right",right:"left",bottom:"top",top:"bottom"},Q7={start:"end",end:"start"};function C_(t,i,s){return cu(t,n1(i,s))}function Ru(t,i){return typeof t=="function"?t(i):t}function go(t){return t.split("-")[0]}function Pa(t){return t.split("-")[1]}function YE(t){return t==="x"?"y":"x"}function G4(t){return t==="y"?"height":"width"}function v1(t){return["top","bottom"].includes(go(t))?"y":"x"}function Y4(t){return YE(v1(t))}function KE(t,i,s){s===void 0&&(s=!1);const a=Pa(t),r=Y4(t),e=G4(r);let p=r==="x"?a===(s?"end":"start")?"right":"left":a==="start"?"bottom":"top";return i.reference[e]>i.floating[e]&&(p=Lg(p)),[p,Lg(p)]}function X7(t){const i=Lg(t);return[Ng(t),i,Ng(i)]}function Ng(t){return t.replace(/start|end/g,i=>Q7[i])}function J7(t,i,s){const a=["left","right"],r=["right","left"],e=["top","bottom"],p=["bottom","top"];switch(t){case"top":case"bottom":return s?i?r:a:i?a:r;case"left":case"right":return i?e:p;default:return[]}}function Z7(t,i,s,a){const r=Pa(t);let e=J7(go(t),s==="start",a);return r&&(e=e.map(p=>p+"-"+r),i&&(e=e.concat(e.map(Ng)))),e}function Lg(t){return t.replace(/left|right|bottom|top/g,i=>q7[i])}function e9(t){return{top:0,right:0,bottom:0,left:0,...t}}function qE(t){return typeof t!="number"?e9(t):{top:t,right:t,bottom:t,left:t}}function Ud(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function d3(t,i,s){let{reference:a,floating:r}=t;const e=v1(i),p=Y4(i),_=G4(p),D=go(i),F=e==="y",T=a.x+a.width/2-r.width/2,A=a.y+a.height/2-r.height/2,k=a[_]/2-r[_]/2;let I;switch(D){case"top":I={x:T,y:a.y-r.height};break;case"bottom":I={x:T,y:a.y+a.height};break;case"right":I={x:a.x+a.width,y:A};break;case"left":I={x:a.x-r.width,y:A};break;default:I={x:a.x,y:a.y}}switch(Pa(i)){case"start":I[p]-=k*(s&&F?-1:1);break;case"end":I[p]+=k*(s&&F?-1:1);break}return I}const t9=async(t,i,s)=>{const{placement:a="bottom",strategy:r="absolute",middleware:e=[],platform:p}=s,_=e.filter(Boolean),D=await(p.isRTL==null?void 0:p.isRTL(i));let F=await p.getElementRects({reference:t,floating:i,strategy:r}),{x:T,y:A}=d3(F,a,D),k=a,I={},N=0;for(let M=0;M<_.length;M++){const{name:V,fn:U}=_[M],{x:G,y:ne,data:z,reset:H}=await U({x:T,y:A,initialPlacement:a,placement:k,strategy:r,middlewareData:I,rects:F,platform:p,elements:{reference:t,floating:i}});if(T=G??T,A=ne??A,I={...I,[V]:{...I[V],...z}},H&&N<=50){N++,typeof H=="object"&&(H.placement&&(k=H.placement),H.rects&&(F=H.rects===!0?await p.getElementRects({reference:t,floating:i,strategy:r}):H.rects),{x:T,y:A}=d3(F,k,D)),M=-1;continue}}return{x:T,y:A,placement:k,strategy:r,middlewareData:I}};async function y2(t,i){var s;i===void 0&&(i={});const{x:a,y:r,platform:e,rects:p,elements:_,strategy:D}=t,{boundary:F="clippingAncestors",rootBoundary:T="viewport",elementContext:A="floating",altBoundary:k=!1,padding:I=0}=Ru(i,t),N=qE(I),V=_[k?A==="floating"?"reference":"floating":A],U=Ud(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:F,rootBoundary:T,strategy:D})),G=A==="floating"?{...p.floating,x:a,y:r}:p.reference,ne=await(e.getOffsetParent==null?void 0:e.getOffsetParent(_.floating)),z=await(e.isElement==null?void 0:e.isElement(ne))?await(e.getScale==null?void 0:e.getScale(ne))||{x:1,y:1}:{x:1,y:1},H=Ud(e.convertOffsetParentRelativeRectToViewportRelativeRect?await e.convertOffsetParentRelativeRectToViewportRelativeRect({rect:G,offsetParent:ne,strategy:D}):G);return{top:(U.top-H.top+N.top)/z.y,bottom:(H.bottom-U.bottom+N.bottom)/z.y,left:(U.left-H.left+N.left)/z.x,right:(H.right-U.right+N.right)/z.x}}const r9=t=>({name:"arrow",options:t,async fn(i){const{x:s,y:a,placement:r,rects:e,platform:p,elements:_}=i,{element:D,padding:F=0}=Ru(t,i)||{};if(D==null)return{};const T=qE(F),A={x:s,y:a},k=Y4(r),I=G4(k),N=await p.getDimensions(D),M=k==="y",V=M?"top":"left",U=M?"bottom":"right",G=M?"clientHeight":"clientWidth",ne=e.reference[I]+e.reference[k]-A[k]-e.floating[I],z=A[k]-e.reference[k],H=await(p.getOffsetParent==null?void 0:p.getOffsetParent(D));let Z=H?H[G]:0;(!Z||!await(p.isElement==null?void 0:p.isElement(H)))&&(Z=_.floating[G]||e.floating[I]);const ee=ne/2-z/2,re=Z/2-N[I]/2-1,te=n1(T[V],re),ae=n1(T[U],re),ve=te,Ae=Z-N[I]-ae,De=Z/2-N[I]/2+ee,ge=C_(ve,De,Ae),We=Pa(r)!=null&&De!=ge&&e.reference[I]/2-(De<ve?te:ae)-N[I]/2<0?De<ve?ve-De:Ae-De:0;return{[k]:A[k]-We,data:{[k]:ge,centerOffset:De-ge+We}}}});function n9(t,i,s){return(t?[...s.filter(r=>Pa(r)===t),...s.filter(r=>Pa(r)!==t)]:s.filter(r=>go(r)===r)).filter(r=>t?Pa(r)===t||(i?Ng(r)!==r:!1):!0)}const i9=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(i){var s,a,r;const{rects:e,middlewareData:p,placement:_,platform:D,elements:F}=i,{crossAxis:T=!1,alignment:A,allowedPlacements:k=h3,autoAlignment:I=!0,...N}=Ru(t,i),M=A!==void 0||k===h3?n9(A||null,I,k):k,V=await y2(i,N),U=((s=p.autoPlacement)==null?void 0:s.index)||0,G=M[U];if(G==null)return{};const ne=KE(G,e,await(D.isRTL==null?void 0:D.isRTL(F.floating)));if(_!==G)return{reset:{placement:M[0]}};const z=[V[go(G)],V[ne[0]],V[ne[1]]],H=[...((a=p.autoPlacement)==null?void 0:a.overflows)||[],{placement:G,overflows:z}],Z=M[U+1];if(Z)return{data:{index:U+1,overflows:H},reset:{placement:Z}};const ee=H.map(ae=>{const ve=Pa(ae.placement);return[ae.placement,ve&&T?ae.overflows.slice(0,2).reduce((Ae,De)=>Ae+De,0):ae.overflows[0],ae.overflows]}).sort((ae,ve)=>ae[1]-ve[1]),te=((r=ee.filter(ae=>ae[2].slice(0,Pa(ae[0])?2:3).every(ve=>ve<=0))[0])==null?void 0:r[0])||ee[0][0];return te!==_?{data:{index:U+1,overflows:H},reset:{placement:te}}:{}}}},s9=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(i){var s;const{placement:a,middlewareData:r,rects:e,initialPlacement:p,platform:_,elements:D}=i,{mainAxis:F=!0,crossAxis:T=!0,fallbackPlacements:A,fallbackStrategy:k="bestFit",fallbackAxisSideDirection:I="none",flipAlignment:N=!0,...M}=Ru(t,i),V=go(a),U=go(p)===p,G=await(_.isRTL==null?void 0:_.isRTL(D.floating)),ne=A||(U||!N?[Lg(p)]:X7(p));!A&&I!=="none"&&ne.push(...Z7(p,N,I,G));const z=[p,...ne],H=await y2(i,M),Z=[];let ee=((s=r.flip)==null?void 0:s.overflows)||[];if(F&&Z.push(H[V]),T){const ve=KE(a,e,G);Z.push(H[ve[0]],H[ve[1]])}if(ee=[...ee,{placement:a,overflows:Z}],!Z.every(ve=>ve<=0)){var re,te;const ve=(((re=r.flip)==null?void 0:re.index)||0)+1,Ae=z[ve];if(Ae)return{data:{index:ve,overflows:ee},reset:{placement:Ae}};let De=(te=ee.filter(ge=>ge.overflows[0]<=0).sort((ge,Ne)=>ge.overflows[1]-Ne.overflows[1])[0])==null?void 0:te.placement;if(!De)switch(k){case"bestFit":{var ae;const ge=(ae=ee.map(Ne=>[Ne.placement,Ne.overflows.filter(We=>We>0).reduce((We,Se)=>We+Se,0)]).sort((Ne,We)=>Ne[1]-We[1])[0])==null?void 0:ae[0];ge&&(De=ge);break}case"initialPlacement":De=p;break}if(a!==De)return{reset:{placement:De}}}return{}}}};async function a9(t,i){const{placement:s,platform:a,elements:r}=t,e=await(a.isRTL==null?void 0:a.isRTL(r.floating)),p=go(s),_=Pa(s),D=v1(s)==="y",F=["left","top"].includes(p)?-1:1,T=e&&D?-1:1,A=Ru(i,t);let{mainAxis:k,crossAxis:I,alignmentAxis:N}=typeof A=="number"?{mainAxis:A,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...A};return _&&typeof N=="number"&&(I=_==="end"?N*-1:N),D?{x:I*T,y:k*F}:{x:k*F,y:I*T}}const o9=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(i){const{x:s,y:a}=i,r=await a9(i,t);return{x:s+r.x,y:a+r.y,data:r}}}},l9=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(i){const{x:s,y:a,placement:r}=i,{mainAxis:e=!0,crossAxis:p=!1,limiter:_={fn:V=>{let{x:U,y:G}=V;return{x:U,y:G}}},...D}=Ru(t,i),F={x:s,y:a},T=await y2(i,D),A=v1(go(r)),k=YE(A);let I=F[k],N=F[A];if(e){const V=k==="y"?"top":"left",U=k==="y"?"bottom":"right",G=I+T[V],ne=I-T[U];I=C_(G,I,ne)}if(p){const V=A==="y"?"top":"left",U=A==="y"?"bottom":"right",G=N+T[V],ne=N-T[U];N=C_(G,N,ne)}const M=_.fn({...i,[k]:I,[A]:N});return{...M,data:{x:M.x-s,y:M.y-a}}}}},c9=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(i){const{placement:s,rects:a,platform:r,elements:e}=i,{apply:p=()=>{},..._}=Ru(t,i),D=await y2(i,_),F=go(s),T=Pa(s),A=v1(s)==="y",{width:k,height:I}=a.floating;let N,M;F==="top"||F==="bottom"?(N=F,M=T===(await(r.isRTL==null?void 0:r.isRTL(e.floating))?"start":"end")?"left":"right"):(M=F,N=T==="end"?"top":"bottom");const V=I-D[N],U=k-D[M],G=!i.middlewareData.shift;let ne=V,z=U;if(A){const Z=k-D.left-D.right;z=T||G?n1(U,Z):Z}else{const Z=I-D.top-D.bottom;ne=T||G?n1(V,Z):Z}if(G&&!T){const Z=cu(D.left,0),ee=cu(D.right,0),re=cu(D.top,0),te=cu(D.bottom,0);A?z=k-2*(Z!==0||ee!==0?Z+ee:cu(D.left,D.right)):ne=I-2*(re!==0||te!==0?re+te:cu(D.top,D.bottom))}await p({...i,availableWidth:z,availableHeight:ne});const H=await r.getDimensions(e.floating);return k!==H.width||I!==H.height?{reset:{rects:!0}}:{}}}};function ca(t){var i;return((i=t.ownerDocument)==null?void 0:i.defaultView)||window}function fo(t){return ca(t).getComputedStyle(t)}const p3=Math.min,Hd=Math.max,Mg=Math.round;function QE(t){const i=fo(t);let s=parseFloat(i.width),a=parseFloat(i.height);const r=t.offsetWidth,e=t.offsetHeight,p=Mg(s)!==r||Mg(a)!==e;return p&&(s=r,a=e),{width:s,height:a,fallback:p}}function nc(t){return JE(t)?(t.nodeName||"").toLowerCase():""}let tg;function XE(){if(tg)return tg;const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?(tg=t.brands.map(i=>i.brand+"/"+i.version).join(" "),tg):navigator.userAgent}function ho(t){return t instanceof ca(t).HTMLElement}function Kl(t){return t instanceof ca(t).Element}function JE(t){return t instanceof ca(t).Node}function m3(t){return typeof ShadowRoot>"u"?!1:t instanceof ca(t).ShadowRoot||t instanceof ShadowRoot}function D2(t){const{overflow:i,overflowX:s,overflowY:a,display:r}=fo(t);return/auto|scroll|overlay|hidden|clip/.test(i+a+s)&&!["inline","contents"].includes(r)}function u9(t){return["table","td","th"].includes(nc(t))}function T_(t){const i=/firefox/i.test(XE()),s=fo(t),a=s.backdropFilter||s.WebkitBackdropFilter;return s.transform!=="none"||s.perspective!=="none"||!!a&&a!=="none"||i&&s.willChange==="filter"||i&&!!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 ZE(){return!/^((?!chrome|android).)*safari/i.test(XE())}function K4(t){return["html","body","#document"].includes(nc(t))}function e6(t){return Kl(t)?t:t.contextElement}const t6={x:1,y:1};function i0(t){const i=e6(t);if(!ho(i))return t6;const s=i.getBoundingClientRect(),{width:a,height:r,fallback:e}=QE(i);let p=(e?Mg(s.width):s.width)/a,_=(e?Mg(s.height):s.height)/r;return p&&Number.isFinite(p)||(p=1),_&&Number.isFinite(_)||(_=1),{x:p,y:_}}function i1(t,i,s,a){var r,e;i===void 0&&(i=!1),s===void 0&&(s=!1);const p=t.getBoundingClientRect(),_=e6(t);let D=t6;i&&(a?Kl(a)&&(D=i0(a)):D=i0(t));const F=_?ca(_):window,T=!ZE()&&s;let A=(p.left+(T&&((r=F.visualViewport)==null?void 0:r.offsetLeft)||0))/D.x,k=(p.top+(T&&((e=F.visualViewport)==null?void 0:e.offsetTop)||0))/D.y,I=p.width/D.x,N=p.height/D.y;if(_){const M=ca(_),V=a&&Kl(a)?ca(a):a;let U=M.frameElement;for(;U&&a&&V!==M;){const G=i0(U),ne=U.getBoundingClientRect(),z=getComputedStyle(U);ne.x+=(U.clientLeft+parseFloat(z.paddingLeft))*G.x,ne.y+=(U.clientTop+parseFloat(z.paddingTop))*G.y,A*=G.x,k*=G.y,I*=G.x,N*=G.y,A+=ne.x,k+=ne.y,U=ca(U).frameElement}}return{width:I,height:N,top:k,right:A+I,bottom:k+N,left:A,x:A,y:k}}function ql(t){return((JE(t)?t.ownerDocument:t.document)||window.document).documentElement}function w2(t){return Kl(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function r6(t){return i1(ql(t)).left+w2(t).scrollLeft}function s1(t){if(nc(t)==="html")return t;const i=t.assignedSlot||t.parentNode||m3(t)&&t.host||ql(t);return m3(i)?i.host:i}function n6(t){const i=s1(t);return K4(i)?i.ownerDocument.body:ho(i)&&D2(i)?i:n6(i)}function Bg(t,i){var s;i===void 0&&(i=[]);const a=n6(t),r=a===((s=t.ownerDocument)==null?void 0:s.body),e=ca(a);return r?i.concat(e,e.visualViewport||[],D2(a)?a:[]):i.concat(a,Bg(a))}function g3(t,i,s){return i==="viewport"?Ud(function(a,r){const e=ca(a),p=ql(a),_=e.visualViewport;let D=p.clientWidth,F=p.clientHeight,T=0,A=0;if(_){D=_.width,F=_.height;const k=ZE();(k||!k&&r==="fixed")&&(T=_.offsetLeft,A=_.offsetTop)}return{width:D,height:F,x:T,y:A}}(t,s)):Kl(i)?Ud(function(a,r){const e=i1(a,!0,r==="fixed"),p=e.top+a.clientTop,_=e.left+a.clientLeft,D=ho(a)?i0(a):{x:1,y:1};return{width:a.clientWidth*D.x,height:a.clientHeight*D.y,x:_*D.x,y:p*D.y}}(i,s)):Ud(function(a){const r=ql(a),e=w2(a),p=a.ownerDocument.body,_=Hd(r.scrollWidth,r.clientWidth,p.scrollWidth,p.clientWidth),D=Hd(r.scrollHeight,r.clientHeight,p.scrollHeight,p.clientHeight);let F=-e.scrollLeft+r6(a);const T=-e.scrollTop;return fo(p).direction==="rtl"&&(F+=Hd(r.clientWidth,p.clientWidth)-_),{width:_,height:D,x:F,y:T}}(ql(t)))}function v3(t){return ho(t)&&fo(t).position!=="fixed"?t.offsetParent:null}function b3(t){const i=ca(t);let s=v3(t);for(;s&&u9(s)&&fo(s).position==="static";)s=v3(s);return s&&(nc(s)==="html"||nc(s)==="body"&&fo(s).position==="static"&&!T_(s))?i:s||function(a){let r=s1(a);for(;ho(r)&&!K4(r);){if(T_(r))return r;r=s1(r)}return null}(t)||i}function f9(t,i,s){const a=ho(i),r=ql(i),e=i1(t,!0,s==="fixed",i);let p={scrollLeft:0,scrollTop:0};const _={x:0,y:0};if(a||!a&&s!=="fixed")if((nc(i)!=="body"||D2(r))&&(p=w2(i)),ho(i)){const D=i1(i,!0);_.x=D.x+i.clientLeft,_.y=D.y+i.clientTop}else r&&(_.x=r6(r));return{x:e.left+p.scrollLeft-_.x,y:e.top+p.scrollTop-_.y,width:e.width,height:e.height}}const h9={getClippingRect:function(t){let{element:i,boundary:s,rootBoundary:a,strategy:r}=t;const e=s==="clippingAncestors"?function(F,T){const A=T.get(F);if(A)return A;let k=Bg(F).filter(V=>Kl(V)&&nc(V)!=="body"),I=null;const N=fo(F).position==="fixed";let M=N?s1(F):F;for(;Kl(M)&&!K4(M);){const V=fo(M),U=T_(M);(N?U||I:U||V.position!=="static"||!I||!["absolute","fixed"].includes(I.position))?I=V:k=k.filter(G=>G!==M),M=s1(M)}return T.set(F,k),k}(i,this._c):[].concat(s),p=[...e,a],_=p[0],D=p.reduce((F,T)=>{const A=g3(i,T,r);return F.top=Hd(A.top,F.top),F.right=p3(A.right,F.right),F.bottom=p3(A.bottom,F.bottom),F.left=Hd(A.left,F.left),F},g3(i,_,r));return{width:D.right-D.left,height:D.bottom-D.top,x:D.left,y:D.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:i,offsetParent:s,strategy:a}=t;const r=ho(s),e=ql(s);if(s===e)return i;let p={scrollLeft:0,scrollTop:0},_={x:1,y:1};const D={x:0,y:0};if((r||!r&&a!=="fixed")&&((nc(s)!=="body"||D2(e))&&(p=w2(s)),ho(s))){const F=i1(s);_=i0(s),D.x=F.x+s.clientLeft,D.y=F.y+s.clientTop}return{width:i.width*_.x,height:i.height*_.y,x:i.x*_.x-p.scrollLeft*_.x+D.x,y:i.y*_.y-p.scrollTop*_.y+D.y}},isElement:Kl,getDimensions:function(t){return ho(t)?QE(t):t.getBoundingClientRect()},getOffsetParent:b3,getDocumentElement:ql,getScale:i0,async getElementRects(t){let{reference:i,floating:s,strategy:a}=t;const r=this.getOffsetParent||b3,e=this.getDimensions;return{reference:f9(i,await r(s),a),floating:{x:0,y:0,...await e(s)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>fo(t).direction==="rtl"},d9=(t,i,s)=>{const a=new Map,r={platform:h9,...s},e={...r.platform,_c:a};return t9(t,i,{...r,platform:e})};function i6(t,i){for(const s in i)Object.prototype.hasOwnProperty.call(i,s)&&(typeof i[s]=="object"&&t[s]?i6(t[s],i[s]):t[s]=i[s])}const Jo={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 a1(t,i){let s=Jo.themes[t]||{},a;do a=s[i],typeof a>"u"?s.$extend?s=Jo.themes[s.$extend]||{}:(s=null,a=Jo[i]):s=null;while(s);return a}function p9(t){const i=[t];let s=Jo.themes[t]||{};do s.$extend&&!s.$resetCss?(i.push(s.$extend),s=Jo.themes[s.$extend]||{}):s=null;while(s);return i.map(a=>`v-popper--theme-${a}`)}function _3(t){const i=[t];let s=Jo.themes[t]||{};do s.$extend?(i.push(s.$extend),s=Jo.themes[s.$extend]||{}):s=null;while(s);return i}let Cu=!1;if(typeof window<"u"){Cu=!1;try{const t=Object.defineProperty({},"passive",{get(){Cu=!0}});window.addEventListener("test",null,t)}catch{}}let s6=!1;typeof window<"u"&&typeof navigator<"u"&&(s6=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const a6=["auto","top","bottom","left","right"].reduce((t,i)=>t.concat([i,`${i}-start`,`${i}-end`]),[]),y3={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},D3={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function w3(t,i){const s=t.indexOf(i);s!==-1&&t.splice(s,1)}function Ib(){return new Promise(t=>requestAnimationFrame(()=>{requestAnimationFrame(t)}))}const Sa=[];let ou=null;const F3={};function E3(t){let i=F3[t];return i||(i=F3[t]=[]),i}let A_=function(){};typeof window<"u"&&(A_=window.Element);function Yr(t){return function(i){return a1(i.theme,t)}}const Nb="__floating-vue__popper",o6=()=>mi({name:"VPopper",provide(){return{[Nb]:{parentPopper:this}}},inject:{[Nb]:{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:Yr("disabled")},positioningDisabled:{type:Boolean,default:Yr("positioningDisabled")},placement:{type:String,default:Yr("placement"),validator:t=>a6.includes(t)},delay:{type:[String,Number,Object],default:Yr("delay")},distance:{type:[Number,String],default:Yr("distance")},skidding:{type:[Number,String],default:Yr("skidding")},triggers:{type:Array,default:Yr("triggers")},showTriggers:{type:[Array,Function],default:Yr("showTriggers")},hideTriggers:{type:[Array,Function],default:Yr("hideTriggers")},popperTriggers:{type:Array,default:Yr("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:Yr("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:Yr("popperHideTriggers")},container:{type:[String,Object,A_,Boolean],default:Yr("container")},boundary:{type:[String,A_],default:Yr("boundary")},strategy:{type:String,validator:t=>["absolute","fixed"].includes(t),default:Yr("strategy")},autoHide:{type:[Boolean,Function],default:Yr("autoHide")},handleResize:{type:Boolean,default:Yr("handleResize")},instantMove:{type:Boolean,default:Yr("instantMove")},eagerMount:{type:Boolean,default:Yr("eagerMount")},popperClass:{type:[String,Array,Object],default:Yr("popperClass")},computeTransformOrigin:{type:Boolean,default:Yr("computeTransformOrigin")},autoMinSize:{type:Boolean,default:Yr("autoMinSize")},autoSize:{type:[Boolean,String],default:Yr("autoSize")},autoMaxSize:{type:Boolean,default:Yr("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:Yr("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:Yr("preventOverflow")},overflowPadding:{type:[Number,String],default:Yr("overflowPadding")},arrowPadding:{type:[Number,String],default:Yr("arrowPadding")},arrowOverflow:{type:Boolean,default:Yr("arrowOverflow")},flip:{type:Boolean,default:Yr("flip")},shift:{type:Boolean,default:Yr("shift")},shiftCrossAxis:{type:Boolean,default:Yr("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:Yr("noAutoFocus")},disposeTimeout:{type:Number,default:Yr("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[Nb])==null?void 0:t.parentPopper},hasPopperShowTriggerHover(){var t,i;return((t=this.popperTriggers)==null?void 0:t.includes("hover"))||((i=this.popperShowTriggers)==null?void 0:i.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,i)=>(t[i]="$_refreshListeners",t),{}),...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((t,i)=>(t[i]="$_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:i=!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,i),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:t=null,skipDelay:i=!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:i}),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,i),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(i=>i.nodeType===i.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(o9({mainAxis:this.distance,crossAxis:this.skidding}));const i=this.placement.startsWith("auto");if(i?t.middleware.push(i9({alignment:this.placement.split("-")[1]??""})):t.placement=this.placement,this.preventOverflow&&(this.shift&&t.middleware.push(l9({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!i&&this.flip&&t.middleware.push(s9({padding:this.overflowPadding,boundary:this.boundary}))),t.middleware.push(r9({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&t.middleware.push({name:"arrowOverflow",fn:({placement:a,rects:r,middlewareData:e})=>{let p;const{centerOffset:_}=e.arrow;return a.startsWith("top")||a.startsWith("bottom")?p=Math.abs(_)>r.reference.width/2:p=Math.abs(_)>r.reference.height/2,{data:{overflow:p}}}}),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:p})=>{var _;if((_=p.autoSize)!=null&&_.skip)return{};let D,F;return e.startsWith("top")||e.startsWith("bottom")?D=r.reference.width:F=r.reference.height,this.$_innerNode.style[a==="min"?"minWidth":a==="max"?"maxWidth":"width"]=D!=null?`${D}px`:null,this.$_innerNode.style[a==="min"?"minHeight":a==="max"?"maxHeight":"height"]=F!=null?`${F}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(c9({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 d9(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,i=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),ou&&this.instantMove&&ou.instantMove&&ou!==this.parentPopper){ou.$_applyHide(!0),this.$_applyShow(!0);return}i?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(t=null,i=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(ou=this),i?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(t){const i=this.delay;return parseInt(i&&i[t]||i||0)},async $_applyShow(t=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=t,!this.isShown&&(this.$_ensureTeleport(),await Ib(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Bg(this.$_referenceNode),...Bg(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const i=this.$_referenceNode.getBoundingClientRect(),s=this.$_popperNode.querySelector(".v-popper__wrapper"),a=s.parentNode.getBoundingClientRect(),r=i.x+i.width/2-(a.left+s.offsetLeft),e=i.y+i.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 i;for(let s=0;s<Sa.length;s++)i=Sa[s],i.showGroup!==t&&(i.hide(),i.$emit("close-group"))}Sa.push(this),document.body.classList.add("v-popper--some-open");for(const i of _3(this.theme))E3(i).push(this),document.body.classList.add(`v-popper--some-open--${i}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await Ib(),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,w3(Sa,this),Sa.length===0&&document.body.classList.remove("v-popper--some-open");for(const s of _3(this.theme)){const a=E3(s);w3(a,this),a.length===0&&document.body.classList.remove(`v-popper--some-open--${s}`)}ou===this&&(ou=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const i=this.disposeTimeout;i!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},i)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Ib(),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,y3,this.triggers,this.showTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],y3,this.popperTriggers,this.popperShowTriggers,t);const i=s=>{s.usedByTooltip||this.hide({event:s})};this.$_registerTriggerListeners(this.$_targetNodes,D3,this.triggers,this.hideTriggers,i),this.$_registerTriggerListeners([this.$_popperNode],D3,this.popperTriggers,this.popperHideTriggers,i)},$_registerEventListeners(t,i,s){this.$_events.push({targetNodes:t,eventType:i,handler:s}),t.forEach(a=>a.addEventListener(i,s,Cu?{passive:!0}:void 0))},$_registerTriggerListeners(t,i,s,a,r){let e=s;a!=null&&(e=typeof a=="function"?a(e):a),e.forEach(p=>{const _=i[p];_&&this.$_registerEventListeners(t,_,r)})},$_removeEventListeners(t){const i=[];this.$_events.forEach(s=>{const{targetNodes:a,eventType:r,handler:e}=s;!t||t===r?a.forEach(p=>p.removeEventListener(r,e)):i.push(s)}),this.$_events=i},$_refreshListeners(){this.$_isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(t,i=!1){this.$_showFrameLocked||(this.hide({event:t}),t.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),i&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(t,i){for(const s of this.$_targetNodes){const a=s.getAttribute(t);a&&(s.removeAttribute(t),s.setAttribute(i,a))}},$_applyAttrsToTarget(t){for(const i of this.$_targetNodes)for(const s in t){const a=t[s];a==null?i.removeAttribute(s):i.setAttribute(s,a)}},$_updateParentShownChildren(t){let i=this.parentPopper;for(;i;)t?i.shownChildren.add(this.randomId):(i.shownChildren.delete(this.randomId),i.$_pendingHide&&i.hide()),i=i.parentPopper},$_isAimingPopper(){const t=this.$_referenceNode.getBoundingClientRect();if($d>=t.left&&$d<=t.right&&Wd>=t.top&&Wd<=t.bottom){const i=this.$_popperNode.getBoundingClientRect(),s=$d-Ml,a=Wd-Bl,r=i.left+i.width/2-Ml+(i.top+i.height/2)-Bl+i.width+i.height,e=Ml+s*r,p=Bl+a*r;return rg(Ml,Bl,e,p,i.left,i.top,i.left,i.bottom)||rg(Ml,Bl,e,p,i.left,i.top,i.right,i.top)||rg(Ml,Bl,e,p,i.right,i.top,i.right,i.bottom)||rg(Ml,Bl,e,p,i.left,i.bottom,i.right,i.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});typeof document<"u"&&typeof window<"u"&&(s6?(document.addEventListener("touchstart",x3,Cu?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",g9,Cu?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",x3,!0),window.addEventListener("click",m9,!0)),window.addEventListener("resize",_9));function x3(t){for(let i=0;i<Sa.length;i++){const s=Sa[i];try{const a=s.popperNode();s.$_mouseDownContains=a.contains(t.target)}catch{}}}function m9(t){l6(t)}function g9(t){l6(t,!0)}function l6(t,i=!1){const s={};for(let a=Sa.length-1;a>=0;a--){const r=Sa[a];try{const e=r.$_containsGlobalTarget=v9(r,t);r.$_pendingHide=!1,requestAnimationFrame(()=>{if(r.$_pendingHide=!1,!s[r.randomId]&&C3(r,e,t)){if(r.$_handleGlobalClose(t,i),!t.closeAllPopover&&t.closePopover&&e){let _=r.parentPopper;for(;_;)s[_.randomId]=!0,_=_.parentPopper;return}let p=r.parentPopper;for(;p&&C3(p,p.$_containsGlobalTarget,t);)p.$_handleGlobalClose(t,i),p=p.parentPopper}})}catch{}}}function v9(t,i){const s=t.popperNode();return t.$_mouseDownContains||s.contains(i.target)}function C3(t,i,s){return s.closeAllPopover||s.closePopover&&i||b9(t,s)&&!i}function b9(t,i){if(typeof t.autoHide=="function"){const s=t.autoHide(i);return t.lastAutoHide=s,s}return t.autoHide}function _9(t){for(let i=0;i<Sa.length;i++)Sa[i].$_computePosition(t)}let Ml=0,Bl=0,$d=0,Wd=0;typeof window<"u"&&window.addEventListener("mousemove",t=>{Ml=$d,Bl=Wd,$d=t.clientX,Wd=t.clientY},Cu?{passive:!0}:void 0);function rg(t,i,s,a,r,e,p,_){const D=((p-r)*(i-e)-(_-e)*(t-r))/((_-e)*(s-t)-(p-r)*(a-i)),F=((s-t)*(i-e)-(a-i)*(t-r))/((_-e)*(s-t)-(p-r)*(a-i));return D>=0&&D<=1&&F>=0&&F<=1}const y9={extends:o6()},F2=(t,i)=>{const s=t.__vccOpts||t;for(const[a,r]of i)s[a]=r;return s};function D9(t,i,s,a,r,e){return Lr(),fn("div",{ref:"reference",class:ns(["v-popper",{"v-popper--shown":t.slotData.isShown}])},[Fu(t.$slots,"default",cw(p4(t.slotData)))],2)}const w9=F2(y9,[["render",D9]]);function F9(){var t=window.navigator.userAgent,i=t.indexOf("MSIE ");if(i>0)return parseInt(t.substring(i+5,t.indexOf(".",i)),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 cg;function S_(){S_.init||(S_.init=!0,cg=F9()!==-1)}var E2={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){S_(),vo(()=>{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",cg&&this.$el.appendChild(t),t.data="about:blank",cg||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&&(!cg&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const E9=Iw();s2("data-v-b329ee4c");const x9={class:"resize-observer",tabindex:"-1"};a2();const C9=E9((t,i,s,a,r,e)=>(Lr(),rl("div",x9)));E2.render=C9;E2.__scopeId="data-v-b329ee4c";E2.__file="src/components/ResizeObserver.vue";const c6=(t="theme")=>({computed:{themeClass(){return p9(this[t])}}}),T9=mi({name:"VPopperContent",components:{ResizeObserver:E2},mixins:[c6()],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}}}),A9=["id","aria-hidden","tabindex","data-popper-placement"],S9={ref:"inner",class:"v-popper__inner"},O9=Tt("div",{class:"v-popper__arrow-outer"},null,-1),k9=Tt("div",{class:"v-popper__arrow-inner"},null,-1),R9=[O9,k9];function P9(t,i,s,a,r,e){const p=Ia("ResizeObserver");return Lr(),fn("div",{id:t.popperId,ref:"popover",class:ns(["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:Ra(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:i[2]||(i[2]=IF(_=>t.autoHide&&t.$emit("hide"),["esc"]))},[Tt("div",{class:"v-popper__backdrop",onClick:i[0]||(i[0]=_=>t.autoHide&&t.$emit("hide"))}),Tt("div",{class:"v-popper__wrapper",style:Ra(t.result?{transformOrigin:t.result.transformOrigin}:void 0)},[Tt("div",S9,[t.mounted?(Lr(),fn(Gn,{key:0},[Tt("div",null,[Fu(t.$slots,"default")]),t.handleResize?(Lr(),rl(p,{key:0,onNotify:i[1]||(i[1]=_=>t.$emit("resize",_))})):Hs("",!0)],64)):Hs("",!0)],512),Tt("div",{ref:"arrow",class:"v-popper__arrow-container",style:Ra(t.result?{left:t.toPx(t.result.arrow.x),top:t.toPx(t.result.arrow.y)}:void 0)},R9,4)],4)],46,A9)}const u6=F2(T9,[["render",P9]]),f6={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)}}},I9=mi({name:"VPopperWrapper",components:{Popper:w9,PopperContent:u6},mixins:[f6,c6("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 N9(t,i,s,a,r,e){const p=Ia("PopperContent"),_=Ia("Popper");return Lr(),rl(_,{ref:"popper",theme:t.finalTheme,"target-nodes":t.getTargetNodes,"popper-node":()=>t.$refs.popperContent.$el,class:ns([t.themeClass])},{default:Ei(({popperId:D,isShown:F,shouldMountContent:T,skipTransition:A,autoHide:k,show:I,hide:N,handleResize:M,onResize:V,classes:U,result:G})=>[Fu(t.$slots,"default",{shown:F,show:I,hide:N}),Er(p,{ref:"popperContent","popper-id":D,theme:t.finalTheme,shown:F,mounted:T,"skip-transition":A,"auto-hide":k,"handle-resize":M,classes:U,result:G,onHide:N,onResize:V},{default:Ei(()=>[Fu(t.$slots,"popper",{shown:F,hide:N})]),_: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 q4=F2(I9,[["render",N9]]),L9={...q4,name:"VDropdown",vPopperTheme:"dropdown"},M9={...q4,name:"VMenu",vPopperTheme:"menu"},B9={...q4,name:"VTooltip",vPopperTheme:"tooltip"},U9=mi({name:"VTooltipDirective",components:{Popper:o6(),PopperContent:u6},mixins:[f6],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:t=>a1(t.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:t=>a1(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 i=++this.$_fetchId,s=this.content(this);s.then?s.then(a=>this.onResult(i,a)):this.onResult(i,s)}},onResult(t,i){t===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=i)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),H9=["innerHTML"],$9=["textContent"];function W9(t,i,s,a,r,e){const p=Ia("PopperContent"),_=Ia("Popper");return Lr(),rl(_,f2({ref:"popper"},t.$attrs,{theme:t.theme,"target-nodes":t.targetNodes,"popper-node":()=>t.$refs.popperContent.$el,onApplyShow:t.onShow,onApplyHide:t.onHide}),{default:Ei(({popperId:D,isShown:F,shouldMountContent:T,skipTransition:A,autoHide:k,hide:I,handleResize:N,onResize:M,classes:V,result:U})=>[Er(p,{ref:"popperContent",class:ns({"v-popper--tooltip-loading":t.loading}),"popper-id":D,theme:t.theme,shown:F,mounted:T,"skip-transition":A,"auto-hide":k,"handle-resize":N,classes:V,result:U,onHide:I,onResize:M},{default:Ei(()=>[t.html?(Lr(),fn("div",{key:0,innerHTML:t.finalContent},null,8,H9)):(Lr(),fn("div",{key:1,textContent:ai(t.finalContent)},null,8,$9))]),_: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 z9=F2(U9,[["render",W9]]),h6="v-popper--has-tooltip";function j9(t,i){let s=t.placement;if(!s&&i)for(const a of a6)i[a]&&(s=a);return s||(s=a1(t.theme||"tooltip","placement")),s}function d6(t,i,s){let a;const r=typeof i;return r==="string"?a={content:i}:i&&r==="object"?a=i:a={content:!1},a.placement=j9(a,s),a.targetNodes=()=>[t],a.referenceNode=()=>t,a}let Lb,o1,V9=0;function G9(){if(Lb)return;o1=Yt([]),Lb=D4({name:"VTooltipDirectiveApp",setup(){return{directives:o1}},render(){return this.directives.map(i=>Ou(z9,{...i.options,shown:i.shown||i.options.shown,key:i.id}))},devtools:{hide:!0}});const t=document.createElement("div");document.body.appendChild(t),Lb.mount(t)}function Y9(t,i,s){G9();const a=Yt(d6(t,i,s)),r=Yt(!1),e={id:V9++,options:a,shown:r};return o1.value.push(e),t.classList&&t.classList.add(h6),t.$_popper={options:a,item:e,show(){r.value=!0},hide(){r.value=!1}}}function p6(t){if(t.$_popper){const i=o1.value.indexOf(t.$_popper.item);i!==-1&&o1.value.splice(i,1),delete t.$_popper,delete t.$_popperOldShown,delete t.$_popperMountTarget}t.classList&&t.classList.remove(h6)}function T3(t,{value:i,modifiers:s}){const a=d6(t,i,s);if(!a.content||a1(a.theme||"tooltip","disabled"))p6(t);else{let r;t.$_popper?(r=t.$_popper,r.options.value=a):r=Y9(t,i,s),typeof i.shown<"u"&&i.shown!==t.$_popperOldShown&&(t.$_popperOldShown=i.shown,i.shown?r.show():r.hide())}}const K9={beforeMount:T3,updated:T3,beforeUnmount(t){p6(t)}};function A3(t){t.addEventListener("click",m6),t.addEventListener("touchstart",g6,Cu?{passive:!0}:!1)}function S3(t){t.removeEventListener("click",m6),t.removeEventListener("touchstart",g6),t.removeEventListener("touchend",v6),t.removeEventListener("touchcancel",b6)}function m6(t){const i=t.currentTarget;t.closePopover=!i.$_vclosepopover_touch,t.closeAllPopover=i.$_closePopoverModifiers&&!!i.$_closePopoverModifiers.all}function g6(t){if(t.changedTouches.length===1){const i=t.currentTarget;i.$_vclosepopover_touch=!0;const s=t.changedTouches[0];i.$_vclosepopover_touchPoint=s,i.addEventListener("touchend",v6),i.addEventListener("touchcancel",b6)}}function v6(t){const i=t.currentTarget;if(i.$_vclosepopover_touch=!1,t.changedTouches.length===1){const s=t.changedTouches[0],a=i.$_vclosepopover_touchPoint;t.closePopover=Math.abs(s.screenY-a.screenY)<20&&Math.abs(s.screenX-a.screenX)<20,t.closeAllPopover=i.$_closePopoverModifiers&&!!i.$_closePopoverModifiers.all}}function b6(t){const i=t.currentTarget;i.$_vclosepopover_touch=!1}const q9={beforeMount(t,{value:i,modifiers:s}){t.$_closePopoverModifiers=s,(typeof i>"u"||i)&&A3(t)},updated(t,{value:i,oldValue:s,modifiers:a}){t.$_closePopoverModifiers=a,i!==s&&(typeof i>"u"||i?A3(t):S3(t))},beforeUnmount(t){S3(t)}};function Q9(t,i={}){t.$_vTooltipInstalled||(t.$_vTooltipInstalled=!0,i6(Jo,i),t.directive("tooltip",K9),t.directive("close-popper",q9),t.component("VTooltip",B9),t.component("VDropdown",L9),t.component("VMenu",M9))}const X9={version:"2.0.0-beta.24",install:Q9,options:Jo};class x2{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(i){const s={listener:i};return this.listeners.add(s),this.onSubscribe(),()=>{this.listeners.delete(s),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const C2=typeof window>"u"||"Deno"in window;function Ca(){}function J9(t,i){return typeof t=="function"?t(i):t}function Z9(t){return typeof t=="number"&&t>=0&&t!==1/0}function eR(t,i){return Math.max(t+(i||0)-Date.now(),0)}function ng(t,i,s){return T2(t)?typeof i=="function"?{...s,queryKey:t,queryFn:i}:{...i,queryKey:t}:t}function Vl(t,i,s){return T2(t)?[{...i,queryKey:t},s]:[t||{},i]}function O3(t,i){const{type:s="all",exact:a,fetchStatus:r,predicate:e,queryKey:p,stale:_}=t;if(T2(p)){if(a){if(i.queryHash!==Q4(p,i.options))return!1}else if(!Ug(i.queryKey,p))return!1}if(s!=="all"){const D=i.isActive();if(s==="active"&&!D||s==="inactive"&&D)return!1}return!(typeof _=="boolean"&&i.isStale()!==_||typeof r<"u"&&r!==i.state.fetchStatus||e&&!e(i))}function k3(t,i){const{exact:s,fetching:a,predicate:r,mutationKey:e}=t;if(T2(e)){if(!i.options.mutationKey)return!1;if(s){if(mu(i.options.mutationKey)!==mu(e))return!1}else if(!Ug(i.options.mutationKey,e))return!1}return!(typeof a=="boolean"&&i.state.status==="loading"!==a||r&&!r(i))}function Q4(t,i){return((i==null?void 0:i.queryKeyHashFn)||mu)(t)}function mu(t){return JSON.stringify(t,(i,s)=>O_(s)?Object.keys(s).sort().reduce((a,r)=>(a[r]=s[r],a),{}):s)}function Ug(t,i){return _6(t,i)}function _6(t,i){return t===i?!0:typeof t!=typeof i?!1:t&&i&&typeof t=="object"&&typeof i=="object"?!Object.keys(i).some(s=>!_6(t[s],i[s])):!1}function y6(t,i){if(t===i)return t;const s=R3(t)&&R3(i);if(s||O_(t)&&O_(i)){const a=s?t.length:Object.keys(t).length,r=s?i:Object.keys(i),e=r.length,p=s?[]:{};let _=0;for(let D=0;D<e;D++){const F=s?D:r[D];p[F]=y6(t[F],i[F]),p[F]===t[F]&&_++}return a===e&&_===a?t:p}return i}function LI(t,i){if(t&&!i||i&&!t)return!1;for(const s in t)if(t[s]!==i[s])return!1;return!0}function R3(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function O_(t){if(!P3(t))return!1;const i=t.constructor;if(typeof i>"u")return!0;const s=i.prototype;return!(!P3(s)||!s.hasOwnProperty("isPrototypeOf"))}function P3(t){return Object.prototype.toString.call(t)==="[object Object]"}function T2(t){return Array.isArray(t)}function D6(t){return new Promise(i=>{setTimeout(i,t)})}function I3(t){D6(0).then(t)}function tR(){if(typeof AbortController=="function")return new AbortController}function rR(t,i,s){return s.isDataEqual!=null&&s.isDataEqual(t,i)?t:typeof s.structuralSharing=="function"?s.structuralSharing(t,i):s.structuralSharing!==!1?y6(t,i):i}class nR extends x2{constructor(){super(),this.setup=i=>{if(!C2&&window.addEventListener){const s=()=>i();return window.addEventListener("visibilitychange",s,!1),window.addEventListener("focus",s,!1),()=>{window.removeEventListener("visibilitychange",s),window.removeEventListener("focus",s)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var i;(i=this.cleanup)==null||i.call(this),this.cleanup=void 0}}setEventListener(i){var s;this.setup=i,(s=this.cleanup)==null||s.call(this),this.cleanup=i(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()})}setFocused(i){this.focused!==i&&(this.focused=i,this.onFocus())}onFocus(){this.listeners.forEach(({listener:i})=>{i()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const k_=new nR,N3=["online","offline"];class iR extends x2{constructor(){super(),this.setup=i=>{if(!C2&&window.addEventListener){const s=()=>i();return N3.forEach(a=>{window.addEventListener(a,s,!1)}),()=>{N3.forEach(a=>{window.removeEventListener(a,s)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var i;(i=this.cleanup)==null||i.call(this),this.cleanup=void 0}}setEventListener(i){var s;this.setup=i,(s=this.cleanup)==null||s.call(this),this.cleanup=i(a=>{typeof a=="boolean"?this.setOnline(a):this.onOnline()})}setOnline(i){this.online!==i&&(this.online=i,this.onOnline())}onOnline(){this.listeners.forEach(({listener:i})=>{i()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const Hg=new iR;function sR(t){return Math.min(1e3*2**t,3e4)}function X4(t){return(t??"online")==="online"?Hg.isOnline():!0}class w6{constructor(i){this.revert=i==null?void 0:i.revert,this.silent=i==null?void 0:i.silent}}function Mb(t){return t instanceof w6}function F6(t){let i=!1,s=0,a=!1,r,e,p;const _=new Promise((V,U)=>{e=V,p=U}),D=V=>{a||(I(new w6(V)),t.abort==null||t.abort())},F=()=>{i=!0},T=()=>{i=!1},A=()=>!k_.isFocused()||t.networkMode!=="always"&&!Hg.isOnline(),k=V=>{a||(a=!0,t.onSuccess==null||t.onSuccess(V),r==null||r(),e(V))},I=V=>{a||(a=!0,t.onError==null||t.onError(V),r==null||r(),p(V))},N=()=>new Promise(V=>{r=U=>{const G=a||!A();return G&&V(U),G},t.onPause==null||t.onPause()}).then(()=>{r=void 0,a||t.onContinue==null||t.onContinue()}),M=()=>{if(a)return;let V;try{V=t.fn()}catch(U){V=Promise.reject(U)}Promise.resolve(V).then(k).catch(U=>{var G,ne;if(a)return;const z=(G=t.retry)!=null?G:3,H=(ne=t.retryDelay)!=null?ne:sR,Z=typeof H=="function"?H(s,U):H,ee=z===!0||typeof z=="number"&&s<z||typeof z=="function"&&z(s,U);if(i||!ee){I(U);return}s++,t.onFail==null||t.onFail(s,U),D6(Z).then(()=>{if(A())return N()}).then(()=>{i?I(U):M()})})};return X4(t.networkMode)?M():N().then(M),{promise:_,cancel:D,continue:()=>(r==null?void 0:r())?_:Promise.resolve(),cancelRetry:F,continueRetry:T}}const J4=console;function aR(){let t=[],i=0,s=T=>{T()},a=T=>{T()};const r=T=>{let A;i++;try{A=T()}finally{i--,i||_()}return A},e=T=>{i?t.push(T):I3(()=>{s(T)})},p=T=>(...A)=>{e(()=>{T(...A)})},_=()=>{const T=t;t=[],T.length&&I3(()=>{a(()=>{T.forEach(A=>{s(A)})})})};return{batch:r,batchCalls:p,schedule:e,setNotifyFunction:T=>{s=T},setBatchNotifyFunction:T=>{a=T}}}const ts=aR();class E6{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Z9(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(i){this.cacheTime=Math.max(this.cacheTime||0,i??(C2?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class oR extends E6{constructor(i){super(),this.abortSignalConsumed=!1,this.defaultOptions=i.defaultOptions,this.setOptions(i.options),this.observers=[],this.cache=i.cache,this.logger=i.logger||J4,this.queryKey=i.queryKey,this.queryHash=i.queryHash,this.initialState=i.state||lR(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(i){this.options={...this.defaultOptions,...i},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(i,s){const a=rR(this.state.data,i,this.options);return this.dispatch({data:a,type:"success",dataUpdatedAt:s==null?void 0:s.updatedAt,manual:s==null?void 0:s.manual}),a}setState(i,s){this.dispatch({type:"setState",state:i,setStateOptions:s})}cancel(i){var s;const a=this.promise;return(s=this.retryer)==null||s.cancel(i),a?a.then(Ca).catch(Ca):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(i=>i.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(i=>i.getCurrentResult().isStale)}isStaleByTime(i=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!eR(this.state.dataUpdatedAt,i)}onFocus(){var i;const s=this.observers.find(a=>a.shouldFetchOnWindowFocus());s&&s.refetch({cancelRefetch:!1}),(i=this.retryer)==null||i.continue()}onOnline(){var i;const s=this.observers.find(a=>a.shouldFetchOnReconnect());s&&s.refetch({cancelRefetch:!1}),(i=this.retryer)==null||i.continue()}addObserver(i){this.observers.includes(i)||(this.observers.push(i),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:i}))}removeObserver(i){this.observers.includes(i)&&(this.observers=this.observers.filter(s=>s!==i),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:i}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(i,s){var a,r;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&s!=null&&s.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var e;return(e=this.retryer)==null||e.continueRetry(),this.promise}}if(i&&this.setOptions(i),!this.options.queryFn){const I=this.observers.find(N=>N.options.queryFn);I&&this.setOptions(I.options)}Array.isArray(this.options.queryKey);const p=tR(),_={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},D=I=>{Object.defineProperty(I,"signal",{enumerable:!0,get:()=>{if(p)return this.abortSignalConsumed=!0,p.signal}})};D(_);const F=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(_)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),T={fetchOptions:s,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:F};if(D(T),(a=this.options.behavior)==null||a.onFetch(T),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((r=T.fetchOptions)==null?void 0:r.meta)){var A;this.dispatch({type:"fetch",meta:(A=T.fetchOptions)==null?void 0:A.meta})}const k=I=>{if(Mb(I)&&I.silent||this.dispatch({type:"error",error:I}),!Mb(I)){var N,M,V,U;(N=(M=this.cache.config).onError)==null||N.call(M,I,this),(V=(U=this.cache.config).onSettled)==null||V.call(U,this.state.data,I,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=F6({fn:T.fetchFn,abort:p==null?void 0:p.abort.bind(p),onSuccess:I=>{var N,M,V,U;if(typeof I>"u"){k(new Error(this.queryHash+" data is undefined"));return}this.setData(I),(N=(M=this.cache.config).onSuccess)==null||N.call(M,I,this),(V=(U=this.cache.config).onSettled)==null||V.call(U,I,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:k,onFail:(I,N)=>{this.dispatch({type:"failed",failureCount:I,error:N})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:T.options.retry,retryDelay:T.options.retryDelay,networkMode:T.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(i){const s=a=>{var r,e;switch(i.type){case"failed":return{...a,fetchFailureCount:i.failureCount,fetchFailureReason:i.error};case"pause":return{...a,fetchStatus:"paused"};case"continue":return{...a,fetchStatus:"fetching"};case"fetch":return{...a,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(r=i.meta)!=null?r:null,fetchStatus:X4(this.options.networkMode)?"fetching":"paused",...!a.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...a,data:i.data,dataUpdateCount:a.dataUpdateCount+1,dataUpdatedAt:(e=i.dataUpdatedAt)!=null?e:Date.now(),error:null,isInvalidated:!1,status:"success",...!i.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const p=i.error;return Mb(p)&&p.revert&&this.revertState?{...this.revertState}:{...a,error:p,errorUpdateCount:a.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:a.fetchFailureCount+1,fetchFailureReason:p,fetchStatus:"idle",status:"error"};case"invalidate":return{...a,isInvalidated:!0};case"setState":return{...a,...i.state}}};this.state=s(this.state),ts.batch(()=>{this.observers.forEach(a=>{a.onQueryUpdate(i)}),this.cache.notify({query:this,type:"updated",action:i})})}}function lR(t){const i=typeof t.initialData=="function"?t.initialData():t.initialData,s=typeof i<"u",a=s?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:i,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":"loading",fetchStatus:"idle"}}let x6=class extends x2{constructor(i){super(),this.config=i||{},this.queries=[],this.queriesMap={}}build(i,s,a){var r;const e=s.queryKey,p=(r=s.queryHash)!=null?r:Q4(e,s);let _=this.get(p);return _||(_=new oR({cache:this,logger:i.getLogger(),queryKey:e,queryHash:p,options:i.defaultQueryOptions(s),state:a,defaultOptions:i.getQueryDefaults(e)}),this.add(_)),_}add(i){this.queriesMap[i.queryHash]||(this.queriesMap[i.queryHash]=i,this.queries.push(i),this.notify({type:"added",query:i}))}remove(i){const s=this.queriesMap[i.queryHash];s&&(i.destroy(),this.queries=this.queries.filter(a=>a!==i),s===i&&delete this.queriesMap[i.queryHash],this.notify({type:"removed",query:i}))}clear(){ts.batch(()=>{this.queries.forEach(i=>{this.remove(i)})})}get(i){return this.queriesMap[i]}getAll(){return this.queries}find(i,s){const[a]=Vl(i,s);return typeof a.exact>"u"&&(a.exact=!0),this.queries.find(r=>O3(a,r))}findAll(i,s){const[a]=Vl(i,s);return Object.keys(a).length>0?this.queries.filter(r=>O3(a,r)):this.queries}notify(i){ts.batch(()=>{this.listeners.forEach(({listener:s})=>{s(i)})})}onFocus(){ts.batch(()=>{this.queries.forEach(i=>{i.onFocus()})})}onOnline(){ts.batch(()=>{this.queries.forEach(i=>{i.onOnline()})})}};class cR extends E6{constructor(i){super(),this.defaultOptions=i.defaultOptions,this.mutationId=i.mutationId,this.mutationCache=i.mutationCache,this.logger=i.logger||J4,this.observers=[],this.state=i.state||uR(),this.setOptions(i.options),this.scheduleGc()}setOptions(i){this.options={...this.defaultOptions,...i},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(i){this.dispatch({type:"setState",state:i})}addObserver(i){this.observers.includes(i)||(this.observers.push(i),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:i}))}removeObserver(i){this.observers=this.observers.filter(s=>s!==i),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:i})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var i,s;return(i=(s=this.retryer)==null?void 0:s.continue())!=null?i:this.execute()}async execute(){const i=()=>{var ee;return this.retryer=F6({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(re,te)=>{this.dispatch({type:"failed",failureCount:re,error:te})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(ee=this.options.retry)!=null?ee:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},s=this.state.status==="loading";try{var a,r,e,p,_,D,F,T;if(!s){var A,k,I,N;this.dispatch({type:"loading",variables:this.options.variables}),await((A=(k=this.mutationCache.config).onMutate)==null?void 0:A.call(k,this.state.variables,this));const re=await((I=(N=this.options).onMutate)==null?void 0:I.call(N,this.state.variables));re!==this.state.context&&this.dispatch({type:"loading",context:re,variables:this.state.variables})}const ee=await i();return await((a=(r=this.mutationCache.config).onSuccess)==null?void 0:a.call(r,ee,this.state.variables,this.state.context,this)),await((e=(p=this.options).onSuccess)==null?void 0:e.call(p,ee,this.state.variables,this.state.context)),await((_=(D=this.mutationCache.config).onSettled)==null?void 0:_.call(D,ee,null,this.state.variables,this.state.context,this)),await((F=(T=this.options).onSettled)==null?void 0:F.call(T,ee,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:ee}),ee}catch(ee){try{var M,V,U,G,ne,z,H,Z;throw await((M=(V=this.mutationCache.config).onError)==null?void 0:M.call(V,ee,this.state.variables,this.state.context,this)),await((U=(G=this.options).onError)==null?void 0:U.call(G,ee,this.state.variables,this.state.context)),await((ne=(z=this.mutationCache.config).onSettled)==null?void 0:ne.call(z,void 0,ee,this.state.variables,this.state.context,this)),await((H=(Z=this.options).onSettled)==null?void 0:H.call(Z,void 0,ee,this.state.variables,this.state.context)),ee}finally{this.dispatch({type:"error",error:ee})}}}dispatch(i){const s=a=>{switch(i.type){case"failed":return{...a,failureCount:i.failureCount,failureReason:i.error};case"pause":return{...a,isPaused:!0};case"continue":return{...a,isPaused:!1};case"loading":return{...a,context:i.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!X4(this.options.networkMode),status:"loading",variables:i.variables};case"success":return{...a,data:i.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...a,data:void 0,error:i.error,failureCount:a.failureCount+1,failureReason:i.error,isPaused:!1,status:"error"};case"setState":return{...a,...i.state}}};this.state=s(this.state),ts.batch(()=>{this.observers.forEach(a=>{a.onMutationUpdate(i)}),this.mutationCache.notify({mutation:this,type:"updated",action:i})})}}function uR(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}let C6=class extends x2{constructor(i){super(),this.config=i||{},this.mutations=[],this.mutationId=0}build(i,s,a){const r=new cR({mutationCache:this,logger:i.getLogger(),mutationId:++this.mutationId,options:i.defaultMutationOptions(s),state:a,defaultOptions:s.mutationKey?i.getMutationDefaults(s.mutationKey):void 0});return this.add(r),r}add(i){this.mutations.push(i),this.notify({type:"added",mutation:i})}remove(i){this.mutations=this.mutations.filter(s=>s!==i),this.notify({type:"removed",mutation:i})}clear(){ts.batch(()=>{this.mutations.forEach(i=>{this.remove(i)})})}getAll(){return this.mutations}find(i){return typeof i.exact>"u"&&(i.exact=!0),this.mutations.find(s=>k3(i,s))}findAll(i){return this.mutations.filter(s=>k3(i,s))}notify(i){ts.batch(()=>{this.listeners.forEach(({listener:s})=>{s(i)})})}resumePausedMutations(){var i;return this.resuming=((i=this.resuming)!=null?i:Promise.resolve()).then(()=>{const s=this.mutations.filter(a=>a.state.isPaused);return ts.batch(()=>s.reduce((a,r)=>a.then(()=>r.continue().catch(Ca)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}};function fR(){return{onFetch:t=>{t.fetchFn=()=>{var i,s,a,r,e,p;const _=(i=t.fetchOptions)==null||(s=i.meta)==null?void 0:s.refetchPage,D=(a=t.fetchOptions)==null||(r=a.meta)==null?void 0:r.fetchMore,F=D==null?void 0:D.pageParam,T=(D==null?void 0:D.direction)==="forward",A=(D==null?void 0:D.direction)==="backward",k=((e=t.state.data)==null?void 0:e.pages)||[],I=((p=t.state.data)==null?void 0:p.pageParams)||[];let N=I,M=!1;const V=Z=>{Object.defineProperty(Z,"signal",{enumerable:!0,get:()=>{var ee;if((ee=t.signal)!=null&&ee.aborted)M=!0;else{var re;(re=t.signal)==null||re.addEventListener("abort",()=>{M=!0})}return t.signal}})},U=t.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+t.options.queryHash+"'")),G=(Z,ee,re,te)=>(N=te?[ee,...N]:[...N,ee],te?[re,...Z]:[...Z,re]),ne=(Z,ee,re,te)=>{if(M)return Promise.reject("Cancelled");if(typeof re>"u"&&!ee&&Z.length)return Promise.resolve(Z);const ae={queryKey:t.queryKey,pageParam:re,meta:t.options.meta};V(ae);const ve=U(ae);return Promise.resolve(ve).then(De=>G(Z,re,De,te))};let z;if(!k.length)z=ne([]);else if(T){const Z=typeof F<"u",ee=Z?F:L3(t.options,k);z=ne(k,Z,ee)}else if(A){const Z=typeof F<"u",ee=Z?F:hR(t.options,k);z=ne(k,Z,ee,!0)}else{N=[];const Z=typeof t.options.getNextPageParam>"u";z=(_&&k[0]?_(k[0],0,k):!0)?ne([],Z,I[0]):Promise.resolve(G([],I[0],k[0]));for(let re=1;re<k.length;re++)z=z.then(te=>{if(_&&k[re]?_(k[re],re,k):!0){const ve=Z?I[re]:L3(t.options,te);return ne(te,Z,ve)}return Promise.resolve(G(te,I[re],k[re]))})}return z.then(Z=>({pages:Z,pageParams:N}))}}}}function L3(t,i){return t.getNextPageParam==null?void 0:t.getNextPageParam(i[i.length-1],i)}function hR(t,i){return t.getPreviousPageParam==null?void 0:t.getPreviousPageParam(i[0],i)}let dR=class{constructor(i={}){this.queryCache=i.queryCache||new x6,this.mutationCache=i.mutationCache||new C6,this.logger=i.logger||J4,this.defaultOptions=i.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=k_.subscribe(()=>{k_.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=Hg.subscribe(()=>{Hg.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var i,s;this.mountCount--,this.mountCount===0&&((i=this.unsubscribeFocus)==null||i.call(this),this.unsubscribeFocus=void 0,(s=this.unsubscribeOnline)==null||s.call(this),this.unsubscribeOnline=void 0)}isFetching(i,s){const[a]=Vl(i,s);return a.fetchStatus="fetching",this.queryCache.findAll(a).length}isMutating(i){return this.mutationCache.findAll({...i,fetching:!0}).length}getQueryData(i,s){var a;return(a=this.queryCache.find(i,s))==null?void 0:a.state.data}ensureQueryData(i,s,a){const r=ng(i,s,a),e=this.getQueryData(r.queryKey);return e?Promise.resolve(e):this.fetchQuery(r)}getQueriesData(i){return this.getQueryCache().findAll(i).map(({queryKey:s,state:a})=>{const r=a.data;return[s,r]})}setQueryData(i,s,a){const r=this.queryCache.find(i),e=r==null?void 0:r.state.data,p=J9(s,e);if(typeof p>"u")return;const _=ng(i),D=this.defaultQueryOptions(_);return this.queryCache.build(this,D).setData(p,{...a,manual:!0})}setQueriesData(i,s,a){return ts.batch(()=>this.getQueryCache().findAll(i).map(({queryKey:r})=>[r,this.setQueryData(r,s,a)]))}getQueryState(i,s){var a;return(a=this.queryCache.find(i,s))==null?void 0:a.state}removeQueries(i,s){const[a]=Vl(i,s),r=this.queryCache;ts.batch(()=>{r.findAll(a).forEach(e=>{r.remove(e)})})}resetQueries(i,s,a){const[r,e]=Vl(i,s,a),p=this.queryCache,_={type:"active",...r};return ts.batch(()=>(p.findAll(r).forEach(D=>{D.reset()}),this.refetchQueries(_,e)))}cancelQueries(i,s,a){const[r,e={}]=Vl(i,s,a);typeof e.revert>"u"&&(e.revert=!0);const p=ts.batch(()=>this.queryCache.findAll(r).map(_=>_.cancel(e)));return Promise.all(p).then(Ca).catch(Ca)}invalidateQueries(i,s,a){const[r,e]=Vl(i,s,a);return ts.batch(()=>{var p,_;if(this.queryCache.findAll(r).forEach(F=>{F.invalidate()}),r.refetchType==="none")return Promise.resolve();const D={...r,type:(p=(_=r.refetchType)!=null?_:r.type)!=null?p:"active"};return this.refetchQueries(D,e)})}refetchQueries(i,s,a){const[r,e]=Vl(i,s,a),p=ts.batch(()=>this.queryCache.findAll(r).filter(D=>!D.isDisabled()).map(D=>{var F;return D.fetch(void 0,{...e,cancelRefetch:(F=e==null?void 0:e.cancelRefetch)!=null?F:!0,meta:{refetchPage:r.refetchPage}})}));let _=Promise.all(p).then(Ca);return e!=null&&e.throwOnError||(_=_.catch(Ca)),_}fetchQuery(i,s,a){const r=ng(i,s,a),e=this.defaultQueryOptions(r);typeof e.retry>"u"&&(e.retry=!1);const p=this.queryCache.build(this,e);return p.isStaleByTime(e.staleTime)?p.fetch(e):Promise.resolve(p.state.data)}prefetchQuery(i,s,a){return this.fetchQuery(i,s,a).then(Ca).catch(Ca)}fetchInfiniteQuery(i,s,a){const r=ng(i,s,a);return r.behavior=fR(),this.fetchQuery(r)}prefetchInfiniteQuery(i,s,a){return this.fetchInfiniteQuery(i,s,a).then(Ca).catch(Ca)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(i){this.defaultOptions=i}setQueryDefaults(i,s){const a=this.queryDefaults.find(r=>mu(i)===mu(r.queryKey));a?a.defaultOptions=s:this.queryDefaults.push({queryKey:i,defaultOptions:s})}getQueryDefaults(i){if(!i)return;const s=this.queryDefaults.find(a=>Ug(i,a.queryKey));return s==null?void 0:s.defaultOptions}setMutationDefaults(i,s){const a=this.mutationDefaults.find(r=>mu(i)===mu(r.mutationKey));a?a.defaultOptions=s:this.mutationDefaults.push({mutationKey:i,defaultOptions:s})}getMutationDefaults(i){if(!i)return;const s=this.mutationDefaults.find(a=>Ug(i,a.mutationKey));return s==null?void 0:s.defaultOptions}defaultQueryOptions(i){if(i!=null&&i._defaulted)return i;const s={...this.defaultOptions.queries,...this.getQueryDefaults(i==null?void 0:i.queryKey),...i,_defaulted:!0};return!s.queryHash&&s.queryKey&&(s.queryHash=Q4(s.queryKey,s)),typeof s.refetchOnReconnect>"u"&&(s.refetchOnReconnect=s.networkMode!=="always"),typeof s.useErrorBoundary>"u"&&(s.useErrorBoundary=!!s.suspense),s}defaultMutationOptions(i){return i!=null&&i._defaulted?i:{...this.defaultOptions.mutations,...this.getMutationDefaults(i==null?void 0:i.mutationKey),...i,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}};const pR="VUE_QUERY_CLIENT";function mR(t){const i=t?":"+t:"";return""+pR+i}function xa(t){return Array.isArray(t)}function HI(t,i){Object.keys(t).forEach(s=>{t[s]=i[s]})}function R_(t,i){if(i){const s=i(t);if(s!==void 0||rn(t))return s}if(Array.isArray(t))return t.map(s=>R_(s,i));if(typeof t=="object"&&gR(t)){const s=Object.entries(t).map(([a,r])=>[a,R_(r,i)]);return Object.fromEntries(s)}return t}function ar(t){return R_(t,i=>{if(rn(i))return ar(Qt(i))})}function gR(t){if(Object.prototype.toString.call(t)!=="[object Object]")return!1;const i=Object.getPrototypeOf(t);return i===null||i===Object.prototype}function $I(t,i){return typeof t=="function"?t(...i):!!t}class vR extends x6{find(i,s){const a=ar(i),r=ar(s);return super.find(a,r)}findAll(i,s){const a=ar(i),r=ar(s);return xa(a)?super.findAll(a,r):super.findAll(a)}}class bR extends C6{find(i){return super.find(ar(i))}findAll(i){return super.findAll(ar(i))}}class M3 extends dR{constructor(i={}){const s=ar(i),a={logger:ar(s.logger),defaultOptions:ar(s.defaultOptions),queryCache:s.queryCache||new vR,mutationCache:s.mutationCache||new bR};super(a),this.isRestoring=Yt(!1)}isFetching(i,s){const a=ar(i),r=ar(s);return xa(a)?super.isFetching(a,r):super.isFetching(a)}isMutating(i){return super.isMutating(ar(i))}getQueryData(i,s){return super.getQueryData(ar(i),ar(s))}getQueriesData(i){const s=ar(i);return xa(s)?super.getQueriesData(s):super.getQueriesData(s)}setQueryData(i,s,a){return super.setQueryData(ar(i),s,ar(a))}setQueriesData(i,s,a){const r=ar(i),e=ar(a);return xa(r)?super.setQueriesData(r,s,e):super.setQueriesData(r,s,e)}getQueryState(i,s){return super.getQueryState(ar(i),ar(s))}removeQueries(i,s){const a=ar(i);return xa(a)?super.removeQueries(a,ar(s)):super.removeQueries(a)}resetQueries(i,s,a){const r=ar(i),e=ar(s);return xa(r)?super.resetQueries(r,e,ar(a)):super.resetQueries(r,e)}cancelQueries(i,s,a){const r=ar(i),e=ar(s);return xa(r)?super.cancelQueries(r,e,ar(a)):super.cancelQueries(r,e)}invalidateQueries(i,s,a){const r=ar(i),e=ar(s);return xa(r)?super.invalidateQueries(r,e,ar(a)):super.invalidateQueries(r,e)}refetchQueries(i,s,a){const r=ar(i),e=ar(s);return xa(r)?super.refetchQueries(r,e,ar(a)):super.refetchQueries(r,e)}fetchQuery(i,s,a){const r=ar(i),e=ar(s);return xa(r)?super.fetchQuery(r,e,ar(a)):super.fetchQuery(r)}prefetchQuery(i,s,a){return super.prefetchQuery(ar(i),ar(s),ar(a))}fetchInfiniteQuery(i,s,a){const r=ar(i),e=ar(s);return xa(r)?super.fetchInfiniteQuery(r,e,ar(a)):super.fetchInfiniteQuery(r)}prefetchInfiniteQuery(i,s,a){return super.prefetchInfiniteQuery(ar(i),ar(s),ar(a))}setDefaultOptions(i){super.setDefaultOptions(ar(i))}setQueryDefaults(i,s){super.setQueryDefaults(ar(i),ar(s))}getQueryDefaults(i){return super.getQueryDefaults(ar(i))}setMutationDefaults(i,s){super.setMutationDefaults(ar(i),ar(s))}getMutationDefaults(i){return super.getMutationDefaults(ar(i))}}const _R={install:(t,i={})=>{const s=mR(i.queryClientKey);let a;if("queryClient"in i&&i.queryClient)a=i.queryClient;else if(i.contextSharing&&typeof window<"u")if(window.__VUE_QUERY_CONTEXT__)a=window.__VUE_QUERY_CONTEXT__;else{const p="queryClientConfig"in i?i.queryClientConfig:void 0;a=new M3(p),window.__VUE_QUERY_CONTEXT__=a}else{const p="queryClientConfig"in i?i.queryClientConfig:void 0;a=new M3(p)}C2||a.mount();let r=()=>{};if(i.clientPersister){a.isRestoring.value=!0;const[p,_]=i.clientPersister(a);r=p,_.then(()=>{a.isRestoring.value=!1})}const e=()=>{a.unmount(),r()};if(t.onUnmount)t.onUnmount(e);else{const p=t.unmount;t.unmount=function(){e(),p()}}t.provide(s,a)}};let yR;function DR(){return yR}function wR(t){return typeof t=="function"?t():Qt(t)}function P_(t,i=""){if(t instanceof Promise)return t;const s=wR(t);return!t||!s?s:Array.isArray(s)?s.map(a=>P_(a,i)):typeof s=="object"?Object.fromEntries(Object.entries(s).map(([a,r])=>a==="titleTemplate"||a.startsWith("on")?[a,Qt(r)]:[a,P_(r,a)])):s}const FR="usehead";function ER(){return Ti()&&is(FR)||DR()}function xR(t,i={}){const s=ER();if(s)return s.ssr?s.push(t,i):CR(s,t,i)}function CR(t,i,s={}){const a=Yt(!1),r=Yt({});i4(()=>{r.value=a.value?{}:P_(i)});const e=t.push(r.value,s);return bn(r,_=>{e.patch(_)}),Ti()&&(p1(()=>{e.dispose()}),l4(()=>{a.value=!0}),o4(()=>{a.value=!1})),e}const TR=mi({__name:"App",setup(t){return xR({title:"Board - XCPCIO",meta:[{name:"description",content:"XCPCIO-Board 主要收录 *CPC 系列竞赛的榜单。"},{name:"keywords",content:"icpc, ccpc, rank, board, standings"},{name:"theme-color",content:()=>GE.value?"#00aba9":"#ffffff"}],link:[{rel:"icon",type:"image/svg+xml",href:()=>x7.value?"/favicon-dark.svg":"/favicon.svg"}]}),(i,s)=>{const a=Ia("RouterView");return Lr(),rl(a)}}});var AR=Object.defineProperty,B3=Object.getOwnPropertySymbols,SR=Object.prototype.hasOwnProperty,OR=Object.prototype.propertyIsEnumerable,U3=(t,i,s)=>i in t?AR(t,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[i]=s,H3=(t,i)=>{for(var s in i||(i={}))SR.call(i,s)&&U3(t,s,i[s]);if(B3)for(var s of B3(i))OR.call(i,s)&&U3(t,s,i[s]);return t};const Bb=new WeakMap;function T6(t,i,s={}){const{mode:a="replace",route:r=iS(),router:e=nS(),transform:p=T=>T}=s;Bb.has(r)||Bb.set(r,new Map);const _=Bb.get(r);ku(()=>{_.delete(t)}),_.set(t,r.query[t]);let D;const F=Z_((T,A)=>(D=A,{get(){T();const k=_.get(t);return p(k!==void 0?k:Yn(i))},set(k){_.get(t)!==k&&(_.set(t,k),A(),vo(()=>{const{params:I,query:N,hash:M}=r;e[Yn(a)]({params:I,query:H3(H3({},N),Object.fromEntries(_.entries())),hash:M})}))}}));return bn(()=>r.query[t],T=>{_.set(t,T),D()},{flush:"sync"}),F}var A6={exports:{}};(function(t,i){(function(s,a){t.exports=a()})(Li,function(){var s=1e3,a=6e4,r=36e5,e="millisecond",p="second",_="minute",D="hour",F="day",T="week",A="month",k="quarter",I="year",N="date",M="Invalid Date",V=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,U=/\[([^\]]+)]|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,G={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(De){var ge=["th","st","nd","rd"],Ne=De%100;return"["+De+(ge[(Ne-20)%10]||ge[Ne]||ge[0])+"]"}},ne=function(De,ge,Ne){var We=String(De);return!We||We.length>=ge?De:""+Array(ge+1-We.length).join(Ne)+De},z={s:ne,z:function(De){var ge=-De.utcOffset(),Ne=Math.abs(ge),We=Math.floor(Ne/60),Se=Ne%60;return(ge<=0?"+":"-")+ne(We,2,"0")+":"+ne(Se,2,"0")},m:function De(ge,Ne){if(ge.date()<Ne.date())return-De(Ne,ge);var We=12*(Ne.year()-ge.year())+(Ne.month()-ge.month()),Se=ge.clone().add(We,A),lt=Ne-Se<0,at=ge.clone().add(We+(lt?-1:1),A);return+(-(We+(Ne-Se)/(lt?Se-at:at-Se))||0)},a:function(De){return De<0?Math.ceil(De)||0:Math.floor(De)},p:function(De){return{M:A,y:I,w:T,d:F,D:N,h:D,m:_,s:p,ms:e,Q:k}[De]||String(De||"").toLowerCase().replace(/s$/,"")},u:function(De){return De===void 0}},H="en",Z={};Z[H]=G;var ee=function(De){return De instanceof ve},re=function De(ge,Ne,We){var Se;if(!ge)return H;if(typeof ge=="string"){var lt=ge.toLowerCase();Z[lt]&&(Se=lt),Ne&&(Z[lt]=Ne,Se=lt);var at=ge.split("-");if(!Se&&at.length>1)return De(at[0])}else{var ze=ge.name;Z[ze]=ge,Se=ze}return!We&&Se&&(H=Se),Se||!We&&H},te=function(De,ge){if(ee(De))return De.clone();var Ne=typeof ge=="object"?ge:{};return Ne.date=De,Ne.args=arguments,new ve(Ne)},ae=z;ae.l=re,ae.i=ee,ae.w=function(De,ge){return te(De,{locale:ge.$L,utc:ge.$u,x:ge.$x,$offset:ge.$offset})};var ve=function(){function De(Ne){this.$L=re(Ne.locale,null,!0),this.parse(Ne)}var ge=De.prototype;return ge.parse=function(Ne){this.$d=function(We){var Se=We.date,lt=We.utc;if(Se===null)return new Date(NaN);if(ae.u(Se))return new Date;if(Se instanceof Date)return new Date(Se);if(typeof Se=="string"&&!/Z$/i.test(Se)){var at=Se.match(V);if(at){var ze=at[2]-1||0,he=(at[7]||"0").substring(0,3);return lt?new Date(Date.UTC(at[1],ze,at[3]||1,at[4]||0,at[5]||0,at[6]||0,he)):new Date(at[1],ze,at[3]||1,at[4]||0,at[5]||0,at[6]||0,he)}}return new Date(Se)}(Ne),this.$x=Ne.x||{},this.init()},ge.init=function(){var Ne=this.$d;this.$y=Ne.getFullYear(),this.$M=Ne.getMonth(),this.$D=Ne.getDate(),this.$W=Ne.getDay(),this.$H=Ne.getHours(),this.$m=Ne.getMinutes(),this.$s=Ne.getSeconds(),this.$ms=Ne.getMilliseconds()},ge.$utils=function(){return ae},ge.isValid=function(){return this.$d.toString()!==M},ge.isSame=function(Ne,We){var Se=te(Ne);return this.startOf(We)<=Se&&Se<=this.endOf(We)},ge.isAfter=function(Ne,We){return te(Ne)<this.startOf(We)},ge.isBefore=function(Ne,We){return this.endOf(We)<te(Ne)},ge.$g=function(Ne,We,Se){return ae.u(Ne)?this[We]:this.set(Se,Ne)},ge.unix=function(){return Math.floor(this.valueOf()/1e3)},ge.valueOf=function(){return this.$d.getTime()},ge.startOf=function(Ne,We){var Se=this,lt=!!ae.u(We)||We,at=ae.p(Ne),ze=function(Me,_e){var it=ae.w(Se.$u?Date.UTC(Se.$y,_e,Me):new Date(Se.$y,_e,Me),Se);return lt?it:it.endOf(F)},he=function(Me,_e){return ae.w(Se.toDate()[Me].apply(Se.toDate("s"),(lt?[0,0,0,0]:[23,59,59,999]).slice(_e)),Se)},He=this.$W,Je=this.$M,Ue=this.$D,be="set"+(this.$u?"UTC":"");switch(at){case I:return lt?ze(1,0):ze(31,11);case A:return lt?ze(1,Je):ze(0,Je+1);case T:var Pe=this.$locale().weekStart||0,J=(He<Pe?He+7:He)-Pe;return ze(lt?Ue-J:Ue+(6-J),Je);case F:case N:return he(be+"Hours",0);case D:return he(be+"Minutes",1);case _:return he(be+"Seconds",2);case p:return he(be+"Milliseconds",3);default:return this.clone()}},ge.endOf=function(Ne){return this.startOf(Ne,!1)},ge.$set=function(Ne,We){var Se,lt=ae.p(Ne),at="set"+(this.$u?"UTC":""),ze=(Se={},Se[F]=at+"Date",Se[N]=at+"Date",Se[A]=at+"Month",Se[I]=at+"FullYear",Se[D]=at+"Hours",Se[_]=at+"Minutes",Se[p]=at+"Seconds",Se[e]=at+"Milliseconds",Se)[lt],he=lt===F?this.$D+(We-this.$W):We;if(lt===A||lt===I){var He=this.clone().set(N,1);He.$d[ze](he),He.init(),this.$d=He.set(N,Math.min(this.$D,He.daysInMonth())).$d}else ze&&this.$d[ze](he);return this.init(),this},ge.set=function(Ne,We){return this.clone().$set(Ne,We)},ge.get=function(Ne){return this[ae.p(Ne)]()},ge.add=function(Ne,We){var Se,lt=this;Ne=Number(Ne);var at=ae.p(We),ze=function(Je){var Ue=te(lt);return ae.w(Ue.date(Ue.date()+Math.round(Je*Ne)),lt)};if(at===A)return this.set(A,this.$M+Ne);if(at===I)return this.set(I,this.$y+Ne);if(at===F)return ze(1);if(at===T)return ze(7);var he=(Se={},Se[_]=a,Se[D]=r,Se[p]=s,Se)[at]||1,He=this.$d.getTime()+Ne*he;return ae.w(He,this)},ge.subtract=function(Ne,We){return this.add(-1*Ne,We)},ge.format=function(Ne){var We=this,Se=this.$locale();if(!this.isValid())return Se.invalidDate||M;var lt=Ne||"YYYY-MM-DDTHH:mm:ssZ",at=ae.z(this),ze=this.$H,he=this.$m,He=this.$M,Je=Se.weekdays,Ue=Se.months,be=function(_e,it,Ut,X){return _e&&(_e[it]||_e(We,lt))||Ut[it].slice(0,X)},Pe=function(_e){return ae.s(ze%12||12,_e,"0")},J=Se.meridiem||function(_e,it,Ut){var X=_e<12?"AM":"PM";return Ut?X.toLowerCase():X},Me={YY:String(this.$y).slice(-2),YYYY:ae.s(this.$y,4,"0"),M:He+1,MM:ae.s(He+1,2,"0"),MMM:be(Se.monthsShort,He,Ue,3),MMMM:be(Ue,He),D:this.$D,DD:ae.s(this.$D,2,"0"),d:String(this.$W),dd:be(Se.weekdaysMin,this.$W,Je,2),ddd:be(Se.weekdaysShort,this.$W,Je,3),dddd:Je[this.$W],H:String(ze),HH:ae.s(ze,2,"0"),h:Pe(1),hh:Pe(2),a:J(ze,he,!0),A:J(ze,he,!1),m:String(he),mm:ae.s(he,2,"0"),s:String(this.$s),ss:ae.s(this.$s,2,"0"),SSS:ae.s(this.$ms,3,"0"),Z:at};return lt.replace(U,function(_e,it){return it||Me[_e]||at.replace(":","")})},ge.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},ge.diff=function(Ne,We,Se){var lt,at=ae.p(We),ze=te(Ne),he=(ze.utcOffset()-this.utcOffset())*a,He=this-ze,Je=ae.m(this,ze);return Je=(lt={},lt[I]=Je/12,lt[A]=Je,lt[k]=Je/3,lt[T]=(He-he)/6048e5,lt[F]=(He-he)/864e5,lt[D]=He/r,lt[_]=He/a,lt[p]=He/s,lt)[at]||He,Se?Je:ae.a(Je)},ge.daysInMonth=function(){return this.endOf(A).$D},ge.$locale=function(){return Z[this.$L]},ge.locale=function(Ne,We){if(!Ne)return this.$L;var Se=this.clone(),lt=re(Ne,We,!0);return lt&&(Se.$L=lt),Se},ge.clone=function(){return ae.w(this.$d,this)},ge.toDate=function(){return new Date(this.valueOf())},ge.toJSON=function(){return this.isValid()?this.toISOString():null},ge.toISOString=function(){return this.$d.toISOString()},ge.toString=function(){return this.$d.toUTCString()},De}(),Ae=ve.prototype;return te.prototype=Ae,[["$ms",e],["$s",p],["$m",_],["$H",D],["$W",F],["$M",A],["$y",I],["$D",N]].forEach(function(De){Ae[De[1]]=function(ge){return this.$g(ge,De[0],De[1])}}),te.extend=function(De,ge){return De.$i||(De(ge,ve,te),De.$i=!0),te},te.locale=re,te.isDayjs=ee,te.unix=function(De){return te(1e3*De)},te.en=Z[H],te.Ls=Z,te.p={},te})})(A6);var kR=A6.exports;const Wi=js(kR);var S6={exports:{}};(function(t,i){(function(s,a){t.exports=a()})(Li,function(){var s,a,r=1e3,e=6e4,p=36e5,_=864e5,D=/\[([^\]]+)]|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,F=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)?)?$/,k={years:F,months:T,days:_,hours:p,minutes:e,seconds:r,milliseconds:1,weeks:6048e5},I=function(H){return H instanceof z},N=function(H,Z,ee){return new z(H,ee,Z.$l)},M=function(H){return a.p(H)+"s"},V=function(H){return H<0},U=function(H){return V(H)?Math.ceil(H):Math.floor(H)},G=function(H){return Math.abs(H)},ne=function(H,Z){return H?V(H)?{negative:!0,format:""+G(H)+Z}:{negative:!1,format:""+H+Z}:{negative:!1,format:""}},z=function(){function H(ee,re,te){var ae=this;if(this.$d={},this.$l=te,ee===void 0&&(this.$ms=0,this.parseFromMilliseconds()),re)return N(ee*k[M(re)],this);if(typeof ee=="number")return this.$ms=ee,this.parseFromMilliseconds(),this;if(typeof ee=="object")return Object.keys(ee).forEach(function(De){ae.$d[M(De)]=ee[De]}),this.calMilliseconds(),this;if(typeof ee=="string"){var ve=ee.match(A);if(ve){var Ae=ve.slice(2).map(function(De){return De!=null?Number(De):0});return this.$d.years=Ae[0],this.$d.months=Ae[1],this.$d.weeks=Ae[2],this.$d.days=Ae[3],this.$d.hours=Ae[4],this.$d.minutes=Ae[5],this.$d.seconds=Ae[6],this.calMilliseconds(),this}}return this}var Z=H.prototype;return Z.calMilliseconds=function(){var ee=this;this.$ms=Object.keys(this.$d).reduce(function(re,te){return re+(ee.$d[te]||0)*k[te]},0)},Z.parseFromMilliseconds=function(){var ee=this.$ms;this.$d.years=U(ee/F),ee%=F,this.$d.months=U(ee/T),ee%=T,this.$d.days=U(ee/_),ee%=_,this.$d.hours=U(ee/p),ee%=p,this.$d.minutes=U(ee/e),ee%=e,this.$d.seconds=U(ee/r),ee%=r,this.$d.milliseconds=ee},Z.toISOString=function(){var ee=ne(this.$d.years,"Y"),re=ne(this.$d.months,"M"),te=+this.$d.days||0;this.$d.weeks&&(te+=7*this.$d.weeks);var ae=ne(te,"D"),ve=ne(this.$d.hours,"H"),Ae=ne(this.$d.minutes,"M"),De=this.$d.seconds||0;this.$d.milliseconds&&(De+=this.$d.milliseconds/1e3);var ge=ne(De,"S"),Ne=ee.negative||re.negative||ae.negative||ve.negative||Ae.negative||ge.negative,We=ve.format||Ae.format||ge.format?"T":"",Se=(Ne?"-":"")+"P"+ee.format+re.format+ae.format+We+ve.format+Ae.format+ge.format;return Se==="P"||Se==="-P"?"P0D":Se},Z.toJSON=function(){return this.toISOString()},Z.format=function(ee){var re=ee||"YYYY-MM-DDTHH:mm:ss",te={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 re.replace(D,function(ae,ve){return ve||String(te[ae])})},Z.as=function(ee){return this.$ms/k[M(ee)]},Z.get=function(ee){var re=this.$ms,te=M(ee);return te==="milliseconds"?re%=1e3:re=te==="weeks"?U(re/k[te]):this.$d[te],re===0?0:re},Z.add=function(ee,re,te){var ae;return ae=re?ee*k[M(re)]:I(ee)?ee.$ms:N(ee,this).$ms,N(this.$ms+ae*(te?-1:1),this)},Z.subtract=function(ee,re){return this.add(ee,re,!0)},Z.locale=function(ee){var re=this.clone();return re.$l=ee,re},Z.clone=function(){return N(this.$ms,this)},Z.humanize=function(ee){return s().add(this.$ms,"ms").locale(this.$l).fromNow(!ee)},Z.valueOf=function(){return this.asMilliseconds()},Z.milliseconds=function(){return this.get("milliseconds")},Z.asMilliseconds=function(){return this.as("milliseconds")},Z.seconds=function(){return this.get("seconds")},Z.asSeconds=function(){return this.as("seconds")},Z.minutes=function(){return this.get("minutes")},Z.asMinutes=function(){return this.as("minutes")},Z.hours=function(){return this.get("hours")},Z.asHours=function(){return this.as("hours")},Z.days=function(){return this.get("days")},Z.asDays=function(){return this.as("days")},Z.weeks=function(){return this.get("weeks")},Z.asWeeks=function(){return this.as("weeks")},Z.months=function(){return this.get("months")},Z.asMonths=function(){return this.as("months")},Z.years=function(){return this.get("years")},Z.asYears=function(){return this.as("years")},H}();return function(H,Z,ee){s=ee,a=ee().$utils(),ee.duration=function(ae,ve){var Ae=ee.locale();return N(ae,{$l:Ae},ve)},ee.isDuration=I;var re=Z.prototype.add,te=Z.prototype.subtract;Z.prototype.add=function(ae,ve){return I(ae)&&(ae=ae.asMilliseconds()),re.bind(this)(ae,ve)},Z.prototype.subtract=function(ae,ve){return I(ae)&&(ae=ae.asMilliseconds()),te.bind(this)(ae,ve)}}})})(S6);var RR=S6.exports;const PR=js(RR);var O6={exports:{}};(function(t,i){(function(s,a){t.exports=a()})(Li,function(){var s="minute",a=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(e,p,_){var D=p.prototype;_.utc=function(M){var V={date:M,utc:!0,args:arguments};return new p(V)},D.utc=function(M){var V=_(this.toDate(),{locale:this.$L,utc:!0});return M?V.add(this.utcOffset(),s):V},D.local=function(){return _(this.toDate(),{locale:this.$L,utc:!1})};var F=D.parse;D.parse=function(M){M.utc&&(this.$u=!0),this.$utils().u(M.$offset)||(this.$offset=M.$offset),F.call(this,M)};var T=D.init;D.init=function(){if(this.$u){var M=this.$d;this.$y=M.getUTCFullYear(),this.$M=M.getUTCMonth(),this.$D=M.getUTCDate(),this.$W=M.getUTCDay(),this.$H=M.getUTCHours(),this.$m=M.getUTCMinutes(),this.$s=M.getUTCSeconds(),this.$ms=M.getUTCMilliseconds()}else T.call(this)};var A=D.utcOffset;D.utcOffset=function(M,V){var U=this.$utils().u;if(U(M))return this.$u?0:U(this.$offset)?A.call(this):this.$offset;if(typeof M=="string"&&(M=function(H){H===void 0&&(H="");var Z=H.match(a);if(!Z)return null;var ee=(""+Z[0]).match(r)||["-",0,0],re=ee[0],te=60*+ee[1]+ +ee[2];return te===0?0:re==="+"?te:-te}(M),M===null))return this;var G=Math.abs(M)<=16?60*M:M,ne=this;if(V)return ne.$offset=G,ne.$u=M===0,ne;if(M!==0){var z=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(ne=this.local().add(G+z,s)).$offset=G,ne.$x.$localOffset=z}else ne=this.utc();return ne};var k=D.format;D.format=function(M){var V=M||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return k.call(this,V)},D.valueOf=function(){var M=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*M},D.isUTC=function(){return!!this.$u},D.toISOString=function(){return this.toDate().toISOString()},D.toString=function(){return this.toDate().toUTCString()};var I=D.toDate;D.toDate=function(M){return M==="s"&&this.$offset?_(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():I.call(this)};var N=D.diff;D.diff=function(M,V,U){if(M&&this.$u===M.$u)return N.call(this,M,V,U);var G=this.local(),ne=_(M).local();return N.call(G,ne,V,U)}}})})(O6);var IR=O6.exports;const NR=js(IR);var k6={exports:{}};(function(t,i){(function(s,a){t.exports=a()})(Li,function(){var s={year:0,month:1,day:2,hour:3,minute:4,second:5},a={};return function(r,e,p){var _,D=function(k,I,N){N===void 0&&(N={});var M=new Date(k),V=function(U,G){G===void 0&&(G={});var ne=G.timeZoneName||"short",z=U+"|"+ne,H=a[z];return H||(H=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:U,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:ne}),a[z]=H),H}(I,N);return V.formatToParts(M)},F=function(k,I){for(var N=D(k,I),M=[],V=0;V<N.length;V+=1){var U=N[V],G=U.type,ne=U.value,z=s[G];z>=0&&(M[z]=parseInt(ne,10))}var H=M[3],Z=H===24?0:H,ee=M[0]+"-"+M[1]+"-"+M[2]+" "+Z+":"+M[4]+":"+M[5]+":000",re=+k;return(p.utc(ee).valueOf()-(re-=re%1e3))/6e4},T=e.prototype;T.tz=function(k,I){k===void 0&&(k=_);var N=this.utcOffset(),M=this.toDate(),V=M.toLocaleString("en-US",{timeZone:k}),U=Math.round((M-new Date(V))/1e3/60),G=p(V).$set("millisecond",this.$ms).utcOffset(15*-Math.round(M.getTimezoneOffset()/15)-U,!0);if(I){var ne=G.utcOffset();G=G.add(N-ne,"minute")}return G.$x.$timezone=k,G},T.offsetName=function(k){var I=this.$x.$timezone||p.tz.guess(),N=D(this.valueOf(),I,{timeZoneName:k}).find(function(M){return M.type.toLowerCase()==="timezonename"});return N&&N.value};var A=T.startOf;T.startOf=function(k,I){if(!this.$x||!this.$x.$timezone)return A.call(this,k,I);var N=p(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return A.call(N,k,I).tz(this.$x.$timezone,!0)},p.tz=function(k,I,N){var M=N&&I,V=N||I||_,U=F(+p(),V);if(typeof k!="string")return p(k).tz(V);var G=function(Z,ee,re){var te=Z-60*ee*1e3,ae=F(te,re);if(ee===ae)return[te,ee];var ve=F(te-=60*(ae-ee)*1e3,re);return ae===ve?[te,ae]:[Z-60*Math.min(ae,ve)*1e3,Math.max(ae,ve)]}(p.utc(k,M).valueOf(),U,V),ne=G[0],z=G[1],H=p(ne).utcOffset(z);return H.$x.$timezone=V,H},p.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},p.tz.setDefault=function(k){_=k}}})})(k6);var LR=k6.exports;const MR=js(LR);var R6={exports:{}};(function(t,i){(function(s,a){t.exports=a()})(Li,function(){return function(s,a){var r=a.prototype,e=r.format;r.format=function(p){var _=this,D=this.$locale();if(!this.isValid())return e.bind(this)(p);var F=this.$utils(),T=(p||"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 D.ordinal(_.$D);case"gggg":return _.weekYear();case"GGGG":return _.isoWeekYear();case"wo":return D.ordinal(_.week(),"W");case"w":case"ww":return F.s(_.week(),A==="w"?1:2,"0");case"W":case"WW":return F.s(_.isoWeek(),A==="W"?1:2,"0");case"k":case"kk":return F.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)}}})})(R6);var BR=R6.exports;const UR=js(BR);var P6={exports:{}};(function(t,i){(function(s,a){t.exports=a()})(Li,function(){return function(s,a){a.prototype.isSameOrBefore=function(r,e){return this.isSame(r,e)||this.isBefore(r,e)}}})})(P6);var HR=P6.exports;const $R=js(HR);var I6={exports:{}};(function(t,i){(function(s,a){t.exports=a()})(Li,function(){return function(s,a){a.prototype.isSameOrAfter=function(r,e){return this.isSame(r,e)||this.isAfter(r,e)}}})})(I6);var WR=I6.exports;const zR=js(WR);var N6={exports:{}};(function(t,i){(function(s,a){t.exports=a()})(Li,function(){return function(s,a,r){var e=function(p,_){if(!_||!_.length||!_[0]||_.length===1&&!_[0].length)return null;var D;_.length===1&&_[0].length>0&&(_=_[0]),D=_[0];for(var F=1;F<_.length;F+=1)_[F].isValid()&&!_[F][p](D)||(D=_[F]);return D};r.max=function(){var p=[].slice.call(arguments,0);return e("isAfter",p)},r.min=function(){var p=[].slice.call(arguments,0);return e("isBefore",p)}}})})(N6);var jR=N6.exports;const VR=js(jR);var L6={exports:{}};(function(t,i){(function(s,a){t.exports=a()})(Li,function(){return function(s,a,r){s=s||{};var e=a.prototype,p={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 _(F,T,A,k){return e.fromToBase(F,T,A,k)}r.en.relativeTime=p,e.fromToBase=function(F,T,A,k,I){for(var N,M,V,U=A.$locale().relativeTime||p,G=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"}],ne=G.length,z=0;z<ne;z+=1){var H=G[z];H.d&&(N=k?r(F).diff(A,H.d,!0):A.diff(F,H.d,!0));var Z=(s.rounding||Math.round)(Math.abs(N));if(V=N>0,Z<=H.r||!H.r){Z<=1&&z>0&&(H=G[z-1]);var ee=U[H.l];I&&(Z=I(""+Z)),M=typeof ee=="string"?ee.replace("%d",Z):ee(Z,T,H.l,V);break}}if(T)return M;var re=V?U.future:U.past;return typeof re=="function"?re(M):re.replace("%s",M)},e.to=function(F,T){return _(F,T,this,!0)},e.from=function(F,T){return _(F,T,this)};var D=function(F){return F.$u?r.utc():r()};e.toNow=function(F){return this.to(D(this),F)},e.fromNow=function(F){return this.from(D(this),F)}}})})(L6);var GR=L6.exports;const YR=js(GR);var $g={exports:{}};/**
31
31
  * @license
32
32
  * Lodash <https://lodash.com/>
33
33
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
@@ -189,7 +189,7 @@ function print() { __p += __j.call(arguments, '') }
189
189
  `);break;case"<mentions":case"<mentions>":we=!0;break;case"</mentions>":we=!1;break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":we=!0;break;case"</ext>":we=!1;break;default:if(!we&&q.WTF)throw new Error("unrecognized "+At[0]+" in threaded comments")}return Re}),fe)))}),j&&j.length&&Cf(O,j,!0,v.people||[])}catch(W){if(v.WTF)throw W}var L,R}function ds(n){return n.charAt(0)=="/"?n.slice(1):n}function Sm(n,o){if(il(),Tl(o=o||{}),Ai(n,"META-INF/manifest.xml")||Ai(n,"objectdata.xml"))return ed(n,o);if(Ai(n,"Index/Document.iwa")){if(typeof Uint8Array>"u")throw new Error("NUMBERS file parsing requires Uint8Array support");if(n.FileIndex)return Tm(n);var l=Zt.utils.cfb_new();return x0(n).forEach(function(mt){yr(l,mt,function rt(Nt,Bt,qt){if(!qt)return F1(E0(Nt,Bt));if(!Bt)return null;try{return rt(Nt,Bt)}catch{return null}}(n,mt))}),Tm(l)}if(!Ai(n,"[Content_Types].xml"))throw Ai(n,"index.xml.gz")?new Error("Unsupported NUMBERS 08 file"):Ai(n,"index.xml")?new Error("Unsupported NUMBERS 09 file"):new Error("Unsupported ZIP file");var c,f,d=x0(n),h=function(mt){var rt=Q0();if(!mt||!mt.match)return rt;var Nt={};if((mt.match(ci)||[]).forEach(function(Bt){var qt=lr(Bt);switch(qt[0].replace(x1,"<")){case"<?xml":break;case"<Types":rt.xmlns=qt["xmlns"+(qt[0].match(/<(\w+):/)||["",""])[1]];break;case"<Default":Nt[qt.Extension]=qt.ContentType;break;case"<Override":rt[q0[qt.ContentType]]!==void 0&&rt[q0[qt.ContentType]].push(qt.PartName)}}),rt.xmlns!==qn.CT)throw new Error("Unknown Namespace: "+rt.xmlns);return rt.calcchain=0<rt.calcchains.length?rt.calcchains[0]:"",rt.sst=0<rt.strs.length?rt.strs[0]:"",rt.style=0<rt.styles.length?rt.styles[0]:"",rt.defaults=Nt,delete rt.calcchains,rt}(ji(n,"[Content_Types].xml")),me=!1;if(h.workbooks.length===0&&Hn(n,f="xl/workbook.xml",!0)&&h.workbooks.push(f),h.workbooks.length===0){if(!Hn(n,f="xl/workbook.bin",!0))throw new Error("Could not find workbook");h.workbooks.push(f),me=!0}h.workbooks[0].slice(-3)=="bin"&&(me=!0);var g={},v={};if(!o.bookSheets&&!o.bookProps){if(Kc=[],h.sst)try{Kc=Gv(Hn(n,ds(h.sst)),h.sst,o)}catch(mt){if(o.WTF)throw mt}o.cellStyles&&h.themes.length&&(P=ji(n,h.themes[0].replace(/^\//,""),!0)||"",h.themes[0],g=ra(P,o)),h.style&&(v=Pf(Hn(n,ds(h.style)),h.style,g,o))}h.links.map(function(mt){try{return cl(ji(n,Wa(ds(mt))),mt),qv(Hn(n,ds(mt)),0,mt,o)}catch{}});var b,w,E,x=jv(Hn(n,ds(h.workbooks[0])),h.workbooks[0],o),C={},P="";h.coreprops.length&&((P=Hn(n,ds(h.coreprops[0]),!0))&&(C=Tc(P)),h.extprops.length!==0&&(P=Hn(n,ds(h.extprops[0]),!0))&&(O=o,E={},w=(w=C)||{},b=sn(b=P),To.forEach(function(mt){var rt=(b.match(hc(mt[0]))||[])[1];switch(mt[2]){case"string":rt&&(w[mt[1]]=Ur(rt));break;case"bool":w[mt[1]]=rt==="true";break;case"raw":var Nt=b.match(new RegExp("<"+mt[0]+"[^>]*>([\\s\\S]*?)</"+mt[0]+">"));Nt&&0<Nt.length&&(E[mt[1]]=Nt[1])}}),E.HeadingPairs&&E.TitlesOfParts&&Sc(E.HeadingPairs,E.TitlesOfParts,w,O)));var O={};o.bookSheets&&!o.bookProps||h.custprops.length!==0&&(P=ji(n,ds(h.custprops[0]),!0))&&(O=function(mt,rt){var Nt={},Bt="",qt=mt.match(V2);if(qt)for(var br=0;br!=qt.length;++br){var Ot=qt[br],ot=lr(Ot);switch(ot[0]){case"<?xml":case"<Properties":break;case"<property":Bt=Ur(ot.name);break;case"</property>":Bt=null;break;default:if(Ot.indexOf("<vt:")===0){var hr=Ot.split(">"),Nr=hr[0].slice(4),Tr=hr[1];switch(Nr){case"lpstr":case"bstr":case"lpwstr":Nt[Bt]=Ur(Tr);break;case"bool":Nt[Bt]=mn(Tr);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":Nt[Bt]=parseInt(Tr,10);break;case"r4":case"r8":case"decimal":Nt[Bt]=parseFloat(Tr);break;case"filetime":case"date":Nt[Bt]=pn(Tr);break;case"cy":case"error":Nt[Bt]=Ur(Tr);break;default:if(Nr.slice(-1)=="/")break;rt.WTF&&typeof console<"u"&&console.warn("Unexpected",Ot,Nr,hr)}}else if(Ot.slice(0,2)!=="</"&&rt.WTF)throw new Error(Ot)}}return Nt}(P,o));var j={};if((o.bookSheets||o.bookProps)&&(x.Sheets?c=x.Sheets.map(function(mt){return mt.name}):C.Worksheets&&0<C.SheetNames.length&&(c=C.SheetNames),o.bookProps&&(j.Props=C,j.Custprops=O),o.bookSheets&&c!==void 0&&(j.SheetNames=c),o.bookSheets?j.SheetNames:o.bookProps))return j;c={},P={},o.bookDeps&&h.calcchain&&(P=Kv(Hn(n,ds(h.calcchain)),h.calcchain));var L,R,W=0,K={},q=x.Sheets;C.Worksheets=q.length,C.SheetNames=[];for(var fe=0;fe!=q.length;++fe)C.SheetNames[fe]=q[fe].name;var we=me?"bin":"xml",me=h.workbooks[0].lastIndexOf("/"),Te=(h.workbooks[0].slice(0,me+1)+"_rels/"+h.workbooks[0].slice(me+1)+".rels").replace(/^\//,"");Ai(n,Te)||(Te="xl/_rels/workbook."+we+".rels");var Qe,Xe,Re,ct=cl(ji(n,Te,!0),Te.replace(/_rels.*/,"s5s"));1<=(h.metadata||[]).length&&(o.xlmeta=Qv(Hn(n,ds(h.metadata[0])),h.metadata[0],o)),1<=(h.people||[]).length&&(o.people=(me=Hn(n,ds(h.people[0])),Qe=o,Re=!(Xe=[]),me.replace(ci,function(mt){var rt=lr(mt);switch(Ks(rt[0])){case"<?xml":case"<personList":case"</personList>":break;case"<person":Xe.push({name:rt.displayname,id:rt.id});break;case"</person>":break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":Re=!0;break;case"</ext>":Re=!1;break;default:if(!Re&&Qe.WTF)throw new Error("unrecognized "+rt[0]+" in threaded comments")}return mt}),Xe)),ct=ct&&On(ct,x.Sheets);var At=Hn(n,"xl/worksheets/sheet.xml",!0)?1:0;e:for(W=0;W!=C.Worksheets;++W){var Dt="sheet";if(ct&&ct[W]?(L="xl/"+ct[W][1].replace(/[\/]?xl\//,""),Ai(n,L)||(L=ct[W][1]),Ai(n,L)||(L=Te.replace(/_rels\/.*$/,"")+ct[W][1]),Dt=ct[W][2]):L=(L="xl/worksheets/sheet"+(W+1-At)+"."+we).replace(/sheet0\./,"sheet."),R=L.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),o&&o.sheets!=null)switch(typeof o.sheets){case"number":if(W!=o.sheets)continue e;break;case"string":if(C.SheetNames[W].toLowerCase()!=o.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(o.sheets)){for(var gt=!1,pt=0;pt!=o.sheets.length;++pt)typeof o.sheets[pt]=="number"&&o.sheets[pt]==W&&(gt=1),typeof o.sheets[pt]=="string"&&o.sheets[pt].toLowerCase()==C.SheetNames[W].toLowerCase()&&(gt=1);if(!gt)continue e}}Am(n,L,R,C.SheetNames[W],W,K,c,Dt,o,x,g,v)}return j={Directory:h,Workbook:x,Props:C,Custprops:O,Deps:P,Sheets:c,SheetNames:C.SheetNames,Strings:Kc,Styles:v,Themes:g,SSF:nn(be)},o&&o.bookFiles&&(n.files?(j.keys=d,j.files=n.files):(j.keys=[],j.files={},n.FullPaths.forEach(function(mt,rt){mt=mt.replace(/^Root Entry[\/]/,""),j.keys.push(mt),j.files[mt]=n.FileIndex[rt]}))),o&&o.bookVBA&&(0<h.vba.length?j.vbaraw=Hn(n,ds(h.vba[0]),!0):h.defaults&&h.defaults.bin===Af&&(j.vbaraw=Hn(n,"xl/vbaProject.bin",!0))),j}function db(n,o){var l,c=o||{},f="Workbook",d=Zt.find(n,f);try{if(f="/!DataSpaces/Version",!(d=Zt.find(n,f))||!d.content)throw new Error("ECMA-376 Encrypted file missing "+f);if(h=d.content,(l={}).id=h.read_shift(0,"lpp4"),l.R=ba(h,4),l.U=ba(h,4),l.W=ba(h,4),f="/!DataSpaces/DataSpaceMap",!(d=Zt.find(n,f))||!d.content)throw new Error("ECMA-376 Encrypted file missing "+f);var h=iv(d.content);if(h.length!==1||h[0].comps.length!==1||h[0].comps[0].t!==0||h[0].name!=="StrongEncryptionDataSpace"||h[0].comps[0].v!=="EncryptedPackage")throw new Error("ECMA-376 Encrypted file bad "+f);if(f="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",!(d=Zt.find(n,f))||!d.content)throw new Error("ECMA-376 Encrypted file missing "+f);if(h=function(g){var v=[];g.l+=4;for(var b=g.read_shift(4);0<b--;)v.push(g.read_shift(0,"lpp4"));return v}(d.content),h.length!=1||h[0]!="StrongEncryptionTransform")throw new Error("ECMA-376 Encrypted file bad "+f);if(f="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",!(d=Zt.find(n,f))||!d.content)throw new Error("ECMA-376 Encrypted file missing "+f);Nc(d.content)}catch{}if(f="/EncryptionInfo",!(d=Zt.find(n,f))||!d.content)throw new Error("ECMA-376 Encrypted file missing "+f);if(o=sv(d.content),f="/EncryptedPackage",!(d=Zt.find(n,f))||!d.content)throw new Error("ECMA-376 Encrypted file missing "+f);if(o[0]==4&&typeof decrypt_agile<"u")return decrypt_agile(o[1],d.content,c.password||"",c);if(o[0]==2&&typeof decrypt_std76<"u")return decrypt_std76(o[1],d.content,c.password||"",c);throw new Error("File is password-protected")}function pb(n,o){return(o.bookType=="ods"?Fm:o.bookType=="numbers"?wa:o.bookType=="xlsb"?function(l,c){Fl=1024,l&&!l.SSF&&(l.SSF=nn(be)),l&&l.SSF&&(il(),Ys(l.SSF),c.revssf=Iu(l.SSF),c.revssf[l.SSF[65535]]=0,c.ssf=l.SSF),c.rels={},c.wbrels={},c.Strings=[],c.Strings.Count=0,c.Strings.Unique=0,qc?c.revStrings=new Map:(c.revStrings={},c.revStrings.foo=[],delete c.revStrings.foo);var f=c.bookType=="xlsb"?"bin":"xml",d=-1<Lo.indexOf(c.bookType),h=Q0();vn(c=c||{});var g=Mu(),v="",b=0;if(c.cellXfs=[],io(c.cellXfs,{},{revssf:{General:0}}),l.Props||(l.Props={}),yr(g,v="docProps/core.xml",L1(l.Props,c)),h.coreprops.push(v),Jr(c.rels,2,v,fr.CORE_PROPS),v="docProps/app.xml",!l.Props||!l.Props.SheetNames)if(l.Workbook&&l.Workbook.Sheets){for(var w=[],E=0;E<l.SheetNames.length;++E)(l.Workbook.Sheets[E]||{}).Hidden!=2&&w.push(l.SheetNames[E]);l.Props.SheetNames=w}else l.Props.SheetNames=l.SheetNames;for(l.Props.Worksheets=l.Props.SheetNames.length,yr(g,v,tf(l.Props)),h.extprops.push(v),Jr(c.rels,3,v,fr.EXT_PROPS),l.Custprops!==l.Props&&0<Fn(l.Custprops||{}).length&&(yr(g,v="docProps/custom.xml",Z0(l.Custprops)),h.custprops.push(v),Jr(c.rels,4,v,fr.CUST_PROPS)),b=1;b<=l.SheetNames.length;++b){var x,C,P,O={"!id":{}},j=l.Sheets[l.SheetNames[b-1]];yr(g,v="xl/worksheets/sheet"+b+"."+f,function(L,R,W,K,q){return(R.slice(-4)===".bin"?Iv:em)(L,W,K,q)}(b-1,v,c,l,O)),h.sheets.push(v),Jr(c.wbrels,-1,"worksheets/sheet"+b+"."+f,fr.WS[0]),j&&(x=j["!comments"],C=!1,P="",x&&0<x.length&&(yr(g,P="xl/comments"+b+"."+f,function(L,R,W){return(R.slice(-4)===".bin"?Ph:Tf)(L)}(x,P)),h.comments.push(P),Jr(O,-1,"../comments"+b+"."+f,fr.CMNT),C=!0),j["!legacy"]&&C&&yr(g,"xl/drawings/vmlDrawing"+b+".vml",na(b,j["!comments"])),delete j["!comments"],delete j["!legacy"]),O["!id"].rId1&&yr(g,Wa(v),ga(O))}return c.Strings!=null&&0<c.Strings.length&&(yr(g,v="xl/sharedStrings."+f,function(L,R,W){return(R.slice(-4)===".bin"?Dh:gf)(L,W)}(c.Strings,v,c)),h.strs.push(v),Jr(c.wbrels,-1,"sharedStrings."+f,fr.SST)),yr(g,v="xl/workbook."+f,function(L,R,W){return(R.slice(-4)===".bin"?zv:om)(L)}(l,v)),h.workbooks.push(v),Jr(c.rels,1,v,fr.WB),yr(g,v="xl/theme/theme1.xml",xf(l.Themes,c)),h.themes.push(v),Jr(c.wbrels,-1,"theme/theme1.xml",fr.THEME),yr(g,v="xl/styles."+f,function(L,R,W){return(R.slice(-4)===".bin"?kh:Oh)(L,W)}(l,v,c)),h.styles.push(v),Jr(c.wbrels,-1,"styles."+f,fr.STY),l.vbaraw&&d&&(yr(g,v="xl/vbaProject.bin",l.vbaraw),h.vba.push(v),Jr(c.wbrels,-1,"vbaProject.bin",fr.VBA)),yr(g,v="xl/metadata."+f,function(L){return(L.slice(-4)===".bin"?Op:kp)()}(v)),h.metadata.push(v),Jr(c.wbrels,-1,"metadata."+f,fr.XLMETA),yr(g,"[Content_Types].xml",xc(h,c)),yr(g,"_rels/.rels",ga(c.rels)),yr(g,"xl/_rels/workbook."+f+".rels",ga(c.wbrels)),delete c.revssf,delete c.ssf,g}:Om)(n,o)}function Om(n,o){Fl=1024,n&&!n.SSF&&(n.SSF=nn(be)),n&&n.SSF&&(il(),Ys(n.SSF),o.revssf=Iu(n.SSF),o.revssf[n.SSF[65535]]=0,o.ssf=n.SSF),o.rels={},o.wbrels={},o.Strings=[],o.Strings.Count=0,o.Strings.Unique=0,qc?o.revStrings=new Map:(o.revStrings={},o.revStrings.foo=[],delete o.revStrings.foo);var l="xml",c=-1<Lo.indexOf(o.bookType),f=Q0();vn(o=o||{});var d=Mu(),h="",g=0;if(o.cellXfs=[],io(o.cellXfs,{},{revssf:{General:0}}),n.Props||(n.Props={}),h="docProps/core.xml",yr(d,h,L1(n.Props,o)),f.coreprops.push(h),Jr(o.rels,2,h,fr.CORE_PROPS),h="docProps/app.xml",!n.Props||!n.Props.SheetNames)if(n.Workbook&&n.Workbook.Sheets){for(var v=[],b=0;b<n.SheetNames.length;++b)(n.Workbook.Sheets[b]||{}).Hidden!=2&&v.push(n.SheetNames[b]);n.Props.SheetNames=v}else n.Props.SheetNames=n.SheetNames;n.Props.Worksheets=n.Props.SheetNames.length,yr(d,h,tf(n.Props)),f.extprops.push(h),Jr(o.rels,3,h,fr.EXT_PROPS),n.Custprops!==n.Props&&0<Fn(n.Custprops||{}).length&&(yr(d,h="docProps/custom.xml",Z0(n.Custprops)),f.custprops.push(h),Jr(o.rels,4,h,fr.CUST_PROPS));var w,E=["SheetJ5"];for(o.tcid=0,g=1;g<=n.SheetNames.length;++g){var x,C,P,O,j={"!id":{}},L=n.Sheets[n.SheetNames[g-1]];yr(d,h="xl/worksheets/sheet"+g+"."+l,em(g-1,o,n,j)),f.sheets.push(h),Jr(o.wbrels,-1,"worksheets/sheet"+g+"."+l,fr.WS[0]),L&&(C=!1,P="",(x=L["!comments"])&&0<x.length&&(O=!1,x.forEach(function(R){R[1].forEach(function(W){W.T==1&&(O=!0)})}),O&&(yr(d,P="xl/threadedComments/threadedComment"+g+"."+l,function(R,W,K){var q=[In,_t("ThreadedComments",null,{xmlns:qn.TCMNT}).replace(/[\/]>/,">")];return R.forEach(function(fe){var we="";(fe[1]||[]).forEach(function(me,Te){var Qe;me.T?(me.a&&W.indexOf(me.a)==-1&&W.push(me.a),Qe={ref:fe[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+K.tcid++).slice(-12)+"}"},Te==0?we=Qe.id:Qe.parentId=we,me.ID=Qe.id,me.a&&(Qe.personId="{54EE7950-7262-4200-6969-"+("000000000000"+W.indexOf(me.a)).slice(-12)+"}"),q.push(_t("threadedComment",ui("text",me.t||""),Qe))):delete me.ID})}),q.push("</ThreadedComments>"),q.join("")}(x,E,o)),f.threadedcomments.push(P),Jr(j,-1,"../threadedComments/threadedComment"+g+"."+l,fr.TCMNT)),yr(d,P="xl/comments"+g+"."+l,Tf(x)),f.comments.push(P),Jr(j,-1,"../comments"+g+"."+l,fr.CMNT),C=!0),L["!legacy"]&&C&&yr(d,"xl/drawings/vmlDrawing"+g+".vml",na(g,L["!comments"])),delete L["!comments"],delete L["!legacy"]),j["!id"].rId1&&yr(d,Wa(h),ga(j))}return o.Strings!=null&&0<o.Strings.length&&(yr(d,h="xl/sharedStrings.xml",gf(o.Strings,o)),f.strs.push(h),Jr(o.wbrels,-1,"sharedStrings.xml",fr.SST)),yr(d,h="xl/workbook.xml",om(n)),f.workbooks.push(h),Jr(o.rels,1,h,fr.WB),yr(d,h="xl/theme/theme1.xml",xf(n.Themes,o)),f.themes.push(h),Jr(o.wbrels,-1,"theme/theme1.xml",fr.THEME),yr(d,h="xl/styles.xml",Oh(n,o)),f.styles.push(h),Jr(o.wbrels,-1,"styles.xml",fr.STY),n.vbaraw&&c&&(yr(d,h="xl/vbaProject.bin",n.vbaraw),f.vba.push(h),Jr(o.wbrels,-1,"vbaProject.bin",fr.VBA)),yr(d,h="xl/metadata.xml",kp()),f.metadata.push(h),Jr(o.wbrels,-1,"metadata.xml",fr.XLMETA),1<E.length&&(yr(d,h="xl/persons/person.xml",(c=E,w=[In,_t("personList",null,{xmlns:qn.TCMNT,"xmlns:x":Do[0]}).replace(/[\/]>/,">")],c.forEach(function(R,W){w.push(_t("person",null,{displayName:R,id:"{54EE7950-7262-4200-6969-"+("000000000000"+W).slice(-12)+"}",userId:R,providerId:"None"}))}),w.push("</personList>"),w.join(""))),f.people.push(h),Jr(o.wbrels,-1,"persons/person.xml",fr.PEOPLE)),yr(d,"[Content_Types].xml",xc(f,o)),yr(d,"_rels/.rels",ga(o.rels)),yr(d,"xl/_rels/workbook.xml.rels",ga(o.wbrels)),delete o.revssf,delete o.ssf,d}function ad(n,o){var l="";switch((o||{}).type||"base64"){case"buffer":return[n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7]];case"base64":l=z(n.slice(0,12));break;case"binary":l=n;break;case"array":return[n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7]];default:throw new Error("Unrecognized type "+(o&&o.type||"undefined"))}return[l.charCodeAt(0),l.charCodeAt(1),l.charCodeAt(2),l.charCodeAt(3),l.charCodeAt(4),l.charCodeAt(5),l.charCodeAt(6),l.charCodeAt(7)]}function od(n,o){var l=0;e:for(;l<n.length;)switch(n.charCodeAt(l)){case 10:case 13:case 32:++l;break;case 60:return Yh(n.slice(l),o);default:break e}return us.to_workbook(n,o)}function Ho(n,o,l,c){return c?(l.type="string",us.to_workbook(n,l)):us.to_workbook(o,l)}function Al(n,o){k();var l=o||{};if(typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer)return Al(new Uint8Array(n),((l=nn(l)).type="array",l));typeof Uint8Array<"u"&&n instanceof Uint8Array&&!l.type&&(l.type=typeof Deno<"u"?"buffer":"array");var c,f,d,h,g,v=n,b=!1;if(l.cellStyles&&(l.cellNF=!0,l.sheetStubs=!0),Bo={},l.dateNF&&(Bo.dateNF=l.dateNF),l.type||(l.type=H&&Buffer.isBuffer(n)?"buffer":"base64"),l.type=="file"&&(l.type=H?"buffer":"binary",v=function(E){if(ma!==void 0)return ma.readFileSync(E);if(typeof Deno<"u")return Deno.readFileSync(E);if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var x=File(E);x.open("r"),x.encoding="binary";var C=x.read();return x.close(),C}catch(P){if(!P.message||!P.message.match(/onstruct/))throw P}throw new Error("Cannot access file "+E)}(n),typeof Uint8Array>"u"||H||(l.type="array")),l.type=="string"&&(b=!0,l.type="binary",l.codepage=65001,v=(w=n).match(/[^\x00-\x7F]/)?xs(w):w),l.type=="array"&&typeof Uint8Array<"u"&&n instanceof Uint8Array&&typeof ArrayBuffer<"u"){var w=new ArrayBuffer(3),w=new Uint8Array(w);if(w.foo="bar",!w.foo)return(l=nn(l)).type="array",Al(Ae(v),l)}switch((c=ad(v,l))[0]){case 208:if(c[1]===207&&c[2]===17&&c[3]===224&&c[4]===161&&c[5]===177&&c[6]===26&&c[7]===225)return h=Zt.read(v,l),g=l,(Zt.find(h,"EncryptedPackage")?db:Lf)(h,g);break;case 9:if(c[1]<=8)return Lf(v,l);break;case 60:return Yh(v,l);case 73:if(c[1]===73&&c[2]===42&&c[3]===0)throw new Error("TIFF Image File is not a spreadsheet");if(c[1]===68)return function(E,x){var C=x||{},P=!!C.WTF;C.WTF=!0;try{var O=qi.to_workbook(E,C);return C.WTF=P,O}catch(j){if(C.WTF=P,!j.message.match(/SYLK bad record ID/)&&P)throw j;return us.to_workbook(E,x)}}(v,l);break;case 84:if(c[1]===65&&c[2]===66&&c[3]===76)return lh.to_workbook(v,l);break;case 80:return c[1]===75&&c[2]<9&&c[3]<9?(d=g=v,(f=(f=l)||{}).type||(f.type=H&&Buffer.isBuffer(g)?"buffer":"base64"),Sm(E1(d,f),f)):Ho(n,v,l,b);case 239:return c[3]===60?Yh(v,l):Ho(n,v,l,b);case 255:if(c[1]===254)return d=v,(f=l).type=="base64"&&(d=z(d)),d=e.utils.decode(1200,d.slice(2),"str"),f.type="binary",od(d,f);if(c[1]===0&&c[2]===2&&c[3]===0)return Qa.to_workbook(v,l);break;case 0:if(c[1]===0&&(2<=c[2]&&c[3]===0||c[2]===0&&(c[3]===8||c[3]===9)))return Qa.to_workbook(v,l);break;case 3:case 131:case 139:case 140:return sh.to_workbook(v,l);case 123:if(c[1]===92&&c[2]===114&&c[3]===116)return bf.to_workbook(v,l);break;case 10:case 13:case 32:return function(E,x){var C="",P=ad(E,x);switch(x.type){case"base64":C=z(E);break;case"binary":C=E;break;case"buffer":C=E.toString("binary");break;case"array":C=_o(E);break;default:throw new Error("Unrecognized type "+x.type)}return P[0]==239&&P[1]==187&&P[2]==191&&(C=sn(C)),x.type="binary",od(C,x)}(v,l);case 137:if(c[1]===80&&c[2]===78&&c[3]===71)throw new Error("PNG Image File is not a spreadsheet")}return-1<of.indexOf(c[0])&&c[2]<=12&&c[3]<=31?sh.to_workbook(v,l):Ho(n,v,l,b)}function km(n,o){return o=o||{},o.type="file",Al(n,o)}function ld(n,o){switch(o.type){case"base64":case"binary":break;case"buffer":case"array":o.type="";break;case"file":return oc(o.file,Zt.write(n,{type:H?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+o.bookType+"' files");default:throw new Error("Unrecognized type "+o.type)}return Zt.write(n,o)}function nu(n,o){var l={},c=H?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(o.compression&&(l.compression="DEFLATE"),o.password)l.type=c;else switch(o.type){case"base64":l.type="base64";break;case"binary":l.type="string";break;case"string":throw new Error("'string' output type invalid for '"+o.bookType+"' files");case"buffer":case"file":l.type=c;break;default:throw new Error("Unrecognized type "+o.type)}if(n=n.FullPaths?Zt.write(n,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[l.type]||l.type,compression:!!o.compression}):n.generate(l),typeof Deno<"u"&&typeof n=="string"){if(o.type=="binary"||o.type=="base64")return n;n=new Uint8Array(ae(n))}return o.password&&typeof encrypt_agile<"u"?ld(encrypt_agile(n,o.password),o):o.type==="file"?oc(o.file,n):o.type=="string"?sn(n):n}function kn(n,o,l){var c=(l=l||"")+n;switch(o.type){case"base64":return ne(xs(c));case"binary":return xs(c);case"string":return n;case"file":return oc(o.file,c,"utf8");case"buffer":return H?Z(c,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(c):kn(c,{type:"binary"}).split("").map(function(f){return f.charCodeAt(0)})}throw new Error("Unrecognized type "+o.type)}function Fa(n,o){switch(o.type){case"string":case"base64":case"binary":for(var l="",c=0;c<n.length;++c)l+=String.fromCharCode(n[c]);return o.type=="base64"?ne(l):o.type=="string"?sn(l):l;case"file":return oc(o.file,n);case"buffer":return n;default:throw new Error("Unrecognized type "+o.type)}}function cd(n,o){k(),am(n);var l,c=nn(o||{});return c.cellStyles&&(c.cellNF=!0,c.sheetStubs=!0),c.type!="array"?(l=n,o=nn((o=c)||{}),nu(Om(l,o),o)):(c.type="binary",n=cd(n,c),c.type="array",ae(n))}function Uf(n,o){k(),am(n);var l=nn(o||{});if(l.cellStyles&&(l.cellNF=!0,l.sheetStubs=!0),l.type=="array")return l.type="binary",o=Uf(n,l),l.type="array",ae(o);var c,f,d,h=0;if(l.sheet&&(h=typeof l.sheet=="number"?l.sheet:n.SheetNames.indexOf(l.sheet),!n.SheetNames[h]))throw new Error("Sheet not found: "+l.sheet+" : "+typeof l.sheet);switch(l.bookType||"xlsb"){case"xml":case"xlml":return kn(dm(n,l),l);case"slk":case"sylk":return kn(qi.from_sheet(n.Sheets[n.SheetNames[h]],l),l);case"htm":case"html":return kn(bm(n.Sheets[n.SheetNames[h]],l),l);case"txt":return function(g,v){switch(v.type){case"base64":return ne(g);case"binary":case"string":return g;case"file":return oc(v.file,g,"binary");case"buffer":return H?Z(g,"binary"):g.split("").map(function(b){return b.charCodeAt(0)})}throw new Error("Unrecognized type "+v.type)}(Ji(n.Sheets[n.SheetNames[h]],l),l);case"csv":return kn(Hf(n.Sheets[n.SheetNames[h]],l),l,"\uFEFF");case"dif":return kn(lh.from_sheet(n.Sheets[n.SheetNames[h]],l),l);case"dbf":return Fa(sh.from_sheet(n.Sheets[n.SheetNames[h]],l),l);case"prn":return kn(us.from_sheet(n.Sheets[n.SheetNames[h]],l),l);case"rtf":return kn(bf.from_sheet(n.Sheets[n.SheetNames[h]],l),l);case"eth":return kn(ff.from_sheet(n.Sheets[n.SheetNames[h]],l),l);case"fods":return kn(Fm(n,l),l);case"wk1":return Fa(Qa.sheet_to_wk1(n.Sheets[n.SheetNames[h]],l),l);case"wk3":return Fa(Qa.book_to_wk3(n,l),l);case"biff2":l.biff||(l.biff=2);case"biff3":l.biff||(l.biff=3);case"biff4":return l.biff||(l.biff=4),Fa(Qh(n,l),l);case"biff5":l.biff||(l.biff=5);case"biff8":case"xla":case"xls":return l.biff||(l.biff=8),ld(nb(n,d=(d=l)||{}),d);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return c=n,d=nn((f=l)||{}),eo=new mb(f),nu(pb(c,d),d);default:throw new Error("Unrecognized bookType |"+l.bookType+"|")}}function ud(n){var o;n.bookType||((o=n.file.slice(n.file.lastIndexOf(".")).toLowerCase()).match(/^\.[a-z]+$/)&&(n.bookType=o.slice(1)),n.bookType={xls:"biff8",htm:"html",slk:"sylk",socialcalc:"eth",Sh33tJS:"WTF"}[n.bookType]||n.bookType)}function Rm(n,o,l){return l=l||{},l.type="file",l.file=o,ud(l),Uf(n,l)}function Pm(n,o,l,c,f,d,h,g){var v=An(l),b=g.defval,w=g.raw||!Object.prototype.hasOwnProperty.call(g,"raw"),E=!0,x=f===1?[]:{};if(f!==1)if(Object.defineProperty)try{Object.defineProperty(x,"__rowNum__",{value:l,enumerable:!1})}catch{x.__rowNum__=l}else x.__rowNum__=l;if(!h||n[l])for(var C=o.s.c;C<=o.e.c;++C){var P=h?n[l][C]:n[c[C]+v];if(P!==void 0&&P.t!==void 0){var O=P.v;switch(P.t){case"z":if(O==null)break;continue;case"e":O=O==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+P.t)}if(d[C]!=null){if(O==null)if(P.t=="e"&&O===null)x[d[C]]=null;else if(b!==void 0)x[d[C]]=b;else{if(!w||O!==null)continue;x[d[C]]=null}else x[d[C]]=w&&(P.t!=="n"||P.t==="n"&&g.rawNumbers!==!1)?O:Qs(P,O,g);O!=null&&(E=!1)}}else b!==void 0&&d[C]!=null&&(x[d[C]]=b)}return{row:x,isempty:E}}function iu(n,o){if(n==null||n["!ref"]==null)return[];var l,c={t:"n",v:0},f=0,d=1,h=[],g="",v={s:{r:0,c:0},e:{r:0,c:0}},b=o||{},w=b.range!=null?b.range:n["!ref"];switch(b.header===1?f=1:b.header==="A"?f=2:Array.isArray(b.header)?f=3:b.header==null&&(f=0),typeof w){case"string":v=Pr(w);break;case"number":(v=Pr(n["!ref"])).s.r=w;break;default:v=w}0<f&&(d=0);var E=An(v.s.r),x=[],C=[],P=0,O=0,j=Array.isArray(n),L=v.s.r,R=0,W={};j&&!n[L]&&(n[L]=[]);for(var K,q=b.skipHidden&&n["!cols"]||[],fe=b.skipHidden&&n["!rows"]||[],R=v.s.c;R<=v.e.c;++R)if(!(q[R]||{}).hidden)switch(x[R]=Or(R),c=j?n[L][R]:n[x[R]+E],f){case 1:h[R]=R-v.s.c;break;case 2:h[R]=x[R];break;case 3:h[R]=b.header[R-v.s.c];break;default:if(g=l=Qs(c=c??{w:"__EMPTY",t:"s"},null,b),O=W[l]||0){for(;g=l+"_"+O++,W[g];);W[l]=O,W[g]=1}else W[l]=1;h[R]=g}for(L=v.s.r+d;L<=v.e.r;++L)(fe[L]||{}).hidden||(K=Pm(n,v,L,x,f,h,j,b)).isempty!==!1&&(f===1?b.blankrows===!1:!b.blankrows)||(C[P++]=K.row);return C.length=P,C}var aa=/"/g;function Dr(n,o,l,c,f,d,h,g){for(var v=!0,b=[],w="",E=An(l),x=o.s.c;x<=o.e.c;++x)if(c[x]){var C=g.dense?(n[l]||[])[x]:n[c[x]+E];if(C==null)w="";else if(C.v!=null){v=!1,w=""+(g.rawNumbers&&C.t=="n"?C.v:Qs(C,null,g));for(var P,O=0;O!==w.length;++O)if((P=w.charCodeAt(O))===f||P===d||P===34||g.forceQuotes){w='"'+w.replace(aa,'""')+'"';break}w=="ID"&&(w='"ID"')}else C.f==null||C.F?w="":(v=!1,0<=(w="="+C.f).indexOf(",")&&(w='"'+w.replace(aa,'""')+'"'));b.push(w)}return g.blankrows===!1&&v?null:b.join(h)}function Hf(n,o){var l=[],c=o??{};if(n==null||n["!ref"]==null)return"";var f=Pr(n["!ref"]),d=c.FS!==void 0?c.FS:",",h=d.charCodeAt(0),g=c.RS!==void 0?c.RS:`
190
190
  `,v=g.charCodeAt(0),b=new RegExp((d=="|"?"\\|":d)+"+$"),w="",E=[];c.dense=Array.isArray(n);for(var x=c.skipHidden&&n["!cols"]||[],C=c.skipHidden&&n["!rows"]||[],P=f.s.c;P<=f.e.c;++P)(x[P]||{}).hidden||(E[P]=Or(P));for(var O=0,j=f.s.r;j<=f.e.r;++j)(C[j]||{}).hidden||(w=Dr(n,f,j,E,h,v,d,c))!=null&&(!(w=c.strip?w.replace(b,""):w)&&c.blankrows===!1||l.push((O++?g:"")+w));return delete c.dense,l.join("")}function Ji(n,o){return(o=o||{}).FS=" ",o.RS=`
191
191
  `,n=Hf(n,o),e===void 0||o.type=="string"?n:(n=e.utils.encode(1200,n,"str"),String.fromCharCode(255)+String.fromCharCode(254)+n)}function fd(w,o,l){var c,f=l||{},d=+!f.skipHeader,h=w||{},g=0,v=0;h&&f.origin!=null&&(typeof f.origin=="number"?g=f.origin:(b=typeof f.origin=="string"?gn(f.origin):f.origin,g=b.r,v=b.c));var b,w={s:{c:0,r:0},e:{c:v,r:g+o.length-1+d}};h["!ref"]?(b=Pr(h["!ref"]),w.e.c=Math.max(w.e.c,b.e.c),w.e.r=Math.max(w.e.r,b.e.r),g==-1&&(g=b.e.r+1,w.e.r=g+o.length-1+d)):g==-1&&(g=0,w.e.r=o.length-1+d);var E=f.header||[],x=0;o.forEach(function(P,O){Fn(P).forEach(function(K){(x=E.indexOf(K))==-1&&(E[x=E.length]=K);var L=P[K],R="z",W="",K=or({c:v+x,r:g+O+d});c=$f(h,K),!L||typeof L!="object"||L instanceof Date?(typeof L=="number"?R="n":typeof L=="boolean"?R="b":typeof L=="string"?R="s":L instanceof Date?(R="d",f.cellDates||(R="n",L=Kn(L)),W=f.dateNF||be[14]):L===null&&f.nullError&&(R="e",L=0),c?(c.t=R,c.v=L,delete c.w,delete c.R,W&&(c.z=W)):h[K]=c={t:R,v:L},W&&(c.z=W)):h[K]=L})}),w.e.c=Math.max(w.e.c,v+E.length-1);var C=An(g);if(d)for(x=0;x<E.length;++x)h[Or(x+v)+C]={t:"s",v:E[x]};return h["!ref"]=vr(w),h}function $f(n,o,l){return typeof o!="string"?$f(n,or(typeof o!="number"?o:{r:o,c:l||0})):Array.isArray(n)?(l=gn(o),n[l.r]||(n[l.r]=[]),n[l.r][l.c]||(n[l.r][l.c]={t:"z"})):n[o]||(n[o]={t:"z"})}function Vr(){return{SheetNames:[],Sheets:{}}}function hd(n,o,l,c){var f=1;if(!l)for(;f<=65535&&n.SheetNames.indexOf(l="Sheet"+f)!=-1;++f,l=void 0);if(!l||65535<=n.SheetNames.length)throw new Error("Too many worksheets");if(c&&0<=n.SheetNames.indexOf(l)){var c=l.match(/(^.*?)(\d+)$/),f=c&&+c[2]||0,d=c&&c[1]||l;for(++f;f<=65535&&n.SheetNames.indexOf(l=d+f)!=-1;++f);}if(Vh(l),0<=n.SheetNames.indexOf(l))throw new Error("Worksheet with name |"+l+"| already exists!");return n.SheetNames.push(l),n.Sheets[l]=o,l}function dd(n,o,l){return o?(n.l={Target:o},l&&(n.l.Tooltip=l)):delete n.l,n}var $o,pd={encode_col:Or,encode_row:An,encode_cell:or,encode_range:vr,decode_col:Qu,decode_row:_c,split_cell:function(n){return n.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")},decode_cell:gn,decode_range:gi,format_cell:Qs,sheet_add_aoa:I1,sheet_add_json:fd,sheet_add_dom:eu,aoa_to_sheet:Cs,json_to_sheet:function(n,o){return fd(null,n,o)},table_to_sheet:tu,table_to_book:function(n,o){return Ba(tu(n,o),o)},sheet_to_csv:Hf,sheet_to_txt:Ji,sheet_to_json:iu,sheet_to_html:bm,sheet_to_formulae:function(n){var o,l="",c="";if(n==null||n["!ref"]==null)return[];for(var f,d=Pr(n["!ref"]),h=[],g=[],v=Array.isArray(n),b=d.s.c;b<=d.e.c;++b)h[b]=Or(b);for(var w=d.s.r;w<=d.e.r;++w)for(f=An(w),b=d.s.c;b<=d.e.c;++b)if(l=h[b]+f,c="",(o=v?(n[w]||[])[b]:n[l])!==void 0){if(o.F!=null){if(l=o.F,!o.f)continue;c=o.f,l.indexOf(":")==-1&&(l=l+":"+l)}if(o.f!=null)c=o.f;else{if(o.t=="z")continue;if(o.t=="n"&&o.v!=null)c=""+o.v;else if(o.t=="b")c=o.v?"TRUE":"FALSE";else if(o.w!==void 0)c="'"+o.w;else{if(o.v===void 0)continue;c=o.t=="s"?"'"+o.v:""+o.v}}g[g.length]=l+"="+c}return g},sheet_to_row_object_array:iu,sheet_get_cell:$f,book_new:Vr,book_append_sheet:hd,book_set_sheet_visibility:function(n,o,l){switch(n.Workbook||(n.Workbook={}),n.Workbook.Sheets||(n.Workbook.Sheets=[]),o=function(c,f){if(typeof f=="number"){if(0<=f&&c.SheetNames.length>f)return f;throw new Error("Cannot find sheet # "+f)}if(typeof f!="string")throw new Error("Cannot find sheet |"+f+"|");if(-1<(c=c.SheetNames.indexOf(f)))return c;throw new Error("Cannot find sheet name |"+f+"|")}(n,o),n.Workbook.Sheets[o]||(n.Workbook.Sheets[o]={}),l){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+l)}n.Workbook.Sheets[o].Hidden=l},cell_set_number_format:function(n,o){return n.z=o,n},cell_set_hyperlink:dd,cell_set_internal_link:function(n,o,l){return dd(n,"#"+o,l)},cell_add_comment:function(n,o,l){n.c||(n.c=[]),n.c.push({t:o,a:l||"SheetJS"})},sheet_set_array_formula:function(n,o,l,c){for(var f=typeof o!="string"?o:Pr(o),d=typeof o=="string"?o:vr(o),h=f.s.r;h<=f.e.r;++h)for(var g=f.s.c;g<=f.e.c;++g){var v=$f(n,h,g);v.t="n",v.F=d,delete v.v,h==f.s.r&&g==f.s.c&&(v.f=l,c&&(v.D=!0))}return n},consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};function Im(n){$o=n}var Sl={to_json:function(n,o){var l=$o({objectMode:!0});if(n==null||n["!ref"]==null)return l.push(null),l;var c,f={t:"n",v:0},d=0,h=1,g=[],v="",b={s:{r:0,c:0},e:{r:0,c:0}},w=o||{},E=w.range!=null?w.range:n["!ref"];switch(w.header===1?d=1:w.header==="A"?d=2:Array.isArray(w.header)&&(d=3),typeof E){case"string":b=Pr(E);break;case"number":(b=Pr(n["!ref"])).s.r=E;break;default:b=E}0<d&&(h=0);var x=An(b.s.r),C=[],P=0,O=Array.isArray(n),j=b.s.r,L=0,R={};O&&!n[j]&&(n[j]=[]);for(var W=w.skipHidden&&n["!cols"]||[],K=w.skipHidden&&n["!rows"]||[],L=b.s.c;L<=b.e.c;++L)if(!(W[L]||{}).hidden)switch(C[L]=Or(L),f=O?n[j][L]:n[C[L]+x],d){case 1:g[L]=L-b.s.c;break;case 2:g[L]=C[L];break;case 3:g[L]=w.header[L-b.s.c];break;default:if(v=c=Qs(f=f??{w:"__EMPTY",t:"s"},null,w),P=R[c]||0){for(;v=c+"_"+P++,R[v];);R[c]=P,R[v]=1}else R[c]=1;g[L]=v}return j=b.s.r+h,l._read=function(){for(;j<=b.e.r;)if(!(K[j-1]||{}).hidden){var q=Pm(n,b,j,C,d,g,O,w);if(++j,q.isempty===!1||(d===1?w.blankrows!==!1:w.blankrows))return void l.push(q.row)}return l.push(null)},l},to_html:function(n,f){var l=$o(),c=f||{},f=c.header!=null?c.header:Zh,d=c.footer!=null?c.footer:gm;l.push(f);var h=gi(n["!ref"]);c.dense=Array.isArray(n),l.push(vm(0,0,c));var g=h.s.r,v=!1;return l._read=function(){if(g>h.e.r)return v||(v=!0,l.push("</table>"+d)),l.push(null);for(;g<=h.e.r;){l.push(Jh(n,h,g,c)),++g;break}},l},to_csv:function(n,o){var l=$o(),c=o??{};if(n==null||n["!ref"]==null)return l.push(null),l;var f=Pr(n["!ref"]),d=c.FS!==void 0?c.FS:",",h=d.charCodeAt(0),g=c.RS!==void 0?c.RS:`
192
- `,v=g.charCodeAt(0),b=new RegExp((d=="|"?"\\|":d)+"+$"),w="",E=[];c.dense=Array.isArray(n);for(var x=c.skipHidden&&n["!cols"]||[],C=c.skipHidden&&n["!rows"]||[],P=f.s.c;P<=f.e.c;++P)(x[P]||{}).hidden||(E[P]=Or(P));var O=f.s.r,j=!1,L=0;return l._read=function(){if(!j)return j=!0,l.push("\uFEFF");for(;O<=f.e.r;)if(++O,!(C[O-1]||{}).hidden&&(w=Dr(n,f,O-1,E,h,v,d,c),w!=null&&((w=c.strip?w.replace(b,""):w)||c.blankrows!==!1)))return l.push((L++?g:"")+w);return l.push(null)},l},set_readable:Im},Mr=function(){function n(o,l,c){return this instanceof n?(this.tagName=o,this._attributes=l||{},this._children=c||[],this._prefix="",this):new n(o,l,c)}return n.prototype.createElement=function(){return new n(arguments)},n.prototype.children=function(){return this._children},n.prototype.append=function(o){return this._children.push(o),this},n.prototype.prefix=function(o){return arguments.length==0?this._prefix:(this._prefix=o,this)},n.prototype.attr=function(o,l){if(l==null)return delete this._attributes[o],this;if(arguments.length==0)return this._attributes;if(typeof o=="string"&&arguments.length==1)return this._attributes.attr[o];if(typeof o=="object"&&arguments.length==1)for(var c in o)this._attributes[c]=o[c];else arguments.length==2&&typeof o=="string"&&(this._attributes[o]=l);return this},n.prototype.escapeAttributeValue=function(o){return'"'+o.replace(/\"/g,"&quot;")+'"'},n.prototype.toXml=function(o){var l=(o=o||this)._prefix;if(l+="<"+o.tagName,o._attributes)for(var c in o._attributes)l+=" "+c+"="+this.escapeAttributeValue(""+o._attributes[c]);if(o._children&&0<o._children.length){l+=">";for(var f=0;f<o._children.length;f++)l+=this.toXml(o._children[f]);l+="</"+o.tagName+">"}else l+="/>";return l},n}(),mb=function(n){var o,l=164,c={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},f={};for(o in c)f[c[o]]=o;var d={};return{initialize:function(h){this.$fonts=Mr("fonts").attr("count",0).attr("x14ac:knownFonts","1"),this.$fills=Mr("fills").attr("count",0),this.$borders=Mr("borders").attr("count",0),this.$numFmts=Mr("numFmts").attr("count",0),this.$cellStyleXfs=Mr("cellStyleXfs"),this.$xf=Mr("xf").attr("numFmtId",0).attr("fontId",0).attr("fillId",0).attr("borderId",0),this.$cellXfs=Mr("cellXfs").attr("count",0),this.$cellStyles=Mr("cellStyles").append(Mr("cellStyle").attr("name","Normal").attr("xfId",0).attr("builtinId",0)),this.$dxfs=Mr("dxfs").attr("count","0"),this.$tableStyles=Mr("tableStyles").attr("count","0").attr("defaultTableStyle","TableStyleMedium9").attr("defaultPivotStyle","PivotStyleMedium4"),this.$styles=Mr("styleSheet").attr("xmlns:mc","http://schemas.openxmlformats.org/markup-compatibility/2006").attr("xmlns:x14ac","http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac").attr("xmlns","http://schemas.openxmlformats.org/spreadsheetml/2006/main").attr("mc:Ignorable","x14ac").prefix('<?xml version="1.0" encoding="UTF-8" standalone="yes"?>').append(this.$numFmts).append(this.$fonts).append(this.$fills).append(this.$borders).append(this.$cellStyleXfs.append(this.$xf)).append(this.$cellXfs).append(this.$cellStyles).append(this.$dxfs).append(this.$tableStyles);var g=h.defaultCellStyle||{};return g.font||(g.font={name:"Calibri",sz:"11"}),g.font.name||(g.font.name="Calibri"),g.font.sz||(g.font.sz=11),g.fill||(g.fill={patternType:"none",fgColor:{}}),g.border||(g.border={}),g.numFmt||(g.numFmt=0),this.defaultStyle=g,h=JSON.parse(JSON.stringify(g)),h.fill={patternType:"gray125",fgColor:{}},this.addStyles([g,h]),this},addStyle:function(h){var g=JSON.stringify(h),v=d[g];return v==null?(v=this._addXf(h),d[g]=v):v=d[g],v},addStyles:function(h){var g=this;return h.map(function(v){return g.addStyle(v)})},_duckTypeStyle:function(h){return typeof h=="object"&&(h.patternFill||h.fgColor)?{fill:h}:h.font||h.numFmt||h.border||h.fill?h:this._getStyleCSS(h)},_getStyleCSS:function(h){return h},_addXf:function(h){var g=this._addFont(h.font),v=this._addFill(h.fill),b=this._addBorder(h.border),w=this._addNumFmt(h.numFmt),E=Mr("xf").attr("numFmtId",w).attr("fontId",g).attr("fillId",v).attr("borderId",b).attr("xfId","0");return 0<g&&E.attr("applyFont","1"),0<v&&E.attr("applyFill","1"),0<b&&E.attr("applyBorder","1"),0<w&&E.attr("applyNumberFormat","1"),h.alignment&&(w=Mr("alignment"),h.alignment.horizontal&&w.attr("horizontal",h.alignment.horizontal),h.alignment.vertical&&w.attr("vertical",h.alignment.vertical),h.alignment.indent&&w.attr("indent",h.alignment.indent),h.alignment.readingOrder&&w.attr("readingOrder",h.alignment.readingOrder),h.alignment.wrapText&&w.attr("wrapText",h.alignment.wrapText),h.alignment.textRotation!=null&&w.attr("textRotation",h.alignment.textRotation),E.append(w).attr("applyAlignment",1)),this.$cellXfs.append(E),E=+this.$cellXfs.children().length,this.$cellXfs.attr("count",E),E-1},_addFont:function(h){if(!h)return 0;var g=Mr("font").append(Mr("sz").attr("val",h.sz||this.defaultStyle.font.sz)).append(Mr("name").attr("val",h.name||this.defaultStyle.font.name));return h.bold&&g.append(Mr("b")),h.underline&&g.append(Mr("u")),h.italic&&g.append(Mr("i")),h.strike&&g.append(Mr("strike")),h.outline&&g.append(Mr("outline")),h.shadow&&g.append(Mr("shadow")),h.vertAlign&&g.append(Mr("vertAlign").attr("val",h.vertAlign)),h.color&&(h.color.theme?(g.append(Mr("color").attr("theme",h.color.theme)),h.color.tint&&g.append(Mr("tint").attr("theme",h.color.tint))):h.color.rgb&&g.append(Mr("color").attr("rgb",h.color.rgb))),this.$fonts.append(g),g=this.$fonts.children().length,this.$fonts.attr("count",g),g-1},_addNumFmt:function(h){if(!h)return 0;if(typeof h=="string"){var g=f[h];if(0<=g)return g}return/^[0-9]+$/.exec(h)?h:(h=h.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"),h=Mr("numFmt").attr("numFmtId",++l).attr("formatCode",h),this.$numFmts.append(h),h=this.$numFmts.children().length,this.$numFmts.attr("count",h),l)},_addFill:function(h){if(!h)return 0;var g,v=Mr("patternFill").attr("patternType",h.patternType||"solid");return h.fgColor&&(g=Mr("fgColor"),h.fgColor.rgb?(h.fgColor.rgb.length==6&&(h.fgColor.rgb="FF"+h.fgColor.rgb),g.attr("rgb",h.fgColor.rgb),v.append(g)):h.fgColor.theme&&(g.attr("theme",h.fgColor.theme),h.fgColor.tint&&g.attr("tint",h.fgColor.tint),v.append(g)),h.bgColor||(h.bgColor={indexed:"64"})),h.bgColor&&(h=Mr("bgColor").attr(h.bgColor),v.append(h)),v=Mr("fill").append(v),this.$fills.append(v),v=this.$fills.children().length,this.$fills.attr("count",v),v-1},_getSubBorder:function(h,g){var v=Mr(h);return g&&(v.attr("style",g.style||"medium"),g.color&&(h=Mr("color"),g.color.auto?h.attr("auto",g.color.auto):g.color.rgb?h.attr("rgb",g.color.rgb):(g.color.theme||g.color.tint)&&(h.attr("theme",g.color.theme||"1"),h.attr("tint",g.color.tint||"0")),v.append(h))),v},_addBorder:function(h){if(!h)return 0;var g=this,v=Mr("border").attr("diagonalUp",h.diagonalUp).attr("diagonalDown",h.diagonalDown);["left","right","top","bottom","diagonal"].forEach(function(w){v.append(g._getSubBorder(w,h[w]))}),this.$borders.append(v);var b=this.$borders.children().length;return this.$borders.attr("count",b),b-1},toXml:function(){return this.$styles.toXml()}}.initialize(n||{})};Lf!==void 0&&(r.parse_xlscfb=Lf),r.parse_zip=Sm,r.read=Al,r.readFile=km,r.readFileSync=km,r.write=Uf,r.writeFile=Rm,r.writeFileSync=Rm,r.writeFileAsync=function(n,o,l,c){var f=l||{};return f.type="file",f.file=n,ud(f),f.type="buffer",c instanceof Function||(c=l),ma.writeFile(n,Uf(o,f),c)},r.utils=pd,r.writeXLSX=cd,r.writeFileXLSX=function(n,o,l){return(l=l||{}).type="file",l.file=o,ud(l),cd(n,l)},r.SSF=b1,Sl!==void 0&&(r.stream=Sl),Zt!==void 0&&(r.CFB=Zt),typeof ug>"u"||((Sl=Hb)||{}).Readable&&Im(Sl.Readable)}if(a(i),typeof window<"u"&&!window.XLSX)try{window.XLSX=s}catch{}})(I_,I_.exports);var jf=I_.exports;function JR({onlyFirst:t=!1}={}){const i=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(i,t?void 0:"g")}const ZR=JR();function eP(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(ZR,"")}var M6={exports:{}};(function(t){var i={};t.exports=i,i.eastAsianWidth=function(a){var r=a.charCodeAt(0),e=a.length==2?a.charCodeAt(1):0,p=r;return 55296<=r&&r<=56319&&56320<=e&&e<=57343&&(r&=1023,e&=1023,p=r<<10|e,p+=65536),p==12288||65281<=p&&p<=65376||65504<=p&&p<=65510?"F":p==8361||65377<=p&&p<=65470||65474<=p&&p<=65479||65482<=p&&p<=65487||65490<=p&&p<=65495||65498<=p&&p<=65500||65512<=p&&p<=65518?"H":4352<=p&&p<=4447||4515<=p&&p<=4519||4602<=p&&p<=4607||9001<=p&&p<=9002||11904<=p&&p<=11929||11931<=p&&p<=12019||12032<=p&&p<=12245||12272<=p&&p<=12283||12289<=p&&p<=12350||12353<=p&&p<=12438||12441<=p&&p<=12543||12549<=p&&p<=12589||12593<=p&&p<=12686||12688<=p&&p<=12730||12736<=p&&p<=12771||12784<=p&&p<=12830||12832<=p&&p<=12871||12880<=p&&p<=13054||13056<=p&&p<=19903||19968<=p&&p<=42124||42128<=p&&p<=42182||43360<=p&&p<=43388||44032<=p&&p<=55203||55216<=p&&p<=55238||55243<=p&&p<=55291||63744<=p&&p<=64255||65040<=p&&p<=65049||65072<=p&&p<=65106||65108<=p&&p<=65126||65128<=p&&p<=65131||110592<=p&&p<=110593||127488<=p&&p<=127490||127504<=p&&p<=127546||127552<=p&&p<=127560||127568<=p&&p<=127569||131072<=p&&p<=194367||177984<=p&&p<=196605||196608<=p&&p<=262141?"W":32<=p&&p<=126||162<=p&&p<=163||165<=p&&p<=166||p==172||p==175||10214<=p&&p<=10221||10629<=p&&p<=10630?"Na":p==161||p==164||167<=p&&p<=168||p==170||173<=p&&p<=174||176<=p&&p<=180||182<=p&&p<=186||188<=p&&p<=191||p==198||p==208||215<=p&&p<=216||222<=p&&p<=225||p==230||232<=p&&p<=234||236<=p&&p<=237||p==240||242<=p&&p<=243||247<=p&&p<=250||p==252||p==254||p==257||p==273||p==275||p==283||294<=p&&p<=295||p==299||305<=p&&p<=307||p==312||319<=p&&p<=322||p==324||328<=p&&p<=331||p==333||338<=p&&p<=339||358<=p&&p<=359||p==363||p==462||p==464||p==466||p==468||p==470||p==472||p==474||p==476||p==593||p==609||p==708||p==711||713<=p&&p<=715||p==717||p==720||728<=p&&p<=731||p==733||p==735||768<=p&&p<=879||913<=p&&p<=929||931<=p&&p<=937||945<=p&&p<=961||963<=p&&p<=969||p==1025||1040<=p&&p<=1103||p==1105||p==8208||8211<=p&&p<=8214||8216<=p&&p<=8217||8220<=p&&p<=8221||8224<=p&&p<=8226||8228<=p&&p<=8231||p==8240||8242<=p&&p<=8243||p==8245||p==8251||p==8254||p==8308||p==8319||8321<=p&&p<=8324||p==8364||p==8451||p==8453||p==8457||p==8467||p==8470||8481<=p&&p<=8482||p==8486||p==8491||8531<=p&&p<=8532||8539<=p&&p<=8542||8544<=p&&p<=8555||8560<=p&&p<=8569||p==8585||8592<=p&&p<=8601||8632<=p&&p<=8633||p==8658||p==8660||p==8679||p==8704||8706<=p&&p<=8707||8711<=p&&p<=8712||p==8715||p==8719||p==8721||p==8725||p==8730||8733<=p&&p<=8736||p==8739||p==8741||8743<=p&&p<=8748||p==8750||8756<=p&&p<=8759||8764<=p&&p<=8765||p==8776||p==8780||p==8786||8800<=p&&p<=8801||8804<=p&&p<=8807||8810<=p&&p<=8811||8814<=p&&p<=8815||8834<=p&&p<=8835||8838<=p&&p<=8839||p==8853||p==8857||p==8869||p==8895||p==8978||9312<=p&&p<=9449||9451<=p&&p<=9547||9552<=p&&p<=9587||9600<=p&&p<=9615||9618<=p&&p<=9621||9632<=p&&p<=9633||9635<=p&&p<=9641||9650<=p&&p<=9651||9654<=p&&p<=9655||9660<=p&&p<=9661||9664<=p&&p<=9665||9670<=p&&p<=9672||p==9675||9678<=p&&p<=9681||9698<=p&&p<=9701||p==9711||9733<=p&&p<=9734||p==9737||9742<=p&&p<=9743||9748<=p&&p<=9749||p==9756||p==9758||p==9792||p==9794||9824<=p&&p<=9825||9827<=p&&p<=9829||9831<=p&&p<=9834||9836<=p&&p<=9837||p==9839||9886<=p&&p<=9887||9918<=p&&p<=9919||9924<=p&&p<=9933||9935<=p&&p<=9953||p==9955||9960<=p&&p<=9983||p==10045||p==10071||10102<=p&&p<=10111||11093<=p&&p<=11097||12872<=p&&p<=12879||57344<=p&&p<=63743||65024<=p&&p<=65039||p==65533||127232<=p&&p<=127242||127248<=p&&p<=127277||127280<=p&&p<=127337||127344<=p&&p<=127386||917760<=p&&p<=917999||983040<=p&&p<=1048573||1048576<=p&&p<=1114109?"A":"N"},i.characterLength=function(a){var r=this.eastAsianWidth(a);return r=="F"||r=="W"||r=="A"?2:1};function s(a){return a.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}i.length=function(a){for(var r=s(a),e=0,p=0;p<r.length;p++)e=e+this.characterLength(r[p]);return e},i.slice=function(a,r,e){textLen=i.length(a),r=r||0,e=e||1,r<0&&(r=textLen+r),e<0&&(e=textLen+e);for(var p="",_=0,D=s(a),F=0;F<D.length;F++){var T=D[F],A=i.length(T);if(_>=r-(A==2?1:0))if(_+A<=e)p+=T;else break;_+=A}return p}})(M6);var tP=M6.exports;const rP=js(tP),nP=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function iP(t,i){if(typeof t!="string"||t.length===0||(i={ambiguousIsNarrow:!0,countAnsiEscapeCodes:!1,...i},i.countAnsiEscapeCodes||(t=eP(t)),t.length===0))return 0;const s=i.ambiguousIsNarrow?1:2;let a=0;for(const{segment:r}of new Intl.Segmenter().segment(t)){const e=r.codePointAt(0);if(e<=31||e>=127&&e<=159||e>=768&&e<=879)continue;if(nP().test(r)){a+=2;continue}switch(rP.eastAsianWidth(r)){case"F":case"W":{a+=2;break}case"A":{a+=s;break}default:a+=1}}return a}function sP(t){return t=t.toUpperCase().replace(" ","_"),["OK","AC",xt.ACCEPTED.toString()].includes(t)||[xt.CORRECT.toString()].includes(t)?xt.ACCEPTED:[xt.PARTIALLY_CORRECT.toString()].includes(t)?xt.PARTIALLY_CORRECT:["WA",xt.WRONG_ANSWER.toString()].includes(t)?xt.WRONG_ANSWER:["RJ","INCORRECT",xt.REJECTED.toString()].includes(t)?xt.REJECTED:["PD",xt.PENDING.toString()].includes(t)?xt.PENDING:[xt.WAITING.toString()].includes(t)?xt.WAITING:[xt.JUDGING.toString()].includes(t)?xt.JUDGING:[xt.FROZEN.toString()].includes(t)?xt.FROZEN:["CE",xt.COMPILATION_ERROR.toString()].includes(t)?xt.COMPILATION_ERROR:["PE",xt.PRESENTATION_ERROR.toString()].includes(t)?xt.PRESENTATION_ERROR:["TL","TLE",xt.TIME_LIMIT_EXCEEDED.toString()].includes(t)?xt.TIME_LIMIT_EXCEEDED:["ML","MLE",xt.MEMORY_LIMIT_EXCEEDED.toString()].includes(t)?xt.MEMORY_LIMIT_EXCEEDED:["OL","OLE",xt.OUTPUT_LIMIT_EXCEEDED.toString()].includes(t)?xt.OUTPUT_LIMIT_EXCEEDED:["IL","ILE",xt.IDLENESS_LIMIT_EXCEEDED.toString()].includes(t)?xt.IDLENESS_LIMIT_EXCEEDED:["RT","RE","RTE",xt.RUNTIME_ERROR.toString()].includes(t)?xt.RUNTIME_ERROR:["JE",xt.JUDGEMENT_FAILED.toString()].includes(t)?xt.JUDGEMENT_FAILED:["SE",xt.SYSTEM_ERROR.toString()].includes(t)?xt.SYSTEM_ERROR:[xt.HACKED.toString()].includes(t)?xt.HACKED:[xt.CONFIGURATION_ERROR.toString()].includes(t)?xt.CONFIGURATION_ERROR:[xt.CANCELED.toString()].includes(t)?xt.CANCELED:[xt.SKIPPED.toString()].includes(t)?xt.SKIPPED:[xt.SECURITY_VIOLATED.toString()].includes(t)?xt.SECURITY_VIOLATED:[xt.DENIAL_OF_JUDGEMENT.toString()].includes(t)?xt.DENIAL_OF_JUDGEMENT:xt.UNKNOWN}function B6(t){return[xt.ACCEPTED,xt.CORRECT].includes(t)}function aP(t){return[xt.RUNTIME_ERROR,xt.TIME_LIMIT_EXCEEDED,xt.MEMORY_LIMIT_EXCEEDED,xt.OUTPUT_LIMIT_EXCEEDED,xt.IDLENESS_LIMIT_EXCEEDED,xt.WRONG_ANSWER,xt.REJECTED,xt.JUDGEMENT_FAILED,xt.HACKED].includes(t)}function U6(t){return[xt.PENDING,xt.WAITING,xt.COMPILING,xt.JUDGING,xt.FROZEN].includes(t)}function H6(t){return[xt.COMPILATION_ERROR,xt.PRESENTATION_ERROR,xt.CONFIGURATION_ERROR,xt.SYSTEM_ERROR,xt.CANCELED,xt.SKIPPED,xt.UNKNOWN,xt.UNDEFINED].includes(t)}Wi.extend(PR);Wi.extend(NR);Wi.extend(MR);Wi.extend(UR);Wi.extend($R);Wi.extend(zR);Wi.extend(VR);Wi.extend(YR);function Bs(t=void 0){return t===void 0?Wi():typeof t=="number"&&String(t).length===10?Wi.unix(t):Wi(t)}function fg(t){const i=e=>e<10?`0${e}`:String(e),s=Math.floor(t/3600),a=Math.floor(t%3600/60),r=t%60;return[i(s),i(a),i(r)].join(":")}class $I{constructor(){}convert(i){let s="";s+=`@contest "${i.contest.name}"
192
+ `,v=g.charCodeAt(0),b=new RegExp((d=="|"?"\\|":d)+"+$"),w="",E=[];c.dense=Array.isArray(n);for(var x=c.skipHidden&&n["!cols"]||[],C=c.skipHidden&&n["!rows"]||[],P=f.s.c;P<=f.e.c;++P)(x[P]||{}).hidden||(E[P]=Or(P));var O=f.s.r,j=!1,L=0;return l._read=function(){if(!j)return j=!0,l.push("\uFEFF");for(;O<=f.e.r;)if(++O,!(C[O-1]||{}).hidden&&(w=Dr(n,f,O-1,E,h,v,d,c),w!=null&&((w=c.strip?w.replace(b,""):w)||c.blankrows!==!1)))return l.push((L++?g:"")+w);return l.push(null)},l},set_readable:Im},Mr=function(){function n(o,l,c){return this instanceof n?(this.tagName=o,this._attributes=l||{},this._children=c||[],this._prefix="",this):new n(o,l,c)}return n.prototype.createElement=function(){return new n(arguments)},n.prototype.children=function(){return this._children},n.prototype.append=function(o){return this._children.push(o),this},n.prototype.prefix=function(o){return arguments.length==0?this._prefix:(this._prefix=o,this)},n.prototype.attr=function(o,l){if(l==null)return delete this._attributes[o],this;if(arguments.length==0)return this._attributes;if(typeof o=="string"&&arguments.length==1)return this._attributes.attr[o];if(typeof o=="object"&&arguments.length==1)for(var c in o)this._attributes[c]=o[c];else arguments.length==2&&typeof o=="string"&&(this._attributes[o]=l);return this},n.prototype.escapeAttributeValue=function(o){return'"'+o.replace(/\"/g,"&quot;")+'"'},n.prototype.toXml=function(o){var l=(o=o||this)._prefix;if(l+="<"+o.tagName,o._attributes)for(var c in o._attributes)l+=" "+c+"="+this.escapeAttributeValue(""+o._attributes[c]);if(o._children&&0<o._children.length){l+=">";for(var f=0;f<o._children.length;f++)l+=this.toXml(o._children[f]);l+="</"+o.tagName+">"}else l+="/>";return l},n}(),mb=function(n){var o,l=164,c={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},f={};for(o in c)f[c[o]]=o;var d={};return{initialize:function(h){this.$fonts=Mr("fonts").attr("count",0).attr("x14ac:knownFonts","1"),this.$fills=Mr("fills").attr("count",0),this.$borders=Mr("borders").attr("count",0),this.$numFmts=Mr("numFmts").attr("count",0),this.$cellStyleXfs=Mr("cellStyleXfs"),this.$xf=Mr("xf").attr("numFmtId",0).attr("fontId",0).attr("fillId",0).attr("borderId",0),this.$cellXfs=Mr("cellXfs").attr("count",0),this.$cellStyles=Mr("cellStyles").append(Mr("cellStyle").attr("name","Normal").attr("xfId",0).attr("builtinId",0)),this.$dxfs=Mr("dxfs").attr("count","0"),this.$tableStyles=Mr("tableStyles").attr("count","0").attr("defaultTableStyle","TableStyleMedium9").attr("defaultPivotStyle","PivotStyleMedium4"),this.$styles=Mr("styleSheet").attr("xmlns:mc","http://schemas.openxmlformats.org/markup-compatibility/2006").attr("xmlns:x14ac","http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac").attr("xmlns","http://schemas.openxmlformats.org/spreadsheetml/2006/main").attr("mc:Ignorable","x14ac").prefix('<?xml version="1.0" encoding="UTF-8" standalone="yes"?>').append(this.$numFmts).append(this.$fonts).append(this.$fills).append(this.$borders).append(this.$cellStyleXfs.append(this.$xf)).append(this.$cellXfs).append(this.$cellStyles).append(this.$dxfs).append(this.$tableStyles);var g=h.defaultCellStyle||{};return g.font||(g.font={name:"Calibri",sz:"11"}),g.font.name||(g.font.name="Calibri"),g.font.sz||(g.font.sz=11),g.fill||(g.fill={patternType:"none",fgColor:{}}),g.border||(g.border={}),g.numFmt||(g.numFmt=0),this.defaultStyle=g,h=JSON.parse(JSON.stringify(g)),h.fill={patternType:"gray125",fgColor:{}},this.addStyles([g,h]),this},addStyle:function(h){var g=JSON.stringify(h),v=d[g];return v==null?(v=this._addXf(h),d[g]=v):v=d[g],v},addStyles:function(h){var g=this;return h.map(function(v){return g.addStyle(v)})},_duckTypeStyle:function(h){return typeof h=="object"&&(h.patternFill||h.fgColor)?{fill:h}:h.font||h.numFmt||h.border||h.fill?h:this._getStyleCSS(h)},_getStyleCSS:function(h){return h},_addXf:function(h){var g=this._addFont(h.font),v=this._addFill(h.fill),b=this._addBorder(h.border),w=this._addNumFmt(h.numFmt),E=Mr("xf").attr("numFmtId",w).attr("fontId",g).attr("fillId",v).attr("borderId",b).attr("xfId","0");return 0<g&&E.attr("applyFont","1"),0<v&&E.attr("applyFill","1"),0<b&&E.attr("applyBorder","1"),0<w&&E.attr("applyNumberFormat","1"),h.alignment&&(w=Mr("alignment"),h.alignment.horizontal&&w.attr("horizontal",h.alignment.horizontal),h.alignment.vertical&&w.attr("vertical",h.alignment.vertical),h.alignment.indent&&w.attr("indent",h.alignment.indent),h.alignment.readingOrder&&w.attr("readingOrder",h.alignment.readingOrder),h.alignment.wrapText&&w.attr("wrapText",h.alignment.wrapText),h.alignment.textRotation!=null&&w.attr("textRotation",h.alignment.textRotation),E.append(w).attr("applyAlignment",1)),this.$cellXfs.append(E),E=+this.$cellXfs.children().length,this.$cellXfs.attr("count",E),E-1},_addFont:function(h){if(!h)return 0;var g=Mr("font").append(Mr("sz").attr("val",h.sz||this.defaultStyle.font.sz)).append(Mr("name").attr("val",h.name||this.defaultStyle.font.name));return h.bold&&g.append(Mr("b")),h.underline&&g.append(Mr("u")),h.italic&&g.append(Mr("i")),h.strike&&g.append(Mr("strike")),h.outline&&g.append(Mr("outline")),h.shadow&&g.append(Mr("shadow")),h.vertAlign&&g.append(Mr("vertAlign").attr("val",h.vertAlign)),h.color&&(h.color.theme?(g.append(Mr("color").attr("theme",h.color.theme)),h.color.tint&&g.append(Mr("tint").attr("theme",h.color.tint))):h.color.rgb&&g.append(Mr("color").attr("rgb",h.color.rgb))),this.$fonts.append(g),g=this.$fonts.children().length,this.$fonts.attr("count",g),g-1},_addNumFmt:function(h){if(!h)return 0;if(typeof h=="string"){var g=f[h];if(0<=g)return g}return/^[0-9]+$/.exec(h)?h:(h=h.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"),h=Mr("numFmt").attr("numFmtId",++l).attr("formatCode",h),this.$numFmts.append(h),h=this.$numFmts.children().length,this.$numFmts.attr("count",h),l)},_addFill:function(h){if(!h)return 0;var g,v=Mr("patternFill").attr("patternType",h.patternType||"solid");return h.fgColor&&(g=Mr("fgColor"),h.fgColor.rgb?(h.fgColor.rgb.length==6&&(h.fgColor.rgb="FF"+h.fgColor.rgb),g.attr("rgb",h.fgColor.rgb),v.append(g)):h.fgColor.theme&&(g.attr("theme",h.fgColor.theme),h.fgColor.tint&&g.attr("tint",h.fgColor.tint),v.append(g)),h.bgColor||(h.bgColor={indexed:"64"})),h.bgColor&&(h=Mr("bgColor").attr(h.bgColor),v.append(h)),v=Mr("fill").append(v),this.$fills.append(v),v=this.$fills.children().length,this.$fills.attr("count",v),v-1},_getSubBorder:function(h,g){var v=Mr(h);return g&&(v.attr("style",g.style||"medium"),g.color&&(h=Mr("color"),g.color.auto?h.attr("auto",g.color.auto):g.color.rgb?h.attr("rgb",g.color.rgb):(g.color.theme||g.color.tint)&&(h.attr("theme",g.color.theme||"1"),h.attr("tint",g.color.tint||"0")),v.append(h))),v},_addBorder:function(h){if(!h)return 0;var g=this,v=Mr("border").attr("diagonalUp",h.diagonalUp).attr("diagonalDown",h.diagonalDown);["left","right","top","bottom","diagonal"].forEach(function(w){v.append(g._getSubBorder(w,h[w]))}),this.$borders.append(v);var b=this.$borders.children().length;return this.$borders.attr("count",b),b-1},toXml:function(){return this.$styles.toXml()}}.initialize(n||{})};Lf!==void 0&&(r.parse_xlscfb=Lf),r.parse_zip=Sm,r.read=Al,r.readFile=km,r.readFileSync=km,r.write=Uf,r.writeFile=Rm,r.writeFileSync=Rm,r.writeFileAsync=function(n,o,l,c){var f=l||{};return f.type="file",f.file=n,ud(f),f.type="buffer",c instanceof Function||(c=l),ma.writeFile(n,Uf(o,f),c)},r.utils=pd,r.writeXLSX=cd,r.writeFileXLSX=function(n,o,l){return(l=l||{}).type="file",l.file=o,ud(l),cd(n,l)},r.SSF=b1,Sl!==void 0&&(r.stream=Sl),Zt!==void 0&&(r.CFB=Zt),typeof ug>"u"||((Sl=Hb)||{}).Readable&&Im(Sl.Readable)}if(a(i),typeof window<"u"&&!window.XLSX)try{window.XLSX=s}catch{}})(I_,I_.exports);var jf=I_.exports;function JR({onlyFirst:t=!1}={}){const i=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(i,t?void 0:"g")}const ZR=JR();function eP(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(ZR,"")}var M6={exports:{}};(function(t){var i={};t.exports=i,i.eastAsianWidth=function(a){var r=a.charCodeAt(0),e=a.length==2?a.charCodeAt(1):0,p=r;return 55296<=r&&r<=56319&&56320<=e&&e<=57343&&(r&=1023,e&=1023,p=r<<10|e,p+=65536),p==12288||65281<=p&&p<=65376||65504<=p&&p<=65510?"F":p==8361||65377<=p&&p<=65470||65474<=p&&p<=65479||65482<=p&&p<=65487||65490<=p&&p<=65495||65498<=p&&p<=65500||65512<=p&&p<=65518?"H":4352<=p&&p<=4447||4515<=p&&p<=4519||4602<=p&&p<=4607||9001<=p&&p<=9002||11904<=p&&p<=11929||11931<=p&&p<=12019||12032<=p&&p<=12245||12272<=p&&p<=12283||12289<=p&&p<=12350||12353<=p&&p<=12438||12441<=p&&p<=12543||12549<=p&&p<=12589||12593<=p&&p<=12686||12688<=p&&p<=12730||12736<=p&&p<=12771||12784<=p&&p<=12830||12832<=p&&p<=12871||12880<=p&&p<=13054||13056<=p&&p<=19903||19968<=p&&p<=42124||42128<=p&&p<=42182||43360<=p&&p<=43388||44032<=p&&p<=55203||55216<=p&&p<=55238||55243<=p&&p<=55291||63744<=p&&p<=64255||65040<=p&&p<=65049||65072<=p&&p<=65106||65108<=p&&p<=65126||65128<=p&&p<=65131||110592<=p&&p<=110593||127488<=p&&p<=127490||127504<=p&&p<=127546||127552<=p&&p<=127560||127568<=p&&p<=127569||131072<=p&&p<=194367||177984<=p&&p<=196605||196608<=p&&p<=262141?"W":32<=p&&p<=126||162<=p&&p<=163||165<=p&&p<=166||p==172||p==175||10214<=p&&p<=10221||10629<=p&&p<=10630?"Na":p==161||p==164||167<=p&&p<=168||p==170||173<=p&&p<=174||176<=p&&p<=180||182<=p&&p<=186||188<=p&&p<=191||p==198||p==208||215<=p&&p<=216||222<=p&&p<=225||p==230||232<=p&&p<=234||236<=p&&p<=237||p==240||242<=p&&p<=243||247<=p&&p<=250||p==252||p==254||p==257||p==273||p==275||p==283||294<=p&&p<=295||p==299||305<=p&&p<=307||p==312||319<=p&&p<=322||p==324||328<=p&&p<=331||p==333||338<=p&&p<=339||358<=p&&p<=359||p==363||p==462||p==464||p==466||p==468||p==470||p==472||p==474||p==476||p==593||p==609||p==708||p==711||713<=p&&p<=715||p==717||p==720||728<=p&&p<=731||p==733||p==735||768<=p&&p<=879||913<=p&&p<=929||931<=p&&p<=937||945<=p&&p<=961||963<=p&&p<=969||p==1025||1040<=p&&p<=1103||p==1105||p==8208||8211<=p&&p<=8214||8216<=p&&p<=8217||8220<=p&&p<=8221||8224<=p&&p<=8226||8228<=p&&p<=8231||p==8240||8242<=p&&p<=8243||p==8245||p==8251||p==8254||p==8308||p==8319||8321<=p&&p<=8324||p==8364||p==8451||p==8453||p==8457||p==8467||p==8470||8481<=p&&p<=8482||p==8486||p==8491||8531<=p&&p<=8532||8539<=p&&p<=8542||8544<=p&&p<=8555||8560<=p&&p<=8569||p==8585||8592<=p&&p<=8601||8632<=p&&p<=8633||p==8658||p==8660||p==8679||p==8704||8706<=p&&p<=8707||8711<=p&&p<=8712||p==8715||p==8719||p==8721||p==8725||p==8730||8733<=p&&p<=8736||p==8739||p==8741||8743<=p&&p<=8748||p==8750||8756<=p&&p<=8759||8764<=p&&p<=8765||p==8776||p==8780||p==8786||8800<=p&&p<=8801||8804<=p&&p<=8807||8810<=p&&p<=8811||8814<=p&&p<=8815||8834<=p&&p<=8835||8838<=p&&p<=8839||p==8853||p==8857||p==8869||p==8895||p==8978||9312<=p&&p<=9449||9451<=p&&p<=9547||9552<=p&&p<=9587||9600<=p&&p<=9615||9618<=p&&p<=9621||9632<=p&&p<=9633||9635<=p&&p<=9641||9650<=p&&p<=9651||9654<=p&&p<=9655||9660<=p&&p<=9661||9664<=p&&p<=9665||9670<=p&&p<=9672||p==9675||9678<=p&&p<=9681||9698<=p&&p<=9701||p==9711||9733<=p&&p<=9734||p==9737||9742<=p&&p<=9743||9748<=p&&p<=9749||p==9756||p==9758||p==9792||p==9794||9824<=p&&p<=9825||9827<=p&&p<=9829||9831<=p&&p<=9834||9836<=p&&p<=9837||p==9839||9886<=p&&p<=9887||9918<=p&&p<=9919||9924<=p&&p<=9933||9935<=p&&p<=9953||p==9955||9960<=p&&p<=9983||p==10045||p==10071||10102<=p&&p<=10111||11093<=p&&p<=11097||12872<=p&&p<=12879||57344<=p&&p<=63743||65024<=p&&p<=65039||p==65533||127232<=p&&p<=127242||127248<=p&&p<=127277||127280<=p&&p<=127337||127344<=p&&p<=127386||917760<=p&&p<=917999||983040<=p&&p<=1048573||1048576<=p&&p<=1114109?"A":"N"},i.characterLength=function(a){var r=this.eastAsianWidth(a);return r=="F"||r=="W"||r=="A"?2:1};function s(a){return a.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}i.length=function(a){for(var r=s(a),e=0,p=0;p<r.length;p++)e=e+this.characterLength(r[p]);return e},i.slice=function(a,r,e){textLen=i.length(a),r=r||0,e=e||1,r<0&&(r=textLen+r),e<0&&(e=textLen+e);for(var p="",_=0,D=s(a),F=0;F<D.length;F++){var T=D[F],A=i.length(T);if(_>=r-(A==2?1:0))if(_+A<=e)p+=T;else break;_+=A}return p}})(M6);var tP=M6.exports;const rP=js(tP),nP=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function iP(t,i){if(typeof t!="string"||t.length===0||(i={ambiguousIsNarrow:!0,countAnsiEscapeCodes:!1,...i},i.countAnsiEscapeCodes||(t=eP(t)),t.length===0))return 0;const s=i.ambiguousIsNarrow?1:2;let a=0;for(const{segment:r}of new Intl.Segmenter().segment(t)){const e=r.codePointAt(0);if(e<=31||e>=127&&e<=159||e>=768&&e<=879)continue;if(nP().test(r)){a+=2;continue}switch(rP.eastAsianWidth(r)){case"F":case"W":{a+=2;break}case"A":{a+=s;break}default:a+=1}}return a}function sP(t){return t=t.toUpperCase().replace(" ","_"),["OK","AC",xt.ACCEPTED.toString()].includes(t)||[xt.CORRECT.toString()].includes(t)?xt.ACCEPTED:[xt.PARTIALLY_CORRECT.toString()].includes(t)?xt.PARTIALLY_CORRECT:["WA",xt.WRONG_ANSWER.toString()].includes(t)?xt.WRONG_ANSWER:["RJ","INCORRECT",xt.REJECTED.toString()].includes(t)?xt.REJECTED:["PD",xt.PENDING.toString()].includes(t)?xt.PENDING:[xt.WAITING.toString()].includes(t)?xt.WAITING:[xt.JUDGING.toString()].includes(t)?xt.JUDGING:[xt.FROZEN.toString()].includes(t)?xt.FROZEN:["CE",xt.COMPILATION_ERROR.toString()].includes(t)?xt.COMPILATION_ERROR:["PE",xt.PRESENTATION_ERROR.toString()].includes(t)?xt.PRESENTATION_ERROR:["TL","TLE",xt.TIME_LIMIT_EXCEEDED.toString()].includes(t)?xt.TIME_LIMIT_EXCEEDED:["ML","MLE",xt.MEMORY_LIMIT_EXCEEDED.toString()].includes(t)?xt.MEMORY_LIMIT_EXCEEDED:["OL","OLE",xt.OUTPUT_LIMIT_EXCEEDED.toString()].includes(t)?xt.OUTPUT_LIMIT_EXCEEDED:["IL","ILE",xt.IDLENESS_LIMIT_EXCEEDED.toString()].includes(t)?xt.IDLENESS_LIMIT_EXCEEDED:["RT","RE","RTE",xt.RUNTIME_ERROR.toString()].includes(t)?xt.RUNTIME_ERROR:["JE",xt.JUDGEMENT_FAILED.toString()].includes(t)?xt.JUDGEMENT_FAILED:["SE",xt.SYSTEM_ERROR.toString()].includes(t)?xt.SYSTEM_ERROR:[xt.HACKED.toString()].includes(t)?xt.HACKED:[xt.CONFIGURATION_ERROR.toString()].includes(t)?xt.CONFIGURATION_ERROR:[xt.CANCELED.toString()].includes(t)?xt.CANCELED:[xt.SKIPPED.toString()].includes(t)?xt.SKIPPED:[xt.SECURITY_VIOLATED.toString()].includes(t)?xt.SECURITY_VIOLATED:[xt.DENIAL_OF_JUDGEMENT.toString()].includes(t)?xt.DENIAL_OF_JUDGEMENT:xt.UNKNOWN}function B6(t){return[xt.ACCEPTED,xt.CORRECT].includes(t)}function aP(t){return[xt.RUNTIME_ERROR,xt.TIME_LIMIT_EXCEEDED,xt.MEMORY_LIMIT_EXCEEDED,xt.OUTPUT_LIMIT_EXCEEDED,xt.IDLENESS_LIMIT_EXCEEDED,xt.WRONG_ANSWER,xt.REJECTED,xt.JUDGEMENT_FAILED,xt.HACKED].includes(t)}function U6(t){return[xt.PENDING,xt.WAITING,xt.COMPILING,xt.JUDGING,xt.FROZEN].includes(t)}function H6(t){return[xt.COMPILATION_ERROR,xt.PRESENTATION_ERROR,xt.CONFIGURATION_ERROR,xt.SYSTEM_ERROR,xt.CANCELED,xt.SKIPPED,xt.UNKNOWN,xt.UNDEFINED].includes(t)}Wi.extend(PR);Wi.extend(NR);Wi.extend(MR);Wi.extend(UR);Wi.extend($R);Wi.extend(zR);Wi.extend(VR);Wi.extend(YR);function Bs(t=void 0){return t===void 0?Wi():typeof t=="number"&&String(t).length===10?Wi.unix(t):Wi(t)}function fg(t){const i=e=>e<10?`0${e}`:String(e),s=Math.floor(t/3600),a=Math.floor(t%3600/60),r=t%60;return[i(s),i(a),i(r)].join(":")}class WI{constructor(){}convert(i){let s="";s+=`@contest "${i.contest.name}"
193
193
  @contlen ${Math.floor(Wi.duration(i.contest.endTime.diff(i.contest.startTime)).asMinutes())}
194
194
  @problems ${i.contest.problems.length}
195
195
  @teams ${i.teams.length+100}
@@ -198,8 +198,8 @@ function print() { __p += __j.call(arguments, '') }
198
198
  `});let a=1;const r=new Map,e=new Map;i.teams.forEach(p=>{let _=p.name;p.organization&&(_=`${p.organization} - ${_}`),p.members&&(_=`${_} - ${p.membersToString}`),s+=`@t ${a},0,1,${_}
199
199
  `,r.set(p.id,a),a++;{const D=new Map;i.contest.problems.forEach(F=>{D.set(F.id,0)}),e.set(p.id,D)}});for(let p=0;p<100;p++)s+=`@t ${a},0,1,Пополнить команду
200
200
  `,a++;return i.getSubmissions().forEach(p=>{var k;const _=p.teamId,D=p.problemId,F=i.contest.problemsMap.get(D),T=r.get(_);if(!F||!T)return;const A=this.submissionStatusToCodeforcesGymDatStatus(p.status);e.get(_).set(D,e.get(_).get(D)+1),s+=`@s ${T},${F.label},${(k=e.get(_))==null?void 0:k.get(D)},${p.timestampToSecond},${A}
201
- `}),s}submissionStatusToCodeforcesGymDatStatus(i){return B6(i)?"OK":i===xt.WRONG_ANSWER?"WA":i===xt.TIME_LIMIT_EXCEEDED?"TL":i===xt.MEMORY_LIMIT_EXCEEDED?"ML":i===xt.OUTPUT_LIMIT_EXCEEDED?"IL":i===xt.PRESENTATION_ERROR?"PE":i===xt.RUNTIME_ERROR?"RT":i===xt.COMPILATION_ERROR||H6(i)?"CE":U6(i)?"PD":"RJ"}}var Ed=(t=>(t.UNKNOWN="Unknown",t.GOLD="Gold",t.SILVER="Silver",t.BRONZE="Bronze",t.HONORABLE="Honorable",t))(Ed||{});class W3{constructor(){this.medalType="Unknown",this.minRank=0,this.maxRank=0}}function oP(t){return["Gold","Silver","Bronze","Honorable"].includes(t)}class WI{constructor(){}convert(i){const s=Wg.cloneDeep(i);s.options.disableFilterTeamsByGroup(),s.options.disableFilterSubmissionByTimestamp();const a=jf.utils.book_new();for(const[r,e]of s.contest.group){s.options.setGroup(r),s.buildRank();const p=this.convertToSheet(s);jf.utils.book_append_sheet(a,p,e.names.get(e.defaultLang))}return a}convertAndWrite(i,s){return jf.writeFile(this.convert(i),s,{compression:!0})}convertToSheet(i){const s=this.convertToAoa(i),a=jf.utils.aoa_to_sheet(s),r=[],e=s[1];for(let F=0;F<e.length;F++){let T=10;for(let A=1;A<s.length;A++)T=Math.max(T,iP(s[A][F])+2);r.push({wch:T})}a["!cols"]=r;{const F={s:{r:0,c:0},e:{r:0,c:e.length-1}},T=[{s:F.s,e:F.e}];a["!merges"]=T}const p={name:"Arial Unicode MS",bold:!1,italic:!1,sz:12},_={style:"thin"},D={alignment:{vertical:"center",horizontal:"center"},border:{top:_,bottom:_,left:_,right:_},font:p};for(let F=1;F<s.length;F++)for(let T=0;T<s[F].length;T++){const A=jf.utils.encode_cell({r:F,c:T}),k=a[A];k.s=D}{const F=jf.utils.encode_cell({r:0,c:0}),T=a[F],A=Wg.cloneDeep(D);A.font.sz=28,A.font.bold=!0,T.s=A}return a}convertToAoa(i){const s=[],a=i.contest.isEnableAwards(i.options.group);s.push([i.contest.name]);{const r=[];r.push("Rank"),i.contest.organization&&(r.push(`${i.contest.organization} Rank`),r.push(i.contest.organization)),r.push("Name","Solved","Penalty",...i.contest.problems.map(e=>e.label),"Dirt"),a&&r.push("Medal"),s.push(r)}for(const r of i.teams){const e=[];e.push(r.rank.toString()),r.organization&&(r.organizationRank!==-1?e.push(r.organizationRank.toString()):e.push(""),e.push(r.organization)),e.push(r.name,r.solvedProblemNum.toString(),r.penaltyToMinute.toString());for(const p of r.problemStatistics)p.isUnSubmitted&&e.push("-"),p.isSolved&&e.push(`+${p.totalCount}(${p.solvedTimestampToMinute})`),p.isWrongAnswer&&e.push(`-${p.failedCount}`),p.isPending&&e.push(`? ${p.failedCount} + ${p.pendingCount}`);if(e.push(`${r.dirt}%`),a){const p=r.awards.filter(_=>oP(_)).map(_=>_.toString());e.push(p.join(", "))}s.push(e)}return s}}function $6(t,i){return i===0?0:Math.floor((t-i)*100/t)}class lP{constructor(){this.acceptedNum=0,this.rejectedNum=0,this.pendingNum=0,this.submittedNum=0,this.attemptedNum=0,this.ignoreNum=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.firstSolveSubmissions=[],this.lastSolveSubmissions=[]}get dirt(){return this.acceptedNum===0?0:$6(this.attemptedNum,this.acceptedNum)}}class A2{constructor(){this.id="",this.label="",this.name="",this.statistics=new lP}}function cP(t){return t.map(i=>{const s=new A2;return s.id=i.id,s.label=i.label,s.name=i.name??"",s.timeLimit=i.time_limit,s.memoryLimit=i.memory_limit,s.balloonColor=i.balloon_color,s})}function uP(t,i){const s=t.map((a,r)=>{const e=new A2;return e.id=String(r),e.label=a,e});if(i!=null)for(const a in i)s[a].balloonColor=i[a];return s}class fP{constructor(i){var s,a,r,e,p,_,D,F,T,A,k,I;this.isFirstSolved=((s=i==null?void 0:i.teamProblemStatistics)==null?void 0:s.isFirstSolved)??!1,this.isSolved=((a=i==null?void 0:i.teamProblemStatistics)==null?void 0:a.isSolved)??!1,this.solvedTimestamp=((r=i==null?void 0:i.teamProblemStatistics)==null?void 0:r.solvedTimestamp)??0,this.isSubmitted=((e=i==null?void 0:i.teamProblemStatistics)==null?void 0:e.isSubmitted)??!1,this.lastSubmitTimestamp=((p=i==null?void 0:i.teamProblemStatistics)==null?void 0:p.lastSubmitTimestamp)??0,this.failedCount=((_=i==null?void 0:i.teamProblemStatistics)==null?void 0:_.failedCount)??0,this.pendingCount=((D=i==null?void 0:i.teamProblemStatistics)==null?void 0:D.pendingCount)??0,this.ignoreCount=((F=i==null?void 0:i.teamProblemStatistics)==null?void 0:F.ignoreCount)??0,this.totalCount=((T=i==null?void 0:i.teamProblemStatistics)==null?void 0:T.totalCount)??0,this.submissions=((A=i==null?void 0:i.teamProblemStatistics)==null?void 0:A.submissions)??[],this.problem=((k=i==null?void 0:i.teamProblemStatistics)==null?void 0:k.problem)??new A2,this.contestPenalty=((I=i==null?void 0:i.teamProblemStatistics)==null?void 0:I.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 zd{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.lastSolvedProblemTimestamp=0,this.penalty=0,this.problemStatistics=[],this.problemStatisticsMap=new Map,this.submissions=[],this.placeChartPoints=[],this.awards=[]}reset(){this.rank=0,this.originalRank=0,this.organizationRank=-1,this.solvedProblemNum=0,this.attemptedProblemNum=0,this.lastSolvedProblem=null,this.lastSolvedProblemTimestamp=0,this.penalty=0,this.problemStatistics=[],this.problemStatisticsMap=new Map,this.submissions=[],this.placeChartPoints=[],this.awards=[]}get penaltyToMinute(){return Math.floor(this.penalty/60)}get dirt(){const i=this.attemptedProblemNum,s=this.solvedProblemNum;return $6(i,s)}get membersToString(){var i;return typeof this.members=="string"?this.members:(i=this.members)==null?void 0:i.join(", ")}calcSolvedData(i){this.solvedProblemNum=0,this.attemptedProblemNum=0,this.penalty=0;for(const s of this.problemStatistics)s.isAccepted&&(this.solvedProblemNum++,this.attemptedProblemNum+=s.failedCount+1,(i==null?void 0:i.calculationOfPenalty)==="in_seconds"||(i==null?void 0:i.calculationOfPenalty)==="accumulate_in_seconds_and_finally_to_the_minute"?this.penalty+=s.penaltyInSecond:this.penalty+=s.penalty);(i==null?void 0:i.calculationOfPenalty)==="accumulate_in_seconds_and_finally_to_the_minute"&&(this.penalty=Math.floor(this.penalty/60)*60)}calcAwards(i){if(i)for(const s of i)this.rank>=s.minRank&&this.rank<=s.maxRank&&this.awards.push(s.medalType)}isEqualRank(i){return this.solvedProblemNum===i.solvedProblemNum&&this.penalty===i.penalty}postProcessPlaceChartPoints(){if(this.placeChartPoints.length===0)return;const i=[];i.push(this.placeChartPoints[0]);for(let s=1;s<this.placeChartPoints.length-1;s++){const a=this.placeChartPoints[s],r=i[i.length-1];(a.rank!==r.rank||a.lastSolvedProblem!==r.lastSolvedProblem)&&i.push(a)}this.placeChartPoints.length>1&&i.push(this.placeChartPoints[this.placeChartPoints.length-1]),this.placeChartPoints=i}static compare(i,s){return i.solvedProblemNum!==s.solvedProblemNum?s.solvedProblemNum-i.solvedProblemNum:i.penalty!==s.penalty?i.penalty-s.penalty:i.lastSolvedProblemTimestamp!==s.lastSolvedProblemTimestamp?i.lastSolvedProblemTimestamp-s.lastSolvedProblemTimestamp:i.name<s.name?-1:i.name>s.name?1:0}}function z3(t){const i=new zd;i.id=t.id??t.team_id??"",i.name=t.name??t.team_name??"",i.organization=t.organization??"",i.badge=t.badge,i.group=t.group??[],i.tag=t.group??[],i.coach=t.coach,i.members=t.members,t.official&&i.group.push("official"),t.unofficial&&i.group.push("unofficial"),t.girl&&i.group.push("girl");{const s=t;for(const a of Object.keys(s))(s[a]===1||s[a]===!0)&&i.group.push(a)}return i.group=[...new Set(i.group)],i.group.sort(),t.location&&(i.location=t.location),i}function zI(t){return Array.isArray(t)?t.map(i=>z3(i)):Object.entries(t).map(([s,a])=>z3({...a,team_id:a.team_id??s}))}class zg{constructor(){this.status=xt.UNKNOWN,this.isIgnore=!1,this.id="",this.teamId="",this.problemId="",this.timestamp=0,this.timestampUnit="second"}isAccepted(){return B6(this.status)}isRejected(){return aP(this.status)}isPending(){return U6(this.status)}isNotCalculatedPenaltyStatus(){return H6(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 i=this.timestampToSecond,s=Math.floor(i/3600),a=Math.floor(i%3600/60),r=i%60,e=_=>_.toString().padStart(2,"0");return`${e(s)}:${e(a)}:${e(r)}`}get timestampDisplayFormatWithMilliSecond(){let i=this.timestampDisplayFormatWithSecond;if(this.timestampUnit==="millisecond"){const s=(this.timestamp%1e3).toString().padEnd(3,"0");i+=`.${s}`}return i}static compare(i,s){if(i.timestamp!==s.timestamp)return i.timestamp-s.timestamp;if(i.teamId===s.teamId){if(i.isAccepted()&&!s.isAccepted())return-1;if(!i.isAccepted()&&s.isAccepted())return 1}return 0}}function j3(t){const i=new zg;return i.id=String(t.id??t.submission_id??""),i.teamId=String(t.team_id),i.problemId=String(t.problem_id),i.timestamp=t.timestamp,i.status=sP(t.status),i.isIgnore=t.is_ignore??!1,t.time&&(i.time=t.time),t.language&&(i.language=t.language),i}function jI(t){return Array.isArray(t)?t.map((i,s)=>j3({...i,id:i.submission_id??String(s)})):Object.entries(t).map(([s,a])=>j3({...a,id:a.submission_id??s}))}class hP{constructor(){this.problem=new A2,this.team=new zd,this.submission=new zg}get key(){return`balloon-${this.team.id}-${this.problem.id}`}}class V3{constructor(){this.names=new Map,this.defaultLang="zh-CN",this.isDefault=!1}}class W6{constructor(){this.calculationOfPenalty="in_minutes",this.submissionTimestampUnit="second",this.submissionHasTimeField=!1,this.submissionHasLanguageField=!1}}function dP(t={}){const i=t,s=new W6;return i.calculation_of_penalty&&(s.calculationOfPenalty=i.calculation_of_penalty),i.submission_timestamp_unit&&(s.submissionTimestampUnit=i.submission_timestamp_unit),s}class z6{constructor(){this.name="",this.startTime=Bs(),this.endTime=Bs(),this.freezeTime=Bs(),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 W6}getContestDuration(i="HH:mm:ss"){return Wi.duration(this.endTime.diff(this.startTime)).format(i)}getContestState(i){const s=Bs(i);return s.isBefore(this.startTime)?Oa.PENDING:s.isSameOrAfter(this.endTime)?Oa.FINISHED:s.isSameOrAfter(this.freezeTime)?Oa.FROZEN:Oa.RUNNING}getContestPendingTime(i){let s=Bs(i);return s.isAfter(this.startTime)&&(s=this.startTime),fg(Math.floor(Wi.duration(this.startTime.diff(s)).asSeconds()))}getContestElapsedTime(i){let s=Bs(i);return s.isAfter(this.endTime)&&(s=this.endTime),s.isBefore(this.startTime)&&(s=this.startTime),fg(Math.floor(Wi.duration(s.diff(this.startTime)).asSeconds()))}getContestRemainingTime(i){let s=Bs(i);return s.isAfter(this.endTime)&&(s=this.endTime),s.isBefore(this.startTime)&&(s=this.startTime),fg(Math.floor(Wi.duration(this.endTime.diff(s)).asSeconds()))}getContestProgressRatio(i){const s=Bs(i);if(this.startTime.isSameOrAfter(s))return 0;if(this.endTime.isSameOrBefore(s))return 100;const a=this.endTime.diff(this.startTime,"s"),r=s.diff(this.startTime,"s");return Math.round(r*100/a)}isEnableAwards(i){return!(!this.awards||!this.awards.has(i))}}function pP(t){const i=new z6;i.name=t.contest_name,i.startTime=Bs(t.start_time),i.endTime=Bs(t.end_time),i.totalDurationTimestamp=i.endTime.unix()-i.startTime.unix();{if(i.freezeTime=i.endTime,i.freezeDurationTimestamp=0,t.frozen_time!==void 0&&t.frozen_time!=null){const s=Number(t.frozen_time);i.freezeTime=Bs(i.endTime.unix()-s),i.freezeDurationTimestamp=s}t.freeze_time!==void 0&&t.freeze_time!==null&&(i.freezeTime=Bs(t.freeze_time),i.freezeDurationTimestamp=i.endTime.unix()-i.freezeTime.unix()),i.unFreezeDurationTimestamp=i.totalDurationTimestamp-i.freezeDurationTimestamp}i.penalty=t.penalty,t.problem_id!==void 0&&t.problem_id!==null&&(i.problems=uP(t.problem_id,t.balloon_color)),t.problems!==void 0&&t.problems!==null&&(i.problems=cP(t.problems)),i.problemsMap=new Map(i.problems.map(s=>[s.id,s])),t.status_time_display!==void 0&&t.status_time_display!==null&&(i.statusTimeDisplay={correct:!!(t.status_time_display.correct??!1),incorrect:!!(t.status_time_display.incorrect??!1),pending:!!(t.status_time_display.pending??!1)}),i.badge=t.badge,i.medal=t.medal,(()=>{if(!(t.medal===void 0||t.medal===null)){i.awards=new Map;for(const s in t.medal){const a=t.medal[s];{const r=[];let e=1;const p=(_,D)=>{if(Object.keys(a).includes(_)){const F=new W3;F.medalType=D,F.minRank=e,e+=Number(a[_]),F.maxRank=e-1,r.push(F)}};p("gold",Ed.GOLD),p("silver",Ed.SILVER),p("bronze",Ed.BRONZE);{const _=new W3;_.medalType=Ed.HONORABLE,_.minRank=e,_.maxRank=1061109567,r.push(_)}i.awards.set(s,r)}}}})(),i.organization=t.organization;{const s=new V3;s.names.set("en","All"),s.names.set("zh-CN","所有队伍"),s.isDefault=!0,i.group.set("all",s)}for(const[s,a]of Object.entries((t==null?void 0:t.group)??{})){let r=s;const e=new V3;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"),i.group.set(r,e)}return i.banner=t.banner,i.logo=t.logo,i.boardLink=t.board_link,t.options&&(i.options=dP(t.options)),i}class mP{constructor(){this.contest=new z6,this.boardLink=""}}function gP(t){const i=new mP,s=t.config;return i.contest=pP(s),i.boardLink=t.board_link,i}function vP(t){const i=[],s=a=>{if(Object.prototype.hasOwnProperty.call(a,"config"))i.push(gP(a));else for(const r in a)s(a[r])};return s(t),i.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),i}function bP(t){return t!=null&&t.url?t.url:t!=null&&t.base64?`data:image/${t.type??"png"};base64,${t.base64}`:""}class _P{constructor(){this.teamSolvedNum=[],this.teamSolvedNumIndex=[],this.maxSolvedProblems=0}reset(){this.teamSolvedNum=[],this.teamSolvedNumIndex=[],this.maxSolvedProblems=0}getTeamSolvedNumIndex(i){return this.teamSolvedNumIndex[i]??0}}class yP{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}setWidth(i,s){this.width=i,this.timestamp=Math.floor((s.endTime.unix()-s.startTime.unix())*this.width*1e-4),this.enableFilterSubmissionsByTimestamp=!0}disableFilterSubmissionByTimestamp(){this.enableFilterSubmissionsByTimestamp=!1}setGroup(i){this.group=i,this.enableFilterTeamsByGroup=!0,this.group==="all"&&this.disableFilterTeamsByGroup()}disableFilterTeamsByGroup(){this.enableFilterTeamsByGroup=!1,this.group="all"}setFilterOrganizations(i){const s=new Map;i.forEach(a=>{s.set(a.value,a)}),this.filterOrganizations=i,this.filterOrganizationMap=s}setFilterTeams(i){const s=new Map;i.forEach(a=>{s.set(a.value,a)}),this.filterTeams=i,this.filterTeamMap=s}isNeedReBuildRank(i){return this.enableFilterSubmissionsByTimestamp!==i.enableFilterSubmissionsByTimestamp||this.width!==i.width||this.timestamp!==i.timestamp||this.enableFilterTeamsByGroup!==i.enableFilterTeamsByGroup||this.group!==i.group}}class VI{constructor(i,s,a){this.contest=i,this.teams=Wg.cloneDeep(s),this.teamsMap=new Map(this.teams.map(r=>[r.id,r])),this.submissions=Wg.cloneDeep(a).sort(zg.compare),this.submissions.forEach(r=>{const e=this.contest.options;r.timestampUnit=e.submissionTimestampUnit,r.time&&(e.submissionHasTimeField=!0),r.language&&(e.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(zd.compare),this.rankStatistics=new _P,this.options=new yP,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[i,s]of this.teamsMap)this.filterTeamByOrg(s)||this.teams.push(s)})();for(const i of this.teams)i.reset(),i.problemStatistics=this.contest.problems.map(s=>{const a=new fP;return a.problem=s,a.contestPenalty=this.contest.penalty,a}),i.problemStatisticsMap=new Map(i.problemStatistics.map(s=>[s.problem.id,s]));this.contest.problems.forEach(i=>{i.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 i=0;const s=this.getSubmissions();for(let a=0;a<s.length;a++){const r=s[a],e=r.teamId,p=r.problemId,_=this.teamsMap.get(e),D=this.contest.problemsMap.get(p);(()=>{if(_===void 0||this.filterTeamByOrg(_)||D===void 0)return;const F=_.problemStatisticsMap.get(p);if(F.submissions.push(r),_.submissions.push(r),D.statistics.submittedNum++,!F.isSolved){if(r.isIgnore||r.isNotCalculatedPenaltyStatus()){D.statistics.ignoreNum++,F.ignoreCount++;return}if(F.isSubmitted=!0,F.lastSubmitTimestamp=r.timestampToSecond,F.totalCount++,r.isAccepted()){for(F.isSolved=!0,F.solvedTimestamp=r.timestampToSecond,D.statistics.acceptedNum++,D.statistics.attemptedNum+=F.failedCount+1,(D.statistics.firstSolveSubmissions.length===0||D.statistics.firstSolveSubmissions[D.statistics.firstSolveSubmissions.length-1].timestamp===r.timestamp)&&(F.isFirstSolved=!0,D.statistics.firstSolveSubmissions.push(r));D.statistics.lastSolveSubmissions.length>0;)D.statistics.lastSolveSubmissions.pop();D.statistics.lastSolveSubmissions.push(r),_.lastSolvedProblem=D,_.lastSolvedProblemTimestamp=r.timestampToSecond}r.isRejected()&&(F.failedCount++,D.statistics.rejectedNum++),r.isPending()&&(F.pendingCount++,D.statistics.pendingNum++)}})(),(r.timestampToMinute>i||a===s.length-1)&&(this.teams.forEach(F=>F.calcSolvedData(this.contest.options)),this.teams.sort(zd.compare),this.buildTeamRank(),this.teams.forEach(F=>F.placeChartPoints.push({timePoint:r.timestampToMinute,rank:F.rank,lastSolvedProblem:F.lastSolvedProblem}))),i=r.timestampToMinute}this.teams.forEach(a=>a.calcSolvedData(this.contest.options)),this.teams.sort(zd.compare),this.buildTeamRank(),this.buildOrgRank(),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 i of this.teams)this.rankStatistics.teamSolvedNum[i.solvedProblemNum]++;{let i=0;const s=this.rankStatistics.teamSolvedNum,a=this.rankStatistics.teamSolvedNumIndex;for(let r=a.length-1;r>=0;r--)i+=s[r]>0?1:0,a[r]=i}this.teams.length>0&&(this.rankStatistics.maxSolvedProblems=this.teams[0].solvedProblemNum)})(),this}buildTeamRank(){let i=1,s=1,a=null;for(const r of this.teams)r.rank=i++,r.originalRank=s++,a!==null&&r.isEqualRank(a)&&(r.rank=a.rank),a=r}buildOrgRank(){if(!this.contest.organization)return;let i=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=i++,s!==null&&r.isEqualRank(s)&&(r.organizationRank=s.organizationRank),s=r)}}buildOrganizations(){if(!this.contest.organization)return[];const i=new Array,s=new Set;return this.teams.forEach(a=>{const r=a.organization;s.has(r)||(i.push(r),s.add(r))}),i.sort(),i}filterTeamByOrg(i){var a;const s=this.options;return!!(s.enableFilterTeamsByGroup&&!((a=i.group)!=null&&a.includes(s.group)))}getSubmissions(){return this.options.enableFilterSubmissionsByTimestamp===!1?this.submissions:this.submissions.filter(i=>i.timestampToSecond<=this.options.timestamp).sort(zg.compare)}buildBalloons(){this.balloons=[],this.cleanRank();const i=this.getSubmissions();for(let s=0;s<i.length;s++){const a=i[s],r=a.teamId,e=a.problemId,p=this.teamsMap.get(r),_=this.contest.problemsMap.get(e);(()=>{if(p===void 0||_===void 0)return;const D=p.problemStatisticsMap.get(e);if(!D.isSolved&&a.isAccepted()){D.isSolved=!0,D.solvedTimestamp=a.timestampToSecond;const F=new hP;F.team=p,F.problem=_,F.submission=a,this.balloons.push(F)}})()}}}const DP="Board - XCPCIO",GI="Balloon - XCPCIO",YI="Countdown - XCPCIO",wP=(...t)=>{const i=Ti().proxy.$props,s=Object.create(null);for(const a of t)if(typeof a=="string")s[a]=u3(i,a,void 0,{eventName:`update:${a}`,passive:!0});else{const[r,e=r,p=`update:${r}`,_={}]=a;s[r]=u3(i,e,void 0,{eventName:p,passive:!0,..._})}return s},FP={relative:""},EP=Tt("span",{"i-carbon-close":"",ma:"",block:"","aria-hidden":"true"},null,-1),xP=[EP],CP=mi({__name:"SearchInput",props:{modelValue:null},emits:["update:modelValue"],setup(t,{expose:i}){const{modelValue:s}=wP("modelValue"),a=Yt(),r={mounted:_=>_.focus()};function e(){var _;s.value=null,(_=a.value)==null||_.focus()}function p(){var _;(_=a.value)==null||_.focus()}return i({focus:p}),(_,D)=>{var F;return Lr(),fn("div",FP,[Uw(Tt("input",f2({ref_key:"inputEl",ref:a,"onUpdate:modelValue":D[0]||(D[0]=T=>rn(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),[[e1,Qt(s)],[r]]),(F=Qt(s))!=null&&F.length?(Lr(),fn("button",{key:0,absolute:"",flex:"","right-2":"","w-10":"","top-2":"","bottom-2":"","text-xl":"",op30:"","hover:op90":"","aria-label":"Clear search",onClick:D[1]||(D[1]=T=>e())},xP)):Hs("",!0)])}}}),TP={},AP={class:"color-gray-700 dark:color-gray-200"},SP=Tt("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"},[Tt("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"}),Tt("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),OP=[SP];function kP(t,i){return Lr(),fn("div",AP,OP)}const RP=w0(TP,[["render",kP]]),PP=mi({__name:"Progress",props:{width:null,state:null,needScroll:{type:Boolean},rank:null,rankOptions:null,elapsedTime:null},emits:["update:rank-options"],setup(t,{emit:i}){const s=t,a=Hr({get(){return s.rankOptions},set(z){i("update:rank-options",z)}}),r=Hr(()=>{switch(s.state){case Oa.PENDING:return"am-progress-bar-secondary";case Oa.RUNNING:return"am-progress-bar-success";case Oa.FROZEN:return"am-progress-bar-danger";case Oa.FINISHED:return"am-progress-bar-primary"}}),e=Yt(!1),p=Yt(!1),_=Yt(0),D=Yt(s.width),F=Yt(0),T=T6("progress-ratio",-1,{transform:Number}),A=Yt(null),k=Yt(null),I=Yt(null),N=Yt(null),M=Yt(null);function V(z){p.value=!0;const H=z.clientX-I.value.offsetLeft,Z=re=>{var Ae,De;if(!p.value)return;e.value=!0;let te=re.clientX-H;te=Math.max(te,0),te=Math.min(te,A.value.offsetWidth-I.value.offsetWidth);const ae=A.value.offsetWidth*Number.parseInt((Ae=k.value.style)==null?void 0:Ae.width)*.01;te>=ae&&(te=ae,e.value=!1);let ve=0;te>0&&(ve=Math.round((te+I.value.offsetWidth)/A.value.offsetWidth*1e4)),ve>1e4&&(ve=1e4),ve===1e4&&(e.value=!1),(De=window.getSelection())==null||De.removeAllRanges(),_.value=ve,F.value=te,D.value=ve*.01},ee=()=>{var re,te;document.removeEventListener("mouseup",ee),document.removeEventListener("mousemove",Z),p.value=!1,e.value===!0?(T.value=_.value,(re=a.value)==null||re.setWidth(_.value,s.rank.contest)):(T.value=void 0,(te=a.value)==null||te.disableFilterSubmissionByTimestamp())};document.addEventListener("mousemove",Z),document.addEventListener("mouseup",ee)}function U(){const z=s.rank.contest.startTime,H=s.rank.contest.endTime,Z=H.unix()-z.unix(),ee=Math.floor(Z*D.value*.01),re=Bs(),te=Math.max(0,Math.min(re.unix(),H.unix())-z.unix());return fg(Math.min(ee,te))}function G(){return e.value===!0?U():s.elapsedTime}function ne(){return e.value===!0?`${Math.max(0,F.value)}px`:`max(calc(0%), min(calc(${s.width}%), calc(100% - 10px)))`}return La(()=>{var z,H;s.needScroll===!0&&(A.value.onmouseenter=()=>{N.value.classList.add("in")},A.value.onmouseleave=()=>{N.value.classList.remove("in")}),T.value!==-1?(e.value=!0,_.value=Math.max(0,Math.min(1e4,T.value)),D.value=_.value*.01,F.value=D.value*.01*A.value.offsetWidth-I.value.offsetWidth,(z=a.value)==null||z.setWidth(T.value,s.rank.contest)):(H=a.value)==null||H.disableFilterSubmissionByTimestamp()}),Su(()=>{}),(z,H)=>(Lr(),fn("div",{ref_key:"scroll",ref:A,class:"am-progress am-progress-striped am-active","w-full":"",style:{position:"relative"}},[Tt("div",{ref_key:"mask",ref:k,class:ns(["am-progress-bar",[Qt(r)]]),style:Ra({width:`${s.width}%`})},[s.needScroll?(Lr(),fn(Gn,{key:0},[Tt("div",{ref_key:"tooltip",ref:N,class:"tooltip tooltip-top",style:Ra({marginLeft:"-32px",bottom:"22px",left:ne()})},[Tt("div",{ref_key:"tooltipInner",ref:M,class:"tooltip-inner"},ai(G()),513)],4),Tt("div",{ref_key:"bar",ref:I,class:ns(["am-progress-bar am-progress-cursor am-progress-scroll-size z-999",[Qt(r)]]),style:Ra({left:ne()}),onMousedown:V},null,38)],64)):Hs("",!0)],6)],512))}});const IP=w0(PP,[["__scopeId","data-v-ac8e14a6"]]),NP={flex:"","flex-row":"","items-center":"","justify-center":""},LP={key:0,"ml-2":""},MP={key:1,"ml-2":""},BP=mi({__name:"ContestStateBadge",props:{state:null,pendingTime:null,pausedTime:null},setup(t){const i=t;return(s,a)=>(Lr(),fn("div",NP,[Tt("div",{class:ns(["label",i.state])},null,2),Tt("div",null,ai(i.state),1),i.pendingTime&&i.state===Qt(Oa).PENDING?(Lr(),fn("div",LP,ai(i.pendingTime),1)):Hs("",!0),i.pausedTime&&i.state===Qt(Oa).PAUSED?(Lr(),fn("div",MP,ai(i.pausedTime),1)):Hs("",!0)]))}});const UP=w0(BP,[["__scopeId","data-v-68586c4d"]]);function HP(){const t={};return t.base64=String.raw`
201
+ `}),s}submissionStatusToCodeforcesGymDatStatus(i){return B6(i)?"OK":i===xt.WRONG_ANSWER?"WA":i===xt.TIME_LIMIT_EXCEEDED?"TL":i===xt.MEMORY_LIMIT_EXCEEDED?"ML":i===xt.OUTPUT_LIMIT_EXCEEDED?"IL":i===xt.PRESENTATION_ERROR?"PE":i===xt.RUNTIME_ERROR?"RT":i===xt.COMPILATION_ERROR||H6(i)?"CE":U6(i)?"PD":"RJ"}}var Ed=(t=>(t.UNKNOWN="Unknown",t.GOLD="Gold",t.SILVER="Silver",t.BRONZE="Bronze",t.HONORABLE="Honorable",t))(Ed||{});class W3{constructor(){this.medalType="Unknown",this.minRank=0,this.maxRank=0}}function oP(t){return["Gold","Silver","Bronze","Honorable"].includes(t)}class zI{constructor(){}convert(i){const s=Wg.cloneDeep(i);s.options.disableFilterTeamsByGroup(),s.options.disableFilterSubmissionByTimestamp();const a=jf.utils.book_new();for(const[r,e]of s.contest.group){s.options.setGroup(r),s.buildRank();const p=this.convertToSheet(s);jf.utils.book_append_sheet(a,p,e.names.get(e.defaultLang))}return a}convertAndWrite(i,s){return jf.writeFile(this.convert(i),s,{compression:!0})}convertToSheet(i){const s=this.convertToAoa(i),a=jf.utils.aoa_to_sheet(s),r=[],e=s[1];for(let F=0;F<e.length;F++){let T=10;for(let A=1;A<s.length;A++)T=Math.max(T,iP(s[A][F])+2);r.push({wch:T})}a["!cols"]=r;{const F={s:{r:0,c:0},e:{r:0,c:e.length-1}},T=[{s:F.s,e:F.e}];a["!merges"]=T}const p={name:"Arial Unicode MS",bold:!1,italic:!1,sz:12},_={style:"thin"},D={alignment:{vertical:"center",horizontal:"center"},border:{top:_,bottom:_,left:_,right:_},font:p};for(let F=1;F<s.length;F++)for(let T=0;T<s[F].length;T++){const A=jf.utils.encode_cell({r:F,c:T}),k=a[A];k.s=D}{const F=jf.utils.encode_cell({r:0,c:0}),T=a[F],A=Wg.cloneDeep(D);A.font.sz=28,A.font.bold=!0,T.s=A}return a}convertToAoa(i){const s=[],a=i.contest.isEnableAwards(i.options.group);s.push([i.contest.name]);{const r=[];r.push("Rank"),i.contest.organization&&(r.push(`${i.contest.organization} Rank`),r.push(i.contest.organization)),r.push("Name","Solved","Penalty",...i.contest.problems.map(e=>e.label),"Dirt"),a&&r.push("Medal"),s.push(r)}for(const r of i.teams){const e=[];e.push(r.rank.toString()),r.organization&&(r.organizationRank!==-1?e.push(r.organizationRank.toString()):e.push(""),e.push(r.organization)),e.push(r.name,r.solvedProblemNum.toString(),r.penaltyToMinute.toString());for(const p of r.problemStatistics)p.isUnSubmitted&&e.push("-"),p.isSolved&&e.push(`+${p.totalCount}(${p.solvedTimestampToMinute})`),p.isWrongAnswer&&e.push(`-${p.failedCount}`),p.isPending&&e.push(`? ${p.failedCount} + ${p.pendingCount}`);if(e.push(`${r.dirt}%`),a){const p=r.awards.filter(_=>oP(_)).map(_=>_.toString());e.push(p.join(", "))}s.push(e)}return s}}function $6(t,i){return i===0?0:Math.floor((t-i)*100/t)}class lP{constructor(){this.acceptedNum=0,this.rejectedNum=0,this.pendingNum=0,this.submittedNum=0,this.attemptedNum=0,this.ignoreNum=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.firstSolveSubmissions=[],this.lastSolveSubmissions=[]}get dirt(){return this.acceptedNum===0?0:$6(this.attemptedNum,this.acceptedNum)}}class A2{constructor(){this.id="",this.label="",this.name="",this.statistics=new lP}}function cP(t){return t.map(i=>{const s=new A2;return s.id=i.id,s.label=i.label,s.name=i.name??"",s.timeLimit=i.time_limit,s.memoryLimit=i.memory_limit,s.balloonColor=i.balloon_color,s})}function uP(t,i){const s=t.map((a,r)=>{const e=new A2;return e.id=String(r),e.label=a,e});if(i!=null)for(const a in i)s[a].balloonColor=i[a];return s}class fP{constructor(i){var s,a,r,e,p,_,D,F,T,A,k,I;this.isFirstSolved=((s=i==null?void 0:i.teamProblemStatistics)==null?void 0:s.isFirstSolved)??!1,this.isSolved=((a=i==null?void 0:i.teamProblemStatistics)==null?void 0:a.isSolved)??!1,this.solvedTimestamp=((r=i==null?void 0:i.teamProblemStatistics)==null?void 0:r.solvedTimestamp)??0,this.isSubmitted=((e=i==null?void 0:i.teamProblemStatistics)==null?void 0:e.isSubmitted)??!1,this.lastSubmitTimestamp=((p=i==null?void 0:i.teamProblemStatistics)==null?void 0:p.lastSubmitTimestamp)??0,this.failedCount=((_=i==null?void 0:i.teamProblemStatistics)==null?void 0:_.failedCount)??0,this.pendingCount=((D=i==null?void 0:i.teamProblemStatistics)==null?void 0:D.pendingCount)??0,this.ignoreCount=((F=i==null?void 0:i.teamProblemStatistics)==null?void 0:F.ignoreCount)??0,this.totalCount=((T=i==null?void 0:i.teamProblemStatistics)==null?void 0:T.totalCount)??0,this.submissions=((A=i==null?void 0:i.teamProblemStatistics)==null?void 0:A.submissions)??[],this.problem=((k=i==null?void 0:i.teamProblemStatistics)==null?void 0:k.problem)??new A2,this.contestPenalty=((I=i==null?void 0:i.teamProblemStatistics)==null?void 0:I.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 zd{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.lastSolvedProblemTimestamp=0,this.penalty=0,this.problemStatistics=[],this.problemStatisticsMap=new Map,this.submissions=[],this.placeChartPoints=[],this.awards=[]}reset(){this.rank=0,this.originalRank=0,this.organizationRank=-1,this.solvedProblemNum=0,this.attemptedProblemNum=0,this.lastSolvedProblem=null,this.lastSolvedProblemTimestamp=0,this.penalty=0,this.problemStatistics=[],this.problemStatisticsMap=new Map,this.submissions=[],this.placeChartPoints=[],this.awards=[]}get penaltyToMinute(){return Math.floor(this.penalty/60)}get dirt(){const i=this.attemptedProblemNum,s=this.solvedProblemNum;return $6(i,s)}get membersToString(){var i;return typeof this.members=="string"?this.members:(i=this.members)==null?void 0:i.join(", ")}calcSolvedData(i){this.solvedProblemNum=0,this.attemptedProblemNum=0,this.penalty=0;for(const s of this.problemStatistics)s.isAccepted&&(this.solvedProblemNum++,this.attemptedProblemNum+=s.failedCount+1,(i==null?void 0:i.calculationOfPenalty)==="in_seconds"||(i==null?void 0:i.calculationOfPenalty)==="accumulate_in_seconds_and_finally_to_the_minute"?this.penalty+=s.penaltyInSecond:this.penalty+=s.penalty);(i==null?void 0:i.calculationOfPenalty)==="accumulate_in_seconds_and_finally_to_the_minute"&&(this.penalty=Math.floor(this.penalty/60)*60)}calcAwards(i){if(i)for(const s of i)this.rank>=s.minRank&&this.rank<=s.maxRank&&this.awards.push(s.medalType)}isEqualRank(i){return this.solvedProblemNum===i.solvedProblemNum&&this.penalty===i.penalty}postProcessPlaceChartPoints(){if(this.placeChartPoints.length===0)return;const i=[];i.push(this.placeChartPoints[0]);for(let s=1;s<this.placeChartPoints.length-1;s++){const a=this.placeChartPoints[s],r=i[i.length-1];(a.rank!==r.rank||a.lastSolvedProblem!==r.lastSolvedProblem)&&i.push(a)}this.placeChartPoints.length>1&&i.push(this.placeChartPoints[this.placeChartPoints.length-1]),this.placeChartPoints=i}static compare(i,s){return i.solvedProblemNum!==s.solvedProblemNum?s.solvedProblemNum-i.solvedProblemNum:i.penalty!==s.penalty?i.penalty-s.penalty:i.lastSolvedProblemTimestamp!==s.lastSolvedProblemTimestamp?i.lastSolvedProblemTimestamp-s.lastSolvedProblemTimestamp:i.name<s.name?-1:i.name>s.name?1:0}}function z3(t){const i=new zd;i.id=t.id??t.team_id??"",i.name=t.name??t.team_name??"",i.organization=t.organization??"",i.badge=t.badge,i.group=t.group??[],i.tag=t.group??[],i.coach=t.coach,i.members=t.members,t.official&&i.group.push("official"),t.unofficial&&i.group.push("unofficial"),t.girl&&i.group.push("girl");{const s=t;for(const a of Object.keys(s))(s[a]===1||s[a]===!0)&&i.group.push(a)}return i.group=[...new Set(i.group)],i.group.sort(),t.location&&(i.location=t.location),i}function jI(t){return Array.isArray(t)?t.map(i=>z3(i)):Object.entries(t).map(([s,a])=>z3({...a,team_id:a.team_id??s}))}class zg{constructor(){this.status=xt.UNKNOWN,this.isIgnore=!1,this.id="",this.teamId="",this.problemId="",this.timestamp=0,this.timestampUnit="second"}isAccepted(){return B6(this.status)}isRejected(){return aP(this.status)}isPending(){return U6(this.status)}isNotCalculatedPenaltyStatus(){return H6(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 i=this.timestampToSecond,s=Math.floor(i/3600),a=Math.floor(i%3600/60),r=i%60,e=_=>_.toString().padStart(2,"0");return`${e(s)}:${e(a)}:${e(r)}`}get timestampDisplayFormatWithMilliSecond(){let i=this.timestampDisplayFormatWithSecond;if(this.timestampUnit==="millisecond"){const s=(this.timestamp%1e3).toString().padEnd(3,"0");i+=`.${s}`}return i}static compare(i,s){if(i.timestamp!==s.timestamp)return i.timestamp-s.timestamp;if(i.teamId===s.teamId){if(i.isAccepted()&&!s.isAccepted())return-1;if(!i.isAccepted()&&s.isAccepted())return 1}return i.id<s.id?-1:i.id===s.id?0:1}}function j3(t){const i=new zg;return i.id=String(t.id??t.submission_id??""),i.teamId=String(t.team_id),i.problemId=String(t.problem_id),i.timestamp=t.timestamp,i.status=sP(t.status),i.isIgnore=t.is_ignore??!1,t.time&&(i.time=t.time),t.language&&(i.language=t.language),i}function VI(t){return Array.isArray(t)?t.map((i,s)=>j3({...i,id:i.submission_id??String(s)})):Object.entries(t).map(([s,a])=>j3({...a,id:a.submission_id??s}))}class hP{constructor(){this.problem=new A2,this.team=new zd,this.submission=new zg}get key(){return`balloon-${this.team.id}-${this.problem.id}`}}class V3{constructor(){this.names=new Map,this.defaultLang="zh-CN",this.isDefault=!1}}class W6{constructor(){this.calculationOfPenalty="in_minutes",this.submissionTimestampUnit="second",this.submissionHasTimeField=!1,this.submissionHasLanguageField=!1}}function dP(t={}){const i=t,s=new W6;return i.calculation_of_penalty&&(s.calculationOfPenalty=i.calculation_of_penalty),i.submission_timestamp_unit&&(s.submissionTimestampUnit=i.submission_timestamp_unit),s}class z6{constructor(){this.name="",this.startTime=Bs(),this.endTime=Bs(),this.freezeTime=Bs(),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 W6}getContestDuration(i="HH:mm:ss"){return Wi.duration(this.endTime.diff(this.startTime)).format(i)}getContestState(i){const s=Bs(i);return s.isBefore(this.startTime)?Oa.PENDING:s.isSameOrAfter(this.endTime)?Oa.FINISHED:s.isSameOrAfter(this.freezeTime)?Oa.FROZEN:Oa.RUNNING}getContestPendingTime(i){let s=Bs(i);return s.isAfter(this.startTime)&&(s=this.startTime),fg(Math.floor(Wi.duration(this.startTime.diff(s)).asSeconds()))}getContestElapsedTime(i){let s=Bs(i);return s.isAfter(this.endTime)&&(s=this.endTime),s.isBefore(this.startTime)&&(s=this.startTime),fg(Math.floor(Wi.duration(s.diff(this.startTime)).asSeconds()))}getContestRemainingTime(i){let s=Bs(i);return s.isAfter(this.endTime)&&(s=this.endTime),s.isBefore(this.startTime)&&(s=this.startTime),fg(Math.floor(Wi.duration(this.endTime.diff(s)).asSeconds()))}getContestProgressRatio(i){const s=Bs(i);if(this.startTime.isSameOrAfter(s))return 0;if(this.endTime.isSameOrBefore(s))return 100;const a=this.endTime.diff(this.startTime,"s"),r=s.diff(this.startTime,"s");return Math.round(r*100/a)}isEnableAwards(i){return!(!this.awards||!this.awards.has(i))}}function pP(t){const i=new z6;i.name=t.contest_name,i.startTime=Bs(t.start_time),i.endTime=Bs(t.end_time),i.totalDurationTimestamp=i.endTime.unix()-i.startTime.unix();{if(i.freezeTime=i.endTime,i.freezeDurationTimestamp=0,t.frozen_time!==void 0&&t.frozen_time!=null){const s=Number(t.frozen_time);i.freezeTime=Bs(i.endTime.unix()-s),i.freezeDurationTimestamp=s}t.freeze_time!==void 0&&t.freeze_time!==null&&(i.freezeTime=Bs(t.freeze_time),i.freezeDurationTimestamp=i.endTime.unix()-i.freezeTime.unix()),i.unFreezeDurationTimestamp=i.totalDurationTimestamp-i.freezeDurationTimestamp}i.penalty=t.penalty,t.problem_id!==void 0&&t.problem_id!==null&&(i.problems=uP(t.problem_id,t.balloon_color)),t.problems!==void 0&&t.problems!==null&&(i.problems=cP(t.problems)),i.problemsMap=new Map(i.problems.map(s=>[s.id,s])),t.status_time_display!==void 0&&t.status_time_display!==null&&(i.statusTimeDisplay={correct:!!(t.status_time_display.correct??!1),incorrect:!!(t.status_time_display.incorrect??!1),pending:!!(t.status_time_display.pending??!1)}),i.badge=t.badge,i.medal=t.medal,(()=>{if(!(t.medal===void 0||t.medal===null)){i.awards=new Map;for(const s in t.medal){const a=t.medal[s];{const r=[];let e=1;const p=(_,D)=>{if(Object.keys(a).includes(_)){const F=new W3;F.medalType=D,F.minRank=e,e+=Number(a[_]),F.maxRank=e-1,r.push(F)}};p("gold",Ed.GOLD),p("silver",Ed.SILVER),p("bronze",Ed.BRONZE);{const _=new W3;_.medalType=Ed.HONORABLE,_.minRank=e,_.maxRank=1061109567,r.push(_)}i.awards.set(s,r)}}}})(),i.organization=t.organization;{const s=new V3;s.names.set("en","All"),s.names.set("zh-CN","所有队伍"),s.isDefault=!0,i.group.set("all",s)}for(const[s,a]of Object.entries((t==null?void 0:t.group)??{})){let r=s;const e=new V3;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"),i.group.set(r,e)}return i.banner=t.banner,i.logo=t.logo,i.boardLink=t.board_link,t.options&&(i.options=dP(t.options)),i}class mP{constructor(){this.contest=new z6,this.boardLink=""}}function gP(t){const i=new mP,s=t.config;return i.contest=pP(s),i.boardLink=t.board_link,i}function vP(t){const i=[],s=a=>{if(Object.prototype.hasOwnProperty.call(a,"config"))i.push(gP(a));else for(const r in a)s(a[r])};return s(t),i.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),i}function bP(t){return t!=null&&t.url?t.url:t!=null&&t.base64?`data:image/${t.type??"png"};base64,${t.base64}`:""}class _P{constructor(){this.teamSolvedNum=[],this.teamSolvedNumIndex=[],this.maxSolvedProblems=0}reset(){this.teamSolvedNum=[],this.teamSolvedNumIndex=[],this.maxSolvedProblems=0}getTeamSolvedNumIndex(i){return this.teamSolvedNumIndex[i]??0}}class yP{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.enableDynamicSubmissions=!1}setWidth(i,s){this.width=i,this.timestamp=Math.floor((s.endTime.unix()-s.startTime.unix())*this.width*1e-4),this.enableFilterSubmissionsByTimestamp=!0}disableFilterSubmissionByTimestamp(){this.enableFilterSubmissionsByTimestamp=!1}setGroup(i){this.group=i,this.enableFilterTeamsByGroup=!0,this.group==="all"&&this.disableFilterTeamsByGroup()}disableFilterTeamsByGroup(){this.enableFilterTeamsByGroup=!1,this.group="all"}setFilterOrganizations(i){const s=new Map;i.forEach(a=>{s.set(a.value,a)}),this.filterOrganizations=i,this.filterOrganizationMap=s}setFilterTeams(i){const s=new Map;i.forEach(a=>{s.set(a.value,a)}),this.filterTeams=i,this.filterTeamMap=s}isNeedReBuildRank(i){return this.enableFilterSubmissionsByTimestamp!==i.enableFilterSubmissionsByTimestamp||this.width!==i.width||this.timestamp!==i.timestamp||this.enableFilterTeamsByGroup!==i.enableFilterTeamsByGroup||this.group!==i.group}}class GI{constructor(i,s,a){this.contest=i,this.teams=Wg.cloneDeep(s),this.teamsMap=new Map(this.teams.map(r=>[r.id,r])),this.submissions=Wg.cloneDeep(a).sort(zg.compare),this.submissions.forEach(r=>{const e=this.contest.options;r.timestampUnit=e.submissionTimestampUnit,r.time&&(e.submissionHasTimeField=!0),r.language&&(e.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(zd.compare),this.rankStatistics=new _P,this.options=new yP,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[i,s]of this.teamsMap)this.filterTeamByOrg(s)||this.teams.push(s)})();for(const i of this.teams)i.reset(),i.problemStatistics=this.contest.problems.map(s=>{const a=new fP;return a.problem=s,a.contestPenalty=this.contest.penalty,a}),i.problemStatisticsMap=new Map(i.problemStatistics.map(s=>[s.problem.id,s]));this.contest.problems.forEach(i=>{i.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 i=0;const s=this.getSubmissions();for(let a=0;a<s.length;a++){const r=s[a],e=r.teamId,p=r.problemId,_=this.teamsMap.get(e),D=this.contest.problemsMap.get(p);(()=>{if(_===void 0||this.filterTeamByOrg(_)||D===void 0)return;const F=_.problemStatisticsMap.get(p);if(F.submissions.push(r),_.submissions.push(r),D.statistics.submittedNum++,!F.isSolved){if(r.isIgnore||r.isNotCalculatedPenaltyStatus()){D.statistics.ignoreNum++,F.ignoreCount++;return}if(F.isSubmitted=!0,F.lastSubmitTimestamp=r.timestampToSecond,F.totalCount++,r.isAccepted()){for(F.isSolved=!0,F.solvedTimestamp=r.timestampToSecond,D.statistics.acceptedNum++,D.statistics.attemptedNum+=F.failedCount+1,(D.statistics.firstSolveSubmissions.length===0||D.statistics.firstSolveSubmissions[D.statistics.firstSolveSubmissions.length-1].timestamp===r.timestamp)&&(F.isFirstSolved=!0,D.statistics.firstSolveSubmissions.push(r));D.statistics.lastSolveSubmissions.length>0;)D.statistics.lastSolveSubmissions.pop();D.statistics.lastSolveSubmissions.push(r),_.lastSolvedProblem=D,_.lastSolvedProblemTimestamp=r.timestampToSecond}r.isRejected()&&(F.failedCount++,D.statistics.rejectedNum++),r.isPending()&&(F.pendingCount++,D.statistics.pendingNum++)}})(),(r.timestampToMinute>i||a===s.length-1)&&(this.teams.forEach(F=>F.calcSolvedData(this.contest.options)),this.teams.sort(zd.compare),this.buildTeamRank(),this.teams.forEach(F=>F.placeChartPoints.push({timePoint:r.timestampToMinute,rank:F.rank,lastSolvedProblem:F.lastSolvedProblem}))),i=r.timestampToMinute}this.teams.forEach(a=>a.calcSolvedData(this.contest.options)),this.teams.sort(zd.compare),this.buildTeamRank(),this.buildOrgRank(),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 i of this.teams)this.rankStatistics.teamSolvedNum[i.solvedProblemNum]++;{let i=0;const s=this.rankStatistics.teamSolvedNum,a=this.rankStatistics.teamSolvedNumIndex;for(let r=a.length-1;r>=0;r--)i+=s[r]>0?1:0,a[r]=i}this.teams.length>0&&(this.rankStatistics.maxSolvedProblems=this.teams[0].solvedProblemNum)})(),this}buildTeamRank(){let i=1,s=1,a=null;for(const r of this.teams)r.rank=i++,r.originalRank=s++,a!==null&&r.isEqualRank(a)&&(r.rank=a.rank),a=r}buildOrgRank(){if(!this.contest.organization)return;let i=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=i++,s!==null&&r.isEqualRank(s)&&(r.organizationRank=s.organizationRank),s=r)}}buildOrganizations(){if(!this.contest.organization)return[];const i=new Array,s=new Set;return this.teams.forEach(a=>{const r=a.organization;s.has(r)||(i.push(r),s.add(r))}),i.sort(),i}filterTeamByOrg(i){var a;const s=this.options;return!!(s.enableFilterTeamsByGroup&&!((a=i.group)!=null&&a.includes(s.group)))}getSubmissions(){return this.options.enableFilterSubmissionsByTimestamp===!1?this.submissions:this.submissions.filter(i=>i.timestampToSecond<=this.options.timestamp).sort(zg.compare)}buildBalloons(){this.balloons=[],this.cleanRank();const i=this.getSubmissions();for(let s=0;s<i.length;s++){const a=i[s],r=a.teamId,e=a.problemId,p=this.teamsMap.get(r),_=this.contest.problemsMap.get(e);(()=>{if(p===void 0||_===void 0)return;const D=p.problemStatisticsMap.get(e);if(!D.isSolved&&a.isAccepted()){D.isSolved=!0,D.solvedTimestamp=a.timestampToSecond;const F=new hP;F.team=p,F.problem=_,F.submission=a,this.balloons.push(F)}})()}}}const DP="Board - XCPCIO",YI="Balloon - XCPCIO",KI="Countdown - XCPCIO",wP=(...t)=>{const i=Ti().proxy.$props,s=Object.create(null);for(const a of t)if(typeof a=="string")s[a]=u3(i,a,void 0,{eventName:`update:${a}`,passive:!0});else{const[r,e=r,p=`update:${r}`,_={}]=a;s[r]=u3(i,e,void 0,{eventName:p,passive:!0,..._})}return s},FP={relative:""},EP=Tt("span",{"i-carbon-close":"",ma:"",block:"","aria-hidden":"true"},null,-1),xP=[EP],CP=mi({__name:"SearchInput",props:{modelValue:null},emits:["update:modelValue"],setup(t,{expose:i}){const{modelValue:s}=wP("modelValue"),a=Yt(),r={mounted:_=>_.focus()};function e(){var _;s.value=null,(_=a.value)==null||_.focus()}function p(){var _;(_=a.value)==null||_.focus()}return i({focus:p}),(_,D)=>{var F;return Lr(),fn("div",FP,[Uw(Tt("input",f2({ref_key:"inputEl",ref:a,"onUpdate:modelValue":D[0]||(D[0]=T=>rn(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),[[e1,Qt(s)],[r]]),(F=Qt(s))!=null&&F.length?(Lr(),fn("button",{key:0,absolute:"",flex:"","right-2":"","w-10":"","top-2":"","bottom-2":"","text-xl":"",op30:"","hover:op90":"","aria-label":"Clear search",onClick:D[1]||(D[1]=T=>e())},xP)):Hs("",!0)])}}}),TP={},AP={class:"color-gray-700 dark:color-gray-200"},SP=Tt("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"},[Tt("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"}),Tt("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),OP=[SP];function kP(t,i){return Lr(),fn("div",AP,OP)}const RP=w0(TP,[["render",kP]]),PP=mi({__name:"Progress",props:{width:null,state:null,needScroll:{type:Boolean},rank:null,rankOptions:null,elapsedTime:null},emits:["update:rank-options"],setup(t,{emit:i}){const s=t,a=Hr({get(){return s.rankOptions},set(z){i("update:rank-options",z)}}),r=Hr(()=>{switch(s.state){case Oa.PENDING:return"am-progress-bar-secondary";case Oa.RUNNING:return"am-progress-bar-success";case Oa.FROZEN:return"am-progress-bar-danger";case Oa.FINISHED:return"am-progress-bar-primary"}}),e=Yt(!1),p=Yt(!1),_=Yt(0),D=Yt(s.width),F=Yt(0),T=T6("progress-ratio",-1,{transform:Number}),A=Yt(null),k=Yt(null),I=Yt(null),N=Yt(null),M=Yt(null);function V(z){p.value=!0;const H=z.clientX-I.value.offsetLeft,Z=re=>{var Ae,De;if(!p.value)return;e.value=!0;let te=re.clientX-H;te=Math.max(te,0),te=Math.min(te,A.value.offsetWidth-I.value.offsetWidth);const ae=A.value.offsetWidth*Number.parseInt((Ae=k.value.style)==null?void 0:Ae.width)*.01;te>=ae&&(te=ae,e.value=!1);let ve=0;te>0&&(ve=Math.round((te+I.value.offsetWidth)/A.value.offsetWidth*1e4)),ve>1e4&&(ve=1e4),ve===1e4&&(e.value=!1),(De=window.getSelection())==null||De.removeAllRanges(),_.value=ve,F.value=te,D.value=ve*.01},ee=()=>{var re,te;document.removeEventListener("mouseup",ee),document.removeEventListener("mousemove",Z),p.value=!1,e.value===!0?(T.value=_.value,(re=a.value)==null||re.setWidth(_.value,s.rank.contest)):(T.value=void 0,(te=a.value)==null||te.disableFilterSubmissionByTimestamp())};document.addEventListener("mousemove",Z),document.addEventListener("mouseup",ee)}function U(){const z=s.rank.contest.startTime,H=s.rank.contest.endTime,Z=H.unix()-z.unix(),ee=Math.floor(Z*D.value*.01),re=Bs(),te=Math.max(0,Math.min(re.unix(),H.unix())-z.unix());return fg(Math.min(ee,te))}function G(){return e.value===!0?U():s.elapsedTime}function ne(){return e.value===!0?`${Math.max(0,F.value)}px`:`max(calc(0%), min(calc(${s.width}%), calc(100% - 10px)))`}return La(()=>{var z,H;s.needScroll===!0&&(A.value.onmouseenter=()=>{N.value.classList.add("in")},A.value.onmouseleave=()=>{N.value.classList.remove("in")}),T.value!==-1?(e.value=!0,_.value=Math.max(0,Math.min(1e4,T.value)),D.value=_.value*.01,F.value=D.value*.01*A.value.offsetWidth-I.value.offsetWidth,(z=a.value)==null||z.setWidth(T.value,s.rank.contest)):(H=a.value)==null||H.disableFilterSubmissionByTimestamp()}),Su(()=>{}),(z,H)=>(Lr(),fn("div",{ref_key:"scroll",ref:A,class:"am-progress am-progress-striped am-active","w-full":"",style:{position:"relative"}},[Tt("div",{ref_key:"mask",ref:k,class:ns(["am-progress-bar",[Qt(r)]]),style:Ra({width:`${s.width}%`})},[s.needScroll?(Lr(),fn(Gn,{key:0},[Tt("div",{ref_key:"tooltip",ref:N,class:"tooltip tooltip-top",style:Ra({marginLeft:"-32px",bottom:"22px",left:ne()})},[Tt("div",{ref_key:"tooltipInner",ref:M,class:"tooltip-inner"},ai(G()),513)],4),Tt("div",{ref_key:"bar",ref:I,class:ns(["am-progress-bar am-progress-cursor am-progress-scroll-size z-999",[Qt(r)]]),style:Ra({left:ne()}),onMousedown:V},null,38)],64)):Hs("",!0)],6)],512))}});const IP=w0(PP,[["__scopeId","data-v-ac8e14a6"]]),NP={flex:"","flex-row":"","items-center":"","justify-center":""},LP={key:0,"ml-2":""},MP={key:1,"ml-2":""},BP=mi({__name:"ContestStateBadge",props:{state:null,pendingTime:null,pausedTime:null},setup(t){const i=t;return(s,a)=>(Lr(),fn("div",NP,[Tt("div",{class:ns(["label",i.state])},null,2),Tt("div",null,ai(i.state),1),i.pendingTime&&i.state===Qt(Oa).PENDING?(Lr(),fn("div",LP,ai(i.pendingTime),1)):Hs("",!0),i.pausedTime&&i.state===Qt(Oa).PAUSED?(Lr(),fn("div",MP,ai(i.pausedTime),1)):Hs("",!0)]))}});const UP=w0(BP,[["__scopeId","data-v-68586c4d"]]);function HP(){const t={};return t.base64=String.raw`
202
202
  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==
203
203
  `,t}function $P(){const t={};return t.base64=String.raw`
204
204
  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=
205
- `,t}function WP(){const t={};return t.url="/logos/hunan_cpc.png",t}function zP(t){if(!t.preset)return t;const i=t.preset.toUpperCase();return i==="ICPC"?HP():i==="CCPC"?$P():i==="HUNAN_CPC"?WP():t}const jP=t=>(s2("data-v-53a9ec18"),t=t(),a2(),t),VP={"h-32":""},GP={key:0},YP={"w-240":"",flex:"","flex-col":"","justify-center":"","font-serif":"","pb-2":"",border:"b-2 gray-200 dark:gray-700"},KP={"w-full":"",flex:""},qP={key:0,class:"logo"},QP=["src"],XP={class:"title","w-inherit":""},JP={"overflow-hidden":"","text-2xl":"",truncate:""},ZP={"text-lg":""},eI={flex:"","items-end":""},tI={"float-left":"","font-mono":"","text-base":""},rI={class:"pl-0.5"},nI=jP(()=>Tt("br",null,null,-1)),iI={"flex-1":""},sI={flex:"","items-center":"","justify-center":""},aI={"font-bold":"","font-mono":"",class:"w-[68%]"},oI={"float-right":""},lI={class:"MuiIconButton-label"},cI=mi({__name:"ContestIndexUI",props:{data:null},setup(t){const i=t,{t:s}=y0(),a=Hr(()=>i.data.contest),r=Yt(new Date),e=Yt(null),p=d7(e),_=Hr(()=>{if(a.value.logo)return zP(a.value.logo)}),D=setInterval(()=>{r.value=new Date},1e3);return Su(()=>{clearInterval(D)}),(F,T)=>{const A=BE,k=UP,I=IP,N=RP,M=Ia("RouterLink");return Lr(),fn("div",{ref_key:"el",ref:e},[Tt("div",VP,[Qt(p)?(Lr(),fn("div",GP,[Tt("div",YP,[Tt("div",KP,[Qt(_)!==void 0?(Lr(),fn("div",qP,[Tt("img",{class:"h-10 w-10",src:Qt(bP)(Qt(_)),alt:"logo"},null,8,QP)])):Hs("",!0),Tt("div",XP,[Er(A,null,{popper:Ei(()=>[Tt("div",ZP,ai(Qt(a).name),1)]),default:Ei(()=>[Tt("div",JP,ai(Qt(a).name),1)]),_:1})])]),Tt("div",eI,[Tt("div",tI,[co(ai(Qt(s)("index.start"))+": "+ai(Qt(a).startTime.format("YYYY-MM-DD HH:mm:ss")),1),Tt("sup",rI,ai(Qt(a).startTime.format("z")),1),nI,co(" "+ai(Qt(s)("index.duration"))+": "+ai(Qt(a).getContestDuration()),1)]),Tt("div",iI,[Tt("div",sI,[Tt("div",aI,[Tt("div",null,[Er(k,{state:Qt(a).getContestState(Qt(r)),"pending-time":Qt(a).getContestPendingTime(Qt(r))},null,8,["state","pending-time"])]),Er(I,{width:Qt(a).getContestProgressRatio(Qt(r)),state:Qt(a).getContestState(Qt(r))},null,8,["width","state"])])])]),Tt("div",oI,[Er(M,{class:"go MuiIconButton-root",to:i.data.boardLink},{default:Ei(()=>[Tt("span",lI,[Er(N)])]),_:1},8,["to"])])])])])):Hs("",!0)])],512)}}});const uI=w0(cI,[["__scopeId","data-v-53a9ec18"]]),fI={class:"sm:w-[1024px] lg:w-screen","lg:of-x-hidden":"",flex:"","flex-col":"","justify-center":"","items-center":""},hI={key:0,"mt-4":"","mb-4":"",class:"sm:w-[1000px] lg:w-screen",flex:"","justify-center":"","items-center":""},dI={key:0},pI={key:1},mI={key:1,class:"sm:w-[1000px] lg:w-screen min-h-120",flex:"","flex-col":"","items-center":""},gI={"w-240":""},vI={key:0,"mt-4":""},bI={key:1,p10:""},_I=Tt("div",{op40:"",italic:"",mb5:""}," No result found ",-1),yI={row:"","justify-center":""},j6=mi({__name:"index",setup(t){const{t:i}=y0();w7(DP);const s=Yt(new Date),a=Yt(`${window.DATA_HOST}index/contest_list.json?t=${s.value.getTime()}`),r=Yt(!1),e=T6("s","",{transform:String}),p=Yt(e.value),_=Yt(null),D=Yt([]),F=Yt([]);function T(){F.value=D.value.filter(M=>{var V;return((V=p.value)==null?void 0:V.length)===0&&(p.value=null),p.value===null?(e.value=void 0,!0):(e.value=p.value,!!(M.contest.name.includes(p.value)||M.contest.name.toLowerCase().includes(p.value.toLowerCase())||M.boardLink.toLocaleLowerCase().includes(p.value.toLowerCase())))})}function A(){var M;p.value=null,(M=_.value)==null||M.focus()}const{error:k,isFetching:I,isFinished:N}=y7(a,{refetch:r,afterFetch:M=>(D.value=vP(JSON.parse(M.data)),F.value=D.value.map(V=>V),T(),M)}).get();return bn(p,()=>{T()}),(M,V)=>(Lr(),fn("div",fI,[Tt("div",null,[Qt(I)||Qt(k)?(Lr(),fn("div",hI,[Qt(I)?(Lr(),fn("div",dI,ai(Qt(i)("common.loading"))+"... ",1)):Hs("",!0),Qt(k)?(Lr(),fn("div",pI,ai(Qt(k)),1)):Hs("",!0)])):Hs("",!0),Qt(N)?(Lr(),fn("div",mI,[Tt("div",gI,[Er(CP,{ref_key:"searchInputRef",ref:_,modelValue:Qt(p),"onUpdate:modelValue":V[0]||(V[0]=U=>rn(p)?p.value=U:null)},null,8,["modelValue"])]),Qt(F).length?(Lr(),fn("div",vI,[(Lr(!0),fn(Gn,null,Qw(Qt(F),U=>(Lr(),rl(uI,{key:U.boardLink,data:U},null,8,["data"]))),128))])):(Lr(),fn("div",bI,[_I,Tt("div",yI,[Tt("button",{btn:"",onClick:V[1]||(V[1]=U=>A())}," Clear search ")])]))])):Hs("",!0)])]))}}),G3={};typeof G3=="function"&&G3(j6);const DI=()=>bs(()=>import("./index-3735f4c2.js"),["https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.31.1/dist/assets/index-3735f4c2.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.31.1/dist/assets/useQueryBoardData-b6644ecd.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.31.1/dist/assets/DataSourceInput.vue_vue_type_script_setup_true_lang-b87eba77.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.31.1/dist/assets/TheInput.vue_vue_type_script_setup_true_lang-079f8c80.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.31.1/dist/assets/index-622de38d.css"],import.meta.url),wI=()=>bs(()=>import("./index-4b46c3f4.js"),["https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.31.1/dist/assets/index-4b46c3f4.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.31.1/dist/assets/useQueryBoardData-b6644ecd.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.31.1/dist/assets/DataSourceInput.vue_vue_type_script_setup_true_lang-b87eba77.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.31.1/dist/assets/TheInput.vue_vue_type_script_setup_true_lang-079f8c80.js"],import.meta.url),FI=()=>bs(()=>import("./test-24dab276.js"),["https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.31.1/dist/assets/test-24dab276.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.31.1/dist/assets/TheInput.vue_vue_type_script_setup_true_lang-079f8c80.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.31.1/dist/assets/user-7a10fa8c.js"],import.meta.url),EI=()=>bs(()=>import("./board-6d208112.js"),["https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.31.1/dist/assets/board-6d208112.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.31.1/dist/assets/Board-ce0a2c6c.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.31.1/dist/assets/useQueryBoardData-b6644ecd.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.31.1/dist/assets/Board-3c31679a.css","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.31.1/dist/assets/DataSourceInput.vue_vue_type_script_setup_true_lang-b87eba77.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.31.1/dist/assets/TheInput.vue_vue_type_script_setup_true_lang-079f8c80.js"],import.meta.url),xI=()=>bs(()=>import("./about-f9061b17.js"),[],import.meta.url),CI=()=>bs(()=>import("./_...all_-019b03b8.js"),["https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.31.1/dist/assets/_...all_-019b03b8.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.31.1/dist/assets/Board-ce0a2c6c.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.31.1/dist/assets/useQueryBoardData-b6644ecd.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.31.1/dist/assets/Board-3c31679a.css"],import.meta.url),TI=()=>bs(()=>import("./_name_-6a3b59a1.js"),["https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.31.1/dist/assets/_name_-6a3b59a1.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.31.1/dist/assets/user-7a10fa8c.js"],import.meta.url),AI=[{name:"countdown",path:"/countdown",component:DI,props:!0,meta:{layout:"headless"}},{name:"balloon",path:"/balloon",component:wI,props:!0,meta:{layout:"headless"}},{name:"test",path:"/test",component:FI,props:!0,meta:{layout:"home"}},{name:"index",path:"/",component:j6,props:!0,meta:{layout:"index-layout"}},{name:"board",path:"/board",component:EI,props:!0,meta:{layout:"board-layout"}},{name:"about",path:"/about",component:xI,props:!0},{name:"all",path:"/:all(.*)*",component:CI,props:!0,meta:{layout:"board-layout"}},{name:"hi-name",path:"/hi/:name",component:TI,props:!0}];const SI=Y7(AI);VS(TR,{routes:SI,base:"/"},t=>{Object.values(Object.assign({"./modules/i18n.ts":NA,"./modules/nprogress.ts":BA,"./modules/pinia.ts":YA,"./modules/pwa.ts":qA,"./modules/toast.ts":e8})).forEach(i=>{var s;return(s=i.install)==null?void 0:s.call(i,t)}),t.app.use(X9),t.app.use(_R)});export{XA as $,jI as A,GI as B,YI as C,Qw as D,rl as E,Gn as F,nS as G,rn as H,IF as I,T6 as J,iS as K,wP as L,Uw as M,e1 as N,f2 as O,xR as P,dT as Q,VI as R,Ei as S,co as T,II as U,Fu as V,aA as W,Kk as X,Li as Y,js as Z,bs as _,w0 as a,PI as a0,vo as a1,$I as a2,WI as a3,fg as a4,QA as a5,kI as a6,zg as a7,BE as a8,s2 as a9,UI as aA,V_ as aB,HI as aC,Cw as aD,_0 as aE,xa as aF,ar as aG,i4 as aH,OI as aI,a2 as aa,Ed as ab,bP as ac,La as ad,PE as ae,DP as af,yP as ag,Wg as ah,RI as ai,UP as aj,IP as ak,x2 as al,NI as am,Ca as an,C2 as ao,Z9 as ap,eR as aq,k_ as ar,X4 as as,rR as at,Mb as au,ts as av,Ti as aw,is as ax,mR as ay,Jl as az,Er as b,fn as c,Tt as d,$7 as e,mk as f,mi as g,w7 as h,Yt as i,pP as j,Su as k,Qt as l,Hs as m,ns as n,Lr as o,Oa as p,G3 as q,Ia as r,Hr as s,ai as t,y0 as u,d7 as v,bn as w,Ra as x,GE as y,zI as z};
205
+ `,t}function WP(){const t={};return t.url="/logos/hunan_cpc.png",t}function zP(t){if(!t.preset)return t;const i=t.preset.toUpperCase();return i==="ICPC"?HP():i==="CCPC"?$P():i==="HUNAN_CPC"?WP():t}const jP=t=>(s2("data-v-53a9ec18"),t=t(),a2(),t),VP={"h-32":""},GP={key:0},YP={"w-240":"",flex:"","flex-col":"","justify-center":"","font-serif":"","pb-2":"",border:"b-2 gray-200 dark:gray-700"},KP={"w-full":"",flex:""},qP={key:0,class:"logo"},QP=["src"],XP={class:"title","w-inherit":""},JP={"overflow-hidden":"","text-2xl":"",truncate:""},ZP={"text-lg":""},eI={flex:"","items-end":""},tI={"float-left":"","font-mono":"","text-base":""},rI={class:"pl-0.5"},nI=jP(()=>Tt("br",null,null,-1)),iI={"flex-1":""},sI={flex:"","items-center":"","justify-center":""},aI={"font-bold":"","font-mono":"",class:"w-[68%]"},oI={"float-right":""},lI={class:"MuiIconButton-label"},cI=mi({__name:"ContestIndexUI",props:{data:null},setup(t){const i=t,{t:s}=y0(),a=Hr(()=>i.data.contest),r=Yt(new Date),e=Yt(null),p=d7(e),_=Hr(()=>{if(a.value.logo)return zP(a.value.logo)}),D=setInterval(()=>{r.value=new Date},1e3);return Su(()=>{clearInterval(D)}),(F,T)=>{const A=BE,k=UP,I=IP,N=RP,M=Ia("RouterLink");return Lr(),fn("div",{ref_key:"el",ref:e},[Tt("div",VP,[Qt(p)?(Lr(),fn("div",GP,[Tt("div",YP,[Tt("div",KP,[Qt(_)!==void 0?(Lr(),fn("div",qP,[Tt("img",{class:"h-10 w-10",src:Qt(bP)(Qt(_)),alt:"logo"},null,8,QP)])):Hs("",!0),Tt("div",XP,[Er(A,null,{popper:Ei(()=>[Tt("div",ZP,ai(Qt(a).name),1)]),default:Ei(()=>[Tt("div",JP,ai(Qt(a).name),1)]),_:1})])]),Tt("div",eI,[Tt("div",tI,[co(ai(Qt(s)("index.start"))+": "+ai(Qt(a).startTime.format("YYYY-MM-DD HH:mm:ss")),1),Tt("sup",rI,ai(Qt(a).startTime.format("z")),1),nI,co(" "+ai(Qt(s)("index.duration"))+": "+ai(Qt(a).getContestDuration()),1)]),Tt("div",iI,[Tt("div",sI,[Tt("div",aI,[Tt("div",null,[Er(k,{state:Qt(a).getContestState(Qt(r)),"pending-time":Qt(a).getContestPendingTime(Qt(r))},null,8,["state","pending-time"])]),Er(I,{width:Qt(a).getContestProgressRatio(Qt(r)),state:Qt(a).getContestState(Qt(r))},null,8,["width","state"])])])]),Tt("div",oI,[Er(M,{class:"go MuiIconButton-root",to:i.data.boardLink},{default:Ei(()=>[Tt("span",lI,[Er(N)])]),_:1},8,["to"])])])])])):Hs("",!0)])],512)}}});const uI=w0(cI,[["__scopeId","data-v-53a9ec18"]]),fI={class:"sm:w-[1024px] lg:w-screen","lg:of-x-hidden":"",flex:"","flex-col":"","justify-center":"","items-center":""},hI={key:0,"mt-4":"","mb-4":"",class:"sm:w-[1000px] lg:w-screen",flex:"","justify-center":"","items-center":""},dI={key:0},pI={key:1},mI={key:1,class:"sm:w-[1000px] lg:w-screen min-h-120",flex:"","flex-col":"","items-center":""},gI={"w-240":""},vI={key:0,"mt-4":""},bI={key:1,p10:""},_I=Tt("div",{op40:"",italic:"",mb5:""}," No result found ",-1),yI={row:"","justify-center":""},j6=mi({__name:"index",setup(t){const{t:i}=y0();w7(DP);const s=Yt(new Date),a=Yt(`${window.DATA_HOST}index/contest_list.json?t=${s.value.getTime()}`),r=Yt(!1),e=T6("s","",{transform:String}),p=Yt(e.value),_=Yt(null),D=Yt([]),F=Yt([]);function T(){F.value=D.value.filter(M=>{var V;return((V=p.value)==null?void 0:V.length)===0&&(p.value=null),p.value===null?(e.value=void 0,!0):(e.value=p.value,!!(M.contest.name.includes(p.value)||M.contest.name.toLowerCase().includes(p.value.toLowerCase())||M.boardLink.toLocaleLowerCase().includes(p.value.toLowerCase())))})}function A(){var M;p.value=null,(M=_.value)==null||M.focus()}const{error:k,isFetching:I,isFinished:N}=y7(a,{refetch:r,afterFetch:M=>(D.value=vP(JSON.parse(M.data)),F.value=D.value.map(V=>V),T(),M)}).get();return bn(p,()=>{T()}),(M,V)=>(Lr(),fn("div",fI,[Tt("div",null,[Qt(I)||Qt(k)?(Lr(),fn("div",hI,[Qt(I)?(Lr(),fn("div",dI,ai(Qt(i)("common.loading"))+"... ",1)):Hs("",!0),Qt(k)?(Lr(),fn("div",pI,ai(Qt(k)),1)):Hs("",!0)])):Hs("",!0),Qt(N)?(Lr(),fn("div",mI,[Tt("div",gI,[Er(CP,{ref_key:"searchInputRef",ref:_,modelValue:Qt(p),"onUpdate:modelValue":V[0]||(V[0]=U=>rn(p)?p.value=U:null)},null,8,["modelValue"])]),Qt(F).length?(Lr(),fn("div",vI,[(Lr(!0),fn(Gn,null,Qw(Qt(F),U=>(Lr(),rl(uI,{key:U.boardLink,data:U},null,8,["data"]))),128))])):(Lr(),fn("div",bI,[_I,Tt("div",yI,[Tt("button",{btn:"",onClick:V[1]||(V[1]=U=>A())}," Clear search ")])]))])):Hs("",!0)])]))}}),G3={};typeof G3=="function"&&G3(j6);const DI=()=>bs(()=>import("./index-d882800e.js"),["https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.32.0/dist/assets/index-d882800e.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.32.0/dist/assets/useQueryBoardData-95ed94f9.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.32.0/dist/assets/DataSourceInput.vue_vue_type_script_setup_true_lang-7ca3c000.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.32.0/dist/assets/TheInput.vue_vue_type_script_setup_true_lang-2682b2e3.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.32.0/dist/assets/index-622de38d.css"],import.meta.url),wI=()=>bs(()=>import("./index-181beaa6.js"),["https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.32.0/dist/assets/index-181beaa6.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.32.0/dist/assets/useQueryBoardData-95ed94f9.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.32.0/dist/assets/DataSourceInput.vue_vue_type_script_setup_true_lang-7ca3c000.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.32.0/dist/assets/TheInput.vue_vue_type_script_setup_true_lang-2682b2e3.js"],import.meta.url),FI=()=>bs(()=>import("./test-fa217a0f.js"),["https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.32.0/dist/assets/test-fa217a0f.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.32.0/dist/assets/TheInput.vue_vue_type_script_setup_true_lang-2682b2e3.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.32.0/dist/assets/user-c1e9292b.js"],import.meta.url),EI=()=>bs(()=>import("./board-ce33013d.js"),["https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.32.0/dist/assets/board-ce33013d.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.32.0/dist/assets/Board-a9988a0d.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.32.0/dist/assets/useQueryBoardData-95ed94f9.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.32.0/dist/assets/Board-5181d383.css","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.32.0/dist/assets/DataSourceInput.vue_vue_type_script_setup_true_lang-7ca3c000.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.32.0/dist/assets/TheInput.vue_vue_type_script_setup_true_lang-2682b2e3.js"],import.meta.url),xI=()=>bs(()=>import("./about-b984181a.js"),[],import.meta.url),CI=()=>bs(()=>import("./_...all_-c4727646.js"),["https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.32.0/dist/assets/_...all_-c4727646.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.32.0/dist/assets/Board-a9988a0d.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.32.0/dist/assets/useQueryBoardData-95ed94f9.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.32.0/dist/assets/Board-5181d383.css"],import.meta.url),TI=()=>bs(()=>import("./_name_-8853f4a2.js"),["https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.32.0/dist/assets/_name_-8853f4a2.js","https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.32.0/dist/assets/user-c1e9292b.js"],import.meta.url),AI=[{name:"countdown",path:"/countdown",component:DI,props:!0,meta:{layout:"headless"}},{name:"balloon",path:"/balloon",component:wI,props:!0,meta:{layout:"headless"}},{name:"test",path:"/test",component:FI,props:!0,meta:{layout:"home"}},{name:"index",path:"/",component:j6,props:!0,meta:{layout:"index-layout"}},{name:"board",path:"/board",component:EI,props:!0,meta:{layout:"board-layout"}},{name:"about",path:"/about",component:xI,props:!0},{name:"all",path:"/:all(.*)*",component:CI,props:!0,meta:{layout:"board-layout"}},{name:"hi-name",path:"/hi/:name",component:TI,props:!0}];const SI=Y7(AI);VS(TR,{routes:SI,base:"/"},t=>{Object.values(Object.assign({"./modules/i18n.ts":NA,"./modules/nprogress.ts":BA,"./modules/pinia.ts":YA,"./modules/pwa.ts":qA,"./modules/toast.ts":e8})).forEach(i=>{var s;return(s=i.install)==null?void 0:s.call(i,t)}),t.app.use(X9),t.app.use(_R)});export{RI as $,VI as A,YI as B,KI as C,Qw as D,rl as E,Gn as F,nS as G,rn as H,IF as I,T6 as J,iS as K,wP as L,Uw as M,e1 as N,f2 as O,xR as P,dT as Q,GI as R,Ei as S,co as T,NI as U,Fu as V,aA as W,Kk as X,_4 as Y,zg as Z,bs as _,w0 as a,Li as a0,js as a1,XA as a2,II as a3,vo as a4,WI as a5,zI as a6,fg as a7,QA as a8,kI as a9,mR as aA,Jl as aB,HI as aC,V_ as aD,$I as aE,Cw as aF,_0 as aG,xa as aH,ar as aI,i4 as aJ,OI as aK,BE as aa,s2 as ab,a2 as ac,Ed as ad,bP as ae,La as af,PE as ag,DP as ah,yP as ai,Wg as aj,PI as ak,UP as al,IP as am,x2 as an,LI as ao,Ca as ap,C2 as aq,Z9 as ar,eR as as,k_ as at,X4 as au,rR as av,Mb as aw,ts as ax,Ti as ay,is as az,Er as b,fn as c,Tt as d,$7 as e,mk as f,mi as g,w7 as h,Yt as i,pP as j,Su as k,Qt as l,Hs as m,ns as n,Lr as o,Oa as p,G3 as q,Ia as r,Hr as s,ai as t,y0 as u,d7 as v,bn as w,Ra as x,GE as y,jI as z};