analog-clock-components 0.2.85 → 0.2.87
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analog-clock/analog-clock.esm.js +1 -1
- package/dist/analog-clock/p-Dbd0iDJa.js +2 -0
- package/dist/analog-clock/{p-d57bbdde.entry.js → p-f331dba3.entry.js} +1 -1
- package/dist/cjs/analog-clock.cjs.entry.js +1 -1
- package/dist/cjs/analog-clock.cjs.js +2 -2
- package/dist/cjs/{index-DEcvsyme.js → index-DcA-IKwV.js} +86 -59
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/esm/analog-clock.entry.js +1 -1
- package/dist/esm/analog-clock.js +3 -3
- package/dist/esm/{index-CEu1VQJ3.js → index-Dbd0iDJa.js} +86 -59
- package/dist/esm/loader.js +2 -2
- package/dist/types/stencil-public-runtime.d.ts +0 -4
- package/package.json +3 -3
- package/dist/analog-clock/p-CEu1VQJ3.js +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as
|
|
1
|
+
import{p as a,b as o}from"./p-Dbd0iDJa.js";export{s as setNonce}from"./p-Dbd0iDJa.js";import{g as e}from"./p-DQuL1Twl.js";(()=>{const o=import.meta.url,e={};return""!==o&&(e.resourcesUrl=new URL(".",o).href),a(e)})().then((async a=>(await e(),o([["p-f331dba3",[[1,"analog-clock",{size:[2],timeZone:[2,"time-zone"],time:[32]}]]]],a))));
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var t,e=(t,e)=>{var n;Object.entries(null!=(n=e.o.t)?n:{}).map((([n,[o]])=>{if(31&o||32&o){const o=t[n],l=function(t,e){for(;t;){const n=Object.getOwnPropertyDescriptor(t,e);if(null==n?void 0:n.get)return n;t=Object.getPrototypeOf(t)}}(Object.getPrototypeOf(t),n)||Object.getOwnPropertyDescriptor(t,n);l&&Object.defineProperty(t,n,{get(){return l.get.call(this)},set(t){l.set.call(this,t)},configurable:!0,enumerable:!0}),t[n]=e.l.has(n)?e.l.get(n):o}}))},n=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},o=(t,n)=>{n&&(t.__stencil__getHostRef=()=>n,n.i=t,512&n.o.u&&e(t,n))},l=(t,e)=>(0,console.error)(t,e),i=new Map,s=new Map,r="undefined"!=typeof window?window:{},c={u:0,h:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},u=t=>Promise.resolve(t),a=(()=>{try{return!!r.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),f=!!a&&(()=>!!r.document&&Object.getOwnPropertyDescriptor(r.document.adoptedStyleSheets,"length").writable)(),d=!1,h=[],p=[],m=(t,e)=>n=>{t.push(n),d||(d=!0,e&&4&c.u?b(y):c.raf(y))},v=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){l(t)}t.length=0},y=()=>{v(h),v(p),(d=h.length>0)&&c.raf(y)},b=t=>u().then(t),w=m(p,!0);function $(){const e=this.attachShadow({mode:"open"});void 0===t&&(t=null),t&&(f?e.adoptedStyleSheets.push(t):e.adoptedStyleSheets=[...e.adoptedStyleSheets,t])}function g(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}var j,O=new WeakMap,S=t=>"sc-"+t.p,k=t=>"object"==(t=typeof t)||"function"===t,M=(t,e,...n)=>{let o=null,l=null,i=!1,s=!1;const r=[],c=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((i="function"!=typeof t&&!k(o))&&(o+=""),i&&s?r[r.length-1].m+=o:r.push(i?C(null,o):o),s=i)};if(c(n),e){e.key&&(l=e.key);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}const u=C(t,null);return u.v=e,r.length>0&&(u.$=r),u.j=l,u},C=(t,e)=>({u:0,O:t,m:null!=e?e:null,S:null,$:null,v:null,j:null}),E={},x=(t,e)=>null==t||k(t)?t:2&e?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:t,N=(t,e,o,l,i,s)=>{if(o===l)return;let r=((t,e)=>e in t)(t,e);if(e.toLowerCase(),"class"===e){const e=t.classList,n=P(o);let i=P(l);e.remove(...n.filter((t=>t&&!i.includes(t)))),e.add(...i.filter((t=>t&&!n.includes(t))))}else if("key"===e);else{if("a"===e[0]&&e.startsWith("attr:")){const o=e.slice(5);let i;{const e=n(t);if(e&&e.o&&e.o.t){const t=e.o.t[o];t&&t[1]&&(i=t[1])}}return i||(i=o.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==l||!1===l?!1===l&&""!==t.getAttribute(i)||t.removeAttribute(i):t.setAttribute(i,!0===l?"":l))}if("p"===e[0]&&e.startsWith("prop:")){const n=e.slice(5);try{t[n]=l}catch(t){}return}{const n=k(l);if((r||n&&null!==l)&&!i)try{if(t.tagName.includes("-"))t[e]!==l&&(t[e]=l);else{const n=null==l?"":l;"list"===e?r=!1:null!=o&&t[e]===n||("function"==typeof t.__lookupSetter__(e)?t[e]=n:t.setAttribute(e,n))}}catch(t){}null==l||!1===l?!1===l&&""!==t.getAttribute(e)||t.removeAttribute(e):(!r||4&s||i)&&!n&&1===t.nodeType&&t.setAttribute(e,l=!0===l?"":l)}}},D=/\s/,P=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(D):[]),R=(t,e,n)=>{const o=11===e.S.nodeType&&e.S.host?e.S.host:e.S,l=t&&t.v||{},i=e.v||{};for(const t of A(Object.keys(l)))t in i||N(o,t,l[t],void 0,n,e.u);for(const t of A(Object.keys(i)))N(o,t,l[t],i[t],n,e.u)};function A(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var L=!1,U=(t,e,n)=>{const o=e.$[n];let l,i,s=0;if(L||(L="svg"===o.O),!r.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(l=o.S=r.document.createElementNS(L?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.O),L&&"foreignObject"===o.O&&(L=!1),R(null,o,L),o.$){const e="template"===o.O?l.content:l;for(s=0;s<o.$.length;++s)i=U(t,o,s),i&&e.appendChild(i)}return"svg"===o.O?L=!1:"foreignObject"===l.tagName&&(L=!0),l["s-hn"]=j,l},T=(t,e,n,o,l,i)=>{let s,r=t;for(r.shadowRoot&&r.tagName===j&&(r=r.shadowRoot),"template"===n.O&&(r=r.content);l<=i;++l)o[l]&&(s=U(null,n,l),s&&(o[l].S=s,H(r,s,e)))},W=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.S;t&&t.remove()}}},z=(t,e,n=!1)=>t.O===e.O&&(n?(n&&!t.j&&e.j&&(t.j=e.j),!0):t.j===e.j),F=(t,e,n=!1)=>{const o=e.S=t.S,l=t.$,i=e.$,s=e.O;R(t,e,L="svg"===s||"foreignObject"!==s&&L),null!==l&&null!==i?((t,e,n,o,l=!1)=>{let i,s,r=0,c=0,u=0,a=0,f=e.length-1,d=e[0],h=e[f],p=o.length-1,m=o[0],v=o[p];const y="template"===n.O?t.content:t;for(;r<=f&&c<=p;)if(null==d)d=e[++r];else if(null==h)h=e[--f];else if(null==m)m=o[++c];else if(null==v)v=o[--p];else if(z(d,m,l))F(d,m,l),d=e[++r],m=o[++c];else if(z(h,v,l))F(h,v,l),h=e[--f],v=o[--p];else if(z(d,v,l))F(d,v,l),H(y,d.S,h.S.nextSibling),d=e[++r],v=o[--p];else if(z(h,m,l))F(h,m,l),H(y,h.S,d.S),h=e[--f],m=o[++c];else{for(u=-1,a=r;a<=f;++a)if(e[a]&&null!==e[a].j&&e[a].j===m.j){u=a;break}u>=0?(s=e[u],s.O!==m.O?i=U(e&&e[c],n,u):(F(s,m,l),e[u]=void 0,i=s.S),m=o[++c]):(i=U(e&&e[c],n,c),m=o[++c]),i&&H(d.S.parentNode,i,d.S)}r>f?T(t,null==o[p+1]?null:o[p+1].S,n,o,c,p):c>p&&W(e,r,f)})(o,l,e,i,n):null!==i?T(o,null,e,i,0,i.length-1):!n&&null!==l&&W(l,0,l.length-1),L&&"svg"===s&&(L=!1)},H=(t,e,n)=>t.__insertBefore?t.__insertBefore(e,n):null==t?void 0:t.insertBefore(e,n),V=(t,e)=>{if(e&&!t.k&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.k=()=>{e["s-p"].splice(n-1,1),o()})))}},q=(t,e)=>{if(t.u|=16,4&t.u)return void(t.u|=512);V(t,t.M);const n=()=>G(t,e);if(!e)return w(n);queueMicrotask((()=>{n()}))},G=(t,e)=>{const n=t.$hostElement$,o=t.i;if(!o)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return e?(t.C.length&&t.C.forEach((t=>t(n))),l=K(o,"componentWillLoad",void 0,n)):l=K(o,"componentWillUpdate",void 0,n),l=Y(l,(()=>K(o,"componentWillRender",void 0,n))),Y(l,(()=>_(t,o,e)))},Y=(t,e)=>Z(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),Z=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,_=async(t,e,n)=>{var o;const l=t.$hostElement$,i=l["s-rc"];n&&(t=>{const e=t.o,n=t.$hostElement$,o=e.u,l=((t,e)=>{var n,o,l;const i=S(e),u=s.get(i);if(!r.document)return i;if(t=11===t.nodeType?t:r.document,u)if("string"==typeof u){let l,s=O.get(t=t.head||t);if(s||O.set(t,s=new Set),!s.has(i)){l=r.document.createElement("style"),l.textContent=u;const d=null!=(n=c.N)?n:g(r.document);if(null!=d&&l.setAttribute("nonce",d),!(1&e.u))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(l,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(a){const e=new(null!=(o=t.defaultView)?o:t.ownerDocument.defaultView).CSSStyleSheet;e.replaceSync(u),f?t.adoptedStyleSheets.unshift(e):t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.textContent=u+e.textContent:t.prepend(l)}else t.append(l);1&e.u&&t.insertBefore(l,null),4&e.u&&(l.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),s&&s.add(i)}}else{let e=O.get(t);if(e||O.set(t,e=new Set),!e.has(i)){const n=null!=(l=t.defaultView)?l:t.ownerDocument.defaultView;let o;if(u.constructor===n.CSSStyleSheet)o=u;else{o=new n.CSSStyleSheet;for(let t=0;t<u.cssRules.length;t++)o.insertRule(u.cssRules[t].cssText,t)}f?t.adoptedStyleSheets.push(o):t.adoptedStyleSheets=[...t.adoptedStyleSheets,o],e.add(i)}}return i})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);B(t,e,l,n),i&&(i.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>I(t);0===e.length?n():(Promise.all(e).then(n).catch(n),t.u|=4,e.length=0)}},B=(t,e,n,o)=>{try{e=e.render(),t.u&=-17,t.u|=2,((t,e,n=!1)=>{const o=t.$hostElement$,l=t.D||C(null,null),i=(t=>t&&t.O===E)(e)?e:M(null,null,e);if(j=o.tagName,n&&i.v)for(const t of Object.keys(i.v))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(i.v[t]=o[t]);i.O=null,i.u|=4,t.D=i,i.S=l.S=o.shadowRoot||o,F(l,i,n)})(t,e,o)}catch(e){l(e,t.$hostElement$)}return null},I=t=>{const e=t.$hostElement$,n=t.i,o=t.M;K(n,"componentDidRender",void 0,e),64&t.u?K(n,"componentDidUpdate",void 0,e):(t.u|=64,Q(e),K(n,"componentDidLoad",void 0,e),t.P(e),o||J()),t.k&&(t.k(),t.k=void 0),512&t.u&&b((()=>q(t,!1))),t.u&=-517},J=()=>{b((()=>(t=>{const e=c.ce("appload",{detail:{namespace:"analog-clock"}});return t.dispatchEvent(e),e})(r)))},K=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){l(t,o)}},Q=t=>t.classList.add("hydrated"),X=(t,e,o,l)=>{const i=n(t);if(!i)return;if(!i)throw Error(`Couldn't find host element for "${l.p}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const s=i.l.get(e),r=i.u,c=i.i;if(o=x(o,l.t[e][0]),(!(8&r)||void 0===s)&&o!==s&&(!Number.isNaN(s)||!Number.isNaN(o))&&(i.l.set(e,o),2&r)){if(c.componentShouldUpdate&&!1===c.componentShouldUpdate(o,s,e)&&!(16&r))return;16&r||q(i,!1)}},tt=(t,e,o)=>{var l,i;const s=t.prototype;if(e.t){const r=Object.entries(null!=(l=e.t)?l:{});if(r.map((([t,[l]])=>{if(31&l||2&o&&32&l){const{get:i,set:r}=Object.getOwnPropertyDescriptor(s,t)||{};i&&(e.t[t][0]|=2048),r&&(e.t[t][0]|=4096),(1&o||!i)&&Object.defineProperty(s,t,{get(){{if(!(2048&e.t[t][0]))return((t,e)=>n(this).l.get(e))(0,t);const o=n(this),l=o?o.i:s;if(!l)return;return l[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(s,t,{set(i){const s=n(this);if(s){if(r)return void 0===(32&l?this[t]:s.$hostElement$[t])&&s.l.get(t)&&(i=s.l.get(t)),r.call(this,x(i,l)),void X(this,t,i=32&l?this[t]:s.$hostElement$[t],e);{if(!(1&o&&4096&e.t[t][0]))return X(this,t,i,e),void(1&o&&!s.i&&s.C.push((()=>{4096&e.t[t][0]&&s.i[t]!==s.l.get(t)&&(s.i[t]=i)})));const n=()=>{const n=s.i[t];!s.l.get(t)&&n&&s.l.set(t,n),s.i[t]=x(i,l),X(this,t,s.i[t],e)};s.i?n():s.C.push((()=>{n()}))}}}})}})),1&o){const o=new Map;s.attributeChangedCallback=function(t,l,i){c.jmp((()=>{var c;const u=o.get(t),a=n(this);if(this.hasOwnProperty(u)&&(i=this[u],delete this[u]),s.hasOwnProperty(u)&&"number"==typeof this[u]&&this[u]==i)return;if(null==u){const n=null==a?void 0:a.u;if(a&&n&&!(8&n)&&i!==l){const o=a.i,s=null==(c=e.R)?void 0:c[t];null==s||s.forEach((e=>{const[[s,r]]=Object.entries(e);null!=o[s]&&(128&n||1&r)&&o[s].call(o,i,l,t)}))}return}const f=r.find((([t])=>t===u));f&&4&f[1][0]&&(i=null!==i&&"false"!==i);const d=Object.getOwnPropertyDescriptor(s,u);i==this[u]||d.get&&!d.set||(this[u]=i)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=e.R)?i:{}),...r.filter((([t,e])=>31&e[0])).map((([t,e])=>{const n=e[1]||t;return o.set(n,t),n}))]))}}return t},et=(t,e)=>{K(t,"connectedCallback",void 0,e)},nt=(t,e)=>{K(t,"disconnectedCallback",void 0,e||t)},ot=(t,e={})=>{var o;if(!r.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const u=[],f=e.exclude||[],d=r.customElements,h=r.document.head,p=h.querySelector("meta[charset]"),m=r.document.createElement("style"),v=[];let y,b=!0;if(Object.assign(c,e),c.h=new URL(e.resourcesUrl||"./",r.document.baseURI).href,t.map((t=>{t[1].map((e=>{const o={u:e[0],p:e[1],t:e[2],A:e[3]};o.t=e[2];const r=o.p,h=class extends HTMLElement{"s-p";"s-rc";hasRegisteredEventListeners=!1;constructor(t){if(super(t),((t,e)=>{const n={u:0,$hostElement$:t,o:e,l:new Map,L:new Map};n.U=new Promise((t=>n.P=t)),t["s-p"]=[],t["s-rc"]=[],n.C=[];const o=n;t.__stencil__getHostRef=()=>o})(t=this,o),1&o.u)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${o.p}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else $.call(t,o)}connectedCallback(){n(this)&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),y&&(clearTimeout(y),y=null),b?v.push(this):c.jmp((()=>(t=>{if(!(1&c.u)){const e=n(t);if(!e)return;const o=e.o,r=()=>{};if(1&e.u)(null==e?void 0:e.i)?et(e.i,t):(null==e?void 0:e.U)&&e.U.then((()=>et(e.i,t)));else{e.u|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){V(e,e.M=n);break}}o.t&&Object.entries(o.t).map((([e,[n]])=>{if(31&n&&e in t&&t[e]!==Object.prototype[e]){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;try{if(!(32&e.u)){if(e.u|=32,n.T){const s=((t,e)=>{const n=t.p.replace(/-/g,"_"),o=t.T;if(!o)return;const s=i.get(o);return s?s[n]:import(`./${o}.entry.js`).then((t=>(i.set(o,t),t[n])),(t=>{l(t,e.$hostElement$)}))
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(s&&"then"in s){const t=()=>{};o=await s,t()}else o=s;if(!o)throw Error(`Constructor for "${n.p}#${e.W}" was not found`);o.isProxied||(tt(o,n,2),o.isProxied=!0);const r=()=>{};e.u|=8;try{new o(e)}catch(e){l(e,t)}e.u&=-9,r(),et(e.i,t)}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.u|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=S(n);if(!s.has(e)){const o=()=>{};((t,e,n)=>{let o=s.get(t);a&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,s.set(t,o)})(e,t,!!(1&n.u)),o()}}}const r=e.M,c=()=>q(e,!0);r&&r["s-rc"]?r["s-rc"].push(c):c()}catch(n){l(n,t),e.k&&(e.k(),e.k=void 0),e.P&&e.P(t)}})(t,e,o)}r()}})(this))))}disconnectedCallback(){c.jmp((()=>(async t=>{if(!(1&c.u)){const e=n(t);(null==e?void 0:e.i)?nt(e.i,t):(null==e?void 0:e.U)&&e.U.then((()=>nt(e.i,t)))}O.has(t)&&O.delete(t),t.shadowRoot&&O.has(t.shadowRoot)&&O.delete(t.shadowRoot)})(this))),c.raf((()=>{var t;const e=n(this);if(!e)return;const o=v.findIndex((t=>t===this));o>-1&&v.splice(o,1),(null==(t=null==e?void 0:e.D)?void 0:t.S)instanceof Node&&!e.D.S.isConnected&&delete e.D.S}))}componentOnReady(){var t;return null==(t=n(this))?void 0:t.U}};o.T=t[0],f.includes(r)||d.get(r)||(u.push(r),d.define(r,tt(h,o,1)))}))})),u.length>0&&(m.textContent+=u.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",m.innerHTML.length)){m.setAttribute("data-styles","");const t=null!=(o=c.N)?o:g(r.document);null!=t&&m.setAttribute("nonce",t),h.insertBefore(m,p?p.nextSibling:h.firstChild)}b=!1,v.length?v.map((t=>t.connectedCallback())):c.jmp((()=>y=setTimeout(J,30)))},lt=t=>c.N=t;export{ot as b,M as h,u as p,o as r,lt as s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as t}from"./p-
|
|
1
|
+
import{r as e,h as t}from"./p-Dbd0iDJa.js";const c=class{constructor(t){e(this,t),this.size=void 0,this.timeZone=0,this.time=Date.now()}componentDidLoad(){this.timer=window.setInterval((()=>{this.time=Date.now()}),250)}disconnectedCallback(){clearInterval(this.timer)}get hour(){return new Date(this.time).getHours()}get minute(){return new Date(this.time).getMinutes()}get second(){return new Date(this.time).getSeconds()}hourToDegrees(){const e=this.hour+this.timeZone;return Math.floor(this.minute/2)+30*e}minuteToDegrees(){return Math.floor(this.second/10)+6*this.minute}secondToDegrees(){return 6*this.second}render(){return t("svg",{key:"39e3465d3bf04035966b00bb15186d1f712163cd",class:"clock",viewBox:"0 0 200 200",width:this.size,height:this.size},t("circle",{key:"e4c4288aa0efc9cf98027eef1f5bd7c550c23a18",id:"circle",cx:"100",cy:"100",r:"95","stroke-width":"10",fill:"transparent"}),t("line",{key:"296fb8ac19749103439f2ce1878db5ccfb214c20",id:"hour",transform:`rotate(${this.hourToDegrees()}, 100, 100)`,x1:"100",y1:"100",x2:"100",y2:"60","stroke-width":"10","stroke-linecap":"round"}),t("line",{key:"acbe2c6ebdf05ff46e06144839dec43c45e8b40d",id:"minute",transform:`rotate(${this.minuteToDegrees()}, 100, 100)`,x1:"100",y1:"100",x2:"100",y2:"30","stroke-width":"8","stroke-linecap":"round"}),t("line",{key:"f275abf7169379b2f61c9cdd185068f5e2373d4a",id:"second",transform:`rotate(${this.secondToDegrees()}, 100, 100)`,x1:"100",y1:"100",x2:"100",y2:"20","stroke-width":"2","stroke-linecap":"round"}))}};c.style=".clock #circle{stroke:var(--clock-circle-color, black)}.clock #hour{stroke:var(--clock-hour-color, black)}.clock #minute{stroke:var(--clock-minute-color, black)}.clock #second{stroke:var(--clock-second-color, black)}";export{c as analog_clock}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DcA-IKwV.js');
|
|
4
4
|
|
|
5
5
|
const analogClockCss = () => `.clock #circle{stroke:var(--clock-circle-color, black)}.clock #hour{stroke:var(--clock-hour-color, black)}.clock #minute{stroke:var(--clock-minute-color, black)}.clock #second{stroke:var(--clock-second-color, black)}`;
|
|
6
6
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DcA-IKwV.js');
|
|
4
4
|
var appGlobals = require('./app-globals-V2Kpy_OQ.js');
|
|
5
5
|
|
|
6
6
|
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Browser v4.42.
|
|
8
|
+
Stencil Client Patch Browser v4.42.1 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
var patchBrowser = () => {
|
|
@@ -4,7 +4,7 @@ const NAMESPACE = 'analog-clock';
|
|
|
4
4
|
const BUILD = /* analog-clock */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: false, state: true, updatable: true};
|
|
5
5
|
|
|
6
6
|
/*
|
|
7
|
-
Stencil Client Platform v4.42.
|
|
7
|
+
Stencil Client Platform v4.42.1 | MIT Licensed | https://stenciljs.com
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
|
|
@@ -444,7 +444,20 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
444
444
|
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
445
445
|
}
|
|
446
446
|
} else if (memberName === "key") ; else if (memberName[0] === "a" && memberName.startsWith("attr:")) {
|
|
447
|
-
const
|
|
447
|
+
const propName = memberName.slice(5);
|
|
448
|
+
let attrName;
|
|
449
|
+
{
|
|
450
|
+
const hostRef = getHostRef(elm);
|
|
451
|
+
if (hostRef && hostRef.$cmpMeta$ && hostRef.$cmpMeta$.$members$) {
|
|
452
|
+
const memberMeta = hostRef.$cmpMeta$.$members$[propName];
|
|
453
|
+
if (memberMeta && memberMeta[1]) {
|
|
454
|
+
attrName = memberMeta[1];
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
if (!attrName) {
|
|
459
|
+
attrName = propName.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
460
|
+
}
|
|
448
461
|
if (newValue == null || newValue === false) {
|
|
449
462
|
if (newValue !== false || elm.getAttribute(attrName) === "") {
|
|
450
463
|
elm.removeAttribute(attrName);
|
|
@@ -852,7 +865,7 @@ var updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
852
865
|
if (childrenPromises.length === 0) {
|
|
853
866
|
postUpdate();
|
|
854
867
|
} else {
|
|
855
|
-
Promise.all(childrenPromises).then(postUpdate);
|
|
868
|
+
Promise.all(childrenPromises).then(postUpdate).catch(postUpdate);
|
|
856
869
|
hostRef.$flags$ |= 4 /* isWaitingForChildren */;
|
|
857
870
|
childrenPromises.length = 0;
|
|
858
871
|
}
|
|
@@ -954,13 +967,16 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
954
967
|
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
955
968
|
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
|
|
956
969
|
hostRef.$instanceValues$.set(propName, newVal);
|
|
957
|
-
if (
|
|
970
|
+
if (flags & 2 /* hasRendered */) {
|
|
958
971
|
if (instance.componentShouldUpdate) {
|
|
959
|
-
|
|
972
|
+
const shouldUpdate = instance.componentShouldUpdate(newVal, oldVal, propName);
|
|
973
|
+
if (shouldUpdate === false && !(flags & 16 /* isQueuedForUpdate */)) {
|
|
960
974
|
return;
|
|
961
975
|
}
|
|
962
976
|
}
|
|
963
|
-
|
|
977
|
+
if (!(flags & 16 /* isQueuedForUpdate */)) {
|
|
978
|
+
scheduleUpdate(hostRef, false);
|
|
979
|
+
}
|
|
964
980
|
}
|
|
965
981
|
}
|
|
966
982
|
};
|
|
@@ -1103,65 +1119,76 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1103
1119
|
// src/runtime/initialize-component.ts
|
|
1104
1120
|
var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
1105
1121
|
let Cstr;
|
|
1106
|
-
|
|
1107
|
-
hostRef.$flags$
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1122
|
+
try {
|
|
1123
|
+
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
1124
|
+
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1125
|
+
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1126
|
+
if (bundleId) {
|
|
1127
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
1128
|
+
if (CstrImport && "then" in CstrImport) {
|
|
1129
|
+
const endLoad = uniqueTime();
|
|
1130
|
+
Cstr = await CstrImport;
|
|
1131
|
+
endLoad();
|
|
1132
|
+
} else {
|
|
1133
|
+
Cstr = CstrImport;
|
|
1134
|
+
}
|
|
1135
|
+
if (!Cstr) {
|
|
1136
|
+
throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
|
|
1137
|
+
}
|
|
1138
|
+
if (!Cstr.isProxied) {
|
|
1139
|
+
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
1140
|
+
Cstr.isProxied = true;
|
|
1141
|
+
}
|
|
1142
|
+
const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
|
|
1143
|
+
{
|
|
1144
|
+
hostRef.$flags$ |= 8 /* isConstructingInstance */;
|
|
1145
|
+
}
|
|
1146
|
+
try {
|
|
1147
|
+
new Cstr(hostRef);
|
|
1148
|
+
} catch (e) {
|
|
1149
|
+
consoleError(e, elm);
|
|
1150
|
+
}
|
|
1151
|
+
{
|
|
1152
|
+
hostRef.$flags$ &= -9 /* isConstructingInstance */;
|
|
1153
|
+
}
|
|
1154
|
+
endNewInstance();
|
|
1155
|
+
{
|
|
1156
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1157
|
+
}
|
|
1115
1158
|
} else {
|
|
1116
|
-
Cstr =
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
|
|
1120
|
-
}
|
|
1121
|
-
if (!Cstr.isProxied) {
|
|
1122
|
-
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
1123
|
-
Cstr.isProxied = true;
|
|
1124
|
-
}
|
|
1125
|
-
const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
|
|
1126
|
-
{
|
|
1127
|
-
hostRef.$flags$ |= 8 /* isConstructingInstance */;
|
|
1128
|
-
}
|
|
1129
|
-
try {
|
|
1130
|
-
new Cstr(hostRef);
|
|
1131
|
-
} catch (e) {
|
|
1132
|
-
consoleError(e, elm);
|
|
1133
|
-
}
|
|
1134
|
-
{
|
|
1135
|
-
hostRef.$flags$ &= -9 /* isConstructingInstance */;
|
|
1159
|
+
Cstr = elm.constructor;
|
|
1160
|
+
const cmpTag = elm.localName;
|
|
1161
|
+
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1136
1162
|
}
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1163
|
+
if (Cstr && Cstr.style) {
|
|
1164
|
+
let style;
|
|
1165
|
+
if (typeof Cstr.style === "string") {
|
|
1166
|
+
style = Cstr.style;
|
|
1167
|
+
}
|
|
1168
|
+
const scopeId2 = getScopeId(cmpMeta);
|
|
1169
|
+
if (!styles.has(scopeId2) || BUILD.hotModuleReplacement) {
|
|
1170
|
+
const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
|
|
1171
|
+
registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
1172
|
+
endRegisterStyles();
|
|
1173
|
+
}
|
|
1140
1174
|
}
|
|
1175
|
+
}
|
|
1176
|
+
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1177
|
+
const schedule = () => scheduleUpdate(hostRef, true);
|
|
1178
|
+
if (ancestorComponent && ancestorComponent["s-rc"]) {
|
|
1179
|
+
ancestorComponent["s-rc"].push(schedule);
|
|
1141
1180
|
} else {
|
|
1142
|
-
|
|
1143
|
-
const cmpTag = elm.localName;
|
|
1144
|
-
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1181
|
+
schedule();
|
|
1145
1182
|
}
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
1155
|
-
endRegisterStyles();
|
|
1156
|
-
}
|
|
1183
|
+
} catch (e) {
|
|
1184
|
+
consoleError(e, elm);
|
|
1185
|
+
if (hostRef.$onRenderResolve$) {
|
|
1186
|
+
hostRef.$onRenderResolve$();
|
|
1187
|
+
hostRef.$onRenderResolve$ = void 0;
|
|
1188
|
+
}
|
|
1189
|
+
if (hostRef.$onReadyResolve$) {
|
|
1190
|
+
hostRef.$onReadyResolve$(elm);
|
|
1157
1191
|
}
|
|
1158
|
-
}
|
|
1159
|
-
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1160
|
-
const schedule = () => scheduleUpdate(hostRef, true);
|
|
1161
|
-
if (ancestorComponent && ancestorComponent["s-rc"]) {
|
|
1162
|
-
ancestorComponent["s-rc"].push(schedule);
|
|
1163
|
-
} else {
|
|
1164
|
-
schedule();
|
|
1165
1192
|
}
|
|
1166
1193
|
};
|
|
1167
1194
|
var fireConnectedCallback = (instance, elm) => {
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-Dbd0iDJa.js';
|
|
2
2
|
|
|
3
3
|
const analogClockCss = () => `.clock #circle{stroke:var(--clock-circle-color, black)}.clock #hour{stroke:var(--clock-hour-color, black)}.clock #minute{stroke:var(--clock-minute-color, black)}.clock #second{stroke:var(--clock-second-color, black)}`;
|
|
4
4
|
|
package/dist/esm/analog-clock.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-Dbd0iDJa.js';
|
|
2
|
+
export { s as setNonce } from './index-Dbd0iDJa.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-DQuL1Twl.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v4.42.
|
|
6
|
+
Stencil Client Patch Browser v4.42.1 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
var patchBrowser = () => {
|
|
@@ -2,7 +2,7 @@ const NAMESPACE = 'analog-clock';
|
|
|
2
2
|
const BUILD = /* analog-clock */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: false, state: true, updatable: true};
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.42.
|
|
5
|
+
Stencil Client Platform v4.42.1 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
|
|
@@ -442,7 +442,20 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
442
442
|
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
443
443
|
}
|
|
444
444
|
} else if (memberName === "key") ; else if (memberName[0] === "a" && memberName.startsWith("attr:")) {
|
|
445
|
-
const
|
|
445
|
+
const propName = memberName.slice(5);
|
|
446
|
+
let attrName;
|
|
447
|
+
{
|
|
448
|
+
const hostRef = getHostRef(elm);
|
|
449
|
+
if (hostRef && hostRef.$cmpMeta$ && hostRef.$cmpMeta$.$members$) {
|
|
450
|
+
const memberMeta = hostRef.$cmpMeta$.$members$[propName];
|
|
451
|
+
if (memberMeta && memberMeta[1]) {
|
|
452
|
+
attrName = memberMeta[1];
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
if (!attrName) {
|
|
457
|
+
attrName = propName.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
458
|
+
}
|
|
446
459
|
if (newValue == null || newValue === false) {
|
|
447
460
|
if (newValue !== false || elm.getAttribute(attrName) === "") {
|
|
448
461
|
elm.removeAttribute(attrName);
|
|
@@ -850,7 +863,7 @@ var updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
850
863
|
if (childrenPromises.length === 0) {
|
|
851
864
|
postUpdate();
|
|
852
865
|
} else {
|
|
853
|
-
Promise.all(childrenPromises).then(postUpdate);
|
|
866
|
+
Promise.all(childrenPromises).then(postUpdate).catch(postUpdate);
|
|
854
867
|
hostRef.$flags$ |= 4 /* isWaitingForChildren */;
|
|
855
868
|
childrenPromises.length = 0;
|
|
856
869
|
}
|
|
@@ -952,13 +965,16 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
952
965
|
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
953
966
|
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
|
|
954
967
|
hostRef.$instanceValues$.set(propName, newVal);
|
|
955
|
-
if (
|
|
968
|
+
if (flags & 2 /* hasRendered */) {
|
|
956
969
|
if (instance.componentShouldUpdate) {
|
|
957
|
-
|
|
970
|
+
const shouldUpdate = instance.componentShouldUpdate(newVal, oldVal, propName);
|
|
971
|
+
if (shouldUpdate === false && !(flags & 16 /* isQueuedForUpdate */)) {
|
|
958
972
|
return;
|
|
959
973
|
}
|
|
960
974
|
}
|
|
961
|
-
|
|
975
|
+
if (!(flags & 16 /* isQueuedForUpdate */)) {
|
|
976
|
+
scheduleUpdate(hostRef, false);
|
|
977
|
+
}
|
|
962
978
|
}
|
|
963
979
|
}
|
|
964
980
|
};
|
|
@@ -1101,65 +1117,76 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1101
1117
|
// src/runtime/initialize-component.ts
|
|
1102
1118
|
var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
1103
1119
|
let Cstr;
|
|
1104
|
-
|
|
1105
|
-
hostRef.$flags$
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1120
|
+
try {
|
|
1121
|
+
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
1122
|
+
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1123
|
+
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1124
|
+
if (bundleId) {
|
|
1125
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
1126
|
+
if (CstrImport && "then" in CstrImport) {
|
|
1127
|
+
const endLoad = uniqueTime();
|
|
1128
|
+
Cstr = await CstrImport;
|
|
1129
|
+
endLoad();
|
|
1130
|
+
} else {
|
|
1131
|
+
Cstr = CstrImport;
|
|
1132
|
+
}
|
|
1133
|
+
if (!Cstr) {
|
|
1134
|
+
throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
|
|
1135
|
+
}
|
|
1136
|
+
if (!Cstr.isProxied) {
|
|
1137
|
+
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
1138
|
+
Cstr.isProxied = true;
|
|
1139
|
+
}
|
|
1140
|
+
const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
|
|
1141
|
+
{
|
|
1142
|
+
hostRef.$flags$ |= 8 /* isConstructingInstance */;
|
|
1143
|
+
}
|
|
1144
|
+
try {
|
|
1145
|
+
new Cstr(hostRef);
|
|
1146
|
+
} catch (e) {
|
|
1147
|
+
consoleError(e, elm);
|
|
1148
|
+
}
|
|
1149
|
+
{
|
|
1150
|
+
hostRef.$flags$ &= -9 /* isConstructingInstance */;
|
|
1151
|
+
}
|
|
1152
|
+
endNewInstance();
|
|
1153
|
+
{
|
|
1154
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1155
|
+
}
|
|
1113
1156
|
} else {
|
|
1114
|
-
Cstr =
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
|
|
1118
|
-
}
|
|
1119
|
-
if (!Cstr.isProxied) {
|
|
1120
|
-
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
1121
|
-
Cstr.isProxied = true;
|
|
1122
|
-
}
|
|
1123
|
-
const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
|
|
1124
|
-
{
|
|
1125
|
-
hostRef.$flags$ |= 8 /* isConstructingInstance */;
|
|
1126
|
-
}
|
|
1127
|
-
try {
|
|
1128
|
-
new Cstr(hostRef);
|
|
1129
|
-
} catch (e) {
|
|
1130
|
-
consoleError(e, elm);
|
|
1131
|
-
}
|
|
1132
|
-
{
|
|
1133
|
-
hostRef.$flags$ &= -9 /* isConstructingInstance */;
|
|
1157
|
+
Cstr = elm.constructor;
|
|
1158
|
+
const cmpTag = elm.localName;
|
|
1159
|
+
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1134
1160
|
}
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1161
|
+
if (Cstr && Cstr.style) {
|
|
1162
|
+
let style;
|
|
1163
|
+
if (typeof Cstr.style === "string") {
|
|
1164
|
+
style = Cstr.style;
|
|
1165
|
+
}
|
|
1166
|
+
const scopeId2 = getScopeId(cmpMeta);
|
|
1167
|
+
if (!styles.has(scopeId2) || BUILD.hotModuleReplacement) {
|
|
1168
|
+
const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
|
|
1169
|
+
registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
1170
|
+
endRegisterStyles();
|
|
1171
|
+
}
|
|
1138
1172
|
}
|
|
1173
|
+
}
|
|
1174
|
+
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1175
|
+
const schedule = () => scheduleUpdate(hostRef, true);
|
|
1176
|
+
if (ancestorComponent && ancestorComponent["s-rc"]) {
|
|
1177
|
+
ancestorComponent["s-rc"].push(schedule);
|
|
1139
1178
|
} else {
|
|
1140
|
-
|
|
1141
|
-
const cmpTag = elm.localName;
|
|
1142
|
-
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1179
|
+
schedule();
|
|
1143
1180
|
}
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
1153
|
-
endRegisterStyles();
|
|
1154
|
-
}
|
|
1181
|
+
} catch (e) {
|
|
1182
|
+
consoleError(e, elm);
|
|
1183
|
+
if (hostRef.$onRenderResolve$) {
|
|
1184
|
+
hostRef.$onRenderResolve$();
|
|
1185
|
+
hostRef.$onRenderResolve$ = void 0;
|
|
1186
|
+
}
|
|
1187
|
+
if (hostRef.$onReadyResolve$) {
|
|
1188
|
+
hostRef.$onReadyResolve$(elm);
|
|
1155
1189
|
}
|
|
1156
|
-
}
|
|
1157
|
-
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1158
|
-
const schedule = () => scheduleUpdate(hostRef, true);
|
|
1159
|
-
if (ancestorComponent && ancestorComponent["s-rc"]) {
|
|
1160
|
-
ancestorComponent["s-rc"].push(schedule);
|
|
1161
|
-
} else {
|
|
1162
|
-
schedule();
|
|
1163
1190
|
}
|
|
1164
1191
|
};
|
|
1165
1192
|
var fireConnectedCallback = (instance, elm) => {
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-Dbd0iDJa.js';
|
|
2
|
+
export { s as setNonce } from './index-Dbd0iDJa.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-DQuL1Twl.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
@@ -1438,8 +1438,6 @@ export declare namespace JSXBase {
|
|
|
1438
1438
|
results?: number;
|
|
1439
1439
|
security?: string;
|
|
1440
1440
|
unselectable?: boolean;
|
|
1441
|
-
[key: `attr:${string}`]: string;
|
|
1442
|
-
[key: `prop:${string}`]: any;
|
|
1443
1441
|
}
|
|
1444
1442
|
interface SVGAttributes<T = SVGElement> extends DOMAttributes<T> {
|
|
1445
1443
|
class?: string | {
|
|
@@ -1701,8 +1699,6 @@ export declare namespace JSXBase {
|
|
|
1701
1699
|
yChannelSelector?: string;
|
|
1702
1700
|
z?: number | string;
|
|
1703
1701
|
zoomAndPan?: string;
|
|
1704
|
-
[key: `attr:${string}`]: string;
|
|
1705
|
-
[key: `prop:${string}`]: any;
|
|
1706
1702
|
}
|
|
1707
1703
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent) */
|
|
1708
1704
|
interface ToggleEvent extends Event {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "analog-clock-components",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.87",
|
|
4
4
|
"description": "Stencil Component Starter",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
"loader/"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@stencil/core": "4.42.
|
|
18
|
+
"@stencil/core": "4.42.1"
|
|
19
19
|
},
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"bumpp": "10.4.1",
|
|
23
23
|
"cspell": "9.6.4",
|
|
24
|
-
"eslint": "
|
|
24
|
+
"eslint": "10.0.0",
|
|
25
25
|
"only-allow": "1.2.2",
|
|
26
26
|
"prettier": "3.8.1",
|
|
27
27
|
"typescript": "5.9.3",
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var t,e=(t,e)=>{var n;Object.entries(null!=(n=e.o.t)?n:{}).map((([n,[o]])=>{if(31&o||32&o){const o=t[n],l=function(t,e){for(;t;){const n=Object.getOwnPropertyDescriptor(t,e);if(null==n?void 0:n.get)return n;t=Object.getPrototypeOf(t)}}(Object.getPrototypeOf(t),n)||Object.getOwnPropertyDescriptor(t,n);l&&Object.defineProperty(t,n,{get(){return l.get.call(this)},set(t){l.set.call(this,t)},configurable:!0,enumerable:!0}),t[n]=e.l.has(n)?e.l.get(n):o}}))},n=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},o=(t,n)=>{n&&(t.__stencil__getHostRef=()=>n,n.i=t,512&n.o.u&&e(t,n))},l=(t,e)=>(0,console.error)(t,e),i=new Map,s=new Map,r="undefined"!=typeof window?window:{},c={u:0,h:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},u=t=>Promise.resolve(t),a=(()=>{try{return!!r.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),f=!!a&&(()=>!!r.document&&Object.getOwnPropertyDescriptor(r.document.adoptedStyleSheets,"length").writable)(),d=!1,h=[],p=[],m=(t,e)=>n=>{t.push(n),d||(d=!0,e&&4&c.u?y(b):c.raf(b))},v=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){l(t)}t.length=0},b=()=>{v(h),v(p),(d=h.length>0)&&c.raf(b)},y=t=>u().then(t),w=m(p,!0);function $(){const e=this.attachShadow({mode:"open"});void 0===t&&(t=null),t&&(f?e.adoptedStyleSheets.push(t):e.adoptedStyleSheets=[...e.adoptedStyleSheets,t])}function g(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}var j,O=new WeakMap,S=t=>"sc-"+t.p,k=t=>"object"==(t=typeof t)||"function"===t,M=(t,e,...n)=>{let o=null,l=null,i=!1,s=!1;const r=[],c=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((i="function"!=typeof t&&!k(o))&&(o+=""),i&&s?r[r.length-1].m+=o:r.push(i?C(null,o):o),s=i)};if(c(n),e){e.key&&(l=e.key);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}const u=C(t,null);return u.v=e,r.length>0&&(u.$=r),u.j=l,u},C=(t,e)=>({u:0,O:t,m:null!=e?e:null,S:null,$:null,v:null,j:null}),E={},x=(t,e)=>null==t||k(t)?t:2&e?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:t,N=(t,e,n,o,l,i)=>{if(n===o)return;let s=((t,e)=>e in t)(t,e);if(e.toLowerCase(),"class"===e){const e=t.classList,l=P(n);let i=P(o);e.remove(...l.filter((t=>t&&!i.includes(t)))),e.add(...i.filter((t=>t&&!l.includes(t))))}else if("key"===e);else{if("a"===e[0]&&e.startsWith("attr:")){const n=e.slice(5);return void(null==o||!1===o?!1===o&&""!==t.getAttribute(n)||t.removeAttribute(n):t.setAttribute(n,!0===o?"":o))}if("p"===e[0]&&e.startsWith("prop:")){const n=e.slice(5);try{t[n]=o}catch(t){}return}{const r=k(o);if((s||r&&null!==o)&&!l)try{if(t.tagName.includes("-"))t[e]!==o&&(t[e]=o);else{const l=null==o?"":o;"list"===e?s=!1:null!=n&&t[e]===l||("function"==typeof t.__lookupSetter__(e)?t[e]=l:t.setAttribute(e,l))}}catch(t){}null==o||!1===o?!1===o&&""!==t.getAttribute(e)||t.removeAttribute(e):(!s||4&i||l)&&!r&&1===t.nodeType&&t.setAttribute(e,o=!0===o?"":o)}}},D=/\s/,P=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(D):[]),R=(t,e,n)=>{const o=11===e.S.nodeType&&e.S.host?e.S.host:e.S,l=t&&t.v||{},i=e.v||{};for(const t of L(Object.keys(l)))t in i||N(o,t,l[t],void 0,n,e.u);for(const t of L(Object.keys(i)))N(o,t,l[t],i[t],n,e.u)};function L(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var U=!1,A=(t,e,n)=>{const o=e.$[n];let l,i,s=0;if(U||(U="svg"===o.O),!r.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(l=o.S=r.document.createElementNS(U?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.O),U&&"foreignObject"===o.O&&(U=!1),R(null,o,U),o.$){const e="template"===o.O?l.content:l;for(s=0;s<o.$.length;++s)i=A(t,o,s),i&&e.appendChild(i)}return"svg"===o.O?U=!1:"foreignObject"===l.tagName&&(U=!0),l["s-hn"]=j,l},T=(t,e,n,o,l,i)=>{let s,r=t;for(r.shadowRoot&&r.tagName===j&&(r=r.shadowRoot),"template"===n.O&&(r=r.content);l<=i;++l)o[l]&&(s=A(null,n,l),s&&(o[l].S=s,V(r,s,e)))},W=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.S;t&&t.remove()}}},F=(t,e,n=!1)=>t.O===e.O&&(n?(n&&!t.j&&e.j&&(t.j=e.j),!0):t.j===e.j),H=(t,e,n=!1)=>{const o=e.S=t.S,l=t.$,i=e.$,s=e.O;R(t,e,U="svg"===s||"foreignObject"!==s&&U),null!==l&&null!==i?((t,e,n,o,l=!1)=>{let i,s,r=0,c=0,u=0,a=0,f=e.length-1,d=e[0],h=e[f],p=o.length-1,m=o[0],v=o[p];const b="template"===n.O?t.content:t;for(;r<=f&&c<=p;)if(null==d)d=e[++r];else if(null==h)h=e[--f];else if(null==m)m=o[++c];else if(null==v)v=o[--p];else if(F(d,m,l))H(d,m,l),d=e[++r],m=o[++c];else if(F(h,v,l))H(h,v,l),h=e[--f],v=o[--p];else if(F(d,v,l))H(d,v,l),V(b,d.S,h.S.nextSibling),d=e[++r],v=o[--p];else if(F(h,m,l))H(h,m,l),V(b,h.S,d.S),h=e[--f],m=o[++c];else{for(u=-1,a=r;a<=f;++a)if(e[a]&&null!==e[a].j&&e[a].j===m.j){u=a;break}u>=0?(s=e[u],s.O!==m.O?i=A(e&&e[c],n,u):(H(s,m,l),e[u]=void 0,i=s.S),m=o[++c]):(i=A(e&&e[c],n,c),m=o[++c]),i&&V(d.S.parentNode,i,d.S)}r>f?T(t,null==o[p+1]?null:o[p+1].S,n,o,c,p):c>p&&W(e,r,f)})(o,l,e,i,n):null!==i?T(o,null,e,i,0,i.length-1):!n&&null!==l&&W(l,0,l.length-1),U&&"svg"===s&&(U=!1)},V=(t,e,n)=>t.__insertBefore?t.__insertBefore(e,n):null==t?void 0:t.insertBefore(e,n),q=(t,e)=>{if(e&&!t.k&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.k=()=>{e["s-p"].splice(n-1,1),o()})))}},z=(t,e)=>{if(t.u|=16,4&t.u)return void(t.u|=512);q(t,t.M);const n=()=>G(t,e);if(!e)return w(n);queueMicrotask((()=>{n()}))},G=(t,e)=>{const n=t.$hostElement$,o=t.i;if(!o)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return e?(t.C.length&&t.C.forEach((t=>t(n))),l=Q(o,"componentWillLoad",void 0,n)):l=Q(o,"componentWillUpdate",void 0,n),l=Y(l,(()=>Q(o,"componentWillRender",void 0,n))),Y(l,(()=>B(t,o,e)))},Y=(t,e)=>_(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),_=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,B=async(t,e,n)=>{var o;const l=t.$hostElement$,i=l["s-rc"];n&&(t=>{const e=t.o,n=t.$hostElement$,o=e.u,l=((t,e)=>{var n,o,l;const i=S(e),u=s.get(i);if(!r.document)return i;if(t=11===t.nodeType?t:r.document,u)if("string"==typeof u){let l,s=O.get(t=t.head||t);if(s||O.set(t,s=new Set),!s.has(i)){l=r.document.createElement("style"),l.textContent=u;const d=null!=(n=c.N)?n:g(r.document);if(null!=d&&l.setAttribute("nonce",d),!(1&e.u))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(l,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(a){const e=new(null!=(o=t.defaultView)?o:t.ownerDocument.defaultView).CSSStyleSheet;e.replaceSync(u),f?t.adoptedStyleSheets.unshift(e):t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.textContent=u+e.textContent:t.prepend(l)}else t.append(l);1&e.u&&t.insertBefore(l,null),4&e.u&&(l.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),s&&s.add(i)}}else{let e=O.get(t);if(e||O.set(t,e=new Set),!e.has(i)){const n=null!=(l=t.defaultView)?l:t.ownerDocument.defaultView;let o;if(u.constructor===n.CSSStyleSheet)o=u;else{o=new n.CSSStyleSheet;for(let t=0;t<u.cssRules.length;t++)o.insertRule(u.cssRules[t].cssText,t)}f?t.adoptedStyleSheets.push(o):t.adoptedStyleSheets=[...t.adoptedStyleSheets,o],e.add(i)}}return i})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);I(t,e,l,n),i&&(i.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>J(t);0===e.length?n():(Promise.all(e).then(n),t.u|=4,e.length=0)}},I=(t,e,n,o)=>{try{e=e.render(),t.u&=-17,t.u|=2,((t,e,n=!1)=>{const o=t.$hostElement$,l=t.D||C(null,null),i=(t=>t&&t.O===E)(e)?e:M(null,null,e);if(j=o.tagName,n&&i.v)for(const t of Object.keys(i.v))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(i.v[t]=o[t]);i.O=null,i.u|=4,t.D=i,i.S=l.S=o.shadowRoot||o,H(l,i,n)})(t,e,o)}catch(e){l(e,t.$hostElement$)}return null},J=t=>{const e=t.$hostElement$,n=t.i,o=t.M;Q(n,"componentDidRender",void 0,e),64&t.u?Q(n,"componentDidUpdate",void 0,e):(t.u|=64,X(e),Q(n,"componentDidLoad",void 0,e),t.P(e),o||K()),t.k&&(t.k(),t.k=void 0),512&t.u&&y((()=>z(t,!1))),t.u&=-517},K=()=>{y((()=>(t=>{const e=c.ce("appload",{detail:{namespace:"analog-clock"}});return t.dispatchEvent(e),e})(r)))},Q=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){l(t,o)}},X=t=>t.classList.add("hydrated"),Z=(t,e,o,l)=>{const i=n(t);if(!i)return;if(!i)throw Error(`Couldn't find host element for "${l.p}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const s=i.l.get(e),r=i.u,c=i.i;if(o=x(o,l.t[e][0]),!(8&r&&void 0!==s||o===s||Number.isNaN(s)&&Number.isNaN(o)||(i.l.set(e,o),2!=(18&r)))){if(c.componentShouldUpdate&&!1===c.componentShouldUpdate(o,s,e))return;z(i,!1)}},tt=(t,e,o)=>{var l,i;const s=t.prototype;if(e.t){const r=Object.entries(null!=(l=e.t)?l:{});if(r.map((([t,[l]])=>{if(31&l||2&o&&32&l){const{get:i,set:r}=Object.getOwnPropertyDescriptor(s,t)||{};i&&(e.t[t][0]|=2048),r&&(e.t[t][0]|=4096),(1&o||!i)&&Object.defineProperty(s,t,{get(){{if(!(2048&e.t[t][0]))return((t,e)=>n(this).l.get(e))(0,t);const o=n(this),l=o?o.i:s;if(!l)return;return l[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(s,t,{set(i){const s=n(this);if(s){if(r)return void 0===(32&l?this[t]:s.$hostElement$[t])&&s.l.get(t)&&(i=s.l.get(t)),r.call(this,x(i,l)),void Z(this,t,i=32&l?this[t]:s.$hostElement$[t],e);{if(!(1&o&&4096&e.t[t][0]))return Z(this,t,i,e),void(1&o&&!s.i&&s.C.push((()=>{4096&e.t[t][0]&&s.i[t]!==s.l.get(t)&&(s.i[t]=i)})));const n=()=>{const n=s.i[t];!s.l.get(t)&&n&&s.l.set(t,n),s.i[t]=x(i,l),Z(this,t,s.i[t],e)};s.i?n():s.C.push((()=>{n()}))}}}})}})),1&o){const o=new Map;s.attributeChangedCallback=function(t,l,i){c.jmp((()=>{var c;const u=o.get(t),a=n(this);if(this.hasOwnProperty(u)&&(i=this[u],delete this[u]),s.hasOwnProperty(u)&&"number"==typeof this[u]&&this[u]==i)return;if(null==u){const n=null==a?void 0:a.u;if(a&&n&&!(8&n)&&i!==l){const o=a.i,s=null==(c=e.R)?void 0:c[t];null==s||s.forEach((e=>{const[[s,r]]=Object.entries(e);null!=o[s]&&(128&n||1&r)&&o[s].call(o,i,l,t)}))}return}const f=r.find((([t])=>t===u));f&&4&f[1][0]&&(i=null!==i&&"false"!==i);const d=Object.getOwnPropertyDescriptor(s,u);i==this[u]||d.get&&!d.set||(this[u]=i)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=e.R)?i:{}),...r.filter((([t,e])=>31&e[0])).map((([t,e])=>{const n=e[1]||t;return o.set(n,t),n}))]))}}return t},et=(t,e)=>{Q(t,"connectedCallback",void 0,e)},nt=(t,e)=>{Q(t,"disconnectedCallback",void 0,e||t)},ot=(t,e={})=>{var o;if(!r.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const u=[],f=e.exclude||[],d=r.customElements,h=r.document.head,p=h.querySelector("meta[charset]"),m=r.document.createElement("style"),v=[];let b,y=!0;if(Object.assign(c,e),c.h=new URL(e.resourcesUrl||"./",r.document.baseURI).href,t.map((t=>{t[1].map((e=>{const o={u:e[0],p:e[1],t:e[2],L:e[3]};o.t=e[2];const r=o.p,h=class extends HTMLElement{"s-p";"s-rc";hasRegisteredEventListeners=!1;constructor(t){if(super(t),((t,e)=>{const n={u:0,$hostElement$:t,o:e,l:new Map,U:new Map};n.A=new Promise((t=>n.P=t)),t["s-p"]=[],t["s-rc"]=[],n.C=[];const o=n;t.__stencil__getHostRef=()=>o})(t=this,o),1&o.u)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${o.p}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else $.call(t,o)}connectedCallback(){n(this)&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),b&&(clearTimeout(b),b=null),y?v.push(this):c.jmp((()=>(t=>{if(!(1&c.u)){const e=n(t);if(!e)return;const o=e.o,r=()=>{};if(1&e.u)(null==e?void 0:e.i)?et(e.i,t):(null==e?void 0:e.A)&&e.A.then((()=>et(e.i,t)));else{e.u|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){q(e,e.M=n);break}}o.t&&Object.entries(o.t).map((([e,[n]])=>{if(31&n&&e in t&&t[e]!==Object.prototype[e]){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.u)){if(e.u|=32,n.T){const s=((t,e)=>{const n=t.p.replace(/-/g,"_"),o=t.T;if(!o)return;const s=i.get(o);return s?s[n]:import(`./${o}.entry.js`).then((t=>(i.set(o,t),t[n])),(t=>{l(t,e.$hostElement$)}))
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(s&&"then"in s){const t=()=>{};o=await s,t()}else o=s;if(!o)throw Error(`Constructor for "${n.p}#${e.W}" was not found`);o.isProxied||(tt(o,n,2),o.isProxied=!0);const r=()=>{};e.u|=8;try{new o(e)}catch(e){l(e,t)}e.u&=-9,r(),et(e.i,t)}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.u|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=S(n);if(!s.has(e)){const o=()=>{};((t,e,n)=>{let o=s.get(t);a&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,s.set(t,o)})(e,t,!!(1&n.u)),o()}}}const r=e.M,c=()=>z(e,!0);r&&r["s-rc"]?r["s-rc"].push(c):c()})(t,e,o)}r()}})(this))))}disconnectedCallback(){c.jmp((()=>(async t=>{if(!(1&c.u)){const e=n(t);(null==e?void 0:e.i)?nt(e.i,t):(null==e?void 0:e.A)&&e.A.then((()=>nt(e.i,t)))}O.has(t)&&O.delete(t),t.shadowRoot&&O.has(t.shadowRoot)&&O.delete(t.shadowRoot)})(this))),c.raf((()=>{var t;const e=n(this);if(!e)return;const o=v.findIndex((t=>t===this));o>-1&&v.splice(o,1),(null==(t=null==e?void 0:e.D)?void 0:t.S)instanceof Node&&!e.D.S.isConnected&&delete e.D.S}))}componentOnReady(){var t;return null==(t=n(this))?void 0:t.A}};o.T=t[0],f.includes(r)||d.get(r)||(u.push(r),d.define(r,tt(h,o,1)))}))})),u.length>0&&(m.textContent+=u.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",m.innerHTML.length)){m.setAttribute("data-styles","");const t=null!=(o=c.N)?o:g(r.document);null!=t&&m.setAttribute("nonce",t),h.insertBefore(m,p?p.nextSibling:h.firstChild)}y=!1,v.length?v.map((t=>t.connectedCallback())):c.jmp((()=>b=setTimeout(K,30)))},lt=t=>c.N=t;export{ot as b,M as h,u as p,o as r,lt as s}
|