stat_ui / build /_app /immutable /chunks /TMIfyKRi.js
Hanzo03's picture
initial
1f19ef0
raw
history blame
5.76 kB
import{ac as Q,Q as V,ad as Y,a6 as U,e as J,ae as C,af as N,A as _,p,ag as K,ah as w,o as X,q as Z,ai as B,H as tt,x as d,aj as m,M as k,ak as S,al as E,am as H,an as et,a as O,c as W,ao as st,z as F,F as A,ap as rt,D as it,aq as I,ar as nt,E as at,as as ht,at as lt,au as j,av as ot,w as ft,aw as ut,ax as ct,i as dt,ay as x,B as _t,az as pt,aA as L,G as R,aB as gt,aC as vt,aD as yt,aE as Et,I as bt,aF as wt,a0 as Tt,v as mt,aG as Rt,aH as Nt,a1 as St}from"./DxfgYVy1.js";function At(e){let t=0,r=Y(0),i;return()=>{Q()&&(V(r),U(()=>(t===0&&(i=J(()=>e(()=>C(r)))),t+=1,()=>{N(()=>{t-=1,t===0&&(i?.(),i=void 0,C(r))})})))}}var Dt=at|ht|lt;function kt(e,t,r){new Ft(e,t,r)}class Ft{parent;#r=!1;#e;#p=p?_:null;#i;#f;#n;#s=null;#t=null;#a=null;#h=null;#u=0;#l=0;#c=!1;#o=null;#v=()=>{this.#o&&K(this.#o,this.#u)};#y=At(()=>(this.#o=Y(this.#u),()=>{this.#o=null}));constructor(t,r,i){this.#e=t,this.#i=r,this.#f=i,this.parent=w.b,this.#r=!!this.#i.pending,this.#n=X(()=>{if(w.b=this,p){const n=this.#p;Z(),n.nodeType===B&&n.data===tt?this.#b():this.#E()}else{try{this.#s=d(()=>i(this.#e))}catch(n){this.error(n)}this.#l>0?this.#_():this.#r=!1}},Dt),p&&(this.#e=_)}#E(){try{this.#s=d(()=>this.#f(this.#e))}catch(t){this.error(t)}this.#r=!1}#b(){const t=this.#i.pending;t&&(this.#t=d(()=>t(this.#e)),m.enqueue(()=>{this.#s=this.#d(()=>(m.ensure(),d(()=>this.#f(this.#e)))),this.#l>0?this.#_():(k(this.#t,()=>{this.#t=null}),this.#r=!1)}))}is_pending(){return this.#r||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#i.pending}#d(t){var r=w,i=O,n=W;S(this.#n),E(this.#n),H(this.#n.ctx);try{return t()}catch(s){return et(s),null}finally{S(r),E(i),H(n)}}#_(){const t=this.#i.pending;this.#s!==null&&(this.#h=document.createDocumentFragment(),Ot(this.#s,this.#h)),this.#t===null&&(this.#t=d(()=>t(this.#e)))}#g(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#g(t);return}this.#l+=t,this.#l===0&&(this.#r=!1,this.#t&&k(this.#t,()=>{this.#t=null}),this.#h&&(this.#e.before(this.#h),this.#h=null),N(()=>{m.ensure().flush()}))}update_pending_count(t){this.#g(t),this.#u+=t,st.add(this.#v)}get_effect_pending(){return this.#y(),V(this.#o)}error(t){var r=this.#i.onerror;let i=this.#i.failed;if(this.#c||!r&&!i)throw t;this.#s&&(F(this.#s),this.#s=null),this.#t&&(F(this.#t),this.#t=null),this.#a&&(F(this.#a),this.#a=null),p&&(A(this.#p),rt(),A(it()));var n=!1,s=!1;const h=()=>{if(n){ot();return}n=!0,s&&nt(),m.ensure(),this.#u=0,this.#a!==null&&k(this.#a,()=>{this.#a=null}),this.#r=this.has_pending_snippet(),this.#s=this.#d(()=>(this.#c=!1,d(()=>this.#f(this.#e)))),this.#l>0?this.#_():this.#r=!1};var f=O;try{E(null),s=!0,r?.(t,h),s=!1}catch(o){I(o,this.#n&&this.#n.parent)}finally{E(f)}i&&N(()=>{this.#a=this.#d(()=>{this.#c=!0;try{return d(()=>{i(this.#e,()=>t,()=>h)})}catch(o){return I(o,this.#n.parent),null}finally{this.#c=!1}})})}}function Ot(e,t){for(var r=e.nodes_start,i=e.nodes_end;r!==null;){var n=r===i?null:j(r);t.append(r),r=n}}const xt=["touchstart","touchmove"];function Lt(e){return xt.includes(e)}const Mt=new Set,q=new Set;function Bt(e,t,r,i={}){function n(s){if(i.capture||b.call(t,s),!s.cancelBubble)return ut(()=>r?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?N(()=>{t.addEventListener(e,n,i)}):t.addEventListener(e,n,i),n}function It(e,t,r,i,n){var s={capture:i,passive:n},h=Bt(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&ft(()=>{t.removeEventListener(e,h,s)})}let P=null;function b(e){var t=this,r=t.ownerDocument,i=e.type,n=e.composedPath?.()||[],s=n[0]||e.target;P=e;var h=0,f=P===e&&e.__root;if(f){var o=n.indexOf(f);if(o!==-1&&(t===document||t===window)){e.__root=t;return}var g=n.indexOf(t);if(g===-1)return;o<=g&&(h=o)}if(s=n[h]||e.target,s!==t){ct(e,"currentTarget",{configurable:!0,get(){return s||r}});var D=O,u=w;E(null),S(null);try{for(var a,l=[];s!==null;){var v=s.assignedSlot||s.parentNode||s.host||null;try{var c=s["__"+i];if(c!=null&&(!s.disabled||e.target===s))if(dt(c)){var[G,...$]=c;G.apply(s,[e,...$])}else c.call(s,e)}catch(T){a?l.push(T):a=T}if(e.cancelBubble||v===t||v===null)break;s=v}if(a){for(let T of l)queueMicrotask(()=>{throw T});throw a}}finally{e.__root=t,delete e.currentTarget,E(D),S(u)}}}function qt(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function Ct(e,t){return z(e,t)}function Pt(e,t){x(),t.intro=t.intro??!1;const r=t.target,i=p,n=_;try{for(var s=_t(r);s&&(s.nodeType!==B||s.data!==pt);)s=j(s);if(!s)throw L;R(!0),A(s);const h=z(e,{...t,anchor:s});return R(!1),h}catch(h){if(h instanceof Error&&h.message.split(`
`).some(f=>f.startsWith("https://svelte.dev/e/")))throw h;return h!==L&&console.warn("Failed to hydrate: ",h),t.recover===!1&&gt(),x(),vt(r),R(!1),Ct(e,t)}finally{R(i),A(n),wt()}}const y=new Map;function z(e,{target:t,anchor:r,props:i={},events:n,context:s,intro:h=!0}){x();var f=new Set,o=u=>{for(var a=0;a<u.length;a++){var l=u[a];if(!f.has(l)){f.add(l);var v=Lt(l);t.addEventListener(l,b,{passive:v});var c=y.get(l);c===void 0?(document.addEventListener(l,b,{passive:v}),y.set(l,1)):y.set(l,c+1)}}};o(yt(Mt)),q.add(o);var g=void 0,D=Et(()=>{var u=r??t.appendChild(bt());return kt(u,{pending:()=>{}},a=>{if(s){Tt({});var l=W;l.c=s}if(n&&(i.$$events=n),p&&mt(a,null),g=e(a,i)||{},p&&(w.nodes_end=_,_===null||_.nodeType!==B||_.data!==Rt))throw Nt(),L;s&&St()}),()=>{for(var a of f){t.removeEventListener(a,b);var l=y.get(a);--l===0?(document.removeEventListener(a,b),y.delete(a)):y.set(a,l)}q.delete(o),u!==r&&u.parentNode?.removeChild(u)}});return M.set(g,D),g}let M=new WeakMap;function Vt(e,t){const r=M.get(e);return r?(M.delete(e),r(t)):Promise.resolve()}export{It as e,Pt as h,Ct as m,qt as s,Vt as u};