analog-clock-components 0.1.554 → 0.1.556

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.
@@ -1 +1 @@
1
- import{p as a,b as e}from"./p-a9721423.js";export{s as setNonce}from"./p-a9721423.js";import{g as o}from"./p-e1255160.js";(()=>{const e=import.meta.url,o={};return""!==e&&(o.resourcesUrl=new URL(".",e).href),a(o)})().then((async a=>(await o(),e([["p-af40dfdc",[[1,"analog-clock",{size:[2],timeZone:[2,"time-zone"],time:[32]}]]]],a))));
1
+ import{p as e,b as o}from"./p-e86bc608.js";export{s as setNonce}from"./p-e86bc608.js";import{g as t}from"./p-e1255160.js";(()=>{const o=import.meta.url,s={};return""!==o&&(s.resourcesUrl=new URL(".",o).href),e(s)})().then((async e=>(await t(),o([["p-1b376619",[[1,"analog-clock",{size:[2],timeZone:[2,"time-zone"],time:[32]}]]]],e))));
@@ -1 +1 @@
1
- import{r as e,h as t}from"./p-a9721423.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
+ import{r as e,h as t}from"./p-e86bc608.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}
@@ -0,0 +1,2 @@
1
+ var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),o=(e,n)=>{t.set(n.t=e,n)},l=(e,t)=>(0,console.error)(e,t),s=new Map,i=new Map,r="slot-fb{display:contents}slot-fb[hidden]{display:none}",c="undefined"!=typeof window?window:{},u=c.document||{head:{}},a={o:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)},f=e=>Promise.resolve(e),h=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),d=!1,p=[],m=[],y=(e,t)=>n=>{e.push(n),d||(d=!0,t&&4&a.o?b(v):a.raf(v))},w=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){l(e)}e.length=0},v=()=>{w(p),w(m),(d=p.length>0)&&a.raf(v)},b=e=>f().then(e),$=y(m,!0),g=e=>"object"==(e=typeof e)||"function"===e;function S(e){var t,n,o;return null!=(o=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>O,map:()=>k,ok:()=>j,unwrap:()=>C,unwrapErr:()=>M});var j=e=>({isOk:!0,isErr:!1,value:e}),O=e=>({isOk:!1,isErr:!0,value:e});function k(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>j(e))):j(n)}if(e.isErr)return O(e.value);throw"should never get here"}var E,C=e=>{if(e.isOk)return e.value;throw e.value},M=e=>{if(e.isErr)return e.value;throw e.value},x=(e,t,...n)=>{let o=null,l=null,s=!1,i=!1;const r=[],c=t=>{for(let n=0;n<t.length;n++)o=t[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof e&&!g(o))&&(o+=""),s&&i?r[r.length-1].i+=o:r.push(s?P(null,o):o),i=s)};if(c(n),t){t.key&&(l=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=P(e,null);return u.u=t,r.length>0&&(u.h=r),u.p=l,u},P=(e,t)=>({o:0,m:e,i:t,v:null,h:null,u:null,p:null}),A={},D=(e,t)=>null==e||g(e)?e:2&t?parseFloat(e):e,H=new WeakMap,N=e=>"sc-"+e.$,T=(e,t,n,o,l,s)=>{if(n!==o){let i=((e,t)=>t in e)(e,t);if(t.toLowerCase(),"class"===t){const t=e.classList,l=L(n);let s=L(o);e["s-si"]?(s.push(e["s-si"]),l.forEach((t=>{t.startsWith(e["s-si"])&&s.push(t)})),s=[...new Set(s)],t.add(...s),delete e["s-si"]):(t.remove(...l.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!l.includes(e)))))}else if("key"===t);else{const r=g(o);if((i||r&&null!==o)&&!l)try{if(e.tagName.includes("-"))e[t]!==o&&(e[t]=o);else{const l=null==o?"":o;"list"===t?i=!1:null!=n&&e[t]==l||("function"==typeof e.__lookupSetter__(t)?e[t]=l:e.setAttribute(t,l))}}catch(e){}null==o||!1===o?!1===o&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&s||l)&&!r&&e.setAttribute(t,o=!0===o?"":o)}}},F=/\s/,L=e=>("object"==typeof e&&"baseVal"in e&&(e=e.baseVal),e?e.split(F):[]),R=(e,t,n)=>{const o=11===t.v.nodeType&&t.v.host?t.v.host:t.v,l=e&&e.u||{},s=t.u||{};for(const e of U(Object.keys(l)))e in s||T(o,e,l[e],void 0,n,t.o);for(const e of U(Object.keys(s)))T(o,e,l[e],s[e],n,t.o)};function U(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var V=!1,W=(e,t,n)=>{const o=t.h[n];let l,s,i=0;if(V||(V="svg"===o.m),l=o.v=u.createElementNS(V?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.m),V&&"foreignObject"===o.m&&(V=!1),R(null,o,V),o.h)for(i=0;i<o.h.length;++i)s=W(e,o,i),s&&l.appendChild(s);return"svg"===o.m?V=!1:"foreignObject"===l.tagName&&(V=!0),l["s-hn"]=E,l},q=(e,t,n,o,l,s)=>{let i,r=e;for(r.shadowRoot&&r.tagName===E&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=W(null,n,l),i&&(o[l].v=i,B(r,i,t)))},G=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.v;e&&e.remove()}}},_=(e,t,n=!1)=>e.m===t.m&&(n?(n&&!e.p&&t.p&&(e.p=t.p),!0):e.p===t.p),z=(e,t,n=!1)=>{const o=t.v=e.v,l=e.h,s=t.h,i=t.m;R(e,t,V="svg"===i||"foreignObject"!==i&&V),null!==l&&null!==s?((e,t,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=t.length-1,h=t[0],d=t[f],p=o.length-1,m=o[0],y=o[p];for(;r<=f&&c<=p;)if(null==h)h=t[++r];else if(null==d)d=t[--f];else if(null==m)m=o[++c];else if(null==y)y=o[--p];else if(_(h,m,l))z(h,m,l),h=t[++r],m=o[++c];else if(_(d,y,l))z(d,y,l),d=t[--f],y=o[--p];else if(_(h,y,l))z(h,y,l),B(e,h.v,d.v.nextSibling),h=t[++r],y=o[--p];else if(_(d,m,l))z(d,m,l),B(e,d.v,h.v),d=t[--f],m=o[++c];else{for(u=-1,a=r;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(i=t[u],i.m!==m.m?s=W(t&&t[c],n,u):(z(i,m,l),t[u]=void 0,s=i.v),m=o[++c]):(s=W(t&&t[c],n,c),m=o[++c]),s&&B(h.v.parentNode,s,h.v)}r>f?q(e,null==o[p+1]?null:o[p+1].v,n,o,c,p):c>p&&G(t,r,f)})(o,l,t,s,n):null!==s?q(o,null,t,s,0,s.length-1):!n&&null!==l&&G(l,0,l.length-1),V&&"svg"===i&&(V=!1)},B=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),I=(e,t)=>{if(t&&!e.S&&t["s-p"]){const n=t["s-p"].push(new Promise((o=>e.S=()=>{t["s-p"].splice(n-1,1),o()})))}},J=(e,t)=>{if(e.o|=16,!(4&e.o))return I(e,e.j),$((()=>K(e,t)));e.o|=512},K=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.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`);return Q(void 0,(()=>Y(e,n,t)))},Q=(e,t)=>X(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),X=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,Y=async(e,t,n)=>{var o;const l=e.$hostElement$,s=l["s-rc"];n&&(e=>{const t=e.O,n=e.$hostElement$,o=t.o,l=((e,t)=>{var n;const o=N(t),l=i.get(o);if(e=11===e.nodeType?e:u,l)if("string"==typeof l){let s,i=H.get(e=e.head||e);if(i||H.set(e,i=new Set),!i.has(o)){{s=document.querySelector(`[sty-id="${o}"]`)||u.createElement("style"),s.innerHTML=l;const i=null!=(n=a.k)?n:S(u);if(null!=i&&s.setAttribute("nonce",i),!(1&t.o))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,n)}else if("host"in e)if(h){const t=new CSSStyleSheet;t.replaceSync(l),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=l+t.innerHTML:e.prepend(s)}else e.append(s);1&t.o&&"HEAD"!==e.nodeName&&e.insertBefore(s,null)}4&t.o&&(s.innerHTML+=r),i&&i.add(o)}}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&o&&2&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(e);Z(e,t,l,n),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>ee(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},Z=(e,t,n,o)=>{try{t=t.render(),e.o&=-17,e.o|=2,((e,t,n=!1)=>{const o=e.$hostElement$,l=e.O,s=e.C||P(null,null),i=(e=>e&&e.m===A)(t)?t:x(null,null,t);if(E=o.tagName,n&&i.u)for(const e of Object.keys(i.u))o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(i.u[e]=o[e]);i.m=null,i.o|=4,e.C=i,i.v=s.v=o.shadowRoot||o,z(s,i,n)})(e,t,o)}catch(t){l(t,e.$hostElement$)}return null},ee=e=>{const t=e.$hostElement$,n=e.t,o=e.j;64&e.o||(e.o|=64,oe(t),ne(n,"componentDidLoad"),e.M(t),o||te()),e.S&&(e.S(),e.S=void 0),512&e.o&&b((()=>J(e,!1))),e.o&=-517},te=()=>{oe(u.documentElement),b((()=>(e=>{const t=a.ce("appload",{detail:{namespace:"analog-clock"}});return e.dispatchEvent(t),t})(c)))},ne=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){l(e)}},oe=e=>e.classList.add("hydrated"),le=(e,t,o,l)=>{const s=n(e);if(!s)throw Error(`Couldn't find host element for "${l.$}" 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/ionic-team/stencil/issues/5457).`);const i=s.P.get(t),r=s.o,c=s.t;o=D(o,l.A[t][0]),8&r&&void 0!==i||o===i||Number.isNaN(i)&&Number.isNaN(o)||(s.P.set(t,o),c&&2==(18&r)&&J(s,!1))},se=(e,t,o)=>{var l,s;const i=e.prototype;if(t.A){const r=Object.entries(null!=(l=t.A)?l:{});if(r.map((([e,[l]])=>{if(31&l||2&o&&32&l){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,e)||{};s&&(t.A[e][0]|=2048),r&&(t.A[e][0]|=4096),(1&o||!s)&&Object.defineProperty(i,e,{get(){{if(!(2048&t.A[e][0]))return((e,t)=>n(this).P.get(t))(0,e);const o=n(this),l=o?o.t:i;if(!l)return;return l[e]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,e,{set(s){const i=n(this);if(r){const n=32&l?this[e]:i.$hostElement$[e];return void 0===n&&i.P.get(e)?s=i.P.get(e):!i.P.get(e)&&n&&i.P.set(e,n),r.call(this,D(s,l)),void le(this,e,s=32&l?this[e]:i.$hostElement$[e],t)}{if(!(1&o&&4096&t.A[e][0]))return le(this,e,s,t),void(1&o&&!i.t&&i.D.then((()=>{4096&t.A[e][0]&&i.t[e]!==i.P.get(e)&&(i.t[e]=s)})));const n=()=>{const n=i.t[e];!i.P.get(e)&&n&&i.P.set(e,n),i.t[e]=D(s,l),le(this,e,i.t[e],t)};i.t?n():i.D.then((()=>n()))}}})}})),1&o){const o=new Map;i.attributeChangedCallback=function(e,l,s){a.jmp((()=>{var r;const c=o.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const n=o.t,i=null==(r=t.H)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,l,e)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);(s=(null!==s||"boolean"!=typeof this[c])&&s)===this[c]||u.get&&!u.set||(this[c]=s)}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.H)?s:{}),...r.filter((([e,t])=>15&t[0])).map((([e,t])=>{const n=t[1]||e;return o.set(n,e),n}))]))}}return e},ie=e=>{ne(e,"disconnectedCallback")},re=(e,o={})=>{var f;const d=[],p=o.exclude||[],m=c.customElements,y=u.head,w=y.querySelector("meta[charset]"),v=u.createElement("style"),b=[];let $,g=!0;Object.assign(a,o),a.l=new URL(o.resourcesUrl||"./",u.baseURI).href;let j=!1;if(e.map((e=>{e[1].map((o=>{const r={o:o[0],$:o[1],A:o[2],N:o[3]};4&r.o&&(j=!0),r.A=o[2];const c=r.$,u=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const o={o:0,$hostElement$:e,O:n,P:new Map};o.D=new Promise((e=>o.M=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,o)})(e=this,r),1&r.o)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${r.$}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),$&&(clearTimeout($),$=null),g?b.push(this):a.jmp((()=>(e=>{if(!(1&a.o)){const t=n(e),o=t.O,r=()=>{};if(1&t.o)(null==t?void 0:t.t)||(null==t?void 0:t.D)&&t.D.then((()=>{}));else{t.o|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){I(t,t.j=n);break}}o.A&&Object.entries(o.A).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let o;if(!(32&t.o)){if(t.o|=32,n.T){const e=(e=>{const t=e.$.replace(/-/g,"_"),n=e.T;if(!n)return;const o=s.get(n);return o?o[t]:import(`./${n}.entry.js`).then((e=>(s.set(n,e),e[t])),l)
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};o=await e,t()}else o=e;if(!o)throw Error(`Constructor for "${n.$}#${t.F}" was not found`);o.isProxied||(se(o,n,2),o.isProxied=!0);const i=()=>{};t.o|=8;try{new o(t)}catch(e){l(e)}t.o&=-9,i()}else o=e.constructor,customElements.whenDefined(e.localName).then((()=>t.o|=128));if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=N(n);if(!i.has(t)){const o=()=>{};((e,t,n)=>{let o=i.get(e);h&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,i.set(e,o)})(t,e,!!(1&n.o)),o()}}}const r=t.j,c=()=>J(t,!0);r&&r["s-rc"]?r["s-rc"].push(c):c()})(e,t,o)}r()}})(this)))}disconnectedCallback(){a.jmp((()=>(async e=>{if(!(1&a.o)){const t=n(e);(null==t?void 0:t.t)?ie(t.t):(null==t?void 0:t.D)&&t.D.then((()=>ie(t.t)))}H.has(e)&&H.delete(e),e.shadowRoot&&H.has(e.shadowRoot)&&H.delete(e.shadowRoot)})(this))),a.raf((()=>{var e;const t=n(this);(null==(e=null==t?void 0:t.C)?void 0:e.v)instanceof Node&&!t.C.v.isConnected&&delete t.C.v}))}componentOnReady(){return n(this).D}};r.T=e[0],p.includes(c)||m.get(c)||(d.push(c),m.define(c,se(u,r,1)))}))})),d.length>0&&(j&&(v.textContent+=r),v.textContent+=d.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const e=null!=(f=a.k)?f:S(u);null!=e&&v.setAttribute("nonce",e),y.insertBefore(v,w?w.nextSibling:y.firstChild)}g=!1,b.length?b.map((e=>e.connectedCallback())):a.jmp((()=>$=setTimeout(te,30)))},ce=e=>a.k=e;export{re as b,x as h,f as p,o as r,ce as s}
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-6947de4d.js');
5
+ const index = require('./index-aa5fd1e8.js');
6
6
 
