@panomc/widget-host 1.0.0-dev.64 → 1.0.0-dev.66

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 (44) hide show
  1. package/dist/runtime/chunks/{chunk-Xd_2KAhC.js → chunk-B5CK1uiS.js} +1 -1
  2. package/dist/runtime/chunks/chunk-BfcUislW.js +1 -0
  3. package/dist/runtime/chunks/chunk-Bkf3iLx0.js +1 -0
  4. package/dist/runtime/chunks/chunk-BwMumrfI.js +1 -0
  5. package/dist/runtime/chunks/chunk-C8W1Nv_i.js +1 -0
  6. package/dist/runtime/chunks/chunk-DDDEBZES.js +1 -0
  7. package/dist/runtime/chunks/{chunk-CqpY4RsZ.js → chunk-DE7YsbjM.js} +1 -1
  8. package/dist/runtime/chunks/chunk-DLMzDTGN.js +1 -0
  9. package/dist/runtime/chunks/chunk-DQhQpYBr.js +1 -0
  10. package/dist/runtime/chunks/{chunk-BQPllGmY.js → chunk-DptTvy3T.js} +1 -1
  11. package/dist/runtime/chunks/chunk-dcWYlI_G.js +1 -0
  12. package/dist/runtime/chunks/chunk-s84dpggu.js +1 -0
  13. package/dist/runtime/chunks/{chunk-DebScgYV.js → chunk-uTSPLXJn.js} +1 -1
  14. package/dist/runtime/host/components-panel.js +1 -1
  15. package/dist/runtime/host/components-theme.js +1 -1
  16. package/dist/runtime/host/controllers.js +1 -1
  17. package/dist/runtime/host/index.js +1 -1
  18. package/dist/runtime/host/internal.js +1 -1
  19. package/dist/runtime/host/svelte.js +1 -1
  20. package/dist/runtime/host/utils-language.js +1 -1
  21. package/dist/runtime/runtime.json +15 -14
  22. package/dist/runtime/svelte/attachments.js +1 -1
  23. package/dist/runtime/svelte/events.js +1 -1
  24. package/dist/runtime/svelte/index.js +1 -1
  25. package/dist/runtime/svelte/internal-client.js +1 -1
  26. package/dist/runtime/svelte/legacy.js +1 -1
  27. package/dist/runtime/svelte/motion.js +1 -1
  28. package/dist/runtime/svelte/reactivity-window.js +1 -1
  29. package/dist/runtime/svelte/reactivity.js +1 -1
  30. package/dist/runtime/svelte/store.js +1 -1
  31. package/dist/runtime/svelte/transition.js +1 -1
  32. package/dist/runtime/svelte-i18n.js +1 -1
  33. package/dist/widget-runtime.zip +0 -0
  34. package/package.json +10 -10
  35. package/src/controllers.js +1 -1
  36. package/src/svelte.js +3 -3
  37. package/dist/runtime/chunks/chunk-9EZydhXt.js +0 -1
  38. package/dist/runtime/chunks/chunk-CTgT5UYL.js +0 -1
  39. package/dist/runtime/chunks/chunk-ChRkfjHR.js +0 -1
  40. package/dist/runtime/chunks/chunk-DgPYxg7o.js +0 -1
  41. package/dist/runtime/chunks/chunk-FEL6LDrJ.js +0 -1
  42. package/dist/runtime/chunks/chunk-RPo0Hd8r.js +0 -1
  43. package/dist/runtime/chunks/chunk-akOtSLvV.js +0 -1
  44. package/dist/runtime/chunks/chunk-cUxFvg6m.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panomc/widget-host",
3
- "version": "1.0.0-dev.64",
3
+ "version": "1.0.0-dev.66",
4
4
  "description": "Host modules and runtime that let Pano plugin views run as web-component widgets outside a theme.",
5
5
  "author": "PanoMC",
6
6
  "license": "MIT",
@@ -46,20 +46,20 @@
46
46
  "access": "public"
47
47
  },
48
48
  "dependencies": {
49
- "@panomc/client": "1.0.0-dev.64",
50
- "@panomc/plugin-kit": "1.0.0-dev.64",
49
+ "@panomc/client": "1.0.0-dev.66",
50
+ "@panomc/plugin-kit": "1.0.0-dev.66",
51
51
  "svelte-i18n": "^4.0.1"
52
52
  },
53
53
  "peerDependencies": {
54
- "@panomc/sdk": "^2.0.0-dev.64",
54
+ "@panomc/sdk": "^2.0.0-dev.66",
55
55
  "svelte": "*"
56
56
  },
57
57
  "devDependencies": {
58
- "@panomc/sdk": "2.0.0-dev.64",
59
- "@rollup/plugin-node-resolve": "^16.0.0",
60
- "@rollup/plugin-terser": "^0.4.4",
61
- "happy-dom": "^20.0.0",
62
- "rollup": "^4.32.1",
63
- "rollup-plugin-svelte": "^7.2.2"
58
+ "@panomc/sdk": "2.0.0-dev.66",
59
+ "@rollup/plugin-node-resolve": "^16.0.3",
60
+ "@rollup/plugin-terser": "^1.0.0",
61
+ "happy-dom": "^21.0.1",
62
+ "rollup": "^4.64.7",
63
+ "rollup-plugin-svelte": "^7.2.3"
64
64
  }
65
65
  }
@@ -155,7 +155,7 @@ export function createWidgetHost(overrides = {}) {
155
155
  void showToast(key, o?.values ?? {}, undefined, o?.variant ? { variant: o.variant } : undefined);
156
156
  },
157
157
  navigate: (url, o) => {
158
- void goto(url, { replaceState: !!o?.replace });
158
+ void goto(url, { replace: !!o?.replace });
159
159
  },
160
160
  storage,
161
161
  feature: () => false,
