proto-ikons-wc 0.0.171 → 0.0.172

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.
@@ -2,7 +2,7 @@ const NAMESPACE = 'proto-ikons-wc';
2
2
  const BUILD = /* proto-ikons-wc */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, 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: false, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: false, slot: false, slotChildNodesFix: false, slotRelocation: false, state: false, 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: true, vdomXlink: true, watchCallback: false };
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.23.2 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.24.0 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  var __defProp = Object.defineProperty;
8
8
  var __export = (target, all) => {
@@ -186,6 +186,20 @@ var unwrapErr = (result) => {
186
186
  throw result.value;
187
187
  }
188
188
  };
189
+ var createTime = (fnName, tagName = "") => {
190
+ {
191
+ return () => {
192
+ return;
193
+ };
194
+ }
195
+ };
196
+ var uniqueTime = (key, measureText) => {
197
+ {
198
+ return () => {
199
+ return;
200
+ };
201
+ }
202
+ };
189
203
  var h = (nodeName, vnodeData, ...children) => {
190
204
  let child = null;
191
205
  let key = null;
@@ -250,6 +264,111 @@ var newVNode = (tag, text) => {
250
264
  };
251
265
  var Host = {};
252
266
  var isHost = (node) => node && node.$tag$ === Host;
267
+ var parsePropertyValue = (propValue, propType) => {
268
+ if (propValue != null && !isComplexType(propValue)) {
269
+ if (propType & 4 /* Boolean */) {
270
+ return propValue === "false" ? false : propValue === "" || !!propValue;
271
+ }
272
+ if (propType & 2 /* Number */) {
273
+ return parseFloat(propValue);
274
+ }
275
+ if (propType & 1 /* String */) {
276
+ return String(propValue);
277
+ }
278
+ return propValue;
279
+ }
280
+ return propValue;
281
+ };
282
+ var emitEvent = (elm, name, opts) => {
283
+ const ev = plt.ce(name, opts);
284
+ elm.dispatchEvent(ev);
285
+ return ev;
286
+ };
287
+ var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
288
+ var registerStyle = (scopeId2, cssText, allowCS) => {
289
+ let style = styles.get(scopeId2);
290
+ if (supportsConstructableStylesheets && allowCS) {
291
+ style = style || new CSSStyleSheet();
292
+ if (typeof style === "string") {
293
+ style = cssText;
294
+ } else {
295
+ style.replaceSync(cssText);
296
+ }
297
+ } else {
298
+ style = cssText;
299
+ }
300
+ styles.set(scopeId2, style);
301
+ };
302
+ var addStyle = (styleContainerNode, cmpMeta, mode) => {
303
+ var _a;
304
+ const scopeId2 = getScopeId(cmpMeta);
305
+ const style = styles.get(scopeId2);
306
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
307
+ if (style) {
308
+ if (typeof style === "string") {
309
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
310
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
311
+ let styleElm;
312
+ if (!appliedStyles) {
313
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
314
+ }
315
+ if (!appliedStyles.has(scopeId2)) {
316
+ {
317
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
318
+ styleElm.innerHTML = style;
319
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
320
+ if (nonce != null) {
321
+ styleElm.setAttribute("nonce", nonce);
322
+ }
323
+ if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
324
+ if (styleContainerNode.nodeName === "HEAD") {
325
+ const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
326
+ const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
327
+ styleContainerNode.insertBefore(styleElm, referenceNode2);
328
+ } else if ("host" in styleContainerNode) {
329
+ if (supportsConstructableStylesheets) {
330
+ const stylesheet = new CSSStyleSheet();
331
+ stylesheet.replaceSync(style);
332
+ styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
333
+ } else {
334
+ const existingStyleContainer = styleContainerNode.querySelector("style");
335
+ if (existingStyleContainer) {
336
+ existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
337
+ } else {
338
+ styleContainerNode.prepend(styleElm);
339
+ }
340
+ }
341
+ } else {
342
+ styleContainerNode.append(styleElm);
343
+ }
344
+ }
345
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
346
+ styleContainerNode.insertBefore(styleElm, null);
347
+ }
348
+ }
349
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
350
+ styleElm.innerHTML += SLOT_FB_CSS;
351
+ }
352
+ if (appliedStyles) {
353
+ appliedStyles.add(scopeId2);
354
+ }
355
+ }
356
+ } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
357
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
358
+ }
359
+ }
360
+ return scopeId2;
361
+ };
362
+ var attachStyles = (hostRef) => {
363
+ const cmpMeta = hostRef.$cmpMeta$;
364
+ const elm = hostRef.$hostElement$;
365
+ const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
366
+ addStyle(
367
+ elm.getRootNode(),
368
+ cmpMeta);
369
+ endAttachStyles();
370
+ };
371
+ var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
253
372
  var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