7
7
  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)}";
8
8
  const AnalogClockStyle0 = analogClockCss;
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-6947de4d.js');
5
+ const index = require('./index-aa5fd1e8.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
9
- Stencil Client Patch Browser v4.23.2 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.24.0 | MIT Licensed | https://stenciljs.com
10
10
  */
11
11
  var patchBrowser = () => {
12
12
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('analog-clock.cjs.js', document.baseURI).href));
@@ -24,7 +24,7 @@ const NAMESPACE = 'analog-clock';
24
24
  const BUILD = /* analog-clock */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: true, propString: false, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: false, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: false, vdomXlink: false, watchCallback: false };
25
25
 
26
26
  /*
27
- Stencil Client Platform v4.23.2 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.24.0 | MIT Licensed | https://stenciljs.com
28
28
  */
29
29
  var __defProp = Object.defineProperty;
30
30
  var __export = (target, all) => {
@@ -206,6 +206,20 @@ var unwrapErr = (result) => {
206
206
  throw result.value;
207
207
  }
208
208
  };
209
+ var createTime = (fnName, tagName = "") => {
210
+ {
211
+ return () => {
212
+ return;
213
+ };
214
+ }
215
+ };
216
+ var uniqueTime = (key, measureText) => {
217
+ {
218
+ return () => {
219
+ return;
220
+ };
221
+ }
222
+ };
209
223
  var h = (nodeName, vnodeData, ...children) => {
210
224
  let child = null;
211
225
  let key = null;
@@ -270,6 +284,110 @@ var newVNode = (tag, text) => {
270
284
  };
271
285
  var Host = {};
272
286
  var isHost = (node) => node && node.$tag$ === Host;
287
+ var parsePropertyValue = (propValue, propType) => {
288
+ if (propValue != null && !isComplexType(propValue)) {
289
+ if (propType & 2 /* Number */) {
290
+ return parseFloat(propValue);
291
+ }
292
+ return propValue;
293
+ }
294
+ return propValue;
295
+ };
296
+ var emitEvent = (elm, name, opts) => {
297
+ const ev = plt.ce(name, opts);
298
+ elm.dispatchEvent(ev);
299
+ return ev;
300
+ };
301
+ var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
302
+ var registerStyle = (scopeId2, cssText, allowCS) => {
303
+ let style = styles.get(scopeId2);
304
+ if (supportsConstructableStylesheets && allowCS) {
305
+ style = style || new CSSStyleSheet();
306
+ if (typeof style === "string") {
307
+ style = cssText;
308
+ } else {
309
+ style.replaceSync(cssText);
310
+ }
311
+ } else {
312
+ style = cssText;
313
+ }
314
+ styles.set(scopeId2, style);
315
+ };
316
+ var addStyle = (styleContainerNode, cmpMeta, mode) => {
317
+ var _a;
318
+ const scopeId2 = getScopeId(cmpMeta);
319
+ const style = styles.get(scopeId2);
320
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
321
+ if (style) {
322
+ if (typeof style === "string") {
323
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
324
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
325
+ let styleElm;
326
+ if (!appliedStyles) {
327
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
328
+ }
329
+ if (!appliedStyles.has(scopeId2)) {
330
+ {
331
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
332
+ styleElm.innerHTML = style;
333
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
334
+ if (nonce != null) {
335
+ styleElm.setAttribute("nonce", nonce);
336
+ }
337
+ if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
338
+ if (styleContainerNode.nodeName === "HEAD") {
339
+ const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
340
+ const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
341
+ styleContainerNode.insertBefore(styleElm, referenceNode2);
342
+ } else if ("host" in styleContainerNode) {
343
+ if (supportsConstructableStylesheets) {
344
+ const stylesheet = new CSSStyleSheet();
345
+ stylesheet.replaceSync(style);
346
+ styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
347
+ } else {
348
+ const existingStyleContainer = styleContainerNode.querySelector("style");
349
+ if (existingStyleContainer) {
350
+ existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
351
+ } else {
352
+ styleContainerNode.prepend(styleElm);
353
+ }
354
+ }
355
+ } else {
356
+ styleContainerNode.append(styleElm);
357
+ }
358
+ }
359
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
360
+ styleContainerNode.insertBefore(styleElm, null);
361
+ }
362
+ }
363
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
364
+ styleElm.innerHTML += SLOT_FB_CSS;
365
+ }
366
+ if (appliedStyles) {
367
+ appliedStyles.add(scopeId2);
368
+ }
369
+ }
370
+ } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
371
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
372
+ }
373
+ }
374
+ return scopeId2;
375
+ };
376
+ var attachStyles = (hostRef) => {
377
+ const cmpMeta = hostRef.$cmpMeta$;
378
+ const elm = hostRef.$hostElement$;
379
+ const flags = cmpMeta.$flags$;
380
+ const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
381
+ const scopeId2 = addStyle(
382
+ elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
383
+ cmpMeta);
384
+ if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
385
+ elm["s-sc"] = scopeId2;
386
+ elm.classList.add(scopeId2 + "-h");
387
+ }
388
+ endAttachStyles();
389
+ };
390
+ var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
273
391
  var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
