analog-clock-components 0.1.550 → 0.1.552

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 e,b as o}from"./p-b4c31ef1.js";export{s as setNonce}from"./p-b4c31ef1.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-b3898573",[[1,"analog-clock",{size:[2],timeZone:[2,"time-zone"],time:[32]}]]]],e))));
1
+ import{p as e,b as o}from"./p-8b7d9143.js";export{s as setNonce}from"./p-8b7d9143.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-98291aff",[[1,"analog-clock",{size:[2],timeZone:[2,"time-zone"],time:[32]}]]]],e))));
@@ -0,0 +1,2 @@
1
+ var e=Object.defineProperty,t={},n=new WeakMap,o=e=>n.get(e),l=(e,t)=>{n.set(t.t=e,t)},s=(e,t)=>(0,console.error)(e,t),i=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={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)},h=e=>Promise.resolve(e),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),p=!1,m=[],y=[],w=(e,t)=>n=>{e.push(n),p||(p=!0,t&&4&f.o?v($):f.raf($))},b=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},$=()=>{b(m),b(y),(p=m.length>0)&&f.raf($)},v=e=>h().then(e),g=w(y,!0),S=e=>"object"==(e=typeof e)||"function"===e;function j(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:()=>k,map:()=>E,ok:()=>O,unwrap:()=>M,unwrapErr:()=>x});var O=e=>({isOk:!0,isErr:!1,value:e}),k=e=>({isOk:!1,isErr:!0,value:e});function E(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>O(e))):O(n)}if(e.isErr)return k(e.value);throw"should never get here"}var C,M=e=>{if(e.isOk)return e.value;throw e.value},x=e=>{if(e.isErr)return e.value;throw e.value},P=(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&&!S(o))&&(o+=""),s&&i?r[r.length-1].i+=o:r.push(s?A(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=A(e,null);return u.u=t,r.length>0&&(u.h=r),u.p=l,u},A=(e,t)=>({o:0,m:e,i:t,$:null,h:null,u:null,p:null}),D={},H=(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=F(n);let s=F(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=S(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)}}},T=/\s/,F=e=>("object"==typeof e&&"baseVal"in e&&(e=e.baseVal),e?e.split(T):[]),L=(e,n,o)=>{const l=11===n.$.nodeType&&n.$.host?n.$.host:n.$,s=e&&e.u||t,i=n.u||t;for(const e of N(Object.keys(s)))e in i||H(l,e,s[e],void 0,o,n.o);for(const e of N(Object.keys(i)))H(l,e,s[e],i[e],o,n.o)};function N(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var R=!1,U=(e,t,n)=>{const o=t.h[n];let l,s,i=0;if(R||(R="svg"===o.m),l=o.$=a.createElementNS(R?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.m),R&&"foreignObject"===o.m&&(R=!1),L(null,o,R),o.h)for(i=0;i<o.h.length;++i)s=U(e,o,i),s&&l.appendChild(s);return"svg"===o.m?R=!1:"foreignObject"===l.tagName&&(R=!0),l["s-hn"]=C,l},V=(e,t,n,o,l,s)=>{let i,r=e;for(r.shadowRoot&&r.tagName===C&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=U(null,n,l),i&&(o[l].$=i,_(r,i,t)))},W=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.$;e&&e.remove()}}},q=(e,t,n=!1)=>e.m===t.m&&(n?(n&&!e.p&&t.p&&(e.p=t.p),!0):e.p===t.p),G=(e,t,n=!1)=>{const o=t.$=e.$,l=e.h,s=t.h,i=t.m;L(e,t,R="svg"===i||"foreignObject"!==i&&R),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(q(h,m,l))G(h,m,l),h=t[++r],m=o[++c];else if(q(d,y,l))G(d,y,l),d=t[--f],y=o[--p];else if(q(h,y,l))G(h,y,l),_(e,h.$,d.$.nextSibling),h=t[++r],y=o[--p];else if(q(d,m,l))G(d,m,l),_(e,d.$,h.$),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=U(t&&t[c],n,u):(G(i,m,l),t[u]=void 0,s=i.$),m=o[++c]):(s=U(t&&t[c],n,c),m=o[++c]),s&&_(h.$.parentNode,s,h.$)}r>f?V(e,null==o[p+1]?null:o[p+1].$,n,o,c,p):c>p&&W(t,r,f)})(o,l,t,s,n):null!==s?V(o,null,t,s,0,s.length-1):!n&&null!==l&&W(l,0,l.length-1),R&&"svg"===i&&(R=!1)},_=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),z=(e,t)=>null==e||S(e)?e:2&t?parseFloat(e):e,B=new WeakMap,I=e=>"sc-"+e.v,J=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},K=(e,t)=>{if(e.o|=16,!(4&e.o))return J(e,e.j),g((()=>Q(e,t)));e.o|=512},Q=(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 X(void 0,(()=>Z(e,n,t)))},X=(e,t)=>Y(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),Y=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,Z=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=I(t),l=r.get(o);if(e=11===e.nodeType?e:a,l)if("string"==typeof l){let s,i=B.get(e=e.head||e);if(i||B.set(e,i=new Set),!i.has(o)){{s=document.querySelector(`[sty-id="${o}"]`)||a.createElement("style"),s.innerHTML=l;const i=null!=(n=f.k)?n:j(a);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(d){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+=c),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);ee(e,t,l,n),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>te(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},ee=(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||A(null,null),i=(e=>e&&e.m===D)(t)?t:P(null,null,t);if(C=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.$=s.$=o.shadowRoot||o,G(s,i,n)})(e,t,o)}catch(t){s(t,e.$hostElement$)}return null},te=e=>{const t=e.$hostElement$,n=e.t,o=e.j;64&e.o||(e.o|=64,le(t),oe(n,"componentDidLoad"),e.M(t),o||ne()),e.S&&(e.S(),e.S=void 0),512&e.o&&v((()=>K(e,!1))),e.o&=-517},ne=()=>{le(a.documentElement),v((()=>(e=>{const t=f.ce("appload",{detail:{namespace:"analog-clock"}});return e.dispatchEvent(t),t})(u)))},oe=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},le=e=>e.classList.add("hydrated"),se=(e,t,n,l)=>{const s=o(e);if(!s)throw Error(`Couldn't find host element for "${l.v}" 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;n=z(n,l.A[t][0]),8&r&&void 0!==i||n===i||Number.isNaN(i)&&Number.isNaN(n)||(s.P.set(t,n),c&&2==(18&r)&&K(s,!1))},ie=(e,t,n)=>{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&n&&32&l)if(2048&l){if(1&n&&2048&l&&(Object.defineProperty(i,e,{get(){const t=o(this),n=t?t.t:i;if(n)return n[e]},configurable:!0,enumerable:!0}),4096&l)){const n=Object.getOwnPropertyDescriptor(i,e).set;Object.defineProperty(i,e,{set(l){const s=o(this);if(n){const o=s.$hostElement$[e];return!s.P.get(e)&&o&&s.P.set(e,o),n.call(this,z(l,t.A[e][0])),void se(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]=z(l,t.A[e][0]),se(this,e,s.t[e],t)};s.t?i():s.D.then((()=>i()))}})}}else Object.defineProperty(i,e,{get(){return((e,t)=>o(this).P.get(t))(0,e)},set(n){se(this,e,n,t)},configurable:!0,enumerable:!0})})),1&n){const n=new Map;i.attributeChangedCallback=function(e,l,s){f.jmp((()=>{var r;const c=n.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 n=o(this),i=null==n?void 0:n.o;if(i&&!(8&i)&&128&i&&s!==l){const o=n.t,i=null==(r=t.H)?void 0:r[e];null==i||i.forEach((t=>{null!=o[t]&&o[t].call(o,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 o=t[1]||e;return n.set(o,e),o}))]))}}return e},re=e=>{oe(e,"disconnectedCallback")},ce=(e,t={})=>{var l;const h=[],p=t.exclude||[],m=u.customElements,y=a.head,w=y.querySelector("meta[charset]"),b=a.createElement("style"),$=[];let v,g=!0;Object.assign(f,t),f.l=new URL(t.resourcesUrl||"./",a.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((t=>{const l={o:t[0],v:t[1],A:t[2],T:t[3]};4&l.o&&(S=!0),l.A=t[2];const c=l.v,u=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,t)=>{const o={o:0,$hostElement$:e,O:t,P:new Map};o.D=new Promise((e=>o.M=e)),e["s-p"]=[],e["s-rc"]=[],n.set(e,o)})(e=this,l),1&l.o)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${l.v}! 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),v&&(clearTimeout(v),v=null),g?$.push(this):f.jmp((()=>(e=>{if(!(1&f.o)){const t=o(e),n=t.O,l=()=>{};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"]){J(t,t.j=n);break}}n.A&&Object.entries(n.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.F){const e=(e=>{const t=e.v.replace(/-/g,"_"),n=e.F;if(!n)return;const o=i.get(n);return o?o[t]:import(`./${n}.entry.js`).then((e=>(i.set(n,e),e[t])),s)
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.v}#${t.L}" was not found`);o.isProxied||(ie(o,n,2),o.isProxied=!0);const l=()=>{};t.o|=8;try{new o(t)}catch(e){s(e)}t.o&=-9,l()}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=I(n);if(!r.has(t)){const o=()=>{};((e,t,n)=>{let o=r.get(e);d&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,r.set(e,o)})(t,e,!!(1&n.o)),o()}}}const l=t.j,c=()=>K(t,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(e,t,n)}l()}})(this)))}disconnectedCallback(){f.jmp((()=>(async()=>{if(!(1&f.o)){const e=o(this);(null==e?void 0:e.t)?re(e.t):(null==e?void 0:e.D)&&e.D.then((()=>re(e.t)))}})()))}componentOnReady(){return o(this).D}};l.F=e[0],p.includes(c)||m.get(c)||(h.push(c),m.define(c,ie(u,l,1)))}))})),h.length>0&&(S&&(b.textContent+=c),b.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",b.innerHTML.length)){b.setAttribute("data-styles","");const e=null!=(l=f.k)?l:j(a);null!=e&&b.setAttribute("nonce",e),y.insertBefore(b,w?w.nextSibling:y.firstChild)}g=!1,$.length?$.map((e=>e.connectedCallback())):f.jmp((()=>v=setTimeout(ne,30)))},ue=e=>f.k=e;export{ce as b,P as h,h as p,l as r,ue as s}
@@ -1 +1 @@
1
- import{r as e,h as t}from"./p-b4c31ef1.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-8b7d9143.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}
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-30610aea.js');
5
+ const index = require('./index-8459c3a5.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-30610aea.js');
5
+ const index = require('./index-8459c3a5.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
9
- Stencil Client Patch Browser v4.23.0 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.23.1 | 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));
@@ -21,19 +21,28 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'analog-clock';
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, 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 };
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.0 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.23.1 | MIT Licensed | https://stenciljs.com
28
28
  */