package/src/svelte.js CHANGED
@@ -33,7 +33,7 @@ function currentUrl() {
33
33
  /**
34
34
  * Raises a cancelable `pano:navigate` { url }; when nobody cancels it, the configured `navigate` hook or `location.assign` runs.
35
35
  * @param {string | URL} url a site path, an absolute URL or a key of the URL map
36
- * @param {{ replaceState?: boolean }} [options]
36
+ * @param {{ replace?: boolean, replaceState?: boolean }} [options] `replaceState` is the SvelteKit 2 name
37
37
  */
38
38
  export async function goto(url, options) {
39
39
  const target = resolveUrl(String(url));
@@ -42,11 +42,11 @@ export async function goto(url, options) {
42
42
 
43
43
  const navigate = getConfig().navigate;
44
44
  if (typeof navigate === 'function') {
45
- navigate(target, { replace: !!options?.replaceState });
45
+ navigate(target, { replace: !!(options?.replace ?? options?.replaceState) });
46
46
  return;
47
47
  }
48
48
  if (typeof location === 'undefined') return;
49
- if (options?.replaceState) location.replace(target);
49
+ if (options?.replace ?? options?.replaceState) location.replace(target);
50
50
  else location.assign(target);
51
51
  }
52
52
 
@@ -1 +0,0 @@
1
- import{c as e,l as t,t as n}from"./chunk-DNUkGPCL.js";const r=!1;var s=Array.isArray,o=Array.prototype.indexOf,a=Array.prototype.includes,i=Array.from,l=Object.keys,f=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyDescriptors,d=Object.prototype,v=Array.prototype,h=Object.getPrototypeOf,p=Object.isExtensible,b=Object.prototype.hasOwnProperty;function _(e){return"function"==typeof e}const y=()=>{};function w(e){return"function"==typeof e?.then}function m(e){return e()}function g(e){for(var t=0;t<e.length;t++)e[t]()}function k(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}function x(e,t,n=!1){return void 0===e?n?t():t:e}function E(e,t){if(Array.isArray(e))return e;if(void 0===t||!(Symbol.iterator in e))return Array.from(e);const n=[];for(const r of e)if(n.push(r),n.length===t)break;return n}function S(e,t){var n={};for(var r in e)t.includes(r)||(n[r]=e[r]);for(var s of Object.getOwnPropertySymbols(e))Object.propertyIsEnumerable.call(e,s)&&!t.includes(s)&&(n[s]=e[s]);return n}const P=2,j=1<<24,O=16,M=32,A=64,T=128,q=512,N=1024,D=2048,R=4096,z=8192,C=16384,L=32768,F=1<<25,I=65536,V=1<<17,$=1<<18,K=1<<19,B=1<<25,W=65536,G=1<<21,H=1<<22,J=1<<23,Q=Symbol("$state"),U=Symbol("legacy props"),X=Symbol(""),Y=Symbol("proxy path"),Z=Symbol("attributes"),ee=Symbol("class"),te=Symbol("style"),ne=Symbol("text"),re=Symbol("form reset"),se=Symbol("hmr anchor"),oe=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},ae=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),ie=1,le=3,fe=8,ue=11;function ce(e){return e===this.v}function de(e,t){return e!=e?t==t:e!==t||null!==e&&"object"==typeof e||"function"==typeof e}function ve(e){return!de(e,this.v)}function he(e){throw new Error("https://svelte.dev/e/experimental_async_required")}function pe(){throw new Error("https://svelte.dev/e/invalid_default_snippet")}function be(){throw new Error("https://svelte.dev/e/invalid_snippet_arguments")}function _e(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function ye(){throw new Error("https://svelte.dev/e/snippet_without_render_tag")}function we(e){throw new Error("https://svelte.dev/e/store_invalid_shape")}function me(){throw new Error("https://svelte.dev/e/svelte_element_invalid_this_value")}function ge(e,t){throw new Error("https://svelte.dev/e/component_api_changed")}function ke(e,t){throw new Error("https://svelte.dev/e/component_api_invalid_new")}function xe(e,t,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function Ee(){throw new Error("https://svelte.dev/e/effect_pending_outside_reaction")}function Se(){throw new Error("https://svelte.dev/e/get_abort_signal_outside_reaction")}function Pe(){throw new Error("https://svelte.dev/e/hydration_failed")}function je(e){throw new Error("https://svelte.dev/e/lifecycle_legacy_only")}function Oe(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Me(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const Ae=1,Te=2,qe=4,Ne=8,De=16,Re=1,ze=2,Ce=4,Le=8,Fe=16,Ie=1,Ve=2,$e=4,Ke=1,Be=2,We=4,Ge=8,He="[",Je="[!",Qe="[?",Ue="]",Xe={},Ye=Symbol("uninitialized"),Ze=Symbol("filename"),et=Symbol("hmr"),tt="http://www.w3.org/1999/xhtml",nt="http://www.w3.org/2000/svg",rt="http://www.w3.org/1998/Math/MathML",st="@attach";let ot=null;function at(e){ot=e}let it=null;function lt(e,t,n,r,s,o){const a=it;it={type:t,file:n[Ze],line:r,column:s,parent:a,...o};try{return e()}finally{it=a}}let ft=null;function ut(e){ft=e}function ct(){const e={};return[()=>(ht(e)||function(){throw new Error("https://svelte.dev/e/missing_context")}(),dt(e)),t=>vt(e,t)]}function dt(e){return wt().get(e)}function vt(t,n){const r=wt();if(e){var s=ds.f;!fs&&0!==(s&M)&&!ot.i||function(){throw new Error("https://svelte.dev/e/set_context_after_init")}()}return r.set(t,n),n}function ht(e){return wt().has(e)}function pt(){return wt()}function bt(e,n=!1,r){ot={p:ot,i:!1,c:null,e:null,s:e,x:null,r:ds,l:t&&!n?{s:null,u:null,$:[]}:null}}function _t(e){var t=ot,n=t.e;if(null!==n)for(var r of(t.e=null,n))Bs(r);return void 0!==e&&(t.x=e),t.i=!0,ot=t.p,e??{}}function yt(){return!t||null!==ot&&null===ot.l}function wt(e){return null===ot&&_e(),ot.c??=new Map(function(e){let t=e.p;for(;null!==t;){const e=t.c;if(null!==e)return e;t=t.p}return null}(ot)||void 0)}let mt=[];function gt(){var e=mt;mt=[],g(e)}function kt(e){if(0===mt.length&&!Qn){var t=mt;queueMicrotask(()=>{t===mt&&gt()})}mt.push(e)}function xt(){for(;mt.length>0;)gt()}function Et(e,t){console.warn("https://svelte.dev/e/assignment_value_stale")}function St(e,t){console.warn("https://svelte.dev/e/binding_property_non_reactive")}function Pt(e){console.warn("https://svelte.dev/e/console_log_state")}function jt(e,t){console.warn("https://svelte.dev/e/event_handler_invalid")}function Ot(e){console.warn("https://svelte.dev/e/hydratable_missing_but_expected")}function Mt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function At(e){console.warn("https://svelte.dev/e/legacy_recursive_reactive_block")}function Tt(e,t,n,r){console.warn("https://svelte.dev/e/ownership_invalid_binding")}function qt(e,t,n,r){console.warn("https://svelte.dev/e/ownership_invalid_mutation")}function Nt(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Dt(e){console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}function Rt(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let zt,Ct=!1;function Lt(e){Ct=e}function Ft(e){if(null===e)throw Mt(),Xe;return zt=e}function It(){return Ft(rn(zt))}function Vt(e){if(Ct){if(null!==rn(zt))throw Mt(),Xe;zt=e}}function $t(e){Ct&&(zt=e.content)}function Kt(e=1){if(Ct){for(var t=e,n=zt;t--;)n=rn(n);zt=n}}function Bt(e=!0){for(var t=0,n=zt;;){if(8===n.nodeType){var r=n.data;if("]"===r){if(0===t)return n;t-=1}else("["===r||"[!"===r||"["===r[0]&&!isNaN(Number(r.slice(1))))&&(t+=1)}var s=rn(n);e&&n.remove(),n=s}}function Wt(e){if(!e||8!==e.nodeType)throw Mt(),Xe;return e.data}function Gt(e){if("object"!=typeof e||null===e||Q in e)return e;const t=h(e);if(t!==d&&t!==v)return e;var n=new Map,r=s(e),o=Vr(0),a=gs,i=e=>{if(gs===a)return e();var t=fs,n=gs;cs(null),ks(a);var r=e();return cs(t),ks(n),r};return r&&n.set("length",Vr(e.length)),new Proxy(e,{defineProperty(e,t,r){"value"in r&&!1!==r.configurable&&!1!==r.enumerable&&!1!==r.writable||function(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}();var s=n.get(t);return void 0===s?i(()=>{var e=Vr(r.value);return n.set(t,e),e}):Br(s,r.value,!0),!0},deleteProperty(e,t){var r=n.get(t);if(void 0===r){if(t in e){const e=i(()=>Vr(Ye));n.set(t,e),Qr(o)}}else Br(r,Ye),Qr(o);return!0},get(t,r,s){if(r===Q)return e;var o=n.get(r),a=r in t;if(void 0!==o||a&&!u(t,r)?.writable||(o=i(()=>Vr(Gt(a?t[r]:Ye))),n.set(r,o)),void 0!==o){var l=qs(o);return l===Ye?void 0:l}return Reflect.get(t,r,s)},getOwnPropertyDescriptor(e,t){var r=Reflect.getOwnPropertyDescriptor(e,t);if(r&&"value"in r){var s=n.get(t);s&&(r.value=qs(s))}else if(void 0===r){var o=n.get(t),a=o?.v;if(void 0!==o&&a!==Ye)return{enumerable:!0,configurable:!0,value:a,writable:!0}}return r},has(e,t){if(t===Q)return!0;var r=n.get(t),s=void 0!==r&&r.v!==Ye||Reflect.has(e,t);if((void 0!==r||null!==ds&&(!s||u(e,t)?.writable))&&(void 0===r&&(r=i(()=>Vr(s?Gt(e[t]):Ye)),n.set(t,r)),qs(r)===Ye))return!1;return s},set(e,t,s,a){var l=n.get(t),f=t in e;if(r&&"length"===t)for(var c=s;c<l.v;c+=1){var d=n.get(c+"");void 0!==d?Br(d,Ye):c in e&&(d=i(()=>Vr(Ye)),n.set(c+"",d))}void 0===l?f&&!u(e,t)?.writable||(Br(l=i(()=>Vr(void 0)),Gt(s)),n.set(t,l)):(f=l.v!==Ye,Br(l,i(()=>Gt(s))));var v=Reflect.getOwnPropertyDescriptor(e,t);if(v?.set&&v.set.call(a,s),!f){if(r&&"string"==typeof t){var h=n.get("length"),p=Number(t);Number.isInteger(p)&&p>=h.v&&Br(h,p+1)}Qr(o)}return!0},ownKeys(e){qs(o);var t=Reflect.ownKeys(e).filter(e=>{var t=n.get(e);return void 0===t||t.v!==Ye});for(var[r,s]of n)s.v===Ye||r in e||t.push(r);return t},setPrototypeOf(){!function(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}()}})}function Ht(e){try{if(null!==e&&"object"==typeof e&&Q in e)return e[Q]}catch{}return e}function Jt(e,t){return Object.is(Ht(e),Ht(t))}var Qt,Ut,Xt,Yt,Zt;function en(){if(void 0===Qt){Qt=window,Ut=document,Xt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Yt=u(t,"firstChild").get,Zt=u(t,"nextSibling").get,p(e)&&(e[ee]=void 0,e[Z]=null,e[te]=void 0,e.__e=void 0),p(n)&&(n[ne]=void 0)}}function tn(e=""){return document.createTextNode(e)}function nn(e){return Yt.call(e)}function rn(e){return Zt.call(e)}function sn(e,t){if(!Ct)return nn(e);var n=nn(zt);if(null===n)n=zt.appendChild(tn());else if(t&&3!==n.nodeType){var r=tn();return n?.before(r),Ft(r),r}return t&&hn(n),Ft(n),n}function on(e,t=!1){if(!Ct){var n=nn(e);return n instanceof Comment&&""===n.data?rn(n):n}if(t){if(3!==zt?.nodeType){var r=tn();return zt?.before(r),Ft(r),r}hn(zt)}return zt}function an(e,t=1,n=!1){let r=Ct?zt:e;for(var s;t--;)s=r,r=rn(r);if(!Ct)return r;if(n){if(3!==r?.nodeType){var o=tn();return null===r?s?.after(o):r.before(o),Ft(o),o}hn(r)}return Ft(r),r}function ln(e){e.textContent=""}function fn(){return!!e&&(null===rr&&0!==(ds.f&L))}function un(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??tt,e,r)}function cn(){return document.createDocumentFragment()}function dn(e=""){return document.createComment(e)}function vn(e,t,n=""){if(!t.startsWith("xlink:"))return e.setAttribute(t,n);e.setAttributeNS("http://www.w3.org/1999/xlink",t,n)}function hn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;null!==t&&3===t.nodeType;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function pn(e){var t=ds;if(null===t)return fs.f|=J,e;if(0===(t.f&L)&&!(4&t.f))throw e;bn(e,t)}function bn(e,t){for(;null!==t;){if(128&t.f){if(0===(t.f&L))throw e;try{return void t.b.error(e)}catch(t){e=t}}t=t.parent}throw e}const _n=-7169;function yn(e,t){e.f=e.f&_n|t}function wn(e){0!==(e.f&q)||null===e.deps?yn(e,N):yn(e,R)}function mn(e){if(null!==e)for(const t of e)2&t.f&&0!==(t.f&W)&&(t.f^=W,mn(t.deps))}function gn(e,t,n){0!==(e.f&D)?t.add(e):0!==(e.f&R)&&n.add(e),mn(e.deps),yn(e,N)}function kn(e,t,n){if(null==e)return t(void 0),n&&n(void 0),y;const r=zs(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}const xn=[];function En(e,t){return{subscribe:Sn(e,t).subscribe}}function Sn(e,t=y){let n=null;const r=new Set;function s(t){if(de(e,t)&&(e=t,n)){const t=!xn.length;for(const t of r)t[1](),xn.push(t,e);if(t){for(let e=0;e<xn.length;e+=2)xn[e][0](xn[e+1]);xn.length=0}}}function o(t){s(t(e))}return{set:s,update:o,subscribe:function(a,i=y){const l=[a,i];return r.add(l),1===r.size&&(n=t(s,o)||y),a(e),()=>{r.delete(l),0===r.size&&n&&(n(),n=null)}}}}function Pn(e,t,n){const r=!Array.isArray(e),s=r?[e]:e;if(!s.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return En(n,(e,n)=>{let a=!1;const i=[];let l=0,f=y;const u=()=>{if(l)return;f();const s=t(r?i[0]:i,e,n);o?e(s):f="function"==typeof s?s:y},c=s.map((e,t)=>kn(e,e=>{i[t]=e,l&=~(1<<t),a&&u()},()=>{l|=1<<t}));return a=!0,u(),function(){g(c),f(),a=!1}})}function jn(e){return{subscribe:e.subscribe.bind(e)}}function On(e){let t;return kn(e,e=>t=e)(),t}let Mn=!1,An=!1,Tn=Symbol("unmounted");function qn(e,t,n){const r=n[t]??={store:null,source:$r(void 0),unsubscribe:y};if(r.store!==e&&!(Tn in n))if(r.unsubscribe(),r.store=e??null,null==e)r.source.v=void 0,r.unsubscribe=y;else{var s=!0;r.unsubscribe=kn(e,e=>{s?r.source.v=e:Br(r.source,e)}),s=!1}return e&&Tn in n?On(e):qs(r.source)}function Nn(e,t,n){let r=n[t];return r&&r.store!==e&&(r.unsubscribe(),r.unsubscribe=y),e}function Dn(e,t){return Cn(e,t),t}function Rn(e,t){var n=e[t];null!==n.store&&Dn(n.store,n.source.v)}function zn(){const e={};return[e,function(){$s(()=>{for(var t in e){e[t].unsubscribe()}f(e,Tn,{enumerable:!1,value:!0})})}]}function Cn(e,t){Mn=!0;try{e.set(t)}finally{Mn=!1}}function Ln(e,t,n){return Cn(e,n),t}function Fn(e,t,n=1){return Cn(e,t+n),t}function In(e,t,n=1){const r=t+n;return Cn(e,r),r}function Vn(){An=!0}function $n(e){var t=An;try{return An=!1,[e(),An]}finally{An=t}}let Kn=null,Bn=null,Wn=null,Gn=null,Hn=null,Jn=null,Qn=!1,Un=!1,Xn=null,Yn=null;var Zn=0;new Set;let er=1;class tr{id=er++;#e=!1;linked=!0;#t=null;#n=null;async_deriveds=new Map;current=new Map;previous=new Map;unblocked=new Set;#r=new Set;#s=new Set;#o=new Set;#a=0;#i=new Map;#l=null;#f=[];#u=[];#c=new Set;#d=new Set;#v=new Map;#h=new Set;is_fork=!1;#p=!1;#b(){if(this.is_fork)return!0;for(const n of this.#i.keys()){for(var e=n,t=!1;null!==e.parent;){if(this.#v.has(e)){t=!0;break}e=e.parent}if(!t)return!0}return!1}skip_effect(e){this.#v.has(e)||this.#v.set(e,{d:[],m:[]}),this.#h.delete(e)}unskip_effect(e,t=e=>this.schedule(e)){var n=this.#v.get(e);if(n){for(var r of(this.#v.delete(e),n.d))yn(r,D),t(r);for(r of n.m)yn(r,R),t(r)}this.#h.add(e)}#_(){if(this.#e=!0,Zn++>1e3&&(this.#y(),function(){try{!function(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}()}catch(e){bn(e,Jn)}}()),!this.#b()){for(const e of this.#c)this.#d.delete(e),yn(e,D),this.schedule(e);for(const e of this.#d)yn(e,R),this.schedule(e)}const t=this.#f;this.#f=[],this.apply();var n=Xn=[],r=[],s=Yn=[];for(const e of t)try{this.#w(e,n,r)}catch(t){throw hr(e),t}if(Wn=null,s.length>0){var o=tr.ensure();for(const e of s)o.schedule(e)}if(Xn=null,Yn=null,this.#b()){this.#m(r),this.#m(n);for(const[e,t]of this.#v)vr(e,t);return void(s.length>0&&Wn.#_())}const a=this.#g();if(a)a.#k(this);else{this.#c.clear(),this.#d.clear();for(const e of this.#r)e(this);this.#r.clear(),Gn=this,sr(r),sr(n),Gn=null,this.#l?.resolve();var i=Wn;if(this.linked&&0===this.#a&&this.#y(),e&&!this.linked&&(this.#x(),Wn=i),this.#f.length>0){null===i&&(i=this,this.#E());const e=i;e.#f.push(...this.#f.filter(t=>!e.#f.includes(t)))}null!==i&&i.#_()}}#w(t,n,r){t.f^=N;for(var s=t.first;null!==s;){var o=s.f,a=!!(96&o);if(!(a&&0!==(o&N)||0!==(o&z)||this.#v.has(s))&&null!==s.fn){a?s.f^=N:4&o?n.push(s):e&&16777224&o?r.push(s):Es(s)&&(0!==(o&O)&&this.#d.add(s),Ms(s));var i=s.first;if(null!==i){s=i;continue}}for(;null!==s;){var l=s.next;if(null!==l){s=l;break}s=s.parent}}}#g(){for(var e=this.#t;null!==e;){if(!e.is_fork)for(const[t,[,n]]of this.current)if(e.current.has(t)&&!n)return e;e=e.#t}return null}#k(e){for(const[t,n]of e.current)!this.previous.has(t)&&e.previous.has(t)&&this.previous.set(t,e.previous.get(t)),this.current.set(t,n);for(const[t,n]of e.async_deriveds){const e=this.async_deriveds.get(t);e&&n.promise.then(e.resolve)}const t=e=>{var n=e.reactions;if(null!==n)for(const e of n){var r=e.f;if(2&r)t(e);else{var s=e;4194320&r&&!this.async_deriveds.has(s)&&(this.#d.delete(s),yn(s,D),this.schedule(s))}}};for(const e of this.current.keys())t(e);this.oncommit(()=>e.discard()),e.#y(),Wn=this,this.#_()}#m(e){for(var t=0;t<e.length;t+=1)gn(e[t],this.#c,this.#d)}capture(e,t,n=!1){e.v===Ye||this.previous.has(e)||this.previous.set(e,e.v),0===(e.f&J)&&(this.current.set(e,[t,n]),Hn?.set(e,t)),this.is_fork||(e.v=t)}activate(){Wn=this}deactivate(){Wn=null,Hn=null}flush(){try{r,Un=!0,Wn=this,this.#_()}finally{Zn=0,Jn=null,Xn=null,Yn=null,Un=!1,Wn=null,Hn=null,Cr.clear()}}discard(){for(const e of this.#s)e(this);this.#s.clear(),this.#o.clear(),this.#y()}register_created_effect(e){this.#u.push(e)}#x(){this.#y();for(let f=Kn;null!==f;f=f.#n){var e=f.id<this.id,t=[];for(const[r,[s,o]]of this.current){if(f.current.has(r)){var n=f.current.get(r)[0];if(!e||s===n)continue;f.current.set(r,[s,o])}t.push(r)}if(e)for(const[e,t]of this.async_deriveds){const n=f.async_deriveds.get(e);n&&t.promise.then(n.resolve)}if(f.#e){var r=[...f.current.keys()].filter(e=>!this.current.has(e));if(0===r.length)e&&f.discard();else if(t.length>0){if(e)for(const e of this.#h)f.unskip_effect(e,e=>{4194320&e.f?f.schedule(e):f.#m([e])});f.activate();var s=new Set,o=new Map;for(var a of t)or(a,r,s,o);o=new Map;var i=[...f.current.keys()].filter(e=>!this.current.has(e)||this.current.get(e)[0]!==e.v);if(i.length>0)for(const e of this.#u)155648&e.f||!ir(e,i,o)||(4194320&e.f?(yn(e,D),f.schedule(e)):f.#c.add(e));if(f.#f.length>0&&!f.#p){for(var l of(f.apply(),f.#f))f.#w(l,[],[]);f.#f=[]}f.deactivate()}}}}increment(e,t){if(this.#a+=1,e){let e=this.#i.get(t)??0;this.#i.set(t,e+1)}}decrement(e,t){if(this.#a-=1,e){let e=this.#i.get(t)??0;1===e?this.#i.delete(t):this.#i.set(t,e-1)}this.#p||(this.#p=!0,kt(()=>{this.#p=!1,this.linked&&this.flush()}))}transfer_effects(e,t){for(const t of e)this.#c.add(t);for(const e of t)this.#d.add(e);e.clear(),t.clear()}oncommit(e){this.#r.add(e)}ondiscard(e){this.#s.add(e)}on_fork_commit(e){this.#o.add(e)}run_fork_commit_callbacks(){for(const e of this.#o)e(this);this.#o.clear()}settled(){return(this.#l??=k()).promise}static ensure(){if(null===Wn){const e=Wn=new tr;e.#E(),Un||Qn||kt(()=>{e.#e||e.flush()})}return Wn}apply(){if(e&&(this.is_fork||null!==this.#t||null!==this.#n)){Hn=new Map;for(const[e,[t]]of this.current)Hn.set(e,t);for(let e=Kn;null!==e;e=e.#n)if(e!==this&&!e.is_fork){var t=!1;if(e.id<this.id)for(const[n,[,r]]of e.current)if(!r&&this.current.has(n)){t=!0;break}if(!t)for(const[t,n]of e.previous)Hn.has(t)||Hn.set(t,n)}}else Hn=null}schedule(t){if(Jn=t,t.b?.is_pending&&16777228&t.f&&0===(t.f&L))t.b.defer_effect(t);else{for(var n=t;null!==n.parent;){var r=(n=n.parent).f;if(null!==Xn&&n===ds){if(e)return;if(!(null!==fs&&2&fs.f||Mn))return}if(96&r){if(0===(r&N))return;n.f^=N}}this.#f.push(n)}}#E(){null===Bn?Kn=Bn=this:(Bn.#n=this,this.#t=Bn),Bn=this}#y(){var e=this.#t,t=this.#n;null===e?Kn=t:e.#n=t,null===t?Bn=e:t.#t=e,this.linked=!1}}function nr(e){var t=Qn;Qn=!0;try{var n;for(e&&(null===Wn||Wn.is_fork||Wn.flush(),n=e());;){if(xt(),null===Wn)return n;Wn.flush()}}finally{Qn=t}}let rr=null;function sr(e){var t=e.length;if(0!==t){for(var n=0;n<t;){var r=e[n++];if(!(24576&r.f)&&Es(r)&&(rr=new Set,Ms(r),null===r.deps&&null===r.first&&null===r.nodes&&null===r.teardown&&null===r.ac&&lo(r),rr?.size>0)){Cr.clear();for(const e of rr){if(24576&e.f)continue;const t=[e];let n=e.parent;for(;null!==n;)rr.has(n)&&(rr.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){const n=t[e];24576&n.f||Ms(n)}}rr.clear()}}rr=null}}function or(e,t,n,r){if(!n.has(e)&&(n.add(e),null!==e.reactions))for(const s of e.reactions){const e=s.f;2&e?or(s,t,n,r):4194320&e&&0===(e&D)&&ir(s,t,r)&&(yn(s,D),lr(s))}}function ar(e,t){if(null!==e.reactions)for(const n of e.reactions){const e=n.f;2&e?ar(n,t):0!==(e&V)&&(yn(n,D),t.add(n))}}function ir(e,t,n){const r=n.get(e);if(void 0!==r)return r;if(null!==e.deps)for(const r of e.deps){if(a.call(t,r))return!0;if(2&r.f&&ir(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function lr(e){Wn.schedule(e)}let fr=[];function ur(){nr(()=>{const e=fr;fr=[];for(const t of e)Hr(t)})}var cr=new Map;function dr(e){var t=!0,n=void 0;if(null===fs)return e();let r=fs,s=cr.get(r)??Ir(0);return cr.set(r,s),$s(()=>{r.f&F&&cr.delete(r)}),qs(s),Gs(()=>{if(t){var r=Hn;try{Hn=null,n=e()}finally{Hn=r}}else 0===fr.length&&kt(ur),fr.push(s)}),t=!1,n}function vr(e,t){if(0===(e.f&M)||0===(e.f&N)){0!==(e.f&D)?t.d.push(e):0!==(e.f&R)&&t.m.push(e),yn(e,N);for(var n=e.first;null!==n;)vr(n,t),n=n.next}}function hr(e){yn(e,N);for(var t=e.first;null!==t;)hr(t),t=t.next}function pr(t){e||he(),null!==Wn&&function(){throw new Error("https://svelte.dev/e/fork_timing")}();var n=tr.ensure();n.is_fork=!0,Hn=new Map;var r=!1,s=n.settled();return nr(t),{commit:async()=>{if(r)await s;else{for(var[e,[t]]of(n.linked||function(){throw new Error("https://svelte.dev/e/fork_discarded")}(),r=!0,n.is_fork=!1,n.current))e.v=t,e.wv=xs();n.activate(),n.run_fork_commit_callbacks(),n.deactivate(),nr(()=>{var e=new Set;for(var t of n.current.keys())ar(t,e);Lr(e),Gr()}),n.flush(),await s}},discard:()=>{for(var e of n.current.keys())e.wv=xs();!r&&n.linked&&n.discard()}}}function br(e,t,n,r){const s=yt()?Or:qr;var o=e.filter(e=>!e.settled);if(0!==n.length||0!==o.length){var a=ds,i=yr(),l=1===o.length?o[0].promise:o.length>1?Promise.all(o.map(e=>e.promise)):null,f=Sr();0!==n.length?l?l.then(()=>{i(),c(),kr()}):c():l.then(()=>u(t.map(s))).finally(f)}else r(t.map(s));function u(e){if(0===(a.f&C)){i();try{r(e)}catch(e){bn(e,a)}kr()}}function c(){Promise.all(n.map(e=>Ar(e))).then(e=>u([...t.map(s),...e])).catch(e=>bn(e,a)).finally(f)}}function _r(e,t){br(e,[],[],t)}function yr(){var e=ds,t=fs,n=ot,r=Wn;return function(s=!0){vs(e),cs(t),at(n),s&&0===(e.f&C)&&(r?.activate(),r?.apply())}}async function wr(e){var t=yr(),n=await e;return()=>(t(),n)}async function mr(e){var t=Pr;queueMicrotask(()=>{Pr===t&&jr(null)});var n=await e;return()=>(jr(t),queueMicrotask(()=>{Pr===t&&jr(null)}),n)}async function*gr(e){const t=e[Symbol.asyncIterator]?.()??e[Symbol.iterator]?.();if(void 0===t)throw new TypeError("value is not async iterable");let n=!0;try{for(;;){const{done:e,value:s}=(await mr(t.next()))();if(e){n=!1;break}var r=Pr;try{yield s}catch(e){throw jr(r),void 0!==t.return&&(await mr(t.return()))(),e}jr(r)}}catch(e){throw n=!1,e}finally{if(n&&void 0!==t.return)return(await mr(t.return()))().value}}function kr(e=!0){vs(null),cs(null),at(null),e&&Wn?.deactivate()}function xr(e){const t=yr(),n=Sr();var r=ds,s=null;const o=e=>{s={error:e},ho(r)||bn(e,r)};var a=Promise.resolve(e[0]()).catch(o),i={promise:a,settled:!1},l=[i];a.finally(()=>{i.settled=!0,kr()});for(const n of e.slice(1)){const e={promise:a=a.then(()=>{t();try{if(s)throw s.error;if(ho(r))throw oe;return n()}finally{kr()}}).catch(o),settled:!1};l.push(e),a.finally(()=>{e.settled=!0,kr()})}return a.then(()=>Promise.resolve()).finally(n),l}function Er(e){return Promise.all(e.map(e=>e.promise))}function Sr(){var e=ds,t=e.b,n=Wn,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),()=>{t.update_pending_count(-1,n),n.decrement(r,e)}}let Pr=null;function jr(e){Pr=e}function Or(e){null!==ds&&(ds.f|=K);return{ctx:ot,deps:null,effects:null,equals:ce,f:2050,fn:e,reactions:null,rv:0,v:Ye,wv:0,parent:ds,ac:null}}const Mr=Symbol("obsolete");function Ar(e,t,n){let r=ds;null===r&&function(){throw new Error("https://svelte.dev/e/async_derived_orphan")}();var s=void 0,o=Ir(Ye),a=!fs,i=new Set;return function(e){Is(4718592,e)}(()=>{var t=ds,n=k();s=n.promise;try{Promise.resolve(e()).then(n.resolve,e=>{e!==oe&&n.reject(e)}).finally(kr)}catch(e){n.reject(e),kr()}var l=Wn;if(a){if(0!==(t.f&L))var f=Sr();if(r.b.is_rendered())l.async_deriveds.get(t)?.reject(Mr);else for(const e of i.values())e.reject(Mr);i.add(n),l.async_deriveds.set(t,n)}const u=(e,t=void 0)=>{f?.(),i.delete(n),t!==Mr&&(l.activate(),t?(o.f|=J,Wr(o,t)):(0!==(o.f&J)&&(o.f^=J),Wr(o,e)),l.deactivate())};n.promise.then(u,e=>u(null,e||"unknown"))}),$s(()=>{for(const e of i)e.reject(Mr)}),new Promise(e=>{!function t(n){function r(){n===s?e(o):t(s)}n.then(r,r)}(s)})}function Tr(t){const n=Or(t);return e||ps(n),n}function qr(e){const t=Or(e);return t.equals=ve,t}function Nr(e){var t,n=ds,r=e.parent;if(!is&&null!==r&&e.v!==Ye&&24576&r.f)return console.warn("https://svelte.dev/e/derived_inert"),e.v;vs(r);try{e.f&=-65537,function(e){var t=e.effects;if(null!==t){e.effects=null;for(var n=0;n<t.length;n+=1)ao(t[n])}}(e),t=Ps(e)}finally{vs(n)}return t}function Dr(e){var t=Nr(e);e.equals(t)||(e.wv=xs(),Wn?.is_fork&&null!==e.deps||(null!==Wn?(Wn.capture(e,t,!0),Gn?.capture(e,t,!0)):e.v=t,null!==e.deps))?is||(null!==Hn?(Vs()||Wn?.is_fork)&&Hn.set(e,t):wn(e)):yn(e,N)}function Rr(e){if(null!==e.effects)for(const t of e.effects)t.teardown&&null!==t.fn&&Ms(t)}let zr=new Set;const Cr=new Map;function Lr(e){zr=e}let Fr=!1;function Ir(e,t){return{f:0,v:e,reactions:null,equals:ce,rv:0,wv:0}}function Vr(e,t){const n=Ir(e);return ps(n),n}function $r(e,n=!1,r=!0){const s=Ir(e);return n||(s.equals=ve),t&&r&&null!==ot&&null!==ot.l&&(ot.l.s??=[]).push(s),s}function Kr(e,t){return Br(e,zs(()=>qs(e))),t}function Br(e,t,n=!1){return null===fs||us&&0===(fs.f&V)||!yt()||!(4325394&fs.f)||null!==hs&&a.call(hs,e)||function(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}(),Wr(e,n?Gt(t):t,Yn)}function Wr(e,t,n=null){if(!e.equals(t)){Cr.set(e,is?t:e.v);var r=tr.ensure();if(r.capture(e,t),2&e.f){const t=e;0!==(e.f&D)&&Nr(t),null===Hn&&wn(t)}e.wv=xs(),Ur(e,D,n),!yt()||null===ds||0===(ds.f&N)||96&ds.f||(null===ys?function(e){ys=e}([e]):ys.push(e)),!r.is_fork&&zr.size>0&&!Fr&&Gr()}return t}function Gr(){Fr=!1;for(const e of zr){let t;0!==(e.f&N)&&yn(e,R);try{t=Es(e)}catch{t=!0}t&&Ms(e)}zr.clear()}function Hr(e,t=1){var n=qs(e),r=1===t?n++:n--;return Br(e,n),r}function Jr(e,t=1){var n=qs(e);return Br(e,1===t?++n:--n)}function Qr(e){Br(e,e.v+1)}function Ur(e,t,n){var r=e.reactions;if(null!==r)for(var s=yt(),o=r.length,a=0;a<o;a++){var i=r[a],l=i.f;if(s||i!==ds){var f=0===(l&D);if(f&&yn(i,t),0!==(l&V))zr.add(i);else if(2&l){var u=i;Hn?.delete(u),0===(l&W)&&(l&q&&(null===ds||0===(ds.f&G))&&(i.f|=W),Ur(u,R,n))}else if(f){var c=i;0!==(l&O)&&null!==rr&&rr.add(c),null!==n?n.push(c):lr(c)}}}}let Xr=null;function Yr(e){for(var t of function(e){var t=Xr;try{if(Xr=new Set,zs(e),null!==t)for(var n of Xr)t.add(n);return Xr}finally{Xr=t}}(e))Wr(t,t.v)}function Zr(e,t){if(t){const t=document.body;e.autofocus=!0,kt(()=>{document.activeElement===t&&e.focus()})}}function es(e){Ct&&null!==nn(e)&&ln(e)}let ts=!1;function ns(){ts||(ts=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t[re]?.()})},{capture:!0}))}function rs(e,t,n,r=!0){for(var s of(r&&n(),t))e.addEventListener(s,n);$s(()=>{for(var r of t)e.removeEventListener(r,n)})}function ss(e){var t=fs,n=ds;cs(null),vs(null);try{return e()}finally{cs(t),vs(n)}}function os(e,t,n,r=n){e.addEventListener(t,()=>ss(n));const s=e[re];e[re]=s?()=>{s(),r(!0)}:()=>r(!0),ns()}let as=!1,is=!1;function ls(e){is=e}let fs=null,us=!1;function cs(e){fs=e}let ds=null;function vs(e){ds=e}let hs=null;function ps(t){null!==fs&&(!e||2&fs.f)&&(null===hs?hs=[t]:hs.push(t))}let bs=null,_s=0,ys=null;let ws=1,ms=0,gs=ms;function ks(e){gs=e}function xs(){return++ws}function Es(e){var t=e.f;if(0!==(t&D))return!0;if(2&t&&(e.f&=-65537),0!==(t&R)){for(var n=e.deps,r=n.length,s=0;s<r;s++){var o=n[s];if(Es(o)&&Dr(o),o.wv>e.wv)return!0}0!==(t&q)&&null===Hn&&yn(e,N)}return!1}function Ss(t,n,r=!0){var s=t.reactions;if(null!==s&&(e||null===hs||!a.call(hs,t)))for(var o=0;o<s.length;o++){var i=s[o];2&i.f?Ss(i,n,!1):n===i&&(r?yn(i,D):0!==(i.f&N)&&yn(i,R),lr(i))}}function Ps(e){var t=bs,n=_s,r=ys,s=fs,o=hs,a=ot,i=us,l=gs,f=e.f;bs=null,_s=0,ys=null,fs=96&f?null:e,hs=null,at(e.ctx),us=!1,gs=++ms,null!==e.ac&&(ss(()=>{e.ac.abort(oe)}),e.ac=null);try{e.f|=G;var u=(0,e.fn)();e.f|=L;var c=e.deps,d=Wn?.is_fork;if(null!==bs){var v;if(d||Os(e,_s),null!==c&&_s>0)for(c.length=_s+bs.length,v=0;v<bs.length;v++)c[_s+v]=bs[v];else e.deps=c=bs;if(Vs()&&0!==(e.f&q))for(v=_s;v<c.length;v++)(c[v].reactions??=[]).push(e)}else!d&&null!==c&&_s<c.length&&(Os(e,_s),c.length=_s);if(yt()&&null!==ys&&!us&&null!==c&&!(6146&e.f))for(v=0;v<ys.length;v++)Ss(ys[v],e);if(null!==s&&s!==e){if(ms++,null!==s.deps)for(let e=0;e<n;e+=1)s.deps[e].rv=ms;if(null!==t)for(const e of t)e.rv=ms;null!==ys&&(null===r?r=ys:r.push(...ys))}return 0!==(e.f&J)&&(e.f^=J),u}catch(e){return pn(e)}finally{e.f^=G,bs=t,_s=n,ys=r,fs=s,hs=o,at(a),us=i,gs=l}}function js(e,t){let n=t.reactions;if(null!==n){var r=o.call(n,e);if(-1!==r){var s=n.length-1;0===s?n=t.reactions=null:(n[r]=n[s],n.pop())}}if(null===n&&2&t.f&&(null===bs||!a.call(bs,t))){var i=t;0!==(i.f&q)&&(i.f^=q,i.f&=-65537),i.v!==Ye&&wn(i),function(e){if(null!==e.effects)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(oe),null!==t.fn&&(t.teardown=y),t.ac=null,Os(t,0),oo(t))}(i),Os(i,0)}}function Os(e,t){var n=e.deps;if(null!==n)for(var r=t;r<n.length;r++)js(e,n[r])}function Ms(e){var t=e.f;if(0===(t&C)){yn(e,N);var n=ds,r=as;ds=e,as=!0;try{16777232&t?function(e){var t=e.first;for(;null!==t;){var n=t.next;0===(t.f&M)&&ao(t),t=n}}(e):oo(e),so(e);var s=Ps(e);e.teardown="function"==typeof s?s:null,e.wv=ws}finally{as=r,ds=n}}}async function As(){if(e)return new Promise(e=>{requestAnimationFrame(()=>e()),setTimeout(()=>e())});await Promise.resolve(),nr()}function Ts(){return tr.ensure().settled()}function qs(e){var t=!!(2&e.f);if((Xr?.add(e),null!==fs&&!us)&&!(null!==ds&&0!==(ds.f&C)||null!==hs&&a.call(hs,e))){var n=fs.deps;if(0!==(fs.f&G))e.rv<ms&&(e.rv=ms,null===bs&&null!==n&&n[_s]===e?_s++:null===bs?bs=[e]:bs.push(e));else{fs.deps??=[],a.call(fs.deps,e)||fs.deps.push(e);var r=e.reactions;null===r?e.reactions=[fs]:a.call(r,fs)||r.push(fs)}}if(is&&Cr.has(e))return Cr.get(e);if(t){var s=e;if(is){var o=s.v;return(0===(s.f&N)&&null!==s.reactions||Ds(s))&&(o=Nr(s)),Cr.set(s,o),o}var i=0===(s.f&q)&&!us&&null!==fs&&(as||0!==(fs.f&q)),l=0===(s.f&L);Es(s)&&(i&&(s.f|=q),Dr(s)),i&&!l&&(Rr(s),Ns(s))}if(Hn?.has(e))return Hn.get(e);if(0!==(e.f&J))throw e.v;return e.v}function Ns(e){if(e.f|=q,null!==e.deps)for(const t of e.deps)(t.reactions??=[]).push(e),2&t.f&&0===(t.f&q)&&(Rr(t),Ns(t))}function Ds(e){if(e.v===Ye)return!0;if(null===e.deps)return!1;for(const t of e.deps){if(Cr.has(t))return!0;if(2&t.f&&Ds(t))return!0}return!1}function Rs(e){return e&&qs(e)}function zs(e){var t=us;try{return us=!0,e()}finally{us=t}}function Cs(e){if("object"==typeof e&&e&&!(e instanceof EventTarget))if(Q in e)Ls(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];"object"==typeof n&&n&&Q in n&&Ls(n)}}function Ls(e,t=new Set){if(!("object"!=typeof e||null===e||e instanceof EventTarget||t.has(e))){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{Ls(e[n],t)}catch(e){}const n=h(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const t=c(n);for(let n in t){const r=t[n].get;if(r)try{r.call(e)}catch(e){}}}}}function Fs(e){null===ds&&(null===fs&&function(){throw new Error("https://svelte.dev/e/effect_orphan")}(),function(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}()),is&&function(){throw new Error("https://svelte.dev/e/effect_in_teardown")}()}function Is(e,t){var n=ds;null!==n&&0!==(n.f&z)&&(e|=z);var r={ctx:ot,deps:null,nodes:null,f:e|D|q,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};Wn?.register_created_effect(r);var s=r;if(4&e)null!==Xn?Xn.push(r):tr.ensure().schedule(r);else if(null!==t){try{Ms(r)}catch(s){throw ao(r),s}null===s.deps&&null===s.teardown&&null===s.nodes&&s.first===s.last&&0===(s.f&K)&&(s=s.first,0!==(e&O)&&0!==(e&I)&&null!==s&&(s.f|=I))}if(null!==s&&(s.parent=n,null!==n&&function(e,t){var n=t.last;null===n?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}(s,n),null!==fs&&2&fs.f&&0===(e&A))){var o=fs;(o.effects??=[]).push(s)}return r}function Vs(){return null!==fs&&!us}function $s(e){const t=Is(8,null);return yn(t,N),t.teardown=e,t}function Ks(e){Fs();var t=ds.f;if(!(!fs&&0!==(t&M)&&0===(t&L)))return Bs(e);var n=ot;(n.e??=[]).push(e)}function Bs(e){return Is(1048580,e)}function Ws(e){return Fs(),Is(1048584,e)}function Gs(e){return Is(V,e)}function Hs(e){tr.ensure();const t=Is(524352,e);return()=>{ao(t)}}function Js(e){tr.ensure();const t=Is(524352,e);return(e={})=>new Promise(n=>{e.outro?fo(t,()=>{ao(t),n(void 0)}):(ao(t),n(void 0))})}function Qs(e){return Is(4,e)}function Us(e,t){var n={effect:null,ran:!1,deps:e};ot.l.$.push(n),n.effect=Ys(()=>{if(e(),!n.ran){n.ran=!0;var r=ds;try{vs(r.parent),zs(t)}finally{vs(r)}}})}function Xs(){var e=ot;Ys(()=>{for(var t of e.l.$){t.deps();var n=t.effect;0!==(n.f&N)&&null!==n.deps&&yn(n,R),Es(n)&&Ms(n),t.ran=!1}})}function Ys(e,t=0){return Is(8|t,e)}function Zs(e,t=[],n=[],r=[]){br(r,t,n,t=>{Is(8,()=>e(...t.map(qs)))})}function eo(e,t=[],n=[],r=[]){br(r,t,n,t=>{Is(4,()=>e(...t.map(qs)))})}function to(e,t=0){return Is(O|t,e)}function no(e,t=0){return Is(j|t,e)}function ro(e){return Is(524320,e)}function so(e){var t=e.teardown;if(null!==t){const e=is,n=fs;ls(!0),cs(null);try{t.call(null)}finally{ls(e),cs(n)}}}function oo(e,t=!1){var n=e.first;for(e.first=e.last=null;null!==n;){const e=n.ac;null!==e&&ss(()=>{e.abort(oe)});var r=n.next;0!==(n.f&A)?n.parent=null:ao(n,t),n=r}}function ao(e,t=!0){var n=!1;!t&&0===(e.f&$)||null===e.nodes||null===e.nodes.end||(io(e.nodes.start,e.nodes.end),n=!0),yn(e,F),oo(e,t&&!n),Os(e,0);var r=e.nodes&&e.nodes.t;if(null!==r)for(const e of r)e.stop();so(e),e.f^=F,e.f|=C;var s=e.parent;null!==s&&null!==s.first&&lo(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function io(e,t){for(;null!==e;){var n=e===t?null:rn(e);e.remove(),e=n}}function lo(e){var t=e.parent,n=e.prev,r=e.next;null!==n&&(n.next=r),null!==r&&(r.prev=n),null!==t&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function fo(e,t,n=!0){var r=[];uo(e,r,!0);var s=()=>{n&&ao(e),t&&t()},o=r.length;if(o>0){var a=()=>--o||s();for(var i of r)i.out(a)}else s()}function uo(e,t,n){if(0===(e.f&z)){e.f^=z;var r=e.nodes&&e.nodes.t;if(null!==r)for(const e of r)(e.is_global||n)&&t.push(e);for(var s=e.first;null!==s;){var o=s.next;if(0===(s.f&A))uo(s,t,!!(0!==(s.f&I)||0!==(s.f&M)&&0!==(e.f&O))&&n);s=o}}}function co(e){vo(e,!0)}function vo(e,t){if(0!==(e.f&z)){e.f^=z,0===(e.f&N)&&(yn(e,D),tr.ensure().schedule(e));for(var n=e.first;null!==n;){var r=n.next;vo(n,!!(0!==(n.f&I)||0!==(n.f&M))&&t),n=r}var s=e.nodes&&e.nodes.t;if(null!==s)for(const e of s)(e.is_global||t)&&e.in()}}function ho(e=ds){return 0!==(e.f&C)}function po(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;null!==n;){var s=n===r?null:rn(n);t.append(n),n=s}}export{Ts as $,st as A,Mt as B,fe as C,un as D,rt as E,l as F,f as G,Xe as H,u as I,Qr as J,kt as K,he as L,Ot as M,nt as N,ot as O,_e as P,je as Q,s as R,Se as S,Ks as T,ct as U,nr as V,pr as W,pt as X,dt as Y,ht as Z,vt as _,Br as a,Ue as a$,As as a0,zn as a1,on as a2,_t as a3,bt as a4,Tr as a5,qn as a6,sn as a7,Vt as a8,an as a9,Wr as aA,Kt as aB,Bt as aC,bn as aD,K as aE,Me as aF,Rt as aG,L as aH,Xt as aI,le as aJ,hn as aK,Ke as aL,Be as aM,cn as aN,dn as aO,vn as aP,ue as aQ,ae as aR,We as aS,Ge as aT,en as aU,He as aV,Lt as aW,Pe as aX,ln as aY,ne as aZ,Js as a_,Vr as aa,k as ab,co as ac,ao as ad,fo as ae,fn as af,tn as ag,ro as ah,Wn as ai,po as aj,ye as ak,me as al,we as am,to as an,I as ao,ut as ap,ft as aq,gs as ar,Ee as as,T as at,Je as au,Qe as av,gn as aw,at as ax,tr as ay,pn as az,On as b,se as b$,i as b0,Ws as b1,U as b2,$r as b3,D as b4,At as b5,yn as b6,R as b7,Wt as b8,qe as b9,c as bA,Zr as bB,Ye as bC,$n as bD,Oe as bE,Ce as bF,Gt as bG,Hr as bH,Le as bI,ze as bJ,Re as bK,Or as bL,_ as bM,Q as bN,is as bO,Fe as bP,d as bQ,Y as bR,P as bS,H as bT,Ht as bU,Dt as bV,Et as bW,ie as bX,it as bY,Ze as bZ,et as b_,B as ba,xe as bb,qr as bc,Ae as bd,De as be,Te as bf,C as bg,z as bh,M as bi,Ne as bj,no as bk,Qs as bl,b as bm,ee as bn,te as bo,os as bp,Nt as bq,Jt as br,Gn as bs,br as bt,re as bu,ns as bv,X as bw,Z as bx,tt as by,h as bz,cs as c,Tt as c0,qt as c1,ke as c2,ge as c3,Fs as c4,Gs as c5,be as c6,yt as c7,w as c8,kr as c9,gr as cA,$t as cB,pe as cC,Yr as cD,Rn as cE,Us as cF,Xs as cG,Vn as cH,Kr as cI,es as cJ,xr as cK,Rs as cL,wr as cM,Ln as cN,Dn as cO,Nn as cP,E as cQ,mr as cR,Jr as cS,In as cT,Fn as cU,Er as cV,Qt as cW,jt as cX,Qn as ca,yr as cb,O as cc,$e as cd,Ie as ce,Ve as cf,ss as cg,$ as ch,Cs as ci,de as cj,rs as ck,F as cl,g as cm,m as cn,_r as co,St as cp,Pt as cq,ho as cr,lt as cs,Ar as ct,Ls as cu,eo as cv,Ut as cw,dr as cx,S as cy,x as cz,fs as d,Vs as e,vs as f,qs as g,ds as h,Hs as i,Pn as j,En as k,jn as l,Ct as m,y as n,Ft as o,Zs as p,nn as q,Ys as r,Ir as s,$s as t,zs as u,It as v,Sn as w,io as x,zt as y,rn as z};
@@ -1 +0,0 @@
1
- import{as as e,h as t,y as n,m as s,at as r,an as a,v as i,au as o,av as c,ah as f,K as u,ag as d,ae as h,ai as l,aj as p,aw as _,f as g,c as v,ax as m,ay as y,az as b,aA as w,g as $,ad as k,o as C,aB as x,aC as T,aD as P,d as j,ao as M,aE as N,aF as E,O as L,aG as W,s as q,D,aH as F,q as I,aI as O,C as R,aJ as S,aK as V,aL as A,aM as H,aN as z,aO as B,aP as G,aQ as J,N as K,E as Q,aR as U,aS as X,aT as Y,aU as Z,aV as ee,z as te,H as ne,aW as se,aX as re,aY as ae,aZ as ie,a_ as oe,a4 as ce,a$ as fe,B as ue,a3 as de,b0 as he,b1 as le,n as pe,P as _e,R as ge,a as ve,b2 as me,V as ye,G as be,b3 as we,b4 as $e,b5 as ke,b6 as Ce,b7 as xe}from"./chunk-9EZydhXt.js";import{b as Te,r as Pe,h as je,o as Me}from"./chunk-cUxFvg6m.js";import{c as Ne}from"./chunk-ChRkfjHR.js";import{c as Ee}from"./chunk-DNUkGPCL.js";var Le=M|N;function We(e,t,n,s){new qe(e,t,n,s)}class qe{parent;is_pending=!1;transform_error;#e;#t=s?n:null;#n;#s;#r;#a=null;#i=null;#o=null;#c=null;#f=0;#u=0;#d=!1;#h=new Set;#l=new Set;#p=null;#_=Ne(()=>(this.#p=q(this.#f),()=>{this.#p=null}));constructor(e,f,u,d){this.#e=e,this.#n=f,this.#s=e=>{var n=t;n.b=this,n.f|=r,u(e)},this.parent=t.b,this.transform_error=d??this.parent?.transform_error??(e=>e),this.#r=a(()=>{if(s){const e=this.#t;i();const t=e.data===o;if(e.data.startsWith(c)){const t=JSON.parse(e.data.slice(c.length));this.#g(t)}else t?this.#v():this.#m()}else this.#y()},Le),s&&(this.#e=n)}#m(){try{this.#a=f(()=>this.#s(this.#e))}catch(e){this.error(e)}}#g(e){const t=this.#n.failed;t&&(this.#o=f(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){const e=this.#n.pending;e&&(this.is_pending=!0,this.#i=f(()=>e(this.#e)),u(()=>{var e=this.#c=document.createDocumentFragment(),t=d();e.append(t),this.#a=this.#b(()=>f(()=>this.#s(t))),0===this.#u&&(this.#e.before(e),this.#c=null,h(this.#i,()=>{this.#i=null}),this.#w(l))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#f=0,this.#a=f(()=>{this.#s(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();p(this.#a,e);const t=this.#n.pending;this.#i=f(()=>t(this.#e))}else this.#w(l)}catch(e){this.error(e)}}#w(e){this.is_pending=!1,e.transfer_effects(this.#h,this.#l)}defer_effect(e){_(e,this.#h,this.#l)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#b(e){var n=t,s=j,r=L;g(this.#r),v(this.#r),m(this.#r.ctx);try{return y.ensure(),e()}catch(e){return b(e),null}finally{g(n),v(s),m(r)}}#$(e,t){this.has_pending_snippet()?(this.#u+=e,0===this.#u&&(this.#w(t),this.#i&&h(this.#i,()=>{this.#i=null}),this.#c&&(this.#e.before(this.#c),this.#c=null))):this.parent&&this.parent.#$(e,t)}update_pending_count(e,t){this.#$(e,t),this.#f+=e,this.#p&&!this.#d&&(this.#d=!0,u(()=>{this.#d=!1,this.#p&&w(this.#p,this.#f)}))}get_effect_pending(){return this.#_(),$(this.#p)}error(e){if(!this.#n.onerror&&!this.#n.failed)throw e;l?.is_fork?(this.#a&&l.skip_effect(this.#a),this.#i&&l.skip_effect(this.#i),this.#o&&l.skip_effect(this.#o),l.on_fork_commit(()=>{this.#k(e)})):this.#k(e)}#k(e){this.#a&&(k(this.#a),this.#a=null),this.#i&&(k(this.#i),this.#i=null),this.#o&&(k(this.#o),this.#o=null),s&&(C(this.#t),x(),C(T()));var n=this.#n.onerror;let a=this.#n.failed;var i=!1,o=!1;const c=()=>{i?W():(i=!0,o&&E(),null!==this.#o&&h(this.#o,()=>{this.#o=null}),this.#b(()=>{this.#y()}))},d=e=>{try{o=!0,n?.(e,c),o=!1}catch(e){P(e,this.#r&&this.#r.parent)}a&&(this.#o=this.#b(()=>{try{return f(()=>{var n=t;n.b=this,n.f|=r,a(this.#e,()=>e,()=>c)})}catch(e){return P(e,this.#r.parent),null}}))};u(()=>{var t;try{t=this.transform_error(e)}catch(e){return void P(e,this.#r&&this.#r.parent)}null!==t&&"object"==typeof t&&"function"==typeof t.then?t.then(d,e=>P(e,this.#r&&this.#r.parent)):d(t)})}}function De(){null===t&&e();var n=t.b;return null===n?0:n.get_effect_pending()}const Fe=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];function Ie(e){return Fe.includes(e)||"!doctype"===e.toLowerCase()}function Oe(e){return e.endsWith("capture")&&"gotpointercapture"!==e&&"lostpointercapture"!==e}const Re=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Se(e){return Re.includes(e)}const Ve={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function Ae(e){return e=e.toLowerCase(),Ve[e]??e}const He=["touchstart","touchmove"];function ze(e){return He.includes(e)}const Be=["textarea","script","style","title"];function Ge(e){return Be.includes(e)}function Je(e){return e?.replace(/\//g,"/​")}const Ke=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Qe(e){return Ke?.createHTML(e)??e}function Ue(e){var t=D("template");return t.innerHTML=Qe(e.replaceAll("<!>","\x3c!----\x3e")),t.content}const Xe=U?"template":"TEMPLATE",Ye=U?"script":"SCRIPT";function Ze(e,n){var s=t;null===s.nodes&&(s.nodes={start:e,end:n,a:null,t:null})}function et(e,t){var r,a=0!==(t&A),i=0!==(t&H),o=!e.startsWith("<!>");return()=>{if(s)return Ze(n,null),n;void 0===r&&(r=Ue(o?e:"<!>"+e),a||(r=I(r)));var t=i||O?document.importNode(r,!0):r.cloneNode(!0);a?Ze(I(t),t.lastChild):Ze(t,t);return t}}function tt(e,t,r="svg"){var a,i=!e.startsWith("<!>"),o=0!==(t&A),c=`<${r}>${i?e:"<!>"+e}</${r}>`;return()=>{if(s)return Ze(n,null),n;if(!a){var e=Ue(c),t=I(e);if(o)for(a=document.createDocumentFragment();I(t);)a.appendChild(I(t));else a=I(t)}var r=a.cloneNode(!0);o?Ze(I(r),r.lastChild):Ze(r,r);return r}}function nt(e,t){return tt(e,t,"svg")}function st(e,t){return tt(e,t,"math")}function rt(e,t){var n=z();for(var s of e){if("string"==typeof s){n.append(d(s));continue}if(void 0===s||"/"===s[0][0]){n.append(B(s?s[0].slice(3):""));continue}const[e,i,...o]=s,c="svg"===e?K:"math"===e?Q:t;var r=D(e,c,i?.is);for(var a in i)G(r,a,i[a]);if(o.length>0)(r.nodeName===Xe?r.content:r).append(rt(o,"foreignObject"===r.nodeName?void 0:c));n.append(r)}return n}function at(e,t){var r,a=0!==(t&A),i=0!==(t&H);return()=>{if(s)return Ze(n,null),n;if(void 0===r){r=rt(e,0!==(t&X)?K:0!==(t&Y)?Q:void 0),a||(r=I(r))}var o=i||O?document.importNode(r,!0):r.cloneNode(!0);a?Ze(I(o),o.lastChild):Ze(o,o);return o}}function it(e){return()=>function(e){if(s)return e;const n=e.nodeType===J,r=e.nodeName===Ye?[e]:e.querySelectorAll("script"),a=t;for(const t of r){const s=D("script");for(var i of t.attributes)s.setAttribute(i.name,i.value);s.textContent=t.textContent,(n?e.firstChild===t:e===t)&&(a.nodes.start=s),(n?e.lastChild===t:e===t)&&(a.nodes.end=s),t.replaceWith(s)}return e}(e())}function ot(e=""){if(!s){var t=d(e+"");return Ze(t,t),t}var r=n;return r.nodeType!==S?(r.before(r=d()),C(r)):V(r),Ze(r,r),r}function ct(){if(s)return Ze(n,null),n;var e=document.createDocumentFragment(),t=document.createComment(""),r=d();return e.append(t,r),Ze(t,r),e}function ft(e,r){if(s){var a=t;return 0!==(a.f&F)&&null!==a.nodes.end||(a.nodes.end=n),void i()}null!==e&&e.before(r)}function ut(){if(s&&n&&n.nodeType===R&&n.textContent?.startsWith("$")){const e=n.textContent.substring(1);return i(),e}return(window.__svelte??={}).uid??=1,"c"+window.__svelte.uid++}let dt=!0;function ht(e){dt=e}function lt(e,t){var n=null==t?"":"object"==typeof t?`${t}`:t;n!==(e[ie]??=e.nodeValue)&&(e[ie]=n,e.nodeValue=`${n}`)}function pt(e,t){return vt(e,t)}function _t(e,t){Z(),t.intro=t.intro??!1;const r=t.target,a=s,i=n;try{for(var o=I(r);o&&(o.nodeType!==R||o.data!==ee);)o=te(o);if(!o)throw ne;se(!0),C(o);const n=vt(e,{...t,anchor:o});return se(!1),n}catch(n){if(n instanceof Error&&n.message.split("\n").some(e=>e.startsWith("https://svelte.dev/e/")))throw n;return n!==ne&&console.warn("Failed to hydrate: ",n),!1===t.recover&&re(),Z(),ae(r),se(!1),pt(e,t)}finally{se(a),C(i)}}const gt=new Map;function vt(e,{target:r,anchor:a,props:i={},events:o,context:c,intro:f=!0,transformError:u}){Z();var h=void 0,l=oe(()=>{var l=a??r.appendChild(d());We(l,{pending:()=>{}},r=>{if(ce({}),c&&(L.c=c),o&&(i.$$events=o),s&&Ze(r,null),dt=f,h=e(r,i)||{},dt=!0,s&&(t.nodes.end=n,null===n||n.nodeType!==R||n.data!==fe))throw ue(),ne;de()},u);var p=new Set,_=e=>{for(var t=0;t<e.length;t++){var n=e[t];if(!p.has(n)){p.add(n);var s=ze(n);for(const e of[r,document]){var a=gt.get(e);void 0===a&&(a=new Map,gt.set(e,a));var i=a.get(n);void 0===i?(e.addEventListener(n,je,{passive:s}),a.set(n,1)):a.set(n,i+1)}}}};return _(he(Te)),Pe.add(_),()=>{for(var e of p)for(const s of[r,document]){var t=gt.get(s),n=t.get(e);0==--n?(s.removeEventListener(e,je),t.delete(e),0===t.size&&gt.delete(s)):t.set(e,n)}Pe.delete(_),l!==a&&l.parentNode?.removeChild(l)}});return mt.set(h,l),h}let mt=new WeakMap;function yt(e,t){const n=mt.get(e);return n?(mt.delete(e),n(t)):Promise.resolve()}function bt(e){return function(...t){t[0].isTrusted&&e?.apply(this,t)}}function wt(e){return function(...t){t[0].target===this&&e?.apply(this,t)}}function $t(e){return function(...t){return t[0].stopPropagation(),e?.apply(this,t)}}function kt(e){var t=!1;return function(...n){if(!t)return t=!0,e?.apply(this,n)}}function Ct(e){return function(...t){return t[0].stopImmediatePropagation(),e?.apply(this,t)}}function xt(e){return function(...t){return t[0].preventDefault(),e?.apply(this,t)}}function Tt(e,[t,n]){le(()=>Me(e,t,n()??pe,{passive:!0}))}function Pt(e,[t,n]){le(()=>Me(e,t,n()??pe,{passive:!1}))}function jt(e){return new Nt(e)}function Mt(e){return class extends Nt{constructor(t){super({component:e,...t})}}}class Nt{#C;#x;constructor(e){var t=new Map,n=(e,n)=>{var s=we(n,!1,!1);return t.set(e,s),s};const s=new Proxy({...e.props||{},$$events:{}},{get:(e,s)=>$(t.get(s)??n(s,Reflect.get(e,s))),has:(e,s)=>s===me||($(t.get(s)??n(s,Reflect.get(e,s))),Reflect.has(e,s)),set:(e,s,r)=>(ve(t.get(s)??n(s,r),r),Reflect.set(e,s,r))});this.#x=(e.hydrate?_t:pt)(e.component,{target:e.target,anchor:e.anchor,props:s,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),Ee||e?.props?.$$host&&!1!==e.sync||ye(),this.#C=s.$$events;for(const e of Object.keys(this.#x))"$set"!==e&&"$destroy"!==e&&"$on"!==e&&be(this,e,{get(){return this.#x[e]},set(t){this.#x[e]=t},enumerable:!0});this.#x.$set=e=>{Object.assign(s,e)},this.#x.$destroy=()=>{yt(this.#x)}}$set(e){this.#x.$set(e)}$on(e,t){this.#C[e]=this.#C[e]||[];const n=(...e)=>t.call(this,...e);return this.#C[e].push(n),()=>{this.#C[e]=this.#C[e].filter(e=>e!==n)}}$destroy(){this.#x.$destroy()}}function Et(e){le(()=>{e();var n=t;0!==(n.f&$e)&&(ke(),Ce(n,xe))})}function Lt(...e){return function(t){const{stopImmediatePropagation:n}=t;let s=!1;t.stopImmediatePropagation=()=>{s=!0,n.call(t)};const r=[];for(const n of e){try{n?.call(this,t)}catch(e){r.push(e)}if(s)break}for(let e of r)queueMicrotask(()=>{throw e})}}function Wt(){const e=L;return null===e&&_e(),t=>n=>{const s=e.s.$$events?.[t];if(s){const t=ge(s)?s.slice():[s];for(const s of t)s.call(e.x,n);return!n.defaultPrevented}return!0}}export{xt as A,ut as B,wt as C,Ct as D,$t as E,bt as F,it as G,Mt as H,Wt as I,Lt as J,Pt as K,Tt as L,Et as M,Ze as a,ft as b,jt as c,ct as d,Ue as e,et as f,Oe as g,_t as h,Ie as i,Se as j,Je as k,ht as l,pt as m,Ae as n,dt as o,Ge as p,Qe as q,We as r,lt as s,ot as t,yt as u,st as v,nt as w,at as x,kt as y,De as z};
@@ -1 +0,0 @@
1
- import{e as s,g as a,r,s as o,u as t,J as e,K as n}from"./chunk-9EZydhXt.js";function u(u){let c,i=0,f=o(0);return()=>{s()&&(a(f),r(()=>(0===i&&(c=t(()=>u(()=>e(f)))),i+=1,()=>{n(()=>{i-=1,0===i&&(c?.(),c=void 0,e(f))})})))}}export{u as c};
@@ -1 +0,0 @@
1
- import{m as e,v as t,an as n,ao as r,b8 as s,aC as a,o as l,aW as o,y as u,ag as i,b9 as f,q as c,g as v,au as d,af as p,C as b,a$ as g,aA as h,ai as m,ba as y,ah as x,bb as w,bc as k,R as A,b0 as S,bd as _,be as j,b3 as O,s as N,bf as P,bg as C,ac as I,ae as $,bh as z,K as E,bi as L,bj as q,aY as K,aj as R,ad as M,z as T,bk as D,bl as V,bm as B,bn as F,bo as U,bp as G,t as H,bq as W,br as J,bs as Y,bt as Q,bu as X,bv as Z,bw as ee,c as te,f as ne,bx as re,by as se,aR as ae,bz as le,d as oe,h as ue,A as ie,bA as fe,bB as ce,bC as ve,I as de,bD as pe,bE as be,bF as ge,bG as he,a as me,bH as ye,bI as xe,u as we,bJ as ke,bK as Ae,bL as Se,bM as _e,bN as je,b2 as Oe,bO as Ne,bP as Pe}from"./chunk-9EZydhXt.js";import{B as Ce}from"./chunk-akOtSLvV.js";import{a as Ie,d as $e,c as ze}from"./chunk-cUxFvg6m.js";import{g as Ee,n as Le,j as qe}from"./chunk-CTgT5UYL.js";import{c as Ke,l as Re}from"./chunk-DNUkGPCL.js";function Me(i,f,c=!1){var v;e&&(v=u,t());var d=new Ce(i);function p(t,n){if(e){var r=s(v);if(t!==parseInt(r.substring(1))){var u=a();return l(u),d.anchor=u,o(!1),d.ensure(t,n),void o(!0)}}d.ensure(t,n)}n(()=>{var e=!1;f((t,n=0)=>{e=!0,p(n,t)}),e||p(-1,null)},c?r:0)}function Te(e,t){return t}function De(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(const t of e.pending.values())for(const n of t)r.add(e.items.get(n).e)}for(var s=0;s<t.length;s++){var a=t[s];if(r?.has(a)){a.f|=y;const e=document.createDocumentFragment();R(a,e)}else M(t[s],n)}}var Ve;function Be(r,_,j,O,N,P=null){var L=r,R=new Map;if(0!==(_&f)){var M=r;L=e?l(c(M)):M.appendChild(i())}e&&t();var T,D=null,V=k(()=>{var e=j();return A(e)?e:null==e?[]:S(e)}),B=new Map,F=!0;function U(e){0===(W.effect.f&C)&&(W.pending.delete(e),W.fallback=D,function(e,t,n,r,s){var a,l,o,u,i,c=0!==(r&q),v=t.length,d=e.items,p=Fe(e.effect.first),b=null,g=[],h=[];if(c)for(i=0;i<v;i+=1)o=s(t[i],i),0===((u=d.get(o).e).f&y)&&(u.nodes?.a?.measure(),(l??=new Set).add(u));for(i=0;i<v;i+=1){if(o=s(t[i],i),u=d.get(o).e,null!==e.outrogroups)for(const t of e.outrogroups)t.pending.delete(u),t.done.delete(u);if(0!==(u.f&z)&&(I(u),c&&(u.nodes?.a?.unfix(),(l??=new Set).delete(u))),0!==(u.f&y)){if(u.f^=y,u!==p){var m=b?b.next:p;u===e.effect.last&&(e.effect.last=u.prev),u.prev&&(u.prev.next=u.next),u.next&&(u.next.prev=u.prev),He(e,b,u),He(e,u,m),Ge(u,m,n),g=[],h=[],p=Fe((b=u).next);continue}Ge(u,null,n)}if(u!==p){if(void 0!==a&&a.has(u)){if(g.length<h.length){var x,w=h[0];b=w.prev;var k=g[0],A=g[g.length-1];for(x=0;x<g.length;x+=1)Ge(g[x],w,n);for(x=0;x<h.length;x+=1)a.delete(h[x]);He(e,k.prev,A.next),He(e,b,k),He(e,A,w),p=w,b=A,i-=1,g=[],h=[]}else a.delete(u),Ge(u,p,n),He(e,u.prev,u.next),He(e,u,null===b?e.effect.first:b.next),He(e,b,u),b=u;continue}for(g=[],h=[];null!==p&&p!==u;)(a??=new Set).add(p),h.push(p),p=Fe(p.next);if(null===p)continue}0===(u.f&y)&&g.push(u),b=u,p=Fe(u.next)}if(null!==e.outrogroups){for(const t of e.outrogroups)0===t.pending.size&&(De(e,S(t.done)),e.outrogroups?.delete(t));0===e.outrogroups.size&&(e.outrogroups=null)}if(null!==p||void 0!==a){var _=[];if(void 0!==a)for(u of a)0===(u.f&z)&&_.push(u);for(;null!==p;)0===(p.f&z)&&p!==e.fallback&&_.push(p),p=Fe(p.next);var j=_.length;if(j>0){var O=0!==(r&f)&&0===v?n:null;if(c){for(i=0;i<j;i+=1)_[i].nodes?.a?.measure();for(i=0;i<j;i+=1)_[i].nodes?.a?.fix()}!function(e,t,n){for(var r,s=t.length,a=t.length,l=0;l<s;l++){let n=t[l];$(n,()=>{if(r){if(r.pending.delete(n),r.done.add(n),0===r.pending.size){var t=e.outrogroups;De(e,S(r.done)),t.delete(r),0===t.size&&(e.outrogroups=null)}}else a-=1},!1)}if(0===a){var o=null!==n;if(o){var u=n,i=u.parentNode;K(i),i.append(u),e.items.clear()}De(e,t,!o)}else r={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(r)}(e,_,O)}}c&&E(()=>{if(void 0!==l)for(u of l)u.nodes?.a?.apply()})}(W,T,L,_,O),null!==D&&(0===T.length?0===(D.f&y)?I(D):(D.f^=y,Ge(D,null,L)):$(D,()=>{D=null})))}function G(e){W.pending.delete(e)}var H=n(()=>{var t=(T=v(V)).length;let n=!1;e&&(s(L)===d!==(0===t)&&(L=a(),l(L),o(!1),n=!0));for(var r=new Set,f=m,c=p(),k=0;k<t;k+=1){e&&u.nodeType===b&&u.data===g&&(L=u,n=!0,o(!1));var A=T[k],S=O(A,k),C=F?null:R.get(S);C?(C.v&&h(C.v,A),C.i&&h(C.i,k),c&&f.unskip_effect(C.e)):(C=Ue(R,F?L:Ve??=i(),A,S,k,N,_,j),F||(C.e.f|=y),R.set(S,C)),r.add(S)}if(0===t&&P&&!D&&(F?D=x(()=>P(L)):(D=x(()=>P(Ve??=i()))).f|=y),t>r.size&&w(),e&&t>0&&l(a()),!F)if(B.set(f,r),c){for(const[e,t]of R)r.has(e)||f.skip_effect(t.e);f.oncommit(U),f.ondiscard(G)}else U(f);n&&o(!0),v(V)}),W={effect:H,items:R,pending:B,outrogroups:null,fallback:D};F=!1,e&&(L=u)}function Fe(e){for(;null!==e&&0===(e.f&L);)e=e.next;return e}function Ue(e,t,n,r,s,a,l,o){var u=0!==(l&_)?0===(l&j)?O(n,!1,!1):N(n):null,i=0!==(l&P)?N(s):null;return{v:u,i:i,e:x(()=>(a(t,u??n,i??s,o),()=>{e.delete(r)}))}}function Ge(e,t,n){if(e.nodes)for(var r=e.nodes.start,s=e.nodes.end,a=t&&0===(t.f&y)?t.nodes.start:n;null!==r;){var l=T(r);if(a.before(r),r===s)return;r=l}}function He(e,t,n){null===t?e.effect.first=n:t.next=n,null===n?e.effect.last=t:n.prev=t}function We(e,t){var n,r=void 0;D(()=>{r!==(r=t())&&(n&&(M(n),n=null),r&&(n=x(()=>{V(()=>r(e))})))})}const Je=/[&"<]/g;function Ye(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=Ye(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const Qe={translate:new Map([[!0,"yes"],[!1,"no"]])};function Xe(e,t,n=!1){if("hidden"===e&&"until-found"!==t&&(n=!0),null==t||!t&&n)return"";const r=B.call(Qe,e)&&Qe[e].get(t)||t,s=n?'=""':`="${function(e){const t=String(e??""),n=Je;n.lastIndex=0;let r="",s=0;for(;n.test(t);){const e=n.lastIndex-1,a=t[e];r+=t.substring(s,e)+("&"===a?"&amp;":'"'===a?"&quot;":"&lt;"),s=e+1}return r+t.substring(s)}(r)}"`;return` ${e}${s}`}function Ze(e){return"object"==typeof e?function(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=Ye(e))&&(r&&(r+=" "),r+=t);return r}(e):e??""}const et=[..." \t\n\r\f \v\ufeff"];function tt(e,t=!1){var n=t?" !important;":";",r="";for(var s of Object.keys(e)){var a=e[s];null!=a&&""!==a&&(r+=" "+s+": "+a+n)}return r}function nt(e){return"-"!==e[0]||"-"!==e[1]?e.toLowerCase():e}function rt(t,n,r,s,a,l){var o=t[F];if(e||o!==r||void 0===o){var u=function(e,t,n){var r=null==e?"":""+e;if(t&&(r=r?r+" "+t:t),n)for(var s of Object.keys(n))if(n[s])r=r?r+" "+s:s;else if(r.length)for(var a=s.length,l=0;(l=r.indexOf(s,l))>=0;){var o=l+a;0!==l&&!et.includes(r[l-1])||o!==r.length&&!et.includes(r[o])?l=o:r=(0===l?"":r.substring(0,l))+r.substring(o+1)}return""===r?null:r}(r,s,l);e&&u===t.getAttribute("class")||(null==u?t.removeAttribute("class"):n?t.className=u:t.setAttribute("class",u)),t[F]=r}else if(l&&a!==l)for(var i in l){var f=!!l[i];null!=a&&f===!!a[i]||t.classList.toggle(i,f)}return l}function st(e,t={},n,r){for(var s in n){var a=n[s];t[s]!==a&&(null==n[s]?e.style.removeProperty(s):e.style.setProperty(s,a,r))}}function at(t,n,r,s){var a=t[U];if(e||a!==n){var l=function(e,t){if(t){var n,r,s="";if(Array.isArray(t)?(n=t[0],r=t[1]):n=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,l=0,o=!1,u=[];n&&u.push(...Object.keys(n).map(nt)),r&&u.push(...Object.keys(r).map(nt));var i=0,f=-1;const t=e.length;for(var c=0;c<t;c++){var v=e[c];if(o?"/"===v&&"*"===e[c-1]&&(o=!1):a?a===v&&(a=!1):"/"===v&&"*"===e[c+1]?o=!0:'"'===v||"'"===v?a=v:"("===v?l++:")"===v&&l--,!o&&!1===a&&0===l)if(":"===v&&-1===f)f=c;else if(";"===v||c===t-1){if(-1!==f){var d=nt(e.substring(i,f).trim());u.includes(d)||(";"!==v&&c++,s+=" "+e.substring(i,c).trim()+";")}i=c+1,f=-1}}}return n&&(s+=tt(n)),r&&(s+=tt(r,!0)),""===(s=s.trim())?null:s}return null==e?null:String(e)}(n,s);e&&l===t.getAttribute("style")||(null==l?t.removeAttribute("style"):t.style.cssText=l),t[U]=n}else s&&(Array.isArray(s)?(st(t,r?.[0],s[0]),st(t,r?.[1],s[1],"important")):st(t,r,s));return s}function lt(e,t,n=!1){if(e.multiple){if(null==t)return;if(!A(t))return W();for(var r of e.options)r.selected=t.includes(it(r))}else{for(r of e.options){var s=it(r);if(J(s,t))return void(r.selected=!0)}n&&void 0===t||(e.selectedIndex=-1)}}function ot(e){var t=new MutationObserver(()=>{lt(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),H(()=>{t.disconnect()})}function ut(e,t,n=t){var r=new WeakSet,s=!0;G(e,"change",t=>{var s,a=t?"[selected]":":checked";if(e.multiple)s=[].map.call(e.querySelectorAll(a),it);else{var l=e.querySelector(a)??e.querySelector("option:not([disabled])");s=l&&it(l)}n(s),e.__value=s,null!==m&&r.add(m)}),V(()=>{var a=t();if(e===document.activeElement){var l=Ke?Y:m;if(r.has(l))return}if(lt(e,a,s),s&&void 0===a){var o=e.querySelector(":checked");null!==o&&(a=it(o),n(a))}e.__value=a,s=!1}),ot(e)}function it(e){return"__value"in e?e.__value:e.value}const ft=Symbol("class"),ct=Symbol("style"),vt=Symbol("is custom element"),dt=Symbol("is html"),pt=ae?"link":"LINK",bt=ae?"input":"INPUT",gt=ae?"option":"OPTION",ht=ae?"select":"SELECT",mt=ae?"progress":"PROGRESS";function yt(t){if(e){var n=!1,r=()=>{if(!n){if(n=!0,t.hasAttribute("value")){var e=t.value;_t(t,"value",null),t.value=e}if(t.hasAttribute("checked")){var r=t.checked;_t(t,"checked",null),t.checked=r}}};t[X]=r,E(r),Z()}}function xt(e,t){var n=Pt(e);n.value!==(n.value=t??void 0)&&(e.value!==t||0===t&&e.nodeName===mt)&&(e.value=t??"")}function wt(e,t){var n=Pt(e);n.checked!==(n.checked=t??void 0)&&(e.checked=t)}function kt(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function At(e,t){const n=e.checked;e.defaultChecked=t,e.checked=n}function St(e,t){const n=e.value;e.defaultValue=t,e.value=n}function _t(t,n,r,s){var a=Pt(t);e&&(a[n]=t.getAttribute(n),"src"===n||"srcset"===n||"href"===n&&t.nodeName===pt)||a[n]!==(a[n]=r)&&("loading"===n&&(t[ee]=r),null==r?t.removeAttribute(n):"string"!=typeof r&&It(t).includes(n)?t[n]=r:t.setAttribute(n,r))}function jt(e,t,n){e.setAttributeNS("http://www.w3.org/1999/xlink",t,n)}function Ot(t,n,r){var s=oe,a=ue;let l=e;e&&o(!1),te(null),ne(null);try{"style"!==n&&(Ct.has(t.getAttribute("is")||t.nodeName)||!customElements||customElements.get(t.getAttribute("is")||t.nodeName.toLowerCase())?It(t).includes(n):r&&"object"==typeof r)?t[n]=r:_t(t,n,null==r?r:String(r))}finally{te(s),ne(a),l&&o(!0)}}function Nt(t,n,r=[],s=[],a=[],l,u=!1,i=!1){Q(a,r,s,r=>{var s=void 0,a={},f=t.nodeName===ht,c=!1;if(D(()=>{var d=n(...r.map(v)),p=function(t,n,r,s,a=!1){if(e&&a&&t.nodeName===bt){var l=t;("checkbox"===l.type?"defaultChecked":"defaultValue")in r||yt(l)}var u=Pt(t),i=u[vt],f=!u[dt];let c=e&&i;c&&o(!1);var v=n||{},d=t.nodeName===gt;for(var p in n)p in r||(r[p]=null);r.class?r.class=Ze(r.class):(s||r[ft])&&(r.class=null),r[ct]&&(r.style??=null);var b=It(t);for(const w in r){let k=r[w];if(d&&"value"===w&&null==k)t.value=t.__value="",v[w]=k;else if("class"!==w)if("style"!==w){var g=v[w];if(k!==g||void 0===k&&t.hasAttribute(w)){v[w]=k;var h=w[0]+w[1];if("$$"!==h)if("on"===h){const A={},S="$$"+w;let _=w.slice(2);var m=qe(_);if(Ee(_)&&(_=_.slice(0,-7),A.capture=!0),!m&&g){if(null!=k)continue;t.removeEventListener(_,v[S],A),v[S]=null}if(m)Ie(_,t,k),$e([_]);else if(null!=k){function j(e){v[w].call(this,e)}v[S]=ze(_,t,j,A)}}else if("style"===w)_t(t,w,k);else if("autofocus"===w)ce(t,Boolean(k));else if(i||"__value"!==w&&("value"!==w||null==k))if("selected"===w&&d)kt(t,k);else{var y=w;f||(y=Le(y));var x="defaultValue"===y||"defaultChecked"===y;if(null!=k||i||x)x||b.includes(y)&&(i||"string"!=typeof k)?(t[y]=k,y in u&&(u[y]=ve)):"function"!=typeof k&&_t(t,y,k);else if(u[w]=null,"value"===y||"checked"===y){let O=t;const N=void 0===n;if("value"===y){let P=O.defaultValue;O.removeAttribute(y),O.defaultValue=P,O.value=O.__value=N?P:null}else{let C=O.defaultChecked;O.removeAttribute(y),O.defaultChecked=C,O.checked=!!N&&C}}else t.removeAttribute(w)}else t.value=t.__value=k}}else at(t,k,n?.[ct],r[ct]),v[w]=k,v[ct]=r[ct];else rt(t,"http://www.w3.org/1999/xhtml"===t.namespaceURI,k,s,n?.[ft],r[ft]),v[w]=k,v[ft]=r[ft]}return c&&o(!0),v}(t,s,d,l,u,i);c&&f&&"value"in d&&lt(t,d.value);for(let e of Object.getOwnPropertySymbols(a))d[e]||M(a[e]);for(let e of Object.getOwnPropertySymbols(d)){var b=d[e];e.description!==ie||s&&b===s[e]||(a[e]&&M(a[e]),a[e]=x(()=>We(t,()=>b))),p[e]=b}s=p}),f){var d=t;V(()=>{lt(d,s.value,!0),ot(d)})}c=!0})}function Pt(e){return e[re]??={[vt]:e.nodeName.includes("-"),[dt]:e.namespaceURI===se}}var Ct=new Map;function It(e){var t,n=e.getAttribute("is")||e.nodeName,r=Ct.get(n);if(r)return r;Ct.set(n,r=[]);for(var s=e,a=Element.prototype;a!==s;){for(var l in t=fe(s))t[l].set&&"innerHTML"!==l&&"textContent"!==l&&"innerText"!==l&&r.push(l);s=le(s)}return r}function $t(e,t=1){const n=e();return e(n+t),n}function zt(e,t=1){const n=e()+t;return e(n),n}const Et={get(e,t){if(!e.exclude.includes(t))return e.props[t]},set:(e,t)=>!1,getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t))return t in e.props?{enumerable:!0,configurable:!0,value:e.props[t]}:void 0},has:(e,t)=>!e.exclude.includes(t)&&t in e.props,ownKeys:e=>Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))};function Lt(e,t,n){return new Proxy({props:e,exclude:t},Et)}const qt={get(e,t){if(!e.exclude.includes(t))return v(e.version),t in e.special?e.special[t]():e.props[t]},set(e,t,n){if(!(t in e.special)){var r=ue;try{ne(e.parent_effect),e.special[t]=Tt({get[t](){return e.props[t]}},t,ge)}finally{ne(r)}}return e.special[t](n),ye(e.version),!0},getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t))return t in e.props?{enumerable:!0,configurable:!0,value:e.props[t]}:void 0},deleteProperty:(e,t)=>(e.exclude.includes(t)||(e.exclude.push(t),ye(e.version)),!0),has:(e,t)=>!e.exclude.includes(t)&&t in e.props,ownKeys:e=>Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))};function Kt(e,t){return new Proxy({props:e,exclude:t,special:{},version:N(0),parent_effect:ue},qt)}const Rt={get(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(_e(r)&&(r=r()),"object"==typeof r&&null!==r&&t in r)return r[t]}},set(e,t,n){let r=e.props.length;for(;r--;){let s=e.props[r];_e(s)&&(s=s());const a=de(s,t);if(a&&a.set)return a.set(n),!0}return!1},getOwnPropertyDescriptor(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(_e(r)&&(r=r()),"object"==typeof r&&null!==r&&t in r){const e=de(r,t);return e&&!e.configurable&&(e.configurable=!0),e}}},has(e,t){if(t===je||t===Oe)return!1;for(let n of e.props)if(_e(n)&&(n=n()),null!=n&&t in n)return!0;return!1},ownKeys(e){const t=[];for(let n of e.props)if(_e(n)&&(n=n()),n){for(const e in n)t.includes(e)||t.push(e);for(const e of Object.getOwnPropertySymbols(n))t.includes(e)||t.push(e)}return t}};function Mt(...e){return new Proxy({props:e},Rt)}function Tt(e,t,n,r){var s=!Re||0!==(n&ke),a=0!==(n&xe),l=0!==(n&Pe),o=r,u=!0,i=void 0,f=()=>l&&s?(i??=Se(r),v(i)):(u&&(u=!1,o=l?we(r):r),o);let c;if(a){var d=je in e||Oe in e;c=de(e,t)?.set??(d&&t in e?n=>e[t]=n:void 0)}var p,b,g=!1;if(a?[p,g]=pe(()=>e[t]):p=e[t],void 0===p&&void 0!==r&&(p=f(),c&&(s&&be(),c(p))),b=s?()=>{var n=e[t];return void 0===n?f():(u=!0,n)}:()=>{var n=e[t];return void 0!==n&&(o=void 0),void 0===n?o:n},s&&0===(n&ge))return b;if(c){var h=e.$$legacy;return function(e,t){return arguments.length>0?(s&&t&&!h&&!g||c(t?b():e),e):b()}}var m=!1,y=(0!==(n&Ae)?Se:k)(()=>(m=!1,b()));a&&v(y);var x=ue;return function(e,t){if(arguments.length>0){const n=t?v(y):s&&a?he(e):e;return me(y,n),m=!0,void 0!==o&&(o=n),e}return Ne&&m||0!==(x.f&C)?y.v:v(y)}}export{$t as A,ft as C,ct as S,rt as a,We as b,Ze as c,Xe as d,Be as e,Nt as f,ut as g,Te as h,Me as i,ot as j,Lt as k,Kt as l,lt as m,wt as n,Ot as o,Tt as p,At as q,yt as r,_t as s,St as t,kt as u,at as v,xt as w,jt as x,Mt as y,zt as z};
@@ -1 +0,0 @@
1
- import{m as a,o as s,p as e,q as n,v as r,h as o,x as t,y as i,C as l,z as d,B as f,H as v,D as u,N as h,E as m}from"./chunk-9EZydhXt.js";import{a as p}from"./chunk-CTgT5UYL.js";function c(c,C,H=!1,T=!1,b=!1,j=!1){var k=c,x="";if(H){var y=c;a&&(k=s(n(y)))}e(()=>{var e=o;if(x!==(x=C()??"")){if(H&&!a)return e.nodes=null,y.innerHTML=x,void(""!==x&&p(n(y),y.lastChild));if(null!==e.nodes&&(t(e.nodes.start,e.nodes.end),e.nodes=null),""!==x){if(a){i.data;for(var c=r(),j=c;null!==c&&(c.nodeType!==l||""!==c.data);)j=c,c=d(c);if(null===c)throw f(),v;return p(i,j),void(k=s(c))}var L=u(T?"svg":b?"math":"template",T?h:b?m:void 0);L.innerHTML=x;var M=T||b?L:L.content;if(p(n(M),M.lastChild),T||b)for(;n(M);)k.before(n(M));else k.before(M)}}else a&&r()})}export{c as h};
@@ -1 +0,0 @@
1
- import"../svelte/internal-disclose-version.js";import{p as a,a3 as t,a4 as e,a7 as i,a9 as s,a8 as n,n as o,a1 as r,g as l,a5 as c,a6 as d,a2 as v}from"./chunk-9EZydhXt.js";import{b as u,f as m,s as p,d as f,t as g}from"./chunk-CTgT5UYL.js";import{s as h}from"./chunk-akOtSLvV.js";import{p as b,a as y,c as k,i as x,s as j,e as w}from"./chunk-DgPYxg7o.js";import"./chunk-Xd_2KAhC.js";import{translate as C,currentLanguage as T}from"../host/utils-language.js";import{g as $}from"./chunk-Cmbb89rp.js";import{createEventDispatcher as D}from"../svelte/index.js";import{d as I,a as P}from"./chunk-cUxFvg6m.js";function F(){}var M=m('<div class="card opacity-50 bg-transparent border-none"><div class="card-body vstack gap-3 text-center"><span></span> <p class="mb-0"> </p> <!></div></div>');function N(r,l){e(l,!0);let c=b(l,"icon",3,"fa-solid fa-square fa-3x"),d=b(l,"text",19,()=>C("components.no-content.text","No content"));var v=M(),m=i(v),f=i(m),g=s(f,2),x=i(g,!0);n(g);var j=s(g,2);h(j,()=>l.children??o),n(m),n(v),a(()=>{y(f,1,k(c())),p(x,d())}),u(r,v),t()}var L=m("<span><!></span>");function S(s,o){e(o,!0);const[m,y]=r();let k=b(o,"relativeFormat",3,!1);const w=c(()=>d(T,"$currentLanguage",m)?.code??$().locale??void 0),C=c(()=>new Date(parseInt(o.time))),D=c(()=>new Intl.DateTimeFormat(l(w),{dateStyle:"short",timeStyle:"short"}).format(l(C))),I=c(()=>{if(!k())return new Intl.DateTimeFormat(l(w),{day:"2-digit",month:"long",year:"numeric"}).format(l(C));const a=Math.round((l(C).getTime()-Date.now())/1e3),t=[["year",31536e3],["month",2592e3],["day",86400],["hour",3600],["minute",60]],e=new Intl.RelativeTimeFormat(l(w),{numeric:"auto"});for(const[i,s]of t)if(Math.abs(a)>=s)return e.format(Math.round(a/s),i);return e.format(a,"second")});var P=L(),F=i(P),M=a=>{var t=f(),e=v(t);h(e,()=>o.children),u(a,t)},N=t=>{var e=g();a(()=>p(e,l(I))),u(t,e)};x(F,a=>{o.children?a(M):a(N,-1)}),n(P),a(()=>j(P,"title",l(D))),u(s,P),t(),y()}var q=m('<div role="alert" aria-live="assertive" aria-atomic="true"><div class="toast-body"><!></div></div>');function A(t,e){let s=b(e,"variant",3,null);const r={success:"text-success",danger:"text-danger"},d=c(()=>r[s()]??"");var v=q(),m=i(v),p=i(m);h(p,()=>e.children??o),n(m),n(v),a(()=>{j(v,"id",`appToast${e.id??""}`),y(v,1,`toast show align-items-center shadow-lg text-bg-tertiary opacity-100 ${l(d)??""}`)}),u(t,v)}var E=m("<div><!></div>"),R=m("<div><!></div>"),z=m("<div><!></div>"),B=m('<div class="row d-flex align-items-center gy-3 justify-content-lg-between justify-content-center"><!> <!> <!></div>');function G(t,e){let r=b(e,"leftClasses",3,void 0),l=b(e,"middleClasses",3,void 0),c=b(e,"rightClasses",3,void 0);var d=B(),v=i(d),m=t=>{var s=E(),l=i(s);h(l,()=>e.left??o),n(s),a(()=>y(s,1,`col-lg-auto col-12 d-flex justify-content-lg-start overflow-x-auto ${(r()||"")??""}`)),u(t,s)};x(v,a=>{null===r()||!e.left&&void 0===r()||a(m)});var p=s(v,2),f=t=>{var s=R(),r=i(s);h(r,()=>e.middle??o),n(s),a(()=>y(s,1,`col-lg-auto col-12 order-lg-2 order-last d-flex justify-content-center overflow-x-auto ${(l()||"")??""}`)),u(t,s)};x(p,a=>{null===l()||!e.middle&&void 0===l()||a(f)});var g=s(p,2),k=t=>{var s=z(),r=i(s);h(r,()=>e.right??o),n(s),a(()=>y(s,1,`col-lg-auto col-12 order-3 d-flex justify-content-lg-end overflow-x-auto ${(c()||"")??""}`)),u(t,s)};x(g,a=>{null===c()||!e.right&&void 0===c()||a(k)}),n(d),u(t,d)}var H=m('<li><button type="button" class="page-link"> </button></li>'),J=m('<nav><ul class="pagination pagination-sm mb-0 justify-content-start flex-wrap"><li><button type="button" class="page-link"><i class="fa-solid fa-caret-left"></i></button></li> <!> <li><button type="button" class="page-link"><i class="fa-solid fa-caret-right"></i></button></li></ul></nav>');function K(o,r){e(r,!0);const d=D();let v=b(r,"page",3,1),m=b(r,"totalPage",3,1);const f=c(()=>Array.from({length:m()},(a,t)=>t+1)),g=c(()=>parseInt(v()));var h=J(),k=i(h),x=i(k);let T;var $=i(x);n(x);var I=s(x,2);w(I,16,()=>l(f),a=>a,(t,e)=>{var s=H();let o;var r=i(s),c=i(r,!0);n(r),n(s),a(()=>{o=y(s,1,"page-item",null,o,{active:l(g)===e}),j(s,"aria-current",l(g)===e?"page":void 0),j(r,"aria-hidden",l(g)===e),p(c,e)}),P("click",r,()=>d("pageLinkClick",{page:e})),u(t,s)});var F=s(I,2);let M;var N=i(F);n(F),n(k),n(h),a((a,t)=>{T=y(x,1,"page-item",null,T,{disabled:1===l(g)}),j($,"title",a),j($,"aria-hidden",1===l(g)),M=y(F,1,"page-item",null,M,{disabled:l(g)===m()}),j(N,"title",t),j(N,"aria-hidden",l(g)===m())},[()=>C("components.pagination.previous-page","Previous page"),()=>C("components.pagination.next-page","Next page")]),P("click",$,()=>d("firstPageClick",{})),P("click",N,()=>d("lastPageClick",{})),u(o,h),t()}I(["click"]);export{S as D,F as E,N,G as P,A as T,K as a};
@@ -1 +0,0 @@
1
- import{ac as e,ad as s,ae as t,af as n,ag as a,ah as o,ai as c,m as i,y as r,aj as f,ak as h,al as u,am as l,t as m,an as d,ao as p,v as g,q as v,ap as b,aq as y}from"./chunk-9EZydhXt.js";import{i as k,e as w,a as _}from"./chunk-CTgT5UYL.js";class j{anchor;#e=new Map;#s=new Map;#t=new Map;#n=new Set;#a=!0;constructor(e,s=!0){this.anchor=e,this.#a=s}#o=n=>{if(this.#e.has(n)){var o=this.#e.get(n),c=this.#s.get(o);if(c)e(c),this.#n.delete(o);else{var i=this.#t.get(o);i&&(this.#s.set(o,i.effect),this.#t.delete(o),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),c=i.effect)}for(const[e,t]of this.#e){if(this.#e.delete(e),e===n)break;const a=this.#t.get(t);a&&(s(a.effect),this.#t.delete(t))}for(const[e,n]of this.#s){if(e===o||this.#n.has(e))continue;const i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();f(n,t),t.append(a()),this.#t.set(e,{effect:n,fragment:t})}else s(n);this.#n.delete(e),this.#s.delete(e)};this.#a||!c?(this.#n.add(e),t(n,i,!1)):i()}}};#c=e=>{this.#e.delete(e);const t=Array.from(this.#e.values());for(const[e,n]of this.#t)t.includes(e)||(s(n.effect),this.#t.delete(e))};ensure(e,s){var t=c,f=n();if(s&&!this.#s.has(e)&&!this.#t.has(e))if(f){var h=document.createDocumentFragment(),u=a();h.append(u),this.#t.set(e,{effect:o(()=>s(u)),fragment:h})}else this.#s.set(e,o(()=>s(this.anchor)));if(this.#e.set(t,e),f){for(const[s,n]of this.#s)s===e?t.unskip_effect(n):t.skip_effect(n);for(const[s,n]of this.#t)s===e?t.unskip_effect(n.effect):t.skip_effect(n.effect);t.oncommit(this.#o),t.ondiscard(this.#c)}else i&&(this.anchor=r),this.#o(t)}}function M(e){const s=e();s&&k(s)&&console.warn("https://svelte.dev/e/dynamic_void_element_content")}function q(e){const s=e();s&&!("string"==typeof s)&&u()}function A(e,s){null!=e&&"function"!=typeof e.subscribe&&l()}function D(e){return e.toString=()=>(h(),""),e}function F(e,s,...t){var n=new j(e);d(()=>{const e=s()??null;n.ensure(e,e&&(s=>e(s,...t)))},p)}function S(e,s){const t=(t,...n)=>{var a=y;b(e);try{return s(t,...n)}finally{b(a)}};return D(t),t}function x(e){return(s,...t)=>{var n,a=e(...t);if(i)n=r,g();else{var o=a.render().trim(),c=w(o);n=v(c),s.before(n)}const f=a.setup?.(n);_(n,n),"function"==typeof f&&m(f)}}export{j as B,A as a,M as b,x as c,D as p,F as s,q as v,S as w};
@@ -1 +0,0 @@
1
- import{bZ as e,cX as t,t as n,m as r,K as a,cg as o,G as i,c as s,f as c,d as u,h as l}from"./chunk-9EZydhXt.js";const f=Symbol("events"),d=new Set,v=new Set;function h(e){if(!r)return;e.removeAttribute("onload"),e.removeAttribute("onerror");const t=e.__e;void 0!==t&&(e.__e=void 0,queueMicrotask(()=>{e.isConnected&&e.dispatchEvent(t)}))}function m(e,t,n,r={}){function i(e){if(r.capture||E.call(t,e),!e.cancelBubble)return o(()=>n?.call(this,e))}return e.startsWith("pointer")||e.startsWith("touch")||"wheel"===e?a(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function p(e,t,n,r={}){var a=m(t,e,n,r);return()=>{e.removeEventListener(t,a,r)}}function b(e,t,r,a,o){var i={capture:a,passive:o},s=m(e,t,r,i);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&n(()=>{t.removeEventListener(e,s,i)})}function g(e,t,n){(t[f]??={})[e]=n}function w(e){for(var t=0;t<e.length;t++)d.add(e[t]);for(var n of v)n(e)}let y=null;function E(e){var t=this,n=t.ownerDocument,r=e.type,a=e.composedPath?.()||[],o=a[0]||e.target;y=e;var d=0,v=y===e&&e[f];if(v){var h=a.indexOf(v);if(-1!==h&&(t===document||t===window))return void(e[f]=t);var m=a.indexOf(t);if(-1===m)return;h<=m&&(d=h)}if((o=a[d]||e.target)!==t){i(e,"currentTarget",{configurable:!0,get:()=>o||n});var p=u,b=l;s(null),c(null);try{for(var g,w=[];null!==o;){var E=o.assignedSlot||o.parentNode||o.host||null;try{var L=o[f]?.[r];null==L||o.disabled&&e.target!==o||L.call(o,e)}catch(e){g?w.push(e):g=e}if(e.cancelBubble||E===t||null===E)break;o=E}if(g){for(let e of w)queueMicrotask(()=>{throw e});throw g}}finally{e[f]=t,delete e.currentTarget,s(p),c(b)}}}function L(e,n,r,a,o,i=!1,s=!1){let c,u;try{c=e()}catch(e){u=e}if("function"!=typeof c&&(i||null!=c||u)){o&&(o[0],o[1]);r[0],Event.BUBBLING_PHASE;if(r[0],t(),u)throw u}c?.apply(n,r)}export{g as a,d as b,m as c,w as d,L as e,b as f,h as g,E as h,p as o,v as r};