274
392
  if (oldValue !== newValue) {
275
393
  let isProp = isMemberInElement(elm, memberName);
@@ -305,7 +423,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
305
423
  elm.setAttribute(memberName, n);
306
424
  }
307
425
  }
308
- } else {
426
+ } else if (elm[memberName] !== newValue) {
309
427
  elm[memberName] = newValue;
310
428
  }
311
429
  } catch (e) {
@@ -556,8 +674,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
556
674
  }
557
675
  };
558
676
  var insertBefore = (parent, newNode, reference) => {
559
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
560
- return inserted;
677
+ {
678
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
679
+ }
561
680
  };
562
681
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
563
682
  const hostElm = hostRef.$hostElement$;
@@ -579,129 +698,18 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
579
698
  useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
580
699
  patch(oldVNode, rootVnode, isInitialLoad);
581
700
  };
582
- var createTime = (fnName, tagName = "") => {
583
- {
584
- return () => {
585
- return;
586
- };
587
- }
588
- };
589
- var uniqueTime = (key, measureText) => {
590
- {
591
- return () => {
592
- return;
593
- };
594
- }
595
- };
596
- var parsePropertyValue = (propValue, propType) => {
597
- if (propValue != null && !isComplexType(propValue)) {
598
- if (propType & 2 /* Number */) {
599
- return parseFloat(propValue);
600
- }
601
- return propValue;
602
- }
603
- return propValue;
604
- };
605
- var emitEvent = (elm, name, opts) => {
606
- const ev = plt.ce(name, opts);
607
- elm.dispatchEvent(ev);
608
- return ev;
609
- };
610
- var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
611
- var registerStyle = (scopeId2, cssText, allowCS) => {
612
- let style = styles.get(scopeId2);
613
- if (supportsConstructableStylesheets && allowCS) {
614
- style = style || new CSSStyleSheet();
615
- if (typeof style === "string") {
616
- style = cssText;
617
- } else {
618
- style.replaceSync(cssText);
619
- }
620
- } else {
621
- style = cssText;
622
- }
623
- styles.set(scopeId2, style);
624
- };
625
- var addStyle = (styleContainerNode, cmpMeta, mode) => {
626
- var _a;
627
- const scopeId2 = getScopeId(cmpMeta);
628
- const style = styles.get(scopeId2);
629
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
630
- if (style) {
631
- if (typeof style === "string") {
632
- styleContainerNode = styleContainerNode.head || styleContainerNode;
633
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
634
- let styleElm;
635
- if (!appliedStyles) {
636
- rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
637
- }
638
- if (!appliedStyles.has(scopeId2)) {
639
- {
640
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
641
- styleElm.innerHTML = style;
642
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
643
- if (nonce != null) {
644
- styleElm.setAttribute("nonce", nonce);
645
- }
646
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
647
- if (styleContainerNode.nodeName === "HEAD") {
648
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
649
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
650
- styleContainerNode.insertBefore(styleElm, referenceNode2);
651
- } else if ("host" in styleContainerNode) {
652
- if (supportsConstructableStylesheets) {
653
- const stylesheet = new CSSStyleSheet();
654
- stylesheet.replaceSync(style);
655
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
656
- } else {
657
- const existingStyleContainer = styleContainerNode.querySelector("style");
658
- if (existingStyleContainer) {
659
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
660
- } else {
661
- styleContainerNode.prepend(styleElm);
662
- }
663
- }
664
- } else {
665
- styleContainerNode.append(styleElm);
666
- }
667
- }
668
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
669
- styleContainerNode.insertBefore(styleElm, null);
670
- }
671
- }
672
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
673
- styleElm.innerHTML += SLOT_FB_CSS;
674
- }
675
- if (appliedStyles) {
676
- appliedStyles.add(scopeId2);
677
- }
678
- }
679
- } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
680
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
681
- }
682
- }
683
- return scopeId2;
684
- };
685
- var attachStyles = (hostRef) => {
686
- const cmpMeta = hostRef.$cmpMeta$;
687
- const elm = hostRef.$hostElement$;
688
- const flags = cmpMeta.$flags$;
689
- const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
690
- const scopeId2 = addStyle(
691
- elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
692
- cmpMeta);
693
- if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
694
- elm["s-sc"] = scopeId2;
695
- elm.classList.add(scopeId2 + "-h");
696
- }
697
- endAttachStyles();
698
- };
699
- var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
700
701
 