254
373
  if (oldValue !== newValue) {
255
374
  let isProp = isMemberInElement(elm, memberName);
@@ -285,7 +404,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
285
404
  elm.setAttribute(memberName, n);
286
405
  }
287
406
  }
288
- } else {
407
+ } else if (elm[memberName] !== newValue) {
289
408
  elm[memberName] = newValue;
290
409
  }
291
410
  } catch (e) {
@@ -552,8 +671,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
552
671
  }
553
672
  };
554
673
  var insertBefore = (parent, newNode, reference) => {
555
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
556
- return inserted;
674
+ {
675
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
676
+ }
557
677
  };
558
678
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
559
679
  const hostElm = hostRef.$hostElement$;
@@ -574,130 +694,18 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
574
694
  useNativeShadowDom = supportsShadow ;
575
695
  patch(oldVNode, rootVnode, isInitialLoad);
576
696
  };
577
- var createTime = (fnName, tagName = "") => {
578
- {
579
- return () => {
580
- return;
581
- };
582
- }
583
- };
584
- var uniqueTime = (key, measureText) => {
585
- {
586
- return () => {
587
- return;
588
- };
589
- }
590
- };
591
- var parsePropertyValue = (propValue, propType) => {
592
- if (propValue != null && !isComplexType(propValue)) {
593
- if (propType & 4 /* Boolean */) {
594
- return propValue === "false" ? false : propValue === "" || !!propValue;
595
- }
596
- if (propType & 2 /* Number */) {
597
- return parseFloat(propValue);
598
- }
599
- if (propType & 1 /* String */) {
600
- return String(propValue);
601
- }
602
- return propValue;
603
- }
604
- return propValue;
605
- };
606
- var emitEvent = (elm, name, opts) => {
607
- const ev = plt.ce(name, opts);
608
- elm.dispatchEvent(ev);
609
- return ev;
610
- };
611
- var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
612
- var registerStyle = (scopeId2, cssText, allowCS) => {
613
- let style = styles.get(scopeId2);
614
- if (supportsConstructableStylesheets && allowCS) {
615
- style = style || new CSSStyleSheet();
616
- if (typeof style === "string") {
617
- style = cssText;
618
- } else {
619
- style.replaceSync(cssText);
620
- }
621
- } else {
622
- style = cssText;
623
- }
624
- styles.set(scopeId2, style);
625
- };
626
- var addStyle = (styleContainerNode, cmpMeta, mode) => {
627
- var _a;
628
- const scopeId2 = getScopeId(cmpMeta);
629
- const style = styles.get(scopeId2);
630
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
631
- if (style) {
632
- if (typeof style === "string") {
633
- styleContainerNode = styleContainerNode.head || styleContainerNode;
634
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
635
- let styleElm;
636
- if (!appliedStyles) {
637
- rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
638
- }
639
- if (!appliedStyles.has(scopeId2)) {
640
- {
641
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
642
- styleElm.innerHTML = style;
643
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
644
- if (nonce != null) {
645
- styleElm.setAttribute("nonce", nonce);
646
- }
647
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
648
- if (styleContainerNode.nodeName === "HEAD") {
649
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
650
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
651
- styleContainerNode.insertBefore(styleElm, referenceNode2);
652
- } else if ("host" in styleContainerNode) {
653
- if (supportsConstructableStylesheets) {
654
- const stylesheet = new CSSStyleSheet();
655
- stylesheet.replaceSync(style);
656
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
657
- } else {
658
- const existingStyleContainer = styleContainerNode.querySelector("style");
659
- if (existingStyleContainer) {
660
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
661
- } else {
662
- styleContainerNode.prepend(styleElm);
663
- }
664
- }
665
- } else {
666
- styleContainerNode.append(styleElm);
667
- }
668
- }
669
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
670
- styleContainerNode.insertBefore(styleElm, null);
671
- }
672
- }
673
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
674
- styleElm.innerHTML += SLOT_FB_CSS;
675
- }
676
- if (appliedStyles) {
677
- appliedStyles.add(scopeId2);
678
- }
679
- }
680
- } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
681
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
682
- }
683
- }
684
- return scopeId2;
685
- };
686
- var attachStyles = (hostRef) => {
687
- const cmpMeta = hostRef.$cmpMeta$;
688
- const elm = hostRef.$hostElement$;
689
- const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
690
- addStyle(
691
- elm.getRootNode(),
692
- cmpMeta);
693
- endAttachStyles();
694
- };
695
- var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
696
697
 
