import{ar as h,af as b,as as N,P as m,at as k,ap as P,a0 as D,a5 as V,z as w,F as g,au as W,av as j,j as f,m as c,D as B,k as C,am as R,S as L,aw as F,g as U,b as $,ax as q}from"./index.Chpxrmiw.js";function z(e){var r=N,t=m;h(null),b(null);try{return e()}finally{h(r),b(t)}}const G=new Set,H=new Set;function J(e,r,t,o){function n(a){if(o.capture||K.call(r,a),!a.cancelBubble)return z(()=>t.call(this,a))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?V(()=>{r.addEventListener(e,n,o)}):r.addEventListener(e,n,o),n}function re(e,r,t,o,n){var a={capture:o,passive:n},u=J(e,r,t,a);(r===document.body||r===window||r===document)&&k(()=>{r.removeEventListener(e,u,a)})}function te(e){for(var r=0;r<e.length;r++)G.add(e[r]);for(var t of H)t(e)}function K(e){var S;var r=this,t=r.ownerDocument,o=e.type,n=((S=e.composedPath)==null?void 0:S.call(e))||[],a=n[0]||e.target,u=0,l=e.__root;if(l){var s=n.indexOf(l);if(s!==-1&&(r===document||r===window)){e.__root=r;return}var E=n.indexOf(r);if(E===-1)return;s<=E&&(u=s)}if(a=n[u]||e.target,a!==r){P(e,"currentTarget",{configurable:!0,get(){return a||t}});var M=N,x=m;h(null),b(null);try{for(var d,T=[];a!==null;){var y=a.assignedSlot||a.parentNode||a.host||null;try{var _=a["__"+o];if(_!==void 0&&!a.disabled)if(D(_)){var[I,...O]=_;I.apply(a,[e,...O])}else _.call(a,e)}catch(p){d?T.push(p):d=p}if(e.cancelBubble||y===r||y===null)break;a=y}if(d){for(let p of T)queueMicrotask(()=>{throw p});throw d}}finally{e.__root=r,delete e.currentTarget,h(M),b(x)}}}function A(e){var r=document.createElement("template");return r.innerHTML=e,r.content}function i(e,r){var t=m;t.nodes_start===null&&(t.nodes_start=e,t.nodes_end=r)}function ae(e,r){var t=(r&W)!==0,o=(r&j)!==0,n,a=!e.startsWith("<!>");return()=>{if(f)return i(c,null),c;n===void 0&&(n=A(a?e:"<!>"+e),t||(n=g(n)));var u=o?document.importNode(n,!0):n.cloneNode(!0);if(t){var l=g(u),s=u.lastChild;i(l,s)}else i(u,u);return u}}function ne(e,r,t="svg"){var o=!e.startsWith("<!>"),n=`<${t}>${o?e:"<!>"+e}</${t}>`,a;return()=>{if(f)return i(c,null),c;if(!a){var u=A(n),l=g(u);a=g(l)}var s=a.cloneNode(!0);return i(s,s),s}}function oe(e=""){if(!f){var r=w(e+"");return i(r,r),r}var t=c;return t.nodeType!==3&&(t.before(t=w()),B(t)),i(t,t),t}function ue(){if(f)return i(c,null),c;var e=document.createDocumentFragment(),r=document.createComment(""),t=w();return e.append(r,t),i(r,t),e}function se(e,r){if(f){m.nodes_end=c,C();return}e!==null&&e.before(r)}function ie(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}const Q=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function ce(e){return Q.includes(e)}const X={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",srcobject:"srcObject"};function le(e){return e=e.toLowerCase(),X[e]??e}const Y=["touchstart","touchmove"];function fe(e){return Y.includes(e)}let v=!1;function de(e,r,t){const o=t[r]??(t[r]={store:null,source:R(void 0),unsubscribe:L});if(o.store!==e)if(o.unsubscribe(),o.store=e??null,e==null)o.source.v=void 0,o.unsubscribe=L;else{var n=!0;o.unsubscribe=F(e,a=>{n?o.source.v=a:$(o.source,a)}),n=!1}return U(o.source)}function _e(){const e={};return k(()=>{for(var r in e)e[r].unsubscribe()}),e}function pe(e){var r=v;try{return v=!1,[e(),v]}finally{v=r}}const Z="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Z);q();export{se as a,de as b,G as c,i as d,ue as e,pe as f,oe as g,K as h,fe as i,ie as j,J as k,te as l,ce as m,le as n,re as o,ne as p,H as r,_e as s,ae as t};
