opus-submitter/opus_submitter/static_source/vite/assets/main-fzs-6OUY.js

22 lines
120 KiB
JavaScript

/**
* @vue/shared v3.5.22
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Ln(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const le={},Pt=[],Je=()=>{},lo=()=>!1,xs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Mn=e=>e.startsWith("onUpdate:"),ze=Object.assign,$n=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},Ei=Object.prototype.hasOwnProperty,se=(e,t)=>Ei.call(e,t),H=Array.isArray,Rt=e=>ss(e)==="[object Map]",Ss=e=>ss(e)==="[object Set]",sr=e=>ss(e)==="[object Date]",Y=e=>typeof e=="function",me=e=>typeof e=="string",Ye=e=>typeof e=="symbol",fe=e=>e!==null&&typeof e=="object",ao=e=>(fe(e)||Y(e))&&Y(e.then)&&Y(e.catch),co=Object.prototype.toString,ss=e=>co.call(e),Oi=e=>ss(e).slice(8,-1),uo=e=>ss(e)==="[object Object]",Tn=e=>me(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,jt=Ln(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),zs=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},Pi=/-\w/g,gt=zs(e=>e.replace(Pi,t=>t.slice(1).toUpperCase())),Ri=/\B([A-Z])/g,zt=zs(e=>e.replace(Ri,"-$1").toLowerCase()),fo=zs(e=>e.charAt(0).toUpperCase()+e.slice(1)),ks=zs(e=>e?`on${fo(e)}`:""),ut=(e,t)=>!Object.is(e,t),cs=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},ho=(e,t,s,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},mn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let nr;const Cs=()=>nr||(nr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function An(e){if(H(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],r=me(n)?Ti(n):An(n);if(r)for(const o in r)t[o]=r[o]}return t}else if(me(e)||fe(e))return e}const Li=/;(?![^(]*\))/g,Mi=/:([^]+)/,$i=/\/\*[^]*?\*\//g;function Ti(e){const t={};return e.replace($i,"").split(Li).forEach(s=>{if(s){const n=s.split(Mi);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function ft(e){let t="";if(me(e))t=e;else if(H(e))for(let s=0;s<e.length;s++){const n=ft(e[s]);n&&(t+=n+" ")}else if(fe(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const Ai="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ki=Ln(Ai);function po(e){return!!e||e===""}function Di(e,t){if(e.length!==t.length)return!1;let s=!0;for(let n=0;s&&n<e.length;n++)s=Es(e[n],t[n]);return s}function Es(e,t){if(e===t)return!0;let s=sr(e),n=sr(t);if(s||n)return s&&n?e.getTime()===t.getTime():!1;if(s=Ye(e),n=Ye(t),s||n)return e===t;if(s=H(e),n=H(t),s||n)return s&&n?Di(e,t):!1;if(s=fe(e),n=fe(t),s||n){if(!s||!n)return!1;const r=Object.keys(e).length,o=Object.keys(t).length;if(r!==o)return!1;for(const i in e){const l=e.hasOwnProperty(i),a=t.hasOwnProperty(i);if(l&&!a||!l&&a||!Es(e[i],t[i]))return!1}}return String(e)===String(t)}function go(e,t){return e.findIndex(s=>Es(s,t))}const mo=e=>!!(e&&e.__v_isRef===!0),B=e=>me(e)?e:e==null?"":H(e)||fe(e)&&(e.toString===co||!Y(e.toString))?mo(e)?B(e.value):JSON.stringify(e,vo,2):String(e),vo=(e,t)=>mo(t)?vo(e,t.value):Rt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,r],o)=>(s[Ds(n,o)+" =>"]=r,s),{})}:Ss(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>Ds(s))}:Ye(t)?Ds(t):fe(t)&&!H(t)&&!uo(t)?String(t):t,Ds=(e,t="")=>{var s;return Ye(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 we;class bo{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=we,!t&&we&&(this.index=(we.scopes||(we.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;t<s;t++)this.scopes[t].pause();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].resume();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].resume()}}run(t){if(this._active){const s=we;try{return we=this,t()}finally{we=s}}}on(){++this._on===1&&(this.prevScope=we,we=this)}off(){this._on>0&&--this._on===0&&(we=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,n=this.scopes.length;s<n;s++)this.scopes[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function _o(e){return new bo(e)}function yo(){return we}function Ii(e,t=!1){we&&we.cleanups.push(e)}let ce;const Is=new WeakSet;class wo{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,we&&we.active&&we.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Is.has(this)&&(Is.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||So(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,rr(this),zo(this);const t=ce,s=je;ce=this,je=!0;try{return this.fn()}finally{Co(this),ce=t,je=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)In(t);this.deps=this.depsTail=void 0,rr(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Is.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){vn(this)&&this.run()}get dirty(){return vn(this)}}let xo=0,Ut,Vt;function So(e,t=!1){if(e.flags|=8,t){e.next=Vt,Vt=e;return}e.next=Ut,Ut=e}function kn(){xo++}function Dn(){if(--xo>0)return;if(Vt){let t=Vt;for(Vt=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Ut;){let t=Ut;for(Ut=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 zo(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Co(e){let t,s=e.depsTail,n=s;for(;n;){const r=n.prevDep;n.version===-1?(n===s&&(s=r),In(n),Ni(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=r}e.deps=t,e.depsTail=s}function vn(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Eo(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Eo(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Zt)||(e.globalVersion=Zt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!vn(e))))return;e.flags|=2;const t=e.dep,s=ce,n=je;ce=e,je=!0;try{zo(e);const r=e.fn(e._value);(t.version===0||ut(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{ce=s,je=n,Co(e),e.flags&=-3}}function In(e,t=!1){const{dep:s,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let o=s.computed.deps;o;o=o.nextDep)In(o,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Ni(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let je=!0;const Oo=[];function nt(){Oo.push(je),je=!1}function rt(){const e=Oo.pop();je=e===void 0?!0:e}function rr(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=ce;ce=void 0;try{t()}finally{ce=s}}}let Zt=0;class Fi{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 Nn{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(!ce||!je||ce===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==ce)s=this.activeLink=new Fi(ce,this),ce.deps?(s.prevDep=ce.depsTail,ce.depsTail.nextDep=s,ce.depsTail=s):ce.deps=ce.depsTail=s,Po(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=ce.depsTail,s.nextDep=void 0,ce.depsTail.nextDep=s,ce.depsTail=s,ce.deps===s&&(ce.deps=n)}return s}trigger(t){this.version++,Zt++,this.notify(t)}notify(t){kn();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{Dn()}}}function Po(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)Po(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const hs=new WeakMap,xt=Symbol(""),bn=Symbol(""),Qt=Symbol("");function xe(e,t,s){if(je&&ce){let n=hs.get(e);n||hs.set(e,n=new Map);let r=n.get(s);r||(n.set(s,r=new Nn),r.map=n,r.key=s),r.track()}}function tt(e,t,s,n,r,o){const i=hs.get(e);if(!i){Zt++;return}const l=a=>{a&&a.trigger()};if(kn(),t==="clear")i.forEach(l);else{const a=H(e),d=a&&Tn(s);if(a&&s==="length"){const u=Number(n);i.forEach((g,x)=>{(x==="length"||x===Qt||!Ye(x)&&x>=u)&&l(g)})}else switch((s!==void 0||i.has(void 0))&&l(i.get(s)),d&&l(i.get(Qt)),t){case"add":a?d&&l(i.get("length")):(l(i.get(xt)),Rt(e)&&l(i.get(bn)));break;case"delete":a||(l(i.get(xt)),Rt(e)&&l(i.get(bn)));break;case"set":Rt(e)&&l(i.get(xt));break}}Dn()}function ji(e,t){const s=hs.get(e);return s&&s.get(t)}function Ct(e){const t=te(e);return t===e?t:(xe(t,"iterate",Qt),Ne(e)?t:t.map(_e))}function Os(e){return xe(e=te(e),"iterate",Qt),e}const Ui={__proto__:null,[Symbol.iterator](){return Ns(this,Symbol.iterator,_e)},concat(...e){return Ct(this).concat(...e.map(t=>H(t)?Ct(t):t))},entries(){return Ns(this,"entries",e=>(e[1]=_e(e[1]),e))},every(e,t){return Xe(this,"every",e,t,void 0,arguments)},filter(e,t){return Xe(this,"filter",e,t,s=>s.map(_e),arguments)},find(e,t){return Xe(this,"find",e,t,_e,arguments)},findIndex(e,t){return Xe(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Xe(this,"findLast",e,t,_e,arguments)},findLastIndex(e,t){return Xe(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Xe(this,"forEach",e,t,void 0,arguments)},includes(...e){return Fs(this,"includes",e)},indexOf(...e){return Fs(this,"indexOf",e)},join(e){return Ct(this).join(e)},lastIndexOf(...e){return Fs(this,"lastIndexOf",e)},map(e,t){return Xe(this,"map",e,t,void 0,arguments)},pop(){return kt(this,"pop")},push(...e){return kt(this,"push",e)},reduce(e,...t){return or(this,"reduce",e,t)},reduceRight(e,...t){return or(this,"reduceRight",e,t)},shift(){return kt(this,"shift")},some(e,t){return Xe(this,"some",e,t,void 0,arguments)},splice(...e){return kt(this,"splice",e)},toReversed(){return Ct(this).toReversed()},toSorted(e){return Ct(this).toSorted(e)},toSpliced(...e){return Ct(this).toSpliced(...e)},unshift(...e){return kt(this,"unshift",e)},values(){return Ns(this,"values",_e)}};function Ns(e,t,s){const n=Os(e),r=n[t]();return n!==e&&!Ne(e)&&(r._next=r.next,r.next=()=>{const o=r._next();return o.done||(o.value=s(o.value)),o}),r}const Vi=Array.prototype;function Xe(e,t,s,n,r,o){const i=Os(e),l=i!==e&&!Ne(e),a=i[t];if(a!==Vi[t]){const g=a.apply(e,o);return l?_e(g):g}let d=s;i!==e&&(l?d=function(g,x){return s.call(this,_e(g),x,e)}:s.length>2&&(d=function(g,x){return s.call(this,g,x,e)}));const u=a.call(i,d,n);return l&&r?r(u):u}function or(e,t,s,n){const r=Os(e);let o=s;return r!==e&&(Ne(e)?s.length>3&&(o=function(i,l,a){return s.call(this,i,l,a,e)}):o=function(i,l,a){return s.call(this,i,_e(l),a,e)}),r[t](o,...n)}function Fs(e,t,s){const n=te(e);xe(n,"iterate",Qt);const r=n[t](...s);return(r===-1||r===!1)&&Un(s[0])?(s[0]=te(s[0]),n[t](...s)):r}function kt(e,t,s=[]){nt(),kn();const n=te(e)[t].apply(e,s);return Dn(),rt(),n}const qi=Ln("__proto__,__v_isRef,__isVue"),Ro=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ye));function Bi(e){Ye(e)||(e=String(e));const t=te(this);return xe(t,"has",e),t.hasOwnProperty(e)}class Lo{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const r=this._isReadonly,o=this._isShallow;if(s==="__v_isReactive")return!r;if(s==="__v_isReadonly")return r;if(s==="__v_isShallow")return o;if(s==="__v_raw")return n===(r?o?el:Ao:o?To:$o).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const i=H(t);if(!r){let a;if(i&&(a=Ui[s]))return a;if(s==="hasOwnProperty")return Bi}const l=Reflect.get(t,s,ge(t)?t:n);if((Ye(s)?Ro.has(s):qi(s))||(r||xe(t,"get",s),o))return l;if(ge(l)){const a=i&&Tn(s)?l:l.value;return r&&fe(a)?yn(a):a}return fe(l)?r?yn(l):Ps(l):l}}class Mo extends Lo{constructor(t=!1){super(!1,t)}set(t,s,n,r){let o=t[s];if(!this._isShallow){const a=mt(o);if(!Ne(n)&&!mt(n)&&(o=te(o),n=te(n)),!H(t)&&ge(o)&&!ge(n))return a||(o.value=n),!0}const i=H(t)&&Tn(s)?Number(s)<t.length:se(t,s),l=Reflect.set(t,s,n,ge(t)?t:r);return t===te(r)&&(i?ut(n,o)&&tt(t,"set",s,n):tt(t,"add",s,n)),l}deleteProperty(t,s){const n=se(t,s);t[s];const r=Reflect.deleteProperty(t,s);return r&&n&&tt(t,"delete",s,void 0),r}has(t,s){const n=Reflect.has(t,s);return(!Ye(s)||!Ro.has(s))&&xe(t,"has",s),n}ownKeys(t){return xe(t,"iterate",H(t)?"length":xt),Reflect.ownKeys(t)}}class Hi extends Lo{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const Wi=new Mo,Ki=new Hi,Gi=new Mo(!0);const _n=e=>e,is=e=>Reflect.getPrototypeOf(e);function Ji(e,t,s){return function(...n){const r=this.__v_raw,o=te(r),i=Rt(o),l=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,d=r[e](...n),u=s?_n:t?ps:_e;return!t&&xe(o,"iterate",a?bn:xt),{next(){const{value:g,done:x}=d.next();return x?{value:g,done:x}:{value:l?[u(g[0]),u(g[1])]:u(g),done:x}},[Symbol.iterator](){return this}}}}function ls(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Yi(e,t){const s={get(r){const o=this.__v_raw,i=te(o),l=te(r);e||(ut(r,l)&&xe(i,"get",r),xe(i,"get",l));const{has:a}=is(i),d=t?_n:e?ps:_e;if(a.call(i,r))return d(o.get(r));if(a.call(i,l))return d(o.get(l));o!==i&&o.get(r)},get size(){const r=this.__v_raw;return!e&&xe(te(r),"iterate",xt),r.size},has(r){const o=this.__v_raw,i=te(o),l=te(r);return e||(ut(r,l)&&xe(i,"has",r),xe(i,"has",l)),r===l?o.has(r):o.has(r)||o.has(l)},forEach(r,o){const i=this,l=i.__v_raw,a=te(l),d=t?_n:e?ps:_e;return!e&&xe(a,"iterate",xt),l.forEach((u,g)=>r.call(o,d(u),d(g),i))}};return ze(s,e?{add:ls("add"),set:ls("set"),delete:ls("delete"),clear:ls("clear")}:{add(r){!t&&!Ne(r)&&!mt(r)&&(r=te(r));const o=te(this);return is(o).has.call(o,r)||(o.add(r),tt(o,"add",r,r)),this},set(r,o){!t&&!Ne(o)&&!mt(o)&&(o=te(o));const i=te(this),{has:l,get:a}=is(i);let d=l.call(i,r);d||(r=te(r),d=l.call(i,r));const u=a.call(i,r);return i.set(r,o),d?ut(o,u)&&tt(i,"set",r,o):tt(i,"add",r,o),this},delete(r){const o=te(this),{has:i,get:l}=is(o);let a=i.call(o,r);a||(r=te(r),a=i.call(o,r)),l&&l.call(o,r);const d=o.delete(r);return a&&tt(o,"delete",r,void 0),d},clear(){const r=te(this),o=r.size!==0,i=r.clear();return o&&tt(r,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(r=>{s[r]=Ji(r,e,t)}),s}function Fn(e,t){const s=Yi(e,t);return(n,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?n:Reflect.get(se(s,r)&&r in n?s:n,r,o)}const Zi={get:Fn(!1,!1)},Qi={get:Fn(!1,!0)},Xi={get:Fn(!0,!1)};const $o=new WeakMap,To=new WeakMap,Ao=new WeakMap,el=new WeakMap;function tl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function sl(e){return e.__v_skip||!Object.isExtensible(e)?0:tl(Oi(e))}function Ps(e){return mt(e)?e:jn(e,!1,Wi,Zi,$o)}function nl(e){return jn(e,!1,Gi,Qi,To)}function yn(e){return jn(e,!0,Ki,Xi,Ao)}function jn(e,t,s,n,r){if(!fe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=sl(e);if(o===0)return e;const i=r.get(e);if(i)return i;const l=new Proxy(e,o===2?n:s);return r.set(e,l),l}function dt(e){return mt(e)?dt(e.__v_raw):!!(e&&e.__v_isReactive)}function mt(e){return!!(e&&e.__v_isReadonly)}function Ne(e){return!!(e&&e.__v_isShallow)}function Un(e){return e?!!e.__v_raw:!1}function te(e){const t=e&&e.__v_raw;return t?te(t):e}function Vn(e){return!se(e,"__v_skip")&&Object.isExtensible(e)&&ho(e,"__v_skip",!0),e}const _e=e=>fe(e)?Ps(e):e,ps=e=>fe(e)?yn(e):e;function ge(e){return e?e.__v_isRef===!0:!1}function ue(e){return rl(e,!1)}function rl(e,t){return ge(e)?e:new ol(e,t)}class ol{constructor(t,s){this.dep=new Nn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:te(t),this._value=s?t:_e(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||Ne(t)||mt(t);t=n?t:te(t),ut(t,s)&&(this._rawValue=t,this._value=n?t:_e(t),this.dep.trigger())}}function Nt(e){return ge(e)?e.value:e}const il={get:(e,t,s)=>t==="__v_raw"?e:Nt(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const r=e[t];return ge(r)&&!ge(s)?(r.value=s,!0):Reflect.set(e,t,s,n)}};function ko(e){return dt(e)?e:new Proxy(e,il)}function ll(e){const t=H(e)?new Array(e.length):{};for(const s in e)t[s]=cl(e,s);return t}class al{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 ji(te(this._object),this._key)}}function cl(e,t,s){const n=e[t];return ge(n)?n:new al(e,t,s)}class ul{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new Nn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Zt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&ce!==this)return So(this,!0),!0}get value(){const t=this.dep.track();return Eo(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function fl(e,t,s=!1){let n,r;return Y(e)?n=e:(n=e.get,r=e.set),new ul(n,r,s)}const as={},gs=new WeakMap;let yt;function dl(e,t=!1,s=yt){if(s){let n=gs.get(s);n||gs.set(s,n=[]),n.push(e)}}function hl(e,t,s=le){const{immediate:n,deep:r,once:o,scheduler:i,augmentJob:l,call:a}=s,d=w=>r?w:Ne(w)||r===!1||r===0?st(w,1):st(w);let u,g,x,p,m=!1,_=!1;if(ge(e)?(g=()=>e.value,m=Ne(e)):dt(e)?(g=()=>d(e),m=!0):H(e)?(_=!0,m=e.some(w=>dt(w)||Ne(w)),g=()=>e.map(w=>{if(ge(w))return w.value;if(dt(w))return d(w);if(Y(w))return a?a(w,2):w()})):Y(e)?t?g=a?()=>a(e,2):e:g=()=>{if(x){nt();try{x()}finally{rt()}}const w=yt;yt=u;try{return a?a(e,3,[p]):e(p)}finally{yt=w}}:g=Je,t&&r){const w=g,S=r===!0?1/0:r;g=()=>st(w(),S)}const A=yo(),I=()=>{u.stop(),A&&A.active&&$n(A.effects,u)};if(o&&t){const w=t;t=(...S)=>{w(...S),I()}}let W=_?new Array(e.length).fill(as):as;const N=w=>{if(!(!(u.flags&1)||!u.dirty&&!w))if(t){const S=u.run();if(r||m||(_?S.some(($,Q)=>ut($,W[Q])):ut(S,W))){x&&x();const $=yt;yt=u;try{const Q=[S,W===as?void 0:_&&W[0]===as?[]:W,p];W=S,a?a(t,3,Q):t(...Q)}finally{yt=$}}}else u.run()};return l&&l(N),u=new wo(g),u.scheduler=i?()=>i(N,!1):N,p=w=>dl(w,!1,u),x=u.onStop=()=>{const w=gs.get(u);if(w){if(a)a(w,4);else for(const S of w)S();gs.delete(u)}},t?n?N(!0):W=u.run():i?i(N.bind(null,!0),!0):u.run(),I.pause=u.pause.bind(u),I.resume=u.resume.bind(u),I.stop=I,I}function st(e,t=1/0,s){if(t<=0||!fe(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,ge(e))st(e.value,t,s);else if(H(e))for(let n=0;n<e.length;n++)st(e[n],t,s);else if(Ss(e)||Rt(e))e.forEach(n=>{st(n,t,s)});else if(uo(e)){for(const n in e)st(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&st(e[n],t,s)}return e}/**
* @vue/runtime-core v3.5.22
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function ns(e,t,s,n){try{return n?e(...n):e()}catch(r){Rs(r,t,s)}}function Ze(e,t,s,n){if(Y(e)){const r=ns(e,t,s,n);return r&&ao(r)&&r.catch(o=>{Rs(o,t,s)}),r}if(H(e)){const r=[];for(let o=0;o<e.length;o++)r.push(Ze(e[o],t,s,n));return r}}function Rs(e,t,s,n=!0){const r=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||le;if(t){let l=t.parent;const a=t.proxy,d=`https://vuejs.org/error-reference/#runtime-${s}`;for(;l;){const u=l.ec;if(u){for(let g=0;g<u.length;g++)if(u[g](e,a,d)===!1)return}l=l.parent}if(o){nt(),ns(o,null,10,[e,a,d]),rt();return}}pl(e,s,r,n,i)}function pl(e,t,s,n=!0,r=!1){if(r)throw e;console.error(e)}const Oe=[];let We=-1;const Lt=[];let at=null,Ot=0;const Do=Promise.resolve();let ms=null;function qt(e){const t=ms||Do;return e?t.then(this?e.bind(this):e):t}function gl(e){let t=We+1,s=Oe.length;for(;t<s;){const n=t+s>>>1,r=Oe[n],o=Xt(r);o<e||o===e&&r.flags&2?t=n+1:s=n}return t}function qn(e){if(!(e.flags&1)){const t=Xt(e),s=Oe[Oe.length-1];!s||!(e.flags&2)&&t>=Xt(s)?Oe.push(e):Oe.splice(gl(t),0,e),e.flags|=1,Io()}}function Io(){ms||(ms=Do.then(Fo))}function ml(e){H(e)?Lt.push(...e):at&&e.id===-1?at.splice(Ot+1,0,e):e.flags&1||(Lt.push(e),e.flags|=1),Io()}function ir(e,t,s=We+1){for(;s<Oe.length;s++){const n=Oe[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;Oe.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function No(e){if(Lt.length){const t=[...new Set(Lt)].sort((s,n)=>Xt(s)-Xt(n));if(Lt.length=0,at){at.push(...t);return}for(at=t,Ot=0;Ot<at.length;Ot++){const s=at[Ot];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}at=null,Ot=0}}const Xt=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Fo(e){try{for(We=0;We<Oe.length;We++){const t=Oe[We];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),ns(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;We<Oe.length;We++){const t=Oe[We];t&&(t.flags&=-2)}We=-1,Oe.length=0,No(),ms=null,(Oe.length||Lt.length)&&Fo()}}let Ie=null,jo=null;function vs(e){const t=Ie;return Ie=e,jo=e&&e.type.__scopeId||null,t}function vl(e,t=Ie,s){if(!t||e._n)return e;const n=(...r)=>{n._d&&mr(-1);const o=vs(t);let i;try{i=e(...r)}finally{vs(o),n._d&&mr(1)}return i};return n._n=!0,n._c=!0,n._d=!0,n}function Bt(e,t){if(Ie===null)return e;const s=Ts(Ie),n=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[o,i,l,a=le]=t[r];o&&(Y(o)&&(o={mounted:o,updated:o}),o.deep&&st(i),n.push({dir:o,instance:s,value:i,oldValue:void 0,arg:l,modifiers:a}))}return e}function bt(e,t,s,n){const r=e.dirs,o=t&&t.dirs;for(let i=0;i<r.length;i++){const l=r[i];o&&(l.oldValue=o[i].value);let a=l.dir[n];a&&(nt(),Ze(a,s,8,[e.el,l,e,t]),rt())}}const bl=Symbol("_vte"),_l=e=>e.__isTeleport,yl=Symbol("_leaveCb");function Bn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Bn(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 rs(e,t){return Y(e)?ze({name:e.name},t,{setup:e}):e}function Uo(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const bs=new WeakMap;function Ht(e,t,s,n,r=!1){if(H(e)){e.forEach((m,_)=>Ht(m,t&&(H(t)?t[_]:t),s,n,r));return}if(Wt(n)&&!r){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Ht(e,t,s,n.component.subTree);return}const o=n.shapeFlag&4?Ts(n.component):n.el,i=r?null:o,{i:l,r:a}=e,d=t&&t.r,u=l.refs===le?l.refs={}:l.refs,g=l.setupState,x=te(g),p=g===le?lo:m=>se(x,m);if(d!=null&&d!==a){if(lr(t),me(d))u[d]=null,p(d)&&(g[d]=null);else if(ge(d)){d.value=null;const m=t;m.k&&(u[m.k]=null)}}if(Y(a))ns(a,l,12,[i,u]);else{const m=me(a),_=ge(a);if(m||_){const A=()=>{if(e.f){const I=m?p(a)?g[a]:u[a]:a.value;if(r)H(I)&&$n(I,o);else if(H(I))I.includes(o)||I.push(o);else if(m)u[a]=[o],p(a)&&(g[a]=u[a]);else{const W=[o];a.value=W,e.k&&(u[e.k]=W)}}else m?(u[a]=i,p(a)&&(g[a]=i)):_&&(a.value=i,e.k&&(u[e.k]=i))};if(i){const I=()=>{A(),bs.delete(e)};I.id=-1,bs.set(e,I),ke(I,s)}else lr(e),A()}}}function lr(e){const t=bs.get(e);t&&(t.flags|=8,bs.delete(e))}Cs().requestIdleCallback;Cs().cancelIdleCallback;const Wt=e=>!!e.type.__asyncLoader,Vo=e=>e.type.__isKeepAlive;function wl(e,t){qo(e,"a",t)}function xl(e,t){qo(e,"da",t)}function qo(e,t,s=Pe){const n=e.__wdc||(e.__wdc=()=>{let r=s;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Ls(t,n,s),s){let r=s.parent;for(;r&&r.parent;)Vo(r.parent.vnode)&&Sl(n,t,s,r),r=r.parent}}function Sl(e,t,s,n){const r=Ls(t,e,n,!0);Bo(()=>{$n(n[t],r)},s)}function Ls(e,t,s=Pe,n=!1){if(s){const r=s[e]||(s[e]=[]),o=t.__weh||(t.__weh=(...i)=>{nt();const l=os(s),a=Ze(t,s,e,i);return l(),rt(),a});return n?r.unshift(o):r.push(o),o}}const ot=e=>(t,s=Pe)=>{(!ts||e==="sp")&&Ls(e,(...n)=>t(...n),s)},zl=ot("bm"),Hn=ot("m"),Cl=ot("bu"),El=ot("u"),Ol=ot("bum"),Bo=ot("um"),Pl=ot("sp"),Rl=ot("rtg"),Ll=ot("rtc");function Ml(e,t=Pe){Ls("ec",e,t)}const $l=Symbol.for("v-ndc");function $t(e,t,s,n){let r;const o=s,i=H(e);if(i||me(e)){const l=i&&dt(e);let a=!1,d=!1;l&&(a=!Ne(e),d=mt(e),e=Os(e)),r=new Array(e.length);for(let u=0,g=e.length;u<g;u++)r[u]=t(a?d?ps(_e(e[u])):_e(e[u]):e[u],u,void 0,o)}else if(typeof e=="number"){r=new Array(e);for(let l=0;l<e;l++)r[l]=t(l+1,l,void 0,o)}else if(fe(e))if(e[Symbol.iterator])r=Array.from(e,(l,a)=>t(l,a,void 0,o));else{const l=Object.keys(e);r=new Array(l.length);for(let a=0,d=l.length;a<d;a++){const u=l[a];r[a]=t(e[u],u,a,o)}}else r=[];return r}const wn=e=>e?hi(e)?Ts(e):wn(e.parent):null,Kt=ze(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=>wn(e.parent),$root:e=>wn(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Wo(e),$forceUpdate:e=>e.f||(e.f=()=>{qn(e.update)}),$nextTick:e=>e.n||(e.n=qt.bind(e.proxy)),$watch:e=>ta.bind(e)}),js=(e,t)=>e!==le&&!e.__isScriptSetup&&se(e,t),Tl={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:r,props:o,accessCache:i,type:l,appContext:a}=e;let d;if(t[0]!=="$"){const p=i[t];if(p!==void 0)switch(p){case 1:return n[t];case 2:return r[t];case 4:return s[t];case 3:return o[t]}else{if(js(n,t))return i[t]=1,n[t];if(r!==le&&se(r,t))return i[t]=2,r[t];if((d=e.propsOptions[0])&&se(d,t))return i[t]=3,o[t];if(s!==le&&se(s,t))return i[t]=4,s[t];xn&&(i[t]=0)}}const u=Kt[t];let g,x;if(u)return t==="$attrs"&&xe(e.attrs,"get",""),u(e);if((g=l.__cssModules)&&(g=g[t]))return g;if(s!==le&&se(s,t))return i[t]=4,s[t];if(x=a.config.globalProperties,se(x,t))return x[t]},set({_:e},t,s){const{data:n,setupState:r,ctx:o}=e;return js(r,t)?(r[t]=s,!0):n!==le&&se(n,t)?(n[t]=s,!0):se(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:r,propsOptions:o,type:i}},l){let a,d;return!!(s[l]||e!==le&&l[0]!=="$"&&se(e,l)||js(t,l)||(a=o[0])&&se(a,l)||se(n,l)||se(Kt,l)||se(r.config.globalProperties,l)||(d=i.__cssModules)&&d[l])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:se(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function ar(e){return H(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let xn=!0;function Al(e){const t=Wo(e),s=e.proxy,n=e.ctx;xn=!1,t.beforeCreate&&cr(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:l,provide:a,inject:d,created:u,beforeMount:g,mounted:x,beforeUpdate:p,updated:m,activated:_,deactivated:A,beforeDestroy:I,beforeUnmount:W,destroyed:N,unmounted:w,render:S,renderTracked:$,renderTriggered:Q,errorCaptured:q,serverPrefetch:J,expose:ie,inheritAttrs:pe,components:Ce,directives:$e,filters:Qe}=t;if(d&&kl(d,n,null),i)for(const G in i){const Z=i[G];Y(Z)&&(n[G]=Z.bind(s))}if(r){const G=r.call(s,s);fe(G)&&(e.data=Ps(G))}if(xn=!0,o)for(const G in o){const Z=o[G],O=Y(Z)?Z.bind(s,s):Y(Z.get)?Z.get.bind(s,s):Je,z=!Y(Z)&&Y(Z.set)?Z.set.bind(s):Je,M=Ge({get:O,set:z});Object.defineProperty(n,G,{enumerable:!0,configurable:!0,get:()=>M.value,set:V=>M.value=V})}if(l)for(const G in l)Ho(l[G],n,s,G);if(a){const G=Y(a)?a.call(s):a;Reflect.ownKeys(G).forEach(Z=>{Ul(Z,G[Z])})}u&&cr(u,e,"c");function oe(G,Z){H(Z)?Z.forEach(O=>G(O.bind(s))):Z&&G(Z.bind(s))}if(oe(zl,g),oe(Hn,x),oe(Cl,p),oe(El,m),oe(wl,_),oe(xl,A),oe(Ml,q),oe(Ll,$),oe(Rl,Q),oe(Ol,W),oe(Bo,w),oe(Pl,J),H(ie))if(ie.length){const G=e.exposed||(e.exposed={});ie.forEach(Z=>{Object.defineProperty(G,Z,{get:()=>s[Z],set:O=>s[Z]=O,enumerable:!0})})}else e.exposed||(e.exposed={});S&&e.render===Je&&(e.render=S),pe!=null&&(e.inheritAttrs=pe),Ce&&(e.components=Ce),$e&&(e.directives=$e),J&&Uo(e)}function kl(e,t,s=Je){H(e)&&(e=Sn(e));for(const n in e){const r=e[n];let o;fe(r)?"default"in r?o=Gt(r.from||n,r.default,!0):o=Gt(r.from||n):o=Gt(r),ge(o)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[n]=o}}function cr(e,t,s){Ze(H(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function Ho(e,t,s,n){let r=n.includes(".")?oi(s,n):()=>s[n];if(me(e)){const o=t[e];Y(o)&&ht(r,o)}else if(Y(e))ht(r,e.bind(s));else if(fe(e))if(H(e))e.forEach(o=>Ho(o,t,s,n));else{const o=Y(e.handler)?e.handler.bind(s):t[e.handler];Y(o)&&ht(r,o,e)}}function Wo(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,l=o.get(t);let a;return l?a=l:!r.length&&!s&&!n?a=t:(a={},r.length&&r.forEach(d=>_s(a,d,i,!0)),_s(a,t,i)),fe(t)&&o.set(t,a),a}function _s(e,t,s,n=!1){const{mixins:r,extends:o}=t;o&&_s(e,o,s,!0),r&&r.forEach(i=>_s(e,i,s,!0));for(const i in t)if(!(n&&i==="expose")){const l=Dl[i]||s&&s[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const Dl={data:ur,props:fr,emits:fr,methods:Ft,computed:Ft,beforeCreate:Ee,created:Ee,beforeMount:Ee,mounted:Ee,beforeUpdate:Ee,updated:Ee,beforeDestroy:Ee,beforeUnmount:Ee,destroyed:Ee,unmounted:Ee,activated:Ee,deactivated:Ee,errorCaptured:Ee,serverPrefetch:Ee,components:Ft,directives:Ft,watch:Nl,provide:ur,inject:Il};function ur(e,t){return t?e?function(){return ze(Y(e)?e.call(this,this):e,Y(t)?t.call(this,this):t)}:t:e}function Il(e,t){return Ft(Sn(e),Sn(t))}function Sn(e){if(H(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function Ee(e,t){return e?[...new Set([].concat(e,t))]:t}function Ft(e,t){return e?ze(Object.create(null),e,t):t}function fr(e,t){return e?H(e)&&H(t)?[...new Set([...e,...t])]:ze(Object.create(null),ar(e),ar(t??{})):t}function Nl(e,t){if(!e)return t;if(!t)return e;const s=ze(Object.create(null),e);for(const n in t)s[n]=Ee(e[n],t[n]);return s}function Ko(){return{app:null,config:{isNativeTag:lo,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Fl=0;function jl(e,t){return function(n,r=null){Y(n)||(n=ze({},n)),r!=null&&!fe(r)&&(r=null);const o=Ko(),i=new WeakSet,l=[];let a=!1;const d=o.app={_uid:Fl++,_component:n,_props:r,_container:null,_context:o,_instance:null,version:xa,get config(){return o.config},set config(u){},use(u,...g){return i.has(u)||(u&&Y(u.install)?(i.add(u),u.install(d,...g)):Y(u)&&(i.add(u),u(d,...g))),d},mixin(u){return o.mixins.includes(u)||o.mixins.push(u),d},component(u,g){return g?(o.components[u]=g,d):o.components[u]},directive(u,g){return g?(o.directives[u]=g,d):o.directives[u]},mount(u,g,x){if(!a){const p=d._ceVNode||Fe(n,r);return p.appContext=o,x===!0?x="svg":x===!1&&(x=void 0),e(p,u,x),a=!0,d._container=u,u.__vue_app__=d,Ts(p.component)}},onUnmount(u){l.push(u)},unmount(){a&&(Ze(l,d._instance,16),e(null,d._container),delete d._container.__vue_app__)},provide(u,g){return o.provides[u]=g,d},runWithContext(u){const g=St;St=d;try{return u()}finally{St=g}}};return d}}let St=null;function Ul(e,t){if(Pe){let s=Pe.provides;const n=Pe.parent&&Pe.parent.provides;n===s&&(s=Pe.provides=Object.create(n)),s[e]=t}}function Gt(e,t,s=!1){const n=di();if(n||St){let r=St?St._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return s&&Y(t)?t.call(n&&n.proxy):t}}function Vl(){return!!(di()||St)}const Go={},Jo=()=>Object.create(Go),Yo=e=>Object.getPrototypeOf(e)===Go;function ql(e,t,s,n=!1){const r={},o=Jo();e.propsDefaults=Object.create(null),Zo(e,t,r,o);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);s?e.props=n?r:nl(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function Bl(e,t,s,n){const{props:r,attrs:o,vnode:{patchFlag:i}}=e,l=te(r),[a]=e.propsOptions;let d=!1;if((n||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let g=0;g<u.length;g++){let x=u[g];if(Ms(e.emitsOptions,x))continue;const p=t[x];if(a)if(se(o,x))p!==o[x]&&(o[x]=p,d=!0);else{const m=gt(x);r[m]=zn(a,l,m,p,e,!1)}else p!==o[x]&&(o[x]=p,d=!0)}}}else{Zo(e,t,r,o)&&(d=!0);let u;for(const g in l)(!t||!se(t,g)&&((u=zt(g))===g||!se(t,u)))&&(a?s&&(s[g]!==void 0||s[u]!==void 0)&&(r[g]=zn(a,l,g,void 0,e,!0)):delete r[g]);if(o!==l)for(const g in o)(!t||!se(t,g))&&(delete o[g],d=!0)}d&&tt(e.attrs,"set","")}function Zo(e,t,s,n){const[r,o]=e.propsOptions;let i=!1,l;if(t)for(let a in t){if(jt(a))continue;const d=t[a];let u;r&&se(r,u=gt(a))?!o||!o.includes(u)?s[u]=d:(l||(l={}))[u]=d:Ms(e.emitsOptions,a)||(!(a in n)||d!==n[a])&&(n[a]=d,i=!0)}if(o){const a=te(s),d=l||le;for(let u=0;u<o.length;u++){const g=o[u];s[g]=zn(r,a,g,d[g],e,!se(d,g))}}return i}function zn(e,t,s,n,r,o){const i=e[s];if(i!=null){const l=se(i,"default");if(l&&n===void 0){const a=i.default;if(i.type!==Function&&!i.skipFactory&&Y(a)){const{propsDefaults:d}=r;if(s in d)n=d[s];else{const u=os(r);n=d[s]=a.call(null,t),u()}}else n=a;r.ce&&r.ce._setProp(s,n)}i[0]&&(o&&!l?n=!1:i[1]&&(n===""||n===zt(s))&&(n=!0))}return n}const Hl=new WeakMap;function Qo(e,t,s=!1){const n=s?Hl:t.propsCache,r=n.get(e);if(r)return r;const o=e.props,i={},l=[];let a=!1;if(!Y(e)){const u=g=>{a=!0;const[x,p]=Qo(g,t,!0);ze(i,x),p&&l.push(...p)};!s&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!a)return fe(e)&&n.set(e,Pt),Pt;if(H(o))for(let u=0;u<o.length;u++){const g=gt(o[u]);dr(g)&&(i[g]=le)}else if(o)for(const u in o){const g=gt(u);if(dr(g)){const x=o[u],p=i[g]=H(x)||Y(x)?{type:x}:ze({},x),m=p.type;let _=!1,A=!0;if(H(m))for(let I=0;I<m.length;++I){const W=m[I],N=Y(W)&&W.name;if(N==="Boolean"){_=!0;break}else N==="String"&&(A=!1)}else _=Y(m)&&m.name==="Boolean";p[0]=_,p[1]=A,(_||se(p,"default"))&&l.push(g)}}const d=[i,l];return fe(e)&&n.set(e,d),d}function dr(e){return e[0]!=="$"&&!jt(e)}const Wn=e=>e==="_"||e==="_ctx"||e==="$stable",Kn=e=>H(e)?e.map(Ke):[Ke(e)],Wl=(e,t,s)=>{if(t._n)return t;const n=vl((...r)=>Kn(t(...r)),s);return n._c=!1,n},Xo=(e,t,s)=>{const n=e._ctx;for(const r in e){if(Wn(r))continue;const o=e[r];if(Y(o))t[r]=Wl(r,o,n);else if(o!=null){const i=Kn(o);t[r]=()=>i}}},ei=(e,t)=>{const s=Kn(t);e.slots.default=()=>s},ti=(e,t,s)=>{for(const n in t)(s||!Wn(n))&&(e[n]=t[n])},Kl=(e,t,s)=>{const n=e.slots=Jo();if(e.vnode.shapeFlag&32){const r=t._;r?(ti(n,t,s),s&&ho(n,"_",r,!0)):Xo(t,n)}else t&&ei(e,t)},Gl=(e,t,s)=>{const{vnode:n,slots:r}=e;let o=!0,i=le;if(n.shapeFlag&32){const l=t._;l?s&&l===1?o=!1:ti(r,t,s):(o=!t.$stable,Xo(t,r)),i=t}else t&&(ei(e,t),i={default:1});if(o)for(const l in r)!Wn(l)&&i[l]==null&&delete r[l]},ke=ca;function Jl(e){return Yl(e)}function Yl(e,t){const s=Cs();s.__VUE__=!0;const{insert:n,remove:r,patchProp:o,createElement:i,createText:l,createComment:a,setText:d,setElementText:u,parentNode:g,nextSibling:x,setScopeId:p=Je,insertStaticContent:m}=e,_=(c,h,y,P=null,v=null,b=null,L=void 0,R=null,E=!!h.dynamicChildren)=>{if(c===h)return;c&&!Dt(c,h)&&(P=ve(c),V(c,v,b,!0),c=null),h.patchFlag===-2&&(E=!1,h.dynamicChildren=null);const{type:C,ref:j,shapeFlag:T}=h;switch(C){case $s:A(c,h,y,P);break;case vt:I(c,h,y,P);break;case Vs:c==null&&W(h,y,P,L);break;case Se:Ce(c,h,y,P,v,b,L,R,E);break;default:T&1?S(c,h,y,P,v,b,L,R,E):T&6?$e(c,h,y,P,v,b,L,R,E):(T&64||T&128)&&C.process(c,h,y,P,v,b,L,R,E,Te)}j!=null&&v?Ht(j,c&&c.ref,b,h||c,!h):j==null&&c&&c.ref!=null&&Ht(c.ref,null,b,c,!0)},A=(c,h,y,P)=>{if(c==null)n(h.el=l(h.children),y,P);else{const v=h.el=c.el;h.children!==c.children&&d(v,h.children)}},I=(c,h,y,P)=>{c==null?n(h.el=a(h.children||""),y,P):h.el=c.el},W=(c,h,y,P)=>{[c.el,c.anchor]=m(c.children,h,y,P,c.el,c.anchor)},N=({el:c,anchor:h},y,P)=>{let v;for(;c&&c!==h;)v=x(c),n(c,y,P),c=v;n(h,y,P)},w=({el:c,anchor:h})=>{let y;for(;c&&c!==h;)y=x(c),r(c),c=y;r(h)},S=(c,h,y,P,v,b,L,R,E)=>{h.type==="svg"?L="svg":h.type==="math"&&(L="mathml"),c==null?$(h,y,P,v,b,L,R,E):J(c,h,v,b,L,R,E)},$=(c,h,y,P,v,b,L,R)=>{let E,C;const{props:j,shapeFlag:T,transition:U,dirs:K}=c;if(E=c.el=i(c.type,b,j&&j.is,j),T&8?u(E,c.children):T&16&&q(c.children,E,null,P,v,Us(c,b),L,R),K&&bt(c,null,P,"created"),Q(E,c,c.scopeId,L,P),j){for(const ae in j)ae!=="value"&&!jt(ae)&&o(E,ae,null,j[ae],b,P);"value"in j&&o(E,"value",null,j.value,b),(C=j.onVnodeBeforeMount)&&He(C,P,c)}K&&bt(c,null,P,"beforeMount");const X=Zl(v,U);X&&U.beforeEnter(E),n(E,h,y),((C=j&&j.onVnodeMounted)||X||K)&&ke(()=>{C&&He(C,P,c),X&&U.enter(E),K&&bt(c,null,P,"mounted")},v)},Q=(c,h,y,P,v)=>{if(y&&p(c,y),P)for(let b=0;b<P.length;b++)p(c,P[b]);if(v){let b=v.subTree;if(h===b||li(b.type)&&(b.ssContent===h||b.ssFallback===h)){const L=v.vnode;Q(c,L,L.scopeId,L.slotScopeIds,v.parent)}}},q=(c,h,y,P,v,b,L,R,E=0)=>{for(let C=E;C<c.length;C++){const j=c[C]=R?ct(c[C]):Ke(c[C]);_(null,j,h,y,P,v,b,L,R)}},J=(c,h,y,P,v,b,L)=>{const R=h.el=c.el;let{patchFlag:E,dynamicChildren:C,dirs:j}=h;E|=c.patchFlag&16;const T=c.props||le,U=h.props||le;let K;if(y&&_t(y,!1),(K=U.onVnodeBeforeUpdate)&&He(K,y,h,c),j&&bt(h,c,y,"beforeUpdate"),y&&_t(y,!0),(T.innerHTML&&U.innerHTML==null||T.textContent&&U.textContent==null)&&u(R,""),C?ie(c.dynamicChildren,C,R,y,P,Us(h,v),b):L||Z(c,h,R,null,y,P,Us(h,v),b,!1),E>0){if(E&16)pe(R,T,U,y,v);else if(E&2&&T.class!==U.class&&o(R,"class",null,U.class,v),E&4&&o(R,"style",T.style,U.style,v),E&8){const X=h.dynamicProps;for(let ae=0;ae<X.length;ae++){const ne=X[ae],Re=T[ne],Le=U[ne];(Le!==Re||ne==="value")&&o(R,ne,Re,Le,v,y)}}E&1&&c.children!==h.children&&u(R,h.children)}else!L&&C==null&&pe(R,T,U,y,v);((K=U.onVnodeUpdated)||j)&&ke(()=>{K&&He(K,y,h,c),j&&bt(h,c,y,"updated")},P)},ie=(c,h,y,P,v,b,L)=>{for(let R=0;R<h.length;R++){const E=c[R],C=h[R],j=E.el&&(E.type===Se||!Dt(E,C)||E.shapeFlag&198)?g(E.el):y;_(E,C,j,null,P,v,b,L,!0)}},pe=(c,h,y,P,v)=>{if(h!==y){if(h!==le)for(const b in h)!jt(b)&&!(b in y)&&o(c,b,h[b],null,v,P);for(const b in y){if(jt(b))continue;const L=y[b],R=h[b];L!==R&&b!=="value"&&o(c,b,R,L,v,P)}"value"in y&&o(c,"value",h.value,y.value,v)}},Ce=(c,h,y,P,v,b,L,R,E)=>{const C=h.el=c?c.el:l(""),j=h.anchor=c?c.anchor:l("");let{patchFlag:T,dynamicChildren:U,slotScopeIds:K}=h;K&&(R=R?R.concat(K):K),c==null?(n(C,y,P),n(j,y,P),q(h.children||[],y,j,v,b,L,R,E)):T>0&&T&64&&U&&c.dynamicChildren?(ie(c.dynamicChildren,U,y,v,b,L,R),(h.key!=null||v&&h===v.subTree)&&si(c,h,!0)):Z(c,h,y,j,v,b,L,R,E)},$e=(c,h,y,P,v,b,L,R,E)=>{h.slotScopeIds=R,c==null?h.shapeFlag&512?v.ctx.activate(h,y,P,L,E):Qe(h,y,P,v,b,L,E):ye(c,h,E)},Qe=(c,h,y,P,v,b,L)=>{const R=c.component=ma(c,P,v);if(Vo(c)&&(R.ctx.renderer=Te),va(R,!1,L),R.asyncDep){if(v&&v.registerDep(R,oe,L),!c.el){const E=R.subTree=Fe(vt);I(null,E,h,y),c.placeholder=E.el}}else oe(R,c,h,y,v,b,L)},ye=(c,h,y)=>{const P=h.component=c.component;if(la(c,h,y))if(P.asyncDep&&!P.asyncResolved){G(P,h,y);return}else P.next=h,P.update();else h.el=c.el,P.vnode=h},oe=(c,h,y,P,v,b,L)=>{const R=()=>{if(c.isMounted){let{next:T,bu:U,u:K,parent:X,vnode:ae}=c;{const qe=ni(c);if(qe){T&&(T.el=ae.el,G(c,T,L)),qe.asyncDep.then(()=>{c.isUnmounted||R()});return}}let ne=T,Re;_t(c,!1),T?(T.el=ae.el,G(c,T,L)):T=ae,U&&cs(U),(Re=T.props&&T.props.onVnodeBeforeUpdate)&&He(Re,X,T,ae),_t(c,!0);const Le=pr(c),Ve=c.subTree;c.subTree=Le,_(Ve,Le,g(Ve.el),ve(Ve),c,v,b),T.el=Le.el,ne===null&&aa(c,Le.el),K&&ke(K,v),(Re=T.props&&T.props.onVnodeUpdated)&&ke(()=>He(Re,X,T,ae),v)}else{let T;const{el:U,props:K}=h,{bm:X,m:ae,parent:ne,root:Re,type:Le}=c,Ve=Wt(h);_t(c,!1),X&&cs(X),!Ve&&(T=K&&K.onVnodeBeforeMount)&&He(T,ne,h),_t(c,!0);{Re.ce&&Re.ce._def.shadowRoot!==!1&&Re.ce._injectChildStyle(Le);const qe=c.subTree=pr(c);_(null,qe,y,P,c,v,b),h.el=qe.el}if(ae&&ke(ae,v),!Ve&&(T=K&&K.onVnodeMounted)){const qe=h;ke(()=>He(T,ne,qe),v)}(h.shapeFlag&256||ne&&Wt(ne.vnode)&&ne.vnode.shapeFlag&256)&&c.a&&ke(c.a,v),c.isMounted=!0,h=y=P=null}};c.scope.on();const E=c.effect=new wo(R);c.scope.off();const C=c.update=E.run.bind(E),j=c.job=E.runIfDirty.bind(E);j.i=c,j.id=c.uid,E.scheduler=()=>qn(j),_t(c,!0),C()},G=(c,h,y)=>{h.component=c;const P=c.vnode.props;c.vnode=h,c.next=null,Bl(c,h.props,P,y),Gl(c,h.children,y),nt(),ir(c),rt()},Z=(c,h,y,P,v,b,L,R,E=!1)=>{const C=c&&c.children,j=c?c.shapeFlag:0,T=h.children,{patchFlag:U,shapeFlag:K}=h;if(U>0){if(U&128){z(C,T,y,P,v,b,L,R,E);return}else if(U&256){O(C,T,y,P,v,b,L,R,E);return}}K&8?(j&16&&de(C,v,b),T!==C&&u(y,T)):j&16?K&16?z(C,T,y,P,v,b,L,R,E):de(C,v,b,!0):(j&8&&u(y,""),K&16&&q(T,y,P,v,b,L,R,E))},O=(c,h,y,P,v,b,L,R,E)=>{c=c||Pt,h=h||Pt;const C=c.length,j=h.length,T=Math.min(C,j);let U;for(U=0;U<T;U++){const K=h[U]=E?ct(h[U]):Ke(h[U]);_(c[U],K,y,null,v,b,L,R,E)}C>j?de(c,v,b,!0,!1,T):q(h,y,P,v,b,L,R,E,T)},z=(c,h,y,P,v,b,L,R,E)=>{let C=0;const j=h.length;let T=c.length-1,U=j-1;for(;C<=T&&C<=U;){const K=c[C],X=h[C]=E?ct(h[C]):Ke(h[C]);if(Dt(K,X))_(K,X,y,null,v,b,L,R,E);else break;C++}for(;C<=T&&C<=U;){const K=c[T],X=h[U]=E?ct(h[U]):Ke(h[U]);if(Dt(K,X))_(K,X,y,null,v,b,L,R,E);else break;T--,U--}if(C>T){if(C<=U){const K=U+1,X=K<j?h[K].el:P;for(;C<=U;)_(null,h[C]=E?ct(h[C]):Ke(h[C]),y,X,v,b,L,R,E),C++}}else if(C>U)for(;C<=T;)V(c[C],v,b,!0),C++;else{const K=C,X=C,ae=new Map;for(C=X;C<=U;C++){const Ae=h[C]=E?ct(h[C]):Ke(h[C]);Ae.key!=null&&ae.set(Ae.key,C)}let ne,Re=0;const Le=U-X+1;let Ve=!1,qe=0;const At=new Array(Le);for(C=0;C<Le;C++)At[C]=0;for(C=K;C<=T;C++){const Ae=c[C];if(Re>=Le){V(Ae,v,b,!0);continue}let Be;if(Ae.key!=null)Be=ae.get(Ae.key);else for(ne=X;ne<=U;ne++)if(At[ne-X]===0&&Dt(Ae,h[ne])){Be=ne;break}Be===void 0?V(Ae,v,b,!0):(At[Be-X]=C+1,Be>=qe?qe=Be:Ve=!0,_(Ae,h[Be],y,null,v,b,L,R,E),Re++)}const Xn=Ve?Ql(At):Pt;for(ne=Xn.length-1,C=Le-1;C>=0;C--){const Ae=X+C,Be=h[Ae],er=h[Ae+1],tr=Ae+1<j?er.el||er.placeholder:P;At[C]===0?_(null,Be,y,tr,v,b,L,R,E):Ve&&(ne<0||C!==Xn[ne]?M(Be,y,tr,2):ne--)}}},M=(c,h,y,P,v=null)=>{const{el:b,type:L,transition:R,children:E,shapeFlag:C}=c;if(C&6){M(c.component.subTree,h,y,P);return}if(C&128){c.suspense.move(h,y,P);return}if(C&64){L.move(c,h,y,Te);return}if(L===Se){n(b,h,y);for(let T=0;T<E.length;T++)M(E[T],h,y,P);n(c.anchor,h,y);return}if(L===Vs){N(c,h,y);return}if(P!==2&&C&1&&R)if(P===0)R.beforeEnter(b),n(b,h,y),ke(()=>R.enter(b),v);else{const{leave:T,delayLeave:U,afterLeave:K}=R,X=()=>{c.ctx.isUnmounted?r(b):n(b,h,y)},ae=()=>{b._isLeaving&&b[yl](!0),T(b,()=>{X(),K&&K()})};U?U(b,X,ae):ae()}else n(b,h,y)},V=(c,h,y,P=!1,v=!1)=>{const{type:b,props:L,ref:R,children:E,dynamicChildren:C,shapeFlag:j,patchFlag:T,dirs:U,cacheIndex:K}=c;if(T===-2&&(v=!1),R!=null&&(nt(),Ht(R,null,y,c,!0),rt()),K!=null&&(h.renderCache[K]=void 0),j&256){h.ctx.deactivate(c);return}const X=j&1&&U,ae=!Wt(c);let ne;if(ae&&(ne=L&&L.onVnodeBeforeUnmount)&&He(ne,h,c),j&6)be(c.component,y,P);else{if(j&128){c.suspense.unmount(y,P);return}X&&bt(c,null,h,"beforeUnmount"),j&64?c.type.remove(c,h,y,Te,P):C&&!C.hasOnce&&(b!==Se||T>0&&T&64)?de(C,h,y,!1,!0):(b===Se&&T&384||!v&&j&16)&&de(E,h,y),P&&F(c)}(ae&&(ne=L&&L.onVnodeUnmounted)||X)&&ke(()=>{ne&&He(ne,h,c),X&&bt(c,null,h,"unmounted")},y)},F=c=>{const{type:h,el:y,anchor:P,transition:v}=c;if(h===Se){ee(y,P);return}if(h===Vs){w(c);return}const b=()=>{r(y),v&&!v.persisted&&v.afterLeave&&v.afterLeave()};if(c.shapeFlag&1&&v&&!v.persisted){const{leave:L,delayLeave:R}=v,E=()=>L(y,b);R?R(c.el,b,E):E()}else b()},ee=(c,h)=>{let y;for(;c!==h;)y=x(c),r(c),c=y;r(h)},be=(c,h,y)=>{const{bum:P,scope:v,job:b,subTree:L,um:R,m:E,a:C}=c;hr(E),hr(C),P&&cs(P),v.stop(),b&&(b.flags|=8,V(L,c,h,y)),R&&ke(R,h),ke(()=>{c.isUnmounted=!0},h)},de=(c,h,y,P=!1,v=!1,b=0)=>{for(let L=b;L<c.length;L++)V(c[L],h,y,P,v)},ve=c=>{if(c.shapeFlag&6)return ve(c.component.subTree);if(c.shapeFlag&128)return c.suspense.next();const h=x(c.anchor||c.el),y=h&&h[bl];return y?x(y):h};let he=!1;const it=(c,h,y)=>{c==null?h._vnode&&V(h._vnode,null,null,!0):_(h._vnode||null,c,h,null,null,null,y),h._vnode=c,he||(he=!0,ir(),No(),he=!1)},Te={p:_,um:V,m:M,r:F,mt:Qe,mc:q,pc:Z,pbc:ie,n:ve,o:e};return{render:it,hydrate:void 0,createApp:jl(it)}}function Us({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 _t({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Zl(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function si(e,t,s=!1){const n=e.children,r=t.children;if(H(n)&&H(r))for(let o=0;o<n.length;o++){const i=n[o];let l=r[o];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[o]=ct(r[o]),l.el=i.el),!s&&l.patchFlag!==-2&&si(i,l)),l.type===$s&&l.patchFlag!==-1&&(l.el=i.el),l.type===vt&&!l.el&&(l.el=i.el)}}function Ql(e){const t=e.slice(),s=[0];let n,r,o,i,l;const a=e.length;for(n=0;n<a;n++){const d=e[n];if(d!==0){if(r=s[s.length-1],e[r]<d){t[n]=r,s.push(n);continue}for(o=0,i=s.length-1;o<i;)l=o+i>>1,e[s[l]]<d?o=l+1:i=l;d<e[s[o]]&&(o>0&&(t[n]=s[o-1]),s[o]=n)}}for(o=s.length,i=s[o-1];o-- >0;)s[o]=i,i=t[i];return s}function ni(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ni(t)}function hr(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Xl=Symbol.for("v-scx"),ea=()=>Gt(Xl);function ht(e,t,s){return ri(e,t,s)}function ri(e,t,s=le){const{immediate:n,deep:r,flush:o,once:i}=s,l=ze({},s),a=t&&n||!t&&o!=="post";let d;if(ts){if(o==="sync"){const p=ea();d=p.__watcherHandles||(p.__watcherHandles=[])}else if(!a){const p=()=>{};return p.stop=Je,p.resume=Je,p.pause=Je,p}}const u=Pe;l.call=(p,m,_)=>Ze(p,u,m,_);let g=!1;o==="post"?l.scheduler=p=>{ke(p,u&&u.suspense)}:o!=="sync"&&(g=!0,l.scheduler=(p,m)=>{m?p():qn(p)}),l.augmentJob=p=>{t&&(p.flags|=4),g&&(p.flags|=2,u&&(p.id=u.uid,p.i=u))};const x=hl(e,t,l);return ts&&(d?d.push(x):a&&x()),x}function ta(e,t,s){const n=this.proxy,r=me(e)?e.includes(".")?oi(n,e):()=>n[e]:e.bind(n,n);let o;Y(t)?o=t:(o=t.handler,s=t);const i=os(this),l=ri(r,o.bind(n),s);return i(),l}function oi(e,t){const s=t.split(".");return()=>{let n=e;for(let r=0;r<s.length&&n;r++)n=n[s[r]];return n}}const sa=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${gt(t)}Modifiers`]||e[`${zt(t)}Modifiers`];function na(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||le;let r=s;const o=t.startsWith("update:"),i=o&&sa(n,t.slice(7));i&&(i.trim&&(r=s.map(u=>me(u)?u.trim():u)),i.number&&(r=s.map(mn)));let l,a=n[l=ks(t)]||n[l=ks(gt(t))];!a&&o&&(a=n[l=ks(zt(t))]),a&&Ze(a,e,6,r);const d=n[l+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Ze(d,e,6,r)}}const ra=new WeakMap;function ii(e,t,s=!1){const n=s?ra:t.emitsCache,r=n.get(e);if(r!==void 0)return r;const o=e.emits;let i={},l=!1;if(!Y(e)){const a=d=>{const u=ii(d,t,!0);u&&(l=!0,ze(i,u))};!s&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!o&&!l?(fe(e)&&n.set(e,null),null):(H(o)?o.forEach(a=>i[a]=null):ze(i,o),fe(e)&&n.set(e,i),i)}function Ms(e,t){return!e||!xs(t)?!1:(t=t.slice(2).replace(/Once$/,""),se(e,t[0].toLowerCase()+t.slice(1))||se(e,zt(t))||se(e,t))}function pr(e){const{type:t,vnode:s,proxy:n,withProxy:r,propsOptions:[o],slots:i,attrs:l,emit:a,render:d,renderCache:u,props:g,data:x,setupState:p,ctx:m,inheritAttrs:_}=e,A=vs(e);let I,W;try{if(s.shapeFlag&4){const w=r||n,S=w;I=Ke(d.call(S,w,u,g,p,x,m)),W=l}else{const w=t;I=Ke(w.length>1?w(g,{attrs:l,slots:i,emit:a}):w(g,null)),W=t.props?l:oa(l)}}catch(w){Jt.length=0,Rs(w,e,1),I=Fe(vt)}let N=I;if(W&&_!==!1){const w=Object.keys(W),{shapeFlag:S}=N;w.length&&S&7&&(o&&w.some(Mn)&&(W=ia(W,o)),N=Tt(N,W,!1,!0))}return s.dirs&&(N=Tt(N,null,!1,!0),N.dirs=N.dirs?N.dirs.concat(s.dirs):s.dirs),s.transition&&Bn(N,s.transition),I=N,vs(A),I}const oa=e=>{let t;for(const s in e)(s==="class"||s==="style"||xs(s))&&((t||(t={}))[s]=e[s]);return t},ia=(e,t)=>{const s={};for(const n in e)(!Mn(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function la(e,t,s){const{props:n,children:r,component:o}=e,{props:i,children:l,patchFlag:a}=t,d=o.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&a>=0){if(a&1024)return!0;if(a&16)return n?gr(n,i,d):!!i;if(a&8){const u=t.dynamicProps;for(let g=0;g<u.length;g++){const x=u[g];if(i[x]!==n[x]&&!Ms(d,x))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:n===i?!1:n?i?gr(n,i,d):!0:!!i;return!1}function gr(e,t,s){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let r=0;r<n.length;r++){const o=n[r];if(t[o]!==e[o]&&!Ms(s,o))return!0}return!1}function aa({vnode:e,parent:t},s){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=s,t=t.parent;else break}}const li=e=>e.__isSuspense;function ca(e,t){t&&t.pendingBranch?H(e)?t.effects.push(...e):t.effects.push(e):ml(e)}const Se=Symbol.for("v-fgt"),$s=Symbol.for("v-txt"),vt=Symbol.for("v-cmt"),Vs=Symbol.for("v-stc"),Jt=[];let De=null;function k(e=!1){Jt.push(De=e?null:[])}function ua(){Jt.pop(),De=Jt[Jt.length-1]||null}let es=1;function mr(e,t=!1){es+=e,e<0&&De&&t&&(De.hasOnce=!0)}function ai(e){return e.dynamicChildren=es>0?De||Pt:null,ua(),es>0&&De&&De.push(e),e}function D(e,t,s,n,r,o){return ai(f(e,t,s,n,r,o,!0))}function ci(e,t,s,n,r){return ai(Fe(e,t,s,n,r,!0))}function ui(e){return e?e.__v_isVNode===!0:!1}function Dt(e,t){return e.type===t.type&&e.key===t.key}const fi=({key:e})=>e??null,us=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?me(e)||ge(e)||Y(e)?{i:Ie,r:e,k:t,f:!!s}:e:null);function f(e,t=null,s=null,n=0,r=null,o=e===Se?0:1,i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&fi(t),ref:t&&us(t),scopeId:jo,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:o,patchFlag:n,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Ie};return l?(Gn(a,s),o&128&&e.normalize(a)):s&&(a.shapeFlag|=me(s)?8:16),es>0&&!i&&De&&(a.patchFlag>0||o&6)&&a.patchFlag!==32&&De.push(a),a}const Fe=fa;function fa(e,t=null,s=null,n=0,r=null,o=!1){if((!e||e===$l)&&(e=vt),ui(e)){const l=Tt(e,t,!0);return s&&Gn(l,s),es>0&&!o&&De&&(l.shapeFlag&6?De[De.indexOf(e)]=l:De.push(l)),l.patchFlag=-2,l}if(wa(e)&&(e=e.__vccOpts),t){t=da(t);let{class:l,style:a}=t;l&&!me(l)&&(t.class=ft(l)),fe(a)&&(Un(a)&&!H(a)&&(a=ze({},a)),t.style=An(a))}const i=me(e)?1:li(e)?128:_l(e)?64:fe(e)?4:Y(e)?2:0;return f(e,t,s,n,r,i,o,!0)}function da(e){return e?Un(e)||Yo(e)?ze({},e):e:null}function Tt(e,t,s=!1,n=!1){const{props:r,ref:o,patchFlag:i,children:l,transition:a}=e,d=t?ha(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&fi(d),ref:t&&t.ref?s&&o?H(o)?o.concat(us(t)):[o,us(t)]:us(t):o,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!==Se?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Tt(e.ssContent),ssFallback:e.ssFallback&&Tt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&n&&Bn(u,a.clone(u)),u}function Me(e=" ",t=0){return Fe($s,null,e,t)}function re(e="",t=!1){return t?(k(),ci(vt,null,e)):Fe(vt,null,e)}function Ke(e){return e==null||typeof e=="boolean"?Fe(vt):H(e)?Fe(Se,null,e.slice()):ui(e)?ct(e):Fe($s,null,String(e))}function ct(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Tt(e)}function Gn(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(H(t))s=16;else if(typeof t=="object")if(n&65){const r=t.default;r&&(r._c&&(r._d=!1),Gn(e,r()),r._c&&(r._d=!0));return}else{s=32;const r=t._;!r&&!Yo(t)?t._ctx=Ie:r===3&&Ie&&(Ie.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Y(t)?(t={default:t,_ctx:Ie},s=32):(t=String(t),n&64?(s=16,t=[Me(t)]):s=8);e.children=t,e.shapeFlag|=s}function ha(...e){const t={};for(let s=0;s<e.length;s++){const n=e[s];for(const r in n)if(r==="class")t.class!==n.class&&(t.class=ft([t.class,n.class]));else if(r==="style")t.style=An([t.style,n.style]);else if(xs(r)){const o=t[r],i=n[r];i&&o!==i&&!(H(o)&&o.includes(i))&&(t[r]=o?[].concat(o,i):i)}else r!==""&&(t[r]=n[r])}return t}function He(e,t,s,n=null){Ze(e,t,7,[s,n])}const pa=Ko();let ga=0;function ma(e,t,s){const n=e.type,r=(t?t.appContext:e.appContext)||pa,o={uid:ga++,vnode:e,type:n,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new bo(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Qo(n,r),emitsOptions:ii(n,r),emit:null,emitted:null,propsDefaults:le,inheritAttrs:n.inheritAttrs,ctx:le,data:le,props:le,attrs:le,slots:le,refs:le,setupState:le,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=na.bind(null,o),e.ce&&e.ce(o),o}let Pe=null;const di=()=>Pe||Ie;let ys,Cn;{const e=Cs(),t=(s,n)=>{let r;return(r=e[s])||(r=e[s]=[]),r.push(n),o=>{r.length>1?r.forEach(i=>i(o)):r[0](o)}};ys=t("__VUE_INSTANCE_SETTERS__",s=>Pe=s),Cn=t("__VUE_SSR_SETTERS__",s=>ts=s)}const os=e=>{const t=Pe;return ys(e),e.scope.on(),()=>{e.scope.off(),ys(t)}},vr=()=>{Pe&&Pe.scope.off(),ys(null)};function hi(e){return e.vnode.shapeFlag&4}let ts=!1;function va(e,t=!1,s=!1){t&&Cn(t);const{props:n,children:r}=e.vnode,o=hi(e);ql(e,n,o,t),Kl(e,r,s||t);const i=o?ba(e,t):void 0;return t&&Cn(!1),i}function ba(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Tl);const{setup:n}=s;if(n){nt();const r=e.setupContext=n.length>1?ya(e):null,o=os(e),i=ns(n,e,0,[e.props,r]),l=ao(i);if(rt(),o(),(l||e.sp)&&!Wt(e)&&Uo(e),l){if(i.then(vr,vr),t)return i.then(a=>{br(e,a)}).catch(a=>{Rs(a,e,0)});e.asyncDep=i}else br(e,i)}else pi(e)}function br(e,t,s){Y(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:fe(t)&&(e.setupState=ko(t)),pi(e)}function pi(e,t,s){const n=e.type;e.render||(e.render=n.render||Je);{const r=os(e);nt();try{Al(e)}finally{rt(),r()}}}const _a={get(e,t){return xe(e,"get",""),e[t]}};function ya(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,_a),slots:e.slots,emit:e.emit,expose:t}}function Ts(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(ko(Vn(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Kt)return Kt[s](e)},has(t,s){return s in t||s in Kt}})):e.proxy}function wa(e){return Y(e)&&"__vccOpts"in e}const Ge=(e,t)=>fl(e,t,ts),xa="3.5.22";/**
* @vue/runtime-dom v3.5.22
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let En;const _r=typeof window<"u"&&window.trustedTypes;if(_r)try{En=_r.createPolicy("vue",{createHTML:e=>e})}catch{}const gi=En?e=>En.createHTML(e):e=>e,Sa="http://www.w3.org/2000/svg",za="http://www.w3.org/1998/Math/MathML",et=typeof document<"u"?document:null,yr=et&&et.createElement("template"),Ca={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 r=t==="svg"?et.createElementNS(Sa,e):t==="mathml"?et.createElementNS(za,e):s?et.createElement(e,{is:s}):et.createElement(e);return e==="select"&&n&&n.multiple!=null&&r.setAttribute("multiple",n.multiple),r},createText:e=>et.createTextNode(e),createComment:e=>et.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>et.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,r,o){const i=s?s.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),s),!(r===o||!(r=r.nextSibling)););else{yr.innerHTML=gi(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const l=yr.content;if(n==="svg"||n==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,s)}return[i?i.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},Ea=Symbol("_vtc");function Oa(e,t,s){const n=e[Ea];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const wr=Symbol("_vod"),Pa=Symbol("_vsh"),Ra=Symbol(""),La=/(?:^|;)\s*display\s*:/;function Ma(e,t,s){const n=e.style,r=me(s);let o=!1;if(s&&!r){if(t)if(me(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();s[l]==null&&fs(n,l,"")}else for(const i in t)s[i]==null&&fs(n,i,"");for(const i in s)i==="display"&&(o=!0),fs(n,i,s[i])}else if(r){if(t!==s){const i=n[Ra];i&&(s+=";"+i),n.cssText=s,o=La.test(s)}}else t&&e.removeAttribute("style");wr in e&&(e[wr]=o?n.display:"",e[Pa]&&(n.display="none"))}const xr=/\s*!important$/;function fs(e,t,s){if(H(s))s.forEach(n=>fs(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=$a(e,t);xr.test(s)?e.setProperty(zt(n),s.replace(xr,""),"important"):e[n]=s}}const Sr=["Webkit","Moz","ms"],qs={};function $a(e,t){const s=qs[t];if(s)return s;let n=gt(t);if(n!=="filter"&&n in e)return qs[t]=n;n=fo(n);for(let r=0;r<Sr.length;r++){const o=Sr[r]+n;if(o in e)return qs[t]=o}return t}const zr="http://www.w3.org/1999/xlink";function Cr(e,t,s,n,r,o=ki(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(zr,t.slice(6,t.length)):e.setAttributeNS(zr,t,s):s==null||o&&!po(s)?e.removeAttribute(t):e.setAttribute(t,o?"":Ye(s)?String(s):s)}function Er(e,t,s,n,r){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?gi(s):s);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const l=o==="OPTION"?e.getAttribute("value")||"":e.value,a=s==null?e.type==="checkbox"?"on":"":String(s);(l!==a||!("_value"in e))&&(e.value=a),s==null&&e.removeAttribute(t),e._value=s;return}let i=!1;if(s===""||s==null){const l=typeof e[t];l==="boolean"?s=po(s):s==null&&l==="string"?(s="",i=!0):l==="number"&&(s=0,i=!0)}try{e[t]=s}catch{}i&&e.removeAttribute(r||t)}function wt(e,t,s,n){e.addEventListener(t,s,n)}function Ta(e,t,s,n){e.removeEventListener(t,s,n)}const Or=Symbol("_vei");function Aa(e,t,s,n,r=null){const o=e[Or]||(e[Or]={}),i=o[t];if(n&&i)i.value=n;else{const[l,a]=ka(t);if(n){const d=o[t]=Na(n,r);wt(e,l,d,a)}else i&&(Ta(e,l,i,a),o[t]=void 0)}}const Pr=/(?:Once|Passive|Capture)$/;function ka(e){let t;if(Pr.test(e)){t={};let n;for(;n=e.match(Pr);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):zt(e.slice(2)),t]}let Bs=0;const Da=Promise.resolve(),Ia=()=>Bs||(Da.then(()=>Bs=0),Bs=Date.now());function Na(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;Ze(Fa(n,s.value),t,5,[n])};return s.value=e,s.attached=Ia(),s}function Fa(e,t){if(H(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(n=>r=>!r._stopped&&n&&n(r))}else return t}const Rr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ja=(e,t,s,n,r,o)=>{const i=r==="svg";t==="class"?Oa(e,n,i):t==="style"?Ma(e,s,n):xs(t)?Mn(t)||Aa(e,t,s,n,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ua(e,t,n,i))?(Er(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Cr(e,t,n,i,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!me(n))?Er(e,gt(t),n,o,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Cr(e,t,n,i))};function Ua(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Rr(t)&&Y(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 r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Rr(t)&&me(s)?!1:t in e}const ws=e=>{const t=e.props["onUpdate:modelValue"]||!1;return H(t)?s=>cs(t,s):t};function Va(e){e.target.composing=!0}function Lr(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Mt=Symbol("_assign"),ds={created(e,{modifiers:{lazy:t,trim:s,number:n}},r){e[Mt]=ws(r);const o=n||r.props&&r.props.type==="number";wt(e,t?"change":"input",i=>{if(i.target.composing)return;let l=e.value;s&&(l=l.trim()),o&&(l=mn(l)),e[Mt](l)}),s&&wt(e,"change",()=>{e.value=e.value.trim()}),t||(wt(e,"compositionstart",Va),wt(e,"compositionend",Lr),wt(e,"change",Lr))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:r,number:o}},i){if(e[Mt]=ws(i),e.composing)return;const l=(o||e.type==="number")&&!/^0\d/.test(e.value)?mn(e.value):e.value,a=t??"";l!==a&&(document.activeElement===e&&e.type!=="range"&&(n&&t===s||r&&e.value.trim()===a)||(e.value=a))}},qa={deep:!0,created(e,t,s){e[Mt]=ws(s),wt(e,"change",()=>{const n=e._modelValue,r=Ba(e),o=e.checked,i=e[Mt];if(H(n)){const l=go(n,r),a=l!==-1;if(o&&!a)i(n.concat(r));else if(!o&&a){const d=[...n];d.splice(l,1),i(d)}}else if(Ss(n)){const l=new Set(n);o?l.add(r):l.delete(r),i(l)}else i(mi(e,o))})},mounted:Mr,beforeUpdate(e,t,s){e[Mt]=ws(s),Mr(e,t,s)}};function Mr(e,{value:t,oldValue:s},n){e._modelValue=t;let r;if(H(t))r=go(t,n.props.value)>-1;else if(Ss(t))r=t.has(n.props.value);else{if(t===s)return;r=Es(t,mi(e,!0))}e.checked!==r&&(e.checked=r)}function Ba(e){return"_value"in e?e._value:e.value}function mi(e,t){const s=t?"_trueValue":"_falseValue";return s in e?e[s]:t}const Ha=["ctrl","shift","alt","meta"],Wa={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)=>Ha.some(s=>e[`${s}Key`]&&!t.includes(s))},On=(e,t)=>{const s=e._withMods||(e._withMods={}),n=t.join(".");return s[n]||(s[n]=((r,...o)=>{for(let i=0;i<t.length;i++){const l=Wa[t[i]];if(l&&l(r,t))return}return e(r,...o)}))},Ka=ze({patchProp:ja},Ca);let $r;function Ga(){return $r||($r=Jl(Ka))}const Ja=((...e)=>{const t=Ga().createApp(...e),{mount:s}=t;return t.mount=n=>{const r=Za(n);if(!r)return;const o=t._component;!Y(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const i=s(r,!1,Ya(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t});function Ya(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Za(e){return me(e)?document.querySelector(e):e}const Qa={class:"card bg-base-100 shadow-xl hover:shadow-2xl transition-shadow duration-300"},Xa={class:"card-body"},ec={class:"flex items-start justify-between"},tc={class:"flex-1"},sc={class:"card-title text-lg font-bold"},nc={class:"text-sm text-base-content/70 mb-2"},rc={class:"flex items-center gap-2 mb-3"},oc={class:"badge badge-primary badge-sm"},ic={class:"badge badge-ghost badge-sm"},lc={key:0,class:"text-sm text-base-content/80 mb-4 line-clamp-2"},ac={key:1,class:"flex flex-wrap gap-1 mb-4"},cc={key:0,class:"badge badge-outline badge-xs"},uc={class:"flex flex-col items-end gap-2"},fc={class:"tooltip","data-tip":"View on Steam Workshop"},dc=["href"],hc={key:0,class:"mt-6"},pc={class:"divider"},gc={class:"text-sm font-medium"},mc={class:"table table-xs"},vc={key:0,class:"badge badge-success badge-xs"},bc={key:1,class:"text-base-content/50"},_c={key:0,class:"badge badge-info badge-xs"},yc={key:1,class:"text-base-content/50"},wc={key:0,class:"badge badge-warning badge-xs"},xc={key:1,class:"text-base-content/50"},Sc={class:"flex items-center gap-1"},zc={class:"badge badge-ghost badge-xs"},Cc=["data-tip"],Ec={key:1,class:"tooltip","data-tip":"Needs manual validation"},Oc={key:1,class:"mt-6 text-center py-4 border-2 border-dashed border-base-300 rounded-lg"},Pc=rs({__name:"PuzzleCard",props:{puzzle:{},responses:{}},setup(e){return(t,s)=>(k(),D("div",Qa,[f("div",Xa,[f("div",ec,[f("div",tc,[f("h3",sc,B(e.puzzle.title),1),f("p",nc,"by "+B(e.puzzle.author_name),1),f("div",rc,[f("div",oc,B(e.puzzle.steam_item_id),1),f("div",ic,"Order: "+B(e.puzzle.order_index+1),1)]),e.puzzle.description?(k(),D("p",lc,B(e.puzzle.description),1)):re("",!0),e.puzzle.tags&&e.puzzle.tags.length>0?(k(),D("div",ac,[(k(!0),D(Se,null,$t(e.puzzle.tags.slice(0,3),n=>(k(),D("span",{key:n,class:"badge badge-outline badge-xs"},B(n),1))),128)),e.puzzle.tags.length>3?(k(),D("span",cc," +"+B(e.puzzle.tags.length-3)+" more ",1)):re("",!0)])):re("",!0)]),f("div",uc,[f("div",fc,[f("a",{href:`https://steamcommunity.com/workshop/filedetails/?id=${e.puzzle.steam_item_id}`,target:"_blank",class:"btn btn-ghost btn-sm btn-square"},[...s[0]||(s[0]=[f("i",{class:"mdi mdi-steam text-lg"},null,-1)])],8,dc)])])]),e.responses&&e.responses.length>0?(k(),D("div",hc,[f("div",pc,[f("span",gc,"Solutions ("+B(e.responses.length)+")",1)]),f("div",null,[f("table",mc,[s[3]||(s[3]=f("thead",null,[f("tr",null,[f("th",null,"Cost"),f("th",null,"Cycles"),f("th",null,"Area"),f("th",null,"Files")])],-1)),f("tbody",null,[(k(!0),D(Se,null,$t(e.responses,n=>(k(),D("tr",{key:n.id,class:"hover"},[f("td",null,[n.final_cost||n.cost?(k(),D("span",vc,B(n.final_cost||n.cost),1)):(k(),D("span",bc,"-"))]),f("td",null,[n.final_cycles||n.cycles?(k(),D("span",_c,B(n.final_cycles||n.cycles),1)):(k(),D("span",yc,"-"))]),f("td",null,[n.final_area||n.area?(k(),D("span",wc,B(n.final_area||n.area),1)):(k(),D("span",xc,"-"))]),f("td",null,[f("div",Sc,[f("span",zc,B(n.files?.length||0),1),n.files?.length?(k(),D("div",{key:0,class:"tooltip","data-tip":n.files.map(r=>r.original_filename||r.file?.name).join(", ")},[...s[1]||(s[1]=[f("i",{class:"mdi mdi-information-outline text-xs"},null,-1)])],8,Cc)):re("",!0),n.needs_manual_validation?(k(),D("div",Ec,[...s[2]||(s[2]=[f("i",{class:"mdi mdi-alert-circle text-xs text-warning"},null,-1)])])):re("",!0)])])]))),128))])])])])):(k(),D("div",Oc,[...s[4]||(s[4]=[f("i",{class:"mdi mdi-upload text-2xl text-base-content/40"},null,-1),f("p",{class:"text-sm text-base-content/60 mt-2"},"No solutions yet",-1),f("p",{class:"text-xs text-base-content/40"},"Upload solutions using the submit button",-1)])]))])]))}}),Rc=(e,t)=>{const s=e.__vccOpts||e;for(const[n,r]of t)s[n]=r;return s},Lc=Rc(Pc,[["__scopeId","data-v-d2f8e73f"]]);var Hs={exports:{}},Tr;function Mc(){return Tr||(Tr=1,(function(e){var t=(function(s){var n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(O,z,M){O[z]=M.value},i,l=typeof Symbol=="function"?Symbol:{},a=l.iterator||"@@iterator",d=l.asyncIterator||"@@asyncIterator",u=l.toStringTag||"@@toStringTag";function g(O,z,M){return Object.defineProperty(O,z,{value:M,enumerable:!0,configurable:!0,writable:!0}),O[z]}try{g({},"")}catch{g=function(z,M,V){return z[M]=V}}function x(O,z,M,V){var F=z&&z.prototype instanceof N?z:N,ee=Object.create(F.prototype),be=new oe(V||[]);return o(ee,"_invoke",{value:Ce(O,M,be)}),ee}s.wrap=x;function p(O,z,M){try{return{type:"normal",arg:O.call(z,M)}}catch(V){return{type:"throw",arg:V}}}var m="suspendedStart",_="suspendedYield",A="executing",I="completed",W={};function N(){}function w(){}function S(){}var $={};g($,a,function(){return this});var Q=Object.getPrototypeOf,q=Q&&Q(Q(G([])));q&&q!==n&&r.call(q,a)&&($=q);var J=S.prototype=N.prototype=Object.create($);w.prototype=S,o(J,"constructor",{value:S,configurable:!0}),o(S,"constructor",{value:w,configurable:!0}),w.displayName=g(S,u,"GeneratorFunction");function ie(O){["next","throw","return"].forEach(function(z){g(O,z,function(M){return this._invoke(z,M)})})}s.isGeneratorFunction=function(O){var z=typeof O=="function"&&O.constructor;return z?z===w||(z.displayName||z.name)==="GeneratorFunction":!1},s.mark=function(O){return Object.setPrototypeOf?Object.setPrototypeOf(O,S):(O.__proto__=S,g(O,u,"GeneratorFunction")),O.prototype=Object.create(J),O},s.awrap=function(O){return{__await:O}};function pe(O,z){function M(ee,be,de,ve){var he=p(O[ee],O,be);if(he.type==="throw")ve(he.arg);else{var it=he.arg,Te=it.value;return Te&&typeof Te=="object"&&r.call(Te,"__await")?z.resolve(Te.__await).then(function(Ue){M("next",Ue,de,ve)},function(Ue){M("throw",Ue,de,ve)}):z.resolve(Te).then(function(Ue){it.value=Ue,de(it)},function(Ue){return M("throw",Ue,de,ve)})}}var V;function F(ee,be){function de(){return new z(function(ve,he){M(ee,be,ve,he)})}return V=V?V.then(de,de):de()}o(this,"_invoke",{value:F})}ie(pe.prototype),g(pe.prototype,d,function(){return this}),s.AsyncIterator=pe,s.async=function(O,z,M,V,F){F===void 0&&(F=Promise);var ee=new pe(x(O,z,M,V),F);return s.isGeneratorFunction(z)?ee:ee.next().then(function(be){return be.done?be.value:ee.next()})};function Ce(O,z,M){var V=m;return function(ee,be){if(V===A)throw new Error("Generator is already running");if(V===I){if(ee==="throw")throw be;return Z()}for(M.method=ee,M.arg=be;;){var de=M.delegate;if(de){var ve=$e(de,M);if(ve){if(ve===W)continue;return ve}}if(M.method==="next")M.sent=M._sent=M.arg;else if(M.method==="throw"){if(V===m)throw V=I,M.arg;M.dispatchException(M.arg)}else M.method==="return"&&M.abrupt("return",M.arg);V=A;var he=p(O,z,M);if(he.type==="normal"){if(V=M.done?I:_,he.arg===W)continue;return{value:he.arg,done:M.done}}else he.type==="throw"&&(V=I,M.method="throw",M.arg=he.arg)}}}function $e(O,z){var M=z.method,V=O.iterator[M];if(V===i)return z.delegate=null,M==="throw"&&O.iterator.return&&(z.method="return",z.arg=i,$e(O,z),z.method==="throw")||M!=="return"&&(z.method="throw",z.arg=new TypeError("The iterator does not provide a '"+M+"' method")),W;var F=p(V,O.iterator,z.arg);if(F.type==="throw")return z.method="throw",z.arg=F.arg,z.delegate=null,W;var ee=F.arg;if(!ee)return z.method="throw",z.arg=new TypeError("iterator result is not an object"),z.delegate=null,W;if(ee.done)z[O.resultName]=ee.value,z.next=O.nextLoc,z.method!=="return"&&(z.method="next",z.arg=i);else return ee;return z.delegate=null,W}ie(J),g(J,u,"Generator"),g(J,a,function(){return this}),g(J,"toString",function(){return"[object Generator]"});function Qe(O){var z={tryLoc:O[0]};1 in O&&(z.catchLoc=O[1]),2 in O&&(z.finallyLoc=O[2],z.afterLoc=O[3]),this.tryEntries.push(z)}function ye(O){var z=O.completion||{};z.type="normal",delete z.arg,O.completion=z}function oe(O){this.tryEntries=[{tryLoc:"root"}],O.forEach(Qe,this),this.reset(!0)}s.keys=function(O){var z=Object(O),M=[];for(var V in z)M.push(V);return M.reverse(),function F(){for(;M.length;){var ee=M.pop();if(ee in z)return F.value=ee,F.done=!1,F}return F.done=!0,F}};function G(O){if(O){var z=O[a];if(z)return z.call(O);if(typeof O.next=="function")return O;if(!isNaN(O.length)){var M=-1,V=function F(){for(;++M<O.length;)if(r.call(O,M))return F.value=O[M],F.done=!1,F;return F.value=i,F.done=!0,F};return V.next=V}}return{next:Z}}s.values=G;function Z(){return{value:i,done:!0}}return oe.prototype={constructor:oe,reset:function(O){if(this.prev=0,this.next=0,this.sent=this._sent=i,this.done=!1,this.delegate=null,this.method="next",this.arg=i,this.tryEntries.forEach(ye),!O)for(var z in this)z.charAt(0)==="t"&&r.call(this,z)&&!isNaN(+z.slice(1))&&(this[z]=i)},stop:function(){this.done=!0;var O=this.tryEntries[0],z=O.completion;if(z.type==="throw")throw z.arg;return this.rval},dispatchException:function(O){if(this.done)throw O;var z=this;function M(ve,he){return ee.type="throw",ee.arg=O,z.next=ve,he&&(z.method="next",z.arg=i),!!he}for(var V=this.tryEntries.length-1;V>=0;--V){var F=this.tryEntries[V],ee=F.completion;if(F.tryLoc==="root")return M("end");if(F.tryLoc<=this.prev){var be=r.call(F,"catchLoc"),de=r.call(F,"finallyLoc");if(be&&de){if(this.prev<F.catchLoc)return M(F.catchLoc,!0);if(this.prev<F.finallyLoc)return M(F.finallyLoc)}else if(be){if(this.prev<F.catchLoc)return M(F.catchLoc,!0)}else if(de){if(this.prev<F.finallyLoc)return M(F.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(O,z){for(var M=this.tryEntries.length-1;M>=0;--M){var V=this.tryEntries[M];if(V.tryLoc<=this.prev&&r.call(V,"finallyLoc")&&this.prev<V.finallyLoc){var F=V;break}}F&&(O==="break"||O==="continue")&&F.tryLoc<=z&&z<=F.finallyLoc&&(F=null);var ee=F?F.completion:{};return ee.type=O,ee.arg=z,F?(this.method="next",this.next=F.finallyLoc,W):this.complete(ee)},complete:function(O,z){if(O.type==="throw")throw O.arg;return O.type==="break"||O.type==="continue"?this.next=O.arg:O.type==="return"?(this.rval=this.arg=O.arg,this.method="return",this.next="end"):O.type==="normal"&&z&&(this.next=z),W},finish:function(O){for(var z=this.tryEntries.length-1;z>=0;--z){var M=this.tryEntries[z];if(M.finallyLoc===O)return this.complete(M.completion,M.afterLoc),ye(M),W}},catch:function(O){for(var z=this.tryEntries.length-1;z>=0;--z){var M=this.tryEntries[z];if(M.tryLoc===O){var V=M.completion;if(V.type==="throw"){var F=V.arg;ye(M)}return F}}throw new Error("illegal catch attempt")},delegateYield:function(O,z,M){return this.delegate={iterator:G(O),resultName:z,nextLoc:M},this.method==="next"&&(this.arg=i),W}},s})(e.exports);try{regeneratorRuntime=t}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}})(Hs)),Hs.exports}var Ws,Ar;function Jn(){return Ar||(Ar=1,Ws=(e,t)=>`${e}-${t}-${Math.random().toString(16).slice(3,8)}`),Ws}var Ks,kr;function vi(){if(kr)return Ks;kr=1;const e=Jn();let t=0;return Ks=({id:s,action:n,payload:r={}})=>{let o=s;return typeof o>"u"&&(o=e("Job",t),t+=1),{id:o,action:n,payload:r}},Ks}var It={},Dr;function Yn(){if(Dr)return It;Dr=1;let e=!1;return It.logging=e,It.setLogging=t=>{e=t},It.log=(...t)=>e?console.log.apply(this,t):null,It}var Gs,Ir;function $c(){if(Ir)return Gs;Ir=1;const e=vi(),{log:t}=Yn(),s=Jn();let n=0;return Gs=()=>{const r=s("Scheduler",n),o={},i={};let l=[];n+=1;const a=()=>l.length,d=()=>Object.keys(o).length,u=()=>{if(l.length!==0){const _=Object.keys(o);for(let A=0;A<_.length;A+=1)if(typeof i[_[A]]>"u"){l[0](o[_[A]]);break}}},g=(_,A)=>new Promise((I,W)=>{const N=e({action:_,payload:A});l.push(async w=>{l.shift(),i[w.id]=N;try{I(await w[_].apply(this,[...A,N.id]))}catch(S){W(S)}finally{delete i[w.id],u()}}),t(`[${r}]: Add ${N.id} to JobQueue`),t(`[${r}]: JobQueue length=${l.length}`),u()});return{addWorker:_=>(o[_.id]=_,t(`[${r}]: Add ${_.id}`),t(`[${r}]: Number of workers=${d()}`),u(),_.id),addJob:async(_,...A)=>{if(d()===0)throw Error(`[${r}]: You need to have at least one worker before adding jobs`);return g(_,A)},terminate:async()=>{Object.keys(o).forEach(async _=>{await o[_].terminate()}),l=[]},getQueueLen:a,getNumWorkers:d}},Gs}function Tc(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Js,Nr;function Ac(){if(Nr)return Js;Nr=1;function e(){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 Js=e,Js}var Ys,Fr;function kc(){if(Fr)return Ys;Fr=1;const e=Ac();return Ys=t=>{const s={};return typeof WorkerGlobalScope<"u"?s.type="webworker":e()?s.type="electron":typeof document=="object"?s.type="browser":typeof process=="object"&&typeof Tc=="function"&&(s.type="node"),typeof t>"u"?s:s[t]},Ys}var Zs,jr;function Dc(){if(jr)return Zs;jr=1;const t=kc()("type")==="browser"?s=>new URL(s,window.location.href).href:s=>s;return Zs=s=>{const n={...s};return["corePath","workerPath","langPath"].forEach(r=>{s[r]&&(n[r]=t(n[r]))}),n},Zs}var Qs,Ur;function Ic(){return Ur||(Ur=1,Qs=e=>{const t=[],s=[],n=[],r=[],o=[];return e.blocks&&e.blocks.forEach(i=>{i.paragraphs.forEach(l=>{l.lines.forEach(a=>{a.words.forEach(d=>{d.symbols.forEach(u=>{o.push({...u,page:e,block:i,paragraph:l,line:a,word:d})}),r.push({...d,page:e,block:i,paragraph:l,line:a})}),n.push({...a,page:e,block:i,paragraph:l})}),s.push({...l,page:e,block:i})}),t.push({...i,page:e})}),{...e,blocks:t,paragraphs:s,lines:n,words:r,symbols:o}}),Qs}var Xs,Vr;function bi(){return Vr||(Vr=1,Xs={TESSERACT_ONLY:0,LSTM_ONLY:1,TESSERACT_LSTM_COMBINED:2,DEFAULT:3}),Xs}const Nc="5.1.1",Fc={version:Nc};var en,qr;function jc(){return qr||(qr=1,en={workerBlobURL:!0,logger:()=>{}}),en}var tn,Br;function Uc(){if(Br)return tn;Br=1;const e=Fc.version;return tn={...jc(),workerPath:`https://cdn.jsdelivr.net/npm/tesseract.js@v${e}/dist/worker.min.js`},tn}var sn,Hr;function Vc(){return Hr||(Hr=1,sn=({workerPath:e,workerBlobURL:t})=>{let s;if(Blob&&URL&&t){const n=new Blob([`importScripts("${e}");`],{type:"application/javascript"});s=new Worker(URL.createObjectURL(n))}else s=new Worker(e);return s}),sn}var nn,Wr;function qc(){return Wr||(Wr=1,nn=e=>{e.terminate()}),nn}var rn,Kr;function Bc(){return Kr||(Kr=1,rn=(e,t)=>{e.onmessage=({data:s})=>{t(s)}}),rn}var on,Gr;function Hc(){return Gr||(Gr=1,on=async(e,t)=>{e.postMessage(t)}),on}var ln,Jr;function Wc(){if(Jr)return ln;Jr=1;const e=s=>new Promise((n,r)=>{const o=new FileReader;o.onload=()=>{n(o.result)},o.onerror=({target:{error:{code:i}}})=>{r(Error(`File could not be read! Code=${i}`))},o.readAsArrayBuffer(s)}),t=async s=>{let n=s;if(typeof s>"u")return"undefined";if(typeof s=="string")/data:image\/([a-zA-Z]*);base64,([^"]*)/.test(s)?n=atob(s.split(",")[1]).split("").map(r=>r.charCodeAt(0)):n=await(await fetch(s)).arrayBuffer();else if(typeof HTMLElement<"u"&&s instanceof HTMLElement)s.tagName==="IMG"&&(n=await t(s.src)),s.tagName==="VIDEO"&&(n=await t(s.poster)),s.tagName==="CANVAS"&&await new Promise(r=>{s.toBlob(async o=>{n=await e(o),r()})});else if(typeof OffscreenCanvas<"u"&&s instanceof OffscreenCanvas){const r=await s.convertToBlob();n=await e(r)}else(s instanceof File||s instanceof Blob)&&(n=await e(s));return new Uint8Array(n)};return ln=t,ln}var an,Yr;function Kc(){if(Yr)return an;Yr=1;const e=Uc(),t=Vc(),s=qc(),n=Bc(),r=Hc(),o=Wc();return an={defaultOptions:e,spawnWorker:t,terminateWorker:s,onMessage:n,send:r,loadImage:o},an}var cn,Zr;function _i(){if(Zr)return cn;Zr=1;const e=Dc(),t=Ic(),s=vi(),{log:n}=Yn(),r=Jn(),o=bi(),{defaultOptions:i,spawnWorker:l,terminateWorker:a,onMessage:d,loadImage:u,send:g}=Kc();let x=0;return cn=async(p="eng",m=o.LSTM_ONLY,_={},A={})=>{const I=r("Worker",x),{logger:W,errorHandler:N,...w}=e({...i,..._}),S={},$={},Q=typeof p=="string"?p.split("+"):p;let q=m,J=A;const ie=[o.DEFAULT,o.LSTM_ONLY].includes(m)&&!w.legacyCore;let pe,Ce;const $e=new Promise((v,b)=>{Ce=v,pe=b}),Qe=v=>{pe(v.message)};let ye=l(w);ye.onerror=Qe,x+=1;const oe=(v,b)=>{S[v]=b},G=(v,b)=>{$[v]=b},Z=({id:v,action:b,payload:L})=>new Promise((R,E)=>{n(`[${I}]: Start ${v}, action=${b}`);const C=`${b}-${v}`;oe(C,R),G(C,E),g(ye,{workerId:I,jobId:v,action:b,payload:L})}),O=()=>console.warn("`load` is depreciated and should be removed from code (workers now come pre-loaded)"),z=v=>Z(s({id:v,action:"load",payload:{options:{lstmOnly:ie,corePath:w.corePath,logging:w.logging}}})),M=(v,b,L)=>Z(s({id:L,action:"FS",payload:{method:"writeFile",args:[v,b]}})),V=(v,b)=>Z(s({id:b,action:"FS",payload:{method:"readFile",args:[v,{encoding:"utf8"}]}})),F=(v,b)=>Z(s({id:b,action:"FS",payload:{method:"unlink",args:[v]}})),ee=(v,b,L)=>Z(s({id:L,action:"FS",payload:{method:v,args:b}})),be=()=>console.warn("`loadLanguage` is depreciated and should be removed from code (workers now come with language pre-loaded)"),de=(v,b)=>Z(s({id:b,action:"loadLanguage",payload:{langs:v,options:{langPath:w.langPath,dataPath:w.dataPath,cachePath:w.cachePath,cacheMethod:w.cacheMethod,gzip:w.gzip,lstmOnly:[o.DEFAULT,o.LSTM_ONLY].includes(q)&&!w.legacyLang}}})),ve=()=>console.warn("`initialize` is depreciated and should be removed from code (workers now come pre-initialized)"),he=(v,b,L,R)=>Z(s({id:R,action:"initialize",payload:{langs:v,oem:b,config:L}})),it=(v="eng",b,L,R)=>{if(ie&&[o.TESSERACT_ONLY,o.TESSERACT_LSTM_COMBINED].includes(b))throw Error("Legacy model requested but code missing.");const E=b||q;q=E;const C=L||J;J=C;const T=(typeof v=="string"?v.split("+"):v).filter(U=>!Q.includes(U));return Q.push(...T),T.length>0?de(T,R).then(()=>he(v,E,C,R)):he(v,E,C,R)},Te=(v={},b)=>Z(s({id:b,action:"setParameters",payload:{params:v}})),Ue=async(v,b={},L={blocks:!0,text:!0,hocr:!0,tsv:!0},R)=>Z(s({id:R,action:"recognize",payload:{image:await u(v),options:b,output:L}})),c=(v="Tesseract OCR Result",b=!1,L)=>(console.log("`getPDF` function is depreciated. `recognize` option `savePDF` should be used instead."),Z(s({id:L,action:"getPDF",payload:{title:v,textonly:b}}))),h=async(v,b)=>{if(ie)throw Error("`worker.detect` requires Legacy model, which was not loaded.");return Z(s({id:b,action:"detect",payload:{image:await u(v)}}))},y=async()=>(ye!==null&&(a(ye),ye=null),Promise.resolve());d(ye,({workerId:v,jobId:b,status:L,action:R,data:E})=>{const C=`${R}-${b}`;if(L==="resolve"){n(`[${v}]: Complete ${b}`);let j=E;R==="recognize"?j=t(E):R==="getPDF"&&(j=Array.from({...E,length:Object.keys(E).length})),S[C]({jobId:b,data:j})}else if(L==="reject")if($[C](E),R==="load"&&pe(E),N)N(E);else throw Error(E);else L==="progress"&&W({...E,userJobId:b})});const P={id:I,worker:ye,setResolve:oe,setReject:G,load:O,writeText:M,readText:V,removeFile:F,FS:ee,loadLanguage:be,initialize:ve,reinitialize:it,setParameters:Te,recognize:Ue,getPDF:c,detect:h,terminate:y};return z().then(()=>de(p)).then(()=>he(p,m,A)).then(()=>Ce(P)).catch(()=>{}),$e},cn}var un,Qr;function Gc(){if(Qr)return un;Qr=1;const e=_i();return un={recognize:async(n,r,o)=>{const i=await e(r,1,o);return i.recognize(n).finally(async()=>{await i.terminate()})},detect:async(n,r)=>{const o=await e("osd",0,r);return o.detect(n).finally(async()=>{await o.terminate()})}},un}var fn,Xr;function Jc(){return Xr||(Xr=1,fn={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"}),fn}var dn,eo;function Yc(){return eo||(eo=1,dn={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"}),dn}var hn,to;function Zc(){if(to)return hn;to=1,Mc();const e=$c(),t=_i(),s=Gc(),n=Jc(),r=bi(),o=Yc(),{setLogging:i}=Yn();return hn={languages:n,OEM:r,PSM:o,createScheduler:e,createWorker:t,setLogging:i,...s},hn}var Qc=Zc();class Zn{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 Qc.createWorker("eng"),await this.worker.setParameters({tessedit_ocr_engine_mode:"3",tessedit_pageseg_mode:7}))}setAvailablePuzzleNames(t){this.availablePuzzleNames=t,console.log("OCR service updated with puzzle names:",t)}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 t=new Set;return this.availablePuzzleNames.forEach(s=>{for(const n of s)t.add(n)}),Array.from(t).join("")}async extractOpusMagnumData(t){this.worker||await this.initialize();const s=URL.createObjectURL(t),n=new Image;return new Promise((r,o)=>{n.onload=async()=>{try{const i=document.createElement("canvas"),l=i.getContext("2d");i.width=n.width,i.height=n.height,l.drawImage(n,0,0);const a={},d={};for(const[x,p]of Object.entries(this.regions)){const m=document.createElement("canvas"),_=m.getContext("2d");m.width=p.width,m.height=p.height,_.drawImage(i,p.x,p.y,p.width,p.height,0,0,p.width,p.height);const A=_.getImageData(0,0,p.width,p.height);this.preprocessImage(A),_.putImageData(A,0,0),x==="cost"?await this.worker.setParameters({tessedit_char_whitelist:"0123456789G"}):x==="cycles"||x==="area"?await this.worker.setParameters({tessedit_char_whitelist:"0123456789"}):x==="puzzle"?await this.configurePuzzleOCR():await this.worker.setParameters({tessedit_char_whitelist:""});const{data:{text:I,confidence:W}}=await this.worker.recognize(m);let N=I.trim();if(d[x]=W/100,x==="cost"){if(N.endsWith("6")&&N.length>1){const w=N.slice(0,-1);/^\d+$/.test(w)&&(N=w)}N=N.replace(/G+$/g,""),N=N.replace(/[^0-9]/g,"")}else if(x==="cycles"||x==="area")N=N.replace(/[^0-9]/g,"");else if(x==="puzzle"&&(N=this.findBestPuzzleMatch(N),this.availablePuzzleNames.length>0&&!this.availablePuzzleNames.includes(N))){const w=this.findBestPuzzleMatchForced(N);w&&(N=w,console.log(`Forced OCR match: "${I.trim()}" -> "${N}"`))}a[x]=N}URL.revokeObjectURL(s);const u=Object.values(d),g=u.length>0?u.reduce((x,p)=>x+p,0)/u.length:0;r({puzzle:a.puzzle||"",cost:a.cost||"",cycles:a.cycles||"",area:a.area||"",confidence:{puzzle:d.puzzle||0,cost:d.cost||0,cycles:d.cycles||0,area:d.area||0,overall:g}})}catch(i){URL.revokeObjectURL(s),o(i)}},n.onerror=()=>{URL.revokeObjectURL(s),o(new Error("Failed to load image"))},n.src=s})}preprocessImage(t){const s=t.data;for(let n=0;n<s.length;n+=4){const o=255-Math.round(.299*s[n]+.587*s[n+1]+.114*s[n+2]);s[n]=o,s[n+1]=o,s[n+2]=o}}levenshteinDistance(t,s){const n=Array(s.length+1).fill(null).map(()=>Array(t.length+1).fill(null));for(let r=0;r<=t.length;r++)n[0][r]=r;for(let r=0;r<=s.length;r++)n[r][0]=r;for(let r=1;r<=s.length;r++)for(let o=1;o<=t.length;o++){const i=t[o-1]===s[r-1]?0:1;n[r][o]=Math.min(n[r][o-1]+1,n[r-1][o]+1,n[r-1][o-1]+i)}return n[s.length][t.length]}findBestPuzzleMatch(t){if(!this.availablePuzzleNames.length)return t.trim();const s=t.trim();if(!s)return"";const n=this.availablePuzzleNames.find(l=>l.toLowerCase()===s.toLowerCase());if(n)return n;const r=this.availablePuzzleNames.find(l=>l.toLowerCase().includes(s.toLowerCase())||s.toLowerCase().includes(l.toLowerCase()));if(r)return r;let o=s,i=0;for(const l of this.availablePuzzleNames){const a=[this.calculateLevenshteinSimilarity(s,l),this.calculateJaroWinklerSimilarity(s,l),this.calculateNGramSimilarity(s,l,2)],d=Math.max(...a);d>i&&d>.4&&(i=d,o=l)}if(i<.6){const l=this.findBestCharacterMatch(s);l&&(o=l)}return o}calculateLevenshteinSimilarity(t,s){const n=this.levenshteinDistance(t.toLowerCase(),s.toLowerCase()),r=Math.max(t.length,s.length);return r===0?1:1-n/r}calculateJaroWinklerSimilarity(t,s){const n=t.toLowerCase(),r=s.toLowerCase();if(n===r)return 1;const o=Math.floor(Math.max(n.length,r.length)/2)-1;if(o<0)return 0;const i=new Array(n.length).fill(!1),l=new Array(r.length).fill(!1);let a=0,d=0;for(let p=0;p<n.length;p++){const m=Math.max(0,p-o),_=Math.min(p+o+1,r.length);for(let A=m;A<_;A++)if(!(l[A]||n[p]!==r[A])){i[p]=!0,l[A]=!0,a++;break}}if(a===0)return 0;let u=0;for(let p=0;p<n.length;p++)if(i[p]){for(;!l[u];)u++;n[p]!==r[u]&&d++,u++}const g=(a/n.length+a/r.length+(a-d/2)/a)/3;let x=0;for(let p=0;p<Math.min(n.length,r.length,4)&&n[p]===r[p];p++)x++;return g+.1*x*(1-g)}calculateNGramSimilarity(t,s,n){const r=t.toLowerCase(),o=s.toLowerCase();if(r===o)return 1;if(r.length<n||o.length<n)return 0;const i=new Set,l=new Set;for(let u=0;u<=r.length-n;u++)i.add(r.substr(u,n));for(let u=0;u<=o.length-n;u++)l.add(o.substr(u,n));const a=new Set([...i].filter(u=>l.has(u))),d=new Set([...i,...l]);return a.size/d.size}findBestCharacterMatch(t){let s=null,n=0;for(const r of this.availablePuzzleNames){const o=this.calculateCharacterFrequencyScore(t.toLowerCase(),r.toLowerCase());o>n&&o>.3&&(n=o,s=r)}return s}calculateCharacterFrequencyScore(t,s){const n=new Map,r=new Map;for(const a of t)n.set(a,(n.get(a)||0)+1);for(const a of s)r.set(a,(r.get(a)||0)+1);const o=new Set([...n.keys(),...r.keys()]);let i=0,l=0;for(const a of o){const d=n.get(a)||0,u=r.get(a)||0;i+=Math.min(d,u),l+=Math.max(d,u)}return l===0?0:i/l}findBestPuzzleMatchForced(t){if(!this.availablePuzzleNames.length||!t.trim())return null;const s=t.trim().toLowerCase();let n=this.availablePuzzleNames[0],r=0;for(const o of this.availablePuzzleNames){const i=[this.calculateLevenshteinSimilarity(s,o),this.calculateJaroWinklerSimilarity(s,o),this.calculateNGramSimilarity(s,o,2),this.calculateCharacterFrequencyScore(s,o.toLowerCase()),this.calculateLengthSimilarity(s,o.toLowerCase())],l=i[0]*.25+i[1]*.25+i[2]*.2+i[3]*.2+i[4]*.1;l>r&&(r=l,n=o)}return console.log(`Forced match for "${t}": "${n}" (score: ${r.toFixed(3)})`),n}calculateLengthSimilarity(t,s){const n=t.length,r=s.length,o=Math.max(n,r),i=Math.min(n,r);return o===0?1:i/o}async terminate(){this.worker&&(await this.worker.terminate(),this.worker=null)}static isValidOpusMagnumImage(t){return["image/jpeg","image/jpg","image/png","image/gif"].includes(t.type)}static drawDebugRegions(t){return new Promise((s,n)=>{const r=URL.createObjectURL(t),o=new Image;o.onload=()=>{const i=document.createElement("canvas"),l=i.getContext("2d");i.width=o.width,i.height=o.height,l.drawImage(o,0,0),l.strokeStyle="#00ff00",l.lineWidth=2;const a=new Zn;Object.values(a.regions).forEach(d=>{l.strokeRect(d.x,d.y,d.width,d.height)}),URL.revokeObjectURL(r),s(i.toDataURL())},o.onerror=()=>{URL.revokeObjectURL(r),n(new Error("Failed to load image for debug"))},o.src=r})}}const pn=new Zn;/*!
* pinia v3.0.3
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/let yi;const As=e=>yi=e,wi=Symbol();function Pn(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Yt;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Yt||(Yt={}));function Xc(){const e=_o(!0),t=e.run(()=>ue({}));let s=[],n=[];const r=Vn({install(o){As(r),r._a=o,o.provide(wi,r),o.config.globalProperties.$pinia=r,n.forEach(i=>s.push(i)),n=[]},use(o){return this._a?s.push(o):n.push(o),this},_p:s,_a:null,_e:e,_s:new Map,state:t});return r}const xi=()=>{};function so(e,t,s,n=xi){e.push(t);const r=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),n())};return!s&&yo()&&Ii(r),r}function Et(e,...t){e.slice().forEach(s=>{s(...t)})}const eu=e=>e(),no=Symbol(),gn=Symbol();function Rn(e,t){e instanceof Map&&t instanceof Map?t.forEach((s,n)=>e.set(n,s)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const s in t){if(!t.hasOwnProperty(s))continue;const n=t[s],r=e[s];Pn(r)&&Pn(n)&&e.hasOwnProperty(s)&&!ge(n)&&!dt(n)?e[s]=Rn(r,n):e[s]=n}return e}const tu=Symbol();function su(e){return!Pn(e)||!Object.prototype.hasOwnProperty.call(e,tu)}const{assign:lt}=Object;function nu(e){return!!(ge(e)&&e.effect)}function ru(e,t,s,n){const{state:r,actions:o,getters:i}=t,l=s.state.value[e];let a;function d(){l||(s.state.value[e]=r?r():{});const u=ll(s.state.value[e]);return lt(u,o,Object.keys(i||{}).reduce((g,x)=>(g[x]=Vn(Ge(()=>{As(s);const p=s._s.get(e);return i[x].call(p,p)})),g),{}))}return a=Si(e,d,t,s,n,!0),a}function Si(e,t,s={},n,r,o){let i;const l=lt({actions:{}},s),a={deep:!0};let d,u,g=[],x=[],p;const m=n.state.value[e];!o&&!m&&(n.state.value[e]={}),ue({});let _;function A(q){let J;d=u=!1,typeof q=="function"?(q(n.state.value[e]),J={type:Yt.patchFunction,storeId:e,events:p}):(Rn(n.state.value[e],q),J={type:Yt.patchObject,payload:q,storeId:e,events:p});const ie=_=Symbol();qt().then(()=>{_===ie&&(d=!0)}),u=!0,Et(g,J,n.state.value[e])}const I=o?function(){const{state:J}=s,ie=J?J():{};this.$patch(pe=>{lt(pe,ie)})}:xi;function W(){i.stop(),g=[],x=[],n._s.delete(e)}const N=(q,J="")=>{if(no in q)return q[gn]=J,q;const ie=function(){As(n);const pe=Array.from(arguments),Ce=[],$e=[];function Qe(G){Ce.push(G)}function ye(G){$e.push(G)}Et(x,{args:pe,name:ie[gn],store:S,after:Qe,onError:ye});let oe;try{oe=q.apply(this&&this.$id===e?this:S,pe)}catch(G){throw Et($e,G),G}return oe instanceof Promise?oe.then(G=>(Et(Ce,G),G)).catch(G=>(Et($e,G),Promise.reject(G))):(Et(Ce,oe),oe)};return ie[no]=!0,ie[gn]=J,ie},w={_p:n,$id:e,$onAction:so.bind(null,x),$patch:A,$reset:I,$subscribe(q,J={}){const ie=so(g,q,J.detached,()=>pe()),pe=i.run(()=>ht(()=>n.state.value[e],Ce=>{(J.flush==="sync"?u:d)&&q({storeId:e,type:Yt.direct,events:p},Ce)},lt({},a,J)));return ie},$dispose:W},S=Ps(w);n._s.set(e,S);const Q=(n._a&&n._a.runWithContext||eu)(()=>n._e.run(()=>(i=_o()).run(()=>t({action:N}))));for(const q in Q){const J=Q[q];if(ge(J)&&!nu(J)||dt(J))o||(m&&su(J)&&(ge(J)?J.value=m[q]:Rn(J,m[q])),n.state.value[e][q]=J);else if(typeof J=="function"){const ie=N(J,q);Q[q]=ie,l.actions[q]=J}}return lt(S,Q),lt(te(S),Q),Object.defineProperty(S,"$state",{get:()=>n.state.value[e],set:q=>{A(J=>{lt(J,q)})}}),n._p.forEach(q=>{lt(S,i.run(()=>q({store:S,app:n._a,pinia:n,options:l})))}),m&&o&&s.hydrate&&s.hydrate(S.$state,m),d=!0,u=!0,S}/*! #__NO_SIDE_EFFECTS__ */function zi(e,t,s){let n;const r=typeof t=="function";n=r?s:t;function o(i,l){const a=Vl();return i=i||(a?Gt(wi,null):null),i&&As(i),i=yi,i._s.has(e)||(r?Si(e,t,n,i):ru(e,n,i)),i._s.get(e)}return o.$id=e,o}const ro="/api";class ou{async request(t,s={}){try{const n=await fetch(`${ro}${t}`,{headers:{"Content-Type":"application/json",...s.headers},...s}),r=await n.json();return n.ok?{data:r,status:n.status}:{error:r.detail||`HTTP ${n.status}`,status:n.status}}catch(n){return{error:n instanceof Error?n.message:"Network error",status:0}}}async uploadRequest(t,s){try{const n=await fetch(`${ro}${t}`,{method:"POST",body:s}),r=await n.json();return n.ok?{data:r,status:n.status}:{error:r.detail||`HTTP ${n.status}`,status:n.status}}catch(n){return{error:n instanceof Error?n.message:"Network error",status:0}}}async getPuzzles(){return this.request("/submissions/puzzles")}async getSubmissions(t=20,s=0){return this.request(`/submissions/submissions?limit=${t}&offset=${s}`)}async getSubmission(t){return this.request(`/submissions/submissions/${t}`)}async createSubmission(t,s){const n=new FormData;return n.append("data",JSON.stringify(t)),s.forEach(r=>{n.append("files",r)}),this.uploadRequest("/submissions/submissions",n)}async validateResponse(t,s){return this.request(`/submissions/responses/${t}/validate`,{method:"PUT",body:JSON.stringify(s)})}async getResponsesNeedingValidation(){return this.request("/submissions/responses/needs-validation")}async validateSubmission(t){return this.request(`/submissions/submissions/${t}/validate`,{method:"POST"})}async deleteSubmission(t){return this.request(`/submissions/submissions/${t}`,{method:"DELETE"})}async getStats(){return this.request("/submissions/stats")}async healthCheck(){return this.request("/health")}async getUserInfo(){return this.request("/user")}}const pt=new ou,iu={async loadPuzzles(){const e=await pt.getPuzzles();return e.error?(console.error("Failed to load puzzles:",e.error),[]):e.data||[]},findPuzzleByName(e,t){if(!t)return null;let s=e.find(n=>n.title.toLowerCase()===t.toLowerCase());return s||(s=e.find(n=>n.title.toLowerCase().includes(t.toLowerCase())||t.toLowerCase().includes(n.title.toLowerCase()))),s||null}},oo={async createFromFiles(e,t,s,n){const r={};e.forEach(l=>{if(l.ocrData?.puzzle){const a=l.ocrData.puzzle;r[a]||(r[a]={puzzle:iu.findPuzzleByName(t,a),files:[]}),r[a].files.push(l)}});const o=Object.entries(r).filter(([l,a])=>a.puzzle).map(([l,a])=>{const d=a.files.find(g=>g.ocrData?.cost||g.ocrData?.cycles||g.ocrData?.area),u=!d?.ocrData||!d.ocrData.cost||!d.ocrData.cycles||!d.ocrData.area;return{puzzle_id:a.puzzle.id,puzzle_name:l,cost:d?.ocrData?.cost,cycles:d?.ocrData?.cycles,area:d?.ocrData?.area,needs_manual_validation:u,ocr_confidence_cost:d?.ocrData?.confidence?.cost||0,ocr_confidence_cycles:d?.ocrData?.confidence?.cycles||0,ocr_confidence_area:d?.ocrData?.confidence?.area||0}});if(o.length===0)return{error:"No valid puzzle responses found",status:400};const i=e.map(l=>l.file);return pt.createSubmission({notes:s,manual_validation_requested:n,responses:o},i)},async loadSubmissions(e=20,t=0){const s=await pt.getSubmissions(e,t);return s.error?(console.error("Failed to load submissions:",s.error),[]):s.data?.items||[]}},io={getErrorMessage(e){return typeof e=="string"?e:e instanceof Error?e.message:typeof e=="object"&&e!==null&&"detail"in e?String(e.detail):"An unknown error occurred"},isNetworkError(e){return typeof e=="string"&&e.includes("Network")},isValidationError(e){return e===400},isAuthError(e){return e===401||e===403}},Qn=zi("puzzles",()=>{const e=ue([]),t=ue(!1),s=ue(""),n=Ge(()=>e.value.map(l=>l.title)),r=Ge(()=>l=>{if(!l)return null;const a=e.value.find(u=>u.title.toLowerCase()===l.toLowerCase());return a||e.value.find(u=>u.title.toLowerCase().includes(l.toLowerCase())||l.toLowerCase().includes(u.title.toLowerCase()))||null}),o=async()=>{if(!(e.value.length>0))try{t.value=!0,s.value="";const l=await pt.getPuzzles();if(l.error){s.value=l.error,console.error("Failed to load puzzles:",l.error);return}l.data&&(e.value=l.data)}catch(l){s.value="Failed to load puzzles",console.error("Error loading puzzles:",l)}finally{t.value=!1}};return{puzzles:e,isLoading:t,error:s,puzzleNames:n,findPuzzleByName:r,loadPuzzles:o,refreshPuzzles:async()=>{e.value=[],await o()}}}),lu={class:"form-control w-full"},au={key:0,class:"space-y-4"},cu={key:1,class:"space-y-4"},uu={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4"},fu={class:"aspect-square rounded-lg overflow-hidden bg-base-200"},du=["src","alt"],hu={class:"absolute inset-0 bg-black/50 opacity-0 group-hover:opacity-100 transition-opacity duration-200 rounded-lg flex items-center justify-center"},pu=["onClick"],gu={class:"mt-2"},mu={class:"text-xs font-medium truncate"},vu={class:"text-xs text-base-content/60"},bu={key:0,class:"mt-1 flex items-center gap-1"},_u={key:1,class:"mt-1"},yu={class:"text-xs text-error"},wu={key:2,class:"mt-1 space-y-1"},xu={class:"text-xs flex items-center justify-between"},Su={class:"flex items-center gap-2"},zu=["title"],Cu=["onClick"],Eu={class:"text-xs space-y-1 bg-base-200 p-2 rounded"},Ou={key:0},Pu=["title"],Ru={key:1},Lu=["title"],Mu={key:2},$u=["title"],Tu={key:3},Au=["title"],ku={key:3,class:"mt-1"},Du=["onClick"],Iu={class:"flex justify-center"},Nu={key:0,class:"label"},Fu={class:"label-text-alt text-error"},ju=rs({__name:"FileUpload",props:{modelValue:{},puzzles:{}},emits:["update:modelValue"],setup(e,{emit:t}){const s=e,n=t,r=Qn(),o=ue(),i=ue(!1),l=ue(""),a=ue([]);ht(()=>s.modelValue,w=>{a.value=w},{immediate:!0}),ht(a,w=>{n("update:modelValue",w)},{deep:!0}),ht(()=>r.puzzles,w=>{w&&w.length>0&&pn.setAvailablePuzzleNames(r.puzzleNames)},{immediate:!0});const d=w=>{const S=w.target;S.files&&g(Array.from(S.files))},u=w=>{w.preventDefault(),i.value=!1,w.dataTransfer?.files&&g(Array.from(w.dataTransfer.files))},g=async w=>{l.value="";for(const S of w)if(x(S))try{const $=await p(S),Q=S.type.startsWith("image/gif")?"gif":"image",q={file:S,preview:$,type:Q,ocrProcessing:!1,ocrError:void 0,ocrData:void 0};a.value.push(q),A(S)&&qt(()=>{I(q)})}catch{l.value=`Failed to process ${S.name}`}},x=w=>w.type.startsWith("image/")?w.size>256*1024*1024?(l.value=`${w.name} is too large (max 256MB)`,!1):!0:(l.value=`${w.name} is not a valid image file`,!1),p=w=>new Promise((S,$)=>{const Q=new FileReader;Q.onload=q=>S(q.target?.result),Q.onerror=$,Q.readAsDataURL(w)}),m=w=>{a.value.splice(w,1)},_=w=>{if(w===0)return"0 Bytes";const S=1024,$=["Bytes","KB","MB","GB"],Q=Math.floor(Math.log(w)/Math.log(S));return parseFloat((w/Math.pow(S,Q)).toFixed(2))+" "+$[Q]},A=w=>w.type.startsWith("image/")&&w.size>5e4,I=async w=>{const S=a.value.findIndex($=>$.file===w.file);if(S!==-1){a.value[S].ocrProcessing=!0,a.value[S].ocrError=void 0,a.value[S].ocrData=void 0;try{console.log("Starting OCR processing for:",w.file.name),await pn.initialize();const $=await pn.extractOpusMagnumData(w.file);console.log("OCR completed:",$),await qt(),a.value[S].ocrData=$,await qt()}catch($){console.error("OCR processing failed:",$),a.value[S].ocrError="Failed to extract puzzle data"}finally{a.value[S].ocrProcessing=!1}}},W=w=>{I(w)},N=w=>w>=.8?"badge-success":w>=.6?"badge-warning":"badge-error";return(w,S)=>(k(),D("div",lu,[S[17]||(S[17]=f("label",{class:"label"},[f("span",{class:"label-text font-medium"},"Upload Solution Files"),f("span",{class:"label-text-alt text-xs"},"Images or GIFs only")],-1)),f("div",{class:ft(["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:u,onDragover:S[2]||(S[2]=On($=>i.value=!0,["prevent"])),onDragleave:S[3]||(S[3]=$=>i.value=!1),onDragenter:S[4]||(S[4]=On(()=>{},["prevent"]))},[f("input",{ref_key:"fileInput",ref:o,type:"file",multiple:"",accept:"image/*,.gif",class:"hidden",onChange:d},null,544),a.value.length===0?(k(),D("div",au,[S[6]||(S[6]=f("div",{class:"mx-auto w-12 h-12 text-base-content/40 flex items-center justify-center"},[f("i",{class:"mdi mdi-cloud-upload text-5xl"})],-1)),f("div",null,[S[5]||(S[5]=f("p",{class:"text-base-content/70 mb-2"},"Drop your files here or",-1)),f("button",{type:"button",onClick:S[0]||(S[0]=$=>o.value?.click()),class:"btn btn-primary btn-sm"}," Choose Files ")]),S[7]||(S[7]=f("p",{class:"text-xs text-base-content/50"}," Supported formats: JPG, PNG, GIF (max 256MB each) ",-1))])):(k(),D("div",cu,[f("div",uu,[(k(!0),D(Se,null,$t(a.value,($,Q)=>(k(),D("div",{key:Q,class:"relative group"},[f("div",fu,[f("img",{src:$.preview,alt:$.file.name,class:"w-full h-full object-cover"},null,8,du)]),f("div",hu,[f("button",{onClick:q=>m(Q),class:"btn btn-error btn-sm btn-circle"},[...S[8]||(S[8]=[f("i",{class:"mdi mdi-close"},null,-1)])],8,pu)]),f("div",gu,[f("p",mu,B($.file.name),1),f("p",vu,B(_($.file.size))+" "+B($.type.toUpperCase()),1),$.ocrProcessing?(k(),D("div",bu,[...S[9]||(S[9]=[f("span",{class:"loading loading-spinner loading-xs"},null,-1),f("span",{class:"text-xs text-info"},"Extracting puzzle data...",-1)])])):$.ocrError?(k(),D("div",_u,[f("p",yu,B($.ocrError),1)])):$.ocrData?(k(),D("div",wu,[f("div",xu,[f("div",Su,[S[10]||(S[10]=f("span",{class:"font-medium text-success"}," OCR Complete",-1)),$.ocrData.confidence?(k(),D("span",{key:0,class:ft(["badge badge-xs",N($.ocrData.confidence.overall)]),title:`Overall confidence: ${Math.round($.ocrData.confidence.overall*100)}%`},B(Math.round($.ocrData.confidence.overall*100))+"% ",11,zu)):re("",!0)]),f("button",{onClick:q=>W($),class:"btn btn-xs btn-ghost",title:"Retry OCR"},[...S[11]||(S[11]=[f("i",{class:"mdi mdi-refresh"},null,-1)])],8,Cu)]),f("div",Eu,[$.ocrData.puzzle?(k(),D("div",Ou,[S[12]||(S[12]=f("strong",null,"Puzzle:",-1)),Me(" "+B($.ocrData.puzzle)+" ",1),$.ocrData.confidence?.puzzle?(k(),D("span",{key:0,class:"ml-2 opacity-60",title:`Puzzle confidence: ${Math.round($.ocrData.confidence.puzzle*100)}%`}," ("+B(Math.round($.ocrData.confidence.puzzle*100))+"%) ",9,Pu)):re("",!0)])):re("",!0),$.ocrData.cost?(k(),D("div",Ru,[S[13]||(S[13]=f("strong",null,"Cost:",-1)),Me(" "+B($.ocrData.cost)+" ",1),$.ocrData.confidence?.cost?(k(),D("span",{key:0,class:"ml-2 opacity-60",title:`Cost confidence: ${Math.round($.ocrData.confidence.cost*100)}%`}," ("+B(Math.round($.ocrData.confidence.cost*100))+"%) ",9,Lu)):re("",!0)])):re("",!0),$.ocrData.cycles?(k(),D("div",Mu,[S[14]||(S[14]=f("strong",null,"Cycles:",-1)),Me(" "+B($.ocrData.cycles)+" ",1),$.ocrData.confidence?.cycles?(k(),D("span",{key:0,class:"ml-2 opacity-60",title:`Cycles confidence: ${Math.round($.ocrData.confidence.cycles*100)}%`}," ("+B(Math.round($.ocrData.confidence.cycles*100))+"%) ",9,$u)):re("",!0)])):re("",!0),$.ocrData.area?(k(),D("div",Tu,[S[15]||(S[15]=f("strong",null,"Area:",-1)),Me(" "+B($.ocrData.area)+" ",1),$.ocrData.confidence?.area?(k(),D("span",{key:0,class:"ml-2 opacity-60",title:`Area confidence: ${Math.round($.ocrData.confidence.area*100)}%`}," ("+B(Math.round($.ocrData.confidence.area*100))+"%) ",9,Au)):re("",!0)])):re("",!0)])])):!$.ocrProcessing&&!$.ocrError&&!$.ocrData?(k(),D("div",ku,[f("button",{onClick:q=>I($),class:"btn btn-xs btn-outline"},[...S[16]||(S[16]=[f("i",{class:"mdi mdi-text-recognition"},null,-1),Me(" Extract Puzzle Data ",-1)])],8,Du)])):re("",!0)])]))),128))]),f("div",Iu,[f("button",{type:"button",onClick:S[1]||(S[1]=$=>o.value?.click()),class:"btn btn-outline btn-sm"}," Add More Files ")])]))],34),l.value?(k(),D("div",Nu,[f("span",Fu,B(l.value),1)])):re("",!0)]))}}),Uu={class:"card bg-base-100 shadow-xl"},Vu={class:"card-body"},qu={key:0,class:"alert alert-info"},Bu={class:"flex-1"},Hu={class:"font-bold"},Wu={class:"text-sm space-y-1 mt-1"},Ku={class:"badge badge-ghost badge-sm ml-2"},Gu={class:"form-control"},Ju={class:"flex-1"},Yu={class:"flex label"},Zu={class:"label-text-alt"},Qu={class:"form-control"},Xu={class:"label cursor-pointer justify-start gap-3"},ef={class:"card-actions justify-end"},tf=["disabled"],sf={key:0,class:"loading loading-spinner loading-sm"},nf=rs({__name:"SubmissionForm",props:{puzzles:{},findPuzzleByName:{type:Function}},emits:["submit"],setup(e,{emit:t}){const s=e,n=t,r=ue([]),o=ue(""),i=ue(!1),l=ue(!1),a=Ge(()=>o.value.length),d=Ge(()=>r.value.length>0&&!l.value),u=Ge(()=>{const p={};return r.value.forEach(m=>{if(m.ocrData?.puzzle){const _=m.ocrData.puzzle;p[_]||(p[_]={puzzle:s.findPuzzleByName(_),files:[]}),p[_].files.push(m)}}),p}),g=Ge(()=>r.value.some(p=>p.ocrData?.confidence?p.ocrData.confidence.cost<.5||p.ocrData.confidence.cycles<.5||p.ocrData.confidence.area<.5:!1));ht(g,p=>{p&&!i.value&&(i.value=!0)},{immediate:!0});const x=async()=>{if(d.value){l.value=!0;try{n("submit",{files:r.value,notes:o.value.trim()||void 0,manualValidationRequested:i.value}),r.value=[],o.value="",i.value=!1}catch(p){console.error("Submission error:",p)}finally{l.value=!1}}};return(p,m)=>(k(),D("div",Uu,[f("div",Vu,[m[6]||(m[6]=f("h2",{class:"card-title text-xl mb-6"},[f("i",{class:"mdi mdi-check-circle text-2xl text-primary"}),Me(" Submit Solution ")],-1)),f("form",{onSubmit:On(x,["prevent"]),class:"space-y-6"},[Object.keys(u.value).length>0?(k(),D("div",qu,[m[3]||(m[3]=f("i",{class:"mdi mdi-information-outline text-xl"},null,-1)),f("div",Bu,[f("h4",Hu,"Detected Puzzles ("+B(Object.keys(u.value).length)+")",1),f("div",Wu,[(k(!0),D(Se,null,$t(u.value,(_,A)=>(k(),D("div",{key:A,class:"flex justify-between"},[f("span",null,B(A),1),f("span",Ku,B(_.files.length)+" file(s)",1)]))),128))])])])):re("",!0),Fe(ju,{modelValue:r.value,"onUpdate:modelValue":m[0]||(m[0]=_=>r.value=_),puzzles:e.puzzles},null,8,["modelValue","puzzles"]),f("div",Gu,[f("div",Ju,[f("label",Yu,[m[4]||(m[4]=f("span",{class:"label-text font-medium"},"Notes (Optional)",-1)),f("span",Zu,B(a.value)+"/500",1)]),Bt(f("textarea",{"onUpdate:modelValue":m[1]||(m[1]=_=>o.value=_),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),[[ds,o.value]])])]),f("div",Qu,[f("label",Xu,[Bt(f("input",{type:"checkbox","onUpdate:modelValue":m[2]||(m[2]=_=>i.value=_),class:"checkbox checkbox-primary"},null,512),[[qa,i.value]]),m[5]||(m[5]=f("div",{class:"flex-1"},[f("span",{class:"label-text font-medium"},"Request manual validation"),f("div",{class:"label-text-alt text-xs opacity-70 mt-1"},[Me(" Check this if you want an admin to manually review your submission, even if OCR confidence is high. "),f("br"),f("em",null,"Note: This will be automatically checked if any OCR confidence is below 50%.")])],-1))])]),f("div",ef,[f("button",{type:"submit",class:"btn btn-primary",disabled:l.value},[l.value?(k(),D("span",sf)):re("",!0),Me(" "+B(l.value?"Submitting...":"Submit Solution"),1)],8,tf)])],32)])]))}}),rf={class:"card bg-base-100 shadow-xl"},of={class:"card-body"},lf={class:"stats stats-vertical lg:stats-horizontal shadow mb-6"},af={class:"stat"},cf={class:"stat-value text-primary"},uf={class:"stat"},ff={class:"stat-value text-secondary"},df={class:"stat"},hf={class:"stat-value text-warning"},pf={class:"stat"},gf={class:"stat-value text-success"},mf={key:0},vf={class:"overflow-x-auto"},bf={class:"table table-zebra"},_f={class:"font-bold"},yf={class:"text-sm opacity-50"},wf={class:"text-sm space-y-1"},xf={class:"flex justify-between items-center"},Sf={class:"flex justify-between items-center"},zf={class:"flex justify-between items-center"},Cf={class:"badge badge-warning badge-sm"},Ef=["onClick"],Of={key:1,class:"text-center py-8"},Pf={key:0,class:"modal modal-open"},Rf={class:"modal-box"},Lf={key:0,class:"space-y-4"},Mf={class:"alert alert-info"},$f={class:"font-bold"},Tf={class:"grid grid-cols-3 gap-4"},Af={class:"form-control"},kf=["placeholder"],Df={class:"form-control"},If=["placeholder"],Nf={class:"form-control"},Ff=["placeholder"],jf={class:"modal-action"},Uf=["disabled"],Vf={key:0,class:"loading loading-spinner loading-sm"},qf=rs({__name:"AdminPanel",setup(e,{expose:t}){const s=ue({total_submissions:0,total_responses:0,needs_validation:0,validated_submissions:0,validation_rate:0}),n=ue([]),r=ue(!1),o=ue(!1),i=ue({show:!1,response:null,data:{validated_cost:"",validated_cycles:"",validated_area:""}}),l=async()=>{try{r.value=!0;try{const m=await pt.getStats();m.data&&(s.value=m.data)}catch(m){console.warn("Stats endpoint not available:",m),s.value={total_submissions:0,total_responses:0,needs_validation:0,validated_submissions:0,validation_rate:0}}const p=await pt.getResponsesNeedingValidation();p.data&&(n.value=p.data)}catch(p){console.error("Failed to load admin data:",p)}finally{r.value=!1}},a=p=>{i.value.response=p,i.value.data={validated_cost:p.cost||"",validated_cycles:p.cycles||"",validated_area:p.area||""},i.value.show=!0},d=()=>{i.value.show=!1,i.value.response=null,i.value.data={validated_cost:"",validated_cycles:"",validated_area:""}},u=async()=>{if(i.value.response?.id)try{o.value=!0;const p=await pt.validateResponse(i.value.response.id,i.value.data);if(p.error){alert(`Validation failed: ${p.error}`);return}n.value=n.value.filter(m=>m.id!==i.value.response?.id),s.value.needs_validation=Math.max(0,s.value.needs_validation-1),d()}catch(p){console.error("Validation error:",p),alert("Validation failed")}finally{o.value=!1}};Hn(()=>{l()});const g=p=>p>=.8?"badge-success":p>=.6?"badge-warning":"badge-error",x=p=>{const m=[p.ocr_confidence_cost,p.ocr_confidence_cycles,p.ocr_confidence_area].filter(A=>A!=null);if(m.length===0)return 0;const _=m.reduce((A,I)=>A+I,0)/m.length;return Math.round(_*100)};return t({refresh:l}),(p,m)=>(k(),D(Se,null,[f("div",rf,[f("div",of,[m[11]||(m[11]=f("h2",{class:"card-title"},[f("i",{class:"mdi mdi-shield-account text-2xl text-warning"}),Me(" Admin Panel ")],-1)),f("div",lf,[f("div",af,[m[3]||(m[3]=f("div",{class:"stat-title"},"Total Submissions",-1)),f("div",cf,B(s.value.total_submissions),1)]),f("div",uf,[m[4]||(m[4]=f("div",{class:"stat-title"},"Total Responses",-1)),f("div",ff,B(s.value.total_responses),1)]),f("div",df,[m[5]||(m[5]=f("div",{class:"stat-title"},"Need Validation",-1)),f("div",hf,B(s.value.needs_validation),1)]),f("div",pf,[m[6]||(m[6]=f("div",{class:"stat-title"},"Validation Rate",-1)),f("div",gf,B(Math.round(s.value.validation_rate*100))+"%",1)])]),n.value.length>0?(k(),D("div",mf,[m[9]||(m[9]=f("h3",{class:"text-lg font-bold mb-4"},"Responses Needing Validation",-1)),f("div",vf,[f("table",bf,[m[8]||(m[8]=f("thead",null,[f("tr",null,[f("th",null,"Puzzle"),f("th",null,"OCR Data"),f("th",null,"Confidence"),f("th",null,"Actions")])],-1)),f("tbody",null,[(k(!0),D(Se,null,$t(n.value,_=>(k(),D("tr",{key:_.id},[f("td",null,[f("div",_f,B(_.puzzle_name),1),f("div",yf,"ID: "+B(_.id),1)]),f("td",null,[f("div",wf,[f("div",xf,[f("span",null,"Cost: "+B(_.cost||"-"),1),_.ocr_confidence_cost?(k(),D("span",{key:0,class:ft(["badge badge-xs",g(_.ocr_confidence_cost)])},B(Math.round(_.ocr_confidence_cost*100))+"% ",3)):re("",!0)]),f("div",Sf,[f("span",null,"Cycles: "+B(_.cycles||"-"),1),_.ocr_confidence_cycles?(k(),D("span",{key:0,class:ft(["badge badge-xs",g(_.ocr_confidence_cycles)])},B(Math.round(_.ocr_confidence_cycles*100))+"% ",3)):re("",!0)]),f("div",zf,[f("span",null,"Area: "+B(_.area||"-"),1),_.ocr_confidence_area?(k(),D("span",{key:0,class:ft(["badge badge-xs",g(_.ocr_confidence_area)])},B(Math.round(_.ocr_confidence_area*100))+"% ",3)):re("",!0)])])]),f("td",null,[f("div",Cf,B(x(_))+"% ",1)]),f("td",null,[f("button",{onClick:A=>a(_),class:"btn btn-sm btn-primary"},[...m[7]||(m[7]=[f("i",{class:"mdi mdi-check-circle mr-1"},null,-1),Me(" Validate ",-1)])],8,Ef)])]))),128))])])])])):(k(),D("div",Of,[...m[10]||(m[10]=[f("i",{class:"mdi mdi-check-all text-6xl text-success opacity-50"},null,-1),f("p",{class:"text-lg font-medium mt-2"},"All responses validated!",-1),f("p",{class:"text-sm opacity-70"},"No responses currently need manual validation.",-1)])]))])]),i.value.show?(k(),D("div",Pf,[f("div",Rf,[m[17]||(m[17]=f("h3",{class:"font-bold text-lg mb-4"},"Validate Response",-1)),i.value.response?(k(),D("div",Lf,[f("div",Mf,[m[13]||(m[13]=f("i",{class:"mdi mdi-information-outline"},null,-1)),f("div",null,[f("div",$f,B(i.value.response.puzzle_name),1),m[12]||(m[12]=f("div",{class:"text-sm"},"Review and correct the OCR data below",-1))])]),f("div",Tf,[f("div",Af,[m[14]||(m[14]=f("label",{class:"label"},[f("span",{class:"label-text"},"Cost")],-1)),Bt(f("input",{"onUpdate:modelValue":m[0]||(m[0]=_=>i.value.data.validated_cost=_),type:"text",class:"input input-bordered input-sm",placeholder:i.value.response.cost||"Enter cost"},null,8,kf),[[ds,i.value.data.validated_cost]])]),f("div",Df,[m[15]||(m[15]=f("label",{class:"label"},[f("span",{class:"label-text"},"Cycles")],-1)),Bt(f("input",{"onUpdate:modelValue":m[1]||(m[1]=_=>i.value.data.validated_cycles=_),type:"text",class:"input input-bordered input-sm",placeholder:i.value.response.cycles||"Enter cycles"},null,8,If),[[ds,i.value.data.validated_cycles]])]),f("div",Nf,[m[16]||(m[16]=f("label",{class:"label"},[f("span",{class:"label-text"},"Area")],-1)),Bt(f("input",{"onUpdate:modelValue":m[2]||(m[2]=_=>i.value.data.validated_area=_),type:"text",class:"input input-bordered input-sm",placeholder:i.value.response.area||"Enter area"},null,8,Ff),[[ds,i.value.data.validated_area]])])]),f("div",jf,[f("button",{onClick:d,class:"btn btn-ghost"},"Cancel"),f("button",{onClick:u,class:"btn btn-primary",disabled:o.value},[o.value?(k(),D("span",Vf)):re("",!0),Me(" "+B(o.value?"Validating...":"Validate"),1)],8,Uf)])])):re("",!0)]),f("div",{class:"modal-backdrop",onClick:d})])):re("",!0)],64))}}),Bf=zi("submissions",()=>{const e=ue([]),t=ue(!1),s=ue(""),n=ue(!1),r=async(d=20,u=0)=>{try{t.value=!0,s.value="";const g=await oo.loadSubmissions(d,u);u===0?e.value=g:e.value.push(...g)}catch(g){s.value="Failed to load submissions",console.error("Error loading submissions:",g)}finally{t.value=!1}};return{submissions:e,isLoading:t,error:s,isSubmissionModalOpen:n,loadSubmissions:r,createSubmission:async(d,u,g)=>{try{t.value=!0,s.value="";const x=Qn(),p=await oo.createFromFiles(d,x.puzzles,u,g);if(p.error)throw s.value=p.error,new Error(p.error);return p.data?(e.value.unshift(p.data),p.data):void 0}catch(x){throw s.value=x instanceof Error?x.message:"Failed to create submission",x}finally{t.value=!1}},openSubmissionModal:()=>{n.value=!0},closeSubmissionModal:()=>{n.value=!1},refreshSubmissions:async()=>{e.value=[],await r()}}}),Hf={class:"min-h-screen bg-base-200"},Wf={class:"navbar bg-base-100 shadow-lg"},Kf={class:"container mx-auto"},Gf={class:"flex items-start justify-between"},Jf={key:0,class:"flex items-center gap-2"},Yf={class:"text-sm"},Zf={class:"font-medium"},Qf={key:0,class:"badge badge-warning badge-xs ml-1"},Xf={key:1,class:"text-sm text-base-content/70"},ed={class:"container mx-auto px-4 py-8"},td={key:0,class:"flex justify-center items-center min-h-[400px]"},sd={key:1,class:"alert alert-error max-w-2xl mx-auto"},nd={class:"text-sm"},rd={key:2,class:"space-y-8"},od={key:0,class:"mb-8"},id={class:"card bg-base-100 shadow-lg"},ld={class:"card-body"},ad={class:"card-title text-2xl"},cd={class:"text-base-content/70"},ud={key:1},fd={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"},dd={key:2,class:"text-center py-12"},hd={key:0,class:"modal modal-open"},pd={class:"modal-box max-w-4xl"},gd=rs({__name:"App",setup(e){const t=Qn(),s=Bf(),n=ue([]),r=ue(null),o=ue(!0),i=ue(""),l=Ge(()=>r.value?.is_superuser||!1),a=Ge(()=>{const m={};return s.submissions.forEach(_=>{_.responses.forEach(A=>{const I=typeof A.puzzle=="number"?A.puzzle:A.puzzle.id;m[I]||(m[I]=[]),m[I].push(A)})}),m});Hn(async()=>{try{o.value=!0,i.value="",console.log("Starting data load..."),console.log("Loading user info...");const m=await pt.getUserInfo();m.data?(r.value=m.data,console.log("User info loaded:",m.data)):m.error&&console.warn("User info error:",m.error),console.log("Loading puzzles..."),await t.loadPuzzles(),console.log("Puzzles loaded:",t.puzzles.length),t.puzzles.length>0&&(n.value=[{id:1,steam_id:"3479142989",title:"PolyLAN 41",description:"Puzzle collection for PolyLAN 41 fil rouge",author_name:"Flame Legrems",total_items:t.puzzles.length,unique_visitors:31,current_favorites:1,created_at:new Date().toISOString(),updated_at:new Date().toISOString()}],console.log("Collection created")),console.log("Loading submissions..."),await s.loadSubmissions(),console.log("Submissions loaded:",s.submissions.length),console.log("Data load complete!")}catch(m){i.value=io.getErrorMessage(m),console.error("Failed to load data:",m)}finally{o.value=!1,console.log("Loading state set to false")}});const d=async m=>{try{o.value=!0,i.value="";const _=await s.createSubmission(m.files,m.notes,m.manualValidationRequested);if(_){const A=_.responses.map(I=>I.puzzle_name).join(", ");alert(`Solutions submitted successfully for puzzles: ${A}`)}else alert("Submission created successfully!");s.closeSubmissionModal()}catch(_){const A=io.getErrorMessage(_);i.value=A,alert(`Submission failed: ${A}`),console.error("Submission error:",_)}finally{o.value=!1}},u=()=>{s.openSubmissionModal()},g=()=>{s.closeSubmissionModal()},x=m=>t.findPuzzleByName(m),p=()=>{window.location.reload()};return(m,_)=>(k(),D("div",Hf,[f("div",Wf,[f("div",Kf,[_[1]||(_[1]=f("div",{class:"flex-1"},[f("h1",{class:"text-xl font-bold"},"Opus Magnum Puzzle Submitter")],-1)),f("div",Gf,[r.value?.is_authenticated?(k(),D("div",Jf,[f("div",Yf,[f("span",Zf,B(r.value.username),1),r.value.is_superuser?(k(),D("span",Qf,"Admin")):re("",!0)])])):(k(),D("div",Xf," Not logged in ")),_[0]||(_[0]=f("div",{class:"flex flex-col items-end gap-2"},[f("a",{href:"/admin",class:"btn btn-xs btn-warning"}," Admin django ")],-1))])])]),f("div",ed,[o.value?(k(),D("div",td,[..._[2]||(_[2]=[f("div",{class:"text-center"},[f("span",{class:"loading loading-spinner loading-lg"}),f("p",{class:"mt-4 text-base-content/70"},"Loading puzzles...")],-1)])])):i.value?(k(),D("div",sd,[_[5]||(_[5]=f("i",{class:"mdi mdi-alert-circle text-xl"},null,-1)),f("div",null,[_[3]||(_[3]=f("h3",{class:"font-bold"},"Error Loading Data",-1)),f("div",nd,B(i.value),1)]),f("button",{onClick:p,class:"btn btn-sm btn-outline"},[..._[4]||(_[4]=[f("i",{class:"mdi mdi-refresh mr-1"},null,-1),Me(" Retry ",-1)])])])):(k(),D("div",rd,[n.value.length>0?(k(),D("div",od,[f("div",id,[f("div",ld,[f("h2",ad,B(n.value[0].title),1),f("p",cd,B(n.value[0].description),1),f("div",{class:"flex flex-wrap gap-4 mt-4"},[f("button",{onClick:u,class:"btn btn-primary"},[..._[6]||(_[6]=[f("i",{class:"mdi mdi-plus mr-2"},null,-1),Me(" Submit Solution ",-1)])])])])])])):re("",!0),l.value?(k(),D("div",ud,[Fe(qf)])):re("",!0),f("div",fd,[(k(!0),D(Se,null,$t(Nt(t).puzzles,A=>(k(),ci(Lc,{key:A.id,puzzle:A,responses:a.value[A.id]||[]},null,8,["puzzle","responses"]))),128))]),Nt(t).puzzles.length===0?(k(),D("div",dd,[..._[7]||(_[7]=[f("div",{class:"text-6xl mb-4"},"🧩",-1),f("h3",{class:"text-xl font-bold mb-2"},"No Puzzles Available",-1),f("p",{class:"text-base-content/70"},"Check back later for new puzzle collections!",-1)])])):re("",!0)]))]),Nt(s).isSubmissionModalOpen?(k(),D("div",hd,[f("div",pd,[f("div",{class:"flex justify-between items-center mb-4"},[_[9]||(_[9]=f("h3",{class:"font-bold text-lg"},"Submit Solution",-1)),f("button",{onClick:g,class:"btn btn-sm btn-circle btn-ghost"},[..._[8]||(_[8]=[f("i",{class:"mdi mdi-close"},null,-1)])])]),Fe(nf,{puzzles:Nt(t).puzzles,"find-puzzle-by-name":x,onSubmit:d},null,8,["puzzles"])]),f("div",{class:"modal-backdrop",onClick:g})])):re("",!0)]))}}),md=Xc(),Ci=Ja(gd);Ci.use(md);Ci.mount("#app");