2 lines
3.1 KiB
JavaScript
2 lines
3.1 KiB
JavaScript
function S(){}function C(t){return t()}function j(){return Object.create(null)}function m(t){t.forEach(C)}function O(t){return typeof t=="function"}function L(t,n){return t!=t?n==n:t!==n||t&&typeof t=="object"||typeof t=="function"}function M(t){return Object.keys(t).length===0}function Q(t,n){t.appendChild(n)}function R(t,n,e){t.insertBefore(n,e||null)}function z(t){t.parentNode.removeChild(t)}function U(t){return document.createElement(t)}function B(t){return document.createTextNode(t)}function V(){return B(" ")}function W(t,n,e){e==null?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}function F(t){return Array.from(t.childNodes)}let l;function f(t){l=t}function P(){if(!l)throw new Error("Function called outside component initialization");return l}function X(t){P().$$.on_mount.push(t)}const a=[],v=[],h=[],A=[],T=Promise.resolve();let y=!1;function q(){y||(y=!0,T.then(N))}function x(t){h.push(t)}const $=new Set;let d=0;function N(){const t=l;do{for(;d<a.length;){const n=a[d];d++,f(n),D(n.$$)}for(f(null),a.length=0,d=0;v.length;)v.pop()();for(let n=0;n<h.length;n+=1){const e=h[n];$.has(e)||($.add(e),e())}h.length=0}while(a.length);for(;A.length;)A.pop()();y=!1,$.clear(),f(t)}function D(t){if(t.fragment!==null){t.update(),m(t.before_update);const n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(x)}}const _=new Set;let G;function H(t,n){t&&t.i&&(_.delete(t),t.i(n))}function Y(t,n,e,o){if(t&&t.o){if(_.has(t))return;_.add(t),G.c.push(()=>{_.delete(t),o&&(e&&t.d(1),o())}),t.o(n)}}function Z(t){t&&t.c()}function I(t,n,e,o){const{fragment:u,on_mount:p,on_destroy:i,after_update:g}=t.$$;u&&u.m(n,e),o||x(()=>{const s=p.map(C).filter(O);i?i.push(...s):m(s),t.$$.on_mount=[]}),g.forEach(x)}function J(t,n){const e=t.$$;e.fragment!==null&&(m(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function K(t,n){t.$$.dirty[0]===-1&&(a.push(t),q(),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31}function tt(t,n,e,o,u,p,i,g=[-1]){const s=l;f(t);const r=t.$$={fragment:null,ctx:null,props:p,update:S,not_equal:u,bound:j(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(s?s.$$.context:[])),callbacks:j(),dirty:g,skip_bound:!1,root:n.target||s.$$.root};i&&i(r.root);let b=!1;if(r.ctx=e?e(t,n.props||{},(c,w,...E)=>{const k=E.length?E[0]:w;return r.ctx&&u(r.ctx[c],r.ctx[c]=k)&&(!r.skip_bound&&r.bound[c]&&r.bound[c](k),b&&K(t,c)),w}):[],r.update(),b=!0,m(r.before_update),r.fragment=o?o(r.ctx):!1,n.target){if(n.hydrate){const c=F(n.target);r.fragment&&r.fragment.l(c),c.forEach(z)}else r.fragment&&r.fragment.c();n.intro&&H(t.$$.fragment),I(t,n.target,n.anchor,n.customElement),N()}f(s)}class nt{$destroy(){J(this,1),this.$destroy=S}$on(n,e){const o=this.$$.callbacks[n]||(this.$$.callbacks[n]=[]);return o.push(e),()=>{const u=o.indexOf(e);u!==-1&&o.splice(u,1)}}$set(n){this.$$set&&!M(n)&&(this.$$.skip_bound=!0,this.$$set(n),this.$$.skip_bound=!1)}}export{nt as S,V as a,R as b,v as c,z as d,U as e,Z as f,W as g,Q as h,tt as i,Y as j,J as k,I as m,S as n,X as o,L as s,H as t};
|