pages-landing-page/_app/immutable/chunks/index-client.CTmobSb_.js
2024-10-25 22:04:13 +00:00

2 lines
2.3 KiB
JavaScript

import{i as E,g as I,H as L,b as O,c as g,d as y,e as A,h as V,f as v,j as $,k as C,l as M,m as Y,o as j,p as P,q,r as x,t as z,u as w,v as B,w as W,x as l,y as T,z as F,A as G,B as k}from"./utils.CCeXIeLi.js";import{a as J,r as D,h as m,b as K}from"./disclose-version.CyWgP0ZN.js";const Q=["touchstart","touchmove"];function U(t){return Q.includes(t)}let N=!0;function re(t,e){var s=e==null?"":typeof e=="object"?e+"":e;s!==(t.__t??(t.__t=t.nodeValue))&&(t.__t=s,t.nodeValue=s==null?"":s+"")}function X(t,e){return S(t,e)}function ae(t,e){E(),e.intro=e.intro??!1;const s=e.target,i=w,o=v;try{for(var n=I(s);n&&(n.nodeType!==8||n.data!==L);)n=O(n);if(!n)throw g;y(!0),A(n),V();const u=S(t,{...e,anchor:n});if(v===null||v.nodeType!==8||v.data!==$)throw C(),g;return y(!1),u}catch(u){if(u===g)return e.recover===!1&&M(),E(),Y(s),y(!1),X(t,e);throw u}finally{y(i),A(o)}}const d=new Map;function S(t,{target:e,anchor:s,props:i={},events:o,context:n,intro:u=!0}){E();var c=new Set,_=f=>{for(var r=0;r<f.length;r++){var a=f[r];if(!c.has(a)){c.add(a);var h=U(a);e.addEventListener(a,m,{passive:h});var R=d.get(a);R===void 0?(document.addEventListener(a,m,{passive:h}),d.set(a,1)):d.set(a,R+1)}}};_(j(J)),D.add(_);var p=void 0,H=P(()=>{var f=s??e.appendChild(q());return x(()=>{if(n){z({});var r=l;r.c=n}o&&(i.$$events=o),w&&K(f,null),N=u,p=t(f,i)||{},N=!0,w&&(B.nodes_end=v),n&&W()}),()=>{var h;for(var r of c){e.removeEventListener(r,m);var a=d.get(r);--a===0?(document.removeEventListener(r,m),d.delete(r)):d.set(r,a)}D.delete(_),b.delete(p),f!==s&&((h=f.parentNode)==null||h.removeChild(f))}});return b.set(p,H),p}let b=new WeakMap;function oe(t){const e=b.get(t);e&&e()}function Z(t){l===null&&T(),l.l!==null?te(l).m.push(t):G(()=>{const e=k(t);if(typeof e=="function")return e})}function ie(t){l===null&&T(),Z(()=>()=>k(t))}function ee(t,e,{bubbles:s=!1,cancelable:i=!1}={}){return new CustomEvent(t,{detail:e,bubbles:s,cancelable:i})}function ue(){const t=l;return t===null&&T(),(e,s,i)=>{var n;const o=(n=t.s.$$events)==null?void 0:n[e];if(o){const u=F(o)?o.slice():[o],c=ee(e,s,i);for(const _ of u)_.call(t.x,c);return!c.defaultPrevented}return!0}}function te(t){var e=t.l;return e.u??(e.u={a:[],b:[],m:[]})}export{N as a,ie as b,ue as c,ae as h,X as m,Z as o,re as s,oe as u};
//# sourceMappingURL=index-client.CTmobSb_.js.map