701
702
  // src/runtime/update-component.ts
702
703
  var attachToAncestor = (hostRef, ancestorComponent) => {
703
704
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
704
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
705
+ const index = ancestorComponent["s-p"].push(
706
+ new Promise(
707
+ (r) => hostRef.$onRenderResolve$ = () => {
708
+ ancestorComponent["s-p"].splice(index - 1, 1);
709
+ r();
710
+ }
711
+ )
712
+ );
705
713
  }
706
714
  };
707
715
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -874,62 +882,69 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
874
882
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
875
883
  members.map(([memberName, [memberFlags]]) => {
876
884
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
877
- if ((memberFlags & 2048 /* Getter */) === 0) {
885
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
886
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
887
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
888
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
878
889
  Object.defineProperty(prototype, memberName, {
879
890
  get() {
880
- return getValue(this, memberName);
881
- },
882
- set(newValue) {
883
- setValue(this, memberName, newValue, cmpMeta);
884
- },
885
- configurable: true,
886
- enumerable: true
887
- });
888
- } else if (flags & 1 /* isElementConstructor */ && memberFlags & 2048 /* Getter */) {
889
- {
890
- Object.defineProperty(prototype, memberName, {
891
- get() {
891
+ {
892
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
893
+ return getValue(this, memberName);
894
+ }
892
895
  const ref = getHostRef(this);
893
896
  const instance = ref ? ref.$lazyInstance$ : prototype;
894
897
  if (!instance) return;
895
898
  return instance[memberName];
896
- },
897
- configurable: true,
898
- enumerable: true
899
- });
900
- }
901
- if (memberFlags & 4096 /* Setter */) {
902
- const origSetter = Object.getOwnPropertyDescriptor(prototype, memberName).set;
903
- Object.defineProperty(prototype, memberName, {
904
- set(newValue) {
905
- const ref = getHostRef(this);
906
- if (origSetter) {
907
- const currentValue = ref.$hostElement$[memberName];
908
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
909
- ref.$instanceValues$.set(memberName, currentValue);
910
- }
911
- origSetter.apply(this, [parsePropertyValue(newValue, cmpMeta.$members$[memberName][0])]);
912
- setValue(this, memberName, ref.$hostElement$[memberName], cmpMeta);
913
- return;
899
+ }
900
+ },
901
+ configurable: true,
902
+ enumerable: true
903
+ });
904
+ }
905
+ Object.defineProperty(prototype, memberName, {
906
+ set(newValue) {
907
+ const ref = getHostRef(this);
908
+ if (origSetter) {
909
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
910
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
911
+ newValue = ref.$instanceValues$.get(memberName);
912
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
913
+ ref.$instanceValues$.set(memberName, currentValue);
914
+ }
915
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
916
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
917
+ setValue(this, memberName, newValue, cmpMeta);
918
+ return;
919
+ }
920
+ {
921
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
922
+ setValue(this, memberName, newValue, cmpMeta);
923
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
924
+ ref.$onReadyPromise$.then(() => {
925
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
926
+ ref.$lazyInstance$[memberName] = newValue;
927
+ }
928
+ });
914
929
  }
915
- if (!ref) return;
916
- const setterSetVal = () => {
917
- const currentValue = ref.$lazyInstance$[memberName];
918
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
919
- ref.$instanceValues$.set(memberName, currentValue);
920
- }
921
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, cmpMeta.$members$[memberName][0]);
922
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
923
- };
924
- if (ref.$lazyInstance$) {
925
- setterSetVal();
926
- } else {
927
- ref.$onReadyPromise$.then(() => setterSetVal());
930
+ return;
931
+ }
932
+ const setterSetVal = () => {
933
+ const currentValue = ref.$lazyInstance$[memberName];
934
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
935
+ ref.$instanceValues$.set(memberName, currentValue);
928
936
  }
937
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
938
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
939
+ };
940
+ if (ref.$lazyInstance$) {
941
+ setterSetVal();
942
+ } else {
943
+ ref.$onReadyPromise$.then(() => setterSetVal());
929
944
  }
930
- });
945
+ }
931
946
  }
932
- }
947
+ });
933
948
  }
934
949
  });
935
950
  if ((flags & 1 /* isElementConstructor */)) {
@@ -959,8 +974,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
959
974
  return;
960
975
  }
