diff --git a/polylan_submitter/static_source/vite/assets/RankBadge.vue_vue_type_script_setup_true_lang-CzWD2ic-.js b/polylan_submitter/static_source/vite/assets/RankBadge.vue_vue_type_script_setup_true_lang-CzWD2ic-.js new file mode 100644 index 0000000..392e792 --- /dev/null +++ b/polylan_submitter/static_source/vite/assets/RankBadge.vue_vue_type_script_setup_true_lang-CzWD2ic-.js @@ -0,0 +1 @@ +import{d as s,a as e,o as n,t}from"./style-CWE_e4zZ.js";const c={key:0,class:"flex justify-center"},d={key:0,class:"badge badge-warning badge-lg"},k={key:1,class:"badge badge-lg"},o={key:2,class:"badge badge-lg"},l={key:3,class:"badge badge-lg"},g={key:1,class:"text-2xl text-base-content/50"},y=s({__name:"RankBadge",props:{rank:{}},setup(a){return(i,r)=>a.rank!==null?(n(),e("div",c,[a.rank===1?(n(),e("span",d," 🏆 #"+t(a.rank),1)):a.rank===2?(n(),e("span",k," 🥈 #"+t(a.rank),1)):a.rank===3?(n(),e("span",o," 🥉 #"+t(a.rank),1)):(n(),e("span",l," #"+t(a.rank),1))])):(n(),e("div",g," No rank yet "))}});export{y as _}; diff --git a/polylan_submitter/static_source/vite/assets/home-DjUHGAVZ.js b/polylan_submitter/static_source/vite/assets/home-CykeG-Mq.js similarity index 96% rename from polylan_submitter/static_source/vite/assets/home-DjUHGAVZ.js rename to polylan_submitter/static_source/vite/assets/home-CykeG-Mq.js index 8b100d1..ef370c7 100644 --- a/polylan_submitter/static_source/vite/assets/home-DjUHGAVZ.js +++ b/polylan_submitter/static_source/vite/assets/home-CykeG-Mq.js @@ -1 +1 @@ -import{d as x,r as l,q as h,a as o,o as r,b as e,e as y,j as k,F as w,g as _,t as E,f as j,E as S}from"./style-BkYIZIDm.js";import{g as C}from"./sdk.gen-CA3PL0uK.js";const B={class:"min-h-screen bg-base-300 flex items-center justify-center px-4"},N={class:"w-full max-w-6xl"},V={key:0,class:"flex justify-center py-20"},$={key:1,class:"grid grid-cols-1 md:grid-cols-2 gap-8"},A=["onClick"],L={class:"relative h-60 bg-base-300 overflow-hidden"},M=["src","alt","onError"],P={key:1,class:"w-full h-full bg-gradient-to-br from-blue-600 to-blue-400 flex items-center justify-center text-white"},q={class:"card-body"},D={class:"card-title text-2xl"},F=x({__name:"Home",props:{marketEnabled:{type:[String,Boolean],default:!0}},setup(b){const n=b,i=l(),d=l(!0),c=l(new Set),p=s=>`https://cdn.akamai.steamstatic.com/steam/apps/${s}/header.jpg`,v=s=>{c.value.add(s)},m=s=>{window.location.href=s},g=()=>typeof n.marketEnabled=="string"?n.marketEnabled==="true":!!n.marketEnabled;return h(async()=>{const s=await C();s.data&&(i.value=s.data),d.value=!1}),(s,t)=>(r(),o("div",B,[e("div",N,[t[6]||(t[6]=e("div",{class:"text-center mb-12"},[e("h1",{class:"text-5xl font-bold mb-4"},"PolyLAN Submitter"),e("p",{class:"text-xl text-base-content/70"}," Choose a game and submit your best solutions ")],-1)),d.value?(r(),o("div",V,[...t[1]||(t[1]=[e("span",{class:"loading loading-spinner loading-lg"},null,-1)])])):(r(),o("div",$,[g()?(r(),o("div",{key:0,onClick:t[0]||(t[0]=a=>m("/market")),class:"card card-xl bg-base-200 shadow-xl hover:shadow-2xl transition-all cursor-pointer transform hover:-translate-y-2 hover:scale-[1.05] hover:bg-base-100 overflow-hidden"},[...t[2]||(t[2]=[k('

Market

Place your bets and compete

',2)])])):y("",!0),(r(!0),o(w,null,_(i.value,a=>(r(),o("div",{key:a.steam_app_id,onClick:f=>m(a.path),class:"card card-xl bg-base-200 shadow-xl hover:shadow-2xl transition-all cursor-pointer transform hover:-translate-y-2 hover:scale-[1.05] hover:bg-base-100 overflow-hidden"},[e("figure",L,[c.value.has(a.steam_app_id)?(r(),o("div",P,[...t[3]||(t[3]=[e("i",{class:"mdi mdi-gamepad-variant text-5xl"},null,-1)])])):(r(),o("img",{key:0,src:p(a.steam_app_id),alt:a.name,onError:f=>v(a.steam_app_id),class:"w-full h-full object-cover"},null,40,M)),t[4]||(t[4]=e("div",{class:"absolute inset-0 bg-black/30 group-hover:bg-black/20 transition-colors"},null,-1))]),e("div",q,[e("h2",D,E(a.name),1),t[5]||(t[5]=e("div",{class:"card-actions justify-end mt-4"},[e("button",{class:"btn btn-primary"},[e("i",{class:"mdi mdi-arrow-right mr-2"}),j(" Submit results ")])],-1))])],8,A))),128))])),t[7]||(t[7]=e("div",{class:"text-center mt-12 text-base-content/50"},[e("p",null,"Select a game above to begin submitting")],-1))])]))}}),u="#app",H=document.querySelector(u),I=S(F,{...H?.dataset});I.mount(u); +import{d as x,r as l,q as h,a as o,o as r,b as e,e as y,j as k,F as w,g as _,t as E,f as j,E as S}from"./style-CWE_e4zZ.js";import{g as C}from"./sdk.gen-yuJ1arsq.js";const B={class:"min-h-screen bg-base-300 flex items-center justify-center px-4"},N={class:"w-full max-w-6xl"},V={key:0,class:"flex justify-center py-20"},$={key:1,class:"grid grid-cols-1 md:grid-cols-2 gap-8"},A=["onClick"],L={class:"relative h-60 bg-base-300 overflow-hidden"},M=["src","alt","onError"],P={key:1,class:"w-full h-full bg-gradient-to-br from-blue-600 to-blue-400 flex items-center justify-center text-white"},q={class:"card-body"},D={class:"card-title text-2xl"},F=x({__name:"Home",props:{marketEnabled:{type:[String,Boolean],default:!0}},setup(b){const n=b,i=l(),d=l(!0),c=l(new Set),p=s=>`https://cdn.akamai.steamstatic.com/steam/apps/${s}/header.jpg`,v=s=>{c.value.add(s)},m=s=>{window.location.href=s},g=()=>typeof n.marketEnabled=="string"?n.marketEnabled==="true":!!n.marketEnabled;return h(async()=>{const s=await C();s.data&&(i.value=s.data),d.value=!1}),(s,t)=>(r(),o("div",B,[e("div",N,[t[6]||(t[6]=e("div",{class:"text-center mb-12"},[e("h1",{class:"text-5xl font-bold mb-4"},"PolyLAN Submitter"),e("p",{class:"text-xl text-base-content/70"}," Choose a game and submit your best solutions ")],-1)),d.value?(r(),o("div",V,[...t[1]||(t[1]=[e("span",{class:"loading loading-spinner loading-lg"},null,-1)])])):(r(),o("div",$,[g()?(r(),o("div",{key:0,onClick:t[0]||(t[0]=a=>m("/market")),class:"card card-xl bg-base-200 shadow-xl hover:shadow-2xl transition-all cursor-pointer transform hover:-translate-y-2 hover:scale-[1.05] hover:bg-base-100 overflow-hidden"},[...t[2]||(t[2]=[k('

Market

Place your bets and compete

',2)])])):y("",!0),(r(!0),o(w,null,_(i.value,a=>(r(),o("div",{key:a.steam_app_id,onClick:f=>m(a.path),class:"card card-xl bg-base-200 shadow-xl hover:shadow-2xl transition-all cursor-pointer transform hover:-translate-y-2 hover:scale-[1.05] hover:bg-base-100 overflow-hidden"},[e("figure",L,[c.value.has(a.steam_app_id)?(r(),o("div",P,[...t[3]||(t[3]=[e("i",{class:"mdi mdi-gamepad-variant text-5xl"},null,-1)])])):(r(),o("img",{key:0,src:p(a.steam_app_id),alt:a.name,onError:f=>v(a.steam_app_id),class:"w-full h-full object-cover"},null,40,M)),t[4]||(t[4]=e("div",{class:"absolute inset-0 bg-black/30 group-hover:bg-black/20 transition-colors"},null,-1))]),e("div",q,[e("h2",D,E(a.name),1),t[5]||(t[5]=e("div",{class:"card-actions justify-end mt-4"},[e("button",{class:"btn btn-primary"},[e("i",{class:"mdi mdi-arrow-right mr-2"}),j(" Submit results ")])],-1))])],8,A))),128))])),t[7]||(t[7]=e("div",{class:"text-center mt-12 text-base-content/50"},[e("p",null,"Select a game above to begin submitting")],-1))])]))}}),u="#app",H=document.querySelector(u),I=S(F,{...H?.dataset});I.mount(u); diff --git a/polylan_submitter/static_source/vite/assets/index-2B-edoO9.js b/polylan_submitter/static_source/vite/assets/index-2B-edoO9.js new file mode 100644 index 0000000..09ebe58 --- /dev/null +++ b/polylan_submitter/static_source/vite/assets/index-2B-edoO9.js @@ -0,0 +1,5 @@ +import{I as H,r as J,J as K,K as V,c as D,y as R,L as N,M as T,N as tt,O as et,P as st,B as nt,C as ot,w as ct,h as rt,Q as ut}from"./style-CWE_e4zZ.js";/*! + * pinia v3.0.3 + * (c) 2025 Eduardo San Martin Morote + * @license MIT + */let Q;const x=t=>Q=t,q=Symbol();function k(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var g;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(g||(g={}));function at(){const t=H(!0),o=t.run(()=>J({}));let s=[],e=[];const r=K({install(u){x(r),r._a=u,u.provide(q,r),u.config.globalProperties.$pinia=r,e.forEach(a=>s.push(a)),e=[]},use(u){return this._a?s.push(u):e.push(u),this},_p:s,_a:null,_e:t,_s:new Map,state:o});return r}const z=()=>{};function A(t,o,s,e=z){t.push(o);const r=()=>{const u=t.indexOf(o);u>-1&&(t.splice(u,1),e())};return!s&&nt()&&ot(r),r}function d(t,...o){t.slice().forEach(s=>{s(...o)})}const ft=t=>t(),B=Symbol(),I=Symbol();function L(t,o){t instanceof Map&&o instanceof Map?o.forEach((s,e)=>t.set(e,s)):t instanceof Set&&o instanceof Set&&o.forEach(t.add,t);for(const s in o){if(!o.hasOwnProperty(s))continue;const e=o[s],r=t[s];k(r)&&k(e)&&t.hasOwnProperty(s)&&!R(e)&&!N(e)?t[s]=L(r,e):t[s]=e}return t}const it=Symbol();function lt(t){return!k(t)||!Object.prototype.hasOwnProperty.call(t,it)}const{assign:h}=Object;function ht(t){return!!(R(t)&&t.effect)}function bt(t,o,s,e){const{state:r,actions:u,getters:a}=o,O=s.state.value[t];let y;function b(){O||(s.state.value[t]=r?r():{});const S=ut(s.state.value[t]);return h(S,u,Object.keys(a||{}).reduce((v,_)=>(v[_]=K(D(()=>{x(s);const m=s._s.get(t);return a[_].call(m,m)})),v),{}))}return y=U(t,b,o,s,e,!0),y}function U(t,o,s={},e,r,u){let a;const O=h({actions:{}},s),y={deep:!0};let b,S,v=[],_=[],m;const j=e.state.value[t];!u&&!j&&(e.state.value[t]={}),J({});let W;function F(c){let n;b=S=!1,typeof c=="function"?(c(e.state.value[t]),n={type:g.patchFunction,storeId:t,events:m}):(L(e.state.value[t],c),n={type:g.patchObject,payload:c,storeId:t,events:m});const f=W=Symbol();rt().then(()=>{W===f&&(b=!0)}),S=!0,d(v,n,e.state.value[t])}const X=u?function(){const{state:n}=s,f=n?n():{};this.$patch(p=>{h(p,f)})}:z;function Y(){a.stop(),v=[],_=[],e._s.delete(t)}const M=(c,n="")=>{if(B in c)return c[I]=n,c;const f=function(){x(e);const p=Array.from(arguments),C=[],E=[];function G(i){C.push(i)}function $(i){E.push(i)}d(_,{args:p,name:f[I],store:l,after:G,onError:$});let w;try{w=c.apply(this&&this.$id===t?this:l,p)}catch(i){throw d(E,i),i}return w instanceof Promise?w.then(i=>(d(C,i),i)).catch(i=>(d(E,i),Promise.reject(i))):(d(C,w),w)};return f[B]=!0,f[I]=n,f},Z={_p:e,$id:t,$onAction:A.bind(null,_),$patch:F,$reset:X,$subscribe(c,n={}){const f=A(v,c,n.detached,()=>p()),p=a.run(()=>ct(()=>e.state.value[t],C=>{(n.flush==="sync"?S:b)&&c({storeId:t,type:g.direct,events:m},C)},h({},y,n)));return f},$dispose:Y},l=st(Z);e._s.set(t,l);const P=(e._a&&e._a.runWithContext||ft)(()=>e._e.run(()=>(a=H()).run(()=>o({action:M}))));for(const c in P){const n=P[c];if(R(n)&&!ht(n)||N(n))u||(j&<(n)&&(R(n)?n.value=j[c]:L(n,j[c])),e.state.value[t][c]=n);else if(typeof n=="function"){const f=M(n,c);P[c]=f,O.actions[c]=n}}return h(l,P),h(V(l),P),Object.defineProperty(l,"$state",{get:()=>e.state.value[t],set:c=>{F(n=>{h(n,c)})}}),e._p.forEach(c=>{h(l,a.run(()=>c({store:l,app:e._a,pinia:e,options:O})))}),j&&u&&s.hydrate&&s.hydrate(l.$state,j),b=!0,S=!0,l}/*! #__NO_SIDE_EFFECTS__ */function vt(t,o,s){let e;const r=typeof o=="function";e=r?s:o;function u(a,O){const y=et();return a=a||(y?tt(q,null):null),a&&x(a),a=Q,a._s.has(t)||(r?U(t,o,e,a):bt(t,e,a)),a._s.get(t)}return u.$id=t,u}function _t(t){const o=V(t),s={};for(const e in o){const r=o[e];r.effect?s[e]=D({get:()=>t[e],set(u){t[e]=u}}):(R(r)||N(r))&&(s[e]=T(t,e))}return s}const mt=at();export{vt as d,mt as p,_t as s}; diff --git a/polylan_submitter/static_source/vite/assets/index-C0ZY4EM6.js b/polylan_submitter/static_source/vite/assets/index-C0ZY4EM6.js deleted file mode 100644 index 21239c3..0000000 --- a/polylan_submitter/static_source/vite/assets/index-C0ZY4EM6.js +++ /dev/null @@ -1,5 +0,0 @@ -import{H as K,r as V,I as q,J as z,c as Q,y as p,K as F,L as st,M as nt,N as ot,O as ct,B as rt,C as at,w as ut,h as ft,P as lt,d as it,a as m,o as j,t as E}from"./style-BkYIZIDm.js";/*! - * pinia v3.0.3 - * (c) 2025 Eduardo San Martin Morote - * @license MIT - */let U;const I=t=>U=t,X=Symbol();function B(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var R;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(R||(R={}));function ht(){const t=K(!0),n=t.run(()=>V({}));let s=[],e=[];const r=q({install(a){I(r),r._a=a,a.provide(X,r),a.config.globalProperties.$pinia=r,e.forEach(u=>s.push(u)),e=[]},use(a){return this._a?s.push(a):e.push(a),this},_p:s,_a:null,_e:t,_s:new Map,state:n});return r}const Y=()=>{};function D(t,n,s,e=Y){t.push(n);const r=()=>{const a=t.indexOf(n);a>-1&&(t.splice(a,1),e())};return!s&&rt()&&at(r),r}function x(t,...n){t.slice().forEach(s=>{s(...n)})}const bt=t=>t(),J=Symbol(),N=Symbol();function W(t,n){t instanceof Map&&n instanceof Map?n.forEach((s,e)=>t.set(e,s)):t instanceof Set&&n instanceof Set&&n.forEach(t.add,t);for(const s in n){if(!n.hasOwnProperty(s))continue;const e=n[s],r=t[s];B(r)&&B(e)&&t.hasOwnProperty(s)&&!p(e)&&!F(e)?t[s]=W(r,e):t[s]=e}return t}const yt=Symbol();function dt(t){return!B(t)||!Object.prototype.hasOwnProperty.call(t,yt)}const{assign:h}=Object;function St(t){return!!(p(t)&&t.effect)}function vt(t,n,s,e){const{state:r,actions:a,getters:u}=n,C=s.state.value[t];let y;function b(){C||(s.state.value[t]=r?r():{});const d=lt(s.state.value[t]);return h(d,a,Object.keys(u||{}).reduce((S,v)=>(S[v]=q(Q(()=>{I(s);const g=s._s.get(t);return u[v].call(g,g)})),S),{}))}return y=Z(t,b,n,s,e,!0),y}function Z(t,n,s={},e,r,a){let u;const C=h({actions:{}},s),y={deep:!0};let b,d,S=[],v=[],g;const k=e.state.value[t];!a&&!k&&(e.state.value[t]={}),V({});let H;function M(c){let o;b=d=!1,typeof c=="function"?(c(e.state.value[t]),o={type:R.patchFunction,storeId:t,events:g}):(W(e.state.value[t],c),o={type:R.patchObject,payload:c,storeId:t,events:g});const f=H=Symbol();ft().then(()=>{H===f&&(b=!0)}),d=!0,x(S,o,e.state.value[t])}const G=a?function(){const{state:o}=s,f=o?o():{};this.$patch(_=>{h(_,f)})}:Y;function $(){u.stop(),S=[],v=[],e._s.delete(t)}const A=(c,o="")=>{if(J in c)return c[N]=o,c;const f=function(){I(e);const _=Array.from(arguments),P=[],L=[];function tt(l){P.push(l)}function et(l){L.push(l)}x(v,{args:_,name:f[N],store:i,after:tt,onError:et});let w;try{w=c.apply(this&&this.$id===t?this:i,_)}catch(l){throw x(L,l),l}return w instanceof Promise?w.then(l=>(x(P,l),l)).catch(l=>(x(L,l),Promise.reject(l))):(x(P,w),w)};return f[J]=!0,f[N]=o,f},T={_p:e,$id:t,$onAction:D.bind(null,v),$patch:M,$reset:G,$subscribe(c,o={}){const f=D(S,c,o.detached,()=>_()),_=u.run(()=>ut(()=>e.state.value[t],P=>{(o.flush==="sync"?d:b)&&c({storeId:t,type:R.direct,events:g},P)},h({},y,o)));return f},$dispose:$},i=ct(T);e._s.set(t,i);const O=(e._a&&e._a.runWithContext||bt)(()=>e._e.run(()=>(u=K()).run(()=>n({action:A}))));for(const c in O){const o=O[c];if(p(o)&&!St(o)||F(o))a||(k&&dt(o)&&(p(o)?o.value=k[c]:W(o,k[c])),e.state.value[t][c]=o);else if(typeof o=="function"){const f=A(o,c);O[c]=f,C.actions[c]=o}}return h(i,O),h(z(i),O),Object.defineProperty(i,"$state",{get:()=>e.state.value[t],set:c=>{M(o=>{h(o,c)})}}),e._p.forEach(c=>{h(i,u.run(()=>c({store:i,app:e._a,pinia:e,options:C})))}),k&&a&&s.hydrate&&s.hydrate(i.$state,k),b=!0,d=!0,i}/*! #__NO_SIDE_EFFECTS__ */function Pt(t,n,s){let e;const r=typeof n=="function";e=r?s:n;function a(u,C){const y=ot();return u=u||(y?nt(X,null):null),u&&I(u),u=U,u._s.has(t)||(r?Z(t,n,e,u):vt(t,e,u)),u._s.get(t)}return a.$id=t,a}function wt(t){const n=z(t),s={};for(const e in n){const r=n[e];r.effect?s[e]=Q({get:()=>t[e],set(a){t[e]=a}}):(p(r)||F(r))&&(s[e]=st(t,e))}return s}const gt={key:0,class:"flex justify-center"},kt={key:0,class:"badge badge-warning badge-lg"},_t={key:1,class:"badge badge-lg"},mt={key:2,class:"badge badge-lg"},jt={key:3,class:"badge badge-lg"},xt={key:1,class:"text-2xl text-base-content/50"},Rt=it({__name:"RankBadge",props:{rank:{}},setup(t){return(n,s)=>t.rank!==null?(j(),m("div",gt,[t.rank===1?(j(),m("span",kt," 🏆 #"+E(t.rank),1)):t.rank===2?(j(),m("span",_t," 🥈 #"+E(t.rank),1)):t.rank===3?(j(),m("span",mt," 🥉 #"+E(t.rank),1)):(j(),m("span",jt," #"+E(t.rank),1))])):(j(),m("div",xt," No rank yet "))}}),pt=ht();export{Rt as _,Pt as d,pt as p,wt as s}; diff --git a/polylan_submitter/static_source/vite/assets/market-CMZT_MuA.js b/polylan_submitter/static_source/vite/assets/market-CMZT_MuA.js new file mode 100644 index 0000000..19aed65 --- /dev/null +++ b/polylan_submitter/static_source/vite/assets/market-CMZT_MuA.js @@ -0,0 +1 @@ +import{r as h,d as L,c as w,q as V,a,o as s,b as t,e as v,t as l,n as E,u as k,F as B,g as C,k as R,H as F,m as Q,f as x,l as X,D as Z,E as tt}from"./style-CWE_e4zZ.js";import{d as et,s as S,p as st}from"./index-2B-edoO9.js";import{p as at,m as ot,b as nt,c as lt,d as it,e as dt}from"./sdk.gen-yuJ1arsq.js";const W=et("market",()=>{const d=h([]),y=h(),u=h([]),_=h(!0),p=h(""),$=async()=>{try{const n=await at();n.data&&(y.value=n.data)}catch(n){p.value="Failed to load user info",console.error("Error loading user info:",n)}},f=async()=>{try{const n=await ot();n.data&&(d.value=n.data)}catch(n){p.value="Failed to load markets",console.error("Error loading markets:",n)}},b=async()=>{try{const n=await nt();n.data&&(u.value=n.data)}catch(n){p.value="Failed to load user bets",console.error("Error loading user bets:",n)}};return{markets:d,userInfo:y,userBets:u,isLoading:_,error:p,loadUserInfo:$,loadMarkets:f,loadUserBets:b,initializeMarketPage:async()=>{_.value=!0,p.value="";try{await Promise.all([$(),f()]),y.value?.is_authenticated&&await b()}finally{_.value=!1}},refreshPage:async()=>{await Promise.all([$(),f(),y.value?.is_authenticated?b():Promise.resolve()])}}}),rt={class:"card bg-base-100 shadow-xl"},ut={class:"card-body pb-3"},ct={class:"flex justify-between items-start gap-4"},vt={class:"flex-1"},mt={class:"card-title text-2xl mb-2"},bt={class:"text-sm text-base-content/70"},_t={class:"flex flex-col items-end gap-2"},pt={class:"flex gap-2 items-center"},ft={key:0,class:"badge badge-accent text-white font-bold"},gt={key:0,class:"text-sm text-base-content/60 text-right"},xt={key:0,class:"card-body py-4 bg-base-100"},kt={class:"flex gap-2"},ht=["disabled"],yt={key:0,class:"loading loading-spinner loading-sm"},$t={key:1},wt={key:1,class:"modal modal-open"},Bt={class:"modal-box"},Mt={class:"space-y-2 mb-4"},Pt={class:"label cursor-pointer border rounded-lg p-3 hover:bg-base-200 transition w-full flex justify-between"},Ct={class:"label-text font-medium"},At=["value"],Et={key:0,class:"alert alert-error mb-4"},jt={class:"modal-action"},Rt=["disabled"],Lt=["disabled"],St={key:0,class:"loading loading-spinner loading-sm"},Wt={key:1},Ut={class:"card-body py-4"},Dt={class:"flex flex-col gap-3"},It={class:"flex flex-col gap-2 flex-1"},Ft={class:"label-text font-medium"},Vt={class:"text-xs text-base-content/60"},Yt={key:0},Nt={key:0,class:"flex flex-col gap-1"},Tt={class:"badge badge-primary badge-sm w-fit"},zt={key:0,class:"badge badge-success badge-sm w-fit"},Ot=["value","disabled"],qt={key:2,class:"card-body py-4"},Gt={class:"form-control gap-3"},Ht={class:"label"},Jt={class:"label-text"},Kt={key:0},Qt={key:1},Xt=["placeholder","disabled"],Zt={key:0,class:"alert alert-error"},te=["disabled"],ee={key:0,class:"loading loading-spinner loading-sm"},se={key:1},ae={key:2},oe={key:3,class:"card-body py-4 bg-base-200"},ne={class:"text-sm"},le={class:"text-base-content/70 mt-1"},ie={class:"font-semibold"},de={class:"text-base-content/70"},re={class:"font-semibold"},ue={key:4,class:"card-body py-4 bg-base-200"},ce={class:"text-sm"},ve={key:0},me={key:1},be={key:2},_e={class:"text-base-content/70 mt-1"},pe={class:"font-semibold"},fe=L({__name:"MarketCard",props:{market:{}},emits:["refresh"],setup(d,{emit:y}){const u=d,_=y,p=W(),{userInfo:$,userBets:f}=S(p),b=h(null),i=h(0),g=h(!1),n=h(""),e=h(null),c=h(!1),M=h(null),A=h(!1),T=w(()=>{const m=new Date(u.market.end_date).getTime(),o=new Date().getTime(),r=m-o;if(r<=0)return"Ended";const P=Math.floor(r/(1e3*60*60*24)),j=Math.floor(r%(1e3*60*60*24)/(1e3*60*60)),I=Math.floor(r%(1e3*60*60)/(1e3*60));return P>0?`${P}d ${j}h`:j>0?`${j}h ${I}m`:`${I}m`}),z=w(()=>{switch(u.market.status){case"draft":return"badge-secondary";case"open":return"badge-success";case"closed":return"badge-warning";case"resolved":return"badge-info";default:return"badge-ghost"}}),O=w(()=>u.market.status==="open"&&$.value?.is_authenticated&&b.value&&i.value>0),q=w(()=>u.market.options.reduce((m,o)=>m+o.total_bets,0)),U=m=>m.total_bets===0?0:q.value/m.total_bets,G=m=>{if(!e.value||e.value.option.uuid!==m.uuid)return 0;const o=U(m);return Math.round(e.value.amount*o*u.market.multiplier)},H=async()=>{g.value=!0,n.value="";try{await lt({path:{market_uuid:u.market.uuid}}),_("refresh")}catch{n.value="Error closing market"}finally{g.value=!1}},J=async()=>{if(!M.value){n.value="Please select a winning option";return}A.value=!0,n.value="";try{await it({path:{market_uuid:u.market.uuid},body:{winning_option_uuid:M.value}}),_("refresh"),c.value=!1,M.value=null}catch(m){const o=m;typeof o=="object"&&o?.detail?n.value=o.detail:typeof o=="string"?n.value=o:n.value="Error resolving market"}finally{A.value=!1}},K=async()=>{if(!(!b.value||!i.value)){g.value=!0,n.value="";try{const m=await dt({path:{market_uuid:u.market.uuid},body:{option_uuid:b.value,amount:i.value}});if(!m.error)await p.loadUserBets(),D(),i.value=0;else{const o=m.error;typeof o=="object"&&o?.detail?n.value=o.detail:typeof o=="string"?n.value=o:n.value="Failed to place bet"}}catch{n.value="Error placing bet"}finally{g.value=!1}}};V(()=>{D()});const D=()=>{f.value&&(e.value=f.value.find(m=>m.market?.uuid===u.market.uuid)||null,e.value&&(b.value=e.value.option.uuid,i.value=e.value.amount))};return(m,o)=>(s(),a("div",rt,[t("div",ut,[t("div",ct,[t("div",vt,[t("h2",mt,l(d.market.title),1),t("p",bt,l(d.market.description),1)]),t("div",_t,[t("div",pt,[t("div",{class:E(["badge",z.value,"text-white"])},l(d.market.status),3),d.market.multiplier>1?(s(),a("div",ft,l(d.market.multiplier)+"x ",1)):v("",!0)]),d.market.status==="open"||d.market.status==="closed"?(s(),a("div",gt,[t("div",null,l(T.value),1),o[6]||(o[6]=t("div",{class:"text-xs"},"until close",-1))])):v("",!0)])])]),o[14]||(o[14]=t("div",{class:"divider my-0"},null,-1)),k($)?.is_superuser?(s(),a("div",xt,[t("div",kt,[d.market.status==="open"?(s(),a("button",{key:0,onClick:H,disabled:g.value,class:"btn btn-sm btn-warning"},[g.value?(s(),a("span",yt)):(s(),a("span",$t,"Close Market"))],8,ht)):v("",!0),d.market.status==="closed"?(s(),a("button",{key:1,onClick:o[0]||(o[0]=r=>c.value=!0),class:"btn btn-sm btn-success"}," Resolve Market ")):v("",!0)])])):v("",!0),c.value?(s(),a("dialog",wt,[t("div",Bt,[o[8]||(o[8]=t("h3",{class:"font-bold text-lg mb-4"},"Resolve Market - Select Winner",-1)),t("div",Mt,[(s(!0),a(B,null,C(d.market.options,r=>(s(),a("div",{key:r.uuid,class:"form-control"},[t("label",Pt,[t("span",Ct,l(r.text),1),R(t("input",{type:"radio",value:r.uuid,"onUpdate:modelValue":o[1]||(o[1]=P=>M.value=P),class:"radio radio-primary"},null,8,At),[[F,M.value]])])]))),128))]),n.value?(s(),a("div",Et,[o[7]||(o[7]=t("i",{class:"mdi mdi-alert-circle"},null,-1)),t("span",null,l(n.value),1)])):v("",!0),t("div",jt,[t("button",{onClick:o[2]||(o[2]=r=>c.value=!1),class:"btn",disabled:A.value}," Cancel ",8,Rt),t("button",{onClick:J,disabled:!M.value||A.value,class:"btn btn-primary"},[A.value?(s(),a("span",St)):(s(),a("span",Wt,"Resolve & Distribute Points"))],8,Lt)])]),t("div",{class:"modal-backdrop",onClick:o[3]||(o[3]=r=>c.value=!1)})])):v("",!0),t("div",Ut,[t("div",Dt,[(s(!0),a(B,null,C(d.market.options,r=>(s(),a("div",{key:r.uuid,class:"form-control"},[t("label",{class:E(["label cursor-pointer border rounded-lg p-3 hover:bg-base-200 transition h-full w-full",e.value&&e.value.option.uuid===r.uuid?"border-primary border-2 bg-primary/5":""])},[t("div",It,[t("span",Ft,l(r.text),1),t("div",Vt,[t("div",null,"Pool: "+l(r.total_bets)+" pts",1),r.total_bets>0?(s(),a("div",Yt,"Multiplier: "+l(U(r).toFixed(2))+"x",1)):v("",!0)]),e.value&&e.value.option.uuid===r.uuid?(s(),a("div",Nt,[t("span",Tt," Your bet: "+l(e.value.amount)+" pts ",1),r.total_bets>0?(s(),a("span",zt," Potential: "+l(G(r))+" pts ",1)):v("",!0)])):v("",!0)]),R(t("input",{type:"radio",value:r.uuid,"onUpdate:modelValue":o[4]||(o[4]=P=>b.value=P),class:"radio radio-primary",disabled:d.market.status!=="open"||!!(e.value&&e.value.option.uuid!==r.uuid)},null,8,Ot),[[F,b.value]])],2)]))),128))])]),d.market.status==="open"&&k($)?.is_authenticated&&b.value?(s(),a("div",qt,[t("div",Gt,[t("label",Ht,[t("span",Jt,[e.value?(s(),a("span",Kt,"Increase bet (current: "+l(e.value.amount)+" pts)",1)):(s(),a("span",Qt,"Points to bet"))])]),R(t("input",{"onUpdate:modelValue":o[5]||(o[5]=r=>i.value=r),type:"number",placeholder:e.value?"Enter amount to increase by":"Enter points",class:"input input-bordered",min:"1",disabled:g.value},null,8,Xt),[[Q,i.value,void 0,{number:!0}]]),n.value?(s(),a("div",Zt,[o[9]||(o[9]=t("i",{class:"mdi mdi-alert-circle"},null,-1)),t("span",null,l(n.value),1)])):v("",!0),t("button",{onClick:K,disabled:!O.value||g.value,class:"btn btn-primary"},[g.value?(s(),a("span",ee)):e.value?(s(),a("span",se,"Increase Bet")):(s(),a("span",ae,"Place Bet"))],8,te)])])):d.market.status!=="open"&&e.value?(s(),a("div",oe,[t("div",ne,[o[12]||(o[12]=t("div",{class:"font-semibold"},"Your Bet",-1)),t("div",le,[o[10]||(o[10]=x(" Option: ",-1)),t("span",ie,l(e.value.option.text),1)]),t("div",de,[o[11]||(o[11]=x(" Amount: ",-1)),t("span",re,l(e.value.amount)+" pts",1)])])])):d.market.status==="resolved"&&d.market.winning_option?(s(),a("div",ue,[t("div",ce,[t("div",{class:E(["font-semibold",e.value&&e.value.option.uuid===d.market.winning_option.uuid?"text-success":"text-error"])},[e.value&&e.value.option.uuid===d.market.winning_option.uuid?(s(),a("span",ve,"✓ You Won!")):e.value?(s(),a("span",me,"✗ You Lost")):(s(),a("span",be,"Resolved"))],2),t("div",_e,[o[13]||(o[13]=x(" Winner: ",-1)),t("span",pe,l(d.market.winning_option.text),1)])])])):v("",!0)]))}}),ge={class:"space-y-6"},xe={key:0,class:"flex justify-center py-20"},ke={key:1,class:"alert"},he={class:"grid grid-cols-1 md:grid-cols-4 gap-4"},ye={class:"stat bg-base-100 rounded-lg shadow"},$e={class:"stat-value text-2xl"},we={class:"stat-desc text-xs"},Be={class:"stat bg-base-100 rounded-lg shadow"},Me={class:"stat-value text-2xl text-info"},Pe={class:"stat bg-base-100 rounded-lg shadow"},Ce={class:"stat-value text-2xl text-success"},Ae={class:"stat-desc text-xs text-success"},Ee={class:"stat bg-base-100 rounded-lg shadow"},je={class:"stat-value text-2xl text-error"},Re={class:"space-y-6"},Le={key:0},Se={class:"text-xl font-bold mb-4 flex items-center gap-2"},We={class:"space-y-4"},Ue={class:"card-body py-4"},De={class:"flex justify-between items-start"},Ie={class:"flex-1"},Fe={class:"font-semibold text-lg"},Ve={class:"text-sm text-base-content/70"},Ye={class:"font-medium"},Ne={class:"text-right"},Te={class:"text-lg font-bold"},ze={class:"text-xs text-base-content/60 mt-1"},Oe={class:"badge badge-info badge-sm"},qe={key:1},Ge={key:0,class:"space-y-4"},He={class:"card-body py-4"},Je={class:"flex justify-between items-start"},Ke={class:"flex-1"},Qe={class:"font-semibold text-lg"},Xe={class:"text-sm text-base-content/70"},Ze={class:"font-medium text-success"},ts={class:"text-right"},es={class:"text-lg font-bold text-success"},ss={key:2},as={class:"text-xl font-bold mb-4 flex items-center gap-2"},os={class:"space-y-4"},ns={class:"card-body py-4"},ls={class:"flex justify-between items-start"},is={class:"flex-1"},ds={class:"font-semibold text-lg"},rs={class:"text-sm text-base-content/70"},us={class:"font-medium"},cs={class:"text-sm text-base-content/60 mt-1"},vs={class:"font-medium"},ms={class:"text-right"},bs={class:"text-lg font-bold text-error"},_s=L({__name:"UserBets",emits:["refresh"],setup(d){const y=W(),{userBets:u}=S(y),_=w(()=>y.isLoading),p=h(!1),$=w(()=>u.value.reduce((n,e)=>n+e.amount,0)),f=w(()=>u.value.filter(n=>{const e=n.market;return e?.status==="resolved"&&e?.winning_option?.uuid===n.option.uuid}).reverse()),b=w(()=>u.value.filter(n=>{const e=n.market;return e?.status==="resolved"&&e?.winning_option?.uuid!==n.option.uuid})),i=w(()=>u.value.filter(n=>n.market?.status==="open")),g=w(()=>f.value.reduce((n,e)=>n+e.amount,0));return(n,e)=>(s(),a("div",ge,[_.value?(s(),a("div",xe,[...e[1]||(e[1]=[t("span",{class:"loading loading-spinner loading-lg"},null,-1)])])):k(u).length===0?(s(),a("div",ke,[...e[2]||(e[2]=[t("i",{class:"mdi mdi-information mr-2"},null,-1),t("span",null,"You haven't placed any bets yet",-1)])])):(s(),a(B,{key:2},[t("div",he,[t("div",ye,[e[3]||(e[3]=t("div",{class:"stat-title text-sm"},"Total Bets",-1)),t("div",$e,l(k(u).length),1),t("div",we,l($.value)+" points",1)]),t("div",Be,[e[4]||(e[4]=t("div",{class:"stat-title text-sm"},"Active",-1)),t("div",Me,l(i.value.length),1),e[5]||(e[5]=t("div",{class:"stat-desc text-xs"},"Waiting for result",-1))]),t("div",Pe,[e[6]||(e[6]=t("div",{class:"stat-title text-sm"},"Won",-1)),t("div",Ce,l(f.value.length),1),t("div",Ae,"+"+l(g.value)+" points",1)]),t("div",Ee,[e[7]||(e[7]=t("div",{class:"stat-title text-sm"},"Lost",-1)),t("div",je,l(b.value.length),1),e[8]||(e[8]=t("div",{class:"stat-desc text-xs"},"Better luck next time",-1))])]),t("div",Re,[i.value.length>0?(s(),a("div",Le,[t("h3",Se,[e[9]||(e[9]=t("i",{class:"mdi mdi-progress-clock text-info"},null,-1)),x(" Active Bets ("+l(i.value.length)+") ",1)]),t("div",We,[(s(!0),a(B,null,C(i.value,c=>(s(),a("div",{key:c.uuid,class:"card bg-base-100 shadow hover:shadow-lg transition-shadow"},[t("div",Ue,[t("div",De,[t("div",Ie,[t("h4",Fe,l(c.market?.title),1),t("p",Ve,[e[10]||(e[10]=x(" Bet on: ",-1)),t("span",Ye,l(c.option.text),1)])]),t("div",Ne,[t("div",Te,l(c.amount)+" pts",1),t("div",ze,[e[11]||(e[11]=x(" Status: ",-1)),t("span",Oe,l(c.market?.status),1)])])])])]))),128))])])):v("",!0),f.value.length>0?(s(),a("div",qe,[t("button",{onClick:e[0]||(e[0]=c=>p.value=!p.value),class:"text-xl font-bold mb-4 flex items-center gap-2 cursor-pointer hover:opacity-70 transition-opacity"},[t("i",{class:E(["mdi",p.value?"mdi-chevron-down":"mdi-chevron-right"])},null,2),e[12]||(e[12]=t("i",{class:"mdi mdi-check-circle text-success"},null,-1)),x(" Won Bets ("+l(f.value.length)+") ",1)]),p.value?(s(),a("div",Ge,[(s(!0),a(B,null,C(f.value,c=>(s(),a("div",{key:c.uuid,class:"card bg-success/10 border border-success shadow"},[t("div",He,[t("div",Je,[t("div",Ke,[t("h4",Qe,l(c.market?.title),1),t("p",Xe,[e[13]||(e[13]=x(" Correct! You bet on: ",-1)),t("span",Ze,l(c.option.text),1)])]),t("div",ts,[t("div",es,"+"+l(c.amount)+" pts",1)])])])]))),128))])):v("",!0)])):v("",!0),b.value.length>0?(s(),a("div",ss,[t("h3",as,[e[14]||(e[14]=t("i",{class:"mdi mdi-close-circle text-error"},null,-1)),x(" Lost Bets ("+l(b.value.length)+") ",1)]),t("div",os,[(s(!0),a(B,null,C(b.value,c=>(s(),a("div",{key:c.uuid,class:"card bg-error/10 border border-error shadow"},[t("div",ns,[t("div",ls,[t("div",is,[t("h4",ds,l(c.market?.title),1),t("p",rs,[e[15]||(e[15]=x(" You bet on: ",-1)),t("span",us,l(c.option.text),1)]),t("p",cs,[e[16]||(e[16]=x(" Winner: ",-1)),t("span",vs,l(c.market?.winning_option?.text),1)])]),t("div",ms,[t("div",bs,"-"+l(c.amount)+" pts",1)])])])]))),128))])])):v("",!0)])],64))]))}}),ps={class:"min-h-screen bg-base-200"},fs={class:"navbar bg-base-100 shadow-lg"},gs={class:"container min-w-3/4 mx-auto w-full flex items-center gap-4"},xs={class:"flex items-center gap-4"},ks={key:0,class:"flex items-center gap-2"},hs={class:"text-sm"},ys={class:"font-medium"},$s={key:0,class:"badge badge-warning badge-xs ml-1"},ws={key:1,class:"text-sm text-base-content/70"},Bs={class:"container min-w-3/4 mx-auto px-4 py-8"},Ms={key:0,class:"flex justify-center py-20"},Ps={key:1,class:"space-y-8"},Cs={key:0},As={class:"flex justify-between items-center mb-4"},Es={class:"text-lg font-semibold"},js={class:"text-primary"},Rs={class:"flex justify-between items-center mb-4"},Ls={key:0,href:"/admin/market/market/add/",class:"btn btn-sm btn-primary"},Ss={key:0,class:"alert"},Ws={class:"grid grid-cols-1 lg:grid-cols-2 gap-6"},Us=L({__name:"Market",setup(d){const y=W(),{markets:u,userInfo:_,isLoading:p}=S(y),$=()=>{window.location.href="/"},f=async()=>{await y.refreshPage()};return V(()=>{y.initializeMarketPage()}),(b,i)=>(s(),a("div",ps,[t("div",fs,[t("div",gs,[t("button",{onClick:$,class:"btn btn-primary btn-sm"},[...i[0]||(i[0]=[t("i",{class:"mdi mdi-arrow-left"},null,-1),x(" Back ",-1)])]),i[3]||(i[3]=t("h1",{class:"text-xl font-bold"},"Market",-1)),i[4]||(i[4]=t("div",{class:"flex-1"},null,-1)),t("div",xs,[k(_)?.is_authenticated?(s(),a("div",ks,[t("div",hs,[t("span",ys,l(k(_).username),1),k(_).is_superuser?(s(),a("span",$s,"Admin")):v("",!0)])])):(s(),a("div",ws,"Not logged in")),i[1]||(i[1]=t("a",{href:"/api/docs",class:"btn btn-xs"},"API docs",-1)),i[2]||(i[2]=t("a",{href:"/admin",class:"btn btn-xs btn-warning"},"Admin panel",-1))])])]),t("div",Bs,[i[11]||(i[11]=t("div",{class:"mb-8"},[t("h2",{class:"text-3xl font-bold mb-2"},"Market"),t("p",{class:"text-base-content/70"},"Place your bets on upcoming events")],-1)),k(p)?(s(),a("div",Ms,[...i[5]||(i[5]=[t("span",{class:"loading loading-spinner loading-lg"},null,-1)])])):(s(),a("div",Ps,[k(_)?.is_authenticated?(s(),a("div",Cs,[t("div",As,[i[7]||(i[7]=t("h3",{class:"text-2xl font-bold flex items-center gap-2"},[t("i",{class:"mdi mdi-heart text-error"}),x(" My Bets ")],-1)),t("div",Es,[t("span",js,l(k(_).points),1),i[6]||(i[6]=t("span",{class:"text-base-content/60 ml-1"},"pts",-1))])]),X(_s,{markets:k(u),onRefresh:f},null,8,["markets"])])):v("",!0),t("div",null,[t("div",Rs,[i[9]||(i[9]=t("h3",{class:"text-2xl font-bold flex items-center gap-2"},[t("i",{class:"mdi mdi-list"}),x(" All Markets ")],-1)),k(_)?.is_superuser?(s(),a("a",Ls,[...i[8]||(i[8]=[t("i",{class:"mdi mdi-plus"},null,-1),x(" Create Market ",-1)])])):v("",!0)]),k(u).length===0?(s(),a("div",Ss,[...i[10]||(i[10]=[t("i",{class:"mdi mdi-information mr-2"},null,-1),t("span",null,"No markets available",-1)])])):v("",!0),t("div",Ws,[(s(!0),a(B,null,C(k(u),g=>(s(),Z(fe,{key:g.uuid,market:g,onRefresh:f},null,8,["market"]))),128))])])]))])]))}}),Y="#app",Ds=document.querySelector(Y),N=tt(Us,{...Ds?.dataset});N.use(st);N.mount(Y); diff --git a/polylan_submitter/static_source/vite/assets/noita-Cj1wLkUa.js b/polylan_submitter/static_source/vite/assets/noita-D_MM7R73.js similarity index 87% rename from polylan_submitter/static_source/vite/assets/noita-Cj1wLkUa.js rename to polylan_submitter/static_source/vite/assets/noita-D_MM7R73.js index 19e660f..80a651b 100644 --- a/polylan_submitter/static_source/vite/assets/noita-Cj1wLkUa.js +++ b/polylan_submitter/static_source/vite/assets/noita-D_MM7R73.js @@ -1,4 +1,4 @@ -import{r as J,y as st,x as lt,w as ut,G as at,u as T,d as gt,c as Te,q as dt,a as H,o as L,b as p,f as K,e as Q,t as O,l as Be,F as ue,g as de,n as ne,E as ct}from"./style-BkYIZIDm.js";import{d as ft,s as pt,_ as qe,p as mt}from"./index-C0ZY4EM6.js";function ht(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _e={exports:{}},vt=_e.exports,Ue;function St(){return Ue||(Ue=1,(function(e,o){(function(t,n){e.exports=n()})(vt,(function(){var t=1e3,n=6e4,r=36e5,i="millisecond",s="second",u="minute",a="hour",d="day",f="week",h="month",g="quarter",l="year",c="date",m="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,M=/\[([^\]]+)]|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(V){var C=["th","st","nd","rd"],S=V%100;return"["+V+(C[(S-20)%10]||C[S]||C[0])+"]"}},A=function(V,C,S){var _=String(V);return!_||_.length>=C?V:""+Array(C+1-_.length).join(S)+V},N={s:A,z:function(V){var C=-V.utcOffset(),S=Math.abs(C),_=Math.floor(S/60),w=S%60;return(C<=0?"+":"-")+A(_,2,"0")+":"+A(w,2,"0")},m:function V(C,S){if(C.date()1)return V(D[0])}else{var k=C.name;B[k]=C,w=k}return!_&&w&&(b=w),w||!_&&b},I=function(V,C){if(v(V))return V.clone();var S=typeof C=="object"?C:{};return S.date=V,S.args=arguments,new me(S)},E=N;E.l=R,E.i=v,E.w=function(V,C){return I(V,{locale:C.$L,utc:C.$u,x:C.$x,$offset:C.$offset})};var me=(function(){function V(S){this.$L=R(S.locale,null,!0),this.parse(S),this.$x=this.$x||S.x||{},this[F]=!0}var C=V.prototype;return C.parse=function(S){this.$d=(function(_){var w=_.date,P=_.utc;if(w===null)return new Date(NaN);if(E.u(w))return new Date;if(w instanceof Date)return new Date(w);if(typeof w=="string"&&!/Z$/i.test(w)){var D=w.match(y);if(D){var k=D[2]-1||0,z=(D[7]||"0").substring(0,3);return P?new Date(Date.UTC(D[1],k,D[3]||1,D[4]||0,D[5]||0,D[6]||0,z)):new Date(D[1],k,D[3]||1,D[4]||0,D[5]||0,D[6]||0,z)}}return new Date(w)})(S),this.init()},C.init=function(){var S=this.$d;this.$y=S.getFullYear(),this.$M=S.getMonth(),this.$D=S.getDate(),this.$W=S.getDay(),this.$H=S.getHours(),this.$m=S.getMinutes(),this.$s=S.getSeconds(),this.$ms=S.getMilliseconds()},C.$utils=function(){return E},C.isValid=function(){return this.$d.toString()!==m},C.isSame=function(S,_){var w=I(S);return this.startOf(_)<=w&&w<=this.endOf(_)},C.isAfter=function(S,_){return I(S){const e=J({username:"Player",rank:null,score:0,runsSubmitted:0,deathsCount:0,isStaff:!1}),o=J([]),t=J([]),n=J(!1),r=J(!1),i=J(""),s=async()=>{try{const g=await fetch("/api/noita/results");if(!g.ok)throw new Error("Failed to fetch results");const l=await g.json();e.value.score=l.total_score,e.value.deathsCount=l.deaths_count,e.value.runsSubmitted=l.objectives.length,o.value=l.objectives}catch(g){i.value="Failed to fetch user results",console.error("Error fetching results:",g)}},u=async()=>{n.value=!0;try{const g=await fetch("/api/noita/leaderboard");if(!g.ok)throw new Error("Failed to fetch leaderboard");const l=await g.json();t.value=l.leaderboard;const c=t.value.find(m=>m.username===e.value.username);c&&(e.value.rank=c.rank,e.value.score=c.total_score,e.value.deathsCount=c.deaths_count)}catch(g){i.value="Failed to fetch leaderboard",console.error("Error fetching leaderboard:",g)}finally{n.value=!1}};return{userInfo:e,objectives:o,leaderboard:t,isLoadingLeaderboard:n,isUploading:r,error:i,fetchUserResults:s,fetchLeaderboard:u,loadUserData:async()=>{try{const g=await fetch("/api/user");if(g.ok){const l=await g.json();l.is_authenticated&&(e.value.username=l.username,e.value.isStaff=l.is_staff||!1)}}catch(g){console.error("Error fetching user info:",g)}await Promise.all([s(),u()])},submitRun:async g=>{if(g.length!==0){r.value=!0;try{for(const l of g){const c=new FormData;c.append("file",l);const m=await fetch("/api/noita/submit",{method:"POST",body:c});if(!m.ok){const M=await m.json();throw new Error(M.detail||"Unknown error")}const y=await m.json();console.log("Submission successful:",y)}await Promise.all([s(),u()])}catch(l){const c=l instanceof Error?l.message:"Unknown error";throw i.value=`Error submitting run: ${c}`,l}finally{r.value=!1}}},clearCache:async()=>{try{const g=await fetch("/api/cache/clear",{method:"POST"});if(!g.ok){const l=await g.json();throw new Error(l.detail||"Unknown error")}await Promise.all([s(),u()])}catch(g){const l=g instanceof Error?g.message:"Unknown error";throw i.value=`Error clearing cache: ${l}`,g}},refreshData:async()=>{await Promise.all([s(),u()])}}});/** +import{r as J,y as st,x as lt,w as ut,G as at,u as T,d as gt,c as Te,q as dt,a as H,o as L,b as p,f as K,e as Q,t as O,l as Be,F as ue,g as de,n as ne,E as ct}from"./style-CWE_e4zZ.js";import{d as ft,s as pt,p as mt}from"./index-2B-edoO9.js";import{_ as qe}from"./RankBadge.vue_vue_type_script_setup_true_lang-CzWD2ic-.js";function ht(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _e={exports:{}},vt=_e.exports,Ue;function St(){return Ue||(Ue=1,(function(e,o){(function(t,n){e.exports=n()})(vt,(function(){var t=1e3,n=6e4,r=36e5,i="millisecond",s="second",u="minute",a="hour",d="day",f="week",h="month",g="quarter",l="year",c="date",m="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,M=/\[([^\]]+)]|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(V){var C=["th","st","nd","rd"],S=V%100;return"["+V+(C[(S-20)%10]||C[S]||C[0])+"]"}},A=function(V,C,S){var _=String(V);return!_||_.length>=C?V:""+Array(C+1-_.length).join(S)+V},N={s:A,z:function(V){var C=-V.utcOffset(),S=Math.abs(C),_=Math.floor(S/60),w=S%60;return(C<=0?"+":"-")+A(_,2,"0")+":"+A(w,2,"0")},m:function V(C,S){if(C.date()1)return V(D[0])}else{var k=C.name;B[k]=C,w=k}return!_&&w&&(b=w),w||!_&&b},I=function(V,C){if(v(V))return V.clone();var S=typeof C=="object"?C:{};return S.date=V,S.args=arguments,new me(S)},E=N;E.l=R,E.i=v,E.w=function(V,C){return I(V,{locale:C.$L,utc:C.$u,x:C.$x,$offset:C.$offset})};var me=(function(){function V(S){this.$L=R(S.locale,null,!0),this.parse(S),this.$x=this.$x||S.x||{},this[F]=!0}var C=V.prototype;return C.parse=function(S){this.$d=(function(_){var w=_.date,P=_.utc;if(w===null)return new Date(NaN);if(E.u(w))return new Date;if(w instanceof Date)return new Date(w);if(typeof w=="string"&&!/Z$/i.test(w)){var D=w.match(y);if(D){var k=D[2]-1||0,z=(D[7]||"0").substring(0,3);return P?new Date(Date.UTC(D[1],k,D[3]||1,D[4]||0,D[5]||0,D[6]||0,z)):new Date(D[1],k,D[3]||1,D[4]||0,D[5]||0,D[6]||0,z)}}return new Date(w)})(S),this.init()},C.init=function(){var S=this.$d;this.$y=S.getFullYear(),this.$M=S.getMonth(),this.$D=S.getDate(),this.$W=S.getDay(),this.$H=S.getHours(),this.$m=S.getMinutes(),this.$s=S.getSeconds(),this.$ms=S.getMilliseconds()},C.$utils=function(){return E},C.isValid=function(){return this.$d.toString()!==m},C.isSame=function(S,_){var w=I(S);return this.startOf(_)<=w&&w<=this.endOf(_)},C.isAfter=function(S,_){return I(S){const e=J({username:"Player",rank:null,score:0,runsSubmitted:0,deathsCount:0,isStaff:!1}),o=J([]),t=J([]),n=J(!1),r=J(!1),i=J(""),s=async()=>{try{const g=await fetch("/api/noita/results");if(!g.ok)throw new Error("Failed to fetch results");const l=await g.json();e.value.score=l.total_score,e.value.deathsCount=l.deaths_count,e.value.runsSubmitted=l.objectives.length,o.value=l.objectives}catch(g){i.value="Failed to fetch user results",console.error("Error fetching results:",g)}},u=async()=>{n.value=!0;try{const g=await fetch("/api/noita/leaderboard");if(!g.ok)throw new Error("Failed to fetch leaderboard");const l=await g.json();t.value=l.leaderboard;const c=t.value.find(m=>m.username===e.value.username);c&&(e.value.rank=c.rank,e.value.score=c.total_score,e.value.deathsCount=c.deaths_count)}catch(g){i.value="Failed to fetch leaderboard",console.error("Error fetching leaderboard:",g)}finally{n.value=!1}};return{userInfo:e,objectives:o,leaderboard:t,isLoadingLeaderboard:n,isUploading:r,error:i,fetchUserResults:s,fetchLeaderboard:u,loadUserData:async()=>{try{const g=await fetch("/api/user");if(g.ok){const l=await g.json();l.is_authenticated&&(e.value.username=l.username,e.value.isStaff=l.is_staff||!1)}}catch(g){console.error("Error fetching user info:",g)}await Promise.all([s(),u()])},submitRun:async g=>{if(g.length!==0){r.value=!0;try{for(const l of g){const c=new FormData;c.append("file",l);const m=await fetch("/api/noita/submit",{method:"POST",body:c});if(!m.ok){const M=await m.json();throw new Error(M.detail||"Unknown error")}const y=await m.json();console.log("Submission successful:",y)}await Promise.all([s(),u()])}catch(l){const c=l instanceof Error?l.message:"Unknown error";throw i.value=`Error submitting run: ${c}`,l}finally{r.value=!1}}},clearCache:async()=>{try{const g=await fetch("/api/cache/clear",{method:"POST"});if(!g.ok){const l=await g.json();throw new Error(l.detail||"Unknown error")}await Promise.all([s(),u()])}catch(g){const l=g instanceof Error?g.message:"Unknown error";throw i.value=`Error clearing cache: ${l}`,g}},refreshData:async()=>{await Promise.all([s(),u()])}}});/** * table-core * * Copyright (c) TanStack diff --git a/polylan_submitter/static_source/vite/assets/opus_magnum-BJYv3njz.js b/polylan_submitter/static_source/vite/assets/opus_magnum-BJYv3njz.js new file mode 100644 index 0000000..f465918 --- /dev/null +++ b/polylan_submitter/static_source/vite/assets/opus_magnum-BJYv3njz.js @@ -0,0 +1 @@ +import{r as E,c as Q,d as le,a as r,o as l,n as Z,b as e,e as L,t as h,f as R,F,g as B,u as I,h as We,w as Ye,i as Je,j as Gt,k as ae,v as Et,l as ne,m as ye,p as Wt,q as fe,s as st,x as Mt,y as Jt,z as Ht,A as _e,B as Yt,C as Kt,D as Zt,E as Qt}from"./style-CWE_e4zZ.js";import{d as Ke,s as Ze,p as Xt}from"./index-2B-edoO9.js";import{o as es,p as ts,a as ss}from"./sdk.gen-yuJ1arsq.js";import{_ as ot}from"./RankBadge.vue_vue_type_script_setup_true_lang-CzWD2ic-.js";const nt="/api";class os{async request(n,s={}){try{const t=await fetch(`${nt}${n}`,{headers:{"Content-Type":"application/json",...s.headers},...s}),a=await t.json();return t.ok?{data:a,status:t.status}:{error:a.detail||`HTTP ${t.status}`,status:t.status}}catch(t){return{error:t instanceof Error?t.message:"Network error",status:0}}}async uploadRequest(n,s){try{const t=await fetch(`${nt}${n}`,{method:"POST",body:s}),a=await t.json();return t.ok?{data:a,status:t.status}:{error:a.detail||`HTTP ${t.status}`,status:t.status}}catch(t){return{error:t instanceof Error?t.message:"Network error",status:0}}}async getGames(){return this.request("/games/")}async getPuzzles(){return this.request("/opus-magnum/puzzles")}async getCollection(){return this.request("/opus-magnum/collection")}async getTopSubmissions(n=5){return this.request(`/results/top-submissions?limit=${n}`)}async getPuzzleResults(n=5){return this.request(`/results/puzzle-results?limit=${n}`)}async getSubmissions(n=20,s=0){return this.request(`/opus-magnum/submissions?limit=${n}&offset=${s}`)}async getSubmission(n){return this.request(`/opus-magnum/submissions/${n}`)}async createSubmission(n,s){const t=new FormData;return t.append("data",JSON.stringify(n)),s.forEach(a=>{t.append("files",a)}),this.uploadRequest("/opus-magnum/submissions",t)}async validateResponse(n,s){return this.request(`/opus-magnum/responses/${n}/validate`,{method:"PUT",body:JSON.stringify(s)})}async autoValidateResponses(n){return this.request(`/opus-magnum/responses/${n}/validate/auto`,{method:"PUT"})}async getResponsesNeedingValidation(){return this.request("/opus-magnum/responses/needs-validation")}async validateSubmission(n){return this.request(`/opus-magnum/submissions/${n}/validate`,{method:"POST"})}async deleteSubmission(n){return this.request(`/opus-magnum/submissions/${n}`,{method:"DELETE"})}async getStats(){return this.request("/opus-magnum/stats")}async healthCheck(){return this.request("/health")}async getUserInfo(){return this.request("/user")}async getMarkets(){return this.request("/market/")}async placeBet(n,s){return this.request(`/market/${n}/bets`,{method:"POST",body:JSON.stringify(s)})}async getUserBets(){return this.request("/market/user/bets")}async closeMarket(n){return this.request(`/market/${n}/actions/close`,{method:"POST"})}async resolveMarket(n,s){return this.request(`/market/${n}/actions/resolve`,{method:"POST",body:JSON.stringify({winning_option_uuid:s})})}}const ee=new os,ns={async loadPuzzles(){const c=await ee.getPuzzles();return c.error?(console.error("Failed to load puzzles:",c.error),[]):c.data||[]},findPuzzleByName(c,n){if(!n)return null;let s=c.find(t=>t.title.toLowerCase()===n.toLowerCase());return s||(s=c.find(t=>t.title.toLowerCase().includes(n.toLowerCase())||n.toLowerCase().includes(t.title.toLowerCase()))),s||null}},at={async createFromFiles(c,n,s,t){const a=c.map(f=>{const v=ns.findPuzzleByName(n,f.ocrData?.puzzle||"");if(v)return{puzzle_id:v.id,puzzle_name:f.ocrData?.puzzle||"",cost:f.ocrData?.cost,cycles:f.ocrData?.cycles,area:f.ocrData?.area,needs_manual_validation:(f.ocrData?.confidence.overall??0)<=.8,ocr_confidence_cost:f.ocrData?.confidence?.cost||0,ocr_confidence_cycles:f.ocrData?.confidence?.cycles||0,ocr_confidence_area:f.ocrData?.confidence?.area||0}}).filter(f=>f!==void 0),i=c.map(f=>f.file);return ee.createSubmission({notes:s,manual_validation_requested:t,responses:a},i)},async loadSubmissions(c=20,n=0){const s=await ee.getSubmissions(c,n);return s.error?(console.error("Failed to load submissions:",s.error),[]):s.data?.items||[]}},Ot={getErrorMessage(c){return typeof c=="string"?c:c instanceof Error?c.message:typeof c=="object"&&c!==null&&"detail"in c?String(c.detail):"An unknown error occurred"},isNetworkError(c){return typeof c=="string"&&c.includes("Network")},isValidationError(c){return c===400},isAuthError(c){return c===401||c===403}},xe=Ke("puzzles",()=>{const c=E([]),n=E(!1),s=E(""),t=Q(()=>c.value.map(v=>v.title)),a=Q(()=>v=>{if(!v)return null;const p=c.value.find($=>$.title.toLowerCase()===v.toLowerCase());return p||c.value.find($=>$.title.toLowerCase().includes(v.toLowerCase())||v.toLowerCase().includes($.title.toLowerCase()))||null}),i=async()=>{if(!(c.value.length>0))try{n.value=!0,s.value="";const v=await es();if(v.error){s.value=String(v.error),console.error("Failed to load puzzles:",v.error);return}v.data&&(c.value=v.data)}catch(v){s.value="Failed to load puzzles",console.error("Error loading puzzles:",v)}finally{n.value=!1}};return{puzzles:c,isLoading:n,error:s,puzzleNames:t,findPuzzleByName:a,loadPuzzles:i,refreshPuzzles:async()=>{c.value=[],await i()}}}),Qe=Ke("submissions",()=>{const c=E([]),n=E(!1),s=E(""),t=E(!1),a=xe(),{puzzles:i}=Ze(a),f=async(w=20,o=0)=>{try{n.value=!0,s.value="";const d=await at.loadSubmissions(w,o);o===0?c.value=d:c.value.push(...d)}catch(d){s.value="Failed to load submissions",console.error("Error loading submissions:",d)}finally{n.value=!1}},v=async(w,o,d)=>{try{n.value=!0,s.value="";const b=await at.createFromFiles(w,i.value,o,d);if(b.error)throw s.value=b.error,new Error(b.error);return b.data?(c.value.unshift(b.data),b.data):void 0}catch(b){throw s.value=b instanceof Error?b.message:"Failed to create submission",b}finally{n.value=!1}},p=()=>{t.value=!0},x=()=>{t.value=!1};return{submissions:c,isLoading:n,error:s,isSubmissionModalOpen:t,loadSubmissions:f,createSubmission:v,openSubmissionModal:p,closeSubmissionModal:x,refreshSubmissions:async()=>{c.value=[],await f()},handleSubmission:async w=>{try{n.value=!0,s.value="";const o=await v(w.files,w.notes,w.manualValidationRequested);if(o){const d=o.responses.map(b=>b.puzzle_name).join(", ");alert(`Solutions submitted successfully for puzzles: ${d}`)}else alert("Submission created successfully!");x()}catch(o){const d=Ot.getErrorMessage(o);s.value=d,alert(`Submission failed: ${d}`),console.error("Submission error:",o)}finally{n.value=!1}}}}),as={class:"card-body"},ls={class:"flex items-start justify-between"},rs={class:"flex-1"},is={class:"text-sm text-base-content/70 mb-2"},cs={class:"flex items-center gap-2 mb-3"},ds={class:"badge badge-primary badge-sm"},us={class:"badge badge-ghost badge-sm"},fs={key:0,class:"text-sm text-base-content/80 mb-4"},ms={key:1,class:"bg-base-200 p-3 rounded-lg mb-4"},vs={class:"grid grid-cols-3 gap-2"},hs={class:"text-center"},gs={class:"font-bold text-primary"},ps={class:"text-center"},bs={class:"font-bold text-primary"},ys={class:"text-center"},_s={class:"font-bold text-primary"},xs={key:2,class:"flex flex-wrap gap-1 mb-4"},ws={key:0,class:"badge badge-outline badge-xs"},ks={class:"flex flex-col items-end gap-2"},$s={class:"tooltip","data-tip":"View on Steam Workshop"},zs=["href"],Ss={key:0,class:"mt-1"},Cs={class:"divider"},Ps={class:"text-sm font-medium"},Ls={class:"table table-xs"},Rs={key:0,class:"badge badge-success badge-xs"},Es={key:1,class:"text-base-content/50"},Ms={key:0,class:"badge badge-info badge-xs"},Os={key:1,class:"text-base-content/50"},Ns={key:0,class:"badge badge-warning badge-xs"},As={key:1,class:"text-base-content/50"},Ds={class:"flex items-center gap-1"},Ts={class:"badge badge-ghost badge-xs"},Is=["data-tip"],qs={key:1,class:"tooltip","data-tip":"Needs manual validation"},js=le({__name:"PuzzleCard",props:{puzzle:{},responses:{}},setup(c){const{openSubmissionModal:n}=Qe();return(s,t)=>(l(),r("div",{class:Z(["card bg-base-100 shadow-lg hover:shadow-2xl transition-shadow duration-300",c.responses?.length==0?"shadow-red-900":"shadow-primary-300"])},[e("div",as,[e("div",ls,[e("div",rs,[e("h3",{class:Z(["card-title text-lg font-bold",c.responses?.length==0?"text-error":"text-primary"])},h(c.puzzle.title),3),e("p",is," by "+h(c.puzzle.author_name),1),e("div",cs,[e("div",ds,h(c.puzzle.steam_item_id),1),e("div",us,"ID: "+h(c.puzzle.id),1)]),c.puzzle.description?(l(),r("p",fs,h(c.puzzle.description),1)):L("",!0),c.puzzle.points_factor?(l(),r("div",ms,[t[7]||(t[7]=e("p",{class:"text-xs text-base-content/70 font-semibold mb-2"},"Points Coefficients",-1)),e("div",vs,[e("div",hs,[e("span",gs,[t[1]||(t[1]=e("small",null,"x",-1)),R(h(c.puzzle.points_factor.cost),1)]),t[2]||(t[2]=e("p",{class:"text-xs text-base-content/70"},"Cost",-1))]),e("div",ps,[e("span",bs,[t[3]||(t[3]=e("small",null,"x",-1)),R(h(c.puzzle.points_factor.cycles),1)]),t[4]||(t[4]=e("p",{class:"text-xs text-base-content/70"},"Cycles",-1))]),e("div",ys,[e("span",_s,[t[5]||(t[5]=e("small",null,"x",-1)),R(h(c.puzzle.points_factor.area),1)]),t[6]||(t[6]=e("p",{class:"text-xs text-base-content/70"},"Area",-1))])])])):L("",!0),c.puzzle.tags&&c.puzzle.tags.length>0?(l(),r("div",xs,[(l(!0),r(F,null,B(c.puzzle.tags.slice(0,3),a=>(l(),r("span",{key:a,class:"badge badge-outline badge-xs"},h(a),1))),128)),c.puzzle.tags.length>3?(l(),r("span",ws," +"+h(c.puzzle.tags.length-3)+" more ",1)):L("",!0)])):L("",!0)]),e("div",ks,[e("div",$s,[e("a",{href:`https://steamcommunity.com/workshop/filedetails/?id=${c.puzzle.steam_item_id}`,target:"_blank",class:"btn btn-ghost btn-sm btn-square"},[...t[8]||(t[8]=[e("i",{class:"mdi mdi-steam text-lg"},null,-1)])],8,zs)])])]),c.responses&&c.responses.length>0?(l(),r("div",Ss,[e("div",Cs,[e("span",Ps,"Solutions ("+h(c.responses.length)+")",1)]),e("div",null,[e("table",Ls,[t[11]||(t[11]=e("thead",null,[e("tr",null,[e("th",null,"Cost"),e("th",null,"Cycles"),e("th",null,"Area"),e("th",null,"Files")])],-1)),e("tbody",null,[(l(!0),r(F,null,B(c.responses,a=>(l(),r("tr",{key:a.id,class:"hover"},[e("td",null,[a.final_cost||a.cost?(l(),r("span",Rs,h(a.final_cost||a.cost),1)):(l(),r("span",Es,"-"))]),e("td",null,[a.final_cycles||a.cycles?(l(),r("span",Ms,h(a.final_cycles||a.cycles),1)):(l(),r("span",Os,"-"))]),e("td",null,[a.final_area||a.area?(l(),r("span",Ns,h(a.final_area||a.area),1)):(l(),r("span",As,"-"))]),e("td",null,[e("div",Ds,[e("span",Ts,h(a.files?.length||0),1),a.files?.length?(l(),r("div",{key:0,class:"tooltip","data-tip":a.files.map(i=>i.original_filename||i.file?.name).join(", ")},[...t[9]||(t[9]=[e("i",{class:"mdi mdi-information-outline text-xs"},null,-1)])],8,Is)):L("",!0),a.needs_manual_validation?(l(),r("div",qs,[...t[10]||(t[10]=[e("i",{class:"mdi mdi-alert-circle text-xs text-warning"},null,-1)])])):L("",!0)])])]))),128))])])])])):(l(),r("div",{key:1,class:"mt-6 text-center py-4 border-2 border-dashed border-base-300 rounded-lg hover:border-primary transition-colors duration-300 cursor-pointer",onClick:t[0]||(t[0]=(...a)=>I(n)&&I(n)(...a))},[...t[12]||(t[12]=[e("i",{class:"mdi mdi-upload text-2xl text-base-content/40"},null,-1),e("p",{class:"text-sm text-base-content/60 mt-2"},"No solutions yet",-1),e("p",{class:"text-xs text-base-content/40"}," Upload solutions using the submit button ",-1)])]))])],2))}});var $e={exports:{}},lt;function Fs(){return lt||(lt=1,(function(c){var n=(function(s){var t=Object.prototype,a=t.hasOwnProperty,i=Object.defineProperty||function(k,_,z){k[_]=z.value},f,v=typeof Symbol=="function"?Symbol:{},p=v.iterator||"@@iterator",x=v.asyncIterator||"@@asyncIterator",$=v.toStringTag||"@@toStringTag";function S(k,_,z){return Object.defineProperty(k,_,{value:z,enumerable:!0,configurable:!0,writable:!0}),k[_]}try{S({},"")}catch{S=function(_,z,O){return _[z]=O}}function w(k,_,z,O){var C=_&&_.prototype instanceof y?_:y,D=Object.create(C.prototype),W=new de(O||[]);return i(D,"_invoke",{value:ge(k,z,W)}),D}s.wrap=w;function o(k,_,z){try{return{type:"normal",arg:k.call(_,z)}}catch(O){return{type:"throw",arg:O}}}var d="suspendedStart",b="suspendedYield",g="executing",u="completed",m={};function y(){}function M(){}function T(){}var q={};S(q,p,function(){return this});var P=Object.getPrototypeOf,j=P&&P(P(ue([])));j&&j!==t&&a.call(j,p)&&(q=j);var te=T.prototype=y.prototype=Object.create(q);M.prototype=T,i(te,"constructor",{value:T,configurable:!0}),i(T,"constructor",{value:M,configurable:!0}),M.displayName=S(T,$,"GeneratorFunction");function ce(k){["next","throw","return"].forEach(function(_){S(k,_,function(z){return this._invoke(_,z)})})}s.isGeneratorFunction=function(k){var _=typeof k=="function"&&k.constructor;return _?_===M||(_.displayName||_.name)==="GeneratorFunction":!1},s.mark=function(k){return Object.setPrototypeOf?Object.setPrototypeOf(k,T):(k.__proto__=T,S(k,$,"GeneratorFunction")),k.prototype=Object.create(te),k},s.awrap=function(k){return{__await:k}};function re(k,_){function z(D,W,V,Y){var U=o(k[D],k,W);if(U.type==="throw")Y(U.arg);else{var me=U.arg,ie=me.value;return ie&&typeof ie=="object"&&a.call(ie,"__await")?_.resolve(ie.__await).then(function(se){z("next",se,V,Y)},function(se){z("throw",se,V,Y)}):_.resolve(ie).then(function(se){me.value=se,V(me)},function(se){return z("throw",se,V,Y)})}}var O;function C(D,W){function V(){return new _(function(Y,U){z(D,W,Y,U)})}return O=O?O.then(V,V):V()}i(this,"_invoke",{value:C})}ce(re.prototype),S(re.prototype,x,function(){return this}),s.AsyncIterator=re,s.async=function(k,_,z,O,C){C===void 0&&(C=Promise);var D=new re(w(k,_,z,O),C);return s.isGeneratorFunction(_)?D:D.next().then(function(W){return W.done?W.value:D.next()})};function ge(k,_,z){var O=d;return function(D,W){if(O===g)throw new Error("Generator is already running");if(O===u){if(D==="throw")throw W;return H()}for(z.method=D,z.arg=W;;){var V=z.delegate;if(V){var Y=pe(V,z);if(Y){if(Y===m)continue;return Y}}if(z.method==="next")z.sent=z._sent=z.arg;else if(z.method==="throw"){if(O===d)throw O=u,z.arg;z.dispatchException(z.arg)}else z.method==="return"&&z.abrupt("return",z.arg);O=g;var U=o(k,_,z);if(U.type==="normal"){if(O=z.done?u:b,U.arg===m)continue;return{value:U.arg,done:z.done}}else U.type==="throw"&&(O=u,z.method="throw",z.arg=U.arg)}}}function pe(k,_){var z=_.method,O=k.iterator[z];if(O===f)return _.delegate=null,z==="throw"&&k.iterator.return&&(_.method="return",_.arg=f,pe(k,_),_.method==="throw")||z!=="return"&&(_.method="throw",_.arg=new TypeError("The iterator does not provide a '"+z+"' method")),m;var C=o(O,k.iterator,_.arg);if(C.type==="throw")return _.method="throw",_.arg=C.arg,_.delegate=null,m;var D=C.arg;if(!D)return _.method="throw",_.arg=new TypeError("iterator result is not an object"),_.delegate=null,m;if(D.done)_[k.resultName]=D.value,_.next=k.nextLoc,_.method!=="return"&&(_.method="next",_.arg=f);else return D;return _.delegate=null,m}ce(te),S(te,$,"Generator"),S(te,p,function(){return this}),S(te,"toString",function(){return"[object Generator]"});function we(k){var _={tryLoc:k[0]};1 in k&&(_.catchLoc=k[1]),2 in k&&(_.finallyLoc=k[2],_.afterLoc=k[3]),this.tryEntries.push(_)}function X(k){var _=k.completion||{};_.type="normal",delete _.arg,k.completion=_}function de(k){this.tryEntries=[{tryLoc:"root"}],k.forEach(we,this),this.reset(!0)}s.keys=function(k){var _=Object(k),z=[];for(var O in _)z.push(O);return z.reverse(),function C(){for(;z.length;){var D=z.pop();if(D in _)return C.value=D,C.done=!1,C}return C.done=!0,C}};function ue(k){if(k){var _=k[p];if(_)return _.call(k);if(typeof k.next=="function")return k;if(!isNaN(k.length)){var z=-1,O=function C(){for(;++z=0;--O){var C=this.tryEntries[O],D=C.completion;if(C.tryLoc==="root")return z("end");if(C.tryLoc<=this.prev){var W=a.call(C,"catchLoc"),V=a.call(C,"finallyLoc");if(W&&V){if(this.prev=0;--z){var O=this.tryEntries[z];if(O.tryLoc<=this.prev&&a.call(O,"finallyLoc")&&this.prev=0;--_){var z=this.tryEntries[_];if(z.finallyLoc===k)return this.complete(z.completion,z.afterLoc),X(z),m}},catch:function(k){for(var _=this.tryEntries.length-1;_>=0;--_){var z=this.tryEntries[_];if(z.tryLoc===k){var O=z.completion;if(O.type==="throw"){var C=O.arg;X(z)}return C}}throw new Error("illegal catch attempt")},delegateYield:function(k,_,z){return this.delegate={iterator:ue(k),resultName:_,nextLoc:z},this.method==="next"&&(this.arg=f),m}},s})(c.exports);try{regeneratorRuntime=n}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}})($e)),$e.exports}var ze,rt;function Xe(){return rt||(rt=1,ze=(c,n)=>`${c}-${n}-${Math.random().toString(16).slice(3,8)}`),ze}var Se,it;function Nt(){if(it)return Se;it=1;const c=Xe();let n=0;return Se=({id:s,action:t,payload:a={}})=>{let i=s;return typeof i>"u"&&(i=c("Job",n),n+=1),{id:i,action:t,payload:a}},Se}var ve={},ct;function et(){if(ct)return ve;ct=1;let c=!1;return ve.logging=c,ve.setLogging=n=>{c=n},ve.log=(...n)=>c?console.log.apply(this,n):null,ve}var Ce,dt;function Us(){if(dt)return Ce;dt=1;const c=Nt(),{log:n}=et(),s=Xe();let t=0;return Ce=()=>{const a=s("Scheduler",t),i={},f={};let v=[];t+=1;const p=()=>v.length,x=()=>Object.keys(i).length,$=()=>{if(v.length!==0){const b=Object.keys(i);for(let g=0;g"u"){v[0](i[b[g]]);break}}},S=(b,g)=>new Promise((u,m)=>{const y=c({action:b,payload:g});v.push(async M=>{v.shift(),f[M.id]=y;try{u(await M[b].apply(this,[...g,y.id]))}catch(T){m(T)}finally{delete f[M.id],$()}}),n(`[${a}]: Add ${y.id} to JobQueue`),n(`[${a}]: JobQueue length=${v.length}`),$()});return{addWorker:b=>(i[b.id]=b,n(`[${a}]: Add ${b.id}`),n(`[${a}]: Number of workers=${x()}`),$(),b.id),addJob:async(b,...g)=>{if(x()===0)throw Error(`[${a}]: You need to have at least one worker before adding jobs`);return S(b,g)},terminate:async()=>{Object.keys(i).forEach(async b=>{await i[b].terminate()}),v=[]},getQueueLen:p,getNumWorkers:x}},Ce}function Bs(c){throw new Error('Could not dynamically require "'+c+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Pe,ut;function Vs(){if(ut)return Pe;ut=1;function c(){return!!(typeof window<"u"&&typeof window.process=="object"&&window.process.type==="renderer"||typeof process<"u"&&typeof process.versions=="object"&&process.versions.electron||typeof navigator=="object"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Electron")>=0)}return Pe=c,Pe}var Le,ft;function Gs(){if(ft)return Le;ft=1;const c=Vs();return Le=n=>{const s={};return typeof WorkerGlobalScope<"u"?s.type="webworker":c()?s.type="electron":typeof document=="object"?s.type="browser":typeof process=="object"&&typeof Bs=="function"&&(s.type="node"),typeof n>"u"?s:s[n]},Le}var Re,mt;function Ws(){if(mt)return Re;mt=1;const n=Gs()("type")==="browser"?s=>new URL(s,window.location.href).href:s=>s;return Re=s=>{const t={...s};return["corePath","workerPath","langPath"].forEach(a=>{s[a]&&(t[a]=n(t[a]))}),t},Re}var Ee,vt;function Js(){return vt||(vt=1,Ee=c=>{const n=[],s=[],t=[],a=[],i=[];return c.blocks&&c.blocks.forEach(f=>{f.paragraphs.forEach(v=>{v.lines.forEach(p=>{p.words.forEach(x=>{x.symbols.forEach($=>{i.push({...$,page:c,block:f,paragraph:v,line:p,word:x})}),a.push({...x,page:c,block:f,paragraph:v,line:p})}),t.push({...p,page:c,block:f,paragraph:v})}),s.push({...v,page:c,block:f})}),n.push({...f,page:c})}),{...c,blocks:n,paragraphs:s,lines:t,words:a,symbols:i}}),Ee}var Me,ht;function At(){return ht||(ht=1,Me={TESSERACT_ONLY:0,LSTM_ONLY:1,TESSERACT_LSTM_COMBINED:2,DEFAULT:3}),Me}const Hs="5.1.1",Ys={version:Hs};var Oe,gt;function Ks(){return gt||(gt=1,Oe={workerBlobURL:!0,logger:()=>{}}),Oe}var Ne,pt;function Zs(){if(pt)return Ne;pt=1;const c=Ys.version;return Ne={...Ks(),workerPath:`https://cdn.jsdelivr.net/npm/tesseract.js@v${c}/dist/worker.min.js`},Ne}var Ae,bt;function Qs(){return bt||(bt=1,Ae=({workerPath:c,workerBlobURL:n})=>{let s;if(Blob&&URL&&n){const t=new Blob([`importScripts("${c}");`],{type:"application/javascript"});s=new Worker(URL.createObjectURL(t))}else s=new Worker(c);return s}),Ae}var De,yt;function Xs(){return yt||(yt=1,De=c=>{c.terminate()}),De}var Te,_t;function eo(){return _t||(_t=1,Te=(c,n)=>{c.onmessage=({data:s})=>{n(s)}}),Te}var Ie,xt;function to(){return xt||(xt=1,Ie=async(c,n)=>{c.postMessage(n)}),Ie}var qe,wt;function so(){if(wt)return qe;wt=1;const c=s=>new Promise((t,a)=>{const i=new FileReader;i.onload=()=>{t(i.result)},i.onerror=({target:{error:{code:f}}})=>{a(Error(`File could not be read! Code=${f}`))},i.readAsArrayBuffer(s)}),n=async s=>{let t=s;if(typeof s>"u")return"undefined";if(typeof s=="string")/data:image\/([a-zA-Z]*);base64,([^"]*)/.test(s)?t=atob(s.split(",")[1]).split("").map(a=>a.charCodeAt(0)):t=await(await fetch(s)).arrayBuffer();else if(typeof HTMLElement<"u"&&s instanceof HTMLElement)s.tagName==="IMG"&&(t=await n(s.src)),s.tagName==="VIDEO"&&(t=await n(s.poster)),s.tagName==="CANVAS"&&await new Promise(a=>{s.toBlob(async i=>{t=await c(i),a()})});else if(typeof OffscreenCanvas<"u"&&s instanceof OffscreenCanvas){const a=await s.convertToBlob();t=await c(a)}else(s instanceof File||s instanceof Blob)&&(t=await c(s));return new Uint8Array(t)};return qe=n,qe}var je,kt;function oo(){if(kt)return je;kt=1;const c=Zs(),n=Qs(),s=Xs(),t=eo(),a=to(),i=so();return je={defaultOptions:c,spawnWorker:n,terminateWorker:s,onMessage:t,send:a,loadImage:i},je}var Fe,$t;function Dt(){if($t)return Fe;$t=1;const c=Ws(),n=Js(),s=Nt(),{log:t}=et(),a=Xe(),i=At(),{defaultOptions:f,spawnWorker:v,terminateWorker:p,onMessage:x,loadImage:$,send:S}=oo();let w=0;return Fe=async(o="eng",d=i.LSTM_ONLY,b={},g={})=>{const u=a("Worker",w),{logger:m,errorHandler:y,...M}=c({...f,...b}),T={},q={},P=typeof o=="string"?o.split("+"):o;let j=d,te=g;const ce=[i.DEFAULT,i.LSTM_ONLY].includes(d)&&!M.legacyCore;let re,ge;const pe=new Promise((N,A)=>{ge=N,re=A}),we=N=>{re(N.message)};let X=v(M);X.onerror=we,w+=1;const de=(N,A)=>{T[N]=A},ue=(N,A)=>{q[N]=A},H=({id:N,action:A,payload:G})=>new Promise((K,J)=>{t(`[${u}]: Start ${N}, action=${A}`);const oe=`${A}-${N}`;de(oe,K),ue(oe,J),S(X,{workerId:u,jobId:N,action:A,payload:G})}),k=()=>console.warn("`load` is depreciated and should be removed from code (workers now come pre-loaded)"),_=N=>H(s({id:N,action:"load",payload:{options:{lstmOnly:ce,corePath:M.corePath,logging:M.logging}}})),z=(N,A,G)=>H(s({id:G,action:"FS",payload:{method:"writeFile",args:[N,A]}})),O=(N,A)=>H(s({id:A,action:"FS",payload:{method:"readFile",args:[N,{encoding:"utf8"}]}})),C=(N,A)=>H(s({id:A,action:"FS",payload:{method:"unlink",args:[N]}})),D=(N,A,G)=>H(s({id:G,action:"FS",payload:{method:N,args:A}})),W=()=>console.warn("`loadLanguage` is depreciated and should be removed from code (workers now come with language pre-loaded)"),V=(N,A)=>H(s({id:A,action:"loadLanguage",payload:{langs:N,options:{langPath:M.langPath,dataPath:M.dataPath,cachePath:M.cachePath,cacheMethod:M.cacheMethod,gzip:M.gzip,lstmOnly:[i.DEFAULT,i.LSTM_ONLY].includes(j)&&!M.legacyLang}}})),Y=()=>console.warn("`initialize` is depreciated and should be removed from code (workers now come pre-initialized)"),U=(N,A,G,K)=>H(s({id:K,action:"initialize",payload:{langs:N,oem:A,config:G}})),me=(N="eng",A,G,K)=>{if(ce&&[i.TESSERACT_ONLY,i.TESSERACT_LSTM_COMBINED].includes(A))throw Error("Legacy model requested but code missing.");const J=A||j;j=J;const oe=G||te;te=oe;const ke=(typeof N=="string"?N.split("+"):N).filter(Vt=>!P.includes(Vt));return P.push(...ke),ke.length>0?V(ke,K).then(()=>U(N,J,oe,K)):U(N,J,oe,K)},ie=(N={},A)=>H(s({id:A,action:"setParameters",payload:{params:N}})),se=async(N,A={},G={blocks:!0,text:!0,hocr:!0,tsv:!0},K)=>H(s({id:K,action:"recognize",payload:{image:await $(N),options:A,output:G}})),jt=(N="Tesseract OCR Result",A=!1,G)=>(console.log("`getPDF` function is depreciated. `recognize` option `savePDF` should be used instead."),H(s({id:G,action:"getPDF",payload:{title:N,textonly:A}}))),Ft=async(N,A)=>{if(ce)throw Error("`worker.detect` requires Legacy model, which was not loaded.");return H(s({id:A,action:"detect",payload:{image:await $(N)}}))},Ut=async()=>(X!==null&&(p(X),X=null),Promise.resolve());x(X,({workerId:N,jobId:A,status:G,action:K,data:J})=>{const oe=`${K}-${A}`;if(G==="resolve"){t(`[${N}]: Complete ${A}`);let be=J;K==="recognize"?be=n(J):K==="getPDF"&&(be=Array.from({...J,length:Object.keys(J).length})),T[oe]({jobId:A,data:be})}else if(G==="reject")if(q[oe](J),K==="load"&&re(J),y)y(J);else throw Error(J);else G==="progress"&&m({...J,userJobId:A})});const Bt={id:u,worker:X,setResolve:de,setReject:ue,load:k,writeText:z,readText:O,removeFile:C,FS:D,loadLanguage:W,initialize:Y,reinitialize:me,setParameters:ie,recognize:se,getPDF:jt,detect:Ft,terminate:Ut};return _().then(()=>V(o)).then(()=>U(o,d,g)).then(()=>ge(Bt)).catch(()=>{}),pe},Fe}var Ue,zt;function no(){if(zt)return Ue;zt=1;const c=Dt();return Ue={recognize:async(t,a,i)=>{const f=await c(a,1,i);return f.recognize(t).finally(async()=>{await f.terminate()})},detect:async(t,a)=>{const i=await c("osd",0,a);return i.detect(t).finally(async()=>{await i.terminate()})}},Ue}var Be,St;function ao(){return St||(St=1,Be={AFR:"afr",AMH:"amh",ARA:"ara",ASM:"asm",AZE:"aze",AZE_CYRL:"aze_cyrl",BEL:"bel",BEN:"ben",BOD:"bod",BOS:"bos",BUL:"bul",CAT:"cat",CEB:"ceb",CES:"ces",CHI_SIM:"chi_sim",CHI_TRA:"chi_tra",CHR:"chr",CYM:"cym",DAN:"dan",DEU:"deu",DZO:"dzo",ELL:"ell",ENG:"eng",ENM:"enm",EPO:"epo",EST:"est",EUS:"eus",FAS:"fas",FIN:"fin",FRA:"fra",FRK:"frk",FRM:"frm",GLE:"gle",GLG:"glg",GRC:"grc",GUJ:"guj",HAT:"hat",HEB:"heb",HIN:"hin",HRV:"hrv",HUN:"hun",IKU:"iku",IND:"ind",ISL:"isl",ITA:"ita",ITA_OLD:"ita_old",JAV:"jav",JPN:"jpn",KAN:"kan",KAT:"kat",KAT_OLD:"kat_old",KAZ:"kaz",KHM:"khm",KIR:"kir",KOR:"kor",KUR:"kur",LAO:"lao",LAT:"lat",LAV:"lav",LIT:"lit",MAL:"mal",MAR:"mar",MKD:"mkd",MLT:"mlt",MSA:"msa",MYA:"mya",NEP:"nep",NLD:"nld",NOR:"nor",ORI:"ori",PAN:"pan",POL:"pol",POR:"por",PUS:"pus",RON:"ron",RUS:"rus",SAN:"san",SIN:"sin",SLK:"slk",SLV:"slv",SPA:"spa",SPA_OLD:"spa_old",SQI:"sqi",SRP:"srp",SRP_LATN:"srp_latn",SWA:"swa",SWE:"swe",SYR:"syr",TAM:"tam",TEL:"tel",TGK:"tgk",TGL:"tgl",THA:"tha",TIR:"tir",TUR:"tur",UIG:"uig",UKR:"ukr",URD:"urd",UZB:"uzb",UZB_CYRL:"uzb_cyrl",VIE:"vie",YID:"yid"}),Be}var Ve,Ct;function lo(){return Ct||(Ct=1,Ve={OSD_ONLY:"0",AUTO_OSD:"1",AUTO_ONLY:"2",AUTO:"3",SINGLE_COLUMN:"4",SINGLE_BLOCK_VERT_TEXT:"5",SINGLE_BLOCK:"6",SINGLE_LINE:"7",SINGLE_WORD:"8",CIRCLE_WORD:"9",SINGLE_CHAR:"10",SPARSE_TEXT:"11",SPARSE_TEXT_OSD:"12",RAW_LINE:"13"}),Ve}var Ge,Pt;function ro(){if(Pt)return Ge;Pt=1,Fs();const c=Us(),n=Dt(),s=no(),t=ao(),a=At(),i=lo(),{setLogging:f}=et();return Ge={languages:t,OEM:a,PSM:i,createScheduler:c,createWorker:n,setLogging:f,...s},Ge}var io=ro();class tt{worker=null;availablePuzzleNames=[];regions={puzzle:{x:15,y:600,width:330,height:28},cost:{x:412,y:603,width:65,height:22},cycles:{x:577,y:603,width:65,height:22},area:{x:739,y:603,width:65,height:22}};async initialize(){this.worker||(this.worker=await io.createWorker("eng"),await this.worker.setParameters({tessedit_ocr_engine_mode:"3",tessedit_pageseg_mode:7}))}setAvailablePuzzleNames(n){this.availablePuzzleNames=n,console.log("OCR service updated with puzzle names:",n)}async configurePuzzleOCR(){this.worker&&(await this.worker.setParameters({load_system_dawg:"0",load_freq_dawg:"0",load_punc_dawg:"0",load_number_dawg:"0",load_unambig_dawg:"0",load_bigram_dawg:"0",load_fixed_length_dawgs:"0",tessedit_char_whitelist:this.getPuzzleCharacterSet(),tessedit_pageseg_mode:8,segment_penalty_dict_nonword:"2.0",segment_penalty_dict_frequent_word:"0.001",segment_penalty_dict_case_ok:"0.001",segment_penalty_dict_case_bad:"0.1",classify_enable_learning:"0",classify_enable_adaptive_matcher:"1",preserve_interword_spaces:"1"}),console.log("OCR configured for puzzle names with character set:",this.getPuzzleCharacterSet()))}getPuzzleCharacterSet(){if(this.availablePuzzleNames.length===0)return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 -";const n=new Set;return this.availablePuzzleNames.forEach(s=>{for(const t of s)n.add(t)}),Array.from(n).join("")}async extractOpusMagnumData(n){this.worker||await this.initialize();const s=URL.createObjectURL(n),t=new Image;return new Promise((a,i)=>{t.onload=async()=>{try{const f=document.createElement("canvas"),v=f.getContext("2d");f.width=t.width,f.height=t.height,v.drawImage(t,0,0);const p={},x={};for(const[w,o]of Object.entries(this.regions)){const d=document.createElement("canvas"),b=d.getContext("2d");d.width=o.width,d.height=o.height,b.drawImage(f,o.x,o.y,o.width,o.height,0,0,o.width,o.height);const g=b.getImageData(0,0,o.width,o.height);this.preprocessImage(g),b.putImageData(g,0,0),w==="cost"?await this.worker.setParameters({tessedit_char_whitelist:"0123456789G"}):w==="cycles"||w==="area"?await this.worker.setParameters({tessedit_char_whitelist:"0123456789"}):w==="puzzle"?await this.configurePuzzleOCR():await this.worker.setParameters({tessedit_char_whitelist:""});const{data:{text:u,confidence:m}}=await this.worker.recognize(d);let y=u.trim();if(x[w]=m/100,w==="cost"){if(y.endsWith("6")&&y.length>1){const M=y.slice(0,-1);/^\d+$/.test(M)&&(y=M)}y=y.replace(/G+$/g,""),y=y.replace(/[^0-9]/g,"")}else if(w==="cycles"||w==="area")y=y.replace(/[^0-9]/g,"");else if(w==="puzzle"&&(y=this.findBestPuzzleMatch(y),this.availablePuzzleNames.length>0&&!this.availablePuzzleNames.includes(y))){const M=this.findBestPuzzleMatchForced(y);M&&(y=M,console.log(`Forced OCR match: "${u.trim()}" -> "${y}"`))}p[w]=y}URL.revokeObjectURL(s);const $=Object.values(x),S=$.length>0?$.reduce((w,o)=>w+o,0)/$.length:0;a({puzzle:p.puzzle||"",cost:parseInt(p.cost||""),cycles:parseInt(p.cycles||""),area:parseInt(p.area||""),confidence:{puzzle:x.puzzle||0,cost:x.cost||0,cycles:x.cycles||0,area:x.area||0,overall:S}})}catch(f){URL.revokeObjectURL(s),i(f)}},t.onerror=()=>{URL.revokeObjectURL(s),i(new Error("Failed to load image"))},t.src=s})}preprocessImage(n){const s=n.data;for(let t=0;tArray(n.length+1).fill(null));for(let a=0;a<=n.length;a++)t[0][a]=a;for(let a=0;a<=s.length;a++)t[a][0]=a;for(let a=1;a<=s.length;a++)for(let i=1;i<=n.length;i++){const f=n[i-1]===s[a-1]?0:1;t[a][i]=Math.min(t[a][i-1]+1,t[a-1][i]+1,t[a-1][i-1]+f)}return t[s.length][n.length]}findBestPuzzleMatch(n){if(!this.availablePuzzleNames.length)return n.trim();const s=n.trim();if(!s)return"";const t=this.availablePuzzleNames.find(v=>v.toLowerCase()===s.toLowerCase());if(t)return t;const a=this.availablePuzzleNames.find(v=>v.toLowerCase().includes(s.toLowerCase())||s.toLowerCase().includes(v.toLowerCase()));if(a)return a;let i=s,f=0;for(const v of this.availablePuzzleNames){const p=[this.calculateLevenshteinSimilarity(s,v),this.calculateJaroWinklerSimilarity(s,v),this.calculateNGramSimilarity(s,v,2)],x=Math.max(...p);x>f&&x>.4&&(f=x,i=v)}if(f<.6){const v=this.findBestCharacterMatch(s);v&&(i=v)}return i}calculateLevenshteinSimilarity(n,s){const t=this.levenshteinDistance(n.toLowerCase(),s.toLowerCase()),a=Math.max(n.length,s.length);return a===0?1:1-t/a}calculateJaroWinklerSimilarity(n,s){const t=n.toLowerCase(),a=s.toLowerCase();if(t===a)return 1;const i=Math.floor(Math.max(t.length,a.length)/2)-1;if(i<0)return 0;const f=new Array(t.length).fill(!1),v=new Array(a.length).fill(!1);let p=0,x=0;for(let o=0;ov.has($))),x=new Set([...f,...v]);return p.size/x.size}findBestCharacterMatch(n){let s=null,t=0;for(const a of this.availablePuzzleNames){const i=this.calculateCharacterFrequencyScore(n.toLowerCase(),a.toLowerCase());i>t&&i>.3&&(t=i,s=a)}return s}calculateCharacterFrequencyScore(n,s){const t=new Map,a=new Map;for(const p of n)t.set(p,(t.get(p)||0)+1);for(const p of s)a.set(p,(a.get(p)||0)+1);const i=new Set([...t.keys(),...a.keys()]);let f=0,v=0;for(const p of i){const x=t.get(p)||0,$=a.get(p)||0;f+=Math.min(x,$),v+=Math.max(x,$)}return v===0?0:f/v}findBestPuzzleMatchForced(n){if(!this.availablePuzzleNames.length||!n.trim())return null;const s=n.trim().toLowerCase();let t=this.availablePuzzleNames[0],a=0;for(const i of this.availablePuzzleNames){const f=[this.calculateLevenshteinSimilarity(s,i),this.calculateJaroWinklerSimilarity(s,i),this.calculateNGramSimilarity(s,i,2),this.calculateCharacterFrequencyScore(s,i.toLowerCase()),this.calculateLengthSimilarity(s,i.toLowerCase())],v=f[0]*.25+f[1]*.25+f[2]*.2+f[3]*.2+f[4]*.1;v>a&&(a=v,t=i)}return console.log(`Forced match for "${n}": "${t}" (score: ${a.toFixed(3)})`),t}calculateLengthSimilarity(n,s){const t=n.length,a=s.length,i=Math.max(t,a),f=Math.min(t,a);return i===0?1:f/i}async terminate(){this.worker&&(await this.worker.terminate(),this.worker=null)}static isValidOpusMagnumImage(n){return["image/jpeg","image/jpg","image/png","image/gif"].includes(n.type)}static drawDebugRegions(n){return new Promise((s,t)=>{const a=URL.createObjectURL(n),i=new Image;i.onload=()=>{const f=document.createElement("canvas"),v=f.getContext("2d");f.width=i.width,f.height=i.height,v.drawImage(i,0,0),v.strokeStyle="#00ff00",v.lineWidth=2;const p=new tt;Object.values(p.regions).forEach(x=>{v.strokeRect(x.x,x.y,x.width,x.height)}),URL.revokeObjectURL(a),s(f.toDataURL())},i.onerror=()=>{URL.revokeObjectURL(a),t(new Error("Failed to load image for debug"))},i.src=a})}}const He=new tt,he=.8,Tt=Ke("uploads",()=>{const c=E([]),n=Q(()=>c.value.some(p=>p.ocrProcessing)),s=Q(()=>c.value.some(p=>a(p))),t=Q(()=>c.value.filter(p=>p.needsManualPuzzleSelection)),a=p=>p.ocrData?.confidence?p.ocrData.confidence.cost{for(;n.value;){const $=Math.floor(Math.random()*400)+100;console.log(`OCR is already processing, waiting ${$}ms...`),await new Promise(S=>setTimeout(S,$))}const x=c.value.indexOf(p);c.value[x].ocrProcessing=!0,c.value[x].ocrError=void 0,c.value[x].ocrData=void 0;try{console.log("Starting OCR processing for:",p.file.name),await He.initialize();const $=await He.extractOpusMagnumData(p.file);console.log("OCR completed:",$),await We(),c.value[x].ocrData=$,$.confidence.puzzle{const p=c.value.filter(x=>a(x));for(const x of p)i(x)},clearFiles:()=>{c.value=[]},isProcessingOCR:n,hasLowConfidence:s,CONFIDENCE_VALUE:he}}),co={class:"form-control w-full"},uo={key:0,class:"space-y-4"},fo={key:1,class:"space-y-4"},mo={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-2 gap-4"},vo={class:"aspect-square rounded-lg overflow-hidden bg-base-200"},ho=["src","alt"],go={class:"absolute inset-0 bg-black/80 opacity-0 group-hover:opacity-100 transition-opacity duration-200 rounded-lg flex items-center justify-center"},po=["onClick"],bo={class:"mt-2"},yo={class:"text-xs font-medium truncate"},_o={class:"text-xs text-base-content/60"},xo={key:0,class:"mt-1 flex items-center gap-1"},wo={key:1,class:"mt-1"},ko={class:"text-xs text-error"},$o={key:2,class:"mt-1 space-y-1"},zo={class:"text-xs flex items-center justify-between"},So={class:"flex items-center gap-2"},Co=["title"],Po=["onClick"],Lo={class:"text-xs space-y-1 bg-base-200 p-2 rounded"},Ro={key:0},Eo=["title"],Mo={key:1},Oo=["title"],No={key:2},Ao=["title"],Do={key:3},To=["title"],Io={key:3,class:"mt-2"},qo={class:"mt-2"},jo=["onUpdate:modelValue","onChange"],Fo=["value"],Uo={key:4,class:"mt-1"},Bo=["onClick"],Vo={class:"flex justify-center"},Go={key:0,class:"label"},Wo={class:"label-text-alt text-error"},Jo=le({__name:"FileUpload",setup(c){const n=xe(),{submissionFiles:s,processOCR:t}=Tt(),a=E(),i=E(!1),f=E("");Ye(()=>n.puzzles,u=>{u&&u.length>0&&He.setAvailablePuzzleNames(n.puzzleNames)},{immediate:!0});const v=u=>{const m=u.target;m.files&&x(Array.from(m.files))},p=u=>{u.preventDefault(),i.value=!1,u.dataTransfer?.files&&x(Array.from(u.dataTransfer.files))},x=async u=>{f.value="";for(const m of u)if($(m))try{const y=await S(m),M=m.type.startsWith("image/gif")?"gif":"image",T={file:m,file_url:"",preview:y,type:M,ocrProcessing:!1,ocrError:void 0,ocrData:void 0};s.push(T),d(m)&&We(()=>{t(T)})}catch{f.value=`Failed to process ${m.name}`}},$=u=>u.type.startsWith("image/")?u.size>256*1024*1024?(f.value=`${u.name} is too large (max 256MB)`,!1):!0:(f.value=`${u.name} is not a valid image file`,!1),S=u=>new Promise((m,y)=>{const M=new FileReader;M.onload=T=>m(T.target?.result),M.onerror=y,M.readAsDataURL(u)}),w=u=>{s.splice(u,1)},o=u=>{if(u===0)return"0 Bytes";const m=1024,y=["Bytes","KB","MB","GB"],M=Math.floor(Math.log(u)/Math.log(m));return parseFloat((u/Math.pow(m,M)).toFixed(2))+" "+y[M]},d=u=>u.type.startsWith("image/")&&u.size>5e4,b=u=>u>=.8?"badge-success":u>=.6?"badge-warning":"badge-error",g=u=>{const m=s.findIndex(y=>y.file===u.file);m!==-1&&s[m].manualPuzzleSelection&&(s[m].needsManualPuzzleSelection=!1,console.log(`Manual puzzle selection: ${u.file.name} -> ${s[m].manualPuzzleSelection}`))};return(u,m)=>(l(),r("div",co,[m[19]||(m[19]=e("label",{class:"label"},[e("span",{class:"label-text font-medium"},"Upload Solution Files"),e("span",{class:"label-text-alt text-xs"},"Images or GIFs only")],-1)),e("div",{class:Z(["border-2 border-dashed border-base-300 rounded-lg p-6 text-center hover:border-primary transition-colors duration-300",{"border-primary bg-primary/5":i.value}]),onDrop:p,onDragover:m[2]||(m[2]=Je(y=>i.value=!0,["prevent"])),onDragleave:m[3]||(m[3]=y=>i.value=!1),onDragenter:m[4]||(m[4]=Je(()=>{},["prevent"]))},[e("input",{ref_key:"fileInput",ref:a,type:"file",multiple:"",accept:"image/*,.gif",class:"hidden",onChange:v},null,544),I(s).length===0?(l(),r("div",uo,[m[6]||(m[6]=e("div",{class:"mx-auto w-12 h-12 text-base-content/40 flex items-center justify-center"},[e("i",{class:"mdi mdi-cloud-upload text-5xl"})],-1)),e("div",null,[m[5]||(m[5]=e("p",{class:"text-base-content/70 mb-2"},"Drop your files here or",-1)),e("button",{type:"button",onClick:m[0]||(m[0]=y=>a.value?.click()),class:"btn btn-primary btn-sm"}," Choose Files ")]),m[7]||(m[7]=e("p",{class:"text-xs text-base-content/50"}," Supported formats: JPG, PNG, GIF (max 256MB each) ",-1))])):(l(),r("div",fo,[e("div",mo,[(l(!0),r(F,null,B(I(s),(y,M)=>(l(),r("div",{key:M,class:"relative group"},[e("div",vo,[e("img",{src:y.preview,alt:y.file.name,class:"w-full h-full object-cover"},null,8,ho)]),e("div",go,[e("button",{onClick:T=>w(M),class:"btn btn-error btn-lg btn-circle"},[...m[8]||(m[8]=[e("i",{class:"mdi mdi-close"},null,-1)])],8,po)]),e("div",bo,[e("p",yo,h(y.file.name),1),e("p",_o,h(o(y.file.size))+" • "+h(y.type.toUpperCase()),1),y.ocrProcessing?(l(),r("div",xo,[...m[9]||(m[9]=[e("span",{class:"loading loading-spinner loading-xs"},null,-1),e("span",{class:"text-xs text-info"},"Extracting puzzle data...",-1)])])):y.ocrError?(l(),r("div",wo,[e("p",ko,h(y.ocrError),1)])):y.ocrData?(l(),r("div",$o,[e("div",zo,[e("div",So,[m[10]||(m[10]=e("span",{class:"font-medium text-success"},"✓ OCR Complete",-1)),y.ocrData.confidence?(l(),r("span",{key:0,class:Z(["badge badge-xs",b(y.ocrData.confidence.overall)]),title:`Overall confidence: ${Math.round(y.ocrData.confidence.overall*100)}%`},h(Math.round(y.ocrData.confidence.overall*100))+"% ",11,Co)):L("",!0)]),e("button",{onClick:T=>I(t)(y),class:"btn btn-xs btn-ghost",title:"Retry OCR"},[...m[11]||(m[11]=[e("i",{class:"mdi mdi-refresh"},null,-1)])],8,Po)]),e("div",Lo,[y.ocrData.puzzle?(l(),r("div",Ro,[m[12]||(m[12]=e("strong",null,"Puzzle:",-1)),R(" "+h(y.ocrData.puzzle)+" ",1),y.ocrData.confidence?.puzzle?(l(),r("span",{key:0,class:"ml-2 opacity-60",title:`Puzzle confidence: ${Math.round(y.ocrData.confidence.puzzle*100)}%`}," ("+h(Math.round(y.ocrData.confidence.puzzle*100))+"%) ",9,Eo)):L("",!0)])):L("",!0),y.ocrData.cost?(l(),r("div",Mo,[m[13]||(m[13]=e("strong",null,"Cost:",-1)),R(" "+h(y.ocrData.cost)+" ",1),y.ocrData.confidence?.cost?(l(),r("span",{key:0,class:"ml-2 opacity-60",title:`Cost confidence: ${Math.round(y.ocrData.confidence.cost*100)}%`}," ("+h(Math.round(y.ocrData.confidence.cost*100))+"%) ",9,Oo)):L("",!0)])):L("",!0),y.ocrData.cycles?(l(),r("div",No,[m[14]||(m[14]=e("strong",null,"Cycles:",-1)),R(" "+h(y.ocrData.cycles)+" ",1),y.ocrData.confidence?.cycles?(l(),r("span",{key:0,class:"ml-2 opacity-60",title:`Cycles confidence: ${Math.round(y.ocrData.confidence.cycles*100)}%`}," ("+h(Math.round(y.ocrData.confidence.cycles*100))+"%) ",9,Ao)):L("",!0)])):L("",!0),y.ocrData.area?(l(),r("div",Do,[m[15]||(m[15]=e("strong",null,"Area:",-1)),R(" "+h(y.ocrData.area)+" ",1),y.ocrData.confidence?.area?(l(),r("span",{key:0,class:"ml-2 opacity-60",title:`Area confidence: ${Math.round(y.ocrData.confidence.area*100)}%`}," ("+h(Math.round(y.ocrData.confidence.area*100))+"%) ",9,To)):L("",!0)])):L("",!0)])])):L("",!0),y.needsManualPuzzleSelection?(l(),r("div",Io,[m[17]||(m[17]=Gt('
Low OCR Confidence
Please select the correct puzzle manually
',1)),e("div",qo,[ae(e("select",{"onUpdate:modelValue":T=>y.manualPuzzleSelection=T,class:"select select-bordered select-sm w-full",onChange:T=>g(y)},[m[16]||(m[16]=e("option",{value:""},"Select puzzle...",-1)),(l(!0),r(F,null,B(I(n).puzzles,T=>(l(),r("option",{key:T.id,value:T.title},h(T.title),9,Fo))),128))],40,jo),[[Et,y.manualPuzzleSelection]])])])):!y.ocrProcessing&&!y.ocrError&&!y.ocrData?(l(),r("div",Uo,[e("button",{onClick:T=>I(t)(y),class:"btn btn-xs btn-outline"},[...m[18]||(m[18]=[e("i",{class:"mdi mdi-text-recognition"},null,-1),R(" Extract Puzzle Data ",-1)])],8,Bo)])):L("",!0)])]))),128))]),e("div",Vo,[e("button",{type:"button",onClick:m[1]||(m[1]=y=>a.value?.click()),class:"btn btn-outline btn-sm"}," Add More Files ")])]))],34),f.value?(l(),r("div",Go,[e("span",Wo,h(f.value),1)])):L("",!0)]))}}),Ho={class:"card bg-base-100 shadow-xl"},Yo={class:"card-body"},Ko={key:0,class:"alert alert-info"},Zo={class:"flex-1"},Qo={class:"font-bold"},Xo={class:"text-sm space-y-1 mt-1"},en={class:"badge badge-ghost badge-sm ml-2"},tn={key:1,class:"alert alert-warning"},sn={class:"flex-1"},on={class:"text-sm"},nn={class:"form-control"},an={class:"flex-1"},ln={class:"flex label"},rn={class:"label-text-alt"},cn={class:"form-control"},dn={class:"label cursor-pointer justify-start gap-3"},un=["disabled"],fn={class:"card-actions justify-end"},mn=["disabled"],vn={key:0,class:"loading loading-spinner loading-sm"},hn={key:1},gn={key:2},pn={key:3},bn=le({__name:"SubmissionForm",props:{puzzles:{},findPuzzleByName:{type:Function}},setup(c){const n=c,s=Tt(),{submissionFiles:t,hasLowConfidence:a,submissionFilesNeedingManualSelection:i}=Ze(s),{clearFiles:f,processLowConfidenceOCRFiles:v}=s,{handleSubmission:p}=Qe(),x=E(""),$=E(!1),S=E(!1),w=Q(()=>x.value.length),o=Q(()=>{const g=t.value.length>0,u=!t.value.some(m=>m.needsManualPuzzleSelection);return g&&!S.value&&u});Ye(a,g=>{g&&($.value=!0)});const d=Q(()=>{const g={};return t.value.forEach(u=>{const m=u.manualPuzzleSelection||u.ocrData?.puzzle;m&&(g[m]||(g[m]={puzzle:n.findPuzzleByName(m),files:[]}),g[m].files.push(u))}),g}),b=async()=>{if(o.value){S.value=!0;try{p({files:t.value,notes:x.value.trim()||void 0,manualValidationRequested:a.value||$.value}),f(),x.value="",$.value=!1}catch(g){console.error("Submission error:",g)}finally{S.value=!1}}};return(g,u)=>(l(),r("div",Ho,[e("div",Yo,[u[9]||(u[9]=e("h2",{class:"card-title text-xl mb-6"},[e("i",{class:"mdi mdi-check-circle text-2xl text-primary"}),R(" Submit Solution ")],-1)),e("form",{onSubmit:Je(b,["prevent"]),class:"space-y-6"},[Object.keys(d.value).length>0?(l(),r("div",Ko,[u[3]||(u[3]=e("i",{class:"mdi mdi-information-outline text-xl"},null,-1)),e("div",Zo,[e("h4",Qo," Detected Puzzles ("+h(Object.keys(d.value).length)+") ",1),e("div",Xo,[(l(!0),r(F,null,B(d.value,(m,y)=>(l(),r("div",{key:y,class:"flex justify-between"},[e("span",null,h(y),1),e("span",en,h(m.files.length)+" file(s)",1)]))),128))])])])):L("",!0),ne(Jo),I(i).length>0?(l(),r("div",tn,[u[6]||(u[6]=e("i",{class:"mdi mdi-alert-circle text-xl"},null,-1)),e("div",sn,[u[5]||(u[5]=e("div",{class:"font-bold"},"Manual Puzzle Selection Required",-1)),e("div",on,h(I(i).length)+" file(s) have low OCR confidence for puzzle names. Please select the correct puzzle for each file before submitting. ",1),e("button",{class:"btn mt-3 w-full",onClick:u[0]||(u[0]=(...m)=>I(v)&&I(v)(...m))},[...u[4]||(u[4]=[e("span",{class:"mdi mdi-reload text-2xl"},null,-1),R(" Retry OCR on low confidence puzzle ",-1)])])])])):L("",!0),e("div",nn,[e("div",an,[e("label",ln,[u[7]||(u[7]=e("span",{class:"label-text font-medium"},"Notes (Optional)",-1)),e("span",rn,h(w.value)+"/500",1)]),ae(e("textarea",{"onUpdate:modelValue":u[1]||(u[1]=m=>x.value=m),class:"flex textarea textarea-bordered h-24 w-full resize-none",placeholder:"Add any notes about your solution, approach, or interesting findings...",maxlength:"500"},null,512),[[ye,x.value]])])]),e("div",cn,[e("label",dn,[ae(e("input",{type:"checkbox","onUpdate:modelValue":u[2]||(u[2]=m=>$.value=m),class:"checkbox checkbox-primary",disabled:I(a)},null,8,un),[[Wt,$.value]]),u[8]||(u[8]=e("div",{class:"flex-1"},[e("span",{class:"label-text font-medium"},"Request manual validation"),e("div",{class:"label-text-alt text-xs opacity-70 mt-1"},[R(" Check this if you want an admin to manually review your submission, even if OCR confidence is high. "),e("br"),e("em",null,"Note: This will be automatically checked if any OCR confidence is below 80%.")])],-1))])]),e("div",fn,[e("button",{type:"submit",class:"btn btn-primary",disabled:!o.value},[S.value?(l(),r("span",vn)):L("",!0),S.value?(l(),r("span",hn,"Submitting...")):I(i).length>0?(l(),r("span",gn," Select Puzzles ("+h(I(i).length)+" remaining) ",1)):(l(),r("span",pn,"Submit Solution"))],8,mn)])],32)])]))}}),yn={class:"card bg-base-100 shadow-xl"},_n={class:"card-body"},xn={class:"stats stats-vertical lg:stats-horizontal shadow mb-6"},wn={class:"stat"},kn={class:"stat-value text-primary"},$n={class:"stat"},zn={class:"stat-value text-secondary"},Sn={class:"stat"},Cn={class:"stat-value text-warning"},Pn={class:"stat"},Ln={class:"stat-value text-success"},Rn={key:0},En={class:"overflow-x-auto"},Mn={class:"table table-zebra"},On={class:"font-bold"},Nn={class:"text-sm opacity-50"},An={class:"text-sm space-y-1"},Dn={class:"flex justify-between items-center"},Tn={class:"flex justify-between items-center"},In={class:"flex justify-between items-center"},qn={class:"badge badge-warning badge-sm"},jn=["onClick"],Fn=["onClick"],Un={key:1,class:"text-center py-8"},Bn={key:0,class:"modal modal-open"},Vn={class:"modal-box w-11/12 max-w-5xl"},Gn=["src"],Wn={key:0,class:"space-y-4"},Jn={class:"alert alert-info"},Hn={class:"font-bold"},Yn={class:"grid grid-cols-4 gap-4"},Kn={class:"form-control"},Zn=["value"],Qn={class:"form-control"},Xn=["placeholder"],ea={class:"form-control"},ta=["placeholder"],sa={class:"form-control"},oa=["placeholder"],na={class:"modal-action"},aa=["disabled"],la={key:0,class:"loading loading-spinner loading-sm"},ra={class:"mockup-code w-full"},ia=le({__name:"AdminPanel",setup(c,{expose:n}){const s=xe(),t=E({total_submissions:0,total_responses:0,needs_validation:0,validated_submissions:0,validation_rate:0}),a=E([]),i=E(!1),f=E(!1),v=E({show:!1,response:null,data:{puzzle:-1,validated_cost:0,validated_cycles:0,validated_area:0}}),p=async()=>{try{i.value=!0;try{const u=await ee.getStats();u.data&&(t.value=u.data)}catch(u){console.warn("Stats endpoint not available:",u),t.value={total_submissions:0,total_responses:0,needs_validation:0,validated_submissions:0,validation_rate:0}}const g=await ee.getResponsesNeedingValidation();g.data&&(a.value=g.data)}catch(g){console.error("Failed to load admin data:",g)}finally{i.value=!1}},x=async()=>{for(const g of Array.from(a.value)){if(!g.id)continue;const{data:u,error:m}=await ee.autoValidateResponses(g.id);if(u&&!u.needs_manual_validation)a.value=a.value.filter(y=>y.id!==g.id),t.value.needs_validation-=1;else if(m)break}},$=g=>{v.value.response=g,v.value.data={puzzle:g.puzzle_id||-1,validated_cost:g.cost||0,validated_cycles:g.cycles||0,validated_area:g.area||0},v.value.show=!0},S=()=>{v.value.show=!1,v.value.response=null,v.value.data={puzzle:-1,validated_cost:0,validated_cycles:0,validated_area:0}},w=async g=>{const{data:u}=await ee.autoValidateResponses(g);console.log(u),u&&!u.needs_manual_validation&&(a.value=a.value.filter(m=>m.id!==g),console.log(t.value),t.value.needs_validation-=1,console.log(t.value))},o=async()=>{if(v.value.response?.id)try{f.value=!0;const g=await ee.validateResponse(v.value.response.id,v.value.data);if(g.error){alert(`Validation failed: ${g.error}`);return}a.value=a.value.filter(u=>u.id!==v.value.response?.id),t.value.needs_validation=Math.max(0,t.value.needs_validation-1),S()}catch(g){console.error("Validation error:",g),alert("Validation failed")}finally{f.value=!1}};fe(()=>{p()});const d=g=>g>=.8?"badge-success":g>=.6?"badge-warning":"badge-error",b=g=>{const u=[g.ocr_confidence_cost,g.ocr_confidence_cycles,g.ocr_confidence_area].filter(y=>y!=null);if(u.length===0)return 0;const m=u.reduce((y,M)=>y+M,0)/u.length;return Math.round(m*100)};return n({refresh:p}),(g,u)=>(l(),r(F,null,[e("div",yn,[e("div",_n,[u[14]||(u[14]=e("h2",{class:"card-title"},[e("i",{class:"mdi mdi-shield-account text-2xl text-warning"}),R(" Admin Panel ")],-1)),e("div",xn,[e("div",wn,[u[4]||(u[4]=e("div",{class:"stat-title"},"Total Submissions",-1)),e("div",kn,h(t.value.total_submissions),1)]),e("div",$n,[u[5]||(u[5]=e("div",{class:"stat-title"},"Total Responses",-1)),e("div",zn,h(t.value.total_responses),1)]),e("div",Sn,[u[6]||(u[6]=e("div",{class:"stat-title"},"Need Validation",-1)),e("div",Cn,h(t.value.needs_validation),1)]),e("div",Pn,[u[7]||(u[7]=e("div",{class:"stat-title"},"Validation Rate",-1)),e("div",Ln,h(Math.round(t.value.validation_rate*100))+"% ",1)])]),e("button",{class:"btn btn-sm btn-primary",onClick:x},[...u[8]||(u[8]=[e("i",{class:"mdi mdi-check-circle mr-1"},null,-1),R(" Auto validation for all responses ",-1)])]),a.value.length>0?(l(),r("div",Rn,[u[12]||(u[12]=e("h3",{class:"text-lg font-bold mb-4"},"Responses Needing Validation",-1)),e("div",En,[e("table",Mn,[u[11]||(u[11]=e("thead",null,[e("tr",null,[e("th",null,"Puzzle"),e("th",null,"OCR Data"),e("th",null,"Confidence"),e("th",null,"Actions")])],-1)),e("tbody",null,[(l(!0),r(F,null,B(a.value,m=>(l(),r("tr",{key:m.id},[e("td",null,[e("div",On,h(m.puzzle_name),1),e("div",Nn,"ID: "+h(m.id),1)]),e("td",null,[e("div",An,[e("div",Dn,[e("span",null,"Cost: "+h(m.cost||"-"),1),m.ocr_confidence_cost?(l(),r("span",{key:0,class:Z(["badge badge-xs",d(m.ocr_confidence_cost)])},h(Math.round(m.ocr_confidence_cost*100))+"% ",3)):L("",!0)]),e("div",Tn,[e("span",null,"Cycles: "+h(m.cycles||"-"),1),m.ocr_confidence_cycles?(l(),r("span",{key:0,class:Z(["badge badge-xs",d(m.ocr_confidence_cycles)])},h(Math.round(m.ocr_confidence_cycles*100))+"% ",3)):L("",!0)]),e("div",In,[e("span",null,"Area: "+h(m.area||"-"),1),m.ocr_confidence_area?(l(),r("span",{key:0,class:Z(["badge badge-xs",d(m.ocr_confidence_area)])},h(Math.round(m.ocr_confidence_area*100))+"% ",3)):L("",!0)])])]),e("td",null,[e("div",qn,h(b(m))+"% ",1)]),e("td",null,[e("button",{onClick:y=>$(m),class:"btn btn-sm btn-primary mr-2"},[...u[9]||(u[9]=[e("i",{class:"mdi mdi-check-circle mr-1"},null,-1),R(" Validate ",-1)])],8,jn),m.id?(l(),r("button",{key:0,onClick:y=>w(m.id),class:"btn btn-sm btn-warning"},[...u[10]||(u[10]=[e("i",{class:"mdi mdi-check-circle mr-1"},null,-1),R(" Auto Validation ",-1)])],8,Fn)):L("",!0)])]))),128))])])])])):(l(),r("div",Un,[...u[13]||(u[13]=[e("i",{class:"mdi mdi-check-all text-6xl text-success opacity-50"},null,-1),e("p",{class:"text-lg font-medium mt-2"},"All responses validated!",-1),e("p",{class:"text-sm opacity-70"}," No responses currently need manual validation. ",-1)])]))])]),v.value.show?(l(),r("div",Bn,[e("div",Vn,[u[22]||(u[22]=e("h3",{class:"font-bold text-lg mb-4"},"Validate Response",-1)),(l(!0),r(F,null,B(v.value.response?.files??[],m=>(l(),r("div",null,[e("img",{src:m.file_url},null,8,Gn)]))),256)),v.value.response?(l(),r("div",Wn,[e("div",Jn,[u[16]||(u[16]=e("i",{class:"mdi mdi-information-outline"},null,-1)),e("div",null,[e("div",Hn,h(v.value.response.puzzle_name),1),u[15]||(u[15]=e("div",{class:"text-sm"},"Review and correct the OCR data below",-1))])]),e("div",Yn,[e("div",Kn,[u[18]||(u[18]=e("label",{class:"label"},[e("span",{class:"label-text"},"Puzzle")],-1)),ae(e("select",{"onUpdate:modelValue":u[0]||(u[0]=m=>v.value.data.puzzle=m),class:"select select-bordered select-sm w-full"},[u[17]||(u[17]=e("option",{value:""},"Select puzzle...",-1)),(l(!0),r(F,null,B(I(s).puzzles,m=>(l(),r("option",{key:m.id,value:m.id},h(m.title),9,Zn))),128))],512),[[Et,v.value.data.puzzle]])]),e("div",Qn,[u[19]||(u[19]=e("label",{class:"label"},[e("span",{class:"label-text"},"Cost")],-1)),ae(e("input",{"onUpdate:modelValue":u[1]||(u[1]=m=>v.value.data.validated_cost=m),type:"text",class:"input input-bordered input-sm",placeholder:v.value.response.cost?.toString()||"Enter cost"},null,8,Xn),[[ye,v.value.data.validated_cost]])]),e("div",ea,[u[20]||(u[20]=e("label",{class:"label"},[e("span",{class:"label-text"},"Cycles")],-1)),ae(e("input",{"onUpdate:modelValue":u[2]||(u[2]=m=>v.value.data.validated_cycles=m),type:"text",class:"input input-bordered input-sm",placeholder:v.value.response.cycles?.toString()||"Enter cycles"},null,8,ta),[[ye,v.value.data.validated_cycles]])]),e("div",sa,[u[21]||(u[21]=e("label",{class:"label"},[e("span",{class:"label-text"},"Area")],-1)),ae(e("input",{"onUpdate:modelValue":u[3]||(u[3]=m=>v.value.data.validated_area=m),type:"text",class:"input input-bordered input-sm",placeholder:v.value.response.area?.toString()||"Enter area"},null,8,oa),[[ye,v.value.data.validated_area]])])]),e("div",na,[e("button",{onClick:S,class:"btn btn-ghost"}," Cancel "),e("button",{onClick:o,class:"btn btn-primary",disabled:f.value},[f.value?(l(),r("span",la)):L("",!0),R(" "+h(f.value?"Validating...":"Validate"),1)],8,aa)]),e("div",ra,[e("pre",null,[e("code",null,h(v.value),1)])])])):L("",!0)]),e("div",{class:"modal-backdrop",onClick:S})])):L("",!0)],64))}}),ca={class:"mb-8"},da={class:"grid grid-cols-1 lg:grid-cols-3 gap-8"},ua={class:"lg:col-span-1"},fa={class:"card bg-base-100 shadow-lg sticky top-8"},ma={class:"card-body"},va={class:"text-center mb-6"},ha={class:"text-3xl font-bold"},ga={key:0,class:"flex justify-center py-8"},pa={key:1,class:"space-y-4"},ba={class:"text-center"},ya={key:0,class:"text-4xl font-bold text-primary"},_a={key:1,class:"text-2xl text-base-content/50"},xa={class:"text-center"},wa={class:"text-2xl font-bold"},ka={class:"text-center"},$a={class:"text-2xl font-bold"},za={class:"lg:col-span-2"},Sa={class:"card bg-base-100 shadow-lg"},Ca={class:"card-body"},Pa={key:0,class:"flex justify-center py-8"},La={key:1,class:"text-center py-8"},Ra={key:2,class:"space-y-6"},Ea={class:"tabs tabs-border"},Ma={class:"space-y-4"},Oa={key:0,class:"text-center py-8"},Na={key:1,class:"overflow-x-auto"},Aa={class:"table table-zebra w-full"},Da={class:"font-bold"},Ta={class:"font-medium"},Ia={key:0,class:"badge badge-warning"},qa={class:"text-right"},ja={class:"text-right font-bold"},Fa={class:"space-y-6"},Ua=["onClick"],Ba={class:"ml-auto badge badge-sm"},Va={key:0,class:"card-body"},Ga={key:0,class:"text-center py-8"},Wa={key:1,class:"space-y-6"},Ja={key:0,class:"bg-base-200 p-4 rounded-lg"},Ha={class:"grid grid-cols-3 gap-4"},Ya={class:"text-center"},Ka={class:"text-2xl font-bold text-primary"},Za={class:"text-center"},Qa={class:"text-2xl font-bold text-primary"},Xa={class:"text-center"},el={class:"text-2xl font-bold text-primary"},tl={class:"grid grid-cols-1 md:grid-cols-3 gap-4"},sl={class:"card-body p-4"},ol={class:"text-xs text-base-content/70 font-bold"},nl={class:"font-bold text-lg"},al={key:0,class:"badge badge-warning"},ll={class:"space-y-2 text-sm"},rl={class:"flex justify-between"},il={key:0,class:"text-xs text-base-content/60"},cl={class:"badge badge-sm"},dl={class:"flex justify-between"},ul={key:0,class:"text-xs text-base-content/60"},fl={class:"badge badge-sm"},ml={class:"flex justify-between"},vl={key:0,class:"text-xs text-base-content/60"},hl={class:"badge badge-sm"},gl={class:"flex justify-between pt-2 border-t"},pl={class:"badge badge-sm"},bl={class:"flex justify-between pt-2 border-t"},yl={class:"badge badge-primary"},_l={class:"overflow-x-auto"},xl={class:"table table-zebra w-full table-sm"},wl={class:"text-center"},kl={key:0,class:"text-xs text-base-content/60 block"},$l={class:"text-center"},zl={key:0,class:"text-xs text-base-content/60 block"},Sl={class:"text-center"},Cl={key:0,class:"text-xs text-base-content/60 block"},Pl={class:"font-bold"},Ll={key:0,class:"badge badge-warning"},Rl={key:1,class:"badge"},El={key:2,class:"badge"},Ml={key:3},Ol={class:"font-medium"},Nl={class:"text-center"},Al={key:0,class:"badge badge-sm"},Dl={key:1,class:"text-base-content/40"},Tl={class:"text-center"},Il={key:0,class:"badge badge-sm"},ql={key:1,class:"text-base-content/40"},jl={class:"text-center"},Fl={key:0,class:"badge badge-sm"},Ul={key:1,class:"text-base-content/40"},Bl={class:"text-center"},Vl={key:0,class:"badge badge-sm"},Gl={key:1,class:"text-base-content/40"},Wl={class:"text-right font-bold text-primary text-lg"},Jl=le({__name:"Results",setup(c){const n=E(!0),s=E(null),t=E("overall"),a=E(null),i=E({username:"Player",rank:null,totalPoints:0,puzzlesSolved:0,isStaff:!1}),f=async()=>{n.value=!0;try{const w=await fetch("/api/results/results");if(!w.ok)throw new Error("Failed to fetch results");s.value=await w.json()}catch(w){console.error("Error fetching results:",w)}finally{n.value=!1}},v=()=>s.value?s.value.users.map(o=>{const d=s.value.responses_by_userid[o.id]||[],b=d.reduce((u,m)=>u+(m.rank_points||0),0),g=d.length;return{user:o,totalPoints:b,puzzlesSolved:g}}).sort((o,d)=>d.totalPoints-o.totalPoints):[],p=w=>s.value?(s.value.ranking_by_puzzle[w]||[]).map(d=>({user:s.value.users.find(g=>g.id===d.user_id),cost:d.final_cost,cycles:d.final_cycles,area:d.final_area,points:d.points,rank_points:d.rank_points||0})).reverse():[],x=w=>{a.value=a.value===w?null:w},$=async()=>{try{const w=await fetch("/api/cache/clear",{method:"POST"});if(w.ok)alert("Cache cleared successfully!"),await f();else{const o=await w.json();alert(`Error clearing cache: ${o.detail||"Unknown error"}`)}}catch(w){console.error("Error clearing cache:",w),alert("Error clearing cache. Please try again.")}},S=async()=>{try{const w=await fetch("/api/user");if(w.ok){const o=await w.json();if(o.is_authenticated){i.value.username=o.username,i.value.isStaff=o.is_staff||!1,await f();const d=v(),b=d.findIndex(g=>g.user.id===o.id);b!==-1&&(i.value.rank=b+1,i.value.totalPoints=d[b].totalPoints,i.value.puzzlesSolved=d[b].puzzlesSolved)}}}catch(w){console.error("Error loading user data:",w),await f()}};return fe(()=>{S()}),(w,o)=>(l(),r("div",ca,[e("div",da,[e("div",ua,[e("div",fa,[o[9]||(o[9]=e("div",{class:"bg-gradient-to-br from-purple-600 to-purple-400 p-6 text-white rounded-t-2xl"},[e("h3",{class:"text-3xl font-bold"},[e("i",{class:"mdi mdi-trophy text-3xl"}),R(" Your Ranking ")])],-1)),e("div",ma,[e("div",va,[o[2]||(o[2]=e("p",{class:"text-sm text-base-content/70"},"Player",-1)),e("p",ha,h(i.value.username),1)]),o[8]||(o[8]=e("div",{class:"divider"},null,-1)),n.value?(l(),r("div",ga,[...o[3]||(o[3]=[e("span",{class:"loading loading-spinner loading-lg"},null,-1)])])):(l(),r("div",pa,[e("div",ba,[o[4]||(o[4]=e("p",{class:"text-sm text-base-content/70 mb-1"},"Current Rank",-1)),i.value.rank!==null?(l(),r("p",ya,[ne(ot,{rank:i.value.rank},null,8,["rank"])])):(l(),r("p",_a,"No rank yet"))]),e("div",xa,[o[5]||(o[5]=e("p",{class:"text-sm text-base-content/70 mb-1"},"Total Points",-1)),e("p",wa,h(i.value.totalPoints.toLocaleString()),1)]),e("div",ka,[o[6]||(o[6]=e("p",{class:"text-sm text-base-content/70 mb-1"},"Puzzles Solved",-1)),e("p",$a,h(i.value.puzzlesSolved),1)]),i.value.isStaff?(l(),r("button",{key:0,onClick:$,class:"btn btn-error btn-sm w-full mt-6"},[...o[7]||(o[7]=[e("i",{class:"mdi mdi-cache-clear mr-1"},null,-1),R(" Clear Cache ",-1)])])):L("",!0)]))])])]),e("div",za,[e("div",Sa,[e("div",Ca,[o[37]||(o[37]=e("h2",{class:"card-title text-2xl mb-6"},[e("i",{class:"mdi mdi-trophy text-yellow-500 mr-2"}),R(" General Results ")],-1)),n.value?(l(),r("div",Pa,[...o[10]||(o[10]=[e("span",{class:"loading loading-spinner loading-lg"},null,-1)])])):s.value?(l(),r("div",Ra,[e("div",Ea,[e("button",{onClick:o[0]||(o[0]=d=>t.value="overall"),class:Z(["tab",t.value==="overall"?"tab-active":""])},[...o[12]||(o[12]=[e("i",{class:"mdi mdi-chart-line mr-2"},null,-1),R(" Overall Ranking ",-1)])],2),e("button",{onClick:o[1]||(o[1]=d=>t.value="byPuzzle"),class:Z(["tab",t.value==="byPuzzle"?"tab-active":""])},[...o[13]||(o[13]=[e("i",{class:"mdi mdi-puzzle mr-2"},null,-1),R(" By Puzzle ",-1)])],2)]),ae(e("div",Ma,[v().length===0?(l(),r("div",Oa,[...o[14]||(o[14]=[e("p",{class:"text-base-content/70"},"No submissions yet",-1)])])):(l(),r("div",Na,[e("table",Aa,[o[15]||(o[15]=e("thead",null,[e("tr",null,[e("th",null,"Rank"),e("th",null,"Player"),e("th",{class:"text-right"},"Puzzles Solved"),e("th",{class:"text-right"},"Total Points")])],-1)),e("tbody",null,[(l(!0),r(F,null,B(v(),(d,b)=>(l(),r("tr",{key:d.user.username},[e("td",Da,[ne(ot,{rank:b+1},null,8,["rank"])]),e("td",Ta,[R(h(d.user.username)+" ",1),d.user.is_staff?(l(),r("span",Ia," admin ")):L("",!0)]),e("td",qa,h(d.puzzlesSolved),1),e("td",ja,h(d.totalPoints),1)]))),128))])])]))],512),[[st,t.value==="overall"]]),ae(e("div",Fa,[(l(!0),r(F,null,B(s.value.puzzles,d=>(l(),r("div",{key:d.id,class:"card bg-base-100 border border-base-300"},[e("button",{onClick:b=>x(d.id),class:"btn btn-ghost btn-lg w-full justify-start text-lg font-bold hover:bg-primary/20 rounded-b-none"},[e("i",{class:Z(["mdi mr-2",a.value===d.id?"mdi-chevron-down":"mdi-chevron-right"])},null,2),R(" "+h(d.title)+" ",1),e("span",Ba,h(p(d.id).length)+" submissions ",1)],8,Ua),a.value===d.id?(l(),r("div",Va,[p(d.id).length===0?(l(),r("div",Ga,[...o[16]||(o[16]=[e("p",{class:"text-base-content/70 text-lg"},"No submissions yet",-1)])])):(l(),r("div",Wa,[d.points_factor?(l(),r("div",Ja,[o[23]||(o[23]=e("p",{class:"text-sm text-base-content/70 mb-3 font-semibold"},"Points Coefficients",-1)),e("div",Ha,[e("div",Ya,[e("span",Ka,[o[17]||(o[17]=e("small",null,"x",-1)),R(h(d.points_factor.cost),1)]),o[18]||(o[18]=e("p",{class:"text-xs text-base-content/70"},"Cost",-1))]),e("div",Za,[e("span",Qa,[o[19]||(o[19]=e("small",null,"x",-1)),R(h(d.points_factor.cycles),1)]),o[20]||(o[20]=e("p",{class:"text-xs text-base-content/70"},"Cycles",-1))]),e("div",Xa,[e("span",el,[o[21]||(o[21]=e("small",null,"x",-1)),R(h(d.points_factor.area),1)]),o[22]||(o[22]=e("p",{class:"text-xs text-base-content/70"},"Area",-1))])])])):L("",!0),e("div",tl,[(l(!0),r(F,null,B(p(d.id).slice(0,3),(b,g)=>(l(),r("div",{key:g,class:"card bg-base-200"},[e("div",sl,[e("div",ol,h(g===0?"🏆 1st Place":g===1?"🥈 2nd Place":"🥉 3rd Place"),1),e("h4",nl,[R(h(b.user.username)+" ",1),b.user.is_staff?(l(),r("span",al," admin ")):L("",!0)]),o[29]||(o[29]=e("div",{class:"divider my-2"},null,-1)),e("div",ll,[e("div",rl,[e("span",null,[o[24]||(o[24]=R("Cost",-1)),d.points_factor?(l(),r("span",il," (x"+h(d.points_factor.cost)+") ",1)):L("",!0)]),e("span",cl,h(b.cost||"N/A"),1)]),e("div",dl,[e("span",null,[o[25]||(o[25]=R("Cycles",-1)),d.points_factor?(l(),r("span",ul," (x"+h(d.points_factor.cycles)+") ",1)):L("",!0)]),e("span",fl,h(b.cycles||"N/A"),1)]),e("div",ml,[e("span",null,[o[26]||(o[26]=R("Area",-1)),d.points_factor?(l(),r("span",vl," (x"+h(d.points_factor.area)+") ",1)):L("",!0)]),e("span",hl,h(b.area||"N/A"),1)]),e("div",gl,[o[27]||(o[27]=e("span",null,"Total (with coef.)",-1)),e("span",pl,h(b.points||"N/A"),1)]),e("div",bl,[o[28]||(o[28]=e("span",{class:"font-bold"},"Points",-1)),e("span",yl,h(b.rank_points)+" pts",1)])])])]))),128))]),e("div",_l,[e("table",xl,[e("thead",null,[e("tr",null,[o[33]||(o[33]=e("th",{class:"w-12"},"Rank",-1)),o[34]||(o[34]=e("th",null,"Player",-1)),e("th",wl,[o[30]||(o[30]=R(" Cost ",-1)),d.points_factor?(l(),r("span",kl,"(x"+h(d.points_factor.cost)+")",1)):L("",!0)]),e("th",$l,[o[31]||(o[31]=R(" Cycles ",-1)),d.points_factor?(l(),r("span",zl,"(x"+h(d.points_factor.cycles)+")",1)):L("",!0)]),e("th",Sl,[o[32]||(o[32]=R(" Area ",-1)),d.points_factor?(l(),r("span",Cl,"(x"+h(d.points_factor.area)+")",1)):L("",!0)]),o[35]||(o[35]=e("th",{class:"text-center"},"Total (with coef.)",-1)),o[36]||(o[36]=e("th",{class:"text-right"},"Points",-1))])]),e("tbody",null,[(l(!0),r(F,null,B(p(d.id),(b,g)=>(l(),r("tr",{key:g,class:Z({"bg-primary/10":g<3})},[e("td",Pl,[g===0?(l(),r("span",Ll,"🏆")):g===1?(l(),r("span",Rl,"🥈")):g===2?(l(),r("span",El,"🥉")):(l(),r("span",Ml,"#"+h(g+1),1))]),e("td",Ol,h(b.user.username),1),e("td",Nl,[b.cost?(l(),r("span",Al,h(b.cost),1)):(l(),r("span",Dl,"—"))]),e("td",Tl,[b.cycles?(l(),r("span",Il,h(b.cycles),1)):(l(),r("span",ql,"—"))]),e("td",jl,[b.area?(l(),r("span",Fl,h(b.area),1)):(l(),r("span",Ul,"—"))]),e("td",Bl,[b.points?(l(),r("span",Vl,h(b.points),1)):(l(),r("span",Gl,"—"))]),e("td",Wl,h(b.rank_points),1)],2))),128))])])])]))])):L("",!0)]))),128))],512),[[st,t.value==="byPuzzle"]])])):(l(),r("div",La,[...o[11]||(o[11]=[e("p",{class:"text-base-content/70"},"No results available yet",-1)])]))])])])])]))}}),Hl={class:"card bg-base-100 shadow-lg"},Yl={class:"card-body"},Kl={key:0,class:"flex justify-center py-12"},Zl={key:1,class:"alert alert-error"},Ql={key:2,class:"text-center py-8"},Xl={key:3,class:"overflow-x-auto"},er={class:"table table-zebra"},tr={class:"font-semibold"},sr={class:"text-right"},or={class:"text-right"},nr={class:"text-right"},ar={class:"text-right font-bold"},lr={class:"text-right font-bold text-primary"},rr={class:"text-center"},ir=["onClick"],cr={key:1,class:"text-base-content/50"},dr={key:0,class:"modal modal-open"},ur={class:"modal-box max-w-7xl w-full"},fr={class:"flex justify-between items-center mb-4"},mr={class:"font-bold text-lg"},vr={class:"flex justify-center bg-base-200 rounded-lg p-4"},hr=["src","alt"],gr={class:"modal-action mt-4"},pr=["href"],br=le({__name:"Winners",setup(c){const n=E(!0),s=E(null),t=E(""),a=E(!1),i=E(""),f=E(""),v=async()=>{n.value=!0,t.value="";try{const w=await ee.getTopSubmissions(5);w.data?s.value=w.data:w.error&&(t.value=w.error,console.error("Error fetching submissions:",w.error))}catch(w){t.value=w instanceof Error?w.message:"Failed to fetch submissions",console.error("Error fetching submissions:",w)}finally{n.value=!1}},p=w=>w!==void 0?w.toLocaleString():"—",x=Q(()=>{if(!s.value)return[];const w=[];return s.value.submissions.forEach(o=>{o.submissions.forEach(d=>{w.push({puzzleName:o.puzzle_title,username:d.username,cost:d.final_cost,cycles:d.final_cycles,area:d.final_area,total:d.rank_points,totalCoef:d.total_coef,files:d.files.map(b=>({url:b.file_url,name:b.original_filename}))})})}),w.sort((o,d)=>(d.total||0)-(o.total||0))}),$=(w,o)=>{i.value=w,f.value=o,a.value=!0},S=()=>{a.value=!1,i.value="",f.value=""};return fe(()=>{v()}),(w,o)=>(l(),r(F,null,[e("div",Hl,[e("div",Yl,[o[5]||(o[5]=e("h2",{class:"card-title text-2xl flex items-center gap-2"},[e("i",{class:"mdi mdi-trophy text-yellow-500 text-3xl"}),R(" Top Submissions ")],-1)),n.value?(l(),r("div",Kl,[...o[0]||(o[0]=[e("span",{class:"loading loading-spinner loading-lg"},null,-1)])])):t.value?(l(),r("div",Zl,[o[1]||(o[1]=e("i",{class:"mdi mdi-alert-circle text-xl"},null,-1)),e("div",null,h(t.value),1)])):x.value.length===0?(l(),r("div",Ql,[...o[2]||(o[2]=[e("p",{class:"text-base-content/70"},"No results available yet.",-1)])])):(l(),r("div",Xl,[e("table",er,[o[4]||(o[4]=e("thead",null,[e("tr",null,[e("th",null,"Puzzle"),e("th",null,"User"),e("th",{class:"text-right"},"Cost"),e("th",{class:"text-right"},"Cycles"),e("th",{class:"text-right"},"Area"),e("th",{class:"text-right"},"Total Pts"),e("th",{class:"text-right"},"Total Coef"),e("th",{class:"text-center"},"GIF")])],-1)),e("tbody",null,[(l(!0),r(F,null,B(x.value,(d,b)=>(l(),r("tr",{key:b},[e("td",tr,h(d.puzzleName),1),e("td",null,h(d.username),1),e("td",sr,h(p(d.cost)),1),e("td",or,h(p(d.cycles)),1),e("td",nr,h(p(d.area)),1),e("td",ar,h(p(d.total)),1),e("td",lr,h(p(d.totalCoef)),1),e("td",rr,[d.files.length>0?(l(),r("button",{key:0,onClick:g=>$(d.files[0].url,d.files[0].name),class:"btn btn-xs btn-primary gap-1"},[...o[3]||(o[3]=[e("i",{class:"mdi mdi-image"},null,-1),R(" View ",-1)])],8,ir)):(l(),r("span",cr,"—"))])]))),128))])])]))])]),a.value?(l(),r("div",dr,[e("div",ur,[e("div",fr,[e("h3",mr,h(f.value),1),e("button",{onClick:S,class:"btn btn-sm btn-circle btn-ghost"},[...o[6]||(o[6]=[e("i",{class:"mdi mdi-close"},null,-1)])])]),e("div",vr,[e("img",{src:i.value,alt:f.value,class:"object-contain"},null,8,hr)]),e("div",gr,[e("a",{href:i.value,target:"_blank",class:"btn btn-primary btn-sm"},[...o[7]||(o[7]=[e("i",{class:"mdi mdi-download"},null,-1),R(" Download ",-1)])],8,pr),e("button",{onClick:S,class:"btn btn-sm"},"Close")])]),e("div",{class:"modal-backdrop",onClick:S})])):L("",!0)],64))}}),yr={class:"card bg-base-100 shadow-lg"},_r={class:"card-body"},xr={key:0,class:"flex justify-center py-12"},wr={key:1,class:"alert alert-error"},kr={key:2,class:"text-center py-8"},$r={key:3,class:"space-y-8"},zr={class:"mb-4"},Sr={class:"text-xl font-bold mb-3"},Cr={key:0,class:"bg-base-200 p-3 rounded-lg mb-4"},Pr={class:"grid grid-cols-3 gap-2"},Lr={class:"text-center"},Rr={class:"font-bold text-primary"},Er={class:"text-center"},Mr={class:"font-bold text-primary"},Or={class:"text-center"},Nr={class:"font-bold text-primary"},Ar={key:1,class:"bg-base-200 p-4 rounded-lg"},Dr={class:"flex flex-wrap justify-center gap-6"},Tr={key:0,class:"text-center w-96"},Ir={class:"text-sm text-base-content/70 mb-3 font-semibold truncate"},qr=["onClick"],jr=["src","alt"],Fr={key:0,class:"overflow-x-auto"},Ur={class:"table table-sm table-zebra"},Br={class:"text-center text-lg font-bold"},Vr={class:"font-semibold"},Gr={class:"text-right"},Wr={class:"text-right"},Jr={class:"text-right"},Hr={class:"text-right font-bold text-primary"},Yr={class:"text-center"},Kr=["onClick"],Zr={key:1,class:"text-base-content/50"},Qr={key:1,class:"p-4 bg-base-200 rounded-lg text-center text-base-content/70"},Xr={key:0,class:"modal modal-open"},ei={class:"modal-box max-w-7xl w-full"},ti={class:"flex justify-between items-center mb-4"},si={class:"font-bold text-lg"},oi={class:"flex justify-center bg-base-200 rounded-lg p-4"},ni=["src","alt"],ai={class:"modal-action mt-4"},li=["href"],ri=le({__name:"PuzzleResults",setup(c){const n=E(!0),s=E(null),t=E(""),a=E(!1),i=E(""),f=E(""),v=async()=>{n.value=!0,t.value="";try{const o=await ee.getPuzzleResults(5);o.data?s.value=o.data:o.error&&(t.value=o.error,console.error("Error fetching results:",o.error))}catch(o){t.value=o instanceof Error?o.message:"Failed to fetch results",console.error("Error fetching results:",o)}finally{n.value=!1}},p=o=>o!==void 0?o.toLocaleString():"—",x=(o,d)=>{i.value=o,f.value=d,a.value=!0},$=()=>{a.value=!1,i.value="",f.value=""},S=o=>["🥇","🥈","🥉"][o-1]||`#${o}`,w=o=>{if(!o.submissions||o.submissions.length===0)return[];const d=o.submissions[0].rank_points;return o.submissions.filter(b=>b.rank_points===d)};return fe(()=>{v()}),(o,d)=>(l(),r(F,null,[e("div",yr,[e("div",_r,[d[13]||(d[13]=e("h2",{class:"card-title text-2xl flex items-center gap-2"},[e("i",{class:"mdi mdi-table text-blue-500 text-3xl"}),R(" Results by Puzzle ")],-1)),n.value?(l(),r("div",xr,[...d[0]||(d[0]=[e("span",{class:"loading loading-spinner loading-lg"},null,-1)])])):t.value?(l(),r("div",wr,[d[1]||(d[1]=e("i",{class:"mdi mdi-alert-circle text-xl"},null,-1)),e("div",null,h(t.value),1)])):!s.value||s.value.results.length===0?(l(),r("div",kr,[...d[2]||(d[2]=[e("p",{class:"text-base-content/70"},"No results available yet.",-1)])])):(l(),r("div",$r,[(l(!0),r(F,null,B(s.value.results,b=>(l(),r("div",{key:b.puzzle_id,class:"border-b pb-8 last:border-b-0"},[e("div",zr,[e("h3",Sr,h(b.puzzle_title),1),b.points_factor?(l(),r("div",Cr,[d[9]||(d[9]=e("p",{class:"text-xs text-base-content/70 font-semibold mb-2"},"Points Coefficients",-1)),e("div",Pr,[e("div",Lr,[e("span",Rr,[d[3]||(d[3]=e("small",null,"x",-1)),R(h(b.points_factor.cost),1)]),d[4]||(d[4]=e("p",{class:"text-xs text-base-content/70"},"Cost",-1))]),e("div",Er,[e("span",Mr,[d[5]||(d[5]=e("small",null,"x",-1)),R(h(b.points_factor.cycles),1)]),d[6]||(d[6]=e("p",{class:"text-xs text-base-content/70"},"Cycles",-1))]),e("div",Or,[e("span",Nr,[d[7]||(d[7]=e("small",null,"x",-1)),R(h(b.points_factor.area),1)]),d[8]||(d[8]=e("p",{class:"text-xs text-base-content/70"},"Area",-1))])])])):L("",!0),b.submissions.length>0&&w(b).length>0?(l(),r("div",Ar,[d[10]||(d[10]=e("p",{class:"text-xs text-base-content/70 font-semibold mb-3 text-center"},"🏆 Winning Solutions",-1)),e("div",Dr,[(l(!0),r(F,null,B(w(b),g=>(l(),r(F,{key:`${b.puzzle_id}-${g.user_id}`},[g&&g.files&&g.files.length>0?(l(),r("div",Tr,[e("div",Ir,h(g.username),1),e("button",{onClick:u=>x(g.files[0].file_url,g.files[0].original_filename),class:"hover:opacity-80 transition-opacity cursor-pointer w-full flex items-center justify-center"},[e("img",{src:g.files[0].file_url,alt:`${b.puzzle_title} - ${g.username}`,class:"max-h-full max-w-full object-contain"},null,8,jr)],8,qr)])):L("",!0)],64))),128))])])):L("",!0)]),b.submissions.length>0?(l(),r("div",Fr,[e("table",Ur,[d[12]||(d[12]=e("thead",null,[e("tr",null,[e("th",{class:"w-12 text-center"},"Pos"),e("th",null,"User"),e("th",{class:"text-right"},"Cost"),e("th",{class:"text-right"},"Cycles"),e("th",{class:"text-right"},"Area"),e("th",{class:"text-right font-bold"},"Total Pts"),e("th",{class:"text-right font-bold"},"Total Coef"),e("th",{class:"text-center"},"GIF")])],-1)),e("tbody",null,[(l(!0),r(F,null,B(b.submissions,g=>(l(),r("tr",{key:`${b.puzzle_id}-${g.user_id}`},[e("td",Br,h(S(g.rank)),1),e("td",Vr,h(g.username),1),e("td",Gr,h(p(g.final_cost)),1),e("td",Wr,h(p(g.final_cycles)),1),e("td",Jr,h(p(g.final_area)),1),e("td",{class:Z(["text-right font-bold",{"text-yellow-600":g.rank===1,"text-gray-600":g.rank===2,"text-orange-600":g.rank===3}])},h(p(g.rank_points)),3),e("td",Hr,h(p(g.total_coef)),1),e("td",Yr,[g.files.length>0?(l(),r("button",{key:0,onClick:u=>x(g.files[0].file_url,g.files[0].original_filename),class:"btn btn-xs btn-primary gap-1"},[...d[11]||(d[11]=[e("i",{class:"mdi mdi-image"},null,-1),R(" View ",-1)])],8,Kr)):(l(),r("span",Zr,"—"))])]))),128))])])])):(l(),r("div",Qr," No submissions yet "))]))),128))]))])]),a.value?(l(),r("div",Xr,[e("div",ei,[e("div",ti,[e("h3",si,h(f.value),1),e("button",{onClick:$,class:"btn btn-sm btn-circle btn-ghost"},[...d[14]||(d[14]=[e("i",{class:"mdi mdi-close"},null,-1)])])]),e("div",oi,[e("img",{src:i.value,alt:f.value,class:"object-contain"},null,8,ni)]),e("div",ai,[e("a",{href:i.value,target:"_blank",class:"btn btn-primary btn-sm"},[...d[15]||(d[15]=[e("i",{class:"mdi mdi-download"},null,-1),R(" Download ",-1)])],8,li),e("button",{onClick:$,class:"btn btn-sm"},"Close")])]),e("div",{class:"modal-backdrop",onClick:$})])):L("",!0)],64))}}),ii={class:"card bg-base-100 shadow-lg"},ci={class:"card-body"},di={key:0,class:"flex justify-center py-12"},ui={key:1,class:"alert alert-error"},fi={key:2,class:"text-center py-8"},mi={key:3,class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-5 gap-3"},vi={class:"text-3xl font-bold mb-2"},hi={class:"font-semibold text-sm mb-2 truncate"},gi={class:"text-2xl font-bold text-primary"},pi=le({__name:"TopUsersLeaderboard",setup(c){const n=E(!0),s=E(null),t=E(""),a=async()=>{n.value=!0,t.value="";try{const f=await ee.getPuzzleResults(100);f.data?s.value=f.data:f.error&&(t.value=f.error,console.error("Error fetching results:",f.error))}catch(f){t.value=f instanceof Error?f.message:"Failed to fetch results",console.error("Error fetching results:",f)}finally{n.value=!1}},i=()=>{if(!s.value)return[];const f={};return s.value.results.forEach(v=>{v.submissions.forEach(p=>{const x=p.user_id;f[x]||(f[x]={username:p.username,user_id:p.user_id,total_points:0}),f[x].total_points+=p.rank_points||0})}),Object.values(f).sort((v,p)=>p.total_points-v.total_points).slice(0,10)};return fe(()=>{a()}),(f,v)=>(l(),r("div",ii,[e("div",ci,[v[3]||(v[3]=e("h2",{class:"card-title text-2xl flex items-center gap-2"},[e("i",{class:"mdi mdi-podium text-yellow-500 text-3xl"}),R(" Top 10 Users ")],-1)),n.value?(l(),r("div",di,[...v[0]||(v[0]=[e("span",{class:"loading loading-spinner loading-lg"},null,-1)])])):t.value?(l(),r("div",ui,[v[1]||(v[1]=e("i",{class:"mdi mdi-alert-circle text-xl"},null,-1)),e("div",null,h(t.value),1)])):i().length===0?(l(),r("div",fi,[...v[2]||(v[2]=[e("p",{class:"text-base-content/70"},"No results available yet.",-1)])])):(l(),r("div",mi,[(l(!0),r(F,null,B(i(),(p,x)=>(l(),r("div",{key:p.user_id,class:Z(["bg-base-200 p-4 rounded-lg text-center",{"ring-2 ring-yellow-500":x===0,"ring-2 ring-gray-400":x===1,"ring-2 ring-orange-400":x===2}])},[e("div",vi,h(x===0?"🥇":x===1?"🥈":x===2?"🥉":`#${x+1}`),1),e("div",hi,h(p.username),1),e("div",gi,h(p.total_points)+" pts",1)],2))),128))]))])]))}});function Lt(c,n){return Yt()?(Kt(c,n),!0):!1}const Rt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function bi(c,n=1e3,s={}){const{immediate:t=!0,immediateCallback:a=!1}=s;let i=null;const f=Mt(!1);function v(){i&&(clearInterval(i),i=null)}function p(){f.value=!1,v()}function x(){const $=_e(n);$<=0||(f.value=!0,a&&c(),v(),f.value&&(i=setInterval(c,$)))}return t&&Rt&&x(),(Jt(n)||typeof n=="function")&&Lt(Ye(n,()=>{f.value&&Rt&&x()})),Lt(p),{isActive:Ht(f),pause:p,resume:x}}function yi(c,n){var s,t;const a=Mt(_e(c)),i=bi(()=>{var $;const S=a.value-1;if(a.value=S<0?0:S,n==null||($=n.onTick)===null||$===void 0||$.call(n),a.value<=0){var w;i.pause(),n==null||(w=n.onComplete)===null||w===void 0||w.call(n)}},(s=n?.interval)!==null&&s!==void 0?s:1e3,{immediate:(t=n?.immediate)!==null&&t!==void 0?t:!1}),f=$=>{var S;a.value=(S=_e($))!==null&&S!==void 0?S:_e(c)},v=()=>{i.pause(),f()},p=()=>{i.isActive.value||a.value>0&&i.resume()};return{remaining:a,reset:f,stop:v,start:$=>{f($),i.resume()},pause:i.pause,resume:p,isActive:i.isActive}}const _i={class:"min-h-screen bg-base-200"},xi={class:"navbar bg-base-100 shadow-lg"},wi={class:"container min-w-3/4 mx-auto w-full flex items-center gap-4"},ki={class:"flex items-center gap-4"},$i={key:0,class:"flex items-center gap-2"},zi={class:"text-sm"},Si={class:"font-medium"},Ci={key:0,class:"badge badge-warning badge-xs ml-1"},Pi={key:1,class:"text-sm text-base-content/70"},Li={class:"container min-w-3/4 mx-auto px-4 py-8"},Ri={key:0,class:"flex justify-center"},Ei={class:"text-center"},Mi={class:"mb-6 text-base-content/70"},Oi={key:1,class:"flex justify-center items-center min-h-[400px]"},Ni={key:2,class:"alert alert-error max-w-2xl mx-auto"},Ai={class:"text-sm"},Di={key:3,class:"space-y-8"},Ti={key:0,class:"space-y-8"},Ii={class:"mb-8"},qi={class:"card bg-base-100 shadow-lg"},ji={class:"card-body"},Fi={class:"card-title text-2xl"},Ui={class:"text-base-content/70"},Bi={class:"flex flex-wrap gap-4 mt-4"},Vi=["disabled"],Gi={key:0,class:"alert alert-warning mt-4"},Wi={key:0},Ji={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"},Hi={key:1,class:"text-center py-12"},Yi={key:0,class:"modal modal-open"},Ki={class:"modal-box max-w-6xl"},Zi={class:"flex justify-between items-center mb-4"},Qi=le({__name:"OpusMagnum",props:{collectionTitle:{},collectionUrl:{},collectionDescription:{}},setup(c){const n=c,s=xe(),t=Qe(),{submissions:a,isSubmissionModalOpen:i}=Ze(t),{openSubmissionModal:f,loadSubmissions:v,closeSubmissionModal:p}=t,x=E(null),$=E(null),S=E(!0),w=E(""),o=Q(()=>x.value?.is_superuser||!1),d=Q(()=>!!($.value&&!$.value.accepting_submissions)),b=Q(()=>{const q={};return a.value.forEach(P=>{P.responses.forEach(j=>{q[j.puzzle_id]||(q[j.puzzle_id]=[]),q[j.puzzle_id].push(j)})}),q});async function g(){try{S.value=!0,w.value="",console.log("Starting data load..."),console.log("Loading user info...");const q=await ts();q.data?(x.value=q.data,console.log("User info loaded:",q.data)):q.error&&console.warn("User info error:",q.error),console.log("Loading collection...");const P=await ss();P.data?($.value=P.data,console.log("Collection loaded:",P.data)):P.error&&console.warn("Collection error:",P.error),console.log("Loading puzzles..."),await s.loadPuzzles(),console.log("Puzzles loaded:",s.puzzles.length),console.log("Loading submissions..."),await v(),console.log("Submissions loaded:",a.value.length),console.log("Data load complete!")}catch(q){w.value=Ot.getErrorMessage(q),console.error("Failed to load data:",q)}finally{S.value=!1,console.log("Loading state set to false")}x.value?.is_superuser&&m()}const{remaining:u,start:m}=yi(60,{onComplete(){g()}});fe(async()=>{await g()});const y=q=>s.findPuzzleByName(q),M=()=>{window.location.reload()},T=()=>{window.location.href="/"};return(q,P)=>(l(),r("div",_i,[e("div",xi,[e("div",wi,[e("button",{onClick:T,class:"btn btn-primary btn-sm"},[...P[3]||(P[3]=[e("i",{class:"mdi mdi-arrow-left"},null,-1),R(" Back ",-1)])]),P[6]||(P[6]=e("h1",{class:"text-xl font-bold"},"Opus Magnum Puzzle Submitter",-1)),P[7]||(P[7]=e("div",{class:"flex-1"},null,-1)),e("div",ki,[x.value?.is_authenticated?(l(),r("div",$i,[e("div",zi,[e("span",Si,h(x.value.username),1),x.value.is_superuser?(l(),r("span",Ci,"Admin")):L("",!0)])])):(l(),r("div",Pi,"Not logged in")),P[4]||(P[4]=e("a",{href:"/api/docs",class:"btn btn-xs"},"API docs",-1)),P[5]||(P[5]=e("a",{href:"/admin",class:"btn btn-xs btn-warning"},"Admin panel",-1))])])]),e("div",Li,[x.value?.is_superuser?(l(),r("div",Ri,[e("div",Ei,[e("p",Mi,[P[8]||(P[8]=e("span",{class:"loading loading-spinner loading-lg"},null,-1)),R(" Auto reload page in "+h(I(u))+" seconds ... ",1)])])])):L("",!0),S.value?(l(),r("div",Oi,[...P[9]||(P[9]=[e("div",{class:"text-center"},[e("span",{class:"loading loading-spinner loading-lg"}),e("p",{class:"mt-4 text-base-content/70"},"Loading puzzles...")],-1)])])):w.value?(l(),r("div",Ni,[P[12]||(P[12]=e("i",{class:"mdi mdi-alert-circle text-xl"},null,-1)),e("div",null,[P[10]||(P[10]=e("h3",{class:"font-bold"},"Error Loading Data",-1)),e("div",Ai,h(w.value),1)]),e("button",{onClick:M,class:"btn btn-sm btn-outline"},[...P[11]||(P[11]=[e("i",{class:"mdi mdi-refresh mr-1"},null,-1),R(" Retry ",-1)])])])):(l(),r("div",Di,[d.value?(l(),r("div",Ti,[ne(pi),ne(ri),ne(br)])):(l(),r(F,{key:1},[e("div",Ii,[e("div",qi,[e("div",ji,[e("h2",Fi,h(n.collectionTitle),1),e("p",Ui,h(n.collectionDescription),1),e("div",Bi,[e("button",{onClick:P[0]||(P[0]=(...j)=>I(f)&&I(f)(...j)),class:"btn btn-primary",disabled:d.value},[...P[13]||(P[13]=[e("i",{class:"mdi mdi-plus mr-2"},null,-1),R(" Submit Solution ",-1)])],8,Vi)]),d.value?(l(),r("div",Gi,[...P[14]||(P[14]=[e("i",{class:"mdi mdi-alert-circle text-xl"},null,-1),e("div",null,[e("h3",{class:"font-bold"},"Tournament Closed"),e("div",{class:"text-sm"},"This tournament is no longer accepting new submissions.")],-1)])])):L("",!0)])])]),ne(Jl),o.value?(l(),r("div",Wi,[ne(ia)])):L("",!0),e("div",Ji,[(l(!0),r(F,null,B(I(s).puzzles,j=>(l(),Zt(js,{key:j.id,puzzle:j,responses:b.value[j.id]||[]},null,8,["puzzle","responses"]))),128))]),I(s).puzzles.length===0?(l(),r("div",Hi,[...P[15]||(P[15]=[e("div",{class:"text-6xl mb-4"},"🧩",-1),e("h3",{class:"text-xl font-bold mb-2"},"No Puzzles Available",-1),e("p",{class:"text-base-content/70"}," Check back later for new puzzle collections! ",-1)])])):L("",!0)],64))]))]),I(i)?(l(),r("div",Yi,[e("div",Ki,[e("div",Zi,[P[17]||(P[17]=e("h3",{class:"font-bold text-lg"},"Submit Solution",-1)),e("button",{onClick:P[1]||(P[1]=(...j)=>I(p)&&I(p)(...j)),class:"btn btn-sm btn-circle btn-ghost"},[...P[16]||(P[16]=[e("i",{class:"mdi mdi-close"},null,-1)])])]),ne(bn,{puzzles:I(s).puzzles,"find-puzzle-by-name":y},null,8,["puzzles"])]),e("div",{class:"modal-backdrop",onClick:P[2]||(P[2]=(...j)=>I(p)&&I(p)(...j))})])):L("",!0)]))}}),It="#app",Xi=document.querySelector(It),qt=Qt(Qi,{...Xi?.dataset});qt.use(Xt);qt.mount(It); diff --git a/polylan_submitter/static_source/vite/assets/opus_magnum-BViqb2AL.js b/polylan_submitter/static_source/vite/assets/opus_magnum-BViqb2AL.js deleted file mode 100644 index 4a5eaf5..0000000 --- a/polylan_submitter/static_source/vite/assets/opus_magnum-BViqb2AL.js +++ /dev/null @@ -1 +0,0 @@ -import{r as E,c as Q,d as le,a as r,o as l,n as Z,b as e,e as L,t as h,f as R,F,g as B,u as I,h as We,w as Ye,i as Je,j as Gt,k as ae,v as Et,l as ne,m as ye,p as Wt,q as fe,s as st,x as Mt,y as Jt,z as Ht,A as _e,B as Yt,C as Kt,D as Zt,E as Qt}from"./style-BkYIZIDm.js";import{d as Ke,s as Ze,_ as ot,p as Xt}from"./index-C0ZY4EM6.js";import{o as es,p as ts,a as ss}from"./sdk.gen-CA3PL0uK.js";const nt="/api";class os{async request(n,s={}){try{const t=await fetch(`${nt}${n}`,{headers:{"Content-Type":"application/json",...s.headers},...s}),a=await t.json();return t.ok?{data:a,status:t.status}:{error:a.detail||`HTTP ${t.status}`,status:t.status}}catch(t){return{error:t instanceof Error?t.message:"Network error",status:0}}}async uploadRequest(n,s){try{const t=await fetch(`${nt}${n}`,{method:"POST",body:s}),a=await t.json();return t.ok?{data:a,status:t.status}:{error:a.detail||`HTTP ${t.status}`,status:t.status}}catch(t){return{error:t instanceof Error?t.message:"Network error",status:0}}}async getGames(){return this.request("/games/")}async getPuzzles(){return this.request("/opus-magnum/puzzles")}async getCollection(){return this.request("/opus-magnum/collection")}async getTopSubmissions(n=5){return this.request(`/results/top-submissions?limit=${n}`)}async getPuzzleResults(n=5){return this.request(`/results/puzzle-results?limit=${n}`)}async getSubmissions(n=20,s=0){return this.request(`/opus-magnum/submissions?limit=${n}&offset=${s}`)}async getSubmission(n){return this.request(`/opus-magnum/submissions/${n}`)}async createSubmission(n,s){const t=new FormData;return t.append("data",JSON.stringify(n)),s.forEach(a=>{t.append("files",a)}),this.uploadRequest("/opus-magnum/submissions",t)}async validateResponse(n,s){return this.request(`/opus-magnum/responses/${n}/validate`,{method:"PUT",body:JSON.stringify(s)})}async autoValidateResponses(n){return this.request(`/opus-magnum/responses/${n}/validate/auto`,{method:"PUT"})}async getResponsesNeedingValidation(){return this.request("/opus-magnum/responses/needs-validation")}async validateSubmission(n){return this.request(`/opus-magnum/submissions/${n}/validate`,{method:"POST"})}async deleteSubmission(n){return this.request(`/opus-magnum/submissions/${n}`,{method:"DELETE"})}async getStats(){return this.request("/opus-magnum/stats")}async healthCheck(){return this.request("/health")}async getUserInfo(){return this.request("/user")}async getMarkets(){return this.request("/market/")}async placeBet(n,s){return this.request(`/market/${n}/bets`,{method:"POST",body:JSON.stringify(s)})}async getUserBets(){return this.request("/market/user/bets")}async closeMarket(n){return this.request(`/market/${n}/actions/close`,{method:"POST"})}async resolveMarket(n,s){return this.request(`/market/${n}/actions/resolve`,{method:"POST",body:JSON.stringify({winning_option_uuid:s})})}}const ee=new os,ns={async loadPuzzles(){const c=await ee.getPuzzles();return c.error?(console.error("Failed to load puzzles:",c.error),[]):c.data||[]},findPuzzleByName(c,n){if(!n)return null;let s=c.find(t=>t.title.toLowerCase()===n.toLowerCase());return s||(s=c.find(t=>t.title.toLowerCase().includes(n.toLowerCase())||n.toLowerCase().includes(t.title.toLowerCase()))),s||null}},at={async createFromFiles(c,n,s,t){const a=c.map(f=>{const v=ns.findPuzzleByName(n,f.ocrData?.puzzle||"");if(v)return{puzzle_id:v.id,puzzle_name:f.ocrData?.puzzle||"",cost:f.ocrData?.cost,cycles:f.ocrData?.cycles,area:f.ocrData?.area,needs_manual_validation:(f.ocrData?.confidence.overall??0)<=.8,ocr_confidence_cost:f.ocrData?.confidence?.cost||0,ocr_confidence_cycles:f.ocrData?.confidence?.cycles||0,ocr_confidence_area:f.ocrData?.confidence?.area||0}}).filter(f=>f!==void 0),i=c.map(f=>f.file);return ee.createSubmission({notes:s,manual_validation_requested:t,responses:a},i)},async loadSubmissions(c=20,n=0){const s=await ee.getSubmissions(c,n);return s.error?(console.error("Failed to load submissions:",s.error),[]):s.data?.items||[]}},Ot={getErrorMessage(c){return typeof c=="string"?c:c instanceof Error?c.message:typeof c=="object"&&c!==null&&"detail"in c?String(c.detail):"An unknown error occurred"},isNetworkError(c){return typeof c=="string"&&c.includes("Network")},isValidationError(c){return c===400},isAuthError(c){return c===401||c===403}},xe=Ke("puzzles",()=>{const c=E([]),n=E(!1),s=E(""),t=Q(()=>c.value.map(v=>v.title)),a=Q(()=>v=>{if(!v)return null;const p=c.value.find($=>$.title.toLowerCase()===v.toLowerCase());return p||c.value.find($=>$.title.toLowerCase().includes(v.toLowerCase())||v.toLowerCase().includes($.title.toLowerCase()))||null}),i=async()=>{if(!(c.value.length>0))try{n.value=!0,s.value="";const v=await es();if(v.error){s.value=String(v.error),console.error("Failed to load puzzles:",v.error);return}v.data&&(c.value=v.data)}catch(v){s.value="Failed to load puzzles",console.error("Error loading puzzles:",v)}finally{n.value=!1}};return{puzzles:c,isLoading:n,error:s,puzzleNames:t,findPuzzleByName:a,loadPuzzles:i,refreshPuzzles:async()=>{c.value=[],await i()}}}),Qe=Ke("submissions",()=>{const c=E([]),n=E(!1),s=E(""),t=E(!1),a=xe(),{puzzles:i}=Ze(a),f=async(w=20,o=0)=>{try{n.value=!0,s.value="";const d=await at.loadSubmissions(w,o);o===0?c.value=d:c.value.push(...d)}catch(d){s.value="Failed to load submissions",console.error("Error loading submissions:",d)}finally{n.value=!1}},v=async(w,o,d)=>{try{n.value=!0,s.value="";const b=await at.createFromFiles(w,i.value,o,d);if(b.error)throw s.value=b.error,new Error(b.error);return b.data?(c.value.unshift(b.data),b.data):void 0}catch(b){throw s.value=b instanceof Error?b.message:"Failed to create submission",b}finally{n.value=!1}},p=()=>{t.value=!0},x=()=>{t.value=!1};return{submissions:c,isLoading:n,error:s,isSubmissionModalOpen:t,loadSubmissions:f,createSubmission:v,openSubmissionModal:p,closeSubmissionModal:x,refreshSubmissions:async()=>{c.value=[],await f()},handleSubmission:async w=>{try{n.value=!0,s.value="";const o=await v(w.files,w.notes,w.manualValidationRequested);if(o){const d=o.responses.map(b=>b.puzzle_name).join(", ");alert(`Solutions submitted successfully for puzzles: ${d}`)}else alert("Submission created successfully!");x()}catch(o){const d=Ot.getErrorMessage(o);s.value=d,alert(`Submission failed: ${d}`),console.error("Submission error:",o)}finally{n.value=!1}}}}),as={class:"card-body"},ls={class:"flex items-start justify-between"},rs={class:"flex-1"},is={class:"text-sm text-base-content/70 mb-2"},cs={class:"flex items-center gap-2 mb-3"},ds={class:"badge badge-primary badge-sm"},us={class:"badge badge-ghost badge-sm"},fs={key:0,class:"text-sm text-base-content/80 mb-4"},ms={key:1,class:"bg-base-200 p-3 rounded-lg mb-4"},vs={class:"grid grid-cols-3 gap-2"},hs={class:"text-center"},gs={class:"font-bold text-primary"},ps={class:"text-center"},bs={class:"font-bold text-primary"},ys={class:"text-center"},_s={class:"font-bold text-primary"},xs={key:2,class:"flex flex-wrap gap-1 mb-4"},ws={key:0,class:"badge badge-outline badge-xs"},ks={class:"flex flex-col items-end gap-2"},$s={class:"tooltip","data-tip":"View on Steam Workshop"},zs=["href"],Ss={key:0,class:"mt-1"},Cs={class:"divider"},Ps={class:"text-sm font-medium"},Ls={class:"table table-xs"},Rs={key:0,class:"badge badge-success badge-xs"},Es={key:1,class:"text-base-content/50"},Ms={key:0,class:"badge badge-info badge-xs"},Os={key:1,class:"text-base-content/50"},Ns={key:0,class:"badge badge-warning badge-xs"},As={key:1,class:"text-base-content/50"},Ds={class:"flex items-center gap-1"},Ts={class:"badge badge-ghost badge-xs"},Is=["data-tip"],qs={key:1,class:"tooltip","data-tip":"Needs manual validation"},js=le({__name:"PuzzleCard",props:{puzzle:{},responses:{}},setup(c){const{openSubmissionModal:n}=Qe();return(s,t)=>(l(),r("div",{class:Z(["card bg-base-100 shadow-lg hover:shadow-2xl transition-shadow duration-300",c.responses?.length==0?"shadow-red-900":"shadow-primary-300"])},[e("div",as,[e("div",ls,[e("div",rs,[e("h3",{class:Z(["card-title text-lg font-bold",c.responses?.length==0?"text-error":"text-primary"])},h(c.puzzle.title),3),e("p",is," by "+h(c.puzzle.author_name),1),e("div",cs,[e("div",ds,h(c.puzzle.steam_item_id),1),e("div",us,"ID: "+h(c.puzzle.id),1)]),c.puzzle.description?(l(),r("p",fs,h(c.puzzle.description),1)):L("",!0),c.puzzle.points_factor?(l(),r("div",ms,[t[7]||(t[7]=e("p",{class:"text-xs text-base-content/70 font-semibold mb-2"},"Points Coefficients",-1)),e("div",vs,[e("div",hs,[e("span",gs,[t[1]||(t[1]=e("small",null,"x",-1)),R(h(c.puzzle.points_factor.cost),1)]),t[2]||(t[2]=e("p",{class:"text-xs text-base-content/70"},"Cost",-1))]),e("div",ps,[e("span",bs,[t[3]||(t[3]=e("small",null,"x",-1)),R(h(c.puzzle.points_factor.cycles),1)]),t[4]||(t[4]=e("p",{class:"text-xs text-base-content/70"},"Cycles",-1))]),e("div",ys,[e("span",_s,[t[5]||(t[5]=e("small",null,"x",-1)),R(h(c.puzzle.points_factor.area),1)]),t[6]||(t[6]=e("p",{class:"text-xs text-base-content/70"},"Area",-1))])])])):L("",!0),c.puzzle.tags&&c.puzzle.tags.length>0?(l(),r("div",xs,[(l(!0),r(F,null,B(c.puzzle.tags.slice(0,3),a=>(l(),r("span",{key:a,class:"badge badge-outline badge-xs"},h(a),1))),128)),c.puzzle.tags.length>3?(l(),r("span",ws," +"+h(c.puzzle.tags.length-3)+" more ",1)):L("",!0)])):L("",!0)]),e("div",ks,[e("div",$s,[e("a",{href:`https://steamcommunity.com/workshop/filedetails/?id=${c.puzzle.steam_item_id}`,target:"_blank",class:"btn btn-ghost btn-sm btn-square"},[...t[8]||(t[8]=[e("i",{class:"mdi mdi-steam text-lg"},null,-1)])],8,zs)])])]),c.responses&&c.responses.length>0?(l(),r("div",Ss,[e("div",Cs,[e("span",Ps,"Solutions ("+h(c.responses.length)+")",1)]),e("div",null,[e("table",Ls,[t[11]||(t[11]=e("thead",null,[e("tr",null,[e("th",null,"Cost"),e("th",null,"Cycles"),e("th",null,"Area"),e("th",null,"Files")])],-1)),e("tbody",null,[(l(!0),r(F,null,B(c.responses,a=>(l(),r("tr",{key:a.id,class:"hover"},[e("td",null,[a.final_cost||a.cost?(l(),r("span",Rs,h(a.final_cost||a.cost),1)):(l(),r("span",Es,"-"))]),e("td",null,[a.final_cycles||a.cycles?(l(),r("span",Ms,h(a.final_cycles||a.cycles),1)):(l(),r("span",Os,"-"))]),e("td",null,[a.final_area||a.area?(l(),r("span",Ns,h(a.final_area||a.area),1)):(l(),r("span",As,"-"))]),e("td",null,[e("div",Ds,[e("span",Ts,h(a.files?.length||0),1),a.files?.length?(l(),r("div",{key:0,class:"tooltip","data-tip":a.files.map(i=>i.original_filename||i.file?.name).join(", ")},[...t[9]||(t[9]=[e("i",{class:"mdi mdi-information-outline text-xs"},null,-1)])],8,Is)):L("",!0),a.needs_manual_validation?(l(),r("div",qs,[...t[10]||(t[10]=[e("i",{class:"mdi mdi-alert-circle text-xs text-warning"},null,-1)])])):L("",!0)])])]))),128))])])])])):(l(),r("div",{key:1,class:"mt-6 text-center py-4 border-2 border-dashed border-base-300 rounded-lg hover:border-primary transition-colors duration-300 cursor-pointer",onClick:t[0]||(t[0]=(...a)=>I(n)&&I(n)(...a))},[...t[12]||(t[12]=[e("i",{class:"mdi mdi-upload text-2xl text-base-content/40"},null,-1),e("p",{class:"text-sm text-base-content/60 mt-2"},"No solutions yet",-1),e("p",{class:"text-xs text-base-content/40"}," Upload solutions using the submit button ",-1)])]))])],2))}});var $e={exports:{}},lt;function Fs(){return lt||(lt=1,(function(c){var n=(function(s){var t=Object.prototype,a=t.hasOwnProperty,i=Object.defineProperty||function(k,_,z){k[_]=z.value},f,v=typeof Symbol=="function"?Symbol:{},p=v.iterator||"@@iterator",x=v.asyncIterator||"@@asyncIterator",$=v.toStringTag||"@@toStringTag";function S(k,_,z){return Object.defineProperty(k,_,{value:z,enumerable:!0,configurable:!0,writable:!0}),k[_]}try{S({},"")}catch{S=function(_,z,O){return _[z]=O}}function w(k,_,z,O){var C=_&&_.prototype instanceof y?_:y,D=Object.create(C.prototype),W=new de(O||[]);return i(D,"_invoke",{value:ge(k,z,W)}),D}s.wrap=w;function o(k,_,z){try{return{type:"normal",arg:k.call(_,z)}}catch(O){return{type:"throw",arg:O}}}var d="suspendedStart",b="suspendedYield",g="executing",u="completed",m={};function y(){}function M(){}function T(){}var q={};S(q,p,function(){return this});var P=Object.getPrototypeOf,j=P&&P(P(ue([])));j&&j!==t&&a.call(j,p)&&(q=j);var te=T.prototype=y.prototype=Object.create(q);M.prototype=T,i(te,"constructor",{value:T,configurable:!0}),i(T,"constructor",{value:M,configurable:!0}),M.displayName=S(T,$,"GeneratorFunction");function ce(k){["next","throw","return"].forEach(function(_){S(k,_,function(z){return this._invoke(_,z)})})}s.isGeneratorFunction=function(k){var _=typeof k=="function"&&k.constructor;return _?_===M||(_.displayName||_.name)==="GeneratorFunction":!1},s.mark=function(k){return Object.setPrototypeOf?Object.setPrototypeOf(k,T):(k.__proto__=T,S(k,$,"GeneratorFunction")),k.prototype=Object.create(te),k},s.awrap=function(k){return{__await:k}};function re(k,_){function z(D,W,V,Y){var U=o(k[D],k,W);if(U.type==="throw")Y(U.arg);else{var me=U.arg,ie=me.value;return ie&&typeof ie=="object"&&a.call(ie,"__await")?_.resolve(ie.__await).then(function(se){z("next",se,V,Y)},function(se){z("throw",se,V,Y)}):_.resolve(ie).then(function(se){me.value=se,V(me)},function(se){return z("throw",se,V,Y)})}}var O;function C(D,W){function V(){return new _(function(Y,U){z(D,W,Y,U)})}return O=O?O.then(V,V):V()}i(this,"_invoke",{value:C})}ce(re.prototype),S(re.prototype,x,function(){return this}),s.AsyncIterator=re,s.async=function(k,_,z,O,C){C===void 0&&(C=Promise);var D=new re(w(k,_,z,O),C);return s.isGeneratorFunction(_)?D:D.next().then(function(W){return W.done?W.value:D.next()})};function ge(k,_,z){var O=d;return function(D,W){if(O===g)throw new Error("Generator is already running");if(O===u){if(D==="throw")throw W;return H()}for(z.method=D,z.arg=W;;){var V=z.delegate;if(V){var Y=pe(V,z);if(Y){if(Y===m)continue;return Y}}if(z.method==="next")z.sent=z._sent=z.arg;else if(z.method==="throw"){if(O===d)throw O=u,z.arg;z.dispatchException(z.arg)}else z.method==="return"&&z.abrupt("return",z.arg);O=g;var U=o(k,_,z);if(U.type==="normal"){if(O=z.done?u:b,U.arg===m)continue;return{value:U.arg,done:z.done}}else U.type==="throw"&&(O=u,z.method="throw",z.arg=U.arg)}}}function pe(k,_){var z=_.method,O=k.iterator[z];if(O===f)return _.delegate=null,z==="throw"&&k.iterator.return&&(_.method="return",_.arg=f,pe(k,_),_.method==="throw")||z!=="return"&&(_.method="throw",_.arg=new TypeError("The iterator does not provide a '"+z+"' method")),m;var C=o(O,k.iterator,_.arg);if(C.type==="throw")return _.method="throw",_.arg=C.arg,_.delegate=null,m;var D=C.arg;if(!D)return _.method="throw",_.arg=new TypeError("iterator result is not an object"),_.delegate=null,m;if(D.done)_[k.resultName]=D.value,_.next=k.nextLoc,_.method!=="return"&&(_.method="next",_.arg=f);else return D;return _.delegate=null,m}ce(te),S(te,$,"Generator"),S(te,p,function(){return this}),S(te,"toString",function(){return"[object Generator]"});function we(k){var _={tryLoc:k[0]};1 in k&&(_.catchLoc=k[1]),2 in k&&(_.finallyLoc=k[2],_.afterLoc=k[3]),this.tryEntries.push(_)}function X(k){var _=k.completion||{};_.type="normal",delete _.arg,k.completion=_}function de(k){this.tryEntries=[{tryLoc:"root"}],k.forEach(we,this),this.reset(!0)}s.keys=function(k){var _=Object(k),z=[];for(var O in _)z.push(O);return z.reverse(),function C(){for(;z.length;){var D=z.pop();if(D in _)return C.value=D,C.done=!1,C}return C.done=!0,C}};function ue(k){if(k){var _=k[p];if(_)return _.call(k);if(typeof k.next=="function")return k;if(!isNaN(k.length)){var z=-1,O=function C(){for(;++z=0;--O){var C=this.tryEntries[O],D=C.completion;if(C.tryLoc==="root")return z("end");if(C.tryLoc<=this.prev){var W=a.call(C,"catchLoc"),V=a.call(C,"finallyLoc");if(W&&V){if(this.prev=0;--z){var O=this.tryEntries[z];if(O.tryLoc<=this.prev&&a.call(O,"finallyLoc")&&this.prev=0;--_){var z=this.tryEntries[_];if(z.finallyLoc===k)return this.complete(z.completion,z.afterLoc),X(z),m}},catch:function(k){for(var _=this.tryEntries.length-1;_>=0;--_){var z=this.tryEntries[_];if(z.tryLoc===k){var O=z.completion;if(O.type==="throw"){var C=O.arg;X(z)}return C}}throw new Error("illegal catch attempt")},delegateYield:function(k,_,z){return this.delegate={iterator:ue(k),resultName:_,nextLoc:z},this.method==="next"&&(this.arg=f),m}},s})(c.exports);try{regeneratorRuntime=n}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}})($e)),$e.exports}var ze,rt;function Xe(){return rt||(rt=1,ze=(c,n)=>`${c}-${n}-${Math.random().toString(16).slice(3,8)}`),ze}var Se,it;function Nt(){if(it)return Se;it=1;const c=Xe();let n=0;return Se=({id:s,action:t,payload:a={}})=>{let i=s;return typeof i>"u"&&(i=c("Job",n),n+=1),{id:i,action:t,payload:a}},Se}var ve={},ct;function et(){if(ct)return ve;ct=1;let c=!1;return ve.logging=c,ve.setLogging=n=>{c=n},ve.log=(...n)=>c?console.log.apply(this,n):null,ve}var Ce,dt;function Us(){if(dt)return Ce;dt=1;const c=Nt(),{log:n}=et(),s=Xe();let t=0;return Ce=()=>{const a=s("Scheduler",t),i={},f={};let v=[];t+=1;const p=()=>v.length,x=()=>Object.keys(i).length,$=()=>{if(v.length!==0){const b=Object.keys(i);for(let g=0;g"u"){v[0](i[b[g]]);break}}},S=(b,g)=>new Promise((u,m)=>{const y=c({action:b,payload:g});v.push(async M=>{v.shift(),f[M.id]=y;try{u(await M[b].apply(this,[...g,y.id]))}catch(T){m(T)}finally{delete f[M.id],$()}}),n(`[${a}]: Add ${y.id} to JobQueue`),n(`[${a}]: JobQueue length=${v.length}`),$()});return{addWorker:b=>(i[b.id]=b,n(`[${a}]: Add ${b.id}`),n(`[${a}]: Number of workers=${x()}`),$(),b.id),addJob:async(b,...g)=>{if(x()===0)throw Error(`[${a}]: You need to have at least one worker before adding jobs`);return S(b,g)},terminate:async()=>{Object.keys(i).forEach(async b=>{await i[b].terminate()}),v=[]},getQueueLen:p,getNumWorkers:x}},Ce}function Bs(c){throw new Error('Could not dynamically require "'+c+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Pe,ut;function Vs(){if(ut)return Pe;ut=1;function c(){return!!(typeof window<"u"&&typeof window.process=="object"&&window.process.type==="renderer"||typeof process<"u"&&typeof process.versions=="object"&&process.versions.electron||typeof navigator=="object"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Electron")>=0)}return Pe=c,Pe}var Le,ft;function Gs(){if(ft)return Le;ft=1;const c=Vs();return Le=n=>{const s={};return typeof WorkerGlobalScope<"u"?s.type="webworker":c()?s.type="electron":typeof document=="object"?s.type="browser":typeof process=="object"&&typeof Bs=="function"&&(s.type="node"),typeof n>"u"?s:s[n]},Le}var Re,mt;function Ws(){if(mt)return Re;mt=1;const n=Gs()("type")==="browser"?s=>new URL(s,window.location.href).href:s=>s;return Re=s=>{const t={...s};return["corePath","workerPath","langPath"].forEach(a=>{s[a]&&(t[a]=n(t[a]))}),t},Re}var Ee,vt;function Js(){return vt||(vt=1,Ee=c=>{const n=[],s=[],t=[],a=[],i=[];return c.blocks&&c.blocks.forEach(f=>{f.paragraphs.forEach(v=>{v.lines.forEach(p=>{p.words.forEach(x=>{x.symbols.forEach($=>{i.push({...$,page:c,block:f,paragraph:v,line:p,word:x})}),a.push({...x,page:c,block:f,paragraph:v,line:p})}),t.push({...p,page:c,block:f,paragraph:v})}),s.push({...v,page:c,block:f})}),n.push({...f,page:c})}),{...c,blocks:n,paragraphs:s,lines:t,words:a,symbols:i}}),Ee}var Me,ht;function At(){return ht||(ht=1,Me={TESSERACT_ONLY:0,LSTM_ONLY:1,TESSERACT_LSTM_COMBINED:2,DEFAULT:3}),Me}const Hs="5.1.1",Ys={version:Hs};var Oe,gt;function Ks(){return gt||(gt=1,Oe={workerBlobURL:!0,logger:()=>{}}),Oe}var Ne,pt;function Zs(){if(pt)return Ne;pt=1;const c=Ys.version;return Ne={...Ks(),workerPath:`https://cdn.jsdelivr.net/npm/tesseract.js@v${c}/dist/worker.min.js`},Ne}var Ae,bt;function Qs(){return bt||(bt=1,Ae=({workerPath:c,workerBlobURL:n})=>{let s;if(Blob&&URL&&n){const t=new Blob([`importScripts("${c}");`],{type:"application/javascript"});s=new Worker(URL.createObjectURL(t))}else s=new Worker(c);return s}),Ae}var De,yt;function Xs(){return yt||(yt=1,De=c=>{c.terminate()}),De}var Te,_t;function eo(){return _t||(_t=1,Te=(c,n)=>{c.onmessage=({data:s})=>{n(s)}}),Te}var Ie,xt;function to(){return xt||(xt=1,Ie=async(c,n)=>{c.postMessage(n)}),Ie}var qe,wt;function so(){if(wt)return qe;wt=1;const c=s=>new Promise((t,a)=>{const i=new FileReader;i.onload=()=>{t(i.result)},i.onerror=({target:{error:{code:f}}})=>{a(Error(`File could not be read! Code=${f}`))},i.readAsArrayBuffer(s)}),n=async s=>{let t=s;if(typeof s>"u")return"undefined";if(typeof s=="string")/data:image\/([a-zA-Z]*);base64,([^"]*)/.test(s)?t=atob(s.split(",")[1]).split("").map(a=>a.charCodeAt(0)):t=await(await fetch(s)).arrayBuffer();else if(typeof HTMLElement<"u"&&s instanceof HTMLElement)s.tagName==="IMG"&&(t=await n(s.src)),s.tagName==="VIDEO"&&(t=await n(s.poster)),s.tagName==="CANVAS"&&await new Promise(a=>{s.toBlob(async i=>{t=await c(i),a()})});else if(typeof OffscreenCanvas<"u"&&s instanceof OffscreenCanvas){const a=await s.convertToBlob();t=await c(a)}else(s instanceof File||s instanceof Blob)&&(t=await c(s));return new Uint8Array(t)};return qe=n,qe}var je,kt;function oo(){if(kt)return je;kt=1;const c=Zs(),n=Qs(),s=Xs(),t=eo(),a=to(),i=so();return je={defaultOptions:c,spawnWorker:n,terminateWorker:s,onMessage:t,send:a,loadImage:i},je}var Fe,$t;function Dt(){if($t)return Fe;$t=1;const c=Ws(),n=Js(),s=Nt(),{log:t}=et(),a=Xe(),i=At(),{defaultOptions:f,spawnWorker:v,terminateWorker:p,onMessage:x,loadImage:$,send:S}=oo();let w=0;return Fe=async(o="eng",d=i.LSTM_ONLY,b={},g={})=>{const u=a("Worker",w),{logger:m,errorHandler:y,...M}=c({...f,...b}),T={},q={},P=typeof o=="string"?o.split("+"):o;let j=d,te=g;const ce=[i.DEFAULT,i.LSTM_ONLY].includes(d)&&!M.legacyCore;let re,ge;const pe=new Promise((N,A)=>{ge=N,re=A}),we=N=>{re(N.message)};let X=v(M);X.onerror=we,w+=1;const de=(N,A)=>{T[N]=A},ue=(N,A)=>{q[N]=A},H=({id:N,action:A,payload:G})=>new Promise((K,J)=>{t(`[${u}]: Start ${N}, action=${A}`);const oe=`${A}-${N}`;de(oe,K),ue(oe,J),S(X,{workerId:u,jobId:N,action:A,payload:G})}),k=()=>console.warn("`load` is depreciated and should be removed from code (workers now come pre-loaded)"),_=N=>H(s({id:N,action:"load",payload:{options:{lstmOnly:ce,corePath:M.corePath,logging:M.logging}}})),z=(N,A,G)=>H(s({id:G,action:"FS",payload:{method:"writeFile",args:[N,A]}})),O=(N,A)=>H(s({id:A,action:"FS",payload:{method:"readFile",args:[N,{encoding:"utf8"}]}})),C=(N,A)=>H(s({id:A,action:"FS",payload:{method:"unlink",args:[N]}})),D=(N,A,G)=>H(s({id:G,action:"FS",payload:{method:N,args:A}})),W=()=>console.warn("`loadLanguage` is depreciated and should be removed from code (workers now come with language pre-loaded)"),V=(N,A)=>H(s({id:A,action:"loadLanguage",payload:{langs:N,options:{langPath:M.langPath,dataPath:M.dataPath,cachePath:M.cachePath,cacheMethod:M.cacheMethod,gzip:M.gzip,lstmOnly:[i.DEFAULT,i.LSTM_ONLY].includes(j)&&!M.legacyLang}}})),Y=()=>console.warn("`initialize` is depreciated and should be removed from code (workers now come pre-initialized)"),U=(N,A,G,K)=>H(s({id:K,action:"initialize",payload:{langs:N,oem:A,config:G}})),me=(N="eng",A,G,K)=>{if(ce&&[i.TESSERACT_ONLY,i.TESSERACT_LSTM_COMBINED].includes(A))throw Error("Legacy model requested but code missing.");const J=A||j;j=J;const oe=G||te;te=oe;const ke=(typeof N=="string"?N.split("+"):N).filter(Vt=>!P.includes(Vt));return P.push(...ke),ke.length>0?V(ke,K).then(()=>U(N,J,oe,K)):U(N,J,oe,K)},ie=(N={},A)=>H(s({id:A,action:"setParameters",payload:{params:N}})),se=async(N,A={},G={blocks:!0,text:!0,hocr:!0,tsv:!0},K)=>H(s({id:K,action:"recognize",payload:{image:await $(N),options:A,output:G}})),jt=(N="Tesseract OCR Result",A=!1,G)=>(console.log("`getPDF` function is depreciated. `recognize` option `savePDF` should be used instead."),H(s({id:G,action:"getPDF",payload:{title:N,textonly:A}}))),Ft=async(N,A)=>{if(ce)throw Error("`worker.detect` requires Legacy model, which was not loaded.");return H(s({id:A,action:"detect",payload:{image:await $(N)}}))},Ut=async()=>(X!==null&&(p(X),X=null),Promise.resolve());x(X,({workerId:N,jobId:A,status:G,action:K,data:J})=>{const oe=`${K}-${A}`;if(G==="resolve"){t(`[${N}]: Complete ${A}`);let be=J;K==="recognize"?be=n(J):K==="getPDF"&&(be=Array.from({...J,length:Object.keys(J).length})),T[oe]({jobId:A,data:be})}else if(G==="reject")if(q[oe](J),K==="load"&&re(J),y)y(J);else throw Error(J);else G==="progress"&&m({...J,userJobId:A})});const Bt={id:u,worker:X,setResolve:de,setReject:ue,load:k,writeText:z,readText:O,removeFile:C,FS:D,loadLanguage:W,initialize:Y,reinitialize:me,setParameters:ie,recognize:se,getPDF:jt,detect:Ft,terminate:Ut};return _().then(()=>V(o)).then(()=>U(o,d,g)).then(()=>ge(Bt)).catch(()=>{}),pe},Fe}var Ue,zt;function no(){if(zt)return Ue;zt=1;const c=Dt();return Ue={recognize:async(t,a,i)=>{const f=await c(a,1,i);return f.recognize(t).finally(async()=>{await f.terminate()})},detect:async(t,a)=>{const i=await c("osd",0,a);return i.detect(t).finally(async()=>{await i.terminate()})}},Ue}var Be,St;function ao(){return St||(St=1,Be={AFR:"afr",AMH:"amh",ARA:"ara",ASM:"asm",AZE:"aze",AZE_CYRL:"aze_cyrl",BEL:"bel",BEN:"ben",BOD:"bod",BOS:"bos",BUL:"bul",CAT:"cat",CEB:"ceb",CES:"ces",CHI_SIM:"chi_sim",CHI_TRA:"chi_tra",CHR:"chr",CYM:"cym",DAN:"dan",DEU:"deu",DZO:"dzo",ELL:"ell",ENG:"eng",ENM:"enm",EPO:"epo",EST:"est",EUS:"eus",FAS:"fas",FIN:"fin",FRA:"fra",FRK:"frk",FRM:"frm",GLE:"gle",GLG:"glg",GRC:"grc",GUJ:"guj",HAT:"hat",HEB:"heb",HIN:"hin",HRV:"hrv",HUN:"hun",IKU:"iku",IND:"ind",ISL:"isl",ITA:"ita",ITA_OLD:"ita_old",JAV:"jav",JPN:"jpn",KAN:"kan",KAT:"kat",KAT_OLD:"kat_old",KAZ:"kaz",KHM:"khm",KIR:"kir",KOR:"kor",KUR:"kur",LAO:"lao",LAT:"lat",LAV:"lav",LIT:"lit",MAL:"mal",MAR:"mar",MKD:"mkd",MLT:"mlt",MSA:"msa",MYA:"mya",NEP:"nep",NLD:"nld",NOR:"nor",ORI:"ori",PAN:"pan",POL:"pol",POR:"por",PUS:"pus",RON:"ron",RUS:"rus",SAN:"san",SIN:"sin",SLK:"slk",SLV:"slv",SPA:"spa",SPA_OLD:"spa_old",SQI:"sqi",SRP:"srp",SRP_LATN:"srp_latn",SWA:"swa",SWE:"swe",SYR:"syr",TAM:"tam",TEL:"tel",TGK:"tgk",TGL:"tgl",THA:"tha",TIR:"tir",TUR:"tur",UIG:"uig",UKR:"ukr",URD:"urd",UZB:"uzb",UZB_CYRL:"uzb_cyrl",VIE:"vie",YID:"yid"}),Be}var Ve,Ct;function lo(){return Ct||(Ct=1,Ve={OSD_ONLY:"0",AUTO_OSD:"1",AUTO_ONLY:"2",AUTO:"3",SINGLE_COLUMN:"4",SINGLE_BLOCK_VERT_TEXT:"5",SINGLE_BLOCK:"6",SINGLE_LINE:"7",SINGLE_WORD:"8",CIRCLE_WORD:"9",SINGLE_CHAR:"10",SPARSE_TEXT:"11",SPARSE_TEXT_OSD:"12",RAW_LINE:"13"}),Ve}var Ge,Pt;function ro(){if(Pt)return Ge;Pt=1,Fs();const c=Us(),n=Dt(),s=no(),t=ao(),a=At(),i=lo(),{setLogging:f}=et();return Ge={languages:t,OEM:a,PSM:i,createScheduler:c,createWorker:n,setLogging:f,...s},Ge}var io=ro();class tt{worker=null;availablePuzzleNames=[];regions={puzzle:{x:15,y:600,width:330,height:28},cost:{x:412,y:603,width:65,height:22},cycles:{x:577,y:603,width:65,height:22},area:{x:739,y:603,width:65,height:22}};async initialize(){this.worker||(this.worker=await io.createWorker("eng"),await this.worker.setParameters({tessedit_ocr_engine_mode:"3",tessedit_pageseg_mode:7}))}setAvailablePuzzleNames(n){this.availablePuzzleNames=n,console.log("OCR service updated with puzzle names:",n)}async configurePuzzleOCR(){this.worker&&(await this.worker.setParameters({load_system_dawg:"0",load_freq_dawg:"0",load_punc_dawg:"0",load_number_dawg:"0",load_unambig_dawg:"0",load_bigram_dawg:"0",load_fixed_length_dawgs:"0",tessedit_char_whitelist:this.getPuzzleCharacterSet(),tessedit_pageseg_mode:8,segment_penalty_dict_nonword:"2.0",segment_penalty_dict_frequent_word:"0.001",segment_penalty_dict_case_ok:"0.001",segment_penalty_dict_case_bad:"0.1",classify_enable_learning:"0",classify_enable_adaptive_matcher:"1",preserve_interword_spaces:"1"}),console.log("OCR configured for puzzle names with character set:",this.getPuzzleCharacterSet()))}getPuzzleCharacterSet(){if(this.availablePuzzleNames.length===0)return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 -";const n=new Set;return this.availablePuzzleNames.forEach(s=>{for(const t of s)n.add(t)}),Array.from(n).join("")}async extractOpusMagnumData(n){this.worker||await this.initialize();const s=URL.createObjectURL(n),t=new Image;return new Promise((a,i)=>{t.onload=async()=>{try{const f=document.createElement("canvas"),v=f.getContext("2d");f.width=t.width,f.height=t.height,v.drawImage(t,0,0);const p={},x={};for(const[w,o]of Object.entries(this.regions)){const d=document.createElement("canvas"),b=d.getContext("2d");d.width=o.width,d.height=o.height,b.drawImage(f,o.x,o.y,o.width,o.height,0,0,o.width,o.height);const g=b.getImageData(0,0,o.width,o.height);this.preprocessImage(g),b.putImageData(g,0,0),w==="cost"?await this.worker.setParameters({tessedit_char_whitelist:"0123456789G"}):w==="cycles"||w==="area"?await this.worker.setParameters({tessedit_char_whitelist:"0123456789"}):w==="puzzle"?await this.configurePuzzleOCR():await this.worker.setParameters({tessedit_char_whitelist:""});const{data:{text:u,confidence:m}}=await this.worker.recognize(d);let y=u.trim();if(x[w]=m/100,w==="cost"){if(y.endsWith("6")&&y.length>1){const M=y.slice(0,-1);/^\d+$/.test(M)&&(y=M)}y=y.replace(/G+$/g,""),y=y.replace(/[^0-9]/g,"")}else if(w==="cycles"||w==="area")y=y.replace(/[^0-9]/g,"");else if(w==="puzzle"&&(y=this.findBestPuzzleMatch(y),this.availablePuzzleNames.length>0&&!this.availablePuzzleNames.includes(y))){const M=this.findBestPuzzleMatchForced(y);M&&(y=M,console.log(`Forced OCR match: "${u.trim()}" -> "${y}"`))}p[w]=y}URL.revokeObjectURL(s);const $=Object.values(x),S=$.length>0?$.reduce((w,o)=>w+o,0)/$.length:0;a({puzzle:p.puzzle||"",cost:parseInt(p.cost||""),cycles:parseInt(p.cycles||""),area:parseInt(p.area||""),confidence:{puzzle:x.puzzle||0,cost:x.cost||0,cycles:x.cycles||0,area:x.area||0,overall:S}})}catch(f){URL.revokeObjectURL(s),i(f)}},t.onerror=()=>{URL.revokeObjectURL(s),i(new Error("Failed to load image"))},t.src=s})}preprocessImage(n){const s=n.data;for(let t=0;tArray(n.length+1).fill(null));for(let a=0;a<=n.length;a++)t[0][a]=a;for(let a=0;a<=s.length;a++)t[a][0]=a;for(let a=1;a<=s.length;a++)for(let i=1;i<=n.length;i++){const f=n[i-1]===s[a-1]?0:1;t[a][i]=Math.min(t[a][i-1]+1,t[a-1][i]+1,t[a-1][i-1]+f)}return t[s.length][n.length]}findBestPuzzleMatch(n){if(!this.availablePuzzleNames.length)return n.trim();const s=n.trim();if(!s)return"";const t=this.availablePuzzleNames.find(v=>v.toLowerCase()===s.toLowerCase());if(t)return t;const a=this.availablePuzzleNames.find(v=>v.toLowerCase().includes(s.toLowerCase())||s.toLowerCase().includes(v.toLowerCase()));if(a)return a;let i=s,f=0;for(const v of this.availablePuzzleNames){const p=[this.calculateLevenshteinSimilarity(s,v),this.calculateJaroWinklerSimilarity(s,v),this.calculateNGramSimilarity(s,v,2)],x=Math.max(...p);x>f&&x>.4&&(f=x,i=v)}if(f<.6){const v=this.findBestCharacterMatch(s);v&&(i=v)}return i}calculateLevenshteinSimilarity(n,s){const t=this.levenshteinDistance(n.toLowerCase(),s.toLowerCase()),a=Math.max(n.length,s.length);return a===0?1:1-t/a}calculateJaroWinklerSimilarity(n,s){const t=n.toLowerCase(),a=s.toLowerCase();if(t===a)return 1;const i=Math.floor(Math.max(t.length,a.length)/2)-1;if(i<0)return 0;const f=new Array(t.length).fill(!1),v=new Array(a.length).fill(!1);let p=0,x=0;for(let o=0;ov.has($))),x=new Set([...f,...v]);return p.size/x.size}findBestCharacterMatch(n){let s=null,t=0;for(const a of this.availablePuzzleNames){const i=this.calculateCharacterFrequencyScore(n.toLowerCase(),a.toLowerCase());i>t&&i>.3&&(t=i,s=a)}return s}calculateCharacterFrequencyScore(n,s){const t=new Map,a=new Map;for(const p of n)t.set(p,(t.get(p)||0)+1);for(const p of s)a.set(p,(a.get(p)||0)+1);const i=new Set([...t.keys(),...a.keys()]);let f=0,v=0;for(const p of i){const x=t.get(p)||0,$=a.get(p)||0;f+=Math.min(x,$),v+=Math.max(x,$)}return v===0?0:f/v}findBestPuzzleMatchForced(n){if(!this.availablePuzzleNames.length||!n.trim())return null;const s=n.trim().toLowerCase();let t=this.availablePuzzleNames[0],a=0;for(const i of this.availablePuzzleNames){const f=[this.calculateLevenshteinSimilarity(s,i),this.calculateJaroWinklerSimilarity(s,i),this.calculateNGramSimilarity(s,i,2),this.calculateCharacterFrequencyScore(s,i.toLowerCase()),this.calculateLengthSimilarity(s,i.toLowerCase())],v=f[0]*.25+f[1]*.25+f[2]*.2+f[3]*.2+f[4]*.1;v>a&&(a=v,t=i)}return console.log(`Forced match for "${n}": "${t}" (score: ${a.toFixed(3)})`),t}calculateLengthSimilarity(n,s){const t=n.length,a=s.length,i=Math.max(t,a),f=Math.min(t,a);return i===0?1:f/i}async terminate(){this.worker&&(await this.worker.terminate(),this.worker=null)}static isValidOpusMagnumImage(n){return["image/jpeg","image/jpg","image/png","image/gif"].includes(n.type)}static drawDebugRegions(n){return new Promise((s,t)=>{const a=URL.createObjectURL(n),i=new Image;i.onload=()=>{const f=document.createElement("canvas"),v=f.getContext("2d");f.width=i.width,f.height=i.height,v.drawImage(i,0,0),v.strokeStyle="#00ff00",v.lineWidth=2;const p=new tt;Object.values(p.regions).forEach(x=>{v.strokeRect(x.x,x.y,x.width,x.height)}),URL.revokeObjectURL(a),s(f.toDataURL())},i.onerror=()=>{URL.revokeObjectURL(a),t(new Error("Failed to load image for debug"))},i.src=a})}}const He=new tt,he=.8,Tt=Ke("uploads",()=>{const c=E([]),n=Q(()=>c.value.some(p=>p.ocrProcessing)),s=Q(()=>c.value.some(p=>a(p))),t=Q(()=>c.value.filter(p=>p.needsManualPuzzleSelection)),a=p=>p.ocrData?.confidence?p.ocrData.confidence.cost{for(;n.value;){const $=Math.floor(Math.random()*400)+100;console.log(`OCR is already processing, waiting ${$}ms...`),await new Promise(S=>setTimeout(S,$))}const x=c.value.indexOf(p);c.value[x].ocrProcessing=!0,c.value[x].ocrError=void 0,c.value[x].ocrData=void 0;try{console.log("Starting OCR processing for:",p.file.name),await He.initialize();const $=await He.extractOpusMagnumData(p.file);console.log("OCR completed:",$),await We(),c.value[x].ocrData=$,$.confidence.puzzle{const p=c.value.filter(x=>a(x));for(const x of p)i(x)},clearFiles:()=>{c.value=[]},isProcessingOCR:n,hasLowConfidence:s,CONFIDENCE_VALUE:he}}),co={class:"form-control w-full"},uo={key:0,class:"space-y-4"},fo={key:1,class:"space-y-4"},mo={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-2 gap-4"},vo={class:"aspect-square rounded-lg overflow-hidden bg-base-200"},ho=["src","alt"],go={class:"absolute inset-0 bg-black/80 opacity-0 group-hover:opacity-100 transition-opacity duration-200 rounded-lg flex items-center justify-center"},po=["onClick"],bo={class:"mt-2"},yo={class:"text-xs font-medium truncate"},_o={class:"text-xs text-base-content/60"},xo={key:0,class:"mt-1 flex items-center gap-1"},wo={key:1,class:"mt-1"},ko={class:"text-xs text-error"},$o={key:2,class:"mt-1 space-y-1"},zo={class:"text-xs flex items-center justify-between"},So={class:"flex items-center gap-2"},Co=["title"],Po=["onClick"],Lo={class:"text-xs space-y-1 bg-base-200 p-2 rounded"},Ro={key:0},Eo=["title"],Mo={key:1},Oo=["title"],No={key:2},Ao=["title"],Do={key:3},To=["title"],Io={key:3,class:"mt-2"},qo={class:"mt-2"},jo=["onUpdate:modelValue","onChange"],Fo=["value"],Uo={key:4,class:"mt-1"},Bo=["onClick"],Vo={class:"flex justify-center"},Go={key:0,class:"label"},Wo={class:"label-text-alt text-error"},Jo=le({__name:"FileUpload",setup(c){const n=xe(),{submissionFiles:s,processOCR:t}=Tt(),a=E(),i=E(!1),f=E("");Ye(()=>n.puzzles,u=>{u&&u.length>0&&He.setAvailablePuzzleNames(n.puzzleNames)},{immediate:!0});const v=u=>{const m=u.target;m.files&&x(Array.from(m.files))},p=u=>{u.preventDefault(),i.value=!1,u.dataTransfer?.files&&x(Array.from(u.dataTransfer.files))},x=async u=>{f.value="";for(const m of u)if($(m))try{const y=await S(m),M=m.type.startsWith("image/gif")?"gif":"image",T={file:m,file_url:"",preview:y,type:M,ocrProcessing:!1,ocrError:void 0,ocrData:void 0};s.push(T),d(m)&&We(()=>{t(T)})}catch{f.value=`Failed to process ${m.name}`}},$=u=>u.type.startsWith("image/")?u.size>256*1024*1024?(f.value=`${u.name} is too large (max 256MB)`,!1):!0:(f.value=`${u.name} is not a valid image file`,!1),S=u=>new Promise((m,y)=>{const M=new FileReader;M.onload=T=>m(T.target?.result),M.onerror=y,M.readAsDataURL(u)}),w=u=>{s.splice(u,1)},o=u=>{if(u===0)return"0 Bytes";const m=1024,y=["Bytes","KB","MB","GB"],M=Math.floor(Math.log(u)/Math.log(m));return parseFloat((u/Math.pow(m,M)).toFixed(2))+" "+y[M]},d=u=>u.type.startsWith("image/")&&u.size>5e4,b=u=>u>=.8?"badge-success":u>=.6?"badge-warning":"badge-error",g=u=>{const m=s.findIndex(y=>y.file===u.file);m!==-1&&s[m].manualPuzzleSelection&&(s[m].needsManualPuzzleSelection=!1,console.log(`Manual puzzle selection: ${u.file.name} -> ${s[m].manualPuzzleSelection}`))};return(u,m)=>(l(),r("div",co,[m[19]||(m[19]=e("label",{class:"label"},[e("span",{class:"label-text font-medium"},"Upload Solution Files"),e("span",{class:"label-text-alt text-xs"},"Images or GIFs only")],-1)),e("div",{class:Z(["border-2 border-dashed border-base-300 rounded-lg p-6 text-center hover:border-primary transition-colors duration-300",{"border-primary bg-primary/5":i.value}]),onDrop:p,onDragover:m[2]||(m[2]=Je(y=>i.value=!0,["prevent"])),onDragleave:m[3]||(m[3]=y=>i.value=!1),onDragenter:m[4]||(m[4]=Je(()=>{},["prevent"]))},[e("input",{ref_key:"fileInput",ref:a,type:"file",multiple:"",accept:"image/*,.gif",class:"hidden",onChange:v},null,544),I(s).length===0?(l(),r("div",uo,[m[6]||(m[6]=e("div",{class:"mx-auto w-12 h-12 text-base-content/40 flex items-center justify-center"},[e("i",{class:"mdi mdi-cloud-upload text-5xl"})],-1)),e("div",null,[m[5]||(m[5]=e("p",{class:"text-base-content/70 mb-2"},"Drop your files here or",-1)),e("button",{type:"button",onClick:m[0]||(m[0]=y=>a.value?.click()),class:"btn btn-primary btn-sm"}," Choose Files ")]),m[7]||(m[7]=e("p",{class:"text-xs text-base-content/50"}," Supported formats: JPG, PNG, GIF (max 256MB each) ",-1))])):(l(),r("div",fo,[e("div",mo,[(l(!0),r(F,null,B(I(s),(y,M)=>(l(),r("div",{key:M,class:"relative group"},[e("div",vo,[e("img",{src:y.preview,alt:y.file.name,class:"w-full h-full object-cover"},null,8,ho)]),e("div",go,[e("button",{onClick:T=>w(M),class:"btn btn-error btn-lg btn-circle"},[...m[8]||(m[8]=[e("i",{class:"mdi mdi-close"},null,-1)])],8,po)]),e("div",bo,[e("p",yo,h(y.file.name),1),e("p",_o,h(o(y.file.size))+" • "+h(y.type.toUpperCase()),1),y.ocrProcessing?(l(),r("div",xo,[...m[9]||(m[9]=[e("span",{class:"loading loading-spinner loading-xs"},null,-1),e("span",{class:"text-xs text-info"},"Extracting puzzle data...",-1)])])):y.ocrError?(l(),r("div",wo,[e("p",ko,h(y.ocrError),1)])):y.ocrData?(l(),r("div",$o,[e("div",zo,[e("div",So,[m[10]||(m[10]=e("span",{class:"font-medium text-success"},"✓ OCR Complete",-1)),y.ocrData.confidence?(l(),r("span",{key:0,class:Z(["badge badge-xs",b(y.ocrData.confidence.overall)]),title:`Overall confidence: ${Math.round(y.ocrData.confidence.overall*100)}%`},h(Math.round(y.ocrData.confidence.overall*100))+"% ",11,Co)):L("",!0)]),e("button",{onClick:T=>I(t)(y),class:"btn btn-xs btn-ghost",title:"Retry OCR"},[...m[11]||(m[11]=[e("i",{class:"mdi mdi-refresh"},null,-1)])],8,Po)]),e("div",Lo,[y.ocrData.puzzle?(l(),r("div",Ro,[m[12]||(m[12]=e("strong",null,"Puzzle:",-1)),R(" "+h(y.ocrData.puzzle)+" ",1),y.ocrData.confidence?.puzzle?(l(),r("span",{key:0,class:"ml-2 opacity-60",title:`Puzzle confidence: ${Math.round(y.ocrData.confidence.puzzle*100)}%`}," ("+h(Math.round(y.ocrData.confidence.puzzle*100))+"%) ",9,Eo)):L("",!0)])):L("",!0),y.ocrData.cost?(l(),r("div",Mo,[m[13]||(m[13]=e("strong",null,"Cost:",-1)),R(" "+h(y.ocrData.cost)+" ",1),y.ocrData.confidence?.cost?(l(),r("span",{key:0,class:"ml-2 opacity-60",title:`Cost confidence: ${Math.round(y.ocrData.confidence.cost*100)}%`}," ("+h(Math.round(y.ocrData.confidence.cost*100))+"%) ",9,Oo)):L("",!0)])):L("",!0),y.ocrData.cycles?(l(),r("div",No,[m[14]||(m[14]=e("strong",null,"Cycles:",-1)),R(" "+h(y.ocrData.cycles)+" ",1),y.ocrData.confidence?.cycles?(l(),r("span",{key:0,class:"ml-2 opacity-60",title:`Cycles confidence: ${Math.round(y.ocrData.confidence.cycles*100)}%`}," ("+h(Math.round(y.ocrData.confidence.cycles*100))+"%) ",9,Ao)):L("",!0)])):L("",!0),y.ocrData.area?(l(),r("div",Do,[m[15]||(m[15]=e("strong",null,"Area:",-1)),R(" "+h(y.ocrData.area)+" ",1),y.ocrData.confidence?.area?(l(),r("span",{key:0,class:"ml-2 opacity-60",title:`Area confidence: ${Math.round(y.ocrData.confidence.area*100)}%`}," ("+h(Math.round(y.ocrData.confidence.area*100))+"%) ",9,To)):L("",!0)])):L("",!0)])])):L("",!0),y.needsManualPuzzleSelection?(l(),r("div",Io,[m[17]||(m[17]=Gt('
Low OCR Confidence
Please select the correct puzzle manually
',1)),e("div",qo,[ae(e("select",{"onUpdate:modelValue":T=>y.manualPuzzleSelection=T,class:"select select-bordered select-sm w-full",onChange:T=>g(y)},[m[16]||(m[16]=e("option",{value:""},"Select puzzle...",-1)),(l(!0),r(F,null,B(I(n).puzzles,T=>(l(),r("option",{key:T.id,value:T.title},h(T.title),9,Fo))),128))],40,jo),[[Et,y.manualPuzzleSelection]])])])):!y.ocrProcessing&&!y.ocrError&&!y.ocrData?(l(),r("div",Uo,[e("button",{onClick:T=>I(t)(y),class:"btn btn-xs btn-outline"},[...m[18]||(m[18]=[e("i",{class:"mdi mdi-text-recognition"},null,-1),R(" Extract Puzzle Data ",-1)])],8,Bo)])):L("",!0)])]))),128))]),e("div",Vo,[e("button",{type:"button",onClick:m[1]||(m[1]=y=>a.value?.click()),class:"btn btn-outline btn-sm"}," Add More Files ")])]))],34),f.value?(l(),r("div",Go,[e("span",Wo,h(f.value),1)])):L("",!0)]))}}),Ho={class:"card bg-base-100 shadow-xl"},Yo={class:"card-body"},Ko={key:0,class:"alert alert-info"},Zo={class:"flex-1"},Qo={class:"font-bold"},Xo={class:"text-sm space-y-1 mt-1"},en={class:"badge badge-ghost badge-sm ml-2"},tn={key:1,class:"alert alert-warning"},sn={class:"flex-1"},on={class:"text-sm"},nn={class:"form-control"},an={class:"flex-1"},ln={class:"flex label"},rn={class:"label-text-alt"},cn={class:"form-control"},dn={class:"label cursor-pointer justify-start gap-3"},un=["disabled"],fn={class:"card-actions justify-end"},mn=["disabled"],vn={key:0,class:"loading loading-spinner loading-sm"},hn={key:1},gn={key:2},pn={key:3},bn=le({__name:"SubmissionForm",props:{puzzles:{},findPuzzleByName:{type:Function}},setup(c){const n=c,s=Tt(),{submissionFiles:t,hasLowConfidence:a,submissionFilesNeedingManualSelection:i}=Ze(s),{clearFiles:f,processLowConfidenceOCRFiles:v}=s,{handleSubmission:p}=Qe(),x=E(""),$=E(!1),S=E(!1),w=Q(()=>x.value.length),o=Q(()=>{const g=t.value.length>0,u=!t.value.some(m=>m.needsManualPuzzleSelection);return g&&!S.value&&u});Ye(a,g=>{g&&($.value=!0)});const d=Q(()=>{const g={};return t.value.forEach(u=>{const m=u.manualPuzzleSelection||u.ocrData?.puzzle;m&&(g[m]||(g[m]={puzzle:n.findPuzzleByName(m),files:[]}),g[m].files.push(u))}),g}),b=async()=>{if(o.value){S.value=!0;try{p({files:t.value,notes:x.value.trim()||void 0,manualValidationRequested:a.value||$.value}),f(),x.value="",$.value=!1}catch(g){console.error("Submission error:",g)}finally{S.value=!1}}};return(g,u)=>(l(),r("div",Ho,[e("div",Yo,[u[9]||(u[9]=e("h2",{class:"card-title text-xl mb-6"},[e("i",{class:"mdi mdi-check-circle text-2xl text-primary"}),R(" Submit Solution ")],-1)),e("form",{onSubmit:Je(b,["prevent"]),class:"space-y-6"},[Object.keys(d.value).length>0?(l(),r("div",Ko,[u[3]||(u[3]=e("i",{class:"mdi mdi-information-outline text-xl"},null,-1)),e("div",Zo,[e("h4",Qo," Detected Puzzles ("+h(Object.keys(d.value).length)+") ",1),e("div",Xo,[(l(!0),r(F,null,B(d.value,(m,y)=>(l(),r("div",{key:y,class:"flex justify-between"},[e("span",null,h(y),1),e("span",en,h(m.files.length)+" file(s)",1)]))),128))])])])):L("",!0),ne(Jo),I(i).length>0?(l(),r("div",tn,[u[6]||(u[6]=e("i",{class:"mdi mdi-alert-circle text-xl"},null,-1)),e("div",sn,[u[5]||(u[5]=e("div",{class:"font-bold"},"Manual Puzzle Selection Required",-1)),e("div",on,h(I(i).length)+" file(s) have low OCR confidence for puzzle names. Please select the correct puzzle for each file before submitting. ",1),e("button",{class:"btn mt-3 w-full",onClick:u[0]||(u[0]=(...m)=>I(v)&&I(v)(...m))},[...u[4]||(u[4]=[e("span",{class:"mdi mdi-reload text-2xl"},null,-1),R(" Retry OCR on low confidence puzzle ",-1)])])])])):L("",!0),e("div",nn,[e("div",an,[e("label",ln,[u[7]||(u[7]=e("span",{class:"label-text font-medium"},"Notes (Optional)",-1)),e("span",rn,h(w.value)+"/500",1)]),ae(e("textarea",{"onUpdate:modelValue":u[1]||(u[1]=m=>x.value=m),class:"flex textarea textarea-bordered h-24 w-full resize-none",placeholder:"Add any notes about your solution, approach, or interesting findings...",maxlength:"500"},null,512),[[ye,x.value]])])]),e("div",cn,[e("label",dn,[ae(e("input",{type:"checkbox","onUpdate:modelValue":u[2]||(u[2]=m=>$.value=m),class:"checkbox checkbox-primary",disabled:I(a)},null,8,un),[[Wt,$.value]]),u[8]||(u[8]=e("div",{class:"flex-1"},[e("span",{class:"label-text font-medium"},"Request manual validation"),e("div",{class:"label-text-alt text-xs opacity-70 mt-1"},[R(" Check this if you want an admin to manually review your submission, even if OCR confidence is high. "),e("br"),e("em",null,"Note: This will be automatically checked if any OCR confidence is below 80%.")])],-1))])]),e("div",fn,[e("button",{type:"submit",class:"btn btn-primary",disabled:!o.value},[S.value?(l(),r("span",vn)):L("",!0),S.value?(l(),r("span",hn,"Submitting...")):I(i).length>0?(l(),r("span",gn," Select Puzzles ("+h(I(i).length)+" remaining) ",1)):(l(),r("span",pn,"Submit Solution"))],8,mn)])],32)])]))}}),yn={class:"card bg-base-100 shadow-xl"},_n={class:"card-body"},xn={class:"stats stats-vertical lg:stats-horizontal shadow mb-6"},wn={class:"stat"},kn={class:"stat-value text-primary"},$n={class:"stat"},zn={class:"stat-value text-secondary"},Sn={class:"stat"},Cn={class:"stat-value text-warning"},Pn={class:"stat"},Ln={class:"stat-value text-success"},Rn={key:0},En={class:"overflow-x-auto"},Mn={class:"table table-zebra"},On={class:"font-bold"},Nn={class:"text-sm opacity-50"},An={class:"text-sm space-y-1"},Dn={class:"flex justify-between items-center"},Tn={class:"flex justify-between items-center"},In={class:"flex justify-between items-center"},qn={class:"badge badge-warning badge-sm"},jn=["onClick"],Fn=["onClick"],Un={key:1,class:"text-center py-8"},Bn={key:0,class:"modal modal-open"},Vn={class:"modal-box w-11/12 max-w-5xl"},Gn=["src"],Wn={key:0,class:"space-y-4"},Jn={class:"alert alert-info"},Hn={class:"font-bold"},Yn={class:"grid grid-cols-4 gap-4"},Kn={class:"form-control"},Zn=["value"],Qn={class:"form-control"},Xn=["placeholder"],ea={class:"form-control"},ta=["placeholder"],sa={class:"form-control"},oa=["placeholder"],na={class:"modal-action"},aa=["disabled"],la={key:0,class:"loading loading-spinner loading-sm"},ra={class:"mockup-code w-full"},ia=le({__name:"AdminPanel",setup(c,{expose:n}){const s=xe(),t=E({total_submissions:0,total_responses:0,needs_validation:0,validated_submissions:0,validation_rate:0}),a=E([]),i=E(!1),f=E(!1),v=E({show:!1,response:null,data:{puzzle:-1,validated_cost:0,validated_cycles:0,validated_area:0}}),p=async()=>{try{i.value=!0;try{const u=await ee.getStats();u.data&&(t.value=u.data)}catch(u){console.warn("Stats endpoint not available:",u),t.value={total_submissions:0,total_responses:0,needs_validation:0,validated_submissions:0,validation_rate:0}}const g=await ee.getResponsesNeedingValidation();g.data&&(a.value=g.data)}catch(g){console.error("Failed to load admin data:",g)}finally{i.value=!1}},x=async()=>{for(const g of Array.from(a.value)){if(!g.id)continue;const{data:u,error:m}=await ee.autoValidateResponses(g.id);if(u&&!u.needs_manual_validation)a.value=a.value.filter(y=>y.id!==g.id),t.value.needs_validation-=1;else if(m)break}},$=g=>{v.value.response=g,v.value.data={puzzle:g.puzzle_id||-1,validated_cost:g.cost||0,validated_cycles:g.cycles||0,validated_area:g.area||0},v.value.show=!0},S=()=>{v.value.show=!1,v.value.response=null,v.value.data={puzzle:-1,validated_cost:0,validated_cycles:0,validated_area:0}},w=async g=>{const{data:u}=await ee.autoValidateResponses(g);console.log(u),u&&!u.needs_manual_validation&&(a.value=a.value.filter(m=>m.id!==g),console.log(t.value),t.value.needs_validation-=1,console.log(t.value))},o=async()=>{if(v.value.response?.id)try{f.value=!0;const g=await ee.validateResponse(v.value.response.id,v.value.data);if(g.error){alert(`Validation failed: ${g.error}`);return}a.value=a.value.filter(u=>u.id!==v.value.response?.id),t.value.needs_validation=Math.max(0,t.value.needs_validation-1),S()}catch(g){console.error("Validation error:",g),alert("Validation failed")}finally{f.value=!1}};fe(()=>{p()});const d=g=>g>=.8?"badge-success":g>=.6?"badge-warning":"badge-error",b=g=>{const u=[g.ocr_confidence_cost,g.ocr_confidence_cycles,g.ocr_confidence_area].filter(y=>y!=null);if(u.length===0)return 0;const m=u.reduce((y,M)=>y+M,0)/u.length;return Math.round(m*100)};return n({refresh:p}),(g,u)=>(l(),r(F,null,[e("div",yn,[e("div",_n,[u[14]||(u[14]=e("h2",{class:"card-title"},[e("i",{class:"mdi mdi-shield-account text-2xl text-warning"}),R(" Admin Panel ")],-1)),e("div",xn,[e("div",wn,[u[4]||(u[4]=e("div",{class:"stat-title"},"Total Submissions",-1)),e("div",kn,h(t.value.total_submissions),1)]),e("div",$n,[u[5]||(u[5]=e("div",{class:"stat-title"},"Total Responses",-1)),e("div",zn,h(t.value.total_responses),1)]),e("div",Sn,[u[6]||(u[6]=e("div",{class:"stat-title"},"Need Validation",-1)),e("div",Cn,h(t.value.needs_validation),1)]),e("div",Pn,[u[7]||(u[7]=e("div",{class:"stat-title"},"Validation Rate",-1)),e("div",Ln,h(Math.round(t.value.validation_rate*100))+"% ",1)])]),e("button",{class:"btn btn-sm btn-primary",onClick:x},[...u[8]||(u[8]=[e("i",{class:"mdi mdi-check-circle mr-1"},null,-1),R(" Auto validation for all responses ",-1)])]),a.value.length>0?(l(),r("div",Rn,[u[12]||(u[12]=e("h3",{class:"text-lg font-bold mb-4"},"Responses Needing Validation",-1)),e("div",En,[e("table",Mn,[u[11]||(u[11]=e("thead",null,[e("tr",null,[e("th",null,"Puzzle"),e("th",null,"OCR Data"),e("th",null,"Confidence"),e("th",null,"Actions")])],-1)),e("tbody",null,[(l(!0),r(F,null,B(a.value,m=>(l(),r("tr",{key:m.id},[e("td",null,[e("div",On,h(m.puzzle_name),1),e("div",Nn,"ID: "+h(m.id),1)]),e("td",null,[e("div",An,[e("div",Dn,[e("span",null,"Cost: "+h(m.cost||"-"),1),m.ocr_confidence_cost?(l(),r("span",{key:0,class:Z(["badge badge-xs",d(m.ocr_confidence_cost)])},h(Math.round(m.ocr_confidence_cost*100))+"% ",3)):L("",!0)]),e("div",Tn,[e("span",null,"Cycles: "+h(m.cycles||"-"),1),m.ocr_confidence_cycles?(l(),r("span",{key:0,class:Z(["badge badge-xs",d(m.ocr_confidence_cycles)])},h(Math.round(m.ocr_confidence_cycles*100))+"% ",3)):L("",!0)]),e("div",In,[e("span",null,"Area: "+h(m.area||"-"),1),m.ocr_confidence_area?(l(),r("span",{key:0,class:Z(["badge badge-xs",d(m.ocr_confidence_area)])},h(Math.round(m.ocr_confidence_area*100))+"% ",3)):L("",!0)])])]),e("td",null,[e("div",qn,h(b(m))+"% ",1)]),e("td",null,[e("button",{onClick:y=>$(m),class:"btn btn-sm btn-primary mr-2"},[...u[9]||(u[9]=[e("i",{class:"mdi mdi-check-circle mr-1"},null,-1),R(" Validate ",-1)])],8,jn),m.id?(l(),r("button",{key:0,onClick:y=>w(m.id),class:"btn btn-sm btn-warning"},[...u[10]||(u[10]=[e("i",{class:"mdi mdi-check-circle mr-1"},null,-1),R(" Auto Validation ",-1)])],8,Fn)):L("",!0)])]))),128))])])])])):(l(),r("div",Un,[...u[13]||(u[13]=[e("i",{class:"mdi mdi-check-all text-6xl text-success opacity-50"},null,-1),e("p",{class:"text-lg font-medium mt-2"},"All responses validated!",-1),e("p",{class:"text-sm opacity-70"}," No responses currently need manual validation. ",-1)])]))])]),v.value.show?(l(),r("div",Bn,[e("div",Vn,[u[22]||(u[22]=e("h3",{class:"font-bold text-lg mb-4"},"Validate Response",-1)),(l(!0),r(F,null,B(v.value.response?.files??[],m=>(l(),r("div",null,[e("img",{src:m.file_url},null,8,Gn)]))),256)),v.value.response?(l(),r("div",Wn,[e("div",Jn,[u[16]||(u[16]=e("i",{class:"mdi mdi-information-outline"},null,-1)),e("div",null,[e("div",Hn,h(v.value.response.puzzle_name),1),u[15]||(u[15]=e("div",{class:"text-sm"},"Review and correct the OCR data below",-1))])]),e("div",Yn,[e("div",Kn,[u[18]||(u[18]=e("label",{class:"label"},[e("span",{class:"label-text"},"Puzzle")],-1)),ae(e("select",{"onUpdate:modelValue":u[0]||(u[0]=m=>v.value.data.puzzle=m),class:"select select-bordered select-sm w-full"},[u[17]||(u[17]=e("option",{value:""},"Select puzzle...",-1)),(l(!0),r(F,null,B(I(s).puzzles,m=>(l(),r("option",{key:m.id,value:m.id},h(m.title),9,Zn))),128))],512),[[Et,v.value.data.puzzle]])]),e("div",Qn,[u[19]||(u[19]=e("label",{class:"label"},[e("span",{class:"label-text"},"Cost")],-1)),ae(e("input",{"onUpdate:modelValue":u[1]||(u[1]=m=>v.value.data.validated_cost=m),type:"text",class:"input input-bordered input-sm",placeholder:v.value.response.cost?.toString()||"Enter cost"},null,8,Xn),[[ye,v.value.data.validated_cost]])]),e("div",ea,[u[20]||(u[20]=e("label",{class:"label"},[e("span",{class:"label-text"},"Cycles")],-1)),ae(e("input",{"onUpdate:modelValue":u[2]||(u[2]=m=>v.value.data.validated_cycles=m),type:"text",class:"input input-bordered input-sm",placeholder:v.value.response.cycles?.toString()||"Enter cycles"},null,8,ta),[[ye,v.value.data.validated_cycles]])]),e("div",sa,[u[21]||(u[21]=e("label",{class:"label"},[e("span",{class:"label-text"},"Area")],-1)),ae(e("input",{"onUpdate:modelValue":u[3]||(u[3]=m=>v.value.data.validated_area=m),type:"text",class:"input input-bordered input-sm",placeholder:v.value.response.area?.toString()||"Enter area"},null,8,oa),[[ye,v.value.data.validated_area]])])]),e("div",na,[e("button",{onClick:S,class:"btn btn-ghost"}," Cancel "),e("button",{onClick:o,class:"btn btn-primary",disabled:f.value},[f.value?(l(),r("span",la)):L("",!0),R(" "+h(f.value?"Validating...":"Validate"),1)],8,aa)]),e("div",ra,[e("pre",null,[e("code",null,h(v.value),1)])])])):L("",!0)]),e("div",{class:"modal-backdrop",onClick:S})])):L("",!0)],64))}}),ca={class:"mb-8"},da={class:"grid grid-cols-1 lg:grid-cols-3 gap-8"},ua={class:"lg:col-span-1"},fa={class:"card bg-base-100 shadow-lg sticky top-8"},ma={class:"card-body"},va={class:"text-center mb-6"},ha={class:"text-3xl font-bold"},ga={key:0,class:"flex justify-center py-8"},pa={key:1,class:"space-y-4"},ba={class:"text-center"},ya={key:0,class:"text-4xl font-bold text-primary"},_a={key:1,class:"text-2xl text-base-content/50"},xa={class:"text-center"},wa={class:"text-2xl font-bold"},ka={class:"text-center"},$a={class:"text-2xl font-bold"},za={class:"lg:col-span-2"},Sa={class:"card bg-base-100 shadow-lg"},Ca={class:"card-body"},Pa={key:0,class:"flex justify-center py-8"},La={key:1,class:"text-center py-8"},Ra={key:2,class:"space-y-6"},Ea={class:"tabs tabs-border"},Ma={class:"space-y-4"},Oa={key:0,class:"text-center py-8"},Na={key:1,class:"overflow-x-auto"},Aa={class:"table table-zebra w-full"},Da={class:"font-bold"},Ta={class:"font-medium"},Ia={key:0,class:"badge badge-warning"},qa={class:"text-right"},ja={class:"text-right font-bold"},Fa={class:"space-y-6"},Ua=["onClick"],Ba={class:"ml-auto badge badge-sm"},Va={key:0,class:"card-body"},Ga={key:0,class:"text-center py-8"},Wa={key:1,class:"space-y-6"},Ja={key:0,class:"bg-base-200 p-4 rounded-lg"},Ha={class:"grid grid-cols-3 gap-4"},Ya={class:"text-center"},Ka={class:"text-2xl font-bold text-primary"},Za={class:"text-center"},Qa={class:"text-2xl font-bold text-primary"},Xa={class:"text-center"},el={class:"text-2xl font-bold text-primary"},tl={class:"grid grid-cols-1 md:grid-cols-3 gap-4"},sl={class:"card-body p-4"},ol={class:"text-xs text-base-content/70 font-bold"},nl={class:"font-bold text-lg"},al={key:0,class:"badge badge-warning"},ll={class:"space-y-2 text-sm"},rl={class:"flex justify-between"},il={key:0,class:"text-xs text-base-content/60"},cl={class:"badge badge-sm"},dl={class:"flex justify-between"},ul={key:0,class:"text-xs text-base-content/60"},fl={class:"badge badge-sm"},ml={class:"flex justify-between"},vl={key:0,class:"text-xs text-base-content/60"},hl={class:"badge badge-sm"},gl={class:"flex justify-between pt-2 border-t"},pl={class:"badge badge-sm"},bl={class:"flex justify-between pt-2 border-t"},yl={class:"badge badge-primary"},_l={class:"overflow-x-auto"},xl={class:"table table-zebra w-full table-sm"},wl={class:"text-center"},kl={key:0,class:"text-xs text-base-content/60 block"},$l={class:"text-center"},zl={key:0,class:"text-xs text-base-content/60 block"},Sl={class:"text-center"},Cl={key:0,class:"text-xs text-base-content/60 block"},Pl={class:"font-bold"},Ll={key:0,class:"badge badge-warning"},Rl={key:1,class:"badge"},El={key:2,class:"badge"},Ml={key:3},Ol={class:"font-medium"},Nl={class:"text-center"},Al={key:0,class:"badge badge-sm"},Dl={key:1,class:"text-base-content/40"},Tl={class:"text-center"},Il={key:0,class:"badge badge-sm"},ql={key:1,class:"text-base-content/40"},jl={class:"text-center"},Fl={key:0,class:"badge badge-sm"},Ul={key:1,class:"text-base-content/40"},Bl={class:"text-center"},Vl={key:0,class:"badge badge-sm"},Gl={key:1,class:"text-base-content/40"},Wl={class:"text-right font-bold text-primary text-lg"},Jl=le({__name:"Results",setup(c){const n=E(!0),s=E(null),t=E("overall"),a=E(null),i=E({username:"Player",rank:null,totalPoints:0,puzzlesSolved:0,isStaff:!1}),f=async()=>{n.value=!0;try{const w=await fetch("/api/results/results");if(!w.ok)throw new Error("Failed to fetch results");s.value=await w.json()}catch(w){console.error("Error fetching results:",w)}finally{n.value=!1}},v=()=>s.value?s.value.users.map(o=>{const d=s.value.responses_by_userid[o.id]||[],b=d.reduce((u,m)=>u+(m.rank_points||0),0),g=d.length;return{user:o,totalPoints:b,puzzlesSolved:g}}).sort((o,d)=>d.totalPoints-o.totalPoints):[],p=w=>s.value?(s.value.ranking_by_puzzle[w]||[]).map(d=>({user:s.value.users.find(g=>g.id===d.user_id),cost:d.final_cost,cycles:d.final_cycles,area:d.final_area,points:d.points,rank_points:d.rank_points||0})).reverse():[],x=w=>{a.value=a.value===w?null:w},$=async()=>{try{const w=await fetch("/api/cache/clear",{method:"POST"});if(w.ok)alert("Cache cleared successfully!"),await f();else{const o=await w.json();alert(`Error clearing cache: ${o.detail||"Unknown error"}`)}}catch(w){console.error("Error clearing cache:",w),alert("Error clearing cache. Please try again.")}},S=async()=>{try{const w=await fetch("/api/user");if(w.ok){const o=await w.json();if(o.is_authenticated){i.value.username=o.username,i.value.isStaff=o.is_staff||!1,await f();const d=v(),b=d.findIndex(g=>g.user.id===o.id);b!==-1&&(i.value.rank=b+1,i.value.totalPoints=d[b].totalPoints,i.value.puzzlesSolved=d[b].puzzlesSolved)}}}catch(w){console.error("Error loading user data:",w),await f()}};return fe(()=>{S()}),(w,o)=>(l(),r("div",ca,[e("div",da,[e("div",ua,[e("div",fa,[o[9]||(o[9]=e("div",{class:"bg-gradient-to-br from-purple-600 to-purple-400 p-6 text-white rounded-t-2xl"},[e("h3",{class:"text-3xl font-bold"},[e("i",{class:"mdi mdi-trophy text-3xl"}),R(" Your Ranking ")])],-1)),e("div",ma,[e("div",va,[o[2]||(o[2]=e("p",{class:"text-sm text-base-content/70"},"Player",-1)),e("p",ha,h(i.value.username),1)]),o[8]||(o[8]=e("div",{class:"divider"},null,-1)),n.value?(l(),r("div",ga,[...o[3]||(o[3]=[e("span",{class:"loading loading-spinner loading-lg"},null,-1)])])):(l(),r("div",pa,[e("div",ba,[o[4]||(o[4]=e("p",{class:"text-sm text-base-content/70 mb-1"},"Current Rank",-1)),i.value.rank!==null?(l(),r("p",ya,[ne(ot,{rank:i.value.rank},null,8,["rank"])])):(l(),r("p",_a,"No rank yet"))]),e("div",xa,[o[5]||(o[5]=e("p",{class:"text-sm text-base-content/70 mb-1"},"Total Points",-1)),e("p",wa,h(i.value.totalPoints.toLocaleString()),1)]),e("div",ka,[o[6]||(o[6]=e("p",{class:"text-sm text-base-content/70 mb-1"},"Puzzles Solved",-1)),e("p",$a,h(i.value.puzzlesSolved),1)]),i.value.isStaff?(l(),r("button",{key:0,onClick:$,class:"btn btn-error btn-sm w-full mt-6"},[...o[7]||(o[7]=[e("i",{class:"mdi mdi-cache-clear mr-1"},null,-1),R(" Clear Cache ",-1)])])):L("",!0)]))])])]),e("div",za,[e("div",Sa,[e("div",Ca,[o[37]||(o[37]=e("h2",{class:"card-title text-2xl mb-6"},[e("i",{class:"mdi mdi-trophy text-yellow-500 mr-2"}),R(" General Results ")],-1)),n.value?(l(),r("div",Pa,[...o[10]||(o[10]=[e("span",{class:"loading loading-spinner loading-lg"},null,-1)])])):s.value?(l(),r("div",Ra,[e("div",Ea,[e("button",{onClick:o[0]||(o[0]=d=>t.value="overall"),class:Z(["tab",t.value==="overall"?"tab-active":""])},[...o[12]||(o[12]=[e("i",{class:"mdi mdi-chart-line mr-2"},null,-1),R(" Overall Ranking ",-1)])],2),e("button",{onClick:o[1]||(o[1]=d=>t.value="byPuzzle"),class:Z(["tab",t.value==="byPuzzle"?"tab-active":""])},[...o[13]||(o[13]=[e("i",{class:"mdi mdi-puzzle mr-2"},null,-1),R(" By Puzzle ",-1)])],2)]),ae(e("div",Ma,[v().length===0?(l(),r("div",Oa,[...o[14]||(o[14]=[e("p",{class:"text-base-content/70"},"No submissions yet",-1)])])):(l(),r("div",Na,[e("table",Aa,[o[15]||(o[15]=e("thead",null,[e("tr",null,[e("th",null,"Rank"),e("th",null,"Player"),e("th",{class:"text-right"},"Puzzles Solved"),e("th",{class:"text-right"},"Total Points")])],-1)),e("tbody",null,[(l(!0),r(F,null,B(v(),(d,b)=>(l(),r("tr",{key:d.user.username},[e("td",Da,[ne(ot,{rank:b+1},null,8,["rank"])]),e("td",Ta,[R(h(d.user.username)+" ",1),d.user.is_staff?(l(),r("span",Ia," admin ")):L("",!0)]),e("td",qa,h(d.puzzlesSolved),1),e("td",ja,h(d.totalPoints),1)]))),128))])])]))],512),[[st,t.value==="overall"]]),ae(e("div",Fa,[(l(!0),r(F,null,B(s.value.puzzles,d=>(l(),r("div",{key:d.id,class:"card bg-base-100 border border-base-300"},[e("button",{onClick:b=>x(d.id),class:"btn btn-ghost btn-lg w-full justify-start text-lg font-bold hover:bg-primary/20 rounded-b-none"},[e("i",{class:Z(["mdi mr-2",a.value===d.id?"mdi-chevron-down":"mdi-chevron-right"])},null,2),R(" "+h(d.title)+" ",1),e("span",Ba,h(p(d.id).length)+" submissions ",1)],8,Ua),a.value===d.id?(l(),r("div",Va,[p(d.id).length===0?(l(),r("div",Ga,[...o[16]||(o[16]=[e("p",{class:"text-base-content/70 text-lg"},"No submissions yet",-1)])])):(l(),r("div",Wa,[d.points_factor?(l(),r("div",Ja,[o[23]||(o[23]=e("p",{class:"text-sm text-base-content/70 mb-3 font-semibold"},"Points Coefficients",-1)),e("div",Ha,[e("div",Ya,[e("span",Ka,[o[17]||(o[17]=e("small",null,"x",-1)),R(h(d.points_factor.cost),1)]),o[18]||(o[18]=e("p",{class:"text-xs text-base-content/70"},"Cost",-1))]),e("div",Za,[e("span",Qa,[o[19]||(o[19]=e("small",null,"x",-1)),R(h(d.points_factor.cycles),1)]),o[20]||(o[20]=e("p",{class:"text-xs text-base-content/70"},"Cycles",-1))]),e("div",Xa,[e("span",el,[o[21]||(o[21]=e("small",null,"x",-1)),R(h(d.points_factor.area),1)]),o[22]||(o[22]=e("p",{class:"text-xs text-base-content/70"},"Area",-1))])])])):L("",!0),e("div",tl,[(l(!0),r(F,null,B(p(d.id).slice(0,3),(b,g)=>(l(),r("div",{key:g,class:"card bg-base-200"},[e("div",sl,[e("div",ol,h(g===0?"🏆 1st Place":g===1?"🥈 2nd Place":"🥉 3rd Place"),1),e("h4",nl,[R(h(b.user.username)+" ",1),b.user.is_staff?(l(),r("span",al," admin ")):L("",!0)]),o[29]||(o[29]=e("div",{class:"divider my-2"},null,-1)),e("div",ll,[e("div",rl,[e("span",null,[o[24]||(o[24]=R("Cost",-1)),d.points_factor?(l(),r("span",il," (x"+h(d.points_factor.cost)+") ",1)):L("",!0)]),e("span",cl,h(b.cost||"N/A"),1)]),e("div",dl,[e("span",null,[o[25]||(o[25]=R("Cycles",-1)),d.points_factor?(l(),r("span",ul," (x"+h(d.points_factor.cycles)+") ",1)):L("",!0)]),e("span",fl,h(b.cycles||"N/A"),1)]),e("div",ml,[e("span",null,[o[26]||(o[26]=R("Area",-1)),d.points_factor?(l(),r("span",vl," (x"+h(d.points_factor.area)+") ",1)):L("",!0)]),e("span",hl,h(b.area||"N/A"),1)]),e("div",gl,[o[27]||(o[27]=e("span",null,"Total (with coef.)",-1)),e("span",pl,h(b.points||"N/A"),1)]),e("div",bl,[o[28]||(o[28]=e("span",{class:"font-bold"},"Points",-1)),e("span",yl,h(b.rank_points)+" pts",1)])])])]))),128))]),e("div",_l,[e("table",xl,[e("thead",null,[e("tr",null,[o[33]||(o[33]=e("th",{class:"w-12"},"Rank",-1)),o[34]||(o[34]=e("th",null,"Player",-1)),e("th",wl,[o[30]||(o[30]=R(" Cost ",-1)),d.points_factor?(l(),r("span",kl,"(x"+h(d.points_factor.cost)+")",1)):L("",!0)]),e("th",$l,[o[31]||(o[31]=R(" Cycles ",-1)),d.points_factor?(l(),r("span",zl,"(x"+h(d.points_factor.cycles)+")",1)):L("",!0)]),e("th",Sl,[o[32]||(o[32]=R(" Area ",-1)),d.points_factor?(l(),r("span",Cl,"(x"+h(d.points_factor.area)+")",1)):L("",!0)]),o[35]||(o[35]=e("th",{class:"text-center"},"Total (with coef.)",-1)),o[36]||(o[36]=e("th",{class:"text-right"},"Points",-1))])]),e("tbody",null,[(l(!0),r(F,null,B(p(d.id),(b,g)=>(l(),r("tr",{key:g,class:Z({"bg-primary/10":g<3})},[e("td",Pl,[g===0?(l(),r("span",Ll,"🏆")):g===1?(l(),r("span",Rl,"🥈")):g===2?(l(),r("span",El,"🥉")):(l(),r("span",Ml,"#"+h(g+1),1))]),e("td",Ol,h(b.user.username),1),e("td",Nl,[b.cost?(l(),r("span",Al,h(b.cost),1)):(l(),r("span",Dl,"—"))]),e("td",Tl,[b.cycles?(l(),r("span",Il,h(b.cycles),1)):(l(),r("span",ql,"—"))]),e("td",jl,[b.area?(l(),r("span",Fl,h(b.area),1)):(l(),r("span",Ul,"—"))]),e("td",Bl,[b.points?(l(),r("span",Vl,h(b.points),1)):(l(),r("span",Gl,"—"))]),e("td",Wl,h(b.rank_points),1)],2))),128))])])])]))])):L("",!0)]))),128))],512),[[st,t.value==="byPuzzle"]])])):(l(),r("div",La,[...o[11]||(o[11]=[e("p",{class:"text-base-content/70"},"No results available yet",-1)])]))])])])])]))}}),Hl={class:"card bg-base-100 shadow-lg"},Yl={class:"card-body"},Kl={key:0,class:"flex justify-center py-12"},Zl={key:1,class:"alert alert-error"},Ql={key:2,class:"text-center py-8"},Xl={key:3,class:"overflow-x-auto"},er={class:"table table-zebra"},tr={class:"font-semibold"},sr={class:"text-right"},or={class:"text-right"},nr={class:"text-right"},ar={class:"text-right font-bold"},lr={class:"text-right font-bold text-primary"},rr={class:"text-center"},ir=["onClick"],cr={key:1,class:"text-base-content/50"},dr={key:0,class:"modal modal-open"},ur={class:"modal-box max-w-7xl w-full"},fr={class:"flex justify-between items-center mb-4"},mr={class:"font-bold text-lg"},vr={class:"flex justify-center bg-base-200 rounded-lg p-4"},hr=["src","alt"],gr={class:"modal-action mt-4"},pr=["href"],br=le({__name:"Winners",setup(c){const n=E(!0),s=E(null),t=E(""),a=E(!1),i=E(""),f=E(""),v=async()=>{n.value=!0,t.value="";try{const w=await ee.getTopSubmissions(5);w.data?s.value=w.data:w.error&&(t.value=w.error,console.error("Error fetching submissions:",w.error))}catch(w){t.value=w instanceof Error?w.message:"Failed to fetch submissions",console.error("Error fetching submissions:",w)}finally{n.value=!1}},p=w=>w!==void 0?w.toLocaleString():"—",x=Q(()=>{if(!s.value)return[];const w=[];return s.value.submissions.forEach(o=>{o.submissions.forEach(d=>{w.push({puzzleName:o.puzzle_title,username:d.username,cost:d.final_cost,cycles:d.final_cycles,area:d.final_area,total:d.rank_points,totalCoef:d.total_coef,files:d.files.map(b=>({url:b.file_url,name:b.original_filename}))})})}),w.sort((o,d)=>(d.total||0)-(o.total||0))}),$=(w,o)=>{i.value=w,f.value=o,a.value=!0},S=()=>{a.value=!1,i.value="",f.value=""};return fe(()=>{v()}),(w,o)=>(l(),r(F,null,[e("div",Hl,[e("div",Yl,[o[5]||(o[5]=e("h2",{class:"card-title text-2xl flex items-center gap-2"},[e("i",{class:"mdi mdi-trophy text-yellow-500 text-3xl"}),R(" Top Submissions ")],-1)),n.value?(l(),r("div",Kl,[...o[0]||(o[0]=[e("span",{class:"loading loading-spinner loading-lg"},null,-1)])])):t.value?(l(),r("div",Zl,[o[1]||(o[1]=e("i",{class:"mdi mdi-alert-circle text-xl"},null,-1)),e("div",null,h(t.value),1)])):x.value.length===0?(l(),r("div",Ql,[...o[2]||(o[2]=[e("p",{class:"text-base-content/70"},"No results available yet.",-1)])])):(l(),r("div",Xl,[e("table",er,[o[4]||(o[4]=e("thead",null,[e("tr",null,[e("th",null,"Puzzle"),e("th",null,"User"),e("th",{class:"text-right"},"Cost"),e("th",{class:"text-right"},"Cycles"),e("th",{class:"text-right"},"Area"),e("th",{class:"text-right"},"Total Pts"),e("th",{class:"text-right"},"Total Coef"),e("th",{class:"text-center"},"GIF")])],-1)),e("tbody",null,[(l(!0),r(F,null,B(x.value,(d,b)=>(l(),r("tr",{key:b},[e("td",tr,h(d.puzzleName),1),e("td",null,h(d.username),1),e("td",sr,h(p(d.cost)),1),e("td",or,h(p(d.cycles)),1),e("td",nr,h(p(d.area)),1),e("td",ar,h(p(d.total)),1),e("td",lr,h(p(d.totalCoef)),1),e("td",rr,[d.files.length>0?(l(),r("button",{key:0,onClick:g=>$(d.files[0].url,d.files[0].name),class:"btn btn-xs btn-primary gap-1"},[...o[3]||(o[3]=[e("i",{class:"mdi mdi-image"},null,-1),R(" View ",-1)])],8,ir)):(l(),r("span",cr,"—"))])]))),128))])])]))])]),a.value?(l(),r("div",dr,[e("div",ur,[e("div",fr,[e("h3",mr,h(f.value),1),e("button",{onClick:S,class:"btn btn-sm btn-circle btn-ghost"},[...o[6]||(o[6]=[e("i",{class:"mdi mdi-close"},null,-1)])])]),e("div",vr,[e("img",{src:i.value,alt:f.value,class:"object-contain"},null,8,hr)]),e("div",gr,[e("a",{href:i.value,target:"_blank",class:"btn btn-primary btn-sm"},[...o[7]||(o[7]=[e("i",{class:"mdi mdi-download"},null,-1),R(" Download ",-1)])],8,pr),e("button",{onClick:S,class:"btn btn-sm"},"Close")])]),e("div",{class:"modal-backdrop",onClick:S})])):L("",!0)],64))}}),yr={class:"card bg-base-100 shadow-lg"},_r={class:"card-body"},xr={key:0,class:"flex justify-center py-12"},wr={key:1,class:"alert alert-error"},kr={key:2,class:"text-center py-8"},$r={key:3,class:"space-y-8"},zr={class:"mb-4"},Sr={class:"text-xl font-bold mb-3"},Cr={key:0,class:"bg-base-200 p-3 rounded-lg mb-4"},Pr={class:"grid grid-cols-3 gap-2"},Lr={class:"text-center"},Rr={class:"font-bold text-primary"},Er={class:"text-center"},Mr={class:"font-bold text-primary"},Or={class:"text-center"},Nr={class:"font-bold text-primary"},Ar={key:1,class:"bg-base-200 p-4 rounded-lg"},Dr={class:"flex flex-wrap justify-center gap-6"},Tr={key:0,class:"text-center w-96"},Ir={class:"text-sm text-base-content/70 mb-3 font-semibold truncate"},qr=["onClick"],jr=["src","alt"],Fr={key:0,class:"overflow-x-auto"},Ur={class:"table table-sm table-zebra"},Br={class:"text-center text-lg font-bold"},Vr={class:"font-semibold"},Gr={class:"text-right"},Wr={class:"text-right"},Jr={class:"text-right"},Hr={class:"text-right font-bold text-primary"},Yr={class:"text-center"},Kr=["onClick"],Zr={key:1,class:"text-base-content/50"},Qr={key:1,class:"p-4 bg-base-200 rounded-lg text-center text-base-content/70"},Xr={key:0,class:"modal modal-open"},ei={class:"modal-box max-w-7xl w-full"},ti={class:"flex justify-between items-center mb-4"},si={class:"font-bold text-lg"},oi={class:"flex justify-center bg-base-200 rounded-lg p-4"},ni=["src","alt"],ai={class:"modal-action mt-4"},li=["href"],ri=le({__name:"PuzzleResults",setup(c){const n=E(!0),s=E(null),t=E(""),a=E(!1),i=E(""),f=E(""),v=async()=>{n.value=!0,t.value="";try{const o=await ee.getPuzzleResults(5);o.data?s.value=o.data:o.error&&(t.value=o.error,console.error("Error fetching results:",o.error))}catch(o){t.value=o instanceof Error?o.message:"Failed to fetch results",console.error("Error fetching results:",o)}finally{n.value=!1}},p=o=>o!==void 0?o.toLocaleString():"—",x=(o,d)=>{i.value=o,f.value=d,a.value=!0},$=()=>{a.value=!1,i.value="",f.value=""},S=o=>["🥇","🥈","🥉"][o-1]||`#${o}`,w=o=>{if(!o.submissions||o.submissions.length===0)return[];const d=o.submissions[0].rank_points;return o.submissions.filter(b=>b.rank_points===d)};return fe(()=>{v()}),(o,d)=>(l(),r(F,null,[e("div",yr,[e("div",_r,[d[13]||(d[13]=e("h2",{class:"card-title text-2xl flex items-center gap-2"},[e("i",{class:"mdi mdi-table text-blue-500 text-3xl"}),R(" Results by Puzzle ")],-1)),n.value?(l(),r("div",xr,[...d[0]||(d[0]=[e("span",{class:"loading loading-spinner loading-lg"},null,-1)])])):t.value?(l(),r("div",wr,[d[1]||(d[1]=e("i",{class:"mdi mdi-alert-circle text-xl"},null,-1)),e("div",null,h(t.value),1)])):!s.value||s.value.results.length===0?(l(),r("div",kr,[...d[2]||(d[2]=[e("p",{class:"text-base-content/70"},"No results available yet.",-1)])])):(l(),r("div",$r,[(l(!0),r(F,null,B(s.value.results,b=>(l(),r("div",{key:b.puzzle_id,class:"border-b pb-8 last:border-b-0"},[e("div",zr,[e("h3",Sr,h(b.puzzle_title),1),b.points_factor?(l(),r("div",Cr,[d[9]||(d[9]=e("p",{class:"text-xs text-base-content/70 font-semibold mb-2"},"Points Coefficients",-1)),e("div",Pr,[e("div",Lr,[e("span",Rr,[d[3]||(d[3]=e("small",null,"x",-1)),R(h(b.points_factor.cost),1)]),d[4]||(d[4]=e("p",{class:"text-xs text-base-content/70"},"Cost",-1))]),e("div",Er,[e("span",Mr,[d[5]||(d[5]=e("small",null,"x",-1)),R(h(b.points_factor.cycles),1)]),d[6]||(d[6]=e("p",{class:"text-xs text-base-content/70"},"Cycles",-1))]),e("div",Or,[e("span",Nr,[d[7]||(d[7]=e("small",null,"x",-1)),R(h(b.points_factor.area),1)]),d[8]||(d[8]=e("p",{class:"text-xs text-base-content/70"},"Area",-1))])])])):L("",!0),b.submissions.length>0&&w(b).length>0?(l(),r("div",Ar,[d[10]||(d[10]=e("p",{class:"text-xs text-base-content/70 font-semibold mb-3 text-center"},"🏆 Winning Solutions",-1)),e("div",Dr,[(l(!0),r(F,null,B(w(b),g=>(l(),r(F,{key:`${b.puzzle_id}-${g.user_id}`},[g&&g.files&&g.files.length>0?(l(),r("div",Tr,[e("div",Ir,h(g.username),1),e("button",{onClick:u=>x(g.files[0].file_url,g.files[0].original_filename),class:"hover:opacity-80 transition-opacity cursor-pointer w-full flex items-center justify-center"},[e("img",{src:g.files[0].file_url,alt:`${b.puzzle_title} - ${g.username}`,class:"max-h-full max-w-full object-contain"},null,8,jr)],8,qr)])):L("",!0)],64))),128))])])):L("",!0)]),b.submissions.length>0?(l(),r("div",Fr,[e("table",Ur,[d[12]||(d[12]=e("thead",null,[e("tr",null,[e("th",{class:"w-12 text-center"},"Pos"),e("th",null,"User"),e("th",{class:"text-right"},"Cost"),e("th",{class:"text-right"},"Cycles"),e("th",{class:"text-right"},"Area"),e("th",{class:"text-right font-bold"},"Total Pts"),e("th",{class:"text-right font-bold"},"Total Coef"),e("th",{class:"text-center"},"GIF")])],-1)),e("tbody",null,[(l(!0),r(F,null,B(b.submissions,g=>(l(),r("tr",{key:`${b.puzzle_id}-${g.user_id}`},[e("td",Br,h(S(g.rank)),1),e("td",Vr,h(g.username),1),e("td",Gr,h(p(g.final_cost)),1),e("td",Wr,h(p(g.final_cycles)),1),e("td",Jr,h(p(g.final_area)),1),e("td",{class:Z(["text-right font-bold",{"text-yellow-600":g.rank===1,"text-gray-600":g.rank===2,"text-orange-600":g.rank===3}])},h(p(g.rank_points)),3),e("td",Hr,h(p(g.total_coef)),1),e("td",Yr,[g.files.length>0?(l(),r("button",{key:0,onClick:u=>x(g.files[0].file_url,g.files[0].original_filename),class:"btn btn-xs btn-primary gap-1"},[...d[11]||(d[11]=[e("i",{class:"mdi mdi-image"},null,-1),R(" View ",-1)])],8,Kr)):(l(),r("span",Zr,"—"))])]))),128))])])])):(l(),r("div",Qr," No submissions yet "))]))),128))]))])]),a.value?(l(),r("div",Xr,[e("div",ei,[e("div",ti,[e("h3",si,h(f.value),1),e("button",{onClick:$,class:"btn btn-sm btn-circle btn-ghost"},[...d[14]||(d[14]=[e("i",{class:"mdi mdi-close"},null,-1)])])]),e("div",oi,[e("img",{src:i.value,alt:f.value,class:"object-contain"},null,8,ni)]),e("div",ai,[e("a",{href:i.value,target:"_blank",class:"btn btn-primary btn-sm"},[...d[15]||(d[15]=[e("i",{class:"mdi mdi-download"},null,-1),R(" Download ",-1)])],8,li),e("button",{onClick:$,class:"btn btn-sm"},"Close")])]),e("div",{class:"modal-backdrop",onClick:$})])):L("",!0)],64))}}),ii={class:"card bg-base-100 shadow-lg"},ci={class:"card-body"},di={key:0,class:"flex justify-center py-12"},ui={key:1,class:"alert alert-error"},fi={key:2,class:"text-center py-8"},mi={key:3,class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-5 gap-3"},vi={class:"text-3xl font-bold mb-2"},hi={class:"font-semibold text-sm mb-2 truncate"},gi={class:"text-2xl font-bold text-primary"},pi=le({__name:"TopUsersLeaderboard",setup(c){const n=E(!0),s=E(null),t=E(""),a=async()=>{n.value=!0,t.value="";try{const f=await ee.getPuzzleResults(100);f.data?s.value=f.data:f.error&&(t.value=f.error,console.error("Error fetching results:",f.error))}catch(f){t.value=f instanceof Error?f.message:"Failed to fetch results",console.error("Error fetching results:",f)}finally{n.value=!1}},i=()=>{if(!s.value)return[];const f={};return s.value.results.forEach(v=>{v.submissions.forEach(p=>{const x=p.user_id;f[x]||(f[x]={username:p.username,user_id:p.user_id,total_points:0}),f[x].total_points+=p.rank_points||0})}),Object.values(f).sort((v,p)=>p.total_points-v.total_points).slice(0,10)};return fe(()=>{a()}),(f,v)=>(l(),r("div",ii,[e("div",ci,[v[3]||(v[3]=e("h2",{class:"card-title text-2xl flex items-center gap-2"},[e("i",{class:"mdi mdi-podium text-yellow-500 text-3xl"}),R(" Top 10 Users ")],-1)),n.value?(l(),r("div",di,[...v[0]||(v[0]=[e("span",{class:"loading loading-spinner loading-lg"},null,-1)])])):t.value?(l(),r("div",ui,[v[1]||(v[1]=e("i",{class:"mdi mdi-alert-circle text-xl"},null,-1)),e("div",null,h(t.value),1)])):i().length===0?(l(),r("div",fi,[...v[2]||(v[2]=[e("p",{class:"text-base-content/70"},"No results available yet.",-1)])])):(l(),r("div",mi,[(l(!0),r(F,null,B(i(),(p,x)=>(l(),r("div",{key:p.user_id,class:Z(["bg-base-200 p-4 rounded-lg text-center",{"ring-2 ring-yellow-500":x===0,"ring-2 ring-gray-400":x===1,"ring-2 ring-orange-400":x===2}])},[e("div",vi,h(x===0?"🥇":x===1?"🥈":x===2?"🥉":`#${x+1}`),1),e("div",hi,h(p.username),1),e("div",gi,h(p.total_points)+" pts",1)],2))),128))]))])]))}});function Lt(c,n){return Yt()?(Kt(c,n),!0):!1}const Rt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function bi(c,n=1e3,s={}){const{immediate:t=!0,immediateCallback:a=!1}=s;let i=null;const f=Mt(!1);function v(){i&&(clearInterval(i),i=null)}function p(){f.value=!1,v()}function x(){const $=_e(n);$<=0||(f.value=!0,a&&c(),v(),f.value&&(i=setInterval(c,$)))}return t&&Rt&&x(),(Jt(n)||typeof n=="function")&&Lt(Ye(n,()=>{f.value&&Rt&&x()})),Lt(p),{isActive:Ht(f),pause:p,resume:x}}function yi(c,n){var s,t;const a=Mt(_e(c)),i=bi(()=>{var $;const S=a.value-1;if(a.value=S<0?0:S,n==null||($=n.onTick)===null||$===void 0||$.call(n),a.value<=0){var w;i.pause(),n==null||(w=n.onComplete)===null||w===void 0||w.call(n)}},(s=n?.interval)!==null&&s!==void 0?s:1e3,{immediate:(t=n?.immediate)!==null&&t!==void 0?t:!1}),f=$=>{var S;a.value=(S=_e($))!==null&&S!==void 0?S:_e(c)},v=()=>{i.pause(),f()},p=()=>{i.isActive.value||a.value>0&&i.resume()};return{remaining:a,reset:f,stop:v,start:$=>{f($),i.resume()},pause:i.pause,resume:p,isActive:i.isActive}}const _i={class:"min-h-screen bg-base-200"},xi={class:"navbar bg-base-100 shadow-lg"},wi={class:"container min-w-3/4 mx-auto w-full flex items-center gap-4"},ki={class:"flex items-center gap-4"},$i={key:0,class:"flex items-center gap-2"},zi={class:"text-sm"},Si={class:"font-medium"},Ci={key:0,class:"badge badge-warning badge-xs ml-1"},Pi={key:1,class:"text-sm text-base-content/70"},Li={class:"container min-w-3/4 mx-auto px-4 py-8"},Ri={key:0,class:"flex justify-center"},Ei={class:"text-center"},Mi={class:"mb-6 text-base-content/70"},Oi={key:1,class:"flex justify-center items-center min-h-[400px]"},Ni={key:2,class:"alert alert-error max-w-2xl mx-auto"},Ai={class:"text-sm"},Di={key:3,class:"space-y-8"},Ti={key:0,class:"space-y-8"},Ii={class:"mb-8"},qi={class:"card bg-base-100 shadow-lg"},ji={class:"card-body"},Fi={class:"card-title text-2xl"},Ui={class:"text-base-content/70"},Bi={class:"flex flex-wrap gap-4 mt-4"},Vi=["disabled"],Gi={key:0,class:"alert alert-warning mt-4"},Wi={key:0},Ji={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"},Hi={key:1,class:"text-center py-12"},Yi={key:0,class:"modal modal-open"},Ki={class:"modal-box max-w-6xl"},Zi={class:"flex justify-between items-center mb-4"},Qi=le({__name:"OpusMagnum",props:{collectionTitle:{},collectionUrl:{},collectionDescription:{}},setup(c){const n=c,s=xe(),t=Qe(),{submissions:a,isSubmissionModalOpen:i}=Ze(t),{openSubmissionModal:f,loadSubmissions:v,closeSubmissionModal:p}=t,x=E(null),$=E(null),S=E(!0),w=E(""),o=Q(()=>x.value?.is_superuser||!1),d=Q(()=>!!($.value&&!$.value.accepting_submissions)),b=Q(()=>{const q={};return a.value.forEach(P=>{P.responses.forEach(j=>{q[j.puzzle_id]||(q[j.puzzle_id]=[]),q[j.puzzle_id].push(j)})}),q});async function g(){try{S.value=!0,w.value="",console.log("Starting data load..."),console.log("Loading user info...");const q=await ts();q.data?(x.value=q.data,console.log("User info loaded:",q.data)):q.error&&console.warn("User info error:",q.error),console.log("Loading collection...");const P=await ss();P.data?($.value=P.data,console.log("Collection loaded:",P.data)):P.error&&console.warn("Collection error:",P.error),console.log("Loading puzzles..."),await s.loadPuzzles(),console.log("Puzzles loaded:",s.puzzles.length),console.log("Loading submissions..."),await v(),console.log("Submissions loaded:",a.value.length),console.log("Data load complete!")}catch(q){w.value=Ot.getErrorMessage(q),console.error("Failed to load data:",q)}finally{S.value=!1,console.log("Loading state set to false")}x.value?.is_superuser&&m()}const{remaining:u,start:m}=yi(60,{onComplete(){g()}});fe(async()=>{await g()});const y=q=>s.findPuzzleByName(q),M=()=>{window.location.reload()},T=()=>{window.location.href="/"};return(q,P)=>(l(),r("div",_i,[e("div",xi,[e("div",wi,[e("button",{onClick:T,class:"btn btn-primary btn-sm"},[...P[3]||(P[3]=[e("i",{class:"mdi mdi-arrow-left"},null,-1),R(" Back ",-1)])]),P[6]||(P[6]=e("h1",{class:"text-xl font-bold"},"Opus Magnum Puzzle Submitter",-1)),P[7]||(P[7]=e("div",{class:"flex-1"},null,-1)),e("div",ki,[x.value?.is_authenticated?(l(),r("div",$i,[e("div",zi,[e("span",Si,h(x.value.username),1),x.value.is_superuser?(l(),r("span",Ci,"Admin")):L("",!0)])])):(l(),r("div",Pi,"Not logged in")),P[4]||(P[4]=e("a",{href:"/api/docs",class:"btn btn-xs"},"API docs",-1)),P[5]||(P[5]=e("a",{href:"/admin",class:"btn btn-xs btn-warning"},"Admin panel",-1))])])]),e("div",Li,[x.value?.is_superuser?(l(),r("div",Ri,[e("div",Ei,[e("p",Mi,[P[8]||(P[8]=e("span",{class:"loading loading-spinner loading-lg"},null,-1)),R(" Auto reload page in "+h(I(u))+" seconds ... ",1)])])])):L("",!0),S.value?(l(),r("div",Oi,[...P[9]||(P[9]=[e("div",{class:"text-center"},[e("span",{class:"loading loading-spinner loading-lg"}),e("p",{class:"mt-4 text-base-content/70"},"Loading puzzles...")],-1)])])):w.value?(l(),r("div",Ni,[P[12]||(P[12]=e("i",{class:"mdi mdi-alert-circle text-xl"},null,-1)),e("div",null,[P[10]||(P[10]=e("h3",{class:"font-bold"},"Error Loading Data",-1)),e("div",Ai,h(w.value),1)]),e("button",{onClick:M,class:"btn btn-sm btn-outline"},[...P[11]||(P[11]=[e("i",{class:"mdi mdi-refresh mr-1"},null,-1),R(" Retry ",-1)])])])):(l(),r("div",Di,[d.value?(l(),r("div",Ti,[ne(pi),ne(ri),ne(br)])):(l(),r(F,{key:1},[e("div",Ii,[e("div",qi,[e("div",ji,[e("h2",Fi,h(n.collectionTitle),1),e("p",Ui,h(n.collectionDescription),1),e("div",Bi,[e("button",{onClick:P[0]||(P[0]=(...j)=>I(f)&&I(f)(...j)),class:"btn btn-primary",disabled:d.value},[...P[13]||(P[13]=[e("i",{class:"mdi mdi-plus mr-2"},null,-1),R(" Submit Solution ",-1)])],8,Vi)]),d.value?(l(),r("div",Gi,[...P[14]||(P[14]=[e("i",{class:"mdi mdi-alert-circle text-xl"},null,-1),e("div",null,[e("h3",{class:"font-bold"},"Tournament Closed"),e("div",{class:"text-sm"},"This tournament is no longer accepting new submissions.")],-1)])])):L("",!0)])])]),ne(Jl),o.value?(l(),r("div",Wi,[ne(ia)])):L("",!0),e("div",Ji,[(l(!0),r(F,null,B(I(s).puzzles,j=>(l(),Zt(js,{key:j.id,puzzle:j,responses:b.value[j.id]||[]},null,8,["puzzle","responses"]))),128))]),I(s).puzzles.length===0?(l(),r("div",Hi,[...P[15]||(P[15]=[e("div",{class:"text-6xl mb-4"},"🧩",-1),e("h3",{class:"text-xl font-bold mb-2"},"No Puzzles Available",-1),e("p",{class:"text-base-content/70"}," Check back later for new puzzle collections! ",-1)])])):L("",!0)],64))]))]),I(i)?(l(),r("div",Yi,[e("div",Ki,[e("div",Zi,[P[17]||(P[17]=e("h3",{class:"font-bold text-lg"},"Submit Solution",-1)),e("button",{onClick:P[1]||(P[1]=(...j)=>I(p)&&I(p)(...j)),class:"btn btn-sm btn-circle btn-ghost"},[...P[16]||(P[16]=[e("i",{class:"mdi mdi-close"},null,-1)])])]),ne(bn,{puzzles:I(s).puzzles,"find-puzzle-by-name":y},null,8,["puzzles"])]),e("div",{class:"modal-backdrop",onClick:P[2]||(P[2]=(...j)=>I(p)&&I(p)(...j))})])):L("",!0)]))}}),It="#app",Xi=document.querySelector(It),qt=Qt(Qi,{...Xi?.dataset});qt.use(Xt);qt.mount(It); diff --git a/polylan_submitter/static_source/vite/assets/sdk.gen-CA3PL0uK.js b/polylan_submitter/static_source/vite/assets/sdk.gen-yuJ1arsq.js similarity index 56% rename from polylan_submitter/static_source/vite/assets/sdk.gen-CA3PL0uK.js rename to polylan_submitter/static_source/vite/assets/sdk.gen-yuJ1arsq.js index 78904f0..e6f4e3a 100644 --- a/polylan_submitter/static_source/vite/assets/sdk.gen-CA3PL0uK.js +++ b/polylan_submitter/static_source/vite/assets/sdk.gen-yuJ1arsq.js @@ -1,6 +1,6 @@ -const M={bodySerializer:e=>JSON.stringify(e,(t,r)=>typeof r=="bigint"?r.toString():r)};function Q({onRequest:e,onSseError:t,onSseEvent:r,responseTransformer:a,responseValidator:o,sseDefaultRetryDelay:c,sseMaxRetryAttempts:n,sseMaxRetryDelay:s,sseSleepFn:i,url:m,...u}){let l;const g=i??(f=>new Promise(h=>setTimeout(h,f)));return{stream:async function*(){let f=c??3e3,h=0;const w=u.signal??new AbortController().signal;for(;!w.aborted;){h++;const A=u.headers instanceof Headers?u.headers:new Headers(u.headers);l!==void 0&&A.set("Last-Event-ID",l);try{const j={redirect:"follow",...u,body:u.serializedBody,headers:A,signal:w};let E=new Request(m,j);e&&(E=await e(m,j));const p=await(u.fetch??globalThis.fetch)(E);if(!p.ok)throw new Error(`SSE failed: ${p.status} ${p.statusText}`);if(!p.body)throw new Error("No body in SSE response");const S=p.body.pipeThrough(new TextDecoderStream).getReader();let y="";const $=()=>{try{S.cancel()}catch{}};w.addEventListener("abort",$);try{for(;;){const{done:J,value:_}=await S.read();if(J)break;y+=_,y=y.replace(/\r\n?/g,` -`);const v=y.split(` +const F={bodySerializer:e=>JSON.stringify(e,(t,r)=>typeof r=="bigint"?r.toString():r)};function Q({onRequest:e,onSseError:t,onSseEvent:r,responseTransformer:a,responseValidator:o,sseDefaultRetryDelay:c,sseMaxRetryAttempts:n,sseMaxRetryDelay:s,sseSleepFn:i,url:m,...u}){let l;const w=i??(d=>new Promise(h=>setTimeout(h,d)));return{stream:async function*(){let d=c??3e3,h=0;const g=u.signal??new AbortController().signal;for(;!g.aborted;){h++;const A=u.headers instanceof Headers?u.headers:new Headers(u.headers);l!==void 0&&A.set("Last-Event-ID",l);try{const z={redirect:"follow",...u,body:u.serializedBody,headers:A,signal:g};let E=new Request(m,z);e&&(E=await e(m,z));const p=await(u.fetch??globalThis.fetch)(E);if(!p.ok)throw new Error(`SSE failed: ${p.status} ${p.statusText}`);if(!p.body)throw new Error("No body in SSE response");const S=p.body.pipeThrough(new TextDecoderStream).getReader();let y="";const v=()=>{try{S.cancel()}catch{}};g.addEventListener("abort",v);try{for(;;){const{done:_,value:M}=await S.read();if(_)break;y+=M,y=y.replace(/\r\n?/g,` +`);const $=y.split(` -`);y=v.pop()??"";for(const G of v){const F=G.split(` -`),O=[];let I;for(const z of F)if(z.startsWith("data:"))O.push(z.replace(/^data:\s*/,""));else if(z.startsWith("event:"))I=z.replace(/^event:\s*/,"");else if(z.startsWith("id:"))l=z.replace(/^id:\s*/,"");else if(z.startsWith("retry:")){const U=Number.parseInt(z.replace(/^retry:\s*/,""),10);Number.isNaN(U)||(f=U)}let x,B=!1;if(O.length){const z=O.join(` -`);try{x=JSON.parse(z),B=!0}catch{x=z}}B&&(o&&await o(x),a&&(x=await a(x))),r?.({data:x,event:I,id:l,retry:f}),O.length&&(yield x)}}}finally{w.removeEventListener("abort",$),S.releaseLock()}break}catch(j){if(t?.(j),n!==void 0&&h>=n)break;const E=Math.min(f*2**(h-1),s??3e4);await g(E)}}}()}}const K=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},X=e=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},Y=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},D=({allowReserved:e,explode:t,name:r,style:a,value:o})=>{if(!t){const s=(e?o:o.map(i=>encodeURIComponent(i))).join(X(a));switch(a){case"label":return`.${s}`;case"matrix":return`;${r}=${s}`;case"simple":return s;default:return`${r}=${s}`}}const c=K(a),n=o.map(s=>a==="label"||a==="simple"?e?s:encodeURIComponent(s):q({allowReserved:e,name:r,value:s})).join(c);return a==="label"||a==="matrix"?c+n:n},q=({allowReserved:e,name:t,value:r})=>{if(r==null)return"";if(typeof r=="object")throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${t}=${e?r:encodeURIComponent(r)}`},W=({allowReserved:e,explode:t,name:r,style:a,value:o,valueOnly:c})=>{if(o instanceof Date)return c?o.toISOString():`${r}=${o.toISOString()}`;if(a!=="deepObject"&&!t){let i=[];Object.entries(o).forEach(([u,l])=>{i=[...i,u,e?l:encodeURIComponent(l)]});const m=i.join(",");switch(a){case"form":return`${r}=${m}`;case"label":return`.${m}`;case"matrix":return`;${r}=${m}`;default:return m}}const n=Y(a),s=Object.entries(o).map(([i,m])=>q({allowReserved:e,name:a==="deepObject"?`${r}[${i}]`:i,value:m})).join(n);return a==="label"||a==="matrix"?n+s:s},Z=/\{[^{}]+\}/g,ee=({path:e,url:t})=>{let r=t;const a=t.match(Z);if(a)for(const o of a){let c=!1,n=o.substring(1,o.length-1),s="simple";n.endsWith("*")&&(c=!0,n=n.substring(0,n.length-1)),n.startsWith(".")?(n=n.substring(1),s="label"):n.startsWith(";")&&(n=n.substring(1),s="matrix");const i=e[n];if(i==null)continue;if(Array.isArray(i)){r=r.replace(o,D({explode:c,name:n,style:s,value:i}));continue}if(typeof i=="object"){r=r.replace(o,W({explode:c,name:n,style:s,value:i,valueOnly:!0}));continue}if(s==="matrix"){r=r.replace(o,`;${q({name:n,value:i})}`);continue}const m=encodeURIComponent(s==="label"?`.${i}`:i);r=r.replace(o,m)}return r},te=({baseUrl:e,path:t,query:r,querySerializer:a,url:o})=>{const c=o.startsWith("/")?o:`/${o}`;let n=(e??"")+c;t&&(n=ee({path:t,url:n}));let s=r?a(r):"";return s.startsWith("?")&&(s=s.substring(1)),s&&(n+=`?${s}`),n};function N(e){const t=e.body!==void 0;if(t&&e.bodySerializer)return"serializedBody"in e?e.serializedBody!==void 0&&e.serializedBody!==""?e.serializedBody:null:e.body!==""?e.body:null;if(t)return e.body}const re=async(e,t)=>{const r=typeof t=="function"?await t(e):t;if(r)return e.scheme==="bearer"?`Bearer ${r}`:e.scheme==="basic"?`Basic ${btoa(r)}`:r},H=({parameters:e={},...t}={})=>a=>{const o=[];if(a&&typeof a=="object")for(const c in a){const n=a[c];if(n==null)continue;const s=e[c]||t;if(Array.isArray(n)){const i=D({allowReserved:s.allowReserved,explode:!0,name:c,style:"form",value:n,...s.array});i&&o.push(i)}else if(typeof n=="object"){const i=W({allowReserved:s.allowReserved,explode:!0,name:c,style:"deepObject",value:n,...s.object});i&&o.push(i)}else{const i=q({allowReserved:s.allowReserved,name:c,value:n});i&&o.push(i)}}return o.join("&")},se=e=>{if(!e)return"stream";const t=e.split(";")[0]?.trim();if(t){if(t.startsWith("application/json")||t.endsWith("+json"))return"json";if(t==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(r=>t.startsWith(r)))return"blob";if(t.startsWith("text/"))return"text"}},ae=(e,t)=>t?!!(e.headers.has(t)||e.query?.[t]||e.headers.get("Cookie")?.includes(`${t}=`)):!1;async function ne(e){for(const t of e.security??[]){if(ae(e,t.name))continue;const r=await re(t,e.auth);if(!r)continue;const a=t.name??"Authorization";switch(t.in){case"query":e.query||(e.query={}),e.query[a]=r;break;case"cookie":e.headers.append("Cookie",`${a}=${r}`);break;case"header":default:e.headers.set(a,r);break}}}const P=e=>te({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:H(e.querySerializer),url:e.url}),R=(e,t)=>{const r={...e,...t};return r.baseUrl?.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=L(e.headers,t.headers),r},ie=e=>{const t=[];return e.forEach((r,a)=>{t.push([a,r])}),t},L=(...e)=>{const t=new Headers;for(const r of e){if(!r)continue;const a=r instanceof Headers?ie(r):Object.entries(r);for(const[o,c]of a)if(c===null)t.delete(o);else if(Array.isArray(c))for(const n of c)t.append(o,n);else c!==void 0&&t.set(o,typeof c=="object"?JSON.stringify(c):c)}return t};class T{fns=[];clear(){this.fns=[]}eject(t){const r=this.getInterceptorIndex(t);this.fns[r]&&(this.fns[r]=null)}exists(t){const r=this.getInterceptorIndex(t);return!!this.fns[r]}getInterceptorIndex(t){return typeof t=="number"?this.fns[t]?t:-1:this.fns.indexOf(t)}update(t,r){const a=this.getInterceptorIndex(t);return this.fns[a]?(this.fns[a]=r,t):!1}use(t){return this.fns.push(t),this.fns.length-1}}const oe=()=>({error:new T,request:new T,response:new T}),ce=H({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),le={"Content-Type":"application/json"},V=(e={})=>({...M,headers:le,parseAs:"auto",querySerializer:ce,...e}),ue=(e={})=>{let t=R(V(),e);const r=()=>({...t}),a=u=>(t=R(t,u),r()),o=oe(),c=async u=>{const l={...t,...u,fetch:u.fetch??t.fetch??globalThis.fetch,headers:L(t.headers,u.headers),serializedBody:void 0};l.security&&await ne(l),l.requestValidator&&await l.requestValidator(l),l.body!==void 0&&l.bodySerializer&&(l.serializedBody=l.bodySerializer(l.body)),(l.body===void 0||l.serializedBody==="")&&l.headers.delete("Content-Type");const g=l,b=P(g);return{opts:g,url:b}},n=async u=>{const l=u.throwOnError??t.throwOnError,g=u.responseStyle??t.responseStyle;let b,d;try{const{opts:f,url:h}=await c(u),w={redirect:"follow",...f,body:N(f)};b=new Request(h,w);for(const p of o.request.fns)p&&(b=await p(b,f));const A=f.fetch;d=await A(b);for(const p of o.response.fns)p&&(d=await p(d,b,f));const j={request:b,response:d};if(d.ok){const p=(f.parseAs==="auto"?se(d.headers.get("Content-Type")):f.parseAs)??"json";if(d.status===204||d.headers.get("Content-Length")==="0"){let y;switch(p){case"arrayBuffer":case"blob":case"text":y=await d[p]();break;case"formData":y=new FormData;break;case"stream":y=d.body;break;case"json":default:y={};break}return f.responseStyle==="data"?y:{data:y,...j}}let S;switch(p){case"arrayBuffer":case"blob":case"formData":case"text":S=await d[p]();break;case"json":{const y=await d.text();S=y?JSON.parse(y):{};break}case"stream":return f.responseStyle==="data"?d.body:{data:d.body,...j}}return p==="json"&&(f.responseValidator&&await f.responseValidator(S),f.responseTransformer&&(S=await f.responseTransformer(S))),f.responseStyle==="data"?S:{data:S,...j}}const E=await d.text();let k;try{k=JSON.parse(E)}catch{}throw k??E}catch(f){let h=f;for(const w of o.error.fns)w&&(h=await w(h,d,b,u));if(h=h||{},l)throw h;return g==="data"?void 0:{error:h,request:b,response:d}}},s=u=>l=>n({...l,method:u}),i=u=>async l=>{const{opts:g,url:b}=await c(l);return Q({...g,body:g.body,method:u,onRequest:async(d,f)=>{let h=new Request(d,f);for(const w of o.request.fns)w&&(h=await w(h,g));return h},serializedBody:N(g),url:b})};return{buildUrl:u=>P({...t,...u}),connect:s("CONNECT"),delete:s("DELETE"),get:s("GET"),getConfig:r,head:s("HEAD"),interceptors:o,options:s("OPTIONS"),patch:s("PATCH"),post:s("POST"),put:s("PUT"),request:n,setConfig:a,sse:{connect:i("CONNECT"),delete:i("DELETE"),get:i("GET"),head:i("HEAD"),options:i("OPTIONS"),patch:i("PATCH"),post:i("POST"),put:i("PUT"),trace:i("TRACE")},trace:s("TRACE")}},C=ue(V()),fe=e=>(e?.client??C).get({url:"/api/user",...e}),de=e=>(e?.client??C).get({url:"/api/opus-magnum/puzzles",...e}),he=e=>(e?.client??C).get({url:"/api/opus-magnum/collection",...e}),pe=e=>(e?.client??C).get({url:"/api/games/",...e});export{he as a,pe as g,de as o,fe as p}; +`);y=$.pop()??"";for(const J of $){const G=J.split(` +`),C=[];let I;for(const k of G)if(k.startsWith("data:"))C.push(k.replace(/^data:\s*/,""));else if(k.startsWith("event:"))I=k.replace(/^event:\s*/,"");else if(k.startsWith("id:"))l=k.replace(/^id:\s*/,"");else if(k.startsWith("retry:")){const U=Number.parseInt(k.replace(/^retry:\s*/,""),10);Number.isNaN(U)||(d=U)}let x,B=!1;if(C.length){const k=C.join(` +`);try{x=JSON.parse(k),B=!0}catch{x=k}}B&&(o&&await o(x),a&&(x=await a(x))),r?.({data:x,event:I,id:l,retry:d}),C.length&&(yield x)}}}finally{g.removeEventListener("abort",v),S.releaseLock()}break}catch(z){if(t?.(z),n!==void 0&&h>=n)break;const E=Math.min(d*2**(h-1),s??3e4);await w(E)}}}()}}const K=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},X=e=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},Y=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},D=({allowReserved:e,explode:t,name:r,style:a,value:o})=>{if(!t){const s=(e?o:o.map(i=>encodeURIComponent(i))).join(X(a));switch(a){case"label":return`.${s}`;case"matrix":return`;${r}=${s}`;case"simple":return s;default:return`${r}=${s}`}}const c=K(a),n=o.map(s=>a==="label"||a==="simple"?e?s:encodeURIComponent(s):O({allowReserved:e,name:r,value:s})).join(c);return a==="label"||a==="matrix"?c+n:n},O=({allowReserved:e,name:t,value:r})=>{if(r==null)return"";if(typeof r=="object")throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${t}=${e?r:encodeURIComponent(r)}`},W=({allowReserved:e,explode:t,name:r,style:a,value:o,valueOnly:c})=>{if(o instanceof Date)return c?o.toISOString():`${r}=${o.toISOString()}`;if(a!=="deepObject"&&!t){let i=[];Object.entries(o).forEach(([u,l])=>{i=[...i,u,e?l:encodeURIComponent(l)]});const m=i.join(",");switch(a){case"form":return`${r}=${m}`;case"label":return`.${m}`;case"matrix":return`;${r}=${m}`;default:return m}}const n=Y(a),s=Object.entries(o).map(([i,m])=>O({allowReserved:e,name:a==="deepObject"?`${r}[${i}]`:i,value:m})).join(n);return a==="label"||a==="matrix"?n+s:s},Z=/\{[^{}]+\}/g,ee=({path:e,url:t})=>{let r=t;const a=t.match(Z);if(a)for(const o of a){let c=!1,n=o.substring(1,o.length-1),s="simple";n.endsWith("*")&&(c=!0,n=n.substring(0,n.length-1)),n.startsWith(".")?(n=n.substring(1),s="label"):n.startsWith(";")&&(n=n.substring(1),s="matrix");const i=e[n];if(i==null)continue;if(Array.isArray(i)){r=r.replace(o,D({explode:c,name:n,style:s,value:i}));continue}if(typeof i=="object"){r=r.replace(o,W({explode:c,name:n,style:s,value:i,valueOnly:!0}));continue}if(s==="matrix"){r=r.replace(o,`;${O({name:n,value:i})}`);continue}const m=encodeURIComponent(s==="label"?`.${i}`:i);r=r.replace(o,m)}return r},te=({baseUrl:e,path:t,query:r,querySerializer:a,url:o})=>{const c=o.startsWith("/")?o:`/${o}`;let n=(e??"")+c;t&&(n=ee({path:t,url:n}));let s=r?a(r):"";return s.startsWith("?")&&(s=s.substring(1)),s&&(n+=`?${s}`),n};function R(e){const t=e.body!==void 0;if(t&&e.bodySerializer)return"serializedBody"in e?e.serializedBody!==void 0&&e.serializedBody!==""?e.serializedBody:null:e.body!==""?e.body:null;if(t)return e.body}const re=async(e,t)=>{const r=typeof t=="function"?await t(e):t;if(r)return e.scheme==="bearer"?`Bearer ${r}`:e.scheme==="basic"?`Basic ${btoa(r)}`:r},H=({parameters:e={},...t}={})=>a=>{const o=[];if(a&&typeof a=="object")for(const c in a){const n=a[c];if(n==null)continue;const s=e[c]||t;if(Array.isArray(n)){const i=D({allowReserved:s.allowReserved,explode:!0,name:c,style:"form",value:n,...s.array});i&&o.push(i)}else if(typeof n=="object"){const i=W({allowReserved:s.allowReserved,explode:!0,name:c,style:"deepObject",value:n,...s.object});i&&o.push(i)}else{const i=O({allowReserved:s.allowReserved,name:c,value:n});i&&o.push(i)}}return o.join("&")},se=e=>{if(!e)return"stream";const t=e.split(";")[0]?.trim();if(t){if(t.startsWith("application/json")||t.endsWith("+json"))return"json";if(t==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(r=>t.startsWith(r)))return"blob";if(t.startsWith("text/"))return"text"}},ae=(e,t)=>t?!!(e.headers.has(t)||e.query?.[t]||e.headers.get("Cookie")?.includes(`${t}=`)):!1;async function ne(e){for(const t of e.security??[]){if(ae(e,t.name))continue;const r=await re(t,e.auth);if(!r)continue;const a=t.name??"Authorization";switch(t.in){case"query":e.query||(e.query={}),e.query[a]=r;break;case"cookie":e.headers.append("Cookie",`${a}=${r}`);break;case"header":default:e.headers.set(a,r);break}}}const N=e=>te({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:H(e.querySerializer),url:e.url}),P=(e,t)=>{const r={...e,...t};return r.baseUrl?.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=L(e.headers,t.headers),r},ie=e=>{const t=[];return e.forEach((r,a)=>{t.push([a,r])}),t},L=(...e)=>{const t=new Headers;for(const r of e){if(!r)continue;const a=r instanceof Headers?ie(r):Object.entries(r);for(const[o,c]of a)if(c===null)t.delete(o);else if(Array.isArray(c))for(const n of c)t.append(o,n);else c!==void 0&&t.set(o,typeof c=="object"?JSON.stringify(c):c)}return t};class T{fns=[];clear(){this.fns=[]}eject(t){const r=this.getInterceptorIndex(t);this.fns[r]&&(this.fns[r]=null)}exists(t){const r=this.getInterceptorIndex(t);return!!this.fns[r]}getInterceptorIndex(t){return typeof t=="number"?this.fns[t]?t:-1:this.fns.indexOf(t)}update(t,r){const a=this.getInterceptorIndex(t);return this.fns[a]?(this.fns[a]=r,t):!1}use(t){return this.fns.push(t),this.fns.length-1}}const oe=()=>({error:new T,request:new T,response:new T}),ce=H({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),le={"Content-Type":"application/json"},V=(e={})=>({...F,headers:le,parseAs:"auto",querySerializer:ce,...e}),ue=(e={})=>{let t=P(V(),e);const r=()=>({...t}),a=u=>(t=P(t,u),r()),o=oe(),c=async u=>{const l={...t,...u,fetch:u.fetch??t.fetch??globalThis.fetch,headers:L(t.headers,u.headers),serializedBody:void 0};l.security&&await ne(l),l.requestValidator&&await l.requestValidator(l),l.body!==void 0&&l.bodySerializer&&(l.serializedBody=l.bodySerializer(l.body)),(l.body===void 0||l.serializedBody==="")&&l.headers.delete("Content-Type");const w=l,b=N(w);return{opts:w,url:b}},n=async u=>{const l=u.throwOnError??t.throwOnError,w=u.responseStyle??t.responseStyle;let b,f;try{const{opts:d,url:h}=await c(u),g={redirect:"follow",...d,body:R(d)};b=new Request(h,g);for(const p of o.request.fns)p&&(b=await p(b,d));const A=d.fetch;f=await A(b);for(const p of o.response.fns)p&&(f=await p(f,b,d));const z={request:b,response:f};if(f.ok){const p=(d.parseAs==="auto"?se(f.headers.get("Content-Type")):d.parseAs)??"json";if(f.status===204||f.headers.get("Content-Length")==="0"){let y;switch(p){case"arrayBuffer":case"blob":case"text":y=await f[p]();break;case"formData":y=new FormData;break;case"stream":y=f.body;break;case"json":default:y={};break}return d.responseStyle==="data"?y:{data:y,...z}}let S;switch(p){case"arrayBuffer":case"blob":case"formData":case"text":S=await f[p]();break;case"json":{const y=await f.text();S=y?JSON.parse(y):{};break}case"stream":return d.responseStyle==="data"?f.body:{data:f.body,...z}}return p==="json"&&(d.responseValidator&&await d.responseValidator(S),d.responseTransformer&&(S=await d.responseTransformer(S))),d.responseStyle==="data"?S:{data:S,...z}}const E=await f.text();let q;try{q=JSON.parse(E)}catch{}throw q??E}catch(d){let h=d;for(const g of o.error.fns)g&&(h=await g(h,f,b,u));if(h=h||{},l)throw h;return w==="data"?void 0:{error:h,request:b,response:f}}},s=u=>l=>n({...l,method:u}),i=u=>async l=>{const{opts:w,url:b}=await c(l);return Q({...w,body:w.body,method:u,onRequest:async(f,d)=>{let h=new Request(f,d);for(const g of o.request.fns)g&&(h=await g(h,w));return h},serializedBody:R(w),url:b})};return{buildUrl:u=>N({...t,...u}),connect:s("CONNECT"),delete:s("DELETE"),get:s("GET"),getConfig:r,head:s("HEAD"),interceptors:o,options:s("OPTIONS"),patch:s("PATCH"),post:s("POST"),put:s("PUT"),request:n,setConfig:a,sse:{connect:i("CONNECT"),delete:i("DELETE"),get:i("GET"),head:i("HEAD"),options:i("OPTIONS"),patch:i("PATCH"),post:i("POST"),put:i("PUT"),trace:i("TRACE")},trace:s("TRACE")}},j=ue(V()),de=e=>(e?.client??j).get({url:"/api/user",...e}),fe=e=>(e?.client??j).get({url:"/api/opus-magnum/puzzles",...e}),he=e=>(e?.client??j).get({url:"/api/opus-magnum/collection",...e}),pe=e=>(e?.client??j).get({url:"/api/games/",...e}),ye=e=>(e?.client??j).get({url:"/api/market/",...e}),be=e=>(e?.client??j).get({url:"/api/market/user/bets",...e}),me=e=>(e.client??j).post({url:"/api/market/{market_uuid}/actions/close",...e}),ge=e=>(e.client??j).post({url:"/api/market/{market_uuid}/actions/resolve",...e,headers:{"Content-Type":"application/json",...e.headers}}),we=e=>(e.client??j).post({url:"/api/market/{market_uuid}/bets",...e,headers:{"Content-Type":"application/json",...e.headers}});export{he as a,be as b,me as c,ge as d,we as e,pe as g,ye as m,fe as o,de as p}; diff --git a/polylan_submitter/static_source/vite/assets/style-BkYIZIDm.js b/polylan_submitter/static_source/vite/assets/style-CWE_e4zZ.js similarity index 59% rename from polylan_submitter/static_source/vite/assets/style-BkYIZIDm.js rename to polylan_submitter/static_source/vite/assets/style-CWE_e4zZ.js index 6c3ac3c..0e8d568 100644 --- a/polylan_submitter/static_source/vite/assets/style-BkYIZIDm.js +++ b/polylan_submitter/static_source/vite/assets/style-CWE_e4zZ.js @@ -2,16 +2,16 @@ * @vue/shared v3.5.22 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function Fs(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const V={},Qe=[],xe=()=>{},Hn=()=>!1,es=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ds=e=>e.startsWith("onUpdate:"),Z=Object.assign,js=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},ki=Object.prototype.hasOwnProperty,H=(e,t)=>ki.call(e,t),O=Array.isArray,et=e=>Ot(e)==="[object Map]",rt=e=>Ot(e)==="[object Set]",rn=e=>Ot(e)==="[object Date]",R=e=>typeof e=="function",G=e=>typeof e=="string",Se=e=>typeof e=="symbol",$=e=>e!==null&&typeof e=="object",Nn=e=>($(e)||R(e))&&R(e.then)&&R(e.catch),Vn=Object.prototype.toString,Ot=e=>Vn.call(e),Xi=e=>Ot(e).slice(8,-1),$n=e=>Ot(e)==="[object Object]",Hs=e=>G(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,pt=Fs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ts=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},Zi=/-\w/g,$e=ts(e=>e.replace(Zi,t=>t.slice(1).toUpperCase())),Qi=/\B([A-Z])/g,ke=ts(e=>e.replace(Qi,"-$1").toLowerCase()),Ln=ts(e=>e.charAt(0).toUpperCase()+e.slice(1)),hs=ts(e=>e?`on${Ln(e)}`:""),Ve=(e,t)=>!Object.is(e,t),$t=(e,...t)=>{for(let s=0;s{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},Wt=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let on;const ss=()=>on||(on=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ns(e){if(O(e)){const t={};for(let s=0;s{if(s){const n=s.split(tr);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Vs(e){let t="";if(G(e))t=e;else if(O(e))for(let s=0;sAt(s,t))}const Bn=e=>!!(e&&e.__v_isRef===!0),lr=e=>G(e)?e:e==null?"":O(e)||$(e)&&(e.toString===Vn||!R(e.toString))?Bn(e)?lr(e.value):JSON.stringify(e,Wn,2):String(e),Wn=(e,t)=>Bn(t)?Wn(e,t.value):et(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,i],r)=>(s[ps(n,r)+" =>"]=i,s),{})}:rt(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>ps(s))}:Se(t)?ps(t):$(t)&&!O(t)&&!$n(t)?String(t):t,ps=(e,t="")=>{var s;return Se(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};/** +**/function Fs(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const V={},tt=[],ve=()=>{},Hn=()=>!1,es=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ds=e=>e.startsWith("onUpdate:"),X=Object.assign,js=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},ki=Object.prototype.hasOwnProperty,H=(e,t)=>ki.call(e,t),O=Array.isArray,st=e=>At(e)==="[object Map]",lt=e=>At(e)==="[object Set]",rn=e=>At(e)==="[object Date]",R=e=>typeof e=="function",G=e=>typeof e=="string",we=e=>typeof e=="symbol",$=e=>e!==null&&typeof e=="object",Nn=e=>($(e)||R(e))&&R(e.then)&&R(e.catch),Vn=Object.prototype.toString,At=e=>Vn.call(e),Qi=e=>At(e).slice(8,-1),$n=e=>At(e)==="[object Object]",Hs=e=>G(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,_t=Fs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ts=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},Xi=/-\w/g,$e=ts(e=>e.replace(Xi,t=>t.slice(1).toUpperCase())),Zi=/\B([A-Z])/g,Xe=ts(e=>e.replace(Zi,"-$1").toLowerCase()),Ln=ts(e=>e.charAt(0).toUpperCase()+e.slice(1)),hs=ts(e=>e?`on${Ln(e)}`:""),Ve=(e,t)=>!Object.is(e,t),$t=(e,...t)=>{for(let s=0;s{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},Wt=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let on;const ss=()=>on||(on=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ns(e){if(O(e)){const t={};for(let s=0;s{if(s){const n=s.split(tr);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Vs(e){let t="";if(G(e))t=e;else if(O(e))for(let s=0;sQe(s,t))}const Bn=e=>!!(e&&e.__v_isRef===!0),lr=e=>G(e)?e:e==null?"":O(e)||$(e)&&(e.toString===Vn||!R(e.toString))?Bn(e)?lr(e.value):JSON.stringify(e,Wn,2):String(e),Wn=(e,t)=>Bn(t)?Wn(e,t.value):st(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,i],r)=>(s[ps(n,r)+" =>"]=i,s),{})}:lt(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>ps(s))}:we(t)?ps(t):$(t)&&!O(t)&&!$n(t)?String(t):t,ps=(e,t="")=>{var s;return we(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};/** * @vue/reactivity v3.5.22 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let k;class qn{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=k,!t&&k&&(this.index=(k.scopes||(k.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t0&&--this._on===0&&(k=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s0)return;if(_t){let t=_t;for(_t=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;gt;){let t=gt;for(gt=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function zn(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function kn(e){let t,s=e.depsTail,n=s;for(;n;){const i=n.prevDep;n.version===-1?(n===s&&(s=i),Us(n),cr(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}e.deps=t,e.depsTail=s}function ws(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Xn(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Xn(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===vt)||(e.globalVersion=vt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!ws(e))))return;e.flags|=2;const t=e.dep,s=U,n=ae;U=e,ae=!0;try{zn(e);const i=e.fn(e._value);(t.version===0||Ve(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{U=s,ae=n,kn(e),e.flags&=-3}}function Us(e,t=!1){const{dep:s,prevSub:n,nextSub:i}=e;if(n&&(n.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let r=s.computed.deps;r;r=r.nextDep)Us(r,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function cr(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let ae=!0;const Zn=[];function Re(){Zn.push(ae),ae=!1}function Pe(){const e=Zn.pop();ae=e===void 0?!0:e}function ln(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=U;U=void 0;try{t()}finally{U=s}}}let vt=0;class ur{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Bs{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!U||!ae||U===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==U)s=this.activeLink=new ur(U,this),U.deps?(s.prevDep=U.depsTail,U.depsTail.nextDep=s,U.depsTail=s):U.deps=U.depsTail=s,Qn(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=U.depsTail,s.nextDep=void 0,U.depsTail.nextDep=s,U.depsTail=s,U.deps===s&&(U.deps=n)}return s}trigger(t){this.version++,vt++,this.notify(t)}notify(t){Ls();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{Ks()}}}function Qn(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)Qn(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const qt=new WeakMap,Ye=Symbol(""),Cs=Symbol(""),St=Symbol("");function X(e,t,s){if(ae&&U){let n=qt.get(e);n||qt.set(e,n=new Map);let i=n.get(s);i||(n.set(s,i=new Bs),i.map=n,i.key=s),i.track()}}function Oe(e,t,s,n,i,r){const o=qt.get(e);if(!o){vt++;return}const l=c=>{c&&c.trigger()};if(Ls(),t==="clear")o.forEach(l);else{const c=O(e),h=c&&Hs(s);if(c&&s==="length"){const a=Number(n);o.forEach((p,w)=>{(w==="length"||w===St||!Se(w)&&w>=a)&&l(p)})}else switch((s!==void 0||o.has(void 0))&&l(o.get(s)),h&&l(o.get(St)),t){case"add":c?h&&l(o.get("length")):(l(o.get(Ye)),et(e)&&l(o.get(Cs)));break;case"delete":c||(l(o.get(Ye)),et(e)&&l(o.get(Cs)));break;case"set":et(e)&&l(o.get(Ye));break}}Ks()}function ar(e,t){const s=qt.get(e);return s&&s.get(t)}function Xe(e){const t=j(e);return t===e?t:(X(t,"iterate",St),ue(e)?t:t.map(z))}function ns(e){return X(e=j(e),"iterate",St),e}const dr={__proto__:null,[Symbol.iterator](){return _s(this,Symbol.iterator,z)},concat(...e){return Xe(this).concat(...e.map(t=>O(t)?Xe(t):t))},entries(){return _s(this,"entries",e=>(e[1]=z(e[1]),e))},every(e,t){return Ce(this,"every",e,t,void 0,arguments)},filter(e,t){return Ce(this,"filter",e,t,s=>s.map(z),arguments)},find(e,t){return Ce(this,"find",e,t,z,arguments)},findIndex(e,t){return Ce(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ce(this,"findLast",e,t,z,arguments)},findLastIndex(e,t){return Ce(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ce(this,"forEach",e,t,void 0,arguments)},includes(...e){return ms(this,"includes",e)},indexOf(...e){return ms(this,"indexOf",e)},join(e){return Xe(this).join(e)},lastIndexOf(...e){return ms(this,"lastIndexOf",e)},map(e,t){return Ce(this,"map",e,t,void 0,arguments)},pop(){return ut(this,"pop")},push(...e){return ut(this,"push",e)},reduce(e,...t){return fn(this,"reduce",e,t)},reduceRight(e,...t){return fn(this,"reduceRight",e,t)},shift(){return ut(this,"shift")},some(e,t){return Ce(this,"some",e,t,void 0,arguments)},splice(...e){return ut(this,"splice",e)},toReversed(){return Xe(this).toReversed()},toSorted(e){return Xe(this).toSorted(e)},toSpliced(...e){return Xe(this).toSpliced(...e)},unshift(...e){return ut(this,"unshift",e)},values(){return _s(this,"values",z)}};function _s(e,t,s){const n=ns(e),i=n[t]();return n!==e&&!ue(e)&&(i._next=i.next,i.next=()=>{const r=i._next();return r.done||(r.value=s(r.value)),r}),i}const hr=Array.prototype;function Ce(e,t,s,n,i,r){const o=ns(e),l=o!==e&&!ue(e),c=o[t];if(c!==hr[t]){const p=c.apply(e,r);return l?z(p):p}let h=s;o!==e&&(l?h=function(p,w){return s.call(this,z(p),w,e)}:s.length>2&&(h=function(p,w){return s.call(this,p,w,e)}));const a=c.call(o,h,n);return l&&i?i(a):a}function fn(e,t,s,n){const i=ns(e);let r=s;return i!==e&&(ue(e)?s.length>3&&(r=function(o,l,c){return s.call(this,o,l,c,e)}):r=function(o,l,c){return s.call(this,o,z(l),c,e)}),i[t](r,...n)}function ms(e,t,s){const n=j(e);X(n,"iterate",St);const i=n[t](...s);return(i===-1||i===!1)&&qs(s[0])?(s[0]=j(s[0]),n[t](...s)):i}function ut(e,t,s=[]){Re(),Ls();const n=j(e)[t].apply(e,s);return Ks(),Pe(),n}const pr=Fs("__proto__,__v_isRef,__isVue"),ei=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Se));function gr(e){Se(e)||(e=String(e));const t=j(this);return X(t,"has",e),t.hasOwnProperty(e)}class ti{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const i=this._isReadonly,r=this._isShallow;if(s==="__v_isReactive")return!i;if(s==="__v_isReadonly")return i;if(s==="__v_isShallow")return r;if(s==="__v_raw")return n===(i?r?li:oi:r?ri:ii).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=O(t);if(!i){let c;if(o&&(c=dr[s]))return c;if(s==="hasOwnProperty")return gr}const l=Reflect.get(t,s,Y(t)?t:n);if((Se(s)?ei.has(s):pr(s))||(i||X(t,"get",s),r))return l;if(Y(l)){const c=o&&Hs(s)?l:l.value;return i&&$(c)?Es(c):c}return $(l)?i?Es(l):Ws(l):l}}class si extends ti{constructor(t=!1){super(!1,t)}set(t,s,n,i){let r=t[s];if(!this._isShallow){const c=Le(r);if(!ue(n)&&!Le(n)&&(r=j(r),n=j(n)),!O(t)&&Y(r)&&!Y(n))return c||(r.value=n),!0}const o=O(t)&&Hs(s)?Number(s)e,Ht=e=>Reflect.getPrototypeOf(e);function xr(e,t,s){return function(...n){const i=this.__v_raw,r=j(i),o=et(r),l=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,h=i[e](...n),a=s?Ts:t?Gt:z;return!t&&X(r,"iterate",c?Cs:Ye),{next(){const{value:p,done:w}=h.next();return w?{value:p,done:w}:{value:l?[a(p[0]),a(p[1])]:a(p),done:w}},[Symbol.iterator](){return this}}}}function Nt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function vr(e,t){const s={get(i){const r=this.__v_raw,o=j(r),l=j(i);e||(Ve(i,l)&&X(o,"get",i),X(o,"get",l));const{has:c}=Ht(o),h=t?Ts:e?Gt:z;if(c.call(o,i))return h(r.get(i));if(c.call(o,l))return h(r.get(l));r!==o&&r.get(i)},get size(){const i=this.__v_raw;return!e&&X(j(i),"iterate",Ye),i.size},has(i){const r=this.__v_raw,o=j(r),l=j(i);return e||(Ve(i,l)&&X(o,"has",i),X(o,"has",l)),i===l?r.has(i):r.has(i)||r.has(l)},forEach(i,r){const o=this,l=o.__v_raw,c=j(l),h=t?Ts:e?Gt:z;return!e&&X(c,"iterate",Ye),l.forEach((a,p)=>i.call(r,h(a),h(p),o))}};return Z(s,e?{add:Nt("add"),set:Nt("set"),delete:Nt("delete"),clear:Nt("clear")}:{add(i){!t&&!ue(i)&&!Le(i)&&(i=j(i));const r=j(this);return Ht(r).has.call(r,i)||(r.add(i),Oe(r,"add",i,i)),this},set(i,r){!t&&!ue(r)&&!Le(r)&&(r=j(r));const o=j(this),{has:l,get:c}=Ht(o);let h=l.call(o,i);h||(i=j(i),h=l.call(o,i));const a=c.call(o,i);return o.set(i,r),h?Ve(r,a)&&Oe(o,"set",i,r):Oe(o,"add",i,r),this},delete(i){const r=j(this),{has:o,get:l}=Ht(r);let c=o.call(r,i);c||(i=j(i),c=o.call(r,i)),l&&l.call(r,i);const h=r.delete(i);return c&&Oe(r,"delete",i,void 0),h},clear(){const i=j(this),r=i.size!==0,o=i.clear();return r&&Oe(i,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{s[i]=xr(i,e,t)}),s}function is(e,t){const s=vr(e,t);return(n,i,r)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(H(s,i)&&i in n?s:n,i,r)}const Sr={get:is(!1,!1)},wr={get:is(!1,!0)},Cr={get:is(!0,!1)},Tr={get:is(!0,!0)},ii=new WeakMap,ri=new WeakMap,oi=new WeakMap,li=new WeakMap;function Er(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Or(e){return e.__v_skip||!Object.isExtensible(e)?0:Er(Xi(e))}function Ws(e){return Le(e)?e:rs(e,!1,_r,Sr,ii)}function Ar(e){return rs(e,!1,br,wr,ri)}function Es(e){return rs(e,!0,mr,Cr,oi)}function Ol(e){return rs(e,!0,yr,Tr,li)}function rs(e,t,s,n,i){if(!$(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=Or(e);if(r===0)return e;const o=i.get(e);if(o)return o;const l=new Proxy(e,r===2?n:s);return i.set(e,l),l}function tt(e){return Le(e)?tt(e.__v_raw):!!(e&&e.__v_isReactive)}function Le(e){return!!(e&&e.__v_isReadonly)}function ue(e){return!!(e&&e.__v_isShallow)}function qs(e){return e?!!e.__v_raw:!1}function j(e){const t=e&&e.__v_raw;return t?j(t):e}function Mr(e){return!H(e,"__v_skip")&&Object.isExtensible(e)&&Kn(e,"__v_skip",!0),e}const z=e=>$(e)?Ws(e):e,Gt=e=>$(e)?Es(e):e;function Y(e){return e?e.__v_isRef===!0:!1}function Rr(e){return fi(e,!1)}function Al(e){return fi(e,!0)}function fi(e,t){return Y(e)?e:new Pr(e,t)}class Pr{constructor(t,s){this.dep=new Bs,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:j(t),this._value=s?t:z(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||ue(t)||Le(t);t=n?t:j(t),Ve(t,s)&&(this._rawValue=t,this._value=n?t:z(t),this.dep.trigger())}}function ci(e){return Y(e)?e.value:e}function Ml(e){return R(e)?e():ci(e)}const Ir={get:(e,t,s)=>t==="__v_raw"?e:ci(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const i=e[t];return Y(i)&&!Y(s)?(i.value=s,!0):Reflect.set(e,t,s,n)}};function ui(e){return tt(e)?e:new Proxy(e,Ir)}function Rl(e){const t=O(e)?new Array(e.length):{};for(const s in e)t[s]=ai(e,s);return t}class Fr{constructor(t,s,n){this._object=t,this._key=s,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return ar(j(this._object),this._key)}}class Dr{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Pl(e,t,s){return Y(e)?e:R(e)?new Dr(e):$(e)&&arguments.length>1?ai(e,t,s):Rr(e)}function ai(e,t,s){const n=e[t];return Y(n)?n:new Fr(e,t,s)}class jr{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new Bs(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=vt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&U!==this)return Yn(this,!0),!0}get value(){const t=this.dep.track();return Xn(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Hr(e,t,s=!1){let n,i;return R(e)?n=e:(n=e.get,i=e.set),new jr(n,i,s)}const Vt={},Jt=new WeakMap;let Je;function Nr(e,t=!1,s=Je){if(s){let n=Jt.get(s);n||Jt.set(s,n=[]),n.push(e)}}function Vr(e,t,s=V){const{immediate:n,deep:i,once:r,scheduler:o,augmentJob:l,call:c}=s,h=A=>i?A:ue(A)||i===!1||i===0?Ae(A,1):Ae(A);let a,p,w,C,P=!1,F=!1;if(Y(e)?(p=()=>e.value,P=ue(e)):tt(e)?(p=()=>h(e),P=!0):O(e)?(F=!0,P=e.some(A=>tt(A)||ue(A)),p=()=>e.map(A=>{if(Y(A))return A.value;if(tt(A))return h(A);if(R(A))return c?c(A,2):A()})):R(e)?t?p=c?()=>c(e,2):e:p=()=>{if(w){Re();try{w()}finally{Pe()}}const A=Je;Je=a;try{return c?c(e,3,[C]):e(C)}finally{Je=A}}:p=xe,t&&i){const A=p,J=i===!0?1/0:i;p=()=>Ae(A(),J)}const Q=fr(),D=()=>{a.stop(),Q&&Q.active&&js(Q.effects,a)};if(r&&t){const A=t;t=(...J)=>{A(...J),D()}}let B=F?new Array(e.length).fill(Vt):Vt;const q=A=>{if(!(!(a.flags&1)||!a.dirty&&!A))if(t){const J=a.run();if(i||P||(F?J.some((Fe,de)=>Ve(Fe,B[de])):Ve(J,B))){w&&w();const Fe=Je;Je=a;try{const de=[J,B===Vt?void 0:F&&B[0]===Vt?[]:B,C];B=J,c?c(t,3,de):t(...de)}finally{Je=Fe}}}else a.run()};return l&&l(q),a=new Gn(p),a.scheduler=o?()=>o(q,!1):q,C=A=>Nr(A,!1,a),w=a.onStop=()=>{const A=Jt.get(a);if(A){if(c)c(A,4);else for(const J of A)J();Jt.delete(a)}},t?n?q(!0):B=a.run():o?o(q.bind(null,!0),!0):a.run(),D.pause=a.pause.bind(a),D.resume=a.resume.bind(a),D.stop=D,D}function Ae(e,t=1/0,s){if(t<=0||!$(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,Y(e))Ae(e.value,t,s);else if(O(e))for(let n=0;n{Ae(n,t,s)});else if($n(e)){for(const n in e)Ae(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&Ae(e[n],t,s)}return e}/** +**/let k;class qn{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=k,!t&&k&&(this.index=(k.scopes||(k.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t0&&--this._on===0&&(k=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s0)return;if(bt){let t=bt;for(bt=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;mt;){let t=mt;for(mt=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function zn(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function kn(e){let t,s=e.depsTail,n=s;for(;n;){const i=n.prevDep;n.version===-1?(n===s&&(s=i),Us(n),cr(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}e.deps=t,e.depsTail=s}function ws(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Qn(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Qn(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===wt)||(e.globalVersion=wt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!ws(e))))return;e.flags|=2;const t=e.dep,s=U,n=de;U=e,de=!0;try{zn(e);const i=e.fn(e._value);(t.version===0||Ve(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{U=s,de=n,kn(e),e.flags&=-3}}function Us(e,t=!1){const{dep:s,prevSub:n,nextSub:i}=e;if(n&&(n.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let r=s.computed.deps;r;r=r.nextDep)Us(r,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function cr(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let de=!0;const Xn=[];function Pe(){Xn.push(de),de=!1}function Ie(){const e=Xn.pop();de=e===void 0?!0:e}function ln(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=U;U=void 0;try{t()}finally{U=s}}}let wt=0;class ur{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Bs{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!U||!de||U===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==U)s=this.activeLink=new ur(U,this),U.deps?(s.prevDep=U.depsTail,U.depsTail.nextDep=s,U.depsTail=s):U.deps=U.depsTail=s,Zn(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=U.depsTail,s.nextDep=void 0,U.depsTail.nextDep=s,U.depsTail=s,U.deps===s&&(U.deps=n)}return s}trigger(t){this.version++,wt++,this.notify(t)}notify(t){Ls();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{Ks()}}}function Zn(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)Zn(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const qt=new WeakMap,ze=Symbol(""),Cs=Symbol(""),Ct=Symbol("");function Q(e,t,s){if(de&&U){let n=qt.get(e);n||qt.set(e,n=new Map);let i=n.get(s);i||(n.set(s,i=new Bs),i.map=n,i.key=s),i.track()}}function Ae(e,t,s,n,i,r){const o=qt.get(e);if(!o){wt++;return}const l=c=>{c&&c.trigger()};if(Ls(),t==="clear")o.forEach(l);else{const c=O(e),h=c&&Hs(s);if(c&&s==="length"){const a=Number(n);o.forEach((p,w)=>{(w==="length"||w===Ct||!we(w)&&w>=a)&&l(p)})}else switch((s!==void 0||o.has(void 0))&&l(o.get(s)),h&&l(o.get(Ct)),t){case"add":c?h&&l(o.get("length")):(l(o.get(ze)),st(e)&&l(o.get(Cs)));break;case"delete":c||(l(o.get(ze)),st(e)&&l(o.get(Cs)));break;case"set":st(e)&&l(o.get(ze));break}}Ks()}function ar(e,t){const s=qt.get(e);return s&&s.get(t)}function Ze(e){const t=j(e);return t===e?t:(Q(t,"iterate",Ct),ue(e)?t:t.map(z))}function ns(e){return Q(e=j(e),"iterate",Ct),e}const dr={__proto__:null,[Symbol.iterator](){return _s(this,Symbol.iterator,z)},concat(...e){return Ze(this).concat(...e.map(t=>O(t)?Ze(t):t))},entries(){return _s(this,"entries",e=>(e[1]=z(e[1]),e))},every(e,t){return Te(this,"every",e,t,void 0,arguments)},filter(e,t){return Te(this,"filter",e,t,s=>s.map(z),arguments)},find(e,t){return Te(this,"find",e,t,z,arguments)},findIndex(e,t){return Te(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Te(this,"findLast",e,t,z,arguments)},findLastIndex(e,t){return Te(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Te(this,"forEach",e,t,void 0,arguments)},includes(...e){return ms(this,"includes",e)},indexOf(...e){return ms(this,"indexOf",e)},join(e){return Ze(this).join(e)},lastIndexOf(...e){return ms(this,"lastIndexOf",e)},map(e,t){return Te(this,"map",e,t,void 0,arguments)},pop(){return dt(this,"pop")},push(...e){return dt(this,"push",e)},reduce(e,...t){return fn(this,"reduce",e,t)},reduceRight(e,...t){return fn(this,"reduceRight",e,t)},shift(){return dt(this,"shift")},some(e,t){return Te(this,"some",e,t,void 0,arguments)},splice(...e){return dt(this,"splice",e)},toReversed(){return Ze(this).toReversed()},toSorted(e){return Ze(this).toSorted(e)},toSpliced(...e){return Ze(this).toSpliced(...e)},unshift(...e){return dt(this,"unshift",e)},values(){return _s(this,"values",z)}};function _s(e,t,s){const n=ns(e),i=n[t]();return n!==e&&!ue(e)&&(i._next=i.next,i.next=()=>{const r=i._next();return r.done||(r.value=s(r.value)),r}),i}const hr=Array.prototype;function Te(e,t,s,n,i,r){const o=ns(e),l=o!==e&&!ue(e),c=o[t];if(c!==hr[t]){const p=c.apply(e,r);return l?z(p):p}let h=s;o!==e&&(l?h=function(p,w){return s.call(this,z(p),w,e)}:s.length>2&&(h=function(p,w){return s.call(this,p,w,e)}));const a=c.call(o,h,n);return l&&i?i(a):a}function fn(e,t,s,n){const i=ns(e);let r=s;return i!==e&&(ue(e)?s.length>3&&(r=function(o,l,c){return s.call(this,o,l,c,e)}):r=function(o,l,c){return s.call(this,o,z(l),c,e)}),i[t](r,...n)}function ms(e,t,s){const n=j(e);Q(n,"iterate",Ct);const i=n[t](...s);return(i===-1||i===!1)&&qs(s[0])?(s[0]=j(s[0]),n[t](...s)):i}function dt(e,t,s=[]){Pe(),Ls();const n=j(e)[t].apply(e,s);return Ks(),Ie(),n}const pr=Fs("__proto__,__v_isRef,__isVue"),ei=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(we));function gr(e){we(e)||(e=String(e));const t=j(this);return Q(t,"has",e),t.hasOwnProperty(e)}class ti{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const i=this._isReadonly,r=this._isShallow;if(s==="__v_isReactive")return!i;if(s==="__v_isReadonly")return i;if(s==="__v_isShallow")return r;if(s==="__v_raw")return n===(i?r?li:oi:r?ri:ii).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=O(t);if(!i){let c;if(o&&(c=dr[s]))return c;if(s==="hasOwnProperty")return gr}const l=Reflect.get(t,s,Y(t)?t:n);if((we(s)?ei.has(s):pr(s))||(i||Q(t,"get",s),r))return l;if(Y(l)){const c=o&&Hs(s)?l:l.value;return i&&$(c)?Es(c):c}return $(l)?i?Es(l):Ws(l):l}}class si extends ti{constructor(t=!1){super(!1,t)}set(t,s,n,i){let r=t[s];if(!this._isShallow){const c=Le(r);if(!ue(n)&&!Le(n)&&(r=j(r),n=j(n)),!O(t)&&Y(r)&&!Y(n))return c||(r.value=n),!0}const o=O(t)&&Hs(s)?Number(s)e,Ht=e=>Reflect.getPrototypeOf(e);function xr(e,t,s){return function(...n){const i=this.__v_raw,r=j(i),o=st(r),l=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,h=i[e](...n),a=s?Ts:t?Gt:z;return!t&&Q(r,"iterate",c?Cs:ze),{next(){const{value:p,done:w}=h.next();return w?{value:p,done:w}:{value:l?[a(p[0]),a(p[1])]:a(p),done:w}},[Symbol.iterator](){return this}}}}function Nt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function vr(e,t){const s={get(i){const r=this.__v_raw,o=j(r),l=j(i);e||(Ve(i,l)&&Q(o,"get",i),Q(o,"get",l));const{has:c}=Ht(o),h=t?Ts:e?Gt:z;if(c.call(o,i))return h(r.get(i));if(c.call(o,l))return h(r.get(l));r!==o&&r.get(i)},get size(){const i=this.__v_raw;return!e&&Q(j(i),"iterate",ze),i.size},has(i){const r=this.__v_raw,o=j(r),l=j(i);return e||(Ve(i,l)&&Q(o,"has",i),Q(o,"has",l)),i===l?r.has(i):r.has(i)||r.has(l)},forEach(i,r){const o=this,l=o.__v_raw,c=j(l),h=t?Ts:e?Gt:z;return!e&&Q(c,"iterate",ze),l.forEach((a,p)=>i.call(r,h(a),h(p),o))}};return X(s,e?{add:Nt("add"),set:Nt("set"),delete:Nt("delete"),clear:Nt("clear")}:{add(i){!t&&!ue(i)&&!Le(i)&&(i=j(i));const r=j(this);return Ht(r).has.call(r,i)||(r.add(i),Ae(r,"add",i,i)),this},set(i,r){!t&&!ue(r)&&!Le(r)&&(r=j(r));const o=j(this),{has:l,get:c}=Ht(o);let h=l.call(o,i);h||(i=j(i),h=l.call(o,i));const a=c.call(o,i);return o.set(i,r),h?Ve(r,a)&&Ae(o,"set",i,r):Ae(o,"add",i,r),this},delete(i){const r=j(this),{has:o,get:l}=Ht(r);let c=o.call(r,i);c||(i=j(i),c=o.call(r,i)),l&&l.call(r,i);const h=r.delete(i);return c&&Ae(r,"delete",i,void 0),h},clear(){const i=j(this),r=i.size!==0,o=i.clear();return r&&Ae(i,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{s[i]=xr(i,e,t)}),s}function is(e,t){const s=vr(e,t);return(n,i,r)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(H(s,i)&&i in n?s:n,i,r)}const Sr={get:is(!1,!1)},wr={get:is(!1,!0)},Cr={get:is(!0,!1)},Tr={get:is(!0,!0)},ii=new WeakMap,ri=new WeakMap,oi=new WeakMap,li=new WeakMap;function Er(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Or(e){return e.__v_skip||!Object.isExtensible(e)?0:Er(Qi(e))}function Ws(e){return Le(e)?e:rs(e,!1,_r,Sr,ii)}function Ar(e){return rs(e,!1,br,wr,ri)}function Es(e){return rs(e,!0,mr,Cr,oi)}function Ol(e){return rs(e,!0,yr,Tr,li)}function rs(e,t,s,n,i){if(!$(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=Or(e);if(r===0)return e;const o=i.get(e);if(o)return o;const l=new Proxy(e,r===2?n:s);return i.set(e,l),l}function nt(e){return Le(e)?nt(e.__v_raw):!!(e&&e.__v_isReactive)}function Le(e){return!!(e&&e.__v_isReadonly)}function ue(e){return!!(e&&e.__v_isShallow)}function qs(e){return e?!!e.__v_raw:!1}function j(e){const t=e&&e.__v_raw;return t?j(t):e}function Mr(e){return!H(e,"__v_skip")&&Object.isExtensible(e)&&Kn(e,"__v_skip",!0),e}const z=e=>$(e)?Ws(e):e,Gt=e=>$(e)?Es(e):e;function Y(e){return e?e.__v_isRef===!0:!1}function Rr(e){return fi(e,!1)}function Al(e){return fi(e,!0)}function fi(e,t){return Y(e)?e:new Pr(e,t)}class Pr{constructor(t,s){this.dep=new Bs,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:j(t),this._value=s?t:z(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||ue(t)||Le(t);t=n?t:j(t),Ve(t,s)&&(this._rawValue=t,this._value=n?t:z(t),this.dep.trigger())}}function ci(e){return Y(e)?e.value:e}function Ml(e){return R(e)?e():ci(e)}const Ir={get:(e,t,s)=>t==="__v_raw"?e:ci(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const i=e[t];return Y(i)&&!Y(s)?(i.value=s,!0):Reflect.set(e,t,s,n)}};function ui(e){return nt(e)?e:new Proxy(e,Ir)}function Rl(e){const t=O(e)?new Array(e.length):{};for(const s in e)t[s]=ai(e,s);return t}class Fr{constructor(t,s,n){this._object=t,this._key=s,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return ar(j(this._object),this._key)}}class Dr{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Pl(e,t,s){return Y(e)?e:R(e)?new Dr(e):$(e)&&arguments.length>1?ai(e,t,s):Rr(e)}function ai(e,t,s){const n=e[t];return Y(n)?n:new Fr(e,t,s)}class jr{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new Bs(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=wt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&U!==this)return Yn(this,!0),!0}get value(){const t=this.dep.track();return Qn(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Hr(e,t,s=!1){let n,i;return R(e)?n=e:(n=e.get,i=e.set),new jr(n,i,s)}const Vt={},Jt=new WeakMap;let Ye;function Nr(e,t=!1,s=Ye){if(s){let n=Jt.get(s);n||Jt.set(s,n=[]),n.push(e)}}function Vr(e,t,s=V){const{immediate:n,deep:i,once:r,scheduler:o,augmentJob:l,call:c}=s,h=A=>i?A:ue(A)||i===!1||i===0?Me(A,1):Me(A);let a,p,w,C,P=!1,F=!1;if(Y(e)?(p=()=>e.value,P=ue(e)):nt(e)?(p=()=>h(e),P=!0):O(e)?(F=!0,P=e.some(A=>nt(A)||ue(A)),p=()=>e.map(A=>{if(Y(A))return A.value;if(nt(A))return h(A);if(R(A))return c?c(A,2):A()})):R(e)?t?p=c?()=>c(e,2):e:p=()=>{if(w){Pe();try{w()}finally{Ie()}}const A=Ye;Ye=a;try{return c?c(e,3,[C]):e(C)}finally{Ye=A}}:p=ve,t&&i){const A=p,J=i===!0?1/0:i;p=()=>Me(A(),J)}const Z=fr(),D=()=>{a.stop(),Z&&Z.active&&js(Z.effects,a)};if(r&&t){const A=t;t=(...J)=>{A(...J),D()}}let B=F?new Array(e.length).fill(Vt):Vt;const q=A=>{if(!(!(a.flags&1)||!a.dirty&&!A))if(t){const J=a.run();if(i||P||(F?J.some((De,he)=>Ve(De,B[he])):Ve(J,B))){w&&w();const De=Ye;Ye=a;try{const he=[J,B===Vt?void 0:F&&B[0]===Vt?[]:B,C];B=J,c?c(t,3,he):t(...he)}finally{Ye=De}}}else a.run()};return l&&l(q),a=new Gn(p),a.scheduler=o?()=>o(q,!1):q,C=A=>Nr(A,!1,a),w=a.onStop=()=>{const A=Jt.get(a);if(A){if(c)c(A,4);else for(const J of A)J();Jt.delete(a)}},t?n?q(!0):B=a.run():o?o(q.bind(null,!0),!0):a.run(),D.pause=a.pause.bind(a),D.resume=a.resume.bind(a),D.stop=D,D}function Me(e,t=1/0,s){if(t<=0||!$(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,Y(e))Me(e.value,t,s);else if(O(e))for(let n=0;n{Me(n,t,s)});else if($n(e)){for(const n in e)Me(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&Me(e[n],t,s)}return e}/** * @vue/runtime-core v3.5.22 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function Mt(e,t,s,n){try{return n?e(...n):e()}catch(i){os(i,t,s)}}function we(e,t,s,n){if(R(e)){const i=Mt(e,t,s,n);return i&&Nn(i)&&i.catch(r=>{os(r,t,s)}),i}if(O(e)){const i=[];for(let r=0;r>>1,i=se[n],r=wt(i);r=wt(s)?se.push(e):se.splice(Lr(t),0,e),e.flags|=1,pi()}}function pi(){Yt||(Yt=di.then(_i))}function Kr(e){O(e)?st.push(...e):je&&e.id===-1?je.splice(Ze+1,0,e):e.flags&1||(st.push(e),e.flags|=1),pi()}function cn(e,t,s=be+1){for(;swt(s)-wt(n));if(st.length=0,je){je.push(...t);return}for(je=t,Ze=0;Zee.id==null?e.flags&2?-1:1/0:e.id;function _i(e){try{for(be=0;be{n._d&&yn(-1);const r=zt(t);let o;try{o=e(...i)}finally{zt(r),n._d&&yn(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function Il(e,t){if(ce===null)return e;const s=us(ce),n=e.dirs||(e.dirs=[]);for(let i=0;ie.__isTeleport,qr=Symbol("_leaveCb");function Js(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Js(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Fl(e,t){return R(e)?Z({name:e.name},t,{setup:e}):e}function bi(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const kt=new WeakMap;function mt(e,t,s,n,i=!1){if(O(e)){e.forEach((P,F)=>mt(P,t&&(O(t)?t[F]:t),s,n,i));return}if(bt(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&mt(e,t,s,n.component.subTree);return}const r=n.shapeFlag&4?us(n.component):n.el,o=i?null:r,{i:l,r:c}=e,h=t&&t.r,a=l.refs===V?l.refs={}:l.refs,p=l.setupState,w=j(p),C=p===V?Hn:P=>H(w,P);if(h!=null&&h!==c){if(un(t),G(h))a[h]=null,C(h)&&(p[h]=null);else if(Y(h)){h.value=null;const P=t;P.k&&(a[P.k]=null)}}if(R(c))Mt(c,l,12,[o,a]);else{const P=G(c),F=Y(c);if(P||F){const Q=()=>{if(e.f){const D=P?C(c)?p[c]:a[c]:c.value;if(i)O(D)&&js(D,r);else if(O(D))D.includes(r)||D.push(r);else if(P)a[c]=[r],C(c)&&(p[c]=a[c]);else{const B=[r];c.value=B,e.k&&(a[e.k]=B)}}else P?(a[c]=o,C(c)&&(p[c]=o)):F&&(c.value=o,e.k&&(a[e.k]=o))};if(o){const D=()=>{Q(),kt.delete(e)};D.id=-1,kt.set(e,D),le(D,s)}else un(e),Q()}}}function un(e){const t=kt.get(e);t&&(t.flags|=8,kt.delete(e))}ss().requestIdleCallback;ss().cancelIdleCallback;const bt=e=>!!e.type.__asyncLoader,yi=e=>e.type.__isKeepAlive;function Gr(e,t){xi(e,"a",t)}function Jr(e,t){xi(e,"da",t)}function xi(e,t,s=ne){const n=e.__wdc||(e.__wdc=()=>{let i=s;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(ls(t,n,s),s){let i=s.parent;for(;i&&i.parent;)yi(i.parent.vnode)&&Yr(n,t,s,i),i=i.parent}}function Yr(e,t,s,n){const i=ls(t,e,n,!0);vi(()=>{js(n[t],i)},s)}function ls(e,t,s=ne,n=!1){if(s){const i=s[e]||(s[e]=[]),r=t.__weh||(t.__weh=(...o)=>{Re();const l=Rt(s),c=we(t,s,e,o);return l(),Pe(),c});return n?i.unshift(r):i.push(r),r}}const Ie=e=>(t,s=ne)=>{(!Tt||e==="sp")&&ls(e,(...n)=>t(...n),s)},zr=Ie("bm"),kr=Ie("m"),Xr=Ie("bu"),Zr=Ie("u"),Qr=Ie("bum"),vi=Ie("um"),eo=Ie("sp"),to=Ie("rtg"),so=Ie("rtc");function no(e,t=ne){ls("ec",e,t)}const io=Symbol.for("v-ndc");function Dl(e,t,s,n){let i;const r=s,o=O(e);if(o||G(e)){const l=o&&tt(e);let c=!1,h=!1;l&&(c=!ue(e),h=Le(e),e=ns(e)),i=new Array(e.length);for(let a=0,p=e.length;at(l,c,void 0,r));else{const l=Object.keys(e);i=new Array(l.length);for(let c=0,h=l.length;ce?Bi(e)?us(e):Os(e.parent):null,yt=Z(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Os(e.parent),$root:e=>Os(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>wi(e),$forceUpdate:e=>e.f||(e.f=()=>{Gs(e.update)}),$nextTick:e=>e.n||(e.n=hi.bind(e.proxy)),$watch:e=>Oo.bind(e)}),bs=(e,t)=>e!==V&&!e.__isScriptSetup&&H(e,t),ro={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:i,props:r,accessCache:o,type:l,appContext:c}=e;let h;if(t[0]!=="$"){const C=o[t];if(C!==void 0)switch(C){case 1:return n[t];case 2:return i[t];case 4:return s[t];case 3:return r[t]}else{if(bs(n,t))return o[t]=1,n[t];if(i!==V&&H(i,t))return o[t]=2,i[t];if((h=e.propsOptions[0])&&H(h,t))return o[t]=3,r[t];if(s!==V&&H(s,t))return o[t]=4,s[t];As&&(o[t]=0)}}const a=yt[t];let p,w;if(a)return t==="$attrs"&&X(e.attrs,"get",""),a(e);if((p=l.__cssModules)&&(p=p[t]))return p;if(s!==V&&H(s,t))return o[t]=4,s[t];if(w=c.config.globalProperties,H(w,t))return w[t]},set({_:e},t,s){const{data:n,setupState:i,ctx:r}=e;return bs(i,t)?(i[t]=s,!0):n!==V&&H(n,t)?(n[t]=s,!0):H(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:i,propsOptions:r,type:o}},l){let c,h;return!!(s[l]||e!==V&&l[0]!=="$"&&H(e,l)||bs(t,l)||(c=r[0])&&H(c,l)||H(n,l)||H(yt,l)||H(i.config.globalProperties,l)||(h=o.__cssModules)&&h[l])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:H(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function an(e){return O(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let As=!0;function oo(e){const t=wi(e),s=e.proxy,n=e.ctx;As=!1,t.beforeCreate&&dn(t.beforeCreate,e,"bc");const{data:i,computed:r,methods:o,watch:l,provide:c,inject:h,created:a,beforeMount:p,mounted:w,beforeUpdate:C,updated:P,activated:F,deactivated:Q,beforeDestroy:D,beforeUnmount:B,destroyed:q,unmounted:A,render:J,renderTracked:Fe,renderTriggered:de,errorCaptured:De,serverPrefetch:Pt,expose:Ue,inheritAttrs:ot,components:It,directives:Ft,filters:as}=t;if(h&&lo(h,n,null),o)for(const W in o){const L=o[W];R(L)&&(n[W]=L.bind(s))}if(i){const W=i.call(s,s);$(W)&&(e.data=Ws(W))}if(As=!0,r)for(const W in r){const L=r[W],Be=R(L)?L.bind(s,s):R(L.get)?L.get.bind(s,s):xe,Dt=!R(L)&&R(L.set)?L.set.bind(s):xe,We=Xo({get:Be,set:Dt});Object.defineProperty(n,W,{enumerable:!0,configurable:!0,get:()=>We.value,set:he=>We.value=he})}if(l)for(const W in l)Si(l[W],n,s,W);if(c){const W=R(c)?c.call(s):c;Reflect.ownKeys(W).forEach(L=>{po(L,W[L])})}a&&dn(a,e,"c");function ee(W,L){O(L)?L.forEach(Be=>W(Be.bind(s))):L&&W(L.bind(s))}if(ee(zr,p),ee(kr,w),ee(Xr,C),ee(Zr,P),ee(Gr,F),ee(Jr,Q),ee(no,De),ee(so,Fe),ee(to,de),ee(Qr,B),ee(vi,A),ee(eo,Pt),O(Ue))if(Ue.length){const W=e.exposed||(e.exposed={});Ue.forEach(L=>{Object.defineProperty(W,L,{get:()=>s[L],set:Be=>s[L]=Be,enumerable:!0})})}else e.exposed||(e.exposed={});J&&e.render===xe&&(e.render=J),ot!=null&&(e.inheritAttrs=ot),It&&(e.components=It),Ft&&(e.directives=Ft),Pt&&bi(e)}function lo(e,t,s=xe){O(e)&&(e=Ms(e));for(const n in e){const i=e[n];let r;$(i)?"default"in i?r=Lt(i.from||n,i.default,!0):r=Lt(i.from||n):r=Lt(i),Y(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):t[n]=r}}function dn(e,t,s){we(O(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function Si(e,t,s,n){let i=n.includes(".")?ji(s,n):()=>s[n];if(G(e)){const r=t[e];R(r)&&xs(i,r)}else if(R(e))xs(i,e.bind(s));else if($(e))if(O(e))e.forEach(r=>Si(r,t,s,n));else{const r=R(e.handler)?e.handler.bind(s):t[e.handler];R(r)&&xs(i,r,e)}}function wi(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:i,optionsCache:r,config:{optionMergeStrategies:o}}=e.appContext,l=r.get(t);let c;return l?c=l:!i.length&&!s&&!n?c=t:(c={},i.length&&i.forEach(h=>Xt(c,h,o,!0)),Xt(c,t,o)),$(t)&&r.set(t,c),c}function Xt(e,t,s,n=!1){const{mixins:i,extends:r}=t;r&&Xt(e,r,s,!0),i&&i.forEach(o=>Xt(e,o,s,!0));for(const o in t)if(!(n&&o==="expose")){const l=fo[o]||s&&s[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const fo={data:hn,props:pn,emits:pn,methods:ht,computed:ht,beforeCreate:te,created:te,beforeMount:te,mounted:te,beforeUpdate:te,updated:te,beforeDestroy:te,beforeUnmount:te,destroyed:te,unmounted:te,activated:te,deactivated:te,errorCaptured:te,serverPrefetch:te,components:ht,directives:ht,watch:uo,provide:hn,inject:co};function hn(e,t){return t?e?function(){return Z(R(e)?e.call(this,this):e,R(t)?t.call(this,this):t)}:t:e}function co(e,t){return ht(Ms(e),Ms(t))}function Ms(e){if(O(e)){const t={};for(let s=0;s1)return s&&R(t)?t.call(n&&n.proxy):t}}function jl(){return!!(Ui()||ze)}const Ti={},Ei=()=>Object.create(Ti),Oi=e=>Object.getPrototypeOf(e)===Ti;function go(e,t,s,n=!1){const i={},r=Ei();e.propsDefaults=Object.create(null),Ai(e,t,i,r);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);s?e.props=n?i:Ar(i):e.type.props?e.props=i:e.props=r,e.attrs=r}function _o(e,t,s,n){const{props:i,attrs:r,vnode:{patchFlag:o}}=e,l=j(i),[c]=e.propsOptions;let h=!1;if((n||o>0)&&!(o&16)){if(o&8){const a=e.vnode.dynamicProps;for(let p=0;p{c=!0;const[w,C]=Mi(p,t,!0);Z(o,w),C&&l.push(...C)};!s&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!r&&!c)return $(e)&&n.set(e,Qe),Qe;if(O(r))for(let a=0;ae==="_"||e==="_ctx"||e==="$stable",zs=e=>O(e)?e.map(ye):[ye(e)],bo=(e,t,s)=>{if(t._n)return t;const n=Ur((...i)=>zs(t(...i)),s);return n._c=!1,n},Ri=(e,t,s)=>{const n=e._ctx;for(const i in e){if(Ys(i))continue;const r=e[i];if(R(r))t[i]=bo(i,r,n);else if(r!=null){const o=zs(r);t[i]=()=>o}}},Pi=(e,t)=>{const s=zs(t);e.slots.default=()=>s},Ii=(e,t,s)=>{for(const n in t)(s||!Ys(n))&&(e[n]=t[n])},yo=(e,t,s)=>{const n=e.slots=Ei();if(e.vnode.shapeFlag&32){const i=t._;i?(Ii(n,t,s),s&&Kn(n,"_",i,!0)):Ri(t,n)}else t&&Pi(e,t)},xo=(e,t,s)=>{const{vnode:n,slots:i}=e;let r=!0,o=V;if(n.shapeFlag&32){const l=t._;l?s&&l===1?r=!1:Ii(i,t,s):(r=!t.$stable,Ri(t,i)),o=t}else t&&(Pi(e,t),o={default:1});if(r)for(const l in i)!Ys(l)&&o[l]==null&&delete i[l]},le=jo;function vo(e){return So(e)}function So(e,t){const s=ss();s.__VUE__=!0;const{insert:n,remove:i,patchProp:r,createElement:o,createText:l,createComment:c,setText:h,setElementText:a,parentNode:p,nextSibling:w,setScopeId:C=xe,insertStaticContent:P}=e,F=(f,u,d,m=null,g=null,_=null,v=void 0,x=null,y=!!u.dynamicChildren)=>{if(f===u)return;f&&!at(f,u)&&(m=jt(f),he(f,g,_,!0),f=null),u.patchFlag===-2&&(y=!1,u.dynamicChildren=null);const{type:b,ref:E,shapeFlag:S}=u;switch(b){case cs:Q(f,u,d,m);break;case Ke:D(f,u,d,m);break;case Kt:f==null&&B(u,d,m,v);break;case Ee:It(f,u,d,m,g,_,v,x,y);break;default:S&1?J(f,u,d,m,g,_,v,x,y):S&6?Ft(f,u,d,m,g,_,v,x,y):(S&64||S&128)&&b.process(f,u,d,m,g,_,v,x,y,ft)}E!=null&&g?mt(E,f&&f.ref,_,u||f,!u):E==null&&f&&f.ref!=null&&mt(f.ref,null,_,f,!0)},Q=(f,u,d,m)=>{if(f==null)n(u.el=l(u.children),d,m);else{const g=u.el=f.el;u.children!==f.children&&h(g,u.children)}},D=(f,u,d,m)=>{f==null?n(u.el=c(u.children||""),d,m):u.el=f.el},B=(f,u,d,m)=>{[f.el,f.anchor]=P(f.children,u,d,m,f.el,f.anchor)},q=({el:f,anchor:u},d,m)=>{let g;for(;f&&f!==u;)g=w(f),n(f,d,m),f=g;n(u,d,m)},A=({el:f,anchor:u})=>{let d;for(;f&&f!==u;)d=w(f),i(f),f=d;i(u)},J=(f,u,d,m,g,_,v,x,y)=>{u.type==="svg"?v="svg":u.type==="math"&&(v="mathml"),f==null?Fe(u,d,m,g,_,v,x,y):Pt(f,u,g,_,v,x,y)},Fe=(f,u,d,m,g,_,v,x)=>{let y,b;const{props:E,shapeFlag:S,transition:T,dirs:M}=f;if(y=f.el=o(f.type,_,E&&E.is,E),S&8?a(y,f.children):S&16&&De(f.children,y,null,m,g,ys(f,_),v,x),M&&qe(f,null,m,"created"),de(y,f,f.scopeId,v,m),E){for(const K in E)K!=="value"&&!pt(K)&&r(y,K,null,E[K],_,m);"value"in E&&r(y,"value",null,E.value,_),(b=E.onVnodeBeforeMount)&&me(b,m,f)}M&&qe(f,null,m,"beforeMount");const I=wo(g,T);I&&T.beforeEnter(y),n(y,u,d),((b=E&&E.onVnodeMounted)||I||M)&&le(()=>{b&&me(b,m,f),I&&T.enter(y),M&&qe(f,null,m,"mounted")},g)},de=(f,u,d,m,g)=>{if(d&&C(f,d),m)for(let _=0;_{for(let b=y;b{const x=u.el=f.el;let{patchFlag:y,dynamicChildren:b,dirs:E}=u;y|=f.patchFlag&16;const S=f.props||V,T=u.props||V;let M;if(d&&Ge(d,!1),(M=T.onVnodeBeforeUpdate)&&me(M,d,u,f),E&&qe(u,f,d,"beforeUpdate"),d&&Ge(d,!0),(S.innerHTML&&T.innerHTML==null||S.textContent&&T.textContent==null)&&a(x,""),b?Ue(f.dynamicChildren,b,x,d,m,ys(u,g),_):v||L(f,u,x,null,d,m,ys(u,g),_,!1),y>0){if(y&16)ot(x,S,T,d,g);else if(y&2&&S.class!==T.class&&r(x,"class",null,T.class,g),y&4&&r(x,"style",S.style,T.style,g),y&8){const I=u.dynamicProps;for(let K=0;K{M&&me(M,d,u,f),E&&qe(u,f,d,"updated")},m)},Ue=(f,u,d,m,g,_,v)=>{for(let x=0;x{if(u!==d){if(u!==V)for(const _ in u)!pt(_)&&!(_ in d)&&r(f,_,u[_],null,g,m);for(const _ in d){if(pt(_))continue;const v=d[_],x=u[_];v!==x&&_!=="value"&&r(f,_,x,v,g,m)}"value"in d&&r(f,"value",u.value,d.value,g)}},It=(f,u,d,m,g,_,v,x,y)=>{const b=u.el=f?f.el:l(""),E=u.anchor=f?f.anchor:l("");let{patchFlag:S,dynamicChildren:T,slotScopeIds:M}=u;M&&(x=x?x.concat(M):M),f==null?(n(b,d,m),n(E,d,m),De(u.children||[],d,E,g,_,v,x,y)):S>0&&S&64&&T&&f.dynamicChildren?(Ue(f.dynamicChildren,T,d,g,_,v,x),(u.key!=null||g&&u===g.subTree)&&Fi(f,u,!0)):L(f,u,d,E,g,_,v,x,y)},Ft=(f,u,d,m,g,_,v,x,y)=>{u.slotScopeIds=x,f==null?u.shapeFlag&512?g.ctx.activate(u,d,m,v,y):as(u,d,m,g,_,v,y):Zs(f,u,y)},as=(f,u,d,m,g,_,v)=>{const x=f.component=qo(f,m,g);if(yi(f)&&(x.ctx.renderer=ft),Go(x,!1,v),x.asyncDep){if(g&&g.registerDep(x,ee,v),!f.el){const y=x.subTree=ve(Ke);D(null,y,u,d),f.placeholder=y.el}}else ee(x,f,u,d,g,_,v)},Zs=(f,u,d)=>{const m=u.component=f.component;if(Fo(f,u,d))if(m.asyncDep&&!m.asyncResolved){W(m,u,d);return}else m.next=u,m.update();else u.el=f.el,m.vnode=u},ee=(f,u,d,m,g,_,v)=>{const x=()=>{if(f.isMounted){let{next:S,bu:T,u:M,parent:I,vnode:K}=f;{const ge=Di(f);if(ge){S&&(S.el=K.el,W(f,S,v)),ge.asyncDep.then(()=>{f.isUnmounted||x()});return}}let N=S,ie;Ge(f,!1),S?(S.el=K.el,W(f,S,v)):S=K,T&&$t(T),(ie=S.props&&S.props.onVnodeBeforeUpdate)&&me(ie,I,S,K),Ge(f,!0);const re=mn(f),pe=f.subTree;f.subTree=re,F(pe,re,p(pe.el),jt(pe),f,g,_),S.el=re.el,N===null&&Do(f,re.el),M&&le(M,g),(ie=S.props&&S.props.onVnodeUpdated)&&le(()=>me(ie,I,S,K),g)}else{let S;const{el:T,props:M}=u,{bm:I,m:K,parent:N,root:ie,type:re}=f,pe=bt(u);Ge(f,!1),I&&$t(I),!pe&&(S=M&&M.onVnodeBeforeMount)&&me(S,N,u),Ge(f,!0);{ie.ce&&ie.ce._def.shadowRoot!==!1&&ie.ce._injectChildStyle(re);const ge=f.subTree=mn(f);F(null,ge,d,m,f,g,_),u.el=ge.el}if(K&&le(K,g),!pe&&(S=M&&M.onVnodeMounted)){const ge=u;le(()=>me(S,N,ge),g)}(u.shapeFlag&256||N&&bt(N.vnode)&&N.vnode.shapeFlag&256)&&f.a&&le(f.a,g),f.isMounted=!0,u=d=m=null}};f.scope.on();const y=f.effect=new Gn(x);f.scope.off();const b=f.update=y.run.bind(y),E=f.job=y.runIfDirty.bind(y);E.i=f,E.id=f.uid,y.scheduler=()=>Gs(E),Ge(f,!0),b()},W=(f,u,d)=>{u.component=f;const m=f.vnode.props;f.vnode=u,f.next=null,_o(f,u.props,m,d),xo(f,u.children,d),Re(),cn(f),Pe()},L=(f,u,d,m,g,_,v,x,y=!1)=>{const b=f&&f.children,E=f?f.shapeFlag:0,S=u.children,{patchFlag:T,shapeFlag:M}=u;if(T>0){if(T&128){Dt(b,S,d,m,g,_,v,x,y);return}else if(T&256){Be(b,S,d,m,g,_,v,x,y);return}}M&8?(E&16&<(b,g,_),S!==b&&a(d,S)):E&16?M&16?Dt(b,S,d,m,g,_,v,x,y):lt(b,g,_,!0):(E&8&&a(d,""),M&16&&De(S,d,m,g,_,v,x,y))},Be=(f,u,d,m,g,_,v,x,y)=>{f=f||Qe,u=u||Qe;const b=f.length,E=u.length,S=Math.min(b,E);let T;for(T=0;TE?lt(f,g,_,!0,!1,S):De(u,d,m,g,_,v,x,y,S)},Dt=(f,u,d,m,g,_,v,x,y)=>{let b=0;const E=u.length;let S=f.length-1,T=E-1;for(;b<=S&&b<=T;){const M=f[b],I=u[b]=y?He(u[b]):ye(u[b]);if(at(M,I))F(M,I,d,null,g,_,v,x,y);else break;b++}for(;b<=S&&b<=T;){const M=f[S],I=u[T]=y?He(u[T]):ye(u[T]);if(at(M,I))F(M,I,d,null,g,_,v,x,y);else break;S--,T--}if(b>S){if(b<=T){const M=T+1,I=MT)for(;b<=S;)he(f[b],g,_,!0),b++;else{const M=b,I=b,K=new Map;for(b=I;b<=T;b++){const oe=u[b]=y?He(u[b]):ye(u[b]);oe.key!=null&&K.set(oe.key,b)}let N,ie=0;const re=T-I+1;let pe=!1,ge=0;const ct=new Array(re);for(b=0;b=re){he(oe,g,_,!0);continue}let _e;if(oe.key!=null)_e=K.get(oe.key);else for(N=I;N<=T;N++)if(ct[N-I]===0&&at(oe,u[N])){_e=N;break}_e===void 0?he(oe,g,_,!0):(ct[_e-I]=b+1,_e>=ge?ge=_e:pe=!0,F(oe,u[_e],d,null,g,_,v,x,y),ie++)}const tn=pe?Co(ct):Qe;for(N=tn.length-1,b=re-1;b>=0;b--){const oe=I+b,_e=u[oe],sn=u[oe+1],nn=oe+1{const{el:_,type:v,transition:x,children:y,shapeFlag:b}=f;if(b&6){We(f.component.subTree,u,d,m);return}if(b&128){f.suspense.move(u,d,m);return}if(b&64){v.move(f,u,d,ft);return}if(v===Ee){n(_,u,d);for(let S=0;Sx.enter(_),g);else{const{leave:S,delayLeave:T,afterLeave:M}=x,I=()=>{f.ctx.isUnmounted?i(_):n(_,u,d)},K=()=>{_._isLeaving&&_[qr](!0),S(_,()=>{I(),M&&M()})};T?T(_,I,K):K()}else n(_,u,d)},he=(f,u,d,m=!1,g=!1)=>{const{type:_,props:v,ref:x,children:y,dynamicChildren:b,shapeFlag:E,patchFlag:S,dirs:T,cacheIndex:M}=f;if(S===-2&&(g=!1),x!=null&&(Re(),mt(x,null,d,f,!0),Pe()),M!=null&&(u.renderCache[M]=void 0),E&256){u.ctx.deactivate(f);return}const I=E&1&&T,K=!bt(f);let N;if(K&&(N=v&&v.onVnodeBeforeUnmount)&&me(N,u,f),E&6)zi(f.component,d,m);else{if(E&128){f.suspense.unmount(d,m);return}I&&qe(f,null,u,"beforeUnmount"),E&64?f.type.remove(f,u,d,ft,m):b&&!b.hasOnce&&(_!==Ee||S>0&&S&64)?lt(b,u,d,!1,!0):(_===Ee&&S&384||!g&&E&16)&<(y,u,d),m&&Qs(f)}(K&&(N=v&&v.onVnodeUnmounted)||I)&&le(()=>{N&&me(N,u,f),I&&qe(f,null,u,"unmounted")},d)},Qs=f=>{const{type:u,el:d,anchor:m,transition:g}=f;if(u===Ee){Yi(d,m);return}if(u===Kt){A(f);return}const _=()=>{i(d),g&&!g.persisted&&g.afterLeave&&g.afterLeave()};if(f.shapeFlag&1&&g&&!g.persisted){const{leave:v,delayLeave:x}=g,y=()=>v(d,_);x?x(f.el,_,y):y()}else _()},Yi=(f,u)=>{let d;for(;f!==u;)d=w(f),i(f),f=d;i(u)},zi=(f,u,d)=>{const{bum:m,scope:g,job:_,subTree:v,um:x,m:y,a:b}=f;_n(y),_n(b),m&&$t(m),g.stop(),_&&(_.flags|=8,he(v,f,u,d)),x&&le(x,u),le(()=>{f.isUnmounted=!0},u)},lt=(f,u,d,m=!1,g=!1,_=0)=>{for(let v=_;v{if(f.shapeFlag&6)return jt(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const u=w(f.anchor||f.el),d=u&&u[Br];return d?w(d):u};let ds=!1;const en=(f,u,d)=>{f==null?u._vnode&&he(u._vnode,null,null,!0):F(u._vnode||null,f,u,null,null,null,d),u._vnode=f,ds||(ds=!0,cn(),gi(),ds=!1)},ft={p:F,um:he,m:We,r:Qs,mt:as,mc:De,pc:L,pbc:Ue,n:jt,o:e};return{render:en,hydrate:void 0,createApp:ho(en)}}function ys({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function Ge({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function wo(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Fi(e,t,s=!1){const n=e.children,i=t.children;if(O(n)&&O(i))for(let r=0;r>1,e[s[l]]0&&(t[n]=s[r-1]),s[r]=n)}}for(r=s.length,o=s[r-1];r-- >0;)s[r]=o,o=t[o];return s}function Di(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Di(t)}function _n(e){if(e)for(let t=0;tLt(To);function Hl(e,t){return ks(e,null,t)}function xs(e,t,s){return ks(e,t,s)}function ks(e,t,s=V){const{immediate:n,deep:i,flush:r,once:o}=s,l=Z({},s),c=t&&n||!t&&r!=="post";let h;if(Tt){if(r==="sync"){const C=Eo();h=C.__watcherHandles||(C.__watcherHandles=[])}else if(!c){const C=()=>{};return C.stop=xe,C.resume=xe,C.pause=xe,C}}const a=ne;l.call=(C,P,F)=>we(C,a,P,F);let p=!1;r==="post"?l.scheduler=C=>{le(C,a&&a.suspense)}:r!=="sync"&&(p=!0,l.scheduler=(C,P)=>{P?C():Gs(C)}),l.augmentJob=C=>{t&&(C.flags|=4),p&&(C.flags|=2,a&&(C.id=a.uid,C.i=a))};const w=Vr(e,t,l);return Tt&&(h?h.push(w):c&&w()),w}function Oo(e,t,s){const n=this.proxy,i=G(e)?e.includes(".")?ji(n,e):()=>n[e]:e.bind(n,n);let r;R(t)?r=t:(r=t.handler,s=t);const o=Rt(this),l=ks(i,r.bind(n),s);return o(),l}function ji(e,t){const s=t.split(".");return()=>{let n=e;for(let i=0;it==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${$e(t)}Modifiers`]||e[`${ke(t)}Modifiers`];function Mo(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||V;let i=s;const r=t.startsWith("update:"),o=r&&Ao(n,t.slice(7));o&&(o.trim&&(i=s.map(a=>G(a)?a.trim():a)),o.number&&(i=s.map(Wt)));let l,c=n[l=hs(t)]||n[l=hs($e(t))];!c&&r&&(c=n[l=hs(ke(t))]),c&&we(c,e,6,i);const h=n[l+"Once"];if(h){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,we(h,e,6,i)}}const Ro=new WeakMap;function Hi(e,t,s=!1){const n=s?Ro:t.emitsCache,i=n.get(e);if(i!==void 0)return i;const r=e.emits;let o={},l=!1;if(!R(e)){const c=h=>{const a=Hi(h,t,!0);a&&(l=!0,Z(o,a))};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!r&&!l?($(e)&&n.set(e,null),null):(O(r)?r.forEach(c=>o[c]=null):Z(o,r),$(e)&&n.set(e,o),o)}function fs(e,t){return!e||!es(t)?!1:(t=t.slice(2).replace(/Once$/,""),H(e,t[0].toLowerCase()+t.slice(1))||H(e,ke(t))||H(e,t))}function mn(e){const{type:t,vnode:s,proxy:n,withProxy:i,propsOptions:[r],slots:o,attrs:l,emit:c,render:h,renderCache:a,props:p,data:w,setupState:C,ctx:P,inheritAttrs:F}=e,Q=zt(e);let D,B;try{if(s.shapeFlag&4){const A=i||n,J=A;D=ye(h.call(J,A,a,p,C,w,P)),B=l}else{const A=t;D=ye(A.length>1?A(p,{attrs:l,slots:o,emit:c}):A(p,null)),B=t.props?l:Po(l)}}catch(A){xt.length=0,os(A,e,1),D=ve(Ke)}let q=D;if(B&&F!==!1){const A=Object.keys(B),{shapeFlag:J}=q;A.length&&J&7&&(r&&A.some(Ds)&&(B=Io(B,r)),q=nt(q,B,!1,!0))}return s.dirs&&(q=nt(q,null,!1,!0),q.dirs=q.dirs?q.dirs.concat(s.dirs):s.dirs),s.transition&&Js(q,s.transition),D=q,zt(Q),D}const Po=e=>{let t;for(const s in e)(s==="class"||s==="style"||es(s))&&((t||(t={}))[s]=e[s]);return t},Io=(e,t)=>{const s={};for(const n in e)(!Ds(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function Fo(e,t,s){const{props:n,children:i,component:r}=e,{props:o,children:l,patchFlag:c}=t,h=r.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&c>=0){if(c&1024)return!0;if(c&16)return n?bn(n,o,h):!!o;if(c&8){const a=t.dynamicProps;for(let p=0;pe.__isSuspense;function jo(e,t){t&&t.pendingBranch?O(e)?t.effects.push(...e):t.effects.push(e):Kr(e)}const Ee=Symbol.for("v-fgt"),cs=Symbol.for("v-txt"),Ke=Symbol.for("v-cmt"),Kt=Symbol.for("v-stc"),xt=[];let fe=null;function Ho(e=!1){xt.push(fe=e?null:[])}function No(){xt.pop(),fe=xt[xt.length-1]||null}let Ct=1;function yn(e,t=!1){Ct+=e,e<0&&fe&&t&&(fe.hasOnce=!0)}function Vi(e){return e.dynamicChildren=Ct>0?fe||Qe:null,No(),Ct>0&&fe&&fe.push(e),e}function Nl(e,t,s,n,i,r){return Vi(Ki(e,t,s,n,i,r,!0))}function Vo(e,t,s,n,i){return Vi(ve(e,t,s,n,i,!0))}function $i(e){return e?e.__v_isVNode===!0:!1}function at(e,t){return e.type===t.type&&e.key===t.key}const Li=({key:e})=>e??null,Ut=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?G(e)||Y(e)||R(e)?{i:ce,r:e,k:t,f:!!s}:e:null);function Ki(e,t=null,s=null,n=0,i=null,r=e===Ee?0:1,o=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Li(t),ref:t&&Ut(t),scopeId:mi,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:ce};return l?(Xs(c,s),r&128&&e.normalize(c)):s&&(c.shapeFlag|=G(s)?8:16),Ct>0&&!o&&fe&&(c.patchFlag>0||r&6)&&c.patchFlag!==32&&fe.push(c),c}const ve=$o;function $o(e,t=null,s=null,n=0,i=null,r=!1){if((!e||e===io)&&(e=Ke),$i(e)){const l=nt(e,t,!0);return s&&Xs(l,s),Ct>0&&!r&&fe&&(l.shapeFlag&6?fe[fe.indexOf(e)]=l:fe.push(l)),l.patchFlag=-2,l}if(ko(e)&&(e=e.__vccOpts),t){t=Lo(t);let{class:l,style:c}=t;l&&!G(l)&&(t.class=Vs(l)),$(c)&&(qs(c)&&!O(c)&&(c=Z({},c)),t.style=Ns(c))}const o=G(e)?1:Ni(e)?128:Wr(e)?64:$(e)?4:R(e)?2:0;return Ki(e,t,s,n,i,o,r,!0)}function Lo(e){return e?qs(e)||Oi(e)?Z({},e):e:null}function nt(e,t,s=!1,n=!1){const{props:i,ref:r,patchFlag:o,children:l,transition:c}=e,h=t?Uo(i||{},t):i,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:h,key:h&&Li(h),ref:t&&t.ref?s&&r?O(r)?r.concat(Ut(t)):[r,Ut(t)]:Ut(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ee?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&nt(e.ssContent),ssFallback:e.ssFallback&&nt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&n&&Js(a,c.clone(a)),a}function Ko(e=" ",t=0){return ve(cs,null,e,t)}function Vl(e,t){const s=ve(Kt,null,e);return s.staticCount=t,s}function $l(e="",t=!1){return t?(Ho(),Vo(Ke,null,e)):ve(Ke,null,e)}function ye(e){return e==null||typeof e=="boolean"?ve(Ke):O(e)?ve(Ee,null,e.slice()):$i(e)?He(e):ve(cs,null,String(e))}function He(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:nt(e)}function Xs(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(O(t))s=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),Xs(e,i()),i._c&&(i._d=!0));return}else{s=32;const i=t._;!i&&!Oi(t)?t._ctx=ce:i===3&&ce&&(ce.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else R(t)?(t={default:t,_ctx:ce},s=32):(t=String(t),n&64?(s=16,t=[Ko(t)]):s=8);e.children=t,e.shapeFlag|=s}function Uo(...e){const t={};for(let s=0;sne||ce;let Zt,Ps;{const e=ss(),t=(s,n)=>{let i;return(i=e[s])||(i=e[s]=[]),i.push(n),r=>{i.length>1?i.forEach(o=>o(r)):i[0](r)}};Zt=t("__VUE_INSTANCE_SETTERS__",s=>ne=s),Ps=t("__VUE_SSR_SETTERS__",s=>Tt=s)}const Rt=e=>{const t=ne;return Zt(e),e.scope.on(),()=>{e.scope.off(),Zt(t)}},xn=()=>{ne&&ne.scope.off(),Zt(null)};function Bi(e){return e.vnode.shapeFlag&4}let Tt=!1;function Go(e,t=!1,s=!1){t&&Ps(t);const{props:n,children:i}=e.vnode,r=Bi(e);go(e,n,r,t),yo(e,i,s||t);const o=r?Jo(e,t):void 0;return t&&Ps(!1),o}function Jo(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ro);const{setup:n}=s;if(n){Re();const i=e.setupContext=n.length>1?zo(e):null,r=Rt(e),o=Mt(n,e,0,[e.props,i]),l=Nn(o);if(Pe(),r(),(l||e.sp)&&!bt(e)&&bi(e),l){if(o.then(xn,xn),t)return o.then(c=>{vn(e,c)}).catch(c=>{os(c,e,0)});e.asyncDep=o}else vn(e,o)}else Wi(e)}function vn(e,t,s){R(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:$(t)&&(e.setupState=ui(t)),Wi(e)}function Wi(e,t,s){const n=e.type;e.render||(e.render=n.render||xe);{const i=Rt(e);Re();try{oo(e)}finally{Pe(),i()}}}const Yo={get(e,t){return X(e,"get",""),e[t]}};function zo(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,Yo),slots:e.slots,emit:e.emit,expose:t}}function us(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(ui(Mr(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in yt)return yt[s](e)},has(t,s){return s in t||s in yt}})):e.proxy}function ko(e){return R(e)&&"__vccOpts"in e}const Xo=(e,t)=>Hr(e,t,Tt),Zo="3.5.22";/** +**/function Mt(e,t,s,n){try{return n?e(...n):e()}catch(i){os(i,t,s)}}function Ce(e,t,s,n){if(R(e)){const i=Mt(e,t,s,n);return i&&Nn(i)&&i.catch(r=>{os(r,t,s)}),i}if(O(e)){const i=[];for(let r=0;r>>1,i=se[n],r=Tt(i);r=Tt(s)?se.push(e):se.splice(Lr(t),0,e),e.flags|=1,pi()}}function pi(){Yt||(Yt=di.then(_i))}function Kr(e){O(e)?it.push(...e):He&&e.id===-1?He.splice(et+1,0,e):e.flags&1||(it.push(e),e.flags|=1),pi()}function cn(e,t,s=ye+1){for(;sTt(s)-Tt(n));if(it.length=0,He){He.push(...t);return}for(He=t,et=0;ete.id==null?e.flags&2?-1:1/0:e.id;function _i(e){try{for(ye=0;ye{n._d&&yn(-1);const r=zt(t);let o;try{o=e(...i)}finally{zt(r),n._d&&yn(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function Il(e,t){if(ce===null)return e;const s=us(ce),n=e.dirs||(e.dirs=[]);for(let i=0;ie.__isTeleport,qr=Symbol("_leaveCb");function Js(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Js(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Fl(e,t){return R(e)?X({name:e.name},t,{setup:e}):e}function bi(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const kt=new WeakMap;function yt(e,t,s,n,i=!1){if(O(e)){e.forEach((P,F)=>yt(P,t&&(O(t)?t[F]:t),s,n,i));return}if(xt(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&yt(e,t,s,n.component.subTree);return}const r=n.shapeFlag&4?us(n.component):n.el,o=i?null:r,{i:l,r:c}=e,h=t&&t.r,a=l.refs===V?l.refs={}:l.refs,p=l.setupState,w=j(p),C=p===V?Hn:P=>H(w,P);if(h!=null&&h!==c){if(un(t),G(h))a[h]=null,C(h)&&(p[h]=null);else if(Y(h)){h.value=null;const P=t;P.k&&(a[P.k]=null)}}if(R(c))Mt(c,l,12,[o,a]);else{const P=G(c),F=Y(c);if(P||F){const Z=()=>{if(e.f){const D=P?C(c)?p[c]:a[c]:c.value;if(i)O(D)&&js(D,r);else if(O(D))D.includes(r)||D.push(r);else if(P)a[c]=[r],C(c)&&(p[c]=a[c]);else{const B=[r];c.value=B,e.k&&(a[e.k]=B)}}else P?(a[c]=o,C(c)&&(p[c]=o)):F&&(c.value=o,e.k&&(a[e.k]=o))};if(o){const D=()=>{Z(),kt.delete(e)};D.id=-1,kt.set(e,D),le(D,s)}else un(e),Z()}}}function un(e){const t=kt.get(e);t&&(t.flags|=8,kt.delete(e))}ss().requestIdleCallback;ss().cancelIdleCallback;const xt=e=>!!e.type.__asyncLoader,yi=e=>e.type.__isKeepAlive;function Gr(e,t){xi(e,"a",t)}function Jr(e,t){xi(e,"da",t)}function xi(e,t,s=ne){const n=e.__wdc||(e.__wdc=()=>{let i=s;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(ls(t,n,s),s){let i=s.parent;for(;i&&i.parent;)yi(i.parent.vnode)&&Yr(n,t,s,i),i=i.parent}}function Yr(e,t,s,n){const i=ls(t,e,n,!0);vi(()=>{js(n[t],i)},s)}function ls(e,t,s=ne,n=!1){if(s){const i=s[e]||(s[e]=[]),r=t.__weh||(t.__weh=(...o)=>{Pe();const l=Rt(s),c=Ce(t,s,e,o);return l(),Ie(),c});return n?i.unshift(r):i.push(r),r}}const Fe=e=>(t,s=ne)=>{(!Ot||e==="sp")&&ls(e,(...n)=>t(...n),s)},zr=Fe("bm"),kr=Fe("m"),Qr=Fe("bu"),Xr=Fe("u"),Zr=Fe("bum"),vi=Fe("um"),eo=Fe("sp"),to=Fe("rtg"),so=Fe("rtc");function no(e,t=ne){ls("ec",e,t)}const io=Symbol.for("v-ndc");function Dl(e,t,s,n){let i;const r=s,o=O(e);if(o||G(e)){const l=o&&nt(e);let c=!1,h=!1;l&&(c=!ue(e),h=Le(e),e=ns(e)),i=new Array(e.length);for(let a=0,p=e.length;at(l,c,void 0,r));else{const l=Object.keys(e);i=new Array(l.length);for(let c=0,h=l.length;ce?Bi(e)?us(e):Os(e.parent):null,vt=X(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Os(e.parent),$root:e=>Os(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>wi(e),$forceUpdate:e=>e.f||(e.f=()=>{Gs(e.update)}),$nextTick:e=>e.n||(e.n=hi.bind(e.proxy)),$watch:e=>Oo.bind(e)}),bs=(e,t)=>e!==V&&!e.__isScriptSetup&&H(e,t),ro={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:i,props:r,accessCache:o,type:l,appContext:c}=e;let h;if(t[0]!=="$"){const C=o[t];if(C!==void 0)switch(C){case 1:return n[t];case 2:return i[t];case 4:return s[t];case 3:return r[t]}else{if(bs(n,t))return o[t]=1,n[t];if(i!==V&&H(i,t))return o[t]=2,i[t];if((h=e.propsOptions[0])&&H(h,t))return o[t]=3,r[t];if(s!==V&&H(s,t))return o[t]=4,s[t];As&&(o[t]=0)}}const a=vt[t];let p,w;if(a)return t==="$attrs"&&Q(e.attrs,"get",""),a(e);if((p=l.__cssModules)&&(p=p[t]))return p;if(s!==V&&H(s,t))return o[t]=4,s[t];if(w=c.config.globalProperties,H(w,t))return w[t]},set({_:e},t,s){const{data:n,setupState:i,ctx:r}=e;return bs(i,t)?(i[t]=s,!0):n!==V&&H(n,t)?(n[t]=s,!0):H(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:i,propsOptions:r,type:o}},l){let c,h;return!!(s[l]||e!==V&&l[0]!=="$"&&H(e,l)||bs(t,l)||(c=r[0])&&H(c,l)||H(n,l)||H(vt,l)||H(i.config.globalProperties,l)||(h=o.__cssModules)&&h[l])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:H(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function an(e){return O(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let As=!0;function oo(e){const t=wi(e),s=e.proxy,n=e.ctx;As=!1,t.beforeCreate&&dn(t.beforeCreate,e,"bc");const{data:i,computed:r,methods:o,watch:l,provide:c,inject:h,created:a,beforeMount:p,mounted:w,beforeUpdate:C,updated:P,activated:F,deactivated:Z,beforeDestroy:D,beforeUnmount:B,destroyed:q,unmounted:A,render:J,renderTracked:De,renderTriggered:he,errorCaptured:je,serverPrefetch:Pt,expose:Be,inheritAttrs:ft,components:It,directives:Ft,filters:as}=t;if(h&&lo(h,n,null),o)for(const W in o){const L=o[W];R(L)&&(n[W]=L.bind(s))}if(i){const W=i.call(s,s);$(W)&&(e.data=Ws(W))}if(As=!0,r)for(const W in r){const L=r[W],We=R(L)?L.bind(s,s):R(L.get)?L.get.bind(s,s):ve,Dt=!R(L)&&R(L.set)?L.set.bind(s):ve,qe=Qo({get:We,set:Dt});Object.defineProperty(n,W,{enumerable:!0,configurable:!0,get:()=>qe.value,set:pe=>qe.value=pe})}if(l)for(const W in l)Si(l[W],n,s,W);if(c){const W=R(c)?c.call(s):c;Reflect.ownKeys(W).forEach(L=>{po(L,W[L])})}a&&dn(a,e,"c");function ee(W,L){O(L)?L.forEach(We=>W(We.bind(s))):L&&W(L.bind(s))}if(ee(zr,p),ee(kr,w),ee(Qr,C),ee(Xr,P),ee(Gr,F),ee(Jr,Z),ee(no,je),ee(so,De),ee(to,he),ee(Zr,B),ee(vi,A),ee(eo,Pt),O(Be))if(Be.length){const W=e.exposed||(e.exposed={});Be.forEach(L=>{Object.defineProperty(W,L,{get:()=>s[L],set:We=>s[L]=We,enumerable:!0})})}else e.exposed||(e.exposed={});J&&e.render===ve&&(e.render=J),ft!=null&&(e.inheritAttrs=ft),It&&(e.components=It),Ft&&(e.directives=Ft),Pt&&bi(e)}function lo(e,t,s=ve){O(e)&&(e=Ms(e));for(const n in e){const i=e[n];let r;$(i)?"default"in i?r=Lt(i.from||n,i.default,!0):r=Lt(i.from||n):r=Lt(i),Y(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):t[n]=r}}function dn(e,t,s){Ce(O(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function Si(e,t,s,n){let i=n.includes(".")?ji(s,n):()=>s[n];if(G(e)){const r=t[e];R(r)&&xs(i,r)}else if(R(e))xs(i,e.bind(s));else if($(e))if(O(e))e.forEach(r=>Si(r,t,s,n));else{const r=R(e.handler)?e.handler.bind(s):t[e.handler];R(r)&&xs(i,r,e)}}function wi(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:i,optionsCache:r,config:{optionMergeStrategies:o}}=e.appContext,l=r.get(t);let c;return l?c=l:!i.length&&!s&&!n?c=t:(c={},i.length&&i.forEach(h=>Qt(c,h,o,!0)),Qt(c,t,o)),$(t)&&r.set(t,c),c}function Qt(e,t,s,n=!1){const{mixins:i,extends:r}=t;r&&Qt(e,r,s,!0),i&&i.forEach(o=>Qt(e,o,s,!0));for(const o in t)if(!(n&&o==="expose")){const l=fo[o]||s&&s[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const fo={data:hn,props:pn,emits:pn,methods:gt,computed:gt,beforeCreate:te,created:te,beforeMount:te,mounted:te,beforeUpdate:te,updated:te,beforeDestroy:te,beforeUnmount:te,destroyed:te,unmounted:te,activated:te,deactivated:te,errorCaptured:te,serverPrefetch:te,components:gt,directives:gt,watch:uo,provide:hn,inject:co};function hn(e,t){return t?e?function(){return X(R(e)?e.call(this,this):e,R(t)?t.call(this,this):t)}:t:e}function co(e,t){return gt(Ms(e),Ms(t))}function Ms(e){if(O(e)){const t={};for(let s=0;s1)return s&&R(t)?t.call(n&&n.proxy):t}}function jl(){return!!(Ui()||ke)}const Ti={},Ei=()=>Object.create(Ti),Oi=e=>Object.getPrototypeOf(e)===Ti;function go(e,t,s,n=!1){const i={},r=Ei();e.propsDefaults=Object.create(null),Ai(e,t,i,r);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);s?e.props=n?i:Ar(i):e.type.props?e.props=i:e.props=r,e.attrs=r}function _o(e,t,s,n){const{props:i,attrs:r,vnode:{patchFlag:o}}=e,l=j(i),[c]=e.propsOptions;let h=!1;if((n||o>0)&&!(o&16)){if(o&8){const a=e.vnode.dynamicProps;for(let p=0;p{c=!0;const[w,C]=Mi(p,t,!0);X(o,w),C&&l.push(...C)};!s&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!r&&!c)return $(e)&&n.set(e,tt),tt;if(O(r))for(let a=0;ae==="_"||e==="_ctx"||e==="$stable",zs=e=>O(e)?e.map(xe):[xe(e)],bo=(e,t,s)=>{if(t._n)return t;const n=Ur((...i)=>zs(t(...i)),s);return n._c=!1,n},Ri=(e,t,s)=>{const n=e._ctx;for(const i in e){if(Ys(i))continue;const r=e[i];if(R(r))t[i]=bo(i,r,n);else if(r!=null){const o=zs(r);t[i]=()=>o}}},Pi=(e,t)=>{const s=zs(t);e.slots.default=()=>s},Ii=(e,t,s)=>{for(const n in t)(s||!Ys(n))&&(e[n]=t[n])},yo=(e,t,s)=>{const n=e.slots=Ei();if(e.vnode.shapeFlag&32){const i=t._;i?(Ii(n,t,s),s&&Kn(n,"_",i,!0)):Ri(t,n)}else t&&Pi(e,t)},xo=(e,t,s)=>{const{vnode:n,slots:i}=e;let r=!0,o=V;if(n.shapeFlag&32){const l=t._;l?s&&l===1?r=!1:Ii(i,t,s):(r=!t.$stable,Ri(t,i)),o=t}else t&&(Pi(e,t),o={default:1});if(r)for(const l in i)!Ys(l)&&o[l]==null&&delete i[l]},le=jo;function vo(e){return So(e)}function So(e,t){const s=ss();s.__VUE__=!0;const{insert:n,remove:i,patchProp:r,createElement:o,createText:l,createComment:c,setText:h,setElementText:a,parentNode:p,nextSibling:w,setScopeId:C=ve,insertStaticContent:P}=e,F=(f,u,d,m=null,g=null,_=null,v=void 0,x=null,y=!!u.dynamicChildren)=>{if(f===u)return;f&&!ht(f,u)&&(m=jt(f),pe(f,g,_,!0),f=null),u.patchFlag===-2&&(y=!1,u.dynamicChildren=null);const{type:b,ref:E,shapeFlag:S}=u;switch(b){case cs:Z(f,u,d,m);break;case Ke:D(f,u,d,m);break;case Kt:f==null&&B(u,d,m,v);break;case Oe:It(f,u,d,m,g,_,v,x,y);break;default:S&1?J(f,u,d,m,g,_,v,x,y):S&6?Ft(f,u,d,m,g,_,v,x,y):(S&64||S&128)&&b.process(f,u,d,m,g,_,v,x,y,ut)}E!=null&&g?yt(E,f&&f.ref,_,u||f,!u):E==null&&f&&f.ref!=null&&yt(f.ref,null,_,f,!0)},Z=(f,u,d,m)=>{if(f==null)n(u.el=l(u.children),d,m);else{const g=u.el=f.el;u.children!==f.children&&h(g,u.children)}},D=(f,u,d,m)=>{f==null?n(u.el=c(u.children||""),d,m):u.el=f.el},B=(f,u,d,m)=>{[f.el,f.anchor]=P(f.children,u,d,m,f.el,f.anchor)},q=({el:f,anchor:u},d,m)=>{let g;for(;f&&f!==u;)g=w(f),n(f,d,m),f=g;n(u,d,m)},A=({el:f,anchor:u})=>{let d;for(;f&&f!==u;)d=w(f),i(f),f=d;i(u)},J=(f,u,d,m,g,_,v,x,y)=>{u.type==="svg"?v="svg":u.type==="math"&&(v="mathml"),f==null?De(u,d,m,g,_,v,x,y):Pt(f,u,g,_,v,x,y)},De=(f,u,d,m,g,_,v,x)=>{let y,b;const{props:E,shapeFlag:S,transition:T,dirs:M}=f;if(y=f.el=o(f.type,_,E&&E.is,E),S&8?a(y,f.children):S&16&&je(f.children,y,null,m,g,ys(f,_),v,x),M&&Ge(f,null,m,"created"),he(y,f,f.scopeId,v,m),E){for(const K in E)K!=="value"&&!_t(K)&&r(y,K,null,E[K],_,m);"value"in E&&r(y,"value",null,E.value,_),(b=E.onVnodeBeforeMount)&&be(b,m,f)}M&&Ge(f,null,m,"beforeMount");const I=wo(g,T);I&&T.beforeEnter(y),n(y,u,d),((b=E&&E.onVnodeMounted)||I||M)&&le(()=>{b&&be(b,m,f),I&&T.enter(y),M&&Ge(f,null,m,"mounted")},g)},he=(f,u,d,m,g)=>{if(d&&C(f,d),m)for(let _=0;_{for(let b=y;b{const x=u.el=f.el;let{patchFlag:y,dynamicChildren:b,dirs:E}=u;y|=f.patchFlag&16;const S=f.props||V,T=u.props||V;let M;if(d&&Je(d,!1),(M=T.onVnodeBeforeUpdate)&&be(M,d,u,f),E&&Ge(u,f,d,"beforeUpdate"),d&&Je(d,!0),(S.innerHTML&&T.innerHTML==null||S.textContent&&T.textContent==null)&&a(x,""),b?Be(f.dynamicChildren,b,x,d,m,ys(u,g),_):v||L(f,u,x,null,d,m,ys(u,g),_,!1),y>0){if(y&16)ft(x,S,T,d,g);else if(y&2&&S.class!==T.class&&r(x,"class",null,T.class,g),y&4&&r(x,"style",S.style,T.style,g),y&8){const I=u.dynamicProps;for(let K=0;K{M&&be(M,d,u,f),E&&Ge(u,f,d,"updated")},m)},Be=(f,u,d,m,g,_,v)=>{for(let x=0;x{if(u!==d){if(u!==V)for(const _ in u)!_t(_)&&!(_ in d)&&r(f,_,u[_],null,g,m);for(const _ in d){if(_t(_))continue;const v=d[_],x=u[_];v!==x&&_!=="value"&&r(f,_,x,v,g,m)}"value"in d&&r(f,"value",u.value,d.value,g)}},It=(f,u,d,m,g,_,v,x,y)=>{const b=u.el=f?f.el:l(""),E=u.anchor=f?f.anchor:l("");let{patchFlag:S,dynamicChildren:T,slotScopeIds:M}=u;M&&(x=x?x.concat(M):M),f==null?(n(b,d,m),n(E,d,m),je(u.children||[],d,E,g,_,v,x,y)):S>0&&S&64&&T&&f.dynamicChildren?(Be(f.dynamicChildren,T,d,g,_,v,x),(u.key!=null||g&&u===g.subTree)&&Fi(f,u,!0)):L(f,u,d,E,g,_,v,x,y)},Ft=(f,u,d,m,g,_,v,x,y)=>{u.slotScopeIds=x,f==null?u.shapeFlag&512?g.ctx.activate(u,d,m,v,y):as(u,d,m,g,_,v,y):Xs(f,u,y)},as=(f,u,d,m,g,_,v)=>{const x=f.component=qo(f,m,g);if(yi(f)&&(x.ctx.renderer=ut),Go(x,!1,v),x.asyncDep){if(g&&g.registerDep(x,ee,v),!f.el){const y=x.subTree=Se(Ke);D(null,y,u,d),f.placeholder=y.el}}else ee(x,f,u,d,g,_,v)},Xs=(f,u,d)=>{const m=u.component=f.component;if(Fo(f,u,d))if(m.asyncDep&&!m.asyncResolved){W(m,u,d);return}else m.next=u,m.update();else u.el=f.el,m.vnode=u},ee=(f,u,d,m,g,_,v)=>{const x=()=>{if(f.isMounted){let{next:S,bu:T,u:M,parent:I,vnode:K}=f;{const _e=Di(f);if(_e){S&&(S.el=K.el,W(f,S,v)),_e.asyncDep.then(()=>{f.isUnmounted||x()});return}}let N=S,ie;Je(f,!1),S?(S.el=K.el,W(f,S,v)):S=K,T&&$t(T),(ie=S.props&&S.props.onVnodeBeforeUpdate)&&be(ie,I,S,K),Je(f,!0);const re=mn(f),ge=f.subTree;f.subTree=re,F(ge,re,p(ge.el),jt(ge),f,g,_),S.el=re.el,N===null&&Do(f,re.el),M&&le(M,g),(ie=S.props&&S.props.onVnodeUpdated)&&le(()=>be(ie,I,S,K),g)}else{let S;const{el:T,props:M}=u,{bm:I,m:K,parent:N,root:ie,type:re}=f,ge=xt(u);Je(f,!1),I&&$t(I),!ge&&(S=M&&M.onVnodeBeforeMount)&&be(S,N,u),Je(f,!0);{ie.ce&&ie.ce._def.shadowRoot!==!1&&ie.ce._injectChildStyle(re);const _e=f.subTree=mn(f);F(null,_e,d,m,f,g,_),u.el=_e.el}if(K&&le(K,g),!ge&&(S=M&&M.onVnodeMounted)){const _e=u;le(()=>be(S,N,_e),g)}(u.shapeFlag&256||N&&xt(N.vnode)&&N.vnode.shapeFlag&256)&&f.a&&le(f.a,g),f.isMounted=!0,u=d=m=null}};f.scope.on();const y=f.effect=new Gn(x);f.scope.off();const b=f.update=y.run.bind(y),E=f.job=y.runIfDirty.bind(y);E.i=f,E.id=f.uid,y.scheduler=()=>Gs(E),Je(f,!0),b()},W=(f,u,d)=>{u.component=f;const m=f.vnode.props;f.vnode=u,f.next=null,_o(f,u.props,m,d),xo(f,u.children,d),Pe(),cn(f),Ie()},L=(f,u,d,m,g,_,v,x,y=!1)=>{const b=f&&f.children,E=f?f.shapeFlag:0,S=u.children,{patchFlag:T,shapeFlag:M}=u;if(T>0){if(T&128){Dt(b,S,d,m,g,_,v,x,y);return}else if(T&256){We(b,S,d,m,g,_,v,x,y);return}}M&8?(E&16&&ct(b,g,_),S!==b&&a(d,S)):E&16?M&16?Dt(b,S,d,m,g,_,v,x,y):ct(b,g,_,!0):(E&8&&a(d,""),M&16&&je(S,d,m,g,_,v,x,y))},We=(f,u,d,m,g,_,v,x,y)=>{f=f||tt,u=u||tt;const b=f.length,E=u.length,S=Math.min(b,E);let T;for(T=0;TE?ct(f,g,_,!0,!1,S):je(u,d,m,g,_,v,x,y,S)},Dt=(f,u,d,m,g,_,v,x,y)=>{let b=0;const E=u.length;let S=f.length-1,T=E-1;for(;b<=S&&b<=T;){const M=f[b],I=u[b]=y?Ne(u[b]):xe(u[b]);if(ht(M,I))F(M,I,d,null,g,_,v,x,y);else break;b++}for(;b<=S&&b<=T;){const M=f[S],I=u[T]=y?Ne(u[T]):xe(u[T]);if(ht(M,I))F(M,I,d,null,g,_,v,x,y);else break;S--,T--}if(b>S){if(b<=T){const M=T+1,I=MT)for(;b<=S;)pe(f[b],g,_,!0),b++;else{const M=b,I=b,K=new Map;for(b=I;b<=T;b++){const oe=u[b]=y?Ne(u[b]):xe(u[b]);oe.key!=null&&K.set(oe.key,b)}let N,ie=0;const re=T-I+1;let ge=!1,_e=0;const at=new Array(re);for(b=0;b=re){pe(oe,g,_,!0);continue}let me;if(oe.key!=null)me=K.get(oe.key);else for(N=I;N<=T;N++)if(at[N-I]===0&&ht(oe,u[N])){me=N;break}me===void 0?pe(oe,g,_,!0):(at[me-I]=b+1,me>=_e?_e=me:ge=!0,F(oe,u[me],d,null,g,_,v,x,y),ie++)}const tn=ge?Co(at):tt;for(N=tn.length-1,b=re-1;b>=0;b--){const oe=I+b,me=u[oe],sn=u[oe+1],nn=oe+1{const{el:_,type:v,transition:x,children:y,shapeFlag:b}=f;if(b&6){qe(f.component.subTree,u,d,m);return}if(b&128){f.suspense.move(u,d,m);return}if(b&64){v.move(f,u,d,ut);return}if(v===Oe){n(_,u,d);for(let S=0;Sx.enter(_),g);else{const{leave:S,delayLeave:T,afterLeave:M}=x,I=()=>{f.ctx.isUnmounted?i(_):n(_,u,d)},K=()=>{_._isLeaving&&_[qr](!0),S(_,()=>{I(),M&&M()})};T?T(_,I,K):K()}else n(_,u,d)},pe=(f,u,d,m=!1,g=!1)=>{const{type:_,props:v,ref:x,children:y,dynamicChildren:b,shapeFlag:E,patchFlag:S,dirs:T,cacheIndex:M}=f;if(S===-2&&(g=!1),x!=null&&(Pe(),yt(x,null,d,f,!0),Ie()),M!=null&&(u.renderCache[M]=void 0),E&256){u.ctx.deactivate(f);return}const I=E&1&&T,K=!xt(f);let N;if(K&&(N=v&&v.onVnodeBeforeUnmount)&&be(N,u,f),E&6)zi(f.component,d,m);else{if(E&128){f.suspense.unmount(d,m);return}I&&Ge(f,null,u,"beforeUnmount"),E&64?f.type.remove(f,u,d,ut,m):b&&!b.hasOnce&&(_!==Oe||S>0&&S&64)?ct(b,u,d,!1,!0):(_===Oe&&S&384||!g&&E&16)&&ct(y,u,d),m&&Zs(f)}(K&&(N=v&&v.onVnodeUnmounted)||I)&&le(()=>{N&&be(N,u,f),I&&Ge(f,null,u,"unmounted")},d)},Zs=f=>{const{type:u,el:d,anchor:m,transition:g}=f;if(u===Oe){Yi(d,m);return}if(u===Kt){A(f);return}const _=()=>{i(d),g&&!g.persisted&&g.afterLeave&&g.afterLeave()};if(f.shapeFlag&1&&g&&!g.persisted){const{leave:v,delayLeave:x}=g,y=()=>v(d,_);x?x(f.el,_,y):y()}else _()},Yi=(f,u)=>{let d;for(;f!==u;)d=w(f),i(f),f=d;i(u)},zi=(f,u,d)=>{const{bum:m,scope:g,job:_,subTree:v,um:x,m:y,a:b}=f;_n(y),_n(b),m&&$t(m),g.stop(),_&&(_.flags|=8,pe(v,f,u,d)),x&&le(x,u),le(()=>{f.isUnmounted=!0},u)},ct=(f,u,d,m=!1,g=!1,_=0)=>{for(let v=_;v{if(f.shapeFlag&6)return jt(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const u=w(f.anchor||f.el),d=u&&u[Br];return d?w(d):u};let ds=!1;const en=(f,u,d)=>{f==null?u._vnode&&pe(u._vnode,null,null,!0):F(u._vnode||null,f,u,null,null,null,d),u._vnode=f,ds||(ds=!0,cn(),gi(),ds=!1)},ut={p:F,um:pe,m:qe,r:Zs,mt:as,mc:je,pc:L,pbc:Be,n:jt,o:e};return{render:en,hydrate:void 0,createApp:ho(en)}}function ys({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function Je({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function wo(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Fi(e,t,s=!1){const n=e.children,i=t.children;if(O(n)&&O(i))for(let r=0;r>1,e[s[l]]0&&(t[n]=s[r-1]),s[r]=n)}}for(r=s.length,o=s[r-1];r-- >0;)s[r]=o,o=t[o];return s}function Di(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Di(t)}function _n(e){if(e)for(let t=0;tLt(To);function Hl(e,t){return ks(e,null,t)}function xs(e,t,s){return ks(e,t,s)}function ks(e,t,s=V){const{immediate:n,deep:i,flush:r,once:o}=s,l=X({},s),c=t&&n||!t&&r!=="post";let h;if(Ot){if(r==="sync"){const C=Eo();h=C.__watcherHandles||(C.__watcherHandles=[])}else if(!c){const C=()=>{};return C.stop=ve,C.resume=ve,C.pause=ve,C}}const a=ne;l.call=(C,P,F)=>Ce(C,a,P,F);let p=!1;r==="post"?l.scheduler=C=>{le(C,a&&a.suspense)}:r!=="sync"&&(p=!0,l.scheduler=(C,P)=>{P?C():Gs(C)}),l.augmentJob=C=>{t&&(C.flags|=4),p&&(C.flags|=2,a&&(C.id=a.uid,C.i=a))};const w=Vr(e,t,l);return Ot&&(h?h.push(w):c&&w()),w}function Oo(e,t,s){const n=this.proxy,i=G(e)?e.includes(".")?ji(n,e):()=>n[e]:e.bind(n,n);let r;R(t)?r=t:(r=t.handler,s=t);const o=Rt(this),l=ks(i,r.bind(n),s);return o(),l}function ji(e,t){const s=t.split(".");return()=>{let n=e;for(let i=0;it==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${$e(t)}Modifiers`]||e[`${Xe(t)}Modifiers`];function Mo(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||V;let i=s;const r=t.startsWith("update:"),o=r&&Ao(n,t.slice(7));o&&(o.trim&&(i=s.map(a=>G(a)?a.trim():a)),o.number&&(i=s.map(Wt)));let l,c=n[l=hs(t)]||n[l=hs($e(t))];!c&&r&&(c=n[l=hs(Xe(t))]),c&&Ce(c,e,6,i);const h=n[l+"Once"];if(h){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Ce(h,e,6,i)}}const Ro=new WeakMap;function Hi(e,t,s=!1){const n=s?Ro:t.emitsCache,i=n.get(e);if(i!==void 0)return i;const r=e.emits;let o={},l=!1;if(!R(e)){const c=h=>{const a=Hi(h,t,!0);a&&(l=!0,X(o,a))};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!r&&!l?($(e)&&n.set(e,null),null):(O(r)?r.forEach(c=>o[c]=null):X(o,r),$(e)&&n.set(e,o),o)}function fs(e,t){return!e||!es(t)?!1:(t=t.slice(2).replace(/Once$/,""),H(e,t[0].toLowerCase()+t.slice(1))||H(e,Xe(t))||H(e,t))}function mn(e){const{type:t,vnode:s,proxy:n,withProxy:i,propsOptions:[r],slots:o,attrs:l,emit:c,render:h,renderCache:a,props:p,data:w,setupState:C,ctx:P,inheritAttrs:F}=e,Z=zt(e);let D,B;try{if(s.shapeFlag&4){const A=i||n,J=A;D=xe(h.call(J,A,a,p,C,w,P)),B=l}else{const A=t;D=xe(A.length>1?A(p,{attrs:l,slots:o,emit:c}):A(p,null)),B=t.props?l:Po(l)}}catch(A){St.length=0,os(A,e,1),D=Se(Ke)}let q=D;if(B&&F!==!1){const A=Object.keys(B),{shapeFlag:J}=q;A.length&&J&7&&(r&&A.some(Ds)&&(B=Io(B,r)),q=rt(q,B,!1,!0))}return s.dirs&&(q=rt(q,null,!1,!0),q.dirs=q.dirs?q.dirs.concat(s.dirs):s.dirs),s.transition&&Js(q,s.transition),D=q,zt(Z),D}const Po=e=>{let t;for(const s in e)(s==="class"||s==="style"||es(s))&&((t||(t={}))[s]=e[s]);return t},Io=(e,t)=>{const s={};for(const n in e)(!Ds(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function Fo(e,t,s){const{props:n,children:i,component:r}=e,{props:o,children:l,patchFlag:c}=t,h=r.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&c>=0){if(c&1024)return!0;if(c&16)return n?bn(n,o,h):!!o;if(c&8){const a=t.dynamicProps;for(let p=0;pe.__isSuspense;function jo(e,t){t&&t.pendingBranch?O(e)?t.effects.push(...e):t.effects.push(e):Kr(e)}const Oe=Symbol.for("v-fgt"),cs=Symbol.for("v-txt"),Ke=Symbol.for("v-cmt"),Kt=Symbol.for("v-stc"),St=[];let fe=null;function Ho(e=!1){St.push(fe=e?null:[])}function No(){St.pop(),fe=St[St.length-1]||null}let Et=1;function yn(e,t=!1){Et+=e,e<0&&fe&&t&&(fe.hasOnce=!0)}function Vi(e){return e.dynamicChildren=Et>0?fe||tt:null,No(),Et>0&&fe&&fe.push(e),e}function Nl(e,t,s,n,i,r){return Vi(Ki(e,t,s,n,i,r,!0))}function Vo(e,t,s,n,i){return Vi(Se(e,t,s,n,i,!0))}function $i(e){return e?e.__v_isVNode===!0:!1}function ht(e,t){return e.type===t.type&&e.key===t.key}const Li=({key:e})=>e??null,Ut=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?G(e)||Y(e)||R(e)?{i:ce,r:e,k:t,f:!!s}:e:null);function Ki(e,t=null,s=null,n=0,i=null,r=e===Oe?0:1,o=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Li(t),ref:t&&Ut(t),scopeId:mi,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:ce};return l?(Qs(c,s),r&128&&e.normalize(c)):s&&(c.shapeFlag|=G(s)?8:16),Et>0&&!o&&fe&&(c.patchFlag>0||r&6)&&c.patchFlag!==32&&fe.push(c),c}const Se=$o;function $o(e,t=null,s=null,n=0,i=null,r=!1){if((!e||e===io)&&(e=Ke),$i(e)){const l=rt(e,t,!0);return s&&Qs(l,s),Et>0&&!r&&fe&&(l.shapeFlag&6?fe[fe.indexOf(e)]=l:fe.push(l)),l.patchFlag=-2,l}if(ko(e)&&(e=e.__vccOpts),t){t=Lo(t);let{class:l,style:c}=t;l&&!G(l)&&(t.class=Vs(l)),$(c)&&(qs(c)&&!O(c)&&(c=X({},c)),t.style=Ns(c))}const o=G(e)?1:Ni(e)?128:Wr(e)?64:$(e)?4:R(e)?2:0;return Ki(e,t,s,n,i,o,r,!0)}function Lo(e){return e?qs(e)||Oi(e)?X({},e):e:null}function rt(e,t,s=!1,n=!1){const{props:i,ref:r,patchFlag:o,children:l,transition:c}=e,h=t?Uo(i||{},t):i,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:h,key:h&&Li(h),ref:t&&t.ref?s&&r?O(r)?r.concat(Ut(t)):[r,Ut(t)]:Ut(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Oe?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&rt(e.ssContent),ssFallback:e.ssFallback&&rt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&n&&Js(a,c.clone(a)),a}function Ko(e=" ",t=0){return Se(cs,null,e,t)}function Vl(e,t){const s=Se(Kt,null,e);return s.staticCount=t,s}function $l(e="",t=!1){return t?(Ho(),Vo(Ke,null,e)):Se(Ke,null,e)}function xe(e){return e==null||typeof e=="boolean"?Se(Ke):O(e)?Se(Oe,null,e.slice()):$i(e)?Ne(e):Se(cs,null,String(e))}function Ne(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:rt(e)}function Qs(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(O(t))s=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),Qs(e,i()),i._c&&(i._d=!0));return}else{s=32;const i=t._;!i&&!Oi(t)?t._ctx=ce:i===3&&ce&&(ce.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else R(t)?(t={default:t,_ctx:ce},s=32):(t=String(t),n&64?(s=16,t=[Ko(t)]):s=8);e.children=t,e.shapeFlag|=s}function Uo(...e){const t={};for(let s=0;sne||ce;let Xt,Ps;{const e=ss(),t=(s,n)=>{let i;return(i=e[s])||(i=e[s]=[]),i.push(n),r=>{i.length>1?i.forEach(o=>o(r)):i[0](r)}};Xt=t("__VUE_INSTANCE_SETTERS__",s=>ne=s),Ps=t("__VUE_SSR_SETTERS__",s=>Ot=s)}const Rt=e=>{const t=ne;return Xt(e),e.scope.on(),()=>{e.scope.off(),Xt(t)}},xn=()=>{ne&&ne.scope.off(),Xt(null)};function Bi(e){return e.vnode.shapeFlag&4}let Ot=!1;function Go(e,t=!1,s=!1){t&&Ps(t);const{props:n,children:i}=e.vnode,r=Bi(e);go(e,n,r,t),yo(e,i,s||t);const o=r?Jo(e,t):void 0;return t&&Ps(!1),o}function Jo(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ro);const{setup:n}=s;if(n){Pe();const i=e.setupContext=n.length>1?zo(e):null,r=Rt(e),o=Mt(n,e,0,[e.props,i]),l=Nn(o);if(Ie(),r(),(l||e.sp)&&!xt(e)&&bi(e),l){if(o.then(xn,xn),t)return o.then(c=>{vn(e,c)}).catch(c=>{os(c,e,0)});e.asyncDep=o}else vn(e,o)}else Wi(e)}function vn(e,t,s){R(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:$(t)&&(e.setupState=ui(t)),Wi(e)}function Wi(e,t,s){const n=e.type;e.render||(e.render=n.render||ve);{const i=Rt(e);Pe();try{oo(e)}finally{Ie(),i()}}}const Yo={get(e,t){return Q(e,"get",""),e[t]}};function zo(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,Yo),slots:e.slots,emit:e.emit,expose:t}}function us(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(ui(Mr(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in vt)return vt[s](e)},has(t,s){return s in t||s in vt}})):e.proxy}function ko(e){return R(e)&&"__vccOpts"in e}const Qo=(e,t)=>Hr(e,t,Ot),Xo="3.5.22";/** * @vue/runtime-dom v3.5.22 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let Is;const Sn=typeof window<"u"&&window.trustedTypes;if(Sn)try{Is=Sn.createPolicy("vue",{createHTML:e=>e})}catch{}const qi=Is?e=>Is.createHTML(e):e=>e,Qo="http://www.w3.org/2000/svg",el="http://www.w3.org/1998/Math/MathML",Te=typeof document<"u"?document:null,wn=Te&&Te.createElement("template"),tl={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const i=t==="svg"?Te.createElementNS(Qo,e):t==="mathml"?Te.createElementNS(el,e):s?Te.createElement(e,{is:s}):Te.createElement(e);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>Te.createTextNode(e),createComment:e=>Te.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Te.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,i,r){const o=s?s.previousSibling:t.lastChild;if(i&&(i===r||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),s),!(i===r||!(i=i.nextSibling)););else{wn.innerHTML=qi(n==="svg"?`${e}`:n==="mathml"?`${e}`:e);const l=wn.content;if(n==="svg"||n==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,s)}return[o?o.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},sl=Symbol("_vtc");function nl(e,t,s){const n=e[sl];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const Qt=Symbol("_vod"),Gi=Symbol("_vsh"),Ll={name:"show",beforeMount(e,{value:t},{transition:s}){e[Qt]=e.style.display==="none"?"":e.style.display,s&&t?s.beforeEnter(e):dt(e,t)},mounted(e,{value:t},{transition:s}){s&&t&&s.enter(e)},updated(e,{value:t,oldValue:s},{transition:n}){!t!=!s&&(n?t?(n.beforeEnter(e),dt(e,!0),n.enter(e)):n.leave(e,()=>{dt(e,!1)}):dt(e,t))},beforeUnmount(e,{value:t}){dt(e,t)}};function dt(e,t){e.style.display=t?e[Qt]:"none",e[Gi]=!t}const il=Symbol(""),rl=/(?:^|;)\s*display\s*:/;function ol(e,t,s){const n=e.style,i=G(s);let r=!1;if(s&&!i){if(t)if(G(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();s[l]==null&&Bt(n,l,"")}else for(const o in t)s[o]==null&&Bt(n,o,"");for(const o in s)o==="display"&&(r=!0),Bt(n,o,s[o])}else if(i){if(t!==s){const o=n[il];o&&(s+=";"+o),n.cssText=s,r=rl.test(s)}}else t&&e.removeAttribute("style");Qt in e&&(e[Qt]=r?n.display:"",e[Gi]&&(n.display="none"))}const Cn=/\s*!important$/;function Bt(e,t,s){if(O(s))s.forEach(n=>Bt(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=ll(e,t);Cn.test(s)?e.setProperty(ke(n),s.replace(Cn,""),"important"):e[n]=s}}const Tn=["Webkit","Moz","ms"],vs={};function ll(e,t){const s=vs[t];if(s)return s;let n=$e(t);if(n!=="filter"&&n in e)return vs[t]=n;n=Ln(n);for(let i=0;iSs||(al.then(()=>Ss=0),Ss=Date.now());function hl(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;we(pl(n,s.value),t,5,[n])};return s.value=e,s.attached=dl(),s}function pl(e,t){if(O(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(n=>i=>!i._stopped&&n&&n(i))}else return t}const Pn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,gl=(e,t,s,n,i,r)=>{const o=i==="svg";t==="class"?nl(e,n,o):t==="style"?ol(e,s,n):es(t)?Ds(t)||cl(e,t,s,n,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):_l(e,t,n,o))?(An(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&On(e,t,n,o,r,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!G(n))?An(e,$e(t),n,r,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),On(e,t,n,o))};function _l(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Pn(t)&&R(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Pn(t)&&G(s)?!1:t in e}const it=e=>{const t=e.props["onUpdate:modelValue"]||!1;return O(t)?s=>$t(t,s):t};function ml(e){e.target.composing=!0}function In(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Me=Symbol("_assign"),Kl={created(e,{modifiers:{lazy:t,trim:s,number:n}},i){e[Me]=it(i);const r=n||i.props&&i.props.type==="number";Ne(e,t?"change":"input",o=>{if(o.target.composing)return;let l=e.value;s&&(l=l.trim()),r&&(l=Wt(l)),e[Me](l)}),s&&Ne(e,"change",()=>{e.value=e.value.trim()}),t||(Ne(e,"compositionstart",ml),Ne(e,"compositionend",In),Ne(e,"change",In))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:i,number:r}},o){if(e[Me]=it(o),e.composing)return;const l=(r||e.type==="number")&&!/^0\d/.test(e.value)?Wt(e.value):e.value,c=t??"";l!==c&&(document.activeElement===e&&e.type!=="range"&&(n&&t===s||i&&e.value.trim()===c)||(e.value=c))}},Ul={deep:!0,created(e,t,s){e[Me]=it(s),Ne(e,"change",()=>{const n=e._modelValue,i=Et(e),r=e.checked,o=e[Me];if(O(n)){const l=$s(n,i),c=l!==-1;if(r&&!c)o(n.concat(i));else if(!r&&c){const h=[...n];h.splice(l,1),o(h)}}else if(rt(n)){const l=new Set(n);r?l.add(i):l.delete(i),o(l)}else o(Ji(e,r))})},mounted:Fn,beforeUpdate(e,t,s){e[Me]=it(s),Fn(e,t,s)}};function Fn(e,{value:t,oldValue:s},n){e._modelValue=t;let i;if(O(t))i=$s(t,n.props.value)>-1;else if(rt(t))i=t.has(n.props.value);else{if(t===s)return;i=At(t,Ji(e,!0))}e.checked!==i&&(e.checked=i)}const Bl={deep:!0,created(e,{value:t,modifiers:{number:s}},n){const i=rt(t);Ne(e,"change",()=>{const r=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>s?Wt(Et(o)):Et(o));e[Me](e.multiple?i?new Set(r):r:r[0]),e._assigning=!0,hi(()=>{e._assigning=!1})}),e[Me]=it(n)},mounted(e,{value:t}){Dn(e,t)},beforeUpdate(e,t,s){e[Me]=it(s)},updated(e,{value:t}){e._assigning||Dn(e,t)}};function Dn(e,t){const s=e.multiple,n=O(t);if(!(s&&!n&&!rt(t))){for(let i=0,r=e.options.length;iString(h)===String(l)):o.selected=$s(t,l)>-1}else o.selected=t.has(l);else if(At(Et(o),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Et(e){return"_value"in e?e._value:e.value}function Ji(e,t){const s=t?"_trueValue":"_falseValue";return s in e?e[s]:t}const bl=["ctrl","shift","alt","meta"],yl={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>bl.some(s=>e[`${s}Key`]&&!t.includes(s))},Wl=(e,t)=>{const s=e._withMods||(e._withMods={}),n=t.join(".");return s[n]||(s[n]=((i,...r)=>{for(let o=0;o{const t=vl().createApp(...e),{mount:s}=t;return t.mount=n=>{const i=wl(n);if(!i)return;const r=t._component;!R(r)&&!r.render&&!r.template&&(r.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const o=s(i,!1,Sl(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t});function Sl(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function wl(e){return G(e)?document.querySelector(e):e}export{Ml as A,fr as B,El as C,Vo as D,ql as E,Ee as F,Hl as G,Tl as H,Mr as I,j as J,tt as K,Pl as L,Lt as M,jl as N,Ws as O,Rl as P,Nl as a,Ki as b,Xo as c,Fl as d,$l as e,Ko as f,Dl as g,hi as h,Wl as i,Vl as j,Il as k,ve as l,Kl as m,Vs as n,Ho as o,Ul as p,kr as q,Rr as r,Ll as s,lr as t,ci as u,Bl as v,xs as w,Al as x,Y as y,Ol as z}; +**/let Is;const Sn=typeof window<"u"&&window.trustedTypes;if(Sn)try{Is=Sn.createPolicy("vue",{createHTML:e=>e})}catch{}const qi=Is?e=>Is.createHTML(e):e=>e,Zo="http://www.w3.org/2000/svg",el="http://www.w3.org/1998/Math/MathML",Ee=typeof document<"u"?document:null,wn=Ee&&Ee.createElement("template"),tl={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const i=t==="svg"?Ee.createElementNS(Zo,e):t==="mathml"?Ee.createElementNS(el,e):s?Ee.createElement(e,{is:s}):Ee.createElement(e);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>Ee.createTextNode(e),createComment:e=>Ee.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ee.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,i,r){const o=s?s.previousSibling:t.lastChild;if(i&&(i===r||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),s),!(i===r||!(i=i.nextSibling)););else{wn.innerHTML=qi(n==="svg"?`${e}`:n==="mathml"?`${e}`:e);const l=wn.content;if(n==="svg"||n==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,s)}return[o?o.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},sl=Symbol("_vtc");function nl(e,t,s){const n=e[sl];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const Zt=Symbol("_vod"),Gi=Symbol("_vsh"),Ll={name:"show",beforeMount(e,{value:t},{transition:s}){e[Zt]=e.style.display==="none"?"":e.style.display,s&&t?s.beforeEnter(e):pt(e,t)},mounted(e,{value:t},{transition:s}){s&&t&&s.enter(e)},updated(e,{value:t,oldValue:s},{transition:n}){!t!=!s&&(n?t?(n.beforeEnter(e),pt(e,!0),n.enter(e)):n.leave(e,()=>{pt(e,!1)}):pt(e,t))},beforeUnmount(e,{value:t}){pt(e,t)}};function pt(e,t){e.style.display=t?e[Zt]:"none",e[Gi]=!t}const il=Symbol(""),rl=/(?:^|;)\s*display\s*:/;function ol(e,t,s){const n=e.style,i=G(s);let r=!1;if(s&&!i){if(t)if(G(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();s[l]==null&&Bt(n,l,"")}else for(const o in t)s[o]==null&&Bt(n,o,"");for(const o in s)o==="display"&&(r=!0),Bt(n,o,s[o])}else if(i){if(t!==s){const o=n[il];o&&(s+=";"+o),n.cssText=s,r=rl.test(s)}}else t&&e.removeAttribute("style");Zt in e&&(e[Zt]=r?n.display:"",e[Gi]&&(n.display="none"))}const Cn=/\s*!important$/;function Bt(e,t,s){if(O(s))s.forEach(n=>Bt(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=ll(e,t);Cn.test(s)?e.setProperty(Xe(n),s.replace(Cn,""),"important"):e[n]=s}}const Tn=["Webkit","Moz","ms"],vs={};function ll(e,t){const s=vs[t];if(s)return s;let n=$e(t);if(n!=="filter"&&n in e)return vs[t]=n;n=Ln(n);for(let i=0;iSs||(al.then(()=>Ss=0),Ss=Date.now());function hl(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;Ce(pl(n,s.value),t,5,[n])};return s.value=e,s.attached=dl(),s}function pl(e,t){if(O(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(n=>i=>!i._stopped&&n&&n(i))}else return t}const Pn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,gl=(e,t,s,n,i,r)=>{const o=i==="svg";t==="class"?nl(e,n,o):t==="style"?ol(e,s,n):es(t)?Ds(t)||cl(e,t,s,n,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):_l(e,t,n,o))?(An(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&On(e,t,n,o,r,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!G(n))?An(e,$e(t),n,r,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),On(e,t,n,o))};function _l(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Pn(t)&&R(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Pn(t)&&G(s)?!1:t in e}const Ue=e=>{const t=e.props["onUpdate:modelValue"]||!1;return O(t)?s=>$t(t,s):t};function ml(e){e.target.composing=!0}function In(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ae=Symbol("_assign"),Kl={created(e,{modifiers:{lazy:t,trim:s,number:n}},i){e[ae]=Ue(i);const r=n||i.props&&i.props.type==="number";Re(e,t?"change":"input",o=>{if(o.target.composing)return;let l=e.value;s&&(l=l.trim()),r&&(l=Wt(l)),e[ae](l)}),s&&Re(e,"change",()=>{e.value=e.value.trim()}),t||(Re(e,"compositionstart",ml),Re(e,"compositionend",In),Re(e,"change",In))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:i,number:r}},o){if(e[ae]=Ue(o),e.composing)return;const l=(r||e.type==="number")&&!/^0\d/.test(e.value)?Wt(e.value):e.value,c=t??"";l!==c&&(document.activeElement===e&&e.type!=="range"&&(n&&t===s||i&&e.value.trim()===c)||(e.value=c))}},Ul={deep:!0,created(e,t,s){e[ae]=Ue(s),Re(e,"change",()=>{const n=e._modelValue,i=ot(e),r=e.checked,o=e[ae];if(O(n)){const l=$s(n,i),c=l!==-1;if(r&&!c)o(n.concat(i));else if(!r&&c){const h=[...n];h.splice(l,1),o(h)}}else if(lt(n)){const l=new Set(n);r?l.add(i):l.delete(i),o(l)}else o(Ji(e,r))})},mounted:Fn,beforeUpdate(e,t,s){e[ae]=Ue(s),Fn(e,t,s)}};function Fn(e,{value:t,oldValue:s},n){e._modelValue=t;let i;if(O(t))i=$s(t,n.props.value)>-1;else if(lt(t))i=t.has(n.props.value);else{if(t===s)return;i=Qe(t,Ji(e,!0))}e.checked!==i&&(e.checked=i)}const Bl={created(e,{value:t},s){e.checked=Qe(t,s.props.value),e[ae]=Ue(s),Re(e,"change",()=>{e[ae](ot(e))})},beforeUpdate(e,{value:t,oldValue:s},n){e[ae]=Ue(n),t!==s&&(e.checked=Qe(t,n.props.value))}},Wl={deep:!0,created(e,{value:t,modifiers:{number:s}},n){const i=lt(t);Re(e,"change",()=>{const r=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>s?Wt(ot(o)):ot(o));e[ae](e.multiple?i?new Set(r):r:r[0]),e._assigning=!0,hi(()=>{e._assigning=!1})}),e[ae]=Ue(n)},mounted(e,{value:t}){Dn(e,t)},beforeUpdate(e,t,s){e[ae]=Ue(s)},updated(e,{value:t}){e._assigning||Dn(e,t)}};function Dn(e,t){const s=e.multiple,n=O(t);if(!(s&&!n&&!lt(t))){for(let i=0,r=e.options.length;iString(h)===String(l)):o.selected=$s(t,l)>-1}else o.selected=t.has(l);else if(Qe(ot(o),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function ot(e){return"_value"in e?e._value:e.value}function Ji(e,t){const s=t?"_trueValue":"_falseValue";return s in e?e[s]:t}const bl=["ctrl","shift","alt","meta"],yl={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>bl.some(s=>e[`${s}Key`]&&!t.includes(s))},ql=(e,t)=>{const s=e._withMods||(e._withMods={}),n=t.join(".");return s[n]||(s[n]=((i,...r)=>{for(let o=0;o{const t=vl().createApp(...e),{mount:s}=t;return t.mount=n=>{const i=wl(n);if(!i)return;const r=t._component;!R(r)&&!r.render&&!r.template&&(r.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const o=s(i,!1,Sl(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t});function Sl(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function wl(e){return G(e)?document.querySelector(e):e}export{Ml as A,fr as B,El as C,Vo as D,Gl as E,Oe as F,Hl as G,Bl as H,Tl as I,Mr as J,j as K,nt as L,Pl as M,Lt as N,jl as O,Ws as P,Rl as Q,Nl as a,Ki as b,Qo as c,Fl as d,$l as e,Ko as f,Dl as g,hi as h,ql as i,Vl as j,Il as k,Se as l,Kl as m,Vs as n,Ho as o,Ul as p,kr as q,Rr as r,Ll as s,lr as t,ci as u,Wl as v,xs as w,Al as x,Y as y,Ol as z}; diff --git a/polylan_submitter/static_source/vite/manifest.json b/polylan_submitter/static_source/vite/manifest.json index b5e2d1a..5857672 100644 --- a/polylan_submitter/static_source/vite/manifest.json +++ b/polylan_submitter/static_source/vite/manifest.json @@ -1,21 +1,28 @@ { - "_index-C0ZY4EM6.js": { - "file": "assets/index-C0ZY4EM6.js", - "name": "index", + "_RankBadge.vue_vue_type_script_setup_true_lang-CzWD2ic-.js": { + "file": "assets/RankBadge.vue_vue_type_script_setup_true_lang-CzWD2ic-.js", + "name": "RankBadge.vue_vue_type_script_setup_true_lang", "imports": [ - "_style-BkYIZIDm.js" + "_style-CWE_e4zZ.js" ] }, - "_sdk.gen-CA3PL0uK.js": { - "file": "assets/sdk.gen-CA3PL0uK.js", + "_index-2B-edoO9.js": { + "file": "assets/index-2B-edoO9.js", + "name": "index", + "imports": [ + "_style-CWE_e4zZ.js" + ] + }, + "_sdk.gen-yuJ1arsq.js": { + "file": "assets/sdk.gen-yuJ1arsq.js", "name": "sdk.gen" }, "_style-B5FWYd7r.css": { "file": "assets/style-B5FWYd7r.css", "src": "_style-B5FWYd7r.css" }, - "_style-BkYIZIDm.js": { - "file": "assets/style-BkYIZIDm.js", + "_style-CWE_e4zZ.js": { + "file": "assets/style-CWE_e4zZ.js", "name": "style", "css": [ "assets/style-B5FWYd7r.css" @@ -44,34 +51,47 @@ "src": "node_modules/.pnpm/@mdi+font@7.4.47/node_modules/@mdi/font/fonts/materialdesignicons-webfont.woff2" }, "src/home.ts": { - "file": "assets/home-DjUHGAVZ.js", + "file": "assets/home-CykeG-Mq.js", "name": "home", "src": "src/home.ts", "isEntry": true, "imports": [ - "_style-BkYIZIDm.js", - "_sdk.gen-CA3PL0uK.js" + "_style-CWE_e4zZ.js", + "_sdk.gen-yuJ1arsq.js" + ] + }, + "src/market.ts": { + "file": "assets/market-CMZT_MuA.js", + "name": "market", + "src": "src/market.ts", + "isEntry": true, + "imports": [ + "_style-CWE_e4zZ.js", + "_index-2B-edoO9.js", + "_sdk.gen-yuJ1arsq.js" ] }, "src/noita.ts": { - "file": "assets/noita-Cj1wLkUa.js", + "file": "assets/noita-D_MM7R73.js", "name": "noita", "src": "src/noita.ts", "isEntry": true, "imports": [ - "_style-BkYIZIDm.js", - "_index-C0ZY4EM6.js" + "_style-CWE_e4zZ.js", + "_index-2B-edoO9.js", + "_RankBadge.vue_vue_type_script_setup_true_lang-CzWD2ic-.js" ] }, "src/opus-magnum.ts": { - "file": "assets/opus_magnum-BViqb2AL.js", + "file": "assets/opus_magnum-BJYv3njz.js", "name": "opus_magnum", "src": "src/opus-magnum.ts", "isEntry": true, "imports": [ - "_style-BkYIZIDm.js", - "_index-C0ZY4EM6.js", - "_sdk.gen-CA3PL0uK.js" + "_style-CWE_e4zZ.js", + "_index-2B-edoO9.js", + "_sdk.gen-yuJ1arsq.js", + "_RankBadge.vue_vue_type_script_setup_true_lang-CzWD2ic-.js" ] } } \ No newline at end of file diff --git a/polylan_submitter/tsconfig.node.tsbuildinfo b/polylan_submitter/tsconfig.node.tsbuildinfo index 46a2b80..932265c 100644 --- a/polylan_submitter/tsconfig.node.tsbuildinfo +++ b/polylan_submitter/tsconfig.node.tsbuildinfo @@ -1 +1 @@ -{"fileNames":["./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.webworker.importscripts.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.scripthost.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.core.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.date.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.object.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.string.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.array.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.object.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.string.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.date.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.string.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.number.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.disposable.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.float16.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/compatibility/iterators.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/globals.typedarray.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/buffer.buffer.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/globals.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/web-globals/abortcontroller.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/web-globals/crypto.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/web-globals/domexception.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/web-globals/events.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/utility.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/header.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/readable.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/fetch.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/formdata.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/connector.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/client-stats.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/client.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/errors.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/dispatcher.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/global-dispatcher.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/global-origin.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/pool-stats.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/pool.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/handlers.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/balanced-pool.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/h2c-client.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/agent.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/mock-interceptor.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/mock-call-history.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/mock-agent.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/mock-client.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/mock-pool.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/snapshot-agent.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/mock-errors.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/proxy-agent.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/env-http-proxy-agent.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/retry-handler.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/retry-agent.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/api.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/cache-interceptor.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/interceptors.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/util.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/cookies.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/patch.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/websocket.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/eventsource.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/diagnostics-channel.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/content-type.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/cache.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/index.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/web-globals/fetch.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/web-globals/navigator.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/web-globals/storage.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/web-globals/streams.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/assert.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/assert/strict.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/async_hooks.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/buffer.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/child_process.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/cluster.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/console.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/constants.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/crypto.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/dgram.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/diagnostics_channel.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/dns.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/dns/promises.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/domain.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/events.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/fs.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/fs/promises.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/http.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/http2.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/https.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/inspector.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/inspector.generated.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/module.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/net.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/os.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/path.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/perf_hooks.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/process.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/punycode.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/querystring.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/readline.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/readline/promises.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/repl.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/sea.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/sqlite.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/stream.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/stream/promises.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/stream/consumers.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/stream/web.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/string_decoder.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/test.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/timers.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/timers/promises.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/tls.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/trace_events.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/tty.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/url.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/util.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/v8.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/vm.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/wasi.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/worker_threads.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/zlib.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/index.d.ts","./node_modules/.pnpm/vite@7.1.12_@types+node@24.9.2_jiti@2.6.1_lightningcss@1.30.2_yaml@2.8.4/node_modules/vite/types/hmrPayload.d.ts","./node_modules/.pnpm/vite@7.1.12_@types+node@24.9.2_jiti@2.6.1_lightningcss@1.30.2_yaml@2.8.4/node_modules/vite/dist/node/chunks/moduleRunnerTransport.d.ts","./node_modules/.pnpm/vite@7.1.12_@types+node@24.9.2_jiti@2.6.1_lightningcss@1.30.2_yaml@2.8.4/node_modules/vite/types/customEvent.d.ts","./node_modules/.pnpm/@types+estree@1.0.8/node_modules/@types/estree/index.d.ts","./node_modules/.pnpm/rollup@4.52.5/node_modules/rollup/dist/rollup.d.ts","./node_modules/.pnpm/rollup@4.52.5/node_modules/rollup/dist/parseAst.d.ts","./node_modules/.pnpm/vite@7.1.12_@types+node@24.9.2_jiti@2.6.1_lightningcss@1.30.2_yaml@2.8.4/node_modules/vite/types/hot.d.ts","./node_modules/.pnpm/vite@7.1.12_@types+node@24.9.2_jiti@2.6.1_lightningcss@1.30.2_yaml@2.8.4/node_modules/vite/dist/node/module-runner.d.ts","./node_modules/.pnpm/esbuild@0.25.11/node_modules/esbuild/lib/main.d.ts","./node_modules/.pnpm/vite@7.1.12_@types+node@24.9.2_jiti@2.6.1_lightningcss@1.30.2_yaml@2.8.4/node_modules/vite/types/internal/terserOptions.d.ts","./node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/source-map.d.ts","./node_modules/.pnpm/postcss@8.5.6/node_modules/postcss/lib/previous-map.d.ts","./node_modules/.pnpm/postcss@8.5.6/node_modules/postcss/lib/input.d.ts","./node_modules/.pnpm/postcss@8.5.6/node_modules/postcss/lib/css-syntax-error.d.ts","./node_modules/.pnpm/postcss@8.5.6/node_modules/postcss/lib/declaration.d.ts","./node_modules/.pnpm/postcss@8.5.6/node_modules/postcss/lib/root.d.ts","./node_modules/.pnpm/postcss@8.5.6/node_modules/postcss/lib/warning.d.ts","./node_modules/.pnpm/postcss@8.5.6/node_modules/postcss/lib/lazy-result.d.ts","./node_modules/.pnpm/postcss@8.5.6/node_modules/postcss/lib/no-work-result.d.ts","./node_modules/.pnpm/postcss@8.5.6/node_modules/postcss/lib/processor.d.ts","./node_modules/.pnpm/postcss@8.5.6/node_modules/postcss/lib/result.d.ts","./node_modules/.pnpm/postcss@8.5.6/node_modules/postcss/lib/document.d.ts","./node_modules/.pnpm/postcss@8.5.6/node_modules/postcss/lib/rule.d.ts","./node_modules/.pnpm/postcss@8.5.6/node_modules/postcss/lib/node.d.ts","./node_modules/.pnpm/postcss@8.5.6/node_modules/postcss/lib/comment.d.ts","./node_modules/.pnpm/postcss@8.5.6/node_modules/postcss/lib/container.d.ts","./node_modules/.pnpm/postcss@8.5.6/node_modules/postcss/lib/at-rule.d.ts","./node_modules/.pnpm/postcss@8.5.6/node_modules/postcss/lib/list.d.ts","./node_modules/.pnpm/postcss@8.5.6/node_modules/postcss/lib/postcss.d.ts","./node_modules/.pnpm/postcss@8.5.6/node_modules/postcss/lib/postcss.d.mts","./node_modules/.pnpm/vite@7.1.12_@types+node@24.9.2_jiti@2.6.1_lightningcss@1.30.2_yaml@2.8.4/node_modules/vite/types/internal/cssPreprocessorOptions.d.ts","./node_modules/.pnpm/lightningcss@1.30.2/node_modules/lightningcss/node/ast.d.ts","./node_modules/.pnpm/lightningcss@1.30.2/node_modules/lightningcss/node/targets.d.ts","./node_modules/.pnpm/lightningcss@1.30.2/node_modules/lightningcss/node/index.d.ts","./node_modules/.pnpm/vite@7.1.12_@types+node@24.9.2_jiti@2.6.1_lightningcss@1.30.2_yaml@2.8.4/node_modules/vite/types/internal/lightningcssOptions.d.ts","./node_modules/.pnpm/vite@7.1.12_@types+node@24.9.2_jiti@2.6.1_lightningcss@1.30.2_yaml@2.8.4/node_modules/vite/types/importGlob.d.ts","./node_modules/.pnpm/vite@7.1.12_@types+node@24.9.2_jiti@2.6.1_lightningcss@1.30.2_yaml@2.8.4/node_modules/vite/types/metadata.d.ts","./node_modules/.pnpm/vite@7.1.12_@types+node@24.9.2_jiti@2.6.1_lightningcss@1.30.2_yaml@2.8.4/node_modules/vite/dist/node/index.d.ts","./node_modules/.pnpm/@babel+types@7.28.5/node_modules/@babel/types/lib/index.d.ts","./node_modules/.pnpm/@vue+shared@3.5.22/node_modules/@vue/shared/dist/shared.d.ts","./node_modules/.pnpm/@babel+parser@7.28.5/node_modules/@babel/parser/typings/babel-parser.d.ts","./node_modules/.pnpm/@vue+compiler-core@3.5.22/node_modules/@vue/compiler-core/dist/compiler-core.d.ts","./node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.d.mts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/typescript.d.ts","./node_modules/.pnpm/@vue+compiler-sfc@3.5.22/node_modules/@vue/compiler-sfc/dist/compiler-sfc.d.ts","./node_modules/.pnpm/vue@3.5.22_typescript@5.9.3/node_modules/vue/compiler-sfc/index.d.mts","./node_modules/.pnpm/@vitejs+plugin-vue@6.0.1_vite@7.1.12_@types+node@24.9.2_jiti@2.6.1_lightningcss@1.30.2_yaml@2_zxc5uuhydtfp3q25cwk2yrksve/node_modules/@vitejs/plugin-vue/dist/index.d.ts","./node_modules/.pnpm/@tailwindcss+vite@4.1.16_vite@7.1.12_@types+node@24.9.2_jiti@2.6.1_lightningcss@1.30.2_yaml@2.8.4_/node_modules/@tailwindcss/vite/dist/index.d.mts","./vite.config.ts"],"fileIdsList":[[54,108,125,126,197],[54,108,125,126],[54,108,125,126,196],[54,105,106,108,125,126],[54,107,108,125,126],[108,125,126],[54,108,113,125,126,143],[54,108,109,114,119,125,126,128,140,151],[54,108,109,110,119,125,126,128],[54,108,111,125,126,152],[54,108,112,113,120,125,126,129],[54,108,113,125,126,140,148],[54,108,114,116,119,125,126,128],[54,107,108,115,125,126],[54,108,116,117,125,126],[54,108,118,119,125,126],[54,107,108,119,125,126],[54,108,119,120,121,125,126,140,151],[54,108,119,120,121,125,126,135,140,143],[54,100,108,116,119,122,125,126,128,140,151],[54,108,119,120,122,123,125,126,128,140,148,151],[54,108,122,124,125,126,140,148,151],[52,53,54,55,56,57,58,59,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157],[54,108,119,125,126],[54,108,125,126,127,151],[54,108,116,119,125,126,128,140],[54,108,125,126,129],[54,108,125,126,130],[54,107,108,125,126,131],[54,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157],[54,108,125,126,133],[54,108,125,126,134],[54,108,119,125,126,135,136],[54,108,125,126,135,137,152,154],[54,108,120,125,126],[54,108,119,125,126,140,141,143],[54,108,125,126,142,143],[54,108,125,126,140,141],[54,108,125,126,143],[54,108,125,126,144],[54,105,108,125,126,140,145],[54,108,119,125,126,146,147],[54,108,125,126,146,147],[54,108,113,125,126,128,140,148],[54,108,125,126,149],[54,108,125,126,128,150],[54,108,122,125,126,134,151],[54,108,113,125,126,152],[54,108,125,126,140,153],[54,108,125,126,127,154],[54,108,125,126,155],[54,108,113,125,126],[54,100,108,125,126],[54,108,125,126,156],[54,100,108,119,121,125,126,131,140,143,151,153,154,156],[54,108,125,126,140,157],[54,108,125,126,196,204],[54,108,125,126,197,198,199],[54,108,125,126,188,197,199,200,201,202],[54,108,125,126,190,191],[54,108,125,126,184],[54,108,125,126,182,184],[54,108,125,126,173,181,182,183,185,187],[54,108,125,126,171],[54,108,125,126,174,179,184,187],[54,108,125,126,170,187],[54,108,125,126,174,175,178,179,180,187],[54,108,125,126,174,175,176,178,179,187],[54,108,125,126,171,172,173,174,175,179,180,181,183,184,185,187],[54,108,125,126,187],[54,108,125,126,169,171,172,173,174,175,176,178,179,180,181,182,183,184,185,186],[54,108,125,126,169,187],[54,108,125,126,174,176,177,179,180,187],[54,108,125,126,178,187],[54,108,125,126,179,180,184,187],[54,108,125,126,172,182],[54,108,125,126,163,195,196],[54,108,125,126,162,163],[54,66,69,72,73,108,125,126,151],[54,69,108,125,126,140,151],[54,69,73,108,125,126,151],[54,108,125,126,140],[54,63,108,125,126],[54,67,108,125,126],[54,65,66,69,108,125,126,151],[54,108,125,126,128,148],[54,108,125,126,158],[54,63,108,125,126,158],[54,65,69,108,125,126,128,151],[54,60,61,62,64,68,108,119,125,126,140,151],[54,69,77,85,108,125,126],[54,61,67,108,125,126],[54,69,94,95,108,125,126],[54,61,64,69,108,125,126,143,151,158],[54,69,108,125,126],[54,65,69,108,125,126,151],[54,60,108,125,126],[54,63,64,65,67,68,69,70,71,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,95,96,97,98,99,108,125,126],[54,69,87,90,108,116,125,126],[54,69,77,78,79,108,125,126],[54,67,69,78,80,108,125,126],[54,68,108,125,126],[54,61,63,69,108,125,126],[54,69,73,78,80,108,125,126],[54,73,108,125,126],[54,67,69,72,108,125,126,151],[54,61,65,69,77,108,125,126],[54,69,87,108,125,126],[54,80,108,125,126],[54,63,69,94,108,125,126,143,156,158],[54,108,125,126,159],[54,108,119,120,122,123,124,125,126,128,140,148,151,157,158,159,160,161,163,164,166,167,168,188,189,193,194,195,196],[54,108,125,126,159,160,161,165],[54,108,125,126,161],[54,108,125,126,192],[54,108,125,126,163,196],[54,108,125,126,203],[54,108,125,126,130,151,196,205,206]],"fileInfos":[{"version":"a7297ff837fcdf174a9524925966429eb8e5feecc2cc55cc06574e6b092c1eaa","impliedFormat":1},{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"80e18897e5884b6723488d4f5652167e7bb5024f946743134ecc4aa4ee731f89","affectsGlobalScope":true,"impliedFormat":1},{"version":"cd034f499c6cdca722b60c04b5b1b78e058487a7085a8e0d6fb50809947ee573","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"196cb558a13d4533a5163286f30b0509ce0210e4b316c56c38d4c0fd2fb38405","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true,"impliedFormat":1},{"version":"378281aa35786c27d5811af7e6bcaa492eebd0c7013d48137c35bbc69a2b9751","affectsGlobalScope":true,"impliedFormat":1},{"version":"3af97acf03cc97de58a3a4bc91f8f616408099bc4233f6d0852e72a8ffb91ac9","affectsGlobalScope":true,"impliedFormat":1},{"version":"1b2dd1cbeb0cc6ae20795958ba5950395ebb2849b7c8326853dd15530c77ab0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"1db0b7dca579049ca4193d034d835f6bfe73096c73663e5ef9a0b5779939f3d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"387a023d363f755eb63450a66c28b14cdd7bc30a104565e2dbf0a8988bb4a56c","affectsGlobalScope":true,"impliedFormat":1},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true,"impliedFormat":1},{"version":"f26b11d8d8e4b8028f1c7d618b22274c892e4b0ef5b3678a8ccbad85419aef43","affectsGlobalScope":true,"impliedFormat":1},{"version":"cdcf9ea426ad970f96ac930cd176d5c69c6c24eebd9fc580e1572d6c6a88f62c","impliedFormat":1},{"version":"23cd712e2ce083d68afe69224587438e5914b457b8acf87073c22494d706a3d0","impliedFormat":1},{"version":"487b694c3de27ddf4ad107d4007ad304d29effccf9800c8ae23c2093638d906a","impliedFormat":1},{"version":"3a80bc85f38526ca3b08007ee80712e7bb0601df178b23fbf0bf87036fce40ce","impliedFormat":1},{"version":"ccf4552357ce3c159ef75f0f0114e80401702228f1898bdc9402214c9499e8c0","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"68834d631c8838c715f225509cfc3927913b9cc7a4870460b5b60c8dbdb99baf","impliedFormat":1},{"version":"2931540c47ee0ff8a62860e61782eb17b155615db61e36986e54645ec67f67c2","impliedFormat":1},{"version":"ccab02f3920fc75c01174c47fcf67882a11daf16baf9e81701d0a94636e94556","impliedFormat":1},{"version":"f6faf5f74e4c4cc309a6c6a6c4da02dbb840be5d3e92905a23dcd7b2b0bd1986","impliedFormat":1},{"version":"ea6bc8de8b59f90a7a3960005fd01988f98fd0784e14bc6922dde2e93305ec7d","impliedFormat":1},{"version":"36107995674b29284a115e21a0618c4c2751b32a8766dd4cb3ba740308b16d59","impliedFormat":1},{"version":"914a0ae30d96d71915fc519ccb4efbf2b62c0ddfb3a3fc6129151076bc01dc60","impliedFormat":1},{"version":"33e981bf6376e939f99bd7f89abec757c64897d33c005036b9a10d9587d80187","impliedFormat":1},{"version":"7fd1b31fd35876b0aa650811c25ec2c97a3c6387e5473eb18004bed86cdd76b6","impliedFormat":1},{"version":"b41767d372275c154c7ea6c9d5449d9a741b8ce080f640155cc88ba1763e35b3","impliedFormat":1},{"version":"3bacf516d686d08682751a3bd2519ea3b8041a164bfb4f1d35728993e70a2426","impliedFormat":1},{"version":"7fb266686238369442bd1719bc0d7edd0199da4fb8540354e1ff7f16669b4323","impliedFormat":1},{"version":"0a60a292b89ca7218b8616f78e5bbd1c96b87e048849469cccb4355e98af959a","impliedFormat":1},{"version":"0b6e25234b4eec6ed96ab138d96eb70b135690d7dd01f3dd8a8ab291c35a683a","impliedFormat":1},{"version":"9666f2f84b985b62400d2e5ab0adae9ff44de9b2a34803c2c5bd3c8325b17dc0","impliedFormat":1},{"version":"40cd35c95e9cf22cfa5bd84e96408b6fcbca55295f4ff822390abb11afbc3dca","impliedFormat":1},{"version":"b1616b8959bf557feb16369c6124a97a0e74ed6f49d1df73bb4b9ddf68acf3f3","impliedFormat":1},{"version":"5b03a034c72146b61573aab280f295b015b9168470f2df05f6080a2122f9b4df","impliedFormat":1},{"version":"40b463c6766ca1b689bfcc46d26b5e295954f32ad43e37ee6953c0a677e4ae2b","impliedFormat":1},{"version":"249b9cab7f5d628b71308c7d9bb0a808b50b091e640ba3ed6e2d0516f4a8d91d","impliedFormat":1},{"version":"80aae6afc67faa5ac0b32b5b8bc8cc9f7fa299cff15cf09cc2e11fd28c6ae29e","impliedFormat":1},{"version":"f473cd2288991ff3221165dcf73cd5d24da30391f87e85b3dd4d0450c787a391","impliedFormat":1},{"version":"499e5b055a5aba1e1998f7311a6c441a369831c70905cc565ceac93c28083d53","impliedFormat":1},{"version":"54c3e2371e3d016469ad959697fd257e5621e16296fa67082c2575d0bf8eced0","impliedFormat":1},{"version":"beb8233b2c220cfa0feea31fbe9218d89fa02faa81ef744be8dce5acb89bb1fd","impliedFormat":1},{"version":"c183b931b68ad184bc8e8372bf663f3d33304772fb482f29fb91b3c391031f3e","impliedFormat":1},{"version":"5d0375ca7310efb77e3ef18d068d53784faf62705e0ad04569597ae0e755c401","impliedFormat":1},{"version":"59af37caec41ecf7b2e76059c9672a49e682c1a2aa6f9d7dc78878f53aa284d6","impliedFormat":1},{"version":"addf417b9eb3f938fddf8d81e96393a165e4be0d4a8b6402292f9c634b1cb00d","impliedFormat":1},{"version":"48cc3ec153b50985fb95153258a710782b25975b10dd4ac8a4f3920632d10790","impliedFormat":1},{"version":"adf27937dba6af9f08a68c5b1d3fce0ca7d4b960c57e6d6c844e7d1a8e53adae","impliedFormat":1},{"version":"e1528ca65ac90f6fa0e4a247eb656b4263c470bb22d9033e466463e13395e599","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"866078923a56d026e39243b4392e282c1c63159723996fa89243140e1388a98d","impliedFormat":1},{"version":"830171b27c5fdf9bcbe4cf7d428fcf3ae2c67780fb7fbdccdf70d1623d938bc4","affectsGlobalScope":true,"impliedFormat":1},{"version":"1cf059eaf468efcc649f8cf6075d3cb98e9a35a0fe9c44419ec3d2f5428d7123","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7721c4f69f93c91360c26a0a84ee885997d748237ef78ef665b153e622b36c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d97fb21da858fb18b8ae72c314e9743fd52f73ebe2764e12af1db32fc03f853f","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ea15fd99b2e34cb25fe8346c955000bb70c8b423ae4377a972ef46bfb37f595","impliedFormat":1},{"version":"7cf69dd5502c41644c9e5106210b5da7144800670cbe861f66726fa209e231c4","impliedFormat":1},{"version":"72c1f5e0a28e473026074817561d1bc9647909cf253c8d56c41d1df8d95b85f7","impliedFormat":1},{"version":"f9b4137a0d285bd77dba2e6e895530112264310ae47e07bf311feae428fb8b61","affectsGlobalScope":true,"impliedFormat":1},{"version":"8b21e13ed07d0df176ae31d6b7f01f7b17d66dbeb489c0d31d00de2ca14883da","impliedFormat":1},{"version":"51aecd2df90a3cffea1eb4696b33b2d78594ea2aa2138e6b9471ec4841c6c2ee","impliedFormat":1},{"version":"2c91d8366ff2506296191c26fd97cc1990bab3ee22576275d28b654a21261a44","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"f929f0b6b3421a2d34344b0f421f45aeb2c84ad365ebf29d04312023b3accc58","impliedFormat":1},{"version":"db9ada976f9e52e13f7ae8b9a320f4b67b87685938c5879187d8864b2fbe97f3","impliedFormat":1},{"version":"9f39e70a354d0fba29ac3cdf6eca00b7f9e96f64b2b2780c432e8ea27f133743","impliedFormat":1},{"version":"0dace96cc0f7bc6d0ee2044921bdf19fe42d16284dbcc8ae200800d1c9579335","impliedFormat":1},{"version":"a2e2bbde231b65c53c764c12313897ffdfb6c49183dd31823ee2405f2f7b5378","impliedFormat":1},{"version":"ad1cc0ed328f3f708771272021be61ab146b32ecf2b78f3224959ff1e2cd2a5c","impliedFormat":1},{"version":"c64e1888baaa3253ca4405b455e4bf44f76357868a1bd0a52998ade9a092ad78","affectsGlobalScope":true,"impliedFormat":1},{"version":"d8cf132379078d0974a59df26069689a2d33c7dc826b5be56231841cb2f32e58","impliedFormat":1},{"version":"fbf413fc617837453c878a9174a1f1b383616857a3f8366bc41cf30df4aea7d5","impliedFormat":1},{"version":"148c73ec11318850f571172ceae3e55ce479d850fe18ec8eae0abd99d9f6c319","impliedFormat":1},{"version":"230bdc111d7578276e4a3bb9d075d85c78c6b68f428c3a9935e2eaa10f4ae1f5","impliedFormat":1},{"version":"e8aabbee5e7b9101b03bb4222607d57f38859b8115a8050a4eb91b4ee43a3a73","impliedFormat":1},{"version":"bbf42f98a5819f4f06e18c8b669a994afe9a17fe520ae3454a195e6eabf7700d","impliedFormat":1},{"version":"c0bb1b65757c72bbf8ddf7eaa532223bacf58041ff16c883e76f45506596e925","impliedFormat":1},{"version":"c8b85f7aed29f8f52b813f800611406b0bfe5cf3224d20a4bdda7c7f73ce368e","affectsGlobalScope":true,"impliedFormat":1},{"version":"145dcf25fd4967c610c53d93d7bc4dce8fbb1b6dd7935362472d4ae49363c7ba","impliedFormat":1},{"version":"ff65b8a8bd380c6d129becc35de02f7c29ad7ce03300331ca91311fb4044d1a9","impliedFormat":1},{"version":"76957a6d92b94b9e2852cf527fea32ad2dc0ef50f67fe2b14bd027c9ceef2d86","impliedFormat":1},{"version":"9043daec15206650fa119bad6b8d70136021ea7d52673a71f79a87a42ee38d44","affectsGlobalScope":true,"impliedFormat":1},{"version":"8ba0db41ed773e152647a78e9053e36a747891db41d6a51c7030a0d0f01babb2","affectsGlobalScope":true,"impliedFormat":1},{"version":"a58a15da4c5ba3df60c910a043281256fa52d36a0fcdef9b9100c646282e88dd","impliedFormat":1},{"version":"b36beffbf8acdc3ebc58c8bb4b75574b31a2169869c70fc03f82895b93950a12","impliedFormat":1},{"version":"de263f0089aefbfd73c89562fb7254a7468b1f33b61839aafc3f035d60766cb4","impliedFormat":1},{"version":"77fbe5eecb6fac4b6242bbf6eebfc43e98ce5ccba8fa44e0ef6a95c945ff4d98","impliedFormat":1},{"version":"8c81fd4a110490c43d7c578e8c6f69b3af01717189196899a6a44f93daa57a3a","impliedFormat":1},{"version":"5fb39858b2459864b139950a09adae4f38dad87c25bf572ce414f10e4bd7baab","impliedFormat":1},{"version":"28e3631087ecef78fef8efdb21d4d2509f776ef6f0d660ff605b5ee6a22ebb8c","impliedFormat":1},{"version":"b33b74b97952d9bf4fbd2951dcfbb5136656ddb310ce1c84518aaa77dbca9992","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"45650f47bfb376c8a8ed39d4bcda5902ab899a3150029684ee4c10676d9fbaee","impliedFormat":1},{"version":"6b306cd4282bbb54d4a6bb23cfb7a271160983dfc38c67b5a132504cfcc34896","affectsGlobalScope":true,"impliedFormat":1},{"version":"c119835edf36415081dfd9ed15fc0cd37aaa28d232be029ad073f15f3d88c323","impliedFormat":1},{"version":"450172a56b944c2d83f45cc11c9a388ea967cd301a21202aa0a23c34c7506a18","impliedFormat":1},{"version":"9705cd157ffbb91c5cab48bdd2de5a437a372e63f870f8a8472e72ff634d47c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"ae86f30d5d10e4f75ce8dcb6e1bd3a12ecec3d071a21e8f462c5c85c678efb41","impliedFormat":1},{"version":"72f8936aebf0c4a1adab767b97d34ba7d3a308afcf76de4417b9c16fb92ed548","impliedFormat":1},{"version":"e03460fe72b259f6d25ad029f085e4bedc3f90477da4401d8fbc1efa9793230e","impliedFormat":1},{"version":"4286a3a6619514fca656089aee160bb6f2e77f4dd53dc5a96b26a0b4fc778055","impliedFormat":1},{"version":"04aa8fb012abeecf5666b013c59ba01dca5aa0c28173cb5385bc88d4adeb8d64","affectsGlobalScope":true,"impliedFormat":1},{"version":"3585d6891e9ea18e07d0755a6d90d71331558ba5dc5561933553209f886db106","affectsGlobalScope":true,"impliedFormat":1},{"version":"86be71cbb0593468644932a6eb96d527cfa600cecfc0b698af5f52e51804451d","impliedFormat":1},{"version":"84dd6b0fd2505135692935599d6606f50a421389e8d4535194bcded307ee5cf2","impliedFormat":1},{"version":"0d5b085f36e6dc55bc6332ecb9c733be3a534958c238fb8d8d18d4a2b6f2a15a","impliedFormat":1},{"version":"db19ea066fdc5f97df3f769e582ae3000380ab7942e266654bdb1a4650d19eaf","affectsGlobalScope":true,"impliedFormat":1},{"version":"2a034894bf28c220a331c7a0229d33564803abe2ac1b9a5feee91b6b9b6e88ea","impliedFormat":1},{"version":"d7e9ab1b0996639047c61c1e62f85c620e4382206b3abb430d9a21fb7bc23c77","impliedFormat":1},{"version":"a7ca8df4f2931bef2aa4118078584d84a0b16539598eaadf7dce9104dfaa381c","impliedFormat":1},{"version":"4d37fa53d2873c4c97b1ff3c0dadfbb8024aaf7a310af89e3de0aa7d1abb2819","impliedFormat":99},{"version":"11443a1dcfaaa404c68d53368b5b818712b95dd19f188cab1669c39bee8b84b3","impliedFormat":1},{"version":"151ff381ef9ff8da2da9b9663ebf657eac35c4c9a19183420c05728f31a6761d","impliedFormat":1},{"version":"67f0933742a1e547fc31cc52c4183b2be0726ffa9689586b761cef241ca6b251","affectsGlobalScope":true,"impliedFormat":1},{"version":"a660aa95476042d3fdcc1343cf6bb8fdf24772d31712b1db321c5a4dcc325434","impliedFormat":1},{"version":"36977c14a7f7bfc8c0426ae4343875689949fb699f3f84ecbe5b300ebf9a2c55","impliedFormat":1},{"version":"561d779a3525dce3fcadfbbf38407eda7f89ced9df3baf35844fcc4ee8ad2c46","impliedFormat":99},{"version":"161c8e0690c46021506e32fda85956d785b70f309ae97011fd27374c065cac9b","affectsGlobalScope":true,"impliedFormat":1},{"version":"f582b0fcbf1eea9b318ab92fb89ea9ab2ebb84f9b60af89328a91155e1afce72","impliedFormat":1},{"version":"402e5c534fb2b85fa771170595db3ac0dd532112c8fa44fc23f233bc6967488b","impliedFormat":1},{"version":"8885cf05f3e2abf117590bbb951dcf6359e3e5ac462af1c901cfd24c6a6472e2","impliedFormat":1},{"version":"333caa2bfff7f06017f114de738050dd99a765c7eb16571c6d25a38c0d5365dc","impliedFormat":1},{"version":"e61df3640a38d535fd4bc9f4a53aef17c296b58dc4b6394fd576b808dd2fe5e6","impliedFormat":1},{"version":"459920181700cec8cbdf2a5faca127f3f17fd8dd9d9e577ed3f5f3af5d12a2e4","impliedFormat":1},{"version":"4719c209b9c00b579553859407a7e5dcfaa1c472994bd62aa5dd3cc0757eb077","impliedFormat":1},{"version":"7ec359bbc29b69d4063fe7dad0baaf35f1856f914db16b3f4f6e3e1bca4099fa","impliedFormat":1},{"version":"70790a7f0040993ca66ab8a07a059a0f8256e7bb57d968ae945f696cbff4ac7a","impliedFormat":1},{"version":"d1b9a81e99a0050ca7f2d98d7eedc6cda768f0eb9fa90b602e7107433e64c04c","impliedFormat":1},{"version":"a022503e75d6953d0e82c2c564508a5c7f8556fad5d7f971372d2d40479e4034","impliedFormat":1},{"version":"b215c4f0096f108020f666ffcc1f072c81e9f2f95464e894a5d5f34c5ea2a8b1","impliedFormat":1},{"version":"644491cde678bd462bb922c1d0cfab8f17d626b195ccb7f008612dc31f445d2d","impliedFormat":1},{"version":"dfe54dab1fa4961a6bcfba68c4ca955f8b5bbeb5f2ab3c915aa7adaa2eabc03a","impliedFormat":1},{"version":"1251d53755b03cde02466064260bb88fd83c30006a46395b7d9167340bc59b73","impliedFormat":1},{"version":"47865c5e695a382a916b1eedda1b6523145426e48a2eae4647e96b3b5e52024f","impliedFormat":1},{"version":"4cdf27e29feae6c7826cdd5c91751cc35559125e8304f9e7aed8faef97dcf572","impliedFormat":1},{"version":"331b8f71bfae1df25d564f5ea9ee65a0d847c4a94baa45925b6f38c55c7039bf","impliedFormat":1},{"version":"2a771d907aebf9391ac1f50e4ad37952943515eeea0dcc7e78aa08f508294668","impliedFormat":1},{"version":"0146fd6262c3fd3da51cb0254bb6b9a4e42931eb2f56329edd4c199cb9aaf804","impliedFormat":1},{"version":"183f480885db5caa5a8acb833c2be04f98056bdcc5fb29e969ff86e07efe57ab","impliedFormat":99},{"version":"960bd764c62ac43edc24eaa2af958a4b4f1fa5d27df5237e176d0143b36a39c6","affectsGlobalScope":true,"impliedFormat":1},{"version":"f7eebe1b25040d805aefe8971310b805cd49b8602ec206d25b38dc48c542f165","impliedFormat":1},{"version":"a18642ddf216f162052a16cba0944892c4c4c977d3306a87cb673d46abbb0cbf","impliedFormat":1},{"version":"509f8efdfc5f9f6b52284170e8d7413552f02d79518d1db691ee15acc0088676","impliedFormat":1},{"version":"4ec16d7a4e366c06a4573d299e15fe6207fc080f41beac5da06f4af33ea9761e","impliedFormat":1},{"version":"59f8dc89b9e724a6a667f52cdf4b90b6816ae6c9842ce176d38fcc973669009e","affectsGlobalScope":true,"impliedFormat":1},{"version":"e4af494f7a14b226bbe732e9c130d8811f8c7025911d7c58dd97121a85519715","impliedFormat":1},{"version":"b1cc6653d2f28c4e1ade75566fecbd3a263faa654f797603c3b13b87b91f12bf","impliedFormat":99},{"version":"c2c2a861a338244d7dd700d0c52a78916b4bb75b98fc8ca5e7c501899fc03796","impliedFormat":1},{"version":"f468b74459f1ad4473b36a36d49f2b255f3c6b5d536c81239c2b2971df089eaf","impliedFormat":1},{"version":"adb467429462e3891de5bb4a82a4189b92005d61c7f9367c089baf03997c104e","impliedFormat":1},{"version":"7f108fc2f0dd96e1ce5e6942c555538afc4d836d4e22b60cdbe034caaac7b521","impliedFormat":1},{"version":"2be2227c3810dfd84e46674fd33b8d09a4a28ad9cb633ed536effd411665ea1e","impliedFormat":99},{"version":"e134052a6b1ded61693b4037f615dc72f14e2881e79c1ddbff6c514c8a516b05","impliedFormat":1},{"version":"83eeb5fc6bc433785dec98525eb003a02134024a8630134ecc67404d0075c26e","impliedFormat":1},{"version":"3feec212c0aeb91e5a6e62caaf9f128954590210f8c302910ea377c088f6b61a","impliedFormat":99},{"version":"7fd978ea8f69444fb258da99a6d1174ab08aa1f2ff8220d0a3bbe30f4de1e0cc","impliedFormat":99},{"version":"7757c6ca7a8ad1992401c6aff33633d6a088515be5a39d7ee188b35bfc8e5f8e","impliedFormat":99},{"version":"820279f60dc42e29f1e53b8f0ea3eef79f8e93de0f7208674eaa15226ec09a84","signature":"4b96dd19fd2949d28ce80e913412b0026dc421e5bf6c31d87c7b5eb11b5753b4"}],"root":[207],"options":{"allowSyntheticDefaultImports":true,"composite":true,"module":99,"skipLibCheck":true},"referencedMap":[[199,1],[197,2],[206,3],[162,2],[105,4],[106,4],[107,5],[54,6],[108,7],[109,8],[110,9],[52,2],[111,10],[112,11],[113,12],[114,13],[115,14],[116,15],[117,15],[118,16],[119,17],[120,18],[121,19],[55,2],[53,2],[122,20],[123,21],[124,22],[158,23],[125,24],[126,2],[127,25],[128,26],[129,27],[130,28],[131,29],[132,30],[133,31],[134,32],[135,33],[136,33],[137,34],[138,2],[139,35],[140,36],[142,37],[141,38],[143,39],[144,40],[145,41],[146,42],[147,43],[148,44],[149,45],[150,46],[151,47],[152,48],[153,49],[154,50],[155,51],[56,2],[57,52],[58,2],[59,2],[101,53],[102,54],[103,2],[104,39],[156,55],[157,56],[205,57],[200,58],[203,59],[198,2],[167,2],[190,2],[192,60],[191,2],[201,2],[185,61],[183,62],[184,63],[172,64],[173,62],[180,65],[171,66],[176,67],[186,2],[177,68],[182,69],[188,70],[187,71],[170,72],[178,73],[179,74],[174,75],[181,61],[175,76],[164,77],[163,78],[169,2],[1,2],[50,2],[51,2],[9,2],[13,2],[12,2],[3,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[21,2],[4,2],[22,2],[23,2],[5,2],[24,2],[28,2],[25,2],[26,2],[27,2],[29,2],[30,2],[31,2],[6,2],[32,2],[33,2],[34,2],[35,2],[7,2],[39,2],[36,2],[37,2],[38,2],[40,2],[8,2],[41,2],[46,2],[47,2],[42,2],[43,2],[44,2],[45,2],[2,2],[48,2],[49,2],[11,2],[10,2],[202,2],[77,79],[89,80],[75,81],[90,82],[99,83],[66,84],[67,85],[65,86],[98,87],[93,88],[97,89],[69,90],[86,91],[68,92],[96,93],[63,94],[64,88],[70,95],[71,2],[76,96],[74,95],[61,97],[100,98],[91,99],[80,100],[79,95],[81,101],[84,102],[78,103],[82,104],[94,87],[72,105],[73,106],[85,107],[62,82],[88,108],[87,95],[83,109],[92,2],[60,2],[95,110],[160,111],[196,112],[166,113],[161,111],[159,2],[165,114],[194,2],[189,2],[193,115],[168,2],[195,116],[204,117],[207,118]],"latestChangedDtsFile":"./vite.config.d.ts","version":"5.9.3"} \ No newline at end of file +{"fileNames":["./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.webworker.importscripts.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.scripthost.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.core.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.date.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.object.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.string.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.array.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.object.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.string.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.date.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.string.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.number.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.disposable.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.float16.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/compatibility/iterators.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/globals.typedarray.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/buffer.buffer.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/globals.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/web-globals/abortcontroller.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/web-globals/crypto.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/web-globals/domexception.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/web-globals/events.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/utility.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/header.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/readable.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/fetch.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/formdata.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/connector.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/client-stats.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/client.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/errors.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/dispatcher.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/global-dispatcher.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/global-origin.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/pool-stats.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/pool.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/handlers.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/balanced-pool.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/h2c-client.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/agent.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/mock-interceptor.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/mock-call-history.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/mock-agent.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/mock-client.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/mock-pool.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/snapshot-agent.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/mock-errors.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/proxy-agent.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/env-http-proxy-agent.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/retry-handler.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/retry-agent.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/api.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/cache-interceptor.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/interceptors.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/util.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/cookies.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/patch.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/websocket.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/eventsource.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/diagnostics-channel.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/content-type.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/cache.d.ts","./node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/index.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/web-globals/fetch.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/web-globals/navigator.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/web-globals/storage.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/web-globals/streams.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/assert.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/assert/strict.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/async_hooks.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/buffer.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/child_process.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/cluster.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/console.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/constants.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/crypto.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/dgram.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/diagnostics_channel.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/dns.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/dns/promises.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/domain.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/events.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/fs.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/fs/promises.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/http.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/http2.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/https.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/inspector.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/inspector.generated.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/module.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/net.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/os.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/path.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/perf_hooks.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/process.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/punycode.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/querystring.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/readline.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/readline/promises.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/repl.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/sea.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/sqlite.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/stream.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/stream/promises.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/stream/consumers.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/stream/web.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/string_decoder.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/test.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/timers.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/timers/promises.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/tls.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/trace_events.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/tty.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/url.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/util.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/v8.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/vm.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/wasi.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/worker_threads.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/zlib.d.ts","./node_modules/.pnpm/@types+node@24.9.2/node_modules/@types/node/index.d.ts","./node_modules/.pnpm/vite@7.1.12_@types+node@24.9.2_jiti@2.6.1_lightningcss@1.30.2_yaml@2.8.4/node_modules/vite/types/hmrPayload.d.ts","./node_modules/.pnpm/vite@7.1.12_@types+node@24.9.2_jiti@2.6.1_lightningcss@1.30.2_yaml@2.8.4/node_modules/vite/dist/node/chunks/moduleRunnerTransport.d.ts","./node_modules/.pnpm/vite@7.1.12_@types+node@24.9.2_jiti@2.6.1_lightningcss@1.30.2_yaml@2.8.4/node_modules/vite/types/customEvent.d.ts","./node_modules/.pnpm/@types+estree@1.0.8/node_modules/@types/estree/index.d.ts","./node_modules/.pnpm/rollup@4.52.5/node_modules/rollup/dist/rollup.d.ts","./node_modules/.pnpm/rollup@4.52.5/node_modules/rollup/dist/parseAst.d.ts","./node_modules/.pnpm/vite@7.1.12_@types+node@24.9.2_jiti@2.6.1_lightningcss@1.30.2_yaml@2.8.4/node_modules/vite/types/hot.d.ts","./node_modules/.pnpm/vite@7.1.12_@types+node@24.9.2_jiti@2.6.1_lightningcss@1.30.2_yaml@2.8.4/node_modules/vite/dist/node/module-runner.d.ts","./node_modules/.pnpm/esbuild@0.25.11/node_modules/esbuild/lib/main.d.ts","./node_modules/.pnpm/vite@7.1.12_@types+node@24.9.2_jiti@2.6.1_lightningcss@1.30.2_yaml@2.8.4/node_modules/vite/types/internal/terserOptions.d.ts","./node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/source-map.d.ts","./node_modules/.pnpm/postcss@8.5.6/node_modules/postcss/lib/previous-map.d.ts","./node_modules/.pnpm/postcss@8.5.6/node_modules/postcss/lib/input.d.ts","./node_modules/.pnpm/postcss@8.5.6/node_modules/postcss/lib/css-syntax-error.d.ts","./node_modules/.pnpm/postcss@8.5.6/node_modules/postcss/lib/declaration.d.ts","./node_modules/.pnpm/postcss@8.5.6/node_modules/postcss/lib/root.d.ts","./node_modules/.pnpm/postcss@8.5.6/node_modules/postcss/lib/warning.d.ts","./node_modules/.pnpm/postcss@8.5.6/node_modules/postcss/lib/lazy-result.d.ts","./node_modules/.pnpm/postcss@8.5.6/node_modules/postcss/lib/no-work-result.d.ts","./node_modules/.pnpm/postcss@8.5.6/node_modules/postcss/lib/processor.d.ts","./node_modules/.pnpm/postcss@8.5.6/node_modules/postcss/lib/result.d.ts","./node_modules/.pnpm/postcss@8.5.6/node_modules/postcss/lib/document.d.ts","./node_modules/.pnpm/postcss@8.5.6/node_modules/postcss/lib/rule.d.ts","./node_modules/.pnpm/postcss@8.5.6/node_modules/postcss/lib/node.d.ts","./node_modules/.pnpm/postcss@8.5.6/node_modules/postcss/lib/comment.d.ts","./node_modules/.pnpm/postcss@8.5.6/node_modules/postcss/lib/container.d.ts","./node_modules/.pnpm/postcss@8.5.6/node_modules/postcss/lib/at-rule.d.ts","./node_modules/.pnpm/postcss@8.5.6/node_modules/postcss/lib/list.d.ts","./node_modules/.pnpm/postcss@8.5.6/node_modules/postcss/lib/postcss.d.ts","./node_modules/.pnpm/postcss@8.5.6/node_modules/postcss/lib/postcss.d.mts","./node_modules/.pnpm/vite@7.1.12_@types+node@24.9.2_jiti@2.6.1_lightningcss@1.30.2_yaml@2.8.4/node_modules/vite/types/internal/cssPreprocessorOptions.d.ts","./node_modules/.pnpm/lightningcss@1.30.2/node_modules/lightningcss/node/ast.d.ts","./node_modules/.pnpm/lightningcss@1.30.2/node_modules/lightningcss/node/targets.d.ts","./node_modules/.pnpm/lightningcss@1.30.2/node_modules/lightningcss/node/index.d.ts","./node_modules/.pnpm/vite@7.1.12_@types+node@24.9.2_jiti@2.6.1_lightningcss@1.30.2_yaml@2.8.4/node_modules/vite/types/internal/lightningcssOptions.d.ts","./node_modules/.pnpm/vite@7.1.12_@types+node@24.9.2_jiti@2.6.1_lightningcss@1.30.2_yaml@2.8.4/node_modules/vite/types/importGlob.d.ts","./node_modules/.pnpm/vite@7.1.12_@types+node@24.9.2_jiti@2.6.1_lightningcss@1.30.2_yaml@2.8.4/node_modules/vite/types/metadata.d.ts","./node_modules/.pnpm/vite@7.1.12_@types+node@24.9.2_jiti@2.6.1_lightningcss@1.30.2_yaml@2.8.4/node_modules/vite/dist/node/index.d.ts","./node_modules/.pnpm/@babel+types@7.28.5/node_modules/@babel/types/lib/index.d.ts","./node_modules/.pnpm/@vue+shared@3.5.22/node_modules/@vue/shared/dist/shared.d.ts","./node_modules/.pnpm/@babel+parser@7.28.5/node_modules/@babel/parser/typings/babel-parser.d.ts","./node_modules/.pnpm/@vue+compiler-core@3.5.22/node_modules/@vue/compiler-core/dist/compiler-core.d.ts","./node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.d.mts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/typescript.d.ts","./node_modules/.pnpm/@vue+compiler-sfc@3.5.22/node_modules/@vue/compiler-sfc/dist/compiler-sfc.d.ts","./node_modules/.pnpm/vue@3.5.22_typescript@5.9.3/node_modules/vue/compiler-sfc/index.d.mts","./node_modules/.pnpm/@vitejs+plugin-vue@6.0.1_vite@7.1.12_@types+node@24.9.2_jiti@2.6.1_lightningcss@1.30.2_yaml@2_zxc5uuhydtfp3q25cwk2yrksve/node_modules/@vitejs/plugin-vue/dist/index.d.ts","./node_modules/.pnpm/@tailwindcss+vite@4.1.16_vite@7.1.12_@types+node@24.9.2_jiti@2.6.1_lightningcss@1.30.2_yaml@2.8.4_/node_modules/@tailwindcss/vite/dist/index.d.mts","./vite.config.ts"],"fileIdsList":[[54,108,125,126,197],[54,108,125,126],[54,108,125,126,196],[54,105,106,108,125,126],[54,107,108,125,126],[108,125,126],[54,108,113,125,126,143],[54,108,109,114,119,125,126,128,140,151],[54,108,109,110,119,125,126,128],[54,108,111,125,126,152],[54,108,112,113,120,125,126,129],[54,108,113,125,126,140,148],[54,108,114,116,119,125,126,128],[54,107,108,115,125,126],[54,108,116,117,125,126],[54,108,118,119,125,126],[54,107,108,119,125,126],[54,108,119,120,121,125,126,140,151],[54,108,119,120,121,125,126,135,140,143],[54,100,108,116,119,122,125,126,128,140,151],[54,108,119,120,122,123,125,126,128,140,148,151],[54,108,122,124,125,126,140,148,151],[52,53,54,55,56,57,58,59,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157],[54,108,119,125,126],[54,108,125,126,127,151],[54,108,116,119,125,126,128,140],[54,108,125,126,129],[54,108,125,126,130],[54,107,108,125,126,131],[54,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157],[54,108,125,126,133],[54,108,125,126,134],[54,108,119,125,126,135,136],[54,108,125,126,135,137,152,154],[54,108,120,125,126],[54,108,119,125,126,140,141,143],[54,108,125,126,142,143],[54,108,125,126,140,141],[54,108,125,126,143],[54,108,125,126,144],[54,105,108,125,126,140,145],[54,108,119,125,126,146,147],[54,108,125,126,146,147],[54,108,113,125,126,128,140,148],[54,108,125,126,149],[54,108,125,126,128,150],[54,108,122,125,126,134,151],[54,108,113,125,126,152],[54,108,125,126,140,153],[54,108,125,126,127,154],[54,108,125,126,155],[54,108,113,125,126],[54,100,108,125,126],[54,108,125,126,156],[54,100,108,119,121,125,126,131,140,143,151,153,154,156],[54,108,125,126,140,157],[54,108,125,126,196,204],[54,108,125,126,197,198,199],[54,108,125,126,188,197,199,200,201,202],[54,108,125,126,190,191],[54,108,125,126,184],[54,108,125,126,182,184],[54,108,125,126,173,181,182,183,185,187],[54,108,125,126,171],[54,108,125,126,174,179,184,187],[54,108,125,126,170,187],[54,108,125,126,174,175,178,179,180,187],[54,108,125,126,174,175,176,178,179,187],[54,108,125,126,171,172,173,174,175,179,180,181,183,184,185,187],[54,108,125,126,187],[54,108,125,126,169,171,172,173,174,175,176,178,179,180,181,182,183,184,185,186],[54,108,125,126,169,187],[54,108,125,126,174,176,177,179,180,187],[54,108,125,126,178,187],[54,108,125,126,179,180,184,187],[54,108,125,126,172,182],[54,108,125,126,163,195,196],[54,108,125,126,162,163],[54,66,69,72,73,108,125,126,151],[54,69,108,125,126,140,151],[54,69,73,108,125,126,151],[54,108,125,126,140],[54,63,108,125,126],[54,67,108,125,126],[54,65,66,69,108,125,126,151],[54,108,125,126,128,148],[54,108,125,126,158],[54,63,108,125,126,158],[54,65,69,108,125,126,128,151],[54,60,61,62,64,68,108,119,125,126,140,151],[54,69,77,85,108,125,126],[54,61,67,108,125,126],[54,69,94,95,108,125,126],[54,61,64,69,108,125,126,143,151,158],[54,69,108,125,126],[54,65,69,108,125,126,151],[54,60,108,125,126],[54,63,64,65,67,68,69,70,71,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,95,96,97,98,99,108,125,126],[54,69,87,90,108,116,125,126],[54,69,77,78,79,108,125,126],[54,67,69,78,80,108,125,126],[54,68,108,125,126],[54,61,63,69,108,125,126],[54,69,73,78,80,108,125,126],[54,73,108,125,126],[54,67,69,72,108,125,126,151],[54,61,65,69,77,108,125,126],[54,69,87,108,125,126],[54,80,108,125,126],[54,63,69,94,108,125,126,143,156,158],[54,108,125,126,159],[54,108,119,120,122,123,124,125,126,128,140,148,151,157,158,159,160,161,163,164,166,167,168,188,189,193,194,195,196],[54,108,125,126,159,160,161,165],[54,108,125,126,161],[54,108,125,126,192],[54,108,125,126,163,196],[54,108,125,126,203],[54,108,125,126,130,151,196,205,206]],"fileInfos":[{"version":"a7297ff837fcdf174a9524925966429eb8e5feecc2cc55cc06574e6b092c1eaa","impliedFormat":1},{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"80e18897e5884b6723488d4f5652167e7bb5024f946743134ecc4aa4ee731f89","affectsGlobalScope":true,"impliedFormat":1},{"version":"cd034f499c6cdca722b60c04b5b1b78e058487a7085a8e0d6fb50809947ee573","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"196cb558a13d4533a5163286f30b0509ce0210e4b316c56c38d4c0fd2fb38405","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true,"impliedFormat":1},{"version":"378281aa35786c27d5811af7e6bcaa492eebd0c7013d48137c35bbc69a2b9751","affectsGlobalScope":true,"impliedFormat":1},{"version":"3af97acf03cc97de58a3a4bc91f8f616408099bc4233f6d0852e72a8ffb91ac9","affectsGlobalScope":true,"impliedFormat":1},{"version":"1b2dd1cbeb0cc6ae20795958ba5950395ebb2849b7c8326853dd15530c77ab0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"1db0b7dca579049ca4193d034d835f6bfe73096c73663e5ef9a0b5779939f3d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"387a023d363f755eb63450a66c28b14cdd7bc30a104565e2dbf0a8988bb4a56c","affectsGlobalScope":true,"impliedFormat":1},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true,"impliedFormat":1},{"version":"f26b11d8d8e4b8028f1c7d618b22274c892e4b0ef5b3678a8ccbad85419aef43","affectsGlobalScope":true,"impliedFormat":1},{"version":"cdcf9ea426ad970f96ac930cd176d5c69c6c24eebd9fc580e1572d6c6a88f62c","impliedFormat":1},{"version":"23cd712e2ce083d68afe69224587438e5914b457b8acf87073c22494d706a3d0","impliedFormat":1},{"version":"487b694c3de27ddf4ad107d4007ad304d29effccf9800c8ae23c2093638d906a","impliedFormat":1},{"version":"3a80bc85f38526ca3b08007ee80712e7bb0601df178b23fbf0bf87036fce40ce","impliedFormat":1},{"version":"ccf4552357ce3c159ef75f0f0114e80401702228f1898bdc9402214c9499e8c0","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"68834d631c8838c715f225509cfc3927913b9cc7a4870460b5b60c8dbdb99baf","impliedFormat":1},{"version":"2931540c47ee0ff8a62860e61782eb17b155615db61e36986e54645ec67f67c2","impliedFormat":1},{"version":"ccab02f3920fc75c01174c47fcf67882a11daf16baf9e81701d0a94636e94556","impliedFormat":1},{"version":"f6faf5f74e4c4cc309a6c6a6c4da02dbb840be5d3e92905a23dcd7b2b0bd1986","impliedFormat":1},{"version":"ea6bc8de8b59f90a7a3960005fd01988f98fd0784e14bc6922dde2e93305ec7d","impliedFormat":1},{"version":"36107995674b29284a115e21a0618c4c2751b32a8766dd4cb3ba740308b16d59","impliedFormat":1},{"version":"914a0ae30d96d71915fc519ccb4efbf2b62c0ddfb3a3fc6129151076bc01dc60","impliedFormat":1},{"version":"33e981bf6376e939f99bd7f89abec757c64897d33c005036b9a10d9587d80187","impliedFormat":1},{"version":"7fd1b31fd35876b0aa650811c25ec2c97a3c6387e5473eb18004bed86cdd76b6","impliedFormat":1},{"version":"b41767d372275c154c7ea6c9d5449d9a741b8ce080f640155cc88ba1763e35b3","impliedFormat":1},{"version":"3bacf516d686d08682751a3bd2519ea3b8041a164bfb4f1d35728993e70a2426","impliedFormat":1},{"version":"7fb266686238369442bd1719bc0d7edd0199da4fb8540354e1ff7f16669b4323","impliedFormat":1},{"version":"0a60a292b89ca7218b8616f78e5bbd1c96b87e048849469cccb4355e98af959a","impliedFormat":1},{"version":"0b6e25234b4eec6ed96ab138d96eb70b135690d7dd01f3dd8a8ab291c35a683a","impliedFormat":1},{"version":"9666f2f84b985b62400d2e5ab0adae9ff44de9b2a34803c2c5bd3c8325b17dc0","impliedFormat":1},{"version":"40cd35c95e9cf22cfa5bd84e96408b6fcbca55295f4ff822390abb11afbc3dca","impliedFormat":1},{"version":"b1616b8959bf557feb16369c6124a97a0e74ed6f49d1df73bb4b9ddf68acf3f3","impliedFormat":1},{"version":"5b03a034c72146b61573aab280f295b015b9168470f2df05f6080a2122f9b4df","impliedFormat":1},{"version":"40b463c6766ca1b689bfcc46d26b5e295954f32ad43e37ee6953c0a677e4ae2b","impliedFormat":1},{"version":"249b9cab7f5d628b71308c7d9bb0a808b50b091e640ba3ed6e2d0516f4a8d91d","impliedFormat":1},{"version":"80aae6afc67faa5ac0b32b5b8bc8cc9f7fa299cff15cf09cc2e11fd28c6ae29e","impliedFormat":1},{"version":"f473cd2288991ff3221165dcf73cd5d24da30391f87e85b3dd4d0450c787a391","impliedFormat":1},{"version":"499e5b055a5aba1e1998f7311a6c441a369831c70905cc565ceac93c28083d53","impliedFormat":1},{"version":"54c3e2371e3d016469ad959697fd257e5621e16296fa67082c2575d0bf8eced0","impliedFormat":1},{"version":"beb8233b2c220cfa0feea31fbe9218d89fa02faa81ef744be8dce5acb89bb1fd","impliedFormat":1},{"version":"c183b931b68ad184bc8e8372bf663f3d33304772fb482f29fb91b3c391031f3e","impliedFormat":1},{"version":"5d0375ca7310efb77e3ef18d068d53784faf62705e0ad04569597ae0e755c401","impliedFormat":1},{"version":"59af37caec41ecf7b2e76059c9672a49e682c1a2aa6f9d7dc78878f53aa284d6","impliedFormat":1},{"version":"addf417b9eb3f938fddf8d81e96393a165e4be0d4a8b6402292f9c634b1cb00d","impliedFormat":1},{"version":"48cc3ec153b50985fb95153258a710782b25975b10dd4ac8a4f3920632d10790","impliedFormat":1},{"version":"adf27937dba6af9f08a68c5b1d3fce0ca7d4b960c57e6d6c844e7d1a8e53adae","impliedFormat":1},{"version":"e1528ca65ac90f6fa0e4a247eb656b4263c470bb22d9033e466463e13395e599","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"866078923a56d026e39243b4392e282c1c63159723996fa89243140e1388a98d","impliedFormat":1},{"version":"830171b27c5fdf9bcbe4cf7d428fcf3ae2c67780fb7fbdccdf70d1623d938bc4","affectsGlobalScope":true,"impliedFormat":1},{"version":"1cf059eaf468efcc649f8cf6075d3cb98e9a35a0fe9c44419ec3d2f5428d7123","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7721c4f69f93c91360c26a0a84ee885997d748237ef78ef665b153e622b36c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d97fb21da858fb18b8ae72c314e9743fd52f73ebe2764e12af1db32fc03f853f","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ea15fd99b2e34cb25fe8346c955000bb70c8b423ae4377a972ef46bfb37f595","impliedFormat":1},{"version":"7cf69dd5502c41644c9e5106210b5da7144800670cbe861f66726fa209e231c4","impliedFormat":1},{"version":"72c1f5e0a28e473026074817561d1bc9647909cf253c8d56c41d1df8d95b85f7","impliedFormat":1},{"version":"f9b4137a0d285bd77dba2e6e895530112264310ae47e07bf311feae428fb8b61","affectsGlobalScope":true,"impliedFormat":1},{"version":"8b21e13ed07d0df176ae31d6b7f01f7b17d66dbeb489c0d31d00de2ca14883da","impliedFormat":1},{"version":"51aecd2df90a3cffea1eb4696b33b2d78594ea2aa2138e6b9471ec4841c6c2ee","impliedFormat":1},{"version":"2c91d8366ff2506296191c26fd97cc1990bab3ee22576275d28b654a21261a44","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"f929f0b6b3421a2d34344b0f421f45aeb2c84ad365ebf29d04312023b3accc58","impliedFormat":1},{"version":"db9ada976f9e52e13f7ae8b9a320f4b67b87685938c5879187d8864b2fbe97f3","impliedFormat":1},{"version":"9f39e70a354d0fba29ac3cdf6eca00b7f9e96f64b2b2780c432e8ea27f133743","impliedFormat":1},{"version":"0dace96cc0f7bc6d0ee2044921bdf19fe42d16284dbcc8ae200800d1c9579335","impliedFormat":1},{"version":"a2e2bbde231b65c53c764c12313897ffdfb6c49183dd31823ee2405f2f7b5378","impliedFormat":1},{"version":"ad1cc0ed328f3f708771272021be61ab146b32ecf2b78f3224959ff1e2cd2a5c","impliedFormat":1},{"version":"c64e1888baaa3253ca4405b455e4bf44f76357868a1bd0a52998ade9a092ad78","affectsGlobalScope":true,"impliedFormat":1},{"version":"d8cf132379078d0974a59df26069689a2d33c7dc826b5be56231841cb2f32e58","impliedFormat":1},{"version":"fbf413fc617837453c878a9174a1f1b383616857a3f8366bc41cf30df4aea7d5","impliedFormat":1},{"version":"148c73ec11318850f571172ceae3e55ce479d850fe18ec8eae0abd99d9f6c319","impliedFormat":1},{"version":"230bdc111d7578276e4a3bb9d075d85c78c6b68f428c3a9935e2eaa10f4ae1f5","impliedFormat":1},{"version":"e8aabbee5e7b9101b03bb4222607d57f38859b8115a8050a4eb91b4ee43a3a73","impliedFormat":1},{"version":"bbf42f98a5819f4f06e18c8b669a994afe9a17fe520ae3454a195e6eabf7700d","impliedFormat":1},{"version":"c0bb1b65757c72bbf8ddf7eaa532223bacf58041ff16c883e76f45506596e925","impliedFormat":1},{"version":"c8b85f7aed29f8f52b813f800611406b0bfe5cf3224d20a4bdda7c7f73ce368e","affectsGlobalScope":true,"impliedFormat":1},{"version":"145dcf25fd4967c610c53d93d7bc4dce8fbb1b6dd7935362472d4ae49363c7ba","impliedFormat":1},{"version":"ff65b8a8bd380c6d129becc35de02f7c29ad7ce03300331ca91311fb4044d1a9","impliedFormat":1},{"version":"76957a6d92b94b9e2852cf527fea32ad2dc0ef50f67fe2b14bd027c9ceef2d86","impliedFormat":1},{"version":"9043daec15206650fa119bad6b8d70136021ea7d52673a71f79a87a42ee38d44","affectsGlobalScope":true,"impliedFormat":1},{"version":"8ba0db41ed773e152647a78e9053e36a747891db41d6a51c7030a0d0f01babb2","affectsGlobalScope":true,"impliedFormat":1},{"version":"a58a15da4c5ba3df60c910a043281256fa52d36a0fcdef9b9100c646282e88dd","impliedFormat":1},{"version":"b36beffbf8acdc3ebc58c8bb4b75574b31a2169869c70fc03f82895b93950a12","impliedFormat":1},{"version":"de263f0089aefbfd73c89562fb7254a7468b1f33b61839aafc3f035d60766cb4","impliedFormat":1},{"version":"77fbe5eecb6fac4b6242bbf6eebfc43e98ce5ccba8fa44e0ef6a95c945ff4d98","impliedFormat":1},{"version":"8c81fd4a110490c43d7c578e8c6f69b3af01717189196899a6a44f93daa57a3a","impliedFormat":1},{"version":"5fb39858b2459864b139950a09adae4f38dad87c25bf572ce414f10e4bd7baab","impliedFormat":1},{"version":"28e3631087ecef78fef8efdb21d4d2509f776ef6f0d660ff605b5ee6a22ebb8c","impliedFormat":1},{"version":"b33b74b97952d9bf4fbd2951dcfbb5136656ddb310ce1c84518aaa77dbca9992","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"45650f47bfb376c8a8ed39d4bcda5902ab899a3150029684ee4c10676d9fbaee","impliedFormat":1},{"version":"6b306cd4282bbb54d4a6bb23cfb7a271160983dfc38c67b5a132504cfcc34896","affectsGlobalScope":true,"impliedFormat":1},{"version":"c119835edf36415081dfd9ed15fc0cd37aaa28d232be029ad073f15f3d88c323","impliedFormat":1},{"version":"450172a56b944c2d83f45cc11c9a388ea967cd301a21202aa0a23c34c7506a18","impliedFormat":1},{"version":"9705cd157ffbb91c5cab48bdd2de5a437a372e63f870f8a8472e72ff634d47c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"ae86f30d5d10e4f75ce8dcb6e1bd3a12ecec3d071a21e8f462c5c85c678efb41","impliedFormat":1},{"version":"72f8936aebf0c4a1adab767b97d34ba7d3a308afcf76de4417b9c16fb92ed548","impliedFormat":1},{"version":"e03460fe72b259f6d25ad029f085e4bedc3f90477da4401d8fbc1efa9793230e","impliedFormat":1},{"version":"4286a3a6619514fca656089aee160bb6f2e77f4dd53dc5a96b26a0b4fc778055","impliedFormat":1},{"version":"04aa8fb012abeecf5666b013c59ba01dca5aa0c28173cb5385bc88d4adeb8d64","affectsGlobalScope":true,"impliedFormat":1},{"version":"3585d6891e9ea18e07d0755a6d90d71331558ba5dc5561933553209f886db106","affectsGlobalScope":true,"impliedFormat":1},{"version":"86be71cbb0593468644932a6eb96d527cfa600cecfc0b698af5f52e51804451d","impliedFormat":1},{"version":"84dd6b0fd2505135692935599d6606f50a421389e8d4535194bcded307ee5cf2","impliedFormat":1},{"version":"0d5b085f36e6dc55bc6332ecb9c733be3a534958c238fb8d8d18d4a2b6f2a15a","impliedFormat":1},{"version":"db19ea066fdc5f97df3f769e582ae3000380ab7942e266654bdb1a4650d19eaf","affectsGlobalScope":true,"impliedFormat":1},{"version":"2a034894bf28c220a331c7a0229d33564803abe2ac1b9a5feee91b6b9b6e88ea","impliedFormat":1},{"version":"d7e9ab1b0996639047c61c1e62f85c620e4382206b3abb430d9a21fb7bc23c77","impliedFormat":1},{"version":"a7ca8df4f2931bef2aa4118078584d84a0b16539598eaadf7dce9104dfaa381c","impliedFormat":1},{"version":"4d37fa53d2873c4c97b1ff3c0dadfbb8024aaf7a310af89e3de0aa7d1abb2819","impliedFormat":99},{"version":"11443a1dcfaaa404c68d53368b5b818712b95dd19f188cab1669c39bee8b84b3","impliedFormat":1},{"version":"151ff381ef9ff8da2da9b9663ebf657eac35c4c9a19183420c05728f31a6761d","impliedFormat":1},{"version":"67f0933742a1e547fc31cc52c4183b2be0726ffa9689586b761cef241ca6b251","affectsGlobalScope":true,"impliedFormat":1},{"version":"a660aa95476042d3fdcc1343cf6bb8fdf24772d31712b1db321c5a4dcc325434","impliedFormat":1},{"version":"36977c14a7f7bfc8c0426ae4343875689949fb699f3f84ecbe5b300ebf9a2c55","impliedFormat":1},{"version":"561d779a3525dce3fcadfbbf38407eda7f89ced9df3baf35844fcc4ee8ad2c46","impliedFormat":99},{"version":"161c8e0690c46021506e32fda85956d785b70f309ae97011fd27374c065cac9b","affectsGlobalScope":true,"impliedFormat":1},{"version":"f582b0fcbf1eea9b318ab92fb89ea9ab2ebb84f9b60af89328a91155e1afce72","impliedFormat":1},{"version":"402e5c534fb2b85fa771170595db3ac0dd532112c8fa44fc23f233bc6967488b","impliedFormat":1},{"version":"8885cf05f3e2abf117590bbb951dcf6359e3e5ac462af1c901cfd24c6a6472e2","impliedFormat":1},{"version":"333caa2bfff7f06017f114de738050dd99a765c7eb16571c6d25a38c0d5365dc","impliedFormat":1},{"version":"e61df3640a38d535fd4bc9f4a53aef17c296b58dc4b6394fd576b808dd2fe5e6","impliedFormat":1},{"version":"459920181700cec8cbdf2a5faca127f3f17fd8dd9d9e577ed3f5f3af5d12a2e4","impliedFormat":1},{"version":"4719c209b9c00b579553859407a7e5dcfaa1c472994bd62aa5dd3cc0757eb077","impliedFormat":1},{"version":"7ec359bbc29b69d4063fe7dad0baaf35f1856f914db16b3f4f6e3e1bca4099fa","impliedFormat":1},{"version":"70790a7f0040993ca66ab8a07a059a0f8256e7bb57d968ae945f696cbff4ac7a","impliedFormat":1},{"version":"d1b9a81e99a0050ca7f2d98d7eedc6cda768f0eb9fa90b602e7107433e64c04c","impliedFormat":1},{"version":"a022503e75d6953d0e82c2c564508a5c7f8556fad5d7f971372d2d40479e4034","impliedFormat":1},{"version":"b215c4f0096f108020f666ffcc1f072c81e9f2f95464e894a5d5f34c5ea2a8b1","impliedFormat":1},{"version":"644491cde678bd462bb922c1d0cfab8f17d626b195ccb7f008612dc31f445d2d","impliedFormat":1},{"version":"dfe54dab1fa4961a6bcfba68c4ca955f8b5bbeb5f2ab3c915aa7adaa2eabc03a","impliedFormat":1},{"version":"1251d53755b03cde02466064260bb88fd83c30006a46395b7d9167340bc59b73","impliedFormat":1},{"version":"47865c5e695a382a916b1eedda1b6523145426e48a2eae4647e96b3b5e52024f","impliedFormat":1},{"version":"4cdf27e29feae6c7826cdd5c91751cc35559125e8304f9e7aed8faef97dcf572","impliedFormat":1},{"version":"331b8f71bfae1df25d564f5ea9ee65a0d847c4a94baa45925b6f38c55c7039bf","impliedFormat":1},{"version":"2a771d907aebf9391ac1f50e4ad37952943515eeea0dcc7e78aa08f508294668","impliedFormat":1},{"version":"0146fd6262c3fd3da51cb0254bb6b9a4e42931eb2f56329edd4c199cb9aaf804","impliedFormat":1},{"version":"183f480885db5caa5a8acb833c2be04f98056bdcc5fb29e969ff86e07efe57ab","impliedFormat":99},{"version":"960bd764c62ac43edc24eaa2af958a4b4f1fa5d27df5237e176d0143b36a39c6","affectsGlobalScope":true,"impliedFormat":1},{"version":"f7eebe1b25040d805aefe8971310b805cd49b8602ec206d25b38dc48c542f165","impliedFormat":1},{"version":"a18642ddf216f162052a16cba0944892c4c4c977d3306a87cb673d46abbb0cbf","impliedFormat":1},{"version":"509f8efdfc5f9f6b52284170e8d7413552f02d79518d1db691ee15acc0088676","impliedFormat":1},{"version":"4ec16d7a4e366c06a4573d299e15fe6207fc080f41beac5da06f4af33ea9761e","impliedFormat":1},{"version":"59f8dc89b9e724a6a667f52cdf4b90b6816ae6c9842ce176d38fcc973669009e","affectsGlobalScope":true,"impliedFormat":1},{"version":"e4af494f7a14b226bbe732e9c130d8811f8c7025911d7c58dd97121a85519715","impliedFormat":1},{"version":"b1cc6653d2f28c4e1ade75566fecbd3a263faa654f797603c3b13b87b91f12bf","impliedFormat":99},{"version":"c2c2a861a338244d7dd700d0c52a78916b4bb75b98fc8ca5e7c501899fc03796","impliedFormat":1},{"version":"f468b74459f1ad4473b36a36d49f2b255f3c6b5d536c81239c2b2971df089eaf","impliedFormat":1},{"version":"adb467429462e3891de5bb4a82a4189b92005d61c7f9367c089baf03997c104e","impliedFormat":1},{"version":"7f108fc2f0dd96e1ce5e6942c555538afc4d836d4e22b60cdbe034caaac7b521","impliedFormat":1},{"version":"2be2227c3810dfd84e46674fd33b8d09a4a28ad9cb633ed536effd411665ea1e","impliedFormat":99},{"version":"e134052a6b1ded61693b4037f615dc72f14e2881e79c1ddbff6c514c8a516b05","impliedFormat":1},{"version":"83eeb5fc6bc433785dec98525eb003a02134024a8630134ecc67404d0075c26e","impliedFormat":1},{"version":"3feec212c0aeb91e5a6e62caaf9f128954590210f8c302910ea377c088f6b61a","impliedFormat":99},{"version":"7fd978ea8f69444fb258da99a6d1174ab08aa1f2ff8220d0a3bbe30f4de1e0cc","impliedFormat":99},{"version":"7757c6ca7a8ad1992401c6aff33633d6a088515be5a39d7ee188b35bfc8e5f8e","impliedFormat":99},{"version":"5be0704cb2862a867594e167b20195413a13d1a59359a1843032f648ed5a0057","signature":"4b96dd19fd2949d28ce80e913412b0026dc421e5bf6c31d87c7b5eb11b5753b4"}],"root":[207],"options":{"allowSyntheticDefaultImports":true,"composite":true,"module":99,"skipLibCheck":true},"referencedMap":[[199,1],[197,2],[206,3],[162,2],[105,4],[106,4],[107,5],[54,6],[108,7],[109,8],[110,9],[52,2],[111,10],[112,11],[113,12],[114,13],[115,14],[116,15],[117,15],[118,16],[119,17],[120,18],[121,19],[55,2],[53,2],[122,20],[123,21],[124,22],[158,23],[125,24],[126,2],[127,25],[128,26],[129,27],[130,28],[131,29],[132,30],[133,31],[134,32],[135,33],[136,33],[137,34],[138,2],[139,35],[140,36],[142,37],[141,38],[143,39],[144,40],[145,41],[146,42],[147,43],[148,44],[149,45],[150,46],[151,47],[152,48],[153,49],[154,50],[155,51],[56,2],[57,52],[58,2],[59,2],[101,53],[102,54],[103,2],[104,39],[156,55],[157,56],[205,57],[200,58],[203,59],[198,2],[167,2],[190,2],[192,60],[191,2],[201,2],[185,61],[183,62],[184,63],[172,64],[173,62],[180,65],[171,66],[176,67],[186,2],[177,68],[182,69],[188,70],[187,71],[170,72],[178,73],[179,74],[174,75],[181,61],[175,76],[164,77],[163,78],[169,2],[1,2],[50,2],[51,2],[9,2],[13,2],[12,2],[3,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[21,2],[4,2],[22,2],[23,2],[5,2],[24,2],[28,2],[25,2],[26,2],[27,2],[29,2],[30,2],[31,2],[6,2],[32,2],[33,2],[34,2],[35,2],[7,2],[39,2],[36,2],[37,2],[38,2],[40,2],[8,2],[41,2],[46,2],[47,2],[42,2],[43,2],[44,2],[45,2],[2,2],[48,2],[49,2],[11,2],[10,2],[202,2],[77,79],[89,80],[75,81],[90,82],[99,83],[66,84],[67,85],[65,86],[98,87],[93,88],[97,89],[69,90],[86,91],[68,92],[96,93],[63,94],[64,88],[70,95],[71,2],[76,96],[74,95],[61,97],[100,98],[91,99],[80,100],[79,95],[81,101],[84,102],[78,103],[82,104],[94,87],[72,105],[73,106],[85,107],[62,82],[88,108],[87,95],[83,109],[92,2],[60,2],[95,110],[160,111],[196,112],[166,113],[161,111],[159,2],[165,114],[194,2],[189,2],[193,115],[168,2],[195,116],[204,117],[207,118]],"latestChangedDtsFile":"./vite.config.d.ts","version":"5.9.3"} \ No newline at end of file diff --git a/polylan_submitter/vite.config.js b/polylan_submitter/vite.config.js index 9f491f7..b643e78 100644 --- a/polylan_submitter/vite.config.js +++ b/polylan_submitter/vite.config.js @@ -23,6 +23,7 @@ export default defineConfig({ opus_magnum: resolve('./src/opus-magnum.ts'), home: resolve('./src/home.ts'), noita: resolve('./src/noita.ts'), + market: resolve('./src/market.ts'), } } }, diff --git a/polylan_submitter/vite.config.ts b/polylan_submitter/vite.config.ts index d360614..d79377e 100644 --- a/polylan_submitter/vite.config.ts +++ b/polylan_submitter/vite.config.ts @@ -25,6 +25,7 @@ export default defineConfig({ opus_magnum: resolve('./src/opus-magnum.ts'), home: resolve('./src/home.ts'), noita: resolve('./src/noita.ts'), + market: resolve('./src/market.ts'), } } },