analog-clock-components 0.2.26 → 0.2.28

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 o,b as e}from"./p-D2pe7ofM.js";export{s as setNonce}from"./p-D2pe7ofM.js";import{g as t}from"./p-DQuL1Twl.js";(()=>{const e=import.meta.url,s={};return""!==e&&(s.resourcesUrl=new URL(".",e).href),o(s)})().then((async o=>(await t(),e([["p-239ad223",[[1,"analog-clock",{size:[2],timeZone:[2,"time-zone"],time:[32]}]]]],o))));
1
+ import{p as o,g as e,b as t}from"./p-SoX809Hy.js";export{s as setNonce}from"./p-SoX809Hy.js";(()=>{const e=import.meta.url,s={};return""!==e&&(s.resourcesUrl=new URL(".",e).href),o(s)})().then((async o=>(await e(),t([["p-42c096b7",[[1,"analog-clock",{size:[2],timeZone:[2,"time-zone"],time:[32]}]]]],o))));
@@ -1 +1 @@
1
- import{r as e,h as t}from"./p-D2pe7ofM.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-SoX809Hy.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
+ const t=()=>{};var e=Object.defineProperty,n=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},o=(t,e)=>{t.__stencil__getHostRef=()=>e,e.t=t},s=(t,e)=>(0,console.error)(t,e),l=new Map,i=new Map,r="slot-fb{display:contents}slot-fb[hidden]{display:none}",c="undefined"!=typeof window?window:{},u={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},a=t=>Promise.resolve(t),f=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),d=!1,h=[],p=[],m=(t,e)=>n=>{t.push(n),d||(d=!0,e&&4&u.o?w(y):u.raf(y))},v=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){s(t)}t.length=0},y=()=>{v(h),v(p),(d=h.length>0)&&u.raf(y)},w=t=>a().then(t),b=m(p,!0),$=t=>"object"==(t=typeof t)||"function"===t;function g(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>j,map:()=>O,ok:()=>S,unwrap:()=>k,unwrapErr:()=>E});var S=t=>({isOk:!0,isErr:!1,value:t}),j=t=>({isOk:!1,isErr:!0,value:t});function O(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>S(t))):S(n)}if(t.isErr)return j(t.value);throw"should never get here"}var k=t=>{if(t.isOk)return t.value;throw t.value},E=t=>{if(t.isErr)return t.value;throw t.value};function C(){const t=this.attachShadow({mode:"open"});if(f){const e=new CSSStyleSheet;e.replaceSync(""),t.adoptedStyleSheets.push(e)}}var M=(t,e,...n)=>{let o=null,s=null,l=!1,i=!1;const r=[],c=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((l="function"!=typeof t&&!$(o))&&(o+=""),l&&i?r[r.length-1].i+=o:r.push(l?x(null,o):o),i=l)};if(c(n),e){e.key&&(s=e.key);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}const u=x(t,null);return u.u=e,r.length>0&&(u.h=r),u.p=s,u},x=(t,e)=>({o:0,m:t,i:e,v:null,h:null,u:null,p:null}),P={},N=t=>{const e=(t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(t);return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${e}))(${e}\\b)`,"g")};N("::slotted"),N(":host"),N(":host-context");var D,R=(t,e)=>null==t||$(t)?t:2&e?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:t,U=new WeakMap,W=t=>"sc-"+t.$,A=(t,e,n,o,s,l)=>{if(n===o)return;let i=((t,e)=>e in t)(t,e);if(e.toLowerCase(),"class"===e){const e=t.classList,s=T(n);let l=T(o);e.remove(...s.filter((t=>t&&!l.includes(t)))),e.add(...l.filter((t=>t&&!s.includes(t))))}else if("key"===e);else{const r=$(o);if((i||r&&null!==o)&&!s)try{if(t.tagName.includes("-"))t[e]!==o&&(t[e]=o);else{const s=null==o?"":o;"list"===e?i=!1:null!=n&&t[e]==s||("function"==typeof t.__lookupSetter__(e)?t[e]=s:t.setAttribute(e,s))}}catch(t){}null==o||!1===o?!1===o&&""!==t.getAttribute(e)||t.removeAttribute(e):(!i||4&l||s)&&!r&&1===t.nodeType&&t.setAttribute(e,o=!0===o?"":o)}},L=/\s/,T=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(L):[]),F=(t,e,n)=>{const o=11===e.v.nodeType&&e.v.host?e.v.host:e.v,s=t&&t.u||{},l=e.u||{};for(const t of H(Object.keys(s)))t in l||A(o,t,s[t],void 0,n,e.o);for(const t of H(Object.keys(l)))A(o,t,s[t],l[t],n,e.o)};function H(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var z=!1,V=(t,e,n)=>{const o=e.h[n];let s,l,i=0;if(z||(z="svg"===o.m),!c.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(s=o.v=c.document.createElementNS(z?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.m),z&&"foreignObject"===o.m&&(z=!1),F(null,o,z),o.h)for(i=0;i<o.h.length;++i)l=V(t,o,i),l&&s.appendChild(l);return"svg"===o.m?z=!1:"foreignObject"===s.tagName&&(z=!0),s["s-hn"]=D,s},q=(t,e,n,o,s,l)=>{let i,r=t;for(r.shadowRoot&&r.tagName===D&&(r=r.shadowRoot);s<=l;++s)o[s]&&(i=V(null,n,s),i&&(o[s].v=i,_(r,i,e)))},G=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.v;t&&t.remove()}}},I=(t,e,n=!1)=>t.m===e.m&&(n?(n&&!t.p&&e.p&&(t.p=e.p),!0):t.p===e.p),Y=(t,e,n=!1)=>{const o=e.v=t.v,s=t.h,l=e.h,i=e.m;F(t,e,z="svg"===i||"foreignObject"!==i&&z),null!==s&&null!==l?((t,e,n,o,s=!1)=>{let l,i,r=0,c=0,u=0,a=0,f=e.length-1,d=e[0],h=e[f],p=o.length-1,m=o[0],v=o[p];for(;r<=f&&c<=p;)if(null==d)d=e[++r];else if(null==h)h=e[--f];else if(null==m)m=o[++c];else if(null==v)v=o[--p];else if(I(d,m,s))Y(d,m,s),d=e[++r],m=o[++c];else if(I(h,v,s))Y(h,v,s),h=e[--f],v=o[--p];else if(I(d,v,s))Y(d,v,s),_(t,d.v,h.v.nextSibling),d=e[++r],v=o[--p];else if(I(h,m,s))Y(h,m,s),_(t,h.v,d.v),h=e[--f],m=o[++c];else{for(u=-1,a=r;a<=f;++a)if(e[a]&&null!==e[a].p&&e[a].p===m.p){u=a;break}u>=0?(i=e[u],i.m!==m.m?l=V(e&&e[c],n,u):(Y(i,m,s),e[u]=void 0,l=i.v),m=o[++c]):(l=V(e&&e[c],n,c),m=o[++c]),l&&_(d.v.parentNode,l,d.v)}r>f?q(t,null==o[p+1]?null:o[p+1].v,n,o,c,p):c>p&&G(e,r,f)})(o,s,e,l,n):null!==l?q(o,null,e,l,0,l.length-1):!n&&null!==s&&G(s,0,s.length-1),z&&"svg"===i&&(z=!1)},_=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),B=(t,e)=>{if(e&&!t.S&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.S=()=>{e["s-p"].splice(n-1,1),o()})))}},J=(t,e)=>{if(t.o|=16,!(4&t.o))return B(t,t.j),b((()=>K(t,e)));t.o|=512},K=(t,e)=>{const n=t.$hostElement$,o=t.t;if(!o)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let s;return s=ot(o,e?"componentWillLoad":"componentWillUpdate",void 0,n),s=Q(s,(()=>ot(o,"componentWillRender",void 0,n))),Q(s,(()=>Z(t,o,e)))},Q=(t,e)=>X(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),X=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,Z=async(t,e,n)=>{var o;const s=t.$hostElement$,l=s["s-rc"];n&&(t=>{const e=t.O,n=t.$hostElement$,o=e.o,s=((t,e)=>{var n;const o=W(e),s=i.get(o);if(!c.document)return o;if(t=11===t.nodeType?t:c.document,s)if("string"==typeof s){let l,i=U.get(t=t.head||t);if(i||U.set(t,i=new Set),!i.has(o)){{l=document.querySelector(`[sty-id="${o}"]`)||c.document.createElement("style"),l.innerHTML=s;const i=null!=(n=u.k)?n:g(c.document);if(null!=i&&l.setAttribute("nonce",i),!(1&e.o))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(l,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(f){const e=new CSSStyleSheet;e.replaceSync(s),t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=s+e.innerHTML:t.prepend(l)}else t.append(l);1&e.o&&t.insertBefore(l,null)}4&e.o&&(l.innerHTML+=r),i&&i.add(o)}}else t.adoptedStyleSheets.includes(s)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,s]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(t);tt(t,e,s,n),l&&(l.map((t=>t())),s["s-rc"]=void 0);{const e=null!=(o=s["s-p"])?o:[],n=()=>et(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},tt=(t,e,n,o)=>{try{e=e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{const o=t.$hostElement$,s=t.C||x(null,null),l=(t=>t&&t.m===P)(e)?e:M(null,null,e);if(D=o.tagName,n&&l.u)for(const t of Object.keys(l.u))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(l.u[t]=o[t]);l.m=null,l.o|=4,t.C=l,l.v=s.v=o.shadowRoot||o,Y(s,l,n)})(t,e,o)}catch(e){s(e,t.$hostElement$)}return null},et=t=>{const e=t.$hostElement$,n=t.t,o=t.j;ot(n,"componentDidRender",void 0,e),64&t.o?ot(n,"componentDidUpdate",void 0,e):(t.o|=64,st(e),ot(n,"componentDidLoad",void 0,e),t.M(e),o||nt()),t.S&&(t.S(),t.S=void 0),512&t.o&&w((()=>J(t,!1))),t.o&=-517},nt=()=>{w((()=>(t=>{const e=u.ce("appload",{detail:{namespace:"analog-clock"}});return t.dispatchEvent(e),e})(c)))},ot=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){s(t,o)}},st=t=>t.classList.add("hydrated"),lt=(t,e,o,s)=>{const l=n(t);if(!l)throw Error(`Couldn't find host element for "${s.$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const i=l.P.get(e),r=l.o,c=l.t;if(o=R(o,s.N[e][0]),(!(8&r)||void 0===i)&&o!==i&&(!Number.isNaN(i)||!Number.isNaN(o))&&(l.P.set(e,o),c&&2==(18&r))){if(c.componentShouldUpdate&&!1===c.componentShouldUpdate(o,i,e))return;J(l,!1)}},it=(t,e,o)=>{var s,l;const i=t.prototype;if(e.N){const r=Object.entries(null!=(s=e.N)?s:{});if(r.map((([t,[s]])=>{if(31&s||2&o&&32&s){const{get:l,set:r}=Object.getOwnPropertyDescriptor(i,t)||{};l&&(e.N[t][0]|=2048),r&&(e.N[t][0]|=4096),(1&o||!l)&&Object.defineProperty(i,t,{get(){{if(!(2048&e.N[t][0]))return((t,e)=>n(this).P.get(e))(0,t);const o=n(this),s=o?o.t:i;if(!s)return;return s[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,t,{set(l){const i=n(this);if(r){const n=32&s?this[t]:i.$hostElement$[t];return void 0===n&&i.P.get(t)?l=i.P.get(t):!i.P.get(t)&&n&&i.P.set(t,n),r.call(this,R(l,s)),void lt(this,t,l=32&s?this[t]:i.$hostElement$[t],e)}{if(!(1&o&&4096&e.N[t][0]))return lt(this,t,l,e),void(1&o&&!i.t&&i.D.then((()=>{4096&e.N[t][0]&&i.t[t]!==i.P.get(t)&&(i.t[t]=l)})));const n=()=>{const n=i.t[t];!i.P.get(t)&&n&&i.P.set(t,n),i.t[t]=R(l,s),lt(this,t,i.t[t],e)};i.t?n():i.D.then((()=>n()))}}})}})),1&o){const o=new Map;i.attributeChangedCallback=function(t,s,l){u.jmp((()=>{var r;const c=o.get(t);if(this.hasOwnProperty(c))l=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==l)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&l!==s){const n=o.t,i=null==(r=e.R)?void 0:r[t];null==i||i.forEach((e=>{null!=n[e]&&n[e].call(n,l,s,t)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);(l=(null!==l||"boolean"!=typeof this[c])&&l)===this[c]||u.get&&!u.set||(this[c]=l)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(l=e.R)?l:{}),...r.filter((([t,e])=>15&e[0])).map((([t,e])=>{const n=e[1]||t;return o.set(n,t),n}))]))}}return t},rt=(t,e)=>{ot(t,"connectedCallback",void 0,e)},ct=(t,e)=>{ot(t,"disconnectedCallback",void 0,e||t)},ut=(t,e={})=>{var o;if(!c.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const a=[],d=e.exclude||[],h=c.customElements,p=c.document.head,m=p.querySelector("meta[charset]"),v=c.document.createElement("style"),y=[];let w,b=!0;Object.assign(u,e),u.l=new URL(e.resourcesUrl||"./",c.document.baseURI).href;let $=!1;if(t.map((t=>{t[1].map((e=>{const o={o:e[0],$:e[1],N:e[2],U:e[3]};4&o.o&&($=!0),o.N=e[2];const r=o.$,c=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,e)=>{const n={o:0,$hostElement$:t,O:e,P:new Map};n.D=new Promise((t=>n.M=t)),t["s-p"]=[],t["s-rc"]=[];const o=n;t.__stencil__getHostRef=()=>o})(t=this,o),1&o.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${o.$}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else C.call(t,o)}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),w&&(clearTimeout(w),w=null),b?y.push(this):u.jmp((()=>(t=>{if(!(1&u.o)){const e=n(t),o=e.O,r=()=>{};if(1&e.o)(null==e?void 0:e.t)?rt(e.t,t):(null==e?void 0:e.D)&&e.D.then((()=>rt(e.t,t)));else{e.o|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){B(e,e.j=n);break}}o.N&&Object.entries(o.N).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o)){if(e.o|=32,n.W){const i=((t,e)=>{const n=t.$.replace(/-/g,"_"),o=t.W;if(!o)return;const i=l.get(o);return i?i[n]:import(`./${o}.entry.js`).then((t=>(l.set(o,t),t[n])),(t=>{s(t,e.$hostElement$)}))
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(i&&"then"in i){const t=()=>{};o=await i,t()}else o=i;if(!o)throw Error(`Constructor for "${n.$}#${e.A}" was not found`);o.isProxied||(it(o,n,2),o.isProxied=!0);const r=()=>{};e.o|=8;try{new o(e)}catch(e){s(e,t)}e.o&=-9,r(),rt(e.t,t)}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.o|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=W(n);if(!i.has(e)){const o=()=>{};((t,e,n)=>{let o=i.get(t);f&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,i.set(t,o)})(e,t,!!(1&n.o)),o()}}}const r=e.j,c=()=>J(e,!0);r&&r["s-rc"]?r["s-rc"].push(c):c()})(t,e,o)}r()}})(this)))}disconnectedCallback(){u.jmp((()=>(async t=>{if(!(1&u.o)){const e=n(t);(null==e?void 0:e.t)?ct(e.t,t):(null==e?void 0:e.D)&&e.D.then((()=>ct(e.t,t)))}U.has(t)&&U.delete(t),t.shadowRoot&&U.has(t.shadowRoot)&&U.delete(t.shadowRoot)})(this))),u.raf((()=>{var t;const e=n(this),o=y.findIndex((t=>t===this));o>-1&&y.splice(o,1),(null==(t=null==e?void 0:e.C)?void 0:t.v)instanceof Node&&!e.C.v.isConnected&&delete e.C.v}))}componentOnReady(){return n(this).D}};o.W=t[0],d.includes(r)||h.get(r)||(a.push(r),h.define(r,it(c,o,1)))}))})),a.length>0&&($&&(v.textContent+=r),v.textContent+=a.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const t=null!=(o=u.k)?o:g(c.document);null!=t&&v.setAttribute("nonce",t),p.insertBefore(v,m?m.nextSibling:p.firstChild)}b=!1,y.length?y.map((t=>t.connectedCallback())):u.jmp((()=>w=setTimeout(nt,30)))},at=t=>u.k=t;export{ut as b,t as g,M as h,a as p,o as r,at as s}
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-BNT2X3Qu.js');
3
+ var index = require('./index-Dc1Rta2j.js');
4
4
 