961
976
  const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
962
- if (!propDesc.get || !!propDesc.set) {
963
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
977
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
978
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
979
+ this[propName] = newValue;
964
980
  }
965
981
  });
966
982
  };
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-6947de4d.js');
5
+ const index = require('./index-aa5fd1e8.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
@@ -4,7 +4,7 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "4.23.2",
7
+ "version": "4.24.0",
8
8
  "typescriptVersion": "5.5.4"
9
9
  },
10
10
  "collections": [],
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-75a41fc0.js';
1
+ import { r as registerInstance, h } from './index-19cb5a41.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
  const AnalogClockStyle0 = analogClockCss;
@@ -1,9 +1,9 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-75a41fc0.js';
2
- export { s as setNonce } from './index-75a41fc0.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-19cb5a41.js';
2
+ export { s as setNonce } from './index-19cb5a41.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v4.23.2 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.24.0 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
  var patchBrowser = () => {
9
9
  const importMeta = import.meta.url;
@@ -2,7 +2,7 @@ const NAMESPACE = 'analog-clock';
2
2
  const BUILD = /* analog-clock */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: true, propString: false, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: false, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: false, vdomXlink: false, watchCallback: false };
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.23.2 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.24.0 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  var __defProp = Object.defineProperty;
8
8
  var __export = (target, all) => {
@@ -184,6 +184,20 @@ var unwrapErr = (result) => {
184
184
  throw result.value;
185
185
  }
186
186
  };
187
+ var createTime = (fnName, tagName = "") => {
188
+ {
189
+ return () => {
190
+ return;
191
+ };
192
+ }
193
+ };
194
+ var uniqueTime = (key, measureText) => {
195
+ {
196
+ return () => {
197
+ return;
198
+ };
199
+ }
200
+ };
187
201
  var h = (nodeName, vnodeData, ...children) => {
188
202
  let child = null;
189
203
  let key = null;
@@ -248,6 +262,110 @@ var newVNode = (tag, text) => {
248
262
  };
249
263
  var Host = {};
250
264
  var isHost = (node) => node && node.$tag$ === Host;
265
+ var parsePropertyValue = (propValue, propType) => {
266
+ if (propValue != null && !isComplexType(propValue)) {
267
+ if (propType & 2 /* Number */) {
268
+ return parseFloat(propValue);
269
+ }
270
+ return propValue;
271
+ }
272
+ return propValue;
273
+ };
274
+ var emitEvent = (elm, name, opts) => {
275
+ const ev = plt.ce(name, opts);
276
+ elm.dispatchEvent(ev);
277
+ return ev;
278
+ };
279
+ var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
280
+ var registerStyle = (scopeId2, cssText, allowCS) => {
281
+ let style = styles.get(scopeId2);
282
+ if (supportsConstructableStylesheets && allowCS) {
283
+ style = style || new CSSStyleSheet();
284
+ if (typeof style === "string") {
285
+ style = cssText;
286
+ } else {
287
+ style.replaceSync(cssText);
288
+ }
289
+ } else {
290
+ style = cssText;
291
+ }
292
+ styles.set(scopeId2, style);
293
+ };
294
+ var addStyle = (styleContainerNode, cmpMeta, mode) => {
295
+ var _a;
296
+ const scopeId2 = getScopeId(cmpMeta);
297
+ const style = styles.get(scopeId2);
298
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
299
+ if (style) {
300
+ if (typeof style === "string") {
301
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
302
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
303
+ let styleElm;
304
+ if (!appliedStyles) {
305
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
306
+ }
307
+ if (!appliedStyles.has(scopeId2)) {
308
+ {
309
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
310
+ styleElm.innerHTML = style;
311
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
312
+ if (nonce != null) {
313
+ styleElm.setAttribute("nonce", nonce);
314
+ }
315
+ if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
316
+ if (styleContainerNode.nodeName === "HEAD") {
317
+ const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
318
+ const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
319
+ styleContainerNode.insertBefore(styleElm, referenceNode2);
320
+ } else if ("host" in styleContainerNode) {
321
+ if (supportsConstructableStylesheets) {
322
+ const stylesheet = new CSSStyleSheet();
323
+ stylesheet.replaceSync(style);
324
+ styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
325
+ } else {
326
+ const existingStyleContainer = styleContainerNode.querySelector("style");
327
+ if (existingStyleContainer) {
328
+ existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
329
+ } else {
330
+ styleContainerNode.prepend(styleElm);
331
+ }
332
+ }
333
+ } else {
334
+ styleContainerNode.append(styleElm);
335
+ }
336
+ }
337
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
338
+ styleContainerNode.insertBefore(styleElm, null);
339
+ }
340
+ }
341
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
342
+ styleElm.innerHTML += SLOT_FB_CSS;
343
+ }
344
+ if (appliedStyles) {
345
+ appliedStyles.add(scopeId2);
346
+ }
347
+ }
348
+ } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
349
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
350
+ }
351
+ }
352
+ return scopeId2;
353
+ };
354
+ var attachStyles = (hostRef) => {
355
+ const cmpMeta = hostRef.$cmpMeta$;
356
+ const elm = hostRef.$hostElement$;
357
+ const flags = cmpMeta.$flags$;
358
+ const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
359
+ const scopeId2 = addStyle(
360
+ elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
361
+ cmpMeta);
362
+ if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
363
+ elm["s-sc"] = scopeId2;
364
+ elm.classList.add(scopeId2 + "-h");
365
+ }
366
+ endAttachStyles();
367
+ };
368
+ var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
251
369
  var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
252
370
  if (oldValue !== newValue) {
253
371
  let isProp = isMemberInElement(elm, memberName);
@@ -283,7 +401,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
283
401
  elm.setAttribute(memberName, n);
284
402
  }
285
403
  }
286
- } else {
404
+ } else if (elm[memberName] !== newValue) {
287
405
  elm[memberName] = newValue;
288
406
  }
289
407
  } catch (e) {
@@ -534,8 +652,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
534
652
  }
535
653
  };
536
654
  var insertBefore = (parent, newNode, reference) => {
537
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
538
- return inserted;
655
+ {
656
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
657
+ }
539
658
  };
540
659
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
541
660
  const hostElm = hostRef.$hostElement$;
@@ -557,129 +676,18 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
557
676
  useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
558
677
  patch(oldVNode, rootVnode, isInitialLoad);
559
678
  };
