analog-clock-components 0.1.555 → 0.1.557
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analog-clock/analog-clock.esm.js +1 -1
- package/dist/analog-clock/p-63d46b6b.js +2 -0
- package/dist/analog-clock/{p-af40dfdc.entry.js → p-813c4399.entry.js} +1 -1
- package/dist/cjs/analog-clock.cjs.entry.js +1 -1
- package/dist/cjs/analog-clock.cjs.js +2 -2
- package/dist/cjs/{index-6947de4d.js → index-a5cf26b3.js} +208 -192
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/esm/analog-clock.entry.js +1 -1
- package/dist/esm/analog-clock.js +3 -3
- package/dist/esm/{index-75a41fc0.js → index-9e85a1b1.js} +208 -192
- package/dist/esm/loader.js +2 -2
- package/package.json +3 -3
- package/dist/analog-clock/p-a9721423.js +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as
|
|
1
|
+
import{p as e,b as o}from"./p-63d46b6b.js";export{s as setNonce}from"./p-63d46b6b.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-813c4399",[[1,"analog-clock",{size:[2],timeZone:[2,"time-zone"],time:[32]}]]]],e))));
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var t=Object.defineProperty,e=new WeakMap,n=t=>e.get(t),o=(t,n)=>{e.set(n.t=t,n)},l=(t,e)=>(0,console.error)(t,e),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: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)},f=t=>Promise.resolve(t),h=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),d=!1,p=[],m=[],y=(t,e)=>n=>{t.push(n),d||(d=!0,e&&4&a.o?b(w):a.raf(w))},v=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){l(t)}t.length=0},w=()=>{v(p),v(m),(d=p.length>0)&&a.raf(w)},b=t=>f().then(t),$=y(m,!0),g=t=>"object"==(t=typeof t)||"function"===t;function S(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:()=>O,map:()=>k,ok:()=>j,unwrap:()=>C,unwrapErr:()=>M});var j=t=>({isOk:!0,isErr:!1,value:t}),O=t=>({isOk:!1,isErr:!0,value:t});function k(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>j(t))):j(n)}if(t.isErr)return O(t.value);throw"should never get here"}var E,C=t=>{if(t.isOk)return t.value;throw t.value},M=t=>{if(t.isErr)return t.value;throw t.value},x=(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&&!g(o))&&(o+=""),s&&i?r[r.length-1].i+=o:r.push(s?P(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=P(t,null);return u.u=e,r.length>0&&(u.h=r),u.p=l,u},P=(t,e)=>({o:0,m:t,i:e,v:null,h:null,u:null,p:null}),A={},D=(t,e)=>null==t||g(t)?t:2&e?parseFloat(t):t,H=new WeakMap,N=t=>"sc-"+t.$,T=(t,e,n,o,l,s)=>{if(n!==o){let i=((t,e)=>e in t)(t,e);if(e.toLowerCase(),"class"===e){const e=t.classList,l=L(n);let s=L(o);t["s-si"]?(s.push(t["s-si"]),l.forEach((e=>{e.startsWith(t["s-si"])&&s.push(e)})),s=[...new Set(s)],e.add(...s),delete t["s-si"]):(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=g(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&&t.setAttribute(e,o=!0===o?"":o)}}},F=/\s/,L=t=>("object"==typeof t&&"baseVal"in t&&(t=t.baseVal),t?t.split(F):[]),R=(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 U(Object.keys(l)))t in s||T(o,t,l[t],void 0,n,e.o);for(const t of U(Object.keys(s)))T(o,t,l[t],s[t],n,e.o)};function U(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var V=!1,W=(t,e,n)=>{const o=e.h[n];let l,s,i=0;if(V||(V="svg"===o.m),l=o.v=u.createElementNS(V?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.m),V&&"foreignObject"===o.m&&(V=!1),R(null,o,V),o.h)for(i=0;i<o.h.length;++i)s=W(t,o,i),s&&l.appendChild(s);return"svg"===o.m?V=!1:"foreignObject"===l.tagName&&(V=!0),l["s-hn"]=E,l},q=(t,e,n,o,l,s)=>{let i,r=t;for(r.shadowRoot&&r.tagName===E&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=W(null,n,l),i&&(o[l].v=i,B(r,i,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()}}},_=(t,e,n=!1)=>t.m===e.m&&(n?(n&&!t.p&&e.p&&(t.p=e.p),!0):t.p===e.p),z=(t,e,n=!1)=>{const o=e.v=t.v,l=t.h,s=e.h,i=e.m;R(t,e,V="svg"===i||"foreignObject"!==i&&V),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,h=e[0],d=e[f],p=o.length-1,m=o[0],y=o[p];for(;r<=f&&c<=p;)if(null==h)h=e[++r];else if(null==d)d=e[--f];else if(null==m)m=o[++c];else if(null==y)y=o[--p];else if(_(h,m,l))z(h,m,l),h=e[++r],m=o[++c];else if(_(d,y,l))z(d,y,l),d=e[--f],y=o[--p];else if(_(h,y,l))z(h,y,l),B(t,h.v,d.v.nextSibling),h=e[++r],y=o[--p];else if(_(d,m,l))z(d,m,l),B(t,d.v,h.v),d=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=W(e&&e[c],n,u):(z(i,m,l),e[u]=void 0,s=i.v),m=o[++c]):(s=W(e&&e[c],n,c),m=o[++c]),s&&B(h.v.parentNode,s,h.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,l,e,s,n):null!==s?q(o,null,e,s,0,s.length-1):!n&&null!==l&&G(l,0,l.length-1),V&&"svg"===i&&(V=!1)},B=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),I=(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 I(t,t.j),$((()=>K(t,e)));t.o|=512},K=(t,e)=>{const n=t.t;if(!n)throw Error(`Can't render component <${t.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);return Q(void 0,(()=>Y(t,n,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,Y=async(t,e,n)=>{var o;const l=t.$hostElement$,s=l["s-rc"];n&&(t=>{const e=t.O,n=t.$hostElement$,o=e.o,l=((t,e)=>{var n;const o=N(e),l=i.get(o);if(t=11===t.nodeType?t:u,l)if("string"==typeof l){let s,i=H.get(t=t.head||t);if(i||H.set(t,i=new Set),!i.has(o)){{s=document.querySelector(`[sty-id="${o}"]`)||u.createElement("style"),s.innerHTML=l;const i=null!=(n=a.k)?n:S(u);if(null!=i&&s.setAttribute("nonce",i),!(1&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,n)}else if("host"in t)if(h){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&&"HEAD"!==t.nodeName&&t.insertBefore(s,null)}4&e.o&&(s.innerHTML+=r),i&&i.add(o)}}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&2&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);Z(t,e,l,n),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>tt(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},Z=(t,e,n,o)=>{try{e=e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{const o=t.$hostElement$,l=t.O,s=t.C||P(null,null),i=(t=>t&&t.m===A)(e)?e:x(null,null,e);if(E=o.tagName,n&&i.u)for(const t of Object.keys(i.u))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(i.u[t]=o[t]);i.m=null,i.o|=4,t.C=i,i.v=s.v=o.shadowRoot||o,z(s,i,n)})(t,e,o)}catch(e){l(e,t.$hostElement$)}return null},tt=t=>{const e=t.$hostElement$,n=t.t,o=t.j;64&t.o||(t.o|=64,ot(e),nt(n,"componentDidLoad",void 0,e),t.M(e),o||et()),t.S&&(t.S(),t.S=void 0),512&t.o&&b((()=>J(t,!1))),t.o&=-517},et=()=>{ot(u.documentElement),b((()=>(t=>{const e=a.ce("appload",{detail:{namespace:"analog-clock"}});return t.dispatchEvent(e),e})(c)))},nt=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){l(t,o)}},ot=t=>t.classList.add("hydrated"),lt=(t,e,o,l)=>{const s=n(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/ionic-team/stencil/issues/5457).`);const i=s.P.get(e),r=s.o,c=s.t;o=D(o,l.A[e][0]),8&r&&void 0!==i||o===i||Number.isNaN(i)&&Number.isNaN(o)||(s.P.set(e,o),c&&2==(18&r)&&J(s,!1))},st=(t,e,o)=>{var l,s;const i=t.prototype;if(e.A){const r=Object.entries(null!=(l=e.A)?l:{});if(r.map((([t,[l]])=>{if(31&l||2&o&&32&l){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,t)||{};s&&(e.A[t][0]|=2048),r&&(e.A[t][0]|=4096),(1&o||!s)&&Object.defineProperty(i,t,{get(){{if(!(2048&e.A[t][0]))return((t,e)=>n(this).P.get(e))(0,t);const o=n(this),l=o?o.t:i;if(!l)return;return l[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,t,{set(s){const i=n(this);if(r){const n=32&l?this[t]:i.$hostElement$[t];return void 0===n&&i.P.get(t)?s=i.P.get(t):!i.P.get(t)&&n&&i.P.set(t,n),r.call(this,D(s,l)),void lt(this,t,s=32&l?this[t]:i.$hostElement$[t],e)}{if(!(1&o&&4096&e.A[t][0]))return lt(this,t,s,e),void(1&o&&!i.t&&i.D.then((()=>{4096&e.A[t][0]&&i.t[t]!==i.P.get(t)&&(i.t[t]=s)})));const n=()=>{const n=i.t[t];!i.P.get(t)&&n&&i.P.set(t,n),i.t[t]=D(s,l),lt(this,t,i.t[t],e)};i.t?n():i.D.then((()=>n()))}}})}})),1&o){const o=new Map;i.attributeChangedCallback=function(t,l,s){a.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=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const n=o.t,i=null==(r=e.H)?void 0:r[t];null==i||i.forEach((e=>{null!=n[e]&&n[e].call(n,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=e.H)?s:{}),...r.filter((([t,e])=>15&e[0])).map((([t,e])=>{const n=e[1]||t;return o.set(n,t),n}))]))}}return t},it=(t,e)=>{nt(t,"disconnectedCallback",void 0,e||t)},rt=(t,o={})=>{var f;const d=[],p=o.exclude||[],m=c.customElements,y=u.head,v=y.querySelector("meta[charset]"),w=u.createElement("style"),b=[];let $,g=!0;Object.assign(a,o),a.l=new URL(o.resourcesUrl||"./",u.baseURI).href;let j=!1;if(t.map((t=>{t[1].map((o=>{const r={o:o[0],$:o[1],A:o[2],N:o[3]};4&r.o&&(j=!0),r.A=o[2];const c=r.$,u=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const o={o:0,$hostElement$:t,O:n,P:new Map};o.D=new Promise((t=>o.M=t)),t["s-p"]=[],t["s-rc"]=[],e.set(t,o)})(t=this,r),1&r.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${r.$}! 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),$&&(clearTimeout($),$=null),g?b.push(this):a.jmp((()=>(t=>{if(!(1&a.o)){const e=n(t),o=e.O,r=()=>{};if(1&e.o)(null==e?void 0:e.t)||(null==e?void 0:e.D)&&e.D.then((()=>{}));else{e.o|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){I(e,e.j=n);break}}o.A&&Object.entries(o.A).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)){e.o|=32;{const i=((t,e)=>{const n=t.$.replace(/-/g,"_"),o=t.T;if(!o)return;const i=s.get(o);return i?i[n]:import(`./${o}.entry.js`).then((t=>(s.set(o,t),t[n])),(t=>{l(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.F}" was not found`);o.isProxied||(st(o,n,2),o.isProxied=!0);const r=()=>{};e.o|=8;try{new o(e)}catch(e){l(e,t)}e.o&=-9,r()}if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=N(n);if(!i.has(e)){const o=()=>{};((t,e,n)=>{let o=i.get(t);h&&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(){a.jmp((()=>(async t=>{if(!(1&a.o)){const e=n(t);(null==e?void 0:e.t)?it(e.t,t):(null==e?void 0:e.D)&&e.D.then((()=>it(e.t,t)))}H.has(t)&&H.delete(t),t.shadowRoot&&H.has(t.shadowRoot)&&H.delete(t.shadowRoot)})(this))),a.raf((()=>{var t;const e=n(this);(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}};r.T=t[0],p.includes(c)||m.get(c)||(d.push(c),m.define(c,st(u,r,1)))}))})),d.length>0&&(j&&(w.textContent+=r),w.textContent+=d.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",w.innerHTML.length)){w.setAttribute("data-styles","");const t=null!=(f=a.k)?f:S(u);null!=t&&w.setAttribute("nonce",t),y.insertBefore(w,v?v.nextSibling:y.firstChild)}g=!1,b.length?b.map((t=>t.connectedCallback())):a.jmp((()=>$=setTimeout(et,30)))},ct=t=>a.k=t;export{rt as b,x as h,f as p,o as r,ct as s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as t}from"./p-
|
|
1
|
+
import{r as e,h as t}from"./p-63d46b6b.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-
|
|
5
|
+
const index = require('./index-a5cf26b3.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-
|
|
5
|
+
const index = require('./index-a5cf26b3.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
|
-
Stencil Client Patch Browser v4.
|
|
9
|
+
Stencil Client Patch Browser v4.25.0 | MIT Licensed | https://stenciljs.com
|
|
10
10
|
*/
|
|
11
11
|
var patchBrowser = () => {
|
|
12
12
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('analog-clock.cjs.js', document.baseURI).href));
|
|
@@ -24,7 +24,7 @@ const NAMESPACE = 'analog-clock';
|
|
|
24
24
|
const BUILD = /* analog-clock */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: true, propString: false, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: false, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: false, vdomXlink: false, watchCallback: false };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
|
-
Stencil Client Platform v4.
|
|
27
|
+
Stencil Client Platform v4.25.0 | MIT Licensed | https://stenciljs.com
|
|
28
28
|
*/
|
|
29
29
|
var __defProp = Object.defineProperty;
|
|
30
30
|
var __export = (target, all) => {
|
|
@@ -79,12 +79,17 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
79
79
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
80
80
|
/* webpackMode: "lazy" */
|
|
81
81
|
`./${bundleId}.entry.js${""}`
|
|
82
|
-
)); }).then(
|
|
83
|
-
{
|
|
84
|
-
|
|
82
|
+
)); }).then(
|
|
83
|
+
(importedModule) => {
|
|
84
|
+
{
|
|
85
|
+
cmpModules.set(bundleId, importedModule);
|
|
86
|
+
}
|
|
87
|
+
return importedModule[exportName];
|
|
88
|
+
},
|
|
89
|
+
(e) => {
|
|
90
|
+
consoleError(e, hostRef.$hostElement$);
|
|
85
91
|
}
|
|
86
|
-
|
|
87
|
-
}, consoleError);
|
|
92
|
+
);
|
|
88
93
|
};
|
|
89
94
|
|
|
90
95
|
// src/client/client-style.ts
|
|
@@ -206,6 +211,20 @@ var unwrapErr = (result) => {
|
|
|
206
211
|
throw result.value;
|
|
207
212
|
}
|
|
208
213
|
};
|
|
214
|
+
var createTime = (fnName, tagName = "") => {
|
|
215
|
+
{
|
|
216
|
+
return () => {
|
|
217
|
+
return;
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
};
|
|
221
|
+
var uniqueTime = (key, measureText) => {
|
|
222
|
+
{
|
|
223
|
+
return () => {
|
|
224
|
+
return;
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
};
|
|
209
228
|
var h = (nodeName, vnodeData, ...children) => {
|
|
210
229
|
let child = null;
|
|
211
230
|
let key = null;
|
|
@@ -270,6 +289,110 @@ var newVNode = (tag, text) => {
|
|
|
270
289
|
};
|
|
271
290
|
var Host = {};
|
|
272
291
|
var isHost = (node) => node && node.$tag$ === Host;
|
|
292
|
+
var parsePropertyValue = (propValue, propType) => {
|
|
293
|
+
if (propValue != null && !isComplexType(propValue)) {
|
|
294
|
+
if (propType & 2 /* Number */) {
|
|
295
|
+
return parseFloat(propValue);
|
|
296
|
+
}
|
|
297
|
+
return propValue;
|
|
298
|
+
}
|
|
299
|
+
return propValue;
|
|
300
|
+
};
|
|
301
|
+
var emitEvent = (elm, name, opts) => {
|
|
302
|
+
const ev = plt.ce(name, opts);
|
|
303
|
+
elm.dispatchEvent(ev);
|
|
304
|
+
return ev;
|
|
305
|
+
};
|
|
306
|
+
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
307
|
+
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
308
|
+
let style = styles.get(scopeId2);
|
|
309
|
+
if (supportsConstructableStylesheets && allowCS) {
|
|
310
|
+
style = style || new CSSStyleSheet();
|
|
311
|
+
if (typeof style === "string") {
|
|
312
|
+
style = cssText;
|
|
313
|
+
} else {
|
|
314
|
+
style.replaceSync(cssText);
|
|
315
|
+
}
|
|
316
|
+
} else {
|
|
317
|
+
style = cssText;
|
|
318
|
+
}
|
|
319
|
+
styles.set(scopeId2, style);
|
|
320
|
+
};
|
|
321
|
+
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
322
|
+
var _a;
|
|
323
|
+
const scopeId2 = getScopeId(cmpMeta);
|
|
324
|
+
const style = styles.get(scopeId2);
|
|
325
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
326
|
+
if (style) {
|
|
327
|
+
if (typeof style === "string") {
|
|
328
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
329
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
330
|
+
let styleElm;
|
|
331
|
+
if (!appliedStyles) {
|
|
332
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
333
|
+
}
|
|
334
|
+
if (!appliedStyles.has(scopeId2)) {
|
|
335
|
+
{
|
|
336
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
|
337
|
+
styleElm.innerHTML = style;
|
|
338
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
339
|
+
if (nonce != null) {
|
|
340
|
+
styleElm.setAttribute("nonce", nonce);
|
|
341
|
+
}
|
|
342
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
343
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
|
344
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
345
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
346
|
+
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
347
|
+
} else if ("host" in styleContainerNode) {
|
|
348
|
+
if (supportsConstructableStylesheets) {
|
|
349
|
+
const stylesheet = new CSSStyleSheet();
|
|
350
|
+
stylesheet.replaceSync(style);
|
|
351
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
352
|
+
} else {
|
|
353
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
354
|
+
if (existingStyleContainer) {
|
|
355
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
356
|
+
} else {
|
|
357
|
+
styleContainerNode.prepend(styleElm);
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
} else {
|
|
361
|
+
styleContainerNode.append(styleElm);
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
365
|
+
styleContainerNode.insertBefore(styleElm, null);
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
369
|
+
styleElm.innerHTML += SLOT_FB_CSS;
|
|
370
|
+
}
|
|
371
|
+
if (appliedStyles) {
|
|
372
|
+
appliedStyles.add(scopeId2);
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
376
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
return scopeId2;
|
|
380
|
+
};
|
|
381
|
+
var attachStyles = (hostRef) => {
|
|
382
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
383
|
+
const elm = hostRef.$hostElement$;
|
|
384
|
+
const flags = cmpMeta.$flags$;
|
|
385
|
+
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
386
|
+
const scopeId2 = addStyle(
|
|
387
|
+
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
388
|
+
cmpMeta);
|
|
389
|
+
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
390
|
+
elm["s-sc"] = scopeId2;
|
|
391
|
+
elm.classList.add(scopeId2 + "-h");
|
|
392
|
+
}
|
|
393
|
+
endAttachStyles();
|
|
394
|
+
};
|
|
395
|
+
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
273
396
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
274
397
|
if (oldValue !== newValue) {
|
|
275
398
|
let isProp = isMemberInElement(elm, memberName);
|
|
@@ -305,7 +428,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
305
428
|
elm.setAttribute(memberName, n);
|
|
306
429
|
}
|
|
307
430
|
}
|
|
308
|
-
} else {
|
|
431
|
+
} else if (elm[memberName] !== newValue) {
|
|
309
432
|
elm[memberName] = newValue;
|
|
310
433
|
}
|
|
311
434
|
} catch (e) {
|
|
@@ -556,8 +679,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
556
679
|
}
|
|
557
680
|
};
|
|
558
681
|
var insertBefore = (parent, newNode, reference) => {
|
|
559
|
-
|
|
560
|
-
|
|
682
|
+
{
|
|
683
|
+
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
684
|
+
}
|
|
561
685
|
};
|
|
562
686
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
563
687
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -579,129 +703,18 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
579
703
|
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
580
704
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
581
705
|
};
|
|
582
|
-
var createTime = (fnName, tagName = "") => {
|
|
583
|
-
{
|
|
584
|
-
return () => {
|
|
585
|
-
return;
|
|
586
|
-
};
|
|
587
|
-
}
|
|
588
|
-
};
|
|
589
|
-
var uniqueTime = (key, measureText) => {
|
|
590
|
-
{
|
|
591
|
-
return () => {
|
|
592
|
-
return;
|
|
593
|
-
};
|
|
594
|
-
}
|
|
595
|
-
};
|
|
596
|
-
var parsePropertyValue = (propValue, propType) => {
|
|
597
|
-
if (propValue != null && !isComplexType(propValue)) {
|
|
598
|
-
if (propType & 2 /* Number */) {
|
|
599
|
-
return parseFloat(propValue);
|
|
600
|
-
}
|
|
601
|
-
return propValue;
|
|
602
|
-
}
|
|
603
|
-
return propValue;
|
|
604
|
-
};
|
|
605
|
-
var emitEvent = (elm, name, opts) => {
|
|
606
|
-
const ev = plt.ce(name, opts);
|
|
607
|
-
elm.dispatchEvent(ev);
|
|
608
|
-
return ev;
|
|
609
|
-
};
|
|
610
|
-
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
611
|
-
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
612
|
-
let style = styles.get(scopeId2);
|
|
613
|
-
if (supportsConstructableStylesheets && allowCS) {
|
|
614
|
-
style = style || new CSSStyleSheet();
|
|
615
|
-
if (typeof style === "string") {
|
|
616
|
-
style = cssText;
|
|
617
|
-
} else {
|
|
618
|
-
style.replaceSync(cssText);
|
|
619
|
-
}
|
|
620
|
-
} else {
|
|
621
|
-
style = cssText;
|
|
622
|
-
}
|
|
623
|
-
styles.set(scopeId2, style);
|
|
624
|
-
};
|
|
625
|
-
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
626
|
-
var _a;
|
|
627
|
-
const scopeId2 = getScopeId(cmpMeta);
|
|
628
|
-
const style = styles.get(scopeId2);
|
|
629
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
630
|
-
if (style) {
|
|
631
|
-
if (typeof style === "string") {
|
|
632
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
633
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
634
|
-
let styleElm;
|
|
635
|
-
if (!appliedStyles) {
|
|
636
|
-
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
637
|
-
}
|
|
638
|
-
if (!appliedStyles.has(scopeId2)) {
|
|
639
|
-
{
|
|
640
|
-
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
|
641
|
-
styleElm.innerHTML = style;
|
|
642
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
643
|
-
if (nonce != null) {
|
|
644
|
-
styleElm.setAttribute("nonce", nonce);
|
|
645
|
-
}
|
|
646
|
-
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
647
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
648
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
649
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
650
|
-
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
651
|
-
} else if ("host" in styleContainerNode) {
|
|
652
|
-
if (supportsConstructableStylesheets) {
|
|
653
|
-
const stylesheet = new CSSStyleSheet();
|
|
654
|
-
stylesheet.replaceSync(style);
|
|
655
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
656
|
-
} else {
|
|
657
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
658
|
-
if (existingStyleContainer) {
|
|
659
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
660
|
-
} else {
|
|
661
|
-
styleContainerNode.prepend(styleElm);
|
|
662
|
-
}
|
|
663
|
-
}
|
|
664
|
-
} else {
|
|
665
|
-
styleContainerNode.append(styleElm);
|
|
666
|
-
}
|
|
667
|
-
}
|
|
668
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
669
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
670
|
-
}
|
|
671
|
-
}
|
|
672
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
673
|
-
styleElm.innerHTML += SLOT_FB_CSS;
|
|
674
|
-
}
|
|
675
|
-
if (appliedStyles) {
|
|
676
|
-
appliedStyles.add(scopeId2);
|
|
677
|
-
}
|
|
678
|
-
}
|
|
679
|
-
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
680
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
681
|
-
}
|
|
682
|
-
}
|
|
683
|
-
return scopeId2;
|
|
684
|
-
};
|
|
685
|
-
var attachStyles = (hostRef) => {
|
|
686
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
687
|
-
const elm = hostRef.$hostElement$;
|
|
688
|
-
const flags = cmpMeta.$flags$;
|
|
689
|
-
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
690
|
-
const scopeId2 = addStyle(
|
|
691
|
-
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
692
|
-
cmpMeta);
|
|
693
|
-
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
694
|
-
elm["s-sc"] = scopeId2;
|
|
695
|
-
elm.classList.add(scopeId2 + "-h");
|
|
696
|
-
}
|
|
697
|
-
endAttachStyles();
|
|
698
|
-
};
|
|
699
|
-
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
700
706
|
|
|
701
707
|
// src/runtime/update-component.ts
|
|
702
708
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
703
709
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
704
|
-
ancestorComponent["s-p"].push(
|
|
710
|
+
const index = ancestorComponent["s-p"].push(
|
|
711
|
+
new Promise(
|
|
712
|
+
(r) => hostRef.$onRenderResolve$ = () => {
|
|
713
|
+
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
714
|
+
r();
|
|
715
|
+
}
|
|
716
|
+
)
|
|
717
|
+
);
|
|
705
718
|
}
|
|
706
719
|
};
|
|
707
720
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -797,7 +810,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
797
810
|
addHydratedFlag(elm);
|
|
798
811
|
}
|
|
799
812
|
{
|
|
800
|
-
safeCall(instance, "componentDidLoad");
|
|
813
|
+
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
801
814
|
}
|
|
802
815
|
endPostUpdate();
|
|
803
816
|
{
|
|
@@ -826,12 +839,12 @@ var appDidLoad = (who) => {
|
|
|
826
839
|
}
|
|
827
840
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
828
841
|
};
|
|
829
|
-
var safeCall = (instance, method, arg) => {
|
|
842
|
+
var safeCall = (instance, method, arg, elm) => {
|
|
830
843
|
if (instance && instance[method]) {
|
|
831
844
|
try {
|
|
832
845
|
return instance[method](arg);
|
|
833
846
|
} catch (e) {
|
|
834
|
-
consoleError(e);
|
|
847
|
+
consoleError(e, elm);
|
|
835
848
|
}
|
|
836
849
|
}
|
|
837
850
|
return void 0;
|
|
@@ -874,62 +887,69 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
874
887
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
875
888
|
members.map(([memberName, [memberFlags]]) => {
|
|
876
889
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
877
|
-
|
|
890
|
+
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
891
|
+
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
892
|
+
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
893
|
+
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
878
894
|
Object.defineProperty(prototype, memberName, {
|
|
879
895
|
get() {
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
},
|
|
885
|
-
configurable: true,
|
|
886
|
-
enumerable: true
|
|
887
|
-
});
|
|
888
|
-
} else if (flags & 1 /* isElementConstructor */ && memberFlags & 2048 /* Getter */) {
|
|
889
|
-
{
|
|
890
|
-
Object.defineProperty(prototype, memberName, {
|
|
891
|
-
get() {
|
|
896
|
+
{
|
|
897
|
+
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
898
|
+
return getValue(this, memberName);
|
|
899
|
+
}
|
|
892
900
|
const ref = getHostRef(this);
|
|
893
901
|
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
894
902
|
if (!instance) return;
|
|
895
903
|
return instance[memberName];
|
|
896
|
-
}
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
}
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
904
|
+
}
|
|
905
|
+
},
|
|
906
|
+
configurable: true,
|
|
907
|
+
enumerable: true
|
|
908
|
+
});
|
|
909
|
+
}
|
|
910
|
+
Object.defineProperty(prototype, memberName, {
|
|
911
|
+
set(newValue) {
|
|
912
|
+
const ref = getHostRef(this);
|
|
913
|
+
if (origSetter) {
|
|
914
|
+
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
915
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
916
|
+
newValue = ref.$instanceValues$.get(memberName);
|
|
917
|
+
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
918
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
919
|
+
}
|
|
920
|
+
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
921
|
+
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
922
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
923
|
+
return;
|
|
924
|
+
}
|
|
925
|
+
{
|
|
926
|
+
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
927
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
928
|
+
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
929
|
+
ref.$onReadyPromise$.then(() => {
|
|
930
|
+
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
931
|
+
ref.$lazyInstance$[memberName] = newValue;
|
|
932
|
+
}
|
|
933
|
+
});
|
|
914
934
|
}
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, cmpMeta.$members$[memberName][0]);
|
|
922
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
923
|
-
};
|
|
924
|
-
if (ref.$lazyInstance$) {
|
|
925
|
-
setterSetVal();
|
|
926
|
-
} else {
|
|
927
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
935
|
+
return;
|
|
936
|
+
}
|
|
937
|
+
const setterSetVal = () => {
|
|
938
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
|
939
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
940
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
928
941
|
}
|
|
942
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
943
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
944
|
+
};
|
|
945
|
+
if (ref.$lazyInstance$) {
|
|
946
|
+
setterSetVal();
|
|
947
|
+
} else {
|
|
948
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
929
949
|
}
|
|
930
|
-
}
|
|
950
|
+
}
|
|
931
951
|
}
|
|
932
|
-
}
|
|
952
|
+
});
|
|
933
953
|
}
|
|
934
954
|
});
|
|
935
955
|
if ((flags & 1 /* isElementConstructor */)) {
|
|
@@ -959,8 +979,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
959
979
|
return;
|
|
960
980
|
}
|
|
961
981
|
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
962
|
-
|
|
963
|
-
|
|
982
|
+
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
983
|
+
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
984
|
+
this[propName] = newValue;
|
|
964
985
|
}
|
|
965
986
|
});
|
|
966
987
|
};
|
|
@@ -984,9 +1005,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
984
1005
|
let Cstr;
|
|
985
1006
|
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
986
1007
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
const CstrImport = loadModule(cmpMeta);
|
|
1008
|
+
{
|
|
1009
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
990
1010
|
if (CstrImport && "then" in CstrImport) {
|
|
991
1011
|
const endLoad = uniqueTime();
|
|
992
1012
|
Cstr = await CstrImport;
|
|
@@ -1008,16 +1028,12 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1008
1028
|
try {
|
|
1009
1029
|
new Cstr(hostRef);
|
|
1010
1030
|
} catch (e) {
|
|
1011
|
-
consoleError(e);
|
|
1031
|
+
consoleError(e, elm);
|
|
1012
1032
|
}
|
|
1013
1033
|
{
|
|
1014
1034
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
1015
1035
|
}
|
|
1016
1036
|
endNewInstance();
|
|
1017
|
-
} else {
|
|
1018
|
-
Cstr = elm.constructor;
|
|
1019
|
-
const cmpTag = elm.localName;
|
|
1020
|
-
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1021
1037
|
}
|
|
1022
1038
|
if (Cstr && Cstr.style) {
|
|
1023
1039
|
let style;
|
|
@@ -1040,7 +1056,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1040
1056
|
schedule();
|
|
1041
1057
|
}
|
|
1042
1058
|
};
|
|
1043
|
-
var fireConnectedCallback = (instance) => {
|
|
1059
|
+
var fireConnectedCallback = (instance, elm) => {
|
|
1044
1060
|
};
|
|
1045
1061
|
|
|
1046
1062
|
// src/runtime/connected-callback.ts
|
|
@@ -1080,18 +1096,18 @@ var connectedCallback = (elm) => {
|
|
|
1080
1096
|
endConnected();
|
|
1081
1097
|
}
|
|
1082
1098
|
};
|
|
1083
|
-
var disconnectInstance = (instance) => {
|
|
1099
|
+
var disconnectInstance = (instance, elm) => {
|
|
1084
1100
|
{
|
|
1085
|
-
safeCall(instance, "disconnectedCallback");
|
|
1101
|
+
safeCall(instance, "disconnectedCallback", void 0, elm || instance);
|
|
1086
1102
|
}
|
|
1087
1103
|
};
|
|
1088
1104
|
var disconnectedCallback = async (elm) => {
|
|
1089
1105
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1090
1106
|
const hostRef = getHostRef(elm);
|
|
1091
1107
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1092
|
-
disconnectInstance(hostRef.$lazyInstance
|
|
1108
|
+
disconnectInstance(hostRef.$lazyInstance$, elm);
|
|
1093
1109
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1094
|
-
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance
|
|
1110
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
|
|
1095
1111
|
}
|
|
1096
1112
|
}
|
|
1097
1113
|
if (rootAppliedStyles.has(elm)) {
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-a5cf26b3.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-9e85a1b1.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;
|
package/dist/esm/analog-clock.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-9e85a1b1.js';
|
|
2
|
+
export { s as setNonce } from './index-9e85a1b1.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v4.
|
|
6
|
+
Stencil Client Patch Browser v4.25.0 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
var patchBrowser = () => {
|
|
9
9
|
const importMeta = import.meta.url;
|
|
@@ -2,7 +2,7 @@ const NAMESPACE = 'analog-clock';
|
|
|
2
2
|
const BUILD = /* analog-clock */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: true, propString: false, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: false, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: false, vdomXlink: false, watchCallback: false };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.
|
|
5
|
+
Stencil Client Platform v4.25.0 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __export = (target, all) => {
|
|
@@ -57,12 +57,17 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
57
57
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
58
58
|
/* webpackMode: "lazy" */
|
|
59
59
|
`./${bundleId}.entry.js${""}`
|
|
60
|
-
).then(
|
|
61
|
-
{
|
|
62
|
-
|
|
60
|
+
).then(
|
|
61
|
+
(importedModule) => {
|
|
62
|
+
{
|
|
63
|
+
cmpModules.set(bundleId, importedModule);
|
|
64
|
+
}
|
|
65
|
+
return importedModule[exportName];
|
|
66
|
+
},
|
|
67
|
+
(e) => {
|
|
68
|
+
consoleError(e, hostRef.$hostElement$);
|
|
63
69
|
}
|
|
64
|
-
|
|
65
|
-
}, consoleError);
|
|
70
|
+
);
|
|
66
71
|
};
|
|
67
72
|
|
|
68
73
|
// src/client/client-style.ts
|
|
@@ -184,6 +189,20 @@ var unwrapErr = (result) => {
|
|
|
184
189
|
throw result.value;
|
|
185
190
|
}
|
|
186
191
|
};
|
|
192
|
+
var createTime = (fnName, tagName = "") => {
|
|
193
|
+
{
|
|
194
|
+
return () => {
|
|
195
|
+
return;
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
var uniqueTime = (key, measureText) => {
|
|
200
|
+
{
|
|
201
|
+
return () => {
|
|
202
|
+
return;
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
};
|
|
187
206
|
var h = (nodeName, vnodeData, ...children) => {
|
|
188
207
|
let child = null;
|
|
189
208
|
let key = null;
|
|
@@ -248,6 +267,110 @@ var newVNode = (tag, text) => {
|
|
|
248
267
|
};
|
|
249
268
|
var Host = {};
|
|
250
269
|
var isHost = (node) => node && node.$tag$ === Host;
|
|
270
|
+
var parsePropertyValue = (propValue, propType) => {
|
|
271
|
+
if (propValue != null && !isComplexType(propValue)) {
|
|
272
|
+
if (propType & 2 /* Number */) {
|
|
273
|
+
return parseFloat(propValue);
|
|
274
|
+
}
|
|
275
|
+
return propValue;
|
|
276
|
+
}
|
|
277
|
+
return propValue;
|
|
278
|
+
};
|
|
279
|
+
var emitEvent = (elm, name, opts) => {
|
|
280
|
+
const ev = plt.ce(name, opts);
|
|
281
|
+
elm.dispatchEvent(ev);
|
|
282
|
+
return ev;
|
|
283
|
+
};
|
|
284
|
+
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
285
|
+
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
286
|
+
let style = styles.get(scopeId2);
|
|
287
|
+
if (supportsConstructableStylesheets && allowCS) {
|
|
288
|
+
style = style || new CSSStyleSheet();
|
|
289
|
+
if (typeof style === "string") {
|
|
290
|
+
style = cssText;
|
|
291
|
+
} else {
|
|
292
|
+
style.replaceSync(cssText);
|
|
293
|
+
}
|
|
294
|
+
} else {
|
|
295
|
+
style = cssText;
|
|
296
|
+
}
|
|
297
|
+
styles.set(scopeId2, style);
|
|
298
|
+
};
|
|
299
|
+
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
300
|
+
var _a;
|
|
301
|
+
const scopeId2 = getScopeId(cmpMeta);
|
|
302
|
+
const style = styles.get(scopeId2);
|
|
303
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
304
|
+
if (style) {
|
|
305
|
+
if (typeof style === "string") {
|
|
306
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
307
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
308
|
+
let styleElm;
|
|
309
|
+
if (!appliedStyles) {
|
|
310
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
311
|
+
}
|
|
312
|
+
if (!appliedStyles.has(scopeId2)) {
|
|
313
|
+
{
|
|
314
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
|
315
|
+
styleElm.innerHTML = style;
|
|
316
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
317
|
+
if (nonce != null) {
|
|
318
|
+
styleElm.setAttribute("nonce", nonce);
|
|
319
|
+
}
|
|
320
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
321
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
|
322
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
323
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
324
|
+
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
325
|
+
} else if ("host" in styleContainerNode) {
|
|
326
|
+
if (supportsConstructableStylesheets) {
|
|
327
|
+
const stylesheet = new CSSStyleSheet();
|
|
328
|
+
stylesheet.replaceSync(style);
|
|
329
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
330
|
+
} else {
|
|
331
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
332
|
+
if (existingStyleContainer) {
|
|
333
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
334
|
+
} else {
|
|
335
|
+
styleContainerNode.prepend(styleElm);
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
} else {
|
|
339
|
+
styleContainerNode.append(styleElm);
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
343
|
+
styleContainerNode.insertBefore(styleElm, null);
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
347
|
+
styleElm.innerHTML += SLOT_FB_CSS;
|
|
348
|
+
}
|
|
349
|
+
if (appliedStyles) {
|
|
350
|
+
appliedStyles.add(scopeId2);
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
354
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
return scopeId2;
|
|
358
|
+
};
|
|
359
|
+
var attachStyles = (hostRef) => {
|
|
360
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
361
|
+
const elm = hostRef.$hostElement$;
|
|
362
|
+
const flags = cmpMeta.$flags$;
|
|
363
|
+
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
364
|
+
const scopeId2 = addStyle(
|
|
365
|
+
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
366
|
+
cmpMeta);
|
|
367
|
+
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
368
|
+
elm["s-sc"] = scopeId2;
|
|
369
|
+
elm.classList.add(scopeId2 + "-h");
|
|
370
|
+
}
|
|
371
|
+
endAttachStyles();
|
|
372
|
+
};
|
|
373
|
+
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
251
374
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
252
375
|
if (oldValue !== newValue) {
|
|
253
376
|
let isProp = isMemberInElement(elm, memberName);
|
|
@@ -283,7 +406,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
283
406
|
elm.setAttribute(memberName, n);
|
|
284
407
|
}
|
|
285
408
|
}
|
|
286
|
-
} else {
|
|
409
|
+
} else if (elm[memberName] !== newValue) {
|
|
287
410
|
elm[memberName] = newValue;
|
|
288
411
|
}
|
|
289
412
|
} catch (e) {
|
|
@@ -534,8 +657,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
534
657
|
}
|
|
535
658
|
};
|
|
536
659
|
var insertBefore = (parent, newNode, reference) => {
|
|
537
|
-
|
|
538
|
-
|
|
660
|
+
{
|
|
661
|
+
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
662
|
+
}
|
|
539
663
|
};
|
|
540
664
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
541
665
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -557,129 +681,18 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
557
681
|
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
558
682
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
559
683
|
};
|
|
560
|
-
var createTime = (fnName, tagName = "") => {
|
|
561
|
-
{
|
|
562
|
-
return () => {
|
|
563
|
-
return;
|
|
564
|
-
};
|
|
565
|
-
}
|
|
566
|
-
};
|
|
567
|
-
var uniqueTime = (key, measureText) => {
|
|
568
|
-
{
|
|
569
|
-
return () => {
|
|
570
|
-
return;
|
|
571
|
-
};
|
|
572
|
-
}
|
|
573
|
-
};
|
|
574
|
-
var parsePropertyValue = (propValue, propType) => {
|
|
575
|
-
if (propValue != null && !isComplexType(propValue)) {
|
|
576
|
-
if (propType & 2 /* Number */) {
|
|
577
|
-
return parseFloat(propValue);
|
|
578
|
-
}
|
|
579
|
-
return propValue;
|
|
580
|
-
}
|
|
581
|
-
return propValue;
|
|
582
|
-
};
|
|
583
|
-
var emitEvent = (elm, name, opts) => {
|
|
584
|
-
const ev = plt.ce(name, opts);
|
|
585
|
-
elm.dispatchEvent(ev);
|
|
586
|
-
return ev;
|
|
587
|
-
};
|
|
588
|
-
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
589
|
-
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
590
|
-
let style = styles.get(scopeId2);
|
|
591
|
-
if (supportsConstructableStylesheets && allowCS) {
|
|
592
|
-
style = style || new CSSStyleSheet();
|
|
593
|
-
if (typeof style === "string") {
|
|
594
|
-
style = cssText;
|
|
595
|
-
} else {
|
|
596
|
-
style.replaceSync(cssText);
|
|
597
|
-
}
|
|
598
|
-
} else {
|
|
599
|
-
style = cssText;
|
|
600
|
-
}
|
|
601
|
-
styles.set(scopeId2, style);
|
|
602
|
-
};
|
|
603
|
-
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
604
|
-
var _a;
|
|
605
|
-
const scopeId2 = getScopeId(cmpMeta);
|
|
606
|
-
const style = styles.get(scopeId2);
|
|
607
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
608
|
-
if (style) {
|
|
609
|
-
if (typeof style === "string") {
|
|
610
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
611
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
612
|
-
let styleElm;
|
|
613
|
-
if (!appliedStyles) {
|
|
614
|
-
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
615
|
-
}
|
|
616
|
-
if (!appliedStyles.has(scopeId2)) {
|
|
617
|
-
{
|
|
618
|
-
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
|
619
|
-
styleElm.innerHTML = style;
|
|
620
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
621
|
-
if (nonce != null) {
|
|
622
|
-
styleElm.setAttribute("nonce", nonce);
|
|
623
|
-
}
|
|
624
|
-
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
625
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
626
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
627
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
628
|
-
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
629
|
-
} else if ("host" in styleContainerNode) {
|
|
630
|
-
if (supportsConstructableStylesheets) {
|
|
631
|
-
const stylesheet = new CSSStyleSheet();
|
|
632
|
-
stylesheet.replaceSync(style);
|
|
633
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
634
|
-
} else {
|
|
635
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
636
|
-
if (existingStyleContainer) {
|
|
637
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
638
|
-
} else {
|
|
639
|
-
styleContainerNode.prepend(styleElm);
|
|
640
|
-
}
|
|
641
|
-
}
|
|
642
|
-
} else {
|
|
643
|
-
styleContainerNode.append(styleElm);
|
|
644
|
-
}
|
|
645
|
-
}
|
|
646
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
647
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
648
|
-
}
|
|
649
|
-
}
|
|
650
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
651
|
-
styleElm.innerHTML += SLOT_FB_CSS;
|
|
652
|
-
}
|
|
653
|
-
if (appliedStyles) {
|
|
654
|
-
appliedStyles.add(scopeId2);
|
|
655
|
-
}
|
|
656
|
-
}
|
|
657
|
-
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
658
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
659
|
-
}
|
|
660
|
-
}
|
|
661
|
-
return scopeId2;
|
|
662
|
-
};
|
|
663
|
-
var attachStyles = (hostRef) => {
|
|
664
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
665
|
-
const elm = hostRef.$hostElement$;
|
|
666
|
-
const flags = cmpMeta.$flags$;
|
|
667
|
-
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
668
|
-
const scopeId2 = addStyle(
|
|
669
|
-
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
670
|
-
cmpMeta);
|
|
671
|
-
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
672
|
-
elm["s-sc"] = scopeId2;
|
|
673
|
-
elm.classList.add(scopeId2 + "-h");
|
|
674
|
-
}
|
|
675
|
-
endAttachStyles();
|
|
676
|
-
};
|
|
677
|
-
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
678
684
|
|
|
679
685
|
// src/runtime/update-component.ts
|
|
680
686
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
681
687
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
682
|
-
ancestorComponent["s-p"].push(
|
|
688
|
+
const index = ancestorComponent["s-p"].push(
|
|
689
|
+
new Promise(
|
|
690
|
+
(r) => hostRef.$onRenderResolve$ = () => {
|
|
691
|
+
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
692
|
+
r();
|
|
693
|
+
}
|
|
694
|
+
)
|
|
695
|
+
);
|
|
683
696
|
}
|
|
684
697
|
};
|
|
685
698
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -775,7 +788,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
775
788
|
addHydratedFlag(elm);
|
|
776
789
|
}
|
|
777
790
|
{
|
|
778
|
-
safeCall(instance, "componentDidLoad");
|
|
791
|
+
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
779
792
|
}
|
|
780
793
|
endPostUpdate();
|
|
781
794
|
{
|
|
@@ -804,12 +817,12 @@ var appDidLoad = (who) => {
|
|
|
804
817
|
}
|
|
805
818
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
806
819
|
};
|
|
807
|
-
var safeCall = (instance, method, arg) => {
|
|
820
|
+
var safeCall = (instance, method, arg, elm) => {
|
|
808
821
|
if (instance && instance[method]) {
|
|
809
822
|
try {
|
|
810
823
|
return instance[method](arg);
|
|
811
824
|
} catch (e) {
|
|
812
|
-
consoleError(e);
|
|
825
|
+
consoleError(e, elm);
|
|
813
826
|
}
|
|
814
827
|
}
|
|
815
828
|
return void 0;
|
|
@@ -852,62 +865,69 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
852
865
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
853
866
|
members.map(([memberName, [memberFlags]]) => {
|
|
854
867
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
855
|
-
|
|
868
|
+
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
869
|
+
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
870
|
+
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
871
|
+
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
856
872
|
Object.defineProperty(prototype, memberName, {
|
|
857
873
|
get() {
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
},
|
|
863
|
-
configurable: true,
|
|
864
|
-
enumerable: true
|
|
865
|
-
});
|
|
866
|
-
} else if (flags & 1 /* isElementConstructor */ && memberFlags & 2048 /* Getter */) {
|
|
867
|
-
{
|
|
868
|
-
Object.defineProperty(prototype, memberName, {
|
|
869
|
-
get() {
|
|
874
|
+
{
|
|
875
|
+
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
876
|
+
return getValue(this, memberName);
|
|
877
|
+
}
|
|
870
878
|
const ref = getHostRef(this);
|
|
871
879
|
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
872
880
|
if (!instance) return;
|
|
873
881
|
return instance[memberName];
|
|
874
|
-
}
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
}
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
882
|
+
}
|
|
883
|
+
},
|
|
884
|
+
configurable: true,
|
|
885
|
+
enumerable: true
|
|
886
|
+
});
|
|
887
|
+
}
|
|
888
|
+
Object.defineProperty(prototype, memberName, {
|
|
889
|
+
set(newValue) {
|
|
890
|
+
const ref = getHostRef(this);
|
|
891
|
+
if (origSetter) {
|
|
892
|
+
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
893
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
894
|
+
newValue = ref.$instanceValues$.get(memberName);
|
|
895
|
+
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
896
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
897
|
+
}
|
|
898
|
+
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
899
|
+
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
900
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
901
|
+
return;
|
|
902
|
+
}
|
|
903
|
+
{
|
|
904
|
+
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
905
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
906
|
+
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
907
|
+
ref.$onReadyPromise$.then(() => {
|
|
908
|
+
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
909
|
+
ref.$lazyInstance$[memberName] = newValue;
|
|
910
|
+
}
|
|
911
|
+
});
|
|
892
912
|
}
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, cmpMeta.$members$[memberName][0]);
|
|
900
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
901
|
-
};
|
|
902
|
-
if (ref.$lazyInstance$) {
|
|
903
|
-
setterSetVal();
|
|
904
|
-
} else {
|
|
905
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
913
|
+
return;
|
|
914
|
+
}
|
|
915
|
+
const setterSetVal = () => {
|
|
916
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
|
917
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
918
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
906
919
|
}
|
|
920
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
921
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
922
|
+
};
|
|
923
|
+
if (ref.$lazyInstance$) {
|
|
924
|
+
setterSetVal();
|
|
925
|
+
} else {
|
|
926
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
907
927
|
}
|
|
908
|
-
}
|
|
928
|
+
}
|
|
909
929
|
}
|
|
910
|
-
}
|
|
930
|
+
});
|
|
911
931
|
}
|
|
912
932
|
});
|
|
913
933
|
if ((flags & 1 /* isElementConstructor */)) {
|
|
@@ -937,8 +957,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
937
957
|
return;
|
|
938
958
|
}
|
|
939
959
|
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
940
|
-
|
|
941
|
-
|
|
960
|
+
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
961
|
+
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
962
|
+
this[propName] = newValue;
|
|
942
963
|
}
|
|
943
964
|
});
|
|
944
965
|
};
|
|
@@ -962,9 +983,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
962
983
|
let Cstr;
|
|
963
984
|
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
964
985
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
const CstrImport = loadModule(cmpMeta);
|
|
986
|
+
{
|
|
987
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
968
988
|
if (CstrImport && "then" in CstrImport) {
|
|
969
989
|
const endLoad = uniqueTime();
|
|
970
990
|
Cstr = await CstrImport;
|
|
@@ -986,16 +1006,12 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
986
1006
|
try {
|
|
987
1007
|
new Cstr(hostRef);
|
|
988
1008
|
} catch (e) {
|
|
989
|
-
consoleError(e);
|
|
1009
|
+
consoleError(e, elm);
|
|
990
1010
|
}
|
|
991
1011
|
{
|
|
992
1012
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
993
1013
|
}
|
|
994
1014
|
endNewInstance();
|
|
995
|
-
} else {
|
|
996
|
-
Cstr = elm.constructor;
|
|
997
|
-
const cmpTag = elm.localName;
|
|
998
|
-
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
999
1015
|
}
|
|
1000
1016
|
if (Cstr && Cstr.style) {
|
|
1001
1017
|
let style;
|
|
@@ -1018,7 +1034,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1018
1034
|
schedule();
|
|
1019
1035
|
}
|
|
1020
1036
|
};
|
|
1021
|
-
var fireConnectedCallback = (instance) => {
|
|
1037
|
+
var fireConnectedCallback = (instance, elm) => {
|
|
1022
1038
|
};
|
|
1023
1039
|
|
|
1024
1040
|
// src/runtime/connected-callback.ts
|
|
@@ -1058,18 +1074,18 @@ var connectedCallback = (elm) => {
|
|
|
1058
1074
|
endConnected();
|
|
1059
1075
|
}
|
|
1060
1076
|
};
|
|
1061
|
-
var disconnectInstance = (instance) => {
|
|
1077
|
+
var disconnectInstance = (instance, elm) => {
|
|
1062
1078
|
{
|
|
1063
|
-
safeCall(instance, "disconnectedCallback");
|
|
1079
|
+
safeCall(instance, "disconnectedCallback", void 0, elm || instance);
|
|
1064
1080
|
}
|
|
1065
1081
|
};
|
|
1066
1082
|
var disconnectedCallback = async (elm) => {
|
|
1067
1083
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1068
1084
|
const hostRef = getHostRef(elm);
|
|
1069
1085
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1070
|
-
disconnectInstance(hostRef.$lazyInstance
|
|
1086
|
+
disconnectInstance(hostRef.$lazyInstance$, elm);
|
|
1071
1087
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1072
|
-
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance
|
|
1088
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
|
|
1073
1089
|
}
|
|
1074
1090
|
}
|
|
1075
1091
|
if (rootAppliedStyles.has(elm)) {
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-9e85a1b1.js';
|
|
2
|
+
export { s as setNonce } from './index-9e85a1b1.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.
|
|
3
|
+
"version": "0.1.557",
|
|
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.
|
|
28
|
+
"@stencil/core": "4.25.0"
|
|
29
29
|
},
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"cspell": "8.17.2",
|
|
33
|
-
"eslint": "9.
|
|
33
|
+
"eslint": "9.19.0",
|
|
34
34
|
"prettier": "3.4.2",
|
|
35
35
|
"typescript": "5.7.3"
|
|
36
36
|
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),o=(e,n)=>{t.set(n.t=e,n)},l=(e,t)=>(0,console.error)(e,t),s=new Map,i=new Map,r="slot-fb{display:contents}slot-fb[hidden]{display:none}",c="undefined"!=typeof window?window:{},u=c.document||{head:{}},a={o:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)},f=e=>Promise.resolve(e),h=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),d=!1,p=[],m=[],y=(e,t)=>n=>{e.push(n),d||(d=!0,t&&4&a.o?v(b):a.raf(b))},w=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){l(e)}e.length=0},b=()=>{w(p),w(m),(d=p.length>0)&&a.raf(b)},v=e=>f().then(e),$=y(m,!0),g=e=>"object"==(e=typeof e)||"function"===e;function S(e){var t,n,o;return null!=(o=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>O,map:()=>k,ok:()=>j,unwrap:()=>C,unwrapErr:()=>M});var j=e=>({isOk:!0,isErr:!1,value:e}),O=e=>({isOk:!1,isErr:!0,value:e});function k(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>j(e))):j(n)}if(e.isErr)return O(e.value);throw"should never get here"}var E,C=e=>{if(e.isOk)return e.value;throw e.value},M=e=>{if(e.isErr)return e.value;throw e.value},x=(e,t,...n)=>{let o=null,l=null,s=!1,i=!1;const r=[],c=t=>{for(let n=0;n<t.length;n++)o=t[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof e&&!g(o))&&(o+=""),s&&i?r[r.length-1].i+=o:r.push(s?P(null,o):o),i=s)};if(c(n),t){t.key&&(l=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=P(e,null);return u.u=t,r.length>0&&(u.h=r),u.p=l,u},P=(e,t)=>({o:0,m:e,i:t,v:null,h:null,u:null,p:null}),A={},D=(e,t,n,o,l,s)=>{if(n!==o){let i=((e,t)=>t in e)(e,t);if(t.toLowerCase(),"class"===t){const t=e.classList,l=N(n);let s=N(o);e["s-si"]?(s.push(e["s-si"]),l.forEach((t=>{t.startsWith(e["s-si"])&&s.push(t)})),s=[...new Set(s)],t.add(...s),delete e["s-si"]):(t.remove(...l.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!l.includes(e)))))}else if("key"===t);else{const r=g(o);if((i||r&&null!==o)&&!l)try{if(e.tagName.includes("-"))e[t]=o;else{const l=null==o?"":o;"list"===t?i=!1:null!=n&&e[t]==l||("function"==typeof e.__lookupSetter__(t)?e[t]=l:e.setAttribute(t,l))}}catch(e){}null==o||!1===o?!1===o&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&s||l)&&!r&&e.setAttribute(t,o=!0===o?"":o)}}},H=/\s/,N=e=>("object"==typeof e&&"baseVal"in e&&(e=e.baseVal),e?e.split(H):[]),T=(e,t,n)=>{const o=11===t.v.nodeType&&t.v.host?t.v.host:t.v,l=e&&e.u||{},s=t.u||{};for(const e of F(Object.keys(l)))e in s||D(o,e,l[e],void 0,n,t.o);for(const e of F(Object.keys(s)))D(o,e,l[e],s[e],n,t.o)};function F(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var L=!1,R=(e,t,n)=>{const o=t.h[n];let l,s,i=0;if(L||(L="svg"===o.m),l=o.v=u.createElementNS(L?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.m),L&&"foreignObject"===o.m&&(L=!1),T(null,o,L),o.h)for(i=0;i<o.h.length;++i)s=R(e,o,i),s&&l.appendChild(s);return"svg"===o.m?L=!1:"foreignObject"===l.tagName&&(L=!0),l["s-hn"]=E,l},U=(e,t,n,o,l,s)=>{let i,r=e;for(r.shadowRoot&&r.tagName===E&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=R(null,n,l),i&&(o[l].v=i,G(r,i,t)))},V=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.v;e&&e.remove()}}},W=(e,t,n=!1)=>e.m===t.m&&(n?(n&&!e.p&&t.p&&(e.p=t.p),!0):e.p===t.p),q=(e,t,n=!1)=>{const o=t.v=e.v,l=e.h,s=t.h,i=t.m;T(e,t,L="svg"===i||"foreignObject"!==i&&L),null!==l&&null!==s?((e,t,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=t.length-1,h=t[0],d=t[f],p=o.length-1,m=o[0],y=o[p];for(;r<=f&&c<=p;)if(null==h)h=t[++r];else if(null==d)d=t[--f];else if(null==m)m=o[++c];else if(null==y)y=o[--p];else if(W(h,m,l))q(h,m,l),h=t[++r],m=o[++c];else if(W(d,y,l))q(d,y,l),d=t[--f],y=o[--p];else if(W(h,y,l))q(h,y,l),G(e,h.v,d.v.nextSibling),h=t[++r],y=o[--p];else if(W(d,m,l))q(d,m,l),G(e,d.v,h.v),d=t[--f],m=o[++c];else{for(u=-1,a=r;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(i=t[u],i.m!==m.m?s=R(t&&t[c],n,u):(q(i,m,l),t[u]=void 0,s=i.v),m=o[++c]):(s=R(t&&t[c],n,c),m=o[++c]),s&&G(h.v.parentNode,s,h.v)}r>f?U(e,null==o[p+1]?null:o[p+1].v,n,o,c,p):c>p&&V(t,r,f)})(o,l,t,s,n):null!==s?U(o,null,t,s,0,s.length-1):!n&&null!==l&&V(l,0,l.length-1),L&&"svg"===i&&(L=!1)},G=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),_=(e,t)=>null==e||g(e)?e:2&t?parseFloat(e):e,z=new WeakMap,B=e=>"sc-"+e.$,I=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},J=(e,t)=>{if(e.o|=16,!(4&e.o))return I(e,e.j),$((()=>K(e,t)));e.o|=512},K=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);return Q(void 0,(()=>Y(e,n,t)))},Q=(e,t)=>X(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),X=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,Y=async(e,t,n)=>{var o;const l=e.$hostElement$,s=l["s-rc"];n&&(e=>{const t=e.O,n=e.$hostElement$,o=t.o,l=((e,t)=>{var n;const o=B(t),l=i.get(o);if(e=11===e.nodeType?e:u,l)if("string"==typeof l){let s,i=z.get(e=e.head||e);if(i||z.set(e,i=new Set),!i.has(o)){{s=document.querySelector(`[sty-id="${o}"]`)||u.createElement("style"),s.innerHTML=l;const i=null!=(n=a.k)?n:S(u);if(null!=i&&s.setAttribute("nonce",i),!(1&t.o))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,n)}else if("host"in e)if(h){const t=new CSSStyleSheet;t.replaceSync(l),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=l+t.innerHTML:e.prepend(s)}else e.append(s);1&t.o&&"HEAD"!==e.nodeName&&e.insertBefore(s,null)}4&t.o&&(s.innerHTML+=r),i&&i.add(o)}}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&o&&2&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(e);Z(e,t,l,n),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>ee(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},Z=(e,t,n,o)=>{try{t=t.render(),e.o&=-17,e.o|=2,((e,t,n=!1)=>{const o=e.$hostElement$,l=e.O,s=e.C||P(null,null),i=(e=>e&&e.m===A)(t)?t:x(null,null,t);if(E=o.tagName,n&&i.u)for(const e of Object.keys(i.u))o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(i.u[e]=o[e]);i.m=null,i.o|=4,e.C=i,i.v=s.v=o.shadowRoot||o,q(s,i,n)})(e,t,o)}catch(t){l(t,e.$hostElement$)}return null},ee=e=>{const t=e.$hostElement$,n=e.t,o=e.j;64&e.o||(e.o|=64,oe(t),ne(n,"componentDidLoad"),e.M(t),o||te()),e.S&&(e.S(),e.S=void 0),512&e.o&&v((()=>J(e,!1))),e.o&=-517},te=()=>{oe(u.documentElement),v((()=>(e=>{const t=a.ce("appload",{detail:{namespace:"analog-clock"}});return e.dispatchEvent(t),t})(c)))},ne=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){l(e)}},oe=e=>e.classList.add("hydrated"),le=(e,t,o,l)=>{const s=n(e);if(!s)throw Error(`Couldn't find host element for "${l.$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=s.P.get(t),r=s.o,c=s.t;o=_(o,l.A[t][0]),8&r&&void 0!==i||o===i||Number.isNaN(i)&&Number.isNaN(o)||(s.P.set(t,o),c&&2==(18&r)&&J(s,!1))},se=(e,t,o)=>{var l,s;const i=e.prototype;if(t.A){const r=Object.entries(null!=(l=t.A)?l:{});if(r.map((([e,[l]])=>{if(31&l||2&o&&32&l)if(2048&l){if(1&o&&2048&l&&(Object.defineProperty(i,e,{get(){const t=n(this),o=t?t.t:i;if(o)return o[e]},configurable:!0,enumerable:!0}),4096&l)){const o=Object.getOwnPropertyDescriptor(i,e).set;Object.defineProperty(i,e,{set(l){const s=n(this);if(o){const n=s.$hostElement$[e];return!s.P.get(e)&&n&&s.P.set(e,n),o.call(this,_(l,t.A[e][0])),void le(this,e,s.$hostElement$[e],t)}if(!s)return;const i=()=>{const n=s.t[e];!s.P.get(e)&&n&&s.P.set(e,n),s.t[e]=_(l,t.A[e][0]),le(this,e,s.t[e],t)};s.t?i():s.D.then((()=>i()))}})}}else Object.defineProperty(i,e,{get(){return((e,t)=>n(this).P.get(t))(0,e)},set(n){le(this,e,n,t)},configurable:!0,enumerable:!0})})),1&o){const o=new Map;i.attributeChangedCallback=function(e,l,s){a.jmp((()=>{var r;const c=o.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const n=o.t,i=null==(r=t.H)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,l,e)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);u.get&&!u.set||(this[c]=(null!==s||"boolean"!=typeof this[c])&&s)}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.H)?s:{}),...r.filter((([e,t])=>15&t[0])).map((([e,t])=>{const n=t[1]||e;return o.set(n,e),n}))]))}}return e},ie=e=>{ne(e,"disconnectedCallback")},re=(e,o={})=>{var f;const d=[],p=o.exclude||[],m=c.customElements,y=u.head,w=y.querySelector("meta[charset]"),b=u.createElement("style"),v=[];let $,g=!0;Object.assign(a,o),a.l=new URL(o.resourcesUrl||"./",u.baseURI).href;let j=!1;if(e.map((e=>{e[1].map((o=>{const r={o:o[0],$:o[1],A:o[2],N:o[3]};4&r.o&&(j=!0),r.A=o[2];const c=r.$,u=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const o={o:0,$hostElement$:e,O:n,P:new Map};o.D=new Promise((e=>o.M=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,o)})(e=this,r),1&r.o)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${r.$}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),$&&(clearTimeout($),$=null),g?v.push(this):a.jmp((()=>(e=>{if(!(1&a.o)){const t=n(e),o=t.O,r=()=>{};if(1&t.o)(null==t?void 0:t.t)||(null==t?void 0:t.D)&&t.D.then((()=>{}));else{t.o|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){I(t,t.j=n);break}}o.A&&Object.entries(o.A).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let o;if(!(32&t.o)){if(t.o|=32,n.T){const e=(e=>{const t=e.$.replace(/-/g,"_"),n=e.T;if(!n)return;const o=s.get(n);return o?o[t]:import(`./${n}.entry.js`).then((e=>(s.set(n,e),e[t])),l)
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};o=await e,t()}else o=e;if(!o)throw Error(`Constructor for "${n.$}#${t.F}" was not found`);o.isProxied||(se(o,n,2),o.isProxied=!0);const i=()=>{};t.o|=8;try{new o(t)}catch(e){l(e)}t.o&=-9,i()}else o=e.constructor,customElements.whenDefined(e.localName).then((()=>t.o|=128));if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=B(n);if(!i.has(t)){const o=()=>{};((e,t,n)=>{let o=i.get(e);h&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,i.set(e,o)})(t,e,!!(1&n.o)),o()}}}const r=t.j,c=()=>J(t,!0);r&&r["s-rc"]?r["s-rc"].push(c):c()})(e,t,o)}r()}})(this)))}disconnectedCallback(){a.jmp((()=>(async e=>{if(!(1&a.o)){const t=n(e);(null==t?void 0:t.t)?ie(t.t):(null==t?void 0:t.D)&&t.D.then((()=>ie(t.t)))}z.has(e)&&z.delete(e),e.shadowRoot&&z.has(e.shadowRoot)&&z.delete(e.shadowRoot)})(this))),a.raf((()=>{var e;const t=n(this);(null==(e=null==t?void 0:t.C)?void 0:e.v)instanceof Node&&!t.C.v.isConnected&&delete t.C.v}))}componentOnReady(){return n(this).D}};r.T=e[0],p.includes(c)||m.get(c)||(d.push(c),m.define(c,se(u,r,1)))}))})),d.length>0&&(j&&(b.textContent+=r),b.textContent+=d.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",b.innerHTML.length)){b.setAttribute("data-styles","");const e=null!=(f=a.k)?f:S(u);null!=e&&b.setAttribute("nonce",e),y.insertBefore(b,w?w.nextSibling:y.firstChild)}g=!1,v.length?v.map((e=>e.connectedCallback())):a.jmp((()=>$=setTimeout(te,30)))},ce=e=>a.k=e;export{re as b,x as h,f as p,o as r,ce as s}
|