@salla.sa/twilight-components
Version:
Salla Web Component
6 lines • 17.9 kB
JavaScript
/*!
* Crafted with ❤ by Salla
*/
const t="twilight";let e;let n;let s=false;let l=false;let o=false;let i=false;let f=false;const c=(t,e="")=>{{return()=>{}}};const r=(t,e)=>{{return()=>{}}};const u="r";const a="o";const d="s";const $="t";const h="s-id";const y="sty-id";const p="c-id";const m="{visibility:hidden}.hydrated{visibility:inherit}";const b="http://www.w3.org/1999/xlink";const w={};const v="http://www.w3.org/2000/svg";const g="http://www.w3.org/1999/xhtml";const k=t=>{t=typeof t;return t==="object"||t==="function"};function S(t){var e,n,s;return(s=(n=(e=t.head)===null||e===void 0?void 0:e.querySelector('meta[name="csp-nonce"]'))===null||n===void 0?void 0:n.getAttribute("content"))!==null&&s!==void 0?s:undefined}const j=(t,e,...n)=>{let s=null;let l=null;let o=null;let i=false;let f=false;const c=[];const r=e=>{for(let n=0;n<e.length;n++){s=e[n];if(Array.isArray(s)){r(s)}else if(s!=null&&typeof s!=="boolean"){if(i=typeof t!=="function"&&!k(s)){s=String(s)}if(i&&f){c[c.length-1].t+=s}else{c.push(i?O(null,s):s)}f=i}}};r(n);if(e){if(e.key){l=e.key}if(e.name){o=e.name}{const t=e.className||e.class;if(t){e.class=typeof t!=="object"?t:Object.keys(t).filter((e=>t[e])).join(" ")}}}if(typeof t==="function"){return t(e===null?{}:e,c,M)}const u=O(t,null);u.l=e;if(c.length>0){u.o=c}{u.i=l}{u.u=o}return u};const O=(t,e)=>{const n={$:0,h:t,t:e,p:null,o:null};{n.l=null}{n.i=null}{n.u=null}return n};const x={};const C=t=>t&&t.h===x;const M={forEach:(t,e)=>t.map(P).forEach(e),map:(t,e)=>t.map(P).map(e).map(R)};const P=t=>({vattrs:t.l,vchildren:t.o,vkey:t.i,vname:t.u,vtag:t.h,vtext:t.t});const R=t=>{if(typeof t.vtag==="function"){const e=Object.assign({},t.vattrs);if(t.vkey){e.key=t.vkey}if(t.vname){e.name=t.vname}return j(t.vtag,e,...t.vchildren||[])}const e=O(t.vtag,t.vtext);e.l=t.vattrs;e.o=t.vchildren;e.i=t.vkey;e.u=t.vname;return e};const I=(t,e,n,s)=>{const l=c("hydrateClient",e);const o=t.shadowRoot;const i=[];const f=[];const r=null;const u=s.m=O(e,null);if(!Bt.v){E(zt.body,Bt.v=new Map)}t[h]=n;t.removeAttribute(h);T(u,i,f,r,t,t,n);i.map((t=>{const n=t.g+"."+t.k;const s=Bt.v.get(n);const l=t.p;if(s&&Gt&&s["s-en"]===""){s.parentNode.insertBefore(l,s.nextSibling)}if(!o){l["s-hn"]=e;if(s){l["s-ol"]=s;l["s-ol"]["s-nr"]=l}}Bt.v.delete(n)}));l()};const T=(t,e,n,s,l,o,i)=>{let f;let c;let r;let a;if(o.nodeType===1){f=o.getAttribute(p);if(f){c=f.split(".");if(c[0]===i||c[0]==="0"){r={$:0,g:c[0],k:c[1],S:c[2],j:c[3],h:o.tagName.toLowerCase(),p:o,l:null,o:null,i:null,u:null,t:null};e.push(r);o.removeAttribute(p);if(!t.o){t.o=[]}t.o[r.j]=r;t=r;if(s&&r.S==="0"){s[r.j]=r.p}}}for(a=o.childNodes.length-1;a>=0;a--){T(t,e,n,s,l,o.childNodes[a],i)}if(o.shadowRoot){for(a=o.shadowRoot.childNodes.length-1;a>=0;a--){T(t,e,n,s,l,o.shadowRoot.childNodes[a],i)}}}else if(o.nodeType===8){c=o.nodeValue.split(".");if(c[1]===i||c[1]==="0"){f=c[0];r={$:0,g:c[1],k:c[2],S:c[3],j:c[4],p:o,l:null,o:null,i:null,u:null,h:null,t:null};if(f===$){r.p=o.nextSibling;if(r.p&&r.p.nodeType===3){r.t=r.p.textContent;e.push(r);o.remove();if(!t.o){t.o=[]}t.o[r.j]=r;if(s&&r.S==="0"){s[r.j]=r.p}}}else if(r.g===i){if(f===d){r.h="slot";if(c[5]){o["s-sn"]=r.u=c[5]}else{o["s-sn"]=""}o["s-sr"]=true;n.push(r);if(!t.o){t.o=[]}t.o[r.j]=r}else if(f===u){{l["s-cr"]=o;o["s-cn"]=true}}}}}else if(t&&t.h==="style"){const e=O(null,o.textContent);e.p=o;e.j="0";t.o=[e]}};const E=(t,e)=>{if(t.nodeType===1){let n=0;for(;n<t.childNodes.length;n++){E(t.childNodes[n],e)}if(t.shadowRoot){for(n=0;n<t.shadowRoot.childNodes.length;n++){E(t.shadowRoot.childNodes[n],e)}}}else if(t.nodeType===8){const n=t.nodeValue.split(".");if(n[0]===a){e.set(n[1]+"."+n[2],t);t.nodeValue="";t["s-en"]=n[3]}}};const L=(t,e)=>{if(t!=null&&!k(t)){if(e&4){return t==="false"?false:t===""||!!t}if(e&2){return parseFloat(t)}if(e&1){return String(t)}return t}return t};const N=t=>Ut(t).O;const U=(t,e,n)=>{const s=N(t);return{emit:t=>F(s,e,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:t})}};const F=(t,e,n)=>{const s=Bt.ce(e,n);t.dispatchEvent(s);return s};const W=new WeakMap;const A=(t,e,n)=>{let s=Vt.get(t);if(Kt&&n){s=s||new CSSStyleSheet;if(typeof s==="string"){s=e}else{s.replaceSync(e)}}else{s=e}Vt.set(t,s)};const D=(t,e,n)=>{var s;const l=q(e);const o=Vt.get(l);t=t.nodeType===11?t:zt;if(o){if(typeof o==="string"){t=t.head||t;let e=W.get(t);let n;if(!e){W.set(t,e=new Set)}if(!e.has(l)){if(t.host&&(n=t.querySelector(`[${y}="${l}"]`))){n.innerHTML=o}else{n=zt.createElement("style");n.innerHTML=o;const e=(s=Bt.C)!==null&&s!==void 0?s:S(zt);if(e!=null){n.setAttribute("nonce",e)}t.insertBefore(n,t.querySelector("link"))}if(e){e.add(l)}}}else if(!t.adoptedStyleSheets.includes(o)){t.adoptedStyleSheets=[...t.adoptedStyleSheets,o]}}return l};const H=t=>{const e=t.M;const n=t.O;const s=c("attachStyles",e.P);D(n.getRootNode(),e);s()};const q=(t,e)=>"sc-"+t.P;const V=(t,e,n,s,l,o)=>{if(n!==s){let i=At(t,e);let f=e.toLowerCase();if(e==="class"){const e=t.classList;const l=z(n);const o=z(s);e.remove(...l.filter((t=>t&&!o.includes(t))));e.add(...o.filter((t=>t&&!l.includes(t))))}else if(e==="style"){{for(const e in n){if(!s||s[e]==null){if(e.includes("-")){t.style.removeProperty(e)}else{t.style[e]=""}}}}for(const e in s){if(!n||s[e]!==n[e]){if(e.includes("-")){t.style.setProperty(e,s[e])}else{t.style[e]=s[e]}}}}else if(e==="key");else if(e==="ref"){if(s){s(t)}}else if(!i&&e[0]==="o"&&e[1]==="n"){if(e[2]==="-"){e=e.slice(3)}else if(At(_t,f)){e=f.slice(2)}else{e=f[2]+e.slice(3)}if(n){Bt.rel(t,e,n,false)}if(s){Bt.ael(t,e,s,false)}}else{const c=k(s);if((i||c&&s!==null)&&!l){try{if(!t.tagName.includes("-")){const l=s==null?"":s;if(e==="list"){i=false}else if(n==null||t[e]!=l){t[e]=l}}else{t[e]=s}}catch(t){}}let r=false;{if(f!==(f=f.replace(/^xlink\:?/,""))){e=f;r=true}}if(s==null||s===false){if(s!==false||t.getAttribute(e)===""){if(r){t.removeAttributeNS(b,e)}else{t.removeAttribute(e)}}}else if((!i||o&4||l)&&!c){s=s===true?"":s;if(r){t.setAttributeNS(b,e,s)}else{t.setAttribute(e,s)}}}}};const _=/\s/;const z=t=>!t?[]:t.split(_);const B=(t,e,n,s)=>{const l=e.p.nodeType===11&&e.p.host?e.p.host:e.p;const o=t&&t.l||w;const i=e.l||w;{for(s in o){if(!(s in i)){V(l,s,o[s],undefined,n,e.$)}}}for(s in i){V(l,s,o[s],i[s],n,e.$)}};const G=(t,l,f,c)=>{const r=l.o[f];let u=0;let a;let d;let $;if(!s){o=true;if(r.h==="slot"){r.$|=r.o?2:1}}if(r.t!==null){a=r.p=zt.createTextNode(r.t)}else if(r.$&1){a=r.p=zt.createTextNode("")}else{if(!i){i=r.h==="svg"}a=r.p=zt.createElementNS(i?v:g,r.$&2?"slot-fb":r.h);if(i&&r.h==="foreignObject"){i=false}{B(null,r,i)}if(r.o){for(u=0;u<r.o.length;++u){d=G(t,r,u);if(d){a.appendChild(d)}}}{if(r.h==="svg"){i=false}else if(a.tagName==="foreignObject"){i=true}}}{a["s-hn"]=n;if(r.$&(2|1)){a["s-sr"]=true;a["s-cr"]=e;a["s-sn"]=r.u||"";$=t&&t.o&&t.o[f];if($&&$.h===r.h&&t.p){J(t.p,false)}}}return a};const J=(t,e)=>{Bt.$|=1;const s=t.childNodes;for(let t=s.length-1;t>=0;t--){const l=s[t];if(l["s-hn"]!==n&&l["s-ol"]){tt(l).insertBefore(l,Z(l));l["s-ol"].remove();l["s-ol"]=undefined;o=true}if(e){J(l,e)}}Bt.$&=~1};const K=(t,e,n,s,l,o)=>{let i=t["s-cr"]&&t["s-cr"].parentNode||t;let f;for(;l<=o;++l){if(s[l]){f=G(null,n,l);if(f){s[l].p=f;i.insertBefore(f,Z(e))}}}};const Q=(t,e,n)=>{for(let s=e;s<=n;++s){const e=t[s];if(e){const t=e.p;it(e);if(t){{l=true;if(t["s-ol"]){t["s-ol"].remove()}else{J(t,true)}}t.remove()}}}};const X=(t,e,n,s)=>{let l=0;let o=0;let i=0;let f=0;let c=e.length-1;let r=e[0];let u=e[c];let a=s.length-1;let d=s[0];let $=s[a];let h;let y;while(l<=c&&o<=a){if(r==null){r=e[++l]}else if(u==null){u=e[--c]}else if(d==null){d=s[++o]}else if($==null){$=s[--a]}else if(Y(r,d)){et(r,d);r=e[++l];d=s[++o]}else if(Y(u,$)){et(u,$);u=e[--c];$=s[--a]}else if(Y(r,$)){if(r.h==="slot"||$.h==="slot"){J(r.p.parentNode,false)}et(r,$);t.insertBefore(r.p,u.p.nextSibling);r=e[++l];$=s[--a]}else if(Y(u,d)){if(r.h==="slot"||$.h==="slot"){J(u.p.parentNode,false)}et(u,d);t.insertBefore(u.p,r.p);u=e[--c];d=s[++o]}else{i=-1;{for(f=l;f<=c;++f){if(e[f]&&e[f].i!==null&&e[f].i===d.i){i=f;break}}}if(i>=0){y=e[i];if(y.h!==d.h){h=G(e&&e[o],n,i)}else{et(y,d);e[i]=undefined;h=y.p}d=s[++o]}else{h=G(e&&e[o],n,o);d=s[++o]}if(h){{tt(r.p).insertBefore(h,Z(r.p))}}}}if(l>c){K(t,s[a+1]==null?null:s[a+1].p,n,s,o,a)}else if(o>a){Q(e,l,c)}};const Y=(t,e)=>{if(t.h===e.h){if(t.h==="slot"){return t.u===e.u}{return t.i===e.i}}return false};const Z=t=>t&&t["s-ol"]||t;const tt=t=>(t["s-ol"]?t["s-ol"]:t).parentNode;const et=(t,e)=>{const n=e.p=t.p;const s=t.o;const l=e.o;const o=e.h;const f=e.t;let c;if(f===null){{i=o==="svg"?true:o==="foreignObject"?false:i}{if(o==="slot");else{B(t,e,i)}}if(s!==null&&l!==null){X(n,s,e,l)}else if(l!==null){if(t.t!==null){n.textContent=""}K(n,null,e,l,0,l.length-1)}else if(s!==null){Q(s,0,s.length-1)}if(i&&o==="svg"){i=false}}else if(c=n["s-cr"]){c.parentNode.textContent=f}else if(t.t!==f){n.data=f}};const nt=t=>{const e=t.childNodes;let n;let s;let l;let o;let i;let f;for(s=0,l=e.length;s<l;s++){n=e[s];if(n.nodeType===1){if(n["s-sr"]){i=n["s-sn"];n.hidden=false;for(o=0;o<l;o++){f=e[o].nodeType;if(e[o]["s-hn"]!==n["s-hn"]||i!==""){if(f===1&&i===e[o].getAttribute("slot")){n.hidden=true;break}}else{if(f===1||f===3&&e[o].textContent.trim()!==""){n.hidden=true;break}}}}nt(n)}}};const st=[];const lt=t=>{let e;let n;let s;let o;let i;let f;let c=0;const r=t.childNodes;const u=r.length;for(;c<u;c++){e=r[c];if(e["s-sr"]&&(n=e["s-cr"])&&n.parentNode){s=n.parentNode.childNodes;o=e["s-sn"];for(f=s.length-1;f>=0;f--){n=s[f];if(!n["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==e["s-hn"]){if(ot(n,o)){i=st.find((t=>t.R===n));l=true;n["s-sn"]=n["s-sn"]||o;if(i){i.I=e}else{st.push({I:e,R:n})}if(n["s-sr"]){st.map((t=>{if(ot(t.R,n["s-sn"])){i=st.find((t=>t.R===n));if(i&&!t.I){t.I=i.I}}}))}}else if(!st.some((t=>t.R===n))){st.push({R:n})}}}}if(e.nodeType===1){lt(e)}}};const ot=(t,e)=>{if(t.nodeType===1){if(t.getAttribute("slot")===null&&e===""){return true}if(t.getAttribute("slot")===e){return true}return false}if(t["s-sn"]===e){return true}return e===""};const it=t=>{{t.l&&t.l.ref&&t.l.ref(null);t.o&&t.o.map(it)}};const ft=(t,i,f=false)=>{const c=t.O;const r=t.M;const u=t.m||O(null,null);const a=C(i)?i:j(null,null,i);n=c.tagName;if(r.T){a.l=a.l||{};r.T.map((([t,e])=>a.l[e]=c[t]))}if(f&&a.l){for(const t of Object.keys(a.l)){if(c.hasAttribute(t)&&!["key","ref","style","class"].includes(t)){a.l[t]=c[t]}}}a.h=null;a.$|=4;t.m=a;a.p=u.p=c;{e=c["s-cr"];s=(r.$&1)!==0;l=false}et(u,a);{Bt.$|=1;if(o){lt(a.p);let t;let e;let n;let s;let l;let o;let i=0;for(;i<st.length;i++){t=st[i];e=t.R;if(!e["s-ol"]){n=zt.createTextNode("");n["s-nr"]=e;e.parentNode.insertBefore(e["s-ol"]=n,e)}}for(i=0;i<st.length;i++){t=st[i];e=t.R;if(t.I){s=t.I.parentNode;l=t.I.nextSibling;n=e["s-ol"];while(n=n.previousSibling){o=n["s-nr"];if(o&&o["s-sn"]===e["s-sn"]&&s===o.parentNode){o=o.nextSibling;if(!o||!o["s-nr"]){l=o;break}}}if(!l&&s!==e.parentNode||e.nextSibling!==l){if(e!==l){if(!e["s-hn"]&&e["s-ol"]){e["s-hn"]=e["s-ol"].parentNode.nodeName}s.insertBefore(e,l)}}}else{if(e.nodeType===1){e.hidden=true}}}}if(l){nt(a.p)}Bt.$&=~1;st.length=0}};const ct=(t,e)=>{if(e&&!t.L&&e["s-p"]){e["s-p"].push(new Promise((e=>t.L=e)))}};const rt=(t,e)=>{{t.$|=16}if(t.$&4){t.$|=512;return}ct(t,t.N);const n=()=>ut(t,e);return ne(n)};const ut=(t,e)=>{const n=c("scheduleUpdate",t.M.P);const s=t.U;let l;if(e){{t.$|=256;if(t.F){t.F.map((([t,e])=>mt(s,t,e)));t.F=undefined}}{l=mt(s,"componentWillLoad")}}n();return at(l,(()=>$t(t,s,e)))};const at=(t,e)=>dt(t)?t.then(e):e();const dt=t=>t instanceof Promise||t&&t.then&&typeof t.then==="function";const $t=async(t,e,n)=>{var s;const l=t.O;const o=c("update",t.M.P);const i=l["s-rc"];if(n){H(t)}const f=c("render",t.M.P);{ht(t,e,l,n)}if(i){i.map((t=>t()));l["s-rc"]=undefined}f();o();{const e=(s=l["s-p"])!==null&&s!==void 0?s:[];const n=()=>yt(t);if(e.length===0){n()}else{Promise.all(e).then(n);t.$|=4;e.length=0}}};const ht=(t,e,n,s)=>{try{e=e.render();{t.$&=~16}{t.$|=2}{{{ft(t,e,s)}}}}catch(e){Dt(e,t.O)}return null};const yt=t=>{const e=t.M.P;const n=t.O;const s=c("postUpdate",e);const l=t.U;const o=t.N;{mt(l,"componentDidRender")}if(!(t.$&64)){t.$|=64;{bt(n)}{mt(l,"componentDidLoad")}s();{t.W(n);if(!o){pt()}}}else{s()}{t.A(n)}{if(t.L){t.L();t.L=undefined}if(t.$&512){ee((()=>rt(t,false)))}t.$&=~(4|512)}};const pt=e=>{{bt(zt.documentElement)}ee((()=>F(_t,"appload",{detail:{namespace:t}})))};const mt=(t,e,n)=>{if(t&&t[e]){try{return t[e](n)}catch(t){Dt(t)}}return undefined};const bt=t=>t.classList.add("hydrated");const wt=(t,e)=>Ut(t).D.get(e);const vt=(t,e,n,s)=>{const l=Ut(t);const o=l.O;const i=l.D.get(e);const f=l.$;const c=l.U;n=L(n,s.H[e][0]);const r=Number.isNaN(i)&&Number.isNaN(n);const u=n!==i&&!r;if((!(f&8)||i===undefined)&&u){l.D.set(e,n);if(c){if(s.q&&f&128){const t=s.q[e];if(t){t.map((t=>{try{c[t](n,i,e)}catch(t){Dt(t,o)}}))}}if((f&(2|16))===2){if(c.componentShouldUpdate){if(c.componentShouldUpdate(n,i,e)===false){return}}rt(l,false)}}}};const gt=(t,e,n)=>{if(e.H){if(t.watchers){e.q=t.watchers}const s=Object.entries(e.H);const l=t.prototype;s.map((([t,[s]])=>{if(s&31||n&2&&s&32){Object.defineProperty(l,t,{get(){return wt(this,t)},set(n){vt(this,t,n,e)},configurable:true,enumerable:true})}else if(n&1&&s&64){Object.defineProperty(l,t,{value(...e){const n=Ut(this);return n.V.then((()=>n.U[t](...e)))}})}}));if(n&1){const n=new Map;l.attributeChangedCallback=function(t,e,s){Bt.jmp((()=>{const e=n.get(t);if(this.hasOwnProperty(e)){s=this[e];delete this[e]}else if(l.hasOwnProperty(e)&&typeof this[e]==="number"&&this[e]==s){return}this[e]=s===null&&typeof this[e]==="boolean"?false:s}))};t.observedAttributes=s.filter((([t,e])=>e[0]&15)).map((([t,s])=>{const l=s[1]||t;n.set(l,t);if(s[0]&512){e.T.push([t,l])}return l}))}}return t};const kt=async(t,e,n,s,l)=>{if((e.$&32)===0){e.$|=32;{l=qt(n);if(l.then){const t=r();l=await l;t()}if(!l.isProxied){{n.q=l.watchers}gt(l,n,2);l.isProxied=true}const t=c("createInstance",n.P);{e.$|=8}try{new l(e)}catch(t){Dt(t)}{e.$&=~8}{e.$|=128}t();St(e.U)}if(l.style){let t=l.style;const e=q(n);if(!Vt.has(e)){const s=c("registerStyles",n.P);A(e,t,!!(n.$&1));s()}}}const o=e.N;const i=()=>rt(e,true);if(o&&o["s-rc"]){o["s-rc"].push(i)}else{i()}};const St=t=>{{mt(t,"connectedCallback")}};const jt=t=>{if((Bt.$&1)===0){const e=Ut(t);const n=e.M;const s=c("connectedCallback",n.P);if(!(e.$&1)){e.$|=1;let s;{s=t.getAttribute(h);if(s){I(t,n.P,s,e)}}if(!s){if(n.$&(4|8)){Ot(t)}}{let n=t;while(n=n.parentNode||n.host){if(n.nodeType===1&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){ct(e,e.N=n);break}}}if(n.H){Object.entries(n.H).map((([e,[n]])=>{if(n&31&&t.hasOwnProperty(e)){const n=t[e];delete t[e];t[e]=n}}))}{kt(t,e,n)}}else{Rt(t,e,n._);if(e===null||e===void 0?void 0:e.U){St(e.U)}else if(e===null||e===void 0?void 0:e.B){e.B.then((()=>St(e.U)))}}s()}};const Ot=t=>{const e=t["s-cr"]=zt.createComment("");e["s-cn"]=true;t.insertBefore(e,t.firstChild)};const xt=t=>{{mt(t,"disconnectedCallback")}};const Ct=async t=>{if((Bt.$&1)===0){const e=Ut(t);{if(e.G){e.G.map((t=>t()));e.G=undefined}}if(e===null||e===void 0?void 0:e.U){xt(e.U)}else if(e===null||e===void 0?void 0:e.B){e.B.then((()=>xt(e.U)))}}};const Mt=(t,e={})=>{var n;const s=c();const l=[];const o=e.exclude||[];const i=_t.customElements;const f=zt.head;const r=f.querySelector("meta[charset]");const u=zt.createElement("style");const a=[];let d;let $=true;Object.assign(Bt,e);Bt.J=new URL(e.resourcesUrl||"./",zt.baseURI).href;{Bt.$|=2}t.map((t=>{t[1].map((e=>{const n={$:e[0],P:e[1],H:e[2],_:e[3]};{n.H=e[2]}{n._=e[3]}{n.T=[]}{n.q={}}const s=n.P;const f=class extends HTMLElement{constructor(t){super(t);t=this;Wt(t,n)}connectedCallback(){if(d){clearTimeout(d);d=null}if($){a.push(this)}else{Bt.jmp((()=>jt(this)))}}disconnectedCallback(){Bt.jmp((()=>Ct(this)))}componentOnReady(){return Ut(this).B}};n.K=t[0];if(!o.includes(s)&&!i.get(s)){l.push(s);i.define(s,gt(f,n,1))}}))}));{u.innerHTML=l+m;u.setAttribute("data-styles","");const t=(n=Bt.C)!==null&&n!==void 0?n:S(zt);if(t!=null){u.setAttribute("nonce",t)}f.insertBefore(u,r?r.nextSibling:f.firstChild)}$=false;if(a.length){a.map((t=>t.connectedCallback()))}else{{Bt.jmp((()=>d=setTimeout(pt,30)))}}s()};const Pt=(t,e)=>e;const Rt=(t,e,n,s)=>{if(n){n.map((([n,s,l])=>{const o=Tt(t,n);const i=It(e,l);const f=Et(n);Bt.ael(o,s,i,f);(e.G=e.G||[]).push((()=>Bt.rel(o,s,i,f)))}))}};const It=(t,e)=>n=>{try{{if(t.$&256){t.U[e](n)}else{(t.F=t.F||[]).push([e,n])}}}catch(t){Dt(t)}};const Tt=(t,e)=>{if(e&8)return _t;return t};const Et=t=>(t&2)!==0;const Lt=t=>Bt.C=t;const Nt=new WeakMap;const Ut=t=>Nt.get(t);const Ft=(t,e)=>Nt.set(e.U=t,e);const Wt=(t,e)=>{const n={$:0,O:t,M:e,D:new Map};{n.V=new Promise((t=>n.A=t))}{n.B=new Promise((t=>n.W=t));t["s-p"]=[];t["s-rc"]=[]}Rt(t,n,e._);return Nt.set(t,n)};const At=(t,e)=>e in t;const Dt=(t,e)=>(0,console.error)(t,e);const Ht=new Map;const qt=(t,e,n)=>{const s=t.P.replace(/-/g,"_");const l=t.K;const o=Ht.get(l);if(o){return o[s]}
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${l}.entry.js${""}`).then((t=>{{Ht.set(l,t)}return t[s]}),Dt)};const Vt=new Map;const _t=typeof window!=="undefined"?window:{};const zt=_t.document||{head:{}};const Bt={$:0,J:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,s)=>t.addEventListener(e,n,s),rel:(t,e,n,s)=>t.removeEventListener(e,n,s),ce:(t,e)=>new CustomEvent(t,e)};const Gt=true;const Jt=t=>Promise.resolve(t);const Kt=(()=>{try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(t){}return false})();const Qt=[];const Xt=[];const Yt=(t,e)=>n=>{t.push(n);if(!f){f=true;if(e&&Bt.$&4){ee(te)}else{Bt.raf(te)}}};const Zt=t=>{for(let e=0;e<t.length;e++){try{t[e](performance.now())}catch(t){Dt(t)}}t.length=0};const te=()=>{Zt(Qt);{Zt(Xt);if(f=Qt.length>0){Bt.raf(te)}}};const ee=t=>Jt().then(t);const ne=Yt(Xt,true);export{Pt as F,x as H,Mt as b,U as c,N as g,j as h,Jt as p,Ft as r,Lt as s};
//# sourceMappingURL=p-bdd00808.js.map