560
- var createTime = (fnName, tagName = "") => {
561
- {
562
- return () => {
563
- return;
564
- };
565
- }
566
- };
567
- var uniqueTime = (key, measureText) => {
568
- {
569
- return () => {
570
- return;
571
- };
572
- }
573
- };
574
- var parsePropertyValue = (propValue, propType) => {
575
- if (propValue != null && !isComplexType(propValue)) {
576
- if (propType & 2 /* Number */) {
577
- return parseFloat(propValue);
578
- }
579
- return propValue;
580
- }
581
- return propValue;
582
- };
583
- var emitEvent = (elm, name, opts) => {
584
- const ev = plt.ce(name, opts);
585
- elm.dispatchEvent(ev);
586
- return ev;
587
- };
588
- var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
589
- var registerStyle = (scopeId2, cssText, allowCS) => {
590
- let style = styles.get(scopeId2);
591
- if (supportsConstructableStylesheets && allowCS) {
592
- style = style || new CSSStyleSheet();
593
- if (typeof style === "string") {
594
- style = cssText;
595
- } else {
596
- style.replaceSync(cssText);
597
- }
598
- } else {
599
- style = cssText;
600
- }
601
- styles.set(scopeId2, style);
602
- };
603
- var addStyle = (styleContainerNode, cmpMeta, mode) => {
604
- var _a;
605
- const scopeId2 = getScopeId(cmpMeta);
606
- const style = styles.get(scopeId2);
607
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
608
- if (style) {
609
- if (typeof style === "string") {
610
- styleContainerNode = styleContainerNode.head || styleContainerNode;
611
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
612
- let styleElm;
613
- if (!appliedStyles) {
614
- rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
615
- }
616
- if (!appliedStyles.has(scopeId2)) {
617
- {
618
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
619
- styleElm.innerHTML = style;
620
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
621
- if (nonce != null) {
622
- styleElm.setAttribute("nonce", nonce);
623
- }
624
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
625
- if (styleContainerNode.nodeName === "HEAD") {
626
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
627
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
628
- styleContainerNode.insertBefore(styleElm, referenceNode2);
629
- } else if ("host" in styleContainerNode) {
630
- if (supportsConstructableStylesheets) {
631
- const stylesheet = new CSSStyleSheet();
632
- stylesheet.replaceSync(style);
633
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
634
- } else {
635
- const existingStyleContainer = styleContainerNode.querySelector("style");
636
- if (existingStyleContainer) {
637
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
638
- } else {
639
- styleContainerNode.prepend(styleElm);
640
- }
641
- }
642
- } else {
643
- styleContainerNode.append(styleElm);
644
- }
645
- }
646
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
647
- styleContainerNode.insertBefore(styleElm, null);
648
- }
649
- }
650
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
651
- styleElm.innerHTML += SLOT_FB_CSS;
652
- }
653
- if (appliedStyles) {
654
- appliedStyles.add(scopeId2);
655
- }
656
- }
657
- } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
658
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
659
- }
660
- }
661
- return scopeId2;
662
- };
663
- var attachStyles = (hostRef) => {
664
- const cmpMeta = hostRef.$cmpMeta$;
665
- const elm = hostRef.$hostElement$;
666
- const flags = cmpMeta.$flags$;
667
- const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
668
- const scopeId2 = addStyle(
669
- elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
670
- cmpMeta);
671
- if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
672
- elm["s-sc"] = scopeId2;
673
- elm.classList.add(scopeId2 + "-h");
674
- }
675
- endAttachStyles();
676
- };
677
- var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
678
679
 
679
680
  // src/runtime/update-component.ts
680
681
  var attachToAncestor = (hostRef, ancestorComponent) => {
681
682
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
682
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
683
+ const index = ancestorComponent["s-p"].push(
684
+ new Promise(
685
+ (r) => hostRef.$onRenderResolve$ = () => {
686
+ ancestorComponent["s-p"].splice(index - 1, 1);
687
+ r();
688
+ }
689
+ )
690
+ );
683
691
  }
684
692
  };
685
693
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -852,62 +860,69 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
852
860
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
853
861
  members.map(([memberName, [memberFlags]]) => {
854
862
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
855
- if ((memberFlags & 2048 /* Getter */) === 0) {
863
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
864
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
865
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
866
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
856
867
  Object.defineProperty(prototype, memberName, {
857
868
  get() {
858
- return getValue(this, memberName);
859
- },
860
- set(newValue) {
861
- setValue(this, memberName, newValue, cmpMeta);
862
- },
863
- configurable: true,
864
- enumerable: true
865
- });
866
- } else if (flags & 1 /* isElementConstructor */ && memberFlags & 2048 /* Getter */) {
867
- {
868
- Object.defineProperty(prototype, memberName, {
869
- get() {
869
+ {
870
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
871
+ return getValue(this, memberName);
872
+ }
870
873
  const ref = getHostRef(this);
871
874
  const instance = ref ? ref.$lazyInstance$ : prototype;
872
875
  if (!instance) return;
873
876
  return instance[memberName];
874
- },
875
- configurable: true,
876
- enumerable: true
877
- });
878
- }
879
- if (memberFlags & 4096 /* Setter */) {
880
- const origSetter = Object.getOwnPropertyDescriptor(prototype, memberName).set;
881
- Object.defineProperty(prototype, memberName, {
882
- set(newValue) {
883
- const ref = getHostRef(this);
884
- if (origSetter) {
885
- const currentValue = ref.$hostElement$[memberName];
886
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
887
- ref.$instanceValues$.set(memberName, currentValue);
888
- }
889
- origSetter.apply(this, [parsePropertyValue(newValue, cmpMeta.$members$[memberName][0])]);
890
- setValue(this, memberName, ref.$hostElement$[memberName], cmpMeta);
891
- return;
877
+ }
878
+ },
879
+ configurable: true,
880
+ enumerable: true
881
+ });
882
+ }
883
+ Object.defineProperty(prototype, memberName, {
884
+ set(newValue) {
885
+ const ref = getHostRef(this);
886
+ if (origSetter) {
887
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
888
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
889
+ newValue = ref.$instanceValues$.get(memberName);
890
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
891
+ ref.$instanceValues$.set(memberName, currentValue);
892
+ }
893
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
894
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
895
+ setValue(this, memberName, newValue, cmpMeta);
896
+ return;
897
+ }
898
+ {
899
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
900
+ setValue(this, memberName, newValue, cmpMeta);
901
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
902
+ ref.$onReadyPromise$.then(() => {
903
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
904
+ ref.$lazyInstance$[memberName] = newValue;
905
+ }
906
+ });
892
907
  }
893
- if (!ref) return;
894
- const setterSetVal = () => {
895
- const currentValue = ref.$lazyInstance$[memberName];
896
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
897
- ref.$instanceValues$.set(memberName, currentValue);
898
- }
899
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, cmpMeta.$members$[memberName][0]);
900
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
901
- };
902
- if (ref.$lazyInstance$) {
903
- setterSetVal();
904
- } else {
905
- ref.$onReadyPromise$.then(() => setterSetVal());
908
+ return;
909
+ }
910
+ const setterSetVal = () => {
911
+ const currentValue = ref.$lazyInstance$[memberName];
912
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
913
+ ref.$instanceValues$.set(memberName, currentValue);
906
914
  }
915
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
916
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
917
+ };
918
+ if (ref.$lazyInstance$) {
919
+ setterSetVal();
920
+ } else {
921
+ ref.$onReadyPromise$.then(() => setterSetVal());
907
922
  }
908
- });
923
+ }
909
924
  }
910
- }
925
+ });
911
926
  }
912
927
  });
913
928
  if ((flags & 1 /* isElementConstructor */)) {
@@ -937,8 +952,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
937
952
  return;
938
953
  }
939
954
  const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
940
- if (!propDesc.get || !!propDesc.set) {
941
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
955
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
956
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
957
+ this[propName] = newValue;
942
958
  }
943
959
  });
