mirror of
https://github.com/Sped0n/bridget.git
synced 2026-04-14 10:09:31 -07:00
Move bundled outputs to dedicated css/js subdirs. Update Vite config to output directly to bundled/ with simplified naming. Add Hugo module mounts to expose as assets/bundled and static/bundled. Adjust gitignore and partial accordingly. Signed-off-by: Sped0n <hi@sped0n.com>
2 lines
24 KiB
JavaScript
2 lines
24 KiB
JavaScript
const De="modulepreload",Ve=function(e){return"/"+e},ye={},de=function(t,n,s){let i=Promise.resolve();if(n&&n.length>0){let c=function(f){return Promise.all(f.map(a=>Promise.resolve(a).then(u=>({status:"fulfilled",value:u}),u=>({status:"rejected",reason:u}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),r=l?.nonce||l?.getAttribute("nonce");i=c(n.map(f=>{if(f=Ve(f),f in ye)return;ye[f]=!0;const a=f.endsWith(".css"),u=a?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${u}`))return;const d=document.createElement("link");if(d.rel=a?"stylesheet":De,a||(d.as="script"),d.crossOrigin="",d.href=f,r&&d.setAttribute("nonce",r),document.head.appendChild(d),a)return new Promise((w,S)=>{d.addEventListener("load",w),d.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${f}`)))})}))}function o(l){const r=new Event("vite:preloadError",{cancelable:!0});if(r.payload=l,window.dispatchEvent(r),!r.defaultPrevented)throw l}return i.then(l=>{for(const r of l||[])r.status==="rejected"&&o(r.reason);return t().catch(o)})},h={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return we(this.context.count)},getNextContextId(){return we(this.context.count++)}};function we(e){const t=String(e),n=t.length-1;return h.context.id+(n?String.fromCharCode(96+n):"")+t}function B(e){h.context=e}const Ce=!1,Ue=(e,t)=>e===t,ce=Symbol("solid-proxy"),Fe=typeof Proxy=="function",Be=Symbol("solid-track"),Y={equals:Ue};let Te=ve;const _=1,J=2,Ie={owned:null,cleanups:null,context:null,owner:null},ie={};var g=null;let oe=null,He=null,y=null,b=null,v=null,ee=0;function W(e,t){const n=y,s=g,i=e.length===0,o=t===void 0?s:t,l=i?Ie:{owned:null,cleanups:null,context:o?o.context:null,owner:o},r=i?e:()=>e(()=>A(()=>H(l)));g=l,y=null;try{return M(r,!0)}finally{y=n,g=s}}function N(e,t){t=t?Object.assign({},Y,t):Y;const n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},s=i=>(typeof i=="function"&&(i=i(n.value)),Ne(n,i));return[ke.bind(n),s]}function qe(e,t,n){const s=te(e,t,!0,_);V(s)}function j(e,t,n){const s=te(e,t,!1,_);V(s)}function Oe(e,t,n){Te=Ze;const s=te(e,t,!1,_);s.user=!0,v?v.push(s):V(s)}function C(e,t,n){n=n?Object.assign({},Y,n):Y;const s=te(e,t,!0,0);return s.observers=null,s.observerSlots=null,s.comparator=n.equals||void 0,V(s),ke.bind(s)}function Ke(e){return e&&typeof e=="object"&&"then"in e}function Le(e,t,n){let s,i,o;s=!0,i=e,o={};let l=null,r=ie,c=null,f=!1,a="initialValue"in o,u=typeof s=="function"&&C(s);const d=new Set,[w,S]=(o.storage||N)(o.initialValue),[O,R]=N(void 0),[U,T]=N(void 0,{equals:!1}),[P,I]=N(a?"ready":"unresolved");h.context&&(c=h.getNextContextId(),o.ssrLoadFrom==="initial"?r=o.initialValue:h.load&&h.has(c)&&(r=h.load(c)));function E(m,p,L,x){return l===m&&(l=null,x!==void 0&&(a=!0),(m===r||p===r)&&o.onHydrated&&queueMicrotask(()=>o.onHydrated(x,{value:p})),r=ie,ne(p,L)),p}function ne(m,p){M(()=>{p===void 0&&S(()=>m),I(p!==void 0?"errored":a?"ready":"unresolved"),R(p);for(const L of d.keys())L.decrement();d.clear()},!1)}function se(){const m=Je,p=w(),L=O();if(L!==void 0&&!l)throw L;return y&&y.user,p}function re(m=!0){if(m!==!1&&f)return;f=!1;const p=u?u():s;if(p==null||p===!1){E(l,A(w));return}let L;const x=r!==ie?r:A(()=>{try{return i(p,{value:w(),refetching:m})}catch(F){L=F}});if(L!==void 0){E(l,void 0,X(L),p);return}else if(!Ke(x))return E(l,x,void 0,p),x;return l=x,"v"in x?(x.s===1?E(l,x.v,void 0,p):E(l,void 0,X(x.v),p),x):(f=!0,queueMicrotask(()=>f=!1),M(()=>{I(a?"refreshing":"pending"),T()},!1),x.then(F=>E(x,F,void 0,p),F=>E(x,void 0,X(F),p)))}Object.defineProperties(se,{state:{get:()=>P()},error:{get:()=>O()},loading:{get(){const m=P();return m==="pending"||m==="refreshing"}},latest:{get(){if(!a)return se();const m=O();if(m&&!l)throw m;return w()}}});let ge=g;return u?qe(()=>(ge=g,re(!1))):re(!1),[se,{refetch:m=>We(ge,()=>re(m)),mutate:S}]}function Vt(e){return M(e,!1)}function A(e){if(y===null)return e();const t=y;y=null;try{return e()}finally{y=t}}function Ut(e,t,n){const s=Array.isArray(e);let i,o=n&&n.defer;return l=>{let r;if(s){r=Array(e.length);for(let f=0;f<e.length;f++)r[f]=e[f]()}else r=e();if(o)return o=!1,l;const c=A(()=>t(r,i,l));return i=r,c}}function Ft(e){Oe(()=>A(e))}function Ge(e){return g===null||(g.cleanups===null?g.cleanups=[e]:g.cleanups.push(e)),e}function Bt(){return y}function We(e,t){const n=g,s=y;g=e,y=null;try{return M(t,!0)}catch(i){he(i)}finally{g=n,y=s}}const[Ht,qt]=N(!1);function Xe(e,t){const n=Symbol("context");return{id:n,Provider:et(n),defaultValue:e}}function Ye(e){let t;return g&&g.context&&(t=g.context[e.id])!==void 0?t:e.defaultValue}function $e(e){const t=C(e),n=C(()=>ue(t()));return n.toArray=()=>{const s=n();return Array.isArray(s)?s:s!=null?[s]:[]},n}let Je;function ke(){if(this.sources&&this.state)if(this.state===_)V(this);else{const e=b;b=null,M(()=>Q(this),!1),b=e}if(y){const e=this.observers?this.observers.length:0;y.sources?(y.sources.push(this),y.sourceSlots.push(e)):(y.sources=[this],y.sourceSlots=[e]),this.observers?(this.observers.push(y),this.observerSlots.push(y.sources.length-1)):(this.observers=[y],this.observerSlots=[y.sources.length-1])}return this.value}function Ne(e,t,n){let s=e.value;return(!e.comparator||!e.comparator(s,t))&&(e.value=t,e.observers&&e.observers.length&&M(()=>{for(let i=0;i<e.observers.length;i+=1){const o=e.observers[i],l=oe&&oe.running;l&&oe.disposed.has(o),(l?!o.tState:!o.state)&&(o.pure?b.push(o):v.push(o),o.observers&&Me(o)),l||(o.state=_)}if(b.length>1e6)throw b=[],new Error},!1)),t}function V(e){if(!e.fn)return;H(e);const t=ee;ze(e,e.value,t)}function ze(e,t,n){let s;const i=g,o=y;y=g=e;try{s=e.fn(t)}catch(l){return e.pure&&(e.state=_,e.owned&&e.owned.forEach(H),e.owned=null),e.updatedAt=n+1,he(l)}finally{y=o,g=i}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?Ne(e,s):e.value=s,e.updatedAt=n)}function te(e,t,n,s=_,i){const o={fn:e,state:s,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:g,context:g?g.context:null,pure:n};return g===null||g!==Ie&&(g.owned?g.owned.push(o):g.owned=[o]),o}function z(e){if(e.state===0)return;if(e.state===J)return Q(e);if(e.suspense&&A(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<ee);)e.state&&t.push(e);for(let n=t.length-1;n>=0;n--)if(e=t[n],e.state===_)V(e);else if(e.state===J){const s=b;b=null,M(()=>Q(e,t[0]),!1),b=s}}function M(e,t){if(b)return e();let n=!1;t||(b=[]),v?n=!0:v=[],ee++;try{const s=e();return Qe(n),s}catch(s){n||(v=null),b=null,he(s)}}function Qe(e){if(b&&(ve(b),b=null),e)return;const t=v;v=null,t.length&&M(()=>Te(t),!1)}function ve(e){for(let t=0;t<e.length;t++)z(e[t])}function Ze(e){let t,n=0;for(t=0;t<e.length;t++){const s=e[t];s.user?e[n++]=s:z(s)}if(h.context){if(h.count){h.effects||(h.effects=[]),h.effects.push(...e.slice(0,n));return}B()}for(h.effects&&(h.done||!h.count)&&(e=[...h.effects,...e],n+=h.effects.length,delete h.effects),t=0;t<n;t++)z(e[t])}function Q(e,t){e.state=0;for(let n=0;n<e.sources.length;n+=1){const s=e.sources[n];if(s.sources){const i=s.state;i===_?s!==t&&(!s.updatedAt||s.updatedAt<ee)&&z(s):i===J&&Q(s,t)}}}function Me(e){for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t];n.state||(n.state=J,n.pure?b.push(n):v.push(n),n.observers&&Me(n))}}function H(e){let t;if(e.sources)for(;e.sources.length;){const n=e.sources.pop(),s=e.sourceSlots.pop(),i=n.observers;if(i&&i.length){const o=i.pop(),l=n.observerSlots.pop();s<i.length&&(o.sourceSlots[l]=s,i[s]=o,n.observerSlots[s]=l)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)H(e.tOwned[t]);delete e.tOwned}if(e.owned){for(t=e.owned.length-1;t>=0;t--)H(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0}function X(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function he(e,t=g){throw X(e)}function ue(e){if(typeof e=="function"&&!e.length)return ue(e());if(Array.isArray(e)){const t=[];for(let n=0;n<e.length;n++){const s=ue(e[n]);Array.isArray(s)?t.push.apply(t,s):t.push(s)}return t}return e}function et(e,t){return function(s){let i;return j(()=>i=A(()=>(g.context={...g.context,[e]:s.value},$e(()=>s.children))),void 0),i}}const tt=Symbol("fallback");function pe(e){for(let t=0;t<e.length;t++)e[t]()}function nt(e,t,n={}){let s=[],i=[],o=[],l=0,r=t.length>1?[]:null;return Ge(()=>pe(o)),()=>{let c=e()||[],f=c.length,a,u;return c[Be],A(()=>{let w,S,O,R,U,T,P,I,E;if(f===0)l!==0&&(pe(o),o=[],s=[],i=[],l=0,r&&(r=[])),n.fallback&&(s=[tt],i[0]=W(ne=>(o[0]=ne,n.fallback())),l=1);else if(l===0){for(i=new Array(f),u=0;u<f;u++)s[u]=c[u],i[u]=W(d);l=f}else{for(O=new Array(f),R=new Array(f),r&&(U=new Array(f)),T=0,P=Math.min(l,f);T<P&&s[T]===c[T];T++);for(P=l-1,I=f-1;P>=T&&I>=T&&s[P]===c[I];P--,I--)O[I]=i[P],R[I]=o[P],r&&(U[I]=r[P]);for(w=new Map,S=new Array(I+1),u=I;u>=T;u--)E=c[u],a=w.get(E),S[u]=a===void 0?-1:a,w.set(E,u);for(a=T;a<=P;a++)E=s[a],u=w.get(E),u!==void 0&&u!==-1?(O[u]=i[a],R[u]=o[a],r&&(U[u]=r[a]),u=S[u],w.set(E,u)):o[a]();for(u=T;u<f;u++)u in O?(i[u]=O[u],o[u]=R[u],r&&(r[u]=U[u],r[u](u))):i[u]=W(d);i=i.slice(0,l=f),s=c.slice(0)}return i});function d(w){if(o[u]=w,r){const[S,O]=N(u);return r[u]=O,t(c[u],S)}return t(c[u])}}}function k(e,t){return A(()=>e(t||{}))}function G(){return!0}const st={get(e,t,n){return t===ce?n:e.get(t)},has(e,t){return t===ce?!0:e.has(t)},set:G,deleteProperty:G,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:G,deleteProperty:G}},ownKeys(e){return e.keys()}};function le(e){return(e=typeof e=="function"?e():e)?e:{}}function rt(){for(let e=0,t=this.length;e<t;++e){const n=this[e]();if(n!==void 0)return n}}function Kt(...e){let t=!1;for(let l=0;l<e.length;l++){const r=e[l];t=t||!!r&&ce in r,e[l]=typeof r=="function"?(t=!0,C(r)):r}if(Fe&&t)return new Proxy({get(l){for(let r=e.length-1;r>=0;r--){const c=le(e[r])[l];if(c!==void 0)return c}},has(l){for(let r=e.length-1;r>=0;r--)if(l in le(e[r]))return!0;return!1},keys(){const l=[];for(let r=0;r<e.length;r++)l.push(...Object.keys(le(e[r])));return[...new Set(l)]}},st);const n={},s=Object.create(null);for(let l=e.length-1;l>=0;l--){const r=e[l];if(!r)continue;const c=Object.getOwnPropertyNames(r);for(let f=c.length-1;f>=0;f--){const a=c[f];if(a==="__proto__"||a==="constructor")continue;const u=Object.getOwnPropertyDescriptor(r,a);if(!s[a])s[a]=u.get?{enumerable:!0,configurable:!0,get:rt.bind(n[a]=[u.get.bind(r)])}:u.value!==void 0?u:void 0;else{const d=n[a];d&&(u.get?d.push(u.get.bind(r)):u.value!==void 0&&d.push(()=>u.value))}}}const i={},o=Object.keys(s);for(let l=o.length-1;l>=0;l--){const r=o[l],c=s[r];c&&c.get?Object.defineProperty(i,r,c):i[r]=c?c.value:void 0}return i}function _e(e){let t,n;const s=i=>{const o=h.context;if(o){const[r,c]=N();h.count||(h.count=0),h.count++,(n||(n=e())).then(f=>{!h.done&&B(o),h.count--,c(()=>f.default),B()}),t=r}else if(!t){const[r]=Le(()=>(n||(n=e())).then(c=>c.default));t=r}let l;return C(()=>(l=t())?A(()=>{if(!o||h.done)return l(i);const r=h.context;B(o);const c=l(i);return B(r),c}):"")};return s.preload=()=>n||((n=e()).then(i=>t=()=>i.default),n),s}const je=e=>`Stale read from <${e}>.`;function Gt(e){const t="fallback"in e&&{fallback:()=>e.fallback};return C(nt(()=>e.each,e.children,t||void 0))}function it(e){const t=e.keyed,n=C(()=>e.when,void 0,void 0),s=t?n:C(n,void 0,{equals:(i,o)=>!i==!o});return C(()=>{const i=s();if(i){const o=e.children;return typeof o=="function"&&o.length>0?A(()=>o(t?i:()=>{if(!A(s))throw je("Show");return n()})):o}return e.fallback},void 0,void 0)}function ot(e){const t=$e(()=>e.children),n=C(()=>{const s=t(),i=Array.isArray(s)?s:[s];let o=()=>{};for(let l=0;l<i.length;l++){const r=l,c=i[l],f=o,a=C(()=>f()?void 0:c.when,void 0,void 0),u=c.keyed?a:C(a,void 0,{equals:(d,w)=>!d==!w});o=()=>f()||(u()?[r,a,c]:void 0)}return o});return C(()=>{const s=n()();if(!s)return e.fallback;const[i,o,l]=s,r=l.children;return typeof r=="function"&&r.length>0?A(()=>r(l.keyed?o():()=>{if(A(n)()?.[0]!==i)throw je("Match");return o()})):r},void 0,void 0)}function me(e){return e}const lt=["allowfullscreen","async","alpha","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","adauctionheaders","browsingtopics","credentialless","defaultchecked","defaultmuted","defaultselected","defer","disablepictureinpicture","disableremoteplayback","preservespitch","shadowrootclonable","shadowrootcustomelementregistry","shadowrootdelegatesfocus","shadowrootserializable","sharedstoragewritable"],ct=new Set(["className","value","readOnly","noValidate","formNoValidate","isMap","noModule","playsInline","adAuctionHeaders","allowFullscreen","browsingTopics","defaultChecked","defaultMuted","defaultSelected","disablePictureInPicture","disableRemotePlayback","preservesPitch","shadowRootClonable","shadowRootCustomElementRegistry","shadowRootDelegatesFocus","shadowRootSerializable","sharedStorageWritable",...lt]),ut=new Set(["innerHTML","textContent","innerText","children"]),ft=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),at=Object.assign(Object.create(null),{class:"className",novalidate:{$:"noValidate",FORM:1},formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1},adauctionheaders:{$:"adAuctionHeaders",IFRAME:1},allowfullscreen:{$:"allowFullscreen",IFRAME:1},browsingtopics:{$:"browsingTopics",IMG:1},defaultchecked:{$:"defaultChecked",INPUT:1},defaultmuted:{$:"defaultMuted",AUDIO:1,VIDEO:1},defaultselected:{$:"defaultSelected",OPTION:1},disablepictureinpicture:{$:"disablePictureInPicture",VIDEO:1},disableremoteplayback:{$:"disableRemotePlayback",AUDIO:1,VIDEO:1},preservespitch:{$:"preservesPitch",AUDIO:1,VIDEO:1},shadowrootclonable:{$:"shadowRootClonable",TEMPLATE:1},shadowrootdelegatesfocus:{$:"shadowRootDelegatesFocus",TEMPLATE:1},shadowrootserializable:{$:"shadowRootSerializable",TEMPLATE:1},sharedstoragewritable:{$:"sharedStorageWritable",IFRAME:1,IMG:1}});function dt(e,t){const n=at[e];return typeof n=="object"?n[t]?n.$:void 0:n}const ht=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]);function gt(e,t,n){let s=n.length,i=t.length,o=s,l=0,r=0,c=t[i-1].nextSibling,f=null;for(;l<i||r<o;){if(t[l]===n[r]){l++,r++;continue}for(;t[i-1]===n[o-1];)i--,o--;if(i===l){const a=o<s?r?n[r-1].nextSibling:n[o-r]:c;for(;r<o;)e.insertBefore(n[r++],a)}else if(o===r)for(;l<i;)(!f||!f.has(t[l]))&&t[l].remove(),l++;else if(t[l]===n[o-1]&&n[r]===t[i-1]){const a=t[--i].nextSibling;e.insertBefore(n[r++],t[l++].nextSibling),e.insertBefore(n[--o],a),t[i]=n[o]}else{if(!f){f=new Map;let u=r;for(;u<o;)f.set(n[u],u++)}const a=f.get(t[l]);if(a!=null)if(r<a&&a<o){let u=l,d=1,w;for(;++u<i&&u<o&&!((w=f.get(t[u]))==null||w!==a+d);)d++;if(d>a-r){const S=t[l];for(;r<a;)e.insertBefore(n[r++],S)}else e.replaceChild(n[r++],t[l++])}else l++;else t[l++].remove()}}}const be="_$DX_DELEGATE";function yt(e,t,n,s={}){let i;return W(o=>{i=o,t===document?e():Pt(t,e(),t.firstChild?null:void 0,n)},s.owner),()=>{i(),t.textContent=""}}function wt(e,t,n,s){let i;const o=()=>{const r=document.createElement("template");return r.innerHTML=e,r.content.firstChild},l=()=>(i||(i=o())).cloneNode(!0);return l.cloneNode=l,l}function pt(e,t=window.document){const n=t[be]||(t[be]=new Set);for(let s=0,i=e.length;s<i;s++){const o=e[s];n.has(o)||(n.add(o),t.addEventListener(o,It))}}function fe(e,t,n){K(e)||(n==null?e.removeAttribute(t):e.setAttribute(t,n))}function mt(e,t,n){K(e)||(n?e.setAttribute(t,""):e.removeAttribute(t))}function bt(e,t){K(e)||(t==null?e.removeAttribute("class"):e.className=t)}function xt(e,t,n,s){if(s)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){const i=n[0];e.addEventListener(t,n[0]=o=>i.call(e,n[1],o))}else e.addEventListener(t,n,typeof n!="function"&&n)}function At(e,t,n={}){const s=Object.keys(t||{}),i=Object.keys(n);let o,l;for(o=0,l=i.length;o<l;o++){const r=i[o];!r||r==="undefined"||t[r]||(xe(e,r,!1),delete n[r])}for(o=0,l=s.length;o<l;o++){const r=s[o],c=!!t[r];!r||r==="undefined"||n[r]===c||!c||(xe(e,r,!0),n[r]=c)}return n}function St(e,t,n){if(!t)return n?fe(e,"style"):t;const s=e.style;if(typeof t=="string")return s.cssText=t;typeof n=="string"&&(s.cssText=n=void 0),n||(n={}),t||(t={});let i,o;for(o in n)t[o]==null&&s.removeProperty(o),delete n[o];for(o in t)i=t[o],i!==n[o]&&(s.setProperty(o,i),n[o]=i);return n}function Wt(e,t,n){n!=null?e.style.setProperty(t,n):e.style.removeProperty(t)}function Xt(e,t={},n,s){const i={};return j(()=>i.children=q(e,t.children,i.children)),j(()=>typeof t.ref=="function"&&Et(t.ref,e)),j(()=>Ct(e,t,n,!0,i,!0)),i}function Et(e,t,n){return A(()=>e(t,n))}function Pt(e,t,n,s){if(n!==void 0&&!s&&(s=[]),typeof t!="function")return q(e,t,s,n);j(i=>q(e,t(),i,n),s)}function Ct(e,t,n,s,i={},o=!1){t||(t={});for(const l in i)if(!(l in t)){if(l==="children")continue;i[l]=Ae(e,l,null,i[l],n,o,t)}for(const l in t){if(l==="children")continue;const r=t[l];i[l]=Ae(e,l,r,i[l],n,o,t)}}function K(e){return!!h.context&&!h.done&&(!e||e.isConnected)}function Tt(e){return e.toLowerCase().replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function xe(e,t,n){const s=t.trim().split(/\s+/);for(let i=0,o=s.length;i<o;i++)e.classList.toggle(s[i],n)}function Ae(e,t,n,s,i,o,l){let r,c,f,a,u;if(t==="style")return St(e,n,s);if(t==="classList")return At(e,n,s);if(n===s)return s;if(t==="ref")o||n(e);else if(t.slice(0,3)==="on:"){const d=t.slice(3);s&&e.removeEventListener(d,s,typeof s!="function"&&s),n&&e.addEventListener(d,n,typeof n!="function"&&n)}else if(t.slice(0,10)==="oncapture:"){const d=t.slice(10);s&&e.removeEventListener(d,s,!0),n&&e.addEventListener(d,n,!0)}else if(t.slice(0,2)==="on"){const d=t.slice(2).toLowerCase(),w=ht.has(d);if(!w&&s){const S=Array.isArray(s)?s[0]:s;e.removeEventListener(d,S)}(w||n)&&(xt(e,d,n,w),w&&pt([d]))}else if(t.slice(0,5)==="attr:")fe(e,t.slice(5),n);else if(t.slice(0,5)==="bool:")mt(e,t.slice(5),n);else if((u=t.slice(0,5)==="prop:")||(f=ut.has(t))||(a=dt(t,e.tagName))||(c=ct.has(t))||(r=e.nodeName.includes("-")||"is"in l)){if(u)t=t.slice(5),c=!0;else if(K(e))return n;t==="class"||t==="className"?bt(e,n):r&&!c&&!f?e[Tt(t)]=n:e[a||t]=n}else fe(e,ft[t]||t,n);return n}function It(e){if(h.registry&&h.events&&h.events.find(([c,f])=>f===e))return;let t=e.target;const n=`$$${e.type}`,s=e.target,i=e.currentTarget,o=c=>Object.defineProperty(e,"target",{configurable:!0,value:c}),l=()=>{const c=t[n];if(c&&!t.disabled){const f=t[`${n}Data`];if(f!==void 0?c.call(t,f,e):c.call(t,e),e.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(e.target)&&o(t.host),!0},r=()=>{for(;l()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}}),h.registry&&!h.done&&(h.done=_$HY.done=!0),e.composedPath){const c=e.composedPath();o(c[0]);for(let f=0;f<c.length-2&&(t=c[f],!!l());f++){if(t._$host){t=t._$host,r();break}if(t.parentNode===i)break}}else r();o(s)}function q(e,t,n,s,i){const o=K(e);if(o){!n&&(n=[...e.childNodes]);let c=[];for(let f=0;f<n.length;f++){const a=n[f];a.nodeType===8&&a.data.slice(0,2)==="!$"?a.remove():c.push(a)}n=c}for(;typeof n=="function";)n=n();if(t===n)return n;const l=typeof t,r=s!==void 0;if(e=r&&n[0]&&n[0].parentNode||e,l==="string"||l==="number"){if(o||l==="number"&&(t=t.toString(),t===n))return n;if(r){let c=n[0];c&&c.nodeType===3?c.data!==t&&(c.data=t):c=document.createTextNode(t),n=D(e,n,s,c)}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t}else if(t==null||l==="boolean"){if(o)return n;n=D(e,n,s)}else{if(l==="function")return j(()=>{let c=t();for(;typeof c=="function";)c=c();n=q(e,c,n,s)}),()=>n;if(Array.isArray(t)){const c=[],f=n&&Array.isArray(n);if(ae(c,t,n,i))return j(()=>n=q(e,c,n,s,!0)),()=>n;if(o){if(!c.length)return n;if(s===void 0)return n=[...e.childNodes];let a=c[0];if(a.parentNode!==e)return n;const u=[a];for(;(a=a.nextSibling)!==s;)u.push(a);return n=u}if(c.length===0){if(n=D(e,n,s),r)return n}else f?n.length===0?Se(e,c,s):gt(e,n,c):(n&&D(e),Se(e,c));n=c}else if(t.nodeType){if(o&&t.parentNode)return n=r?[t]:t;if(Array.isArray(n)){if(r)return n=D(e,n,s,t);D(e,n,null,t)}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}}return n}function ae(e,t,n,s){let i=!1;for(let o=0,l=t.length;o<l;o++){let r=t[o],c=n&&n[e.length],f;if(!(r==null||r===!0||r===!1))if((f=typeof r)=="object"&&r.nodeType)e.push(r);else if(Array.isArray(r))i=ae(e,r,c)||i;else if(f==="function")if(s){for(;typeof r=="function";)r=r();i=ae(e,Array.isArray(r)?r:[r],Array.isArray(c)?c:[c])||i}else e.push(r),i=!0;else{const a=String(r);c&&c.nodeType===3&&c.data===a?e.push(c):e.push(document.createTextNode(a))}}return i}function Se(e,t,n=null){for(let s=0,i=t.length;s<i;s++)e.insertBefore(t[s],n)}function D(e,t,n,s){if(n===void 0)return e.textContent="";const i=s||document.createTextNode("");if(t.length){let o=!1;for(let l=t.length-1;l>=0;l--){const r=t[l];if(i!==r){const c=r.parentNode===e;!o&&!l?c?e.replaceChild(i,r):e.insertBefore(i,n):c&&r.remove()}else o=!0}}else e.insertBefore(i,n);return[i]}async function Ot(){if(document.title.split(" | ")[0]==="404")return[];const e=document.querySelector('meta[property="og:url"]'),t=e?.content?new URL("index.json",e.content).href:new URL("index.json",window.location.href).href;try{return(await(await fetch(t,{headers:{Accept:"application/json"}})).json()).sort((i,o)=>i.index<o.index?-1:1)}catch(n){return console.error(n),[]}}var Lt="Invariant failed";function $t(e,t){if(!e)throw new Error(Lt)}function kt(e,t){return(e+1)%t}function Nt(e,t){return(e+t-1)%t}function Yt(e){return("0000"+e.toString()).slice(-4)}async function Jt(){return(await de(()=>import("./DgNkpX.js"),[])).gsap}function Ee(){const e=sessionStorage.getItem("thresholdsIndex");return e===null?2:parseInt(e)}const Z=[{threshold:20,trailLength:20},{threshold:40,trailLength:10},{threshold:80,trailLength:5},{threshold:140,trailLength:5},{threshold:200,trailLength:5}],vt=(e,t)=>[e,{setIndex:n=>{t(s=>({...s,index:n}))},incIndex:()=>{t(n=>({...n,index:kt(n.index,n.length)}))},decIndex:()=>{t(n=>({...n,index:Nt(n.index,n.length)}))},incThreshold:()=>{t(n=>({...n,...Pe(n.threshold,Z,1)}))},decThreshold:()=>{t(n=>({...n,...Pe(n.threshold,Z,-1)}))}}],Re=Xe();function Pe(e,t,n){const s=t.findIndex(i=>i.threshold===e)+n;return s<0||s>=t.length?t[s-n]:(sessionStorage.setItem("thresholdsIndex",s.toString()),t[s])}function Mt(e){const t={index:-1,length:e.length,threshold:Z[Ee()].threshold,trailLength:Z[Ee()].trailLength},[n,s]=N(t),i=vt(n,s);return k(Re.Provider,{value:i,get children(){return e.children}})}function zt(){const e=Ye(Re);return $t(e),e}var _t=wt("<div>Error");const $=document.getElementsByClassName("container")[0],jt=_e(async()=>await de(()=>import("./BMxMXX.js"),[])),Rt=_e(async()=>await de(()=>import("./0I9ziN.js"),[]));function Dt(){const[e]=Le(Ot),t=window.matchMedia("(hover: none)").matches&&!window.navigator.userAgent.includes("Win"),[n,s]=N(!0);return Oe(()=>{n()?$.classList.remove("disableScroll"):$.classList.add("disableScroll")}),k(it,{get when(){return e.state==="ready"},get children(){return k(Mt,{get length(){return e()?.length??0},get children(){return k(ot,{get fallback(){return _t()},get children(){return[k(me,{when:t,get children(){return k(Rt,{get ijs(){return e()??[]},get closeText(){return $.dataset.close},get loadingText(){return $.dataset.loading},setScrollable:s})}}),k(me,{when:!t,get children(){return k(jt,{get ijs(){return e()??[]},get prevText(){return $.dataset.prev},get closeText(){return $.dataset.close},get nextText(){return $.dataset.next},get loadingText(){return $.dataset.loading}})}})]}})}})}})}yt(()=>k(Dt,{}),$);export{ce as $,Gt as F,it as S,de as _,Ge as a,j as b,N as c,Oe as d,Yt as e,Ut as f,k as g,Et as h,Pt as i,fe as j,pt as k,Jt as l,kt as m,Nt as n,Ft as o,C as p,Vt as q,Be as r,Wt as s,wt as t,zt as u,Bt as v,Xt as w,Kt as x,$t as y};
|