@cbpds/web-components
Version:
Web components for the CBP Design System.
5 lines • 17.9 kB
JavaScript
/*!
* CPB Design System web components - built with Stencil
*/
const e="cbp-web-components";const t={allRenderFn:true,appendChildSlotFix:true,asyncLoading:true,asyncQueue:false,attachStyles:true,cloneNodeFix:true,cmpDidLoad:true,cmpDidRender:true,cmpDidUnload:false,cmpDidUpdate:false,cmpShouldUpdate:false,cmpWillLoad:true,cmpWillRender:true,cmpWillUpdate:false,connectedCallback:false,constructableCSS:true,cssAnnotations:true,devTools:false,disconnectedCallback:true,element:false,event:true,experimentalScopedSlotChanges:true,experimentalSlotFixes:true,formAssociated:false,hasRenderFn:true,hostListener:true,hostListenerTarget:true,hostListenerTargetBody:true,hostListenerTargetDocument:false,hostListenerTargetParent:false,hostListenerTargetWindow:false,hotModuleReplacement:false,hydrateClientSide:false,hydrateServerSide:false,hydratedAttribute:false,hydratedClass:true,invisiblePrehydration:true,isDebug:false,isDev:false,isTesting:false,lazyLoad:false,lifecycle:true,lifecycleDOMEvents:false,member:true,method:true,mode:false,observeAttribute:true,profile:false,prop:true,propBoolean:true,propMutable:true,propNumber:true,propString:true,reflect:true,scoped:false,scopedSlotTextContentFix:true,scriptDataOpts:false,shadowDelegatesFocus:false,shadowDom:false,slot:true,slotChildNodesFix:true,slotRelocation:true,state:true,style:true,svg:true,taskQueue:true,updatable:true,vdomAttribute:true,vdomClass:true,vdomFunctional:true,vdomKey:true,vdomListener:true,vdomPropOrAttr:true,vdomRef:true,vdomRender:true,vdomStyle:true,vdomText:true,vdomXlink:true,watchCallback:true};const n={version:"0.0.1-develop.28",stencil:"4.15.0"};let s;let l;let o=false;let i=false;let f=false;let c=false;let r=false;const u=e=>{const t=new URL(e,_e.t);return t.origin!==Ue.location.origin?t.href:t.pathname};const a=e=>_e.t=e;const d=(e,t="")=>{{return()=>{}}};const p="slot-fb{display:contents}slot-fb[hidden]{display:none}";const v="http://www.w3.org/1999/xlink";const h={};const m="http://www.w3.org/2000/svg";const y="http://www.w3.org/1999/xhtml";const b=e=>{e=typeof e;return e==="object"||e==="function"};function w(e){var t,n,s;return(s=(n=(t=e.head)===null||t===void 0?void 0:t.querySelector('meta[name="csp-nonce"]'))===null||n===void 0?void 0:n.getAttribute("content"))!==null&&s!==void 0?s:undefined}const g=(e,t,...n)=>{let s=null;let l=null;let o=null;let i=false;let f=false;const c=[];const r=t=>{for(let n=0;n<t.length;n++){s=t[n];if(Array.isArray(s)){r(s)}else if(s!=null&&typeof s!=="boolean"){if(i=typeof e!=="function"&&!b(s)){s=String(s)}if(i&&f){c[c.length-1].l+=s}else{c.push(i?S(null,s):s)}f=i}}};r(n);if(t){if(t.key){l=t.key}if(t.name){o=t.name}{const e=t.className||t.class;if(e){t.class=typeof e!=="object"?e:Object.keys(e).filter((t=>e[t])).join(" ")}}}if(typeof e==="function"){return e(t===null?{}:t,c,C)}const u=S(e,null);u.o=t;if(c.length>0){u.i=c}{u.u=l}{u.p=o}return u};const S=(e,t)=>{const n={v:0,h:e,l:t,m:null,i:null};{n.o=null}{n.u=null}{n.p=null}return n};const $={};const k=e=>e&&e.h===$;const C={forEach:(e,t)=>e.map(j).forEach(t),map:(e,t)=>e.map(j).map(t).map(O)};const j=e=>({vattrs:e.o,vchildren:e.i,vkey:e.u,vname:e.p,vtag:e.h,vtext:e.l});const O=e=>{if(typeof e.vtag==="function"){const t=Object.assign({},e.vattrs);if(e.vkey){t.key=e.vkey}if(e.vname){t.name=e.vname}return g(e.vtag,t,...e.vchildren||[])}const t=S(e.vtag,e.vtext);t.o=e.vattrs;t.i=e.vchildren;t.u=e.vkey;t.p=e.vname;return t};const x=(e,t)=>{if(e!=null&&!b(e)){if(t&4){return e==="false"?false:e===""||!!e}if(t&2){return parseFloat(e)}if(t&1){return String(e)}return e}return e};const R=e=>e;const L=(e,t,n)=>{const s=R(e);return{emit:e=>D(s,t,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:e})}};const D=(e,t,n)=>{const s=_e.ce(t,n);e.dispatchEvent(s);return s};const A=new WeakMap;const F=(e,t,n)=>{let s=Pe.get(e);if(qe&&n){s=s||new CSSStyleSheet;if(typeof s==="string"){s=t}else{s.replaceSync(t)}}else{s=t}Pe.set(e,s)};const T=(e,t,n)=>{var s;const l=N(t);const o=Pe.get(l);e=e.nodeType===11?e:We;if(o){if(typeof o==="string"){e=e.head||e;let n=A.get(e);let i;if(!n){A.set(e,n=new Set)}if(!n.has(l)){{i=We.createElement("style");i.innerHTML=o;const t=(s=_e.S)!==null&&s!==void 0?s:w(We);if(t!=null){i.setAttribute("nonce",t)}e.insertBefore(i,e.querySelector("link"))}if(t.v&4){i.innerHTML+=p}if(n){n.add(l)}}}else if(!e.adoptedStyleSheets.includes(o)){e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]}}return l};const M=e=>{const t=e.$;const n=e.$hostElement$;const s=d("attachStyles",t.k);T(n.getRootNode(),t);s()};const N=(e,t)=>"sc-"+e.k;const P=(e,t,n,s,l,o)=>{if(n!==s){let i=Me(e,t);let f=t.toLowerCase();if(t==="class"){const t=e.classList;const l=W(n);const o=W(s);t.remove(...l.filter((e=>e&&!o.includes(e))));t.add(...o.filter((e=>e&&!l.includes(e))))}else if(t==="style"){{for(const t in n){if(!s||s[t]==null){if(t.includes("-")){e.style.removeProperty(t)}else{e.style[t]=""}}}}for(const t in s){if(!n||s[t]!==n[t]){if(t.includes("-")){e.style.setProperty(t,s[t])}else{e.style[t]=s[t]}}}}else if(t==="key");else if(t==="ref"){if(s){s(e)}}else if(!e.__lookupSetter__(t)&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(Me(Ue,f)){t=f.slice(2)}else{t=f[2]+t.slice(3)}if(n||s){const l=t.endsWith(E);t=t.replace(_,"");if(n){_e.rel(e,t,n,l)}if(s){_e.ael(e,t,s,l)}}}else{const c=b(s);if((i||c&&s!==null)&&!l){try{if(!e.tagName.includes("-")){const l=s==null?"":s;if(t==="list"){i=false}else if(n==null||e[t]!=l){e[t]=l}}else{e[t]=s}}catch(e){}}let r=false;{if(f!==(f=f.replace(/^xlink\:?/,""))){t=f;r=true}}if(s==null||s===false){if(s!==false||e.getAttribute(t)===""){if(r){e.removeAttributeNS(v,t)}else{e.removeAttribute(t)}}}else if((!i||o&4||l)&&!c){s=s===true?"":s;if(r){e.setAttributeNS(v,t,s)}else{e.setAttribute(t,s)}}}}};const U=/\s/;const W=e=>!e?[]:e.split(U);const E="Capture";const _=new RegExp(E+"$");const B=(e,t,n,s)=>{const l=t.m.nodeType===11&&t.m.host?t.m.host:t.m;const o=e&&e.o||h;const i=t.o||h;{for(s of Q(Object.keys(o))){if(!(s in i)){P(l,s,o[s],undefined,n,t.v)}}}for(s of Q(Object.keys(i))){P(l,s,o[s],i[s],n,t.v)}};function Q(e){return e.includes("ref")?[...e.filter((e=>e!=="ref")),"ref"]:e}const q=(e,t,n,i)=>{var r;const u=t.i[n];let a=0;let d;let p;let v;if(!o){f=true;if(u.h==="slot"){u.v|=u.i?2:1}}if(u.l!==null){d=u.m=We.createTextNode(u.l)}else if(u.v&1){d=u.m=We.createTextNode("")}else{if(!c){c=u.h==="svg"}d=u.m=We.createElementNS(c?m:y,u.v&2?"slot-fb":u.h);if(c&&u.h==="foreignObject"){c=false}{B(null,u,c)}if(u.i){for(a=0;a<u.i.length;++a){p=q(e,u,a);if(p){d.appendChild(p)}}}{if(u.h==="svg"){c=false}else if(d.tagName==="foreignObject"){c=true}}}d["s-hn"]=l;{if(u.v&(2|1)){d["s-sr"]=true;d["s-cr"]=s;d["s-sn"]=u.p||"";d["s-rf"]=(r=u.o)===null||r===void 0?void 0:r.ref;v=e&&e.i&&e.i[n];if(v&&v.h===u.h&&e.m){{z(e.m)}}}}return d};const z=e=>{_e.v|=1;const t=e.closest(l.toLowerCase());if(t!=null){const n=Array.from(t.childNodes).find((e=>e["s-cr"]));const s=Array.from(e.childNodes);for(const e of n?s.reverse():s){if(e["s-sh"]!=null){t.insertBefore(e,n!==null&&n!==void 0?n:null);e["s-sh"]=undefined;f=true}}}_e.v&=~1};const H=(e,n)=>{_e.v|=1;const s=Array.from(e.childNodes);if(e["s-sr"]&&t.experimentalSlotFixes){let t=e;while(t=t.nextSibling){if(t&&t["s-sn"]===e["s-sn"]&&t["s-sh"]===l){s.push(t)}}}for(let e=s.length-1;e>=0;e--){const t=s[e];if(t["s-hn"]!==l&&t["s-ol"]){J(t).insertBefore(t,I(t));t["s-ol"].remove();t["s-ol"]=undefined;t["s-sh"]=undefined;f=true}if(n){H(t,n)}}_e.v&=~1};const K=(e,t,n,s,l,o)=>{let i=e["s-cr"]&&e["s-cr"].parentNode||e;let f;for(;l<=o;++l){if(s[l]){f=q(null,n,l);if(f){s[l].m=f;i.insertBefore(f,I(t))}}}};const V=(e,t,n)=>{for(let s=t;s<=n;++s){const t=e[s];if(t){const e=t.m;se(t);if(e){{i=true;if(e["s-ol"]){e["s-ol"].remove()}else{H(e,true)}}e.remove()}}}};const X=(e,t,n,s,l=false)=>{let o=0;let i=0;let f=0;let c=0;let r=t.length-1;let u=t[0];let a=t[r];let d=s.length-1;let p=s[0];let v=s[d];let h;let m;while(o<=r&&i<=d){if(u==null){u=t[++o]}else if(a==null){a=t[--r]}else if(p==null){p=s[++i]}else if(v==null){v=s[--d]}else if(G(u,p,l)){Y(u,p,l);u=t[++o];p=s[++i]}else if(G(a,v,l)){Y(a,v,l);a=t[--r];v=s[--d]}else if(G(u,v,l)){if(u.h==="slot"||v.h==="slot"){H(u.m.parentNode,false)}Y(u,v,l);e.insertBefore(u.m,a.m.nextSibling);u=t[++o];v=s[--d]}else if(G(a,p,l)){if(u.h==="slot"||v.h==="slot"){H(a.m.parentNode,false)}Y(a,p,l);e.insertBefore(a.m,u.m);a=t[--r];p=s[++i]}else{f=-1;{for(c=o;c<=r;++c){if(t[c]&&t[c].u!==null&&t[c].u===p.u){f=c;break}}}if(f>=0){m=t[f];if(m.h!==p.h){h=q(t&&t[i],n,f)}else{Y(m,p,l);t[f]=undefined;h=m.m}p=s[++i]}else{h=q(t&&t[i],n,i);p=s[++i]}if(h){{J(u.m).insertBefore(h,I(u.m))}}}}if(o>r){K(e,s[d+1]==null?null:s[d+1].m,n,s,i,d)}else if(i>d){V(t,o,r)}};const G=(e,t,n=false)=>{if(e.h===t.h){if(e.h==="slot"){return e.p===t.p}if(!n){return e.u===t.u}return true}return false};const I=e=>e&&e["s-ol"]||e;const J=e=>(e["s-ol"]?e["s-ol"]:e).parentNode;const Y=(e,t,n=false)=>{const s=t.m=e.m;const l=e.i;const i=t.i;const f=t.h;const r=t.l;let u;if(r===null){{c=f==="svg"?true:f==="foreignObject"?false:c}{if(f==="slot"&&!o){if(e.p!==t.p){t.m["s-sn"]=t.p||"";z(t.m.parentElement)}}else{B(e,t,c)}}if(l!==null&&i!==null){X(s,l,t,i,n)}else if(i!==null){if(e.l!==null){s.textContent=""}K(s,null,t,i,0,i.length-1)}else if(l!==null){V(l,0,l.length-1)}if(c&&f==="svg"){c=false}}else if(u=s["s-cr"]){u.parentNode.textContent=r}else if(e.l!==r){s.data=r}};const Z=e=>{const t=e.childNodes;for(const e of t){if(e.nodeType===1){if(e["s-sr"]){const n=e["s-sn"];e.hidden=false;for(const s of t){if(s!==e){if(s["s-hn"]!==e["s-hn"]||n!==""){if(s.nodeType===1&&(n===s.getAttribute("slot")||n===s["s-sn"])){e.hidden=true;break}}else{if(s.nodeType===1||s.nodeType===3&&s.textContent.trim()!==""){e.hidden=true;break}}}}}Z(e)}}};const ee=[];const te=e=>{let t;let n;let s;for(const l of e.childNodes){if(l["s-sr"]&&(t=l["s-cr"])&&t.parentNode){n=t.parentNode.childNodes;const e=l["s-sn"];for(s=n.length-1;s>=0;s--){t=n[s];if(!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==l["s-hn"]&&(!t["s-sh"]||t["s-sh"]!==l["s-hn"])){if(ne(t,e)){let n=ee.find((e=>e.C===t));i=true;t["s-sn"]=t["s-sn"]||e;if(n){n.C["s-sh"]=l["s-hn"];n.j=l}else{t["s-sh"]=l["s-hn"];ee.push({j:l,C:t})}if(t["s-sr"]){ee.map((e=>{if(ne(e.C,t["s-sn"])){n=ee.find((e=>e.C===t));if(n&&!e.j){e.j=n.j}}}))}}else if(!ee.some((e=>e.C===t))){ee.push({C:t})}}}}if(l.nodeType===1){te(l)}}};const ne=(e,t)=>{if(e.nodeType===1){if(e.getAttribute("slot")===null&&t===""){return true}if(e.getAttribute("slot")===t){return true}return false}if(e["s-sn"]===t){return true}return t===""};const se=e=>{{e.o&&e.o.ref&&e.o.ref(null);e.i&&e.i.map(se)}};const le=(e,t,n=false)=>{var c,r,u,a,d;const p=e.$hostElement$;const v=e.$;const h=e.O||S(null,null);const m=k(t)?t:g(null,null,t);l=p.tagName;if(v.R){m.o=m.o||{};v.R.map((([e,t])=>m.o[t]=p[e]))}if(n&&m.o){for(const e of Object.keys(m.o)){if(p.hasAttribute(e)&&!["key","ref","style","class"].includes(e)){m.o[e]=p[e]}}}m.h=null;m.v|=4;e.O=m;m.m=h.m=p;o=(v.v&1)!==0;{s=p["s-cr"];i=false}Y(h,m,n);{_e.v|=1;if(f){te(m.m);for(const e of ee){const t=e.C;if(!t["s-ol"]){const e=We.createTextNode("");e["s-nr"]=t;t.parentNode.insertBefore(t["s-ol"]=e,t)}}for(const e of ee){const t=e.C;const s=e.j;if(s){const e=s.parentNode;let n=s.nextSibling;if(n&&n.nodeType===1){let s=(c=t["s-ol"])===null||c===void 0?void 0:c.previousSibling;while(s){let l=(r=s["s-nr"])!==null&&r!==void 0?r:null;if(l&&l["s-sn"]===t["s-sn"]&&e===l.parentNode){l=l.nextSibling;while(l===t||(l===null||l===void 0?void 0:l["s-sr"])){l=l===null||l===void 0?void 0:l.nextSibling}if(!l||!l["s-nr"]){n=l;break}}s=s.previousSibling}}if(!n&&e!==t.parentNode||t.nextSibling!==n){if(t!==n){e.insertBefore(t,n);if(t.nodeType===1){t.hidden=(u=t["s-ih"])!==null&&u!==void 0?u:false}}}t&&typeof s["s-rf"]==="function"&&s["s-rf"](t)}else{if(t.nodeType===1){if(n){t["s-ih"]=(a=t.hidden)!==null&&a!==void 0?a:false}t.hidden=true}}}}if(i){Z(m.m)}_e.v&=~1;ee.length=0}if(v.v&2){for(const e of m.m.childNodes){if(e["s-hn"]!==l&&!e["s-sh"]){if(n&&e["s-ih"]==null){e["s-ih"]=(d=e.hidden)!==null&&d!==void 0?d:false}e.hidden=true}}}s=undefined};const oe=(e,t)=>{if(t&&!e.L&&t["s-p"]){t["s-p"].push(new Promise((t=>e.L=t)))}};const ie=(e,t)=>{{e.v|=16}if(e.v&4){e.v|=512;return}oe(e,e.D);const n=()=>fe(e,t);return Ie(n)};const fe=(e,t)=>{const n=e.$hostElement$;const s=d("scheduleUpdate",e.$.k);const l=n;let o;if(t){{o=ve(l,"componentWillLoad")}}{o=ce(o,(()=>ve(l,"componentWillRender")))}s();return ce(o,(()=>ue(e,l,t)))};const ce=(e,t)=>re(e)?e.then(t):t();const re=e=>e instanceof Promise||e&&e.then&&typeof e.then==="function";const ue=async(e,t,n)=>{var s;const l=e.$hostElement$;const o=d("update",e.$.k);const i=l["s-rc"];if(n){M(e)}const f=d("render",e.$.k);{ae(e,t,l,n)}if(i){i.map((e=>e()));l["s-rc"]=undefined}f();o();{const t=(s=l["s-p"])!==null&&s!==void 0?s:[];const n=()=>de(e);if(t.length===0){n()}else{Promise.all(t).then(n);e.v|=4;t.length=0}}};const ae=(e,t,n,s)=>{try{t=t.render();{e.v&=~16}{e.v|=2}{{{le(e,t,s)}}}}catch(t){Ne(t,e.$hostElement$)}return null};const de=e=>{const t=e.$.k;const n=e.$hostElement$;const s=d("postUpdate",t);const l=n;const o=e.D;{ve(l,"componentDidRender")}if(!(e.v&64)){e.v|=64;{he(n)}{ve(l,"componentDidLoad")}s();{e.A(n);if(!o){pe()}}}else{s()}{if(e.L){e.L();e.L=undefined}if(e.v&512){Ge((()=>ie(e,false)))}e.v&=~(4|512)}};const pe=t=>{{he(We.documentElement)}Ge((()=>D(Ue,"appload",{detail:{namespace:e}})))};const ve=(e,t,n)=>{if(e&&e[t]){try{return e[t](n)}catch(e){Ne(e)}}return undefined};const he=e=>e.classList.add("hydrated");const me=(e,t)=>Fe(e).F.get(t);const ye=(e,t,n,s)=>{const l=Fe(e);const o=e;const i=l.F.get(t);const f=l.v;const c=o;n=x(n,s.T[t][0]);const r=Number.isNaN(i)&&Number.isNaN(n);const u=n!==i&&!r;if(u){l.F.set(t,n);{if(s.M&&f&128){const e=s.M[t];if(e){e.map((e=>{try{c[e](n,i,t)}catch(e){Ne(e,o)}}))}}if((f&(2|16))===2){ie(l,false)}}}};const be=(e,t,n)=>{var s;const l=e.prototype;if(t.T){if(e.watchers){t.M=e.watchers}const n=Object.entries(t.T);n.map((([e,[n]])=>{if(n&31||n&32){Object.defineProperty(l,e,{get(){return me(this,e)},set(n){ye(this,e,n,t)},configurable:true,enumerable:true})}}));{const o=new Map;l.attributeChangedCallback=function(e,n,s){_e.jmp((()=>{var i;const f=o.get(e);if(this.hasOwnProperty(f)){s=this[f];delete this[f]}else if(l.hasOwnProperty(f)&&typeof this[f]==="number"&&this[f]==s){return}else if(f==null){const l=Fe(this);const o=l===null||l===void 0?void 0:l.v;if(o&&!(o&8)&&o&128&&s!==n){const l=this;const o=l;const f=(i=t.M)===null||i===void 0?void 0:i[e];f===null||f===void 0?void 0:f.forEach((t=>{if(o[t]!=null){o[t].call(o,s,n,e)}}))}return}this[f]=s===null&&typeof this[f]==="boolean"?false:s}))};e.observedAttributes=Array.from(new Set([...Object.keys((s=t.M)!==null&&s!==void 0?s:{}),...n.filter((([e,t])=>t[0]&15)).map((([e,n])=>{var s;const l=n[1]||e;o.set(l,e);if(n[0]&512){(s=t.R)===null||s===void 0?void 0:s.push([e,l])}return l}))]))}}return e};const we=async(e,t,n,s)=>{let l;if((t.v&32)===0){t.v|=32;{l=e.constructor;customElements.whenDefined(n.k).then((()=>t.v|=128))}if(l.style){let e=l.style;const t=N(n);if(!Pe.has(t)){const s=d("registerStyles",n.k);F(t,e,!!(n.v&1));s()}}}const o=t.D;const i=()=>ie(t,true);if(o&&o["s-rc"]){o["s-rc"].push(i)}else{i()}};const ge=e=>{};const Se=e=>{if((_e.v&1)===0){const t=Fe(e);const n=t.$;const s=d("connectedCallback",n.k);if(!(t.v&1)){t.v|=1;{if(n.v&(4|8)){$e(e)}}{let n=e;while(n=n.parentNode||n.host){if(n["s-p"]){oe(t,t.D=n);break}}}if(n.T){Object.entries(n.T).map((([t,[n]])=>{if(n&31&&e.hasOwnProperty(t)){const n=e[t];delete e[t];e[t]=n}}))}{we(e,t,n)}}else{je(e,t,n.N);if(t===null||t===void 0?void 0:t.P);else if(t===null||t===void 0?void 0:t.U){t.U.then((()=>ge()))}}s()}};const $e=e=>{const t=e["s-cr"]=We.createComment("");t["s-cn"]=true;e.insertBefore(t,e.firstChild)};const ke=async e=>{if((_e.v&1)===0){const t=Fe(e);{if(t.W){t.W.map((e=>e()));t.W=undefined}}}};const Ce=(e,t)=>{const n={v:t[0],k:t[1]};{n.T=t[2]}{n.N=t[3]}{n.M=e.M}{n.R=[]}const s=e.prototype.disconnectedCallback;Object.assign(e.prototype,{__registerHost(){Te(this,n)},connectedCallback(){Se(this)},disconnectedCallback(){ke(this);if(s){s.call(this)}},__attachShadow(){{{this.attachShadow({mode:"open"})}}}});e.is=n.k;return be(e,n)};const je=(e,t,n,s)=>{if(n){n.map((([n,s,l])=>{const o=xe(e,n);const i=Oe(t,l);const f=Re(n);_e.ael(o,s,i,f);(t.W=t.W||[]).push((()=>_e.rel(o,s,i,f)))}))}};const Oe=(e,t)=>n=>{try{{e.$hostElement$[t](n)}}catch(e){Ne(e)}};const xe=(e,t)=>{if(t&16)return We.body;return e};const Re=e=>Be?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0;const Le=e=>_e.S=e;const De=e=>Object.assign(_e,e);const Ae=new WeakMap;const Fe=e=>Ae.get(e);const Te=(e,t)=>{const n={v:0,$hostElement$:e,$:t,F:new Map};{n.U=new Promise((e=>n.A=e));e["s-p"]=[];e["s-rc"]=[]}je(e,n,t.N);return Ae.set(e,n)};const Me=(e,t)=>t in e;const Ne=(e,t)=>(0,console.error)(e,t);const Pe=new Map;const Ue=typeof window!=="undefined"?window:{};const We=Ue.document||{head:{}};const Ee=Ue.HTMLElement||class{};const _e={v:0,t:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,s)=>e.addEventListener(t,n,s),rel:(e,t,n,s)=>e.removeEventListener(t,n,s),ce:(e,t)=>new CustomEvent(e,t)};const Be=(()=>{let e=false;try{We.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=true}}))}catch(e){}return e})();const Qe=e=>Promise.resolve(e);const qe=(()=>{try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false})();const ze=[];const He=[];const Ke=(e,t)=>n=>{e.push(n);if(!r){r=true;if(t&&_e.v&4){Ge(Xe)}else{_e.raf(Xe)}}};const Ve=e=>{for(let t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){Ne(e)}}e.length=0};const Xe=()=>{Ve(ze);{Ve(He);if(r=ze.length>0){_e.raf(Xe)}}};const Ge=e=>Qe().then(e);const Ie=Ke(He,true);export{t as B,n as E,Ee as H,e as N,Le as a,De as b,$ as c,L as d,u as g,g as h,Ce as p,a as s};
//# sourceMappingURL=p-9caf8482.js.map