Files
mermaid-live-editor/_app/immutable/chunks/index.md5u5HDA.js
T
2024-05-12 03:53:51 +00:00

5 lines
4.6 KiB
JavaScript

var J=Object.defineProperty;var K=(t,e,n)=>e in t?J(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var C=(t,e,n)=>(K(t,typeof e!="symbol"?e+"":e,n),n);import{n as x,D as Q,E as U,g as L,r as v,i as j,F as N,G as V,H as k,I as A,d as q,J as T,K as W,L as X,M as Y,N as D,O as Z,P as tt,Q as et,R as nt,S as st}from"./scheduler.DwsPIhql.js";const B=typeof window<"u";let it=B?()=>window.performance.now():()=>Date.now(),z=B?t=>requestAnimationFrame(t):x;const y=new Set;function G(t){y.forEach(e=>{e.c(t)||(y.delete(e),e.f())}),y.size!==0&&z(G)}function rt(t){let e;return y.size===0&&z(G),{promise:new Promise(n=>{y.add(e={c:t,f:n})}),abort(){y.delete(e)}}}const S=new Map;let O=0;function at(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}function ot(t,e){const n={stylesheet:U(e),rules:{}};return S.set(t,n),n}function F(t,e,n,s,c,f,l,i=0){const u=16.666/s;let r=`{
`;for(let d=0;d<=1;d+=u){const p=e+(n-e)*f(d);r+=d*100+`%{${l(p,1-p)}}
`}const $=r+`100% {${l(n,1-n)}}
}`,o=`__svelte_${at($)}_${i}`,m=Q(t),{stylesheet:g,rules:a}=S.get(m)||ot(m,t);a[o]||(a[o]=!0,g.insertRule(`@keyframes ${o} ${$}`,g.cssRules.length));const _=t.style.animation||"";return t.style.animation=`${_?`${_}, `:""}${o} ${s}ms linear ${c}ms 1 both`,O+=1,o}function ft(t,e){const n=(t.style.animation||"").split(", "),s=n.filter(e?f=>f.indexOf(e)<0:f=>f.indexOf("__svelte")===-1),c=n.length-s.length;c&&(t.style.animation=s.join(", "),O-=c,O||ut())}function ut(){z(()=>{O||(S.forEach(t=>{const{ownerNode:e}=t.stylesheet;e&&L(e)}),S.clear())})}let w;function lt(){return w||(w=Promise.resolve(),w.then(()=>{w=null})),w}function I(t,e,n){t.dispatchEvent(V(`${e?"intro":"outro"}${n}`))}const E=new Set;let h;function yt(){h={r:0,c:[],p:h}}function wt(){h.r||v(h.c),h=h.p}function ct(t,e){t&&t.i&&(E.delete(t),t.i(e))}function xt(t,e,n,s){if(t&&t.o){if(E.has(t))return;E.add(t),h.c.push(()=>{E.delete(t),s&&(n&&t.d(1),s())}),t.o(e)}else s&&s()}const dt={duration:0};function vt(t,e,n,s){let f=e(t,n,{direction:"both"}),l=s?0:1,i=null,u=null,r=null,$;function o(){r&&ft(t,r)}function m(a,_){const d=a.b-l;return _*=Math.abs(d),{a:l,b:a.b,d,duration:_,start:a.start,end:a.start+_,group:a.group}}function g(a){const{delay:_=0,duration:d=300,easing:p=k,tick:M=x,css:P}=f||dt,R={start:it()+_,b:a};a||(R.group=h,h.r+=1),"inert"in t&&(a?$!==void 0&&(t.inert=$):($=t.inert,t.inert=!0)),i||u?u=R:(P&&(o(),r=F(t,l,a,d,_,p,P)),a&&M(0,1),i=m(R,d),N(()=>I(t,a,"start")),rt(b=>{if(u&&b>u.start&&(i=m(u,d),u=null,I(t,i.b,"start"),P&&(o(),r=F(t,l,i.b,i.duration,0,p,f.css))),i){if(b>=i.end)M(l=i.b,1-l),I(t,i.b,"end"),u||(i.b?o():--i.group.r||v(i.group.c)),i=null;else if(b>=i.start){const H=b-i.start;l=i.a+i.d*p(H/i.duration),M(l,1-l)}}return!!(i||u)}))}return{run(a){j(f)?lt().then(()=>{f=f({direction:a?"in":"out"}),g(a)}):g(a)},end(){o(),i=u=null}}}function bt(t,e,n){const s=t.$$.props[e];s!==void 0&&(t.$$.bound[s]=n,n(t.$$.ctx[s]))}function Et(t){t&&t.c()}function St(t,e){t&&t.l(e)}function _t(t,e,n){const{fragment:s,after_update:c}=t.$$;s&&s.m(e,n),N(()=>{const f=t.$$.on_mount.map(Z).filter(j);t.$$.on_destroy?t.$$.on_destroy.push(...f):v(f),t.$$.on_mount=[]}),c.forEach(N)}function $t(t,e){const n=t.$$;n.fragment!==null&&(X(n.after_update),v(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function ht(t,e){t.$$.dirty[0]===-1&&(tt.push(t),et(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Ot(t,e,n,s,c,f,l=null,i=[-1]){const u=Y;D(t);const r=t.$$={fragment:null,ctx:[],props:f,update:x,not_equal:c,bound:A(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(u?u.$$.context:[])),callbacks:A(),dirty:i,skip_bound:!1,root:e.target||u.$$.root};l&&l(r.root);let $=!1;if(r.ctx=n?n(t,e.props||{},(o,m,...g)=>{const a=g.length?g[0]:m;return r.ctx&&c(r.ctx[o],r.ctx[o]=a)&&(!r.skip_bound&&r.bound[o]&&r.bound[o](a),$&&ht(t,o)),m}):[],r.update(),$=!0,v(r.before_update),r.fragment=s?s(r.ctx):!1,e.target){if(e.hydrate){nt();const o=q(e.target);r.fragment&&r.fragment.l(o),o.forEach(L)}else r.fragment&&r.fragment.c();e.intro&&ct(t.$$.fragment),_t(t,e.target,e.anchor),st(),T()}D(u)}class Mt{constructor(){C(this,"$$");C(this,"$$set")}$destroy(){$t(this,1),this.$destroy=x}$on(e,n){if(!j(n))return x;const s=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return s.push(n),()=>{const c=s.indexOf(n);c!==-1&&s.splice(c,1)}}$set(e){this.$$set&&!W(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const mt="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(mt);export{Mt as S,St as a,xt as b,Et as c,$t as d,wt as e,vt as f,yt as g,bt as h,Ot as i,_t as m,ct as t};