697
698
  // src/runtime/update-component.ts
698
699
  var attachToAncestor = (hostRef, ancestorComponent) => {
699
700
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
700
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
701
+ const index = ancestorComponent["s-p"].push(
702
+ new Promise(
703
+ (r) => hostRef.$onRenderResolve$ = () => {
704
+ ancestorComponent["s-p"].splice(index - 1, 1);
705
+ r();
706
+ }
707
+ )
708
+ );
701
709
  }
702
710
  };
703
711
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -856,62 +864,69 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
856
864
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
857
865
  members.map(([memberName, [memberFlags]]) => {
858
866
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
859
- if ((memberFlags & 2048 /* Getter */) === 0) {
867
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
868
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
869
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
870
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
860
871
  Object.defineProperty(prototype, memberName, {
861
872
  get() {
862
- return getValue(this, memberName);
863
- },
864
- set(newValue) {
865
- setValue(this, memberName, newValue, cmpMeta);
866
- },
867
- configurable: true,
868
- enumerable: true
869
- });
870
- } else if (flags & 1 /* isElementConstructor */ && memberFlags & 2048 /* Getter */) {
871
- {
872
- Object.defineProperty(prototype, memberName, {
873
- get() {
873
+ {
874
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
875
+ return getValue(this, memberName);
876
+ }
874
877
  const ref = getHostRef(this);
875
878
  const instance = ref ? ref.$lazyInstance$ : prototype;
876
879
  if (!instance) return;
877
880
  return instance[memberName];
878
- },
879
- configurable: true,
880
- enumerable: true
881
- });
882
- }
883
- if (memberFlags & 4096 /* Setter */) {
884
- const origSetter = Object.getOwnPropertyDescriptor(prototype, memberName).set;
885
- Object.defineProperty(prototype, memberName, {
886
- set(newValue) {
887
- const ref = getHostRef(this);
888
- if (origSetter) {
889
- const currentValue = ref.$hostElement$[memberName];
890
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
891
- ref.$instanceValues$.set(memberName, currentValue);
892
- }
893
- origSetter.apply(this, [parsePropertyValue(newValue, cmpMeta.$members$[memberName][0])]);
894
- setValue(this, memberName, ref.$hostElement$[memberName], cmpMeta);
895
- return;
881
+ }
882
+ },
883
+ configurable: true,
884
+ enumerable: true
885
+ });
886
+ }
887
+ Object.defineProperty(prototype, memberName, {
888
+ set(newValue) {
889
+ const ref = getHostRef(this);
890
+ if (origSetter) {
891
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
892
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
893
+ newValue = ref.$instanceValues$.get(memberName);
894
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
895
+ ref.$instanceValues$.set(memberName, currentValue);
896
+ }
897
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
898
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
899
+ setValue(this, memberName, newValue, cmpMeta);
900
+ return;
901
+ }
902
+ {
903
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
904
+ setValue(this, memberName, newValue, cmpMeta);
905
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
906
+ ref.$onReadyPromise$.then(() => {
907
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
908
+ ref.$lazyInstance$[memberName] = newValue;
909
+ }
910
+ });
896
911
  }
897
- if (!ref) return;
898
- const setterSetVal = () => {
899
- const currentValue = ref.$lazyInstance$[memberName];
900
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
901
- ref.$instanceValues$.set(memberName, currentValue);
902
- }
903
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, cmpMeta.$members$[memberName][0]);
904
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
905
- };
906
- if (ref.$lazyInstance$) {
907
- setterSetVal();
908
- } else {
909
- ref.$onReadyPromise$.then(() => setterSetVal());
912
+ return;
913
+ }
914
+ const setterSetVal = () => {
915
+ const currentValue = ref.$lazyInstance$[memberName];
916
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
917
+ ref.$instanceValues$.set(memberName, currentValue);
910
918
  }
919
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
920
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
921
+ };
922
+ if (ref.$lazyInstance$) {
923
+ setterSetVal();
924
+ } else {
925
+ ref.$onReadyPromise$.then(() => setterSetVal());
911
926
  }
