hypnagaga/docs/assets/index-25af778d.js
2023-06-10 20:17:38 +01:00

5 lines
10 KiB
JavaScript

function y(){}const ut=t=>t;function at(t,e){for(const n in e)t[n]=e[n];return t}function Q(t){return t()}function I(){return Object.create(null)}function T(t){t.forEach(Q)}function D(t){return typeof t=="function"}function Ot(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let C;function zt(t,e){return C||(C=document.createElement("a")),C.href=e,t===C.href}function ft(t){return Object.keys(t).length===0}function lt(t,...e){if(t==null)return y;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function Dt(t,e,n){t.$$.on_destroy.push(lt(e,n))}function Lt(t,e,n,s){if(t){const i=V(t,e,n,s);return t[0](i)}}function V(t,e,n,s){return t[1]&&s?at(n.ctx.slice(),t[1](s(e))):n.ctx}function St(t,e,n,s){if(t[2]&&s){const i=t[2](s(n));if(e.dirty===void 0)return i;if(typeof i=="object"){const o=[],r=Math.max(e.dirty.length,i.length);for(let u=0;u<r;u+=1)o[u]=e.dirty[u]|i[u];return o}return e.dirty|i}return e.dirty}function Rt(t,e,n,s,i,o){if(i){const r=V(e,n,s,o);t.p(r,i)}}function qt(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let s=0;s<n;s++)e[s]=-1;return e}return-1}function Ft(t){const e={};for(const n in t)n[0]!=="$"&&(e[n]=t[n]);return e}function Wt(t,e){const n={};e=new Set(e);for(const s in t)!e.has(s)&&s[0]!=="$"&&(n[s]=t[s]);return n}function Ht(t){const e={};for(const n in t)e[n]=!0;return e}function Bt(t){return t??""}function It(t){return t&&D(t.destroy)?t.destroy:y}function Ut(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}const X=typeof window<"u";let dt=X?()=>window.performance.now():()=>Date.now(),W=X?t=>requestAnimationFrame(t):y;const v=new Set;function Y(t){v.forEach(e=>{e.c(t)||(v.delete(e),e.f())}),v.size!==0&&W(Y)}function ht(t){let e;return v.size===0&&W(Y),{promise:new Promise(n=>{v.add(e={c:t,f:n})}),abort(){v.delete(e)}}}const Gt=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function Z(t,e){t.appendChild(e)}function tt(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function _t(t){const e=H("style");return mt(tt(t),e),e.sheet}function mt(t,e){return Z(t.head||t,e),e.sheet}function pt(t,e,n){t.insertBefore(e,n||null)}function L(t){t.parentNode&&t.parentNode.removeChild(t)}function Jt(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function H(t){return document.createElement(t)}function yt(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function et(t){return document.createTextNode(t)}function Kt(){return et(" ")}function Qt(){return et("")}function U(t,e,n,s){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n,s)}function Vt(t){return function(e){return e.preventDefault(),t.call(this,e)}}function nt(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const gt=["width","height"];function Xt(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const s in e)e[s]==null?t.removeAttribute(s):s==="style"?t.style.cssText=e[s]:s==="__value"?t.value=t[s]=e[s]:n[s]&&n[s].set&&gt.indexOf(s)===-1?t[s]=e[s]:nt(t,s,e[s])}function Yt(t,e,n){e in t?t[e]=typeof t[e]=="boolean"&&n===""?!0:n:nt(t,e,n)}function $t(t){return Array.from(t.childNodes)}function Zt(t,e){e=""+e,t.data!==e&&(t.data=e)}function te(t,e){t.value=e??""}function ee(t,e,n,s){n==null?t.style.removeProperty(e):t.style.setProperty(e,n,s?"important":"")}let P;function bt(){if(P===void 0){P=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{P=!0}}return P}function ne(t,e){getComputedStyle(t).position==="static"&&(t.style.position="relative");const s=H("iframe");s.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),s.setAttribute("aria-hidden","true"),s.tabIndex=-1;const i=bt();let o;return i?(s.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",o=U(window,"message",r=>{r.source===s.contentWindow&&e()})):(s.src="about:blank",s.onload=()=>{o=U(s.contentWindow,"resize",e),e()}),Z(t,s),()=>{(i||o&&s.contentWindow)&&o(),L(s)}}function se(t,e,n){t.classList[n?"add":"remove"](e)}function st(t,e,{bubbles:n=!1,cancelable:s=!1}={}){const i=document.createEvent("CustomEvent");return i.initCustomEvent(t,n,s,e),i}class ie{constructor(e=!1){this.is_svg=!1,this.is_svg=e,this.e=this.n=null}c(e){this.h(e)}m(e,n,s=null){this.e||(this.is_svg?this.e=yt(n.nodeName):this.e=H(n.nodeType===11?"TEMPLATE":n.nodeName),this.t=n.tagName!=="TEMPLATE"?n:n.content,this.c(e)),this.i(s)}h(e){this.e.innerHTML=e,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes)}i(e){for(let n=0;n<this.n.length;n+=1)pt(this.t,this.n[n],e)}p(e){this.d(),this.h(e),this.i(this.a)}d(){this.n.forEach(L)}}function oe(t,e){return new t(e)}const M=new Map;let O=0;function wt(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}function xt(t,e){const n={stylesheet:_t(e),rules:{}};return M.set(t,n),n}function vt(t,e,n,s,i,o,r,u=0){const a=16.666/s;let c=`{
`;for(let m=0;m<=1;m+=a){const b=e+(n-e)*o(m);c+=m*100+`%{${r(b,1-b)}}
`}const d=c+`100% {${r(n,1-n)}}
}`,f=`__svelte_${wt(d)}_${u}`,h=tt(t),{stylesheet:l,rules:_}=M.get(h)||xt(h,t);_[f]||(_[f]=!0,l.insertRule(`@keyframes ${f} ${d}`,l.cssRules.length));const $=t.style.animation||"";return t.style.animation=`${$?`${$}, `:""}${f} ${s}ms linear ${i}ms 1 both`,O+=1,f}function G(t,e){const n=(t.style.animation||"").split(", "),s=n.filter(e?o=>o.indexOf(e)<0:o=>o.indexOf("__svelte")===-1),i=n.length-s.length;i&&(t.style.animation=s.join(", "),O-=i,O||Et())}function Et(){W(()=>{O||(M.forEach(t=>{const{ownerNode:e}=t.stylesheet;e&&L(e)}),M.clear())})}let A;function N(t){A=t}function g(){if(!A)throw new Error("Function called outside component initialization");return A}function re(t){g().$$.on_mount.push(t)}function ce(t){g().$$.after_update.push(t)}function ue(t){g().$$.on_destroy.push(t)}function ae(){const t=g();return(e,n,{cancelable:s=!1}={})=>{const i=t.$$.callbacks[e];if(i){const o=st(e,n,{cancelable:s});return i.slice().forEach(r=>{r.call(t,o)}),!o.defaultPrevented}return!0}}function fe(t,e){return g().$$.context.set(t,e),e}function le(t){return g().$$.context.get(t)}function de(t){return g().$$.context.has(t)}function he(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach(s=>s.call(this,e))}const x=[],J=[];let E=[];const q=[],it=Promise.resolve();let F=!1;function ot(){F||(F=!0,it.then(rt))}function _e(){return ot(),it}function z(t){E.push(t)}function me(t){q.push(t)}const R=new Set;let w=0;function rt(){if(w!==0)return;const t=A;do{try{for(;w<x.length;){const e=x[w];w++,N(e),kt(e.$$)}}catch(e){throw x.length=0,w=0,e}for(N(null),x.length=0,w=0;J.length;)J.pop()();for(let e=0;e<E.length;e+=1){const n=E[e];R.has(n)||(R.add(n),n())}E.length=0}while(x.length);for(;q.length;)q.pop()();F=!1,R.clear(),N(t)}function kt(t){if(t.fragment!==null){t.update(),T(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(z)}}function Nt(t){const e=[],n=[];E.forEach(s=>t.indexOf(s)===-1?e.push(s):n.push(s)),n.forEach(s=>s()),E=e}let k;function At(){return k||(k=Promise.resolve(),k.then(()=>{k=null})),k}function K(t,e,n){t.dispatchEvent(st(`${e?"intro":"outro"}${n}`))}const j=new Set;let p;function pe(){p={r:0,c:[],p}}function ye(){p.r||T(p.c),p=p.p}function Tt(t,e){t&&t.i&&(j.delete(t),t.i(e))}function ge(t,e,n,s){if(t&&t.o){if(j.has(t))return;j.add(t),p.c.push(()=>{j.delete(t),s&&(n&&t.d(1),s())}),t.o(e)}else s&&s()}const Ct={duration:0};function $e(t,e,n){const s={direction:"in"};let i=e(t,n,s),o=!1,r,u,a=0;function c(){r&&G(t,r)}function d(){const{delay:h=0,duration:l=300,easing:_=ut,tick:$=y,css:m}=i||Ct;m&&(r=vt(t,0,1,l,h,_,m,a++)),$(0,1);const b=dt()+h,ct=b+l;u&&u.abort(),o=!0,z(()=>K(t,!0,"start")),u=ht(S=>{if(o){if(S>=ct)return $(1,0),K(t,!0,"end"),c(),o=!1;if(S>=b){const B=_((S-b)/l);$(B,1-B)}}return o})}let f=!1;return{start(){f||(f=!0,G(t),D(i)?(i=i(s),At().then(d)):d())},invalidate(){f=!1},end(){o&&(c(),o=!1)}}}function be(t,e){const n={},s={},i={$$scope:1};let o=t.length;for(;o--;){const r=t[o],u=e[o];if(u){for(const a in r)a in u||(s[a]=1);for(const a in u)i[a]||(n[a]=u[a],i[a]=1);t[o]=u}else for(const a in r)i[a]=1}for(const r in s)r in n||(n[r]=void 0);return n}function we(t){return typeof t=="object"&&t!==null?t:{}}function xe(t,e,n){const s=t.$$.props[e];s!==void 0&&(t.$$.bound[s]=n,n(t.$$.ctx[s]))}function ve(t){t&&t.c()}function Pt(t,e,n,s){const{fragment:i,after_update:o}=t.$$;i&&i.m(e,n),s||z(()=>{const r=t.$$.on_mount.map(Q).filter(D);t.$$.on_destroy?t.$$.on_destroy.push(...r):T(r),t.$$.on_mount=[]}),o.forEach(z)}function jt(t,e){const n=t.$$;n.fragment!==null&&(Nt(n.after_update),T(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Mt(t,e){t.$$.dirty[0]===-1&&(x.push(t),ot(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Ee(t,e,n,s,i,o,r,u=[-1]){const a=A;N(t);const c=t.$$={fragment:null,ctx:[],props:o,update:y,not_equal:i,bound:I(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:I(),dirty:u,skip_bound:!1,root:e.target||a.$$.root};r&&r(c.root);let d=!1;if(c.ctx=n?n(t,e.props||{},(f,h,...l)=>{const _=l.length?l[0]:h;return c.ctx&&i(c.ctx[f],c.ctx[f]=_)&&(!c.skip_bound&&c.bound[f]&&c.bound[f](_),d&&Mt(t,f)),h}):[],c.update(),d=!0,T(c.before_update),c.fragment=s?s(c.ctx):!1,e.target){if(e.hydrate){const f=$t(e.target);c.fragment&&c.fragment.l(f),f.forEach(L)}else c.fragment&&c.fragment.c();e.intro&&Tt(t.$$.fragment),Pt(t,e.target,e.anchor,e.customElement),rt()}N(a)}class ke{$destroy(){jt(this,1),this.$destroy=y}$on(e,n){if(!D(n))return y;const s=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return s.push(n),()=>{const i=s.indexOf(n);i!==-1&&s.splice(i,1)}}$set(e){this.$$set&&!ft(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}export{Xt as $,It as A,D as B,ee as C,Kt as D,y as E,de as F,le as G,fe as H,Ft as I,Wt as J,Ht as K,Dt as L,et as M,U as N,T as O,Gt as P,zt as Q,z as R,ke as S,ne as T,Vt as U,he as V,ie as W,ue as X,Zt as Y,yt as Z,Bt as _,pt as a,te as a0,ae as a1,ce as a2,xe as a3,me as a4,Jt as a5,_e as a6,rt as a7,Ut as a8,$e as a9,Yt as aa,W as ab,Tt as b,ye as c,L as d,Qt as e,J as f,pe as g,oe as h,Ee as i,ve as j,be as k,we as l,Pt as m,jt as n,re as o,at as p,Lt as q,qt as r,Ot as s,ge as t,Rt as u,St as v,H as w,nt as x,se as y,Z as z};
//# sourceMappingURL=index-25af778d.js.map