29
29
  var __defProp = Object.defineProperty;
30
30
  var __export = (target, all) => {
31
31
  for (var name in all)
32
32
  __defProp(target, name, { get: all[name], enumerable: true });
33
33
  };
34
+
35
+ // src/utils/constants.ts
36
+ var EMPTY_OBJ = {};
37
+ var SVG_NS = "http://www.w3.org/2000/svg";
38
+ var HTML_NS = "http://www.w3.org/1999/xhtml";
39
+
40
+ // src/client/client-host-ref.ts
34
41
  var hostRefs = /* @__PURE__ */ new WeakMap();
35
42
  var getHostRef = (ref) => hostRefs.get(ref);
36
- var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
43
+ var registerInstance = (lazyInstance, hostRef) => {
44
+ hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
45
+ };
37
46
  var registerHost = (hostElement, cmpMeta) => {
38
47
  const hostRef = {
39
48
  $flags$: 0,
@@ -46,7 +55,8 @@ var registerHost = (hostElement, cmpMeta) => {
46
55
  hostElement["s-p"] = [];
47
56
  hostElement["s-rc"] = [];
48
57
  }
49
- return hostRefs.set(hostElement, hostRef);
58
+ const ref = hostRefs.set(hostElement, hostRef);
59
+ return ref;
50
60
  };
51
61
  var isMemberInElement = (elm, memberName) => memberName in elm;
52
62
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -80,6 +90,7 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
80
90
 
81
91
  // src/client/client-style.ts
82
92
  var styles = /* @__PURE__ */ new Map();
93
+ var HYDRATED_STYLE_ID = "sty-id";
83
94
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
84
95
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
85
96
  var win = typeof window !== "undefined" ? window : {};
@@ -137,14 +148,6 @@ var flush = () => {
137
148
  };
138
149
  var nextTick = (cb) => promiseResolve().then(cb);
139
150
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
140
-
141
- // src/utils/constants.ts
142
- var EMPTY_OBJ = {};
143
- var SVG_NS = "http://www.w3.org/2000/svg";
144
- var HTML_NS = "http://www.w3.org/1999/xhtml";
145
-
146
- // src/utils/helpers.ts
147
- var isDef = (v) => v != null;
148
151
  var isComplexType = (o) => {
149
152
  o = typeof o;
150
153
  return o === "object" || o === "function";
@@ -275,12 +278,19 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
275
278
  if (memberName === "class") {
276
279
  const classList = elm.classList;
277
280
  const oldClasses = parseClassList(oldValue);
278
- const newClasses = parseClassList(newValue);
279
- if (elm["s-si"] && newClasses.indexOf(elm["s-si"]) < 0) {
281
+ let newClasses = parseClassList(newValue);
282
+ if (elm["s-si"]) {
280
283
  newClasses.push(elm["s-si"]);
284
+ oldClasses.forEach((c) => {
285
+ if (c.startsWith(elm["s-si"])) newClasses.push(c);
286
+ });
287
+ newClasses = [...new Set(newClasses)];
288
+ classList.add(...newClasses);
289
+ delete elm["s-si"];
290
+ } else {
291
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
292
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
281
293
  }
282
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
283
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
284
294
  } else if (memberName === "key") ; else {
285
295
  const isComplex = isComplexType(newValue);
286
296
  if ((isProp || isComplex && newValue !== null) && !isSvg) {
@@ -318,7 +328,15 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
318
328
  }
319
329
  };
320
330
  var parseClassListRegex = /\s/;
321
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
331
+ var parseClassList = (value) => {
332
+ if (typeof value === "object" && "baseVal" in value) {
333
+ value = value.baseVal;
334
+ }
335
+ if (!value) {
336
+ return [];
337
+ }
338
+ return value.split(parseClassListRegex);
339
+ };
322
340
 
323
341
  // src/runtime/vdom/update-element.ts
324
342
  var updateElement = (oldVnode, newVnode, isSvgMode2) => {
@@ -345,13 +363,10 @@ function sortedAttrNames(attrNames) {
345
363
  attrNames
346
364
  );
347
365
  }
348
-
349
- // src/runtime/vdom/vdom-render.ts
350
- var scopeId;
351
366
  var hostTagName;
352
367
  var useNativeShadowDom = false;
353
368
  var isSvgMode = false;
354
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
369
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
355
370
  const newVNode2 = newParentVNode.$children$[childIndex];
356
371
  let i2 = 0;
357
372
  let elm;
@@ -370,11 +385,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
370
385
  {
371
386
  updateElement(null, newVNode2, isSvgMode);
372
387
  }
373
- const rootNode = elm.getRootNode();
374
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
375
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
376
- elm.classList.add(elm["s-si"] = scopeId);
377
- }
378
388
  if (newVNode2.$children$) {
379
389
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
380
390
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -510,6 +520,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
510
520
  if (!isInitialRender) {
511
521
  return leftVNode.$key$ === rightVNode.$key$;
512
522
  }
523
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
524
+ leftVNode.$key$ = rightVNode.$key$;
525
+ }
513
526
  return true;
514
527
  }
515
528
  return false;
@@ -564,9 +577,6 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
564
577
  rootVnode.$flags$ |= 4 /* isHost */;
565
578
  hostRef.$vnode$ = rootVnode;
566
579
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
567
- {
568
- scopeId = hostElm["s-sc"];
569
- }
570
580
  useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
571
581
  patch(oldVNode, rootVnode, isInitialLoad);
572
582
  };