912
- });
927
+ }
913
928
  }
914
- }
929
+ });
915
930
  }
916
931
  });
917
932
  if ((flags & 1 /* isElementConstructor */)) {
@@ -941,8 +956,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
941
956
  return;
942
957
  }
943
958
  const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
944
- if (!propDesc.get || !!propDesc.set) {
945
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
959
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
960
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
961
+ this[propName] = newValue;
946
962
  }
947
963
  });
948
964
  };
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-a17b2977.js';
2
- export { s as setNonce } from './index-a17b2977.js';
1
+ import { b as bootstrapLazy } from './index-c097ad36.js';
2
+ export { s as setNonce } from './index-c097ad36.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
@@ -1,9 +1,9 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-a17b2977.js';
2
- export { s as setNonce } from './index-a17b2977.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-c097ad36.js';
2
+ export { s as setNonce } from './index-c097ad36.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v4.23.2 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.24.0 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
  var patchBrowser = () => {
9
9
  const importMeta = import.meta.url;
@@ -0,0 +1,2 @@
1
+ var t=Object.defineProperty,e=new WeakMap,n=t=>e.get(t),l=(t,n)=>{e.set(n.t=t,n)},o=(t,e)=>(0,console.error)(t,e),s=new Map,i=new Map,r="slot-fb{display:contents}slot-fb[hidden]{display:none}",c="http://www.w3.org/1999/xlink",u="undefined"!=typeof window?window:{},f=u.document||{head:{}},a={l:0,o:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,l)=>t.addEventListener(e,n,l),rel:(t,e,n,l)=>t.removeEventListener(e,n,l),ce:(t,e)=>new CustomEvent(t,e)},h=t=>Promise.resolve(t),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),p=!1,m=[],w=[],y=(t,e)=>n=>{t.push(n),p||(p=!0,e&&4&a.l?$(b):a.raf(b))},v=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){o(t)}t.length=0},b=()=>{v(m),v(w),(p=m.length>0)&&a.raf(b)},$=t=>h().then(t),g=y(w,!0),S=t=>"object"==(t=typeof t)||"function"===t;function j(t){var e,n,l;return null!=(l=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((e,n)=>{for(var l in n)t(e,l,{get:n[l],enumerable:!0})})({},{err:()=>k,map:()=>E,ok:()=>O,unwrap:()=>M,unwrapErr:()=>x});var O=t=>({isOk:!0,isErr:!1,value:t}),k=t=>({isOk:!1,isErr:!0,value:t});function E(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>O(t))):O(n)}if(t.isErr)return k(t.value);throw"should never get here"}var C,M=t=>{if(t.isOk)return t.value;throw t.value},x=t=>{if(t.isErr)return t.value;throw t.value},P=(t,e,...n)=>{let l=null,o=null,s=!1,i=!1;const r=[],c=e=>{for(let n=0;n<e.length;n++)l=e[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof t&&!S(l))&&(l+=""),s&&i?r[r.length-1].i+=l:r.push(s?A(null,l):l),i=s)};if(c(n),e){e.key&&(o=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=A(t,null);return u.u=e,r.length>0&&(u.h=r),u.p=o,u},A=(t,e)=>({l:0,m:t,i:e,v:null,h:null,u:null,p:null}),H={},N=(t,e)=>null==t||S(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?parseFloat(t):1&e?t+"":t,T=new WeakMap,D=t=>"sc-"+t.$,F=(t,e,n,l,o,s)=>{if(n!==l){let i=((t,e)=>e in t)(t,e),r=e.toLowerCase();if("class"===e){const e=t.classList,o=L(n);let s=L(l);t["s-si"]?(s.push(t["s-si"]),o.forEach((e=>{e.startsWith(t["s-si"])&&s.push(e)})),s=[...new Set(s)],e.add(...s),delete t["s-si"]):(e.remove(...o.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!o.includes(t)))))}else if("key"===e);else{const u=S(l);if((i||u&&null!==l)&&!o)try{if(t.tagName.includes("-"))t[e]!==l&&(t[e]=l);else{const o=null==l?"":l;"list"===e?i=!1:null!=n&&t[e]==o||("function"==typeof t.__lookupSetter__(e)?t[e]=o:t.setAttribute(e,o))}}catch(t){}let f=!1;r!==(r=r.replace(/^xlink\:?/,""))&&(e=r,f=!0),null==l||!1===l?!1===l&&""!==t.getAttribute(e)||(f?t.removeAttributeNS(c,e):t.removeAttribute(e)):(!i||4&s||o)&&!u&&(l=!0===l?"":l,f?t.setAttributeNS(c,e,l):t.setAttribute(e,l))}}},R=/\s/,L=t=>("object"==typeof t&&"baseVal"in t&&(t=t.baseVal),t?t.split(R):[]),U=(t,e,n)=>{const l=11===e.v.nodeType&&e.v.host?e.v.host:e.v,o=t&&t.u||{},s=e.u||{};for(const t of V(Object.keys(o)))t in s||F(l,t,o[t],void 0,n,e.l);for(const t of V(Object.keys(s)))F(l,t,o[t],s[t],n,e.l)};function V(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var W=!1,q=(t,e,n)=>{const l=e.h[n];let o,s,i=0;if(null!==l.i)o=l.v=f.createTextNode(l.i);else{if(W||(W="svg"===l.m),o=l.v=f.createElementNS(W?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",l.m),W&&"foreignObject"===l.m&&(W=!1),U(null,l,W),l.h)for(i=0;i<l.h.length;++i)s=q(t,l,i),s&&o.appendChild(s);"svg"===l.m?W=!1:"foreignObject"===o.tagName&&(W=!0)}return o["s-hn"]=C,o},G=(t,e,n,l,o,s)=>{let i,r=t;for(;o<=s;++o)l[o]&&(i=q(null,n,o),i&&(l[o].v=i,I(r,i,e)))},_=(t,e,n)=>{for(let l=e;l<=n;++l){const e=t[l];if(e){const t=e.v;t&&t.remove()}}},z=(t,e,n=!1)=>t.m===e.m&&(n?(n&&!t.p&&e.p&&(t.p=e.p),!0):t.p===e.p),B=(t,e,n=!1)=>{const l=e.v=t.v,o=t.h,s=e.h,i=e.m,r=e.i;null===r?(U(t,e,W="svg"===i||"foreignObject"!==i&&W),null!==o&&null!==s?((t,e,n,l,o=!1)=>{let s,i,r=0,c=0,u=0,f=0,a=e.length-1,h=e[0],d=e[a],p=l.length-1,m=l[0],w=l[p];for(;r<=a&&c<=p;)if(null==h)h=e[++r];else if(null==d)d=e[--a];else if(null==m)m=l[++c];else if(null==w)w=l[--p];else if(z(h,m,o))B(h,m,o),h=e[++r],m=l[++c];else if(z(d,w,o))B(d,w,o),d=e[--a],w=l[--p];else if(z(h,w,o))B(h,w,o),I(t,h.v,d.v.nextSibling),h=e[++r],w=l[--p];else if(z(d,m,o))B(d,m,o),I(t,d.v,h.v),d=e[--a],m=l[++c];else{for(u=-1,f=r;f<=a;++f)if(e[f]&&null!==e[f].p&&e[f].p===m.p){u=f;break}u>=0?(i=e[u],i.m!==m.m?s=q(e&&e[c],n,u):(B(i,m,o),e[u]=void 0,s=i.v),m=l[++c]):(s=q(e&&e[c],n,c),m=l[++c]),s&&I(h.v.parentNode,s,h.v)}r>a?G(t,null==l[p+1]?null:l[p+1].v,n,l,c,p):c>p&&_(e,r,a)})(l,o,e,s,n):null!==s?(null!==t.i&&(l.textContent=""),G(l,null,e,s,0,s.length-1)):!n&&null!==o&&_(o,0,o.length-1),W&&"svg"===i&&(W=!1)):t.i!==r&&(l.data=r)},I=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),J=(t,e)=>{if(e&&!t.S&&e["s-p"]){const n=e["s-p"].push(new Promise((l=>t.S=()=>{e["s-p"].splice(n-1,1),l()})))}},K=(t,e)=>{if(t.l|=16,!(4&t.l))return J(t,t.j),g((()=>Q(t,e)));t.l|=512},Q=(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 X(void 0,(()=>Z(t,n,e)))},X=(t,e)=>Y(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),Y=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,Z=async(t,e,n)=>{var l;const o=t.$hostElement$,s=o["s-rc"];n&&(t=>{const e=t.O;((t,e)=>{var n;const l=D(e),o=i.get(l);if(t=11===t.nodeType?t:f,o)if("string"==typeof o){let s,i=T.get(t=t.head||t);if(i||T.set(t,i=new Set),!i.has(l)){{s=document.querySelector(`[sty-id="${l}"]`)||f.createElement("style"),s.innerHTML=o;const i=null!=(n=a.k)?n:j(f);if(null!=i&&s.setAttribute("nonce",i),!(1&e.l))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(d){const e=new CSSStyleSheet;e.replaceSync(o),t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=o+e.innerHTML:t.prepend(s)}else t.append(s);1&e.l&&"HEAD"!==t.nodeName&&t.insertBefore(s,null)}4&e.l&&(s.innerHTML+=r),i&&i.add(l)}}else t.adoptedStyleSheets.includes(o)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,o])})(t.$hostElement$.getRootNode(),e)})(t);tt(t,e,o,n),s&&(s.map((t=>t())),o["s-rc"]=void 0);{const e=null!=(l=o["s-p"])?l:[],n=()=>et(t);0===e.length?n():(Promise.all(e).then(n),t.l|=4,e.length=0)}},tt=(t,e,n,l)=>{try{e=e.render(),t.l&=-17,t.l|=2,((t,e,n=!1)=>{const l=t.$hostElement$,o=t.C||A(null,null),s=(t=>t&&t.m===H)(e)?e:P(null,null,e);if(C=l.tagName,n&&s.u)for(const t of Object.keys(s.u))l.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(s.u[t]=l[t]);s.m=null,s.l|=4,t.C=s,s.v=o.v=l,B(o,s,n)})(t,e,l)}catch(e){o(e,t.$hostElement$)}return null},et=t=>{const e=t.$hostElement$,n=t.j;64&t.l||(t.l|=64,lt(e),t.M(e),n||nt()),t.S&&(t.S(),t.S=void 0),512&t.l&&$((()=>K(t,!1))),t.l&=-517},nt=()=>{lt(f.documentElement),$((()=>(t=>{const e=a.ce("appload",{detail:{namespace:"proto-ikons-wc"}});return t.dispatchEvent(e),e})(u)))},lt=t=>t.classList.add("hydrated"),ot=(t,e,l,o)=>{const s=n(t);if(!s)throw Error(`Couldn't find host element for "${o.$}" 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.l,c=s.t;l=N(l,o.A[e][0]),8&r&&void 0!==i||l===i||Number.isNaN(i)&&Number.isNaN(l)||(s.P.set(e,l),c&&2==(18&r)&&K(s,!1))},st=(t,e,l)=>{var o,s;const i=t.prototype;if(e.A){const r=Object.entries(null!=(o=e.A)?o:{});if(r.map((([t,[o]])=>{if(31&o||2&l&&32&o){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,t)||{};s&&(e.A[t][0]|=2048),r&&(e.A[t][0]|=4096),(1&l||!s)&&Object.defineProperty(i,t,{get(){{if(!(2048&e.A[t][0]))return((t,e)=>n(this).P.get(e))(0,t);const l=n(this),o=l?l.t:i;if(!o)return;return o[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,t,{set(s){const i=n(this);if(r){const n=32&o?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,N(s,o)),void ot(this,t,s=32&o?this[t]:i.$hostElement$[t],e)}{if(!(1&l&&4096&e.A[t][0]))return ot(this,t,s,e),void(1&l&&!i.t&&i.H.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]=N(s,o),ot(this,t,i.t[t],e)};i.t?n():i.H.then((()=>n()))}}})}})),1&l){const l=new Map;i.attributeChangedCallback=function(t,o,s){a.jmp((()=>{var r;const c=l.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 l=n(this),i=null==l?void 0:l.l;if(i&&!(8&i)&&128&i&&s!==o){const n=l.t,i=null==(r=e.N)?void 0:r[t];null==i||i.forEach((e=>{null!=n[e]&&n[e].call(n,s,o,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.N)?s:{}),...r.filter((([t,e])=>15&e[0])).map((([t,e])=>{const n=e[1]||t;return l.set(n,t),n}))]))}}return t},it=(t,l={})=>{var c;const h=[],p=l.exclude||[],m=u.customElements,w=f.head,y=w.querySelector("meta[charset]"),v=f.createElement("style"),b=[];let $,g=!0;Object.assign(a,l),a.o=new URL(l.resourcesUrl||"./",f.baseURI).href;let S=!1;if(t.map((t=>{t[1].map((l=>{const r={l:l[0],$:l[1],A:l[2],T:l[3]};4&r.l&&(S=!0),r.A=l[2];const c=r.$,u=class extends HTMLElement{constructor(t){super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const l={l:0,$hostElement$:t,O:n,P:new Map};l.H=new Promise((t=>l.M=t)),t["s-p"]=[],t["s-rc"]=[],e.set(t,l)})(t=this,r)}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),$&&(clearTimeout($),$=null),g?b.push(this):a.jmp((()=>(t=>{if(!(1&a.l)){const e=n(t),l=e.O,r=()=>{};if(1&e.l)(null==e?void 0:e.t)||(null==e?void 0:e.H)&&e.H.then((()=>{}));else{e.l|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){J(e,e.j=n);break}}l.A&&Object.entries(l.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 l;if(!(32&e.l)){if(e.l|=32,n.D){const t=(t=>{const e=t.$.replace(/-/g,"_"),n=t.D;if(!n)return;const l=s.get(n);return l?l[e]:import(`./${n}.entry.js`).then((t=>(s.set(n,t),t[e])),o)
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(t&&"then"in t){const e=()=>{};l=await t,e()}else l=t;if(!l)throw Error(`Constructor for "${n.$}#${e.F}" was not found`);l.isProxied||(st(l,n,2),l.isProxied=!0);const i=()=>{};e.l|=8;try{new l(e)}catch(t){o(t)}e.l&=-9,i()}else l=t.constructor,customElements.whenDefined(t.localName).then((()=>e.l|=128));if(l&&l.style){let t;"string"==typeof l.style&&(t=l.style);const e=D(n);if(!i.has(e)){const l=()=>{};((t,e,n)=>{let l=i.get(t);d&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=e:l.replaceSync(e)):l=e,i.set(t,l)})(e,t,!!(1&n.l)),l()}}}const r=e.j,c=()=>K(e,!0);r&&r["s-rc"]?r["s-rc"].push(c):c()})(t,e,l)}r()}})(this)))}disconnectedCallback(){a.jmp((()=>(async t=>{if(!(1&a.l)){const e=n(t);(null==e?void 0:e.t)||(null==e?void 0:e.H)&&e.H.then((()=>{}))}T.has(t)&&T.delete(t),t.shadowRoot&&T.has(t.shadowRoot)&&T.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).H}};r.D=t[0],p.includes(c)||m.get(c)||(h.push(c),m.define(c,st(u,r,1)))}))})),h.length>0&&(S&&(v.textContent+=r),v.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const t=null!=(c=a.k)?c:j(f);null!=t&&v.setAttribute("nonce",t),w.insertBefore(v,y?y.nextSibling:w.firstChild)}g=!1,b.length?b.map((t=>t.connectedCallback())):a.jmp((()=>$=setTimeout(nt,30)))},rt=t=>a.k=t;export{it as b,P as h,h as p,l as r,rt as s}