944
960
  };
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-75a41fc0.js';
2
- export { s as setNonce } from './index-75a41fc0.js';
1
+ import { b as bootstrapLazy } from './index-19cb5a41.js';
2
+ export { s as setNonce } from './index-19cb5a41.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "analog-clock-components",
3
- "version": "0.1.554",
3
+ "version": "0.1.556",
4
4
  "description": "Stencil Component Starter",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -25,11 +25,11 @@
25
25
  "format": "prettier --write src"
26
26
  },
27
27
  "dependencies": {
28
- "@stencil/core": "4.23.2"
28
+ "@stencil/core": "4.24.0"
29
29
  },
30
30
  "license": "MIT",
31
31
  "devDependencies": {
32
- "cspell": "8.17.1",
32
+ "cspell": "8.17.2",
33
33
  "eslint": "9.18.0",
34
34
  "prettier": "3.4.2",
35
35
  "typescript": "5.7.3"
@@ -1,2 +0,0 @@
1
- var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),o=(e,n)=>{t.set(n.t=e,n)},l=(e,t)=>(0,console.error)(e,t),s=new Map,i=new Map,r="slot-fb{display:contents}slot-fb[hidden]{display:none}",c="undefined"!=typeof window?window:{},u=c.document||{head:{}},a={o:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)},f=e=>Promise.resolve(e),h=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),d=!1,p=[],m=[],y=(e,t)=>n=>{e.push(n),d||(d=!0,t&&4&a.o?v(b):a.raf(b))},w=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){l(e)}e.length=0},b=()=>{w(p),w(m),(d=p.length>0)&&a.raf(b)},v=e=>f().then(e),$=y(m,!0),g=e=>"object"==(e=typeof e)||"function"===e;function S(e){var t,n,o;return null!=(o=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>O,map:()=>k,ok:()=>j,unwrap:()=>C,unwrapErr:()=>M});var j=e=>({isOk:!0,isErr:!1,value:e}),O=e=>({isOk:!1,isErr:!0,value:e});function k(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>j(e))):j(n)}if(e.isErr)return O(e.value);throw"should never get here"}var E,C=e=>{if(e.isOk)return e.value;throw e.value},M=e=>{if(e.isErr)return e.value;throw e.value},x=(e,t,...n)=>{let o=null,l=null,s=!1,i=!1;const r=[],c=t=>{for(let n=0;n<t.length;n++)o=t[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof e&&!g(o))&&(o+=""),s&&i?r[r.length-1].i+=o:r.push(s?P(null,o):o),i=s)};if(c(n),t){t.key&&(l=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=P(e,null);return u.u=t,r.length>0&&(u.h=r),u.p=l,u},P=(e,t)=>({o:0,m:e,i:t,v:null,h:null,u:null,p:null}),A={},D=(e,t,n,o,l,s)=>{if(n!==o){let i=((e,t)=>t in e)(e,t);if(t.toLowerCase(),"class"===t){const t=e.classList,l=N(n);let s=N(o);e["s-si"]?(s.push(e["s-si"]),l.forEach((t=>{t.startsWith(e["s-si"])&&s.push(t)})),s=[...new Set(s)],t.add(...s),delete e["s-si"]):(t.remove(...l.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!l.includes(e)))))}else if("key"===t);else{const r=g(o);if((i||r&&null!==o)&&!l)try{if(e.tagName.includes("-"))e[t]=o;else{const l=null==o?"":o;"list"===t?i=!1:null!=n&&e[t]==l||("function"==typeof e.__lookupSetter__(t)?e[t]=l:e.setAttribute(t,l))}}catch(e){}null==o||!1===o?!1===o&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&s||l)&&!r&&e.setAttribute(t,o=!0===o?"":o)}}},H=/\s/,N=e=>("object"==typeof e&&"baseVal"in e&&(e=e.baseVal),e?e.split(H):[]),T=(e,t,n)=>{const o=11===t.v.nodeType&&t.v.host?t.v.host:t.v,l=e&&e.u||{},s=t.u||{};for(const e of F(Object.keys(l)))e in s||D(o,e,l[e],void 0,n,t.o);for(const e of F(Object.keys(s)))D(o,e,l[e],s[e],n,t.o)};function F(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var L=!1,R=(e,t,n)=>{const o=t.h[n];let l,s,i=0;if(L||(L="svg"===o.m),l=o.v=u.createElementNS(L?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.m),L&&"foreignObject"===o.m&&(L=!1),T(null,o,L),o.h)for(i=0;i<o.h.length;++i)s=R(e,o,i),s&&l.appendChild(s);return"svg"===o.m?L=!1:"foreignObject"===l.tagName&&(L=!0),l["s-hn"]=E,l},U=(e,t,n,o,l,s)=>{let i,r=e;for(r.shadowRoot&&r.tagName===E&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=R(null,n,l),i&&(o[l].v=i,G(r,i,t)))},V=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.v;e&&e.remove()}}},W=(e,t,n=!1)=>e.m===t.m&&(n?(n&&!e.p&&t.p&&(e.p=t.p),!0):e.p===t.p),q=(e,t,n=!1)=>{const o=t.v=e.v,l=e.h,s=t.h,i=t.m;T(e,t,L="svg"===i||"foreignObject"!==i&&L),null!==l&&null!==s?((e,t,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=t.length-1,h=t[0],d=t[f],p=o.length-1,m=o[0],y=o[p];for(;r<=f&&c<=p;)if(null==h)h=t[++r];else if(null==d)d=t[--f];else if(null==m)m=o[++c];else if(null==y)y=o[--p];else if(W(h,m,l))q(h,m,l),h=t[++r],m=o[++c];else if(W(d,y,l))q(d,y,l),d=t[--f],y=o[--p];else if(W(h,y,l))q(h,y,l),G(e,h.v,d.v.nextSibling),h=t[++r],y=o[--p];else if(W(d,m,l))q(d,m,l),G(e,d.v,h.v),d=t[--f],m=o[++c];else{for(u=-1,a=r;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(i=t[u],i.m!==m.m?s=R(t&&t[c],n,u):(q(i,m,l),t[u]=void 0,s=i.v),m=o[++c]):(s=R(t&&t[c],n,c),m=o[++c]),s&&G(h.v.parentNode,s,h.v)}r>f?U(e,null==o[p+1]?null:o[p+1].v,n,o,c,p):c>p&&V(t,r,f)})(o,l,t,s,n):null!==s?U(o,null,t,s,0,s.length-1):!n&&null!==l&&V(l,0,l.length-1),L&&"svg"===i&&(L=!1)},G=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),_=(e,t)=>null==e||g(e)?e:2&t?parseFloat(e):e,z=new WeakMap,B=e=>"sc-"+e.$,I=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},J=(e,t)=>{if(e.o|=16,!(4&e.o))return I(e,e.j),$((()=>K(e,t)));e.o|=512},K=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.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`);return Q(void 0,(()=>Y(e,n,t)))},Q=(e,t)=>X(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),X=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,Y=async(e,t,n)=>{var o;const l=e.$hostElement$,s=l["s-rc"];n&&(e=>{const t=e.O,n=e.$hostElement$,o=t.o,l=((e,t)=>{var n;const o=B(t),l=i.get(o);if(e=11===e.nodeType?e:u,l)if("string"==typeof l){let s,i=z.get(e=e.head||e);if(i||z.set(e,i=new Set),!i.has(o)){{s=document.querySelector(`[sty-id="${o}"]`)||u.createElement("style"),s.innerHTML=l;const i=null!=(n=a.k)?n:S(u);if(null!=i&&s.setAttribute("nonce",i),!(1&t.o))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,n)}else if("host"in e)if(h){const t=new CSSStyleSheet;t.replaceSync(l),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=l+t.innerHTML:e.prepend(s)}else e.append(s);1&t.o&&"HEAD"!==e.nodeName&&e.insertBefore(s,null)}4&t.o&&(s.innerHTML+=r),i&&i.add(o)}}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&o&&2&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(e);Z(e,t,l,n),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>ee(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},Z=(e,t,n,o)=>{try{t=t.render(),e.o&=-17,e.o|=2,((e,t,n=!1)=>{const o=e.$hostElement$,l=e.O,s=e.C||P(null,null),i=(e=>e&&e.m===A)(t)?t:x(null,null,t);if(E=o.tagName,n&&i.u)for(const e of Object.keys(i.u))o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(i.u[e]=o[e]);i.m=null,i.o|=4,e.C=i,i.v=s.v=o.shadowRoot||o,q(s,i,n)})(e,t,o)}catch(t){l(t,e.$hostElement$)}return null},ee=e=>{const t=e.$hostElement$,n=e.t,o=e.j;64&e.o||(e.o|=64,oe(t),ne(n,"componentDidLoad"),e.M(t),o||te()),e.S&&(e.S(),e.S=void 0),512&e.o&&v((()=>J(e,!1))),e.o&=-517},te=()=>{oe(u.documentElement),v((()=>(e=>{const t=a.ce("appload",{detail:{namespace:"analog-clock"}});return e.dispatchEvent(t),t})(c)))},ne=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){l(e)}},oe=e=>e.classList.add("hydrated"),le=(e,t,o,l)=>{const s=n(e);if(!s)throw Error(`Couldn't find host element for "${l.$}" 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/ionic-team/stencil/issues/5457).`);const i=s.P.get(t),r=s.o,c=s.t;o=_(o,l.A[t][0]),8&r&&void 0!==i||o===i||Number.isNaN(i)&&Number.isNaN(o)||(s.P.set(t,o),c&&2==(18&r)&&J(s,!1))},se=(e,t,o)=>{var l,s;const i=e.prototype;if(t.A){const r=Object.entries(null!=(l=t.A)?l:{});if(r.map((([e,[l]])=>{if(31&l||2&o&&32&l)if(2048&l){if(1&o&&2048&l&&(Object.defineProperty(i,e,{get(){const t=n(this),o=t?t.t:i;if(o)return o[e]},configurable:!0,enumerable:!0}),4096&l)){const o=Object.getOwnPropertyDescriptor(i,e).set;Object.defineProperty(i,e,{set(l){const s=n(this);if(o){const n=s.$hostElement$[e];return!s.P.get(e)&&n&&s.P.set(e,n),o.call(this,_(l,t.A[e][0])),void le(this,e,s.$hostElement$[e],t)}if(!s)return;const i=()=>{const n=s.t[e];!s.P.get(e)&&n&&s.P.set(e,n),s.t[e]=_(l,t.A[e][0]),le(this,e,s.t[e],t)};s.t?i():s.D.then((()=>i()))}})}}else Object.defineProperty(i,e,{get(){return((e,t)=>n(this).P.get(t))(0,e)},set(n){le(this,e,n,t)},configurable:!0,enumerable:!0})})),1&o){const o=new Map;i.attributeChangedCallback=function(e,l,s){a.jmp((()=>{var r;const c=o.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const n=o.t,i=null==(r=t.H)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,l,e)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);u.get&&!u.set||(this[c]=(null!==s||"boolean"!=typeof this[c])&&s)}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.H)?s:{}),...r.filter((([e,t])=>15&t[0])).map((([e,t])=>{const n=t[1]||e;return o.set(n,e),n}))]))}}return e},ie=e=>{ne(e,"disconnectedCallback")},re=(e,o={})=>{var f;const d=[],p=o.exclude||[],m=c.customElements,y=u.head,w=y.querySelector("meta[charset]"),b=u.createElement("style"),v=[];let $,g=!0;Object.assign(a,o),a.l=new URL(o.resourcesUrl||"./",u.baseURI).href;let j=!1;if(e.map((e=>{e[1].map((o=>{const r={o:o[0],$:o[1],A:o[2],N:o[3]};4&r.o&&(j=!0),r.A=o[2];const c=r.$,u=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const o={o:0,$hostElement$:e,O:n,P:new Map};o.D=new Promise((e=>o.M=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,o)})(e=this,r),1&r.o)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${r.$}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),$&&(clearTimeout($),$=null),g?v.push(this):a.jmp((()=>(e=>{if(!(1&a.o)){const t=n(e),o=t.O,r=()=>{};if(1&t.o)(null==t?void 0:t.t)||(null==t?void 0:t.D)&&t.D.then((()=>{}));else{t.o|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){I(t,t.j=n);break}}o.A&&Object.entries(o.A).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let o;if(!(32&t.o)){if(t.o|=32,n.T){const e=(e=>{const t=e.$.replace(/-/g,"_"),n=e.T;if(!n)return;const o=s.get(n);return o?o[t]:import(`./${n}.entry.js`).then((e=>(s.set(n,e),e[t])),l)
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};o=await e,t()}else o=e;if(!o)throw Error(`Constructor for "${n.$}#${t.F}" was not found`);o.isProxied||(se(o,n,2),o.isProxied=!0);const i=()=>{};t.o|=8;try{new o(t)}catch(e){l(e)}t.o&=-9,i()}else o=e.constructor,customElements.whenDefined(e.localName).then((()=>t.o|=128));if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=B(n);if(!i.has(t)){const o=()=>{};((e,t,n)=>{let o=i.get(e);h&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,i.set(e,o)})(t,e,!!(1&n.o)),o()}}}const r=t.j,c=()=>J(t,!0);r&&r["s-rc"]?r["s-rc"].push(c):c()})(e,t,o)}r()}})(this)))}disconnectedCallback(){a.jmp((()=>(async e=>{if(!(1&a.o)){const t=n(e);(null==t?void 0:t.t)?ie(t.t):(null==t?void 0:t.D)&&t.D.then((()=>ie(t.t)))}z.has(e)&&z.delete(e),e.shadowRoot&&z.has(e.shadowRoot)&&z.delete(e.shadowRoot)})(this))),a.raf((()=>{var e;const t=n(this);(null==(e=null==t?void 0:t.C)?void 0:e.v)instanceof Node&&!t.C.v.isConnected&&delete t.C.v}))}componentOnReady(){return n(this).D}};r.T=e[0],p.includes(c)||m.get(c)||(d.push(c),m.define(c,se(u,r,1)))}))})),d.length>0&&(j&&(b.textContent+=r),b.textContent+=d.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",b.innerHTML.length)){b.setAttribute("data-styles","");const e=null!=(f=a.k)?f:S(u);null!=e&&b.setAttribute("nonce",e),y.insertBefore(b,w?w.nextSibling:y.firstChild)}g=!1,v.length?v.map((e=>e.connectedCallback())):a.jmp((()=>$=setTimeout(te,30)))},ce=e=>a.k=e;export{re as b,x as h,f as p,o as r,ce as s}