5
5
  const analogClockCss = ".clock #circle{stroke:var(--clock-circle-color, black)}.clock #hour{stroke:var(--clock-hour-color, black)}.clock #minute{stroke:var(--clock-minute-color, black)}.clock #second{stroke:var(--clock-second-color, black)}";
6
6
 
@@ -1,11 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-BNT2X3Qu.js');
4
- var appGlobals = require('./app-globals-V2Kpy_OQ.js');
3
+ var index = require('./index-Dc1Rta2j.js');
5
4
 
6
5
  var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
7
6
  /*
8
- Stencil Client Patch Browser v4.31.0 | MIT Licensed | https://stenciljs.com
7
+ Stencil Client Patch Browser v4.33.1 | MIT Licensed | https://stenciljs.com
9
8
  */
10
9
 
11
10
  var patchBrowser = () => {
@@ -18,7 +17,7 @@ var patchBrowser = () => {
18
17
  };
19
18
 
20
19
  patchBrowser().then(async (options) => {
21
- await appGlobals.globalScripts();
20
+ await index.globalScripts();
22
21
  return index.bootstrapLazy([["analog-clock.cjs",[[1,"analog-clock",{"size":[2],"timeZone":[2,"time-zone"],"time":[32]}]]]], options);
23
22
  });
24
23
 
@@ -3,8 +3,11 @@
3
3
  const NAMESPACE = 'analog-clock';
4
4
  const BUILD = /* analog-clock */ { hydratedSelectorName: "hydrated", lazyLoad: true, updatable: true, watchCallback: false };
5
5
 
6
+ const globalScripts = () => {};
7
+ const globalStyles = "";
8
+
6
9
  /*
7
- Stencil Client Platform v4.31.0 | MIT Licensed | https://stenciljs.com
10
+ Stencil Client Platform v4.33.1 | MIT Licensed | https://stenciljs.com
8
11
  */
9
12
  var __defProp = Object.defineProperty;
10
13
  var __export = (target, all) => {
@@ -201,6 +204,14 @@ var unwrapErr = (result) => {
201
204
  throw result.value;
202
205
  }
203
206
  };
207
+ function createShadowRoot(cmpMeta) {
208
+ const shadowRoot = this.attachShadow({ mode: "open" });
209
+ if (supportsConstructableStylesheets) {
210
+ const sheet = new CSSStyleSheet();
211
+ sheet.replaceSync(globalStyles);
212
+ shadowRoot.adoptedStyleSheets.push(sheet);
213
+ }
214
+ }
204
215
  var createTime = (fnName, tagName = "") => {
205
216
  {
206
217
  return () => {
@@ -1196,9 +1207,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1196
1207
  if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1197
1208
  {
1198
1209
  if (!self.shadowRoot) {
1199
- {
1200
- self.attachShadow({ mode: "open" });
1201
- }
1210
+ createShadowRoot.call(self, cmpMeta);
1202
1211
  } else {
1203
1212
  if (self.shadowRoot.mode !== "open") {
1204
1213
  throw new Error(
@@ -1283,6 +1292,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1283
1292
  var setNonce = (nonce) => plt.$nonce$ = nonce;
1284
1293
 
1285
1294
  exports.bootstrapLazy = bootstrapLazy;
1295
+ exports.globalScripts = globalScripts;
1286
1296
  exports.h = h;
1287
1297
  exports.promiseResolve = promiseResolve;
1288
1298
  exports.registerInstance = registerInstance;
@@ -1,11 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-BNT2X3Qu.js');
4
- var appGlobals = require('./app-globals-V2Kpy_OQ.js');
3
+ var index = require('./index-Dc1Rta2j.js');
5
4
 
6
5
  const defineCustomElements = async (win, options) => {
7
6
  if (typeof window === 'undefined') return undefined;
8
- await appGlobals.globalScripts();
7
+ await index.globalScripts();
9
8
  return index.bootstrapLazy([["analog-clock.cjs",[[1,"analog-clock",{"size":[2],"timeZone":[2,"time-zone"],"time":[32]}]]]], options);
10
9
  };
11
10
 
@@ -4,7 +4,7 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "4.31.0",
7
+ "version": "4.33.1",
8
8
  "typescriptVersion": "5.5.4"
9
9
  },
10
10
  "collections": [],
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-D2pe7ofM.js';
1
+ import { r as registerInstance, h } from './index-SoX809Hy.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
 
@@ -1,9 +1,8 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-D2pe7ofM.js';
2
- export { s as setNonce } from './index-D2pe7ofM.js';
3
- import { g as globalScripts } from './app-globals-DQuL1Twl.js';
1
+ import { p as promiseResolve, g as globalScripts, b as bootstrapLazy } from './index-SoX809Hy.js';
2
+ export { s as setNonce } from './index-SoX809Hy.js';
4
3
 
5
4
  /*
6
- Stencil Client Patch Browser v4.31.0 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Patch Browser v4.33.1 | MIT Licensed | https://stenciljs.com
7
6
  */
8
7
 
9
8
  var patchBrowser = () => {
@@ -1,8 +1,11 @@
1
1
  const NAMESPACE = 'analog-clock';
2
2
  const BUILD = /* analog-clock */ { hydratedSelectorName: "hydrated", lazyLoad: true, updatable: true, watchCallback: false };
3
3
 
4
+ const globalScripts = () => {};
5
+ const globalStyles = "";
6
+
4
7
  /*
5
- Stencil Client Platform v4.31.0 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Platform v4.33.1 | MIT Licensed | https://stenciljs.com
6
9
  */
7
10
  var __defProp = Object.defineProperty;
8
11
  var __export = (target, all) => {
@@ -199,6 +202,14 @@ var unwrapErr = (result) => {
199
202
  throw result.value;
200
203
  }
201
204
  };
205
+ function createShadowRoot(cmpMeta) {
206
+ const shadowRoot = this.attachShadow({ mode: "open" });
207
+ if (supportsConstructableStylesheets) {
208
+ const sheet = new CSSStyleSheet();
209
+ sheet.replaceSync(globalStyles);
210
+ shadowRoot.adoptedStyleSheets.push(sheet);
211
+ }
212
+ }
202
213
  var createTime = (fnName, tagName = "") => {
203
214
  {
204
215
  return () => {
@@ -1194,9 +1205,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1194
1205
  if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1195
1206
  {
1196
1207
  if (!self.shadowRoot) {
1197
- {
1198
- self.attachShadow({ mode: "open" });
1199
- }
1208
+ createShadowRoot.call(self, cmpMeta);
1200
1209
  } else {
1201
1210
  if (self.shadowRoot.mode !== "open") {
1202
1211
  throw new Error(
@@ -1280,4 +1289,4 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1280
1289
  // src/runtime/nonce.ts
1281
1290
  var setNonce = (nonce) => plt.$nonce$ = nonce;
1282
1291
 
1283
- export { bootstrapLazy as b, h, promiseResolve as p, registerInstance as r, setNonce as s };
1292
+ export { bootstrapLazy as b, globalScripts as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
@@ -1,6 +1,5 @@
1
- import { b as bootstrapLazy } from './index-D2pe7ofM.js';
2
- export { s as setNonce } from './index-D2pe7ofM.js';
3
- import { g as globalScripts } from './app-globals-DQuL1Twl.js';
1
+ import { g as globalScripts, b as bootstrapLazy } from './index-SoX809Hy.js';
2
+ export { s as setNonce } from './index-SoX809Hy.js';
4
3
 
5
4
  const defineCustomElements = async (win, options) => {
6
5
  if (typeof window === 'undefined') return undefined;
@@ -7,7 +7,13 @@
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
8
  export namespace Components {
9
9
  interface AnalogClock {
10
+ /**
11
+ * @default undefined
12
+ */
10
13
  "size": number;
14
+ /**
15
+ * @default 0
16
+ */
11
17
  "timeZone": number;
12
18
  }
13
19
  }
@@ -24,7 +30,13 @@ declare global {
24
30
  }
25
31
  declare namespace LocalJSX {
26
32
  interface AnalogClock {
33
+ /**
34
+ * @default undefined
35
+ */
27
36
  "size"?: number;
37
+ /**
38
+ * @default 0
39
+ */
28
40
  "timeZone"?: number;
29
41
  }
30
42
  interface IntrinsicElements {
@@ -1601,7 +1601,7 @@ export declare namespace JSXBase {
1601
1601
  onKeyUp?: (event: KeyboardEvent) => void;
1602
1602
  onKeyUpCapture?: (event: KeyboardEvent) => void;
1603
1603
  onAuxClick?: (event: MouseEvent) => void;
1604
- onClick?: (event: MouseEvent) => void;
1604
+ onClick?: (event: PointerEvent) => void;
1605
1605
  onClickCapture?: (event: MouseEvent) => void;
1606
1606
  onContextMenu?: (event: MouseEvent) => void;
1607
1607
  onContextMenuCapture?: (event: MouseEvent) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "analog-clock-components",
3
- "version": "0.2.26",
3
+ "version": "0.2.28",
4
4
  "description": "Stencil Component Starter",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -25,12 +25,12 @@
25
25
  "format": "prettier --write src"
26
26
  },
27
27
  "dependencies": {
28
- "@stencil/core": "4.31.0"
28
+ "@stencil/core": "4.33.1"
29
29
  },
30
30
  "license": "MIT",
31
31
  "devDependencies": {
32
- "cspell": "9.0.1",
33
- "eslint": "9.26.0",
32
+ "cspell": "9.0.2",
33
+ "eslint": "9.28.0",
34
34
  "prettier": "3.5.3",
35
35
  "typescript": "5.8.3"
36
36
  },
@@ -1,2 +0,0 @@
1
- var t=Object.defineProperty,e=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},n=(t,e)=>{t.__stencil__getHostRef=()=>e,e.t=t},o=(t,e)=>(0,console.error)(t,e),l=new Map,s=new Map,i="slot-fb{display:contents}slot-fb[hidden]{display:none}",r="undefined"!=typeof window?window:{},c={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},u=t=>Promise.resolve(t),a=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),f=!1,d=[],h=[],p=(t,e)=>n=>{t.push(n),f||(f=!0,e&&4&c.o?y(v):c.raf(v))},m=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){o(t)}t.length=0},v=()=>{m(d),m(h),(f=d.length>0)&&c.raf(v)},y=t=>u().then(t),w=p(h,!0),b=t=>"object"==(t=typeof t)||"function"===t;function $(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})({},{err:()=>S,map:()=>j,ok:()=>g,unwrap:()=>O,unwrapErr:()=>k});var g=t=>({isOk:!0,isErr:!1,value:t}),S=t=>({isOk:!1,isErr:!0,value:t});function j(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>g(t))):g(n)}if(t.isErr)return S(t.value);throw"should never get here"}var O=t=>{if(t.isOk)return t.value;throw t.value},k=t=>{if(t.isErr)return t.value;throw t.value},E=(t,e,...n)=>{let o=null,l=null,s=!1,i=!1;const r=[],c=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof t&&!b(o))&&(o+=""),s&&i?r[r.length-1].i+=o:r.push(s?C(null,o):o),i=s)};if(c(n),e){e.key&&(l=e.key);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}const u=C(t,null);return u.u=e,r.length>0&&(u.h=r),u.p=l,u},C=(t,e)=>({o:0,m:t,i:e,v:null,h:null,u:null,p:null}),M={},x=t=>{const e=(t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(t);return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${e}))(${e}\\b)`,"g")};x("::slotted"),x(":host"),x(":host-context");var P,N=(t,e)=>null==t||b(t)?t:2&e?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:t,D=new WeakMap,R=t=>"sc-"+t.$,U=(t,e,n,o,l,s)=>{if(n===o)return;let i=((t,e)=>e in t)(t,e);if(e.toLowerCase(),"class"===e){const e=t.classList,l=A(n);let s=A(o);e.remove(...l.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!l.includes(t))))}else if("key"===e);else{const r=b(o);if((i||r&&null!==o)&&!l)try{if(t.tagName.includes("-"))t[e]!==o&&(t[e]=o);else{const l=null==o?"":o;"list"===e?i=!1:null!=n&&t[e]==l||("function"==typeof t.__lookupSetter__(e)?t[e]=l:t.setAttribute(e,l))}}catch(t){}null==o||!1===o?!1===o&&""!==t.getAttribute(e)||t.removeAttribute(e):(!i||4&s||l)&&!r&&1===t.nodeType&&t.setAttribute(e,o=!0===o?"":o)}},W=/\s/,A=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(W):[]),L=(t,e,n)=>{const o=11===e.v.nodeType&&e.v.host?e.v.host:e.v,l=t&&t.u||{},s=e.u||{};for(const t of T(Object.keys(l)))t in s||U(o,t,l[t],void 0,n,e.o);for(const t of T(Object.keys(s)))U(o,t,l[t],s[t],n,e.o)};function T(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var F=!1,H=(t,e,n)=>{const o=e.h[n];let l,s,i=0;if(F||(F="svg"===o.m),!r.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(l=o.v=r.document.createElementNS(F?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.m),F&&"foreignObject"===o.m&&(F=!1),L(null,o,F),o.h)for(i=0;i<o.h.length;++i)s=H(t,o,i),s&&l.appendChild(s);return"svg"===o.m?F=!1:"foreignObject"===l.tagName&&(F=!0),l["s-hn"]=P,l},z=(t,e,n,o,l,s)=>{let i,r=t;for(r.shadowRoot&&r.tagName===P&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=H(null,n,l),i&&(o[l].v=i,I(r,i,e)))},V=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.v;t&&t.remove()}}},q=(t,e,n=!1)=>t.m===e.m&&(n?(n&&!t.p&&e.p&&(t.p=e.p),!0):t.p===e.p),G=(t,e,n=!1)=>{const o=e.v=t.v,l=t.h,s=e.h,i=e.m;L(t,e,F="svg"===i||"foreignObject"!==i&&F),null!==l&&null!==s?((t,e,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=e.length-1,d=e[0],h=e[f],p=o.length-1,m=o[0],v=o[p];for(;r<=f&&c<=p;)if(null==d)d=e[++r];else if(null==h)h=e[--f];else if(null==m)m=o[++c];else if(null==v)v=o[--p];else if(q(d,m,l))G(d,m,l),d=e[++r],m=o[++c];else if(q(h,v,l))G(h,v,l),h=e[--f],v=o[--p];else if(q(d,v,l))G(d,v,l),I(t,d.v,h.v.nextSibling),d=e[++r],v=o[--p];else if(q(h,m,l))G(h,m,l),I(t,h.v,d.v),h=e[--f],m=o[++c];else{for(u=-1,a=r;a<=f;++a)if(e[a]&&null!==e[a].p&&e[a].p===m.p){u=a;break}u>=0?(i=e[u],i.m!==m.m?s=H(e&&e[c],n,u):(G(i,m,l),e[u]=void 0,s=i.v),m=o[++c]):(s=H(e&&e[c],n,c),m=o[++c]),s&&I(d.v.parentNode,s,d.v)}r>f?z(t,null==o[p+1]?null:o[p+1].v,n,o,c,p):c>p&&V(e,r,f)})(o,l,e,s,n):null!==s?z(o,null,e,s,0,s.length-1):!n&&null!==l&&V(l,0,l.length-1),F&&"svg"===i&&(F=!1)},I=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),Y=(t,e)=>{if(e&&!t.S&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.S=()=>{e["s-p"].splice(n-1,1),o()})))}},_=(t,e)=>{if(t.o|=16,!(4&t.o))return Y(t,t.j),w((()=>B(t,e)));t.o|=512},B=(t,e)=>{const n=t.$hostElement$,o=t.t;if(!o)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return l=et(o,e?"componentWillLoad":"componentWillUpdate",void 0,n),l=J(l,(()=>et(o,"componentWillRender",void 0,n))),J(l,(()=>Q(t,o,e)))},J=(t,e)=>K(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),K=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,Q=async(t,e,n)=>{var o;const l=t.$hostElement$,u=l["s-rc"];n&&(t=>{const e=t.O,n=t.$hostElement$,o=e.o,l=((t,e)=>{var n;const o=R(e),l=s.get(o);if(!r.document)return o;if(t=11===t.nodeType?t:r.document,l)if("string"==typeof l){let s,u=D.get(t=t.head||t);if(u||D.set(t,u=new Set),!u.has(o)){{s=document.querySelector(`[sty-id="${o}"]`)||r.document.createElement("style"),s.innerHTML=l;const i=null!=(n=c.k)?n:$(r.document);if(null!=i&&s.setAttribute("nonce",i),!(1&e.o))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(s,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(a){const e=new CSSStyleSheet;e.replaceSync(l),t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=l+e.innerHTML:t.prepend(s)}else t.append(s);1&e.o&&t.insertBefore(s,null)}4&e.o&&(s.innerHTML+=i),u&&u.add(o)}}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);X(t,e,l,n),u&&(u.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>Z(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},X=(t,e,n,l)=>{try{e=e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{const o=t.$hostElement$,l=t.C||C(null,null),s=(t=>t&&t.m===M)(e)?e:E(null,null,e);if(P=o.tagName,n&&s.u)for(const t of Object.keys(s.u))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(s.u[t]=o[t]);s.m=null,s.o|=4,t.C=s,s.v=l.v=o.shadowRoot||o,G(l,s,n)})(t,e,l)}catch(e){o(e,t.$hostElement$)}return null},Z=t=>{const e=t.$hostElement$,n=t.t,o=t.j;et(n,"componentDidRender",void 0,e),64&t.o?et(n,"componentDidUpdate",void 0,e):(t.o|=64,nt(e),et(n,"componentDidLoad",void 0,e),t.M(e),o||tt()),t.S&&(t.S(),t.S=void 0),512&t.o&&y((()=>_(t,!1))),t.o&=-517},tt=()=>{y((()=>(t=>{const e=c.ce("appload",{detail:{namespace:"analog-clock"}});return t.dispatchEvent(e),e})(r)))},et=(t,e,n,l)=>{if(t&&t[e])try{return t[e](n)}catch(t){o(t,l)}},nt=t=>t.classList.add("hydrated"),ot=(t,n,o,l)=>{const s=e(t);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/stenciljs/core/issues/5457).`);const i=s.P.get(n),r=s.o,c=s.t;if(o=N(o,l.N[n][0]),(!(8&r)||void 0===i)&&o!==i&&(!Number.isNaN(i)||!Number.isNaN(o))&&(s.P.set(n,o),c&&2==(18&r))){if(c.componentShouldUpdate&&!1===c.componentShouldUpdate(o,i,n))return;_(s,!1)}},lt=(t,n,o)=>{var l,s;const i=t.prototype;if(n.N){const r=Object.entries(null!=(l=n.N)?l:{});if(r.map((([t,[l]])=>{if(31&l||2&o&&32&l){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,t)||{};s&&(n.N[t][0]|=2048),r&&(n.N[t][0]|=4096),(1&o||!s)&&Object.defineProperty(i,t,{get(){{if(!(2048&n.N[t][0]))return((t,n)=>e(this).P.get(n))(0,t);const o=e(this),l=o?o.t:i;if(!l)return;return l[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,t,{set(s){const i=e(this);if(r){const e=32&l?this[t]:i.$hostElement$[t];return void 0===e&&i.P.get(t)?s=i.P.get(t):!i.P.get(t)&&e&&i.P.set(t,e),r.call(this,N(s,l)),void ot(this,t,s=32&l?this[t]:i.$hostElement$[t],n)}{if(!(1&o&&4096&n.N[t][0]))return ot(this,t,s,n),void(1&o&&!i.t&&i.D.then((()=>{4096&n.N[t][0]&&i.t[t]!==i.P.get(t)&&(i.t[t]=s)})));const e=()=>{const e=i.t[t];!i.P.get(t)&&e&&i.P.set(t,e),i.t[t]=N(s,l),ot(this,t,i.t[t],n)};i.t?e():i.D.then((()=>e()))}}})}})),1&o){const o=new Map;i.attributeChangedCallback=function(t,l,s){c.jmp((()=>{var r;const c=o.get(t);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=e(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const e=o.t,i=null==(r=n.R)?void 0:r[t];null==i||i.forEach((n=>{null!=e[n]&&e[n].call(e,s,l,t)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);(s=(null!==s||"boolean"!=typeof this[c])&&s)===this[c]||u.get&&!u.set||(this[c]=s)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=n.R)?s:{}),...r.filter((([t,e])=>15&e[0])).map((([t,e])=>{const n=e[1]||t;return o.set(n,t),n}))]))}}return t},st=(t,e)=>{et(t,"connectedCallback",void 0,e)},it=(t,e)=>{et(t,"disconnectedCallback",void 0,e||t)},rt=(t,n={})=>{var u;if(!r.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const f=[],d=n.exclude||[],h=r.customElements,p=r.document.head,m=p.querySelector("meta[charset]"),v=r.document.createElement("style"),y=[];let w,b=!0;Object.assign(c,n),c.l=new URL(n.resourcesUrl||"./",r.document.baseURI).href;let g=!1;if(t.map((t=>{t[1].map((n=>{const i={o:n[0],$:n[1],N:n[2],U:n[3]};4&i.o&&(g=!0),i.N=n[2];const r=i.$,u=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,e)=>{const n={o:0,$hostElement$:t,O:e,P:new Map};n.D=new Promise((t=>n.M=t)),t["s-p"]=[],t["s-rc"]=[];const o=n;t.__stencil__getHostRef=()=>o})(t=this,i),1&i.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${i.$}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else t.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),w&&(clearTimeout(w),w=null),b?y.push(this):c.jmp((()=>(t=>{if(!(1&c.o)){const n=e(t),i=n.O,r=()=>{};if(1&n.o)(null==n?void 0:n.t)?st(n.t,t):(null==n?void 0:n.D)&&n.D.then((()=>st(n.t,t)));else{n.o|=1;{let e=t;for(;e=e.parentNode||e.host;)if(e["s-p"]){Y(n,n.j=e);break}}i.N&&Object.entries(i.N).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let i;if(!(32&e.o)){if(e.o|=32,n.W){const s=((t,e)=>{const n=t.$.replace(/-/g,"_"),s=t.W;if(!s)return;const i=l.get(s);return i?i[n]:import(`./${s}.entry.js`).then((t=>(l.set(s,t),t[n])),(t=>{o(t,e.$hostElement$)}))
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(s&&"then"in s){const t=()=>{};i=await s,t()}else i=s;if(!i)throw Error(`Constructor for "${n.$}#${e.A}" was not found`);i.isProxied||(lt(i,n,2),i.isProxied=!0);const r=()=>{};e.o|=8;try{new i(e)}catch(e){o(e,t)}e.o&=-9,r(),st(e.t,t)}else i=t.constructor,customElements.whenDefined(t.localName).then((()=>e.o|=128));if(i&&i.style){let t;"string"==typeof i.style&&(t=i.style);const e=R(n);if(!s.has(e)){const o=()=>{};((t,e,n)=>{let o=s.get(t);a&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,s.set(t,o)})(e,t,!!(1&n.o)),o()}}}const r=e.j,c=()=>_(e,!0);r&&r["s-rc"]?r["s-rc"].push(c):c()})(t,n,i)}r()}})(this)))}disconnectedCallback(){c.jmp((()=>(async t=>{if(!(1&c.o)){const n=e(t);(null==n?void 0:n.t)?it(n.t,t):(null==n?void 0:n.D)&&n.D.then((()=>it(n.t,t)))}D.has(t)&&D.delete(t),t.shadowRoot&&D.has(t.shadowRoot)&&D.delete(t.shadowRoot)})(this))),c.raf((()=>{var t;const n=e(this),o=y.findIndex((t=>t===this));o>-1&&y.splice(o,1),(null==(t=null==n?void 0:n.C)?void 0:t.v)instanceof Node&&!n.C.v.isConnected&&delete n.C.v}))}componentOnReady(){return e(this).D}};i.W=t[0],d.includes(r)||h.get(r)||(f.push(r),h.define(r,lt(u,i,1)))}))})),f.length>0&&(g&&(v.textContent+=i),v.textContent+=f.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const t=null!=(u=c.k)?u:$(r.document);null!=t&&v.setAttribute("nonce",t),p.insertBefore(v,m?m.nextSibling:p.firstChild)}b=!1,y.length?y.map((t=>t.connectedCallback())):c.jmp((()=>w=setTimeout(tt,30)))},ct=t=>c.k=t;export{rt as b,E as h,u as p,n as r,ct as s}
@@ -1 +0,0 @@
1
- const o=()=>{};export{o as g}
@@ -1,5 +0,0 @@
1
- 'use strict';
2
-
3
- const globalScripts = () => {};
4
-
5
- exports.globalScripts = globalScripts;
@@ -1,3 +0,0 @@
1
- const globalScripts = () => {};
2
-
3
- export { globalScripts as g };