@@ -628,7 +638,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
628
638
  }
629
639
  if (!appliedStyles.has(scopeId2)) {
630
640
  {
631
- styleElm = doc.createElement("style");
641
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
632
642
  styleElm.innerHTML = style;
633
643
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
634
644
  if (nonce != null) {
@@ -929,7 +939,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
929
939
  plt.jmp(() => {
930
940
  var _a2;
931
941
  const propName = attrNameToPropName.get(attrName);
932
- if (this.hasOwnProperty(propName)) {
942
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
933
943
  newValue = this[propName];
934
944
  delete this[propName];
935
945
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-30610aea.js');
5
+ const index = require('./index-8459c3a5.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.0",
7
+ "version": "4.23.1",
8
8
  "typescriptVersion": "5.5.4"
9
9
  },
10
10
  "collections": [],
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-ae58e5d5.js';
1
+ import { r as registerInstance, h } from './index-4bcaf2f0.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-ae58e5d5.js';
2
- export { s as setNonce } from './index-ae58e5d5.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-4bcaf2f0.js';
2
+ export { s as setNonce } from './index-4bcaf2f0.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v4.23.0 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.23.1 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
  var patchBrowser = () => {
9
9
  const importMeta = import.meta.url;
@@ -1,17 +1,26 @@
1
1
  const NAMESPACE = 'analog-clock';
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, 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 };
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.0 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.23.1 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  var __defProp = Object.defineProperty;
8
8
  var __export = (target, all) => {
9
9
  for (var name in all)
10
10
  __defProp(target, name, { get: all[name], enumerable: true });
11
11
  };
12
+
13
+ // src/utils/constants.ts
14
+ var EMPTY_OBJ = {};
15
+ var SVG_NS = "http://www.w3.org/2000/svg";
16
+ var HTML_NS = "http://www.w3.org/1999/xhtml";
17
+
18
+ // src/client/client-host-ref.ts
12
19
  var hostRefs = /* @__PURE__ */ new WeakMap();
13
20
  var getHostRef = (ref) => hostRefs.get(ref);
14
- var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
21
+ var registerInstance = (lazyInstance, hostRef) => {
22
+ hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
23
+ };
15
24
  var registerHost = (hostElement, cmpMeta) => {
16
25
  const hostRef = {
17
26
  $flags$: 0,
@@ -24,7 +33,8 @@ var registerHost = (hostElement, cmpMeta) => {
24
33
  hostElement["s-p"] = [];
25
34
  hostElement["s-rc"] = [];
26
35
  }
27
- return hostRefs.set(hostElement, hostRef);
36
+ const ref = hostRefs.set(hostElement, hostRef);
37
+ return ref;
28
38
  };
29
39
  var isMemberInElement = (elm, memberName) => memberName in elm;
30
40
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -58,6 +68,7 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
58
68
 
59
69
  // src/client/client-style.ts
60
70
  var styles = /* @__PURE__ */ new Map();
71
+ var HYDRATED_STYLE_ID = "sty-id";
61
72
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
62
73
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
63
74
  var win = typeof window !== "undefined" ? window : {};
@@ -115,14 +126,6 @@ var flush = () => {
115
126
  };
116
127
  var nextTick = (cb) => promiseResolve().then(cb);
117
128
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
118
-
119
- // src/utils/constants.ts
120
- var EMPTY_OBJ = {};
121
- var SVG_NS = "http://www.w3.org/2000/svg";
122
- var HTML_NS = "http://www.w3.org/1999/xhtml";
123
-
124
- // src/utils/helpers.ts
125
- var isDef = (v) => v != null;
126
129
  var isComplexType = (o) => {
127
130
  o = typeof o;
128
131
  return o === "object" || o === "function";
@@ -253,12 +256,19 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
253
256
  if (memberName === "class") {
254
257
  const classList = elm.classList;
255
258
  const oldClasses = parseClassList(oldValue);
256
- const newClasses = parseClassList(newValue);
257
- if (elm["s-si"] && newClasses.indexOf(elm["s-si"]) < 0) {
259
+ let newClasses = parseClassList(newValue);
260
+ if (elm["s-si"]) {
258
261
  newClasses.push(elm["s-si"]);
262
+ oldClasses.forEach((c) => {
263
+ if (c.startsWith(elm["s-si"])) newClasses.push(c);
264
+ });
265
+ newClasses = [...new Set(newClasses)];
266
+ classList.add(...newClasses);
267
+ delete elm["s-si"];
268
+ } else {
269
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
270
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
259
271
  }
260
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
261
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
262
272
  } else if (memberName === "key") ; else {
263
273
  const isComplex = isComplexType(newValue);
264
274
  if ((isProp || isComplex && newValue !== null) && !isSvg) {
@@ -296,7 +306,15 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
296
306
  }
297
307
  };
298
308
  var parseClassListRegex = /\s/;
299
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
309
+ var parseClassList = (value) => {
310
+ if (typeof value === "object" && "baseVal" in value) {
311
+ value = value.baseVal;
312
+ }
313
+ if (!value) {
314
+ return [];
315
+ }
316
+ return value.split(parseClassListRegex);
317
+ };
300
318
 
301
319
  // src/runtime/vdom/update-element.ts
302
320
  var updateElement = (oldVnode, newVnode, isSvgMode2) => {
@@ -323,13 +341,10 @@ function sortedAttrNames(attrNames) {
323
341
  attrNames
324
342
  );
325
343
  }
326
-
327
- // src/runtime/vdom/vdom-render.ts
328
- var scopeId;
329
344
  var hostTagName;
330
345
  var useNativeShadowDom = false;
331
346
  var isSvgMode = false;
332
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
347
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
333
348
  const newVNode2 = newParentVNode.$children$[childIndex];
334
349
  let i2 = 0;
335
350
  let elm;
@@ -348,11 +363,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
348
363
  {
349
364
  updateElement(null, newVNode2, isSvgMode);
350
365
  }
351
- const rootNode = elm.getRootNode();
352
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
353
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
354
- elm.classList.add(elm["s-si"] = scopeId);
355
- }
356
366
  if (newVNode2.$children$) {
357
367
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
358
368
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -488,6 +498,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
488
498
  if (!isInitialRender) {
489
499
  return leftVNode.$key$ === rightVNode.$key$;
490
500
  }
501
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
502
+ leftVNode.$key$ = rightVNode.$key$;
503
+ }
491
504
  return true;
492
505
  }
493
506
  return false;
@@ -542,9 +555,6 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
542
555
  rootVnode.$flags$ |= 4 /* isHost */;
543
556
  hostRef.$vnode$ = rootVnode;
544
557
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
545
- {
546
- scopeId = hostElm["s-sc"];
547
- }
548
558
  useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
549
559
  patch(oldVNode, rootVnode, isInitialLoad);
550
560
  };
@@ -606,7 +616,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
606
616
  }
607
617
  if (!appliedStyles.has(scopeId2)) {
608
618
  {
609
- styleElm = doc.createElement("style");
619
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
610
620
  styleElm.innerHTML = style;
611
621
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
612
622
  if (nonce != null) {
@@ -907,7 +917,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
907
917
  plt.jmp(() => {
908
918
  var _a2;
909
919
  const propName = attrNameToPropName.get(attrName);
910
- if (this.hasOwnProperty(propName)) {
920
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
911
921
  newValue = this[propName];
912
922
  delete this[propName];
913
923
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-ae58e5d5.js';
2
- export { s as setNonce } from './index-ae58e5d5.js';
1
+ import { b as bootstrapLazy } from './index-4bcaf2f0.js';
2
+ export { s as setNonce } from './index-4bcaf2f0.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.550",
3
+ "version": "0.1.552",
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.0"
28
+ "@stencil/core": "4.23.1"
29
29
  },
30
30
  "license": "MIT",
31
31
  "devDependencies": {
32
- "cspell": "8.17.0",
32
+ "cspell": "8.17.1",
33
33
  "eslint": "9.17.0",
34
34
  "prettier": "3.4.2",
35
35
  "typescript": "5.7.2"
@@ -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={},S=e=>"object"==(e=typeof e)||"function"===e;function j(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:()=>k,map:()=>E,ok:()=>O,unwrap:()=>M,unwrapErr:()=>x});var O=e=>({isOk:!0,isErr:!1,value:e}),k=e=>({isOk:!1,isErr:!0,value:e});function E(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>O(e))):O(n)}if(e.isErr)return k(e.value);throw"should never get here"}var C,M=e=>{if(e.isOk)return e.value;throw e.value},x=e=>{if(e.isErr)return e.value;throw e.value},P=(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&&!S(o))&&(o+=""),s&&i?r[r.length-1].i+=o:r.push(s?A(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=A(e,null);return u.u=t,r.length>0&&(u.h=r),u.p=l,u},A=(e,t)=>({o:0,m:e,i:t,v:null,h:null,u:null,p:null}),D={},H=(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=F(n),s=F(o);e["s-si"]&&s.indexOf(e["s-si"])<0&&s.push(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=S(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)}}},T=/\s/,F=e=>e?e.split(T):[],L=(e,t,n)=>{const o=11===t.v.nodeType&&t.v.host?t.v.host:t.v,l=e&&e.u||g,s=t.u||g;for(const e of N(Object.keys(l)))e in s||H(o,e,l[e],void 0,n,t.o);for(const e of N(Object.keys(s)))H(o,e,l[e],s[e],n,t.o)};function N(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var R=!1,U=(e,t,n)=>{const o=t.h[n];let l,s,i=0;if(R||(R="svg"===o.m),l=o.v=u.createElementNS(R?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.m),R&&"foreignObject"===o.m&&(R=!1),L(null,o,R),l.getRootNode().querySelector("body"),o.h)for(i=0;i<o.h.length;++i)s=U(e,o,i),s&&l.appendChild(s);return"svg"===o.m?R=!1:"foreignObject"===l.tagName&&(R=!0),l["s-hn"]=C,l},W=(e,t,n,o,l,s)=>{let i,r=e;for(r.shadowRoot&&r.tagName===C&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=U(null,n,l),i&&(o[l].v=i,_(r,i,t)))},q=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.v;e&&e.remove()}}},G=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),V=(e,t,n=!1)=>{const o=t.v=e.v,l=e.h,s=t.h,i=t.m;L(e,t,R="svg"===i||"foreignObject"!==i&&R),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(G(h,m,l))V(h,m,l),h=t[++r],m=o[++c];else if(G(d,y,l))V(d,y,l),d=t[--f],y=o[--p];else if(G(h,y,l))V(h,y,l),_(e,h.v,d.v.nextSibling),h=t[++r],y=o[--p];else if(G(d,m,l))V(d,m,l),_(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=U(t&&t[c],n,u):(V(i,m,l),t[u]=void 0,s=i.v),m=o[++c]):(s=U(t&&t[c],n,c),m=o[++c]),s&&_(h.v.parentNode,s,h.v)}r>f?W(e,null==o[p+1]?null:o[p+1].v,n,o,c,p):c>p&&q(t,r,f)})(o,l,t,s,n):null!==s?W(o,null,t,s,0,s.length-1):!n&&null!==l&&q(l,0,l.length-1),R&&"svg"===i&&(R=!1)},_=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),z=(e,t)=>null==e||S(e)?e:2&t?parseFloat(e):e,B=new WeakMap,I=e=>"sc-"+e.$,J=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},K=(e,t)=>{if(e.o|=16,!(4&e.o))return J(e,e.j),$((()=>Q(e,t)));e.o|=512},Q=(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 X(void 0,(()=>Z(e,n,t)))},X=(e,t)=>Y(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),Y=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,Z=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=I(t),l=i.get(o);if(e=11===e.nodeType?e:u,l)if("string"==typeof l){let s,i=B.get(e=e.head||e);if(i||B.set(e,i=new Set),!i.has(o)){{s=u.createElement("style"),s.innerHTML=l;const o=null!=(n=a.k)?n:j(u);if(null!=o&&s.setAttribute("nonce",o),!(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);ee(e,t,l,n),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>te(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},ee=(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||A(null,null),i=(e=>e&&e.m===D)(t)?t:P(null,null,t);if(C=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,V(s,i,n)})(e,t,o)}catch(t){l(t,e.$hostElement$)}return null},te=e=>{const t=e.$hostElement$,n=e.t,o=e.j;64&e.o||(e.o|=64,le(t),oe(n,"componentDidLoad"),e.M(t),o||ne()),e.S&&(e.S(),e.S=void 0),512&e.o&&v((()=>K(e,!1))),e.o&=-517},ne=()=>{le(u.documentElement),v((()=>(e=>{const t=a.ce("appload",{detail:{namespace:"analog-clock"}});return e.dispatchEvent(t),t})(c)))},oe=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){l(e)}},le=e=>e.classList.add("hydrated"),se=(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=z(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)&&K(s,!1))},ie=(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,z(l,t.A[e][0])),void se(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]=z(l,t.A[e][0]),se(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){se(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},re=e=>{oe(e,"disconnectedCallback")},ce=(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 S=!1;if(e.map((e=>{e[1].map((o=>{const r={o:o[0],$:o[1],A:o[2],T:o[3]};4&r.o&&(S=!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"]){J(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.F){const e=(e=>{const t=e.$.replace(/-/g,"_"),n=e.F;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.L}" was not found`);o.isProxied||(ie(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=I(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=()=>K(t,!0);r&&r["s-rc"]?r["s-rc"].push(c):c()})(e,t,o)}r()}})(this)))}disconnectedCallback(){a.jmp((()=>(async()=>{if(!(1&a.o)){const e=n(this);(null==e?void 0:e.t)?re(e.t):(null==e?void 0:e.D)&&e.D.then((()=>re(e.t)))}})()))}componentOnReady(){return n(this).D}};r.F=e[0],p.includes(c)||m.get(c)||(d.push(c),m.define(c,ie(u,r,1)))}))})),d.length>0&&(S&&(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:j(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(ne,30)))},ue=e=>a.k=e;export{ce as b,P as h,f as p,o as r,ue as s}