@pie-players/pie-section-player 0.3.72 → 0.3.74
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.
- package/README.md +198 -37
- package/dist/browser/assets/evaluation-worker-DkU_wGh3.js +155241 -0
- package/dist/browser/chunks/ItemToolBar-wr2myaah-2ce4b643.js +1 -0
- package/dist/browser/chunks/PUA-tLuTiQ7--f2b27953.js +1 -0
- package/dist/browser/chunks/ToolCoordinator-cc2dc319.js +1 -0
- package/dist/browser/chunks/accents-BTUYmhn9-cafeb96e.js +1 -0
- package/dist/browser/chunks/accents-b-i-CngHZsLL-e0eb98fd.js +1 -0
- package/dist/browser/chunks/arabic-BzEHMVZD-30ac1ade.js +1 -0
- package/dist/browser/chunks/arrows-VjxlU-jv-2e17c192.js +1 -0
- package/dist/browser/chunks/base-dfd67c41.js +1 -0
- package/dist/browser/chunks/braille-BeWC_Ruq-a3bb8ef9.js +1 -0
- package/dist/browser/chunks/braille-d-Dk6J96GO-d832bfbf.js +1 -0
- package/dist/browser/chunks/browser-a3c32178.js +36 -0
- package/dist/browser/chunks/calculator-element-271c142f.js +9 -0
- package/dist/browser/chunks/calligraphic-Cew9cU3x-04cf0735.js +1 -0
- package/dist/browser/chunks/cherokee-Cny3FYho-4da7d2f3.js +1 -0
- package/dist/browser/chunks/classPrivateFieldGet2-338e0179.js +1 -0
- package/dist/browser/chunks/custom-element-define-2a92deb0.js +1 -0
- package/dist/browser/chunks/cyrillic-CfCDulXU-5550df0b.js +1 -0
- package/dist/browser/chunks/cyrillic-ss-lU7bNGG9-12eb0188.js +1 -0
- package/dist/browser/chunks/defineProperty-a20a667d.js +1 -0
- package/dist/browser/chunks/devanagari-CDIz2h-r-18c38725.js +1 -0
- package/dist/browser/chunks/dist-41b39e7f.js +1 -0
- package/dist/browser/chunks/dist-59132a53.js +1 -0
- package/dist/browser/chunks/dist-60d7afef.js +1 -0
- package/dist/browser/chunks/dist-ca9b9622.js +1 -0
- package/dist/browser/chunks/double-struck-BpJEQk8y-500ce8dd.js +1 -0
- package/dist/browser/chunks/en-5ff22e17.js +1 -0
- package/dist/browser/chunks/es-a0ba6cb6.js +1 -0
- package/dist/browser/chunks/focus-trap-44913bf3.js +1 -0
- package/dist/browser/chunks/fraktur-rLEq9DEH-44cc14d8.js +1 -0
- package/dist/browser/chunks/greek-BlraJTyL-90ce8924.js +1 -0
- package/dist/browser/chunks/greek-ss-D-EN2PK0-91610739.js +1 -0
- package/dist/browser/chunks/hebrew-GiQZeybp-b583f555.js +1 -0
- package/dist/browser/chunks/latin-b-BhEnC7R2-d13e06ff.js +1 -0
- package/dist/browser/chunks/latin-bi-DqiIKv3U-1dec8705.js +1 -0
- package/dist/browser/chunks/latin-i-B1xtwaE1-21637466.js +1 -0
- package/dist/browser/chunks/latin-xfWFlLkD-5bcea5cf.js +1 -0
- package/dist/browser/chunks/logger-8b07fb72.js +1 -0
- package/dist/browser/chunks/marrows-DD1NgMQi-15b63755.js +1 -0
- package/dist/browser/chunks/math-DpWn1mbG-38eeb914.js +1 -0
- package/dist/browser/chunks/math-rendering-ready-9a0fd90a.js +1 -0
- package/dist/browser/chunks/mathjax-D2JHb_R_-64780dc5.js +232 -0
- package/dist/browser/chunks/module-0191e321.js +74 -0
- package/dist/browser/chunks/module-shim-58659a86.js +0 -0
- package/dist/browser/chunks/module-shim-b4470740.js +12 -0
- package/dist/browser/chunks/monospace-D116QD2a-98d484fd.js +1 -0
- package/dist/browser/chunks/monospace-ex-DcXpouKS-456b403c.js +1 -0
- package/dist/browser/chunks/monospace-l-Ct5wkMDs-f34a4a9e.js +1 -0
- package/dist/browser/chunks/mshapes-DCp86WSX-c0055952.js +1 -0
- package/dist/browser/chunks/nds-icon-button-d602f784.js +194 -0
- package/dist/browser/chunks/nl-NL-364d61b9.js +1 -0
- package/dist/browser/chunks/nl-NL-8b7e6d4b.js +1 -0
- package/dist/browser/chunks/overlay-containment-edaaff13.js +1 -0
- package/dist/browser/chunks/overlay-placement-e8058232.js +1 -0
- package/dist/browser/chunks/phonetics-BwOCw2Y9-d2e3af59.js +1 -0
- package/dist/browser/chunks/phonetics-ss-CRtMn02f-579b6135.js +1 -0
- package/dist/browser/chunks/pie-api-client-687c319a.js +1 -0
- package/dist/browser/chunks/pie-tool-calculator-cortex-0626bc24.js +9 -0
- package/dist/browser/chunks/pie-tool-calculator-geogebra-561236cb.js +9 -0
- package/dist/browser/chunks/pointer-gesture-ce75f0a7.js +1 -0
- package/dist/browser/chunks/preload-helper-6ad28da3.js +1 -0
- package/dist/browser/chunks/provider-4c704118.js +1 -0
- package/dist/browser/chunks/rolldown-runtime-1287ba31.js +1 -0
- package/dist/browser/chunks/runtime-C7H1jS4E-64772f5e.js +8413 -0
- package/dist/browser/chunks/sanitize-svg-icon-b9082bba.js +3 -0
- package/dist/browser/chunks/sans-serif-BYPZKlE9-2efdbcd9.js +1 -0
- package/dist/browser/chunks/sans-serif-b-B0kRKiC--b5530dce.js +1 -0
- package/dist/browser/chunks/sans-serif-bi-DXWul6mu-5370dba4.js +1 -0
- package/dist/browser/chunks/sans-serif-ex-Boux1kMP-aa178f31.js +1 -0
- package/dist/browser/chunks/sans-serif-i-676RFaSO-2db54474.js +1 -0
- package/dist/browser/chunks/sans-serif-r-DrN9xdZt-0fc72eea.js +1 -0
- package/dist/browser/chunks/script-0ohehnXc-526904f4.js +1 -0
- package/dist/browser/chunks/shapes-BG47NodJ-d59b0eca.js +1 -0
- package/dist/browser/chunks/src-BcptuNS5-ed25d7fd.js +191 -0
- package/dist/browser/chunks/sre-engine-wf9s43gg-f09289c5.js +53 -0
- package/dist/browser/chunks/symbols-BqnUxf_t-83087e87.js +1 -0
- package/dist/browser/chunks/symbols-b-i-eg9k5hmF-9c461ac2.js +1 -0
- package/dist/browser/chunks/tool-annotation-toolbar-997438b4.js +248 -0
- package/dist/browser/chunks/tool-answer-eliminator-35483abd.js +13 -0
- package/dist/browser/chunks/tool-color-scheme-b7de5cdf.js +26 -0
- package/dist/browser/chunks/tool-dictionary-cecff3b4.js +7 -0
- package/dist/browser/chunks/tool-graph-cb0338e8.js +11 -0
- package/dist/browser/chunks/tool-host-contract-b93b482c.js +1 -0
- package/dist/browser/chunks/tool-line-reader-f8ef3c6a.js +62 -0
- package/dist/browser/chunks/tool-periodic-table-43b133b8.js +153 -0
- package/dist/browser/chunks/tool-picture-dictionary-33721e91.js +4 -0
- package/dist/browser/chunks/tool-protractor-23f77028.js +17 -0
- package/dist/browser/chunks/tool-ruler-1d9a03a6.js +15 -0
- package/dist/browser/chunks/tool-tts-inline-98c2ce7a.js +179 -0
- package/dist/browser/chunks/variants-2LRNhOUP-966fc49d.js +1 -0
- package/dist/browser/chunks/versioned-tag-54a76be9.js +1 -0
- package/dist/browser/pie-section-player.js +1613 -0
- package/dist/browser.d.ts +10 -0
- package/dist/chunks/ItemToolBar-wr2myaah-1287ba31.js +28 -0
- package/dist/chunks/module-shim-58659a86.js +2129 -0
- package/dist/chunks/{nl-NL-9312c316.js → nl-NL-364d61b9.js} +8 -2
- package/dist/chunks/sre-engine-wf9s43gg-f09289c5.js +8 -0
- package/dist/components/shared/composition.d.ts +0 -1
- package/dist/components/shared/layout-host-methods.d.ts +400 -0
- package/dist/components/shared/missing-tool-providers.d.ts +16 -0
- package/dist/components/shared/player-preload.d.ts +14 -10
- package/dist/contracts/host-hooks.d.ts +4 -5
- package/dist/contracts/host-hooks.js +0 -0
- package/dist/contracts/layout-contract.js +0 -0
- package/dist/contracts/layout-parity-metadata.js +87 -0
- package/dist/contracts/public-events.d.ts +14 -15
- package/dist/contracts/public-events.js +12 -0
- package/dist/contracts/runtime-host-contract.js +0 -0
- package/dist/controllers/SectionController.d.ts +21 -0
- package/dist/controllers/toolkit-section-contracts.d.ts +1 -17
- package/dist/controllers/types.d.ts +17 -10
- package/dist/pie-section-player.js +19353 -37273
- package/dist/policies/index.d.ts +9 -2
- package/dist/policies/index.js +25 -0
- package/package.json +34 -29
- package/dist/chunks/module-a516757f.js +0 -73997
- package/dist/chunks/nl-NL-ef6dd604.js +0 -505
- package/dist/chunks/pie-api-client-22de9d9c.js +0 -161
- package/dist/chunks/rolldown-runtime-1287ba31.js +0 -20
- package/dist/chunks/sre-0162a7a9.js +0 -17637
- package/dist/contracts/stages.d.ts +0 -10
- package/dist/utils/z-index.d.ts +0 -5
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
if(typeof window<"u"){var gr,mr;((gr=(mr=window).__svelte??(mr.__svelte={})).v??(gr.v=new Set)).add("5")}var ce={},C=Symbol("uninitialized"),Ir=Array.isArray,Yi=Array.prototype.indexOf,An=Array.prototype.includes,mn=Array.from,rn=Object.keys,je=Object.defineProperty,Qt=Object.getOwnPropertyDescriptor,ts=Object.getOwnPropertyDescriptors,es=Object.prototype,ns=Array.prototype,Rr=Object.getPrototypeOf,yr=Object.isExtensible,rs=()=>{};function is(t){for(var e=0;e<t.length;e++)t[e]()}function Br(){var t,e;return{promise:new Promise((n,r)=>{t=n,e=r}),resolve:t,reject:e}}function Pe(t){"@babel/helpers - typeof";return Pe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pe(t)}function ss(t,e){if(Pe(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Pe(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function os(t){var e=ss(t,"string");return Pe(e)=="symbol"?e:e+""}function T(t,e,n){return(e=os(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var tt=1024,ct=2048,ne=4096,Zn=8192,as=16384,Qn=32768,wr=1<<25,Xn=65536,ge=1<<19,ls=1<<20,Ee=1<<25,br=1<<21,us=1<<22,sn=1<<23,Ye=Symbol("$state"),Dr=Symbol("component"),Vr=Symbol("legacy props"),fs=Symbol(""),Nn=Symbol("attributes"),cs=Symbol("class"),hs=Symbol("style"),tn=Symbol("text"),Te=Symbol("form reset"),Re=new class extends Error{constructor(...t){super(...t),T(this,"name","StaleReactionError"),T(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},vs=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml");function ds(){console.warn("https://svelte.dev/e/derived_inert")}function yn(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function ps(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}var E=!1;function Lt(t){E=t}var W;function J(t){if(t===null)throw yn(),ce;return W=t}function wn(){return J(St(W))}function gt(t){if(E){if(St(W)!==null)throw yn(),ce;W=t}}function gs(t=1){if(E){for(var e=t,n=W;e--;)n=St(n);W=n}}function on(t=!0){for(var e=0,n=W;;){if(n.nodeType===8){var r=n.data;if(r==="]"){if(e===0)return n;e-=1}else(r==="["||r==="[!"||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(e+=1)}var i=St(n);t&&n.remove(),n=i}}function Hr(t){if(!t||t.nodeType!==8)throw yn(),ce;return t.data}function Fr(t){return t===this.v}function ms(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Jr(t){return!ms(t,this.v)}function ys(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function ws(t,e,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function bs(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function _s(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function $s(t){throw new Error("https://svelte.dev/e/effect_orphan")}function ks(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function qs(){throw new Error("https://svelte.dev/e/hydration_failed")}function Ss(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function xs(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Ms(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Ws(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Es(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}var me=!1,bn=!1,I=null;function he(t){I=t}function Kr(t,e=!1,n){I={p:I,i:!1,c:null,e:null,s:t,x:null,r:q,l:bn&&!e?{s:null,u:null,$:[]}:null}}function Ur(t){var e=I,n=e.e;if(n!==null){e.e=null;for(var r of n)yi(r)}return t!==void 0&&(e.x=t),e.i=!0,I=e.p,Gr(t)}function Gr(t={}){return je(t,Dr,{value:!0}),t}function Be(){return!bn||I!==null&&I.l===null}var Ut=[];function Zr(){var t=Ut;Ut=[],is(t)}function kt(t){if(Ut.length===0&&!Le){var e=Ut;queueMicrotask(()=>{e===Ut&&Zr()})}Ut.push(t)}function Ts(){for(;Ut.length>0;)Zr()}var Ls=~(ct|ne|tt);function A(t,e){t.f=t.f&Ls|e}function Yn(t){(t.f&512)!==0||t.deps===null?A(t,tt):A(t,ne)}function Qr(t,e,n){(t.f&2048)!==0?e.add(t):t.f&4096&&n.add(t),A(t,tt)}var _r=!1;function Xr(){_r||(_r=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{if(!t.defaultPrevented)for(const e of t.target.elements)e[Te]?.()})},{capture:!0}))}function ye(t){var e=x,n=q;nt(null),qt(null);try{return t()}finally{nt(e),qt(n)}}function Os(t,e,n,r=n){t.addEventListener(e,()=>ye(n));const i=t[Te];i?t[Te]=()=>{i(),r(!0)}:t[Te]=()=>r(!0),Xr()}function js(t,e,n,r){const i=Be()?Ae:tr;var s=t.filter(h=>!h.settled),a=e.map(i);if(n.length===0&&s.length===0){r(a);return}var l=q,f=Ps(),u=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(h=>h.promise)):null;function c(h){if((l.f&16384)===0){f();try{r([...a,...h])}catch(y){$t(y,l)}an()}}var v=Yr();if(n.length===0){u.then(()=>c([])).finally(v);return}function d(){Promise.all(n.map(h=>As(h))).then(c).catch(h=>$t(h,l)).finally(v)}u?u.then(()=>{f(),d(),an()}):d()}function Ps(){var t=q,e=x,n=I,r=$;return function(i=!0){qt(t),nt(e),he(n),i&&!(t.f&16384)&&(r?.activate(),r?.apply())}}function an(t=!0){qt(null),nt(null),he(null),t&&$?.deactivate()}function Yr(){var t=q,e=t.b,n=$,r=!!e?.is_rendered();return e?.update_pending_count(1,n),n.increment(r,t),()=>{e?.update_pending_count(-1,n),n.decrement(r,t)}}function Ae(t){var e=2|ct;return q!==null&&(q.f|=ge),{ctx:I,deps:null,effects:null,equals:Fr,f:e,fn:t,reactions:null,rv:0,v:C,wv:0,parent:q,ac:null}}var xe=Symbol("obsolete");function As(t,e,n){let r=q;r===null&&ys();var i=void 0,s=ee(C),a=!x,l=new Set;return Xs(()=>{var f=q,u=Br();i=u.promise;try{Promise.resolve(t()).then(u.resolve,h=>{h!==Re&&u.reject(h)}).finally(an)}catch(h){u.reject(h),an()}var c=$;if(a){if((f.f&32768)!==0)var v=Yr();if(r.b?.is_rendered())c.async_deriveds.get(f)?.reject(xe);else for(const h of l.values())h.reject(xe);l.add(u),c.async_deriveds.set(f,u)}const d=(h,y=void 0)=>{v?.(),l.delete(u),y!==xe&&(c.activate(),y?(s.f|=sn,de(s,y)):(s.f&8388608&&(s.f^=sn),de(s,h)),c.deactivate())};u.promise.then(d,h=>d(null,h||"unknown"))}),mi(()=>{for(const f of l)f.reject(xe)}),new Promise(f=>{function u(c){function v(){c===i?f(s):u(i)}c.then(v,v)}u(i)})}function $r(t){const e=Ae(t);return ki(e),e}function tr(t){const e=Ae(t);return e.equals=Jr,e}function Ns(t){var e=t.effects;if(e!==null){t.effects=null;for(var n=0;n<e.length;n+=1)V(e[n])}}function er(t){var e,n=q,r=t.parent;if(!jt&&r!==null&&t.v!==C&&(r.f&24576)!==0)return ds(),t.v;qt(r);try{Ns(t),e=Mi(t)}finally{qt(n)}return e}function ti(t){var e=er(t);if(!t.equals(e)&&(t.wv=Si(),(!$?.is_fork||t.deps===null)&&($!==null?($.capture(t,e,!0),ln?.capture(t,e,!0)):t.v=e,t.deps===null))){A(t,tt);return}jt||(D!==null?(sr()||$?.is_fork)&&D.set(t,e):Yn(t))}function Cs(t){if(t.effects!==null)for(const e of t.effects)(e.teardown||e.ac)&&(e.teardown?.(),e.ac!==null&&ye(()=>{e.ac.abort(Re),e.ac=null}),e.fn!==null&&(e.teardown=rs),Ce(e,0),lr(e))}function ei(t){if(t.effects!==null)for(const e of t.effects)e.teardown&&e.fn!==null&&pe(e)}function ni(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function nr(t,e){ni(t,e),e.add(t)}function w(t,e,n){ni(t,e),e.set(t,n)}function k(t,e,n){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}function g(t,e,n){return t.set(k(t,e),n),n}function o(t,e){return t.get(k(t,e))}var ri,Cn=null,se=null,$=null,ln=null,D=null,zn=null,Le=!1,qn=!1,Ne=null,un=null,ii=0,zs=1,In=new WeakMap,Xt=new WeakMap,ue=new WeakMap,fn=new WeakMap,Fe=new WeakMap,oe=new WeakMap,Jt=new WeakMap,Me=new WeakMap,wt=new WeakMap,kr=new WeakMap,ve=new WeakMap,Ot=new WeakMap,Rt=new WeakMap,Sn=new WeakMap,Je=new WeakMap,N=new WeakSet,re=class si{constructor(){nr(this,N),T(this,"id",zs++),w(this,In,!1),T(this,"linked",!0),w(this,Xt,null),w(this,ue,null),T(this,"async_deriveds",new Map),T(this,"current",new Map),T(this,"previous",new Map),w(this,fn,new Set),w(this,Fe,new Set),w(this,oe,0),w(this,Jt,new Map),w(this,Me,null),w(this,wt,[]),w(this,kr,[]),w(this,ve,new Set),w(this,Ot,new Set),w(this,Rt,new Map),w(this,Sn,new Set),T(this,"is_fork",!1),w(this,Je,!1),se===null?Cn=se=this:(g(ue,se,this),g(Xt,this,se)),se=this}skip_effect(e){o(Rt,this).has(e)||o(Rt,this).set(e,{d:[],m:[]}),o(Sn,this).delete(e)}unskip_effect(e,n=r=>this.schedule(r)){var r=o(Rt,this).get(e);if(r){o(Rt,this).delete(e);for(var i of r.d)A(i,ct),n(i);for(i of r.m)A(i,ne),n(i)}o(Sn,this).add(e)}capture(e,n,r=!1){e.v!==C&&!this.previous.has(e)&&this.previous.set(e,e.v),!(e.f&8388608)&&(this.current.set(e,[n,r]),D?.set(e,n)),this.is_fork||(e.v=n)}activate(){$=this}deactivate(){$=null,D=null}flush(){try{qn=!0,$=this,k(N,this,cn).call(this)}finally{ii=0,zn=null,Ne=null,un=null,qn=!1,$=null,D=null,_t.clear()}}discard(){for(const e of o(Fe,this))e(this);o(Fe,this).clear();for(const e of this.async_deriveds.values())e.reject(xe);k(N,this,hn).call(this),o(Me,this)?.resolve()}register_created_effect(e){o(kr,this).push(e)}increment(e,n){if(g(oe,this,o(oe,this)+1),e){let r=o(Jt,this).get(n)??0;o(Jt,this).set(n,r+1)}}decrement(e,n){if(g(oe,this,o(oe,this)-1),e){let r=o(Jt,this).get(n)??0;r===1?o(Jt,this).delete(n):o(Jt,this).set(n,r-1)}o(Je,this)||(g(Je,this,!0),kt(()=>{g(Je,this,!1),this.linked&&this.flush()}))}transfer_effects(e,n){for(const r of e)o(ve,this).add(r);for(const r of n)o(Ot,this).add(r);e.clear(),n.clear()}oncommit(e){o(fn,this).add(e)}ondiscard(e){o(Fe,this).add(e)}settled(){return(o(Me,this)??g(Me,this,Br())).promise}static ensure(){if($===null){const e=$=new si;!qn&&!Le&&kt(()=>{o(In,e)||e.flush()})}return $}apply(){if(!me||!this.is_fork&&o(Xt,this)===null&&o(ue,this)===null){D=null;return}D=new Map;for(const[n,[r]]of this.current)D.set(n,r);for(let n=Cn;n!==null;n=o(ue,n))if(!(n===this||n.is_fork)){var e=!1;if(n.id<this.id){for(const[r,[,i]]of n.current)if(!i&&this.current.has(r)){e=!0;break}}if(!e)for(const[r,i]of n.previous)D.has(r)||D.set(r,i)}}schedule(e){if(zn=e,e.b?.is_pending&&(e.f&16777228)!==0&&(e.f&32768)===0){e.b.defer_effect(e);return}o(wt,this).push(e)}};ri=re;function qr(){if(this.is_fork)return!0;for(const n of o(Jt,this).keys()){for(var t=n,e=!1;t.parent!==null;){if(o(Rt,this).has(t)){e=!0;break}t=t.parent}if(!e)return!0}return!1}function Is(){var t=[];for(const i of o(wt,this))if(!((i.f&16384)!==0||(i.f&6144)===0)){for(var e=i,n=!1;e.parent!==null;){e=e.parent;var r=e.f;if((r&96)!==0){if((r&1024)===0){n=!0;break}e.f^=tt}}n||t.push(e)}return g(wt,this,[]),t}function cn(){g(In,this,!0);for(const a of o(ve,this))o(Ot,this).delete(a),A(a,ct),this.schedule(a);for(const a of o(Ot,this))A(a,ne),this.schedule(a);this.apply();for(var t=Ne=[],e=[],n=un=[];o(wt,this).length>0;){ii++>1e3&&(k(N,this,hn).call(this),Vs());for(const a of k(N,this,Is).call(this))try{k(N,this,Rs).call(this,a,t,e)}catch(l){throw li(a),k(N,this,qr).call(this)||this.discard(),l}}if($=null,n.length>0){var r=ri.ensure();for(const a of n)r.schedule(a)}if(Ne=null,un=null,k(N,this,qr).call(this)){k(N,this,Ke).call(this,e),k(N,this,Ke).call(this,t);for(const[a,l]of o(Rt,this))ai(a,l);n.length>0&&k(N,$,cn).call($);return}const i=k(N,this,Bs).call(this);if(i){k(N,this,Ke).call(this,e),k(N,this,Ke).call(this,t),k(N,i,Ds).call(i,this);return}o(ve,this).clear(),o(Ot,this).clear();for(const a of o(fn,this))a(this);o(fn,this).clear(),ln=this,Sr(e),Sr(t),ln=null,o(Me,this)?.resolve();var s=$;if(o(oe,this)===0&&(o(wt,this).length===0||s!==null)&&k(N,this,hn).call(this),o(wt,this).length>0)if(s!==null){for(const a of o(wt,this))o(wt,s).push(a);g(wt,this,[])}else s=this;s!==null&&(_t.clear(),k(N,s,cn).call(s))}function Rs(t,e,n){t.f^=tt;for(var r=t.first;r!==null;){var i=r.f,s=(i&96)!==0;if(!(s&&(i&1024)!==0||(i&8192)!==0||o(Rt,this).has(r))&&r.fn!==null){s?r.f^=tt:(i&4)!==0?e.push(r):me&&(i&16777224)!==0?n.push(r):De(r)&&(i&16&&o(Ot,this).add(r),pe(r));var a=r.first;if(a!==null){r=a;continue}}for(;r!==null;){var l=r.next;if(l!==null){r=l;break}r=r.parent}}}function Bs(){for(var t=o(Xt,this);t!==null;){if(!t.is_fork){for(const[e,[,n]]of this.current)if(t.current.has(e)&&!n)return t}t=o(Xt,t)}return null}function Ds(t){for(const[n,r]of t.current)!this.previous.has(n)&&t.previous.has(n)&&this.previous.set(n,t.previous.get(n)),this.current.set(n,r);for(const[n,r]of t.async_deriveds){const i=this.async_deriveds.get(n);i&&r.promise.then(i.resolve).catch(i.reject)}t.async_deriveds.clear(),this.transfer_effects(o(ve,t),o(Ot,t));const e=n=>{var r=n.reactions;if(r!==null&&!((n.f&2)!==0&&(n.f&6144)===0))for(const a of r){var i=a.f;if((i&2)!==0)e(a);else{var s=a;i&4194320&&!this.async_deriveds.has(s)&&(o(Ot,this).delete(s),A(s,ct),this.schedule(s))}}};for(const n of this.current.keys())e(n);this.oncommit(()=>t.discard()),k(N,t,hn).call(t),$=this,k(N,this,cn).call(this)}function Ke(t){for(var e=0;e<t.length;e+=1)Qr(t[e],o(ve,this),o(Ot,this))}function hn(){if(this.linked){var t=o(Xt,this),e=o(ue,this);t===null?Cn=e:g(ue,t,e),e===null?se=t:g(Xt,e,t),this.linked=!1}}function st(t){var e=Le;Le=!0;try{var n;for(t&&($!==null&&!$.is_fork&&$.flush(),n=t());;){if(Ts(),$===null)return n;$.flush()}}finally{Le=e}}function Vs(){try{ks()}catch(t){$t(t,zn)}}var yt=null;function Sr(t){var e=t.length;if(e!==0){for(var n=0;n<e;){var r=t[n++];if((r.f&24576)===0&&De(r)&&(yt=new Set,pe(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&bi(r),yt?.size>0)){_t.clear();for(const i of yt){if((i.f&24576)!==0)continue;const s=[i];let a=i.parent;for(;a!==null;)yt.has(a)&&(yt.delete(a),s.push(a)),a=a.parent;for(let l=s.length-1;l>=0;l--){const f=s[l];!(f.f&24576)&&pe(f)}}yt.clear()}}yt=null}}function oi(t){$.schedule(t)}function ai(t,e){if(!((t.f&32)!==0&&(t.f&1024)!==0)){(t.f&2048)!==0?e.d.push(t):t.f&4096&&e.m.push(t),A(t,tt);for(var n=t.first;n!==null;)ai(n,e),n=n.next}}function li(t){A(t,tt);for(var e=t.first;e!==null;)li(e),e=e.next}var vn=new Set,_t=new Map,ui=!1;function ee(t,e){return{f:0,v:t,reactions:null,equals:Fr,rv:0,wv:0}}function mt(t,e){const n=ee(t,e);return ki(n),n}function fi(t,e=!1,n=!0){const r=ee(t);if(e||(r.equals=Jr),bn&&n&&I!==null&&I.l!==null){var i;((i=I.l).s??(i.s=[])).push(r)}return r}function X(t,e,n=!1){return x!==null&&(!ot||x.f&131072)&&Be()&&x.f&4325394&&(lt===null||!lt.has(t))&&Ws(),de(t,n?Gt(e):e,un)}var Kt=null,Rn=0;function de(t,e,n=null){if(!t.equals(e)){jt?_t.set(t,e):_t.has(t)||_t.set(t,t.v);var r=re.ensure();if(r.capture(t,e),(t.f&2)!==0){const i=t;t.f&2048&&er(i),D===null&&Yn(i)}t.wv=Si(),Kt=null,Rn=0,ci(t,ct,n),Kt=null,Be()&&q!==null&&q.f&1024&&!(q.f&96)&&(Q===null?no([t]):Q.push(t)),!r.is_fork&&vn.size>0&&!ui&&Hs()}return e}function Hs(){ui=!1;for(const t of vn){t.f&1024&&A(t,ne);let e;try{e=De(t)}catch{e=!0}e&&pe(t)}vn.clear()}function Oe(t){X(t,t.v+1)}function ci(t,e,n){var r=t.reactions;if(r!==null){var i=Be(),s=r.length;if(Rn+=s,Rn>1e5&&Kt===null&&(Kt=new Set),Kt!==null){if(Kt.has(t))return;Kt.add(t)}for(var a=0;a<s;a++){var l=r[a],f=l.f;if(!(!i&&l===q)){var u=(f&ct)===0;if(u&&A(l,e),(f&131072)!==0)vn.add(l);else if((f&2)!==0){var c=l;D?.delete(c),ci(c,ne,n)}else if(u){var v=l;f&16&&yt!==null&&yt.add(v),n!==null?n.push(v):oi(v)}}}}}function Gt(t){if(typeof t!="object"||t===null||Ye in t||Dr in t)return t;const e=Rr(t);if(e!==es&&e!==ns)return t;var n=new Map,r=Ir(t),i=mt(0),s=null,a=Yt,l=f=>{if(Yt===a)return f();var u=x,c=Yt;nt(null),Er(a);var v=f();return nt(u),Er(c),v};return r&&n.set("length",mt(t.length,s)),new Proxy(t,{defineProperty(f,u,c){(!("value"in c)||c.configurable===!1||c.enumerable===!1||c.writable===!1)&&xs();var v=n.get(u);return v===void 0?l(()=>{var d=mt(c.value,s);return n.set(u,d),d}):X(v,c.value,!0),!0},deleteProperty(f,u){var c=n.get(u);if(c===void 0){if(u in f){const v=l(()=>mt(C,s));n.set(u,v),Oe(i)}}else X(c,C),Oe(i);return!0},get(f,u,c){if(u===Ye)return t;var v=n.get(u),d=u in f;if(v===void 0&&(!d||Qt(f,u)?.writable)&&(v=l(()=>mt(Gt(d?f[u]:C),s)),n.set(u,v)),v!==void 0){var h=_(v);return h===C?void 0:h}return Reflect.get(f,u,c)},getOwnPropertyDescriptor(f,u){this.has?.(f,u);var c=Reflect.getOwnPropertyDescriptor(f,u),v=n.get(u);if(v!==void 0){var d=_(v);if(d===C)return;if(c&&"value"in c)c.value=d;else return{enumerable:!0,configurable:!0,value:d,writable:!0}}return c},has(f,u){if(u===Ye)return!0;var c=n.get(u),v=c!==void 0&&c.v!==C||Reflect.has(f,u);return(c!==void 0||q!==null&&(!v||Qt(f,u)?.writable))&&(c===void 0&&(c=l(()=>mt(v?Gt(f[u]):C,s)),n.set(u,c)),_(c)===C)?!1:v},set(f,u,c,v){var d=n.get(u),h=u in f;if(r&&u==="length")for(var y=c;y<d.v;y+=1){var S=n.get(y+"");S!==void 0?X(S,C):y in f&&(S=l(()=>mt(C,s)),n.set(y+"",S))}if(d===void 0)(!h||Qt(f,u)?.writable)&&(d=l(()=>mt(void 0,s)),X(d,Gt(c)),n.set(u,d));else{h=d.v!==C;var p=l(()=>Gt(c));X(d,p)}var m=Reflect.getOwnPropertyDescriptor(f,u);if(m?.set&&m.set.call(v,c),!h){if(r&&typeof u=="string"){var O=n.get("length"),j=Number(u);Number.isInteger(j)&&j>=O.v&&X(O,j+1)}Oe(i)}return!0},ownKeys(f){_(i);var u=Reflect.ownKeys(f).filter(d=>{var h=n.get(d);return h===void 0||h.v!==C});for(var[c,v]of n)v.v!==C&&!(c in f)&&u.push(c);return u},setPrototypeOf(){Ms()}})}var xr,hi,vi,di;function Bn(){if(xr===void 0){xr=window,hi=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,n=Text.prototype;vi=Qt(e,"firstChild").get,di=Qt(e,"nextSibling").get,yr(t)&&(t[cs]=void 0,t[Nn]=null,t[hs]=void 0,t.__e=void 0),yr(n)&&(n[tn]=void 0)}}function Y(t=""){return document.createTextNode(t)}function Dt(t){return vi.call(t)}function St(t){return di.call(t)}function It(t,e){if(!E)return Dt(t);var n=Dt(W);if(n===null)n=W.appendChild(Y());else if(e&&n.nodeType!==3){var r=Y();return n?.before(r),J(r),r}return e&&ir(n),J(n),n}function Fs(t,e=!1){if(!E){var n=Dt(t);return n instanceof Comment&&n.data===""?St(n):n}if(e){if(W?.nodeType!==3){var r=Y();return W?.before(r),J(r),r}ir(W)}return W}function At(t,e=!1){if(!E)return Dt(t);var n=It(t,e);return gt(t),n}function Nt(t,e=1,n=!1){let r=E?W:t;for(var i;e--;)i=r,r=St(r);if(!E)return r;if(n){if(r?.nodeType!==3){var s=Y();return r===null?i?.after(s):r.before(s),J(s),s}ir(r)}return J(r),r}function pi(t){t.textContent=""}function gi(){return!me||yt!==null?!1:(q.f&Qn)!==0}function rr(t,e,n){return e==null||e==="http://www.w3.org/1999/xhtml"?n?document.createElement(t,{is:n}):document.createElement(t):n?document.createElementNS(e,t,{is:n}):document.createElementNS(e,t)}function ir(t){if(t.nodeValue.length<65536)return;let e=t.nextSibling;for(;e!==null&&e.nodeType===3;)e.remove(),t.nodeValue+=e.nodeValue,e=t.nextSibling}function Js(t){var e=q;if(e===null)return x.f|=sn,t;if((e.f&32768)===0&&(e.f&4)===0)throw t;$t(t,e)}function $t(t,e){if(!(e!==null&&(e.f&16384)!==0)){for(;e!==null;){if((e.f&128)!==0&&(e.f&33570816)===0){if((e.f&32768)===0)throw t;try{e.b.error(t);return}catch(n){t=n}}e=e.parent}throw t}}function Ks(t){q===null&&(x===null&&$s(t),_s()),jt&&bs(t)}function Us(t,e){var n=e.last;n===null?e.last=e.first=t:(n.next=t,t.prev=n,e.last=t)}function xt(t,e){var n=q;n!==null&&n.f&8192&&(t|=Zn);var r={ctx:I,deps:null,nodes:null,f:t|ct|512,first:null,fn:e,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};$?.register_created_effect(r);var i=r;if((t&4)!==0)Ne!==null?Ne.push(r):re.ensure().schedule(r);else if(e!==null){try{pe(r)}catch(a){throw V(r),a}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,t&16&&t&65536&&i!==null&&(i.f|=Xn))}if(i!==null&&(i.parent=n,n!==null&&Us(i,n),x!==null&&(x.f&2)!==0&&(t&64)===0)){var s=x;(s.effects??(s.effects=[])).push(i)}return r}function sr(){return x!==null&&!ot}function mi(t){const e=xt(8,null);return A(e,tt),e.teardown=t,e}function Mr(t){Ks("$effect");var e=q.f;if(!x&&(e&32)!==0&&I!==null&&!I.i){var n=I;(n.e??(n.e=[])).push(t)}else return yi(t)}function yi(t){return xt(4|ls,t)}function Gs(t){re.ensure();const e=xt(64|ge,t);return()=>{V(e)}}function Zs(t){re.ensure();const e=xt(64|ge,t);return(n={})=>new Promise(r=>{n.outro?ie(e,()=>{V(e),r(void 0)}):(V(e),r(void 0))})}function Qs(t){return xt(4,t)}function Xs(t){return xt(us|ge,t)}function or(t,e=0){return xt(8|e,t)}function Mt(t,e=[],n=[],r=[]){js(r,e,n,i=>{xt(8,()=>{t(...i.map(_))})})}function ar(t,e=0){return xt(16|e,t)}function et(t){return xt(32|ge,t)}function wi(t){var e=t.teardown;if(e!==null){const n=jt,r=x;Wr(!0),nt(null);try{e.call(null)}catch(i){$t(i,t.parent)}finally{Wr(n),nt(r)}}}function lr(t,e=!1){var n=t.first;for(t.first=t.last=null;n!==null;){const i=n.ac;i!==null&&ye(()=>{i.abort(Re)});var r=n.next;(n.f&64)!==0?n.parent=null:V(n,e),n=r}}function Ys(t){for(var e=t.first;e!==null;){var n=e.next;!(e.f&32)&&V(e),e=n}}function V(t,e=!0){var n=!1;(e||t.f&262144)&&t.nodes!==null&&t.nodes.end!==null&&(to(t.nodes.start,t.nodes.end),n=!0),t.f|=wr,lr(t,e&&!n),Ce(t,0);var r=t.nodes&&t.nodes.t;if(r!==null)for(const s of r)s.stop();wi(t),t.f^=wr,t.f|=as;var i=t.parent;i!==null&&i.first!==null&&bi(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes=t.ac=t.b=null}function to(t,e){for(;t!==null;){var n=t===e?null:St(t);t.remove(),t=n}}function bi(t){var e=t.parent,n=t.prev,r=t.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),e!==null&&(e.first===t&&(e.first=r),e.last===t&&(e.last=n))}function ie(t,e,n=!0){var r=[];t.f|=256,_i(t,r,!0);var i=()=>{n&&V(t),e&&e()},s=r.length;if(s>0){var a=()=>--s||i();for(var l of r)l.out(a)}else i()}function _i(t,e,n){if((t.f&8192)===0){t.f^=Zn;var r=t.nodes&&t.nodes.t;if(r!==null)for(const l of r)(l.is_global||n)&&e.push(l);for(var i=t.first;i!==null;){var s=i.next;if((i.f&64)===0){var a=(i.f&65536)!==0||(i.f&32)!==0&&(t.f&16)!==0;_i(i,e,a?n:!1)}i=s}}}function dn(t){t.f&=-257,$i(t,!0)}function $i(t,e){if((t.f&256)===0&&(t.f&8192)!==0){t.f^=Zn,!(t.f&1024)&&(A(t,ct),re.ensure().schedule(t));for(var n=t.first;n!==null;){var r=n.next,i=(n.f&65536)!==0||(n.f&32)!==0;$i(n,i?e:!1),n=r}var s=t.nodes&&t.nodes.t;if(s!==null)for(const a of s)(a.is_global||e)&&a.in()}}function ur(t,e){if(t.nodes)for(var n=t.nodes.start,r=t.nodes.end;n!==null;){var i=n===r?null:St(n);e.append(n),n=i}}var eo=null,en=!1,jt=!1;function Wr(t){jt=t}var x=null,ot=!1;function nt(t){x=t}var q=null;function qt(t){q=t}var lt=null;function ki(t){x!==null&&(x.f&2097152||x.f&2)&&(lt??(lt=new Set)).add(t)}var F=null,K=0,Q=null;function no(t){Q=t}var qi=1,Zt=0,Yt=Zt;function Er(t){Yt=t}function Si(){return++qi}function De(t){var e=t.f;if((e&2048)!==0)return!0;if((e&4096)!==0){for(var n=t.deps,r=n.length,i=0;i<r;i++){var s=n[i];if(De(s)&&ti(s),s.wv>t.wv)return!0}e&512&&D===null&&A(t,tt)}return!1}function xi(t,e,n=!0){var r=t.reactions;if(r!==null&&!(!me&<!==null&<.has(t)))for(var i=0;i<r.length;i++){var s=r[i];(s.f&2)!==0?xi(s,e,!1):e===s&&(n?A(s,ct):s.f&1024&&A(s,ne),oi(s))}}function Mi(t){var e=F,n=K,r=Q,i=x,s=lt,a=I,l=ot,f=Yt,u=t.f;F=null,K=0,Q=null,x=(u&96)===0?t:null,lt=null,he(t.ctx),ot=!1,Yt=++Zt,t.ac!==null&&(ye(()=>{t.ac.abort(Re)}),t.ac=null);try{t.f|=br;var c=t.fn,v=c();t.f|=Qn;var d=Tr(t);if(Be()&&Q!==null&&!ot&&d!==null&&(t.f&6146)===0)for(var h=0;h<Q.length;h++)xi(Q[h],t);if(i!==null&&i!==t){if(Zt++,i.deps!==null)for(let y=0;y<n;y+=1)i.deps[y].rv=Zt;if(e!==null)for(const y of e)y.rv=Zt;Q!==null&&(r===null?r=Q:r.push(...Q))}return t.f&8388608&&(t.f^=sn),v}catch(y){return Tr(t),Js(y)}finally{t.f^=br,F=e,K=n,Q=r,x=i,lt=s,he(a),ot=l,Yt=f}}function Tr(t){var e=t.deps,n=$?.is_fork;if(F!==null){var r;if(n||Ce(t,K),e!==null&&K>0)for(e.length=K+F.length,r=0;r<F.length;r++)e[K+r]=F[r];else t.deps=e=F;if(sr()&&(t.f&512)!==0)for(r=K;r<e.length;r++){var i;((i=e[r]).reactions??(i.reactions=[])).push(t)}}else!n&&e!==null&&K<e.length&&(Ce(t,K),e.length=K);return e}function ro(t,e){let n=e.reactions;if(n!==null){var r=Yi.call(n,t);if(r!==-1){var i=n.length-1;i===0?n=e.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&(e.f&2)!==0&&(F===null||!An.call(F,e))){var s=e;s.f&512&&(s.f^=512),s.v!==C&&Yn(s),s.ac!==null&&ye(()=>{s.ac.abort(Re),s.ac=null,A(s,ct)}),Cs(s),Ce(s,0)}}function Ce(t,e){var n=t.deps;if(n!==null)for(var r=e;r<n.length;r++)ro(t,n[r])}function pe(t){var e=t.f;if((e&16384)===0){A(t,tt);var n=q,r=en;q=t,en=(e&96)===0;try{(e&16777232)!==0?Ys(t):lr(t),wi(t);var i=Mi(t);t.teardown=typeof i=="function"?i:null,t.wv=qi}finally{en=r,q=n}}}async function io(){if(me)return new Promise(t=>{requestAnimationFrame(()=>t()),setTimeout(()=>t())});await Promise.resolve(),st()}function _(t){var e=(t.f&2)!==0;if(eo?.add(t),x!==null&&!ot&&!(q!==null&&(q.f&16384)!==0)&&(lt===null||!lt.has(t))){var n=x.deps;if((x.f&2097152)!==0)t.rv<Zt&&(t.rv=Zt,F===null&&n!==null&&n[K]===t?K++:F===null?F=[t]:F.push(t));else{var r;(r=x).deps??(r.deps=[]),An.call(x.deps,t)||x.deps.push(t);var i=t.reactions;i===null?t.reactions=[x]:An.call(i,x)||i.push(x)}}if(jt&&_t.has(t))return _t.get(t);if(e){var s=t;if(jt){var a=s.v;return(!(s.f&1024)&&s.reactions!==null||Ei(s))&&(a=er(s)),_t.set(s,a),a}var l=(s.f&512)===0&&!ot&&x!==null&&(en||(x.f&512)!==0),f=(s.f&Qn)===0;De(s)&&(l&&(s.f|=512),ti(s)),l&&!f&&(ei(s),Wi(s))}if(D?.has(t))return D.get(t);if((t.f&8388608)!==0)throw t.v;return t.v}function Wi(t){if(t.f|=512,t.deps!==null)for(const e of t.deps)(e.reactions??(e.reactions=[])).push(t),e.f&2&&!(e.f&512)&&(ei(e),Wi(e))}function Ei(t){if(t.v===C)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(_t.has(e)||(e.f&2)!==0&&Ei(e))return!0;return!1}function ze(t){var e=ot;try{return ot=!0,t()}finally{ot=e}}var Ue=Symbol("events"),so=new Set,Lr=new Set;function oo(t,e,n,r={}){function i(s){if(r.capture||Dn.call(e,s),!s.cancelBubble)return ye(()=>n?.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?(i.__removed=!1,kt(()=>{i.__removed||e.addEventListener(t,i,r)})):e.addEventListener(t,i,r),i}function ao(t,e,n,r,i){var s={capture:r,passive:i},a=oo(t,e,n,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&mi(()=>{a.__removed=!0,e.removeEventListener(t,a,s)})}var xn=null,Mn=!1;function Dn(t){var e=this,n=e.ownerDocument,r=t.type,i=t.composedPath?.()||[],s=i[0]||t.target;xn=t,Mn||(Mn=!0,setTimeout(()=>{Mn=!1,xn=null}));var a=0,l=xn===t&&t[Ue];if(l){var f=i.indexOf(l);if(f!==-1&&(e===document||e===window)){t[Ue]=e;return}var u=i.indexOf(e);if(u===-1)return;f<=u&&(a=f)}if(s=i[a]||t.target,s!==e){je(t,"currentTarget",{configurable:!0,get(){return s||n}});var c=x,v=q;nt(null),qt(null);try{for(var d,h=[];s!==null&&s!==e;){try{var y=s[Ue]?.[r];y!=null&&(!s.disabled||t.target===s)&&y.call(s,t)}catch(S){d?h.push(S):d=S}if(t.cancelBubble)break;a++,s=a<i.length?i[a]:null}if(d){for(let S of h)queueMicrotask(()=>{throw S});throw d}}finally{t[Ue]=e,delete t.currentTarget,nt(c),qt(v)}}}var lo=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});function uo(t){return lo?.createHTML(t)??t}function fo(t){var e=rr("template");return e.innerHTML=uo(t.replaceAll("<!>","<!---->")),e.content}function fe(t,e){var n=q;n.nodes===null&&(n.nodes={start:t,end:e,a:null,t:null})}function ht(t,e){var n=(e&1)!==0,r=(e&2)!==0,i,s=!t.startsWith("<!>");return()=>{if(E)return fe(W,null),W;i===void 0&&(i=fo(s?t:"<!>"+t),n||(i=Dt(i)));var a=r||hi?document.importNode(i,!0):i.cloneNode(!0);if(n){var l=Dt(a),f=a.lastChild;fe(l,f)}else fe(a,a);return a}}function co(){if(E)return fe(W,null),W;var t=document.createDocumentFragment(),e=document.createComment(""),n=Y();return t.append(e,n),fe(e,n),t}function H(t,e){if(E){var n=q;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=W),wn();return}t!==null&&t.before(e)}var ho=["touchstart","touchmove"];function vo(t){return ho.includes(t)}function po(t){let e=0,n=ee(0),r;return()=>{sr()&&(_(n),or(()=>(e===0&&(r=ze(()=>t(()=>Oe(n)))),e+=1,()=>{kt(()=>{e-=1,e===0&&(r?.(),r=void 0,Oe(n))})})))}}var go=Xn|ge;function mo(t,e,n,r){new yo(t,e,n,r)}var ut=new WeakMap,Vn=new WeakMap,bt=new WeakMap,Ie=new WeakMap,U=new WeakMap,ft=new WeakMap,G=new WeakMap,at=new WeakMap,Bt=new WeakMap,ae=new WeakMap,te=new WeakMap,Ge=new WeakMap,Hn=new WeakMap,Fn=new WeakMap,Ht=new WeakMap,Or=new WeakMap,z=new WeakSet,yo=class{constructor(t,e,n,r){nr(this,z),T(this,"parent",void 0),T(this,"is_pending",!1),T(this,"transform_error",void 0),w(this,ut,void 0),w(this,Vn,E?W:null),w(this,bt,void 0),w(this,Ie,void 0),w(this,U,void 0),w(this,ft,null),w(this,G,null),w(this,at,null),w(this,Bt,null),w(this,ae,0),w(this,te,0),w(this,Ge,!1),w(this,Hn,new Set),w(this,Fn,new Set),w(this,Ht,null),w(this,Or,po(()=>(g(Ht,this,ee(o(ae,this))),()=>{g(Ht,this,null)}))),g(ut,this,t),g(bt,this,e),g(Ie,this,i=>{var s=q;s.b=this,s.f|=128,n(i)}),this.parent=q.b,this.transform_error=r??this.parent?.transform_error??(i=>i),g(U,this,ar(()=>{if(E){const i=o(Vn,this);wn();const s=i.data==="[!";if(i.data.startsWith("[?")){const a=JSON.parse(i.data.slice(2));k(z,this,bo).call(this,a)}else s?k(z,this,_o).call(this):k(z,this,wo).call(this)}else k(z,this,Li).call(this)},go)),E&&g(ut,this,W)}defer_effect(t){Qr(t,o(Hn,this),o(Fn,this))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!o(bt,this).pending}update_pending_count(t,e){k(z,this,Oi).call(this,t,e),g(ae,this,o(ae,this)+t),o(Ht,this)&&!o(Ge,this)&&(g(Ge,this,!0),kt(()=>{g(Ge,this,!1),o(Ht,this)&&de(o(Ht,this),o(ae,this))}))}get_effect_pending(){return o(Or,this).call(this),_(o(Ht,this))}error(t){if(!o(bt,this).onerror&&!o(bt,this).failed)throw t;$?.is_fork?(o(ft,this)&&$.skip_effect(o(ft,this)),o(G,this)&&$.skip_effect(o(G,this)),o(at,this)&&$.skip_effect(o(at,this)),$.oncommit(()=>{k(z,this,jr).call(this,t)})):k(z,this,jr).call(this,t)}};function wo(){try{g(ft,this,et(()=>o(Ie,this).call(this,o(ut,this))))}catch(t){this.error(t)}}function bo(t){const e=o(bt,this).failed,{reset:n,invoke_onerror:r}=k(z,this,Ti).call(this,t);kt(r),e&&g(at,this,et(()=>{e(o(ut,this),()=>t,()=>n)}))}function Ti(t){var e=!1,n=!1;const r=()=>{if(e){ps();return}e=!0,n&&Es(),o(at,this)!==null&&ie(o(at,this),()=>{g(at,this,null)}),k(z,this,fr).call(this,()=>{k(z,this,Li).call(this)})};return{reset:r,invoke_onerror:()=>{try{n=!0,o(bt,this).onerror?.(t,r),n=!1}catch(i){$t(i,o(U,this)&&o(U,this).parent)}}}}function _o(){const t=o(bt,this).pending;t&&(this.is_pending=!0,g(G,this,et(()=>t(o(ut,this)))),kt(()=>{var e=g(Bt,this,document.createDocumentFragment()),n=Y(),r=!1;if(e.append(n),g(ft,this,k(z,this,fr).call(this,()=>{try{return et(()=>o(Ie,this).call(this,n))}catch(i){try{this.error(i),r=!0}catch(s){$t(s,o(U,this).parent)}return null}})),o(ft,this)===null){g(Bt,this,null),r&&k(z,this,pn).call(this,$);return}o(te,this)===0&&(o(ut,this).before(e),g(Bt,this,null),ie(o(G,this),()=>{g(G,this,null)}),k(z,this,pn).call(this,$))}))}function Li(){try{if(this.is_pending=this.has_pending_snippet(),g(te,this,0),g(ae,this,0),g(ft,this,et(()=>{o(Ie,this).call(this,o(ut,this))})),o(te,this)>0){var t=g(Bt,this,document.createDocumentFragment());ur(o(ft,this),t);const e=o(bt,this).pending;g(G,this,et(()=>e(o(ut,this))))}else k(z,this,pn).call(this,$)}catch(e){this.error(e)}}function pn(t){this.is_pending=!1,t.transfer_effects(o(Hn,this),o(Fn,this))}function fr(t){var e=q,n=x,r=I;qt(o(U,this)),nt(o(U,this)),he(o(U,this).ctx);try{return re.ensure(),t()}finally{qt(e),nt(n),he(r)}}function Oi(t,e){if(!this.has_pending_snippet()){if(this.parent){var n;k(z,n=this.parent,Oi).call(n,t,e)}return}g(te,this,o(te,this)+t),o(te,this)===0&&(k(z,this,pn).call(this,e),o(G,this)&&ie(o(G,this),()=>{g(G,this,null)}),o(Bt,this)&&(o(ut,this).before(o(Bt,this)),g(Bt,this,null)))}function jr(t){o(ft,this)&&(V(o(ft,this)),g(ft,this,null)),o(G,this)&&(V(o(G,this)),g(G,this,null)),o(at,this)&&(V(o(at,this)),g(at,this,null)),E&&(J(o(Vn,this)),gs(),J(on()));let e=o(bt,this).failed;const n=r=>{const{reset:i,invoke_onerror:s}=k(z,this,Ti).call(this,r);s(),e&&g(at,this,k(z,this,fr).call(this,()=>{try{return et(()=>{var a=q;a.b=this,a.f|=128,e(o(ut,this),()=>r,()=>i)})}catch(a){return $t(a,o(U,this).parent),null}}))};kt(()=>{var r;try{r=this.transform_error(t)}catch(i){$t(i,o(U,this)&&o(U,this).parent);return}r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(n,i=>$t(i,o(U,this)&&o(U,this).parent)):n(r)})}function Wt(t,e){var n=e==null?"":typeof e=="object"?`${e}`:e;n!==(t[tn]??(t[tn]=t.nodeValue))&&(t[tn]=n,t.nodeValue=`${n}`)}function ji(t,e){return Pi(t,e)}function $o(t,e){Bn(),e.intro=e.intro??!1;const n=e.target,r=E,i=W;try{for(var s=Dt(n);s&&(s.nodeType!==8||s.data!=="[");)s=St(s);if(!s)throw ce;Lt(!0),J(s);const a=Pi(t,{...e,anchor:s});return Lt(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
|
|
2
|
+
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw a;return a!==ce&&console.warn("Failed to hydrate: ",a),e.recover===!1&&qs(),Bn(),pi(n),Lt(!1),ji(t,e)}finally{Lt(r),J(i)}}var Ze=new Map;function Pi(t,{target:e,anchor:n,props:r={},events:i,context:s,intro:a=!0,transformError:l}){Bn();var f=void 0,u=Zs(()=>{var c=n??e.appendChild(Y());mo(c,{pending:()=>{}},h=>{Kr({});var y=I;if(s&&(y.c=s),i&&(r.$$events=i),E&&fe(h,null),f=t(h,r)||Gr(),E&&(q.nodes.end=W,W===null||W.nodeType!==8||W.data!=="]"))throw yn(),ce;Ur()},l);var v=new Set,d=h=>{for(var y=0;y<h.length;y++){var S=h[y];if(!v.has(S)){v.add(S);var p=vo(S);for(const j of[e,document]){var m=Ze.get(j);m===void 0&&(m=new Map,Ze.set(j,m));var O=m.get(S);O===void 0?(j.addEventListener(S,Dn,{passive:p}),m.set(S,1)):m.set(S,O+1)}}}};return d(mn(so)),Lr.add(d),()=>{for(var h of v)for(const p of[e,document]){var y=Ze.get(p),S=y.get(h);--S==0?(p.removeEventListener(h,Dn),y.delete(h),y.size===0&&Ze.delete(p)):y.set(h,S)}Lr.delete(d),c!==n&&c.parentNode?.removeChild(c)}});return Jn.set(f,u),f}var Jn=new WeakMap;function ko(t,e){const n=Jn.get(t);return n?(Jn.delete(t),n(e)):Promise.resolve()}var Et=new WeakMap,Ct=new WeakMap,it=new WeakMap,$e=new WeakMap,Wn=new WeakMap,En=new WeakMap,Pr=new WeakMap,qo=class{constructor(t,e=!0){T(this,"anchor",void 0),w(this,Et,new Map),w(this,Ct,new Map),w(this,it,new Map),w(this,$e,new Set),w(this,Wn,!0),w(this,En,n=>{if(o(Et,this).has(n)){var r=o(Et,this).get(n),i=o(Ct,this).get(r);if(i)dn(i),o($e,this).delete(r);else{var s=o(it,this).get(r);s&&(dn(s.effect),o(Ct,this).set(r,s.effect),o(it,this).delete(r),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),i=s.effect)}for(const[a,l]of o(Et,this)){if(o(Et,this).delete(a),a===n)break;const f=o(it,this).get(l);f&&(V(f.effect),o(it,this).delete(l))}for(const[a,l]of o(Ct,this)){if(a===r||o($e,this).has(a))continue;const f=()=>{if(Array.from(o(Et,this).values()).includes(a)){var u=document.createDocumentFragment();ur(l,u),u.append(Y()),o(it,this).set(a,{effect:l,fragment:u})}else V(l);o($e,this).delete(a),o(Ct,this).delete(a)};o(Wn,this)||!i?(o($e,this).add(a),ie(l,f,!1)):f()}}}),w(this,Pr,n=>{o(Et,this).delete(n);const r=Array.from(o(Et,this).values());for(const[i,s]of o(it,this))r.includes(i)||(V(s.effect),o(it,this).delete(i))}),this.anchor=t,g(Wn,this,e)}ensure(t,e){var n=$,r=gi();if(e&&!o(Ct,this).has(t)&&!o(it,this).has(t))if(r){var i=document.createDocumentFragment(),s=Y();i.append(s),o(it,this).set(t,{effect:et(()=>e(s)),fragment:i})}else o(Ct,this).set(t,et(()=>e(this.anchor)));if(o(Et,this).set(n,t),r){for(const[a,l]of o(Ct,this))a===t?n.unskip_effect(l):n.skip_effect(l);for(const[a,l]of o(it,this))a===t?n.unskip_effect(l.effect):n.skip_effect(l.effect);n.oncommit(o(En,this)),n.ondiscard(o(Pr,this))}else E&&(this.anchor=W),o(En,this).call(this,n)}};function ke(t,e,n=!1){var r;E&&(r=W,wn());var i=new qo(t),s=n?Xn:0;function a(l,f){if(E){var u=Hr(r);if(l!==parseInt(u.substring(1))){var c=on();J(c),i.anchor=c,Lt(!1),i.ensure(l,f),Lt(!0);return}}i.ensure(l,f)}ar(()=>{var l=!1;e((f,u=0)=>{l=!0,a(u,f)}),l||a(-1,null)},s)}function So(t,e){return e}function xo(t,e,n){for(var r=[],i=e.length,s,a=e.length,l=0;l<i;l++){let v=e[l];ie(v,()=>{if(s){if(s.pending.delete(v),s.done.add(v),s.pending.size===0){var d=t.outrogroups;Kn(t,mn(s.done)),d.delete(s),d.size===0&&(t.outrogroups=null)}}else a-=1},!1)}if(a===0){var f=r.length===0&&n!==null&&t.pending.size===0;if(f){var u=n,c=u.parentNode;pi(c),c.append(u),t.items.clear()}Kn(t,e,!f)}else s={pending:new Set(e),done:new Set},(t.outrogroups??(t.outrogroups=new Set)).add(s)}function Kn(t,e,n=!0){var r;if(t.pending.size>0){r=new Set;for(const a of t.pending.values())for(const l of a)r.add(t.items.get(l).e)}for(var i=0;i<e.length;i++){var s=e[i];r?.has(s)?(s.f|=Ee,ur(s,document.createDocumentFragment())):V(e[i],n)}}var Qe;function Ar(t,e,n,r,i,s=null){var a=t,l=new Map;if((e&4)!==0){var f=t;a=E?J(Dt(f)):f.appendChild(Y())}E&&wn();var u=null,c=tr(()=>{var m=n();return Ir(m)?m:m==null?[]:mn(m)}),v,d=new Map,h=!0;function y(m){!(p.effect.f&16384)&&(p.pending.delete(m),p.fallback=u,Mo(p,v,a,e,r),u!==null&&(v.length===0?(u.f&33554432)===0?dn(u):(u.f^=Ee,We(u,null,a)):ie(u,()=>{u=null})))}function S(m){p.pending.delete(m)}var p={effect:ar(()=>{v=_(c);var m=v.length;let O=!1;E&&Hr(a)==="[!"!=(m===0)&&(a=on(),J(a),Lt(!1),O=!0);for(var j=new Set,M=$,b=gi(),P=0;P<m;P+=1){E&&W.nodeType===8&&W.data==="]"&&(a=W,O=!0,Lt(!1));var R=v[P],rt=r(R,P),B=h?null:l.get(rt);B?(B.v&&de(B.v,R),B.i&&de(B.i,P),b&&M.unskip_effect(B.e)):(B=Wo(l,h?a:Qe??(Qe=Y()),R,rt,P,i,e,n),h||(B.e.f|=Ee),l.set(rt,B)),j.add(rt)}if(m===0&&s&&!u&&(h?u=et(()=>s(a)):(u=et(()=>s(Qe??(Qe=Y()))),u.f|=Ee)),m>j.size&&ws("","",""),E&&m>0&&J(on()),!h)if(d.set(M,j),b){for(const[vt,Ve]of l)j.has(vt)||M.skip_effect(Ve.e);M.oncommit(y),M.ondiscard(S)}else y(M);O&&Lt(!0),_(c)}),flags:e,items:l,pending:d,outrogroups:null,fallback:u};h=!1,E&&(a=W)}function qe(t){for(;t!==null&&(t.f&32)===0;)t=t.next;return t}function Mo(t,e,n,r,i){var s=(r&8)!==0,a=e.length,l=t.items,f=qe(t.effect.first),u,c=null,v,d=[],h=[],y,S,p,m;if(s)for(m=0;m<a;m+=1)y=e[m],S=i(y,m),p=l.get(S).e,!(p.f&33554432)&&(p.nodes?.a?.measure(),(v??(v=new Set)).add(p));for(m=0;m<a;m+=1){if(y=e[m],S=i(y,m),p=l.get(S).e,t.outrogroups!==null)for(const vt of t.outrogroups)vt.pending.delete(p),vt.done.delete(p);if(p.f&8192&&(dn(p),s&&(p.nodes?.a?.unfix(),(v??(v=new Set)).delete(p))),(p.f&33554432)!==0)if(p.f^=Ee,p===f)We(p,null,n);else{var O=c?c.next:f;p===t.effect.last&&(t.effect.last=p.prev),p.prev&&(p.prev.next=p.next),p.next&&(p.next.prev=p.prev),zt(t,c,p),zt(t,p,O),We(p,O,n),c=p,d=[],h=[],f=qe(c.next);continue}if(p!==f){if(u!==void 0&&u.has(p)){if(d.length<h.length){var j=h[0],M;c=j.prev;var b=d[0],P=d[d.length-1];for(M=0;M<d.length;M+=1)We(d[M],j,n);for(M=0;M<h.length;M+=1)u.delete(h[M]);zt(t,b.prev,P.next),zt(t,c,b),zt(t,P,j),f=j,c=P,m-=1,d=[],h=[]}else u.delete(p),We(p,f,n),zt(t,p.prev,p.next),zt(t,p,c===null?t.effect.first:c.next),zt(t,c,p),c=p;continue}for(d=[],h=[];f!==null&&f!==p;)(u??(u=new Set)).add(f),h.push(f),f=qe(f.next);if(f===null)continue}!(p.f&33554432)&&d.push(p),c=p,f=qe(p.next)}if(t.outrogroups!==null){for(const vt of t.outrogroups)vt.pending.size===0&&(Kn(t,mn(vt.done)),t.outrogroups?.delete(vt));t.outrogroups.size===0&&(t.outrogroups=null)}if(f!==null||u!==void 0){var R=[];if(u!==void 0)for(p of u)!(p.f&8192)&&R.push(p);for(;f!==null;)!(f.f&8192)&&f!==t.fallback&&R.push(f),f=qe(f.next);var rt=R.length;if(rt>0){var B=(r&4)!==0&&a===0?n:null;if(s){for(m=0;m<rt;m+=1)R[m].nodes?.a?.measure();for(m=0;m<rt;m+=1)R[m].nodes?.a?.fix()}xo(t,R,B)}}s&&kt(()=>{if(v!==void 0)for(p of v)p.nodes?.a?.apply()})}function Wo(t,e,n,r,i,s,a,l){var f=(a&1)!==0?(a&16)===0?fi(n,!1,!1):ee(n):null,u=(a&2)!==0?ee(i):null;return{v:f,i:u,e:et(()=>(s(e,f??n,u??i,l),()=>{t.delete(r)}))}}function We(t,e,n){if(t.nodes)for(var r=t.nodes.start,i=t.nodes.end,s=e&&(e.f&33554432)===0?e.nodes.start:n;r!==null;){var a=St(r);if(s.before(r),r===i)return;r=a}}function zt(t,e,n){e===null?t.effect.first=n:e.next=n,n===null?t.effect.last=e:n.prev=e}function Eo(t,e){Qs(()=>{t=q?.parent?.nodes?.start??t;var n=t.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+e.hash)){const i=rr("style");i.id=e.hash,i.textContent=e.code,r.appendChild(i)}})}var To=Symbol("is custom element"),Lo=Symbol("is html"),Oo=vs?"link":"LINK";function jo(t){if(E){var e=!1,n=()=>{if(!e){if(e=!0,t.hasAttribute("value")){var r=t.value;Un(t,"value",null),t.value=r}if(t.hasAttribute("checked")){var i=t.checked;Un(t,"checked",null),t.checked=i}}};t[Te]=n,kt(n),Xr()}}function Un(t,e,n,r){var i=Po(t);E&&(i[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName===Oo)||i[e]!==(i[e]=n)&&(e==="loading"&&(t[fs]=n),n==null?t.removeAttribute(e):typeof n!="string"&&Ao(t).has(e)?t[e]=n:t.setAttribute(e,n))}function Po(t){return t[Nn]??(t[Nn]={[To]:t.nodeName.includes("-"),[Lo]:t.namespaceURI==="http://www.w3.org/1999/xhtml"})}var Nr=new Map;function Ao(t){var e=t.getAttribute("is")||t.nodeName,n=Nr.get(e);if(n)return n;Nr.set(e,n=new Set);for(var r,i=t,s=Element.prototype;s!==i;){r=ts(i);for(var a in r)r[a].set&&a!=="innerHTML"&&a!=="textContent"&&a!=="innerText"&&n.add(a);i=Rr(i)}return n}function No(t,e,n=e){var r=new WeakSet;Os(t,"input",async i=>{var s=i?t.defaultValue:t.value;if(s=Tn(t)?Ln(s):s,n(s),$!==null&&r.add($),await io(),s!==(s=e())){var a=t.selectionStart,l=t.selectionEnd,f=t.value.length;if(t.value=s??"",l!==null){var u=t.value.length;a===l&&l===f&&u>f?(t.selectionStart=u,t.selectionEnd=u):(t.selectionStart=a,t.selectionEnd=Math.min(l,u))}}}),(E&&t.defaultValue!==t.value||ze(e)==null&&t.value)&&(n(Tn(t)?Ln(t.value):t.value),$!==null&&r.add($)),or(()=>{var i=e();if(t===document.activeElement){var s=me?ln:$;if(r.has(s))return}Tn(t)&&i===Ln(t.value)||t.type==="date"&&!i&&!t.value||i!==t.value&&(t.value=i??"")})}function Tn(t){var e=t.type;return e==="number"||e==="range"}function Ln(t){return t===""?null:+t}var Ai,le=new WeakMap,gn=new WeakMap,On=new WeakMap,Cr=new WeakSet,Ni=class{constructor(t){nr(this,Cr),w(this,le,new WeakMap),w(this,gn,void 0),w(this,On,void 0),g(On,this,t)}observe(t,e){var n=o(le,this).get(t)||new Set;return n.add(e),o(le,this).set(t,n),k(Cr,this,Co).call(this).observe(t,o(On,this)),()=>{var r=o(le,this).get(t);r.delete(e),r.size===0&&(o(le,this).delete(t),o(gn,this).unobserve(t))}}};Ai=Ni;function Co(){return o(gn,this)??g(gn,this,new ResizeObserver(t=>{for(var e of t){Ai.entries.set(e.target,e);for(var n of o(le,this).get(e.target)||[])n(e)}}))}T(Ni,"entries",new WeakMap);var Xe=!1;function zo(t){var e=Xe;try{return Xe=!1,[t(),Xe]}finally{Xe=e}}function Tt(t,e,n,r){var i=!bn||(n&2)!==0,s=(n&8)!==0,a=(n&16)!==0,l=r,f=!0,u=void 0,c=()=>a&&i?(u??(u=Ae(r)),_(u)):(f&&(f=!1,l=a?ze(r):r),l);let v;if(s){var d=Ye in t||Vr in t;v=Qt(t,e)?.set??(d&&e in t?M=>t[e]=M:void 0)}var h,y=!1;s?[h,y]=zo(()=>t[e]):h=t[e],h===void 0&&r!==void 0&&(h=c(),v&&(i&&Ss(e),v(h)));var S;if(i?S=()=>{var M=t[e];return M===void 0?c():(f=!0,M)}:S=()=>{var M=t[e];return M!==void 0&&(l=void 0),M===void 0?l:M},i&&(n&4)===0)return S;if(v){var p=t.$$legacy;return(function(M,b){return arguments.length>0?((!i||!b||p||y)&&v(b?S():M),M):S()})}var m=!1,O=((n&1)!==0?Ae:tr)(()=>(m=!1,S()));s&&_(O);var j=q;return(function(M,b){if(arguments.length>0){const P=b?_(O):i&&s?Gt(M):M;return X(O,P),m=!0,l!==void 0&&(l=P),M}return jt&&m||(j.f&16384)!==0?O.v:_(O)})}function Io(t){return new Ro(t)}var Ft=new WeakMap,pt=new WeakMap,Ro=class{constructor(t){w(this,Ft,void 0),w(this,pt,void 0);var e=new Map,n=(i,s)=>{var a=fi(s,!1,!1);return e.set(i,a),a};const r=new Proxy({...t.props||{},$$events:{}},{get(i,s){return _(e.get(s)??n(s,Reflect.get(i,s)))},has(i,s){return s===Vr?!0:(_(e.get(s)??n(s,Reflect.get(i,s))),Reflect.has(i,s))},set(i,s,a){return X(e.get(s)??n(s,a),a),Reflect.set(i,s,a)}});g(pt,this,(t.hydrate?$o:ji)(t.component,{target:t.target,anchor:t.anchor,props:r,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError})),(!t?.props?.$$host||t.sync===!1)&&st(),g(Ft,this,r.$$events);for(const i of Object.keys(o(pt,this)))i==="$set"||i==="$destroy"||i==="$on"||je(this,i,{get(){return o(pt,this)[i]},set(s){o(pt,this)[i]=s},enumerable:!0});o(pt,this).$set=i=>{Object.assign(r,i)},o(pt,this).$destroy=()=>{ko(o(pt,this))}}$set(t){o(pt,this).$set(t)}$on(t,e){o(Ft,this)[t]=o(Ft,this)[t]||[];const n=(...r)=>e.call(this,...r);return o(Ft,this)[t].push(n),()=>{o(Ft,this)[t]=o(Ft,this)[t].filter(r=>r!==n)}}$destroy(){o(pt,this).$destroy()}},Ci;typeof HTMLElement=="function"&&(Ci=class extends HTMLElement{constructor(t,e,n){super(),T(this,"$$ctor",void 0),T(this,"$$s",void 0),T(this,"$$c",void 0),T(this,"$$cn",!1),T(this,"$$d",{}),T(this,"$$r",!1),T(this,"$$p_d",{}),T(this,"$$l",{}),T(this,"$$l_u",new Map),T(this,"$$me",void 0),T(this,"$$shadowRoot",null),this.$$ctor=t,this.$$s=e,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(t,e,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const r=this.$$c.$on(t,e);this.$$l_u.set(e,r)}super.addEventListener(t,e,n)}removeEventListener(t,e,n){if(super.removeEventListener(t,e,n),this.$$c){const r=this.$$l_u.get(e);r&&(r(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(r){return i=>{const s=rr("slot");r!=="default"&&(s.name=r),H(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},n=Bo(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=t(r),e.default=!0):e[r]=t(r));for(const r of this.attributes){const i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=nn(i,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=Io({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=Gs(()=>{or(()=>{this.$$r=!0;for(const r of rn(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=nn(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(const r in this.$$l)for(const i of this.$$l[r]){const s=this.$$c.$on(r,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(t,e,n){this.$$r||(t=this.$$g_p(t),this.$$d[t]=nn(t,n,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return rn(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function nn(t,e,n,r){const i=n[t]?.type;if(e=i==="Boolean"&&typeof e!="boolean"?e!=null:e,!r||!n[t])return e;if(r==="toAttribute")switch(i){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Bo(t){const e={};return t.childNodes.forEach(n=>{e[n.slot||"default"]=!0}),e}function Do(t,e,n,r,i,s){let a=class extends Ci{constructor(){super(t,n,i),this.$$p_d=e}static get observedAttributes(){return rn(e).map(l=>(e[l].attribute||l).toLowerCase())}};return rn(e).forEach(l=>{je(a.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(f){f=nn(l,f,e),this.$$d[l]=f;var u=this.$$c;u&&(Qt(u,l)?.get?u[l]=f:u.$set({[l]:f}))}})}),r.forEach(l=>{je(a.prototype,l,{get(){return this.$$c?.[l]}})}),s&&(a=s(a)),t.element=a,a}function Vo(t,e=!1){if(typeof t=="boolean")return t;if(t==null)return e;const n=String(t).trim().toLowerCase();return n===""?e:["false","0","off","no"].includes(n)?!1:["true","1","on","yes"].includes(n)?!0:!!n}function Ho(t){return t!==null&&Vo(t,!0)}var Fo=(t,e)=>{const n=t.$$p_d;return n?Object.entries(n).some(([r,i])=>i.type==="Boolean"&&(i.attribute??r.toLowerCase())===e):!1};function Jo(t){const e=t.prototype.attributeChangedCallback;return class extends t{attributeChangedCallback(n,r,i){const s=i!==null&&Fo(this,n)&&!Ho(i)?null:i;e?.call(this,n,r,s)}}}function Gn(t){return t.replace(/\s+/gu," ").trim().replace(/^[^\p{L}\p{N}]+/u,"").replace(/[^\p{L}\p{N}]+$/u,"")}function Ko(t){return!t||t.length>80?!1:t.split(" ").length<=4}function Uo(t,e){if(!t||typeof t!="object")return{status:"error",reason:`The ${e.serviceLabel} returned no data.`};const n=t;let r=null;for(const s of e.keys)if(Array.isArray(n[s])){r=n[s];break}if(!r)return{status:"error",reason:`The ${e.serviceLabel} response was unreadable.`};const i=r.map(e.toItem).filter(s=>s!==null);return i.length>0?{status:"ok",items:i}:{status:"empty"}}function Go(t){const e=t.fetchImpl??globalThis.fetch;return async(n,r)=>{if(typeof e!="function")return{status:"error",reason:"No fetch implementation is available."};let i={"content-type":"application/json"};try{const s=await t.headers?.();s&&(i={...i,...s})}catch{return{status:"error",reason:`The ${t.serviceLabel} could not be authorized.`}}try{const s=await e(t.endpoint,{method:"POST",headers:i,credentials:t.credentials??"same-origin",body:JSON.stringify(n),signal:r});return s.ok?t.readResponse(await s.json()):{status:"error",reason:`The ${t.serviceLabel} is unavailable (${s.status}).`}}catch(s){return s instanceof DOMException&&s.name==="AbortError"?{status:"empty"}:{status:"error",reason:`The ${t.serviceLabel} could not be reached.`}}}}var Zo="Look up a single word or short phrase.",Se=new WeakMap,jn=new WeakMap,Pn=new WeakMap,Qo=class{constructor(t){T(this,"options",void 0),w(this,Se,null),w(this,jn,""),w(this,Pn,null),this.options=t}get searchedFor(){return o(jn,this)}syncConfigured(t){const e=this.options.resolver();if(!e&&t.kind==="idle"){this.options.onState({kind:"unconfigured"});return}e&&t.kind==="unconfigured"&&this.options.onState({kind:"idle"})}syncRequestedTerm(t){const e=Gn(t.term);if(!t.visible||!e)return!1;const n=t.requestId===void 0?`term:${e}`:`id:${t.requestId}`;return n===o(Pn,this)?!1:(g(Pn,this,n),this.run(e),!0)}async run(t){const e=this.options.resolver();if(!e){this.options.onState({kind:"unconfigured"});return}const n=Gn(t);if(!Ko(n)){this.options.onState({kind:"error",term:n,reason:Zo});return}o(Se,this)?.abort();const r=new AbortController;g(Se,this,r),g(jn,this,n),this.options.onState({kind:"searching",term:n});const i=await e({keyword:n,language:this.options.language?.()||void 0,max:this.options.max},r.signal);if(r===o(Se,this)){if(g(Se,this,null),i.status==="ok"){this.options.onState({kind:"results",term:n,items:i.items});return}if(i.status==="empty"){this.options.onState({kind:"empty",term:n});return}this.options.onState({kind:"error",term:n,reason:i.reason})}}};function Xo(t,e){return t.kind==="searching"?`Looking up ${t.term}`:t.kind==="results"?`${e.countLabel(t.items.length)} for ${t.term}`:t.kind==="empty"?e.emptyLabel(t.term):""}var zi="dictionary";function Yo(t){if(!t||typeof t!="object")return null;const e=t,n=typeof e.word=="string"?e.word.trim():"";if(!n)return null;const r=Array.isArray(e.senses)?e.senses:[],i=[];for(const s of r){if(!s||typeof s!="object")continue;const a=s,l=typeof a.definition=="string"?a.definition.trim():"";l&&i.push({definition:l,partOfSpeech:typeof a.partOfSpeech=="string"?a.partOfSpeech:void 0,example:typeof a.example=="string"?a.example:void 0})}return i.length===0?null:{word:n,pronunciation:typeof e.pronunciation=="string"?e.pronunciation:void 0,senses:i}}function ta(t){return Uo(t,{serviceLabel:zi,keys:["entries"],toItem:Yo})}function ea(t){return Go({...t,serviceLabel:zi,readResponse:ta})}var na=ht('<p class="pie-tool-dictionary__notice svelte-1qfqsgt">No dictionary service is configured for this assessment.</p>'),ra=ht('<p class="pie-tool-dictionary__notice svelte-1qfqsgt">Type a word to look it up.</p>'),zr=ht('<p class="pie-tool-dictionary__notice svelte-1qfqsgt"> </p>'),ia=ht('<p class="pie-tool-dictionary__error svelte-1qfqsgt" role="alert"> </p>'),sa=ht('<span class="pie-tool-dictionary__pronunciation svelte-1qfqsgt"> </span>'),oa=ht('<span class="pie-tool-dictionary__pos svelte-1qfqsgt"> </span>'),aa=ht('<span class="pie-tool-dictionary__example svelte-1qfqsgt"> </span>'),la=ht('<li class="pie-tool-dictionary__sense svelte-1qfqsgt"><!> <span class="pie-tool-dictionary__definition"> </span> <!></li>'),ua=ht('<li class="pie-tool-dictionary__entry svelte-1qfqsgt"><p class="pie-tool-dictionary__word svelte-1qfqsgt"> <!></p> <ol class="pie-tool-dictionary__senses svelte-1qfqsgt"></ol></li>'),fa=ht('<ul class="pie-tool-dictionary__entries svelte-1qfqsgt"></ul>'),ca=ht('<div class="pie-tool-dictionary svelte-1qfqsgt" role="dialog" aria-label="Dictionary"><form class="pie-tool-dictionary__search svelte-1qfqsgt"><label class="pie-tool-dictionary__label svelte-1qfqsgt" for="pie-tool-dictionary-term">Word or phrase</label> <div class="pie-tool-dictionary__row svelte-1qfqsgt"><input id="pie-tool-dictionary-term" class="pie-tool-dictionary__input svelte-1qfqsgt" type="text" autocomplete="off" spellcheck="false"/> <button class="pie-tool-dictionary__submit svelte-1qfqsgt" type="submit">Look up</button></div></form> <div class="pie-tool-dictionary__status svelte-1qfqsgt" role="status" aria-live="polite"> </div> <div class="pie-tool-dictionary__body svelte-1qfqsgt"><!></div></div>'),ha={hash:"svelte-1qfqsgt",code:`.pie-tool-dictionary.svelte-1qfqsgt {display:flex;flex-direction:column;gap:0.5rem;height:100%;min-height:0;padding:0.75rem;box-sizing:border-box;color:var(--pie-text, #1f2937);background:var(--pie-background, #fff);font-size:0.95rem;}.pie-tool-dictionary__search.svelte-1qfqsgt {display:flex;flex-direction:column;gap:0.25rem;}.pie-tool-dictionary__label.svelte-1qfqsgt {font-size:0.8rem;font-weight:600;}.pie-tool-dictionary__row.svelte-1qfqsgt {display:flex;gap:0.5rem;}.pie-tool-dictionary__input.svelte-1qfqsgt {flex:1 1 auto;min-width:0;padding:0.35rem 0.5rem;border:1px solid var(--pie-border-light, #e5e7eb);border-radius:0.375rem;background:var(--pie-background, #fff);color:inherit;font:inherit;}.pie-tool-dictionary__submit.svelte-1qfqsgt {flex:0 0 auto;padding:0.35rem 0.75rem;border:1px solid var(--pie-border-light, #e5e7eb);border-radius:0.375rem;background:var(--pie-background-light, #f9fafb);color:inherit;font:inherit;cursor:pointer;}.pie-tool-dictionary__submit.svelte-1qfqsgt:disabled {opacity:0.5;cursor:not-allowed;}
|
|
3
|
+
|
|
4
|
+
/* Visible focus is not optional: this panel is the keyboard route into the tool. */.pie-tool-dictionary__input.svelte-1qfqsgt:focus-visible,
|
|
5
|
+
.pie-tool-dictionary__submit.svelte-1qfqsgt:focus-visible {outline:2px solid var(--pie-button-focus-outline, #2563eb);outline-offset:2px;}.pie-tool-dictionary__status.svelte-1qfqsgt {position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;}.pie-tool-dictionary__body.svelte-1qfqsgt {flex:1 1 auto;min-height:0;overflow-y:auto;}.pie-tool-dictionary__notice.svelte-1qfqsgt,
|
|
6
|
+
.pie-tool-dictionary__error.svelte-1qfqsgt {margin:0.25rem 0;}.pie-tool-dictionary__entries.svelte-1qfqsgt,
|
|
7
|
+
.pie-tool-dictionary__senses.svelte-1qfqsgt {margin:0;padding:0 0 0 1.1rem;}.pie-tool-dictionary__entries.svelte-1qfqsgt {list-style:none;padding-left:0;}.pie-tool-dictionary__entry.svelte-1qfqsgt + .pie-tool-dictionary__entry:where(.svelte-1qfqsgt) {margin-top:0.75rem;padding-top:0.75rem;border-top:1px solid var(--pie-border-light, #e5e7eb);}.pie-tool-dictionary__word.svelte-1qfqsgt {margin:0 0 0.25rem;font-weight:700;}.pie-tool-dictionary__pronunciation.svelte-1qfqsgt {margin-left:0.4rem;font-weight:400;opacity:0.75;}.pie-tool-dictionary__sense.svelte-1qfqsgt {margin-bottom:0.35rem;}.pie-tool-dictionary__pos.svelte-1qfqsgt {margin-right:0.3rem;font-style:italic;opacity:0.8;}.pie-tool-dictionary__example.svelte-1qfqsgt {display:block;opacity:0.8;}`};function va(t,e){Kr(e,!0),Eo(t,ha);let n=Tt(e,"visible",7,!1),r=Tt(e,"toolId",7,"dictionary"),i=Tt(e,"term",7,""),s=Tt(e,"termRequestId",7,void 0),a=Tt(e,"endpoint",7,""),l=Tt(e,"language",7,""),f=Tt(e,"lookup",7,void 0),u=Tt(e,"headers",7,void 0),c=Tt(e,"credentials",7,void 0),v=mt(""),d=mt(Gt({kind:"idle"}));const h=$r(()=>f()??(a()?ea({endpoint:a(),headers:u(),credentials:c()}):null)),y=new Qo({resolver:()=>_(h),max:6,language:()=>l(),onState:b=>{X(d,b,!0)}});Mr(()=>{_(h),ze(()=>y.syncConfigured(_(d)))}),Mr(()=>{const b=Gn(i()),P=s(),R=n();ze(()=>{y.syncRequestedTerm({term:b,requestId:P,visible:R})&&X(v,b,!0)})});function S(b){b.preventDefault(),y.run(_(v))}const p=$r(()=>Xo(_(d),{countLabel:b=>`${b} ${b===1?"entry":"entries"}`,emptyLabel:b=>`No dictionary entry for ${b}`}));var m={get visible(){return n()},set visible(b=!1){n(b),st()},get toolId(){return r()},set toolId(b="dictionary"){r(b),st()},get term(){return i()},set term(b=""){i(b),st()},get termRequestId(){return s()},set termRequestId(b=void 0){s(b),st()},get endpoint(){return a()},set endpoint(b=""){a(b),st()},get language(){return l()},set language(b=""){l(b),st()},get lookup(){return f()},set lookup(b=void 0){f(b),st()},get headers(){return u()},set headers(b=void 0){u(b),st()},get credentials(){return c()},set credentials(b=void 0){c(b),st()}},O=co(),j=Fs(O),M=b=>{var P=ca(),R=It(P),rt=Nt(It(R),2),B=It(rt);jo(B);var vt=Nt(B,2);gt(rt),gt(R);var Ve=Nt(R,2),Ii=At(Ve,!0),cr=Nt(Ve,2),Ri=It(cr),Bi=L=>{H(L,na())},Di=L=>{H(L,ra())},Vi=L=>{var Z=zr(),dt=At(Z);Mt(()=>Wt(dt,`Looking up “${_(d).term??""}”…`)),H(L,Z)},Hi=L=>{var Z=zr(),dt=At(Z);Mt(()=>Wt(dt,`No entry for “${_(d).term??""}”.`)),H(L,Z)},Fi=L=>{var Z=ia(),dt=At(Z,!0);Mt(()=>Wt(dt,_(d).reason)),H(L,Z)},Ji=L=>{var Z=fa();Ar(Z,21,()=>_(d).items,dt=>dt.word+dt.senses.length,(dt,He)=>{var _n=ua(),$n=It(_n),hr=It($n),Ki=Nt(hr),Ui=we=>{var Pt=sa(),be=At(Pt,!0);Mt(()=>Wt(be,_(He).pronunciation)),H(we,Pt)};ke(Ki,we=>{_(He).pronunciation&&we(Ui)}),gt($n);var vr=Nt($n,2);Ar(vr,21,()=>_(He).senses,So,(we,Pt)=>{var be=la(),dr=It(be),Gi=Vt=>{var _e=oa(),kn=At(_e,!0);Mt(()=>Wt(kn,_(Pt).partOfSpeech)),H(Vt,_e)};ke(dr,Vt=>{_(Pt).partOfSpeech&&Vt(Gi)});var pr=Nt(dr,2),Zi=At(pr,!0),Qi=Nt(pr,2),Xi=Vt=>{var _e=aa(),kn=At(_e);Mt(()=>Wt(kn,`“${_(Pt).example??""}”`)),H(Vt,_e)};ke(Qi,Vt=>{_(Pt).example&&Vt(Xi)}),gt(be),Mt(()=>Wt(Zi,_(Pt).definition)),H(we,be)}),gt(vr),gt(_n),Mt(()=>Wt(hr,`${_(He).word??""} `)),H(dt,_n)}),gt(Z),H(L,Z)};ke(Ri,L=>{_(d).kind==="unconfigured"?L(Bi):_(d).kind==="idle"?L(Di,1):_(d).kind==="searching"?L(Vi,2):_(d).kind==="empty"?L(Hi,3):_(d).kind==="error"?L(Fi,4):L(Ji,-1)}),gt(cr),gt(P),Mt(L=>{Un(P,"data-pie-tool-id",r()),B.disabled=_(d).kind==="unconfigured",vt.disabled=L,Wt(Ii,_(p))},[()=>_(d).kind==="unconfigured"||!_(v).trim()]),ao("submit",R,S),No(B,()=>_(v),L=>X(v,L)),H(b,P)};return ke(j,b=>{n()&&b(M)}),H(t,O),Ur(m)}da("pie-tool-dictionary",Do(va,{visible:{attribute:"visible",type:"Boolean"},toolId:{attribute:"tool-id",type:"String"},term:{attribute:"term",type:"String"},endpoint:{attribute:"endpoint",type:"String"},language:{attribute:"language",type:"String"},termRequestId:{},lookup:{},headers:{},credentials:{}},[],[],{mode:"open"},Jo));function da(t,e){customElements.get(t)||customElements.define(t,e)}export{va as default};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import{g as kl,n as xl}from"./tool-host-contract-b93b482c.js";import{i as Ml}from"./provider-4c704118.js";if(typeof window<"u"){var Nr,Ar;((Nr=(Ar=window).__svelte??(Ar.__svelte={})).v??(Nr.v=new Set)).add("5")}var Me={},Q=Symbol("uninitialized"),ui=Array.isArray,Sl=Array.prototype.indexOf,tr=Array.prototype.includes,Cn=Array.from,mn=Object.keys,Je=Object.defineProperty,fe=Object.getOwnPropertyDescriptor,Wl=Object.getOwnPropertyDescriptors,El=Object.prototype,Pl=Array.prototype,fi=Object.getPrototypeOf,Hr=Object.isExtensible,jl=()=>{};function Cl(t){for(var e=0;e<t.length;e++)t[e]()}function ci(){var t,e;return{promise:new Promise((n,r)=>{t=n,e=r}),resolve:t,reject:e}}function Ge(t){"@babel/helpers - typeof";return Ge=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ge(t)}function Il(t,e){if(Ge(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ge(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ll(t){var e=Il(t,"string");return Ge(e)=="symbol"?e:e+""}function H(t,e,n){return(e=Ll(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var pt=1024,Mt=2048,pe=4096,gr=8192,zl=16384,mr=32768,Rr=1<<25,wr=65536,je=1<<19,Tl=1<<20,Re=1<<25,Fr=1<<21,Ol=1<<22,wn=1<<23,Fe=Symbol("$state"),hi=Symbol("component"),vi=Symbol("legacy props"),Dl=Symbol(""),er=Symbol("attributes"),nr=Symbol("class"),rr=Symbol("style"),dn=Symbol("text"),Be=Symbol("form reset"),Ye=new class extends Error{constructor(...t){super(...t),H(this,"name","StaleReactionError"),H(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},Nl=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml");function Al(){console.warn("https://svelte.dev/e/derived_inert")}function In(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function Hl(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}var L=!1;function Vt(t){L=t}var T;function it(t){if(t===null)throw In(),Me;return T=t}function Ln(){return it(Nt(T))}function ht(t){if(L){if(Nt(T)!==null)throw In(),Me;T=t}}function Rl(t=1){if(L){for(var e=t,n=T;e--;)n=Nt(n);T=n}}function yn(t=!0){for(var e=0,n=T;;){if(n.nodeType===8){var r=n.data;if(r==="]"){if(e===0)return n;e-=1}else(r==="["||r==="[!"||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(e+=1)}var i=Nt(n);t&&n.remove(),n=i}}function di(t){if(!t||t.nodeType!==8)throw In(),Me;return t.data}function pi(t){return t===this.v}function Fl(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function gi(t){return!Fl(t,this.v)}function Bl(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Vl(t,e,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function ql(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Jl(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Gl(t){throw new Error("https://svelte.dev/e/effect_orphan")}function Ql(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Xl(){throw new Error("https://svelte.dev/e/hydration_failed")}function Zl(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Kl(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Yl(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Ul(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function to(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}var Ce=!1,zn=!1,V=null;function Se(t){V=t}function mi(t,e=!1,n){V={p:V,i:!1,c:null,e:null,s:t,x:null,r:j,l:zn&&!e?{s:null,u:null,$:[]}:null}}function wi(t){var e=V,n=e.e;if(n!==null){e.e=null;for(var r of n)Ri(r)}return t!==void 0&&(e.x=t),e.i=!0,V=e.p,yr(t)}function yr(t={}){return Je(t,hi,{value:!0}),t}function Ue(){return!zn||V!==null&&V.l===null}var ae=[];function yi(){var t=ae;ae=[],Cl(t)}function Ot(t){if(ae.length===0&&!Ve){var e=ae;queueMicrotask(()=>{e===ae&&yi()})}ae.push(t)}function eo(){for(;ae.length>0;)yi()}var no=~(Mt|pe|pt);function q(t,e){t.f=t.f&no|e}function _r(t){(t.f&512)!==0||t.deps===null?q(t,pt):q(t,pe)}function _i(t,e,n){(t.f&2048)!==0?e.add(t):t.f&4096&&n.add(t),q(t,pt)}var Br=!1;function bi(){Br||(Br=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{if(!t.defaultPrevented)for(const e of t.target.elements)e[Be]?.()})},{capture:!0}))}function Ie(t){var e=I,n=j;mt(null),Dt(null);try{return t()}finally{mt(e),Dt(n)}}function ro(t,e,n,r=n){t.addEventListener(e,()=>Ie(n));const i=t[Be];i?t[Be]=()=>{i(),r(!0)}:t[Be]=()=>r(!0),bi()}function io(t,e,n,r){const i=Ue()?Qe:br;var l=t.filter(p=>!p.settled),o=e.map(i);if(n.length===0&&l.length===0){r(o);return}var a=j,u=lo(),f=l.length===1?l[0].promise:l.length>1?Promise.all(l.map(p=>p.promise)):null;function h(p){if((a.f&16384)===0){u();try{r([...o,...p])}catch(m){Tt(m,a)}_n()}}var d=$i();if(n.length===0){f.then(()=>h([])).finally(d);return}function v(){Promise.all(n.map(p=>oo(p))).then(h).catch(p=>Tt(p,a)).finally(d)}f?f.then(()=>{u(),v(),_n()}):v()}function lo(){var t=j,e=I,n=V,r=x;return function(i=!0){Dt(t),mt(e),Se(n),i&&!(t.f&16384)&&(r?.activate(),r?.apply())}}function _n(t=!0){Dt(null),mt(null),Se(null),t&&x?.deactivate()}function $i(){var t=j,e=t.b,n=x,r=!!e?.is_rendered();return e?.update_pending_count(1,n),n.increment(r,t),()=>{e?.update_pending_count(-1,n),n.decrement(r,t)}}function Qe(t){var e=2|Mt;return j!==null&&(j.f|=je),{ctx:V,deps:null,effects:null,equals:pi,f:e,fn:t,reactions:null,rv:0,v:Q,wv:0,parent:j,ac:null}}var Ne=Symbol("obsolete");function oo(t,e,n){let r=j;r===null&&Bl();var i=void 0,l=de(Q),o=!I,a=new Set;return ko(()=>{var u=j,f=ci();i=f.promise;try{Promise.resolve(t()).then(f.resolve,p=>{p!==Ye&&f.reject(p)}).finally(_n)}catch(p){f.reject(p),_n()}var h=x;if(o){if((u.f&32768)!==0)var d=$i();if(r.b?.is_rendered())h.async_deriveds.get(u)?.reject(Ne);else for(const p of a.values())p.reject(Ne);a.add(f),h.async_deriveds.set(u,f)}const v=(p,m=void 0)=>{d?.(),a.delete(f),m!==Ne&&(h.activate(),m?(l.f|=wn,Ee(l,m)):(l.f&8388608&&(l.f^=wn),Ee(l,p)),h.deactivate())};f.promise.then(v,p=>v(null,p||"unknown"))}),Hi(()=>{for(const u of a)u.reject(Ne)}),new Promise(u=>{function f(h){function d(){h===i?u(l):f(i)}h.then(d,d)}f(i)})}function ee(t){const e=Qe(t);return Gi(e),e}function br(t){const e=Qe(t);return e.equals=gi,e}function so(t){var e=t.effects;if(e!==null){t.effects=null;for(var n=0;n<e.length;n+=1)nt(e[n])}}function $r(t){var e,n=j,r=t.parent;if(!Gt&&r!==null&&t.v!==Q&&(r.f&24576)!==0)return Al(),t.v;Dt(r);try{so(t),e=Ki(t)}finally{Dt(n)}return e}function ki(t){var e=$r(t);if(!t.equals(e)&&(t.wv=Xi(),(!x?.is_fork||t.deps===null)&&(x!==null?(x.capture(t,e,!0),bn?.capture(t,e,!0)):t.v=e,t.deps===null))){q(t,pt);return}Gt||(et!==null?(Sr()||x?.is_fork)&&et.set(t,e):_r(t))}function ao(t){if(t.effects!==null)for(const e of t.effects)(e.teardown||e.ac)&&(e.teardown?.(),e.ac!==null&&Ie(()=>{e.ac.abort(Ye),e.ac=null}),e.fn!==null&&(e.teardown=jl),Ze(e,0),Er(e))}function xi(t){if(t.effects!==null)for(const e of t.effects)e.teardown&&e.fn!==null&&Pe(e)}function Mi(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function kr(t,e){Mi(t,e),e.add(t)}function k(t,e,n){Mi(t,e),e.set(t,n)}function E(t,e,n){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}function b(t,e,n){return t.set(E(t,e),n),n}function s(t,e){return t.get(E(t,e))}var Si,ir=null,ye=null,x=null,bn=null,et=null,lr=null,Ve=!1,An=!1,Xe=null,$n=null,Wi=0,uo=1,or=new WeakMap,ce=new WeakMap,ke=new WeakMap,kn=new WeakMap,on=new WeakMap,_e=new WeakMap,oe=new WeakMap,Ae=new WeakMap,It=new WeakMap,Vr=new WeakMap,We=new WeakMap,qt=new WeakMap,Zt=new WeakMap,Hn=new WeakMap,sn=new WeakMap,G=new WeakSet,ge=class Ei{constructor(){kr(this,G),H(this,"id",uo++),k(this,or,!1),H(this,"linked",!0),k(this,ce,null),k(this,ke,null),H(this,"async_deriveds",new Map),H(this,"current",new Map),H(this,"previous",new Map),k(this,kn,new Set),k(this,on,new Set),k(this,_e,0),k(this,oe,new Map),k(this,Ae,null),k(this,It,[]),k(this,Vr,[]),k(this,We,new Set),k(this,qt,new Set),k(this,Zt,new Map),k(this,Hn,new Set),H(this,"is_fork",!1),k(this,sn,!1),ye===null?ir=ye=this:(b(ke,ye,this),b(ce,this,ye)),ye=this}skip_effect(e){s(Zt,this).has(e)||s(Zt,this).set(e,{d:[],m:[]}),s(Hn,this).delete(e)}unskip_effect(e,n=r=>this.schedule(r)){var r=s(Zt,this).get(e);if(r){s(Zt,this).delete(e);for(var i of r.d)q(i,Mt),n(i);for(i of r.m)q(i,pe),n(i)}s(Hn,this).add(e)}capture(e,n,r=!1){e.v!==Q&&!this.previous.has(e)&&this.previous.set(e,e.v),!(e.f&8388608)&&(this.current.set(e,[n,r]),et?.set(e,n)),this.is_fork||(e.v=n)}activate(){x=this}deactivate(){x=null,et=null}flush(){try{An=!0,x=this,E(G,this,xn).call(this)}finally{Wi=0,lr=null,Xe=null,$n=null,An=!1,x=null,et=null,zt.clear()}}discard(){for(const e of s(on,this))e(this);s(on,this).clear();for(const e of this.async_deriveds.values())e.reject(Ne);E(G,this,Mn).call(this),s(Ae,this)?.resolve()}register_created_effect(e){s(Vr,this).push(e)}increment(e,n){if(b(_e,this,s(_e,this)+1),e){let r=s(oe,this).get(n)??0;s(oe,this).set(n,r+1)}}decrement(e,n){if(b(_e,this,s(_e,this)-1),e){let r=s(oe,this).get(n)??0;r===1?s(oe,this).delete(n):s(oe,this).set(n,r-1)}s(sn,this)||(b(sn,this,!0),Ot(()=>{b(sn,this,!1),this.linked&&this.flush()}))}transfer_effects(e,n){for(const r of e)s(We,this).add(r);for(const r of n)s(qt,this).add(r);e.clear(),n.clear()}oncommit(e){s(kn,this).add(e)}ondiscard(e){s(on,this).add(e)}settled(){return(s(Ae,this)??b(Ae,this,ci())).promise}static ensure(){if(x===null){const e=x=new Ei;!An&&!Ve&&Ot(()=>{s(or,e)||e.flush()})}return x}apply(){if(!Ce||!this.is_fork&&s(ce,this)===null&&s(ke,this)===null){et=null;return}et=new Map;for(const[n,[r]]of this.current)et.set(n,r);for(let n=ir;n!==null;n=s(ke,n))if(!(n===this||n.is_fork)){var e=!1;if(n.id<this.id){for(const[r,[,i]]of n.current)if(!i&&this.current.has(r)){e=!0;break}}if(!e)for(const[r,i]of n.previous)et.has(r)||et.set(r,i)}}schedule(e){if(lr=e,e.b?.is_pending&&(e.f&16777228)!==0&&(e.f&32768)===0){e.b.defer_effect(e);return}s(It,this).push(e)}};Si=ge;function qr(){if(this.is_fork)return!0;for(const n of s(oe,this).keys()){for(var t=n,e=!1;t.parent!==null;){if(s(Zt,this).has(t)){e=!0;break}t=t.parent}if(!e)return!0}return!1}function fo(){var t=[];for(const i of s(It,this))if(!((i.f&16384)!==0||(i.f&6144)===0)){for(var e=i,n=!1;e.parent!==null;){e=e.parent;var r=e.f;if((r&96)!==0){if((r&1024)===0){n=!0;break}e.f^=pt}}n||t.push(e)}return b(It,this,[]),t}function xn(){b(or,this,!0);for(const o of s(We,this))s(qt,this).delete(o),q(o,Mt),this.schedule(o);for(const o of s(qt,this))q(o,pe),this.schedule(o);this.apply();for(var t=Xe=[],e=[],n=$n=[];s(It,this).length>0;){Wi++>1e3&&(E(G,this,Mn).call(this),po());for(const o of E(G,this,fo).call(this))try{E(G,this,co).call(this,o,t,e)}catch(a){throw Ci(o),E(G,this,qr).call(this)||this.discard(),a}}if(x=null,n.length>0){var r=Si.ensure();for(const o of n)r.schedule(o)}if(Xe=null,$n=null,E(G,this,qr).call(this)){E(G,this,an).call(this,e),E(G,this,an).call(this,t);for(const[o,a]of s(Zt,this))ji(o,a);n.length>0&&E(G,x,xn).call(x);return}const i=E(G,this,ho).call(this);if(i){E(G,this,an).call(this,e),E(G,this,an).call(this,t),E(G,i,vo).call(i,this);return}s(We,this).clear(),s(qt,this).clear();for(const o of s(kn,this))o(this);s(kn,this).clear(),bn=this,Jr(e),Jr(t),bn=null,s(Ae,this)?.resolve();var l=x;if(s(_e,this)===0&&(s(It,this).length===0||l!==null)&&E(G,this,Mn).call(this),s(It,this).length>0)if(l!==null){for(const o of s(It,this))s(It,l).push(o);b(It,this,[])}else l=this;l!==null&&(zt.clear(),E(G,l,xn).call(l))}function co(t,e,n){t.f^=pt;for(var r=t.first;r!==null;){var i=r.f,l=(i&96)!==0;if(!(l&&(i&1024)!==0||(i&8192)!==0||s(Zt,this).has(r))&&r.fn!==null){l?r.f^=pt:(i&4)!==0?e.push(r):Ce&&(i&16777224)!==0?n.push(r):tn(r)&&(i&16&&s(qt,this).add(r),Pe(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var a=r.next;if(a!==null){r=a;break}r=r.parent}}}function ho(){for(var t=s(ce,this);t!==null;){if(!t.is_fork){for(const[e,[,n]]of this.current)if(t.current.has(e)&&!n)return t}t=s(ce,t)}return null}function vo(t){for(const[n,r]of t.current)!this.previous.has(n)&&t.previous.has(n)&&this.previous.set(n,t.previous.get(n)),this.current.set(n,r);for(const[n,r]of t.async_deriveds){const i=this.async_deriveds.get(n);i&&r.promise.then(i.resolve).catch(i.reject)}t.async_deriveds.clear(),this.transfer_effects(s(We,t),s(qt,t));const e=n=>{var r=n.reactions;if(r!==null&&!((n.f&2)!==0&&(n.f&6144)===0))for(const o of r){var i=o.f;if((i&2)!==0)e(o);else{var l=o;i&4194320&&!this.async_deriveds.has(l)&&(s(qt,this).delete(l),q(l,Mt),this.schedule(l))}}};for(const n of this.current.keys())e(n);this.oncommit(()=>t.discard()),E(G,t,Mn).call(t),x=this,E(G,this,xn).call(this)}function an(t){for(var e=0;e<t.length;e+=1)_i(t[e],s(We,this),s(qt,this))}function Mn(){if(this.linked){var t=s(ce,this),e=s(ke,this);t===null?ir=e:b(ke,t,e),e===null?ye=t:b(ce,e,t),this.linked=!1}}function Sn(t){var e=Ve;Ve=!0;try{var n;for(t&&(x!==null&&!x.is_fork&&x.flush(),n=t());;){if(eo(),x===null)return n;x.flush()}}finally{Ve=e}}function po(){try{Ql()}catch(t){Tt(t,lr)}}var Ct=null;function Jr(t){var e=t.length;if(e!==0){for(var n=0;n<e;){var r=t[n++];if((r.f&24576)===0&&tn(r)&&(Ct=new Set,Pe(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Vi(r),Ct?.size>0)){zt.clear();for(const i of Ct){if((i.f&24576)!==0)continue;const l=[i];let o=i.parent;for(;o!==null;)Ct.has(o)&&(Ct.delete(o),l.push(o)),o=o.parent;for(let a=l.length-1;a>=0;a--){const u=l[a];!(u.f&24576)&&Pe(u)}}Ct.clear()}}Ct=null}}function Pi(t){x.schedule(t)}function ji(t,e){if(!((t.f&32)!==0&&(t.f&1024)!==0)){(t.f&2048)!==0?e.d.push(t):t.f&4096&&e.m.push(t),q(t,pt);for(var n=t.first;n!==null;)ji(n,e),n=n.next}}function Ci(t){q(t,pt);for(var e=t.first;e!==null;)Ci(e),e=e.next}var Wn=new Set,zt=new Map,Ii=!1;function de(t,e){return{f:0,v:t,reactions:null,equals:pi,rv:0,wv:0}}function F(t,e){const n=de(t,e);return Gi(n),n}function Li(t,e=!1,n=!0){const r=de(t);if(e||(r.equals=gi),zn&&n&&V!==null&&V.l!==null){var i;((i=V.l).s??(i.s=[])).push(r)}return r}function M(t,e,n=!1){return I!==null&&(!_t||I.f&131072)&&Ue()&&I.f&4325394&&($t===null||!$t.has(t))&&Ul(),Ee(t,n?Kt(e):e,$n)}var se=null,sr=0;function Ee(t,e,n=null){if(!t.equals(e)){Gt?zt.set(t,e):zt.has(t)||zt.set(t,t.v);var r=ge.ensure();if(r.capture(t,e),(t.f&2)!==0){const i=t;t.f&2048&&$r(i),et===null&&_r(i)}t.wv=Xi(),se=null,sr=0,zi(t,Mt,n),se=null,Ue()&&j!==null&&j.f&1024&&!(j.f&96)&&(vt===null?Wo([t]):vt.push(t)),!r.is_fork&&Wn.size>0&&!Ii&&go()}return e}function go(){Ii=!1;for(const t of Wn){t.f&1024&&q(t,pe);let e;try{e=tn(t)}catch{e=!0}e&&Pe(t)}Wn.clear()}function mo(t,e=1){var n=c(t),r=e===1?n++:n--;return M(t,n),r}function qe(t){M(t,t.v+1)}function zi(t,e,n){var r=t.reactions;if(r!==null){var i=Ue(),l=r.length;if(sr+=l,sr>1e5&&se===null&&(se=new Set),se!==null){if(se.has(t))return;se.add(t)}for(var o=0;o<l;o++){var a=r[o],u=a.f;if(!(!i&&a===j)){var f=(u&Mt)===0;if(f&&q(a,e),(u&131072)!==0)Wn.add(a);else if((u&2)!==0){var h=a;et?.delete(h),zi(h,pe,n)}else if(f){var d=a;u&16&&Ct!==null&&Ct.add(d),n!==null?n.push(d):Pi(d)}}}}}function Kt(t){if(typeof t!="object"||t===null||Fe in t||hi in t)return t;const e=fi(t);if(e!==El&&e!==Pl)return t;var n=new Map,r=ui(t),i=F(0),l=null,o=he,a=u=>{if(he===o)return u();var f=I,h=he;mt(null),Kr(o);var d=u();return mt(f),Kr(h),d};return r&&n.set("length",F(t.length,l)),new Proxy(t,{defineProperty(u,f,h){(!("value"in h)||h.configurable===!1||h.enumerable===!1||h.writable===!1)&&Kl();var d=n.get(f);return d===void 0?a(()=>{var v=F(h.value,l);return n.set(f,v),v}):M(d,h.value,!0),!0},deleteProperty(u,f){var h=n.get(f);if(h===void 0){if(f in u){const d=a(()=>F(Q,l));n.set(f,d),qe(i)}}else M(h,Q),qe(i);return!0},get(u,f,h){if(f===Fe)return t;var d=n.get(f),v=f in u;if(d===void 0&&(!v||fe(u,f)?.writable)&&(d=a(()=>F(Kt(v?u[f]:Q),l)),n.set(f,d)),d!==void 0){var p=c(d);return p===Q?void 0:p}return Reflect.get(u,f,h)},getOwnPropertyDescriptor(u,f){this.has?.(u,f);var h=Reflect.getOwnPropertyDescriptor(u,f),d=n.get(f);if(d!==void 0){var v=c(d);if(v===Q)return;if(h&&"value"in h)h.value=v;else return{enumerable:!0,configurable:!0,value:v,writable:!0}}return h},has(u,f){if(f===Fe)return!0;var h=n.get(f),d=h!==void 0&&h.v!==Q||Reflect.has(u,f);return(h!==void 0||j!==null&&(!d||fe(u,f)?.writable))&&(h===void 0&&(h=a(()=>F(d?Kt(u[f]):Q,l)),n.set(f,h)),c(h)===Q)?!1:d},set(u,f,h,d){var v=n.get(f),p=f in u;if(r&&f==="length")for(var m=h;m<v.v;m+=1){var S=n.get(m+"");S!==void 0?M(S,Q):m in u&&(S=a(()=>F(Q,l)),n.set(m+"",S))}if(v===void 0)(!p||fe(u,f)?.writable)&&(v=a(()=>F(void 0,l)),M(v,Kt(h)),n.set(f,v));else{p=v.v!==Q;var g=a(()=>Kt(h));M(v,g)}var _=Reflect.getOwnPropertyDescriptor(u,f);if(_?.set&&_.set.call(d,h),!p){if(r&&typeof f=="string"){var R=n.get("length"),N=Number(f);Number.isInteger(N)&&N>=R.v&&M(R,N+1)}qe(i)}return!0},ownKeys(u){c(i);var f=Reflect.ownKeys(u).filter(v=>{var p=n.get(v);return p===void 0||p.v!==Q});for(var[h,d]of n)d.v!==Q&&!(h in u)&&f.push(h);return f},setPrototypeOf(){Yl()}})}var Gr,Ti,Oi,Di;function ar(){if(Gr===void 0){Gr=window,Ti=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,n=Text.prototype;Oi=fe(e,"firstChild").get,Di=fe(e,"nextSibling").get,Hr(t)&&(t[nr]=void 0,t[er]=null,t[rr]=void 0,t.__e=void 0),Hr(n)&&(n[dn]=void 0)}}function dt(t=""){return document.createTextNode(t)}function at(t){return Oi.call(t)}function Nt(t){return Di.call(t)}function Bt(t,e){if(!L)return at(t);var n=at(T);if(n===null)n=T.appendChild(dt());else if(e&&n.nodeType!==3){var r=dt();return n?.before(r),it(r),r}return e&&Mr(n),it(n),n}function Rn(t,e=!1){if(!L){var n=at(t);return n instanceof Comment&&n.data===""?Nt(n):n}if(e){if(T?.nodeType!==3){var r=dt();return T?.before(r),it(r),r}Mr(T)}return T}function Qr(t,e=!1){if(!L)return at(t);var n=Bt(t,e);return ht(t),n}function Pt(t,e=1,n=!1){let r=L?T:t;for(var i;e--;)i=r,r=Nt(r);if(!L)return r;if(n){if(r?.nodeType!==3){var l=dt();return r===null?i?.after(l):r.before(l),it(l),l}Mr(r)}return it(r),r}function Ni(t){t.textContent=""}function Ai(){return!Ce||Ct!==null?!1:(j.f&mr)!==0}function xr(t,e,n){return e==null||e==="http://www.w3.org/1999/xhtml"?n?document.createElement(t,{is:n}):document.createElement(t):n?document.createElementNS(e,t,{is:n}):document.createElementNS(e,t)}function Mr(t){if(t.nodeValue.length<65536)return;let e=t.nextSibling;for(;e!==null&&e.nodeType===3;)e.remove(),t.nodeValue+=e.nodeValue,e=t.nextSibling}function wo(t){var e=j;if(e===null)return I.f|=wn,t;if((e.f&32768)===0&&(e.f&4)===0)throw t;Tt(t,e)}function Tt(t,e){if(!(e!==null&&(e.f&16384)!==0)){for(;e!==null;){if((e.f&128)!==0&&(e.f&33570816)===0){if((e.f&32768)===0)throw t;try{e.b.error(t);return}catch(n){t=n}}e=e.parent}throw t}}function yo(t){j===null&&(I===null&&Gl(t),Jl()),Gt&&ql(t)}function _o(t,e){var n=e.last;n===null?e.last=e.first=t:(n.next=t,t.prev=n,e.last=t)}function At(t,e){var n=j;n!==null&&n.f&8192&&(t|=gr);var r={ctx:V,deps:null,nodes:null,f:t|Mt|512,first:null,fn:e,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};x?.register_created_effect(r);var i=r;if((t&4)!==0)Xe!==null?Xe.push(r):ge.ensure().schedule(r);else if(e!==null){try{Pe(r)}catch(o){throw nt(r),o}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,t&16&&t&65536&&i!==null&&(i.f|=wr))}if(i!==null&&(i.parent=n,n!==null&&_o(i,n),I!==null&&(I.f&2)!==0&&(t&64)===0)){var l=I;(l.effects??(l.effects=[])).push(i)}return r}function Sr(){return I!==null&&!_t}function Hi(t){const e=At(8,null);return q(e,pt),e.teardown=t,e}function Xr(t){yo("$effect");var e=j.f;if(!I&&(e&32)!==0&&V!==null&&!V.i){var n=V;(n.e??(n.e=[])).push(t)}else return Ri(t)}function Ri(t){return At(4|Tl,t)}function bo(t){ge.ensure();const e=At(64|je,t);return()=>{nt(e)}}function $o(t){ge.ensure();const e=At(64|je,t);return(n={})=>new Promise(r=>{n.outro?me(e,()=>{nt(e),r(void 0)}):(nt(e),r(void 0))})}function Fi(t){return At(4,t)}function ko(t){return At(Ol|je,t)}function Tn(t,e=0){return At(8|e,t)}function Rt(t,e=[],n=[],r=[]){io(r,e,n,i=>{At(8,()=>{t(...i.map(c))})})}function Wr(t,e=0){return At(16|e,t)}function gt(t){return At(32|je,t)}function Bi(t){var e=t.teardown;if(e!==null){const n=Gt,r=I;Zr(!0),mt(null);try{e.call(null)}catch(i){Tt(i,t.parent)}finally{Zr(n),mt(r)}}}function Er(t,e=!1){var n=t.first;for(t.first=t.last=null;n!==null;){const i=n.ac;i!==null&&Ie(()=>{i.abort(Ye)});var r=n.next;(n.f&64)!==0?n.parent=null:nt(n,e),n=r}}function xo(t){for(var e=t.first;e!==null;){var n=e.next;!(e.f&32)&&nt(e),e=n}}function nt(t,e=!0){var n=!1;(e||t.f&262144)&&t.nodes!==null&&t.nodes.end!==null&&(Mo(t.nodes.start,t.nodes.end),n=!0),t.f|=Rr,Er(t,e&&!n),Ze(t,0);var r=t.nodes&&t.nodes.t;if(r!==null)for(const l of r)l.stop();Bi(t),t.f^=Rr,t.f|=zl;var i=t.parent;i!==null&&i.first!==null&&Vi(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes=t.ac=t.b=null}function Mo(t,e){for(;t!==null;){var n=t===e?null:Nt(t);t.remove(),t=n}}function Vi(t){var e=t.parent,n=t.prev,r=t.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),e!==null&&(e.first===t&&(e.first=r),e.last===t&&(e.last=n))}function me(t,e,n=!0){var r=[];t.f|=256,qi(t,r,!0);var i=()=>{n&&nt(t),e&&e()},l=r.length;if(l>0){var o=()=>--l||i();for(var a of r)a.out(o)}else i()}function qi(t,e,n){if((t.f&8192)===0){t.f^=gr;var r=t.nodes&&t.nodes.t;if(r!==null)for(const a of r)(a.is_global||n)&&e.push(a);for(var i=t.first;i!==null;){var l=i.next;if((i.f&64)===0){var o=(i.f&65536)!==0||(i.f&32)!==0&&(t.f&16)!==0;qi(i,e,o?n:!1)}i=l}}}function En(t){t.f&=-257,Ji(t,!0)}function Ji(t,e){if((t.f&256)===0&&(t.f&8192)!==0){t.f^=gr,!(t.f&1024)&&(q(t,Mt),ge.ensure().schedule(t));for(var n=t.first;n!==null;){var r=n.next,i=(n.f&65536)!==0||(n.f&32)!==0;Ji(n,i?e:!1),n=r}var l=t.nodes&&t.nodes.t;if(l!==null)for(const o of l)(o.is_global||e)&&o.in()}}function Pr(t,e){if(t.nodes)for(var n=t.nodes.start,r=t.nodes.end;n!==null;){var i=n===r?null:Nt(n);e.append(n),n=i}}var So=null,pn=!1,Gt=!1;function Zr(t){Gt=t}var I=null,_t=!1;function mt(t){I=t}var j=null;function Dt(t){j=t}var $t=null;function Gi(t){I!==null&&(I.f&2097152||I.f&2)&&($t??($t=new Set)).add(t)}var rt=null,st=0,vt=null;function Wo(t){vt=t}var Qi=1,ue=0,he=ue;function Kr(t){he=t}function Xi(){return++Qi}function tn(t){var e=t.f;if((e&2048)!==0)return!0;if((e&4096)!==0){for(var n=t.deps,r=n.length,i=0;i<r;i++){var l=n[i];if(tn(l)&&ki(l),l.wv>t.wv)return!0}e&512&&et===null&&q(t,pt)}return!1}function Zi(t,e,n=!0){var r=t.reactions;if(r!==null&&!(!Ce&&$t!==null&&$t.has(t)))for(var i=0;i<r.length;i++){var l=r[i];(l.f&2)!==0?Zi(l,e,!1):e===l&&(n?q(l,Mt):l.f&1024&&q(l,pe),Pi(l))}}function Ki(t){var e=rt,n=st,r=vt,i=I,l=$t,o=V,a=_t,u=he,f=t.f;rt=null,st=0,vt=null,I=(f&96)===0?t:null,$t=null,Se(t.ctx),_t=!1,he=++ue,t.ac!==null&&(Ie(()=>{t.ac.abort(Ye)}),t.ac=null);try{t.f|=Fr;var h=t.fn,d=h();t.f|=mr;var v=Yr(t);if(Ue()&&vt!==null&&!_t&&v!==null&&(t.f&6146)===0)for(var p=0;p<vt.length;p++)Zi(vt[p],t);if(i!==null&&i!==t){if(ue++,i.deps!==null)for(let m=0;m<n;m+=1)i.deps[m].rv=ue;if(e!==null)for(const m of e)m.rv=ue;vt!==null&&(r===null?r=vt:r.push(...vt))}return t.f&8388608&&(t.f^=wn),d}catch(m){return Yr(t),wo(m)}finally{t.f^=Fr,rt=e,st=n,vt=r,I=i,$t=l,Se(o),_t=a,he=u}}function Yr(t){var e=t.deps,n=x?.is_fork;if(rt!==null){var r;if(n||Ze(t,st),e!==null&&st>0)for(e.length=st+rt.length,r=0;r<rt.length;r++)e[st+r]=rt[r];else t.deps=e=rt;if(Sr()&&(t.f&512)!==0)for(r=st;r<e.length;r++){var i;((i=e[r]).reactions??(i.reactions=[])).push(t)}}else!n&&e!==null&&st<e.length&&(Ze(t,st),e.length=st);return e}function Eo(t,e){let n=e.reactions;if(n!==null){var r=Sl.call(n,t);if(r!==-1){var i=n.length-1;i===0?n=e.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&(e.f&2)!==0&&(rt===null||!tr.call(rt,e))){var l=e;l.f&512&&(l.f^=512),l.v!==Q&&_r(l),l.ac!==null&&Ie(()=>{l.ac.abort(Ye),l.ac=null,q(l,Mt)}),ao(l),Ze(l,0)}}function Ze(t,e){var n=t.deps;if(n!==null)for(var r=e;r<n.length;r++)Eo(t,n[r])}function Pe(t){var e=t.f;if((e&16384)===0){q(t,pt);var n=j,r=pn;j=t,pn=(e&96)===0;try{(e&16777232)!==0?xo(t):Er(t),Bi(t);var i=Ki(t);t.teardown=typeof i=="function"?i:null,t.wv=Qi}finally{pn=r,j=n}}}async function Po(){if(Ce)return new Promise(t=>{requestAnimationFrame(()=>t()),setTimeout(()=>t())});await Promise.resolve(),Sn()}function c(t){var e=(t.f&2)!==0;if(So?.add(t),I!==null&&!_t&&!(j!==null&&(j.f&16384)!==0)&&($t===null||!$t.has(t))){var n=I.deps;if((I.f&2097152)!==0)t.rv<ue&&(t.rv=ue,rt===null&&n!==null&&n[st]===t?st++:rt===null?rt=[t]:rt.push(t));else{var r;(r=I).deps??(r.deps=[]),tr.call(I.deps,t)||I.deps.push(t);var i=t.reactions;i===null?t.reactions=[I]:tr.call(i,I)||i.push(I)}}if(Gt&&zt.has(t))return zt.get(t);if(e){var l=t;if(Gt){var o=l.v;return(!(l.f&1024)&&l.reactions!==null||Ui(l))&&(o=$r(l)),zt.set(l,o),o}var a=(l.f&512)===0&&!_t&&I!==null&&(pn||(I.f&512)!==0),u=(l.f&mr)===0;tn(l)&&(a&&(l.f|=512),ki(l)),a&&!u&&(xi(l),Yi(l))}if(et?.has(t))return et.get(t);if((t.f&8388608)!==0)throw t.v;return t.v}function Yi(t){if(t.f|=512,t.deps!==null)for(const e of t.deps)(e.reactions??(e.reactions=[])).push(t),e.f&2&&!(e.f&512)&&(xi(e),Yi(e))}function Ui(t){if(t.v===Q)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(zt.has(e)||(e.f&2)!==0&&Ui(e))return!0;return!1}function On(t){var e=_t;try{return _t=!0,t()}finally{_t=e}}var xe=Symbol("events"),tl=new Set,ur=new Set;function jo(t,e,n,r={}){function i(l){if(r.capture||fr.call(e,l),!l.cancelBubble)return Ie(()=>n?.call(this,l))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?(i.__removed=!1,Ot(()=>{i.__removed||e.addEventListener(t,i,r)})):e.addEventListener(t,i,r),i}function Co(t,e,n,r,i){var l={capture:r,passive:i},o=jo(t,e,n,l);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Hi(()=>{o.__removed=!0,e.removeEventListener(t,o,l)})}function ne(t,e,n){(e[xe]??(e[xe]={}))[t]=n}function Io(t){for(var e=0;e<t.length;e++)tl.add(t[e]);for(var n of ur)n(t)}var Fn=null,Bn=!1;function fr(t){var e=this,n=e.ownerDocument,r=t.type,i=t.composedPath?.()||[],l=i[0]||t.target;Fn=t,Bn||(Bn=!0,setTimeout(()=>{Bn=!1,Fn=null}));var o=0,a=Fn===t&&t[xe];if(a){var u=i.indexOf(a);if(u!==-1&&(e===document||e===window)){t[xe]=e;return}var f=i.indexOf(e);if(f===-1)return;u<=f&&(o=u)}if(l=i[o]||t.target,l!==e){Je(t,"currentTarget",{configurable:!0,get(){return l||n}});var h=I,d=j;mt(null),Dt(null);try{for(var v,p=[];l!==null&&l!==e;){try{var m=l[xe]?.[r];m!=null&&(!l.disabled||t.target===l)&&m.call(l,t)}catch(S){v?p.push(S):v=S}if(t.cancelBubble)break;o++,l=o<i.length?i[o]:null}if(v){for(let S of p)queueMicrotask(()=>{throw S});throw v}}finally{t[xe]=e,delete t.currentTarget,mt(h),Dt(d)}}}var Lo=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});function zo(t){return Lo?.createHTML(t)??t}function el(t){var e=xr("template");return e.innerHTML=zo(t.replaceAll("<!>","<!---->")),e.content}function Jt(t,e){var n=j;n.nodes===null&&(n.nodes={start:t,end:e,a:null,t:null})}function nl(t,e){var n=(e&1)!==0,r=(e&2)!==0,i,l=!t.startsWith("<!>");return()=>{if(L)return Jt(T,null),T;i===void 0&&(i=el(l?t:"<!>"+t),n||(i=at(i)));var o=r||Ti?document.importNode(i,!0):i.cloneNode(!0);if(n){var a=at(o),u=o.lastChild;Jt(a,u)}else Jt(o,o);return o}}function To(t,e,n="svg"){var r=!t.startsWith("<!>"),i=(e&1)!==0,l=`<${n}>${r?t:"<!>"+t}</${n}>`,o;return()=>{if(L)return Jt(T,null),T;if(!o){var a=at(el(l));if(i)for(o=document.createDocumentFragment();at(a);)o.appendChild(at(a));else o=at(a)}var u=o.cloneNode(!0);if(i){var f=at(u),h=u.lastChild;Jt(f,h)}else Jt(u,u);return u}}function St(t,e){return To(t,e,"svg")}function Vn(){if(L)return Jt(T,null),T;var t=document.createDocumentFragment(),e=document.createComment(""),n=dt();return t.append(e,n),Jt(e,n),t}function Z(t,e){if(L){var n=j;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=T),Ln();return}t!==null&&t.before(e)}var Oo=["touchstart","touchmove"];function Do(t){return Oo.includes(t)}function No(t){let e=0,n=de(0),r;return()=>{Sr()&&(c(n),Tn(()=>(e===0&&(r=On(()=>t(()=>qe(n)))),e+=1,()=>{Ot(()=>{e-=1,e===0&&(r?.(),r=void 0,qe(n))})})))}}var Ao=wr|je;function Ho(t,e,n,r){new Ro(t,e,n,r)}var kt=new WeakMap,cr=new WeakMap,Lt=new WeakMap,Ke=new WeakMap,ut=new WeakMap,xt=new WeakMap,ft=new WeakMap,bt=new WeakMap,Yt=new WeakMap,be=new WeakMap,ve=new WeakMap,un=new WeakMap,hr=new WeakMap,vr=new WeakMap,re=new WeakMap,Ur=new WeakMap,X=new WeakSet,Ro=class{constructor(t,e,n,r){kr(this,X),H(this,"parent",void 0),H(this,"is_pending",!1),H(this,"transform_error",void 0),k(this,kt,void 0),k(this,cr,L?T:null),k(this,Lt,void 0),k(this,Ke,void 0),k(this,ut,void 0),k(this,xt,null),k(this,ft,null),k(this,bt,null),k(this,Yt,null),k(this,be,0),k(this,ve,0),k(this,un,!1),k(this,hr,new Set),k(this,vr,new Set),k(this,re,null),k(this,Ur,No(()=>(b(re,this,de(s(be,this))),()=>{b(re,this,null)}))),b(kt,this,t),b(Lt,this,e),b(Ke,this,i=>{var l=j;l.b=this,l.f|=128,n(i)}),this.parent=j.b,this.transform_error=r??this.parent?.transform_error??(i=>i),b(ut,this,Wr(()=>{if(L){const i=s(cr,this);Ln();const l=i.data==="[!";if(i.data.startsWith("[?")){const o=JSON.parse(i.data.slice(2));E(X,this,Bo).call(this,o)}else l?E(X,this,Vo).call(this):E(X,this,Fo).call(this)}else E(X,this,il).call(this)},Ao)),L&&b(kt,this,T)}defer_effect(t){_i(t,s(hr,this),s(vr,this))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!s(Lt,this).pending}update_pending_count(t,e){E(X,this,ll).call(this,t,e),b(be,this,s(be,this)+t),s(re,this)&&!s(un,this)&&(b(un,this,!0),Ot(()=>{b(un,this,!1),s(re,this)&&Ee(s(re,this),s(be,this))}))}get_effect_pending(){return s(Ur,this).call(this),c(s(re,this))}error(t){if(!s(Lt,this).onerror&&!s(Lt,this).failed)throw t;x?.is_fork?(s(xt,this)&&x.skip_effect(s(xt,this)),s(ft,this)&&x.skip_effect(s(ft,this)),s(bt,this)&&x.skip_effect(s(bt,this)),x.oncommit(()=>{E(X,this,ti).call(this,t)})):E(X,this,ti).call(this,t)}};function Fo(){try{b(xt,this,gt(()=>s(Ke,this).call(this,s(kt,this))))}catch(t){this.error(t)}}function Bo(t){const e=s(Lt,this).failed,{reset:n,invoke_onerror:r}=E(X,this,rl).call(this,t);Ot(r),e&&b(bt,this,gt(()=>{e(s(kt,this),()=>t,()=>n)}))}function rl(t){var e=!1,n=!1;const r=()=>{if(e){Hl();return}e=!0,n&&to(),s(bt,this)!==null&&me(s(bt,this),()=>{b(bt,this,null)}),E(X,this,jr).call(this,()=>{E(X,this,il).call(this)})};return{reset:r,invoke_onerror:()=>{try{n=!0,s(Lt,this).onerror?.(t,r),n=!1}catch(i){Tt(i,s(ut,this)&&s(ut,this).parent)}}}}function Vo(){const t=s(Lt,this).pending;t&&(this.is_pending=!0,b(ft,this,gt(()=>t(s(kt,this)))),Ot(()=>{var e=b(Yt,this,document.createDocumentFragment()),n=dt(),r=!1;if(e.append(n),b(xt,this,E(X,this,jr).call(this,()=>{try{return gt(()=>s(Ke,this).call(this,n))}catch(i){try{this.error(i),r=!0}catch(l){Tt(l,s(ut,this).parent)}return null}})),s(xt,this)===null){b(Yt,this,null),r&&E(X,this,Pn).call(this,x);return}s(ve,this)===0&&(s(kt,this).before(e),b(Yt,this,null),me(s(ft,this),()=>{b(ft,this,null)}),E(X,this,Pn).call(this,x))}))}function il(){try{if(this.is_pending=this.has_pending_snippet(),b(ve,this,0),b(be,this,0),b(xt,this,gt(()=>{s(Ke,this).call(this,s(kt,this))})),s(ve,this)>0){var t=b(Yt,this,document.createDocumentFragment());Pr(s(xt,this),t);const e=s(Lt,this).pending;b(ft,this,gt(()=>e(s(kt,this))))}else E(X,this,Pn).call(this,x)}catch(e){this.error(e)}}function Pn(t){this.is_pending=!1,t.transfer_effects(s(hr,this),s(vr,this))}function jr(t){var e=j,n=I,r=V;Dt(s(ut,this)),mt(s(ut,this)),Se(s(ut,this).ctx);try{return ge.ensure(),t()}finally{Dt(e),mt(n),Se(r)}}function ll(t,e){if(!this.has_pending_snippet()){if(this.parent){var n;E(X,n=this.parent,ll).call(n,t,e)}return}b(ve,this,s(ve,this)+t),s(ve,this)===0&&(E(X,this,Pn).call(this,e),s(ft,this)&&me(s(ft,this),()=>{b(ft,this,null)}),s(Yt,this)&&(s(kt,this).before(s(Yt,this)),b(Yt,this,null)))}function ti(t){s(xt,this)&&(nt(s(xt,this)),b(xt,this,null)),s(ft,this)&&(nt(s(ft,this)),b(ft,this,null)),s(bt,this)&&(nt(s(bt,this)),b(bt,this,null)),L&&(it(s(cr,this)),Rl(),it(yn()));let e=s(Lt,this).failed;const n=r=>{const{reset:i,invoke_onerror:l}=E(X,this,rl).call(this,r);l(),e&&b(bt,this,E(X,this,jr).call(this,()=>{try{return gt(()=>{var o=j;o.b=this,o.f|=128,e(s(kt,this),()=>r,()=>i)})}catch(o){return Tt(o,s(ut,this).parent),null}}))};Ot(()=>{var r;try{r=this.transform_error(t)}catch(i){Tt(i,s(ut,this)&&s(ut,this).parent);return}r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(n,i=>Tt(i,s(ut,this)&&s(ut,this).parent)):n(r)})}function ei(t,e){var n=e==null?"":typeof e=="object"?`${e}`:e;n!==(t[dn]??(t[dn]=t.nodeValue))&&(t[dn]=n,t.nodeValue=`${n}`)}function ol(t,e){return sl(t,e)}function qo(t,e){ar(),e.intro=e.intro??!1;const n=e.target,r=L,i=T;try{for(var l=at(n);l&&(l.nodeType!==8||l.data!=="[");)l=Nt(l);if(!l)throw Me;Vt(!0),it(l);const o=sl(t,{...e,anchor:l});return Vt(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
|
|
2
|
+
`).some(a=>a.startsWith("https://svelte.dev/e/")))throw o;return o!==Me&&console.warn("Failed to hydrate: ",o),e.recover===!1&&Xl(),ar(),Ni(n),Vt(!1),ol(t,e)}finally{Vt(r),it(i)}}var fn=new Map;function sl(t,{target:e,anchor:n,props:r={},events:i,context:l,intro:o=!0,transformError:a}){ar();var u=void 0,f=$o(()=>{var h=n??e.appendChild(dt());Ho(h,{pending:()=>{}},p=>{mi({});var m=V;if(l&&(m.c=l),i&&(r.$$events=i),L&&Jt(p,null),u=t(p,r)||yr(),L&&(j.nodes.end=T,T===null||T.nodeType!==8||T.data!=="]"))throw In(),Me;wi()},a);var d=new Set,v=p=>{for(var m=0;m<p.length;m++){var S=p[m];if(!d.has(S)){d.add(S);var g=Do(S);for(const N of[e,document]){var _=fn.get(N);_===void 0&&(_=new Map,fn.set(N,_));var R=_.get(S);R===void 0?(N.addEventListener(S,fr,{passive:g}),_.set(S,1)):_.set(S,R+1)}}}};return v(Cn(tl)),ur.add(v),()=>{for(var p of d)for(const g of[e,document]){var m=fn.get(g),S=m.get(p);--S==0?(g.removeEventListener(p,fr),m.delete(p),m.size===0&&fn.delete(g)):m.set(p,S)}ur.delete(v),h!==n&&h.parentNode?.removeChild(h)}});return dr.set(u,f),u}var dr=new WeakMap;function Jo(t,e){const n=dr.get(t);return n?(dr.delete(t),n(e)):Promise.resolve()}var Ft=new WeakMap,Qt=new WeakMap,yt=new WeakMap,Te=new WeakMap,qn=new WeakMap,Jn=new WeakMap,ni=new WeakMap,Go=class{constructor(t,e=!0){H(this,"anchor",void 0),k(this,Ft,new Map),k(this,Qt,new Map),k(this,yt,new Map),k(this,Te,new Set),k(this,qn,!0),k(this,Jn,n=>{if(s(Ft,this).has(n)){var r=s(Ft,this).get(n),i=s(Qt,this).get(r);if(i)En(i),s(Te,this).delete(r);else{var l=s(yt,this).get(r);l&&(En(l.effect),s(Qt,this).set(r,l.effect),s(yt,this).delete(r),l.fragment.lastChild.remove(),this.anchor.before(l.fragment),i=l.effect)}for(const[o,a]of s(Ft,this)){if(s(Ft,this).delete(o),o===n)break;const u=s(yt,this).get(a);u&&(nt(u.effect),s(yt,this).delete(a))}for(const[o,a]of s(Qt,this)){if(o===r||s(Te,this).has(o))continue;const u=()=>{if(Array.from(s(Ft,this).values()).includes(o)){var f=document.createDocumentFragment();Pr(a,f),f.append(dt()),s(yt,this).set(o,{effect:a,fragment:f})}else nt(a);s(Te,this).delete(o),s(Qt,this).delete(o)};s(qn,this)||!i?(s(Te,this).add(o),me(a,u,!1)):u()}}}),k(this,ni,n=>{s(Ft,this).delete(n);const r=Array.from(s(Ft,this).values());for(const[i,l]of s(yt,this))r.includes(i)||(nt(l.effect),s(yt,this).delete(i))}),this.anchor=t,b(qn,this,e)}ensure(t,e){var n=x,r=Ai();if(e&&!s(Qt,this).has(t)&&!s(yt,this).has(t))if(r){var i=document.createDocumentFragment(),l=dt();i.append(l),s(yt,this).set(t,{effect:gt(()=>e(l)),fragment:i})}else s(Qt,this).set(t,gt(()=>e(this.anchor)));if(s(Ft,this).set(n,t),r){for(const[o,a]of s(Qt,this))o===t?n.unskip_effect(a):n.skip_effect(a);for(const[o,a]of s(yt,this))o===t?n.unskip_effect(a.effect):n.skip_effect(a.effect);n.oncommit(s(Jn,this)),n.ondiscard(s(ni,this))}else L&&(this.anchor=T),s(Jn,this).call(this,n)}};function Oe(t,e,n=!1){var r;L&&(r=T,Ln());var i=new Go(t),l=n?wr:0;function o(a,u){if(L){var f=di(r);if(a!==parseInt(f.substring(1))){var h=yn();it(h),i.anchor=h,Vt(!1),i.ensure(a,u),Vt(!0);return}}i.ensure(a,u)}Wr(()=>{var a=!1;e((u,f=0)=>{a=!0,o(f,u)}),a||o(-1,null)},l)}function cn(t,e){return e}function Qo(t,e,n){for(var r=[],i=e.length,l,o=e.length,a=0;a<i;a++){let d=e[a];me(d,()=>{if(l){if(l.pending.delete(d),l.done.add(d),l.pending.size===0){var v=t.outrogroups;pr(t,Cn(l.done)),v.delete(l),v.size===0&&(t.outrogroups=null)}}else o-=1},!1)}if(o===0){var u=r.length===0&&n!==null&&t.pending.size===0;if(u){var f=n,h=f.parentNode;Ni(h),h.append(f),t.items.clear()}pr(t,e,!u)}else l={pending:new Set(e),done:new Set},(t.outrogroups??(t.outrogroups=new Set)).add(l)}function pr(t,e,n=!0){var r;if(t.pending.size>0){r=new Set;for(const o of t.pending.values())for(const a of o)r.add(t.items.get(a).e)}for(var i=0;i<e.length;i++){var l=e[i];r?.has(l)?(l.f|=Re,Pr(l,document.createDocumentFragment())):nt(e[i],n)}}var hn;function ie(t,e,n,r,i,l=null){var o=t,a=new Map;if((e&4)!==0){var u=t;o=L?it(at(u)):u.appendChild(dt())}L&&Ln();var f=null,h=br(()=>{var _=n();return ui(_)?_:_==null?[]:Cn(_)}),d,v=new Map,p=!0;function m(_){!(g.effect.f&16384)&&(g.pending.delete(_),g.fallback=f,Xo(g,d,o,e,r),f!==null&&(d.length===0?(f.f&33554432)===0?En(f):(f.f^=Re,He(f,null,o)):me(f,()=>{f=null})))}function S(_){g.pending.delete(_)}var g={effect:Wr(()=>{d=c(h);var _=d.length;let R=!1;L&&di(o)==="[!"!=(_===0)&&(o=yn(),it(o),Vt(!1),R=!0);for(var N=new Set,C=x,K=Ai(),Y=0;Y<_;Y+=1){L&&T.nodeType===8&&T.data==="]"&&(o=T,R=!0,Vt(!1));var D=d[Y],Wt=r(D,Y),U=p?null:a.get(Wt);U?(U.v&&Ee(U.v,D),U.i&&Ee(U.i,Y),K&&C.unskip_effect(U.e)):(U=Zo(a,p?o:hn??(hn=dt()),D,Wt,Y,i,e,n),p||(U.e.f|=Re),a.set(Wt,U)),N.add(Wt)}if(_===0&&l&&!f&&(p?f=gt(()=>l(o)):(f=gt(()=>l(hn??(hn=dt()))),f.f|=Re)),_>N.size&&Vl("","",""),L&&_>0&&it(yn()),!p)if(v.set(C,N),K){for(const[lt,en]of a)N.has(lt)||C.skip_effect(en.e);C.oncommit(m),C.ondiscard(S)}else m(C);R&&Vt(!0),c(h)}),flags:e,items:a,pending:v,outrogroups:null,fallback:f};p=!1,L&&(o=T)}function De(t){for(;t!==null&&(t.f&32)===0;)t=t.next;return t}function Xo(t,e,n,r,i){var l=(r&8)!==0,o=e.length,a=t.items,u=De(t.effect.first),f,h=null,d,v=[],p=[],m,S,g,_;if(l)for(_=0;_<o;_+=1)m=e[_],S=i(m,_),g=a.get(S).e,!(g.f&33554432)&&(g.nodes?.a?.measure(),(d??(d=new Set)).add(g));for(_=0;_<o;_+=1){if(m=e[_],S=i(m,_),g=a.get(S).e,t.outrogroups!==null)for(const lt of t.outrogroups)lt.pending.delete(g),lt.done.delete(g);if(g.f&8192&&(En(g),l&&(g.nodes?.a?.unfix(),(d??(d=new Set)).delete(g))),(g.f&33554432)!==0)if(g.f^=Re,g===u)He(g,null,n);else{var R=h?h.next:u;g===t.effect.last&&(t.effect.last=g.prev),g.prev&&(g.prev.next=g.next),g.next&&(g.next.prev=g.prev),Xt(t,h,g),Xt(t,g,R),He(g,R,n),h=g,v=[],p=[],u=De(h.next);continue}if(g!==u){if(f!==void 0&&f.has(g)){if(v.length<p.length){var N=p[0],C;h=N.prev;var K=v[0],Y=v[v.length-1];for(C=0;C<v.length;C+=1)He(v[C],N,n);for(C=0;C<p.length;C+=1)f.delete(p[C]);Xt(t,K.prev,Y.next),Xt(t,h,K),Xt(t,Y,N),u=N,h=Y,_-=1,v=[],p=[]}else f.delete(g),He(g,u,n),Xt(t,g.prev,g.next),Xt(t,g,h===null?t.effect.first:h.next),Xt(t,h,g),h=g;continue}for(v=[],p=[];u!==null&&u!==g;)(f??(f=new Set)).add(u),p.push(u),u=De(u.next);if(u===null)continue}!(g.f&33554432)&&v.push(g),h=g,u=De(g.next)}if(t.outrogroups!==null){for(const lt of t.outrogroups)lt.pending.size===0&&(pr(t,Cn(lt.done)),t.outrogroups?.delete(lt));t.outrogroups.size===0&&(t.outrogroups=null)}if(u!==null||f!==void 0){var D=[];if(f!==void 0)for(g of f)!(g.f&8192)&&D.push(g);for(;u!==null;)!(u.f&8192)&&u!==t.fallback&&D.push(u),u=De(u.next);var Wt=D.length;if(Wt>0){var U=(r&4)!==0&&o===0?n:null;if(l){for(_=0;_<Wt;_+=1)D[_].nodes?.a?.measure();for(_=0;_<Wt;_+=1)D[_].nodes?.a?.fix()}Qo(t,D,U)}}l&&Ot(()=>{if(d!==void 0)for(g of d)g.nodes?.a?.apply()})}function Zo(t,e,n,r,i,l,o,a){var u=(o&1)!==0?(o&16)===0?Li(n,!1,!1):de(n):null,f=(o&2)!==0?de(i):null;return{v:u,i:f,e:gt(()=>(l(e,u??n,f??i,a),()=>{t.delete(r)}))}}function He(t,e,n){if(t.nodes)for(var r=t.nodes.start,i=t.nodes.end,l=e&&(e.f&33554432)===0?e.nodes.start:n;r!==null;){var o=Nt(r);if(l.before(r),r===i)return;r=o}}function Xt(t,e,n){e===null?t.effect.first=n:e.next=n,n===null?t.effect.last=e:n.prev=e}function Ko(t,e){Fi(()=>{t=j?.parent?.nodes?.start??t;var n=t.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+e.hash)){const i=xr("style");i.id=e.hash,i.textContent=e.code,r.appendChild(i)}})}var ri=[...`
|
|
3
|
+
\r\f \v\uFEFF`];function Yo(t,e,n){var r=t==null?"":""+t;if(e&&(r=r?r+" "+e:e),n){for(var i of Object.keys(n))if(n[i])r=r?r+" "+i:i;else if(r.length)for(var l=i.length,o=0;(o=r.indexOf(i,o))>=0;){var a=o+l;(o===0||ri.includes(r[o-1]))&&(a===r.length||ri.includes(r[a]))?r=(o===0?"":r.substring(0,o))+r.substring(a+1):o=a}}return r===""?null:r}function ii(t,e=!1){var n=e?" !important;":";",r="";for(var i of Object.keys(t)){var l=t[i];l!=null&&l!==""&&(r+=" "+i+": "+l+n)}return r}function Gn(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Uo(t,e){if(e){var n="",r,i;if(Array.isArray(e)?(r=e[0],i=e[1]):r=e,t){t=String(t).replaceAll(/\/\*.*?\*\//g,"").trim();var l=!1,o=0,a=!1,u=[];r&&u.push(...Object.keys(r).map(Gn)),i&&u.push(...Object.keys(i).map(Gn));var f=0,h=-1;const S=t.length;for(var d=0;d<S;d++){var v=t[d];if(a?v==="/"&&t[d-1]==="*"&&(a=!1):l?l===v&&(l=!1):v==="/"&&t[d+1]==="*"?a=!0:v==='"'||v==="'"?l=v:v==="("?o++:v===")"&&o--,!a&&l===!1&&o===0){if(v===":"&&h===-1)h=d;else if(v===";"||d===S-1){if(h!==-1){var p=Gn(t.substring(f,h).trim());if(!u.includes(p)){v!==";"&&d++;var m=t.substring(f,d).trim();n+=" "+m+";"}}f=d+1,h=-1}}}}return r&&(n+=ii(r)),i&&(n+=ii(i,!0)),n=n.trim(),n===""?null:n}return t==null?null:String(t)}function li(t,e,n,r,i,l){var o=t[nr];if(L||o!==n||o===void 0){var a=Yo(n,r,l);(!L||a!==t.getAttribute("class"))&&(a==null?t.removeAttribute("class"):e?t.className=a:t.setAttribute("class",a)),t[nr]=n}else if(l&&i!==l)for(var u in l){var f=!!l[u];(i==null||f!==!!i[u])&&t.classList.toggle(u,f)}return l}function Qn(t,e={},n,r){for(var i in n){var l=n[i];e[i]!==l&&(n[i]==null?t.style.removeProperty(i):t.style.setProperty(i,l,r))}}function ts(t,e,n,r){var i=t[rr];if(L||i!==e){var l=Uo(e,r);(!L||l!==t.getAttribute("style"))&&(l==null?t.removeAttribute("style"):t.style.cssText=l),t[rr]=e}else r&&(Array.isArray(r)?(Qn(t,n?.[0],r[0]),Qn(t,n?.[1],r[1],"important")):Qn(t,n,r));return r}var es=Symbol("is custom element"),ns=Symbol("is html"),rs=Nl?"link":"LINK";function is(t){if(L){var e=!1,n=()=>{if(!e){if(e=!0,t.hasAttribute("value")){var r=t.value;z(t,"value",null),t.value=r}if(t.hasAttribute("checked")){var i=t.checked;z(t,"checked",null),t.checked=i}}};t[Be]=n,Ot(n),bi()}}function z(t,e,n,r){var i=ls(t);L&&(i[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName===rs)||i[e]!==(i[e]=n)&&(e==="loading"&&(t[Dl]=n),n==null?t.removeAttribute(e):typeof n!="string"&&os(t).has(e)?t[e]=n:t.setAttribute(e,n))}function ls(t){return t[er]??(t[er]={[es]:t.nodeName.includes("-"),[ns]:t.namespaceURI==="http://www.w3.org/1999/xhtml"})}var oi=new Map;function os(t){var e=t.getAttribute("is")||t.nodeName,n=oi.get(e);if(n)return n;oi.set(e,n=new Set);for(var r,i=t,l=Element.prototype;l!==i;){r=Wl(i);for(var o in r)r[o].set&&o!=="innerHTML"&&o!=="textContent"&&o!=="innerText"&&n.add(o);i=fi(i)}return n}function ss(t,e,n=e){var r=new WeakSet;ro(t,"input",async i=>{var l=i?t.defaultValue:t.value;if(l=Xn(t)?Zn(l):l,n(l),x!==null&&r.add(x),await Po(),l!==(l=e())){var o=t.selectionStart,a=t.selectionEnd,u=t.value.length;if(t.value=l??"",a!==null){var f=t.value.length;o===a&&a===u&&f>u?(t.selectionStart=f,t.selectionEnd=f):(t.selectionStart=o,t.selectionEnd=Math.min(a,f))}}}),(L&&t.defaultValue!==t.value||On(e)==null&&t.value)&&(n(Xn(t)?Zn(t.value):t.value),x!==null&&r.add(x)),Tn(()=>{var i=e();if(t===document.activeElement){var l=Ce?bn:x;if(r.has(l))return}Xn(t)&&i===Zn(t.value)||t.type==="date"&&!i&&!t.value||i!==t.value&&(t.value=i??"")})}function Xn(t){var e=t.type;return e==="number"||e==="range"}function Zn(t){return t===""?null:+t}var al,$e=new WeakMap,jn=new WeakMap,Kn=new WeakMap,si=new WeakSet,ul=class{constructor(t){kr(this,si),k(this,$e,new WeakMap),k(this,jn,void 0),k(this,Kn,void 0),b(Kn,this,t)}observe(t,e){var n=s($e,this).get(t)||new Set;return n.add(e),s($e,this).set(t,n),E(si,this,as).call(this).observe(t,s(Kn,this)),()=>{var r=s($e,this).get(t);r.delete(e),r.size===0&&(s($e,this).delete(t),s(jn,this).unobserve(t))}}};al=ul;function as(){return s(jn,this)??b(jn,this,new ResizeObserver(t=>{for(var e of t){al.entries.set(e.target,e);for(var n of s($e,this).get(e.target)||[])n(e)}}))}H(ul,"entries",new WeakMap);function Yn(t,e){return t===e||t?.[Fe]===e}function Un(t=yr(),e,n,r){var i=V.r,l=j;return Fi(()=>{var o,a;return Tn(()=>{o=a,a=r?.()||[],On(()=>{Yn(n(...a),t)||(e(t,...a),o&&Yn(n(...o),t)&&e(null,...o))})}),()=>{let u=l;for(;u!==i&&u.parent!==null&&u.parent.f&33554432;)u=u.parent;const f=()=>{a&&Yn(n(...a),t)&&e(null,...a)},h=u.teardown;u.teardown=()=>{f(),h?.()}}}),t}var vn=!1;function us(t){var e=vn;try{return vn=!1,[t(),vn]}finally{vn=e}}function ai(t,e,n,r){var i=!zn||(n&2)!==0,l=(n&8)!==0,o=(n&16)!==0,a=r,u=!0,f=void 0,h=()=>o&&i?(f??(f=Qe(r)),c(f)):(u&&(u=!1,a=o?On(r):r),a);let d;if(l){var v=Fe in t||vi in t;d=fe(t,e)?.set??(v&&e in t?C=>t[e]=C:void 0)}var p,m=!1;l?[p,m]=us(()=>t[e]):p=t[e],p===void 0&&r!==void 0&&(p=h(),d&&(i&&Zl(e),d(p)));var S;if(i?S=()=>{var C=t[e];return C===void 0?h():(u=!0,C)}:S=()=>{var C=t[e];return C!==void 0&&(a=void 0),C===void 0?a:C},i&&(n&4)===0)return S;if(d){var g=t.$$legacy;return(function(C,K){return arguments.length>0?((!i||!K||g||m)&&d(K?S():C),C):S()})}var _=!1,R=((n&1)!==0?Qe:br)(()=>(_=!1,S()));l&&c(R);var N=j;return(function(C,K){if(arguments.length>0){const Y=K?c(R):i&&l?Kt(C):C;return M(R,Y),_=!0,a!==void 0&&(a=Y),C}return Gt&&_||(N.f&16384)!==0?R.v:c(R)})}function fs(t){return new cs(t)}var le=new WeakMap,jt=new WeakMap,cs=class{constructor(t){k(this,le,void 0),k(this,jt,void 0);var e=new Map,n=(i,l)=>{var o=Li(l,!1,!1);return e.set(i,o),o};const r=new Proxy({...t.props||{},$$events:{}},{get(i,l){return c(e.get(l)??n(l,Reflect.get(i,l)))},has(i,l){return l===vi?!0:(c(e.get(l)??n(l,Reflect.get(i,l))),Reflect.has(i,l))},set(i,l,o){return M(e.get(l)??n(l,o),o),Reflect.set(i,l,o)}});b(jt,this,(t.hydrate?qo:ol)(t.component,{target:t.target,anchor:t.anchor,props:r,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError})),(!t?.props?.$$host||t.sync===!1)&&Sn(),b(le,this,r.$$events);for(const i of Object.keys(s(jt,this)))i==="$set"||i==="$destroy"||i==="$on"||Je(this,i,{get(){return s(jt,this)[i]},set(l){s(jt,this)[i]=l},enumerable:!0});s(jt,this).$set=i=>{Object.assign(r,i)},s(jt,this).$destroy=()=>{Jo(s(jt,this))}}$set(t){s(jt,this).$set(t)}$on(t,e){s(le,this)[t]=s(le,this)[t]||[];const n=(...r)=>e.call(this,...r);return s(le,this)[t].push(n),()=>{s(le,this)[t]=s(le,this)[t].filter(r=>r!==n)}}$destroy(){s(jt,this).$destroy()}},fl;typeof HTMLElement=="function"&&(fl=class extends HTMLElement{constructor(t,e,n){super(),H(this,"$$ctor",void 0),H(this,"$$s",void 0),H(this,"$$c",void 0),H(this,"$$cn",!1),H(this,"$$d",{}),H(this,"$$r",!1),H(this,"$$p_d",{}),H(this,"$$l",{}),H(this,"$$l_u",new Map),H(this,"$$me",void 0),H(this,"$$shadowRoot",null),this.$$ctor=t,this.$$s=e,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(t,e,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const r=this.$$c.$on(t,e);this.$$l_u.set(e,r)}super.addEventListener(t,e,n)}removeEventListener(t,e,n){if(super.removeEventListener(t,e,n),this.$$c){const r=this.$$l_u.get(e);r&&(r(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(r){return i=>{const l=xr("slot");r!=="default"&&(l.name=r),Z(i,l)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},n=hs(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=t(r),e.default=!0):e[r]=t(r));for(const r of this.attributes){const i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=gn(i,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=fs({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=bo(()=>{Tn(()=>{this.$$r=!0;for(const r of mn(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=gn(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(const r in this.$$l)for(const i of this.$$l[r]){const l=this.$$c.$on(r,i);this.$$l_u.set(i,l)}this.$$l={}}}attributeChangedCallback(t,e,n){this.$$r||(t=this.$$g_p(t),this.$$d[t]=gn(t,n,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return mn(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function gn(t,e,n,r){const i=n[t]?.type;if(e=i==="Boolean"&&typeof e!="boolean"?e!=null:e,!r||!n[t])return e;if(r==="toAttribute")switch(i){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function hs(t){const e={};return t.childNodes.forEach(n=>{e[n.slot||"default"]=!0}),e}function vs(t,e,n,r,i,l){let o=class extends fl{constructor(){super(t,n,i),this.$$p_d=e}static get observedAttributes(){return mn(e).map(a=>(e[a].attribute||a).toLowerCase())}};return mn(e).forEach(a=>{Je(o.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(u){u=gn(a,u,e),this.$$d[a]=u;var f=this.$$c;f&&(fe(f,a)?.get?f[a]=u:f.$set({[a]:u}))}})}),r.forEach(a=>{Je(o.prototype,a,{get(){return this.$$c?.[a]}})}),l&&(o=l(o)),t.element=o,o}var ds=St('<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z"></path></svg>'),ps=St('<svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"></path></svg>'),gs=St('<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"></path></svg>'),ms=St('<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M3 6h18M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path></svg>'),ws=nl('<button type="button"><span class="pie-tool-graph__tool-icon svelte-v3lao1" aria-hidden="true"><!></span> <span class="pie-tool-graph__tool-label svelte-v3lao1"> </span></button>'),ys=St('<line x1="0" class="pie-tool-graph__grid-line pie-tool-graph__grid-line--minor svelte-v3lao1"></line>'),_s=St('<line x1="0" class="pie-tool-graph__grid-line pie-tool-graph__grid-line--major svelte-v3lao1"></line>'),bs=St('<line y1="0" y2="100" class="pie-tool-graph__grid-line pie-tool-graph__grid-line--minor svelte-v3lao1"></line>'),$s=St('<line y1="0" y2="100" class="pie-tool-graph__grid-line pie-tool-graph__grid-line--major svelte-v3lao1"></line>'),ks=St('<line class="pie-tool-graph__user-line svelte-v3lao1"></line>'),xs=St('<circle r="2" role="button" tabindex="0"></circle>'),Ms=St('<line class="pie-tool-graph__temp-line svelte-v3lao1"></line>'),Ss=nl('<div class="pie-tool-graph svelte-v3lao1" role="dialog" tabindex="-1"><div class="pie-tool-graph__toolbar svelte-v3lao1"><div class="pie-tool-graph__tool-buttons svelte-v3lao1"></div> <div class="pie-tool-graph__transparency-control svelte-v3lao1"><label for="grid-opacity" class="svelte-v3lao1"> </label> <input type="range" id="grid-opacity" min="0" max="1" step="0.1" class="svelte-v3lao1"/></div></div> <div class="pie-tool-graph__canvas-wrapper svelte-v3lao1" role="img" tabindex="0"><svg class="pie-tool-graph__canvas svelte-v3lao1" preserveAspectRatio="xMinYMin meet" aria-hidden="true"><g class="pie-tool-graph__grid-lines" aria-hidden="true"><!><!><!><!></g><g class="pie-tool-graph__lines"></g><g class="pie-tool-graph__points"></g><!></svg></div></div>'),Ws={hash:"svelte-v3lao1",code:`.pie-tool-graph.svelte-v3lao1 {position:relative;background:var(--pie-background, #fff);color:var(--pie-text, #111827);width:100%;height:100%;min-height:0;overflow:hidden;display:flex;flex-direction:column;}
|
|
4
|
+
|
|
5
|
+
/* Toolbar (matching production implementation: lighter teal) */.pie-tool-graph__toolbar.svelte-v3lao1 {padding:8px;background:var(--pie-primary-light, #5a7fa3); /* Lighter teal-like color */display:flex;gap:16px;align-items:center;flex-wrap:wrap;}.pie-tool-graph__tool-buttons.svelte-v3lao1 {display:flex;gap:4px;flex:1;}.pie-tool-graph__tool-button.svelte-v3lao1 {flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 12px;background:color-mix(in srgb, var(--pie-white, #fff) 20%, transparent);border:2px solid transparent;border-radius:4px;cursor:pointer;color:var(--pie-white, #fff);font-size:12px;transition:all 0.2s;}.pie-tool-graph__tool-button.svelte-v3lao1:hover {background:color-mix(in srgb, var(--pie-white, #fff) 30%, transparent);}.pie-tool-graph__tool-button.pie-tool-graph__tool-button--active.svelte-v3lao1 {background:var(--pie-background, #fff);color:var(--pie-primary-dark, #2c3e50);border-color:var(--pie-primary-dark, #2c3e50);}.pie-tool-graph__tool-icon.svelte-v3lao1 {width:20px;height:20px;display:flex;align-items:center;justify-content:center;}.pie-tool-graph__tool-label.svelte-v3lao1 {font-size:11px;font-weight:500;}.pie-tool-graph__transparency-control.svelte-v3lao1 {display:flex;align-items:center;gap:8px;color:var(--pie-white, #fff);font-size:12px;padding-left:8px;}.pie-tool-graph__transparency-control.svelte-v3lao1 label:where(.svelte-v3lao1) {font-weight:500;}.pie-tool-graph__transparency-control.svelte-v3lao1 input[type='range']:where(.svelte-v3lao1) {width:100px;cursor:pointer;}
|
|
6
|
+
|
|
7
|
+
/* Canvas wrapper */.pie-tool-graph__canvas-wrapper.svelte-v3lao1 {flex:1;background:var(--pie-background, #fff);display:flex;align-items:center;justify-content:center;overflow:hidden;}.pie-tool-graph__canvas.svelte-v3lao1 {display:block;width:100%;height:100%;}
|
|
8
|
+
|
|
9
|
+
/* Grid lines (matching production implementation: dark gray) */.pie-tool-graph__grid-line.svelte-v3lao1 {stroke:var(--pie-border-dark, #666);vector-effect:non-scaling-stroke;}.pie-tool-graph__grid-line--major.svelte-v3lao1 {stroke:var(--pie-border-dark, #333);stroke-width:0.75;}.pie-tool-graph__grid-line--minor.svelte-v3lao1 {stroke:var(--pie-border-light, #ccc);stroke-width:0.5;}
|
|
10
|
+
|
|
11
|
+
/* User drawing styles */.pie-tool-graph__user-point.svelte-v3lao1 {cursor:pointer;fill:var(--pie-primary, #3f51b5);stroke:var(--pie-primary-dark, #2c3e50);stroke-width:0.5;vector-effect:non-scaling-stroke;}.pie-tool-graph__user-point.pie-tool-graph__user-point--highlight.svelte-v3lao1 {fill:var(--pie-missing, #ffc107);stroke:var(--pie-missing-icon, #ff9800);}.pie-tool-graph__user-line.svelte-v3lao1 {stroke:var(--pie-text, #333);stroke-linecap:round;stroke-width:1;vector-effect:non-scaling-stroke;}.pie-tool-graph__temp-line.svelte-v3lao1 {pointer-events:none;stroke:var(--pie-correct, #4caf50);stroke-dasharray:2, 2;stroke-width:0.75;vector-effect:non-scaling-stroke;}`};function Es(t,e){mi(e,!0),Ko(t,Ws);let n=ai(e,"visible",7,!1),r=ai(e,"toolId",7,"graph"),i=F(void 0),l=F(void 0),o=F(void 0),a=F("selector"),u=F(Kt([])),f=F(Kt([])),h=F(1),d=F(1),v=F(null),p=F(null),m=F(null);const S=5,g=5,_=100/S,R=_/g;let N=F(0),C=F(0),K=ee(()=>{if(c(C)<=0||c(N)<=0)return 100;const y=c(C)/100,w=c(N)/y;return Math.max(100,w)}),Y=F(null);const D=ee(()=>Ml(c(Y))),Wt=ee(()=>[{name:"selector",icon:"selector",label:c(D).t("tools.graph.modeSelector"),title:c(D).t("tools.graph.modeSelectorHint")},{name:"point",icon:"point",label:c(D).t("tools.graph.modePoint"),title:c(D).t("tools.graph.modePointHint")},{name:"line",icon:"line",label:c(D).t("tools.graph.modeLine"),title:c(D).t("tools.graph.modeLineHint")},{name:"delete",icon:"delete",label:c(D).t("tools.graph.modeDelete"),title:c(D).t("tools.graph.modeDeleteHint")}]);Xr(()=>{if(c(l))return xl(c(l),y=>{M(Y,y,!0)})});function U(){return mo(h)}function lt(y){if(y!==null)return c(u).find(w=>w.id===y)}function en(y){if(!c(o))return null;const w=c(o).createSVGPoint();w.x=y.clientX,w.y=y.clientY;const A=c(o).getScreenCTM();if(!A)return null;try{const O=w.matrixTransform(A.inverse());return O.y=Math.max(0,Math.min(100,O.y)),O.x=Math.max(0,Math.min(c(K),O.x)),{x:O.x,y:O.y}}catch(O){return console.error("Error transforming point:",O),null}}function Cr(y,w=5){const A=w*w;let O=null,tt=1/0;for(const B of c(u)){const rn=B.x-y.x,we=B.y-y.y,Et=rn*rn+we*we;Et<tt&&Et<A&&(tt=Et,O=B)}return O}function cl(y){return y===c(v)||y===c(p)}function hl(y){if(c(a)==="delete"){M(u,c(u).filter(w=>w.id!==y),!0),M(f,c(f).filter(w=>w.p1Id!==y&&w.p2Id!==y),!0);return}if(c(a)==="line"){if(c(v)===null){M(v,y,!0);return}c(v)!==y&&(c(f).some(w=>w.p1Id===c(v)&&w.p2Id===y||w.p1Id===y&&w.p2Id===c(v))||M(f,[...c(f),{id:U(),p1Id:c(v),p2Id:y}],!0)),M(v,null),M(m,null)}}let nn=ee(()=>{const y={majorVertical:[],majorHorizontal:[],minorVertical:[],minorHorizontal:[]},w=c(K);for(let O=0;O<=S;O++){const tt=O*_;if(y.majorHorizontal.push(tt),O<S)for(let B=1;B<g;B++)y.minorHorizontal.push(tt+B*R)}let A=0;for(;A<=w;){if(y.majorVertical.push(A),A<w)for(let O=1;O<g;O++){const tt=A+O*R;if(tt<=w)y.minorVertical.push(tt);else break}A+=_}return y});function vl(y){M(a,y,!0),M(v,null),M(p,null),M(m,null)}function Ir(y){const w=en(y);if(!w)return;const A=Cr(w,R);switch(c(a)){case"point":M(u,[...c(u),{id:U(),x:w.x,y:w.y}],!0);break;case"line":const O=A??{id:U(),x:w.x,y:w.y};A||M(u,[...c(u),O],!0),c(v)===null?M(v,O.id,!0):(c(v)!==O.id&&(c(f).some(B=>B.p1Id===c(v)&&B.p2Id===O.id||B.p1Id===O.id&&B.p2Id===c(v))||M(f,[...c(f),{id:U(),p1Id:c(v),p2Id:O.id}],!0)),M(v,null),M(m,null));break;case"delete":const tt=Cr(w,2);tt&&(M(u,c(u).filter(B=>B.id!==tt.id),!0),M(f,c(f).filter(B=>B.p1Id!==tt.id&&B.p2Id!==tt.id),!0));break;case"selector":M(v,null),M(m,null)}}function dl(y,w){c(a)==="selector"&&(M(p,y,!0),w.target.setPointerCapture(w.pointerId))}function pl(y){const w=en(y);if(w&&(M(m,w,!0),c(p)!==null&&c(a)==="selector")){const A=lt(c(p));A&&(A.x=w.x,A.y=w.y,M(u,c(u),!0))}}function Lr(y){c(p)!==null&&(y.target?.hasPointerCapture(y.pointerId)&&y.target.releasePointerCapture(y.pointerId),M(p,null)),(c(a)!=="line"||c(v)===null)&&M(m,null)}let Le=null;Xr(()=>{if(c(i))return Le||(Le=new ResizeObserver(y=>{const{width:w,height:A}=y[0].contentRect;(Math.abs(c(N)-w)>.1||Math.abs(c(C)-A)>.1)&&(M(N,w,!0),M(C,A,!0))})),Le.observe(c(i)),()=>{Le&&Le.disconnect()}});var gl={get visible(){return n()},set visible(y=!1){n(y),Sn()},get toolId(){return r()},set toolId(y="graph"){r(y),Sn()}},zr=Vn(),ml=Rn(zr),wl=y=>{var w=Ss(),A=Bt(w),O=Bt(A);ie(O,21,()=>c(Wt),P=>P.name,(P,W)=>{var $=ws();let ot;var J=Bt($),wt=Bt(J),Ht=ct=>{Z(ct,ds())},ze=ct=>{Z(ct,ps())},te=ct=>{Z(ct,gs())},bl=ct=>{Z(ct,ms())};Oe(wt,ct=>{c(W).name==="selector"?ct(Ht):c(W).name==="point"?ct(ze,1):c(W).name==="line"?ct(te,2):c(W).name==="delete"&&ct(bl,3)}),ht(J);var $l=Qr(Pt(J,2),!0);ht($),Rt(()=>{ot=li($,1,"pie-tool-graph__tool-button svelte-v3lao1",null,ot,{"pie-tool-graph__tool-button--active":c(a)===c(W).name}),z($,"title",c(W).title),z($,"aria-label",c(W).title),z($,"aria-pressed",c(a)===c(W).name),ei($l,c(W).label)}),ne("click",$,()=>vl(c(W).name)),Z(P,$)}),ht(O);var tt=Pt(O,2),B=Bt(tt),rn=Qr(B,!0),we=Pt(B,2);is(we),ht(tt),ht(A);var Et=Pt(A,2),Ut=Bt(Et),ln=Bt(Ut),Tr=Bt(ln);ie(Tr,17,()=>c(nn).minorHorizontal,cn,(P,W)=>{var $=ys();Rt(()=>{z($,"y1",c(W)),z($,"x2",c(K)),z($,"y2",c(W))}),Z(P,$)});var Or=Pt(Tr);ie(Or,17,()=>c(nn).majorHorizontal,cn,(P,W)=>{var $=_s();Rt(()=>{z($,"y1",c(W)),z($,"x2",c(K)),z($,"y2",c(W))}),Z(P,$)});var Dr=Pt(Or);ie(Dr,17,()=>c(nn).minorVertical,cn,(P,W)=>{var $=bs();Rt(()=>{z($,"x1",c(W)),z($,"x2",c(W))}),Z(P,$)}),ie(Pt(Dr),17,()=>c(nn).majorVertical,cn,(P,W)=>{var $=$s();Rt(()=>{z($,"x1",c(W)),z($,"x2",c(W))}),Z(P,$)}),ht(ln);var Dn=Pt(ln);ie(Dn,21,()=>c(f),P=>P.id,(P,W)=>{const $=ee(()=>lt(c(W).p1Id)),ot=ee(()=>lt(c(W).p2Id));var J=Vn(),wt=Rn(J),Ht=ze=>{var te=ks();Rt(()=>{z(te,"x1",c($).x),z(te,"y1",c($).y),z(te,"x2",c(ot).x),z(te,"y2",c(ot).y)}),Z(ze,te)};Oe(wt,ze=>{c($)&&c(ot)&&ze(Ht)}),Z(P,J)}),ht(Dn);var Nn=Pt(Dn);ie(Nn,21,()=>c(u),P=>P.id,(P,W)=>{var $=xs();let ot;Rt((J,wt)=>{z($,"cx",c(W).x),z($,"cy",c(W).y),ot=li($,0,"pie-tool-graph__user-point svelte-v3lao1",null,ot,{"pie-tool-graph__user-point--highlight":J}),z($,"data-id",c(W).id),z($,"aria-label",wt)},[()=>cl(c(W).id),()=>c(D).t("tools.graph.pointA11y",{id:c(W).id})]),ne("pointerdown",$,J=>{J.stopPropagation(),dl(c(W).id,J)}),ne("keydown",$,J=>{(J.key==="Enter"||J.key===" ")&&(J.preventDefault(),hl(c(W).id))}),Z(P,$)}),ht(Nn);var yl=Pt(Nn),_l=P=>{const W=ee(()=>lt(c(v)));var $=Vn(),ot=Rn($),J=wt=>{var Ht=Ms();Rt(()=>{z(Ht,"x1",c(W).x),z(Ht,"y1",c(W).y),z(Ht,"x2",c(m).x),z(Ht,"y2",c(m).y)}),Z(wt,Ht)};Oe(ot,wt=>{c(W)&&wt(J)}),Z(P,$)};Oe(yl,P=>{c(v)&&c(m)&&P(_l)}),ht(Ut),Un(Ut,P=>M(o,P),()=>c(o)),ht(Et),Un(Et,P=>M(i,P),()=>c(i)),ht(w),Un(w,P=>M(l,P),()=>c(l)),Rt((P,W,$,ot,J,wt)=>{z(w,"lang",P),z(w,"dir",W),z(w,"aria-label",$),z(w,"data-tool-id",r()),ei(rn,ot),z(we,"aria-label",J),z(Et,"aria-label",wt),z(Ut,"viewBox",`0 0 ${c(K)??""} 100`),ts(ln,`opacity: ${c(d)??""}`),w.dir=w.dir},[()=>c(D).getLocale(),()=>c(D).getDirection?.()??"ltr",()=>c(D).t("tools.graph.toolA11y"),()=>c(D).t("tools.graph.grid"),()=>c(D).t("tools.graph.gridOpacityA11y"),()=>c(D).t("tools.graph.canvasA11y")]),ss(we,()=>c(d),P=>M(d,P)),ne("click",Et,Ir),ne("keydown",Et,P=>{(P.key==="Enter"||P.key===" ")&&(P.preventDefault(),Ir(P))}),ne("pointermove",Ut,pl),ne("pointerup",Ut,Lr),Co("pointerleave",Ut,Lr),Z(y,w)};return Oe(ml,y=>{n()&&y(wl)}),Z(t,zr),wi(gl)}Io(["click","keydown","pointermove","pointerup","pointerdown"]);Ps("pie-tool-graph",vs(Es,{visible:{attribute:"visible",type:"Boolean"},toolId:{attribute:"tool-id",type:"String"}},[],[],{mode:"open"},kl));function Ps(t,e){customElements.get(t)||customElements.define(t,e)}export{Es as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as r}from"./defineProperty-a20a667d.js";function d(t,e=!1){if(typeof t=="boolean")return t;if(t==null)return e;const s=String(t).trim().toLowerCase();return s===""?e:["false","0","off","no"].includes(s)?!1:["true","1","on","yes"].includes(s)?!0:!!s}function v(t){return t!==null&&d(t,!0)}var f=(t,e)=>{const s=t.$$p_d;return s?Object.entries(s).some(([n,o])=>o.type==="Boolean"&&(o.attribute??n.toLowerCase())===e):!1};function _(t){const e=t.prototype.attributeChangedCallback;return class extends t{attributeChangedCallback(s,n,o){const i=o!==null&&f(this,s)&&!v(o)?null:o;e?.call(this,s,n,i)}}}var b=class extends Event{constructor(t,e,s,n){super("context-request",{bubbles:!0,composed:!0}),r(this,"context",void 0),r(this,"contextTarget",void 0),r(this,"callback",void 0),r(this,"subscribe",void 0),this.context=t,this.contextTarget=e,this.callback=s,this.subscribe=n??!1}},A=class extends Event{constructor(t,e){super("context-provider",{bubbles:!0,composed:!0}),r(this,"context",void 0),r(this,"contextTarget",void 0),this.context=t,this.contextTarget=e}},x=class{constructor(t,e){r(this,"host",void 0),r(this,"context",void 0),r(this,"subscribe",void 0),r(this,"onValue",void 0),r(this,"isConnected",!1),r(this,"unsubscribe",void 0),r(this,"currentValue",void 0),r(this,"handleValue",(s,n)=>{n!==this.unsubscribe&&(this.unsubscribe?.(),this.unsubscribe=n),!this.subscribe&&this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0),this.currentValue=s,this.onValue?.(s)}),this.host=t,this.context=e.context,this.subscribe=e.subscribe??!0,this.onValue=e.onValue}connect(){this.isConnected||(this.isConnected=!0,this.requestValue())}disconnect(){this.isConnected&&(this.isConnected=!1,this.unsubscribe?.(),this.unsubscribe=void 0)}get value(){return this.currentValue}requestValue(){this.host.dispatchEvent(new b(this.context,this.host,this.handleValue,this.subscribe))}},B=(t,e)=>{let s;return t.dispatchEvent(new b(e,t,n=>{s=n},!1)),s},C=50,m=200,a=(t,e,s)=>{let n=!1;const o=new x(t,{context:e,subscribe:!0,onValue:c=>{n=!0,s(c)}});o.connect();const i=c=>{c.context===e&&o.requestValue()};t.addEventListener("context-provider",i);let l=0;const h=globalThis.setInterval(()=>{if(n||l>=m){globalThis.clearInterval(h);return}l+=1,o.requestValue()},C);return()=>{globalThis.clearInterval(h),t.removeEventListener("context-provider",i),o.disconnect()}},u=t=>t,T=u(Symbol.for("pie.assessmentToolkit.runtimeContext")),q=u(Symbol.for("pie.assessmentToolkit.hostRuntimeContext")),p=u(Symbol.for("pie.assessmentToolkit.shellContext")),R=u(Symbol.for("pie.assessmentToolkit.regionScopeContext"));function g(t,e){return a(t,T,e)}function E(t,e){return a(t,p,e)}function k(t,e){return a(t,R,e)}var V={bubbles:!0,composed:!0,cancelable:!1};function S(t,e,s={}){return new CustomEvent(t,{detail:e,...V,...s})}function I(t,e,s,n={}){return t.dispatchEvent(S(e,s,n))}function P(t,e){return g(t,e)}function L(t,e){return E(t,e)}function O(t,e){return k(t,e)}function w(t,e){let s=null;function n(){s?.coordinator.unregisterTool(s.toolId),s=null}return{sync(o,i){!o||!i||s?.coordinator===o&&s.toolId===i||(n(),o.registerTool(i,t,void 0,e),s={coordinator:o,toolId:i})},release:n}}export{d as _,I as a,E as c,u as d,a as f,_ as g,b as h,w as i,R as l,A as m,P as n,k as o,B as p,L as r,g as s,O as t,p as u};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import{g as Yi,i as Vi,n as Gi}from"./tool-host-contract-b93b482c.js";import{i as Ki}from"./provider-4c704118.js";import{t as Ji}from"./ToolCoordinator-cc2dc319.js";import{n as Zi,r as Qi,s as to}from"./overlay-containment-edaaff13.js";import{t as eo}from"./pointer-gesture-ce75f0a7.js";if(typeof window<"u"){var ir,or;((ir=(or=window).__svelte??(or.__svelte={})).v??(ir.v=new Set)).add("5")}var Jt={},j=Symbol("uninitialized"),no=Array.isArray,ro=Array.prototype.indexOf,wn=Array.prototype.includes,io=Array.from,Ie=Object.keys,he=Object.defineProperty,jt=Object.getOwnPropertyDescriptor,oo=Object.getOwnPropertyDescriptors,so=Object.prototype,ao=Array.prototype,Sr=Object.getPrototypeOf,sr=Object.isExtensible,lo=()=>{};function uo(t){for(var e=0;e<t.length;e++)t[e]()}function Wr(){var t,e;return{promise:new Promise((n,r)=>{t=n,e=r}),resolve:t,reject:e}}function ce(t){"@babel/helpers - typeof";return ce=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ce(t)}function fo(t,e){if(ce(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(ce(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ho(t){var e=fo(t,"string");return ce(e)=="symbol"?e:e+""}function E(t,e,n){return(e=ho(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var G=1024,ot=2048,Ht=4096,Rn=8192,co=16384,zn=32768,ar=1<<25,jn=65536,ne=1<<19,vo=1<<20,lr=1<<21,po=1<<22,Be=1<<23,le=Symbol("$state"),Ar=Symbol("component"),Er=Symbol("legacy props"),wo=Symbol(""),mn=Symbol("attributes"),mo=Symbol("class"),gn=Symbol("style"),Ne=Symbol("text"),me=new class extends Error{constructor(...t){super(...t),E(this,"name","StaleReactionError"),E(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},go=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml");function bo(){console.warn("https://svelte.dev/e/derived_inert")}function Ze(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function yo(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}var T=!1;function Yt(t){T=t}var W;function it(t){if(t===null)throw Ze(),Jt;return W=t}function On(){return it(yt(W))}function Tr(t){if(T){if(yt(W)!==null)throw Ze(),Jt;W=t}}function $o(t=1){if(T){for(var e=t,n=W;e--;)n=yt(n);W=n}}function Pr(t=!0){for(var e=0,n=W;;){if(n.nodeType===8){var r=n.data;if(r==="]"){if(e===0)return n;e-=1}else(r==="["||r==="[!"||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(e+=1)}var i=yt(n);t&&n.remove(),n=i}}function ko(t){if(!t||t.nodeType!==8)throw Ze(),Jt;return t.data}function Rr(t){return t===this.v}function _o(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function zr(t){return!_o(t,this.v)}function xo(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Mo(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function So(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Wo(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Ao(t){throw new Error("https://svelte.dev/e/effect_orphan")}function Eo(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function To(){throw new Error("https://svelte.dev/e/hydration_failed")}function Po(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Ro(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function zo(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function jo(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Oo(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}var Qe=!1,ge=!1,P=null;function Zt(t){P=t}function jr(t,e=!1,n){P={p:P,i:!1,c:null,e:null,s:t,x:null,r:k,l:ge&&!e?{s:null,u:null,$:[]}:null}}function Or(t){var e=P,n=e.e;if(n!==null){e.e=null;for(var r of n)ei(r)}return t!==void 0&&(e.x=t),e.i=!0,P=e.p,Dn(t)}function Dn(t={}){return he(t,Ar,{value:!0}),t}function be(){return!ge||P!==null&&P.l===null}var Rt=[];function Dr(){var t=Rt;Rt=[],uo(t)}function Nt(t){if(Rt.length===0&&!ue){var e=Rt;queueMicrotask(()=>{e===Rt&&Dr()})}Rt.push(t)}function Do(){for(;Rt.length>0;)Dr()}var Lo=~(ot|Ht|G);function R(t,e){t.f=t.f&Lo|e}function Ln(t){(t.f&512)!==0||t.deps===null?R(t,G):R(t,Ht)}function Lr(t,e,n){(t.f&2048)!==0?e.add(t):t.f&4096&&n.add(t),R(t,G)}function tn(t){var e=M,n=k;K(null),dt(null);try{return t()}finally{K(e),dt(n)}}function No(t,e,n,r){const i=be()?de:Cr;var o=t.filter(p=>!p.settled),a=e.map(i);if(n.length===0&&o.length===0){r(a);return}var l=k,h=Co(),u=o.length===1?o[0].promise:o.length>1?Promise.all(o.map(p=>p.promise)):null;function d(p){if((l.f&16384)===0){h();try{r([...a,...p])}catch(m){ct(m,l)}Fe()}}var v=Nr();if(n.length===0){u.then(()=>d([])).finally(v);return}function w(){Promise.all(n.map(p=>Ho(p))).then(d).catch(p=>ct(p,l)).finally(v)}u?u.then(()=>{h(),w(),Fe()}):w()}function Co(){var t=k,e=M,n=P,r=x;return function(i=!0){dt(t),K(e),Zt(n),i&&!(t.f&16384)&&(r?.activate(),r?.apply())}}function Fe(t=!0){dt(null),K(null),Zt(null),t&&x?.deactivate()}function Nr(){var t=k,e=t.b,n=x,r=!!e?.is_rendered();return e?.update_pending_count(1,n),n.increment(r,t),()=>{e?.update_pending_count(-1,n),n.decrement(r,t)}}function de(t){var e=2|ot;return k!==null&&(k.f|=ne),{ctx:P,deps:null,effects:null,equals:Rr,f:e,fn:t,reactions:null,rv:0,v:j,wv:0,parent:k,ac:null}}var se=Symbol("obsolete");function Ho(t,e,n){let r=k;r===null&&Mo();var i=void 0,o=ye(j),a=!M,l=new Set;return ss(()=>{var h=k,u=Wr();i=u.promise;try{Promise.resolve(t()).then(u.resolve,p=>{p!==me&&u.reject(p)}).finally(Fe)}catch(p){u.reject(p),Fe()}var d=x;if(a){if((h.f&32768)!==0)var v=Nr();if(r.b?.is_rendered())d.async_deriveds.get(h)?.reject(se);else for(const p of l.values())p.reject(se);l.add(u),d.async_deriveds.set(h,u)}const w=(p,m=void 0)=>{v?.(),l.delete(u),m!==se&&(d.activate(),m?(o.f|=Be,Ge(o,m)):(o.f&8388608&&(o.f^=Be),Ge(o,p)),d.deactivate())};u.promise.then(w,p=>w(null,p||"unknown"))}),rs(()=>{for(const h of l)h.reject(se)}),new Promise(h=>{function u(d){function v(){d===i?h(o):u(i)}d.then(v,v)}u(i)})}function on(t){const e=de(t);return ui(e),e}function Cr(t){const e=de(t);return e.equals=zr,e}function Io(t){var e=t.effects;if(e!==null){t.effects=null;for(var n=0;n<e.length;n+=1)F(e[n])}}function Nn(t){var e,n=k,r=t.parent;if(!bt&&r!==null&&t.v!==j&&(r.f&24576)!==0)return bo(),t.v;dt(r);try{Io(t),e=di(t)}finally{dt(n)}return e}function Hr(t){var e=Nn(t);if(!t.equals(e)&&(t.wv=hi(),(!x?.is_fork||t.deps===null)&&(x!==null?(x.capture(t,e,!0),yn?.capture(t,e,!0)):t.v=e,t.deps===null))){R(t,G);return}bt||(H!==null?(Bn()||x?.is_fork)&&H.set(t,e):Ln(t))}function Bo(t){if(t.effects!==null)for(const e of t.effects)(e.teardown||e.ac)&&(e.teardown?.(),e.ac!==null&&tn(()=>{e.ac.abort(me),e.ac=null}),e.fn!==null&&(e.teardown=lo),pe(e,0),qn(e))}function Ir(t){if(t.effects!==null)for(const e of t.effects)e.teardown&&e.fn!==null&&te(e)}function Br(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Cn(t,e){Br(t,e),e.add(t)}function b(t,e,n){Br(t,e),e.set(t,n)}function y(t,e,n){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}function g(t,e,n){return t.set(y(t,e),n),n}function s(t,e){return t.get(y(t,e))}var Fr,bn=null,Ft=null,x=null,yn=null,H=null,$n=null,ue=!1,sn=!1,ve=null,qe=null,qr=0,Fo=1,kn=new WeakMap,Ot=new WeakMap,Vt=new WeakMap,Ue=new WeakMap,Pe=new WeakMap,qt=new WeakMap,Et=new WeakMap,ae=new WeakMap,ut=new WeakMap,ur=new WeakMap,Qt=new WeakMap,wt=new WeakMap,kt=new WeakMap,an=new WeakMap,Re=new WeakMap,z=new WeakSet,It=class Ur{constructor(){Cn(this,z),E(this,"id",Fo++),b(this,kn,!1),E(this,"linked",!0),b(this,Ot,null),b(this,Vt,null),E(this,"async_deriveds",new Map),E(this,"current",new Map),E(this,"previous",new Map),b(this,Ue,new Set),b(this,Pe,new Set),b(this,qt,0),b(this,Et,new Map),b(this,ae,null),b(this,ut,[]),b(this,ur,[]),b(this,Qt,new Set),b(this,wt,new Set),b(this,kt,new Map),b(this,an,new Set),E(this,"is_fork",!1),b(this,Re,!1),Ft===null?bn=Ft=this:(g(Vt,Ft,this),g(Ot,this,Ft)),Ft=this}skip_effect(e){s(kt,this).has(e)||s(kt,this).set(e,{d:[],m:[]}),s(an,this).delete(e)}unskip_effect(e,n=r=>this.schedule(r)){var r=s(kt,this).get(e);if(r){s(kt,this).delete(e);for(var i of r.d)R(i,ot),n(i);for(i of r.m)R(i,Ht),n(i)}s(an,this).add(e)}capture(e,n,r=!1){e.v!==j&&!this.previous.has(e)&&this.previous.set(e,e.v),!(e.f&8388608)&&(this.current.set(e,[n,r]),H?.set(e,n)),this.is_fork||(e.v=n)}activate(){x=this}deactivate(){x=null,H=null}flush(){try{sn=!0,x=this,y(z,this,Xe).call(this)}finally{qr=0,$n=null,ve=null,qe=null,sn=!1,x=null,H=null,ht.clear()}}discard(){for(const e of s(Pe,this))e(this);s(Pe,this).clear();for(const e of this.async_deriveds.values())e.reject(se);y(z,this,Ye).call(this),s(ae,this)?.resolve()}register_created_effect(e){s(ur,this).push(e)}increment(e,n){if(g(qt,this,s(qt,this)+1),e){let r=s(Et,this).get(n)??0;s(Et,this).set(n,r+1)}}decrement(e,n){if(g(qt,this,s(qt,this)-1),e){let r=s(Et,this).get(n)??0;r===1?s(Et,this).delete(n):s(Et,this).set(n,r-1)}s(Re,this)||(g(Re,this,!0),Nt(()=>{g(Re,this,!1),this.linked&&this.flush()}))}transfer_effects(e,n){for(const r of e)s(Qt,this).add(r);for(const r of n)s(wt,this).add(r);e.clear(),n.clear()}oncommit(e){s(Ue,this).add(e)}ondiscard(e){s(Pe,this).add(e)}settled(){return(s(ae,this)??g(ae,this,Wr())).promise}static ensure(){if(x===null){const e=x=new Ur;!sn&&!ue&&Nt(()=>{s(kn,e)||e.flush()})}return x}apply(){if(!Qe||!this.is_fork&&s(Ot,this)===null&&s(Vt,this)===null){H=null;return}H=new Map;for(const[n,[r]]of this.current)H.set(n,r);for(let n=bn;n!==null;n=s(Vt,n))if(!(n===this||n.is_fork)){var e=!1;if(n.id<this.id){for(const[r,[,i]]of n.current)if(!i&&this.current.has(r)){e=!0;break}}if(!e)for(const[r,i]of n.previous)H.has(r)||H.set(r,i)}}schedule(e){if($n=e,e.b?.is_pending&&(e.f&16777228)!==0&&(e.f&32768)===0){e.b.defer_effect(e);return}s(ut,this).push(e)}};Fr=It;function fr(){if(this.is_fork)return!0;for(const n of s(Et,this).keys()){for(var t=n,e=!1;t.parent!==null;){if(s(kt,this).has(t)){e=!0;break}t=t.parent}if(!e)return!0}return!1}function qo(){var t=[];for(const i of s(ut,this))if(!((i.f&16384)!==0||(i.f&6144)===0)){for(var e=i,n=!1;e.parent!==null;){e=e.parent;var r=e.f;if((r&96)!==0){if((r&1024)===0){n=!0;break}e.f^=G}}n||t.push(e)}return g(ut,this,[]),t}function Xe(){g(kn,this,!0);for(const a of s(Qt,this))s(wt,this).delete(a),R(a,ot),this.schedule(a);for(const a of s(wt,this))R(a,Ht),this.schedule(a);this.apply();for(var t=ve=[],e=[],n=qe=[];s(ut,this).length>0;){qr++>1e3&&(y(z,this,Ye).call(this),Vo());for(const a of y(z,this,qo).call(this))try{y(z,this,Uo).call(this,a,t,e)}catch(l){throw Vr(a),y(z,this,fr).call(this)||this.discard(),l}}if(x=null,n.length>0){var r=Fr.ensure();for(const a of n)r.schedule(a)}if(ve=null,qe=null,y(z,this,fr).call(this)){y(z,this,ze).call(this,e),y(z,this,ze).call(this,t);for(const[a,l]of s(kt,this))Yr(a,l);n.length>0&&y(z,x,Xe).call(x);return}const i=y(z,this,Xo).call(this);if(i){y(z,this,ze).call(this,e),y(z,this,ze).call(this,t),y(z,i,Yo).call(i,this);return}s(Qt,this).clear(),s(wt,this).clear();for(const a of s(Ue,this))a(this);s(Ue,this).clear(),yn=this,hr(e),hr(t),yn=null,s(ae,this)?.resolve();var o=x;if(s(qt,this)===0&&(s(ut,this).length===0||o!==null)&&y(z,this,Ye).call(this),s(ut,this).length>0)if(o!==null){for(const a of s(ut,this))s(ut,o).push(a);g(ut,this,[])}else o=this;o!==null&&(ht.clear(),y(z,o,Xe).call(o))}function Uo(t,e,n){t.f^=G;for(var r=t.first;r!==null;){var i=r.f,o=(i&96)!==0;if(!(o&&(i&1024)!==0||(i&8192)!==0||s(kt,this).has(r))&&r.fn!==null){o?r.f^=G:(i&4)!==0?e.push(r):Qe&&(i&16777224)!==0?n.push(r):ke(r)&&(i&16&&s(wt,this).add(r),te(r));var a=r.first;if(a!==null){r=a;continue}}for(;r!==null;){var l=r.next;if(l!==null){r=l;break}r=r.parent}}}function Xo(){for(var t=s(Ot,this);t!==null;){if(!t.is_fork){for(const[e,[,n]]of this.current)if(t.current.has(e)&&!n)return t}t=s(Ot,t)}return null}function Yo(t){for(const[n,r]of t.current)!this.previous.has(n)&&t.previous.has(n)&&this.previous.set(n,t.previous.get(n)),this.current.set(n,r);for(const[n,r]of t.async_deriveds){const i=this.async_deriveds.get(n);i&&r.promise.then(i.resolve).catch(i.reject)}t.async_deriveds.clear(),this.transfer_effects(s(Qt,t),s(wt,t));const e=n=>{var r=n.reactions;if(r!==null&&!((n.f&2)!==0&&(n.f&6144)===0))for(const a of r){var i=a.f;if((i&2)!==0)e(a);else{var o=a;i&4194320&&!this.async_deriveds.has(o)&&(s(wt,this).delete(o),R(o,ot),this.schedule(o))}}};for(const n of this.current.keys())e(n);this.oncommit(()=>t.discard()),y(z,t,Ye).call(t),x=this,y(z,this,Xe).call(this)}function ze(t){for(var e=0;e<t.length;e+=1)Lr(t[e],s(Qt,this),s(wt,this))}function Ye(){if(this.linked){var t=s(Ot,this),e=s(Vt,this);t===null?bn=e:g(Vt,t,e),e===null?Ft=t:g(Ot,e,t),this.linked=!1}}function _n(t){var e=ue;ue=!0;try{var n;for(t&&(x!==null&&!x.is_fork&&x.flush(),n=t());;){if(Do(),x===null)return n;x.flush()}}finally{ue=e}}function Vo(){try{Eo()}catch(t){ct(t,$n)}}var lt=null;function hr(t){var e=t.length;if(e!==0){for(var n=0;n<e;){var r=t[n++];if((r.f&24576)===0&&ke(r)&&(lt=new Set,te(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&oi(r),lt?.size>0)){ht.clear();for(const i of lt){if((i.f&24576)!==0)continue;const o=[i];let a=i.parent;for(;a!==null;)lt.has(a)&&(lt.delete(a),o.push(a)),a=a.parent;for(let l=o.length-1;l>=0;l--){const h=o[l];!(h.f&24576)&&te(h)}}lt.clear()}}lt=null}}function Xr(t){x.schedule(t)}function Yr(t,e){if(!((t.f&32)!==0&&(t.f&1024)!==0)){(t.f&2048)!==0?e.d.push(t):t.f&4096&&e.m.push(t),R(t,G);for(var n=t.first;n!==null;)Yr(n,e),n=n.next}}function Vr(t){R(t,G);for(var e=t.first;e!==null;)Vr(e),e=e.next}var Ve=new Set,ht=new Map,Gr=!1;function ye(t,e){return{f:0,v:t,reactions:null,equals:Rr,rv:0,wv:0}}function N(t,e){const n=ye(t,e);return ui(n),n}function Go(t,e=!1,n=!0){const r=ye(t);if(e||(r.equals=zr),ge&&n&&P!==null&&P.l!==null){var i;((i=P.l).s??(i.s=[])).push(r)}return r}function S(t,e,n=!1){return M!==null&&(!Q||M.f&131072)&&be()&&M.f&4325394&&(et===null||!et.has(t))&&jo(),Ge(t,n?_t(e):e,qe)}var Pt=null,xn=0;function Ge(t,e,n=null){if(!t.equals(e)){bt?ht.set(t,e):ht.has(t)||ht.set(t,t.v);var r=It.ensure();if(r.capture(t,e),(t.f&2)!==0){const i=t;t.f&2048&&Nn(i),H===null&&Ln(i)}t.wv=hi(),Pt=null,xn=0,Kr(t,ot,n),Pt=null,be()&&k!==null&&k.f&1024&&!(k.f&96)&&(V===null?hs([t]):V.push(t)),!r.is_fork&&Ve.size>0&&!Gr&&Ko()}return e}function Ko(){Gr=!1;for(const t of Ve){t.f&1024&&R(t,Ht);let e;try{e=ke(t)}catch{e=!0}e&&te(t)}Ve.clear()}function fe(t){S(t,t.v+1)}function Kr(t,e,n){var r=t.reactions;if(r!==null){var i=be(),o=r.length;if(xn+=o,xn>1e5&&Pt===null&&(Pt=new Set),Pt!==null){if(Pt.has(t))return;Pt.add(t)}for(var a=0;a<o;a++){var l=r[a],h=l.f;if(!(!i&&l===k)){var u=(h&ot)===0;if(u&&R(l,e),(h&131072)!==0)Ve.add(l);else if((h&2)!==0){var d=l;H?.delete(d),Kr(d,Ht,n)}else if(u){var v=l;h&16&<!==null&<.add(v),n!==null?n.push(v):Xr(v)}}}}}function _t(t){if(typeof t!="object"||t===null||le in t||Ar in t)return t;const e=Sr(t);if(e!==so&&e!==ao)return t;var n=new Map,r=no(t),i=N(0),o=null,a=Dt,l=h=>{if(Dt===a)return h();var u=M,d=Dt;K(null),wr(a);var v=h();return K(u),wr(d),v};return r&&n.set("length",N(t.length,o)),new Proxy(t,{defineProperty(h,u,d){(!("value"in d)||d.configurable===!1||d.enumerable===!1||d.writable===!1)&&Ro();var v=n.get(u);return v===void 0?l(()=>{var w=N(d.value,o);return n.set(u,w),w}):S(v,d.value,!0),!0},deleteProperty(h,u){var d=n.get(u);if(d===void 0){if(u in h){const v=l(()=>N(j,o));n.set(u,v),fe(i)}}else S(d,j),fe(i);return!0},get(h,u,d){if(u===le)return t;var v=n.get(u),w=u in h;if(v===void 0&&(!w||jt(h,u)?.writable)&&(v=l(()=>N(_t(w?h[u]:j),o)),n.set(u,v)),v!==void 0){var p=f(v);return p===j?void 0:p}return Reflect.get(h,u,d)},getOwnPropertyDescriptor(h,u){this.has?.(h,u);var d=Reflect.getOwnPropertyDescriptor(h,u),v=n.get(u);if(v!==void 0){var w=f(v);if(w===j)return;if(d&&"value"in d)d.value=w;else return{enumerable:!0,configurable:!0,value:w,writable:!0}}return d},has(h,u){if(u===le)return!0;var d=n.get(u),v=d!==void 0&&d.v!==j||Reflect.has(h,u);return(d!==void 0||k!==null&&(!v||jt(h,u)?.writable))&&(d===void 0&&(d=l(()=>N(v?_t(h[u]):j,o)),n.set(u,d)),f(d)===j)?!1:v},set(h,u,d,v){var w=n.get(u),p=u in h;if(r&&u==="length")for(var m=d;m<w.v;m+=1){var _=n.get(m+"");_!==void 0?S(_,j):m in h&&(_=l(()=>N(j,o)),n.set(m+"",_))}if(w===void 0)(!p||jt(h,u)?.writable)&&(w=l(()=>N(void 0,o)),S(w,_t(d)),n.set(u,w));else{p=w.v!==j;var A=l(()=>_t(d));S(w,A)}var D=Reflect.getOwnPropertyDescriptor(h,u);if(D?.set&&D.set.call(v,d),!p){if(r&&typeof u=="string"){var I=n.get("length"),J=Number(u);Number.isInteger(J)&&J>=I.v&&S(I,J+1)}fe(i)}return!0},ownKeys(h){f(i);var u=Reflect.ownKeys(h).filter(w=>{var p=n.get(w);return p===void 0||p.v!==j});for(var[d,v]of n)v.v!==j&&!(d in h)&&u.push(d);return u},setPrototypeOf(){zo()}})}var cr,Jr,Zr,Qr;function Mn(){if(cr===void 0){cr=window,Jr=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,n=Text.prototype;Zr=jt(e,"firstChild").get,Qr=jt(e,"nextSibling").get,sr(t)&&(t[mo]=void 0,t[mn]=null,t[gn]=void 0,t.__e=void 0),sr(n)&&(n[Ne]=void 0)}}function mt(t=""){return document.createTextNode(t)}function Ct(t){return Zr.call(t)}function yt(t){return Qr.call(t)}function ti(t,e){if(!T)return Ct(t);var n=Ct(W);if(n===null)n=W.appendChild(mt());else if(e&&n.nodeType!==3){var r=mt();return n?.before(r),it(r),r}return e&&In(n),it(n),n}function dr(t,e=!1){if(!T){var n=Ct(t);return n instanceof Comment&&n.data===""?yt(n):n}if(e){if(W?.nodeType!==3){var r=mt();return W?.before(r),it(r),r}In(W)}return W}function Jo(t,e=!1){if(!T)return Ct(t);var n=ti(t,e);return Tr(t),n}function je(t,e=1,n=!1){let r=T?W:t;for(var i;e--;)i=r,r=yt(r);if(!T)return r;if(n){if(r?.nodeType!==3){var o=mt();return r===null?i?.after(o):r.before(o),it(o),o}In(r)}return it(r),r}function Zo(t){t.textContent=""}function Qo(){return!Qe||lt!==null?!1:(k.f&zn)!==0}function Hn(t,e,n){return e==null||e==="http://www.w3.org/1999/xhtml"?n?document.createElement(t,{is:n}):document.createElement(t):n?document.createElementNS(e,t,{is:n}):document.createElementNS(e,t)}function In(t){if(t.nodeValue.length<65536)return;let e=t.nextSibling;for(;e!==null&&e.nodeType===3;)e.remove(),t.nodeValue+=e.nodeValue,e=t.nextSibling}function ts(t){var e=k;if(e===null)return M.f|=Be,t;if((e.f&32768)===0&&(e.f&4)===0)throw t;ct(t,e)}function ct(t,e){if(!(e!==null&&(e.f&16384)!==0)){for(;e!==null;){if((e.f&128)!==0&&(e.f&33570816)===0){if((e.f&32768)===0)throw t;try{e.b.error(t);return}catch(n){t=n}}e=e.parent}throw t}}function es(t){k===null&&(M===null&&Ao(t),Wo()),bt&&So(t)}function ns(t,e){var n=e.last;n===null?e.last=e.first=t:(n.next=t,t.prev=n,e.last=t)}function vt(t,e){var n=k;n!==null&&n.f&8192&&(t|=Rn);var r={ctx:P,deps:null,nodes:null,f:t|ot|512,first:null,fn:e,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};x?.register_created_effect(r);var i=r;if((t&4)!==0)ve!==null?ve.push(r):It.ensure().schedule(r);else if(e!==null){try{te(r)}catch(a){throw F(r),a}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,t&16&&t&65536&&i!==null&&(i.f|=jn))}if(i!==null&&(i.parent=n,n!==null&&ns(i,n),M!==null&&(M.f&2)!==0&&(t&64)===0)){var o=M;(o.effects??(o.effects=[])).push(i)}return r}function Bn(){return M!==null&&!Q}function rs(t){const e=vt(8,null);return R(e,G),e.teardown=t,e}function Tt(t){es("$effect");var e=k.f;if(!M&&(e&32)!==0&&P!==null&&!P.i){var n=P;(n.e??(n.e=[])).push(t)}else return ei(t)}function ei(t){return vt(4|vo,t)}function is(t){It.ensure();const e=vt(64|ne,t);return()=>{F(e)}}function os(t){It.ensure();const e=vt(64|ne,t);return(n={})=>new Promise(r=>{n.outro?$e(e,()=>{F(e),r(void 0)}):(F(e),r(void 0))})}function ni(t){return vt(4,t)}function ss(t){return vt(po|ne,t)}function Fn(t,e=0){return vt(8|e,t)}function as(t,e=[],n=[],r=[]){No(r,e,n,i=>{vt(8,()=>{t(...i.map(f))})})}function ri(t,e=0){return vt(16|e,t)}function gt(t){return vt(32|ne,t)}function ii(t){var e=t.teardown;if(e!==null){const n=bt,r=M;pr(!0),K(null);try{e.call(null)}catch(i){ct(i,t.parent)}finally{pr(n),K(r)}}}function qn(t,e=!1){var n=t.first;for(t.first=t.last=null;n!==null;){const i=n.ac;i!==null&&tn(()=>{i.abort(me)});var r=n.next;(n.f&64)!==0?n.parent=null:F(n,e),n=r}}function ls(t){for(var e=t.first;e!==null;){var n=e.next;!(e.f&32)&&F(e),e=n}}function F(t,e=!0){var n=!1;(e||t.f&262144)&&t.nodes!==null&&t.nodes.end!==null&&(us(t.nodes.start,t.nodes.end),n=!0),t.f|=ar,qn(t,e&&!n),pe(t,0);var r=t.nodes&&t.nodes.t;if(r!==null)for(const o of r)o.stop();ii(t),t.f^=ar,t.f|=co;var i=t.parent;i!==null&&i.first!==null&&oi(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes=t.ac=t.b=null}function us(t,e){for(;t!==null;){var n=t===e?null:yt(t);t.remove(),t=n}}function oi(t){var e=t.parent,n=t.prev,r=t.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),e!==null&&(e.first===t&&(e.first=r),e.last===t&&(e.last=n))}function $e(t,e,n=!0){var r=[];t.f|=256,si(t,r,!0);var i=()=>{n&&F(t),e&&e()},o=r.length;if(o>0){var a=()=>--o||i();for(var l of r)l.out(a)}else i()}function si(t,e,n){if((t.f&8192)===0){t.f^=Rn;var r=t.nodes&&t.nodes.t;if(r!==null)for(const l of r)(l.is_global||n)&&e.push(l);for(var i=t.first;i!==null;){var o=i.next;if((i.f&64)===0){var a=(i.f&65536)!==0||(i.f&32)!==0&&(t.f&16)!==0;si(i,e,a?n:!1)}i=o}}}function vr(t){t.f&=-257,ai(t,!0)}function ai(t,e){if((t.f&256)===0&&(t.f&8192)!==0){t.f^=Rn,!(t.f&1024)&&(R(t,ot),It.ensure().schedule(t));for(var n=t.first;n!==null;){var r=n.next,i=(n.f&65536)!==0||(n.f&32)!==0;ai(n,i?e:!1),n=r}var o=t.nodes&&t.nodes.t;if(o!==null)for(const a of o)(a.is_global||e)&&a.in()}}function li(t,e){if(t.nodes)for(var n=t.nodes.start,r=t.nodes.end;n!==null;){var i=n===r?null:yt(n);e.append(n),n=i}}var fs=null,Ce=!1,bt=!1;function pr(t){bt=t}var M=null,Q=!1;function K(t){M=t}var k=null;function dt(t){k=t}var et=null;function ui(t){M!==null&&(M.f&2097152||M.f&2)&&(et??(et=new Set)).add(t)}var B=null,U=0,V=null;function hs(t){V=t}var fi=1,zt=0,Dt=zt;function wr(t){Dt=t}function hi(){return++fi}function ke(t){var e=t.f;if((e&2048)!==0)return!0;if((e&4096)!==0){for(var n=t.deps,r=n.length,i=0;i<r;i++){var o=n[i];if(ke(o)&&Hr(o),o.wv>t.wv)return!0}e&512&&H===null&&R(t,G)}return!1}function ci(t,e,n=!0){var r=t.reactions;if(r!==null&&!(!Qe&&et!==null&&et.has(t)))for(var i=0;i<r.length;i++){var o=r[i];(o.f&2)!==0?ci(o,e,!1):e===o&&(n?R(o,ot):o.f&1024&&R(o,Ht),Xr(o))}}function di(t){var e=B,n=U,r=V,i=M,o=et,a=P,l=Q,h=Dt,u=t.f;B=null,U=0,V=null,M=(u&96)===0?t:null,et=null,Zt(t.ctx),Q=!1,Dt=++zt,t.ac!==null&&(tn(()=>{t.ac.abort(me)}),t.ac=null);try{t.f|=lr;var d=t.fn,v=d();t.f|=zn;var w=mr(t);if(be()&&V!==null&&!Q&&w!==null&&(t.f&6146)===0)for(var p=0;p<V.length;p++)ci(V[p],t);if(i!==null&&i!==t){if(zt++,i.deps!==null)for(let m=0;m<n;m+=1)i.deps[m].rv=zt;if(e!==null)for(const m of e)m.rv=zt;V!==null&&(r===null?r=V:r.push(...V))}return t.f&8388608&&(t.f^=Be),v}catch(m){return mr(t),ts(m)}finally{t.f^=lr,B=e,U=n,V=r,M=i,et=o,Zt(a),Q=l,Dt=h}}function mr(t){var e=t.deps,n=x?.is_fork;if(B!==null){var r;if(n||pe(t,U),e!==null&&U>0)for(e.length=U+B.length,r=0;r<B.length;r++)e[U+r]=B[r];else t.deps=e=B;if(Bn()&&(t.f&512)!==0)for(r=U;r<e.length;r++){var i;((i=e[r]).reactions??(i.reactions=[])).push(t)}}else!n&&e!==null&&U<e.length&&(pe(t,U),e.length=U);return e}function cs(t,e){let n=e.reactions;if(n!==null){var r=ro.call(n,t);if(r!==-1){var i=n.length-1;i===0?n=e.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&(e.f&2)!==0&&(B===null||!wn.call(B,e))){var o=e;o.f&512&&(o.f^=512),o.v!==j&&Ln(o),o.ac!==null&&tn(()=>{o.ac.abort(me),o.ac=null,R(o,ot)}),Bo(o),pe(o,0)}}function pe(t,e){var n=t.deps;if(n!==null)for(var r=e;r<n.length;r++)cs(t,n[r])}function te(t){var e=t.f;if((e&16384)===0){R(t,G);var n=k,r=Ce;k=t,Ce=(e&96)===0;try{(e&16777232)!==0?ls(t):qn(t),ii(t);var i=di(t);t.teardown=typeof i=="function"?i:null,t.wv=fi}finally{Ce=r,k=n}}}function f(t){var e=(t.f&2)!==0;if(fs?.add(t),M!==null&&!Q&&!(k!==null&&(k.f&16384)!==0)&&(et===null||!et.has(t))){var n=M.deps;if((M.f&2097152)!==0)t.rv<zt&&(t.rv=zt,B===null&&n!==null&&n[U]===t?U++:B===null?B=[t]:B.push(t));else{var r;(r=M).deps??(r.deps=[]),wn.call(M.deps,t)||M.deps.push(t);var i=t.reactions;i===null?t.reactions=[M]:wn.call(i,M)||i.push(M)}}if(bt&&ht.has(t))return ht.get(t);if(e){var o=t;if(bt){var a=o.v;return(!(o.f&1024)&&o.reactions!==null||pi(o))&&(a=Nn(o)),ht.set(o,a),a}var l=(o.f&512)===0&&!Q&&M!==null&&(Ce||(M.f&512)!==0),h=(o.f&zn)===0;ke(o)&&(l&&(o.f|=512),Hr(o)),l&&!h&&(Ir(o),vi(o))}if(H?.has(t))return H.get(t);if((t.f&8388608)!==0)throw t.v;return t.v}function vi(t){if(t.f|=512,t.deps!==null)for(const e of t.deps)(e.reactions??(e.reactions=[])).push(t),e.f&2&&!(e.f&512)&&(Ir(e),vi(e))}function pi(t){if(t.v===j)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(ht.has(e)||(e.f&2)!==0&&pi(e))return!0;return!1}function ee(t){var e=Q;try{return Q=!0,t()}finally{Q=e}}var Gt=Symbol("events"),wi=new Set,Sn=new Set;function ie(t,e,n){(e[Gt]??(e[Gt]={}))[t]=n}function ds(t){for(var e=0;e<t.length;e++)wi.add(t[e]);for(var n of Sn)n(t)}var ln=null,un=!1;function gr(t){var e=this,n=e.ownerDocument,r=t.type,i=t.composedPath?.()||[],o=i[0]||t.target;ln=t,un||(un=!0,setTimeout(()=>{un=!1,ln=null}));var a=0,l=ln===t&&t[Gt];if(l){var h=i.indexOf(l);if(h!==-1&&(e===document||e===window)){t[Gt]=e;return}var u=i.indexOf(e);if(u===-1)return;h<=u&&(a=h)}if(o=i[a]||t.target,o!==e){he(t,"currentTarget",{configurable:!0,get(){return o||n}});var d=M,v=k;K(null),dt(null);try{for(var w,p=[];o!==null&&o!==e;){try{var m=o[Gt]?.[r];m!=null&&(!o.disabled||t.target===o)&&m.call(o,t)}catch(_){w?p.push(_):w=_}if(t.cancelBubble)break;a++,o=a<i.length?i[a]:null}if(w){for(let _ of p)queueMicrotask(()=>{throw _});throw w}}finally{t[Gt]=e,delete t.currentTarget,K(d),dt(v)}}}var vs=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});function ps(t){return vs?.createHTML(t)??t}function ws(t){var e=Hn("template");return e.innerHTML=ps(t.replaceAll("<!>","<!---->")),e.content}function Kt(t,e){var n=k;n.nodes===null&&(n.nodes={start:t,end:e,a:null,t:null})}function ms(t,e){var n=(e&1)!==0,r=(e&2)!==0,i,o=!t.startsWith("<!>");return()=>{if(T)return Kt(W,null),W;i===void 0&&(i=ws(o?t:"<!>"+t),n||(i=Ct(i)));var a=r||Jr?document.importNode(i,!0):i.cloneNode(!0);if(n){var l=Ct(a),h=a.lastChild;Kt(l,h)}else Kt(a,a);return a}}function gs(){if(T)return Kt(W,null),W;var t=document.createDocumentFragment(),e=document.createComment(""),n=mt();return t.append(e,n),Kt(e,n),t}function Wn(t,e){if(T){var n=k;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=W),On();return}t!==null&&t.before(e)}var bs=["touchstart","touchmove"];function ys(t){return bs.includes(t)}function $s(t){let e=0,n=ye(0),r;return()=>{Bn()&&(f(n),Fn(()=>(e===0&&(r=ee(()=>t(()=>fe(n)))),e+=1,()=>{Nt(()=>{e-=1,e===0&&(r?.(),r=void 0,fe(n))})})))}}var ks=jn|ne;function _s(t,e,n,r){new xs(t,e,n,r)}var nt=new WeakMap,An=new WeakMap,ft=new WeakMap,we=new WeakMap,X=new WeakMap,rt=new WeakMap,Y=new WeakMap,tt=new WeakMap,xt=new WeakMap,Ut=new WeakMap,Lt=new WeakMap,Oe=new WeakMap,En=new WeakMap,Tn=new WeakMap,Wt=new WeakMap,br=new WeakMap,O=new WeakSet,xs=class{constructor(t,e,n,r){Cn(this,O),E(this,"parent",void 0),E(this,"is_pending",!1),E(this,"transform_error",void 0),b(this,nt,void 0),b(this,An,T?W:null),b(this,ft,void 0),b(this,we,void 0),b(this,X,void 0),b(this,rt,null),b(this,Y,null),b(this,tt,null),b(this,xt,null),b(this,Ut,0),b(this,Lt,0),b(this,Oe,!1),b(this,En,new Set),b(this,Tn,new Set),b(this,Wt,null),b(this,br,$s(()=>(g(Wt,this,ye(s(Ut,this))),()=>{g(Wt,this,null)}))),g(nt,this,t),g(ft,this,e),g(we,this,i=>{var o=k;o.b=this,o.f|=128,n(i)}),this.parent=k.b,this.transform_error=r??this.parent?.transform_error??(i=>i),g(X,this,ri(()=>{if(T){const i=s(An,this);On();const o=i.data==="[!";if(i.data.startsWith("[?")){const a=JSON.parse(i.data.slice(2));y(O,this,Ss).call(this,a)}else o?y(O,this,Ws).call(this):y(O,this,Ms).call(this)}else y(O,this,gi).call(this)},ks)),T&&g(nt,this,W)}defer_effect(t){Lr(t,s(En,this),s(Tn,this))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!s(ft,this).pending}update_pending_count(t,e){y(O,this,bi).call(this,t,e),g(Ut,this,s(Ut,this)+t),s(Wt,this)&&!s(Oe,this)&&(g(Oe,this,!0),Nt(()=>{g(Oe,this,!1),s(Wt,this)&&Ge(s(Wt,this),s(Ut,this))}))}get_effect_pending(){return s(br,this).call(this),f(s(Wt,this))}error(t){if(!s(ft,this).onerror&&!s(ft,this).failed)throw t;x?.is_fork?(s(rt,this)&&x.skip_effect(s(rt,this)),s(Y,this)&&x.skip_effect(s(Y,this)),s(tt,this)&&x.skip_effect(s(tt,this)),x.oncommit(()=>{y(O,this,yr).call(this,t)})):y(O,this,yr).call(this,t)}};function Ms(){try{g(rt,this,gt(()=>s(we,this).call(this,s(nt,this))))}catch(t){this.error(t)}}function Ss(t){const e=s(ft,this).failed,{reset:n,invoke_onerror:r}=y(O,this,mi).call(this,t);Nt(r),e&&g(tt,this,gt(()=>{e(s(nt,this),()=>t,()=>n)}))}function mi(t){var e=!1,n=!1;const r=()=>{if(e){yo();return}e=!0,n&&Oo(),s(tt,this)!==null&&$e(s(tt,this),()=>{g(tt,this,null)}),y(O,this,Un).call(this,()=>{y(O,this,gi).call(this)})};return{reset:r,invoke_onerror:()=>{try{n=!0,s(ft,this).onerror?.(t,r),n=!1}catch(i){ct(i,s(X,this)&&s(X,this).parent)}}}}function Ws(){const t=s(ft,this).pending;t&&(this.is_pending=!0,g(Y,this,gt(()=>t(s(nt,this)))),Nt(()=>{var e=g(xt,this,document.createDocumentFragment()),n=mt(),r=!1;if(e.append(n),g(rt,this,y(O,this,Un).call(this,()=>{try{return gt(()=>s(we,this).call(this,n))}catch(i){try{this.error(i),r=!0}catch(o){ct(o,s(X,this).parent)}return null}})),s(rt,this)===null){g(xt,this,null),r&&y(O,this,Ke).call(this,x);return}s(Lt,this)===0&&(s(nt,this).before(e),g(xt,this,null),$e(s(Y,this),()=>{g(Y,this,null)}),y(O,this,Ke).call(this,x))}))}function gi(){try{if(this.is_pending=this.has_pending_snippet(),g(Lt,this,0),g(Ut,this,0),g(rt,this,gt(()=>{s(we,this).call(this,s(nt,this))})),s(Lt,this)>0){var t=g(xt,this,document.createDocumentFragment());li(s(rt,this),t);const e=s(ft,this).pending;g(Y,this,gt(()=>e(s(nt,this))))}else y(O,this,Ke).call(this,x)}catch(e){this.error(e)}}function Ke(t){this.is_pending=!1,t.transfer_effects(s(En,this),s(Tn,this))}function Un(t){var e=k,n=M,r=P;dt(s(X,this)),K(s(X,this)),Zt(s(X,this).ctx);try{return It.ensure(),t()}finally{dt(e),K(n),Zt(r)}}function bi(t,e){if(!this.has_pending_snippet()){if(this.parent){var n;y(O,n=this.parent,bi).call(n,t,e)}return}g(Lt,this,s(Lt,this)+t),s(Lt,this)===0&&(y(O,this,Ke).call(this,e),s(Y,this)&&$e(s(Y,this),()=>{g(Y,this,null)}),s(xt,this)&&(s(nt,this).before(s(xt,this)),g(xt,this,null)))}function yr(t){s(rt,this)&&(F(s(rt,this)),g(rt,this,null)),s(Y,this)&&(F(s(Y,this)),g(Y,this,null)),s(tt,this)&&(F(s(tt,this)),g(tt,this,null)),T&&(it(s(An,this)),$o(),it(Pr()));let e=s(ft,this).failed;const n=r=>{const{reset:i,invoke_onerror:o}=y(O,this,mi).call(this,r);o(),e&&g(tt,this,y(O,this,Un).call(this,()=>{try{return gt(()=>{var a=k;a.b=this,a.f|=128,e(s(nt,this),()=>r,()=>i)})}catch(a){return ct(a,s(X,this).parent),null}}))};Nt(()=>{var r;try{r=this.transform_error(t)}catch(i){ct(i,s(X,this)&&s(X,this).parent);return}r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(n,i=>ct(i,s(X,this)&&s(X,this).parent)):n(r)})}function As(t,e){var n=e==null?"":typeof e=="object"?`${e}`:e;n!==(t[Ne]??(t[Ne]=t.nodeValue))&&(t[Ne]=n,t.nodeValue=`${n}`)}function yi(t,e){return $i(t,e)}function Es(t,e){Mn(),e.intro=e.intro??!1;const n=e.target,r=T,i=W;try{for(var o=Ct(n);o&&(o.nodeType!==8||o.data!=="[");)o=yt(o);if(!o)throw Jt;Yt(!0),it(o);const a=$i(t,{...e,anchor:o});return Yt(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
|
|
2
|
+
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw a;return a!==Jt&&console.warn("Failed to hydrate: ",a),e.recover===!1&&To(),Mn(),Zo(n),Yt(!1),yi(t,e)}finally{Yt(r),it(i)}}var De=new Map;function $i(t,{target:e,anchor:n,props:r={},events:i,context:o,intro:a=!0,transformError:l}){Mn();var h=void 0,u=os(()=>{var d=n??e.appendChild(mt());_s(d,{pending:()=>{}},p=>{jr({});var m=P;if(o&&(m.c=o),i&&(r.$$events=i),T&&Kt(p,null),h=t(p,r)||Dn(),T&&(k.nodes.end=W,W===null||W.nodeType!==8||W.data!=="]"))throw Ze(),Jt;Or()},l);var v=new Set,w=p=>{for(var m=0;m<p.length;m++){var _=p[m];if(!v.has(_)){v.add(_);var A=ys(_);for(const J of[e,document]){var D=De.get(J);D===void 0&&(D=new Map,De.set(J,D));var I=D.get(_);I===void 0?(J.addEventListener(_,gr,{passive:A}),D.set(_,1)):D.set(_,I+1)}}}};return w(io(wi)),Sn.add(w),()=>{for(var p of v)for(const A of[e,document]){var m=De.get(A),_=m.get(p);--_==0?(A.removeEventListener(p,gr),m.delete(p),m.size===0&&De.delete(A)):m.set(p,_)}Sn.delete(w),d!==n&&d.parentNode?.removeChild(d)}});return Pn.set(h,u),h}var Pn=new WeakMap;function Ts(t,e){const n=Pn.get(t);return n?(Pn.delete(t),n(e)):Promise.resolve()}var pt=new WeakMap,$t=new WeakMap,Z=new WeakMap,oe=new WeakMap,fn=new WeakMap,hn=new WeakMap,$r=new WeakMap,Ps=class{constructor(t,e=!0){E(this,"anchor",void 0),b(this,pt,new Map),b(this,$t,new Map),b(this,Z,new Map),b(this,oe,new Set),b(this,fn,!0),b(this,hn,n=>{if(s(pt,this).has(n)){var r=s(pt,this).get(n),i=s($t,this).get(r);if(i)vr(i),s(oe,this).delete(r);else{var o=s(Z,this).get(r);o&&(vr(o.effect),s($t,this).set(r,o.effect),s(Z,this).delete(r),o.fragment.lastChild.remove(),this.anchor.before(o.fragment),i=o.effect)}for(const[a,l]of s(pt,this)){if(s(pt,this).delete(a),a===n)break;const h=s(Z,this).get(l);h&&(F(h.effect),s(Z,this).delete(l))}for(const[a,l]of s($t,this)){if(a===r||s(oe,this).has(a))continue;const h=()=>{if(Array.from(s(pt,this).values()).includes(a)){var u=document.createDocumentFragment();li(l,u),u.append(mt()),s(Z,this).set(a,{effect:l,fragment:u})}else F(l);s(oe,this).delete(a),s($t,this).delete(a)};s(fn,this)||!i?(s(oe,this).add(a),$e(l,h,!1)):h()}}}),b(this,$r,n=>{s(pt,this).delete(n);const r=Array.from(s(pt,this).values());for(const[i,o]of s(Z,this))r.includes(i)||(F(o.effect),s(Z,this).delete(i))}),this.anchor=t,g(fn,this,e)}ensure(t,e){var n=x,r=Qo();if(e&&!s($t,this).has(t)&&!s(Z,this).has(t))if(r){var i=document.createDocumentFragment(),o=mt();i.append(o),s(Z,this).set(t,{effect:gt(()=>e(o)),fragment:i})}else s($t,this).set(t,gt(()=>e(this.anchor)));if(s(pt,this).set(n,t),r){for(const[a,l]of s($t,this))a===t?n.unskip_effect(l):n.skip_effect(l);for(const[a,l]of s(Z,this))a===t?n.unskip_effect(l.effect):n.skip_effect(l.effect);n.oncommit(s(hn,this)),n.ondiscard(s($r,this))}else T&&(this.anchor=W),s(hn,this).call(this,n)}};function Rs(t){P===null&&xo("onMount"),ge&&P.l!==null?zs(P).m.push(t):Tt(()=>{const e=ee(t);if(typeof e=="function")return e})}function zs(t){var e=t.l;return e.u??(e.u={a:[],b:[],m:[]})}function js(t,e,n=!1){var r;T&&(r=W,On());var i=new Ps(t),o=n?jn:0;function a(l,h){if(T){var u=ko(r);if(l!==parseInt(u.substring(1))){var d=Pr();it(d),i.anchor=d,Yt(!1),i.ensure(l,h),Yt(!0);return}}i.ensure(l,h)}ri(()=>{var l=!1;e((h,u=0)=>{l=!0,a(u,h)}),l||a(-1,null)},o)}function Os(t,e){ni(()=>{t=k?.parent?.nodes?.start??t;var n=t.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+e.hash)){const i=Hn("style");i.id=e.hash,i.textContent=e.code,r.appendChild(i)}})}function kr(t,e=!1){var n=e?" !important;":";",r="";for(var i of Object.keys(t)){var o=t[i];o!=null&&o!==""&&(r+=" "+i+": "+o+n)}return r}function cn(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Ds(t,e){if(e){var n="",r,i;if(Array.isArray(e)?(r=e[0],i=e[1]):r=e,t){t=String(t).replaceAll(/\/\*.*?\*\//g,"").trim();var o=!1,a=0,l=!1,h=[];r&&h.push(...Object.keys(r).map(cn)),i&&h.push(...Object.keys(i).map(cn));var u=0,d=-1;const _=t.length;for(var v=0;v<_;v++){var w=t[v];if(l?w==="/"&&t[v-1]==="*"&&(l=!1):o?o===w&&(o=!1):w==="/"&&t[v+1]==="*"?l=!0:w==='"'||w==="'"?o=w:w==="("?a++:w===")"&&a--,!l&&o===!1&&a===0){if(w===":"&&d===-1)d=v;else if(w===";"||v===_-1){if(d!==-1){var p=cn(t.substring(u,d).trim());if(!h.includes(p)){w!==";"&&v++;var m=t.substring(u,v).trim();n+=" "+m+";"}}u=v+1,d=-1}}}}return r&&(n+=kr(r)),i&&(n+=kr(i,!0)),n=n.trim(),n===""?null:n}return t==null?null:String(t)}function dn(t,e={},n,r){for(var i in n){var o=n[i];e[i]!==o&&(n[i]==null?t.style.removeProperty(i):t.style.setProperty(i,o,r))}}function Ls(t,e,n,r){var i=t[gn];if(T||i!==e){var o=Ds(e,r);(!T||o!==t.getAttribute("style"))&&(o==null?t.removeAttribute("style"):t.style.cssText=o),t[gn]=e}else r&&(Array.isArray(r)?(dn(t,n?.[0],r[0]),dn(t,n?.[1],r[1],"important")):dn(t,n,r));return r}var Ns=Symbol("is custom element"),Cs=Symbol("is html"),Hs=go?"link":"LINK";function st(t,e,n,r){var i=Is(t);T&&(i[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName===Hs)||i[e]!==(i[e]=n)&&(e==="loading"&&(t[wo]=n),n==null?t.removeAttribute(e):typeof n!="string"&&Bs(t).has(e)?t[e]=n:t.setAttribute(e,n))}function Is(t){return t[mn]??(t[mn]={[Ns]:t.nodeName.includes("-"),[Cs]:t.namespaceURI==="http://www.w3.org/1999/xhtml"})}var _r=new Map;function Bs(t){var e=t.getAttribute("is")||t.nodeName,n=_r.get(e);if(n)return n;_r.set(e,n=new Set);for(var r,i=t,o=Element.prototype;o!==i;){r=oo(i);for(var a in r)r[a].set&&a!=="innerHTML"&&a!=="textContent"&&a!=="innerText"&&n.add(a);i=Sr(i)}return n}var ki,Xt=new WeakMap,Je=new WeakMap,vn=new WeakMap,xr=new WeakSet,_i=class{constructor(t){Cn(this,xr),b(this,Xt,new WeakMap),b(this,Je,void 0),b(this,vn,void 0),g(vn,this,t)}observe(t,e){var n=s(Xt,this).get(t)||new Set;return n.add(e),s(Xt,this).set(t,n),y(xr,this,Fs).call(this).observe(t,s(vn,this)),()=>{var r=s(Xt,this).get(t);r.delete(e),r.size===0&&(s(Xt,this).delete(t),s(Je,this).unobserve(t))}}};ki=_i;function Fs(){return s(Je,this)??g(Je,this,new ResizeObserver(t=>{for(var e of t){ki.entries.set(e.target,e);for(var n of s(Xt,this).get(e.target)||[])n(e)}}))}E(_i,"entries",new WeakMap);function pn(t,e){return t===e||t?.[le]===e}function qs(t=Dn(),e,n,r){var i=P.r,o=k;return ni(()=>{var a,l;return Fn(()=>{a=l,l=r?.()||[],ee(()=>{pn(n(...l),t)||(e(t,...l),a&&pn(n(...a),t)&&e(null,...a))})}),()=>{let h=o;for(;h!==i&&h.parent!==null&&h.parent.f&33554432;)h=h.parent;const u=()=>{l&&pn(n(...l),t)&&e(null,...l)},d=h.teardown;h.teardown=()=>{u(),d?.()}}}),t}var Le=!1;function Us(t){var e=Le;try{return Le=!1,[t(),Le]}finally{Le=e}}function Mr(t,e,n,r){var i=!ge||(n&2)!==0,o=(n&8)!==0,a=(n&16)!==0,l=r,h=!0,u=void 0,d=()=>a&&i?(u??(u=de(r)),f(u)):(h&&(h=!1,l=a?ee(r):r),l);let v;if(o){var w=le in t||Er in t;v=jt(t,e)?.set??(w&&e in t?L=>t[e]=L:void 0)}var p,m=!1;o?[p,m]=Us(()=>t[e]):p=t[e],p===void 0&&r!==void 0&&(p=d(),v&&(i&&Po(e),v(p)));var _;if(i?_=()=>{var L=t[e];return L===void 0?d():(h=!0,L)}:_=()=>{var L=t[e];return L!==void 0&&(l=void 0),L===void 0?l:L},i&&(n&4)===0)return _;if(v){var A=t.$$legacy;return(function(L,Bt){return arguments.length>0?((!i||!Bt||A||m)&&v(Bt?_():L),L):_()})}var D=!1,I=((n&1)!==0?de:Cr)(()=>(D=!1,_()));o&&f(I);var J=k;return(function(L,Bt){if(arguments.length>0){const _e=Bt?f(I):i&&o?_t(L):L;return S(I,_e),D=!0,l!==void 0&&(l=_e),L}return bt&&D||(J.f&16384)!==0?I.v:f(I)})}function Xs(t){return new Ys(t)}var At=new WeakMap,at=new WeakMap,Ys=class{constructor(t){b(this,At,void 0),b(this,at,void 0);var e=new Map,n=(i,o)=>{var a=Go(o,!1,!1);return e.set(i,a),a};const r=new Proxy({...t.props||{},$$events:{}},{get(i,o){return f(e.get(o)??n(o,Reflect.get(i,o)))},has(i,o){return o===Er?!0:(f(e.get(o)??n(o,Reflect.get(i,o))),Reflect.has(i,o))},set(i,o,a){return S(e.get(o)??n(o,a),a),Reflect.set(i,o,a)}});g(at,this,(t.hydrate?Es:yi)(t.component,{target:t.target,anchor:t.anchor,props:r,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError})),(!t?.props?.$$host||t.sync===!1)&&_n(),g(At,this,r.$$events);for(const i of Object.keys(s(at,this)))i==="$set"||i==="$destroy"||i==="$on"||he(this,i,{get(){return s(at,this)[i]},set(o){s(at,this)[i]=o},enumerable:!0});s(at,this).$set=i=>{Object.assign(r,i)},s(at,this).$destroy=()=>{Ts(s(at,this))}}$set(t){s(at,this).$set(t)}$on(t,e){s(At,this)[t]=s(At,this)[t]||[];const n=(...r)=>e.call(this,...r);return s(At,this)[t].push(n),()=>{s(At,this)[t]=s(At,this)[t].filter(r=>r!==n)}}$destroy(){s(at,this).$destroy()}},xi;typeof HTMLElement=="function"&&(xi=class extends HTMLElement{constructor(t,e,n){super(),E(this,"$$ctor",void 0),E(this,"$$s",void 0),E(this,"$$c",void 0),E(this,"$$cn",!1),E(this,"$$d",{}),E(this,"$$r",!1),E(this,"$$p_d",{}),E(this,"$$l",{}),E(this,"$$l_u",new Map),E(this,"$$me",void 0),E(this,"$$shadowRoot",null),this.$$ctor=t,this.$$s=e,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(t,e,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const r=this.$$c.$on(t,e);this.$$l_u.set(e,r)}super.addEventListener(t,e,n)}removeEventListener(t,e,n){if(super.removeEventListener(t,e,n),this.$$c){const r=this.$$l_u.get(e);r&&(r(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(r){return i=>{const o=Hn("slot");r!=="default"&&(o.name=r),Wn(i,o)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},n=Vs(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=t(r),e.default=!0):e[r]=t(r));for(const r of this.attributes){const i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=He(i,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=Xs({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=is(()=>{Fn(()=>{this.$$r=!0;for(const r of Ie(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=He(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(const r in this.$$l)for(const i of this.$$l[r]){const o=this.$$c.$on(r,i);this.$$l_u.set(i,o)}this.$$l={}}}attributeChangedCallback(t,e,n){this.$$r||(t=this.$$g_p(t),this.$$d[t]=He(t,n,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return Ie(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function He(t,e,n,r){const i=n[t]?.type;if(e=i==="Boolean"&&typeof e!="boolean"?e!=null:e,!r||!n[t])return e;if(r==="toAttribute")switch(i){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Vs(t){const e={};return t.childNodes.forEach(n=>{e[n.slot||"default"]=!0}),e}function Gs(t,e,n,r,i,o){let a=class extends xi{constructor(){super(t,n,i),this.$$p_d=e}static get observedAttributes(){return Ie(e).map(l=>(e[l].attribute||l).toLowerCase())}};return Ie(e).forEach(l=>{he(a.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(h){h=He(l,h,e),this.$$d[l]=h;var u=this.$$c;u&&(jt(u,l)?.get?u[l]=h:u.$set({[l]:h}))}})}),r.forEach(l=>{he(a.prototype,l,{get(){return this.$$c?.[l]}})}),o&&(a=o(a)),t.element=a,a}var Ks=ms('<div class="pie-sr-only svelte-a1a4bp" role="status" aria-live="polite" aria-atomic="true"> </div> <div class="pie-tool-line-reader svelte-a1a4bp" role="group" tabindex="0"><div class="pie-tool-line-reader__frame svelte-a1a4bp" aria-hidden="true"></div> <div class="pie-tool-line-reader__outline svelte-a1a4bp" aria-hidden="true"></div> <button type="button" class="pie-tool-line-reader__button pie-tool-line-reader__close svelte-a1a4bp"><svg width="12" height="12" viewBox="0 0 12 12" aria-hidden="true" focusable="false"><path d="M1 1 L11 11 M11 1 L1 11" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path></svg></button> <button type="button" class="pie-tool-line-reader__resize-handle pie-tool-line-reader__resize-handle--pane svelte-a1a4bp"><svg width="14" height="8" viewBox="0 0 14 8" aria-hidden="true" focusable="false"><path d="M1 2.5 H13 M1 5.5 H13" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path></svg></button> <button type="button" class="pie-tool-line-reader__resize-handle pie-tool-line-reader__resize-handle--frame svelte-a1a4bp"><svg width="12" height="12" viewBox="0 0 12 12" aria-hidden="true" focusable="false"><path d="M11 4 L4 11 M11 8 L8 11" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path></svg></button></div>',1),Js={hash:"svelte-a1a4bp",code:`.pie-sr-only.svelte-a1a4bp {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0;}.pie-tool-line-reader.svelte-a1a4bp {border:none;border-radius:4px;
|
|
3
|
+
/*
|
|
4
|
+
* Ink-derived rather than fixed black: on a dark scheme this reads as a soft
|
|
5
|
+
* halo separating the window from the page instead of vanishing into it.
|
|
6
|
+
*/box-shadow:0px 2px 4px 0px color-mix(in srgb, var(--pie-text, #000) 8%, transparent);cursor:move;overflow:visible;position:absolute;transform:translate(-50%, -50%);user-select:none;pointer-events:auto;touch-action:none;}.pie-tool-line-reader.svelte-a1a4bp:focus-visible {outline:3px solid var(--pie-button-focus-outline, var(--pie-primary, #4A90E2));outline-offset:2px;}
|
|
7
|
+
|
|
8
|
+
/*
|
|
9
|
+
* Window frame: largely obscures the page content it covers. The fill stays a
|
|
10
|
+
* dark scrim in every colour scheme rather than following the scheme's ink,
|
|
11
|
+
* because ink-coloured masking fails on its own scheme: a yellow scrim over
|
|
12
|
+
* yellow-on-blue text hides nothing, and a white one glares in a dark scheme
|
|
13
|
+
* that the reader chose to avoid glare. Dimming works in both directions -- it
|
|
14
|
+
* drops the covered text to a fraction of its contrast whatever the palette --
|
|
15
|
+
* and \`--pie-tool-line-reader-outline-color\` supplies the boundary that a dark
|
|
16
|
+
* scrim on a dark page cannot show on its own.
|
|
17
|
+
*
|
|
18
|
+
* Drawn as a single element's border box -- bands top and bottom, edges left
|
|
19
|
+
* and right, transparent content box for the reading window -- rather than four
|
|
20
|
+
* abutting boxes. Four translucent boxes each antialias their shared edge, so
|
|
21
|
+
* whenever layout lands off whole pixels (page zoom, fractional font scale) the
|
|
22
|
+
* junctions render at partial coverage and show as light seams between the
|
|
23
|
+
* edges and the bands. One border box has no internal boundaries to seam.
|
|
24
|
+
*
|
|
25
|
+
* How the frame masks -- its fill and how strongly it obscures -- is a
|
|
26
|
+
* deployment decision, not a per-student one: it trades reading focus against
|
|
27
|
+
* how much surrounding context a test taker can still see, which is the kind
|
|
28
|
+
* of call a programme makes for its whole population. So both come from
|
|
29
|
+
* \`--pie-tool-line-reader-frame-color\` and
|
|
30
|
+
* \`--pie-tool-line-reader-frame-opacity\`, read here and never written back by
|
|
31
|
+
* the component -- a host sets them once in its own stylesheet, and no inline
|
|
32
|
+
* declaration here forces them to outrank it with \`!important\`.
|
|
33
|
+
*/.pie-tool-line-reader__frame.svelte-a1a4bp {position:absolute;inset:0;box-sizing:border-box;border-style:solid;border-width:var(--pie-tool-line-reader-band-height, 48px)
|
|
34
|
+
var(--pie-tool-line-reader-side-width, 12px);border-color:var(--pie-tool-line-reader-frame-color, #000);border-radius:4px;background-color:transparent;opacity:var(--pie-tool-line-reader-frame-opacity, 0.8);}
|
|
35
|
+
|
|
36
|
+
/*
|
|
37
|
+
* Ink-coloured hairline over the frame: on a light page the dark scrim already
|
|
38
|
+
* shows its own edges, but on a dark page it blends into the background, and
|
|
39
|
+
* this is what keeps the window's extent legible. Separate element rather than
|
|
40
|
+
* a border on the container so it never competes with the focus outline.
|
|
41
|
+
*/.pie-tool-line-reader__outline.svelte-a1a4bp {position:absolute;inset:0;box-sizing:border-box;border:1px solid
|
|
42
|
+
var(--pie-tool-line-reader-outline-color, color-mix(in srgb, var(--pie-text, #000) 70%, transparent));border-radius:4px;pointer-events:none;}
|
|
43
|
+
|
|
44
|
+
/*
|
|
45
|
+
* Controls sit on the frame bands rather than inside them, so they keep full
|
|
46
|
+
* opacity while the frame behind them stays translucent. 24x24 is the WCAG
|
|
47
|
+
* 2.5.8 minimum target size, and the 4px inset is what MIN_FRAME_BAND_HEIGHT
|
|
48
|
+
* is sized to accommodate.
|
|
49
|
+
*/.pie-tool-line-reader__button.svelte-a1a4bp,
|
|
50
|
+
.pie-tool-line-reader__resize-handle.svelte-a1a4bp {position:absolute;z-index:10;display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:none;border-radius:4px;background-color:transparent;
|
|
51
|
+
/*
|
|
52
|
+
* Paired with the frame fill rather than the page: the glyphs sit on the
|
|
53
|
+
* scrim, so they stay white in every scheme and only need revisiting if a
|
|
54
|
+
* host overrides the frame colour to something light.
|
|
55
|
+
*/color:var(--pie-tool-line-reader-control-color, #fff);cursor:pointer;}.pie-tool-line-reader__button.svelte-a1a4bp:hover,
|
|
56
|
+
.pie-tool-line-reader__resize-handle.svelte-a1a4bp:hover {background-color:color-mix(in srgb, currentColor 20%, transparent);}.pie-tool-line-reader__button.svelte-a1a4bp:focus-visible,
|
|
57
|
+
.pie-tool-line-reader__resize-handle.svelte-a1a4bp:focus-visible {
|
|
58
|
+
/* currentColor keeps the indicator readable on the frame in every scheme. */outline:2px solid var(--pie-button-focus-outline, currentColor);outline-offset:1px;}.pie-tool-line-reader__close.svelte-a1a4bp {top:4px;right:4px;}
|
|
59
|
+
|
|
60
|
+
/* Resizes the reading window: vertical only, centred on the bottom band. */.pie-tool-line-reader__resize-handle--pane.svelte-a1a4bp {bottom:4px;left:50%;margin-left:-12px;cursor:ns-resize;}
|
|
61
|
+
|
|
62
|
+
/* Resizes the frame bands and the overall width, so it reads as a corner grip. */.pie-tool-line-reader__resize-handle--frame.svelte-a1a4bp {bottom:4px;right:4px;cursor:nwse-resize;}.pie-tool-line-reader.svelte-a1a4bp:active {cursor:grabbing;}`};function Zs(t,e){jr(e,!0),Os(t,Js);let n=Mr(e,"visible",7,!1),r=Mr(e,"toolId",7,"lineReader");const i=typeof window<"u";let o=N(void 0),a=N(null);const l=on(()=>f(a)?.toolCoordinator);let h=N(null),u=N(_t({x:0,y:0})),d=!1;const v=to({getPosition:()=>f(u),setPosition:c=>{S(u,St(c),!0)},onDragStart:c=>f(l)?.bringToFront(c)});let w=N(600),p=N(24),m=N(48),_=N(_t({paneHeight:0,frameBandHeight:0,width:0,mouseX:0,mouseY:0}));const A=on(()=>Ki(f(a)));let D=N("");const I=Vi("Line Reader",Ji.TOOL),J=12,L=200,Bt=32,_e=240,Xn=200,Yn=2e3,Vn=4,xe=10,en=10,Mi=20,Gn=on(()=>f(p)+f(m)*2);Tt(()=>{if(f(o))return Gi(f(o),c=>{S(a,c,!0)})});function Mt(c){S(D,c,!0),setTimeout(()=>S(D,""),1e3)}function Kn(c){return Math.max(J,Math.min(L,c))}function Jn(c){return Math.max(Bt,Math.min(_e,c))}function Me(c){const $=Qn()?.width,q=$===void 0?Yn:Math.min(Yn,$-Vn*2);return Math.max(Xn,Math.min(Math.max(Xn,q),c))}function Zn(){return Qi(f(o))}function Qn(){const c=Zn();return c&&{width:c.width,height:c.height}}function Si(){const c=Zn();if(!c)return;const $=Math.max(c.left,0),q=Math.max(c.top,0),Ae=Math.min(c.right,window.innerWidth),C=Math.min(c.bottom,window.innerHeight);return Ae<=$||C<=q?{x:c.width/2,y:c.height/2}:{x:($+Ae)/2-c.left,y:(q+C)/2-c.top}}function St(c){const $=Qn();return $?Zi(c,{width:f(w),height:f(Gn)},$,Vn):c}function re(){S(u,St(f(u)),!0)}function Se(c){S(p,Kn(f(p)+c),!0),re(),Mt(f(A).t("tools.lineReader.windowHeightAnnounce",{pixels:f(p)}))}function tr(c){S(m,Jn(f(m)+c),!0),re(),Mt(f(A).t("tools.lineReader.frameHeightAnnounce",{pixels:f(m)}))}function er(c){S(w,Me(f(w)+c),!0),re(),Mt(f(A).t("tools.lineReader.widthAnnounce",{pixels:f(w)}))}function nr(){f(l)&&r()&&f(l).hideTool(r())}function Wi(c){const $=c.target,q=$.closest(".pie-tool-line-reader__resize-handle");if(q){Ei(c,q.classList.contains("pie-tool-line-reader__resize-handle--frame")?"frame":"pane",q);return}$.closest("button")||Ai(c)}const We=eo({onMove:Ti,onEnd:()=>{v.endDragging(),S(h,null)}});function Ai(c){!f(o)||!We.begin(c,f(o))||(f(o).focus({preventScroll:!0}),v.startDragging(c,f(o)))}function Ei(c,$,q){c.stopPropagation(),f(o)&&We.begin(c,f(o))&&(f(o).setPointerCapture(c.pointerId),q.focus({preventScroll:!0}),S(h,$,!0),S(_,{paneHeight:f(p),frameBandHeight:f(m),width:f(w),mouseX:c.clientX,mouseY:c.clientY},!0),f(l)?.bringToFront(f(o)))}function Ti(c){if(v.isDragging()){v.handlePointerMove(c);return}if(!f(h))return;const $=c.clientY-f(_).mouseY;if(f(h)==="pane"){S(p,Kn(f(_).paneHeight+$*2),!0);return}S(m,Jn(f(_).frameBandHeight+$),!0),S(w,Me(f(_).width+(c.clientX-f(_).mouseX)*2),!0),re()}function Pi(c){let $=!1;switch(c.key){case"ArrowUp":S(u,St({x:f(u).x,y:f(u).y-xe}),!0),Mt(f(A).t("toolkit.announce.movedUp",{position:Math.round(f(u).y)})),$=!0;break;case"ArrowDown":S(u,St({x:f(u).x,y:f(u).y+xe}),!0),Mt(f(A).t("toolkit.announce.movedDown",{position:Math.round(f(u).y)})),$=!0;break;case"ArrowLeft":S(u,St({x:f(u).x-xe,y:f(u).y}),!0),Mt(f(A).t("toolkit.announce.movedLeft",{position:Math.round(f(u).x)})),$=!0;break;case"ArrowRight":S(u,St({x:f(u).x+xe,y:f(u).y}),!0),Mt(f(A).t("toolkit.announce.movedRight",{position:Math.round(f(u).x)})),$=!0;break;case"+":case"=":Se(en),$=!0;break;case"-":case"_":Se(-10),$=!0;break;case"Escape":nr(),$=!0}$&&c.preventDefault()}function Ri(c){let $=!1;switch(c.key){case"ArrowUp":Se(-10),$=!0;break;case"ArrowDown":Se(en),$=!0}$&&(c.preventDefault(),c.stopPropagation())}function zi(c){let $=!1;switch(c.key){case"ArrowUp":tr(-10),$=!0;break;case"ArrowDown":tr(en),$=!0;break;case"ArrowLeft":er(-20),$=!0;break;case"ArrowRight":er(Mi),$=!0}$&&(c.preventDefault(),c.stopPropagation())}Tt(()=>I.sync(f(l),r())),Rs(()=>()=>{We.release(),I.release()}),Tt(()=>{f(l)&&f(o)&&r()&&f(l).updateToolElement(r(),f(o))});function ji(){if(d)return;const c=Si();c&&(d=!0,S(w,Me(f(w)),!0),S(u,St(c),!0))}Tt(()=>{n()||ee(()=>We.release())}),Tt(()=>{if(!n()||!f(o))return;ee(ji);const c=setTimeout(()=>f(o)?.focus({preventScroll:!0}),100);return()=>clearTimeout(c)}),Tt(()=>{if(!i||!n())return;const c=()=>{S(w,Me(f(w)),!0),re()};return window.addEventListener("resize",c),()=>window.removeEventListener("resize",c)});var Oi={get visible(){return n()},set visible(c=!1){n(c),_n()},get toolId(){return r()},set toolId(c="lineReader"){r(c),_n()}},rr=gs(),Di=dr(rr),Li=c=>{var $=Ks(),q=dr($),Ae=Jo(q,!0),C=je(q,2),Ee=je(ti(C),4),Te=je(Ee,2),nn=je(Te,2);Tr(C),qs(C,rn=>S(o,rn),()=>f(o)),as((rn,Ni,Ci,Hi,Ii,Bi,Fi,qi,Ui,Xi)=>{As(Ae,f(D)),Ls(C,`left: ${f(u).x??""}px; top: ${f(u).y??""}px; width: ${f(w)??""}px; height: ${f(Gn)??""}px; --pie-tool-line-reader-band-height: ${f(m)??""}px; --pie-tool-line-reader-side-width: 12px;`),st(C,"lang",rn),st(C,"dir",Ni),st(C,"aria-label",Ci),st(C,"aria-roledescription",Hi),st(Ee,"title",Ii),st(Ee,"aria-label",Bi),st(Te,"title",Fi),st(Te,"aria-label",qi),st(nn,"title",Ui),st(nn,"aria-label",Xi),C.dir=C.dir},[()=>f(A).getLocale(),()=>f(A).getDirection?.()??"ltr",()=>f(A).t("tools.lineReader.applicationA11y",{paneHeight:f(p),frameHeight:f(m)}),()=>f(A).t("tools.lineReader.roleA11y"),()=>f(A).t("tools.lineReader.close"),()=>f(A).t("tools.lineReader.close"),()=>f(A).t("tools.lineReader.resizeWindowA11y"),()=>f(A).t("tools.lineReader.resizeWindowFullA11y",{paneHeight:f(p)}),()=>f(A).t("tools.lineReader.resizeFrameA11y"),()=>f(A).t("tools.lineReader.resizeFrameFullA11y",{frameHeight:f(m),width:f(w)})]),ie("pointerdown",C,Wi),ie("keydown",C,Pi),ie("click",Ee,nr),ie("keydown",Te,Ri),ie("keydown",nn,zi),Wn(c,$)};return js(Di,c=>{n()&&c(Li)}),Wn(t,rr),Or(Oi)}ds(["pointerdown","keydown","click"]);Qs("pie-tool-line-reader",Gs(Zs,{visible:{attribute:"visible",type:"Boolean"},toolId:{attribute:"tool-id",type:"String"}},[],[],{mode:"open"},Yi));function Qs(t,e){customElements.get(t)||customElements.define(t,e)}export{Zs as default};
|