@gkd-kit/inspect 0.0.1768900570874 → 0.0.1768904025360

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/dist/404.html +3 -3
  2. package/dist/assets/{ActionCard.vue_vue_type_script_setup_true_lang-BKq24yyT.js → ActionCard.vue_vue_type_script_setup_true_lang-DgMvuIsb.js} +3 -3
  3. package/dist/assets/{ActionCard.vue_vue_type_script_setup_true_lang-BKq24yyT.js.map → ActionCard.vue_vue_type_script_setup_true_lang-DgMvuIsb.js.map} +1 -1
  4. package/dist/assets/DevicePage-3zAjkEzd.js +49 -0
  5. package/dist/assets/{DevicePage-LsTFe71m.js.map → DevicePage-3zAjkEzd.js.map} +1 -1
  6. package/dist/assets/{HomePage-Csw7C8jF.js → HomePage-BvzBh-Vr.js} +2 -2
  7. package/dist/assets/{HomePage-Csw7C8jF.js.map → HomePage-BvzBh-Vr.js.map} +1 -1
  8. package/dist/assets/ImportPage-Dk8X_JGB.js +2 -0
  9. package/dist/assets/{ImportPage-RGB4LPNf.js.map → ImportPage-Dk8X_JGB.js.map} +1 -1
  10. package/dist/assets/{Input-ByXBRWmO.js → Input-ByV0CB_Y.js} +2 -2
  11. package/dist/assets/{Input-ByXBRWmO.js.map → Input-ByV0CB_Y.js.map} +1 -1
  12. package/dist/assets/{SelectorPage-17Z-Jk1F.js → SelectorPage-CfS5VjGt.js} +2 -2
  13. package/dist/assets/{SelectorPage-17Z-Jk1F.js.map → SelectorPage-CfS5VjGt.js.map} +1 -1
  14. package/dist/assets/SnapshotPage-DJ4TKP-N.js +278 -0
  15. package/dist/assets/SnapshotPage-DJ4TKP-N.js.map +1 -0
  16. package/dist/assets/{SvgPage-CGTHxB9M.js → SvgPage-D2dxgiWY.js} +2 -2
  17. package/dist/assets/{SvgPage-CGTHxB9M.js.map → SvgPage-D2dxgiWY.js.map} +1 -1
  18. package/dist/assets/{TrackGraph-S8eceX9R.js → TrackGraph-CPenoPWC.js} +3 -3
  19. package/dist/assets/{TrackGraph-S8eceX9R.js.map → TrackGraph-CPenoPWC.js.map} +1 -1
  20. package/dist/assets/{_404Page-9FO_quL4.js → _404Page-D0N3kA1Q.js} +2 -2
  21. package/dist/assets/{_404Page-9FO_quL4.js.map → _404Page-D0N3kA1Q.js.map} +1 -1
  22. package/dist/assets/chunk-P1K29DU6.js +3 -0
  23. package/dist/assets/{chunk-Cg4L9mG4.js.map → chunk-P1K29DU6.js.map} +1 -1
  24. package/dist/assets/{dayjs.min-CSVABQRJ.js → dayjs.min-DU0BA-Jn.js} +2 -2
  25. package/dist/assets/{dayjs.min-CSVABQRJ.js.map → dayjs.min-DU0BA-Jn.js.map} +1 -1
  26. package/dist/assets/{error-np4WIvmm.js → error-D9nOgvRa.js} +2 -2
  27. package/dist/assets/{error-np4WIvmm.js.map → error-D9nOgvRa.js.map} +1 -1
  28. package/dist/assets/{import-C0XCCThd.js → import-CrAhe8hA.js} +2 -2
  29. package/dist/assets/{import-C0XCCThd.js.map → import-CrAhe8hA.js.map} +1 -1
  30. package/dist/assets/{index-jqB-Fx47.js → index-Dp1To-Ad.js} +9 -7
  31. package/dist/assets/index-Dp1To-Ad.js.map +1 -0
  32. package/dist/assets/{index-xkPltE-0.js → index-DyjSyMgQ.js} +3 -3
  33. package/dist/assets/{index-xkPltE-0.js.map → index-DyjSyMgQ.js.map} +1 -1
  34. package/dist/assets/index-_KZR6YQ9.css +1 -0
  35. package/dist/assets/{jszip.min-MMSrEo5_.js → jszip.min-Cwi5lnGJ.js} +2 -2
  36. package/dist/assets/{jszip.min-MMSrEo5_.js.map → jszip.min-Cwi5lnGJ.js.map} +1 -1
  37. package/dist/assets/{node-CUVTs-TZ.js → node-CKyuvX2h.js} +2 -2
  38. package/dist/assets/{node-CUVTs-TZ.js.map → node-CKyuvX2h.js.map} +1 -1
  39. package/dist/assets/{snapshot-BR91A-ol.js → snapshot-t-hW_BtQ.js} +2 -2
  40. package/dist/assets/{snapshot-BR91A-ol.js.map → snapshot-t-hW_BtQ.js.map} +1 -1
  41. package/dist/assets/{table-Cd44ejmV.js → table-BCs4WvKN.js} +2 -2
  42. package/dist/assets/{table-Cd44ejmV.js.map → table-BCs4WvKN.js.map} +1 -1
  43. package/dist/index.html +3 -3
  44. package/package.json +1 -1
  45. package/dist/assets/DevicePage-LsTFe71m.js +0 -49
  46. package/dist/assets/ImportPage-RGB4LPNf.js +0 -2
  47. package/dist/assets/SnapshotPage-gqLV0Ajt.js +0 -278
  48. package/dist/assets/SnapshotPage-gqLV0Ajt.js.map +0 -1
  49. package/dist/assets/chunk-Cg4L9mG4.js +0 -3
  50. package/dist/assets/index-Br8FJwQH.css +0 -1
  51. package/dist/assets/index-jqB-Fx47.js.map +0 -1
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1768900570874/files/dist/assets/HomePage-Csw7C8jF.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1768900570874/files/dist/assets/ActionCard.vue_vue_type_script_setup_true_lang-BKq24yyT.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1768900570874/files/dist/assets/Input-ByXBRWmO.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1768900570874/files/dist/assets/snapshot-BR91A-ol.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1768900570874/files/dist/assets/chunk-Cg4L9mG4.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1768900570874/files/dist/assets/dayjs.min-CSVABQRJ.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1768900570874/files/dist/assets/node-CUVTs-TZ.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1768900570874/files/dist/assets/import-C0XCCThd.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1768900570874/files/dist/assets/table-Cd44ejmV.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1768900570874/files/dist/assets/SnapshotPage-gqLV0Ajt.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1768900570874/files/dist/assets/index-xkPltE-0.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1768900570874/files/dist/assets/index-CdMJYWIX.css","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1768900570874/files/dist/assets/error-np4WIvmm.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1768900570874/files/dist/assets/_plugin-vue_export-helper-DlAUqK2U.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1768900570874/files/dist/assets/SnapshotPage-DTOyvcpZ.css","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1768900570874/files/dist/assets/ImportPage-RGB4LPNf.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1768900570874/files/dist/assets/DevicePage-LsTFe71m.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1768900570874/files/dist/assets/SelectorPage-17Z-Jk1F.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1768900570874/files/dist/assets/SvgPage-CGTHxB9M.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1768900570874/files/dist/assets/_404Page-9FO_quL4.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1768904025360/files/dist/assets/HomePage-BvzBh-Vr.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1768904025360/files/dist/assets/ActionCard.vue_vue_type_script_setup_true_lang-DgMvuIsb.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1768904025360/files/dist/assets/Input-ByV0CB_Y.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1768904025360/files/dist/assets/snapshot-t-hW_BtQ.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1768904025360/files/dist/assets/chunk-P1K29DU6.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1768904025360/files/dist/assets/dayjs.min-DU0BA-Jn.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1768904025360/files/dist/assets/node-CKyuvX2h.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1768904025360/files/dist/assets/import-CrAhe8hA.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1768904025360/files/dist/assets/table-BCs4WvKN.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1768904025360/files/dist/assets/SnapshotPage-DJ4TKP-N.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1768904025360/files/dist/assets/index-DyjSyMgQ.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1768904025360/files/dist/assets/index-CdMJYWIX.css","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1768904025360/files/dist/assets/error-D9nOgvRa.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1768904025360/files/dist/assets/_plugin-vue_export-helper-DlAUqK2U.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1768904025360/files/dist/assets/SnapshotPage-DTOyvcpZ.css","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1768904025360/files/dist/assets/ImportPage-Dk8X_JGB.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1768904025360/files/dist/assets/DevicePage-3zAjkEzd.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1768904025360/files/dist/assets/SelectorPage-CfS5VjGt.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1768904025360/files/dist/assets/SvgPage-D2dxgiWY.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1768904025360/files/dist/assets/_404Page-D0N3kA1Q.js"])))=>i.map(i=>d[i]);
2
2
  (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Fp(e){let t=".",n="__",r="--",o;if(e){let p=e.blockPrefix;p&&(t=p),p=e.elementPrefix,p&&(n=p),p=e.modifierPrefix,p&&(r=p)}const i={install(p){o=p.c;const g=p.context;g.bem={},g.bem.b=null,g.bem.els=null}};function s(p){let g,y;return{before(x){g=x.bem.b,y=x.bem.els,x.bem.els=null},after(x){x.bem.b=g,x.bem.els=y},$({context:x,props:C}){return p=typeof p=="string"?p:p({context:x,props:C}),x.bem.b=p,`${(C==null?void 0:C.bPrefix)||t}${x.bem.b}`}}}function a(p){let g;return{before(y){g=y.bem.els},after(y){y.bem.els=g},$({context:y,props:x}){return p=typeof p=="string"?p:p({context:y,props:x}),y.bem.els=p.split(",").map(C=>C.trim()),y.bem.els.map(C=>`${(x==null?void 0:x.bPrefix)||t}${y.bem.b}${n}${C}`).join(", ")}}}function l(p){return{$({context:g,props:y}){p=typeof p=="string"?p:p({context:g,props:y});const x=p.split(",").map(O=>O.trim());function C(O){return x.map(T=>`&${(y==null?void 0:y.bPrefix)||t}${g.bem.b}${O!==void 0?`${n}${O}`:""}${r}${T}`).join(", ")}const A=g.bem.els;return A!==null?C(A[0]):C()}}}function u(p){return{$({context:g,props:y}){p=typeof p=="string"?p:p({context:g,props:y});const x=g.bem.els;return`&:not(${(y==null?void 0:y.bPrefix)||t}${g.bem.b}${x!==null&&x.length>0?`${n}${x[0]}`:""}${r}${p})`}}}return Object.assign(i,{cB:((...p)=>o(s(p[0]),p[1],p[2])),cE:((...p)=>o(a(p[0]),p[1],p[2])),cM:((...p)=>o(l(p[0]),p[1],p[2])),cNotM:((...p)=>o(u(p[0]),p[1],p[2]))}),i}function Bp(e){let t=0;for(let n=0;n<e.length;++n)e[n]==="&"&&++t;return t}const ef=/\s*,(?![^(]*\))\s*/g,Lp=/\s+/g;function Dp(e,t){const n=[];return t.split(ef).forEach(r=>{let o=Bp(r);if(o){if(o===1){e.forEach(s=>{n.push(r.replace("&",s))});return}}else{e.forEach(s=>{n.push((s&&s+" ")+r)});return}let i=[r];for(;o--;){const s=[];i.forEach(a=>{e.forEach(l=>{s.push(a.replace("&",l))})}),i=s}i.forEach(s=>n.push(s))}),n}function Np(e,t){const n=[];return t.split(ef).forEach(r=>{e.forEach(o=>{n.push((o&&o+" ")+r)})}),n}function Hp(e){let t=[""];return e.forEach(n=>{n=n&&n.trim(),n&&(n.includes("&")?t=Dp(t,n):t=Np(t,n))}),t.join(", ").replace(Lp," ")}function Nl(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function Gi(e,t){return(t??document.head).querySelector(`style[cssr-id="${e}"]`)}function jp(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function ei(e){return e?/^\s*@(s|m)/.test(e):!1}const Wp=/[A-Z]/g;function tf(e){return e.replace(Wp,t=>"-"+t.toLowerCase())}function Vp(e,t=" "){return typeof e=="object"&&e!==null?` {
3
3
  `+Object.entries(e).map(n=>t+` ${tf(n[0])}: ${n[1]};`).join(`
4
4
  `)+`
@@ -904,11 +904,13 @@ ${t}
904
904
  transform: translate(${n}, 0);
905
905
  `),V("&.notification-transition-leave-from, &.notification-transition-enter-to",`
906
906
  transform: translate(0, 0);
907
- `)])}const Yh="n-notification-api",Iw=Object.assign(Object.assign({},gt.props),{containerClass:String,containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean}),kw=Re({name:"NotificationProvider",props:Iw,setup(e){const{mergedClsPrefixRef:t}=qt(e),n=de([]),r={},o=new Set;function i(h){const p=Gr(),g=()=>{o.add(p),r[p]&&r[p].hide()},y=bn(Object.assign(Object.assign({},h),{key:p,destroy:g,hide:g,deactivate:g})),{max:x}=e;if(x&&n.value.length-o.size>=x){let C=!1,A=0;for(const O of n.value){if(!o.has(O.key)){r[O.key]&&(O.destroy(),C=!0);break}A++}C||n.value.splice(A,1)}return n.value.push(y),y}const s=["info","success","warning","error"].map(h=>p=>i(Object.assign(Object.assign({},p),{type:h})));function a(h){o.delete(h),n.value.splice(n.value.findIndex(p=>p.key===h),1)}const l=gt("Notification","-notification",$w,Sw,e,t),u={create:i,info:s[0],success:s[1],warning:s[2],error:s[3],open:f,destroyAll:d},c=de(0);et(Yh,u),et(ws,{props:e,mergedClsPrefixRef:t,mergedThemeRef:l,wipTransitionCountRef:c});function f(h){return i(h)}function d(){Object.values(n.value).forEach(h=>{h.hide()})}return Object.assign({mergedClsPrefix:t,notificationList:n,notificationRefs:r,handleAfterLeave:a},u)},render(){var e,t,n;const{placement:r}=this;return k(Ke,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.notificationList.length?k(Uo,{to:(n=this.to)!==null&&n!==void 0?n:"body"},k(Ew,{class:this.containerClass,style:this.containerStyle,scrollable:this.scrollable&&r!=="top"&&r!=="bottom",placement:r},{default:()=>this.notificationList.map(o=>k(Aw,Object.assign({ref:i=>{const s=o.key;i===null?delete this.notificationRefs[s]:this.notificationRefs[s]=i}},ds(o,["destroy","hide","deactivate"]),{internalKey:o.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:o.keepAliveOnHover===void 0?this.keepAliveOnHover:o.keepAliveOnHover})))})):null)}});function Mw(){const e=ke(Yh,null);return e===null&&Yr("use-notification","No outer `n-notification-provider` found."),e}const zw=Re({name:"InjectionExtractor",props:{onSetup:Function},setup(e,{slots:t}){var n;return(n=e.onSetup)===null||n===void 0||n.call(e),()=>{var r;return(r=t.default)===null||r===void 0?void 0:r.call(t)}}}),Fw={message:bw,notification:Mw,loadingBar:aw,dialog:B2,modal:G2};function Bw({providersAndProps:e,configProviderProps:t}){let n=Dd(o);const r={app:n};function o(){return k(Fh,Le(t),{default:()=>e.map(({type:a,Provider:l,props:u})=>k(l,Le(u),{default:()=>k(zw,{onSetup:()=>r[a]=Fw[a]()})}))})}let i;return qr&&(i=document.createElement("div"),document.body.appendChild(i),n.mount(i)),Object.assign({unmount:()=>{var a;if(n===null||i===null){jr("discrete","unmount call no need because discrete app has been unmounted");return}n.unmount(),(a=i.parentNode)===null||a===void 0||a.removeChild(i),i=null,n=null}},r)}function Lw(e,{configProviderProps:t,messageProviderProps:n,dialogProviderProps:r,notificationProviderProps:o,loadingBarProviderProps:i,modalProviderProps:s}={}){const a=[];return e.forEach(u=>{switch(u){case"message":a.push({type:u,Provider:mw,props:n});break;case"notification":a.push({type:u,Provider:kw,props:o});break;case"dialog":a.push({type:u,Provider:ew,props:r});break;case"loadingBar":a.push({type:u,Provider:sw,props:i});break;case"modal":a.push({type:u,Provider:ww,props:s})}}),Bw({providersAndProps:a,configProviderProps:t})}const $r=typeof document<"u";function Xh(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Dw(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Xh(e.default)}const je=Object.assign;function va(e,t){const n={};for(const r in t){const o=t[r];n[r]=ln(o)?o.map(e):e(o)}return n}const So=()=>{},ln=Array.isArray;function Ou(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}const Zh=/#/g,Nw=/&/g,Hw=/\//g,jw=/=/g,Ww=/\?/g,Jh=/\+/g,Vw=/%5B/g,Uw=/%5D/g,Qh=/%5E/g,Gw=/%60/g,ep=/%7B/g,Kw=/%7C/g,tp=/%7D/g,qw=/%20/g;function kl(e){return e==null?"":encodeURI(""+e).replace(Kw,"|").replace(Vw,"[").replace(Uw,"]")}function Yw(e){return kl(e).replace(ep,"{").replace(tp,"}").replace(Qh,"^")}function Ua(e){return kl(e).replace(Jh,"%2B").replace(qw,"+").replace(Zh,"%23").replace(Nw,"%26").replace(Gw,"`").replace(ep,"{").replace(tp,"}").replace(Qh,"^")}function Xw(e){return Ua(e).replace(jw,"%3D")}function Zw(e){return kl(e).replace(Zh,"%23").replace(Ww,"%3F")}function Jw(e){return Zw(e).replace(Hw,"%2F")}function Ho(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const Qw=/\/$/,eC=e=>e.replace(Qw,"");function ga(e,t,n="/"){let r,o={},i="",s="";const a=t.indexOf("#");let l=t.indexOf("?");return l=a>=0&&l>a?-1:l,l>=0&&(r=t.slice(0,l),i=t.slice(l,a>0?a:t.length),o=e(i.slice(1))),a>=0&&(r=r||t.slice(0,a),s=t.slice(a,t.length)),r=oC(r??t,n),{fullPath:r+i+s,path:r,query:o,hash:Ho(s)}}function tC(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Au(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function nC(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&Vr(t.matched[r],n.matched[o])&&np(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Vr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function np(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!rC(e[n],t[n]))return!1;return!0}function rC(e,t){return ln(e)?$u(e,t):ln(t)?$u(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function $u(e,t){return ln(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function oC(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let i=n.length-1,s,a;for(s=0;s<r.length;s++)if(a=r[s],a!==".")if(a==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(s).join("/")}const jn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Ga=(function(e){return e.pop="pop",e.push="push",e})({}),ma=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function iC(e){if(!e)if($r){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),eC(e)}const sC=/^[^#]+#/;function aC(e,t){return e.replace(sC,"#")+t}function lC(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 Cs=()=>({left:window.scrollX,top:window.scrollY});function cC(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=lC(o,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 Iu(e,t){return(history.state?history.state.position-t:-1)+e}const Ka=new Map;function uC(e,t){Ka.set(e,t)}function fC(e){const t=Ka.get(e);return Ka.delete(e),t}function dC(e){return typeof e=="string"||e&&typeof e=="object"}function rp(e){return typeof e=="string"||typeof e=="symbol"}let nt=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const op=Symbol("");nt.MATCHER_NOT_FOUND+"",nt.NAVIGATION_GUARD_REDIRECT+"",nt.NAVIGATION_ABORTED+"",nt.NAVIGATION_CANCELLED+"",nt.NAVIGATION_DUPLICATED+"";function Ur(e,t){return je(new Error,{type:e,[op]:!0},t)}function Sn(e,t){return e instanceof Error&&op in e&&(t==null||!!(e.type&t))}const hC=["params","query","hash"];function pC(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of hC)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function vC(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<n.length;++r){const o=n[r].replace(Jh," "),i=o.indexOf("="),s=Ho(i<0?o:o.slice(0,i)),a=i<0?null:Ho(o.slice(i+1));if(s in t){let l=t[s];ln(l)||(l=t[s]=[l]),l.push(a)}else t[s]=a}return t}function ku(e){let t="";for(let n in e){const r=e[n];if(n=Xw(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(ln(r)?r.map(o=>o&&Ua(o)):[r&&Ua(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function gC(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=ln(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const mC=Symbol(""),Mu=Symbol(""),_s=Symbol(""),Ml=Symbol(""),qa=Symbol("");function co(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Kn(e,t,n,r,o,i=s=>s()){const s=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((a,l)=>{const u=d=>{d===!1?l(Ur(nt.NAVIGATION_ABORTED,{from:n,to:t})):d instanceof Error?l(d):dC(d)?l(Ur(nt.NAVIGATION_GUARD_REDIRECT,{from:t,to:d})):(s&&r.enterCallbacks[o]===s&&typeof d=="function"&&s.push(d),a())},c=i(()=>e.call(r&&r.instances[o],t,n,u));let f=Promise.resolve(c);e.length<3&&(f=f.then(u)),f.catch(d=>l(d))})}function ba(e,t,n,r,o=i=>i()){const i=[];for(const s of e)for(const a in s.components){let l=s.components[a];if(!(t!=="beforeRouteEnter"&&!s.instances[a]))if(Xh(l)){const u=(l.__vccOpts||l)[t];u&&i.push(Kn(u,n,r,s,a,o))}else{let u=l();i.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${a}" at "${s.path}"`);const f=Dw(c)?c.default:c;s.mods[a]=c,s.components[a]=f;const d=(f.__vccOpts||f)[t];return d&&Kn(d,n,r,s,a,o)()}))}}return i}function bC(e,t){const n=[],r=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let s=0;s<i;s++){const a=t.matched[s];a&&(e.matched.find(u=>Vr(u,a))?r.push(a):n.push(a));const l=e.matched[s];l&&(t.matched.find(u=>Vr(u,l))||o.push(l))}return[n,r,o]}let yC=()=>location.protocol+"//"+location.host;function ip(e,t){const{pathname:n,search:r,hash:o}=t,i=e.indexOf("#");if(i>-1){let s=o.includes(e.slice(i))?e.slice(i).length:1,a=o.slice(s);return a[0]!=="/"&&(a="/"+a),Au(a,"")}return Au(n,e)+r+o}function xC(e,t,n,r){let o=[],i=[],s=null;const a=({state:d})=>{const h=ip(e,location),p=n.value,g=t.value;let y=0;if(d){if(n.value=h,t.value=d,s&&s===p){s=null;return}y=g?d.position-g.position:0}else r(h);o.forEach(x=>{x(n.value,p,{delta:y,type:Ga.pop,direction:y?y>0?ma.forward:ma.back:ma.unknown})})};function l(){s=n.value}function u(d){o.push(d);const h=()=>{const p=o.indexOf(d);p>-1&&o.splice(p,1)};return i.push(h),h}function c(){if(document.visibilityState==="hidden"){const{history:d}=window;if(!d.state)return;d.replaceState(je({},d.state,{scroll:Cs()}),"")}}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",c),document.removeEventListener("visibilitychange",c)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",c),document.addEventListener("visibilitychange",c),{pauseListeners:l,listen:u,destroy:f}}function zu(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?Cs():null}}function wC(e){const{history:t,location:n}=window,r={value:ip(e,n)},o={value:t.state};o.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,u,c){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:yC()+e+l;try{t[c?"replaceState":"pushState"](u,"",d),o.value=u}catch(h){console.error(h),n[c?"replace":"assign"](d)}}function s(l,u){i(l,je({},t.state,zu(o.value.back,l,o.value.forward,!0),u,{position:o.value.position}),!0),r.value=l}function a(l,u){const c=je({},o.value,t.state,{forward:l,scroll:Cs()});i(c.current,c,!0),i(l,je({},zu(r.value,l,null),{position:c.position+1},u),!1),r.value=l}return{location:r,state:o,push:a,replace:s}}function CC(e){e=iC(e);const t=wC(e),n=xC(e,t.state,t.location,t.replace);function r(i,s=!0){s||n.pauseListeners(),history.go(i)}const o=je({location:"",base:e,go:r,createHref:aC.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}let ur=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var ht=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(ht||{});const _C={type:ur.Static,value:""},SC=/[a-zA-Z0-9_]/;function EC(e){if(!e)return[[]];if(e==="/")return[[_C]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${u}": ${h}`)}let n=ht.Static,r=n;const o=[];let i;function s(){i&&o.push(i),i=[]}let a=0,l,u="",c="";function f(){u&&(n===ht.Static?i.push({type:ur.Static,value:u}):n===ht.Param||n===ht.ParamRegExp||n===ht.ParamRegExpEnd?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:ur.Param,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function d(){u+=l}for(;a<e.length;){if(l=e[a++],l==="\\"&&n!==ht.ParamRegExp){r=n,n=ht.EscapeNext;continue}switch(n){case ht.Static:l==="/"?(u&&f(),s()):l===":"?(f(),n=ht.Param):d();break;case ht.EscapeNext:d(),n=r;break;case ht.Param:l==="("?n=ht.ParamRegExp:SC.test(l)?d():(f(),n=ht.Static,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case ht.ParamRegExp:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:n=ht.ParamRegExpEnd:c+=l;break;case ht.ParamRegExpEnd:f(),n=ht.Static,l!=="*"&&l!=="?"&&l!=="+"&&a--,c="";break;default:t("Unknown state");break}}return n===ht.ParamRegExp&&t(`Unfinished custom RegExp for param "${u}"`),f(),s(),o}const Fu="[^/]+?",TC={sensitive:!1,strict:!1,start:!0,end:!0};var kt=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(kt||{});const RC=/[.+*?^${}()[\]/\\]/g;function PC(e,t){const n=je({},TC,t),r=[];let o=n.start?"^":"";const i=[];for(const u of e){const c=u.length?[]:[kt.Root];n.strict&&!u.length&&(o+="/");for(let f=0;f<u.length;f++){const d=u[f];let h=kt.Segment+(n.sensitive?kt.BonusCaseSensitive:0);if(d.type===ur.Static)f||(o+="/"),o+=d.value.replace(RC,"\\$&"),h+=kt.Static;else if(d.type===ur.Param){const{value:p,repeatable:g,optional:y,regexp:x}=d;i.push({name:p,repeatable:g,optional:y});const C=x||Fu;if(C!==Fu){h+=kt.BonusCustomRegExp;try{`${C}`}catch(O){throw new Error(`Invalid custom RegExp for param "${p}" (${C}): `+O.message)}}let A=g?`((?:${C})(?:/(?:${C}))*)`:`(${C})`;f||(A=y&&u.length<2?`(?:/${A})`:"/"+A),y&&(A+="?"),o+=A,h+=kt.Dynamic,y&&(h+=kt.BonusOptional),g&&(h+=kt.BonusRepeatable),C===".*"&&(h+=kt.BonusWildcard)}c.push(h)}r.push(c)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=kt.BonusStrict}n.strict||(o+="/?"),n.end?o+="$":n.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const s=new RegExp(o,n.sensitive?"":"i");function a(u){const c=u.match(s),f={};if(!c)return null;for(let d=1;d<c.length;d++){const h=c[d]||"",p=i[d-1];f[p.name]=h&&p.repeatable?h.split("/"):h}return f}function l(u){let c="",f=!1;for(const d of e){(!f||!c.endsWith("/"))&&(c+="/"),f=!1;for(const h of d)if(h.type===ur.Static)c+=h.value;else if(h.type===ur.Param){const{value:p,repeatable:g,optional:y}=h,x=p in u?u[p]:"";if(ln(x)&&!g)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const C=ln(x)?x.join("/"):x;if(!C)if(y)d.length<2&&(c.endsWith("/")?c=c.slice(0,-1):f=!0);else throw new Error(`Missing required param "${p}"`);c+=C}}return c||"/"}return{re:s,score:r,keys:i,parse:a,stringify:l}}function OC(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===kt.Static+kt.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===kt.Static+kt.Segment?1:-1:0}function sp(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const i=OC(r[n],o[n]);if(i)return i;n++}if(Math.abs(o.length-r.length)===1){if(Bu(r))return 1;if(Bu(o))return-1}return o.length-r.length}function Bu(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const AC={strict:!1,end:!0,sensitive:!1};function $C(e,t,n){const r=PC(EC(e.path),n),o=je(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function IC(e,t){const n=[],r=new Map;t=Ou(AC,t);function o(f){return r.get(f)}function i(f,d,h){const p=!h,g=Du(f);g.aliasOf=h&&h.record;const y=Ou(t,f),x=[g];if("alias"in f){const O=typeof f.alias=="string"?[f.alias]:f.alias;for(const T of O)x.push(Du(je({},g,{components:h?h.record.components:g.components,path:T,aliasOf:h?h.record:g})))}let C,A;for(const O of x){const{path:T}=O;if(d&&T[0]!=="/"){const _=d.record.path,m=_[_.length-1]==="/"?"":"/";O.path=d.record.path+(T&&m+T)}if(C=$C(O,d,y),h?h.alias.push(C):(A=A||C,A!==C&&A.alias.push(C),p&&f.name&&!Nu(C)&&s(f.name)),ap(C)&&l(C),g.children){const _=g.children;for(let m=0;m<_.length;m++)i(_[m],C,h&&h.children[m])}h=h||C}return A?()=>{s(A)}:So}function s(f){if(rp(f)){const d=r.get(f);d&&(r.delete(f),n.splice(n.indexOf(d),1),d.children.forEach(s),d.alias.forEach(s))}else{const d=n.indexOf(f);d>-1&&(n.splice(d,1),f.record.name&&r.delete(f.record.name),f.children.forEach(s),f.alias.forEach(s))}}function a(){return n}function l(f){const d=zC(f,n);n.splice(d,0,f),f.record.name&&!Nu(f)&&r.set(f.record.name,f)}function u(f,d){let h,p={},g,y;if("name"in f&&f.name){if(h=r.get(f.name),!h)throw Ur(nt.MATCHER_NOT_FOUND,{location:f});y=h.record.name,p=je(Lu(d.params,h.keys.filter(A=>!A.optional).concat(h.parent?h.parent.keys.filter(A=>A.optional):[]).map(A=>A.name)),f.params&&Lu(f.params,h.keys.map(A=>A.name))),g=h.stringify(p)}else if(f.path!=null)g=f.path,h=n.find(A=>A.re.test(g)),h&&(p=h.parse(g),y=h.record.name);else{if(h=d.name?r.get(d.name):n.find(A=>A.re.test(d.path)),!h)throw Ur(nt.MATCHER_NOT_FOUND,{location:f,currentLocation:d});y=h.record.name,p=je({},d.params,f.params),g=h.stringify(p)}const x=[];let C=h;for(;C;)x.unshift(C.record),C=C.parent;return{name:y,path:g,params:p,matched:x,meta:MC(x)}}e.forEach(f=>i(f));function c(){n.length=0,r.clear()}return{addRoute:i,resolve:u,removeRoute:s,clearRoutes:c,getRoutes:a,getRecordMatcher:o}}function Lu(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Du(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:kC(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function kC(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 Nu(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function MC(e){return e.reduce((t,n)=>je(t,n.meta),{})}function zC(e,t){let n=0,r=t.length;for(;n!==r;){const i=n+r>>1;sp(e,t[i])<0?r=i:n=i+1}const o=FC(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function FC(e){let t=e;for(;t=t.parent;)if(ap(t)&&sp(e,t)===0)return t}function ap({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Hu(e){const t=ke(_s),n=ke(Ml),r=Z(()=>{const l=Le(e.to);return t.resolve(l)}),o=Z(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],f=n.matched;if(!c||!f.length)return-1;const d=f.findIndex(Vr.bind(null,c));if(d>-1)return d;const h=ju(l[u-2]);return u>1&&ju(c)===h&&f[f.length-1].path!==h?f.findIndex(Vr.bind(null,l[u-2])):d}),i=Z(()=>o.value>-1&&HC(n.params,r.value.params)),s=Z(()=>o.value>-1&&o.value===n.matched.length-1&&np(n.params,r.value.params));function a(l={}){if(NC(l)){const u=t[Le(e.replace)?"replace":"push"](Le(e.to)).catch(So);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:r,href:Z(()=>r.value.href),isActive:i,isExactActive:s,navigate:a}}function BC(e){return e.length===1?e[0]:e}const LC=Re({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"},viewTransition:Boolean},useLink:Hu,setup(e,{slots:t}){const n=bn(Hu(e)),{options:r}=ke(_s),o=Z(()=>({[Wu(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Wu(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&BC(t.default(n));return e.custom?i:k("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},i)}}}),DC=LC;function NC(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 HC(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!ln(o)||o.length!==r.length||r.some((i,s)=>i.valueOf()!==o[s].valueOf()))return!1}return!0}function ju(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Wu=(e,t,n)=>e??t??n,jC=Re({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=ke(qa),o=Z(()=>e.route||r.value),i=ke(Mu,0),s=Z(()=>{let u=Le(i);const{matched:c}=o.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),a=Z(()=>o.value.matched[s.value]);et(Mu,Z(()=>s.value+1)),et(mC,a),et(qa,o);const l=de();return tt(()=>[l.value,a.value,e.name],([u,c,f],[d,h,p])=>{c&&(c.instances[f]=u,h&&h!==c&&u&&u===d&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),u&&c&&(!h||!Vr(c,h)||!d)&&(c.enterCallbacks[f]||[]).forEach(g=>g(u))},{flush:"post"}),()=>{const u=o.value,c=e.name,f=a.value,d=f&&f.components[c];if(!d)return Vu(n.default,{Component:d,route:u});const h=f.props[c],p=h?h===!0?u.params:typeof h=="function"?h(u):h:null,y=k(d,je({},p,t,{onVnodeUnmounted:x=>{x.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return Vu(n.default,{Component:y,route:u})||y}}});function Vu(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const lp=jC;function WC(e){const t=IC(e.routes,e),n=e.parseQuery||vC,r=e.stringifyQuery||ku,o=e.history,i=co(),s=co(),a=co(),l=Be(jn);let u=jn;$r&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=va.bind(null,D=>""+D),f=va.bind(null,Jw),d=va.bind(null,Ho);function h(D,le){let K,pe;return rp(D)?(K=t.getRecordMatcher(D),pe=le):pe=D,t.addRoute(pe,K)}function p(D){const le=t.getRecordMatcher(D);le&&t.removeRoute(le)}function g(){return t.getRoutes().map(D=>D.record)}function y(D){return!!t.getRecordMatcher(D)}function x(D,le){if(le=je({},le||l.value),typeof D=="string"){const z=ga(n,D,le.path),L=t.resolve({path:z.path},le),W=o.createHref(z.fullPath);return je(z,L,{params:d(L.params),hash:Ho(z.hash),redirectedFrom:void 0,href:W})}let K;if(D.path!=null)K=je({},D,{path:ga(n,D.path,le.path).path});else{const z=je({},D.params);for(const L in z)z[L]==null&&delete z[L];K=je({},D,{params:f(z)}),le.params=f(le.params)}const pe=t.resolve(K,le),Te=D.hash||"";pe.params=c(d(pe.params));const w=tC(r,je({},D,{hash:Yw(Te),path:pe.path})),S=o.createHref(w);return je({fullPath:w,hash:Te,query:r===ku?gC(D.query):D.query||{}},pe,{redirectedFrom:void 0,href:S})}function C(D){return typeof D=="string"?ga(n,D,l.value.path):je({},D)}function A(D,le){if(u!==D)return Ur(nt.NAVIGATION_CANCELLED,{from:le,to:D})}function O(D){return m(D)}function T(D){return O(je(C(D),{replace:!0}))}function _(D,le){const K=D.matched[D.matched.length-1];if(K&&K.redirect){const{redirect:pe}=K;let Te=typeof pe=="function"?pe(D,le):pe;return typeof Te=="string"&&(Te=Te.includes("?")||Te.includes("#")?Te=C(Te):{path:Te},Te.params={}),je({query:D.query,hash:D.hash,params:Te.path!=null?{}:D.params},Te)}}function m(D,le){const K=u=x(D),pe=l.value,Te=D.state,w=D.force,S=D.replace===!0,z=_(K,pe);if(z)return m(je(C(z),{state:typeof z=="object"?je({},Te,z.state):Te,force:w,replace:S}),le||K);const L=K;L.redirectedFrom=le;let W;return!w&&nC(r,pe,K)&&(W=Ur(nt.NAVIGATION_DUPLICATED,{to:L,from:pe}),Oe(pe,pe,!0,!1)),(W?Promise.resolve(W):B(L,pe)).catch(N=>Sn(N)?Sn(N,nt.NAVIGATION_GUARD_REDIRECT)?N:$e(N):ve(N,L,pe)).then(N=>{if(N){if(Sn(N,nt.NAVIGATION_GUARD_REDIRECT))return m(je({replace:S},C(N.to),{state:typeof N.to=="object"?je({},Te,N.to.state):Te,force:w}),le||L)}else N=F(L,pe,!0,S,Te);return G(L,pe,N),N})}function E(D,le){const K=A(D,le);return K?Promise.reject(K):Promise.resolve()}function P(D){const le=st.values().next().value;return le&&typeof le.runWithContext=="function"?le.runWithContext(D):D()}function B(D,le){let K;const[pe,Te,w]=bC(D,le);K=ba(pe.reverse(),"beforeRouteLeave",D,le);for(const z of pe)z.leaveGuards.forEach(L=>{K.push(Kn(L,D,le))});const S=E.bind(null,D,le);return K.push(S),Ee(K).then(()=>{K=[];for(const z of i.list())K.push(Kn(z,D,le));return K.push(S),Ee(K)}).then(()=>{K=ba(Te,"beforeRouteUpdate",D,le);for(const z of Te)z.updateGuards.forEach(L=>{K.push(Kn(L,D,le))});return K.push(S),Ee(K)}).then(()=>{K=[];for(const z of w)if(z.beforeEnter)if(ln(z.beforeEnter))for(const L of z.beforeEnter)K.push(Kn(L,D,le));else K.push(Kn(z.beforeEnter,D,le));return K.push(S),Ee(K)}).then(()=>(D.matched.forEach(z=>z.enterCallbacks={}),K=ba(w,"beforeRouteEnter",D,le,P),K.push(S),Ee(K))).then(()=>{K=[];for(const z of s.list())K.push(Kn(z,D,le));return K.push(S),Ee(K)}).catch(z=>Sn(z,nt.NAVIGATION_CANCELLED)?z:Promise.reject(z))}function G(D,le,K){a.list().forEach(pe=>P(()=>pe(D,le,K)))}function F(D,le,K,pe,Te){const w=A(D,le);if(w)return w;const S=le===jn,z=$r?history.state:{};K&&(pe||S?o.replace(D.fullPath,je({scroll:S&&z&&z.scroll},Te)):o.push(D.fullPath,Te)),l.value=D,Oe(D,le,K,S),$e()}let ne;function q(){ne||(ne=o.listen((D,le,K)=>{if(!bt.listening)return;const pe=x(D),Te=_(pe,bt.currentRoute.value);if(Te){m(je(Te,{replace:!0,force:!0}),pe).catch(So);return}u=pe;const w=l.value;$r&&uC(Iu(w.fullPath,K.delta),Cs()),B(pe,w).catch(S=>Sn(S,nt.NAVIGATION_ABORTED|nt.NAVIGATION_CANCELLED)?S:Sn(S,nt.NAVIGATION_GUARD_REDIRECT)?(m(je(C(S.to),{force:!0}),pe).then(z=>{Sn(z,nt.NAVIGATION_ABORTED|nt.NAVIGATION_DUPLICATED)&&!K.delta&&K.type===Ga.pop&&o.go(-1,!1)}).catch(So),Promise.reject()):(K.delta&&o.go(-K.delta,!1),ve(S,pe,w))).then(S=>{S=S||F(pe,w,!1),S&&(K.delta&&!Sn(S,nt.NAVIGATION_CANCELLED)?o.go(-K.delta,!1):K.type===Ga.pop&&Sn(S,nt.NAVIGATION_ABORTED|nt.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),G(pe,w,S)}).catch(So)}))}let oe=co(),ie=co(),te;function ve(D,le,K){$e(D);const pe=ie.list();return pe.length?pe.forEach(Te=>Te(D,le,K)):console.error(D),Promise.reject(D)}function Pe(){return te&&l.value!==jn?Promise.resolve():new Promise((D,le)=>{oe.add([D,le])})}function $e(D){return te||(te=!D,q(),oe.list().forEach(([le,K])=>D?K(D):le()),oe.reset()),D}function Oe(D,le,K,pe){const{scrollBehavior:Te}=e;if(!$r||!Te)return Promise.resolve();const w=!K&&fC(Iu(D.fullPath,0))||(pe||!K)&&history.state&&history.state.scroll||null;return Dt().then(()=>Te(D,le,w)).then(S=>S&&cC(S)).catch(S=>ve(S,D,le))}const Fe=D=>o.go(D);let it;const st=new Set,bt={currentRoute:l,listening:!0,addRoute:h,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:y,getRoutes:g,resolve:x,options:e,push:O,replace:T,go:Fe,back:()=>Fe(-1),forward:()=>Fe(1),beforeEach:i.add,beforeResolve:s.add,afterEach:a.add,onError:ie.add,isReady:Pe,install(D){D.component("RouterLink",DC),D.component("RouterView",lp),D.config.globalProperties.$router=bt,Object.defineProperty(D.config.globalProperties,"$route",{enumerable:!0,get:()=>Le(l)}),$r&&!it&&l.value===jn&&(it=!0,O(o.location).catch(pe=>{}));const le={};for(const pe in jn)Object.defineProperty(le,pe,{get:()=>l.value[pe],enumerable:!0});D.provide(_s,bt),D.provide(Ml,jo(le)),D.provide(qa,l);const K=D.unmount;st.add(D),D.unmount=function(){st.delete(D),st.size<1&&(u=jn,ne&&ne(),ne=null,l.value=jn,it=!1,te=!1),K()}}};function Ee(D){return D.reduce((le,K)=>le.then(()=>P(K)),Promise.resolve())}return bt}function b3(){return ke(_s)}function y3(e){return ke(Ml)}function Ss(e,t){return tl()?(Ov(e,t),!0):!1}function VC(e){let t=!1,n;const r=Cf(!0);return((...o)=>(t||(n=r.run(()=>e(...o)),t=!0),n))}const ya=new WeakMap,UC=(...e)=>{var t;const n=e[0],r=(t=Cn())===null||t===void 0?void 0:t.proxy,o=r??tl();if(o==null&&!qf())throw new Error("injectLocal must be called in setup");return o&&ya.has(o)&&n in ya.get(o)?ya.get(o)[n]:ke(...e)},Es=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const GC=e=>e!=null,KC=Object.prototype.toString,qC=e=>KC.call(e)==="[object Object]",xr=()=>{};function YC(...e){if(e.length!==1)return Lt(...e);const t=e[0];return typeof t=="function"?Nt(jf(()=>({get:t,set:xr}))):de(t)}function zl(e,t){function n(...r){return new Promise((o,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(i)})}return n}const cp=e=>e();function XC(e,t={}){let n,r,o=xr;const i=l=>{clearTimeout(l),o(),o=xr};let s;return l=>{const u=Qe(e),c=Qe(t.maxWait);return n&&i(n),u<=0||c!==void 0&&c<=0?(r&&(i(r),r=void 0),Promise.resolve(l())):new Promise((f,d)=>{o=t.rejectOnCancel?d:f,s=l,c&&!r&&(r=setTimeout(()=>{n&&i(n),r=void 0,f(s())},c)),n=setTimeout(()=>{r&&i(r),r=void 0,f(l())},u)})}}function ZC(...e){let t=0,n,r=!0,o=xr,i,s,a,l,u;!ft(e[0])&&typeof e[0]=="object"?{delay:s,trailing:a=!0,leading:l=!0,rejectOnCancel:u=!1}=e[0]:[s,a=!0,l=!0,u=!1]=e;const c=()=>{n&&(clearTimeout(n),n=void 0,o(),o=xr)};return d=>{const h=Qe(s),p=Date.now()-t,g=()=>i=d();return c(),h<=0?(t=Date.now(),g()):(p>h?(t=Date.now(),(l||!r)&&g()):a&&(i=new Promise((y,x)=>{o=u?x:y,n=setTimeout(()=>{t=Date.now(),r=!0,y(g()),c()},Math.max(0,h-p))})),!l&&!n&&(n=setTimeout(()=>r=!0,h)),r=!1,i)}}function JC(e=cp,t={}){const{initialState:n="active"}=t,r=YC(n==="active");function o(){r.value=!1}function i(){r.value=!0}return{isActive:Nt(r),pause:o,resume:i,eventFilter:(...a)=>{r.value&&e(...a)}}}function QC(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 Uu(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function Eo(e){return Array.isArray(e)?e:[e]}function e_(e){return Cn()}function x3(e){if(!Es)return e;let t=0,n,r;const o=()=>{t-=1,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return((...i)=>(t+=1,r||(r=Cf(!0),n=r.run(()=>e(...i))),Ss(o),n))}function up(e,t=200,n={}){return zl(XC(t,n),e)}function t_(e,t=200,n={}){const r=de(Qe(e)),o=up(()=>{r.value=e.value},t,n);return tt(e,()=>o()),Df(r)}const w3=t_;function n_(e,t=200,n=!1,r=!0,o=!1){return zl(ZC(t,n,r,o),e)}function r_(e,t,n={}){const{eventFilter:r=cp,...o}=n;return tt(e,zl(r,t),o)}function o_(e,t,n={}){const{eventFilter:r,initialState:o="active",...i}=n,{eventFilter:s,pause:a,resume:l,isActive:u}=JC(r,{initialState:o});return{stop:r_(e,t,{...i,eventFilter:s}),pause:a,resume:l,isActive:u}}const i_=o_;function Xo(e,t=!0,n){e_()?en(e,n):t?e():Dt(e)}function s_(e,t,n={}){const{immediate:r=!0,immediateCallback:o=!1}=n,i=Be(!1);let s;function a(){s&&(clearTimeout(s),s=void 0)}function l(){i.value=!1,a()}function u(...c){o&&e(),a(),i.value=!0,s=setTimeout(()=>{i.value=!1,s=void 0,e(...c)},Qe(t))}return r&&(i.value=!0,Es&&u()),Ss(l),{isPending:Df(i),start:u,stop:l}}function a_(e,t,n){return tt(e,t,{...n,immediate:!0})}const Qt=Es?window:void 0,fp=Es?window.navigator:void 0;function rn(e){var t;const n=Qe(e);return(t=n==null?void 0:n.$el)!==null&&t!==void 0?t:n}function Ct(...e){const t=(r,o,i,s)=>(r.addEventListener(o,i,s),()=>r.removeEventListener(o,i,s)),n=Z(()=>{const r=Eo(Qe(e[0])).filter(o=>o!=null);return r.every(o=>typeof o!="string")?r:void 0});return a_(()=>{var r,o;return[(r=(o=n.value)===null||o===void 0?void 0:o.map(i=>rn(i)))!==null&&r!==void 0?r:[Qt].filter(i=>i!=null),Eo(Qe(n.value?e[1]:e[0])),Eo(Le(n.value?e[2]:e[1])),Qe(n.value?e[3]:e[2])]},([r,o,i,s],a,l)=>{if(!(r!=null&&r.length)||!(o!=null&&o.length)||!(i!=null&&i.length))return;const u=qC(s)?{...s}:s,c=r.flatMap(f=>o.flatMap(d=>i.map(h=>t(f,d,h,u))));l(()=>{c.forEach(f=>f())})},{flush:"post"})}function l_(){const e=Be(!1),t=Cn();return t&&en(()=>{e.value=!0},t),e}function Zo(e){const t=l_();return Z(()=>(t.value,!!e()))}function dp(e,t,n={}){const{window:r=Qt,...o}=n;let i;const s=Zo(()=>r&&"MutationObserver"in r),a=()=>{i&&(i.disconnect(),i=void 0)},l=tt(Z(()=>{const f=Eo(Qe(e)).map(rn).filter(GC);return new Set(f)}),f=>{a(),s.value&&f.size&&(i=new MutationObserver(t),f.forEach(d=>i.observe(d,o)))},{immediate:!0,flush:"post"}),u=()=>i==null?void 0:i.takeRecords(),c=()=>{l(),a()};return Ss(c),{isSupported:s,stop:c,takeRecords:u}}const c_=Symbol("vueuse-ssr-width");function u_(){const e=qf()?UC(c_,null):null;return typeof e=="number"?e:void 0}function f_(e,t={}){const{window:n=Qt,ssrWidth:r=u_()}=t,o=Zo(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),i=Be(typeof r=="number"),s=Be(),a=Be(!1),l=u=>{a.value=u.matches};return Kr(()=>{if(i.value){i.value=!o.value,a.value=Qe(e).split(",").some(u=>{const c=u.includes("not all"),f=u.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),d=u.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let h=!!(f||d);return f&&h&&(h=r>=Uu(f[1])),d&&h&&(h=r<=Uu(d[1])),c?!h:h});return}o.value&&(s.value=n.matchMedia(Qe(e)),a.value=s.value.matches)}),Ct(s,"change",l,{passive:!0}),Z(()=>a.value)}function Gu(e,t={}){const{controls:n=!1,navigator:r=fp}=t,o=Zo(()=>r&&"permissions"in r),i=Be(),s=typeof e=="string"?{name:e}:e,a=Be(),l=()=>{var c,f;a.value=(c=(f=i.value)===null||f===void 0?void 0:f.state)!==null&&c!==void 0?c:"prompt"};Ct(i,"change",l,{passive:!0});const u=QC(async()=>{if(o.value){if(!i.value)try{i.value=await r.permissions.query(s)}catch{i.value=void 0}finally{l()}if(n)return Me(i.value)}});return u(),n?{state:a,isSupported:o,query:u}:a}function C3(e={}){const{navigator:t=fp,read:n=!1,source:r,copiedDuring:o=1500,legacy:i=!1}=e,s=Zo(()=>t&&"clipboard"in t),a=Gu("clipboard-read"),l=Gu("clipboard-write"),u=Z(()=>s.value||i),c=Be(""),f=Be(!1),d=s_(()=>f.value=!1,o,{immediate:!1});async function h(){let C=!(s.value&&x(a.value));if(!C)try{c.value=await t.clipboard.readText()}catch{C=!0}C&&(c.value=y())}u.value&&n&&Ct(["copy","cut"],h,{passive:!0});async function p(C=Qe(r)){if(u.value&&C!=null){let A=!(s.value&&x(l.value));if(!A)try{await t.clipboard.writeText(C)}catch{A=!0}A&&g(C),c.value=C,f.value=!0,d.start()}}function g(C){const A=document.createElement("textarea");A.value=C,A.style.position="absolute",A.style.opacity="0",A.setAttribute("readonly",""),document.body.appendChild(A),A.select(),document.execCommand("copy"),A.remove()}function y(){var C,A,O;return(C=(A=document)===null||A===void 0||(O=A.getSelection)===null||O===void 0||(O=O.call(A))===null||O===void 0?void 0:O.toString())!==null&&C!==void 0?C:""}function x(C){return C==="granted"||C==="prompt"}return{isSupported:u,text:Nt(c),copied:Nt(f),copy:p}}const bi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},yi="__vueuse_ssr_handlers__",d_=h_();function h_(){return yi in bi||(bi[yi]=bi[yi]||{}),bi[yi]}function p_(e,t){return d_[e]||t}function v_(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 g_={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()}},Ku="vueuse-storage";function _3(e,t,n,r={}){var o;const{flush:i="pre",deep:s=!0,listenToStorageChanges:a=!0,writeDefaults:l=!0,mergeDefaults:u=!1,shallow:c,window:f=Qt,eventFilter:d,onError:h=q=>{console.error(q)},initOnMounted:p}=r,g=(c?Be:de)(typeof t=="function"?t():t),y=Z(()=>Qe(e));if(!n)try{n=p_("getDefaultStorage",()=>Qt==null?void 0:Qt.localStorage)()}catch(q){h(q)}if(!n)return g;const x=Qe(t),C=v_(x),A=(o=r.serializer)!==null&&o!==void 0?o:g_[C],{pause:O,resume:T}=i_(g,q=>B(q),{flush:i,deep:s,eventFilter:d});tt(y,()=>F(),{flush:i});let _=!1;const m=q=>{p&&!_||F(q)},E=q=>{p&&!_||ne(q)};f&&a&&(n instanceof Storage?Ct(f,"storage",m,{passive:!0}):Ct(f,Ku,E)),p?Xo(()=>{_=!0,F()}):F();function P(q,oe){if(f){const ie={key:y.value,oldValue:q,newValue:oe,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",ie):new CustomEvent(Ku,{detail:ie}))}}function B(q){try{const oe=n.getItem(y.value);if(q==null)P(oe,null),n.removeItem(y.value);else{const ie=A.write(q);oe!==ie&&(n.setItem(y.value,ie),P(oe,ie))}}catch(oe){h(oe)}}function G(q){const oe=q?q.newValue:n.getItem(y.value);if(oe==null)return l&&x!=null&&n.setItem(y.value,A.write(x)),x;if(!q&&u){const ie=A.read(oe);return typeof u=="function"?u(ie,x):C==="object"&&!Array.isArray(ie)?{...x,...ie}:ie}else return typeof oe!="string"?oe:A.read(oe)}function F(q){if(!(q&&q.storageArea!==n)){if(q&&q.key==null){g.value=x;return}if(!(q&&q.key!==y.value)){O();try{const oe=A.write(g.value);(q===void 0||(q==null?void 0:q.newValue)!==oe)&&(g.value=G(q))}catch(oe){h(oe)}finally{q?Dt(T):T()}}}}function ne(q){F(q.detail)}return g}function hp(e,t,n={}){const{window:r=Qt,...o}=n;let i;const s=Zo(()=>r&&"ResizeObserver"in r),a=()=>{i&&(i.disconnect(),i=void 0)},l=tt(Z(()=>{const c=Qe(e);return Array.isArray(c)?c.map(f=>rn(f)):[rn(c)]}),c=>{if(a(),s.value&&r){i=new ResizeObserver(t);for(const f of c)f&&i.observe(f,o)}},{immediate:!0,flush:"post"}),u=()=>{a(),l()};return Ss(u),{isSupported:s,stop:u}}function m_(e,t={}){const{reset:n=!0,windowResize:r=!0,windowScroll:o=!0,immediate:i=!0,updateTiming:s="sync"}=t,a=Be(0),l=Be(0),u=Be(0),c=Be(0),f=Be(0),d=Be(0),h=Be(0),p=Be(0);function g(){const x=rn(e);if(!x){n&&(a.value=0,l.value=0,u.value=0,c.value=0,f.value=0,d.value=0,h.value=0,p.value=0);return}const C=x.getBoundingClientRect();a.value=C.height,l.value=C.bottom,u.value=C.left,c.value=C.right,f.value=C.top,d.value=C.width,h.value=C.x,p.value=C.y}function y(){s==="sync"?g():s==="next-frame"&&requestAnimationFrame(()=>g())}return hp(e,y),tt(()=>rn(e),x=>!x&&y()),dp(e,y,{attributeFilter:["style","class"]}),o&&Ct("scroll",y,{capture:!0,passive:!0}),r&&Ct("resize",y,{passive:!0}),Xo(()=>{i&&y()}),{height:a,bottom:l,left:u,right:c,top:f,width:d,x:h,y:p,update:y}}function S3(e,t={width:0,height:0},n={}){const{window:r=Qt,box:o="content-box"}=n,i=Z(()=>{var f;return(f=rn(e))===null||f===void 0||(f=f.namespaceURI)===null||f===void 0?void 0:f.includes("svg")}),s=Be(t.width),a=Be(t.height),{stop:l}=hp(e,([f])=>{const d=o==="border-box"?f.borderBoxSize:o==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(r&&i.value){const h=rn(e);if(h){const p=h.getBoundingClientRect();s.value=p.width,a.value=p.height}}else if(d){const h=Eo(d);s.value=h.reduce((p,{inlineSize:g})=>p+g,0),a.value=h.reduce((p,{blockSize:g})=>p+g,0)}else s.value=f.contentRect.width,a.value=f.contentRect.height},n);Xo(()=>{const f=rn(e);f&&(s.value="offsetWidth"in f?f.offsetWidth:t.width,a.value="offsetHeight"in f?f.offsetHeight:t.height)});const u=tt(()=>rn(e),f=>{s.value=f?t.width:0,a.value=f?t.height:0});function c(){l(),u()}return{width:s,height:a,stop:c}}const qu=1;function b_(e,t={}){const{throttle:n=0,idle:r=200,onStop:o=xr,onScroll:i=xr,offset:s={left:0,right:0,top:0,bottom:0},observe:a={mutation:!1},eventListenerOptions:l={capture:!1,passive:!0},behavior:u="auto",window:c=Qt,onError:f=P=>{console.error(P)}}=t,d=typeof a=="boolean"?{mutation:a}:a,h=Be(0),p=Be(0),g=Z({get(){return h.value},set(P){x(P,void 0)}}),y=Z({get(){return p.value},set(P){x(void 0,P)}});function x(P,B){var G,F,ne,q;if(!c)return;const oe=Qe(e);if(!oe)return;(G=oe instanceof Document?c.document.body:oe)===null||G===void 0||G.scrollTo({top:(F=Qe(B))!==null&&F!==void 0?F:y.value,left:(ne=Qe(P))!==null&&ne!==void 0?ne:g.value,behavior:Qe(u)});const ie=(oe==null||(q=oe.document)===null||q===void 0?void 0:q.documentElement)||(oe==null?void 0:oe.documentElement)||oe;g!=null&&(h.value=ie.scrollLeft),y!=null&&(p.value=ie.scrollTop)}const C=Be(!1),A=bn({left:!0,right:!1,top:!0,bottom:!1}),O=bn({left:!1,right:!1,top:!1,bottom:!1}),T=P=>{C.value&&(C.value=!1,O.left=!1,O.right=!1,O.top=!1,O.bottom=!1,o(P))},_=up(T,n+r),m=P=>{var B;if(!c)return;const G=(P==null||(B=P.document)===null||B===void 0?void 0:B.documentElement)||(P==null?void 0:P.documentElement)||rn(P),{display:F,flexDirection:ne,direction:q}=c.getComputedStyle(G),oe=q==="rtl"?-1:1,ie=G.scrollLeft;O.left=ie<h.value,O.right=ie>h.value;const te=Math.abs(ie*oe)<=(s.left||0),ve=Math.abs(ie*oe)+G.clientWidth>=G.scrollWidth-(s.right||0)-qu;F==="flex"&&ne==="row-reverse"?(A.left=ve,A.right=te):(A.left=te,A.right=ve),h.value=ie;let Pe=G.scrollTop;P===c.document&&!Pe&&(Pe=c.document.body.scrollTop),O.top=Pe<p.value,O.bottom=Pe>p.value;const $e=Math.abs(Pe)<=(s.top||0),Oe=Math.abs(Pe)+G.clientHeight>=G.scrollHeight-(s.bottom||0)-qu;F==="flex"&&ne==="column-reverse"?(A.top=Oe,A.bottom=$e):(A.top=$e,A.bottom=Oe),p.value=Pe},E=P=>{var B;c&&(m((B=P.target.documentElement)!==null&&B!==void 0?B:P.target),C.value=!0,_(P),i(P))};return Ct(e,"scroll",n?n_(E,n,!0,!1):E,l),Xo(()=>{try{const P=Qe(e);if(!P)return;m(P)}catch(P){f(P)}}),d!=null&&d.mutation&&e!=null&&e!==c&&e!==document&&dp(e,()=>{const P=Qe(e);P&&m(P)},{attributes:!0,childList:!0,subtree:!0}),Ct(e,"scrollend",T,l),{x:g,y,isScrolling:C,arrivedState:A,directions:O,measure(){const P=Qe(e);c&&P&&m(P)}}}function y_(e={}){const{window:t=Qt,...n}=e;return b_(t,n)}function x_(e={}){const{window:t=Qt,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:r=Number.POSITIVE_INFINITY,listenOrientation:o=!0,includeScrollbar:i=!0,type:s="inner"}=e,a=Be(n),l=Be(r),u=()=>{if(t)if(s==="outer")a.value=t.outerWidth,l.value=t.outerHeight;else if(s==="visual"&&t.visualViewport){const{width:f,height:d,scale:h}=t.visualViewport;a.value=Math.round(f*h),l.value=Math.round(d*h)}else i?(a.value=t.innerWidth,l.value=t.innerHeight):(a.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight)};u(),Xo(u);const c={passive:!0};return Ct("resize",u,c),t&&s==="visual"&&t.visualViewport&&Ct(t.visualViewport,"resize",u,c),o&&tt(f_("(orientation: portrait)"),()=>u()),{width:a,height:l}}const w_=VC(()=>jo({networkErrorDlgVisible:!1,githubErrorDlgVisible:!1,wasmErrorDlgVisible:!1,wasmSupported:void 0})),{message:Yu,dialog:E3,loadingBar:T3}=Lw(["message","dialog","loadingBar"]),pp=document.body.appendChild(document.createElement("div")),C_={fixed:"","z-2000":"",class:"BodyScrollbar"},__=Re({__name:"BodyScrollbar",setup(e){const{y:t,x:n}=y_(),{height:r,width:o}=x_(),i=m_(document.body),s=Z(()=>i.height.value>r.value),a=Z(()=>{const m=i.height.value;return r.value/m*r.value}),l=Z(()=>{const _=i.height.value,m=a.value;return t.value/(_-r.value)*(r.value-m)}),u=Z(()=>s.value?{transform:`translateY(${l.value}px)`,height:`${a.value}px`}:{}),c=async _=>{const m=a.value*.9*(_.clientY<a.value+l.value?-1:1),E=i.height.value,P=E,B=r.value/P*r.value;t.value+=m/(r.value-B)*(E-r.value)},f=Be(!1);let d;const h=_=>{d=_,f.value=!0};Ct("pointermove",_=>{if(!d)return;const m=_.clientY-d.clientY;d=_;const E=i.height.value,P=E,B=r.value/P*r.value;t.value+=m/(r.value-B)*(E-r.value)}),Ct("pointerup",()=>{d=void 0,f.value=!1});const p=Z(()=>Math.floor(i.width.value)>o.value),g=Z(()=>{const m=i.width.value;return o.value/m*o.value}),y=Z(()=>{const _=i.width.value,m=g.value;return n.value/(_-o.value)*(o.value-m)}),x=Z(()=>p.value?{transform:`translateX(${y.value}px)`,width:`${g.value}px`}:{}),C=_=>{const m=g.value*.9*(_.clientX<g.value+y.value?-1:1),E=i.width.value,P=E,B=o.value/P*o.value,G=n.value+m/(o.value-B)*(E-o.value);n.value=G},A=Be(!1);let O;const T=_=>{O=_,A.value=!0};return Ct("pointermove",_=>{if(!O)return;const m=_.clientX-O.clientX;O=_;const E=i.width.value,P=E,B=o.value/P*o.value;n.value+=m/(o.value-B)*(E-o.value)}),Ct("pointerup",()=>{O=void 0,A.value=!1}),Ct("selectstart",_=>{(O||d)&&_.preventDefault()}),(_,m)=>(Jn(),zo("div",C_,[Io(pt("div",{"scrollbar-y":"",fixed:"","right-2px":"","top-0":"","bottom-0":"","w-8px":"",onPointerdown:h,onClick:c},[pt("div",{"w-full":"",bg:"#909399","opacity-30":"","hover:opacity":"50",style:Po(Le(u)),class:Zn({"opacity-50":Le(f)}),onClick:m[0]||(m[0]=Rc(()=>{},["stop"]))},null,6)],544),[[Li,Le(s)]]),Le(p)?(Jn(),zo("div",{key:0,"scrollbar-x":"",fixed:"","bottom-2px":"","left-0":"","right-0":"","h-8px":"",onPointerdown:T,onClick:C},[pt("div",{"h-full":"",bg:"#909399","opacity-30":"","hover:opacity":"50",style:Po(Le(x)),class:Zn({"opacity-50":Le(A)}),onClick:m[1]||(m[1]=Rc(()=>{},["stop"]))},null,6)],32)):Pd("",!0)]))}});function R3(...e){const t=new URLSearchParams;return e.forEach(n=>{for(const r in n){const o=n[r];o!==void 0&&t.append(r,String(o))}}),t}const P3=e=>{const t={};return e.forEach((n,r)=>{t[r]=n}),t},S_=async(e=0)=>new Promise(t=>{setTimeout(t,e)}),O3=(()=>{let e;return async t=>{if(t&&e!==t){e=t,S_(1e4).then(()=>{e=void 0});try{await navigator.clipboard.writeText(t),Yu.success("复制成功")}catch{Yu.error("复制失败")}}}})(),vp=(e,t)=>{e.classList.add(t),en(()=>{e.classList.add(t)}),ss(()=>{e.classList.remove(t)})},A3=()=>{vp(pp,"app-auto-h")},$3=()=>{vp(document.body,"body-auto-w")},E_=()=>{},I3=()=>E_,k3=(e,t)=>{const n={};return t.forEach(r=>{const o=e[r];o!==void 0&&(n[r]=o)}),n},gp=e=>typeof e=="number"?!0:typeof e=="string"&&Array.prototype.every.call(e,t=>"0"<=t&&t<="9"),M3=e=>{if(typeof e=="number"&&Number.isSafeInteger(e))return e;if(typeof e=="string"&&e.length>0){const t=Number(e);if(Number.isSafeInteger(t))return t}},T_=Re(()=>{const e=Be(!1),t="ontouchstart"in document.documentElement;return e.value=!t,t&&(document.body.classList.add("mobile"),document.documentElement.classList.add("mobile")),()=>e.value?k(Uo,{to:document.body},k(__)):void 0}),z3=["#ff00ff","#18821c","#00ff00","#007fff","#ff7f00","#7fbf7f","#4e01bf","#b80836","#d67ffd","#00ffff","#fafe43","#00ff7f","#215b8f","#bd667c","#84f7f8","#8dfa01","#8f6605","#f5bc95","#a631f6","#21bab7","#4b1e4a","#7578c8","#c1b629","#ff007f","#0000ff","#4cc62a","#00007f","#fd404b","#b6fc97","#f742d8","#373fea","#a31b90","#ff0000","#03ae66","#a1b6e3","#61f9a8"],F3=e=>{var n,r;const t=[];if((n=e.dataTransfer)!=null&&n.items)for(let o=0;o<e.dataTransfer.items.length;o++){const i=e.dataTransfer.items[o];if(i.kind==="file"){const s=i.getAsFile();s&&t.push(s)}}else t.push(...Array.from(((r=e.dataTransfer)==null?void 0:r.files)||[]));return t},R_=[/\.0+$/,/0+$/],B3=(e,t)=>{const n=e.toFixed(t);if(!n.includes("."))return n;for(const r of R_)if(r.test(n))return n.replace(r,"");return n},L3=e=>{try{return new URL(e)}catch{}},P_=new Set([location.origin,"https://cdn.jsdelivr.net","https://fastly.jsdelivr.net","https://raw.githubusercontent.com","https://gist.githubusercontent.com","https://raw.gitmirror.com","https://registry.npmmirror.com"]),D3=e=>(e=new URL(e),e.hostname=="127.0.0.1"||e.hostname=="localhost"||location.protocol=="http:"&&e.protocol=="http:"&&e.hostname.split(".").every(t=>Number.isSafeInteger(parseInt(t)))?!0:P_.has(e.origin)),O_=[/^https:\/\/f\.gkd\.li\/(\d+)$/,/^https:\/\/github\.com\/gkd-kit\/inspect\/files\/(\d+)\/file\.zip$/,/^https:\/\/github\.com\/user-attachments\/files\/(\d+)\/file\.zip$/,/^https:\/\/i\.gkd\.li\/i\/(\d+)$/,/^https:\/\/i\.gkd\.li\/import\/(\d+)$/],A_=["https://f.gkd.li/","https://github.com/user-attachments/files/","https://github.com/gkd-kit/inspect/files/"],N3=e=>A_.some(t=>e.startsWith(t)),mp=e=>{var t;if(typeof e=="string"){if(e.startsWith(location.origin)){const n=+new URL(e).pathname.substring(1);if(Number.isSafeInteger(n)&&n>0)return n}for(const n of O_){const r=(t=e.match(n))==null?void 0:t[1];if(r)return+r}}},$_=/^https:\/\/github\.com\/gkd-kit\/inspect\/assets\/[0-9]+\/([0-9a-z-]+)$/,I_=/^https:\/\/github\.com\/user-attachments\/assets\/([0-9a-z-]+)$/,k_=e=>{var t,n;return((t=e.match($_))==null?void 0:t[1])||((n=e.match(I_))==null?void 0:n[1])},H3=e=>location.origin+`/i/${e}`,j3=e=>`https://e.gkd.li/${e}`,M_=e=>`https://github.com/user-attachments/files/${e}/file.zip`;var xi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function z_(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function W3(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var o=!1;try{o=this instanceof r}catch{}return o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}function wi(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var xa={exports:{}};var Xu;function F_(){return Xu||(Xu=1,(function(e,t){(function(n){e.exports=n()})(function(){return(function n(r,o,i){function s(u,c){if(!o[u]){if(!r[u]){var f=typeof wi=="function"&&wi;if(!c&&f)return f(u,!0);if(a)return a(u,!0);var d=new Error("Cannot find module '"+u+"'");throw d.code="MODULE_NOT_FOUND",d}var h=o[u]={exports:{}};r[u][0].call(h.exports,function(p){var g=r[u][1][p];return s(g||p)},h,h.exports,n,r,o,i)}return o[u].exports}for(var a=typeof wi=="function"&&wi,l=0;l<i.length;l++)s(i[l]);return s})({1:[function(n,r,o){(function(i){var s=i.MutationObserver||i.WebKitMutationObserver,a;if(s){var l=0,u=new s(p),c=i.document.createTextNode("");u.observe(c,{characterData:!0}),a=function(){c.data=l=++l%2}}else if(!i.setImmediate&&typeof i.MessageChannel<"u"){var f=new i.MessageChannel;f.port1.onmessage=p,a=function(){f.port2.postMessage(0)}}else"document"in i&&"onreadystatechange"in i.document.createElement("script")?a=function(){var y=i.document.createElement("script");y.onreadystatechange=function(){p(),y.onreadystatechange=null,y.parentNode.removeChild(y),y=null},i.document.documentElement.appendChild(y)}:a=function(){setTimeout(p,0)};var d,h=[];function p(){d=!0;for(var y,x,C=h.length;C;){for(x=h,h=[],y=-1;++y<C;)x[y]();C=h.length}d=!1}r.exports=g;function g(y){h.push(y)===1&&!d&&a()}}).call(this,typeof xi<"u"?xi:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(n,r,o){var i=n(1);function s(){}var a={},l=["REJECTED"],u=["FULFILLED"],c=["PENDING"];r.exports=f;function f(T){if(typeof T!="function")throw new TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,T!==s&&g(this,T)}f.prototype.catch=function(T){return this.then(null,T)},f.prototype.then=function(T,_){if(typeof T!="function"&&this.state===u||typeof _!="function"&&this.state===l)return this;var m=new this.constructor(s);if(this.state!==c){var E=this.state===u?T:_;h(m,E,this.outcome)}else this.queue.push(new d(m,T,_));return m};function d(T,_,m){this.promise=T,typeof _=="function"&&(this.onFulfilled=_,this.callFulfilled=this.otherCallFulfilled),typeof m=="function"&&(this.onRejected=m,this.callRejected=this.otherCallRejected)}d.prototype.callFulfilled=function(T){a.resolve(this.promise,T)},d.prototype.otherCallFulfilled=function(T){h(this.promise,this.onFulfilled,T)},d.prototype.callRejected=function(T){a.reject(this.promise,T)},d.prototype.otherCallRejected=function(T){h(this.promise,this.onRejected,T)};function h(T,_,m){i(function(){var E;try{E=_(m)}catch(P){return a.reject(T,P)}E===T?a.reject(T,new TypeError("Cannot resolve promise with itself")):a.resolve(T,E)})}a.resolve=function(T,_){var m=y(p,_);if(m.status==="error")return a.reject(T,m.value);var E=m.value;if(E)g(T,E);else{T.state=u,T.outcome=_;for(var P=-1,B=T.queue.length;++P<B;)T.queue[P].callFulfilled(_)}return T},a.reject=function(T,_){T.state=l,T.outcome=_;for(var m=-1,E=T.queue.length;++m<E;)T.queue[m].callRejected(_);return T};function p(T){var _=T&&T.then;if(T&&(typeof T=="object"||typeof T=="function")&&typeof _=="function")return function(){_.apply(T,arguments)}}function g(T,_){var m=!1;function E(F){m||(m=!0,a.reject(T,F))}function P(F){m||(m=!0,a.resolve(T,F))}function B(){_(P,E)}var G=y(B);G.status==="error"&&E(G.value)}function y(T,_){var m={};try{m.value=T(_),m.status="success"}catch(E){m.status="error",m.value=E}return m}f.resolve=x;function x(T){return T instanceof this?T:a.resolve(new this(s),T)}f.reject=C;function C(T){var _=new this(s);return a.reject(_,T)}f.all=A;function A(T){var _=this;if(Object.prototype.toString.call(T)!=="[object Array]")return this.reject(new TypeError("must be an array"));var m=T.length,E=!1;if(!m)return this.resolve([]);for(var P=new Array(m),B=0,G=-1,F=new this(s);++G<m;)ne(T[G],G);return F;function ne(q,oe){_.resolve(q).then(ie,function(te){E||(E=!0,a.reject(F,te))});function ie(te){P[oe]=te,++B===m&&!E&&(E=!0,a.resolve(F,P))}}}f.race=O;function O(T){var _=this;if(Object.prototype.toString.call(T)!=="[object Array]")return this.reject(new TypeError("must be an array"));var m=T.length,E=!1;if(!m)return this.resolve([]);for(var P=-1,B=new this(s);++P<m;)G(T[P]);return B;function G(F){_.resolve(F).then(function(ne){E||(E=!0,a.resolve(B,ne))},function(ne){E||(E=!0,a.reject(B,ne))})}}},{1:1}],3:[function(n,r,o){(function(i){typeof i.Promise!="function"&&(i.Promise=n(2))}).call(this,typeof xi<"u"?xi:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(n,r,o){var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(v){return typeof v}:function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v};function s(v,R){if(!(v instanceof R))throw new TypeError("Cannot call a class as a function")}function a(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch{return}}var l=a();function u(){try{if(!l||!l.open)return!1;var v=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),R=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!v||R)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function c(v,R){v=v||[],R=R||{};try{return new Blob(v,R)}catch($){if($.name!=="TypeError")throw $;for(var b=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,I=new b,M=0;M<v.length;M+=1)I.append(v[M]);return I.getBlob(R.type)}}typeof Promise>"u"&&n(3);var f=Promise;function d(v,R){R&&v.then(function(b){R(null,b)},function(b){R(b)})}function h(v,R,b){typeof R=="function"&&v.then(R),typeof b=="function"&&v.catch(b)}function p(v){return typeof v!="string"&&(console.warn(v+" used as a key, but it is not a string."),v=String(v)),v}function g(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var y="local-forage-detect-blob-support",x=void 0,C={},A=Object.prototype.toString,O="readonly",T="readwrite";function _(v){for(var R=v.length,b=new ArrayBuffer(R),I=new Uint8Array(b),M=0;M<R;M++)I[M]=v.charCodeAt(M);return b}function m(v){return new f(function(R){var b=v.transaction(y,T),I=c([""]);b.objectStore(y).put(I,"key"),b.onabort=function(M){M.preventDefault(),M.stopPropagation(),R(!1)},b.oncomplete=function(){var M=navigator.userAgent.match(/Chrome\/(\d+)/),$=navigator.userAgent.match(/Edge\//);R($||!M||parseInt(M[1],10)>=43)}}).catch(function(){return!1})}function E(v){return typeof x=="boolean"?f.resolve(x):m(v).then(function(R){return x=R,x})}function P(v){var R=C[v.name],b={};b.promise=new f(function(I,M){b.resolve=I,b.reject=M}),R.deferredOperations.push(b),R.dbReady?R.dbReady=R.dbReady.then(function(){return b.promise}):R.dbReady=b.promise}function B(v){var R=C[v.name],b=R.deferredOperations.pop();if(b)return b.resolve(),b.promise}function G(v,R){var b=C[v.name],I=b.deferredOperations.pop();if(I)return I.reject(R),I.promise}function F(v,R){return new f(function(b,I){if(C[v.name]=C[v.name]||Fe(),v.db)if(R)P(v),v.db.close();else return b(v.db);var M=[v.name];R&&M.push(v.version);var $=l.open.apply(l,M);R&&($.onupgradeneeded=function(j){var X=$.result;try{X.createObjectStore(v.storeName),j.oldVersion<=1&&X.createObjectStore(y)}catch(J){if(J.name==="ConstraintError")console.warn('The database "'+v.name+'" has been upgraded from version '+j.oldVersion+" to version "+j.newVersion+', but the storage "'+v.storeName+'" already exists.');else throw J}}),$.onerror=function(j){j.preventDefault(),I($.error)},$.onsuccess=function(){var j=$.result;j.onversionchange=function(X){X.target.close()},b(j),B(v)}})}function ne(v){return F(v,!1)}function q(v){return F(v,!0)}function oe(v,R){if(!v.db)return!0;var b=!v.db.objectStoreNames.contains(v.storeName),I=v.version<v.db.version,M=v.version>v.db.version;if(I&&(v.version!==R&&console.warn('The database "'+v.name+`" can't be downgraded from version `+v.db.version+" to version "+v.version+"."),v.version=v.db.version),M||b){if(b){var $=v.db.version+1;$>v.version&&(v.version=$)}return!0}return!1}function ie(v){return new f(function(R,b){var I=new FileReader;I.onerror=b,I.onloadend=function(M){var $=btoa(M.target.result||"");R({__local_forage_encoded_blob:!0,data:$,type:v.type})},I.readAsBinaryString(v)})}function te(v){var R=_(atob(v.data));return c([R],{type:v.type})}function ve(v){return v&&v.__local_forage_encoded_blob}function Pe(v){var R=this,b=R._initReady().then(function(){var I=C[R._dbInfo.name];if(I&&I.dbReady)return I.dbReady});return h(b,v,v),b}function $e(v){P(v);for(var R=C[v.name],b=R.forages,I=0;I<b.length;I++){var M=b[I];M._dbInfo.db&&(M._dbInfo.db.close(),M._dbInfo.db=null)}return v.db=null,ne(v).then(function($){return v.db=$,oe(v)?q(v):$}).then(function($){v.db=R.db=$;for(var j=0;j<b.length;j++)b[j]._dbInfo.db=$}).catch(function($){throw G(v,$),$})}function Oe(v,R,b,I){I===void 0&&(I=1);try{var M=v.db.transaction(v.storeName,R);b(null,M)}catch($){if(I>0&&(!v.db||$.name==="InvalidStateError"||$.name==="NotFoundError"))return f.resolve().then(function(){if(!v.db||$.name==="NotFoundError"&&!v.db.objectStoreNames.contains(v.storeName)&&v.version<=v.db.version)return v.db&&(v.version=v.db.version+1),q(v)}).then(function(){return $e(v).then(function(){Oe(v,R,b,I-1)})}).catch(b);b($)}}function Fe(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function it(v){var R=this,b={db:null};if(v)for(var I in v)b[I]=v[I];var M=C[b.name];M||(M=Fe(),C[b.name]=M),M.forages.push(R),R._initReady||(R._initReady=R.ready,R.ready=Pe);var $=[];function j(){return f.resolve()}for(var X=0;X<M.forages.length;X++){var J=M.forages[X];J!==R&&$.push(J._initReady().catch(j))}var Q=M.forages.slice(0);return f.all($).then(function(){return b.db=M.db,ne(b)}).then(function(re){return b.db=re,oe(b,R._defaultConfig.version)?q(b):re}).then(function(re){b.db=M.db=re,R._dbInfo=b;for(var me=0;me<Q.length;me++){var Ie=Q[me];Ie!==R&&(Ie._dbInfo.db=b.db,Ie._dbInfo.version=b.version)}})}function st(v,R){var b=this;v=p(v);var I=new f(function(M,$){b.ready().then(function(){Oe(b._dbInfo,O,function(j,X){if(j)return $(j);try{var J=X.objectStore(b._dbInfo.storeName),Q=J.get(v);Q.onsuccess=function(){var re=Q.result;re===void 0&&(re=null),ve(re)&&(re=te(re)),M(re)},Q.onerror=function(){$(Q.error)}}catch(re){$(re)}})}).catch($)});return d(I,R),I}function bt(v,R){var b=this,I=new f(function(M,$){b.ready().then(function(){Oe(b._dbInfo,O,function(j,X){if(j)return $(j);try{var J=X.objectStore(b._dbInfo.storeName),Q=J.openCursor(),re=1;Q.onsuccess=function(){var me=Q.result;if(me){var Ie=me.value;ve(Ie)&&(Ie=te(Ie));var He=v(Ie,me.key,re++);He!==void 0?M(He):me.continue()}else M()},Q.onerror=function(){$(Q.error)}}catch(me){$(me)}})}).catch($)});return d(I,R),I}function Ee(v,R,b){var I=this;v=p(v);var M=new f(function($,j){var X;I.ready().then(function(){return X=I._dbInfo,A.call(R)==="[object Blob]"?E(X.db).then(function(J){return J?R:ie(R)}):R}).then(function(J){Oe(I._dbInfo,T,function(Q,re){if(Q)return j(Q);try{var me=re.objectStore(I._dbInfo.storeName);J===null&&(J=void 0);var Ie=me.put(J,v);re.oncomplete=function(){J===void 0&&(J=null),$(J)},re.onabort=re.onerror=function(){var He=Ie.error?Ie.error:Ie.transaction.error;j(He)}}catch(He){j(He)}})}).catch(j)});return d(M,b),M}function D(v,R){var b=this;v=p(v);var I=new f(function(M,$){b.ready().then(function(){Oe(b._dbInfo,T,function(j,X){if(j)return $(j);try{var J=X.objectStore(b._dbInfo.storeName),Q=J.delete(v);X.oncomplete=function(){M()},X.onerror=function(){$(Q.error)},X.onabort=function(){var re=Q.error?Q.error:Q.transaction.error;$(re)}}catch(re){$(re)}})}).catch($)});return d(I,R),I}function le(v){var R=this,b=new f(function(I,M){R.ready().then(function(){Oe(R._dbInfo,T,function($,j){if($)return M($);try{var X=j.objectStore(R._dbInfo.storeName),J=X.clear();j.oncomplete=function(){I()},j.onabort=j.onerror=function(){var Q=J.error?J.error:J.transaction.error;M(Q)}}catch(Q){M(Q)}})}).catch(M)});return d(b,v),b}function K(v){var R=this,b=new f(function(I,M){R.ready().then(function(){Oe(R._dbInfo,O,function($,j){if($)return M($);try{var X=j.objectStore(R._dbInfo.storeName),J=X.count();J.onsuccess=function(){I(J.result)},J.onerror=function(){M(J.error)}}catch(Q){M(Q)}})}).catch(M)});return d(b,v),b}function pe(v,R){var b=this,I=new f(function(M,$){if(v<0){M(null);return}b.ready().then(function(){Oe(b._dbInfo,O,function(j,X){if(j)return $(j);try{var J=X.objectStore(b._dbInfo.storeName),Q=!1,re=J.openKeyCursor();re.onsuccess=function(){var me=re.result;if(!me){M(null);return}v===0||Q?M(me.key):(Q=!0,me.advance(v))},re.onerror=function(){$(re.error)}}catch(me){$(me)}})}).catch($)});return d(I,R),I}function Te(v){var R=this,b=new f(function(I,M){R.ready().then(function(){Oe(R._dbInfo,O,function($,j){if($)return M($);try{var X=j.objectStore(R._dbInfo.storeName),J=X.openKeyCursor(),Q=[];J.onsuccess=function(){var re=J.result;if(!re){I(Q);return}Q.push(re.key),re.continue()},J.onerror=function(){M(J.error)}}catch(re){M(re)}})}).catch(M)});return d(b,v),b}function w(v,R){R=g.apply(this,arguments);var b=this.config();v=typeof v!="function"&&v||{},v.name||(v.name=v.name||b.name,v.storeName=v.storeName||b.storeName);var I=this,M;if(!v.name)M=f.reject("Invalid arguments");else{var $=v.name===b.name&&I._dbInfo.db,j=$?f.resolve(I._dbInfo.db):ne(v).then(function(X){var J=C[v.name],Q=J.forages;J.db=X;for(var re=0;re<Q.length;re++)Q[re]._dbInfo.db=X;return X});v.storeName?M=j.then(function(X){if(X.objectStoreNames.contains(v.storeName)){var J=X.version+1;P(v);var Q=C[v.name],re=Q.forages;X.close();for(var me=0;me<re.length;me++){var Ie=re[me];Ie._dbInfo.db=null,Ie._dbInfo.version=J}var He=new f(function(Ve,ut){var at=l.open(v.name,J);at.onerror=function(Yt){var eo=at.result;eo.close(),ut(Yt)},at.onupgradeneeded=function(){var Yt=at.result;Yt.deleteObjectStore(v.storeName)},at.onsuccess=function(){var Yt=at.result;Yt.close(),Ve(Yt)}});return He.then(function(Ve){Q.db=Ve;for(var ut=0;ut<re.length;ut++){var at=re[ut];at._dbInfo.db=Ve,B(at._dbInfo)}}).catch(function(Ve){throw(G(v,Ve)||f.resolve()).catch(function(){}),Ve})}}):M=j.then(function(X){P(v);var J=C[v.name],Q=J.forages;X.close();for(var re=0;re<Q.length;re++){var me=Q[re];me._dbInfo.db=null}var Ie=new f(function(He,Ve){var ut=l.deleteDatabase(v.name);ut.onerror=function(){var at=ut.result;at&&at.close(),Ve(ut.error)},ut.onblocked=function(){console.warn('dropInstance blocked for database "'+v.name+'" until all open connections are closed')},ut.onsuccess=function(){var at=ut.result;at&&at.close(),He(at)}});return Ie.then(function(He){J.db=He;for(var Ve=0;Ve<Q.length;Ve++){var ut=Q[Ve];B(ut._dbInfo)}}).catch(function(He){throw(G(v,He)||f.resolve()).catch(function(){}),He})})}return d(M,R),M}var S={_driver:"asyncStorage",_initStorage:it,_support:u(),iterate:bt,getItem:st,setItem:Ee,removeItem:D,clear:le,length:K,key:pe,keys:Te,dropInstance:w};function z(){return typeof openDatabase=="function"}var L="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",W="~~local_forage_type~",N=/^~~local_forage_type~([^~]+)~/,se="__lfsc__:",ee=se.length,U="arbf",H="blob",ge="si08",ce="ui08",be="uic8",ye="si16",Ae="si32",De="ur16",ze="ui32",ct="fl32",dt="fl64",yt=ee+U.length,xt=Object.prototype.toString;function tn(v){var R=v.length*.75,b=v.length,I,M=0,$,j,X,J;v[v.length-1]==="="&&(R--,v[v.length-2]==="="&&R--);var Q=new ArrayBuffer(R),re=new Uint8Array(Q);for(I=0;I<b;I+=4)$=L.indexOf(v[I]),j=L.indexOf(v[I+1]),X=L.indexOf(v[I+2]),J=L.indexOf(v[I+3]),re[M++]=$<<2|j>>4,re[M++]=(j&15)<<4|X>>2,re[M++]=(X&3)<<6|J&63;return Q}function Ht(v){var R=new Uint8Array(v),b="",I;for(I=0;I<R.length;I+=3)b+=L[R[I]>>2],b+=L[(R[I]&3)<<4|R[I+1]>>4],b+=L[(R[I+1]&15)<<2|R[I+2]>>6],b+=L[R[I+2]&63];return R.length%3===2?b=b.substring(0,b.length-1)+"=":R.length%3===1&&(b=b.substring(0,b.length-2)+"=="),b}function St(v,R){var b="";if(v&&(b=xt.call(v)),v&&(b==="[object ArrayBuffer]"||v.buffer&&xt.call(v.buffer)==="[object ArrayBuffer]")){var I,M=se;v instanceof ArrayBuffer?(I=v,M+=U):(I=v.buffer,b==="[object Int8Array]"?M+=ge:b==="[object Uint8Array]"?M+=ce:b==="[object Uint8ClampedArray]"?M+=be:b==="[object Int16Array]"?M+=ye:b==="[object Uint16Array]"?M+=De:b==="[object Int32Array]"?M+=Ae:b==="[object Uint32Array]"?M+=ze:b==="[object Float32Array]"?M+=ct:b==="[object Float64Array]"?M+=dt:R(new Error("Failed to get type for BinaryArray"))),R(M+Ht(I))}else if(b==="[object Blob]"){var $=new FileReader;$.onload=function(){var j=W+v.type+"~"+Ht(this.result);R(se+H+j)},$.readAsArrayBuffer(v)}else try{R(JSON.stringify(v))}catch(j){console.error("Couldn't convert value into a JSON string: ",v),R(null,j)}}function Y(v){if(v.substring(0,ee)!==se)return JSON.parse(v);var R=v.substring(yt),b=v.substring(ee,yt),I;if(b===H&&N.test(R)){var M=R.match(N);I=M[1],R=R.substring(M[0].length)}var $=tn(R);switch(b){case U:return $;case H:return c([$],{type:I});case ge:return new Int8Array($);case ce:return new Uint8Array($);case be:return new Uint8ClampedArray($);case ye:return new Int16Array($);case De:return new Uint16Array($);case Ae:return new Int32Array($);case ze:return new Uint32Array($);case ct:return new Float32Array($);case dt:return new Float64Array($);default:throw new Error("Unkown type: "+b)}}var he={serialize:St,deserialize:Y,stringToBuffer:tn,bufferToString:Ht};function Ce(v,R,b,I){v.executeSql("CREATE TABLE IF NOT EXISTS "+R.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],b,I)}function Ge(v){var R=this,b={db:null};if(v)for(var I in v)b[I]=typeof v[I]!="string"?v[I].toString():v[I];var M=new f(function($,j){try{b.db=openDatabase(b.name,String(b.version),b.description,b.size)}catch(X){return j(X)}b.db.transaction(function(X){Ce(X,b,function(){R._dbInfo=b,$()},function(J,Q){j(Q)})},j)});return b.serializer=he,M}function Ue(v,R,b,I,M,$){v.executeSql(b,I,M,function(j,X){X.code===X.SYNTAX_ERR?j.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[R.storeName],function(J,Q){Q.rows.length?$(J,X):Ce(J,R,function(){J.executeSql(b,I,M,$)},$)},$):$(j,X)},$)}function Et(v,R){var b=this;v=p(v);var I=new f(function(M,$){b.ready().then(function(){var j=b._dbInfo;j.db.transaction(function(X){Ue(X,j,"SELECT * FROM "+j.storeName+" WHERE key = ? LIMIT 1",[v],function(J,Q){var re=Q.rows.length?Q.rows.item(0).value:null;re&&(re=j.serializer.deserialize(re)),M(re)},function(J,Q){$(Q)})})}).catch($)});return d(I,R),I}function jt(v,R){var b=this,I=new f(function(M,$){b.ready().then(function(){var j=b._dbInfo;j.db.transaction(function(X){Ue(X,j,"SELECT * FROM "+j.storeName,[],function(J,Q){for(var re=Q.rows,me=re.length,Ie=0;Ie<me;Ie++){var He=re.item(Ie),Ve=He.value;if(Ve&&(Ve=j.serializer.deserialize(Ve)),Ve=v(Ve,He.key,Ie+1),Ve!==void 0){M(Ve);return}}M()},function(J,Q){$(Q)})})}).catch($)});return d(I,R),I}function Ye(v,R,b,I){var M=this;v=p(v);var $=new f(function(j,X){M.ready().then(function(){R===void 0&&(R=null);var J=R,Q=M._dbInfo;Q.serializer.serialize(R,function(re,me){me?X(me):Q.db.transaction(function(Ie){Ue(Ie,Q,"INSERT OR REPLACE INTO "+Q.storeName+" (key, value) VALUES (?, ?)",[v,re],function(){j(J)},function(He,Ve){X(Ve)})},function(Ie){if(Ie.code===Ie.QUOTA_ERR){if(I>0){j(Ye.apply(M,[v,J,b,I-1]));return}X(Ie)}})})}).catch(X)});return d($,b),$}function zt(v,R,b){return Ye.apply(this,[v,R,b,1])}function un(v,R){var b=this;v=p(v);var I=new f(function(M,$){b.ready().then(function(){var j=b._dbInfo;j.db.transaction(function(X){Ue(X,j,"DELETE FROM "+j.storeName+" WHERE key = ?",[v],function(){M()},function(J,Q){$(Q)})})}).catch($)});return d(I,R),I}function Rs(v){var R=this,b=new f(function(I,M){R.ready().then(function(){var $=R._dbInfo;$.db.transaction(function(j){Ue(j,$,"DELETE FROM "+$.storeName,[],function(){I()},function(X,J){M(J)})})}).catch(M)});return d(b,v),b}function Ps(v){var R=this,b=new f(function(I,M){R.ready().then(function(){var $=R._dbInfo;$.db.transaction(function(j){Ue(j,$,"SELECT COUNT(key) as c FROM "+$.storeName,[],function(X,J){var Q=J.rows.item(0).c;I(Q)},function(X,J){M(J)})})}).catch(M)});return d(b,v),b}function Os(v,R){var b=this,I=new f(function(M,$){b.ready().then(function(){var j=b._dbInfo;j.db.transaction(function(X){Ue(X,j,"SELECT key FROM "+j.storeName+" WHERE id = ? LIMIT 1",[v+1],function(J,Q){var re=Q.rows.length?Q.rows.item(0).key:null;M(re)},function(J,Q){$(Q)})})}).catch($)});return d(I,R),I}function As(v){var R=this,b=new f(function(I,M){R.ready().then(function(){var $=R._dbInfo;$.db.transaction(function(j){Ue(j,$,"SELECT key FROM "+$.storeName,[],function(X,J){for(var Q=[],re=0;re<J.rows.length;re++)Q.push(J.rows.item(re).key);I(Q)},function(X,J){M(J)})})}).catch(M)});return d(b,v),b}function $s(v){return new f(function(R,b){v.transaction(function(I){I.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(M,$){for(var j=[],X=0;X<$.rows.length;X++)j.push($.rows.item(X).name);R({db:v,storeNames:j})},function(M,$){b($)})},function(I){b(I)})})}function Is(v,R){R=g.apply(this,arguments);var b=this.config();v=typeof v!="function"&&v||{},v.name||(v.name=v.name||b.name,v.storeName=v.storeName||b.storeName);var I=this,M;return v.name?M=new f(function($){var j;v.name===b.name?j=I._dbInfo.db:j=openDatabase(v.name,"","",0),v.storeName?$({db:j,storeNames:[v.storeName]}):$($s(j))}).then(function($){return new f(function(j,X){$.db.transaction(function(J){function Q(He){return new f(function(Ve,ut){J.executeSql("DROP TABLE IF EXISTS "+He,[],function(){Ve()},function(at,Yt){ut(Yt)})})}for(var re=[],me=0,Ie=$.storeNames.length;me<Ie;me++)re.push(Q($.storeNames[me]));f.all(re).then(function(){j()}).catch(function(He){X(He)})},function(J){X(J)})})}):M=f.reject("Invalid arguments"),d(M,R),M}var ks={_driver:"webSQLStorage",_initStorage:Ge,_support:z(),iterate:jt,getItem:Et,setItem:zt,removeItem:un,clear:Rs,length:Ps,key:Os,keys:As,dropInstance:Is};function Ms(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function Jo(v,R){var b=v.name+"/";return v.storeName!==R.storeName&&(b+=v.storeName+"/"),b}function zs(){var v="_localforage_support_test";try{return localStorage.setItem(v,!0),localStorage.removeItem(v),!1}catch{return!0}}function Fs(){return!zs()||localStorage.length>0}function Bs(v){var R=this,b={};if(v)for(var I in v)b[I]=v[I];return b.keyPrefix=Jo(v,R._defaultConfig),Fs()?(R._dbInfo=b,b.serializer=he,f.resolve()):f.reject()}function Ls(v){var R=this,b=R.ready().then(function(){for(var I=R._dbInfo.keyPrefix,M=localStorage.length-1;M>=0;M--){var $=localStorage.key(M);$.indexOf(I)===0&&localStorage.removeItem($)}});return d(b,v),b}function Ds(v,R){var b=this;v=p(v);var I=b.ready().then(function(){var M=b._dbInfo,$=localStorage.getItem(M.keyPrefix+v);return $&&($=M.serializer.deserialize($)),$});return d(I,R),I}function Ns(v,R){var b=this,I=b.ready().then(function(){for(var M=b._dbInfo,$=M.keyPrefix,j=$.length,X=localStorage.length,J=1,Q=0;Q<X;Q++){var re=localStorage.key(Q);if(re.indexOf($)===0){var me=localStorage.getItem(re);if(me&&(me=M.serializer.deserialize(me)),me=v(me,re.substring(j),J++),me!==void 0)return me}}});return d(I,R),I}function Hs(v,R){var b=this,I=b.ready().then(function(){var M=b._dbInfo,$;try{$=localStorage.key(v)}catch{$=null}return $&&($=$.substring(M.keyPrefix.length)),$});return d(I,R),I}function js(v){var R=this,b=R.ready().then(function(){for(var I=R._dbInfo,M=localStorage.length,$=[],j=0;j<M;j++){var X=localStorage.key(j);X.indexOf(I.keyPrefix)===0&&$.push(X.substring(I.keyPrefix.length))}return $});return d(b,v),b}function wp(v){var R=this,b=R.keys().then(function(I){return I.length});return d(b,v),b}function Cp(v,R){var b=this;v=p(v);var I=b.ready().then(function(){var M=b._dbInfo;localStorage.removeItem(M.keyPrefix+v)});return d(I,R),I}function _p(v,R,b){var I=this;v=p(v);var M=I.ready().then(function(){R===void 0&&(R=null);var $=R;return new f(function(j,X){var J=I._dbInfo;J.serializer.serialize(R,function(Q,re){if(re)X(re);else try{localStorage.setItem(J.keyPrefix+v,Q),j($)}catch(me){(me.name==="QuotaExceededError"||me.name==="NS_ERROR_DOM_QUOTA_REACHED")&&X(me),X(me)}})})});return d(M,b),M}function Sp(v,R){if(R=g.apply(this,arguments),v=typeof v!="function"&&v||{},!v.name){var b=this.config();v.name=v.name||b.name,v.storeName=v.storeName||b.storeName}var I=this,M;return v.name?M=new f(function($){v.storeName?$(Jo(v,I._defaultConfig)):$(v.name+"/")}).then(function($){for(var j=localStorage.length-1;j>=0;j--){var X=localStorage.key(j);X.indexOf($)===0&&localStorage.removeItem(X)}}):M=f.reject("Invalid arguments"),d(M,R),M}var Ep={_driver:"localStorageWrapper",_initStorage:Bs,_support:Ms(),iterate:Ns,getItem:Ds,setItem:_p,removeItem:Cp,clear:Ls,length:wp,key:Hs,keys:js,dropInstance:Sp},Tp=function(R,b){return R===b||typeof R=="number"&&typeof b=="number"&&isNaN(R)&&isNaN(b)},Rp=function(R,b){for(var I=R.length,M=0;M<I;){if(Tp(R[M],b))return!0;M++}return!1},Bl=Array.isArray||function(v){return Object.prototype.toString.call(v)==="[object Array]"},Qr={},Ll={},Er={INDEXEDDB:S,WEBSQL:ks,LOCALSTORAGE:Ep},Pp=[Er.INDEXEDDB._driver,Er.WEBSQL._driver,Er.LOCALSTORAGE._driver],Qo=["dropInstance"],Ws=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(Qo),Op={description:"",driver:Pp.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function Ap(v,R){v[R]=function(){var b=arguments;return v.ready().then(function(){return v[R].apply(v,b)})}}function Vs(){for(var v=1;v<arguments.length;v++){var R=arguments[v];if(R)for(var b in R)R.hasOwnProperty(b)&&(Bl(R[b])?arguments[0][b]=R[b].slice():arguments[0][b]=R[b])}return arguments[0]}var $p=(function(){function v(R){s(this,v);for(var b in Er)if(Er.hasOwnProperty(b)){var I=Er[b],M=I._driver;this[b]=M,Qr[M]||this.defineDriver(I)}this._defaultConfig=Vs({},Op),this._config=Vs({},this._defaultConfig,R),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return v.prototype.config=function(b){if((typeof b>"u"?"undefined":i(b))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var I in b){if(I==="storeName"&&(b[I]=b[I].replace(/\W/g,"_")),I==="version"&&typeof b[I]!="number")return new Error("Database version must be a number.");this._config[I]=b[I]}return"driver"in b&&b.driver?this.setDriver(this._config.driver):!0}else return typeof b=="string"?this._config[b]:this._config},v.prototype.defineDriver=function(b,I,M){var $=new f(function(j,X){try{var J=b._driver,Q=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!b._driver){X(Q);return}for(var re=Ws.concat("_initStorage"),me=0,Ie=re.length;me<Ie;me++){var He=re[me],Ve=!Rp(Qo,He);if((Ve||b[He])&&typeof b[He]!="function"){X(Q);return}}var ut=function(){for(var eo=function(Mp){return function(){var zp=new Error("Method "+Mp+" is not implemented by the current driver"),Dl=f.reject(zp);return d(Dl,arguments[arguments.length-1]),Dl}},Us=0,kp=Qo.length;Us<kp;Us++){var Gs=Qo[Us];b[Gs]||(b[Gs]=eo(Gs))}};ut();var at=function(eo){Qr[J]&&console.info("Redefining LocalForage driver: "+J),Qr[J]=b,Ll[J]=eo,j()};"_support"in b?b._support&&typeof b._support=="function"?b._support().then(at,X):at(!!b._support):at(!0)}catch(Yt){X(Yt)}});return h($,I,M),$},v.prototype.driver=function(){return this._driver||null},v.prototype.getDriver=function(b,I,M){var $=Qr[b]?f.resolve(Qr[b]):f.reject(new Error("Driver not found."));return h($,I,M),$},v.prototype.getSerializer=function(b){var I=f.resolve(he);return h(I,b),I},v.prototype.ready=function(b){var I=this,M=I._driverSet.then(function(){return I._ready===null&&(I._ready=I._initDriver()),I._ready});return h(M,b,b),M},v.prototype.setDriver=function(b,I,M){var $=this;Bl(b)||(b=[b]);var j=this._getSupportedDrivers(b);function X(){$._config.driver=$.driver()}function J(me){return $._extend(me),X(),$._ready=$._initStorage($._config),$._ready}function Q(me){return function(){var Ie=0;function He(){for(;Ie<me.length;){var Ve=me[Ie];return Ie++,$._dbInfo=null,$._ready=null,$.getDriver(Ve).then(J).catch(He)}X();var ut=new Error("No available storage method found.");return $._driverSet=f.reject(ut),$._driverSet}return He()}}var re=this._driverSet!==null?this._driverSet.catch(function(){return f.resolve()}):f.resolve();return this._driverSet=re.then(function(){var me=j[0];return $._dbInfo=null,$._ready=null,$.getDriver(me).then(function(Ie){$._driver=Ie._driver,X(),$._wrapLibraryMethodsWithReady(),$._initDriver=Q(j)})}).catch(function(){X();var me=new Error("No available storage method found.");return $._driverSet=f.reject(me),$._driverSet}),h(this._driverSet,I,M),this._driverSet},v.prototype.supports=function(b){return!!Ll[b]},v.prototype._extend=function(b){Vs(this,b)},v.prototype._getSupportedDrivers=function(b){for(var I=[],M=0,$=b.length;M<$;M++){var j=b[M];this.supports(j)&&I.push(j)}return I},v.prototype._wrapLibraryMethodsWithReady=function(){for(var b=0,I=Ws.length;b<I;b++)Ap(this,Ws[b])},v.prototype.createInstance=function(b){return new v(b)},v})(),Ip=new $p;r.exports=Ip},{3:3}]},{},[4])(4)})})(xa)),xa.exports}var B_=F_();const Zu=z_(B_),bp=e=>e,L_=(e,t)=>{try{return e()}catch{return t()}},D_=(e,t,n=bp)=>{const r=localStorage.getItem(e),o=r?L_(()=>n(JSON.parse(r)),t):t(),i=jo(o);return tt(i,()=>{localStorage.setItem(e,JSON.stringify(Me(i)))}),i},Ts=async(e,t,n=bp)=>{const r=await Zu.getItem(e),o=jo(r?n(r):t());return tt(o,async()=>{await Zu.setItem(e,Me(o))}),o},N_=D_("settings",()=>({autoUploadImport:!1,ignoreUploadWarn:!1,ignoreWasmWarn:!1,maxShowNodeSize:2e3})),H_=await Ts("importTime",()=>({})),j_=await Ts("githubJpg",()=>({}),e=>(Object.keys(e).forEach(t=>{const n=e[t];if(n.startsWith("https://")){const r=k_(n);r?e[t]=r:delete e[t]}}),e)),W_=await Ts("githubZip",()=>({}),e=>(Object.keys(e).forEach(t=>{const n=e[t];if(gp(n))return;const r=mp(n);r?e[t]=r:delete e[t]}),e)),V_=await Ts("url",()=>({}),e=>(Object.keys(e).forEach(t=>{if(gp(t))return;const n=mp(t);n&&(e[n]=e[t]),delete e[t]}),e)),U_=()=>({settingsStore:N_,snapshotImportTime:H_,snapshotImageId:j_,snapshotImportId:W_,importSnapshotId:V_}),G_=Re({__name:"ErrorDlg",setup(e){const t=w_(),{settingsStore:n}=U_();return(r,o)=>{const i=$l,s=M2;return Jn(),zo(Ke,null,[Ze(i,{show:Le(t).githubErrorDlgVisible,"onUpdate:show":o[0]||(o[0]=a=>Le(t).githubErrorDlgVisible=a),preset:"dialog",title:"生成分享链接失败",type:"success"},{default:Ir(()=>[...o[4]||(o[4]=[pt("div",null,"生成分享链接需要以下条件",-1),pt("div",null,[nn(" 在当前浏览器登录 "),pt("a",{href:"https://github.com",target:"_blank",rel:"noopener noreferrer"}," github.com ")],-1)])]),_:1},8,["show"]),Ze(i,{show:Le(t).networkErrorDlgVisible,"onUpdate:show":o[1]||(o[1]=a=>Le(t).networkErrorDlgVisible=a),preset:"dialog",title:"访问其它域名资源失败",type:"success"},{default:Ir(()=>[...o[5]||(o[5]=[pt("div",null,"访问其它域名资源需要以下条件",-1),pt("div",null,[nn(" 1. 安装脚本管理器, 如 "),pt("a",{href:"https://violentmonkey.github.io/",target:"_blank",rel:"noopener noreferrer"}," Violentmonkey ")],-1),pt("div",null,[nn(" 2. 安装油猴脚本 "),pt("a",{href:"https://github.com/gkd-kit/network-extension",target:"_blank",rel:"noopener noreferrer"}," network-extension ")],-1),pt("div",null,"3. 在当前网站启用上述油猴脚本的API注入功能",-1),pt("div",null,[nn(" 4. 分享文件或导入快照额外需浏览器登录 "),pt("a",{href:"https://github.com",target:"_blank",rel:"noopener noreferrer"}," github.com ")],-1)])]),_:1},8,["show"]),Ze(i,{show:Le(t).wasmErrorDlgVisible,"onUpdate:show":o[3]||(o[3]=a=>Le(t).wasmErrorDlgVisible=a),preset:"dialog",title:"浏览器不支持或版本过低",type:"warning",positiveText:"确定"},{default:Ir(()=>[o[7]||(o[7]=pt("div",null,[nn(" 选择器的正则表达式一致性需要使用 "),pt("a",{href:"https://developer.chrome.com/blog/wasmgc?hl=zh-cn",target:"_blank",rel:"noopener noreferrer"},"WASM(GC)")],-1)),o[8]||(o[8]=pt("div",{"mt-10px":""},"请使用 Chrome119/Edge119/Firefox120 或最新版本",-1)),Ze(s,{checked:Le(n).ignoreWasmWarn,"onUpdate:checked":o[2]||(o[2]=a=>Le(n).ignoreWasmWarn=a),class:"mt-10px"},{default:Ir(()=>[...o[6]||(o[6]=[nn(" 不关注一致性, 不再提醒 ",-1)])]),_:1},8,["checked"])]),_:1},8,["show"])],64)}}}),K_=Re({__name:"App",setup(e){const t={common:{lineHeight:"20px"}},n=Hx(()=>{document.activeElement instanceof HTMLButtonElement&&document.activeElement.blur()},1e3);return Ct("click",()=>{n()}),(r,o)=>{const i=Fh;return Jn(),zo(Ke,null,[Ze(i,{abstract:"",locale:Le(W0),dateLocale:Le(Pb),themeOverrides:t},{default:Ir(()=>[Ze(G_),Ze(Le(lp))]),_:1},8,["locale","dateLocale"]),Ze(Le(T_))],64)}}}),q_="modulepreload",Y_=function(e,t){return new URL(e,t).href},Ju={},or=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let u=function(c){return Promise.all(c.map(f=>Promise.resolve(f).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};const s=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));o=u(n.map(c=>{if(c=Y_(c,r),c in Ju)return;Ju[c]=!0;const f=c.endsWith(".css"),d=f?'[rel="stylesheet"]':"";if(r)for(let p=s.length-1;p>=0;p--){const g=s[p];if(g.href===c&&(!f||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${d}`))return;const h=document.createElement("link");if(h.rel=f?"stylesheet":q_,f||(h.as="script"),h.crossOrigin="",h.href=c,l&&h.setAttribute("nonce",l),document.head.appendChild(h),f)return new Promise((p,g)=>{h.addEventListener("load",p),h.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return o.then(s=>{for(const a of s||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})},X_=(e,t)=>{try{return new URL(e,t)}catch{}},yp=new Set,ir=e=>(yp.add(e),e),Qu=e=>{var n;const t=(n=String(e.params.github_asset_id).match(/^\d+/))==null?void 0:n[0];return t?{path:"/i",query:{...e.query,url:M_(t)}}:{path:"/404"}},xp=WC({history:CC("/"),routes:[{path:"/",component:ir(()=>or(()=>import("./HomePage-Csw7C8jF.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url)),meta:{title:"首页"}},{path:"/snapshot/:snapshotId",name:"snapshot",component:ir(()=>or(()=>import("./SnapshotPage-gqLV0Ajt.js"),__vite__mapDeps([9,6,1,2,3,4,5,10,11,12,13,14]),import.meta.url)),meta:{title:"快照"}},{path:"/i",component:ir(()=>or(()=>import("./ImportPage-RGB4LPNf.js"),__vite__mapDeps([15,3,7,4]),import.meta.url)),meta:{title:"导入快照"}},{path:"/i/:github_asset_id",redirect:Qu},{path:"/import",redirect(e){return{path:"/i",query:e.query}}},{path:"/import/:github_asset_id",redirect:Qu},{path:"/device",component:ir(()=>or(()=>import("./DevicePage-LsTFe71m.js"),__vite__mapDeps([16,3,12,8,6,5,2]),import.meta.url)),beforeEnter(e,t,n){const r=X_(String(e.query.url));if(r){localStorage.setItem("device_link",r.origin);const o={...e.query};return delete o.url,n({...e,query:o})}n()},meta:{title:"连接设备"}},{path:"/selector",component:ir(()=>or(()=>import("./SelectorPage-17Z-Jk1F.js"),__vite__mapDeps([17,10,6,11,2]),import.meta.url)),meta:{title:"选择器"}},{path:"/svg",component:ir(()=>or(()=>import("./SvgPage-CGTHxB9M.js"),__vite__mapDeps([18,2]),import.meta.url)),meta:{title:"SVG"}},{path:"/:pathMatch(.*)*",component:ir(()=>or(()=>import("./_404Page-9FO_quL4.js"),__vite__mapDeps([19,13]),import.meta.url))}]});xp.beforeEach(e=>{document.title=String(e.meta.title||"GKD")});setTimeout(()=>{yp.forEach(e=>e())},3e3);const Z_=`GIT commit
908
- hash: 8cbf2b5852ed9d96c4776581563d8be68e4402c8
909
- date: 2026-01-20T17:15:41+08:00
910
- message: fix: n-tree scrollTo
907
+ `)])}const Yh="n-notification-api",Iw=Object.assign(Object.assign({},gt.props),{containerClass:String,containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean}),kw=Re({name:"NotificationProvider",props:Iw,setup(e){const{mergedClsPrefixRef:t}=qt(e),n=de([]),r={},o=new Set;function i(h){const p=Gr(),g=()=>{o.add(p),r[p]&&r[p].hide()},y=bn(Object.assign(Object.assign({},h),{key:p,destroy:g,hide:g,deactivate:g})),{max:x}=e;if(x&&n.value.length-o.size>=x){let C=!1,A=0;for(const O of n.value){if(!o.has(O.key)){r[O.key]&&(O.destroy(),C=!0);break}A++}C||n.value.splice(A,1)}return n.value.push(y),y}const s=["info","success","warning","error"].map(h=>p=>i(Object.assign(Object.assign({},p),{type:h})));function a(h){o.delete(h),n.value.splice(n.value.findIndex(p=>p.key===h),1)}const l=gt("Notification","-notification",$w,Sw,e,t),u={create:i,info:s[0],success:s[1],warning:s[2],error:s[3],open:f,destroyAll:d},c=de(0);et(Yh,u),et(ws,{props:e,mergedClsPrefixRef:t,mergedThemeRef:l,wipTransitionCountRef:c});function f(h){return i(h)}function d(){Object.values(n.value).forEach(h=>{h.hide()})}return Object.assign({mergedClsPrefix:t,notificationList:n,notificationRefs:r,handleAfterLeave:a},u)},render(){var e,t,n;const{placement:r}=this;return k(Ke,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.notificationList.length?k(Uo,{to:(n=this.to)!==null&&n!==void 0?n:"body"},k(Ew,{class:this.containerClass,style:this.containerStyle,scrollable:this.scrollable&&r!=="top"&&r!=="bottom",placement:r},{default:()=>this.notificationList.map(o=>k(Aw,Object.assign({ref:i=>{const s=o.key;i===null?delete this.notificationRefs[s]:this.notificationRefs[s]=i}},ds(o,["destroy","hide","deactivate"]),{internalKey:o.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:o.keepAliveOnHover===void 0?this.keepAliveOnHover:o.keepAliveOnHover})))})):null)}});function Mw(){const e=ke(Yh,null);return e===null&&Yr("use-notification","No outer `n-notification-provider` found."),e}const zw=Re({name:"InjectionExtractor",props:{onSetup:Function},setup(e,{slots:t}){var n;return(n=e.onSetup)===null||n===void 0||n.call(e),()=>{var r;return(r=t.default)===null||r===void 0?void 0:r.call(t)}}}),Fw={message:bw,notification:Mw,loadingBar:aw,dialog:B2,modal:G2};function Bw({providersAndProps:e,configProviderProps:t}){let n=Dd(o);const r={app:n};function o(){return k(Fh,Le(t),{default:()=>e.map(({type:a,Provider:l,props:u})=>k(l,Le(u),{default:()=>k(zw,{onSetup:()=>r[a]=Fw[a]()})}))})}let i;return qr&&(i=document.createElement("div"),document.body.appendChild(i),n.mount(i)),Object.assign({unmount:()=>{var a;if(n===null||i===null){jr("discrete","unmount call no need because discrete app has been unmounted");return}n.unmount(),(a=i.parentNode)===null||a===void 0||a.removeChild(i),i=null,n=null}},r)}function Lw(e,{configProviderProps:t,messageProviderProps:n,dialogProviderProps:r,notificationProviderProps:o,loadingBarProviderProps:i,modalProviderProps:s}={}){const a=[];return e.forEach(u=>{switch(u){case"message":a.push({type:u,Provider:mw,props:n});break;case"notification":a.push({type:u,Provider:kw,props:o});break;case"dialog":a.push({type:u,Provider:ew,props:r});break;case"loadingBar":a.push({type:u,Provider:sw,props:i});break;case"modal":a.push({type:u,Provider:ww,props:s})}}),Bw({providersAndProps:a,configProviderProps:t})}const $r=typeof document<"u";function Xh(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Dw(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Xh(e.default)}const je=Object.assign;function va(e,t){const n={};for(const r in t){const o=t[r];n[r]=ln(o)?o.map(e):e(o)}return n}const So=()=>{},ln=Array.isArray;function Ou(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}const Zh=/#/g,Nw=/&/g,Hw=/\//g,jw=/=/g,Ww=/\?/g,Jh=/\+/g,Vw=/%5B/g,Uw=/%5D/g,Qh=/%5E/g,Gw=/%60/g,ep=/%7B/g,Kw=/%7C/g,tp=/%7D/g,qw=/%20/g;function kl(e){return e==null?"":encodeURI(""+e).replace(Kw,"|").replace(Vw,"[").replace(Uw,"]")}function Yw(e){return kl(e).replace(ep,"{").replace(tp,"}").replace(Qh,"^")}function Ua(e){return kl(e).replace(Jh,"%2B").replace(qw,"+").replace(Zh,"%23").replace(Nw,"%26").replace(Gw,"`").replace(ep,"{").replace(tp,"}").replace(Qh,"^")}function Xw(e){return Ua(e).replace(jw,"%3D")}function Zw(e){return kl(e).replace(Zh,"%23").replace(Ww,"%3F")}function Jw(e){return Zw(e).replace(Hw,"%2F")}function Ho(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const Qw=/\/$/,eC=e=>e.replace(Qw,"");function ga(e,t,n="/"){let r,o={},i="",s="";const a=t.indexOf("#");let l=t.indexOf("?");return l=a>=0&&l>a?-1:l,l>=0&&(r=t.slice(0,l),i=t.slice(l,a>0?a:t.length),o=e(i.slice(1))),a>=0&&(r=r||t.slice(0,a),s=t.slice(a,t.length)),r=oC(r??t,n),{fullPath:r+i+s,path:r,query:o,hash:Ho(s)}}function tC(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Au(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function nC(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&Vr(t.matched[r],n.matched[o])&&np(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Vr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function np(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!rC(e[n],t[n]))return!1;return!0}function rC(e,t){return ln(e)?$u(e,t):ln(t)?$u(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function $u(e,t){return ln(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function oC(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let i=n.length-1,s,a;for(s=0;s<r.length;s++)if(a=r[s],a!==".")if(a==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(s).join("/")}const jn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Ga=(function(e){return e.pop="pop",e.push="push",e})({}),ma=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function iC(e){if(!e)if($r){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),eC(e)}const sC=/^[^#]+#/;function aC(e,t){return e.replace(sC,"#")+t}function lC(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 Cs=()=>({left:window.scrollX,top:window.scrollY});function cC(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=lC(o,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 Iu(e,t){return(history.state?history.state.position-t:-1)+e}const Ka=new Map;function uC(e,t){Ka.set(e,t)}function fC(e){const t=Ka.get(e);return Ka.delete(e),t}function dC(e){return typeof e=="string"||e&&typeof e=="object"}function rp(e){return typeof e=="string"||typeof e=="symbol"}let nt=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const op=Symbol("");nt.MATCHER_NOT_FOUND+"",nt.NAVIGATION_GUARD_REDIRECT+"",nt.NAVIGATION_ABORTED+"",nt.NAVIGATION_CANCELLED+"",nt.NAVIGATION_DUPLICATED+"";function Ur(e,t){return je(new Error,{type:e,[op]:!0},t)}function Sn(e,t){return e instanceof Error&&op in e&&(t==null||!!(e.type&t))}const hC=["params","query","hash"];function pC(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of hC)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function vC(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<n.length;++r){const o=n[r].replace(Jh," "),i=o.indexOf("="),s=Ho(i<0?o:o.slice(0,i)),a=i<0?null:Ho(o.slice(i+1));if(s in t){let l=t[s];ln(l)||(l=t[s]=[l]),l.push(a)}else t[s]=a}return t}function ku(e){let t="";for(let n in e){const r=e[n];if(n=Xw(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(ln(r)?r.map(o=>o&&Ua(o)):[r&&Ua(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function gC(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=ln(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const mC=Symbol(""),Mu=Symbol(""),_s=Symbol(""),Ml=Symbol(""),qa=Symbol("");function co(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Kn(e,t,n,r,o,i=s=>s()){const s=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((a,l)=>{const u=d=>{d===!1?l(Ur(nt.NAVIGATION_ABORTED,{from:n,to:t})):d instanceof Error?l(d):dC(d)?l(Ur(nt.NAVIGATION_GUARD_REDIRECT,{from:t,to:d})):(s&&r.enterCallbacks[o]===s&&typeof d=="function"&&s.push(d),a())},c=i(()=>e.call(r&&r.instances[o],t,n,u));let f=Promise.resolve(c);e.length<3&&(f=f.then(u)),f.catch(d=>l(d))})}function ba(e,t,n,r,o=i=>i()){const i=[];for(const s of e)for(const a in s.components){let l=s.components[a];if(!(t!=="beforeRouteEnter"&&!s.instances[a]))if(Xh(l)){const u=(l.__vccOpts||l)[t];u&&i.push(Kn(u,n,r,s,a,o))}else{let u=l();i.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${a}" at "${s.path}"`);const f=Dw(c)?c.default:c;s.mods[a]=c,s.components[a]=f;const d=(f.__vccOpts||f)[t];return d&&Kn(d,n,r,s,a,o)()}))}}return i}function bC(e,t){const n=[],r=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let s=0;s<i;s++){const a=t.matched[s];a&&(e.matched.find(u=>Vr(u,a))?r.push(a):n.push(a));const l=e.matched[s];l&&(t.matched.find(u=>Vr(u,l))||o.push(l))}return[n,r,o]}let yC=()=>location.protocol+"//"+location.host;function ip(e,t){const{pathname:n,search:r,hash:o}=t,i=e.indexOf("#");if(i>-1){let s=o.includes(e.slice(i))?e.slice(i).length:1,a=o.slice(s);return a[0]!=="/"&&(a="/"+a),Au(a,"")}return Au(n,e)+r+o}function xC(e,t,n,r){let o=[],i=[],s=null;const a=({state:d})=>{const h=ip(e,location),p=n.value,g=t.value;let y=0;if(d){if(n.value=h,t.value=d,s&&s===p){s=null;return}y=g?d.position-g.position:0}else r(h);o.forEach(x=>{x(n.value,p,{delta:y,type:Ga.pop,direction:y?y>0?ma.forward:ma.back:ma.unknown})})};function l(){s=n.value}function u(d){o.push(d);const h=()=>{const p=o.indexOf(d);p>-1&&o.splice(p,1)};return i.push(h),h}function c(){if(document.visibilityState==="hidden"){const{history:d}=window;if(!d.state)return;d.replaceState(je({},d.state,{scroll:Cs()}),"")}}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",c),document.removeEventListener("visibilitychange",c)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",c),document.addEventListener("visibilitychange",c),{pauseListeners:l,listen:u,destroy:f}}function zu(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?Cs():null}}function wC(e){const{history:t,location:n}=window,r={value:ip(e,n)},o={value:t.state};o.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,u,c){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:yC()+e+l;try{t[c?"replaceState":"pushState"](u,"",d),o.value=u}catch(h){console.error(h),n[c?"replace":"assign"](d)}}function s(l,u){i(l,je({},t.state,zu(o.value.back,l,o.value.forward,!0),u,{position:o.value.position}),!0),r.value=l}function a(l,u){const c=je({},o.value,t.state,{forward:l,scroll:Cs()});i(c.current,c,!0),i(l,je({},zu(r.value,l,null),{position:c.position+1},u),!1),r.value=l}return{location:r,state:o,push:a,replace:s}}function CC(e){e=iC(e);const t=wC(e),n=xC(e,t.state,t.location,t.replace);function r(i,s=!0){s||n.pauseListeners(),history.go(i)}const o=je({location:"",base:e,go:r,createHref:aC.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}let ur=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var ht=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(ht||{});const _C={type:ur.Static,value:""},SC=/[a-zA-Z0-9_]/;function EC(e){if(!e)return[[]];if(e==="/")return[[_C]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${u}": ${h}`)}let n=ht.Static,r=n;const o=[];let i;function s(){i&&o.push(i),i=[]}let a=0,l,u="",c="";function f(){u&&(n===ht.Static?i.push({type:ur.Static,value:u}):n===ht.Param||n===ht.ParamRegExp||n===ht.ParamRegExpEnd?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:ur.Param,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function d(){u+=l}for(;a<e.length;){if(l=e[a++],l==="\\"&&n!==ht.ParamRegExp){r=n,n=ht.EscapeNext;continue}switch(n){case ht.Static:l==="/"?(u&&f(),s()):l===":"?(f(),n=ht.Param):d();break;case ht.EscapeNext:d(),n=r;break;case ht.Param:l==="("?n=ht.ParamRegExp:SC.test(l)?d():(f(),n=ht.Static,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case ht.ParamRegExp:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:n=ht.ParamRegExpEnd:c+=l;break;case ht.ParamRegExpEnd:f(),n=ht.Static,l!=="*"&&l!=="?"&&l!=="+"&&a--,c="";break;default:t("Unknown state");break}}return n===ht.ParamRegExp&&t(`Unfinished custom RegExp for param "${u}"`),f(),s(),o}const Fu="[^/]+?",TC={sensitive:!1,strict:!1,start:!0,end:!0};var kt=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(kt||{});const RC=/[.+*?^${}()[\]/\\]/g;function PC(e,t){const n=je({},TC,t),r=[];let o=n.start?"^":"";const i=[];for(const u of e){const c=u.length?[]:[kt.Root];n.strict&&!u.length&&(o+="/");for(let f=0;f<u.length;f++){const d=u[f];let h=kt.Segment+(n.sensitive?kt.BonusCaseSensitive:0);if(d.type===ur.Static)f||(o+="/"),o+=d.value.replace(RC,"\\$&"),h+=kt.Static;else if(d.type===ur.Param){const{value:p,repeatable:g,optional:y,regexp:x}=d;i.push({name:p,repeatable:g,optional:y});const C=x||Fu;if(C!==Fu){h+=kt.BonusCustomRegExp;try{`${C}`}catch(O){throw new Error(`Invalid custom RegExp for param "${p}" (${C}): `+O.message)}}let A=g?`((?:${C})(?:/(?:${C}))*)`:`(${C})`;f||(A=y&&u.length<2?`(?:/${A})`:"/"+A),y&&(A+="?"),o+=A,h+=kt.Dynamic,y&&(h+=kt.BonusOptional),g&&(h+=kt.BonusRepeatable),C===".*"&&(h+=kt.BonusWildcard)}c.push(h)}r.push(c)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=kt.BonusStrict}n.strict||(o+="/?"),n.end?o+="$":n.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const s=new RegExp(o,n.sensitive?"":"i");function a(u){const c=u.match(s),f={};if(!c)return null;for(let d=1;d<c.length;d++){const h=c[d]||"",p=i[d-1];f[p.name]=h&&p.repeatable?h.split("/"):h}return f}function l(u){let c="",f=!1;for(const d of e){(!f||!c.endsWith("/"))&&(c+="/"),f=!1;for(const h of d)if(h.type===ur.Static)c+=h.value;else if(h.type===ur.Param){const{value:p,repeatable:g,optional:y}=h,x=p in u?u[p]:"";if(ln(x)&&!g)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const C=ln(x)?x.join("/"):x;if(!C)if(y)d.length<2&&(c.endsWith("/")?c=c.slice(0,-1):f=!0);else throw new Error(`Missing required param "${p}"`);c+=C}}return c||"/"}return{re:s,score:r,keys:i,parse:a,stringify:l}}function OC(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===kt.Static+kt.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===kt.Static+kt.Segment?1:-1:0}function sp(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const i=OC(r[n],o[n]);if(i)return i;n++}if(Math.abs(o.length-r.length)===1){if(Bu(r))return 1;if(Bu(o))return-1}return o.length-r.length}function Bu(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const AC={strict:!1,end:!0,sensitive:!1};function $C(e,t,n){const r=PC(EC(e.path),n),o=je(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function IC(e,t){const n=[],r=new Map;t=Ou(AC,t);function o(f){return r.get(f)}function i(f,d,h){const p=!h,g=Du(f);g.aliasOf=h&&h.record;const y=Ou(t,f),x=[g];if("alias"in f){const O=typeof f.alias=="string"?[f.alias]:f.alias;for(const T of O)x.push(Du(je({},g,{components:h?h.record.components:g.components,path:T,aliasOf:h?h.record:g})))}let C,A;for(const O of x){const{path:T}=O;if(d&&T[0]!=="/"){const _=d.record.path,m=_[_.length-1]==="/"?"":"/";O.path=d.record.path+(T&&m+T)}if(C=$C(O,d,y),h?h.alias.push(C):(A=A||C,A!==C&&A.alias.push(C),p&&f.name&&!Nu(C)&&s(f.name)),ap(C)&&l(C),g.children){const _=g.children;for(let m=0;m<_.length;m++)i(_[m],C,h&&h.children[m])}h=h||C}return A?()=>{s(A)}:So}function s(f){if(rp(f)){const d=r.get(f);d&&(r.delete(f),n.splice(n.indexOf(d),1),d.children.forEach(s),d.alias.forEach(s))}else{const d=n.indexOf(f);d>-1&&(n.splice(d,1),f.record.name&&r.delete(f.record.name),f.children.forEach(s),f.alias.forEach(s))}}function a(){return n}function l(f){const d=zC(f,n);n.splice(d,0,f),f.record.name&&!Nu(f)&&r.set(f.record.name,f)}function u(f,d){let h,p={},g,y;if("name"in f&&f.name){if(h=r.get(f.name),!h)throw Ur(nt.MATCHER_NOT_FOUND,{location:f});y=h.record.name,p=je(Lu(d.params,h.keys.filter(A=>!A.optional).concat(h.parent?h.parent.keys.filter(A=>A.optional):[]).map(A=>A.name)),f.params&&Lu(f.params,h.keys.map(A=>A.name))),g=h.stringify(p)}else if(f.path!=null)g=f.path,h=n.find(A=>A.re.test(g)),h&&(p=h.parse(g),y=h.record.name);else{if(h=d.name?r.get(d.name):n.find(A=>A.re.test(d.path)),!h)throw Ur(nt.MATCHER_NOT_FOUND,{location:f,currentLocation:d});y=h.record.name,p=je({},d.params,f.params),g=h.stringify(p)}const x=[];let C=h;for(;C;)x.unshift(C.record),C=C.parent;return{name:y,path:g,params:p,matched:x,meta:MC(x)}}e.forEach(f=>i(f));function c(){n.length=0,r.clear()}return{addRoute:i,resolve:u,removeRoute:s,clearRoutes:c,getRoutes:a,getRecordMatcher:o}}function Lu(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Du(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:kC(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function kC(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 Nu(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function MC(e){return e.reduce((t,n)=>je(t,n.meta),{})}function zC(e,t){let n=0,r=t.length;for(;n!==r;){const i=n+r>>1;sp(e,t[i])<0?r=i:n=i+1}const o=FC(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function FC(e){let t=e;for(;t=t.parent;)if(ap(t)&&sp(e,t)===0)return t}function ap({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Hu(e){const t=ke(_s),n=ke(Ml),r=Z(()=>{const l=Le(e.to);return t.resolve(l)}),o=Z(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],f=n.matched;if(!c||!f.length)return-1;const d=f.findIndex(Vr.bind(null,c));if(d>-1)return d;const h=ju(l[u-2]);return u>1&&ju(c)===h&&f[f.length-1].path!==h?f.findIndex(Vr.bind(null,l[u-2])):d}),i=Z(()=>o.value>-1&&HC(n.params,r.value.params)),s=Z(()=>o.value>-1&&o.value===n.matched.length-1&&np(n.params,r.value.params));function a(l={}){if(NC(l)){const u=t[Le(e.replace)?"replace":"push"](Le(e.to)).catch(So);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:r,href:Z(()=>r.value.href),isActive:i,isExactActive:s,navigate:a}}function BC(e){return e.length===1?e[0]:e}const LC=Re({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"},viewTransition:Boolean},useLink:Hu,setup(e,{slots:t}){const n=bn(Hu(e)),{options:r}=ke(_s),o=Z(()=>({[Wu(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Wu(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&BC(t.default(n));return e.custom?i:k("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},i)}}}),DC=LC;function NC(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 HC(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!ln(o)||o.length!==r.length||r.some((i,s)=>i.valueOf()!==o[s].valueOf()))return!1}return!0}function ju(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Wu=(e,t,n)=>e??t??n,jC=Re({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=ke(qa),o=Z(()=>e.route||r.value),i=ke(Mu,0),s=Z(()=>{let u=Le(i);const{matched:c}=o.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),a=Z(()=>o.value.matched[s.value]);et(Mu,Z(()=>s.value+1)),et(mC,a),et(qa,o);const l=de();return tt(()=>[l.value,a.value,e.name],([u,c,f],[d,h,p])=>{c&&(c.instances[f]=u,h&&h!==c&&u&&u===d&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),u&&c&&(!h||!Vr(c,h)||!d)&&(c.enterCallbacks[f]||[]).forEach(g=>g(u))},{flush:"post"}),()=>{const u=o.value,c=e.name,f=a.value,d=f&&f.components[c];if(!d)return Vu(n.default,{Component:d,route:u});const h=f.props[c],p=h?h===!0?u.params:typeof h=="function"?h(u):h:null,y=k(d,je({},p,t,{onVnodeUnmounted:x=>{x.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return Vu(n.default,{Component:y,route:u})||y}}});function Vu(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const lp=jC;function WC(e){const t=IC(e.routes,e),n=e.parseQuery||vC,r=e.stringifyQuery||ku,o=e.history,i=co(),s=co(),a=co(),l=Be(jn);let u=jn;$r&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=va.bind(null,D=>""+D),f=va.bind(null,Jw),d=va.bind(null,Ho);function h(D,le){let K,pe;return rp(D)?(K=t.getRecordMatcher(D),pe=le):pe=D,t.addRoute(pe,K)}function p(D){const le=t.getRecordMatcher(D);le&&t.removeRoute(le)}function g(){return t.getRoutes().map(D=>D.record)}function y(D){return!!t.getRecordMatcher(D)}function x(D,le){if(le=je({},le||l.value),typeof D=="string"){const z=ga(n,D,le.path),L=t.resolve({path:z.path},le),W=o.createHref(z.fullPath);return je(z,L,{params:d(L.params),hash:Ho(z.hash),redirectedFrom:void 0,href:W})}let K;if(D.path!=null)K=je({},D,{path:ga(n,D.path,le.path).path});else{const z=je({},D.params);for(const L in z)z[L]==null&&delete z[L];K=je({},D,{params:f(z)}),le.params=f(le.params)}const pe=t.resolve(K,le),Te=D.hash||"";pe.params=c(d(pe.params));const w=tC(r,je({},D,{hash:Yw(Te),path:pe.path})),S=o.createHref(w);return je({fullPath:w,hash:Te,query:r===ku?gC(D.query):D.query||{}},pe,{redirectedFrom:void 0,href:S})}function C(D){return typeof D=="string"?ga(n,D,l.value.path):je({},D)}function A(D,le){if(u!==D)return Ur(nt.NAVIGATION_CANCELLED,{from:le,to:D})}function O(D){return m(D)}function T(D){return O(je(C(D),{replace:!0}))}function _(D,le){const K=D.matched[D.matched.length-1];if(K&&K.redirect){const{redirect:pe}=K;let Te=typeof pe=="function"?pe(D,le):pe;return typeof Te=="string"&&(Te=Te.includes("?")||Te.includes("#")?Te=C(Te):{path:Te},Te.params={}),je({query:D.query,hash:D.hash,params:Te.path!=null?{}:D.params},Te)}}function m(D,le){const K=u=x(D),pe=l.value,Te=D.state,w=D.force,S=D.replace===!0,z=_(K,pe);if(z)return m(je(C(z),{state:typeof z=="object"?je({},Te,z.state):Te,force:w,replace:S}),le||K);const L=K;L.redirectedFrom=le;let W;return!w&&nC(r,pe,K)&&(W=Ur(nt.NAVIGATION_DUPLICATED,{to:L,from:pe}),Oe(pe,pe,!0,!1)),(W?Promise.resolve(W):B(L,pe)).catch(N=>Sn(N)?Sn(N,nt.NAVIGATION_GUARD_REDIRECT)?N:$e(N):ve(N,L,pe)).then(N=>{if(N){if(Sn(N,nt.NAVIGATION_GUARD_REDIRECT))return m(je({replace:S},C(N.to),{state:typeof N.to=="object"?je({},Te,N.to.state):Te,force:w}),le||L)}else N=F(L,pe,!0,S,Te);return G(L,pe,N),N})}function E(D,le){const K=A(D,le);return K?Promise.reject(K):Promise.resolve()}function P(D){const le=st.values().next().value;return le&&typeof le.runWithContext=="function"?le.runWithContext(D):D()}function B(D,le){let K;const[pe,Te,w]=bC(D,le);K=ba(pe.reverse(),"beforeRouteLeave",D,le);for(const z of pe)z.leaveGuards.forEach(L=>{K.push(Kn(L,D,le))});const S=E.bind(null,D,le);return K.push(S),Ee(K).then(()=>{K=[];for(const z of i.list())K.push(Kn(z,D,le));return K.push(S),Ee(K)}).then(()=>{K=ba(Te,"beforeRouteUpdate",D,le);for(const z of Te)z.updateGuards.forEach(L=>{K.push(Kn(L,D,le))});return K.push(S),Ee(K)}).then(()=>{K=[];for(const z of w)if(z.beforeEnter)if(ln(z.beforeEnter))for(const L of z.beforeEnter)K.push(Kn(L,D,le));else K.push(Kn(z.beforeEnter,D,le));return K.push(S),Ee(K)}).then(()=>(D.matched.forEach(z=>z.enterCallbacks={}),K=ba(w,"beforeRouteEnter",D,le,P),K.push(S),Ee(K))).then(()=>{K=[];for(const z of s.list())K.push(Kn(z,D,le));return K.push(S),Ee(K)}).catch(z=>Sn(z,nt.NAVIGATION_CANCELLED)?z:Promise.reject(z))}function G(D,le,K){a.list().forEach(pe=>P(()=>pe(D,le,K)))}function F(D,le,K,pe,Te){const w=A(D,le);if(w)return w;const S=le===jn,z=$r?history.state:{};K&&(pe||S?o.replace(D.fullPath,je({scroll:S&&z&&z.scroll},Te)):o.push(D.fullPath,Te)),l.value=D,Oe(D,le,K,S),$e()}let ne;function q(){ne||(ne=o.listen((D,le,K)=>{if(!bt.listening)return;const pe=x(D),Te=_(pe,bt.currentRoute.value);if(Te){m(je(Te,{replace:!0,force:!0}),pe).catch(So);return}u=pe;const w=l.value;$r&&uC(Iu(w.fullPath,K.delta),Cs()),B(pe,w).catch(S=>Sn(S,nt.NAVIGATION_ABORTED|nt.NAVIGATION_CANCELLED)?S:Sn(S,nt.NAVIGATION_GUARD_REDIRECT)?(m(je(C(S.to),{force:!0}),pe).then(z=>{Sn(z,nt.NAVIGATION_ABORTED|nt.NAVIGATION_DUPLICATED)&&!K.delta&&K.type===Ga.pop&&o.go(-1,!1)}).catch(So),Promise.reject()):(K.delta&&o.go(-K.delta,!1),ve(S,pe,w))).then(S=>{S=S||F(pe,w,!1),S&&(K.delta&&!Sn(S,nt.NAVIGATION_CANCELLED)?o.go(-K.delta,!1):K.type===Ga.pop&&Sn(S,nt.NAVIGATION_ABORTED|nt.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),G(pe,w,S)}).catch(So)}))}let oe=co(),ie=co(),te;function ve(D,le,K){$e(D);const pe=ie.list();return pe.length?pe.forEach(Te=>Te(D,le,K)):console.error(D),Promise.reject(D)}function Pe(){return te&&l.value!==jn?Promise.resolve():new Promise((D,le)=>{oe.add([D,le])})}function $e(D){return te||(te=!D,q(),oe.list().forEach(([le,K])=>D?K(D):le()),oe.reset()),D}function Oe(D,le,K,pe){const{scrollBehavior:Te}=e;if(!$r||!Te)return Promise.resolve();const w=!K&&fC(Iu(D.fullPath,0))||(pe||!K)&&history.state&&history.state.scroll||null;return Dt().then(()=>Te(D,le,w)).then(S=>S&&cC(S)).catch(S=>ve(S,D,le))}const Fe=D=>o.go(D);let it;const st=new Set,bt={currentRoute:l,listening:!0,addRoute:h,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:y,getRoutes:g,resolve:x,options:e,push:O,replace:T,go:Fe,back:()=>Fe(-1),forward:()=>Fe(1),beforeEach:i.add,beforeResolve:s.add,afterEach:a.add,onError:ie.add,isReady:Pe,install(D){D.component("RouterLink",DC),D.component("RouterView",lp),D.config.globalProperties.$router=bt,Object.defineProperty(D.config.globalProperties,"$route",{enumerable:!0,get:()=>Le(l)}),$r&&!it&&l.value===jn&&(it=!0,O(o.location).catch(pe=>{}));const le={};for(const pe in jn)Object.defineProperty(le,pe,{get:()=>l.value[pe],enumerable:!0});D.provide(_s,bt),D.provide(Ml,jo(le)),D.provide(qa,l);const K=D.unmount;st.add(D),D.unmount=function(){st.delete(D),st.size<1&&(u=jn,ne&&ne(),ne=null,l.value=jn,it=!1,te=!1),K()}}};function Ee(D){return D.reduce((le,K)=>le.then(()=>P(K)),Promise.resolve())}return bt}function b3(){return ke(_s)}function y3(e){return ke(Ml)}function Ss(e,t){return tl()?(Ov(e,t),!0):!1}function VC(e){let t=!1,n;const r=Cf(!0);return((...o)=>(t||(n=r.run(()=>e(...o)),t=!0),n))}const ya=new WeakMap,UC=(...e)=>{var t;const n=e[0],r=(t=Cn())===null||t===void 0?void 0:t.proxy,o=r??tl();if(o==null&&!qf())throw new Error("injectLocal must be called in setup");return o&&ya.has(o)&&n in ya.get(o)?ya.get(o)[n]:ke(...e)},Es=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const GC=e=>e!=null,KC=Object.prototype.toString,qC=e=>KC.call(e)==="[object Object]",xr=()=>{};function YC(...e){if(e.length!==1)return Lt(...e);const t=e[0];return typeof t=="function"?Nt(jf(()=>({get:t,set:xr}))):de(t)}function zl(e,t){function n(...r){return new Promise((o,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(i)})}return n}const cp=e=>e();function XC(e,t={}){let n,r,o=xr;const i=l=>{clearTimeout(l),o(),o=xr};let s;return l=>{const u=Qe(e),c=Qe(t.maxWait);return n&&i(n),u<=0||c!==void 0&&c<=0?(r&&(i(r),r=void 0),Promise.resolve(l())):new Promise((f,d)=>{o=t.rejectOnCancel?d:f,s=l,c&&!r&&(r=setTimeout(()=>{n&&i(n),r=void 0,f(s())},c)),n=setTimeout(()=>{r&&i(r),r=void 0,f(l())},u)})}}function ZC(...e){let t=0,n,r=!0,o=xr,i,s,a,l,u;!ft(e[0])&&typeof e[0]=="object"?{delay:s,trailing:a=!0,leading:l=!0,rejectOnCancel:u=!1}=e[0]:[s,a=!0,l=!0,u=!1]=e;const c=()=>{n&&(clearTimeout(n),n=void 0,o(),o=xr)};return d=>{const h=Qe(s),p=Date.now()-t,g=()=>i=d();return c(),h<=0?(t=Date.now(),g()):(p>h?(t=Date.now(),(l||!r)&&g()):a&&(i=new Promise((y,x)=>{o=u?x:y,n=setTimeout(()=>{t=Date.now(),r=!0,y(g()),c()},Math.max(0,h-p))})),!l&&!n&&(n=setTimeout(()=>r=!0,h)),r=!1,i)}}function JC(e=cp,t={}){const{initialState:n="active"}=t,r=YC(n==="active");function o(){r.value=!1}function i(){r.value=!0}return{isActive:Nt(r),pause:o,resume:i,eventFilter:(...a)=>{r.value&&e(...a)}}}function QC(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 Uu(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function Eo(e){return Array.isArray(e)?e:[e]}function e_(e){return Cn()}function x3(e){if(!Es)return e;let t=0,n,r;const o=()=>{t-=1,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return((...i)=>(t+=1,r||(r=Cf(!0),n=r.run(()=>e(...i))),Ss(o),n))}function up(e,t=200,n={}){return zl(XC(t,n),e)}function t_(e,t=200,n={}){const r=de(Qe(e)),o=up(()=>{r.value=e.value},t,n);return tt(e,()=>o()),Df(r)}const w3=t_;function n_(e,t=200,n=!1,r=!0,o=!1){return zl(ZC(t,n,r,o),e)}function r_(e,t,n={}){const{eventFilter:r=cp,...o}=n;return tt(e,zl(r,t),o)}function o_(e,t,n={}){const{eventFilter:r,initialState:o="active",...i}=n,{eventFilter:s,pause:a,resume:l,isActive:u}=JC(r,{initialState:o});return{stop:r_(e,t,{...i,eventFilter:s}),pause:a,resume:l,isActive:u}}const i_=o_;function Xo(e,t=!0,n){e_()?en(e,n):t?e():Dt(e)}function s_(e,t,n={}){const{immediate:r=!0,immediateCallback:o=!1}=n,i=Be(!1);let s;function a(){s&&(clearTimeout(s),s=void 0)}function l(){i.value=!1,a()}function u(...c){o&&e(),a(),i.value=!0,s=setTimeout(()=>{i.value=!1,s=void 0,e(...c)},Qe(t))}return r&&(i.value=!0,Es&&u()),Ss(l),{isPending:Df(i),start:u,stop:l}}function a_(e,t,n){return tt(e,t,{...n,immediate:!0})}const Qt=Es?window:void 0,fp=Es?window.navigator:void 0;function rn(e){var t;const n=Qe(e);return(t=n==null?void 0:n.$el)!==null&&t!==void 0?t:n}function Ct(...e){const t=(r,o,i,s)=>(r.addEventListener(o,i,s),()=>r.removeEventListener(o,i,s)),n=Z(()=>{const r=Eo(Qe(e[0])).filter(o=>o!=null);return r.every(o=>typeof o!="string")?r:void 0});return a_(()=>{var r,o;return[(r=(o=n.value)===null||o===void 0?void 0:o.map(i=>rn(i)))!==null&&r!==void 0?r:[Qt].filter(i=>i!=null),Eo(Qe(n.value?e[1]:e[0])),Eo(Le(n.value?e[2]:e[1])),Qe(n.value?e[3]:e[2])]},([r,o,i,s],a,l)=>{if(!(r!=null&&r.length)||!(o!=null&&o.length)||!(i!=null&&i.length))return;const u=qC(s)?{...s}:s,c=r.flatMap(f=>o.flatMap(d=>i.map(h=>t(f,d,h,u))));l(()=>{c.forEach(f=>f())})},{flush:"post"})}function l_(){const e=Be(!1),t=Cn();return t&&en(()=>{e.value=!0},t),e}function Zo(e){const t=l_();return Z(()=>(t.value,!!e()))}function dp(e,t,n={}){const{window:r=Qt,...o}=n;let i;const s=Zo(()=>r&&"MutationObserver"in r),a=()=>{i&&(i.disconnect(),i=void 0)},l=tt(Z(()=>{const f=Eo(Qe(e)).map(rn).filter(GC);return new Set(f)}),f=>{a(),s.value&&f.size&&(i=new MutationObserver(t),f.forEach(d=>i.observe(d,o)))},{immediate:!0,flush:"post"}),u=()=>i==null?void 0:i.takeRecords(),c=()=>{l(),a()};return Ss(c),{isSupported:s,stop:c,takeRecords:u}}const c_=Symbol("vueuse-ssr-width");function u_(){const e=qf()?UC(c_,null):null;return typeof e=="number"?e:void 0}function f_(e,t={}){const{window:n=Qt,ssrWidth:r=u_()}=t,o=Zo(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),i=Be(typeof r=="number"),s=Be(),a=Be(!1),l=u=>{a.value=u.matches};return Kr(()=>{if(i.value){i.value=!o.value,a.value=Qe(e).split(",").some(u=>{const c=u.includes("not all"),f=u.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),d=u.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let h=!!(f||d);return f&&h&&(h=r>=Uu(f[1])),d&&h&&(h=r<=Uu(d[1])),c?!h:h});return}o.value&&(s.value=n.matchMedia(Qe(e)),a.value=s.value.matches)}),Ct(s,"change",l,{passive:!0}),Z(()=>a.value)}function Gu(e,t={}){const{controls:n=!1,navigator:r=fp}=t,o=Zo(()=>r&&"permissions"in r),i=Be(),s=typeof e=="string"?{name:e}:e,a=Be(),l=()=>{var c,f;a.value=(c=(f=i.value)===null||f===void 0?void 0:f.state)!==null&&c!==void 0?c:"prompt"};Ct(i,"change",l,{passive:!0});const u=QC(async()=>{if(o.value){if(!i.value)try{i.value=await r.permissions.query(s)}catch{i.value=void 0}finally{l()}if(n)return Me(i.value)}});return u(),n?{state:a,isSupported:o,query:u}:a}function C3(e={}){const{navigator:t=fp,read:n=!1,source:r,copiedDuring:o=1500,legacy:i=!1}=e,s=Zo(()=>t&&"clipboard"in t),a=Gu("clipboard-read"),l=Gu("clipboard-write"),u=Z(()=>s.value||i),c=Be(""),f=Be(!1),d=s_(()=>f.value=!1,o,{immediate:!1});async function h(){let C=!(s.value&&x(a.value));if(!C)try{c.value=await t.clipboard.readText()}catch{C=!0}C&&(c.value=y())}u.value&&n&&Ct(["copy","cut"],h,{passive:!0});async function p(C=Qe(r)){if(u.value&&C!=null){let A=!(s.value&&x(l.value));if(!A)try{await t.clipboard.writeText(C)}catch{A=!0}A&&g(C),c.value=C,f.value=!0,d.start()}}function g(C){const A=document.createElement("textarea");A.value=C,A.style.position="absolute",A.style.opacity="0",A.setAttribute("readonly",""),document.body.appendChild(A),A.select(),document.execCommand("copy"),A.remove()}function y(){var C,A,O;return(C=(A=document)===null||A===void 0||(O=A.getSelection)===null||O===void 0||(O=O.call(A))===null||O===void 0?void 0:O.toString())!==null&&C!==void 0?C:""}function x(C){return C==="granted"||C==="prompt"}return{isSupported:u,text:Nt(c),copied:Nt(f),copy:p}}const bi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},yi="__vueuse_ssr_handlers__",d_=h_();function h_(){return yi in bi||(bi[yi]=bi[yi]||{}),bi[yi]}function p_(e,t){return d_[e]||t}function v_(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 g_={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()}},Ku="vueuse-storage";function _3(e,t,n,r={}){var o;const{flush:i="pre",deep:s=!0,listenToStorageChanges:a=!0,writeDefaults:l=!0,mergeDefaults:u=!1,shallow:c,window:f=Qt,eventFilter:d,onError:h=q=>{console.error(q)},initOnMounted:p}=r,g=(c?Be:de)(typeof t=="function"?t():t),y=Z(()=>Qe(e));if(!n)try{n=p_("getDefaultStorage",()=>Qt==null?void 0:Qt.localStorage)()}catch(q){h(q)}if(!n)return g;const x=Qe(t),C=v_(x),A=(o=r.serializer)!==null&&o!==void 0?o:g_[C],{pause:O,resume:T}=i_(g,q=>B(q),{flush:i,deep:s,eventFilter:d});tt(y,()=>F(),{flush:i});let _=!1;const m=q=>{p&&!_||F(q)},E=q=>{p&&!_||ne(q)};f&&a&&(n instanceof Storage?Ct(f,"storage",m,{passive:!0}):Ct(f,Ku,E)),p?Xo(()=>{_=!0,F()}):F();function P(q,oe){if(f){const ie={key:y.value,oldValue:q,newValue:oe,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",ie):new CustomEvent(Ku,{detail:ie}))}}function B(q){try{const oe=n.getItem(y.value);if(q==null)P(oe,null),n.removeItem(y.value);else{const ie=A.write(q);oe!==ie&&(n.setItem(y.value,ie),P(oe,ie))}}catch(oe){h(oe)}}function G(q){const oe=q?q.newValue:n.getItem(y.value);if(oe==null)return l&&x!=null&&n.setItem(y.value,A.write(x)),x;if(!q&&u){const ie=A.read(oe);return typeof u=="function"?u(ie,x):C==="object"&&!Array.isArray(ie)?{...x,...ie}:ie}else return typeof oe!="string"?oe:A.read(oe)}function F(q){if(!(q&&q.storageArea!==n)){if(q&&q.key==null){g.value=x;return}if(!(q&&q.key!==y.value)){O();try{const oe=A.write(g.value);(q===void 0||(q==null?void 0:q.newValue)!==oe)&&(g.value=G(q))}catch(oe){h(oe)}finally{q?Dt(T):T()}}}}function ne(q){F(q.detail)}return g}function hp(e,t,n={}){const{window:r=Qt,...o}=n;let i;const s=Zo(()=>r&&"ResizeObserver"in r),a=()=>{i&&(i.disconnect(),i=void 0)},l=tt(Z(()=>{const c=Qe(e);return Array.isArray(c)?c.map(f=>rn(f)):[rn(c)]}),c=>{if(a(),s.value&&r){i=new ResizeObserver(t);for(const f of c)f&&i.observe(f,o)}},{immediate:!0,flush:"post"}),u=()=>{a(),l()};return Ss(u),{isSupported:s,stop:u}}function m_(e,t={}){const{reset:n=!0,windowResize:r=!0,windowScroll:o=!0,immediate:i=!0,updateTiming:s="sync"}=t,a=Be(0),l=Be(0),u=Be(0),c=Be(0),f=Be(0),d=Be(0),h=Be(0),p=Be(0);function g(){const x=rn(e);if(!x){n&&(a.value=0,l.value=0,u.value=0,c.value=0,f.value=0,d.value=0,h.value=0,p.value=0);return}const C=x.getBoundingClientRect();a.value=C.height,l.value=C.bottom,u.value=C.left,c.value=C.right,f.value=C.top,d.value=C.width,h.value=C.x,p.value=C.y}function y(){s==="sync"?g():s==="next-frame"&&requestAnimationFrame(()=>g())}return hp(e,y),tt(()=>rn(e),x=>!x&&y()),dp(e,y,{attributeFilter:["style","class"]}),o&&Ct("scroll",y,{capture:!0,passive:!0}),r&&Ct("resize",y,{passive:!0}),Xo(()=>{i&&y()}),{height:a,bottom:l,left:u,right:c,top:f,width:d,x:h,y:p,update:y}}function S3(e,t={width:0,height:0},n={}){const{window:r=Qt,box:o="content-box"}=n,i=Z(()=>{var f;return(f=rn(e))===null||f===void 0||(f=f.namespaceURI)===null||f===void 0?void 0:f.includes("svg")}),s=Be(t.width),a=Be(t.height),{stop:l}=hp(e,([f])=>{const d=o==="border-box"?f.borderBoxSize:o==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(r&&i.value){const h=rn(e);if(h){const p=h.getBoundingClientRect();s.value=p.width,a.value=p.height}}else if(d){const h=Eo(d);s.value=h.reduce((p,{inlineSize:g})=>p+g,0),a.value=h.reduce((p,{blockSize:g})=>p+g,0)}else s.value=f.contentRect.width,a.value=f.contentRect.height},n);Xo(()=>{const f=rn(e);f&&(s.value="offsetWidth"in f?f.offsetWidth:t.width,a.value="offsetHeight"in f?f.offsetHeight:t.height)});const u=tt(()=>rn(e),f=>{s.value=f?t.width:0,a.value=f?t.height:0});function c(){l(),u()}return{width:s,height:a,stop:c}}const qu=1;function b_(e,t={}){const{throttle:n=0,idle:r=200,onStop:o=xr,onScroll:i=xr,offset:s={left:0,right:0,top:0,bottom:0},observe:a={mutation:!1},eventListenerOptions:l={capture:!1,passive:!0},behavior:u="auto",window:c=Qt,onError:f=P=>{console.error(P)}}=t,d=typeof a=="boolean"?{mutation:a}:a,h=Be(0),p=Be(0),g=Z({get(){return h.value},set(P){x(P,void 0)}}),y=Z({get(){return p.value},set(P){x(void 0,P)}});function x(P,B){var G,F,ne,q;if(!c)return;const oe=Qe(e);if(!oe)return;(G=oe instanceof Document?c.document.body:oe)===null||G===void 0||G.scrollTo({top:(F=Qe(B))!==null&&F!==void 0?F:y.value,left:(ne=Qe(P))!==null&&ne!==void 0?ne:g.value,behavior:Qe(u)});const ie=(oe==null||(q=oe.document)===null||q===void 0?void 0:q.documentElement)||(oe==null?void 0:oe.documentElement)||oe;g!=null&&(h.value=ie.scrollLeft),y!=null&&(p.value=ie.scrollTop)}const C=Be(!1),A=bn({left:!0,right:!1,top:!0,bottom:!1}),O=bn({left:!1,right:!1,top:!1,bottom:!1}),T=P=>{C.value&&(C.value=!1,O.left=!1,O.right=!1,O.top=!1,O.bottom=!1,o(P))},_=up(T,n+r),m=P=>{var B;if(!c)return;const G=(P==null||(B=P.document)===null||B===void 0?void 0:B.documentElement)||(P==null?void 0:P.documentElement)||rn(P),{display:F,flexDirection:ne,direction:q}=c.getComputedStyle(G),oe=q==="rtl"?-1:1,ie=G.scrollLeft;O.left=ie<h.value,O.right=ie>h.value;const te=Math.abs(ie*oe)<=(s.left||0),ve=Math.abs(ie*oe)+G.clientWidth>=G.scrollWidth-(s.right||0)-qu;F==="flex"&&ne==="row-reverse"?(A.left=ve,A.right=te):(A.left=te,A.right=ve),h.value=ie;let Pe=G.scrollTop;P===c.document&&!Pe&&(Pe=c.document.body.scrollTop),O.top=Pe<p.value,O.bottom=Pe>p.value;const $e=Math.abs(Pe)<=(s.top||0),Oe=Math.abs(Pe)+G.clientHeight>=G.scrollHeight-(s.bottom||0)-qu;F==="flex"&&ne==="column-reverse"?(A.top=Oe,A.bottom=$e):(A.top=$e,A.bottom=Oe),p.value=Pe},E=P=>{var B;c&&(m((B=P.target.documentElement)!==null&&B!==void 0?B:P.target),C.value=!0,_(P),i(P))};return Ct(e,"scroll",n?n_(E,n,!0,!1):E,l),Xo(()=>{try{const P=Qe(e);if(!P)return;m(P)}catch(P){f(P)}}),d!=null&&d.mutation&&e!=null&&e!==c&&e!==document&&dp(e,()=>{const P=Qe(e);P&&m(P)},{attributes:!0,childList:!0,subtree:!0}),Ct(e,"scrollend",T,l),{x:g,y,isScrolling:C,arrivedState:A,directions:O,measure(){const P=Qe(e);c&&P&&m(P)}}}function y_(e={}){const{window:t=Qt,...n}=e;return b_(t,n)}function x_(e={}){const{window:t=Qt,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:r=Number.POSITIVE_INFINITY,listenOrientation:o=!0,includeScrollbar:i=!0,type:s="inner"}=e,a=Be(n),l=Be(r),u=()=>{if(t)if(s==="outer")a.value=t.outerWidth,l.value=t.outerHeight;else if(s==="visual"&&t.visualViewport){const{width:f,height:d,scale:h}=t.visualViewport;a.value=Math.round(f*h),l.value=Math.round(d*h)}else i?(a.value=t.innerWidth,l.value=t.innerHeight):(a.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight)};u(),Xo(u);const c={passive:!0};return Ct("resize",u,c),t&&s==="visual"&&t.visualViewport&&Ct(t.visualViewport,"resize",u,c),o&&tt(f_("(orientation: portrait)"),()=>u()),{width:a,height:l}}const w_=VC(()=>jo({networkErrorDlgVisible:!1,githubErrorDlgVisible:!1,wasmErrorDlgVisible:!1,wasmSupported:void 0})),{message:Yu,dialog:E3,loadingBar:T3}=Lw(["message","dialog","loadingBar"]),pp=document.body.appendChild(document.createElement("div")),C_={fixed:"","z-2000":"",class:"BodyScrollbar"},__=Re({__name:"BodyScrollbar",setup(e){const{y:t,x:n}=y_(),{height:r,width:o}=x_(),i=m_(document.body),s=Z(()=>i.height.value>r.value),a=Z(()=>{const m=i.height.value;return r.value/m*r.value}),l=Z(()=>{const _=i.height.value,m=a.value;return t.value/(_-r.value)*(r.value-m)}),u=Z(()=>s.value?{transform:`translateY(${l.value}px)`,height:`${a.value}px`}:{}),c=async _=>{const m=a.value*.9*(_.clientY<a.value+l.value?-1:1),E=i.height.value,P=E,B=r.value/P*r.value;t.value+=m/(r.value-B)*(E-r.value)},f=Be(!1);let d;const h=_=>{d=_,f.value=!0};Ct("pointermove",_=>{if(!d)return;const m=_.clientY-d.clientY;d=_;const E=i.height.value,P=E,B=r.value/P*r.value;t.value+=m/(r.value-B)*(E-r.value)}),Ct("pointerup",()=>{d=void 0,f.value=!1});const p=Z(()=>Math.floor(i.width.value)>o.value),g=Z(()=>{const m=i.width.value;return o.value/m*o.value}),y=Z(()=>{const _=i.width.value,m=g.value;return n.value/(_-o.value)*(o.value-m)}),x=Z(()=>p.value?{transform:`translateX(${y.value}px)`,width:`${g.value}px`}:{}),C=_=>{const m=g.value*.9*(_.clientX<g.value+y.value?-1:1),E=i.width.value,P=E,B=o.value/P*o.value,G=n.value+m/(o.value-B)*(E-o.value);n.value=G},A=Be(!1);let O;const T=_=>{O=_,A.value=!0};return Ct("pointermove",_=>{if(!O)return;const m=_.clientX-O.clientX;O=_;const E=i.width.value,P=E,B=o.value/P*o.value;n.value+=m/(o.value-B)*(E-o.value)}),Ct("pointerup",()=>{O=void 0,A.value=!1}),Ct("selectstart",_=>{(O||d)&&_.preventDefault()}),(_,m)=>(Jn(),zo("div",C_,[Io(pt("div",{"scrollbar-y":"",fixed:"","right-2px":"","top-0":"","bottom-0":"","w-8px":"",onPointerdown:h,onClick:c},[pt("div",{"w-full":"",bg:"#909399","opacity-30":"","hover:opacity":"50",style:Po(Le(u)),class:Zn({"opacity-50":Le(f)}),onClick:m[0]||(m[0]=Rc(()=>{},["stop"]))},null,6)],544),[[Li,Le(s)]]),Le(p)?(Jn(),zo("div",{key:0,"scrollbar-x":"",fixed:"","bottom-2px":"","left-0":"","right-0":"","h-8px":"",onPointerdown:T,onClick:C},[pt("div",{"h-full":"",bg:"#909399","opacity-30":"","hover:opacity":"50",style:Po(Le(x)),class:Zn({"opacity-50":Le(A)}),onClick:m[1]||(m[1]=Rc(()=>{},["stop"]))},null,6)],32)):Pd("",!0)]))}});function R3(...e){const t=new URLSearchParams;return e.forEach(n=>{for(const r in n){const o=n[r];o!==void 0&&t.append(r,String(o))}}),t}const P3=e=>{const t={};return e.forEach((n,r)=>{t[r]=n}),t},S_=async(e=0)=>new Promise(t=>{setTimeout(t,e)}),O3=(()=>{let e;return async t=>{if(t&&e!==t){e=t,S_(1e4).then(()=>{e=void 0});try{await navigator.clipboard.writeText(t),Yu.success("复制成功")}catch{Yu.error("复制失败")}}}})(),vp=(e,t)=>{e.classList.add(t),en(()=>{e.classList.add(t)}),ss(()=>{e.classList.remove(t)})},A3=()=>{vp(pp,"app-auto-h")},$3=()=>{vp(document.body,"body-auto-w")},E_=()=>{},I3=()=>E_,k3=(e,t)=>{const n={};return t.forEach(r=>{const o=e[r];o!==void 0&&(n[r]=o)}),n},gp=e=>typeof e=="number"?!0:typeof e=="string"&&Array.prototype.every.call(e,t=>"0"<=t&&t<="9"),M3=e=>{if(typeof e=="number"&&Number.isSafeInteger(e))return e;if(typeof e=="string"&&e.length>0){const t=Number(e);if(Number.isSafeInteger(t))return t}},T_=Re(()=>{const e=Be(!1),t="ontouchstart"in document.documentElement;return e.value=!t,t&&(document.body.classList.add("mobile"),document.documentElement.classList.add("mobile")),()=>e.value?k(Uo,{to:document.body},k(__)):void 0}),z3=["#ff00ff","#18821c","#00ff00","#007fff","#ff7f00","#7fbf7f","#4e01bf","#b80836","#d67ffd","#00ffff","#fafe43","#00ff7f","#215b8f","#bd667c","#84f7f8","#8dfa01","#8f6605","#f5bc95","#a631f6","#21bab7","#4b1e4a","#7578c8","#c1b629","#ff007f","#0000ff","#4cc62a","#00007f","#fd404b","#b6fc97","#f742d8","#373fea","#a31b90","#ff0000","#03ae66","#a1b6e3","#61f9a8"],F3=e=>{var n,r;const t=[];if((n=e.dataTransfer)!=null&&n.items)for(let o=0;o<e.dataTransfer.items.length;o++){const i=e.dataTransfer.items[o];if(i.kind==="file"){const s=i.getAsFile();s&&t.push(s)}}else t.push(...Array.from(((r=e.dataTransfer)==null?void 0:r.files)||[]));return t},R_=[/\.0+$/,/0+$/],B3=(e,t)=>{const n=e.toFixed(t);if(!n.includes("."))return n;for(const r of R_)if(r.test(n))return n.replace(r,"");return n},L3=e=>{try{return new URL(e)}catch{}},P_=new Set([location.origin,"https://cdn.jsdelivr.net","https://fastly.jsdelivr.net","https://raw.githubusercontent.com","https://gist.githubusercontent.com","https://raw.gitmirror.com","https://registry.npmmirror.com"]),D3=e=>(e=new URL(e),e.hostname=="127.0.0.1"||e.hostname=="localhost"||location.protocol=="http:"&&e.protocol=="http:"&&e.hostname.split(".").every(t=>Number.isSafeInteger(parseInt(t)))?!0:P_.has(e.origin)),O_=[/^https:\/\/f\.gkd\.li\/(\d+)$/,/^https:\/\/github\.com\/gkd-kit\/inspect\/files\/(\d+)\/file\.zip$/,/^https:\/\/github\.com\/user-attachments\/files\/(\d+)\/file\.zip$/,/^https:\/\/i\.gkd\.li\/i\/(\d+)$/,/^https:\/\/i\.gkd\.li\/import\/(\d+)$/],A_=["https://f.gkd.li/","https://github.com/user-attachments/files/","https://github.com/gkd-kit/inspect/files/"],N3=e=>A_.some(t=>e.startsWith(t)),mp=e=>{var t;if(typeof e=="string"){if(e.startsWith(location.origin)){const n=+new URL(e).pathname.substring(1);if(Number.isSafeInteger(n)&&n>0)return n}for(const n of O_){const r=(t=e.match(n))==null?void 0:t[1];if(r)return+r}}},$_=/^https:\/\/github\.com\/gkd-kit\/inspect\/assets\/[0-9]+\/([0-9a-z-]+)$/,I_=/^https:\/\/github\.com\/user-attachments\/assets\/([0-9a-z-]+)$/,k_=e=>{var t,n;return((t=e.match($_))==null?void 0:t[1])||((n=e.match(I_))==null?void 0:n[1])},H3=e=>location.origin+`/i/${e}`,j3=e=>`https://e.gkd.li/${e}`,M_=e=>`https://github.com/user-attachments/files/${e}/file.zip`;var xi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function z_(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function W3(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var o=!1;try{o=this instanceof r}catch{}return o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}function wi(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var xa={exports:{}};var Xu;function F_(){return Xu||(Xu=1,(function(e,t){(function(n){e.exports=n()})(function(){return(function n(r,o,i){function s(u,c){if(!o[u]){if(!r[u]){var f=typeof wi=="function"&&wi;if(!c&&f)return f(u,!0);if(a)return a(u,!0);var d=new Error("Cannot find module '"+u+"'");throw d.code="MODULE_NOT_FOUND",d}var h=o[u]={exports:{}};r[u][0].call(h.exports,function(p){var g=r[u][1][p];return s(g||p)},h,h.exports,n,r,o,i)}return o[u].exports}for(var a=typeof wi=="function"&&wi,l=0;l<i.length;l++)s(i[l]);return s})({1:[function(n,r,o){(function(i){var s=i.MutationObserver||i.WebKitMutationObserver,a;if(s){var l=0,u=new s(p),c=i.document.createTextNode("");u.observe(c,{characterData:!0}),a=function(){c.data=l=++l%2}}else if(!i.setImmediate&&typeof i.MessageChannel<"u"){var f=new i.MessageChannel;f.port1.onmessage=p,a=function(){f.port2.postMessage(0)}}else"document"in i&&"onreadystatechange"in i.document.createElement("script")?a=function(){var y=i.document.createElement("script");y.onreadystatechange=function(){p(),y.onreadystatechange=null,y.parentNode.removeChild(y),y=null},i.document.documentElement.appendChild(y)}:a=function(){setTimeout(p,0)};var d,h=[];function p(){d=!0;for(var y,x,C=h.length;C;){for(x=h,h=[],y=-1;++y<C;)x[y]();C=h.length}d=!1}r.exports=g;function g(y){h.push(y)===1&&!d&&a()}}).call(this,typeof xi<"u"?xi:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(n,r,o){var i=n(1);function s(){}var a={},l=["REJECTED"],u=["FULFILLED"],c=["PENDING"];r.exports=f;function f(T){if(typeof T!="function")throw new TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,T!==s&&g(this,T)}f.prototype.catch=function(T){return this.then(null,T)},f.prototype.then=function(T,_){if(typeof T!="function"&&this.state===u||typeof _!="function"&&this.state===l)return this;var m=new this.constructor(s);if(this.state!==c){var E=this.state===u?T:_;h(m,E,this.outcome)}else this.queue.push(new d(m,T,_));return m};function d(T,_,m){this.promise=T,typeof _=="function"&&(this.onFulfilled=_,this.callFulfilled=this.otherCallFulfilled),typeof m=="function"&&(this.onRejected=m,this.callRejected=this.otherCallRejected)}d.prototype.callFulfilled=function(T){a.resolve(this.promise,T)},d.prototype.otherCallFulfilled=function(T){h(this.promise,this.onFulfilled,T)},d.prototype.callRejected=function(T){a.reject(this.promise,T)},d.prototype.otherCallRejected=function(T){h(this.promise,this.onRejected,T)};function h(T,_,m){i(function(){var E;try{E=_(m)}catch(P){return a.reject(T,P)}E===T?a.reject(T,new TypeError("Cannot resolve promise with itself")):a.resolve(T,E)})}a.resolve=function(T,_){var m=y(p,_);if(m.status==="error")return a.reject(T,m.value);var E=m.value;if(E)g(T,E);else{T.state=u,T.outcome=_;for(var P=-1,B=T.queue.length;++P<B;)T.queue[P].callFulfilled(_)}return T},a.reject=function(T,_){T.state=l,T.outcome=_;for(var m=-1,E=T.queue.length;++m<E;)T.queue[m].callRejected(_);return T};function p(T){var _=T&&T.then;if(T&&(typeof T=="object"||typeof T=="function")&&typeof _=="function")return function(){_.apply(T,arguments)}}function g(T,_){var m=!1;function E(F){m||(m=!0,a.reject(T,F))}function P(F){m||(m=!0,a.resolve(T,F))}function B(){_(P,E)}var G=y(B);G.status==="error"&&E(G.value)}function y(T,_){var m={};try{m.value=T(_),m.status="success"}catch(E){m.status="error",m.value=E}return m}f.resolve=x;function x(T){return T instanceof this?T:a.resolve(new this(s),T)}f.reject=C;function C(T){var _=new this(s);return a.reject(_,T)}f.all=A;function A(T){var _=this;if(Object.prototype.toString.call(T)!=="[object Array]")return this.reject(new TypeError("must be an array"));var m=T.length,E=!1;if(!m)return this.resolve([]);for(var P=new Array(m),B=0,G=-1,F=new this(s);++G<m;)ne(T[G],G);return F;function ne(q,oe){_.resolve(q).then(ie,function(te){E||(E=!0,a.reject(F,te))});function ie(te){P[oe]=te,++B===m&&!E&&(E=!0,a.resolve(F,P))}}}f.race=O;function O(T){var _=this;if(Object.prototype.toString.call(T)!=="[object Array]")return this.reject(new TypeError("must be an array"));var m=T.length,E=!1;if(!m)return this.resolve([]);for(var P=-1,B=new this(s);++P<m;)G(T[P]);return B;function G(F){_.resolve(F).then(function(ne){E||(E=!0,a.resolve(B,ne))},function(ne){E||(E=!0,a.reject(B,ne))})}}},{1:1}],3:[function(n,r,o){(function(i){typeof i.Promise!="function"&&(i.Promise=n(2))}).call(this,typeof xi<"u"?xi:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(n,r,o){var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(v){return typeof v}:function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v};function s(v,R){if(!(v instanceof R))throw new TypeError("Cannot call a class as a function")}function a(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch{return}}var l=a();function u(){try{if(!l||!l.open)return!1;var v=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),R=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!v||R)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function c(v,R){v=v||[],R=R||{};try{return new Blob(v,R)}catch($){if($.name!=="TypeError")throw $;for(var b=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,I=new b,M=0;M<v.length;M+=1)I.append(v[M]);return I.getBlob(R.type)}}typeof Promise>"u"&&n(3);var f=Promise;function d(v,R){R&&v.then(function(b){R(null,b)},function(b){R(b)})}function h(v,R,b){typeof R=="function"&&v.then(R),typeof b=="function"&&v.catch(b)}function p(v){return typeof v!="string"&&(console.warn(v+" used as a key, but it is not a string."),v=String(v)),v}function g(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var y="local-forage-detect-blob-support",x=void 0,C={},A=Object.prototype.toString,O="readonly",T="readwrite";function _(v){for(var R=v.length,b=new ArrayBuffer(R),I=new Uint8Array(b),M=0;M<R;M++)I[M]=v.charCodeAt(M);return b}function m(v){return new f(function(R){var b=v.transaction(y,T),I=c([""]);b.objectStore(y).put(I,"key"),b.onabort=function(M){M.preventDefault(),M.stopPropagation(),R(!1)},b.oncomplete=function(){var M=navigator.userAgent.match(/Chrome\/(\d+)/),$=navigator.userAgent.match(/Edge\//);R($||!M||parseInt(M[1],10)>=43)}}).catch(function(){return!1})}function E(v){return typeof x=="boolean"?f.resolve(x):m(v).then(function(R){return x=R,x})}function P(v){var R=C[v.name],b={};b.promise=new f(function(I,M){b.resolve=I,b.reject=M}),R.deferredOperations.push(b),R.dbReady?R.dbReady=R.dbReady.then(function(){return b.promise}):R.dbReady=b.promise}function B(v){var R=C[v.name],b=R.deferredOperations.pop();if(b)return b.resolve(),b.promise}function G(v,R){var b=C[v.name],I=b.deferredOperations.pop();if(I)return I.reject(R),I.promise}function F(v,R){return new f(function(b,I){if(C[v.name]=C[v.name]||Fe(),v.db)if(R)P(v),v.db.close();else return b(v.db);var M=[v.name];R&&M.push(v.version);var $=l.open.apply(l,M);R&&($.onupgradeneeded=function(j){var X=$.result;try{X.createObjectStore(v.storeName),j.oldVersion<=1&&X.createObjectStore(y)}catch(J){if(J.name==="ConstraintError")console.warn('The database "'+v.name+'" has been upgraded from version '+j.oldVersion+" to version "+j.newVersion+', but the storage "'+v.storeName+'" already exists.');else throw J}}),$.onerror=function(j){j.preventDefault(),I($.error)},$.onsuccess=function(){var j=$.result;j.onversionchange=function(X){X.target.close()},b(j),B(v)}})}function ne(v){return F(v,!1)}function q(v){return F(v,!0)}function oe(v,R){if(!v.db)return!0;var b=!v.db.objectStoreNames.contains(v.storeName),I=v.version<v.db.version,M=v.version>v.db.version;if(I&&(v.version!==R&&console.warn('The database "'+v.name+`" can't be downgraded from version `+v.db.version+" to version "+v.version+"."),v.version=v.db.version),M||b){if(b){var $=v.db.version+1;$>v.version&&(v.version=$)}return!0}return!1}function ie(v){return new f(function(R,b){var I=new FileReader;I.onerror=b,I.onloadend=function(M){var $=btoa(M.target.result||"");R({__local_forage_encoded_blob:!0,data:$,type:v.type})},I.readAsBinaryString(v)})}function te(v){var R=_(atob(v.data));return c([R],{type:v.type})}function ve(v){return v&&v.__local_forage_encoded_blob}function Pe(v){var R=this,b=R._initReady().then(function(){var I=C[R._dbInfo.name];if(I&&I.dbReady)return I.dbReady});return h(b,v,v),b}function $e(v){P(v);for(var R=C[v.name],b=R.forages,I=0;I<b.length;I++){var M=b[I];M._dbInfo.db&&(M._dbInfo.db.close(),M._dbInfo.db=null)}return v.db=null,ne(v).then(function($){return v.db=$,oe(v)?q(v):$}).then(function($){v.db=R.db=$;for(var j=0;j<b.length;j++)b[j]._dbInfo.db=$}).catch(function($){throw G(v,$),$})}function Oe(v,R,b,I){I===void 0&&(I=1);try{var M=v.db.transaction(v.storeName,R);b(null,M)}catch($){if(I>0&&(!v.db||$.name==="InvalidStateError"||$.name==="NotFoundError"))return f.resolve().then(function(){if(!v.db||$.name==="NotFoundError"&&!v.db.objectStoreNames.contains(v.storeName)&&v.version<=v.db.version)return v.db&&(v.version=v.db.version+1),q(v)}).then(function(){return $e(v).then(function(){Oe(v,R,b,I-1)})}).catch(b);b($)}}function Fe(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function it(v){var R=this,b={db:null};if(v)for(var I in v)b[I]=v[I];var M=C[b.name];M||(M=Fe(),C[b.name]=M),M.forages.push(R),R._initReady||(R._initReady=R.ready,R.ready=Pe);var $=[];function j(){return f.resolve()}for(var X=0;X<M.forages.length;X++){var J=M.forages[X];J!==R&&$.push(J._initReady().catch(j))}var Q=M.forages.slice(0);return f.all($).then(function(){return b.db=M.db,ne(b)}).then(function(re){return b.db=re,oe(b,R._defaultConfig.version)?q(b):re}).then(function(re){b.db=M.db=re,R._dbInfo=b;for(var me=0;me<Q.length;me++){var Ie=Q[me];Ie!==R&&(Ie._dbInfo.db=b.db,Ie._dbInfo.version=b.version)}})}function st(v,R){var b=this;v=p(v);var I=new f(function(M,$){b.ready().then(function(){Oe(b._dbInfo,O,function(j,X){if(j)return $(j);try{var J=X.objectStore(b._dbInfo.storeName),Q=J.get(v);Q.onsuccess=function(){var re=Q.result;re===void 0&&(re=null),ve(re)&&(re=te(re)),M(re)},Q.onerror=function(){$(Q.error)}}catch(re){$(re)}})}).catch($)});return d(I,R),I}function bt(v,R){var b=this,I=new f(function(M,$){b.ready().then(function(){Oe(b._dbInfo,O,function(j,X){if(j)return $(j);try{var J=X.objectStore(b._dbInfo.storeName),Q=J.openCursor(),re=1;Q.onsuccess=function(){var me=Q.result;if(me){var Ie=me.value;ve(Ie)&&(Ie=te(Ie));var He=v(Ie,me.key,re++);He!==void 0?M(He):me.continue()}else M()},Q.onerror=function(){$(Q.error)}}catch(me){$(me)}})}).catch($)});return d(I,R),I}function Ee(v,R,b){var I=this;v=p(v);var M=new f(function($,j){var X;I.ready().then(function(){return X=I._dbInfo,A.call(R)==="[object Blob]"?E(X.db).then(function(J){return J?R:ie(R)}):R}).then(function(J){Oe(I._dbInfo,T,function(Q,re){if(Q)return j(Q);try{var me=re.objectStore(I._dbInfo.storeName);J===null&&(J=void 0);var Ie=me.put(J,v);re.oncomplete=function(){J===void 0&&(J=null),$(J)},re.onabort=re.onerror=function(){var He=Ie.error?Ie.error:Ie.transaction.error;j(He)}}catch(He){j(He)}})}).catch(j)});return d(M,b),M}function D(v,R){var b=this;v=p(v);var I=new f(function(M,$){b.ready().then(function(){Oe(b._dbInfo,T,function(j,X){if(j)return $(j);try{var J=X.objectStore(b._dbInfo.storeName),Q=J.delete(v);X.oncomplete=function(){M()},X.onerror=function(){$(Q.error)},X.onabort=function(){var re=Q.error?Q.error:Q.transaction.error;$(re)}}catch(re){$(re)}})}).catch($)});return d(I,R),I}function le(v){var R=this,b=new f(function(I,M){R.ready().then(function(){Oe(R._dbInfo,T,function($,j){if($)return M($);try{var X=j.objectStore(R._dbInfo.storeName),J=X.clear();j.oncomplete=function(){I()},j.onabort=j.onerror=function(){var Q=J.error?J.error:J.transaction.error;M(Q)}}catch(Q){M(Q)}})}).catch(M)});return d(b,v),b}function K(v){var R=this,b=new f(function(I,M){R.ready().then(function(){Oe(R._dbInfo,O,function($,j){if($)return M($);try{var X=j.objectStore(R._dbInfo.storeName),J=X.count();J.onsuccess=function(){I(J.result)},J.onerror=function(){M(J.error)}}catch(Q){M(Q)}})}).catch(M)});return d(b,v),b}function pe(v,R){var b=this,I=new f(function(M,$){if(v<0){M(null);return}b.ready().then(function(){Oe(b._dbInfo,O,function(j,X){if(j)return $(j);try{var J=X.objectStore(b._dbInfo.storeName),Q=!1,re=J.openKeyCursor();re.onsuccess=function(){var me=re.result;if(!me){M(null);return}v===0||Q?M(me.key):(Q=!0,me.advance(v))},re.onerror=function(){$(re.error)}}catch(me){$(me)}})}).catch($)});return d(I,R),I}function Te(v){var R=this,b=new f(function(I,M){R.ready().then(function(){Oe(R._dbInfo,O,function($,j){if($)return M($);try{var X=j.objectStore(R._dbInfo.storeName),J=X.openKeyCursor(),Q=[];J.onsuccess=function(){var re=J.result;if(!re){I(Q);return}Q.push(re.key),re.continue()},J.onerror=function(){M(J.error)}}catch(re){M(re)}})}).catch(M)});return d(b,v),b}function w(v,R){R=g.apply(this,arguments);var b=this.config();v=typeof v!="function"&&v||{},v.name||(v.name=v.name||b.name,v.storeName=v.storeName||b.storeName);var I=this,M;if(!v.name)M=f.reject("Invalid arguments");else{var $=v.name===b.name&&I._dbInfo.db,j=$?f.resolve(I._dbInfo.db):ne(v).then(function(X){var J=C[v.name],Q=J.forages;J.db=X;for(var re=0;re<Q.length;re++)Q[re]._dbInfo.db=X;return X});v.storeName?M=j.then(function(X){if(X.objectStoreNames.contains(v.storeName)){var J=X.version+1;P(v);var Q=C[v.name],re=Q.forages;X.close();for(var me=0;me<re.length;me++){var Ie=re[me];Ie._dbInfo.db=null,Ie._dbInfo.version=J}var He=new f(function(Ve,ut){var at=l.open(v.name,J);at.onerror=function(Yt){var eo=at.result;eo.close(),ut(Yt)},at.onupgradeneeded=function(){var Yt=at.result;Yt.deleteObjectStore(v.storeName)},at.onsuccess=function(){var Yt=at.result;Yt.close(),Ve(Yt)}});return He.then(function(Ve){Q.db=Ve;for(var ut=0;ut<re.length;ut++){var at=re[ut];at._dbInfo.db=Ve,B(at._dbInfo)}}).catch(function(Ve){throw(G(v,Ve)||f.resolve()).catch(function(){}),Ve})}}):M=j.then(function(X){P(v);var J=C[v.name],Q=J.forages;X.close();for(var re=0;re<Q.length;re++){var me=Q[re];me._dbInfo.db=null}var Ie=new f(function(He,Ve){var ut=l.deleteDatabase(v.name);ut.onerror=function(){var at=ut.result;at&&at.close(),Ve(ut.error)},ut.onblocked=function(){console.warn('dropInstance blocked for database "'+v.name+'" until all open connections are closed')},ut.onsuccess=function(){var at=ut.result;at&&at.close(),He(at)}});return Ie.then(function(He){J.db=He;for(var Ve=0;Ve<Q.length;Ve++){var ut=Q[Ve];B(ut._dbInfo)}}).catch(function(He){throw(G(v,He)||f.resolve()).catch(function(){}),He})})}return d(M,R),M}var S={_driver:"asyncStorage",_initStorage:it,_support:u(),iterate:bt,getItem:st,setItem:Ee,removeItem:D,clear:le,length:K,key:pe,keys:Te,dropInstance:w};function z(){return typeof openDatabase=="function"}var L="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",W="~~local_forage_type~",N=/^~~local_forage_type~([^~]+)~/,se="__lfsc__:",ee=se.length,U="arbf",H="blob",ge="si08",ce="ui08",be="uic8",ye="si16",Ae="si32",De="ur16",ze="ui32",ct="fl32",dt="fl64",yt=ee+U.length,xt=Object.prototype.toString;function tn(v){var R=v.length*.75,b=v.length,I,M=0,$,j,X,J;v[v.length-1]==="="&&(R--,v[v.length-2]==="="&&R--);var Q=new ArrayBuffer(R),re=new Uint8Array(Q);for(I=0;I<b;I+=4)$=L.indexOf(v[I]),j=L.indexOf(v[I+1]),X=L.indexOf(v[I+2]),J=L.indexOf(v[I+3]),re[M++]=$<<2|j>>4,re[M++]=(j&15)<<4|X>>2,re[M++]=(X&3)<<6|J&63;return Q}function Ht(v){var R=new Uint8Array(v),b="",I;for(I=0;I<R.length;I+=3)b+=L[R[I]>>2],b+=L[(R[I]&3)<<4|R[I+1]>>4],b+=L[(R[I+1]&15)<<2|R[I+2]>>6],b+=L[R[I+2]&63];return R.length%3===2?b=b.substring(0,b.length-1)+"=":R.length%3===1&&(b=b.substring(0,b.length-2)+"=="),b}function St(v,R){var b="";if(v&&(b=xt.call(v)),v&&(b==="[object ArrayBuffer]"||v.buffer&&xt.call(v.buffer)==="[object ArrayBuffer]")){var I,M=se;v instanceof ArrayBuffer?(I=v,M+=U):(I=v.buffer,b==="[object Int8Array]"?M+=ge:b==="[object Uint8Array]"?M+=ce:b==="[object Uint8ClampedArray]"?M+=be:b==="[object Int16Array]"?M+=ye:b==="[object Uint16Array]"?M+=De:b==="[object Int32Array]"?M+=Ae:b==="[object Uint32Array]"?M+=ze:b==="[object Float32Array]"?M+=ct:b==="[object Float64Array]"?M+=dt:R(new Error("Failed to get type for BinaryArray"))),R(M+Ht(I))}else if(b==="[object Blob]"){var $=new FileReader;$.onload=function(){var j=W+v.type+"~"+Ht(this.result);R(se+H+j)},$.readAsArrayBuffer(v)}else try{R(JSON.stringify(v))}catch(j){console.error("Couldn't convert value into a JSON string: ",v),R(null,j)}}function Y(v){if(v.substring(0,ee)!==se)return JSON.parse(v);var R=v.substring(yt),b=v.substring(ee,yt),I;if(b===H&&N.test(R)){var M=R.match(N);I=M[1],R=R.substring(M[0].length)}var $=tn(R);switch(b){case U:return $;case H:return c([$],{type:I});case ge:return new Int8Array($);case ce:return new Uint8Array($);case be:return new Uint8ClampedArray($);case ye:return new Int16Array($);case De:return new Uint16Array($);case Ae:return new Int32Array($);case ze:return new Uint32Array($);case ct:return new Float32Array($);case dt:return new Float64Array($);default:throw new Error("Unkown type: "+b)}}var he={serialize:St,deserialize:Y,stringToBuffer:tn,bufferToString:Ht};function Ce(v,R,b,I){v.executeSql("CREATE TABLE IF NOT EXISTS "+R.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],b,I)}function Ge(v){var R=this,b={db:null};if(v)for(var I in v)b[I]=typeof v[I]!="string"?v[I].toString():v[I];var M=new f(function($,j){try{b.db=openDatabase(b.name,String(b.version),b.description,b.size)}catch(X){return j(X)}b.db.transaction(function(X){Ce(X,b,function(){R._dbInfo=b,$()},function(J,Q){j(Q)})},j)});return b.serializer=he,M}function Ue(v,R,b,I,M,$){v.executeSql(b,I,M,function(j,X){X.code===X.SYNTAX_ERR?j.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[R.storeName],function(J,Q){Q.rows.length?$(J,X):Ce(J,R,function(){J.executeSql(b,I,M,$)},$)},$):$(j,X)},$)}function Et(v,R){var b=this;v=p(v);var I=new f(function(M,$){b.ready().then(function(){var j=b._dbInfo;j.db.transaction(function(X){Ue(X,j,"SELECT * FROM "+j.storeName+" WHERE key = ? LIMIT 1",[v],function(J,Q){var re=Q.rows.length?Q.rows.item(0).value:null;re&&(re=j.serializer.deserialize(re)),M(re)},function(J,Q){$(Q)})})}).catch($)});return d(I,R),I}function jt(v,R){var b=this,I=new f(function(M,$){b.ready().then(function(){var j=b._dbInfo;j.db.transaction(function(X){Ue(X,j,"SELECT * FROM "+j.storeName,[],function(J,Q){for(var re=Q.rows,me=re.length,Ie=0;Ie<me;Ie++){var He=re.item(Ie),Ve=He.value;if(Ve&&(Ve=j.serializer.deserialize(Ve)),Ve=v(Ve,He.key,Ie+1),Ve!==void 0){M(Ve);return}}M()},function(J,Q){$(Q)})})}).catch($)});return d(I,R),I}function Ye(v,R,b,I){var M=this;v=p(v);var $=new f(function(j,X){M.ready().then(function(){R===void 0&&(R=null);var J=R,Q=M._dbInfo;Q.serializer.serialize(R,function(re,me){me?X(me):Q.db.transaction(function(Ie){Ue(Ie,Q,"INSERT OR REPLACE INTO "+Q.storeName+" (key, value) VALUES (?, ?)",[v,re],function(){j(J)},function(He,Ve){X(Ve)})},function(Ie){if(Ie.code===Ie.QUOTA_ERR){if(I>0){j(Ye.apply(M,[v,J,b,I-1]));return}X(Ie)}})})}).catch(X)});return d($,b),$}function zt(v,R,b){return Ye.apply(this,[v,R,b,1])}function un(v,R){var b=this;v=p(v);var I=new f(function(M,$){b.ready().then(function(){var j=b._dbInfo;j.db.transaction(function(X){Ue(X,j,"DELETE FROM "+j.storeName+" WHERE key = ?",[v],function(){M()},function(J,Q){$(Q)})})}).catch($)});return d(I,R),I}function Rs(v){var R=this,b=new f(function(I,M){R.ready().then(function(){var $=R._dbInfo;$.db.transaction(function(j){Ue(j,$,"DELETE FROM "+$.storeName,[],function(){I()},function(X,J){M(J)})})}).catch(M)});return d(b,v),b}function Ps(v){var R=this,b=new f(function(I,M){R.ready().then(function(){var $=R._dbInfo;$.db.transaction(function(j){Ue(j,$,"SELECT COUNT(key) as c FROM "+$.storeName,[],function(X,J){var Q=J.rows.item(0).c;I(Q)},function(X,J){M(J)})})}).catch(M)});return d(b,v),b}function Os(v,R){var b=this,I=new f(function(M,$){b.ready().then(function(){var j=b._dbInfo;j.db.transaction(function(X){Ue(X,j,"SELECT key FROM "+j.storeName+" WHERE id = ? LIMIT 1",[v+1],function(J,Q){var re=Q.rows.length?Q.rows.item(0).key:null;M(re)},function(J,Q){$(Q)})})}).catch($)});return d(I,R),I}function As(v){var R=this,b=new f(function(I,M){R.ready().then(function(){var $=R._dbInfo;$.db.transaction(function(j){Ue(j,$,"SELECT key FROM "+$.storeName,[],function(X,J){for(var Q=[],re=0;re<J.rows.length;re++)Q.push(J.rows.item(re).key);I(Q)},function(X,J){M(J)})})}).catch(M)});return d(b,v),b}function $s(v){return new f(function(R,b){v.transaction(function(I){I.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(M,$){for(var j=[],X=0;X<$.rows.length;X++)j.push($.rows.item(X).name);R({db:v,storeNames:j})},function(M,$){b($)})},function(I){b(I)})})}function Is(v,R){R=g.apply(this,arguments);var b=this.config();v=typeof v!="function"&&v||{},v.name||(v.name=v.name||b.name,v.storeName=v.storeName||b.storeName);var I=this,M;return v.name?M=new f(function($){var j;v.name===b.name?j=I._dbInfo.db:j=openDatabase(v.name,"","",0),v.storeName?$({db:j,storeNames:[v.storeName]}):$($s(j))}).then(function($){return new f(function(j,X){$.db.transaction(function(J){function Q(He){return new f(function(Ve,ut){J.executeSql("DROP TABLE IF EXISTS "+He,[],function(){Ve()},function(at,Yt){ut(Yt)})})}for(var re=[],me=0,Ie=$.storeNames.length;me<Ie;me++)re.push(Q($.storeNames[me]));f.all(re).then(function(){j()}).catch(function(He){X(He)})},function(J){X(J)})})}):M=f.reject("Invalid arguments"),d(M,R),M}var ks={_driver:"webSQLStorage",_initStorage:Ge,_support:z(),iterate:jt,getItem:Et,setItem:zt,removeItem:un,clear:Rs,length:Ps,key:Os,keys:As,dropInstance:Is};function Ms(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function Jo(v,R){var b=v.name+"/";return v.storeName!==R.storeName&&(b+=v.storeName+"/"),b}function zs(){var v="_localforage_support_test";try{return localStorage.setItem(v,!0),localStorage.removeItem(v),!1}catch{return!0}}function Fs(){return!zs()||localStorage.length>0}function Bs(v){var R=this,b={};if(v)for(var I in v)b[I]=v[I];return b.keyPrefix=Jo(v,R._defaultConfig),Fs()?(R._dbInfo=b,b.serializer=he,f.resolve()):f.reject()}function Ls(v){var R=this,b=R.ready().then(function(){for(var I=R._dbInfo.keyPrefix,M=localStorage.length-1;M>=0;M--){var $=localStorage.key(M);$.indexOf(I)===0&&localStorage.removeItem($)}});return d(b,v),b}function Ds(v,R){var b=this;v=p(v);var I=b.ready().then(function(){var M=b._dbInfo,$=localStorage.getItem(M.keyPrefix+v);return $&&($=M.serializer.deserialize($)),$});return d(I,R),I}function Ns(v,R){var b=this,I=b.ready().then(function(){for(var M=b._dbInfo,$=M.keyPrefix,j=$.length,X=localStorage.length,J=1,Q=0;Q<X;Q++){var re=localStorage.key(Q);if(re.indexOf($)===0){var me=localStorage.getItem(re);if(me&&(me=M.serializer.deserialize(me)),me=v(me,re.substring(j),J++),me!==void 0)return me}}});return d(I,R),I}function Hs(v,R){var b=this,I=b.ready().then(function(){var M=b._dbInfo,$;try{$=localStorage.key(v)}catch{$=null}return $&&($=$.substring(M.keyPrefix.length)),$});return d(I,R),I}function js(v){var R=this,b=R.ready().then(function(){for(var I=R._dbInfo,M=localStorage.length,$=[],j=0;j<M;j++){var X=localStorage.key(j);X.indexOf(I.keyPrefix)===0&&$.push(X.substring(I.keyPrefix.length))}return $});return d(b,v),b}function wp(v){var R=this,b=R.keys().then(function(I){return I.length});return d(b,v),b}function Cp(v,R){var b=this;v=p(v);var I=b.ready().then(function(){var M=b._dbInfo;localStorage.removeItem(M.keyPrefix+v)});return d(I,R),I}function _p(v,R,b){var I=this;v=p(v);var M=I.ready().then(function(){R===void 0&&(R=null);var $=R;return new f(function(j,X){var J=I._dbInfo;J.serializer.serialize(R,function(Q,re){if(re)X(re);else try{localStorage.setItem(J.keyPrefix+v,Q),j($)}catch(me){(me.name==="QuotaExceededError"||me.name==="NS_ERROR_DOM_QUOTA_REACHED")&&X(me),X(me)}})})});return d(M,b),M}function Sp(v,R){if(R=g.apply(this,arguments),v=typeof v!="function"&&v||{},!v.name){var b=this.config();v.name=v.name||b.name,v.storeName=v.storeName||b.storeName}var I=this,M;return v.name?M=new f(function($){v.storeName?$(Jo(v,I._defaultConfig)):$(v.name+"/")}).then(function($){for(var j=localStorage.length-1;j>=0;j--){var X=localStorage.key(j);X.indexOf($)===0&&localStorage.removeItem(X)}}):M=f.reject("Invalid arguments"),d(M,R),M}var Ep={_driver:"localStorageWrapper",_initStorage:Bs,_support:Ms(),iterate:Ns,getItem:Ds,setItem:_p,removeItem:Cp,clear:Ls,length:wp,key:Hs,keys:js,dropInstance:Sp},Tp=function(R,b){return R===b||typeof R=="number"&&typeof b=="number"&&isNaN(R)&&isNaN(b)},Rp=function(R,b){for(var I=R.length,M=0;M<I;){if(Tp(R[M],b))return!0;M++}return!1},Bl=Array.isArray||function(v){return Object.prototype.toString.call(v)==="[object Array]"},Qr={},Ll={},Er={INDEXEDDB:S,WEBSQL:ks,LOCALSTORAGE:Ep},Pp=[Er.INDEXEDDB._driver,Er.WEBSQL._driver,Er.LOCALSTORAGE._driver],Qo=["dropInstance"],Ws=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(Qo),Op={description:"",driver:Pp.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function Ap(v,R){v[R]=function(){var b=arguments;return v.ready().then(function(){return v[R].apply(v,b)})}}function Vs(){for(var v=1;v<arguments.length;v++){var R=arguments[v];if(R)for(var b in R)R.hasOwnProperty(b)&&(Bl(R[b])?arguments[0][b]=R[b].slice():arguments[0][b]=R[b])}return arguments[0]}var $p=(function(){function v(R){s(this,v);for(var b in Er)if(Er.hasOwnProperty(b)){var I=Er[b],M=I._driver;this[b]=M,Qr[M]||this.defineDriver(I)}this._defaultConfig=Vs({},Op),this._config=Vs({},this._defaultConfig,R),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return v.prototype.config=function(b){if((typeof b>"u"?"undefined":i(b))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var I in b){if(I==="storeName"&&(b[I]=b[I].replace(/\W/g,"_")),I==="version"&&typeof b[I]!="number")return new Error("Database version must be a number.");this._config[I]=b[I]}return"driver"in b&&b.driver?this.setDriver(this._config.driver):!0}else return typeof b=="string"?this._config[b]:this._config},v.prototype.defineDriver=function(b,I,M){var $=new f(function(j,X){try{var J=b._driver,Q=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!b._driver){X(Q);return}for(var re=Ws.concat("_initStorage"),me=0,Ie=re.length;me<Ie;me++){var He=re[me],Ve=!Rp(Qo,He);if((Ve||b[He])&&typeof b[He]!="function"){X(Q);return}}var ut=function(){for(var eo=function(Mp){return function(){var zp=new Error("Method "+Mp+" is not implemented by the current driver"),Dl=f.reject(zp);return d(Dl,arguments[arguments.length-1]),Dl}},Us=0,kp=Qo.length;Us<kp;Us++){var Gs=Qo[Us];b[Gs]||(b[Gs]=eo(Gs))}};ut();var at=function(eo){Qr[J]&&console.info("Redefining LocalForage driver: "+J),Qr[J]=b,Ll[J]=eo,j()};"_support"in b?b._support&&typeof b._support=="function"?b._support().then(at,X):at(!!b._support):at(!0)}catch(Yt){X(Yt)}});return h($,I,M),$},v.prototype.driver=function(){return this._driver||null},v.prototype.getDriver=function(b,I,M){var $=Qr[b]?f.resolve(Qr[b]):f.reject(new Error("Driver not found."));return h($,I,M),$},v.prototype.getSerializer=function(b){var I=f.resolve(he);return h(I,b),I},v.prototype.ready=function(b){var I=this,M=I._driverSet.then(function(){return I._ready===null&&(I._ready=I._initDriver()),I._ready});return h(M,b,b),M},v.prototype.setDriver=function(b,I,M){var $=this;Bl(b)||(b=[b]);var j=this._getSupportedDrivers(b);function X(){$._config.driver=$.driver()}function J(me){return $._extend(me),X(),$._ready=$._initStorage($._config),$._ready}function Q(me){return function(){var Ie=0;function He(){for(;Ie<me.length;){var Ve=me[Ie];return Ie++,$._dbInfo=null,$._ready=null,$.getDriver(Ve).then(J).catch(He)}X();var ut=new Error("No available storage method found.");return $._driverSet=f.reject(ut),$._driverSet}return He()}}var re=this._driverSet!==null?this._driverSet.catch(function(){return f.resolve()}):f.resolve();return this._driverSet=re.then(function(){var me=j[0];return $._dbInfo=null,$._ready=null,$.getDriver(me).then(function(Ie){$._driver=Ie._driver,X(),$._wrapLibraryMethodsWithReady(),$._initDriver=Q(j)})}).catch(function(){X();var me=new Error("No available storage method found.");return $._driverSet=f.reject(me),$._driverSet}),h(this._driverSet,I,M),this._driverSet},v.prototype.supports=function(b){return!!Ll[b]},v.prototype._extend=function(b){Vs(this,b)},v.prototype._getSupportedDrivers=function(b){for(var I=[],M=0,$=b.length;M<$;M++){var j=b[M];this.supports(j)&&I.push(j)}return I},v.prototype._wrapLibraryMethodsWithReady=function(){for(var b=0,I=Ws.length;b<I;b++)Ap(this,Ws[b])},v.prototype.createInstance=function(b){return new v(b)},v})(),Ip=new $p;r.exports=Ip},{3:3}]},{},[4])(4)})})(xa)),xa.exports}var B_=F_();const Zu=z_(B_),bp=e=>e,L_=(e,t)=>{try{return e()}catch{return t()}},D_=(e,t,n=bp)=>{const r=localStorage.getItem(e),o=r?L_(()=>n(JSON.parse(r)),t):t(),i=jo(o);return tt(i,()=>{localStorage.setItem(e,JSON.stringify(Me(i)))}),i},Ts=async(e,t,n=bp)=>{const r=await Zu.getItem(e),o=jo(r?n(r):t());return tt(o,async()=>{await Zu.setItem(e,Me(o))}),o},N_=D_("settings",()=>({autoUploadImport:!1,ignoreUploadWarn:!1,ignoreWasmWarn:!1,maxShowNodeSize:2e3})),H_=await Ts("importTime",()=>({})),j_=await Ts("githubJpg",()=>({}),e=>(Object.keys(e).forEach(t=>{const n=e[t];if(n.startsWith("https://")){const r=k_(n);r?e[t]=r:delete e[t]}}),e)),W_=await Ts("githubZip",()=>({}),e=>(Object.keys(e).forEach(t=>{const n=e[t];if(gp(n))return;const r=mp(n);r?e[t]=r:delete e[t]}),e)),V_=await Ts("url",()=>({}),e=>(Object.keys(e).forEach(t=>{if(gp(t))return;const n=mp(t);n&&(e[n]=e[t]),delete e[t]}),e)),U_=()=>({settingsStore:N_,snapshotImportTime:H_,snapshotImageId:j_,snapshotImportId:W_,importSnapshotId:V_}),G_=Re({__name:"ErrorDlg",setup(e){const t=w_(),{settingsStore:n}=U_();return(r,o)=>{const i=$l,s=M2;return Jn(),zo(Ke,null,[Ze(i,{show:Le(t).githubErrorDlgVisible,"onUpdate:show":o[0]||(o[0]=a=>Le(t).githubErrorDlgVisible=a),preset:"dialog",title:"生成分享链接失败",type:"success"},{default:Ir(()=>[...o[4]||(o[4]=[pt("div",null,"生成分享链接需要以下条件",-1),pt("div",null,[nn(" 在当前浏览器登录 "),pt("a",{href:"https://github.com",target:"_blank",rel:"noopener noreferrer"}," github.com ")],-1)])]),_:1},8,["show"]),Ze(i,{show:Le(t).networkErrorDlgVisible,"onUpdate:show":o[1]||(o[1]=a=>Le(t).networkErrorDlgVisible=a),preset:"dialog",title:"访问其它域名资源失败",type:"success"},{default:Ir(()=>[...o[5]||(o[5]=[pt("div",null,"访问其它域名资源需要以下条件",-1),pt("div",null,[nn(" 1. 安装脚本管理器, 如 "),pt("a",{href:"https://violentmonkey.github.io/",target:"_blank",rel:"noopener noreferrer"}," Violentmonkey ")],-1),pt("div",null,[nn(" 2. 安装油猴脚本 "),pt("a",{href:"https://github.com/gkd-kit/network-extension",target:"_blank",rel:"noopener noreferrer"}," network-extension ")],-1),pt("div",null,"3. 在当前网站启用上述油猴脚本的API注入功能",-1),pt("div",null,[nn(" 4. 分享文件或导入快照额外需浏览器登录 "),pt("a",{href:"https://github.com",target:"_blank",rel:"noopener noreferrer"}," github.com ")],-1)])]),_:1},8,["show"]),Ze(i,{show:Le(t).wasmErrorDlgVisible,"onUpdate:show":o[3]||(o[3]=a=>Le(t).wasmErrorDlgVisible=a),preset:"dialog",title:"浏览器不支持或版本过低",type:"warning",positiveText:"确定"},{default:Ir(()=>[o[7]||(o[7]=pt("div",null,[nn(" 选择器的正则表达式一致性需要使用 "),pt("a",{href:"https://developer.chrome.com/blog/wasmgc?hl=zh-cn",target:"_blank",rel:"noopener noreferrer"},"WASM(GC)")],-1)),o[8]||(o[8]=pt("div",{"mt-10px":""},"请使用 Chrome119/Edge119/Firefox120 或最新版本",-1)),Ze(s,{checked:Le(n).ignoreWasmWarn,"onUpdate:checked":o[2]||(o[2]=a=>Le(n).ignoreWasmWarn=a),class:"mt-10px"},{default:Ir(()=>[...o[6]||(o[6]=[nn(" 不关注一致性, 不再提醒 ",-1)])]),_:1},8,["checked"])]),_:1},8,["show"])],64)}}}),K_=Re({__name:"App",setup(e){const t={common:{lineHeight:"20px"}},n=Hx(()=>{document.activeElement instanceof HTMLButtonElement&&document.activeElement.blur()},1e3);return Ct("click",()=>{n()}),(r,o)=>{const i=Fh;return Jn(),zo(Ke,null,[Ze(i,{abstract:"",locale:Le(W0),dateLocale:Le(Pb),themeOverrides:t},{default:Ir(()=>[Ze(G_),Ze(Le(lp))]),_:1},8,["locale","dateLocale"]),Ze(Le(T_))],64)}}}),q_="modulepreload",Y_=function(e,t){return new URL(e,t).href},Ju={},or=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let u=function(c){return Promise.all(c.map(f=>Promise.resolve(f).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};const s=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));o=u(n.map(c=>{if(c=Y_(c,r),c in Ju)return;Ju[c]=!0;const f=c.endsWith(".css"),d=f?'[rel="stylesheet"]':"";if(r)for(let p=s.length-1;p>=0;p--){const g=s[p];if(g.href===c&&(!f||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${d}`))return;const h=document.createElement("link");if(h.rel=f?"stylesheet":q_,f||(h.as="script"),h.crossOrigin="",h.href=c,l&&h.setAttribute("nonce",l),document.head.appendChild(h),f)return new Promise((p,g)=>{h.addEventListener("load",p),h.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return o.then(s=>{for(const a of s||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})},X_=(e,t)=>{try{return new URL(e,t)}catch{}},yp=new Set,ir=e=>(yp.add(e),e),Qu=e=>{var n;const t=(n=String(e.params.github_asset_id).match(/^\d+/))==null?void 0:n[0];return t?{path:"/i",query:{...e.query,url:M_(t)}}:{path:"/404"}},xp=WC({history:CC("/"),routes:[{path:"/",component:ir(()=>or(()=>import("./HomePage-BvzBh-Vr.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url)),meta:{title:"首页"}},{path:"/snapshot/:snapshotId",name:"snapshot",component:ir(()=>or(()=>import("./SnapshotPage-DJ4TKP-N.js"),__vite__mapDeps([9,6,1,2,3,4,5,10,11,12,13,14]),import.meta.url)),meta:{title:"快照"}},{path:"/i",component:ir(()=>or(()=>import("./ImportPage-Dk8X_JGB.js"),__vite__mapDeps([15,3,7,4]),import.meta.url)),meta:{title:"导入快照"}},{path:"/i/:github_asset_id",redirect:Qu},{path:"/import",redirect(e){return{path:"/i",query:e.query}}},{path:"/import/:github_asset_id",redirect:Qu},{path:"/device",component:ir(()=>or(()=>import("./DevicePage-3zAjkEzd.js"),__vite__mapDeps([16,3,12,8,6,5,2]),import.meta.url)),beforeEnter(e,t,n){const r=X_(String(e.query.url));if(r){localStorage.setItem("device_link",r.origin);const o={...e.query};return delete o.url,n({...e,query:o})}n()},meta:{title:"连接设备"}},{path:"/selector",component:ir(()=>or(()=>import("./SelectorPage-CfS5VjGt.js"),__vite__mapDeps([17,10,6,11,2]),import.meta.url)),meta:{title:"选择器"}},{path:"/svg",component:ir(()=>or(()=>import("./SvgPage-D2dxgiWY.js"),__vite__mapDeps([18,2]),import.meta.url)),meta:{title:"SVG"}},{path:"/:pathMatch(.*)*",component:ir(()=>or(()=>import("./_404Page-D0N3kA1Q.js"),__vite__mapDeps([19,13]),import.meta.url))}]});xp.beforeEach(e=>{document.title=String(e.meta.title||"GKD")});setTimeout(()=>{yp.forEach(e=>e())},3e3);const Z_=`GIT commit
908
+ hash: 7a81c32b4affde52e47e9741d4f472443ecf2f25
909
+ date: 2026-01-20T18:13:15+08:00
910
+ message: fix: override unocss default style max-h-full (#58)
911
911
  refs: grafted, HEAD -> main, origin/main
912
+ body: close #58
913
+
912
914
  author_name: 二刺螈
913
915
  author_email: i@songe.li`,J_=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
914
916
  <path d="m12 18l-6-6l1.4-1.4l3.6 3.575V6h2v8.175l3.6-3.575L18 12l-6 6Z" />
@@ -998,5 +1000,5 @@ author_email: i@songe.li`,J_=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0
998
1000
  </svg>`,WS=Object.freeze(Object.defineProperty({__proto__:null,default:jS},Symbol.toStringTag,{value:"Module"})),VS=`<svg viewBox="0 0 24 24">
999
1001
  <path
1000
1002
  d="M1 21L12 2l11 19zm3.45-2h15.1L12 6zM12 18q.425 0 .713-.288T13 17t-.288-.712T12 16t-.712.288T11 17t.288.713T12 18m-1-3h2v-5h-2zm1-2.5" />
1001
- </svg>`,US=Object.freeze(Object.defineProperty({__proto__:null,default:VS},Symbol.toStringTag,{value:"Module"})),GS=["name","viewBox","fill"],KS=Object.assign({"/src/assets/svg/arrow.svg":Q_,"/src/assets/svg/close.svg":tS,"/src/assets/svg/code.svg":rS,"/src/assets/svg/copy.svg":iS,"/src/assets/svg/delete.svg":aS,"/src/assets/svg/device.svg":cS,"/src/assets/svg/discussion.svg":fS,"/src/assets/svg/export.svg":hS,"/src/assets/svg/github.svg":vS,"/src/assets/svg/home.svg":mS,"/src/assets/svg/import.svg":yS,"/src/assets/svg/info.svg":wS,"/src/assets/svg/minus.svg":_S,"/src/assets/svg/ok.svg":ES,"/src/assets/svg/path.svg":RS,"/src/assets/svg/prop.svg":OS,"/src/assets/svg/search-list.svg":$S,"/src/assets/svg/search.svg":kS,"/src/assets/svg/settings.svg":zS,"/src/assets/svg/share.svg":BS,"/src/assets/svg/system.svg":DS,"/src/assets/svg/terminal.svg":HS,"/src/assets/svg/test.svg":WS,"/src/assets/svg/warn.svg":US}),qS=Object.fromEntries(Object.entries(KS).map(([e,t])=>{const n=e.split("/").at(-1).split(".")[0],r=document.createElement("template");return r.innerHTML=t.default,[n,r.content.firstChild]})),YS=Re({__name:"SvgIcon",props:{name:{}},setup(e){const t=e,n=Z(()=>qS[t.name]),r=Be();return Kr(()=>{const o=n.value,i=r.value;!o||!i||i.replaceChildren(...Array.from(o.cloneNode(!0).childNodes))}),(o,i)=>Le(n)?(Jn(),zo("svg",{key:0,ref_key:"actualEl",ref:r,class:"SvgIcon",name:e.name,viewBox:Le(n).getAttributeNS(null,"viewBox")||void 0,fill:Le(n).getAttribute("fill")||void 0},null,8,GS)):Pd("",!0)}}),Fl=Dd(K_);Fl.use(xp);Fl.component("SvgIcon",YS);Fl.mount(pp);console.log(Z_);export{X_ as $,Ct as A,F3 as B,Kr as C,tt as D,jo as E,Be as F,r3 as G,zo as H,pt as I,Ze as J,Ir as K,Pd as L,Le as M,bs as N,a3 as O,Pu as P,Jn as Q,Ke as R,nn as S,Pv as T,bn as U,ft as V,M2 as W,U_ as X,j3 as Y,E3 as Z,$l as _,ae as a,s3 as a$,gs as a0,_r as a1,et as a2,v2 as a3,d2 as a4,l3 as a5,Ah as a6,Io as a7,Li as a8,Xm as a9,Eg as aA,x3 as aB,y3 as aC,b3 as aD,a_ as aE,M3 as aF,W_ as aG,V_ as aH,j_ as aI,N_ as aJ,I3 as aK,o3 as aL,O3 as aM,E2 as aN,x_ as aO,t_ as aP,m_ as aQ,S3 as aR,B3 as aS,Rc as aT,Yu as aU,H3 as aV,S_ as aW,n3 as aX,z3 as aY,or as aZ,i3 as a_,d3 as aa,h3 as ab,Gr as ac,Ni as ad,ke as ae,Yr as af,ms as ag,Za as ah,v3 as ai,Rl as aj,P2 as ak,Pl as al,Ya as am,sf as an,Wt as ao,qr as ap,t3 as aq,qn as ar,nu as as,g3 as at,Dt as au,ss as av,ka as aw,Uo as ax,Po as ay,Zn as az,ue as b,Qp as b$,Ov as b0,dl as b1,_3 as b2,T3 as b3,kh as b4,fs as b5,El as b6,Bo as b7,ds as b8,xi as b9,r0 as bA,jr as bB,t0 as bC,e0 as bD,Qc as bE,kn as bF,Do as bG,H_ as bH,id as bI,sd as bJ,Hi as bK,vt as bL,e3 as bM,jf as bN,Me as bO,z_ as bP,P3 as bQ,D3 as bR,N3 as bS,Zu as bT,A3 as bU,$3 as bV,w3 as bW,jd as bX,Nc as bY,Cn as bZ,c3 as b_,w_ as ba,k_ as bb,R3 as bc,mp as bd,L3 as be,M_ as bf,k3 as bg,Hd as bh,wr as bi,cn as bj,At as bk,Nt as bl,mt as bm,us as bn,Jc as bo,Qn as bp,s2 as bq,ys as br,eu as bs,ru as bt,a0 as bu,vl as bv,Xa as bw,u3 as bx,p3 as by,m3 as bz,uo as c,v0 as c0,u0 as c1,xl as c2,Cr as c3,gy as c4,uh as c5,vy as c6,Cl as c7,Wi as c8,ih as c9,ao as cA,G0 as cB,ua as cC,Yo as cD,p2 as cE,wi as cF,W3 as cG,Zr as ca,Uy as cb,qo as cc,t1 as cd,mh as ce,Wr as cf,hs as cg,_u as ch,hh as ci,Jr as cj,vh as ck,Xr as cl,yn as cm,ch as cn,lh as co,Da as cp,ah as cq,Bx as cr,Db as cs,JS as ct,D0 as cu,f3 as cv,In as cw,ls as cx,C3 as cy,so as cz,Dn as d,V as e,fe as f,Ca as g,Re as h,No as i,j0 as j,k,$h as l,gt as m,bl as n,de as o,Wd as p,Bn as q,Jt as r,Z as s,Lt as t,qt as u,rt as v,we as w,QS as x,Wl as y,en as z};
1002
- //# sourceMappingURL=index-jqB-Fx47.js.map
1003
+ </svg>`,US=Object.freeze(Object.defineProperty({__proto__:null,default:VS},Symbol.toStringTag,{value:"Module"})),GS=["name","viewBox","fill"],KS=Object.assign({"/src/assets/svg/arrow.svg":Q_,"/src/assets/svg/close.svg":tS,"/src/assets/svg/code.svg":rS,"/src/assets/svg/copy.svg":iS,"/src/assets/svg/delete.svg":aS,"/src/assets/svg/device.svg":cS,"/src/assets/svg/discussion.svg":fS,"/src/assets/svg/export.svg":hS,"/src/assets/svg/github.svg":vS,"/src/assets/svg/home.svg":mS,"/src/assets/svg/import.svg":yS,"/src/assets/svg/info.svg":wS,"/src/assets/svg/minus.svg":_S,"/src/assets/svg/ok.svg":ES,"/src/assets/svg/path.svg":RS,"/src/assets/svg/prop.svg":OS,"/src/assets/svg/search-list.svg":$S,"/src/assets/svg/search.svg":kS,"/src/assets/svg/settings.svg":zS,"/src/assets/svg/share.svg":BS,"/src/assets/svg/system.svg":DS,"/src/assets/svg/terminal.svg":HS,"/src/assets/svg/test.svg":WS,"/src/assets/svg/warn.svg":US}),qS=Object.fromEntries(Object.entries(KS).map(([e,t])=>{const n=e.split("/").at(-1).split(".")[0],r=document.createElement("template");return r.innerHTML=t.default,[n,r.content.firstChild]})),YS=Re({__name:"SvgIcon",props:{name:{}},setup(e){const t=e,n=Z(()=>qS[t.name]),r=Be();return Kr(()=>{const o=n.value,i=r.value;!o||!i||i.replaceChildren(...Array.from(o.cloneNode(!0).childNodes))}),(o,i)=>Le(n)?(Jn(),zo("svg",{key:0,ref_key:"actualEl",ref:r,class:"SvgIcon",name:e.name,viewBox:Le(n).getAttributeNS(null,"viewBox")||void 0,fill:Le(n).getAttribute("fill")||void 0},null,8,GS)):Pd("",!0)}}),Fl=Dd(K_);Fl.use(xp);Fl.component("SvgIcon",YS);Fl.mount(pp);console.log(Z_);export{X_ as $,Ct as A,F3 as B,Kr as C,tt as D,jo as E,Be as F,r3 as G,zo as H,pt as I,Ze as J,Ir as K,Pd as L,Le as M,bs as N,a3 as O,Pu as P,Jn as Q,Ke as R,nn as S,Pv as T,bn as U,ft as V,M2 as W,U_ as X,j3 as Y,E3 as Z,$l as _,ae as a,s3 as a$,gs as a0,_r as a1,et as a2,v2 as a3,d2 as a4,l3 as a5,Ah as a6,Io as a7,Li as a8,Xm as a9,Eg as aA,x3 as aB,m_ as aC,S3 as aD,y3 as aE,b3 as aF,a_ as aG,M3 as aH,W_ as aI,V_ as aJ,j_ as aK,N_ as aL,B3 as aM,I3 as aN,o3 as aO,O3 as aP,E2 as aQ,x_ as aR,t_ as aS,Rc as aT,Yu as aU,H3 as aV,S_ as aW,n3 as aX,z3 as aY,or as aZ,i3 as a_,d3 as aa,h3 as ab,Gr as ac,Ni as ad,ke as ae,Yr as af,ms as ag,Za as ah,v3 as ai,Rl as aj,P2 as ak,Pl as al,Ya as am,sf as an,Wt as ao,qr as ap,t3 as aq,qn as ar,nu as as,g3 as at,Dt as au,ss as av,ka as aw,Uo as ax,Po as ay,Zn as az,ue as b,Qp as b$,Ov as b0,dl as b1,_3 as b2,T3 as b3,kh as b4,fs as b5,El as b6,Bo as b7,ds as b8,xi as b9,r0 as bA,jr as bB,t0 as bC,e0 as bD,Qc as bE,kn as bF,Do as bG,H_ as bH,id as bI,sd as bJ,Hi as bK,vt as bL,e3 as bM,jf as bN,Me as bO,z_ as bP,P3 as bQ,D3 as bR,N3 as bS,Zu as bT,A3 as bU,$3 as bV,w3 as bW,jd as bX,Nc as bY,Cn as bZ,c3 as b_,w_ as ba,k_ as bb,R3 as bc,mp as bd,L3 as be,M_ as bf,k3 as bg,Hd as bh,wr as bi,cn as bj,At as bk,Nt as bl,mt as bm,us as bn,Jc as bo,Qn as bp,s2 as bq,ys as br,eu as bs,ru as bt,a0 as bu,vl as bv,Xa as bw,u3 as bx,p3 as by,m3 as bz,uo as c,v0 as c0,u0 as c1,xl as c2,Cr as c3,gy as c4,uh as c5,vy as c6,Cl as c7,Wi as c8,ih as c9,ao as cA,G0 as cB,ua as cC,Yo as cD,p2 as cE,wi as cF,W3 as cG,Zr as ca,Uy as cb,qo as cc,t1 as cd,mh as ce,Wr as cf,hs as cg,_u as ch,hh as ci,Jr as cj,vh as ck,Xr as cl,yn as cm,ch as cn,lh as co,Da as cp,ah as cq,Bx as cr,Db as cs,JS as ct,D0 as cu,f3 as cv,In as cw,ls as cx,C3 as cy,so as cz,Dn as d,V as e,fe as f,Ca as g,Re as h,No as i,j0 as j,k,$h as l,gt as m,bl as n,de as o,Wd as p,Bn as q,Jt as r,Z as s,Lt as t,qt as u,rt as v,we as w,QS as x,Wl as y,en as z};
1004
+ //# sourceMappingURL=index-Dp1To-Ad.js.map