From d70d2ec59b2fbb25aecfc35491c9547ea7efb37a Mon Sep 17 00:00:00 2001 From: efrice <719431749@qq.com> Date: Wed, 10 Apr 2024 19:39:43 +0800 Subject: [PATCH] deploy --- docs/assets/{Index-e426f46a.js => Index-18ae96dd.js} | 4 ++-- ...=> Player.vue_vue_type_script_setup_true_lang-128d4d7c.js} | 2 +- docs/assets/{_...all_-6d5f2e61.js => _...all_-1430a9fb.js} | 2 +- docs/assets/{edit-02d5cd50.js => edit-1c6f7c39.js} | 2 +- docs/assets/{index-35f8c1f4.js => index-d9ea42c0.js} | 4 ++-- docs/index.html | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) rename docs/assets/{Index-e426f46a.js => Index-18ae96dd.js} (82%) rename docs/assets/{Player.vue_vue_type_script_setup_true_lang-91e3e424.js => Player.vue_vue_type_script_setup_true_lang-128d4d7c.js} (99%) rename docs/assets/{_...all_-6d5f2e61.js => _...all_-1430a9fb.js} (60%) rename docs/assets/{edit-02d5cd50.js => edit-1c6f7c39.js} (93%) rename docs/assets/{index-35f8c1f4.js => index-d9ea42c0.js} (98%) diff --git a/docs/assets/Index-e426f46a.js b/docs/assets/Index-18ae96dd.js similarity index 82% rename from docs/assets/Index-e426f46a.js rename to docs/assets/Index-18ae96dd.js index 645871e..eb19aea 100644 --- a/docs/assets/Index-e426f46a.js +++ b/docs/assets/Index-18ae96dd.js @@ -1,2 +1,2 @@ -import{s as N,i as de,h as Le,u as je,a as De,b as Ne,c as qe,d as We,e as Ue,_ as Ve,f as $e,g as ze,j as He}from"./Player.vue_vue_type_script_setup_true_lang-91e3e424.js";import{d as ne,w as fe,o as D,c as W,r as re,a as _,F as Ge,b as Ze,t as ve,_ as ee,u as Ye,e as Je,f as Ke,g as F,h as q,i as he,j as Qe,k as Xe,v as ea,l as aa,m as ra,n as na}from"./index-35f8c1f4.js";var te={};(function S(d,v,M,g){var R=!!(d.Worker&&d.Blob&&d.Promise&&d.OffscreenCanvas&&d.OffscreenCanvasRenderingContext2D&&d.HTMLCanvasElement&&d.HTMLCanvasElement.prototype.transferControlToOffscreen&&d.URL&&d.URL.createObjectURL),O=typeof Path2D=="function"&&typeof DOMMatrix=="function",E=function(){if(!d.OffscreenCanvas)return!1;var a=new OffscreenCanvas(1,1),e=a.getContext("2d");e.fillRect(0,0,1,1);var r=a.transferToImageBitmap();try{e.createPattern(r,"no-repeat")}catch{return!1}return!0}();function B(){}function w(a){var e=v.exports.Promise,r=e!==void 0?e:d.Promise;return typeof r=="function"?new r(a):(a(B,B),null)}var I=function(a,e){return{transform:function(r){if(a)return r;if(e.has(r))return e.get(r);var t=new OffscreenCanvas(r.width,r.height),o=t.getContext("2d");return o.drawImage(r,0,0),e.set(r,t),t},clear:function(){e.clear()}}}(E,new Map),A=function(){var a=Math.floor(16.666666666666668),e,r,t={},o=0;return typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"?(e=function(s){var i=Math.random();return t[i]=requestAnimationFrame(function n(l){o===l||o+a-1{ae({...M,particleCount:50,angle:60,spread:80,origin:{x:0}})},250),setTimeout(()=>{ae({...M,particleCount:50,angle:120,spread:80,origin:{x:1}})},400)}return fe(()=>d.passed,M=>{M&&setTimeout(v,300)},{flush:"post"}),(M,g)=>(D(),W("div"))}}),oa=(S,d)=>{const v=S[d];return v?typeof v=="function"?v():Promise.resolve(v):new Promise((M,g)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(g.bind(null,new Error("Unknown variable dynamic import: "+d)))})},sa={"m-auto":"","w-60":"",flex:"","justify-between":""},ia=_("div",null,"Select Level: ",-1),la=["value"],ca=ne({__name:"SelectLevel",emits:["select"],setup(S,{emit:d}){const v=d,M=["1","2","3"],g=re("1");function R(E){g.value=E.target.value}async function O(){const E=await oa(Object.assign({"../data/level1.json":()=>ee(()=>Promise.resolve().then(()=>ua),void 0),"../data/level2.json":()=>ee(()=>import("./level2-3b3af78c.js"),[]),"../data/level3.json":()=>ee(()=>import("./level3-625f817a.js"),[])}),`../data/level${g.value}.json`);v("select",E)}return(E,B)=>(D(),W("div",sa,[ia,_("select",{"w-12":"","b-rd-1":"","bg-gray-600":"",onChange:R},[(D(),W(Ge,null,Ze(M,w=>_("option",{key:w,value:w},ve(w),9,la)),64))],32),_("div",{btn:"",onClick:O}," Go Level ")]))}}),me=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],pe={left:3,top:3},ge=[{top:3,left:2},{top:3,left:4},{top:2,left:3},{top:4,left:3}],ye=[{top:1,left:3},{top:3,left:5},{top:5,left:3},{top:3,left:1}],Me={map:me,player:pe,mines:ge,boxes:ye},ua=Object.freeze(Object.defineProperty({__proto__:null,boxes:ye,default:Me,map:me,mines:ge,player:pe},Symbol.toStringTag,{value:"Module"})),da=_("h4",{"mb-2":""}," PUSH MINES ",-1),ha={"my-2":""},fa={"mt-4":""},va={btn:""},ma=ne({__name:"Game",setup(S){function d(u){return typeof u=="string"?de(u.replaceAll(" ","+")):aa(u).cloned.value}const v=re(Me);function M(u){v.value=u,N(u)}const g=Ye();N(d(g.query.game||v.value));const R=g.query.steps?de(g.query.steps).steps:[];Le(R);const{steps:O}=je(),{positions:E}=De(),{positions:B}=Ne(),w=re(!1),I=Je(()=>E.every(u=>B.find(L=>L.top===u.top&&L.left===u.left)));fe(I,()=>{I?w.value=!0:w.value=!1});function A(){N(d(g.query.game||v.value))}function U(){qe(location.search||v.value)}function V(){We(d(g.query.game||v.value))}function $(){N(d(g.query.game||v.value)),Ue()}function z(){w.value=!1,A()}return(u,L)=>{const H=ca,j=Ve,G=$e,Z=ze,Y=He,J=Ke("RouterLink"),K=ta;return D(),W("div",null,[da,F(H,{onSelect:M}),_("h6",ha," steps: "+ve(q(O).length),1),F(Y,null,{default:he(()=>[F(j),F(G),F(Z)]),_:1}),_("div",fa,[_("div",{"mr-2":"",btn:"",onClick:A}," RESTART "),_("div",va,[F(J,{to:"/edit"},{default:he(()=>[Qe(" EDIT MAP ")]),_:1})])]),_("div",{"mt-4":""},[_("div",{"mr-2":"",btn:"",onClick:U}," SHARE GAME ")]),Xe(_("div",{fixed:"","bottom-0":"","left-0":"","right-0":"","top-0":"",flex:"","items-center":"","justify-center":"","bg-white":"","dark:bg-black":"",onClick:z},[_("div",{"mt--40":"",btn:"",onClick:V}," SHARE HOW TO PLAY "),_("div",{"ml-8":"","mt--40":"",btn:"",onClick:$}," SHARE GIF SHOW PLAY "),F(K,{passed:q(I)},null,8,["passed"])],512),[[ea,q(I)&&q(w)]])])}}}),pa={};function ga(S,d){const v=ma;return D(),na(v)}const ba=ra(pa,[["render",ga]]);export{ba as default}; +import{s as N,i as de,h as Le,u as je,a as De,b as Ne,c as qe,d as We,e as Ue,_ as Ve,f as $e,g as ze,j as He}from"./Player.vue_vue_type_script_setup_true_lang-128d4d7c.js";import{d as ne,w as fe,o as D,c as W,r as re,a as _,F as Ge,b as Ze,t as ve,_ as ee,u as Ye,e as Je,f as Ke,g as F,h as q,i as he,j as Qe,k as Xe,v as ea,l as aa,m as ra,n as na}from"./index-d9ea42c0.js";var te={};(function S(d,v,M,g){var R=!!(d.Worker&&d.Blob&&d.Promise&&d.OffscreenCanvas&&d.OffscreenCanvasRenderingContext2D&&d.HTMLCanvasElement&&d.HTMLCanvasElement.prototype.transferControlToOffscreen&&d.URL&&d.URL.createObjectURL),O=typeof Path2D=="function"&&typeof DOMMatrix=="function",E=function(){if(!d.OffscreenCanvas)return!1;var a=new OffscreenCanvas(1,1),e=a.getContext("2d");e.fillRect(0,0,1,1);var r=a.transferToImageBitmap();try{e.createPattern(r,"no-repeat")}catch{return!1}return!0}();function B(){}function w(a){var e=v.exports.Promise,r=e!==void 0?e:d.Promise;return typeof r=="function"?new r(a):(a(B,B),null)}var I=function(a,e){return{transform:function(r){if(a)return r;if(e.has(r))return e.get(r);var t=new OffscreenCanvas(r.width,r.height),o=t.getContext("2d");return o.drawImage(r,0,0),e.set(r,t),t},clear:function(){e.clear()}}}(E,new Map),A=function(){var a=Math.floor(16.666666666666668),e,r,t={},o=0;return typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"?(e=function(s){var i=Math.random();return t[i]=requestAnimationFrame(function n(l){o===l||o+a-1{ae({...M,particleCount:50,angle:60,spread:80,origin:{x:0}})},250),setTimeout(()=>{ae({...M,particleCount:50,angle:120,spread:80,origin:{x:1}})},400)}return fe(()=>d.passed,M=>{M&&setTimeout(v,300)},{flush:"post"}),(M,g)=>(D(),W("div"))}}),oa=(S,d)=>{const v=S[d];return v?typeof v=="function"?v():Promise.resolve(v):new Promise((M,g)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(g.bind(null,new Error("Unknown variable dynamic import: "+d)))})},sa={"m-auto":"","w-60":"",flex:"","justify-between":""},ia=_("div",null,"Select Level: ",-1),la=["value"],ca=ne({__name:"SelectLevel",emits:["select"],setup(S,{emit:d}){const v=d,M=["1","2","3"],g=re("1");function R(E){g.value=E.target.value}async function O(){const E=await oa(Object.assign({"../data/level1.json":()=>ee(()=>Promise.resolve().then(()=>ua),void 0,import.meta.url),"../data/level2.json":()=>ee(()=>import("./level2-3b3af78c.js"),[],import.meta.url),"../data/level3.json":()=>ee(()=>import("./level3-625f817a.js"),[],import.meta.url)}),`../data/level${g.value}.json`);v("select",E)}return(E,B)=>(D(),W("div",sa,[ia,_("select",{"w-12":"","b-rd-1":"","bg-gray-600":"",onChange:R},[(D(),W(Ge,null,Ze(M,w=>_("option",{key:w,value:w},ve(w),9,la)),64))],32),_("div",{btn:"",onClick:O}," Go Level ")]))}}),me=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],pe={left:3,top:3},ge=[{top:3,left:2},{top:3,left:4},{top:2,left:3},{top:4,left:3}],ye=[{top:1,left:3},{top:3,left:5},{top:5,left:3},{top:3,left:1}],Me={map:me,player:pe,mines:ge,boxes:ye},ua=Object.freeze(Object.defineProperty({__proto__:null,boxes:ye,default:Me,map:me,mines:ge,player:pe},Symbol.toStringTag,{value:"Module"})),da=_("h4",{"mb-2":""}," PUSH MINES ",-1),ha={"my-2":""},fa={"mt-4":""},va={btn:""},ma=ne({__name:"Game",setup(S){function d(u){return typeof u=="string"?de(u.replaceAll(" ","+")):aa(u).cloned.value}const v=re(Me);function M(u){v.value=u,N(u)}const g=Ye();N(d(g.query.game||v.value));const R=g.query.steps?de(g.query.steps).steps:[];Le(R);const{steps:O}=je(),{positions:E}=De(),{positions:B}=Ne(),w=re(!1),I=Je(()=>E.every(u=>B.find(L=>L.top===u.top&&L.left===u.left)));fe(I,()=>{I?w.value=!0:w.value=!1});function A(){N(d(g.query.game||v.value))}function U(){qe(location.search||v.value)}function V(){We(d(g.query.game||v.value))}function $(){N(d(g.query.game||v.value)),Ue()}function z(){w.value=!1,A()}return(u,L)=>{const H=ca,j=Ve,G=$e,Z=ze,Y=He,J=Ke("RouterLink"),K=ta;return D(),W("div",null,[da,F(H,{onSelect:M}),_("h6",ha," steps: "+ve(q(O).length),1),F(Y,null,{default:he(()=>[F(j),F(G),F(Z)]),_:1}),_("div",fa,[_("div",{"mr-2":"",btn:"",onClick:A}," RESTART "),_("div",va,[F(J,{to:"/edit"},{default:he(()=>[Qe(" EDIT MAP ")]),_:1})])]),_("div",{"mt-4":""},[_("div",{"mr-2":"",btn:"",onClick:U}," SHARE GAME ")]),Xe(_("div",{fixed:"","bottom-0":"","left-0":"","right-0":"","top-0":"",flex:"","items-center":"","justify-center":"","bg-white":"","dark:bg-black":"",onClick:z},[_("div",{"mt--40":"",btn:"",onClick:V}," SHARE HOW TO PLAY "),_("div",{"ml-8":"","mt--40":"",btn:"",onClick:$}," SHARE GIF SHOW PLAY "),F(K,{passed:q(I)},null,8,["passed"])],512),[[ea,q(I)&&q(w)]])])}}}),pa={};function ga(S,d){const v=ma;return D(),na(v)}const ba=ra(pa,[["render",ga]]);export{ba as default}; diff --git a/docs/assets/Player.vue_vue_type_script_setup_true_lang-91e3e424.js b/docs/assets/Player.vue_vue_type_script_setup_true_lang-128d4d7c.js similarity index 99% rename from docs/assets/Player.vue_vue_type_script_setup_true_lang-91e3e424.js rename to docs/assets/Player.vue_vue_type_script_setup_true_lang-128d4d7c.js index 144a508..ee3b7a1 100644 --- a/docs/assets/Player.vue_vue_type_script_setup_true_lang-91e3e424.js +++ b/docs/assets/Player.vue_vue_type_script_setup_true_lang-128d4d7c.js @@ -1,4 +1,4 @@ -import{x as dt,y as ye,e as as,r as ss,z as $B,A as Ao,B as eo,o as rA,c as fA,C as Bs,m as to,a as ti,d as vr,F as sr,b as Br,h as Ie,D as ro,n as Ui,E as ri,G as no,H as io}from"./index-35f8c1f4.js";var Be=(A=>(A[A.NORMAL=0]="NORMAL",A[A.WALL=1]="WALL",A))(Be||{}),Ve=(A=>(A[A.up=1]="up",A[A.left=2]="left",A[A.down=3]="down",A[A.right=4]="right",A))(Ve||{});const Ut=dt("map",()=>{const A=ye([]);function t(r){A.splice(0,A.length,...r)}return{map:A,setup:t,isWall:({top:r,left:n})=>A[r][n]===Be.WALL}});function ni(A,t){return A.top===t.top&&A.left===t.left}/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const ao=4,Fi=0,pi=1,so=2;function Ke(A){let t=A.length;for(;--t>=0;)A[t]=0}const Bo=0,os=1,oo=2,lo=3,fo=258,ii=29,Ft=256,Bt=Ft+1+ii,me=30,ai=19,ls=2*Bt+1,te=15,Gr=16,co=7,si=256,fs=16,cs=17,us=18,En=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),tr=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),uo=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),gs=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),go=512,xA=new Array((Bt+2)*2);Ke(xA);const At=new Array(me*2);Ke(At);const ot=new Array(go);Ke(ot);const lt=new Array(fo-lo+1);Ke(lt);const Bi=new Array(ii);Ke(Bi);const or=new Array(me);Ke(or);function Nr(A,t,e,r,n){this.static_tree=A,this.extra_bits=t,this.extra_base=e,this.elems=r,this.max_length=n,this.has_stree=A&&A.length}let ws,hs,Qs;function Vr(A,t){this.dyn_tree=A,this.max_code=0,this.stat_desc=t}const Cs=A=>A<256?ot[A]:ot[256+(A>>>7)],ft=(A,t)=>{A.pending_buf[A.pending++]=t&255,A.pending_buf[A.pending++]=t>>>8&255},iA=(A,t,e)=>{A.bi_valid>Gr-e?(A.bi_buf|=t<>Gr-A.bi_valid,A.bi_valid+=e-Gr):(A.bi_buf|=t<{iA(A,e[t*2],e[t*2+1])},ds=(A,t)=>{let e=0;do e|=A&1,A>>>=1,e<<=1;while(--t>0);return e>>>1},wo=A=>{A.bi_valid===16?(ft(A,A.bi_buf),A.bi_buf=0,A.bi_valid=0):A.bi_valid>=8&&(A.pending_buf[A.pending++]=A.bi_buf&255,A.bi_buf>>=8,A.bi_valid-=8)},ho=(A,t)=>{const e=t.dyn_tree,r=t.max_code,n=t.stat_desc.static_tree,i=t.stat_desc.has_stree,a=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,l=t.stat_desc.max_length;let B,o,c,f,u,g,Q=0;for(f=0;f<=te;f++)A.bl_count[f]=0;for(e[A.heap[A.heap_max]*2+1]=0,B=A.heap_max+1;Bl&&(f=l,Q++),e[o*2+1]=f,!(o>r)&&(A.bl_count[f]++,u=0,o>=s&&(u=a[o-s]),g=e[o*2],A.opt_len+=g*(f+u),i&&(A.static_len+=g*(n[o*2+1]+u)));if(Q!==0){do{for(f=l-1;A.bl_count[f]===0;)f--;A.bl_count[f]--,A.bl_count[f+1]+=2,A.bl_count[l]--,Q-=2}while(Q>0);for(f=l;f!==0;f--)for(o=A.bl_count[f];o!==0;)c=A.heap[--B],!(c>r)&&(e[c*2+1]!==f&&(A.opt_len+=(f-e[c*2+1])*e[c*2],e[c*2+1]=f),o--)}},Us=(A,t,e)=>{const r=new Array(te+1);let n=0,i,a;for(i=1;i<=te;i++)n=n+e[i-1]<<1,r[i]=n;for(a=0;a<=t;a++){let s=A[a*2+1];s!==0&&(A[a*2]=ds(r[s]++,s))}},Qo=()=>{let A,t,e,r,n;const i=new Array(te+1);for(e=0,r=0;r>=7;r{let t;for(t=0;t{A.bi_valid>8?ft(A,A.bi_buf):A.bi_valid>0&&(A.pending_buf[A.pending++]=A.bi_buf),A.bi_buf=0,A.bi_valid=0},Ei=(A,t,e,r)=>{const n=t*2,i=e*2;return A[n]{const r=A.heap[e];let n=e<<1;for(;n<=A.heap_len&&(n{let r,n,i=0,a,s;if(A.sym_next!==0)do r=A.pending_buf[A.sym_buf+i++]&255,r+=(A.pending_buf[A.sym_buf+i++]&255)<<8,n=A.pending_buf[A.sym_buf+i++],r===0?FA(A,n,t):(a=lt[n],FA(A,a+Ft+1,t),s=En[a],s!==0&&(n-=Bi[a],iA(A,n,s)),r--,a=Cs(r),FA(A,a,e),s=tr[a],s!==0&&(r-=or[a],iA(A,r,s)));while(i{const e=t.dyn_tree,r=t.stat_desc.static_tree,n=t.stat_desc.has_stree,i=t.stat_desc.elems;let a,s,l=-1,B;for(A.heap_len=0,A.heap_max=ls,a=0;a>1;a>=1;a--)Pr(A,e,a);B=i;do a=A.heap[1],A.heap[1]=A.heap[A.heap_len--],Pr(A,e,1),s=A.heap[1],A.heap[--A.heap_max]=a,A.heap[--A.heap_max]=s,e[B*2]=e[a*2]+e[s*2],A.depth[B]=(A.depth[a]>=A.depth[s]?A.depth[a]:A.depth[s])+1,e[a*2+1]=e[s*2+1]=B,A.heap[1]=B++,Pr(A,e,1);while(A.heap_len>=2);A.heap[--A.heap_max]=A.heap[1],ho(A,t),Us(e,l,A.bl_count)},Hi=(A,t,e)=>{let r,n=-1,i,a=t[0*2+1],s=0,l=7,B=4;for(a===0&&(l=138,B=3),t[(e+1)*2+1]=65535,r=0;r<=e;r++)i=a,a=t[(r+1)*2+1],!(++s{let r,n=-1,i,a=t[0*2+1],s=0,l=7,B=4;for(a===0&&(l=138,B=3),r=0;r<=e;r++)if(i=a,a=t[(r+1)*2+1],!(++s{let t;for(Hi(A,A.dyn_ltree,A.l_desc.max_code),Hi(A,A.dyn_dtree,A.d_desc.max_code),vn(A,A.bl_desc),t=ai-1;t>=3&&A.bl_tree[gs[t]*2+1]===0;t--);return A.opt_len+=3*(t+1)+5+5+4,t},Uo=(A,t,e,r)=>{let n;for(iA(A,t-257,5),iA(A,e-1,5),iA(A,r-4,4),n=0;n{let t=4093624447,e;for(e=0;e<=31;e++,t>>>=1)if(t&1&&A.dyn_ltree[e*2]!==0)return Fi;if(A.dyn_ltree[9*2]!==0||A.dyn_ltree[10*2]!==0||A.dyn_ltree[13*2]!==0)return pi;for(e=32;e{mi||(Qo(),mi=!0),A.l_desc=new Vr(A.dyn_ltree,ws),A.d_desc=new Vr(A.dyn_dtree,hs),A.bl_desc=new Vr(A.bl_tree,Qs),A.bi_buf=0,A.bi_valid=0,Fs(A)},Es=(A,t,e,r)=>{iA(A,(Bo<<1)+(r?1:0),3),ps(A),ft(A,e),ft(A,~e),e&&A.pending_buf.set(A.window.subarray(t,t+e),A.pending),A.pending+=e},Eo=A=>{iA(A,os<<1,3),FA(A,si,xA),wo(A)},vo=(A,t,e,r)=>{let n,i,a=0;A.level>0?(A.strm.data_type===so&&(A.strm.data_type=Fo(A)),vn(A,A.l_desc),vn(A,A.d_desc),a=Co(A),n=A.opt_len+3+7>>>3,i=A.static_len+3+7>>>3,i<=n&&(n=i)):n=i=e+5,e+4<=n&&t!==-1?Es(A,t,e,r):A.strategy===ao||i===n?(iA(A,(os<<1)+(r?1:0),3),vi(A,xA,At)):(iA(A,(oo<<1)+(r?1:0),3),Uo(A,A.l_desc.max_code+1,A.d_desc.max_code+1,a+1),vi(A,A.dyn_ltree,A.dyn_dtree)),Fs(A),r&&ps(A)},Ho=(A,t,e)=>(A.pending_buf[A.sym_buf+A.sym_next++]=t,A.pending_buf[A.sym_buf+A.sym_next++]=t>>8,A.pending_buf[A.sym_buf+A.sym_next++]=e,t===0?A.dyn_ltree[e*2]++:(A.matches++,t--,A.dyn_ltree[(lt[e]+Ft+1)*2]++,A.dyn_dtree[Cs(t)*2]++),A.sym_next===A.sym_end);var Io=po,mo=Es,_o=vo,yo=Ho,bo=Eo,xo={_tr_init:Io,_tr_stored_block:mo,_tr_flush_block:_o,_tr_tally:yo,_tr_align:bo};const Lo=(A,t,e,r)=>{let n=A&65535|0,i=A>>>16&65535|0,a=0;for(;e!==0;){a=e>2e3?2e3:e,e-=a;do n=n+t[r++]|0,i=i+n|0;while(--a);n%=65521,i%=65521}return n|i<<16|0};var ct=Lo;const Ko=()=>{let A,t=[];for(var e=0;e<256;e++){A=e;for(var r=0;r<8;r++)A=A&1?3988292384^A>>>1:A>>>1;t[e]=A}return t},Do=new Uint32Array(Ko()),So=(A,t,e,r)=>{const n=Do,i=r+e;A^=-1;for(let a=r;a>>8^n[(A^t[a])&255];return A^-1};var J=So,oe={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},ce={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:To,_tr_stored_block:Hn,_tr_flush_block:Oo,_tr_tally:PA,_tr_align:Ro}=xo,{Z_NO_FLUSH:XA,Z_PARTIAL_FLUSH:Mo,Z_FULL_FLUSH:ko,Z_FINISH:cA,Z_BLOCK:_i,Z_OK:Z,Z_STREAM_END:yi,Z_STREAM_ERROR:pA,Z_DATA_ERROR:Go,Z_BUF_ERROR:Xr,Z_DEFAULT_COMPRESSION:No,Z_FILTERED:Vo,Z_HUFFMAN_ONLY:mt,Z_RLE:Po,Z_FIXED:Xo,Z_DEFAULT_STRATEGY:Jo,Z_UNKNOWN:Wo,Z_DEFLATED:Hr}=ce,Zo=9,Yo=15,zo=8,qo=29,jo=256,In=jo+1+qo,$o=30,Al=19,el=2*In+1,tl=15,L=3,kA=258,EA=kA+L+1,rl=32,be=42,oi=57,mn=69,_n=73,yn=91,bn=103,re=113,Pe=666,AA=1,De=2,le=3,Se=4,nl=3,ne=(A,t)=>(A.msg=oe[t],t),bi=A=>A*2-(A>4?9:0),MA=A=>{let t=A.length;for(;--t>=0;)A[t]=0},il=A=>{let t,e,r,n=A.w_size;t=A.hash_size,r=t;do e=A.head[--r],A.head[r]=e>=n?e-n:0;while(--t);t=n,r=t;do e=A.prev[--r],A.prev[r]=e>=n?e-n:0;while(--t)};let al=(A,t,e)=>(t<{const t=A.state;let e=t.pending;e>A.avail_out&&(e=A.avail_out),e!==0&&(A.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+e),A.next_out),A.next_out+=e,t.pending_out+=e,A.total_out+=e,A.avail_out-=e,t.pending-=e,t.pending===0&&(t.pending_out=0))},BA=(A,t)=>{Oo(A,A.block_start>=0?A.block_start:-1,A.strstart-A.block_start,t),A.block_start=A.strstart,sA(A.strm)},K=(A,t)=>{A.pending_buf[A.pending++]=t},Re=(A,t)=>{A.pending_buf[A.pending++]=t>>>8&255,A.pending_buf[A.pending++]=t&255},xn=(A,t,e,r)=>{let n=A.avail_in;return n>r&&(n=r),n===0?0:(A.avail_in-=n,t.set(A.input.subarray(A.next_in,A.next_in+n),e),A.state.wrap===1?A.adler=ct(A.adler,t,n,e):A.state.wrap===2&&(A.adler=J(A.adler,t,n,e)),A.next_in+=n,A.total_in+=n,n)},vs=(A,t)=>{let e=A.max_chain_length,r=A.strstart,n,i,a=A.prev_length,s=A.nice_match;const l=A.strstart>A.w_size-EA?A.strstart-(A.w_size-EA):0,B=A.window,o=A.w_mask,c=A.prev,f=A.strstart+kA;let u=B[r+a-1],g=B[r+a];A.prev_length>=A.good_match&&(e>>=2),s>A.lookahead&&(s=A.lookahead);do if(n=t,!(B[n+a]!==g||B[n+a-1]!==u||B[n]!==B[r]||B[++n]!==B[r+1])){r+=2,n++;do;while(B[++r]===B[++n]&&B[++r]===B[++n]&&B[++r]===B[++n]&&B[++r]===B[++n]&&B[++r]===B[++n]&&B[++r]===B[++n]&&B[++r]===B[++n]&&B[++r]===B[++n]&&ra){if(A.match_start=t,a=i,i>=s)break;u=B[r+a-1],g=B[r+a]}}while((t=c[t&o])>l&&--e!==0);return a<=A.lookahead?a:A.lookahead},xe=A=>{const t=A.w_size;let e,r,n;do{if(r=A.window_size-A.lookahead-A.strstart,A.strstart>=t+(t-EA)&&(A.window.set(A.window.subarray(t,t+t-r),0),A.match_start-=t,A.strstart-=t,A.block_start-=t,A.insert>A.strstart&&(A.insert=A.strstart),il(A),r+=t),A.strm.avail_in===0)break;if(e=xn(A.strm,A.window,A.strstart+A.lookahead,r),A.lookahead+=e,A.lookahead+A.insert>=L)for(n=A.strstart-A.insert,A.ins_h=A.window[n],A.ins_h=JA(A,A.ins_h,A.window[n+1]);A.insert&&(A.ins_h=JA(A,A.ins_h,A.window[n+L-1]),A.prev[n&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=n,n++,A.insert--,!(A.lookahead+A.insert{let e=A.pending_buf_size-5>A.w_size?A.w_size:A.pending_buf_size-5,r,n,i,a=0,s=A.strm.avail_in;do{if(r=65535,i=A.bi_valid+42>>3,A.strm.avail_outn+A.strm.avail_in&&(r=n+A.strm.avail_in),r>i&&(r=i),r>8,A.pending_buf[A.pending-2]=~r,A.pending_buf[A.pending-1]=~r>>8,sA(A.strm),n&&(n>r&&(n=r),A.strm.output.set(A.window.subarray(A.block_start,A.block_start+n),A.strm.next_out),A.strm.next_out+=n,A.strm.avail_out-=n,A.strm.total_out+=n,A.block_start+=n,r-=n),r&&(xn(A.strm,A.strm.output,A.strm.next_out,r),A.strm.next_out+=r,A.strm.avail_out-=r,A.strm.total_out+=r)}while(a===0);return s-=A.strm.avail_in,s&&(s>=A.w_size?(A.matches=2,A.window.set(A.strm.input.subarray(A.strm.next_in-A.w_size,A.strm.next_in),0),A.strstart=A.w_size,A.insert=A.strstart):(A.window_size-A.strstart<=s&&(A.strstart-=A.w_size,A.window.set(A.window.subarray(A.w_size,A.w_size+A.strstart),0),A.matches<2&&A.matches++,A.insert>A.strstart&&(A.insert=A.strstart)),A.window.set(A.strm.input.subarray(A.strm.next_in-s,A.strm.next_in),A.strstart),A.strstart+=s,A.insert+=s>A.w_size-A.insert?A.w_size-A.insert:s),A.block_start=A.strstart),A.high_wateri&&A.block_start>=A.w_size&&(A.block_start-=A.w_size,A.strstart-=A.w_size,A.window.set(A.window.subarray(A.w_size,A.w_size+A.strstart),0),A.matches<2&&A.matches++,i+=A.w_size,A.insert>A.strstart&&(A.insert=A.strstart)),i>A.strm.avail_in&&(i=A.strm.avail_in),i&&(xn(A.strm,A.window,A.strstart,i),A.strstart+=i,A.insert+=i>A.w_size-A.insert?A.w_size-A.insert:i),A.high_water>3,i=A.pending_buf_size-i>65535?65535:A.pending_buf_size-i,e=i>A.w_size?A.w_size:i,n=A.strstart-A.block_start,(n>=e||(n||t===cA)&&t!==XA&&A.strm.avail_in===0&&n<=i)&&(r=n>i?i:n,a=t===cA&&A.strm.avail_in===0&&r===n?1:0,Hn(A,A.block_start,r,a),A.block_start+=r,sA(A.strm)),a?le:AA)},Jr=(A,t)=>{let e,r;for(;;){if(A.lookahead=L&&(A.ins_h=JA(A,A.ins_h,A.window[A.strstart+L-1]),e=A.prev[A.strstart&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=A.strstart),e!==0&&A.strstart-e<=A.w_size-EA&&(A.match_length=vs(A,e)),A.match_length>=L)if(r=PA(A,A.strstart-A.match_start,A.match_length-L),A.lookahead-=A.match_length,A.match_length<=A.max_lazy_match&&A.lookahead>=L){A.match_length--;do A.strstart++,A.ins_h=JA(A,A.ins_h,A.window[A.strstart+L-1]),e=A.prev[A.strstart&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=A.strstart;while(--A.match_length!==0);A.strstart++}else A.strstart+=A.match_length,A.match_length=0,A.ins_h=A.window[A.strstart],A.ins_h=JA(A,A.ins_h,A.window[A.strstart+1]);else r=PA(A,0,A.window[A.strstart]),A.lookahead--,A.strstart++;if(r&&(BA(A,!1),A.strm.avail_out===0))return AA}return A.insert=A.strstart{let e,r,n;for(;;){if(A.lookahead=L&&(A.ins_h=JA(A,A.ins_h,A.window[A.strstart+L-1]),e=A.prev[A.strstart&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=A.strstart),A.prev_length=A.match_length,A.prev_match=A.match_start,A.match_length=L-1,e!==0&&A.prev_length4096)&&(A.match_length=L-1)),A.prev_length>=L&&A.match_length<=A.prev_length){n=A.strstart+A.lookahead-L,r=PA(A,A.strstart-1-A.prev_match,A.prev_length-L),A.lookahead-=A.prev_length-1,A.prev_length-=2;do++A.strstart<=n&&(A.ins_h=JA(A,A.ins_h,A.window[A.strstart+L-1]),e=A.prev[A.strstart&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=A.strstart);while(--A.prev_length!==0);if(A.match_available=0,A.match_length=L-1,A.strstart++,r&&(BA(A,!1),A.strm.avail_out===0))return AA}else if(A.match_available){if(r=PA(A,0,A.window[A.strstart-1]),r&&BA(A,!1),A.strstart++,A.lookahead--,A.strm.avail_out===0)return AA}else A.match_available=1,A.strstart++,A.lookahead--}return A.match_available&&(r=PA(A,0,A.window[A.strstart-1]),A.match_available=0),A.insert=A.strstart{let e,r,n,i;const a=A.window;for(;;){if(A.lookahead<=kA){if(xe(A),A.lookahead<=kA&&t===XA)return AA;if(A.lookahead===0)break}if(A.match_length=0,A.lookahead>=L&&A.strstart>0&&(n=A.strstart-1,r=a[n],r===a[++n]&&r===a[++n]&&r===a[++n])){i=A.strstart+kA;do;while(r===a[++n]&&r===a[++n]&&r===a[++n]&&r===a[++n]&&r===a[++n]&&r===a[++n]&&r===a[++n]&&r===a[++n]&&nA.lookahead&&(A.match_length=A.lookahead)}if(A.match_length>=L?(e=PA(A,1,A.match_length-L),A.lookahead-=A.match_length,A.strstart+=A.match_length,A.match_length=0):(e=PA(A,0,A.window[A.strstart]),A.lookahead--,A.strstart++),e&&(BA(A,!1),A.strm.avail_out===0))return AA}return A.insert=0,t===cA?(BA(A,!0),A.strm.avail_out===0?le:Se):A.sym_next&&(BA(A,!1),A.strm.avail_out===0)?AA:De},Bl=(A,t)=>{let e;for(;;){if(A.lookahead===0&&(xe(A),A.lookahead===0)){if(t===XA)return AA;break}if(A.match_length=0,e=PA(A,0,A.window[A.strstart]),A.lookahead--,A.strstart++,e&&(BA(A,!1),A.strm.avail_out===0))return AA}return A.insert=0,t===cA?(BA(A,!0),A.strm.avail_out===0?le:Se):A.sym_next&&(BA(A,!1),A.strm.avail_out===0)?AA:De};function dA(A,t,e,r,n){this.good_length=A,this.max_lazy=t,this.nice_length=e,this.max_chain=r,this.func=n}const Xe=[new dA(0,0,0,0,Hs),new dA(4,4,8,4,Jr),new dA(4,5,16,8,Jr),new dA(4,6,32,32,Jr),new dA(4,4,16,16,we),new dA(8,16,32,32,we),new dA(8,16,128,128,we),new dA(8,32,128,256,we),new dA(32,128,258,1024,we),new dA(32,258,258,4096,we)],ol=A=>{A.window_size=2*A.w_size,MA(A.head),A.max_lazy_match=Xe[A.level].max_lazy,A.good_match=Xe[A.level].good_length,A.nice_match=Xe[A.level].nice_length,A.max_chain_length=Xe[A.level].max_chain,A.strstart=0,A.block_start=0,A.lookahead=0,A.insert=0,A.match_length=A.prev_length=L-1,A.match_available=0,A.ins_h=0};function ll(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Hr,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(el*2),this.dyn_dtree=new Uint16Array((2*$o+1)*2),this.bl_tree=new Uint16Array((2*Al+1)*2),MA(this.dyn_ltree),MA(this.dyn_dtree),MA(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(tl+1),this.heap=new Uint16Array(2*In+1),MA(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*In+1),MA(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const pt=A=>{if(!A)return 1;const t=A.state;return!t||t.strm!==A||t.status!==be&&t.status!==oi&&t.status!==mn&&t.status!==_n&&t.status!==yn&&t.status!==bn&&t.status!==re&&t.status!==Pe?1:0},Is=A=>{if(pt(A))return ne(A,pA);A.total_in=A.total_out=0,A.data_type=Wo;const t=A.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?oi:t.wrap?be:re,A.adler=t.wrap===2?0:1,t.last_flush=-2,To(t),Z},ms=A=>{const t=Is(A);return t===Z&&ol(A.state),t},fl=(A,t)=>pt(A)||A.state.wrap!==2?pA:(A.state.gzhead=t,Z),_s=(A,t,e,r,n,i)=>{if(!A)return pA;let a=1;if(t===No&&(t=6),r<0?(a=0,r=-r):r>15&&(a=2,r-=16),n<1||n>Zo||e!==Hr||r<8||r>15||t<0||t>9||i<0||i>Xo||r===8&&a!==1)return ne(A,pA);r===8&&(r=9);const s=new ll;return A.state=s,s.strm=A,s.status=be,s.wrap=a,s.gzhead=null,s.w_bits=r,s.w_size=1<_s(A,t,Hr,Yo,zo,Jo),ul=(A,t)=>{if(pt(A)||t>_i||t<0)return A?ne(A,pA):pA;const e=A.state;if(!A.output||A.avail_in!==0&&!A.input||e.status===Pe&&t!==cA)return ne(A,A.avail_out===0?Xr:pA);const r=e.last_flush;if(e.last_flush=t,e.pending!==0){if(sA(A),A.avail_out===0)return e.last_flush=-1,Z}else if(A.avail_in===0&&bi(t)<=bi(r)&&t!==cA)return ne(A,Xr);if(e.status===Pe&&A.avail_in!==0)return ne(A,Xr);if(e.status===be&&e.wrap===0&&(e.status=re),e.status===be){let n=Hr+(e.w_bits-8<<4)<<8,i=-1;if(e.strategy>=mt||e.level<2?i=0:e.level<6?i=1:e.level===6?i=2:i=3,n|=i<<6,e.strstart!==0&&(n|=rl),n+=31-n%31,Re(e,n),e.strstart!==0&&(Re(e,A.adler>>>16),Re(e,A.adler&65535)),A.adler=1,e.status=re,sA(A),e.pending!==0)return e.last_flush=-1,Z}if(e.status===oi){if(A.adler=0,K(e,31),K(e,139),K(e,8),e.gzhead)K(e,(e.gzhead.text?1:0)+(e.gzhead.hcrc?2:0)+(e.gzhead.extra?4:0)+(e.gzhead.name?8:0)+(e.gzhead.comment?16:0)),K(e,e.gzhead.time&255),K(e,e.gzhead.time>>8&255),K(e,e.gzhead.time>>16&255),K(e,e.gzhead.time>>24&255),K(e,e.level===9?2:e.strategy>=mt||e.level<2?4:0),K(e,e.gzhead.os&255),e.gzhead.extra&&e.gzhead.extra.length&&(K(e,e.gzhead.extra.length&255),K(e,e.gzhead.extra.length>>8&255)),e.gzhead.hcrc&&(A.adler=J(A.adler,e.pending_buf,e.pending,0)),e.gzindex=0,e.status=mn;else if(K(e,0),K(e,0),K(e,0),K(e,0),K(e,0),K(e,e.level===9?2:e.strategy>=mt||e.level<2?4:0),K(e,nl),e.status=re,sA(A),e.pending!==0)return e.last_flush=-1,Z}if(e.status===mn){if(e.gzhead.extra){let n=e.pending,i=(e.gzhead.extra.length&65535)-e.gzindex;for(;e.pending+i>e.pending_buf_size;){let s=e.pending_buf_size-e.pending;if(e.pending_buf.set(e.gzhead.extra.subarray(e.gzindex,e.gzindex+s),e.pending),e.pending=e.pending_buf_size,e.gzhead.hcrc&&e.pending>n&&(A.adler=J(A.adler,e.pending_buf,e.pending-n,n)),e.gzindex+=s,sA(A),e.pending!==0)return e.last_flush=-1,Z;n=0,i-=s}let a=new Uint8Array(e.gzhead.extra);e.pending_buf.set(a.subarray(e.gzindex,e.gzindex+i),e.pending),e.pending+=i,e.gzhead.hcrc&&e.pending>n&&(A.adler=J(A.adler,e.pending_buf,e.pending-n,n)),e.gzindex=0}e.status=_n}if(e.status===_n){if(e.gzhead.name){let n=e.pending,i;do{if(e.pending===e.pending_buf_size){if(e.gzhead.hcrc&&e.pending>n&&(A.adler=J(A.adler,e.pending_buf,e.pending-n,n)),sA(A),e.pending!==0)return e.last_flush=-1,Z;n=0}e.gzindexn&&(A.adler=J(A.adler,e.pending_buf,e.pending-n,n)),e.gzindex=0}e.status=yn}if(e.status===yn){if(e.gzhead.comment){let n=e.pending,i;do{if(e.pending===e.pending_buf_size){if(e.gzhead.hcrc&&e.pending>n&&(A.adler=J(A.adler,e.pending_buf,e.pending-n,n)),sA(A),e.pending!==0)return e.last_flush=-1,Z;n=0}e.gzindexn&&(A.adler=J(A.adler,e.pending_buf,e.pending-n,n))}e.status=bn}if(e.status===bn){if(e.gzhead.hcrc){if(e.pending+2>e.pending_buf_size&&(sA(A),e.pending!==0))return e.last_flush=-1,Z;K(e,A.adler&255),K(e,A.adler>>8&255),A.adler=0}if(e.status=re,sA(A),e.pending!==0)return e.last_flush=-1,Z}if(A.avail_in!==0||e.lookahead!==0||t!==XA&&e.status!==Pe){let n=e.level===0?Hs(e,t):e.strategy===mt?Bl(e,t):e.strategy===Po?sl(e,t):Xe[e.level].func(e,t);if((n===le||n===Se)&&(e.status=Pe),n===AA||n===le)return A.avail_out===0&&(e.last_flush=-1),Z;if(n===De&&(t===Mo?Ro(e):t!==_i&&(Hn(e,0,0,!1),t===ko&&(MA(e.head),e.lookahead===0&&(e.strstart=0,e.block_start=0,e.insert=0))),sA(A),A.avail_out===0))return e.last_flush=-1,Z}return t!==cA?Z:e.wrap<=0?yi:(e.wrap===2?(K(e,A.adler&255),K(e,A.adler>>8&255),K(e,A.adler>>16&255),K(e,A.adler>>24&255),K(e,A.total_in&255),K(e,A.total_in>>8&255),K(e,A.total_in>>16&255),K(e,A.total_in>>24&255)):(Re(e,A.adler>>>16),Re(e,A.adler&65535)),sA(A),e.wrap>0&&(e.wrap=-e.wrap),e.pending!==0?Z:yi)},gl=A=>{if(pt(A))return pA;const t=A.state.status;return A.state=null,t===re?ne(A,Go):Z},wl=(A,t)=>{let e=t.length;if(pt(A))return pA;const r=A.state,n=r.wrap;if(n===2||n===1&&r.status!==be||r.lookahead)return pA;if(n===1&&(A.adler=ct(A.adler,t,e,0)),r.wrap=0,e>=r.w_size){n===0&&(MA(r.head),r.strstart=0,r.block_start=0,r.insert=0);let l=new Uint8Array(r.w_size);l.set(t.subarray(e-r.w_size,e),0),t=l,e=r.w_size}const i=A.avail_in,a=A.next_in,s=A.input;for(A.avail_in=e,A.next_in=0,A.input=t,xe(r);r.lookahead>=L;){let l=r.strstart,B=r.lookahead-(L-1);do r.ins_h=JA(r,r.ins_h,r.window[l+L-1]),r.prev[l&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=l,l++;while(--B);r.strstart=l,r.lookahead=L-1,xe(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=L-1,r.match_available=0,A.next_in=a,A.input=s,A.avail_in=i,r.wrap=n,Z};var hl=cl,Ql=_s,Cl=ms,dl=Is,Ul=fl,Fl=ul,pl=gl,El=wl,vl="pako deflate (from Nodeca project)",et={deflateInit:hl,deflateInit2:Ql,deflateReset:Cl,deflateResetKeep:dl,deflateSetHeader:Ul,deflate:Fl,deflateEnd:pl,deflateSetDictionary:El,deflateInfo:vl};const Hl=(A,t)=>Object.prototype.hasOwnProperty.call(A,t);var Il=function(A){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const e=t.shift();if(e){if(typeof e!="object")throw new TypeError(e+"must be non-object");for(const r in e)Hl(e,r)&&(A[r]=e[r])}}return A},ml=A=>{let t=0;for(let r=0,n=A.length;r=252?6:A>=248?5:A>=240?4:A>=224?3:A>=192?2:1;ut[254]=ut[254]=1;var _l=A=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(A);let t,e,r,n,i,a=A.length,s=0;for(n=0;n>>6,t[i++]=128|e&63):e<65536?(t[i++]=224|e>>>12,t[i++]=128|e>>>6&63,t[i++]=128|e&63):(t[i++]=240|e>>>18,t[i++]=128|e>>>12&63,t[i++]=128|e>>>6&63,t[i++]=128|e&63);return t};const yl=(A,t)=>{if(t<65534&&A.subarray&&ys)return String.fromCharCode.apply(null,A.length===t?A:A.subarray(0,t));let e="";for(let r=0;r{const e=t||A.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(A.subarray(0,t));let r,n;const i=new Array(e*2);for(n=0,r=0;r4){i[n++]=65533,r+=s-1;continue}for(a&=s===2?31:s===3?15:7;s>1&&r1){i[n++]=65533;continue}a<65536?i[n++]=a:(a-=65536,i[n++]=55296|a>>10&1023,i[n++]=56320|a&1023)}return yl(i,n)},xl=(A,t)=>{t=t||A.length,t>A.length&&(t=A.length);let e=t-1;for(;e>=0&&(A[e]&192)===128;)e--;return e<0||e===0?t:e+ut[A[e]]>t?e:t},gt={string2buf:_l,buf2string:bl,utf8border:xl};function Ll(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var bs=Ll;const xs=Object.prototype.toString,{Z_NO_FLUSH:Kl,Z_SYNC_FLUSH:Dl,Z_FULL_FLUSH:Sl,Z_FINISH:Tl,Z_OK:lr,Z_STREAM_END:Ol,Z_DEFAULT_COMPRESSION:Rl,Z_DEFAULT_STRATEGY:Ml,Z_DEFLATED:kl}=ce;function Et(A){this.options=Ir.assign({level:Rl,method:kl,chunkSize:16384,windowBits:15,memLevel:8,strategy:Ml},A||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new bs,this.strm.avail_out=0;let e=et.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(e!==lr)throw new Error(oe[e]);if(t.header&&et.deflateSetHeader(this.strm,t.header),t.dictionary){let r;if(typeof t.dictionary=="string"?r=gt.string2buf(t.dictionary):xs.call(t.dictionary)==="[object ArrayBuffer]"?r=new Uint8Array(t.dictionary):r=t.dictionary,e=et.deflateSetDictionary(this.strm,r),e!==lr)throw new Error(oe[e]);this._dict_set=!0}}Et.prototype.push=function(A,t){const e=this.strm,r=this.options.chunkSize;let n,i;if(this.ended)return!1;for(t===~~t?i=t:i=t===!0?Tl:Kl,typeof A=="string"?e.input=gt.string2buf(A):xs.call(A)==="[object ArrayBuffer]"?e.input=new Uint8Array(A):e.input=A,e.next_in=0,e.avail_in=e.input.length;;){if(e.avail_out===0&&(e.output=new Uint8Array(r),e.next_out=0,e.avail_out=r),(i===Dl||i===Sl)&&e.avail_out<=6){this.onData(e.output.subarray(0,e.next_out)),e.avail_out=0;continue}if(n=et.deflate(e,i),n===Ol)return e.next_out>0&&this.onData(e.output.subarray(0,e.next_out)),n=et.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===lr;if(e.avail_out===0){this.onData(e.output);continue}if(i>0&&e.next_out>0){this.onData(e.output.subarray(0,e.next_out)),e.avail_out=0;continue}if(e.avail_in===0)break}return!0};Et.prototype.onData=function(A){this.chunks.push(A)};Et.prototype.onEnd=function(A){A===lr&&(this.result=Ir.flattenChunks(this.chunks)),this.chunks=[],this.err=A,this.msg=this.strm.msg};function li(A,t){const e=new Et(t);if(e.push(A,!0),e.err)throw e.msg||oe[e.err];return e.result}function Gl(A,t){return t=t||{},t.raw=!0,li(A,t)}function Nl(A,t){return t=t||{},t.gzip=!0,li(A,t)}var Vl=Et,Pl=li,Xl=Gl,Jl=Nl,Wl=ce,Zl={Deflate:Vl,deflate:Pl,deflateRaw:Xl,gzip:Jl,constants:Wl};const _t=16209,Yl=16191;var zl=function(t,e){let r,n,i,a,s,l,B,o,c,f,u,g,Q,w,h,C,U,d,p,F,E,_,v,m;const y=t.state;r=t.next_in,v=t.input,n=r+(t.avail_in-5),i=t.next_out,m=t.output,a=i-(e-t.avail_out),s=i+(t.avail_out-257),l=y.dmax,B=y.wsize,o=y.whave,c=y.wnext,f=y.window,u=y.hold,g=y.bits,Q=y.lencode,w=y.distcode,h=(1<>>24,u>>>=d,g-=d,d=U>>>16&255,d===0)m[i++]=U&65535;else if(d&16){p=U&65535,d&=15,d&&(g>>=d,g-=d),g<15&&(u+=v[r++]<>>24,u>>>=d,g-=d,d=U>>>16&255,d&16){if(F=U&65535,d&=15,gl){t.msg="invalid distance too far back",y.mode=_t;break A}if(u>>>=d,g-=d,d=i-a,F>d){if(d=F-d,d>o&&y.sane){t.msg="invalid distance too far back",y.mode=_t;break A}if(E=0,_=f,c===0){if(E+=B-d,d2;)m[i++]=_[E++],m[i++]=_[E++],m[i++]=_[E++],p-=3;p&&(m[i++]=_[E++],p>1&&(m[i++]=_[E++]))}else{E=i-F;do m[i++]=m[E++],m[i++]=m[E++],m[i++]=m[E++],p-=3;while(p>2);p&&(m[i++]=m[E++],p>1&&(m[i++]=m[E++]))}}else if(d&64){t.msg="invalid distance code",y.mode=_t;break A}else{U=w[(U&65535)+(u&(1<>3,r-=p,g-=p<<3,u&=(1<{const l=s.bits;let B=0,o=0,c=0,f=0,u=0,g=0,Q=0,w=0,h=0,C=0,U,d,p,F,E,_=null,v;const m=new Uint16Array(he+1),y=new Uint16Array(he+1);let R=null,x,T,W;for(B=0;B<=he;B++)m[B]=0;for(o=0;o=1&&m[f]===0;f--);if(u>f&&(u=f),f===0)return n[i++]=1<<24|64<<16|0,n[i++]=1<<24|64<<16|0,s.bits=1,0;for(c=1;c0&&(A===Ki||f!==1))return-1;for(y[1]=0,B=1;Bxi||A===Di&&h>Li)return 1;for(;;){x=B-Q,a[o]+1=v?(T=R[a[o]-v],W=_[a[o]-v]):(T=32+64,W=0),U=1<>Q)+d]=x<<24|T<<16|W|0;while(d!==0);for(U=1<>=1;if(U!==0?(C&=U-1,C+=U):C=0,o++,--m[B]===0){if(B===f)break;B=t[e+a[o]]}if(B>u&&(C&F)!==p){for(Q===0&&(Q=u),E+=c,g=B-Q,w=1<xi||A===Di&&h>Li)return 1;p=C&F,n[p]=u<<24|g<<16|E-i|0}}return C!==0&&(n[E+C]=B-Q<<24|64<<16|0),s.bits=u,0};var tt=ef;const tf=0,Ls=1,Ks=2,{Z_FINISH:Si,Z_BLOCK:rf,Z_TREES:yt,Z_OK:fe,Z_STREAM_END:nf,Z_NEED_DICT:af,Z_STREAM_ERROR:wA,Z_DATA_ERROR:Ds,Z_MEM_ERROR:Ss,Z_BUF_ERROR:sf,Z_DEFLATED:Ti}=ce,mr=16180,Oi=16181,Ri=16182,Mi=16183,ki=16184,Gi=16185,Ni=16186,Vi=16187,Pi=16188,Xi=16189,fr=16190,_A=16191,Zr=16192,Ji=16193,Yr=16194,Wi=16195,Zi=16196,Yi=16197,zi=16198,bt=16199,xt=16200,qi=16201,ji=16202,$i=16203,Aa=16204,ea=16205,zr=16206,ta=16207,ra=16208,M=16209,Ts=16210,Os=16211,Bf=852,of=592,lf=15,ff=lf,na=A=>(A>>>24&255)+(A>>>8&65280)+((A&65280)<<8)+((A&255)<<24);function cf(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const ue=A=>{if(!A)return 1;const t=A.state;return!t||t.strm!==A||t.modeOs?1:0},Rs=A=>{if(ue(A))return wA;const t=A.state;return A.total_in=A.total_out=t.total=0,A.msg="",t.wrap&&(A.adler=t.wrap&1),t.mode=mr,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(Bf),t.distcode=t.distdyn=new Int32Array(of),t.sane=1,t.back=-1,fe},Ms=A=>{if(ue(A))return wA;const t=A.state;return t.wsize=0,t.whave=0,t.wnext=0,Rs(A)},ks=(A,t)=>{let e;if(ue(A))return wA;const r=A.state;return t<0?(e=0,t=-t):(e=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?wA:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=e,r.wbits=t,Ms(A))},Gs=(A,t)=>{if(!A)return wA;const e=new cf;A.state=e,e.strm=A,e.window=null,e.mode=mr;const r=ks(A,t);return r!==fe&&(A.state=null),r},uf=A=>Gs(A,ff);let ia=!0,qr,jr;const gf=A=>{if(ia){qr=new Int32Array(512),jr=new Int32Array(32);let t=0;for(;t<144;)A.lens[t++]=8;for(;t<256;)A.lens[t++]=9;for(;t<280;)A.lens[t++]=7;for(;t<288;)A.lens[t++]=8;for(tt(Ls,A.lens,0,288,qr,0,A.work,{bits:9}),t=0;t<32;)A.lens[t++]=5;tt(Ks,A.lens,0,32,jr,0,A.work,{bits:5}),ia=!1}A.lencode=qr,A.lenbits=9,A.distcode=jr,A.distbits=5},Ns=(A,t,e,r)=>{let n;const i=A.state;return i.window===null&&(i.wsize=1<=i.wsize?(i.window.set(t.subarray(e-i.wsize,e),0),i.wnext=0,i.whave=i.wsize):(n=i.wsize-i.wnext,n>r&&(n=r),i.window.set(t.subarray(e-r,e-r+n),i.wnext),r-=n,r?(i.window.set(t.subarray(e-r,e),0),i.wnext=r,i.whave=i.wsize):(i.wnext+=n,i.wnext===i.wsize&&(i.wnext=0),i.whave{let e,r,n,i,a,s,l,B,o,c,f,u,g,Q,w=0,h,C,U,d,p,F,E,_;const v=new Uint8Array(4);let m,y;const R=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(ue(A)||!A.output||!A.input&&A.avail_in!==0)return wA;e=A.state,e.mode===_A&&(e.mode=Zr),a=A.next_out,n=A.output,l=A.avail_out,i=A.next_in,r=A.input,s=A.avail_in,B=e.hold,o=e.bits,c=s,f=l,_=fe;A:for(;;)switch(e.mode){case mr:if(e.wrap===0){e.mode=Zr;break}for(;o<16;){if(s===0)break A;s--,B+=r[i++]<>>8&255,e.check=J(e.check,v,2,0),B=0,o=0,e.mode=Oi;break}if(e.head&&(e.head.done=!1),!(e.wrap&1)||(((B&255)<<8)+(B>>8))%31){A.msg="incorrect header check",e.mode=M;break}if((B&15)!==Ti){A.msg="unknown compression method",e.mode=M;break}if(B>>>=4,o-=4,E=(B&15)+8,e.wbits===0&&(e.wbits=E),E>15||E>e.wbits){A.msg="invalid window size",e.mode=M;break}e.dmax=1<>8&1),e.flags&512&&e.wrap&4&&(v[0]=B&255,v[1]=B>>>8&255,e.check=J(e.check,v,2,0)),B=0,o=0,e.mode=Ri;case Ri:for(;o<32;){if(s===0)break A;s--,B+=r[i++]<>>8&255,v[2]=B>>>16&255,v[3]=B>>>24&255,e.check=J(e.check,v,4,0)),B=0,o=0,e.mode=Mi;case Mi:for(;o<16;){if(s===0)break A;s--,B+=r[i++]<>8),e.flags&512&&e.wrap&4&&(v[0]=B&255,v[1]=B>>>8&255,e.check=J(e.check,v,2,0)),B=0,o=0,e.mode=ki;case ki:if(e.flags&1024){for(;o<16;){if(s===0)break A;s--,B+=r[i++]<>>8&255,e.check=J(e.check,v,2,0)),B=0,o=0}else e.head&&(e.head.extra=null);e.mode=Gi;case Gi:if(e.flags&1024&&(u=e.length,u>s&&(u=s),u&&(e.head&&(E=e.head.extra_len-e.length,e.head.extra||(e.head.extra=new Uint8Array(e.head.extra_len)),e.head.extra.set(r.subarray(i,i+u),E)),e.flags&512&&e.wrap&4&&(e.check=J(e.check,r,u,i)),s-=u,i+=u,e.length-=u),e.length))break A;e.length=0,e.mode=Ni;case Ni:if(e.flags&2048){if(s===0)break A;u=0;do E=r[i+u++],e.head&&E&&e.length<65536&&(e.head.name+=String.fromCharCode(E));while(E&&u>9&1,e.head.done=!0),A.adler=e.check=0,e.mode=_A;break;case Xi:for(;o<32;){if(s===0)break A;s--,B+=r[i++]<>>=o&7,o-=o&7,e.mode=zr;break}for(;o<3;){if(s===0)break A;s--,B+=r[i++]<>>=1,o-=1,B&3){case 0:e.mode=Ji;break;case 1:if(gf(e),e.mode=bt,t===yt){B>>>=2,o-=2;break A}break;case 2:e.mode=Zi;break;case 3:A.msg="invalid block type",e.mode=M}B>>>=2,o-=2;break;case Ji:for(B>>>=o&7,o-=o&7;o<32;){if(s===0)break A;s--,B+=r[i++]<>>16^65535)){A.msg="invalid stored block lengths",e.mode=M;break}if(e.length=B&65535,B=0,o=0,e.mode=Yr,t===yt)break A;case Yr:e.mode=Wi;case Wi:if(u=e.length,u){if(u>s&&(u=s),u>l&&(u=l),u===0)break A;n.set(r.subarray(i,i+u),a),s-=u,i+=u,l-=u,a+=u,e.length-=u;break}e.mode=_A;break;case Zi:for(;o<14;){if(s===0)break A;s--,B+=r[i++]<>>=5,o-=5,e.ndist=(B&31)+1,B>>>=5,o-=5,e.ncode=(B&15)+4,B>>>=4,o-=4,e.nlen>286||e.ndist>30){A.msg="too many length or distance symbols",e.mode=M;break}e.have=0,e.mode=Yi;case Yi:for(;e.have>>=3,o-=3}for(;e.have<19;)e.lens[R[e.have++]]=0;if(e.lencode=e.lendyn,e.lenbits=7,m={bits:e.lenbits},_=tt(tf,e.lens,0,19,e.lencode,0,e.work,m),e.lenbits=m.bits,_){A.msg="invalid code lengths set",e.mode=M;break}e.have=0,e.mode=zi;case zi:for(;e.have>>24,C=w>>>16&255,U=w&65535,!(h<=o);){if(s===0)break A;s--,B+=r[i++]<>>=h,o-=h,e.lens[e.have++]=U;else{if(U===16){for(y=h+2;o>>=h,o-=h,e.have===0){A.msg="invalid bit length repeat",e.mode=M;break}E=e.lens[e.have-1],u=3+(B&3),B>>>=2,o-=2}else if(U===17){for(y=h+3;o>>=h,o-=h,E=0,u=3+(B&7),B>>>=3,o-=3}else{for(y=h+7;o>>=h,o-=h,E=0,u=11+(B&127),B>>>=7,o-=7}if(e.have+u>e.nlen+e.ndist){A.msg="invalid bit length repeat",e.mode=M;break}for(;u--;)e.lens[e.have++]=E}}if(e.mode===M)break;if(e.lens[256]===0){A.msg="invalid code -- missing end-of-block",e.mode=M;break}if(e.lenbits=9,m={bits:e.lenbits},_=tt(Ls,e.lens,0,e.nlen,e.lencode,0,e.work,m),e.lenbits=m.bits,_){A.msg="invalid literal/lengths set",e.mode=M;break}if(e.distbits=6,e.distcode=e.distdyn,m={bits:e.distbits},_=tt(Ks,e.lens,e.nlen,e.ndist,e.distcode,0,e.work,m),e.distbits=m.bits,_){A.msg="invalid distances set",e.mode=M;break}if(e.mode=bt,t===yt)break A;case bt:e.mode=xt;case xt:if(s>=6&&l>=258){A.next_out=a,A.avail_out=l,A.next_in=i,A.avail_in=s,e.hold=B,e.bits=o,zl(A,f),a=A.next_out,n=A.output,l=A.avail_out,i=A.next_in,r=A.input,s=A.avail_in,B=e.hold,o=e.bits,e.mode===_A&&(e.back=-1);break}for(e.back=0;w=e.lencode[B&(1<>>24,C=w>>>16&255,U=w&65535,!(h<=o);){if(s===0)break A;s--,B+=r[i++]<>d)],h=w>>>24,C=w>>>16&255,U=w&65535,!(d+h<=o);){if(s===0)break A;s--,B+=r[i++]<>>=d,o-=d,e.back+=d}if(B>>>=h,o-=h,e.back+=h,e.length=U,C===0){e.mode=ea;break}if(C&32){e.back=-1,e.mode=_A;break}if(C&64){A.msg="invalid literal/length code",e.mode=M;break}e.extra=C&15,e.mode=qi;case qi:if(e.extra){for(y=e.extra;o>>=e.extra,o-=e.extra,e.back+=e.extra}e.was=e.length,e.mode=ji;case ji:for(;w=e.distcode[B&(1<>>24,C=w>>>16&255,U=w&65535,!(h<=o);){if(s===0)break A;s--,B+=r[i++]<>d)],h=w>>>24,C=w>>>16&255,U=w&65535,!(d+h<=o);){if(s===0)break A;s--,B+=r[i++]<>>=d,o-=d,e.back+=d}if(B>>>=h,o-=h,e.back+=h,C&64){A.msg="invalid distance code",e.mode=M;break}e.offset=U,e.extra=C&15,e.mode=$i;case $i:if(e.extra){for(y=e.extra;o>>=e.extra,o-=e.extra,e.back+=e.extra}if(e.offset>e.dmax){A.msg="invalid distance too far back",e.mode=M;break}e.mode=Aa;case Aa:if(l===0)break A;if(u=f-l,e.offset>u){if(u=e.offset-u,u>e.whave&&e.sane){A.msg="invalid distance too far back",e.mode=M;break}u>e.wnext?(u-=e.wnext,g=e.wsize-u):g=e.wnext-u,u>e.length&&(u=e.length),Q=e.window}else Q=n,g=a-e.offset,u=e.length;u>l&&(u=l),l-=u,e.length-=u;do n[a++]=Q[g++];while(--u);e.length===0&&(e.mode=xt);break;case ea:if(l===0)break A;n[a++]=e.length,l--,e.mode=xt;break;case zr:if(e.wrap){for(;o<32;){if(s===0)break A;s--,B|=r[i++]<{if(ue(A))return wA;let t=A.state;return t.window&&(t.window=null),A.state=null,fe},Qf=(A,t)=>{if(ue(A))return wA;const e=A.state;return e.wrap&2?(e.head=t,t.done=!1,fe):wA},Cf=(A,t)=>{const e=t.length;let r,n,i;return ue(A)||(r=A.state,r.wrap!==0&&r.mode!==fr)?wA:r.mode===fr&&(n=1,n=ct(n,t,e,0),n!==r.check)?Ds:(i=Ns(A,t,e,e),i?(r.mode=Ts,Ss):(r.havedict=1,fe))};var df=Ms,Uf=ks,Ff=Rs,pf=uf,Ef=Gs,vf=wf,Hf=hf,If=Qf,mf=Cf,_f="pako inflate (from Nodeca project)",LA={inflateReset:df,inflateReset2:Uf,inflateResetKeep:Ff,inflateInit:pf,inflateInit2:Ef,inflate:vf,inflateEnd:Hf,inflateGetHeader:If,inflateSetDictionary:mf,inflateInfo:_f};function yf(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var bf=yf;const Vs=Object.prototype.toString,{Z_NO_FLUSH:xf,Z_FINISH:Lf,Z_OK:wt,Z_STREAM_END:$r,Z_NEED_DICT:An,Z_STREAM_ERROR:Kf,Z_DATA_ERROR:aa,Z_MEM_ERROR:Df}=ce;function vt(A){this.options=Ir.assign({chunkSize:1024*64,windowBits:15,to:""},A||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(A&&A.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new bs,this.strm.avail_out=0;let e=LA.inflateInit2(this.strm,t.windowBits);if(e!==wt)throw new Error(oe[e]);if(this.header=new bf,LA.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=gt.string2buf(t.dictionary):Vs.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(e=LA.inflateSetDictionary(this.strm,t.dictionary),e!==wt)))throw new Error(oe[e])}vt.prototype.push=function(A,t){const e=this.strm,r=this.options.chunkSize,n=this.options.dictionary;let i,a,s;if(this.ended)return!1;for(t===~~t?a=t:a=t===!0?Lf:xf,Vs.call(A)==="[object ArrayBuffer]"?e.input=new Uint8Array(A):e.input=A,e.next_in=0,e.avail_in=e.input.length;;){for(e.avail_out===0&&(e.output=new Uint8Array(r),e.next_out=0,e.avail_out=r),i=LA.inflate(e,a),i===An&&n&&(i=LA.inflateSetDictionary(e,n),i===wt?i=LA.inflate(e,a):i===aa&&(i=An));e.avail_in>0&&i===$r&&e.state.wrap>0&&A[e.next_in]!==0;)LA.inflateReset(e),i=LA.inflate(e,a);switch(i){case Kf:case aa:case An:case Df:return this.onEnd(i),this.ended=!0,!1}if(s=e.avail_out,e.next_out&&(e.avail_out===0||i===$r))if(this.options.to==="string"){let l=gt.utf8border(e.output,e.next_out),B=e.next_out-l,o=gt.buf2string(e.output,l);e.next_out=B,e.avail_out=r-B,B&&e.output.set(e.output.subarray(l,l+B),0),this.onData(o)}else this.onData(e.output.length===e.next_out?e.output:e.output.subarray(0,e.next_out));if(!(i===wt&&s===0)){if(i===$r)return i=LA.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,!0;if(e.avail_in===0)break}}return!0};vt.prototype.onData=function(A){this.chunks.push(A)};vt.prototype.onEnd=function(A){A===wt&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Ir.flattenChunks(this.chunks)),this.chunks=[],this.err=A,this.msg=this.strm.msg};function fi(A,t){const e=new vt(t);if(e.push(A),e.err)throw e.msg||oe[e.err];return e.result}function Sf(A,t){return t=t||{},t.raw=!0,fi(A,t)}var Tf=vt,Of=fi,Rf=Sf,Mf=fi,kf=ce,Gf={Inflate:Tf,inflate:Of,inflateRaw:Rf,ungzip:Mf,constants:kf};const{Deflate:Nf,deflate:Vf,deflateRaw:Pf,gzip:Xf}=Zl,{Inflate:Jf,inflate:Wf,inflateRaw:Zf,ungzip:Yf}=Gf;var zf=Nf,qf=Vf,jf=Pf,$f=Xf,Ac=Jf,ec=Wf,tc=Zf,rc=Yf,nc=ce,Ps={Deflate:zf,deflate:qf,deflateRaw:jf,gzip:$f,Inflate:Ac,inflate:ec,inflateRaw:tc,ungzip:rc,constants:nc};function cr(A){const t=JSON.stringify(A),e=Ps.deflate(t);return btoa(String.fromCharCode.apply(null,e))}function FC(A){const t=atob(A),e=new Uint8Array(t.length);for(let r=0;r{const{isWall:A}=Ut(),t=ye([]);function e(B){t.splice(0,t.length,...B)}function r(B){const o=t.findIndex(c=>ni(c,B));o>-1&&t.splice(o,1)}function n({top:B,left:o}){const c=t.find(u=>u.top===B&&u.left===o),f={top:B,left:o-1};return A(f)||l(f)?!1:(c&&(c.left-=1),!0)}function i({top:B,left:o}){const c=t.find(u=>u.top===B&&u.left===o),f={top:B,left:o+1};return A(f)||l(f)?!1:(c&&(c.left+=1),!0)}function a({top:B,left:o}){const c=t.find(u=>u.top===B&&u.left===o),f={top:B-1,left:o};return A(f)||l(f)?!1:(c&&(c.top-=1),!0)}function s({top:B,left:o}){const c=t.find(u=>u.top===B&&u.left===o),f={top:B+1,left:o};return A(f)||l(f)?!1:(c&&(c.top+=1),!0)}function l({top:B,left:o}){return t.find(c=>c.top===B&&c.left===o)}return{positions:t,setup:e,remove:r,moveLeft:n,moveRight:i,moveUp:a,moveDown:s,isMine:l}}),yr=dt("player",()=>{const{isWall:A}=Ut(),{isMine:t,moveLeft:e,moveRight:r,moveUp:n,moveDown:i}=_r(),a=ye({top:-1,left:-1});function s(Q){Object.assign(a,Q),g()}function l(){const Q={top:a.top,left:a.left-1};if(A(Q))return;let w=!0;t(Q)&&(w=e(Q)),w&&(a.left-=1)}function B(){const Q={top:a.top,left:a.left+1};if(A(Q))return;let w=!0;t(Q)&&(w=r(Q)),w&&(a.left+=1)}function o(){const Q={top:a.top-1,left:a.left};if(A(Q))return;let w=!0;t(Q)&&(w=n(Q)),w&&(a.top-=1)}function c(){const Q={top:a.top+1,left:a.left};if(A(Q))return;let w=!0;t(Q)&&(w=i(Q)),w&&(a.top+=1)}const f=ye([]);function u(Q){f.push(Q)}function g(){f.splice(0,f.length)}return{position:a,steps:f,pushStep:u,setup:s,moveLeft:l,moveRight:B,moveUp:o,moveDown:c}}),ci=dt("boxes",()=>{const A=ye([]);function t(r){A.splice(0,A.length,...r)}function e(r){const n=A.findIndex(i=>ni(i,r));n>-1&&A.splice(n,1)}return{positions:A,setup:t,remove:e}}),ur=20;function ic(A){return as(()=>({top:`${A.top*ur}px`,left:`${A.left*ur}px`}))}function Xs(A){return as(()=>A.map(t=>({top:`${t.top*ur}px`,left:`${t.left*ur}px`})))}/*! +import{x as dt,y as ye,e as as,r as ss,z as $B,A as Ao,B as eo,o as rA,c as fA,C as Bs,m as to,a as ti,d as vr,F as sr,b as Br,h as Ie,D as ro,n as Ui,E as ri,G as no,H as io}from"./index-d9ea42c0.js";var Be=(A=>(A[A.NORMAL=0]="NORMAL",A[A.WALL=1]="WALL",A))(Be||{}),Ve=(A=>(A[A.up=1]="up",A[A.left=2]="left",A[A.down=3]="down",A[A.right=4]="right",A))(Ve||{});const Ut=dt("map",()=>{const A=ye([]);function t(r){A.splice(0,A.length,...r)}return{map:A,setup:t,isWall:({top:r,left:n})=>A[r][n]===Be.WALL}});function ni(A,t){return A.top===t.top&&A.left===t.left}/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const ao=4,Fi=0,pi=1,so=2;function Ke(A){let t=A.length;for(;--t>=0;)A[t]=0}const Bo=0,os=1,oo=2,lo=3,fo=258,ii=29,Ft=256,Bt=Ft+1+ii,me=30,ai=19,ls=2*Bt+1,te=15,Gr=16,co=7,si=256,fs=16,cs=17,us=18,En=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),tr=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),uo=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),gs=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),go=512,xA=new Array((Bt+2)*2);Ke(xA);const At=new Array(me*2);Ke(At);const ot=new Array(go);Ke(ot);const lt=new Array(fo-lo+1);Ke(lt);const Bi=new Array(ii);Ke(Bi);const or=new Array(me);Ke(or);function Nr(A,t,e,r,n){this.static_tree=A,this.extra_bits=t,this.extra_base=e,this.elems=r,this.max_length=n,this.has_stree=A&&A.length}let ws,hs,Qs;function Vr(A,t){this.dyn_tree=A,this.max_code=0,this.stat_desc=t}const Cs=A=>A<256?ot[A]:ot[256+(A>>>7)],ft=(A,t)=>{A.pending_buf[A.pending++]=t&255,A.pending_buf[A.pending++]=t>>>8&255},iA=(A,t,e)=>{A.bi_valid>Gr-e?(A.bi_buf|=t<>Gr-A.bi_valid,A.bi_valid+=e-Gr):(A.bi_buf|=t<{iA(A,e[t*2],e[t*2+1])},ds=(A,t)=>{let e=0;do e|=A&1,A>>>=1,e<<=1;while(--t>0);return e>>>1},wo=A=>{A.bi_valid===16?(ft(A,A.bi_buf),A.bi_buf=0,A.bi_valid=0):A.bi_valid>=8&&(A.pending_buf[A.pending++]=A.bi_buf&255,A.bi_buf>>=8,A.bi_valid-=8)},ho=(A,t)=>{const e=t.dyn_tree,r=t.max_code,n=t.stat_desc.static_tree,i=t.stat_desc.has_stree,a=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,l=t.stat_desc.max_length;let B,o,c,f,u,g,Q=0;for(f=0;f<=te;f++)A.bl_count[f]=0;for(e[A.heap[A.heap_max]*2+1]=0,B=A.heap_max+1;Bl&&(f=l,Q++),e[o*2+1]=f,!(o>r)&&(A.bl_count[f]++,u=0,o>=s&&(u=a[o-s]),g=e[o*2],A.opt_len+=g*(f+u),i&&(A.static_len+=g*(n[o*2+1]+u)));if(Q!==0){do{for(f=l-1;A.bl_count[f]===0;)f--;A.bl_count[f]--,A.bl_count[f+1]+=2,A.bl_count[l]--,Q-=2}while(Q>0);for(f=l;f!==0;f--)for(o=A.bl_count[f];o!==0;)c=A.heap[--B],!(c>r)&&(e[c*2+1]!==f&&(A.opt_len+=(f-e[c*2+1])*e[c*2],e[c*2+1]=f),o--)}},Us=(A,t,e)=>{const r=new Array(te+1);let n=0,i,a;for(i=1;i<=te;i++)n=n+e[i-1]<<1,r[i]=n;for(a=0;a<=t;a++){let s=A[a*2+1];s!==0&&(A[a*2]=ds(r[s]++,s))}},Qo=()=>{let A,t,e,r,n;const i=new Array(te+1);for(e=0,r=0;r>=7;r{let t;for(t=0;t{A.bi_valid>8?ft(A,A.bi_buf):A.bi_valid>0&&(A.pending_buf[A.pending++]=A.bi_buf),A.bi_buf=0,A.bi_valid=0},Ei=(A,t,e,r)=>{const n=t*2,i=e*2;return A[n]{const r=A.heap[e];let n=e<<1;for(;n<=A.heap_len&&(n{let r,n,i=0,a,s;if(A.sym_next!==0)do r=A.pending_buf[A.sym_buf+i++]&255,r+=(A.pending_buf[A.sym_buf+i++]&255)<<8,n=A.pending_buf[A.sym_buf+i++],r===0?FA(A,n,t):(a=lt[n],FA(A,a+Ft+1,t),s=En[a],s!==0&&(n-=Bi[a],iA(A,n,s)),r--,a=Cs(r),FA(A,a,e),s=tr[a],s!==0&&(r-=or[a],iA(A,r,s)));while(i{const e=t.dyn_tree,r=t.stat_desc.static_tree,n=t.stat_desc.has_stree,i=t.stat_desc.elems;let a,s,l=-1,B;for(A.heap_len=0,A.heap_max=ls,a=0;a>1;a>=1;a--)Pr(A,e,a);B=i;do a=A.heap[1],A.heap[1]=A.heap[A.heap_len--],Pr(A,e,1),s=A.heap[1],A.heap[--A.heap_max]=a,A.heap[--A.heap_max]=s,e[B*2]=e[a*2]+e[s*2],A.depth[B]=(A.depth[a]>=A.depth[s]?A.depth[a]:A.depth[s])+1,e[a*2+1]=e[s*2+1]=B,A.heap[1]=B++,Pr(A,e,1);while(A.heap_len>=2);A.heap[--A.heap_max]=A.heap[1],ho(A,t),Us(e,l,A.bl_count)},Hi=(A,t,e)=>{let r,n=-1,i,a=t[0*2+1],s=0,l=7,B=4;for(a===0&&(l=138,B=3),t[(e+1)*2+1]=65535,r=0;r<=e;r++)i=a,a=t[(r+1)*2+1],!(++s{let r,n=-1,i,a=t[0*2+1],s=0,l=7,B=4;for(a===0&&(l=138,B=3),r=0;r<=e;r++)if(i=a,a=t[(r+1)*2+1],!(++s{let t;for(Hi(A,A.dyn_ltree,A.l_desc.max_code),Hi(A,A.dyn_dtree,A.d_desc.max_code),vn(A,A.bl_desc),t=ai-1;t>=3&&A.bl_tree[gs[t]*2+1]===0;t--);return A.opt_len+=3*(t+1)+5+5+4,t},Uo=(A,t,e,r)=>{let n;for(iA(A,t-257,5),iA(A,e-1,5),iA(A,r-4,4),n=0;n{let t=4093624447,e;for(e=0;e<=31;e++,t>>>=1)if(t&1&&A.dyn_ltree[e*2]!==0)return Fi;if(A.dyn_ltree[9*2]!==0||A.dyn_ltree[10*2]!==0||A.dyn_ltree[13*2]!==0)return pi;for(e=32;e{mi||(Qo(),mi=!0),A.l_desc=new Vr(A.dyn_ltree,ws),A.d_desc=new Vr(A.dyn_dtree,hs),A.bl_desc=new Vr(A.bl_tree,Qs),A.bi_buf=0,A.bi_valid=0,Fs(A)},Es=(A,t,e,r)=>{iA(A,(Bo<<1)+(r?1:0),3),ps(A),ft(A,e),ft(A,~e),e&&A.pending_buf.set(A.window.subarray(t,t+e),A.pending),A.pending+=e},Eo=A=>{iA(A,os<<1,3),FA(A,si,xA),wo(A)},vo=(A,t,e,r)=>{let n,i,a=0;A.level>0?(A.strm.data_type===so&&(A.strm.data_type=Fo(A)),vn(A,A.l_desc),vn(A,A.d_desc),a=Co(A),n=A.opt_len+3+7>>>3,i=A.static_len+3+7>>>3,i<=n&&(n=i)):n=i=e+5,e+4<=n&&t!==-1?Es(A,t,e,r):A.strategy===ao||i===n?(iA(A,(os<<1)+(r?1:0),3),vi(A,xA,At)):(iA(A,(oo<<1)+(r?1:0),3),Uo(A,A.l_desc.max_code+1,A.d_desc.max_code+1,a+1),vi(A,A.dyn_ltree,A.dyn_dtree)),Fs(A),r&&ps(A)},Ho=(A,t,e)=>(A.pending_buf[A.sym_buf+A.sym_next++]=t,A.pending_buf[A.sym_buf+A.sym_next++]=t>>8,A.pending_buf[A.sym_buf+A.sym_next++]=e,t===0?A.dyn_ltree[e*2]++:(A.matches++,t--,A.dyn_ltree[(lt[e]+Ft+1)*2]++,A.dyn_dtree[Cs(t)*2]++),A.sym_next===A.sym_end);var Io=po,mo=Es,_o=vo,yo=Ho,bo=Eo,xo={_tr_init:Io,_tr_stored_block:mo,_tr_flush_block:_o,_tr_tally:yo,_tr_align:bo};const Lo=(A,t,e,r)=>{let n=A&65535|0,i=A>>>16&65535|0,a=0;for(;e!==0;){a=e>2e3?2e3:e,e-=a;do n=n+t[r++]|0,i=i+n|0;while(--a);n%=65521,i%=65521}return n|i<<16|0};var ct=Lo;const Ko=()=>{let A,t=[];for(var e=0;e<256;e++){A=e;for(var r=0;r<8;r++)A=A&1?3988292384^A>>>1:A>>>1;t[e]=A}return t},Do=new Uint32Array(Ko()),So=(A,t,e,r)=>{const n=Do,i=r+e;A^=-1;for(let a=r;a>>8^n[(A^t[a])&255];return A^-1};var J=So,oe={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},ce={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:To,_tr_stored_block:Hn,_tr_flush_block:Oo,_tr_tally:PA,_tr_align:Ro}=xo,{Z_NO_FLUSH:XA,Z_PARTIAL_FLUSH:Mo,Z_FULL_FLUSH:ko,Z_FINISH:cA,Z_BLOCK:_i,Z_OK:Z,Z_STREAM_END:yi,Z_STREAM_ERROR:pA,Z_DATA_ERROR:Go,Z_BUF_ERROR:Xr,Z_DEFAULT_COMPRESSION:No,Z_FILTERED:Vo,Z_HUFFMAN_ONLY:mt,Z_RLE:Po,Z_FIXED:Xo,Z_DEFAULT_STRATEGY:Jo,Z_UNKNOWN:Wo,Z_DEFLATED:Hr}=ce,Zo=9,Yo=15,zo=8,qo=29,jo=256,In=jo+1+qo,$o=30,Al=19,el=2*In+1,tl=15,L=3,kA=258,EA=kA+L+1,rl=32,be=42,oi=57,mn=69,_n=73,yn=91,bn=103,re=113,Pe=666,AA=1,De=2,le=3,Se=4,nl=3,ne=(A,t)=>(A.msg=oe[t],t),bi=A=>A*2-(A>4?9:0),MA=A=>{let t=A.length;for(;--t>=0;)A[t]=0},il=A=>{let t,e,r,n=A.w_size;t=A.hash_size,r=t;do e=A.head[--r],A.head[r]=e>=n?e-n:0;while(--t);t=n,r=t;do e=A.prev[--r],A.prev[r]=e>=n?e-n:0;while(--t)};let al=(A,t,e)=>(t<{const t=A.state;let e=t.pending;e>A.avail_out&&(e=A.avail_out),e!==0&&(A.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+e),A.next_out),A.next_out+=e,t.pending_out+=e,A.total_out+=e,A.avail_out-=e,t.pending-=e,t.pending===0&&(t.pending_out=0))},BA=(A,t)=>{Oo(A,A.block_start>=0?A.block_start:-1,A.strstart-A.block_start,t),A.block_start=A.strstart,sA(A.strm)},K=(A,t)=>{A.pending_buf[A.pending++]=t},Re=(A,t)=>{A.pending_buf[A.pending++]=t>>>8&255,A.pending_buf[A.pending++]=t&255},xn=(A,t,e,r)=>{let n=A.avail_in;return n>r&&(n=r),n===0?0:(A.avail_in-=n,t.set(A.input.subarray(A.next_in,A.next_in+n),e),A.state.wrap===1?A.adler=ct(A.adler,t,n,e):A.state.wrap===2&&(A.adler=J(A.adler,t,n,e)),A.next_in+=n,A.total_in+=n,n)},vs=(A,t)=>{let e=A.max_chain_length,r=A.strstart,n,i,a=A.prev_length,s=A.nice_match;const l=A.strstart>A.w_size-EA?A.strstart-(A.w_size-EA):0,B=A.window,o=A.w_mask,c=A.prev,f=A.strstart+kA;let u=B[r+a-1],g=B[r+a];A.prev_length>=A.good_match&&(e>>=2),s>A.lookahead&&(s=A.lookahead);do if(n=t,!(B[n+a]!==g||B[n+a-1]!==u||B[n]!==B[r]||B[++n]!==B[r+1])){r+=2,n++;do;while(B[++r]===B[++n]&&B[++r]===B[++n]&&B[++r]===B[++n]&&B[++r]===B[++n]&&B[++r]===B[++n]&&B[++r]===B[++n]&&B[++r]===B[++n]&&B[++r]===B[++n]&&ra){if(A.match_start=t,a=i,i>=s)break;u=B[r+a-1],g=B[r+a]}}while((t=c[t&o])>l&&--e!==0);return a<=A.lookahead?a:A.lookahead},xe=A=>{const t=A.w_size;let e,r,n;do{if(r=A.window_size-A.lookahead-A.strstart,A.strstart>=t+(t-EA)&&(A.window.set(A.window.subarray(t,t+t-r),0),A.match_start-=t,A.strstart-=t,A.block_start-=t,A.insert>A.strstart&&(A.insert=A.strstart),il(A),r+=t),A.strm.avail_in===0)break;if(e=xn(A.strm,A.window,A.strstart+A.lookahead,r),A.lookahead+=e,A.lookahead+A.insert>=L)for(n=A.strstart-A.insert,A.ins_h=A.window[n],A.ins_h=JA(A,A.ins_h,A.window[n+1]);A.insert&&(A.ins_h=JA(A,A.ins_h,A.window[n+L-1]),A.prev[n&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=n,n++,A.insert--,!(A.lookahead+A.insert{let e=A.pending_buf_size-5>A.w_size?A.w_size:A.pending_buf_size-5,r,n,i,a=0,s=A.strm.avail_in;do{if(r=65535,i=A.bi_valid+42>>3,A.strm.avail_outn+A.strm.avail_in&&(r=n+A.strm.avail_in),r>i&&(r=i),r>8,A.pending_buf[A.pending-2]=~r,A.pending_buf[A.pending-1]=~r>>8,sA(A.strm),n&&(n>r&&(n=r),A.strm.output.set(A.window.subarray(A.block_start,A.block_start+n),A.strm.next_out),A.strm.next_out+=n,A.strm.avail_out-=n,A.strm.total_out+=n,A.block_start+=n,r-=n),r&&(xn(A.strm,A.strm.output,A.strm.next_out,r),A.strm.next_out+=r,A.strm.avail_out-=r,A.strm.total_out+=r)}while(a===0);return s-=A.strm.avail_in,s&&(s>=A.w_size?(A.matches=2,A.window.set(A.strm.input.subarray(A.strm.next_in-A.w_size,A.strm.next_in),0),A.strstart=A.w_size,A.insert=A.strstart):(A.window_size-A.strstart<=s&&(A.strstart-=A.w_size,A.window.set(A.window.subarray(A.w_size,A.w_size+A.strstart),0),A.matches<2&&A.matches++,A.insert>A.strstart&&(A.insert=A.strstart)),A.window.set(A.strm.input.subarray(A.strm.next_in-s,A.strm.next_in),A.strstart),A.strstart+=s,A.insert+=s>A.w_size-A.insert?A.w_size-A.insert:s),A.block_start=A.strstart),A.high_wateri&&A.block_start>=A.w_size&&(A.block_start-=A.w_size,A.strstart-=A.w_size,A.window.set(A.window.subarray(A.w_size,A.w_size+A.strstart),0),A.matches<2&&A.matches++,i+=A.w_size,A.insert>A.strstart&&(A.insert=A.strstart)),i>A.strm.avail_in&&(i=A.strm.avail_in),i&&(xn(A.strm,A.window,A.strstart,i),A.strstart+=i,A.insert+=i>A.w_size-A.insert?A.w_size-A.insert:i),A.high_water>3,i=A.pending_buf_size-i>65535?65535:A.pending_buf_size-i,e=i>A.w_size?A.w_size:i,n=A.strstart-A.block_start,(n>=e||(n||t===cA)&&t!==XA&&A.strm.avail_in===0&&n<=i)&&(r=n>i?i:n,a=t===cA&&A.strm.avail_in===0&&r===n?1:0,Hn(A,A.block_start,r,a),A.block_start+=r,sA(A.strm)),a?le:AA)},Jr=(A,t)=>{let e,r;for(;;){if(A.lookahead=L&&(A.ins_h=JA(A,A.ins_h,A.window[A.strstart+L-1]),e=A.prev[A.strstart&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=A.strstart),e!==0&&A.strstart-e<=A.w_size-EA&&(A.match_length=vs(A,e)),A.match_length>=L)if(r=PA(A,A.strstart-A.match_start,A.match_length-L),A.lookahead-=A.match_length,A.match_length<=A.max_lazy_match&&A.lookahead>=L){A.match_length--;do A.strstart++,A.ins_h=JA(A,A.ins_h,A.window[A.strstart+L-1]),e=A.prev[A.strstart&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=A.strstart;while(--A.match_length!==0);A.strstart++}else A.strstart+=A.match_length,A.match_length=0,A.ins_h=A.window[A.strstart],A.ins_h=JA(A,A.ins_h,A.window[A.strstart+1]);else r=PA(A,0,A.window[A.strstart]),A.lookahead--,A.strstart++;if(r&&(BA(A,!1),A.strm.avail_out===0))return AA}return A.insert=A.strstart{let e,r,n;for(;;){if(A.lookahead=L&&(A.ins_h=JA(A,A.ins_h,A.window[A.strstart+L-1]),e=A.prev[A.strstart&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=A.strstart),A.prev_length=A.match_length,A.prev_match=A.match_start,A.match_length=L-1,e!==0&&A.prev_length4096)&&(A.match_length=L-1)),A.prev_length>=L&&A.match_length<=A.prev_length){n=A.strstart+A.lookahead-L,r=PA(A,A.strstart-1-A.prev_match,A.prev_length-L),A.lookahead-=A.prev_length-1,A.prev_length-=2;do++A.strstart<=n&&(A.ins_h=JA(A,A.ins_h,A.window[A.strstart+L-1]),e=A.prev[A.strstart&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=A.strstart);while(--A.prev_length!==0);if(A.match_available=0,A.match_length=L-1,A.strstart++,r&&(BA(A,!1),A.strm.avail_out===0))return AA}else if(A.match_available){if(r=PA(A,0,A.window[A.strstart-1]),r&&BA(A,!1),A.strstart++,A.lookahead--,A.strm.avail_out===0)return AA}else A.match_available=1,A.strstart++,A.lookahead--}return A.match_available&&(r=PA(A,0,A.window[A.strstart-1]),A.match_available=0),A.insert=A.strstart{let e,r,n,i;const a=A.window;for(;;){if(A.lookahead<=kA){if(xe(A),A.lookahead<=kA&&t===XA)return AA;if(A.lookahead===0)break}if(A.match_length=0,A.lookahead>=L&&A.strstart>0&&(n=A.strstart-1,r=a[n],r===a[++n]&&r===a[++n]&&r===a[++n])){i=A.strstart+kA;do;while(r===a[++n]&&r===a[++n]&&r===a[++n]&&r===a[++n]&&r===a[++n]&&r===a[++n]&&r===a[++n]&&r===a[++n]&&nA.lookahead&&(A.match_length=A.lookahead)}if(A.match_length>=L?(e=PA(A,1,A.match_length-L),A.lookahead-=A.match_length,A.strstart+=A.match_length,A.match_length=0):(e=PA(A,0,A.window[A.strstart]),A.lookahead--,A.strstart++),e&&(BA(A,!1),A.strm.avail_out===0))return AA}return A.insert=0,t===cA?(BA(A,!0),A.strm.avail_out===0?le:Se):A.sym_next&&(BA(A,!1),A.strm.avail_out===0)?AA:De},Bl=(A,t)=>{let e;for(;;){if(A.lookahead===0&&(xe(A),A.lookahead===0)){if(t===XA)return AA;break}if(A.match_length=0,e=PA(A,0,A.window[A.strstart]),A.lookahead--,A.strstart++,e&&(BA(A,!1),A.strm.avail_out===0))return AA}return A.insert=0,t===cA?(BA(A,!0),A.strm.avail_out===0?le:Se):A.sym_next&&(BA(A,!1),A.strm.avail_out===0)?AA:De};function dA(A,t,e,r,n){this.good_length=A,this.max_lazy=t,this.nice_length=e,this.max_chain=r,this.func=n}const Xe=[new dA(0,0,0,0,Hs),new dA(4,4,8,4,Jr),new dA(4,5,16,8,Jr),new dA(4,6,32,32,Jr),new dA(4,4,16,16,we),new dA(8,16,32,32,we),new dA(8,16,128,128,we),new dA(8,32,128,256,we),new dA(32,128,258,1024,we),new dA(32,258,258,4096,we)],ol=A=>{A.window_size=2*A.w_size,MA(A.head),A.max_lazy_match=Xe[A.level].max_lazy,A.good_match=Xe[A.level].good_length,A.nice_match=Xe[A.level].nice_length,A.max_chain_length=Xe[A.level].max_chain,A.strstart=0,A.block_start=0,A.lookahead=0,A.insert=0,A.match_length=A.prev_length=L-1,A.match_available=0,A.ins_h=0};function ll(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Hr,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(el*2),this.dyn_dtree=new Uint16Array((2*$o+1)*2),this.bl_tree=new Uint16Array((2*Al+1)*2),MA(this.dyn_ltree),MA(this.dyn_dtree),MA(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(tl+1),this.heap=new Uint16Array(2*In+1),MA(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*In+1),MA(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const pt=A=>{if(!A)return 1;const t=A.state;return!t||t.strm!==A||t.status!==be&&t.status!==oi&&t.status!==mn&&t.status!==_n&&t.status!==yn&&t.status!==bn&&t.status!==re&&t.status!==Pe?1:0},Is=A=>{if(pt(A))return ne(A,pA);A.total_in=A.total_out=0,A.data_type=Wo;const t=A.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?oi:t.wrap?be:re,A.adler=t.wrap===2?0:1,t.last_flush=-2,To(t),Z},ms=A=>{const t=Is(A);return t===Z&&ol(A.state),t},fl=(A,t)=>pt(A)||A.state.wrap!==2?pA:(A.state.gzhead=t,Z),_s=(A,t,e,r,n,i)=>{if(!A)return pA;let a=1;if(t===No&&(t=6),r<0?(a=0,r=-r):r>15&&(a=2,r-=16),n<1||n>Zo||e!==Hr||r<8||r>15||t<0||t>9||i<0||i>Xo||r===8&&a!==1)return ne(A,pA);r===8&&(r=9);const s=new ll;return A.state=s,s.strm=A,s.status=be,s.wrap=a,s.gzhead=null,s.w_bits=r,s.w_size=1<_s(A,t,Hr,Yo,zo,Jo),ul=(A,t)=>{if(pt(A)||t>_i||t<0)return A?ne(A,pA):pA;const e=A.state;if(!A.output||A.avail_in!==0&&!A.input||e.status===Pe&&t!==cA)return ne(A,A.avail_out===0?Xr:pA);const r=e.last_flush;if(e.last_flush=t,e.pending!==0){if(sA(A),A.avail_out===0)return e.last_flush=-1,Z}else if(A.avail_in===0&&bi(t)<=bi(r)&&t!==cA)return ne(A,Xr);if(e.status===Pe&&A.avail_in!==0)return ne(A,Xr);if(e.status===be&&e.wrap===0&&(e.status=re),e.status===be){let n=Hr+(e.w_bits-8<<4)<<8,i=-1;if(e.strategy>=mt||e.level<2?i=0:e.level<6?i=1:e.level===6?i=2:i=3,n|=i<<6,e.strstart!==0&&(n|=rl),n+=31-n%31,Re(e,n),e.strstart!==0&&(Re(e,A.adler>>>16),Re(e,A.adler&65535)),A.adler=1,e.status=re,sA(A),e.pending!==0)return e.last_flush=-1,Z}if(e.status===oi){if(A.adler=0,K(e,31),K(e,139),K(e,8),e.gzhead)K(e,(e.gzhead.text?1:0)+(e.gzhead.hcrc?2:0)+(e.gzhead.extra?4:0)+(e.gzhead.name?8:0)+(e.gzhead.comment?16:0)),K(e,e.gzhead.time&255),K(e,e.gzhead.time>>8&255),K(e,e.gzhead.time>>16&255),K(e,e.gzhead.time>>24&255),K(e,e.level===9?2:e.strategy>=mt||e.level<2?4:0),K(e,e.gzhead.os&255),e.gzhead.extra&&e.gzhead.extra.length&&(K(e,e.gzhead.extra.length&255),K(e,e.gzhead.extra.length>>8&255)),e.gzhead.hcrc&&(A.adler=J(A.adler,e.pending_buf,e.pending,0)),e.gzindex=0,e.status=mn;else if(K(e,0),K(e,0),K(e,0),K(e,0),K(e,0),K(e,e.level===9?2:e.strategy>=mt||e.level<2?4:0),K(e,nl),e.status=re,sA(A),e.pending!==0)return e.last_flush=-1,Z}if(e.status===mn){if(e.gzhead.extra){let n=e.pending,i=(e.gzhead.extra.length&65535)-e.gzindex;for(;e.pending+i>e.pending_buf_size;){let s=e.pending_buf_size-e.pending;if(e.pending_buf.set(e.gzhead.extra.subarray(e.gzindex,e.gzindex+s),e.pending),e.pending=e.pending_buf_size,e.gzhead.hcrc&&e.pending>n&&(A.adler=J(A.adler,e.pending_buf,e.pending-n,n)),e.gzindex+=s,sA(A),e.pending!==0)return e.last_flush=-1,Z;n=0,i-=s}let a=new Uint8Array(e.gzhead.extra);e.pending_buf.set(a.subarray(e.gzindex,e.gzindex+i),e.pending),e.pending+=i,e.gzhead.hcrc&&e.pending>n&&(A.adler=J(A.adler,e.pending_buf,e.pending-n,n)),e.gzindex=0}e.status=_n}if(e.status===_n){if(e.gzhead.name){let n=e.pending,i;do{if(e.pending===e.pending_buf_size){if(e.gzhead.hcrc&&e.pending>n&&(A.adler=J(A.adler,e.pending_buf,e.pending-n,n)),sA(A),e.pending!==0)return e.last_flush=-1,Z;n=0}e.gzindexn&&(A.adler=J(A.adler,e.pending_buf,e.pending-n,n)),e.gzindex=0}e.status=yn}if(e.status===yn){if(e.gzhead.comment){let n=e.pending,i;do{if(e.pending===e.pending_buf_size){if(e.gzhead.hcrc&&e.pending>n&&(A.adler=J(A.adler,e.pending_buf,e.pending-n,n)),sA(A),e.pending!==0)return e.last_flush=-1,Z;n=0}e.gzindexn&&(A.adler=J(A.adler,e.pending_buf,e.pending-n,n))}e.status=bn}if(e.status===bn){if(e.gzhead.hcrc){if(e.pending+2>e.pending_buf_size&&(sA(A),e.pending!==0))return e.last_flush=-1,Z;K(e,A.adler&255),K(e,A.adler>>8&255),A.adler=0}if(e.status=re,sA(A),e.pending!==0)return e.last_flush=-1,Z}if(A.avail_in!==0||e.lookahead!==0||t!==XA&&e.status!==Pe){let n=e.level===0?Hs(e,t):e.strategy===mt?Bl(e,t):e.strategy===Po?sl(e,t):Xe[e.level].func(e,t);if((n===le||n===Se)&&(e.status=Pe),n===AA||n===le)return A.avail_out===0&&(e.last_flush=-1),Z;if(n===De&&(t===Mo?Ro(e):t!==_i&&(Hn(e,0,0,!1),t===ko&&(MA(e.head),e.lookahead===0&&(e.strstart=0,e.block_start=0,e.insert=0))),sA(A),A.avail_out===0))return e.last_flush=-1,Z}return t!==cA?Z:e.wrap<=0?yi:(e.wrap===2?(K(e,A.adler&255),K(e,A.adler>>8&255),K(e,A.adler>>16&255),K(e,A.adler>>24&255),K(e,A.total_in&255),K(e,A.total_in>>8&255),K(e,A.total_in>>16&255),K(e,A.total_in>>24&255)):(Re(e,A.adler>>>16),Re(e,A.adler&65535)),sA(A),e.wrap>0&&(e.wrap=-e.wrap),e.pending!==0?Z:yi)},gl=A=>{if(pt(A))return pA;const t=A.state.status;return A.state=null,t===re?ne(A,Go):Z},wl=(A,t)=>{let e=t.length;if(pt(A))return pA;const r=A.state,n=r.wrap;if(n===2||n===1&&r.status!==be||r.lookahead)return pA;if(n===1&&(A.adler=ct(A.adler,t,e,0)),r.wrap=0,e>=r.w_size){n===0&&(MA(r.head),r.strstart=0,r.block_start=0,r.insert=0);let l=new Uint8Array(r.w_size);l.set(t.subarray(e-r.w_size,e),0),t=l,e=r.w_size}const i=A.avail_in,a=A.next_in,s=A.input;for(A.avail_in=e,A.next_in=0,A.input=t,xe(r);r.lookahead>=L;){let l=r.strstart,B=r.lookahead-(L-1);do r.ins_h=JA(r,r.ins_h,r.window[l+L-1]),r.prev[l&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=l,l++;while(--B);r.strstart=l,r.lookahead=L-1,xe(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=L-1,r.match_available=0,A.next_in=a,A.input=s,A.avail_in=i,r.wrap=n,Z};var hl=cl,Ql=_s,Cl=ms,dl=Is,Ul=fl,Fl=ul,pl=gl,El=wl,vl="pako deflate (from Nodeca project)",et={deflateInit:hl,deflateInit2:Ql,deflateReset:Cl,deflateResetKeep:dl,deflateSetHeader:Ul,deflate:Fl,deflateEnd:pl,deflateSetDictionary:El,deflateInfo:vl};const Hl=(A,t)=>Object.prototype.hasOwnProperty.call(A,t);var Il=function(A){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const e=t.shift();if(e){if(typeof e!="object")throw new TypeError(e+"must be non-object");for(const r in e)Hl(e,r)&&(A[r]=e[r])}}return A},ml=A=>{let t=0;for(let r=0,n=A.length;r=252?6:A>=248?5:A>=240?4:A>=224?3:A>=192?2:1;ut[254]=ut[254]=1;var _l=A=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(A);let t,e,r,n,i,a=A.length,s=0;for(n=0;n>>6,t[i++]=128|e&63):e<65536?(t[i++]=224|e>>>12,t[i++]=128|e>>>6&63,t[i++]=128|e&63):(t[i++]=240|e>>>18,t[i++]=128|e>>>12&63,t[i++]=128|e>>>6&63,t[i++]=128|e&63);return t};const yl=(A,t)=>{if(t<65534&&A.subarray&&ys)return String.fromCharCode.apply(null,A.length===t?A:A.subarray(0,t));let e="";for(let r=0;r{const e=t||A.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(A.subarray(0,t));let r,n;const i=new Array(e*2);for(n=0,r=0;r4){i[n++]=65533,r+=s-1;continue}for(a&=s===2?31:s===3?15:7;s>1&&r1){i[n++]=65533;continue}a<65536?i[n++]=a:(a-=65536,i[n++]=55296|a>>10&1023,i[n++]=56320|a&1023)}return yl(i,n)},xl=(A,t)=>{t=t||A.length,t>A.length&&(t=A.length);let e=t-1;for(;e>=0&&(A[e]&192)===128;)e--;return e<0||e===0?t:e+ut[A[e]]>t?e:t},gt={string2buf:_l,buf2string:bl,utf8border:xl};function Ll(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var bs=Ll;const xs=Object.prototype.toString,{Z_NO_FLUSH:Kl,Z_SYNC_FLUSH:Dl,Z_FULL_FLUSH:Sl,Z_FINISH:Tl,Z_OK:lr,Z_STREAM_END:Ol,Z_DEFAULT_COMPRESSION:Rl,Z_DEFAULT_STRATEGY:Ml,Z_DEFLATED:kl}=ce;function Et(A){this.options=Ir.assign({level:Rl,method:kl,chunkSize:16384,windowBits:15,memLevel:8,strategy:Ml},A||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new bs,this.strm.avail_out=0;let e=et.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(e!==lr)throw new Error(oe[e]);if(t.header&&et.deflateSetHeader(this.strm,t.header),t.dictionary){let r;if(typeof t.dictionary=="string"?r=gt.string2buf(t.dictionary):xs.call(t.dictionary)==="[object ArrayBuffer]"?r=new Uint8Array(t.dictionary):r=t.dictionary,e=et.deflateSetDictionary(this.strm,r),e!==lr)throw new Error(oe[e]);this._dict_set=!0}}Et.prototype.push=function(A,t){const e=this.strm,r=this.options.chunkSize;let n,i;if(this.ended)return!1;for(t===~~t?i=t:i=t===!0?Tl:Kl,typeof A=="string"?e.input=gt.string2buf(A):xs.call(A)==="[object ArrayBuffer]"?e.input=new Uint8Array(A):e.input=A,e.next_in=0,e.avail_in=e.input.length;;){if(e.avail_out===0&&(e.output=new Uint8Array(r),e.next_out=0,e.avail_out=r),(i===Dl||i===Sl)&&e.avail_out<=6){this.onData(e.output.subarray(0,e.next_out)),e.avail_out=0;continue}if(n=et.deflate(e,i),n===Ol)return e.next_out>0&&this.onData(e.output.subarray(0,e.next_out)),n=et.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===lr;if(e.avail_out===0){this.onData(e.output);continue}if(i>0&&e.next_out>0){this.onData(e.output.subarray(0,e.next_out)),e.avail_out=0;continue}if(e.avail_in===0)break}return!0};Et.prototype.onData=function(A){this.chunks.push(A)};Et.prototype.onEnd=function(A){A===lr&&(this.result=Ir.flattenChunks(this.chunks)),this.chunks=[],this.err=A,this.msg=this.strm.msg};function li(A,t){const e=new Et(t);if(e.push(A,!0),e.err)throw e.msg||oe[e.err];return e.result}function Gl(A,t){return t=t||{},t.raw=!0,li(A,t)}function Nl(A,t){return t=t||{},t.gzip=!0,li(A,t)}var Vl=Et,Pl=li,Xl=Gl,Jl=Nl,Wl=ce,Zl={Deflate:Vl,deflate:Pl,deflateRaw:Xl,gzip:Jl,constants:Wl};const _t=16209,Yl=16191;var zl=function(t,e){let r,n,i,a,s,l,B,o,c,f,u,g,Q,w,h,C,U,d,p,F,E,_,v,m;const y=t.state;r=t.next_in,v=t.input,n=r+(t.avail_in-5),i=t.next_out,m=t.output,a=i-(e-t.avail_out),s=i+(t.avail_out-257),l=y.dmax,B=y.wsize,o=y.whave,c=y.wnext,f=y.window,u=y.hold,g=y.bits,Q=y.lencode,w=y.distcode,h=(1<>>24,u>>>=d,g-=d,d=U>>>16&255,d===0)m[i++]=U&65535;else if(d&16){p=U&65535,d&=15,d&&(g>>=d,g-=d),g<15&&(u+=v[r++]<>>24,u>>>=d,g-=d,d=U>>>16&255,d&16){if(F=U&65535,d&=15,gl){t.msg="invalid distance too far back",y.mode=_t;break A}if(u>>>=d,g-=d,d=i-a,F>d){if(d=F-d,d>o&&y.sane){t.msg="invalid distance too far back",y.mode=_t;break A}if(E=0,_=f,c===0){if(E+=B-d,d2;)m[i++]=_[E++],m[i++]=_[E++],m[i++]=_[E++],p-=3;p&&(m[i++]=_[E++],p>1&&(m[i++]=_[E++]))}else{E=i-F;do m[i++]=m[E++],m[i++]=m[E++],m[i++]=m[E++],p-=3;while(p>2);p&&(m[i++]=m[E++],p>1&&(m[i++]=m[E++]))}}else if(d&64){t.msg="invalid distance code",y.mode=_t;break A}else{U=w[(U&65535)+(u&(1<>3,r-=p,g-=p<<3,u&=(1<{const l=s.bits;let B=0,o=0,c=0,f=0,u=0,g=0,Q=0,w=0,h=0,C=0,U,d,p,F,E,_=null,v;const m=new Uint16Array(he+1),y=new Uint16Array(he+1);let R=null,x,T,W;for(B=0;B<=he;B++)m[B]=0;for(o=0;o=1&&m[f]===0;f--);if(u>f&&(u=f),f===0)return n[i++]=1<<24|64<<16|0,n[i++]=1<<24|64<<16|0,s.bits=1,0;for(c=1;c0&&(A===Ki||f!==1))return-1;for(y[1]=0,B=1;Bxi||A===Di&&h>Li)return 1;for(;;){x=B-Q,a[o]+1=v?(T=R[a[o]-v],W=_[a[o]-v]):(T=32+64,W=0),U=1<>Q)+d]=x<<24|T<<16|W|0;while(d!==0);for(U=1<>=1;if(U!==0?(C&=U-1,C+=U):C=0,o++,--m[B]===0){if(B===f)break;B=t[e+a[o]]}if(B>u&&(C&F)!==p){for(Q===0&&(Q=u),E+=c,g=B-Q,w=1<xi||A===Di&&h>Li)return 1;p=C&F,n[p]=u<<24|g<<16|E-i|0}}return C!==0&&(n[E+C]=B-Q<<24|64<<16|0),s.bits=u,0};var tt=ef;const tf=0,Ls=1,Ks=2,{Z_FINISH:Si,Z_BLOCK:rf,Z_TREES:yt,Z_OK:fe,Z_STREAM_END:nf,Z_NEED_DICT:af,Z_STREAM_ERROR:wA,Z_DATA_ERROR:Ds,Z_MEM_ERROR:Ss,Z_BUF_ERROR:sf,Z_DEFLATED:Ti}=ce,mr=16180,Oi=16181,Ri=16182,Mi=16183,ki=16184,Gi=16185,Ni=16186,Vi=16187,Pi=16188,Xi=16189,fr=16190,_A=16191,Zr=16192,Ji=16193,Yr=16194,Wi=16195,Zi=16196,Yi=16197,zi=16198,bt=16199,xt=16200,qi=16201,ji=16202,$i=16203,Aa=16204,ea=16205,zr=16206,ta=16207,ra=16208,M=16209,Ts=16210,Os=16211,Bf=852,of=592,lf=15,ff=lf,na=A=>(A>>>24&255)+(A>>>8&65280)+((A&65280)<<8)+((A&255)<<24);function cf(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const ue=A=>{if(!A)return 1;const t=A.state;return!t||t.strm!==A||t.modeOs?1:0},Rs=A=>{if(ue(A))return wA;const t=A.state;return A.total_in=A.total_out=t.total=0,A.msg="",t.wrap&&(A.adler=t.wrap&1),t.mode=mr,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(Bf),t.distcode=t.distdyn=new Int32Array(of),t.sane=1,t.back=-1,fe},Ms=A=>{if(ue(A))return wA;const t=A.state;return t.wsize=0,t.whave=0,t.wnext=0,Rs(A)},ks=(A,t)=>{let e;if(ue(A))return wA;const r=A.state;return t<0?(e=0,t=-t):(e=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?wA:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=e,r.wbits=t,Ms(A))},Gs=(A,t)=>{if(!A)return wA;const e=new cf;A.state=e,e.strm=A,e.window=null,e.mode=mr;const r=ks(A,t);return r!==fe&&(A.state=null),r},uf=A=>Gs(A,ff);let ia=!0,qr,jr;const gf=A=>{if(ia){qr=new Int32Array(512),jr=new Int32Array(32);let t=0;for(;t<144;)A.lens[t++]=8;for(;t<256;)A.lens[t++]=9;for(;t<280;)A.lens[t++]=7;for(;t<288;)A.lens[t++]=8;for(tt(Ls,A.lens,0,288,qr,0,A.work,{bits:9}),t=0;t<32;)A.lens[t++]=5;tt(Ks,A.lens,0,32,jr,0,A.work,{bits:5}),ia=!1}A.lencode=qr,A.lenbits=9,A.distcode=jr,A.distbits=5},Ns=(A,t,e,r)=>{let n;const i=A.state;return i.window===null&&(i.wsize=1<=i.wsize?(i.window.set(t.subarray(e-i.wsize,e),0),i.wnext=0,i.whave=i.wsize):(n=i.wsize-i.wnext,n>r&&(n=r),i.window.set(t.subarray(e-r,e-r+n),i.wnext),r-=n,r?(i.window.set(t.subarray(e-r,e),0),i.wnext=r,i.whave=i.wsize):(i.wnext+=n,i.wnext===i.wsize&&(i.wnext=0),i.whave{let e,r,n,i,a,s,l,B,o,c,f,u,g,Q,w=0,h,C,U,d,p,F,E,_;const v=new Uint8Array(4);let m,y;const R=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(ue(A)||!A.output||!A.input&&A.avail_in!==0)return wA;e=A.state,e.mode===_A&&(e.mode=Zr),a=A.next_out,n=A.output,l=A.avail_out,i=A.next_in,r=A.input,s=A.avail_in,B=e.hold,o=e.bits,c=s,f=l,_=fe;A:for(;;)switch(e.mode){case mr:if(e.wrap===0){e.mode=Zr;break}for(;o<16;){if(s===0)break A;s--,B+=r[i++]<>>8&255,e.check=J(e.check,v,2,0),B=0,o=0,e.mode=Oi;break}if(e.head&&(e.head.done=!1),!(e.wrap&1)||(((B&255)<<8)+(B>>8))%31){A.msg="incorrect header check",e.mode=M;break}if((B&15)!==Ti){A.msg="unknown compression method",e.mode=M;break}if(B>>>=4,o-=4,E=(B&15)+8,e.wbits===0&&(e.wbits=E),E>15||E>e.wbits){A.msg="invalid window size",e.mode=M;break}e.dmax=1<>8&1),e.flags&512&&e.wrap&4&&(v[0]=B&255,v[1]=B>>>8&255,e.check=J(e.check,v,2,0)),B=0,o=0,e.mode=Ri;case Ri:for(;o<32;){if(s===0)break A;s--,B+=r[i++]<>>8&255,v[2]=B>>>16&255,v[3]=B>>>24&255,e.check=J(e.check,v,4,0)),B=0,o=0,e.mode=Mi;case Mi:for(;o<16;){if(s===0)break A;s--,B+=r[i++]<>8),e.flags&512&&e.wrap&4&&(v[0]=B&255,v[1]=B>>>8&255,e.check=J(e.check,v,2,0)),B=0,o=0,e.mode=ki;case ki:if(e.flags&1024){for(;o<16;){if(s===0)break A;s--,B+=r[i++]<>>8&255,e.check=J(e.check,v,2,0)),B=0,o=0}else e.head&&(e.head.extra=null);e.mode=Gi;case Gi:if(e.flags&1024&&(u=e.length,u>s&&(u=s),u&&(e.head&&(E=e.head.extra_len-e.length,e.head.extra||(e.head.extra=new Uint8Array(e.head.extra_len)),e.head.extra.set(r.subarray(i,i+u),E)),e.flags&512&&e.wrap&4&&(e.check=J(e.check,r,u,i)),s-=u,i+=u,e.length-=u),e.length))break A;e.length=0,e.mode=Ni;case Ni:if(e.flags&2048){if(s===0)break A;u=0;do E=r[i+u++],e.head&&E&&e.length<65536&&(e.head.name+=String.fromCharCode(E));while(E&&u>9&1,e.head.done=!0),A.adler=e.check=0,e.mode=_A;break;case Xi:for(;o<32;){if(s===0)break A;s--,B+=r[i++]<>>=o&7,o-=o&7,e.mode=zr;break}for(;o<3;){if(s===0)break A;s--,B+=r[i++]<>>=1,o-=1,B&3){case 0:e.mode=Ji;break;case 1:if(gf(e),e.mode=bt,t===yt){B>>>=2,o-=2;break A}break;case 2:e.mode=Zi;break;case 3:A.msg="invalid block type",e.mode=M}B>>>=2,o-=2;break;case Ji:for(B>>>=o&7,o-=o&7;o<32;){if(s===0)break A;s--,B+=r[i++]<>>16^65535)){A.msg="invalid stored block lengths",e.mode=M;break}if(e.length=B&65535,B=0,o=0,e.mode=Yr,t===yt)break A;case Yr:e.mode=Wi;case Wi:if(u=e.length,u){if(u>s&&(u=s),u>l&&(u=l),u===0)break A;n.set(r.subarray(i,i+u),a),s-=u,i+=u,l-=u,a+=u,e.length-=u;break}e.mode=_A;break;case Zi:for(;o<14;){if(s===0)break A;s--,B+=r[i++]<>>=5,o-=5,e.ndist=(B&31)+1,B>>>=5,o-=5,e.ncode=(B&15)+4,B>>>=4,o-=4,e.nlen>286||e.ndist>30){A.msg="too many length or distance symbols",e.mode=M;break}e.have=0,e.mode=Yi;case Yi:for(;e.have>>=3,o-=3}for(;e.have<19;)e.lens[R[e.have++]]=0;if(e.lencode=e.lendyn,e.lenbits=7,m={bits:e.lenbits},_=tt(tf,e.lens,0,19,e.lencode,0,e.work,m),e.lenbits=m.bits,_){A.msg="invalid code lengths set",e.mode=M;break}e.have=0,e.mode=zi;case zi:for(;e.have>>24,C=w>>>16&255,U=w&65535,!(h<=o);){if(s===0)break A;s--,B+=r[i++]<>>=h,o-=h,e.lens[e.have++]=U;else{if(U===16){for(y=h+2;o>>=h,o-=h,e.have===0){A.msg="invalid bit length repeat",e.mode=M;break}E=e.lens[e.have-1],u=3+(B&3),B>>>=2,o-=2}else if(U===17){for(y=h+3;o>>=h,o-=h,E=0,u=3+(B&7),B>>>=3,o-=3}else{for(y=h+7;o>>=h,o-=h,E=0,u=11+(B&127),B>>>=7,o-=7}if(e.have+u>e.nlen+e.ndist){A.msg="invalid bit length repeat",e.mode=M;break}for(;u--;)e.lens[e.have++]=E}}if(e.mode===M)break;if(e.lens[256]===0){A.msg="invalid code -- missing end-of-block",e.mode=M;break}if(e.lenbits=9,m={bits:e.lenbits},_=tt(Ls,e.lens,0,e.nlen,e.lencode,0,e.work,m),e.lenbits=m.bits,_){A.msg="invalid literal/lengths set",e.mode=M;break}if(e.distbits=6,e.distcode=e.distdyn,m={bits:e.distbits},_=tt(Ks,e.lens,e.nlen,e.ndist,e.distcode,0,e.work,m),e.distbits=m.bits,_){A.msg="invalid distances set",e.mode=M;break}if(e.mode=bt,t===yt)break A;case bt:e.mode=xt;case xt:if(s>=6&&l>=258){A.next_out=a,A.avail_out=l,A.next_in=i,A.avail_in=s,e.hold=B,e.bits=o,zl(A,f),a=A.next_out,n=A.output,l=A.avail_out,i=A.next_in,r=A.input,s=A.avail_in,B=e.hold,o=e.bits,e.mode===_A&&(e.back=-1);break}for(e.back=0;w=e.lencode[B&(1<>>24,C=w>>>16&255,U=w&65535,!(h<=o);){if(s===0)break A;s--,B+=r[i++]<>d)],h=w>>>24,C=w>>>16&255,U=w&65535,!(d+h<=o);){if(s===0)break A;s--,B+=r[i++]<>>=d,o-=d,e.back+=d}if(B>>>=h,o-=h,e.back+=h,e.length=U,C===0){e.mode=ea;break}if(C&32){e.back=-1,e.mode=_A;break}if(C&64){A.msg="invalid literal/length code",e.mode=M;break}e.extra=C&15,e.mode=qi;case qi:if(e.extra){for(y=e.extra;o>>=e.extra,o-=e.extra,e.back+=e.extra}e.was=e.length,e.mode=ji;case ji:for(;w=e.distcode[B&(1<>>24,C=w>>>16&255,U=w&65535,!(h<=o);){if(s===0)break A;s--,B+=r[i++]<>d)],h=w>>>24,C=w>>>16&255,U=w&65535,!(d+h<=o);){if(s===0)break A;s--,B+=r[i++]<>>=d,o-=d,e.back+=d}if(B>>>=h,o-=h,e.back+=h,C&64){A.msg="invalid distance code",e.mode=M;break}e.offset=U,e.extra=C&15,e.mode=$i;case $i:if(e.extra){for(y=e.extra;o>>=e.extra,o-=e.extra,e.back+=e.extra}if(e.offset>e.dmax){A.msg="invalid distance too far back",e.mode=M;break}e.mode=Aa;case Aa:if(l===0)break A;if(u=f-l,e.offset>u){if(u=e.offset-u,u>e.whave&&e.sane){A.msg="invalid distance too far back",e.mode=M;break}u>e.wnext?(u-=e.wnext,g=e.wsize-u):g=e.wnext-u,u>e.length&&(u=e.length),Q=e.window}else Q=n,g=a-e.offset,u=e.length;u>l&&(u=l),l-=u,e.length-=u;do n[a++]=Q[g++];while(--u);e.length===0&&(e.mode=xt);break;case ea:if(l===0)break A;n[a++]=e.length,l--,e.mode=xt;break;case zr:if(e.wrap){for(;o<32;){if(s===0)break A;s--,B|=r[i++]<{if(ue(A))return wA;let t=A.state;return t.window&&(t.window=null),A.state=null,fe},Qf=(A,t)=>{if(ue(A))return wA;const e=A.state;return e.wrap&2?(e.head=t,t.done=!1,fe):wA},Cf=(A,t)=>{const e=t.length;let r,n,i;return ue(A)||(r=A.state,r.wrap!==0&&r.mode!==fr)?wA:r.mode===fr&&(n=1,n=ct(n,t,e,0),n!==r.check)?Ds:(i=Ns(A,t,e,e),i?(r.mode=Ts,Ss):(r.havedict=1,fe))};var df=Ms,Uf=ks,Ff=Rs,pf=uf,Ef=Gs,vf=wf,Hf=hf,If=Qf,mf=Cf,_f="pako inflate (from Nodeca project)",LA={inflateReset:df,inflateReset2:Uf,inflateResetKeep:Ff,inflateInit:pf,inflateInit2:Ef,inflate:vf,inflateEnd:Hf,inflateGetHeader:If,inflateSetDictionary:mf,inflateInfo:_f};function yf(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var bf=yf;const Vs=Object.prototype.toString,{Z_NO_FLUSH:xf,Z_FINISH:Lf,Z_OK:wt,Z_STREAM_END:$r,Z_NEED_DICT:An,Z_STREAM_ERROR:Kf,Z_DATA_ERROR:aa,Z_MEM_ERROR:Df}=ce;function vt(A){this.options=Ir.assign({chunkSize:1024*64,windowBits:15,to:""},A||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(A&&A.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new bs,this.strm.avail_out=0;let e=LA.inflateInit2(this.strm,t.windowBits);if(e!==wt)throw new Error(oe[e]);if(this.header=new bf,LA.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=gt.string2buf(t.dictionary):Vs.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(e=LA.inflateSetDictionary(this.strm,t.dictionary),e!==wt)))throw new Error(oe[e])}vt.prototype.push=function(A,t){const e=this.strm,r=this.options.chunkSize,n=this.options.dictionary;let i,a,s;if(this.ended)return!1;for(t===~~t?a=t:a=t===!0?Lf:xf,Vs.call(A)==="[object ArrayBuffer]"?e.input=new Uint8Array(A):e.input=A,e.next_in=0,e.avail_in=e.input.length;;){for(e.avail_out===0&&(e.output=new Uint8Array(r),e.next_out=0,e.avail_out=r),i=LA.inflate(e,a),i===An&&n&&(i=LA.inflateSetDictionary(e,n),i===wt?i=LA.inflate(e,a):i===aa&&(i=An));e.avail_in>0&&i===$r&&e.state.wrap>0&&A[e.next_in]!==0;)LA.inflateReset(e),i=LA.inflate(e,a);switch(i){case Kf:case aa:case An:case Df:return this.onEnd(i),this.ended=!0,!1}if(s=e.avail_out,e.next_out&&(e.avail_out===0||i===$r))if(this.options.to==="string"){let l=gt.utf8border(e.output,e.next_out),B=e.next_out-l,o=gt.buf2string(e.output,l);e.next_out=B,e.avail_out=r-B,B&&e.output.set(e.output.subarray(l,l+B),0),this.onData(o)}else this.onData(e.output.length===e.next_out?e.output:e.output.subarray(0,e.next_out));if(!(i===wt&&s===0)){if(i===$r)return i=LA.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,!0;if(e.avail_in===0)break}}return!0};vt.prototype.onData=function(A){this.chunks.push(A)};vt.prototype.onEnd=function(A){A===wt&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Ir.flattenChunks(this.chunks)),this.chunks=[],this.err=A,this.msg=this.strm.msg};function fi(A,t){const e=new vt(t);if(e.push(A),e.err)throw e.msg||oe[e.err];return e.result}function Sf(A,t){return t=t||{},t.raw=!0,fi(A,t)}var Tf=vt,Of=fi,Rf=Sf,Mf=fi,kf=ce,Gf={Inflate:Tf,inflate:Of,inflateRaw:Rf,ungzip:Mf,constants:kf};const{Deflate:Nf,deflate:Vf,deflateRaw:Pf,gzip:Xf}=Zl,{Inflate:Jf,inflate:Wf,inflateRaw:Zf,ungzip:Yf}=Gf;var zf=Nf,qf=Vf,jf=Pf,$f=Xf,Ac=Jf,ec=Wf,tc=Zf,rc=Yf,nc=ce,Ps={Deflate:zf,deflate:qf,deflateRaw:jf,gzip:$f,Inflate:Ac,inflate:ec,inflateRaw:tc,ungzip:rc,constants:nc};function cr(A){const t=JSON.stringify(A),e=Ps.deflate(t);return btoa(String.fromCharCode.apply(null,e))}function FC(A){const t=atob(A),e=new Uint8Array(t.length);for(let r=0;r{const{isWall:A}=Ut(),t=ye([]);function e(B){t.splice(0,t.length,...B)}function r(B){const o=t.findIndex(c=>ni(c,B));o>-1&&t.splice(o,1)}function n({top:B,left:o}){const c=t.find(u=>u.top===B&&u.left===o),f={top:B,left:o-1};return A(f)||l(f)?!1:(c&&(c.left-=1),!0)}function i({top:B,left:o}){const c=t.find(u=>u.top===B&&u.left===o),f={top:B,left:o+1};return A(f)||l(f)?!1:(c&&(c.left+=1),!0)}function a({top:B,left:o}){const c=t.find(u=>u.top===B&&u.left===o),f={top:B-1,left:o};return A(f)||l(f)?!1:(c&&(c.top-=1),!0)}function s({top:B,left:o}){const c=t.find(u=>u.top===B&&u.left===o),f={top:B+1,left:o};return A(f)||l(f)?!1:(c&&(c.top+=1),!0)}function l({top:B,left:o}){return t.find(c=>c.top===B&&c.left===o)}return{positions:t,setup:e,remove:r,moveLeft:n,moveRight:i,moveUp:a,moveDown:s,isMine:l}}),yr=dt("player",()=>{const{isWall:A}=Ut(),{isMine:t,moveLeft:e,moveRight:r,moveUp:n,moveDown:i}=_r(),a=ye({top:-1,left:-1});function s(Q){Object.assign(a,Q),g()}function l(){const Q={top:a.top,left:a.left-1};if(A(Q))return;let w=!0;t(Q)&&(w=e(Q)),w&&(a.left-=1)}function B(){const Q={top:a.top,left:a.left+1};if(A(Q))return;let w=!0;t(Q)&&(w=r(Q)),w&&(a.left+=1)}function o(){const Q={top:a.top-1,left:a.left};if(A(Q))return;let w=!0;t(Q)&&(w=n(Q)),w&&(a.top-=1)}function c(){const Q={top:a.top+1,left:a.left};if(A(Q))return;let w=!0;t(Q)&&(w=i(Q)),w&&(a.top+=1)}const f=ye([]);function u(Q){f.push(Q)}function g(){f.splice(0,f.length)}return{position:a,steps:f,pushStep:u,setup:s,moveLeft:l,moveRight:B,moveUp:o,moveDown:c}}),ci=dt("boxes",()=>{const A=ye([]);function t(r){A.splice(0,A.length,...r)}function e(r){const n=A.findIndex(i=>ni(i,r));n>-1&&A.splice(n,1)}return{positions:A,setup:t,remove:e}}),ur=20;function ic(A){return as(()=>({top:`${A.top*ur}px`,left:`${A.left*ur}px`}))}function Xs(A){return as(()=>A.map(t=>({top:`${t.top*ur}px`,left:`${t.left*ur}px`})))}/*! * html2canvas 1.4.1 * Copyright (c) 2022 Niklas von Hertzen * Released under MIT License diff --git a/docs/assets/_...all_-6d5f2e61.js b/docs/assets/_...all_-1430a9fb.js similarity index 60% rename from docs/assets/_...all_-6d5f2e61.js rename to docs/assets/_...all_-1430a9fb.js index 75015af..9b40a1f 100644 --- a/docs/assets/_...all_-6d5f2e61.js +++ b/docs/assets/_...all_-1430a9fb.js @@ -1 +1 @@ -import{m as e,c,o}from"./index-35f8c1f4.js";const _={};function n(t,r){return o(),c("div",null," Not Found ")}const s=e(_,[["render",n]]);export{s as default}; +import{m as e,c,o}from"./index-d9ea42c0.js";const _={};function n(t,r){return o(),c("div",null," Not Found ")}const s=e(_,[["render",n]]);export{s as default}; diff --git a/docs/assets/edit-02d5cd50.js b/docs/assets/edit-1c6f7c39.js similarity index 93% rename from docs/assets/edit-02d5cd50.js rename to docs/assets/edit-1c6f7c39.js index 7a76f3d..31f1d0d 100644 --- a/docs/assets/edit-02d5cd50.js +++ b/docs/assets/edit-1c6f7c39.js @@ -1 +1 @@ -import{k as R,u as T,b as U,a as W,l as D,s as G,m as q,W as I,M as L,B as Y,N as z,P as F,n as H,j as J,o as K,p as Q,f as X,g as Z,_ as ee}from"./Player.vue_vue_type_script_setup_true_lang-91e3e424.js";import{d as te,r as b,e as ne,w as h,p as oe,o as se,c as ie,j as re,a as n,k as x,q as k,h as a,s as w,g as f,i as le}from"./index-35f8c1f4.js";const ae={"m-auto":"","w-fit":"",p4:""},pe={flex:"","justify-center":"",p2:""},ce={flex:"","place-content-between":""},ue=n("label",{for:"rows"},"rows: ",-1),de={"ml-2":"",flex:"","place-content-between":""},fe=n("label",{for:"cols"},"cols: ",-1),me={flex:"","place-content-around":"","items-center":"","py-2":""},_e=n("img",{src:K},null,-1),ge=[_e],ve=n("div",{h4:"",w4:"",border:"~ rounded gray-200 dark:gray-400"},null,-1),ye=[ve],be=n("img",{src:Q},null,-1),he=[be],E=!0,Ee=te({__name:"edit",setup(xe){const c=b(8),p=b(8),{map:r,setup:m}=R(),{position:_,setup:g}=T(),{positions:o,setup:v}=U(),{positions:s,setup:y}=W(),C=ne(()=>`/?game=${D()}`),u={top:-1,left:-1};G({map:Array.from({length:c.value},()=>Array.from({length:p.value},()=>0)),mines:[],boxes:[],player:Object.assign({},u)}),h(c,(t,e)=>{e0)),m(r)):(r.pop(),m(r),M(t))});function M(t){_.top===t&&g(Object.assign({},u));for(let e=0;e{ei.push(0)),m(r)):(r.forEach(i=>i.pop()),m(r),$(t))});function $(t){_.left===t&&g(Object.assign({},u));for(let e=0;e{const i=H,A=X,N=Z,V=ee,O=J;return se(),ie("div",ae,[re(" EDIT MAP "),n("div",pe,[n("div",ce,[ue,x(n("input",{id:"rows","onUpdate:modelValue":e[0]||(e[0]=l=>w(c)?c.value=l:null),type:"number","ml-2":"","w-12":"",p0:"",text:"center",bg:"transparent",border:"~ rounded gray-200 dark:gray-700",outline:"none active:none"},null,512),[[k,a(c)]])]),n("div",de,[fe,x(n("input",{id:"cols","onUpdate:modelValue":e[1]||(e[1]=l=>w(p)?p.value=l:null),type:"number","ml-2":"","w-12":"",p0:"",text:"center",bg:"transparent",border:"~ rounded gray-200 dark:gray-700",outline:"none active:none"},null,512),[[k,a(p)]])])]),n("div",me,[f(i,{onClick:e[2]||(e[2]=l=>d(a(I)))}),n("div",{onClick:e[3]||(e[3]=l=>d(a(L)))},ge),n("div",{h5:"",w5:"",flex:"","items-center":"","justify-center":"",border:"~ rounded gray-200 dark:gray-400",onClick:e[4]||(e[4]=l=>d(a(Y)))},ye),n("div",{title:"clear",h5:"",w5:"",border:"~ rounded gray-200 dark:gray-400",onClick:e[5]||(e[5]=l=>d(a(z)))}),n("div",{onClick:e[6]||(e[6]=l=>d(a(F)))},he)]),f(O,{"is-edit":E},{default:le(()=>[f(A),f(N),f(V,{"is-edit":E})]),_:1}),n("div",{"mt-4":"",btn:"",onClick:j}," GO PLAY ")])}}});export{Ee as default}; +import{k as R,u as T,b as U,a as W,l as D,s as G,m as q,W as I,M as L,B as Y,N as z,P as F,n as H,j as J,o as K,p as Q,f as X,g as Z,_ as ee}from"./Player.vue_vue_type_script_setup_true_lang-128d4d7c.js";import{d as te,r as b,e as ne,w as h,p as oe,o as se,c as ie,j as re,a as n,k as x,q as k,h as a,s as w,g as f,i as le}from"./index-d9ea42c0.js";const ae={"m-auto":"","w-fit":"",p4:""},pe={flex:"","justify-center":"",p2:""},ce={flex:"","place-content-between":""},ue=n("label",{for:"rows"},"rows: ",-1),de={"ml-2":"",flex:"","place-content-between":""},fe=n("label",{for:"cols"},"cols: ",-1),me={flex:"","place-content-around":"","items-center":"","py-2":""},_e=n("img",{src:K},null,-1),ge=[_e],ve=n("div",{h4:"",w4:"",border:"~ rounded gray-200 dark:gray-400"},null,-1),ye=[ve],be=n("img",{src:Q},null,-1),he=[be],E=!0,Ee=te({__name:"edit",setup(xe){const c=b(8),p=b(8),{map:r,setup:m}=R(),{position:_,setup:g}=T(),{positions:o,setup:v}=U(),{positions:s,setup:y}=W(),C=ne(()=>`/?game=${D()}`),u={top:-1,left:-1};G({map:Array.from({length:c.value},()=>Array.from({length:p.value},()=>0)),mines:[],boxes:[],player:Object.assign({},u)}),h(c,(t,e)=>{e0)),m(r)):(r.pop(),m(r),M(t))});function M(t){_.top===t&&g(Object.assign({},u));for(let e=0;e{ei.push(0)),m(r)):(r.forEach(i=>i.pop()),m(r),$(t))});function $(t){_.left===t&&g(Object.assign({},u));for(let e=0;e{const i=H,A=X,N=Z,V=ee,O=J;return se(),ie("div",ae,[re(" EDIT MAP "),n("div",pe,[n("div",ce,[ue,x(n("input",{id:"rows","onUpdate:modelValue":e[0]||(e[0]=l=>w(c)?c.value=l:null),type:"number","ml-2":"","w-12":"",p0:"",text:"center",bg:"transparent",border:"~ rounded gray-200 dark:gray-700",outline:"none active:none"},null,512),[[k,a(c)]])]),n("div",de,[fe,x(n("input",{id:"cols","onUpdate:modelValue":e[1]||(e[1]=l=>w(p)?p.value=l:null),type:"number","ml-2":"","w-12":"",p0:"",text:"center",bg:"transparent",border:"~ rounded gray-200 dark:gray-700",outline:"none active:none"},null,512),[[k,a(p)]])])]),n("div",me,[f(i,{onClick:e[2]||(e[2]=l=>d(a(I)))}),n("div",{onClick:e[3]||(e[3]=l=>d(a(L)))},ge),n("div",{h5:"",w5:"",flex:"","items-center":"","justify-center":"",border:"~ rounded gray-200 dark:gray-400",onClick:e[4]||(e[4]=l=>d(a(Y)))},ye),n("div",{title:"clear",h5:"",w5:"",border:"~ rounded gray-200 dark:gray-400",onClick:e[5]||(e[5]=l=>d(a(z)))}),n("div",{onClick:e[6]||(e[6]=l=>d(a(F)))},he)]),f(O,{"is-edit":E},{default:le(()=>[f(A),f(N),f(V,{"is-edit":E})]),_:1}),n("div",{"mt-4":"",btn:"",onClick:j}," GO PLAY ")])}}});export{Ee as default}; diff --git a/docs/assets/index-35f8c1f4.js b/docs/assets/index-d9ea42c0.js similarity index 98% rename from docs/assets/index-35f8c1f4.js rename to docs/assets/index-d9ea42c0.js index 39dbe04..3a479cc 100644 --- a/docs/assets/index-35f8c1f4.js +++ b/docs/assets/index-d9ea42c0.js @@ -18,8 +18,8 @@ * vue-router v4.3.0 * (c) 2024 Eduardo San Martin Morote * @license MIT - */const wt=typeof document<"u";function qc(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Z=Object.assign;function Zn(e,t){const n={};for(const r in t){const s=t[r];n[r]=Fe(s)?s.map(e):e(s)}return n}const Wt=()=>{},Fe=Array.isArray,Zo=/#/g,zc=/&/g,Gc=/\//g,Yc=/=/g,Jc=/\?/g,ei=/\+/g,Qc=/%5B/g,Xc=/%5D/g,ti=/%5E/g,Zc=/%60/g,ni=/%7B/g,eu=/%7C/g,ri=/%7D/g,tu=/%20/g;function Vr(e){return encodeURI(""+e).replace(eu,"|").replace(Qc,"[").replace(Xc,"]")}function nu(e){return Vr(e).replace(ni,"{").replace(ri,"}").replace(ti,"^")}function hr(e){return Vr(e).replace(ei,"%2B").replace(tu,"+").replace(Zo,"%23").replace(zc,"%26").replace(Zc,"`").replace(ni,"{").replace(ri,"}").replace(ti,"^")}function ru(e){return hr(e).replace(Yc,"%3D")}function su(e){return Vr(e).replace(Zo,"%23").replace(Jc,"%3F")}function ou(e){return e==null?"":su(e).replace(Gc,"%2F")}function Xt(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const iu=/\/$/,lu=e=>e.replace(iu,"");function er(e,t,n="/"){let r,s={},o="",i="";const l=t.indexOf("#");let c=t.indexOf("?");return l=0&&(c=-1),c>-1&&(r=t.slice(0,c),o=t.slice(c+1,l>-1?l:t.length),s=e(o)),l>-1&&(r=r||t.slice(0,l),i=t.slice(l,t.length)),r=au(r??t,n),{fullPath:r+(o&&"?")+o+i,path:r,query:s,hash:Xt(i)}}function cu(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function As(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function uu(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&Ot(t.matched[r],n.matched[s])&&si(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ot(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function si(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!fu(e[n],t[n]))return!1;return!0}function fu(e,t){return Fe(e)?Os(e,t):Fe(t)?Os(t,e):e===t}function Os(e,t){return Fe(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function au(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let o=n.length-1,i,l;for(i=0;i1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(i).join("/")}var Zt;(function(e){e.pop="pop",e.push="push"})(Zt||(Zt={}));var qt;(function(e){e.back="back",e.forward="forward",e.unknown=""})(qt||(qt={}));function du(e){if(!e)if(wt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),lu(e)}const hu=/^[^#]+#/;function pu(e,t){return e.replace(hu,"#")+t}function gu(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Vn=()=>({left:window.scrollX,top:window.scrollY});function mu(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=gu(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Ms(e,t){return(history.state?history.state.position-t:-1)+e}const pr=new Map;function _u(e,t){pr.set(e,t)}function yu(e){const t=pr.get(e);return pr.delete(e),t}let vu=()=>location.protocol+"//"+location.host;function oi(e,t){const{pathname:n,search:r,hash:s}=t,o=e.indexOf("#");if(o>-1){let l=s.includes(e.slice(o))?e.slice(o).length:1,c=s.slice(l);return c[0]!=="/"&&(c="/"+c),As(c,"")}return As(n,e)+r+s}function bu(e,t,n,r){let s=[],o=[],i=null;const l=({state:p})=>{const m=oi(e,location),S=n.value,A=t.value;let I=0;if(p){if(n.value=m,t.value=p,i&&i===S){i=null;return}I=A?p.position-A.position:0}else r(m);s.forEach(O=>{O(n.value,S,{delta:I,type:Zt.pop,direction:I?I>0?qt.forward:qt.back:qt.unknown})})};function c(){i=n.value}function a(p){s.push(p);const m=()=>{const S=s.indexOf(p);S>-1&&s.splice(S,1)};return o.push(m),m}function u(){const{history:p}=window;p.state&&p.replaceState(Z({},p.state,{scroll:Vn()}),"")}function h(){for(const p of o)p();o=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:c,listen:a,destroy:h}}function Ts(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?Vn():null}}function wu(e){const{history:t,location:n}=window,r={value:oi(e,n)},s={value:t.state};s.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(c,a,u){const h=e.indexOf("#"),p=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+c:vu()+e+c;try{t[u?"replaceState":"pushState"](a,"",p),s.value=a}catch(m){console.error(m),n[u?"replace":"assign"](p)}}function i(c,a){const u=Z({},t.state,Ts(s.value.back,c,s.value.forward,!0),a,{position:s.value.position});o(c,u,!0),r.value=c}function l(c,a){const u=Z({},s.value,t.state,{forward:c,scroll:Vn()});o(u.current,u,!0);const h=Z({},Ts(r.value,c,null),{position:u.position+1},a);o(c,h,!1),r.value=c}return{location:r,state:s,push:l,replace:i}}function Eu(e){e=du(e);const t=wu(e),n=bu(e,t.state,t.location,t.replace);function r(o,i=!0){i||n.pauseListeners(),history.go(o)}const s=Z({location:"",base:e,go:r,createHref:pu.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function Su(e){return typeof e=="string"||e&&typeof e=="object"}function ii(e){return typeof e=="string"||typeof e=="symbol"}const Ge={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},li=Symbol("");var Is;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Is||(Is={}));function Mt(e,t){return Z(new Error,{type:e,[li]:!0},t)}function Ue(e,t){return e instanceof Error&&li in e&&(t==null||!!(e.type&t))}const Ls="[^/]+?",xu={sensitive:!1,strict:!1,start:!0,end:!0},Ru=/[.+*?^${}()[\]/\\]/g;function Cu(e,t){const n=Z({},xu,t),r=[];let s=n.start?"^":"";const o=[];for(const a of e){const u=a.length?[]:[90];n.strict&&!a.length&&(s+="/");for(let h=0;ht.length?t.length===1&&t[0]===40+40?1:-1:0}function Au(e,t){let n=0;const r=e.score,s=t.score;for(;n0&&t[t.length-1]<0}const Ou={type:0,value:""},Mu=/[a-zA-Z0-9_]/;function Tu(e){if(!e)return[[]];if(e==="/")return[[Ou]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${a}": ${m}`)}let n=0,r=n;const s=[];let o;function i(){o&&s.push(o),o=[]}let l=0,c,a="",u="";function h(){a&&(n===0?o.push({type:0,value:a}):n===1||n===2||n===3?(o.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${a}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:a,regexp:u,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),a="")}function p(){a+=c}for(;l{i(R)}:Wt}function i(u){if(ii(u)){const h=r.get(u);h&&(r.delete(u),n.splice(n.indexOf(h),1),h.children.forEach(i),h.alias.forEach(i))}else{const h=n.indexOf(u);h>-1&&(n.splice(h,1),u.record.name&&r.delete(u.record.name),u.children.forEach(i),u.alias.forEach(i))}}function l(){return n}function c(u){let h=0;for(;h=0&&(u.record.path!==n[h].record.path||!ci(u,n[h]));)h++;n.splice(h,0,u),u.record.name&&!$s(u)&&r.set(u.record.name,u)}function a(u,h){let p,m={},S,A;if("name"in u&&u.name){if(p=r.get(u.name),!p)throw Mt(1,{location:u});A=p.record.name,m=Z(Ns(h.params,p.keys.filter(R=>!R.optional).concat(p.parent?p.parent.keys.filter(R=>R.optional):[]).map(R=>R.name)),u.params&&Ns(u.params,p.keys.map(R=>R.name))),S=p.stringify(m)}else if(u.path!=null)S=u.path,p=n.find(R=>R.re.test(S)),p&&(m=p.parse(S),A=p.record.name);else{if(p=h.name?r.get(h.name):n.find(R=>R.re.test(h.path)),!p)throw Mt(1,{location:u,currentLocation:h});A=p.record.name,m=Z({},h.params,u.params),S=p.stringify(m)}const I=[];let O=p;for(;O;)I.unshift(O.record),O=O.parent;return{name:A,path:S,params:m,matched:I,meta:$u(I)}}return e.forEach(u=>o(u)),{addRoute:o,resolve:a,removeRoute:i,getRoutes:l,getRecordMatcher:s}}function Ns(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Fu(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Nu(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Nu(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function $s(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function $u(e){return e.reduce((t,n)=>Z(t,n.meta),{})}function js(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function ci(e,t){return t.children.some(n=>n===e||ci(e,n))}function ju(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;so&&hr(o)):[r&&hr(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Du(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Fe(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const ku=Symbol(""),ks=Symbol(""),Bn=Symbol(""),Br=Symbol(""),gr=Symbol("");function Dt(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Ze(e,t,n,r,s,o=i=>i()){const i=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((l,c)=>{const a=p=>{p===!1?c(Mt(4,{from:n,to:t})):p instanceof Error?c(p):Su(p)?c(Mt(2,{from:t,to:p})):(i&&r.enterCallbacks[s]===i&&typeof p=="function"&&i.push(p),l())},u=o(()=>e.call(r&&r.instances[s],t,n,a));let h=Promise.resolve(u);e.length<3&&(h=h.then(a)),h.catch(p=>c(p))})}function tr(e,t,n,r,s=o=>o()){const o=[];for(const i of e)for(const l in i.components){let c=i.components[l];if(!(t!=="beforeRouteEnter"&&!i.instances[l]))if(Hu(c)){const u=(c.__vccOpts||c)[t];u&&o.push(Ze(u,n,r,i,l,s))}else{let a=c();o.push(()=>a.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${l}" at "${i.path}"`));const h=qc(u)?u.default:u;i.components[l]=h;const m=(h.__vccOpts||h)[t];return m&&Ze(m,n,r,i,l,s)()}))}}return o}function Hu(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Hs(e){const t=Ae(Bn),n=Ae(Br),r=ue(()=>t.resolve(nt(e.to))),s=ue(()=>{const{matched:c}=r.value,{length:a}=c,u=c[a-1],h=n.matched;if(!u||!h.length)return-1;const p=h.findIndex(Ot.bind(null,u));if(p>-1)return p;const m=Vs(c[a-2]);return a>1&&Vs(u)===m&&h[h.length-1].path!==m?h.findIndex(Ot.bind(null,c[a-2])):p}),o=ue(()=>s.value>-1&&Ku(n.params,r.value.params)),i=ue(()=>s.value>-1&&s.value===n.matched.length-1&&si(n.params,r.value.params));function l(c={}){return Uu(c)?t[nt(e.replace)?"replace":"push"](nt(e.to)).catch(Wt):Promise.resolve()}return{route:r,href:ue(()=>r.value.href),isActive:o,isExactActive:i,navigate:l}}const Vu=To({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Hs,setup(e,{slots:t}){const n=tn(Hs(e)),{options:r}=Ae(Bn),s=ue(()=>({[Bs(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Bs(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:Qo("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},o)}}}),Bu=Vu;function Uu(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Ku(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!Fe(s)||s.length!==r.length||r.some((o,i)=>o!==s[i]))return!1}return!0}function Vs(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Bs=(e,t,n)=>e??t??n,Wu=To({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Ae(gr),s=ue(()=>e.route||r.value),o=Ae(ks,0),i=ue(()=>{let a=nt(o);const{matched:u}=s.value;let h;for(;(h=u[a])&&!h.components;)a++;return a}),l=ue(()=>s.value.matched[i.value]);mn(ks,ue(()=>i.value+1)),mn(ku,l),mn(gr,s);const c=pe();return He(()=>[c.value,l.value,e.name],([a,u,h],[p,m,S])=>{u&&(u.instances[h]=a,m&&m!==u&&a&&a===p&&(u.leaveGuards.size||(u.leaveGuards=m.leaveGuards),u.updateGuards.size||(u.updateGuards=m.updateGuards))),a&&u&&(!m||!Ot(u,m)||!p)&&(u.enterCallbacks[h]||[]).forEach(A=>A(a))},{flush:"post"}),()=>{const a=s.value,u=e.name,h=l.value,p=h&&h.components[u];if(!p)return Us(n.default,{Component:p,route:a});const m=h.props[u],S=m?m===!0?a.params:typeof m=="function"?m(a):m:null,I=Qo(p,Z({},S,t,{onVnodeUnmounted:O=>{O.component.isUnmounted&&(h.instances[u]=null)},ref:c}));return Us(n.default,{Component:I,route:a})||I}}});function Us(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const qu=Wu;function zu(e){const t=Lu(e.routes,e),n=e.parseQuery||ju,r=e.stringifyQuery||Ds,s=e.history,o=Dt(),i=Dt(),l=Dt(),c=vo(Ge);let a=Ge;wt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Zn.bind(null,y=>""+y),h=Zn.bind(null,ou),p=Zn.bind(null,Xt);function m(y,M){let C,F;return ii(y)?(C=t.getRecordMatcher(y),F=M):F=y,t.addRoute(F,C)}function S(y){const M=t.getRecordMatcher(y);M&&t.removeRoute(M)}function A(){return t.getRoutes().map(y=>y.record)}function I(y){return!!t.getRecordMatcher(y)}function O(y,M){if(M=Z({},M||c.value),typeof y=="string"){const d=er(n,y,M.path),g=t.resolve({path:d.path},M),v=s.createHref(d.fullPath);return Z(d,g,{params:p(g.params),hash:Xt(d.hash),redirectedFrom:void 0,href:v})}let C;if(y.path!=null)C=Z({},y,{path:er(n,y.path,M.path).path});else{const d=Z({},y.params);for(const g in d)d[g]==null&&delete d[g];C=Z({},y,{params:h(d)}),M.params=h(M.params)}const F=t.resolve(C,M),X=y.hash||"";F.params=u(p(F.params));const oe=cu(r,Z({},y,{hash:nu(X),path:F.path})),f=s.createHref(oe);return Z({fullPath:oe,hash:X,query:r===Ds?Du(y.query):y.query||{}},F,{redirectedFrom:void 0,href:f})}function R(y){return typeof y=="string"?er(n,y,c.value.path):Z({},y)}function L(y,M){if(a!==y)return Mt(8,{from:M,to:y})}function j(y){return ee(y)}function K(y){return j(Z(R(y),{replace:!0}))}function k(y){const M=y.matched[y.matched.length-1];if(M&&M.redirect){const{redirect:C}=M;let F=typeof C=="function"?C(y):C;return typeof F=="string"&&(F=F.includes("?")||F.includes("#")?F=R(F):{path:F},F.params={}),Z({query:y.query,hash:y.hash,params:F.path!=null?{}:y.params},F)}}function ee(y,M){const C=a=O(y),F=c.value,X=y.state,oe=y.force,f=y.replace===!0,d=k(C);if(d)return ee(Z(R(d),{state:typeof d=="object"?Z({},X,d.state):X,force:oe,replace:f}),M||C);const g=C;g.redirectedFrom=M;let v;return!oe&&uu(r,F,C)&&(v=Mt(16,{to:g,from:F}),Ne(F,F,!0,!1)),(v?Promise.resolve(v):N(g,F)).catch(_=>Ue(_)?Ue(_,2)?_:qe(_):Q(_,g,F)).then(_=>{if(_){if(Ue(_,2))return ee(Z({replace:f},R(_.to),{state:typeof _.to=="object"?Z({},X,_.to.state):X,force:oe}),M||g)}else _=ce(g,F,!0,f,X);return Y(g,F,_),_})}function H(y,M){const C=L(y,M);return C?Promise.reject(C):Promise.resolve()}function W(y){const M=_t.values().next().value;return M&&typeof M.runWithContext=="function"?M.runWithContext(y):y()}function N(y,M){let C;const[F,X,oe]=Gu(y,M);C=tr(F.reverse(),"beforeRouteLeave",y,M);for(const d of F)d.leaveGuards.forEach(g=>{C.push(Ze(g,y,M))});const f=H.bind(null,y,M);return C.push(f),me(C).then(()=>{C=[];for(const d of o.list())C.push(Ze(d,y,M));return C.push(f),me(C)}).then(()=>{C=tr(X,"beforeRouteUpdate",y,M);for(const d of X)d.updateGuards.forEach(g=>{C.push(Ze(g,y,M))});return C.push(f),me(C)}).then(()=>{C=[];for(const d of oe)if(d.beforeEnter)if(Fe(d.beforeEnter))for(const g of d.beforeEnter)C.push(Ze(g,y,M));else C.push(Ze(d.beforeEnter,y,M));return C.push(f),me(C)}).then(()=>(y.matched.forEach(d=>d.enterCallbacks={}),C=tr(oe,"beforeRouteEnter",y,M,W),C.push(f),me(C))).then(()=>{C=[];for(const d of i.list())C.push(Ze(d,y,M));return C.push(f),me(C)}).catch(d=>Ue(d,8)?d:Promise.reject(d))}function Y(y,M,C){l.list().forEach(F=>W(()=>F(y,M,C)))}function ce(y,M,C,F,X){const oe=L(y,M);if(oe)return oe;const f=M===Ge,d=wt?history.state:{};C&&(F||f?s.replace(y.fullPath,Z({scroll:f&&d&&d.scroll},X)):s.push(y.fullPath,X)),c.value=y,Ne(y,M,C,f),qe()}let Ce;function ot(){Ce||(Ce=s.listen((y,M,C)=>{if(!on.listening)return;const F=O(y),X=k(F);if(X){ee(Z(X,{replace:!0}),F).catch(Wt);return}a=F;const oe=c.value;wt&&_u(Ms(oe.fullPath,C.delta),Vn()),N(F,oe).catch(f=>Ue(f,12)?f:Ue(f,2)?(ee(f.to,F).then(d=>{Ue(d,20)&&!C.delta&&C.type===Zt.pop&&s.go(-1,!1)}).catch(Wt),Promise.reject()):(C.delta&&s.go(-C.delta,!1),Q(f,F,oe))).then(f=>{f=f||ce(F,oe,!1),f&&(C.delta&&!Ue(f,8)?s.go(-C.delta,!1):C.type===Zt.pop&&Ue(f,20)&&s.go(-1,!1)),Y(F,oe,f)}).catch(Wt)}))}let Pe=Dt(),J=Dt(),te;function Q(y,M,C){qe(y);const F=J.list();return F.length?F.forEach(X=>X(y,M,C)):console.error(y),Promise.reject(y)}function Be(){return te&&c.value!==Ge?Promise.resolve():new Promise((y,M)=>{Pe.add([y,M])})}function qe(y){return te||(te=!y,ot(),Pe.list().forEach(([M,C])=>y?C(y):M()),Pe.reset()),y}function Ne(y,M,C,F){const{scrollBehavior:X}=e;if(!wt||!X)return Promise.resolve();const oe=!C&&yu(Ms(y.fullPath,0))||(F||!C)&&history.state&&history.state.scroll||null;return nn().then(()=>X(y,M,oe)).then(f=>f&&mu(f)).catch(f=>Q(f,y,M))}const be=y=>s.go(y);let mt;const _t=new Set,on={currentRoute:c,listening:!0,addRoute:m,removeRoute:S,hasRoute:I,getRoutes:A,resolve:O,options:e,push:j,replace:K,go:be,back:()=>be(-1),forward:()=>be(1),beforeEach:o.add,beforeResolve:i.add,afterEach:l.add,onError:J.add,isReady:Be,install(y){const M=this;y.component("RouterLink",Bu),y.component("RouterView",qu),y.config.globalProperties.$router=M,Object.defineProperty(y.config.globalProperties,"$route",{enumerable:!0,get:()=>nt(c)}),wt&&!mt&&c.value===Ge&&(mt=!0,j(s.location).catch(X=>{}));const C={};for(const X in Ge)Object.defineProperty(C,X,{get:()=>c.value[X],enumerable:!0});y.provide(Bn,M),y.provide(Br,mo(C)),y.provide(gr,c);const F=y.unmount;_t.add(y),y.unmount=function(){_t.delete(y),_t.size<1&&(a=Ge,Ce&&Ce(),Ce=null,c.value=Ge,mt=!1,te=!1),F()}}};function me(y){return y.reduce((M,C)=>M.then(()=>W(C)),Promise.resolve())}return on}function Gu(e,t){const n=[],r=[],s=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;iOt(a,l))?r.push(l):n.push(l));const c=e.matched[i];c&&(t.matched.find(a=>Ot(a,c))||s.push(c))}return[n,r,s]}function sa(){return Ae(Bn)}function oa(){return Ae(Br)}const Yu="modulepreload",Ju=function(e){return"/"+e},Ks={},Ur=function(t,n,r){if(!n||n.length===0)return t();const s=document.getElementsByTagName("link");return Promise.all(n.map(o=>{if(o=Ju(o),o in Ks)return;Ks[o]=!0;const i=o.endsWith(".css"),l=i?'[rel="stylesheet"]':"";if(!!r)for(let u=s.length-1;u>=0;u--){const h=s[u];if(h.href===o&&(!i||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${l}`))return;const a=document.createElement("link");if(a.rel=i?"stylesheet":Yu,i||(a.as="script",a.crossOrigin=""),a.href=o,document.head.appendChild(a),i)return new Promise((u,h)=>{a.addEventListener("load",u),a.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t()).catch(o=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o})},Qu=()=>Ur(()=>import("./Index-e426f46a.js"),["assets/Index-e426f46a.js","assets/Player.vue_vue_type_script_setup_true_lang-91e3e424.js"]),Xu=()=>Ur(()=>import("./edit-02d5cd50.js"),["assets/edit-02d5cd50.js","assets/Player.vue_vue_type_script_setup_true_lang-91e3e424.js"]),Zu=()=>Ur(()=>import("./_...all_-6d5f2e61.js"),[]),ef=[{name:"Index",path:"/",component:Qu,props:!0},{name:"edit",path:"/edit",component:Xu,props:!0},{name:"all",path:"/:all(.*)*",component:Zu,props:!0}];var tf=!1;/*! + */const wt=typeof document<"u";function qc(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Z=Object.assign;function Zn(e,t){const n={};for(const r in t){const s=t[r];n[r]=Fe(s)?s.map(e):e(s)}return n}const Wt=()=>{},Fe=Array.isArray,Zo=/#/g,zc=/&/g,Gc=/\//g,Yc=/=/g,Jc=/\?/g,ei=/\+/g,Qc=/%5B/g,Xc=/%5D/g,ti=/%5E/g,Zc=/%60/g,ni=/%7B/g,eu=/%7C/g,ri=/%7D/g,tu=/%20/g;function Vr(e){return encodeURI(""+e).replace(eu,"|").replace(Qc,"[").replace(Xc,"]")}function nu(e){return Vr(e).replace(ni,"{").replace(ri,"}").replace(ti,"^")}function hr(e){return Vr(e).replace(ei,"%2B").replace(tu,"+").replace(Zo,"%23").replace(zc,"%26").replace(Zc,"`").replace(ni,"{").replace(ri,"}").replace(ti,"^")}function ru(e){return hr(e).replace(Yc,"%3D")}function su(e){return Vr(e).replace(Zo,"%23").replace(Jc,"%3F")}function ou(e){return e==null?"":su(e).replace(Gc,"%2F")}function Xt(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const iu=/\/$/,lu=e=>e.replace(iu,"");function er(e,t,n="/"){let r,s={},o="",i="";const l=t.indexOf("#");let c=t.indexOf("?");return l=0&&(c=-1),c>-1&&(r=t.slice(0,c),o=t.slice(c+1,l>-1?l:t.length),s=e(o)),l>-1&&(r=r||t.slice(0,l),i=t.slice(l,t.length)),r=au(r??t,n),{fullPath:r+(o&&"?")+o+i,path:r,query:s,hash:Xt(i)}}function cu(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function As(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function uu(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&Ot(t.matched[r],n.matched[s])&&si(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ot(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function si(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!fu(e[n],t[n]))return!1;return!0}function fu(e,t){return Fe(e)?Os(e,t):Fe(t)?Os(t,e):e===t}function Os(e,t){return Fe(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function au(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let o=n.length-1,i,l;for(i=0;i1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(i).join("/")}var Zt;(function(e){e.pop="pop",e.push="push"})(Zt||(Zt={}));var qt;(function(e){e.back="back",e.forward="forward",e.unknown=""})(qt||(qt={}));function du(e){if(!e)if(wt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),lu(e)}const hu=/^[^#]+#/;function pu(e,t){return e.replace(hu,"#")+t}function gu(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Vn=()=>({left:window.scrollX,top:window.scrollY});function mu(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=gu(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Ms(e,t){return(history.state?history.state.position-t:-1)+e}const pr=new Map;function _u(e,t){pr.set(e,t)}function yu(e){const t=pr.get(e);return pr.delete(e),t}let vu=()=>location.protocol+"//"+location.host;function oi(e,t){const{pathname:n,search:r,hash:s}=t,o=e.indexOf("#");if(o>-1){let l=s.includes(e.slice(o))?e.slice(o).length:1,c=s.slice(l);return c[0]!=="/"&&(c="/"+c),As(c,"")}return As(n,e)+r+s}function bu(e,t,n,r){let s=[],o=[],i=null;const l=({state:p})=>{const m=oi(e,location),S=n.value,A=t.value;let I=0;if(p){if(n.value=m,t.value=p,i&&i===S){i=null;return}I=A?p.position-A.position:0}else r(m);s.forEach(O=>{O(n.value,S,{delta:I,type:Zt.pop,direction:I?I>0?qt.forward:qt.back:qt.unknown})})};function c(){i=n.value}function a(p){s.push(p);const m=()=>{const S=s.indexOf(p);S>-1&&s.splice(S,1)};return o.push(m),m}function u(){const{history:p}=window;p.state&&p.replaceState(Z({},p.state,{scroll:Vn()}),"")}function h(){for(const p of o)p();o=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:c,listen:a,destroy:h}}function Ts(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?Vn():null}}function wu(e){const{history:t,location:n}=window,r={value:oi(e,n)},s={value:t.state};s.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(c,a,u){const h=e.indexOf("#"),p=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+c:vu()+e+c;try{t[u?"replaceState":"pushState"](a,"",p),s.value=a}catch(m){console.error(m),n[u?"replace":"assign"](p)}}function i(c,a){const u=Z({},t.state,Ts(s.value.back,c,s.value.forward,!0),a,{position:s.value.position});o(c,u,!0),r.value=c}function l(c,a){const u=Z({},s.value,t.state,{forward:c,scroll:Vn()});o(u.current,u,!0);const h=Z({},Ts(r.value,c,null),{position:u.position+1},a);o(c,h,!1),r.value=c}return{location:r,state:s,push:l,replace:i}}function Eu(e){e=du(e);const t=wu(e),n=bu(e,t.state,t.location,t.replace);function r(o,i=!0){i||n.pauseListeners(),history.go(o)}const s=Z({location:"",base:e,go:r,createHref:pu.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function Su(e){return typeof e=="string"||e&&typeof e=="object"}function ii(e){return typeof e=="string"||typeof e=="symbol"}const Ge={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},li=Symbol("");var Is;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Is||(Is={}));function Mt(e,t){return Z(new Error,{type:e,[li]:!0},t)}function Ue(e,t){return e instanceof Error&&li in e&&(t==null||!!(e.type&t))}const Ls="[^/]+?",xu={sensitive:!1,strict:!1,start:!0,end:!0},Ru=/[.+*?^${}()[\]/\\]/g;function Cu(e,t){const n=Z({},xu,t),r=[];let s=n.start?"^":"";const o=[];for(const a of e){const u=a.length?[]:[90];n.strict&&!a.length&&(s+="/");for(let h=0;ht.length?t.length===1&&t[0]===40+40?1:-1:0}function Au(e,t){let n=0;const r=e.score,s=t.score;for(;n0&&t[t.length-1]<0}const Ou={type:0,value:""},Mu=/[a-zA-Z0-9_]/;function Tu(e){if(!e)return[[]];if(e==="/")return[[Ou]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${a}": ${m}`)}let n=0,r=n;const s=[];let o;function i(){o&&s.push(o),o=[]}let l=0,c,a="",u="";function h(){a&&(n===0?o.push({type:0,value:a}):n===1||n===2||n===3?(o.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${a}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:a,regexp:u,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),a="")}function p(){a+=c}for(;l{i(R)}:Wt}function i(u){if(ii(u)){const h=r.get(u);h&&(r.delete(u),n.splice(n.indexOf(h),1),h.children.forEach(i),h.alias.forEach(i))}else{const h=n.indexOf(u);h>-1&&(n.splice(h,1),u.record.name&&r.delete(u.record.name),u.children.forEach(i),u.alias.forEach(i))}}function l(){return n}function c(u){let h=0;for(;h=0&&(u.record.path!==n[h].record.path||!ci(u,n[h]));)h++;n.splice(h,0,u),u.record.name&&!$s(u)&&r.set(u.record.name,u)}function a(u,h){let p,m={},S,A;if("name"in u&&u.name){if(p=r.get(u.name),!p)throw Mt(1,{location:u});A=p.record.name,m=Z(Ns(h.params,p.keys.filter(R=>!R.optional).concat(p.parent?p.parent.keys.filter(R=>R.optional):[]).map(R=>R.name)),u.params&&Ns(u.params,p.keys.map(R=>R.name))),S=p.stringify(m)}else if(u.path!=null)S=u.path,p=n.find(R=>R.re.test(S)),p&&(m=p.parse(S),A=p.record.name);else{if(p=h.name?r.get(h.name):n.find(R=>R.re.test(h.path)),!p)throw Mt(1,{location:u,currentLocation:h});A=p.record.name,m=Z({},h.params,u.params),S=p.stringify(m)}const I=[];let O=p;for(;O;)I.unshift(O.record),O=O.parent;return{name:A,path:S,params:m,matched:I,meta:$u(I)}}return e.forEach(u=>o(u)),{addRoute:o,resolve:a,removeRoute:i,getRoutes:l,getRecordMatcher:s}}function Ns(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Fu(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Nu(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Nu(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function $s(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function $u(e){return e.reduce((t,n)=>Z(t,n.meta),{})}function js(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function ci(e,t){return t.children.some(n=>n===e||ci(e,n))}function ju(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;so&&hr(o)):[r&&hr(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Du(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Fe(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const ku=Symbol(""),ks=Symbol(""),Bn=Symbol(""),Br=Symbol(""),gr=Symbol("");function Dt(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Ze(e,t,n,r,s,o=i=>i()){const i=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((l,c)=>{const a=p=>{p===!1?c(Mt(4,{from:n,to:t})):p instanceof Error?c(p):Su(p)?c(Mt(2,{from:t,to:p})):(i&&r.enterCallbacks[s]===i&&typeof p=="function"&&i.push(p),l())},u=o(()=>e.call(r&&r.instances[s],t,n,a));let h=Promise.resolve(u);e.length<3&&(h=h.then(a)),h.catch(p=>c(p))})}function tr(e,t,n,r,s=o=>o()){const o=[];for(const i of e)for(const l in i.components){let c=i.components[l];if(!(t!=="beforeRouteEnter"&&!i.instances[l]))if(Hu(c)){const u=(c.__vccOpts||c)[t];u&&o.push(Ze(u,n,r,i,l,s))}else{let a=c();o.push(()=>a.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${l}" at "${i.path}"`));const h=qc(u)?u.default:u;i.components[l]=h;const m=(h.__vccOpts||h)[t];return m&&Ze(m,n,r,i,l,s)()}))}}return o}function Hu(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Hs(e){const t=Ae(Bn),n=Ae(Br),r=ue(()=>t.resolve(nt(e.to))),s=ue(()=>{const{matched:c}=r.value,{length:a}=c,u=c[a-1],h=n.matched;if(!u||!h.length)return-1;const p=h.findIndex(Ot.bind(null,u));if(p>-1)return p;const m=Vs(c[a-2]);return a>1&&Vs(u)===m&&h[h.length-1].path!==m?h.findIndex(Ot.bind(null,c[a-2])):p}),o=ue(()=>s.value>-1&&Ku(n.params,r.value.params)),i=ue(()=>s.value>-1&&s.value===n.matched.length-1&&si(n.params,r.value.params));function l(c={}){return Uu(c)?t[nt(e.replace)?"replace":"push"](nt(e.to)).catch(Wt):Promise.resolve()}return{route:r,href:ue(()=>r.value.href),isActive:o,isExactActive:i,navigate:l}}const Vu=To({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Hs,setup(e,{slots:t}){const n=tn(Hs(e)),{options:r}=Ae(Bn),s=ue(()=>({[Bs(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Bs(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:Qo("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},o)}}}),Bu=Vu;function Uu(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Ku(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!Fe(s)||s.length!==r.length||r.some((o,i)=>o!==s[i]))return!1}return!0}function Vs(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Bs=(e,t,n)=>e??t??n,Wu=To({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Ae(gr),s=ue(()=>e.route||r.value),o=Ae(ks,0),i=ue(()=>{let a=nt(o);const{matched:u}=s.value;let h;for(;(h=u[a])&&!h.components;)a++;return a}),l=ue(()=>s.value.matched[i.value]);mn(ks,ue(()=>i.value+1)),mn(ku,l),mn(gr,s);const c=pe();return He(()=>[c.value,l.value,e.name],([a,u,h],[p,m,S])=>{u&&(u.instances[h]=a,m&&m!==u&&a&&a===p&&(u.leaveGuards.size||(u.leaveGuards=m.leaveGuards),u.updateGuards.size||(u.updateGuards=m.updateGuards))),a&&u&&(!m||!Ot(u,m)||!p)&&(u.enterCallbacks[h]||[]).forEach(A=>A(a))},{flush:"post"}),()=>{const a=s.value,u=e.name,h=l.value,p=h&&h.components[u];if(!p)return Us(n.default,{Component:p,route:a});const m=h.props[u],S=m?m===!0?a.params:typeof m=="function"?m(a):m:null,I=Qo(p,Z({},S,t,{onVnodeUnmounted:O=>{O.component.isUnmounted&&(h.instances[u]=null)},ref:c}));return Us(n.default,{Component:I,route:a})||I}}});function Us(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const qu=Wu;function zu(e){const t=Lu(e.routes,e),n=e.parseQuery||ju,r=e.stringifyQuery||Ds,s=e.history,o=Dt(),i=Dt(),l=Dt(),c=vo(Ge);let a=Ge;wt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Zn.bind(null,y=>""+y),h=Zn.bind(null,ou),p=Zn.bind(null,Xt);function m(y,M){let C,F;return ii(y)?(C=t.getRecordMatcher(y),F=M):F=y,t.addRoute(F,C)}function S(y){const M=t.getRecordMatcher(y);M&&t.removeRoute(M)}function A(){return t.getRoutes().map(y=>y.record)}function I(y){return!!t.getRecordMatcher(y)}function O(y,M){if(M=Z({},M||c.value),typeof y=="string"){const d=er(n,y,M.path),g=t.resolve({path:d.path},M),v=s.createHref(d.fullPath);return Z(d,g,{params:p(g.params),hash:Xt(d.hash),redirectedFrom:void 0,href:v})}let C;if(y.path!=null)C=Z({},y,{path:er(n,y.path,M.path).path});else{const d=Z({},y.params);for(const g in d)d[g]==null&&delete d[g];C=Z({},y,{params:h(d)}),M.params=h(M.params)}const F=t.resolve(C,M),X=y.hash||"";F.params=u(p(F.params));const oe=cu(r,Z({},y,{hash:nu(X),path:F.path})),f=s.createHref(oe);return Z({fullPath:oe,hash:X,query:r===Ds?Du(y.query):y.query||{}},F,{redirectedFrom:void 0,href:f})}function R(y){return typeof y=="string"?er(n,y,c.value.path):Z({},y)}function L(y,M){if(a!==y)return Mt(8,{from:M,to:y})}function j(y){return ee(y)}function K(y){return j(Z(R(y),{replace:!0}))}function k(y){const M=y.matched[y.matched.length-1];if(M&&M.redirect){const{redirect:C}=M;let F=typeof C=="function"?C(y):C;return typeof F=="string"&&(F=F.includes("?")||F.includes("#")?F=R(F):{path:F},F.params={}),Z({query:y.query,hash:y.hash,params:F.path!=null?{}:y.params},F)}}function ee(y,M){const C=a=O(y),F=c.value,X=y.state,oe=y.force,f=y.replace===!0,d=k(C);if(d)return ee(Z(R(d),{state:typeof d=="object"?Z({},X,d.state):X,force:oe,replace:f}),M||C);const g=C;g.redirectedFrom=M;let v;return!oe&&uu(r,F,C)&&(v=Mt(16,{to:g,from:F}),Ne(F,F,!0,!1)),(v?Promise.resolve(v):N(g,F)).catch(_=>Ue(_)?Ue(_,2)?_:qe(_):Q(_,g,F)).then(_=>{if(_){if(Ue(_,2))return ee(Z({replace:f},R(_.to),{state:typeof _.to=="object"?Z({},X,_.to.state):X,force:oe}),M||g)}else _=ce(g,F,!0,f,X);return Y(g,F,_),_})}function H(y,M){const C=L(y,M);return C?Promise.reject(C):Promise.resolve()}function W(y){const M=_t.values().next().value;return M&&typeof M.runWithContext=="function"?M.runWithContext(y):y()}function N(y,M){let C;const[F,X,oe]=Gu(y,M);C=tr(F.reverse(),"beforeRouteLeave",y,M);for(const d of F)d.leaveGuards.forEach(g=>{C.push(Ze(g,y,M))});const f=H.bind(null,y,M);return C.push(f),me(C).then(()=>{C=[];for(const d of o.list())C.push(Ze(d,y,M));return C.push(f),me(C)}).then(()=>{C=tr(X,"beforeRouteUpdate",y,M);for(const d of X)d.updateGuards.forEach(g=>{C.push(Ze(g,y,M))});return C.push(f),me(C)}).then(()=>{C=[];for(const d of oe)if(d.beforeEnter)if(Fe(d.beforeEnter))for(const g of d.beforeEnter)C.push(Ze(g,y,M));else C.push(Ze(d.beforeEnter,y,M));return C.push(f),me(C)}).then(()=>(y.matched.forEach(d=>d.enterCallbacks={}),C=tr(oe,"beforeRouteEnter",y,M,W),C.push(f),me(C))).then(()=>{C=[];for(const d of i.list())C.push(Ze(d,y,M));return C.push(f),me(C)}).catch(d=>Ue(d,8)?d:Promise.reject(d))}function Y(y,M,C){l.list().forEach(F=>W(()=>F(y,M,C)))}function ce(y,M,C,F,X){const oe=L(y,M);if(oe)return oe;const f=M===Ge,d=wt?history.state:{};C&&(F||f?s.replace(y.fullPath,Z({scroll:f&&d&&d.scroll},X)):s.push(y.fullPath,X)),c.value=y,Ne(y,M,C,f),qe()}let Ce;function ot(){Ce||(Ce=s.listen((y,M,C)=>{if(!on.listening)return;const F=O(y),X=k(F);if(X){ee(Z(X,{replace:!0}),F).catch(Wt);return}a=F;const oe=c.value;wt&&_u(Ms(oe.fullPath,C.delta),Vn()),N(F,oe).catch(f=>Ue(f,12)?f:Ue(f,2)?(ee(f.to,F).then(d=>{Ue(d,20)&&!C.delta&&C.type===Zt.pop&&s.go(-1,!1)}).catch(Wt),Promise.reject()):(C.delta&&s.go(-C.delta,!1),Q(f,F,oe))).then(f=>{f=f||ce(F,oe,!1),f&&(C.delta&&!Ue(f,8)?s.go(-C.delta,!1):C.type===Zt.pop&&Ue(f,20)&&s.go(-1,!1)),Y(F,oe,f)}).catch(Wt)}))}let Pe=Dt(),J=Dt(),te;function Q(y,M,C){qe(y);const F=J.list();return F.length?F.forEach(X=>X(y,M,C)):console.error(y),Promise.reject(y)}function Be(){return te&&c.value!==Ge?Promise.resolve():new Promise((y,M)=>{Pe.add([y,M])})}function qe(y){return te||(te=!y,ot(),Pe.list().forEach(([M,C])=>y?C(y):M()),Pe.reset()),y}function Ne(y,M,C,F){const{scrollBehavior:X}=e;if(!wt||!X)return Promise.resolve();const oe=!C&&yu(Ms(y.fullPath,0))||(F||!C)&&history.state&&history.state.scroll||null;return nn().then(()=>X(y,M,oe)).then(f=>f&&mu(f)).catch(f=>Q(f,y,M))}const be=y=>s.go(y);let mt;const _t=new Set,on={currentRoute:c,listening:!0,addRoute:m,removeRoute:S,hasRoute:I,getRoutes:A,resolve:O,options:e,push:j,replace:K,go:be,back:()=>be(-1),forward:()=>be(1),beforeEach:o.add,beforeResolve:i.add,afterEach:l.add,onError:J.add,isReady:Be,install(y){const M=this;y.component("RouterLink",Bu),y.component("RouterView",qu),y.config.globalProperties.$router=M,Object.defineProperty(y.config.globalProperties,"$route",{enumerable:!0,get:()=>nt(c)}),wt&&!mt&&c.value===Ge&&(mt=!0,j(s.location).catch(X=>{}));const C={};for(const X in Ge)Object.defineProperty(C,X,{get:()=>c.value[X],enumerable:!0});y.provide(Bn,M),y.provide(Br,mo(C)),y.provide(gr,c);const F=y.unmount;_t.add(y),y.unmount=function(){_t.delete(y),_t.size<1&&(a=Ge,Ce&&Ce(),Ce=null,c.value=Ge,mt=!1,te=!1),F()}}};function me(y){return y.reduce((M,C)=>M.then(()=>W(C)),Promise.resolve())}return on}function Gu(e,t){const n=[],r=[],s=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;iOt(a,l))?r.push(l):n.push(l));const c=e.matched[i];c&&(t.matched.find(a=>Ot(a,c))||s.push(c))}return[n,r,s]}function sa(){return Ae(Bn)}function oa(){return Ae(Br)}const Yu="modulepreload",Ju=function(e,t){return new URL(e,t).href},Ks={},Ur=function(t,n,r){if(!n||n.length===0)return t();const s=document.getElementsByTagName("link");return Promise.all(n.map(o=>{if(o=Ju(o,r),o in Ks)return;Ks[o]=!0;const i=o.endsWith(".css"),l=i?'[rel="stylesheet"]':"";if(!!r)for(let u=s.length-1;u>=0;u--){const h=s[u];if(h.href===o&&(!i||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${l}`))return;const a=document.createElement("link");if(a.rel=i?"stylesheet":Yu,i||(a.as="script",a.crossOrigin=""),a.href=o,document.head.appendChild(a),i)return new Promise((u,h)=>{a.addEventListener("load",u),a.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t()).catch(o=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o})},Qu=()=>Ur(()=>import("./Index-18ae96dd.js"),["./Index-18ae96dd.js","./Player.vue_vue_type_script_setup_true_lang-128d4d7c.js"],import.meta.url),Xu=()=>Ur(()=>import("./edit-1c6f7c39.js"),["./edit-1c6f7c39.js","./Player.vue_vue_type_script_setup_true_lang-128d4d7c.js"],import.meta.url),Zu=()=>Ur(()=>import("./_...all_-1430a9fb.js"),[],import.meta.url),ef=[{name:"Index",path:"/",component:Qu,props:!0},{name:"edit",path:"/edit",component:Xu,props:!0},{name:"all",path:"/:all(.*)*",component:Zu,props:!0}];var tf=!1;/*! * pinia v2.1.7 * (c) 2023 Eduardo San Martin Morote * @license MIT - */let ui;const Un=e=>ui=e,fi=Symbol();function mr(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var zt;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(zt||(zt={}));function nf(){const e=no(!0),t=e.run(()=>pe({}));let n=[],r=[];const s=Ln({install(o){Un(s),s._a=o,o.provide(fi,s),o.config.globalProperties.$pinia=s,r.forEach(i=>n.push(i)),r=[]},use(o){return!this._a&&!tf?r.push(o):n.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const ai=()=>{};function Ws(e,t,n,r=ai){e.push(t);const s=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),r())};return!n&&xr()&&ro(s),s}function vt(e,...t){e.slice().forEach(n=>{n(...t)})}const rf=e=>e();function _r(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],s=e[n];mr(s)&&mr(r)&&e.hasOwnProperty(n)&&!le(r)&&!tt(r)?e[n]=_r(s,r):e[n]=r}return e}const sf=Symbol();function of(e){return!mr(e)||!e.hasOwnProperty(sf)}const{assign:Ye}=Object;function lf(e){return!!(le(e)&&e.effect)}function cf(e,t,n,r){const{state:s,actions:o,getters:i}=t,l=n.state.value[e];let c;function a(){l||(n.state.value[e]=s?s():{});const u=sl(n.state.value[e]);return Ye(u,o,Object.keys(i||{}).reduce((h,p)=>(h[p]=Ln(ue(()=>{Un(n);const m=n._s.get(e);return i[p].call(m,m)})),h),{}))}return c=di(e,a,t,n,r,!0),c}function di(e,t,n={},r,s,o){let i;const l=Ye({actions:{}},n),c={deep:!0};let a,u,h=[],p=[],m;const S=r.state.value[e];!o&&!S&&(r.state.value[e]={}),pe({});let A;function I(H){let W;a=u=!1,typeof H=="function"?(H(r.state.value[e]),W={type:zt.patchFunction,storeId:e,events:m}):(_r(r.state.value[e],H),W={type:zt.patchObject,payload:H,storeId:e,events:m});const N=A=Symbol();nn().then(()=>{A===N&&(a=!0)}),u=!0,vt(h,W,r.state.value[e])}const O=o?function(){const{state:W}=n,N=W?W():{};this.$patch(Y=>{Ye(Y,N)})}:ai;function R(){i.stop(),h=[],p=[],r._s.delete(e)}function L(H,W){return function(){Un(r);const N=Array.from(arguments),Y=[],ce=[];function Ce(J){Y.push(J)}function ot(J){ce.push(J)}vt(p,{args:N,name:H,store:K,after:Ce,onError:ot});let Pe;try{Pe=W.apply(this&&this.$id===e?this:K,N)}catch(J){throw vt(ce,J),J}return Pe instanceof Promise?Pe.then(J=>(vt(Y,J),J)).catch(J=>(vt(ce,J),Promise.reject(J))):(vt(Y,Pe),Pe)}}const j={_p:r,$id:e,$onAction:Ws.bind(null,p),$patch:I,$reset:O,$subscribe(H,W={}){const N=Ws(h,H,W.detached,()=>Y()),Y=i.run(()=>He(()=>r.state.value[e],ce=>{(W.flush==="sync"?u:a)&&H({storeId:e,type:zt.direct,events:m},ce)},Ye({},c,W)));return N},$dispose:R},K=tn(j);r._s.set(e,K);const ee=(r._a&&r._a.runWithContext||rf)(()=>r._e.run(()=>(i=no()).run(t)));for(const H in ee){const W=ee[H];if(le(W)&&!lf(W)||tt(W))o||(S&&of(W)&&(le(W)?W.value=S[H]:_r(W,S[H])),r.state.value[e][H]=W);else if(typeof W=="function"){const N=L(H,W);ee[H]=N,l.actions[H]=W}}return Ye(K,ee),Ye(G(K),ee),Object.defineProperty(K,"$state",{get:()=>r.state.value[e],set:H=>{I(W=>{Ye(W,H)})}}),r._p.forEach(H=>{Ye(K,i.run(()=>H({store:K,app:r._a,pinia:r,options:l})))}),S&&o&&n.hydrate&&n.hydrate(K.$state,S),a=!0,u=!0,K}function ia(e,t,n){let r,s;const o=typeof t=="function";typeof e=="string"?(r=e,s=o?n:t):(s=e,r=e.id);function i(l,c){const a=zl();return l=l||(a?Ae(fi,null):null),l&&Un(l),l=ui,l._s.has(r)||(o?di(r,t,s,l):cf(r,s,l)),l._s.get(r)}return i.$id=r,i}function Tt(e){return xr()?(ro(e),!0):!1}function Oe(e){return typeof e=="function"?e():nt(e)}const en=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const uf=Object.prototype.toString,ff=e=>uf.call(e)==="[object Object]",hi=()=>{};function af(e,t){function n(...r){return new Promise((s,o)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(s).catch(o)})}return n}const pi=e=>e();function df(e=pi){const t=pe(!0);function n(){t.value=!1}function r(){t.value=!0}const s=(...o)=>{t.value&&e(...o)};return{isActive:Ft(t),pause:n,resume:r,eventFilter:s}}function hf(e){let t;function n(){return t||(t=e()),t}return n.reset=async()=>{const r=t;t=void 0,r&&await r},n}function pf(e){return e||Go()}function gf(...e){if(e.length!==1)return ll(...e);const t=e[0];return typeof t=="function"?Ft(rl(()=>({get:t,set:hi}))):pe(t)}function mf(e,t,n={}){const{eventFilter:r=pi,...s}=n;return He(e,af(r,t),s)}function _f(e,t,n={}){const{eventFilter:r,...s}=n,{eventFilter:o,pause:i,resume:l,isActive:c}=df(r);return{stop:mf(e,t,{...s,eventFilter:o}),pause:i,resume:l,isActive:c}}function gi(e,t=!0,n){pf()?$r(e,n):t?e():nn(e)}const yf=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,vf=/[YMDHhms]o|\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|Z{1,2}|SSS/g;function bf(e,t,n,r){let s=e<12?"AM":"PM";return r&&(s=s.split("").reduce((o,i)=>o+=`${i}.`,"")),n?s.toLowerCase():s}function ct(e){const t=["th","st","nd","rd"],n=e%100;return e+(t[(n-20)%10]||t[n]||t[0])}function wf(e,t,n={}){var r;const s=e.getFullYear(),o=e.getMonth(),i=e.getDate(),l=e.getHours(),c=e.getMinutes(),a=e.getSeconds(),u=e.getMilliseconds(),h=e.getDay(),p=(r=n.customMeridiem)!=null?r:bf,m={Yo:()=>ct(s),YY:()=>String(s).slice(-2),YYYY:()=>s,M:()=>o+1,Mo:()=>ct(o+1),MM:()=>`${o+1}`.padStart(2,"0"),MMM:()=>e.toLocaleDateString(n.locales,{month:"short"}),MMMM:()=>e.toLocaleDateString(n.locales,{month:"long"}),D:()=>String(i),Do:()=>ct(i),DD:()=>`${i}`.padStart(2,"0"),H:()=>String(l),Ho:()=>ct(l),HH:()=>`${l}`.padStart(2,"0"),h:()=>`${l%12||12}`.padStart(1,"0"),ho:()=>ct(l%12||12),hh:()=>`${l%12||12}`.padStart(2,"0"),m:()=>String(c),mo:()=>ct(c),mm:()=>`${c}`.padStart(2,"0"),s:()=>String(a),so:()=>ct(a),ss:()=>`${a}`.padStart(2,"0"),SSS:()=>`${u}`.padStart(3,"0"),d:()=>h,dd:()=>e.toLocaleDateString(n.locales,{weekday:"narrow"}),ddd:()=>e.toLocaleDateString(n.locales,{weekday:"short"}),dddd:()=>e.toLocaleDateString(n.locales,{weekday:"long"}),A:()=>p(l,c),AA:()=>p(l,c,!1,!0),a:()=>p(l,c,!0),aa:()=>p(l,c,!0,!0)};return t.replace(vf,(S,A)=>{var I,O;return(O=A??((I=m[S])==null?void 0:I.call(m)))!=null?O:S})}function Ef(e){if(e===null)return new Date(Number.NaN);if(e===void 0)return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){const t=e.match(yf);if(t){const n=t[2]-1||0,r=(t[7]||"0").substring(0,3);return new Date(t[1],n,t[3]||1,t[4]||0,t[5]||0,t[6]||0,r)}}return new Date(e)}function la(e,t="HH:mm:ss",n={}){return ue(()=>wf(Ef(Oe(e)),Oe(t),n))}function Sf(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:s=!1}=n;let o=null;const i=pe(!1);function l(){o&&(clearInterval(o),o=null)}function c(){i.value=!1,l()}function a(){const u=Oe(t);u<=0||(i.value=!0,s&&e(),l(),o=setInterval(e,u))}if(r&&en&&a(),le(t)||typeof t=="function"){const u=He(t,()=>{i.value&&en&&a()});Tt(u)}return Tt(c),{isActive:i,pause:c,resume:a}}function xf(e,t,n={}){const{immediate:r=!0}=n,s=pe(!1);let o=null;function i(){o&&(clearTimeout(o),o=null)}function l(){s.value=!1,i()}function c(...a){i(),s.value=!0,o=setTimeout(()=>{s.value=!1,o=null,e(...a)},Oe(t))}return r&&(s.value=!0,en&&c()),Tt(l),{isPending:Ft(s),start:c,stop:l}}function Rf(e=!1,t={}){const{truthyValue:n=!0,falsyValue:r=!1}=t,s=le(e),o=pe(e);function i(l){if(arguments.length)return o.value=l,o.value;{const c=Oe(n);return o.value=o.value===c?Oe(r):c,o.value}}return s?i:[o,i]}function mi(e){var t;const n=Oe(e);return(t=n==null?void 0:n.$el)!=null?t:n}const ht=en?window:void 0,_i=en?window.navigator:void 0;function Pn(...e){let t,n,r,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,s]=e,t=ht):[t,n,r,s]=e,!t)return hi;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],i=()=>{o.forEach(u=>u()),o.length=0},l=(u,h,p,m)=>(u.addEventListener(h,p,m),()=>u.removeEventListener(h,p,m)),c=He(()=>[mi(t),Oe(s)],([u,h])=>{if(i(),!u)return;const p=ff(h)?{...h}:h;o.push(...n.flatMap(m=>r.map(S=>l(u,m,S,p))))},{immediate:!0,flush:"post"}),a=()=>{c(),i()};return Tt(a),a}function Cf(){const e=pe(!1),t=Go();return t&&$r(()=>{e.value=!0},t),e}function Kr(e){const t=Cf();return ue(()=>(t.value,!!e()))}function Pf(e,t={}){const{immediate:n=!0,fpsLimit:r=void 0,window:s=ht}=t,o=pe(!1),i=r?1e3/r:null;let l=0,c=null;function a(p){if(!o.value||!s)return;l||(l=p);const m=p-l;if(i&&mn&&"matchMedia"in n&&typeof n.matchMedia=="function");let s;const o=pe(!1),i=a=>{o.value=a.matches},l=()=>{s&&("removeEventListener"in s?s.removeEventListener("change",i):s.removeListener(i))},c=Cl(()=>{r.value&&(l(),s=n.matchMedia(Oe(e)),"addEventListener"in s?s.addEventListener("change",i):s.addListener(i),o.value=s.matches)});return Tt(()=>{c(),l(),s=void 0}),o}function qs(e,t={}){const{controls:n=!1,navigator:r=_i}=t,s=Kr(()=>r&&"permissions"in r);let o;const i=typeof e=="string"?{name:e}:e,l=pe(),c=()=>{o&&(l.value=o.state)},a=hf(async()=>{if(s.value){if(!o)try{o=await r.permissions.query(i),Pn(o,"change",c),c()}catch{l.value="prompt"}return o}});return a(),n?{state:l,isSupported:s,query:a}:l}function ca(e={}){const{navigator:t=_i,read:n=!1,source:r,copiedDuring:s=1500,legacy:o=!1}=e,i=Kr(()=>t&&"clipboard"in t),l=qs("clipboard-read"),c=qs("clipboard-write"),a=ue(()=>i.value||o),u=pe(""),h=pe(!1),p=xf(()=>h.value=!1,s);function m(){i.value&&O(l.value)?t.clipboard.readText().then(R=>{u.value=R}):u.value=I()}a.value&&n&&Pn(["copy","cut"],m);async function S(R=Oe(r)){a.value&&R!=null&&(i.value&&O(c.value)?await t.clipboard.writeText(R):A(R),u.value=R,h.value=!0,p.start())}function A(R){const L=document.createElement("textarea");L.value=R??"",L.style.position="absolute",L.style.opacity="0",document.body.appendChild(L),L.select(),document.execCommand("copy"),L.remove()}function I(){var R,L,j;return(j=(L=(R=document==null?void 0:document.getSelection)==null?void 0:R.call(document))==null?void 0:L.toString())!=null?j:""}function O(R){return R==="granted"||R==="prompt"}return{isSupported:a,text:u,copied:h,copy:S}}function Of(e){return JSON.parse(JSON.stringify(e))}function ua(e,t={}){const n=pe({}),{manual:r,clone:s=Of,deep:o=!0,immediate:i=!0}=t;function l(){n.value=s(Oe(e))}return!r&&(le(e)||typeof e=="function")?He(e,l,{...t,deep:o,immediate:i}):l(),{cloned:n,sync:l}}const hn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},pn="__vueuse_ssr_handlers__",Mf=Tf();function Tf(){return pn in hn||(hn[pn]=hn[pn]||{}),hn[pn]}function yi(e,t){return Mf[e]||t}function If(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const Lf={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},zs="vueuse-storage";function Ff(e,t,n,r={}){var s;const{flush:o="pre",deep:i=!0,listenToStorageChanges:l=!0,writeDefaults:c=!0,mergeDefaults:a=!1,shallow:u,window:h=ht,eventFilter:p,onError:m=N=>{console.error(N)},initOnMounted:S}=r,A=(u?vo:pe)(typeof t=="function"?t():t);if(!n)try{n=yi("getDefaultStorage",()=>{var N;return(N=ht)==null?void 0:N.localStorage})()}catch(N){m(N)}if(!n)return A;const I=Oe(t),O=If(I),R=(s=r.serializer)!=null?s:Lf[O],{pause:L,resume:j}=_f(A,()=>k(A.value),{flush:o,deep:i,eventFilter:p});h&&l&&gi(()=>{Pn(h,"storage",H),Pn(h,zs,W),S&&H()}),S||H();function K(N,Y){h&&h.dispatchEvent(new CustomEvent(zs,{detail:{key:e,oldValue:N,newValue:Y,storageArea:n}}))}function k(N){try{const Y=n.getItem(e);if(N==null)K(Y,null),n.removeItem(e);else{const ce=R.write(N);Y!==ce&&(n.setItem(e,ce),K(Y,ce))}}catch(Y){m(Y)}}function ee(N){const Y=N?N.newValue:n.getItem(e);if(Y==null)return c&&I!=null&&n.setItem(e,R.write(I)),I;if(!N&&a){const ce=R.read(Y);return typeof a=="function"?a(ce,I):O==="object"&&!Array.isArray(ce)?{...I,...ce}:ce}else return typeof Y!="string"?Y:R.read(Y)}function H(N){if(!(N&&N.storageArea!==n)){if(N&&N.key==null){A.value=I;return}if(!(N&&N.key!==e)){L();try{(N==null?void 0:N.newValue)!==R.write(A.value)&&(A.value=ee(N))}catch(Y){m(Y)}finally{N?nn(j):j()}}}}function W(N){H(N.detail)}return A}function vi(e){return Af("(prefers-color-scheme: dark)",e)}function Nf(e={}){const{selector:t="html",attribute:n="class",initialValue:r="auto",window:s=ht,storage:o,storageKey:i="vueuse-color-scheme",listenToStorageChanges:l=!0,storageRef:c,emitAuto:a,disableTransition:u=!0}=e,h={auto:"",light:"light",dark:"dark",...e.modes||{}},p=vi({window:s}),m=ue(()=>p.value?"dark":"light"),S=c||(i==null?gf(r):Ff(i,r,o,{window:s,listenToStorageChanges:l})),A=ue(()=>S.value==="auto"?m.value:S.value),I=yi("updateHTMLAttrs",(j,K,k)=>{const ee=typeof j=="string"?s==null?void 0:s.document.querySelector(j):mi(j);if(!ee)return;let H;if(u){H=s.document.createElement("style");const W="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";H.appendChild(document.createTextNode(W)),s.document.head.appendChild(H)}if(K==="class"){const W=k.split(/\s/g);Object.values(h).flatMap(N=>(N||"").split(/\s/g)).filter(Boolean).forEach(N=>{W.includes(N)?ee.classList.add(N):ee.classList.remove(N)})}else ee.setAttribute(K,k);u&&(s.getComputedStyle(H).opacity,document.head.removeChild(H))});function O(j){var K;I(t,n,(K=h[j])!=null?K:j)}function R(j){e.onChanged?e.onChanged(j,O):O(j)}He(A,R,{flush:"post",immediate:!0}),gi(()=>R(A.value));const L=ue({get(){return a?S.value:A.value},set(j){S.value=j}});try{return Object.assign(L,{store:S,system:m,state:A})}catch{return L}}function $f(e={}){const{valueDark:t="dark",valueLight:n="",window:r=ht}=e,s=Nf({...e,onChanged:(l,c)=>{var a;e.onChanged?(a=e.onChanged)==null||a.call(e,l==="dark",c,l):c(l)},modes:{dark:t,light:n}}),o=ue(()=>s.system?s.system.value:vi({window:r}).value?"dark":"light");return ue({get(){return s.value==="dark"},set(l){const c=l?"dark":"light";o.value===c?s.value="auto":s.value=c}})}function fa(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,r=pe(new Date),s=()=>r.value=new Date,o=n==="requestAnimationFrame"?Pf(s,{immediate:!0}):Sf(s,n,{immediate:!0});return t?{now:r,...o}:r}const jf=$f(),Df=Rf(jf),bi=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},kf={},Hf={"mt-6":"","inline-flex":"","gap-2":"","text-xl":""},Vf=rn("div",{"i-carbon-sun":"","dark:i-carbon-moon":""},null,-1),Bf=[Vf],Uf=rn("a",{"i-carbon-logo-github":"","icon-btn":"",rel:"noreferrer",href:"https://github.com/efrice",target:"_blank",title:"GitHub"},null,-1);function Kf(e,t){return kr(),qo("nav",Hf,[rn("button",{"icon-btn":"",onClick:t[0]||(t[0]=n=>("toggleDark"in e?e.toggleDark:nt(Df))())},Bf),Uf])}const Wf=bi(kf,[["render",Kf]]),qf={},zf={p:"x-4 y-10","font-sans":"",text:"center gray-700 dark:gray-200"};function Gf(e,t){const n=vl("RouterView"),r=Wf;return kr(),qo("main",zf,[ve(n),ve(r)])}const Yf=bi(qf,[["render",Gf]]);const Jf=nf(),Wr=Uc(Yf),Qf=zu({history:Eu("/"),routes:ef});Wr.use(Qf);Wr.use(Jf);Wr.mount("#app");export{la as A,fa as B,Sr as C,ta as D,Er as E,Te as F,Pn as G,Fo as H,Ur as _,rn as a,ea as b,qo as c,To as d,ue as e,vl as f,ve as g,nt as h,pl as i,cc as j,Zf as k,ua as l,bi as m,oc as n,kr as o,sa as p,ra as q,pe as r,le as s,Xf as t,oa as u,na as v,He as w,ia as x,tn as y,ca as z}; + */let ui;const Un=e=>ui=e,fi=Symbol();function mr(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var zt;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(zt||(zt={}));function nf(){const e=no(!0),t=e.run(()=>pe({}));let n=[],r=[];const s=Ln({install(o){Un(s),s._a=o,o.provide(fi,s),o.config.globalProperties.$pinia=s,r.forEach(i=>n.push(i)),r=[]},use(o){return!this._a&&!tf?r.push(o):n.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const ai=()=>{};function Ws(e,t,n,r=ai){e.push(t);const s=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),r())};return!n&&xr()&&ro(s),s}function vt(e,...t){e.slice().forEach(n=>{n(...t)})}const rf=e=>e();function _r(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],s=e[n];mr(s)&&mr(r)&&e.hasOwnProperty(n)&&!le(r)&&!tt(r)?e[n]=_r(s,r):e[n]=r}return e}const sf=Symbol();function of(e){return!mr(e)||!e.hasOwnProperty(sf)}const{assign:Ye}=Object;function lf(e){return!!(le(e)&&e.effect)}function cf(e,t,n,r){const{state:s,actions:o,getters:i}=t,l=n.state.value[e];let c;function a(){l||(n.state.value[e]=s?s():{});const u=sl(n.state.value[e]);return Ye(u,o,Object.keys(i||{}).reduce((h,p)=>(h[p]=Ln(ue(()=>{Un(n);const m=n._s.get(e);return i[p].call(m,m)})),h),{}))}return c=di(e,a,t,n,r,!0),c}function di(e,t,n={},r,s,o){let i;const l=Ye({actions:{}},n),c={deep:!0};let a,u,h=[],p=[],m;const S=r.state.value[e];!o&&!S&&(r.state.value[e]={}),pe({});let A;function I(H){let W;a=u=!1,typeof H=="function"?(H(r.state.value[e]),W={type:zt.patchFunction,storeId:e,events:m}):(_r(r.state.value[e],H),W={type:zt.patchObject,payload:H,storeId:e,events:m});const N=A=Symbol();nn().then(()=>{A===N&&(a=!0)}),u=!0,vt(h,W,r.state.value[e])}const O=o?function(){const{state:W}=n,N=W?W():{};this.$patch(Y=>{Ye(Y,N)})}:ai;function R(){i.stop(),h=[],p=[],r._s.delete(e)}function L(H,W){return function(){Un(r);const N=Array.from(arguments),Y=[],ce=[];function Ce(J){Y.push(J)}function ot(J){ce.push(J)}vt(p,{args:N,name:H,store:K,after:Ce,onError:ot});let Pe;try{Pe=W.apply(this&&this.$id===e?this:K,N)}catch(J){throw vt(ce,J),J}return Pe instanceof Promise?Pe.then(J=>(vt(Y,J),J)).catch(J=>(vt(ce,J),Promise.reject(J))):(vt(Y,Pe),Pe)}}const j={_p:r,$id:e,$onAction:Ws.bind(null,p),$patch:I,$reset:O,$subscribe(H,W={}){const N=Ws(h,H,W.detached,()=>Y()),Y=i.run(()=>He(()=>r.state.value[e],ce=>{(W.flush==="sync"?u:a)&&H({storeId:e,type:zt.direct,events:m},ce)},Ye({},c,W)));return N},$dispose:R},K=tn(j);r._s.set(e,K);const ee=(r._a&&r._a.runWithContext||rf)(()=>r._e.run(()=>(i=no()).run(t)));for(const H in ee){const W=ee[H];if(le(W)&&!lf(W)||tt(W))o||(S&&of(W)&&(le(W)?W.value=S[H]:_r(W,S[H])),r.state.value[e][H]=W);else if(typeof W=="function"){const N=L(H,W);ee[H]=N,l.actions[H]=W}}return Ye(K,ee),Ye(G(K),ee),Object.defineProperty(K,"$state",{get:()=>r.state.value[e],set:H=>{I(W=>{Ye(W,H)})}}),r._p.forEach(H=>{Ye(K,i.run(()=>H({store:K,app:r._a,pinia:r,options:l})))}),S&&o&&n.hydrate&&n.hydrate(K.$state,S),a=!0,u=!0,K}function ia(e,t,n){let r,s;const o=typeof t=="function";typeof e=="string"?(r=e,s=o?n:t):(s=e,r=e.id);function i(l,c){const a=zl();return l=l||(a?Ae(fi,null):null),l&&Un(l),l=ui,l._s.has(r)||(o?di(r,t,s,l):cf(r,s,l)),l._s.get(r)}return i.$id=r,i}function Tt(e){return xr()?(ro(e),!0):!1}function Oe(e){return typeof e=="function"?e():nt(e)}const en=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const uf=Object.prototype.toString,ff=e=>uf.call(e)==="[object Object]",hi=()=>{};function af(e,t){function n(...r){return new Promise((s,o)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(s).catch(o)})}return n}const pi=e=>e();function df(e=pi){const t=pe(!0);function n(){t.value=!1}function r(){t.value=!0}const s=(...o)=>{t.value&&e(...o)};return{isActive:Ft(t),pause:n,resume:r,eventFilter:s}}function hf(e){let t;function n(){return t||(t=e()),t}return n.reset=async()=>{const r=t;t=void 0,r&&await r},n}function pf(e){return e||Go()}function gf(...e){if(e.length!==1)return ll(...e);const t=e[0];return typeof t=="function"?Ft(rl(()=>({get:t,set:hi}))):pe(t)}function mf(e,t,n={}){const{eventFilter:r=pi,...s}=n;return He(e,af(r,t),s)}function _f(e,t,n={}){const{eventFilter:r,...s}=n,{eventFilter:o,pause:i,resume:l,isActive:c}=df(r);return{stop:mf(e,t,{...s,eventFilter:o}),pause:i,resume:l,isActive:c}}function gi(e,t=!0,n){pf()?$r(e,n):t?e():nn(e)}const yf=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,vf=/[YMDHhms]o|\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|Z{1,2}|SSS/g;function bf(e,t,n,r){let s=e<12?"AM":"PM";return r&&(s=s.split("").reduce((o,i)=>o+=`${i}.`,"")),n?s.toLowerCase():s}function ct(e){const t=["th","st","nd","rd"],n=e%100;return e+(t[(n-20)%10]||t[n]||t[0])}function wf(e,t,n={}){var r;const s=e.getFullYear(),o=e.getMonth(),i=e.getDate(),l=e.getHours(),c=e.getMinutes(),a=e.getSeconds(),u=e.getMilliseconds(),h=e.getDay(),p=(r=n.customMeridiem)!=null?r:bf,m={Yo:()=>ct(s),YY:()=>String(s).slice(-2),YYYY:()=>s,M:()=>o+1,Mo:()=>ct(o+1),MM:()=>`${o+1}`.padStart(2,"0"),MMM:()=>e.toLocaleDateString(n.locales,{month:"short"}),MMMM:()=>e.toLocaleDateString(n.locales,{month:"long"}),D:()=>String(i),Do:()=>ct(i),DD:()=>`${i}`.padStart(2,"0"),H:()=>String(l),Ho:()=>ct(l),HH:()=>`${l}`.padStart(2,"0"),h:()=>`${l%12||12}`.padStart(1,"0"),ho:()=>ct(l%12||12),hh:()=>`${l%12||12}`.padStart(2,"0"),m:()=>String(c),mo:()=>ct(c),mm:()=>`${c}`.padStart(2,"0"),s:()=>String(a),so:()=>ct(a),ss:()=>`${a}`.padStart(2,"0"),SSS:()=>`${u}`.padStart(3,"0"),d:()=>h,dd:()=>e.toLocaleDateString(n.locales,{weekday:"narrow"}),ddd:()=>e.toLocaleDateString(n.locales,{weekday:"short"}),dddd:()=>e.toLocaleDateString(n.locales,{weekday:"long"}),A:()=>p(l,c),AA:()=>p(l,c,!1,!0),a:()=>p(l,c,!0),aa:()=>p(l,c,!0,!0)};return t.replace(vf,(S,A)=>{var I,O;return(O=A??((I=m[S])==null?void 0:I.call(m)))!=null?O:S})}function Ef(e){if(e===null)return new Date(Number.NaN);if(e===void 0)return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){const t=e.match(yf);if(t){const n=t[2]-1||0,r=(t[7]||"0").substring(0,3);return new Date(t[1],n,t[3]||1,t[4]||0,t[5]||0,t[6]||0,r)}}return new Date(e)}function la(e,t="HH:mm:ss",n={}){return ue(()=>wf(Ef(Oe(e)),Oe(t),n))}function Sf(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:s=!1}=n;let o=null;const i=pe(!1);function l(){o&&(clearInterval(o),o=null)}function c(){i.value=!1,l()}function a(){const u=Oe(t);u<=0||(i.value=!0,s&&e(),l(),o=setInterval(e,u))}if(r&&en&&a(),le(t)||typeof t=="function"){const u=He(t,()=>{i.value&&en&&a()});Tt(u)}return Tt(c),{isActive:i,pause:c,resume:a}}function xf(e,t,n={}){const{immediate:r=!0}=n,s=pe(!1);let o=null;function i(){o&&(clearTimeout(o),o=null)}function l(){s.value=!1,i()}function c(...a){i(),s.value=!0,o=setTimeout(()=>{s.value=!1,o=null,e(...a)},Oe(t))}return r&&(s.value=!0,en&&c()),Tt(l),{isPending:Ft(s),start:c,stop:l}}function Rf(e=!1,t={}){const{truthyValue:n=!0,falsyValue:r=!1}=t,s=le(e),o=pe(e);function i(l){if(arguments.length)return o.value=l,o.value;{const c=Oe(n);return o.value=o.value===c?Oe(r):c,o.value}}return s?i:[o,i]}function mi(e){var t;const n=Oe(e);return(t=n==null?void 0:n.$el)!=null?t:n}const ht=en?window:void 0,_i=en?window.navigator:void 0;function Pn(...e){let t,n,r,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,s]=e,t=ht):[t,n,r,s]=e,!t)return hi;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],i=()=>{o.forEach(u=>u()),o.length=0},l=(u,h,p,m)=>(u.addEventListener(h,p,m),()=>u.removeEventListener(h,p,m)),c=He(()=>[mi(t),Oe(s)],([u,h])=>{if(i(),!u)return;const p=ff(h)?{...h}:h;o.push(...n.flatMap(m=>r.map(S=>l(u,m,S,p))))},{immediate:!0,flush:"post"}),a=()=>{c(),i()};return Tt(a),a}function Cf(){const e=pe(!1),t=Go();return t&&$r(()=>{e.value=!0},t),e}function Kr(e){const t=Cf();return ue(()=>(t.value,!!e()))}function Pf(e,t={}){const{immediate:n=!0,fpsLimit:r=void 0,window:s=ht}=t,o=pe(!1),i=r?1e3/r:null;let l=0,c=null;function a(p){if(!o.value||!s)return;l||(l=p);const m=p-l;if(i&&mn&&"matchMedia"in n&&typeof n.matchMedia=="function");let s;const o=pe(!1),i=a=>{o.value=a.matches},l=()=>{s&&("removeEventListener"in s?s.removeEventListener("change",i):s.removeListener(i))},c=Cl(()=>{r.value&&(l(),s=n.matchMedia(Oe(e)),"addEventListener"in s?s.addEventListener("change",i):s.addListener(i),o.value=s.matches)});return Tt(()=>{c(),l(),s=void 0}),o}function qs(e,t={}){const{controls:n=!1,navigator:r=_i}=t,s=Kr(()=>r&&"permissions"in r);let o;const i=typeof e=="string"?{name:e}:e,l=pe(),c=()=>{o&&(l.value=o.state)},a=hf(async()=>{if(s.value){if(!o)try{o=await r.permissions.query(i),Pn(o,"change",c),c()}catch{l.value="prompt"}return o}});return a(),n?{state:l,isSupported:s,query:a}:l}function ca(e={}){const{navigator:t=_i,read:n=!1,source:r,copiedDuring:s=1500,legacy:o=!1}=e,i=Kr(()=>t&&"clipboard"in t),l=qs("clipboard-read"),c=qs("clipboard-write"),a=ue(()=>i.value||o),u=pe(""),h=pe(!1),p=xf(()=>h.value=!1,s);function m(){i.value&&O(l.value)?t.clipboard.readText().then(R=>{u.value=R}):u.value=I()}a.value&&n&&Pn(["copy","cut"],m);async function S(R=Oe(r)){a.value&&R!=null&&(i.value&&O(c.value)?await t.clipboard.writeText(R):A(R),u.value=R,h.value=!0,p.start())}function A(R){const L=document.createElement("textarea");L.value=R??"",L.style.position="absolute",L.style.opacity="0",document.body.appendChild(L),L.select(),document.execCommand("copy"),L.remove()}function I(){var R,L,j;return(j=(L=(R=document==null?void 0:document.getSelection)==null?void 0:R.call(document))==null?void 0:L.toString())!=null?j:""}function O(R){return R==="granted"||R==="prompt"}return{isSupported:a,text:u,copied:h,copy:S}}function Of(e){return JSON.parse(JSON.stringify(e))}function ua(e,t={}){const n=pe({}),{manual:r,clone:s=Of,deep:o=!0,immediate:i=!0}=t;function l(){n.value=s(Oe(e))}return!r&&(le(e)||typeof e=="function")?He(e,l,{...t,deep:o,immediate:i}):l(),{cloned:n,sync:l}}const hn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},pn="__vueuse_ssr_handlers__",Mf=Tf();function Tf(){return pn in hn||(hn[pn]=hn[pn]||{}),hn[pn]}function yi(e,t){return Mf[e]||t}function If(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const Lf={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},zs="vueuse-storage";function Ff(e,t,n,r={}){var s;const{flush:o="pre",deep:i=!0,listenToStorageChanges:l=!0,writeDefaults:c=!0,mergeDefaults:a=!1,shallow:u,window:h=ht,eventFilter:p,onError:m=N=>{console.error(N)},initOnMounted:S}=r,A=(u?vo:pe)(typeof t=="function"?t():t);if(!n)try{n=yi("getDefaultStorage",()=>{var N;return(N=ht)==null?void 0:N.localStorage})()}catch(N){m(N)}if(!n)return A;const I=Oe(t),O=If(I),R=(s=r.serializer)!=null?s:Lf[O],{pause:L,resume:j}=_f(A,()=>k(A.value),{flush:o,deep:i,eventFilter:p});h&&l&&gi(()=>{Pn(h,"storage",H),Pn(h,zs,W),S&&H()}),S||H();function K(N,Y){h&&h.dispatchEvent(new CustomEvent(zs,{detail:{key:e,oldValue:N,newValue:Y,storageArea:n}}))}function k(N){try{const Y=n.getItem(e);if(N==null)K(Y,null),n.removeItem(e);else{const ce=R.write(N);Y!==ce&&(n.setItem(e,ce),K(Y,ce))}}catch(Y){m(Y)}}function ee(N){const Y=N?N.newValue:n.getItem(e);if(Y==null)return c&&I!=null&&n.setItem(e,R.write(I)),I;if(!N&&a){const ce=R.read(Y);return typeof a=="function"?a(ce,I):O==="object"&&!Array.isArray(ce)?{...I,...ce}:ce}else return typeof Y!="string"?Y:R.read(Y)}function H(N){if(!(N&&N.storageArea!==n)){if(N&&N.key==null){A.value=I;return}if(!(N&&N.key!==e)){L();try{(N==null?void 0:N.newValue)!==R.write(A.value)&&(A.value=ee(N))}catch(Y){m(Y)}finally{N?nn(j):j()}}}}function W(N){H(N.detail)}return A}function vi(e){return Af("(prefers-color-scheme: dark)",e)}function Nf(e={}){const{selector:t="html",attribute:n="class",initialValue:r="auto",window:s=ht,storage:o,storageKey:i="vueuse-color-scheme",listenToStorageChanges:l=!0,storageRef:c,emitAuto:a,disableTransition:u=!0}=e,h={auto:"",light:"light",dark:"dark",...e.modes||{}},p=vi({window:s}),m=ue(()=>p.value?"dark":"light"),S=c||(i==null?gf(r):Ff(i,r,o,{window:s,listenToStorageChanges:l})),A=ue(()=>S.value==="auto"?m.value:S.value),I=yi("updateHTMLAttrs",(j,K,k)=>{const ee=typeof j=="string"?s==null?void 0:s.document.querySelector(j):mi(j);if(!ee)return;let H;if(u){H=s.document.createElement("style");const W="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";H.appendChild(document.createTextNode(W)),s.document.head.appendChild(H)}if(K==="class"){const W=k.split(/\s/g);Object.values(h).flatMap(N=>(N||"").split(/\s/g)).filter(Boolean).forEach(N=>{W.includes(N)?ee.classList.add(N):ee.classList.remove(N)})}else ee.setAttribute(K,k);u&&(s.getComputedStyle(H).opacity,document.head.removeChild(H))});function O(j){var K;I(t,n,(K=h[j])!=null?K:j)}function R(j){e.onChanged?e.onChanged(j,O):O(j)}He(A,R,{flush:"post",immediate:!0}),gi(()=>R(A.value));const L=ue({get(){return a?S.value:A.value},set(j){S.value=j}});try{return Object.assign(L,{store:S,system:m,state:A})}catch{return L}}function $f(e={}){const{valueDark:t="dark",valueLight:n="",window:r=ht}=e,s=Nf({...e,onChanged:(l,c)=>{var a;e.onChanged?(a=e.onChanged)==null||a.call(e,l==="dark",c,l):c(l)},modes:{dark:t,light:n}}),o=ue(()=>s.system?s.system.value:vi({window:r}).value?"dark":"light");return ue({get(){return s.value==="dark"},set(l){const c=l?"dark":"light";o.value===c?s.value="auto":s.value=c}})}function fa(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,r=pe(new Date),s=()=>r.value=new Date,o=n==="requestAnimationFrame"?Pf(s,{immediate:!0}):Sf(s,n,{immediate:!0});return t?{now:r,...o}:r}const jf=$f(),Df=Rf(jf),bi=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},kf={},Hf={"mt-6":"","inline-flex":"","gap-2":"","text-xl":""},Vf=rn("div",{"i-carbon-sun":"","dark:i-carbon-moon":""},null,-1),Bf=[Vf],Uf=rn("a",{"i-carbon-logo-github":"","icon-btn":"",rel:"noreferrer",href:"https://github.com/efrice",target:"_blank",title:"GitHub"},null,-1);function Kf(e,t){return kr(),qo("nav",Hf,[rn("button",{"icon-btn":"",onClick:t[0]||(t[0]=n=>("toggleDark"in e?e.toggleDark:nt(Df))())},Bf),Uf])}const Wf=bi(kf,[["render",Kf]]),qf={},zf={p:"x-4 y-10","font-sans":"",text:"center gray-700 dark:gray-200"};function Gf(e,t){const n=vl("RouterView"),r=Wf;return kr(),qo("main",zf,[ve(n),ve(r)])}const Yf=bi(qf,[["render",Gf]]);const Jf=nf(),Wr=Uc(Yf),Qf=zu({history:Eu("./"),routes:ef});Wr.use(Qf);Wr.use(Jf);Wr.mount("#app");export{la as A,fa as B,Sr as C,ta as D,Er as E,Te as F,Pn as G,Fo as H,Ur as _,rn as a,ea as b,qo as c,To as d,ue as e,vl as f,ve as g,nt as h,pl as i,cc as j,Zf as k,ua as l,bi as m,oc as n,kr as o,sa as p,ra as q,pe as r,le as s,Xf as t,oa as u,na as v,He as w,ia as x,tn as y,ca as z}; diff --git a/docs/index.html b/docs/index.html index 63fca32..8704fca 100644 --- a/docs/index.html +++ b/docs/index.html @@ -6,7 +6,7 @@ Push Mines - +