proto-ikons-wc 0.0.123 → 0.0.124
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/cjs/acura-ikon_119.cjs.entry.js +1 -1
- package/dist/cjs/{index-246d2976.js → index-5a3b525d.js} +16 -13
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/proto-ikons-wc.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/esm/acura-ikon_119.entry.js +1 -1
- package/dist/esm/{index-292101b6.js → index-73342eec.js} +16 -13
- package/dist/esm/loader.js +2 -2
- package/dist/esm/proto-ikons-wc.js +3 -3
- package/dist/proto-ikons-wc/p-09949d21.js +2 -0
- package/dist/proto-ikons-wc/{p-a78325a1.entry.js → p-601a951c.entry.js} +1 -1
- package/dist/proto-ikons-wc/proto-ikons-wc.esm.js +1 -1
- package/package.json +2 -2
- package/dist/proto-ikons-wc/p-088d87b9.js +0 -2
|
@@ -609,8 +609,9 @@ const removeVnodes = (vnodes, startIdx, endIdx) => {
|
|
|
609
609
|
* @param oldCh the old children of the parent node
|
|
610
610
|
* @param newVNode the new VNode which will replace the parent
|
|
611
611
|
* @param newCh the new children of the parent node
|
|
612
|
+
* @param isInitialRender whether or not this is the first render of the vdom
|
|
612
613
|
*/
|
|
613
|
-
const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
614
|
+
const updateChildren = (parentElm, oldCh, newVNode, newCh, isInitialRender = false) => {
|
|
614
615
|
let oldStartIdx = 0;
|
|
615
616
|
let newStartIdx = 0;
|
|
616
617
|
let oldEndIdx = oldCh.length - 1;
|
|
@@ -634,25 +635,25 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
634
635
|
else if (newEndVnode == null) {
|
|
635
636
|
newEndVnode = newCh[--newEndIdx];
|
|
636
637
|
}
|
|
637
|
-
else if (isSameVnode(oldStartVnode, newStartVnode)) {
|
|
638
|
+
else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
|
|
638
639
|
// if the start nodes are the same then we should patch the new VNode
|
|
639
640
|
// onto the old one, and increment our `newStartIdx` and `oldStartIdx`
|
|
640
641
|
// indices to reflect that. We don't need to move any DOM Nodes around
|
|
641
642
|
// since things are matched up in order.
|
|
642
|
-
patch(oldStartVnode, newStartVnode);
|
|
643
|
+
patch(oldStartVnode, newStartVnode, isInitialRender);
|
|
643
644
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
644
645
|
newStartVnode = newCh[++newStartIdx];
|
|
645
646
|
}
|
|
646
|
-
else if (isSameVnode(oldEndVnode, newEndVnode)) {
|
|
647
|
+
else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
|
|
647
648
|
// likewise, if the end nodes are the same we patch new onto old and
|
|
648
649
|
// decrement our end indices, and also likewise in this case we don't
|
|
649
650
|
// need to move any DOM Nodes.
|
|
650
|
-
patch(oldEndVnode, newEndVnode);
|
|
651
|
+
patch(oldEndVnode, newEndVnode, isInitialRender);
|
|
651
652
|
oldEndVnode = oldCh[--oldEndIdx];
|
|
652
653
|
newEndVnode = newCh[--newEndIdx];
|
|
653
654
|
}
|
|
654
|
-
else if (isSameVnode(oldStartVnode, newEndVnode)) {
|
|
655
|
-
patch(oldStartVnode, newEndVnode);
|
|
655
|
+
else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
|
|
656
|
+
patch(oldStartVnode, newEndVnode, isInitialRender);
|
|
656
657
|
// We need to move the element for `oldStartVnode` into a position which
|
|
657
658
|
// will be appropriate for `newEndVnode`. For this we can use
|
|
658
659
|
// `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
|
|
@@ -674,8 +675,8 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
674
675
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
675
676
|
newEndVnode = newCh[--newEndIdx];
|
|
676
677
|
}
|
|
677
|
-
else if (isSameVnode(oldEndVnode, newStartVnode)) {
|
|
678
|
-
patch(oldEndVnode, newStartVnode);
|
|
678
|
+
else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
|
|
679
|
+
patch(oldEndVnode, newStartVnode, isInitialRender);
|
|
679
680
|
// We've already checked above if `oldStartVnode` and `newStartVnode` are
|
|
680
681
|
// the same node, so since we're here we know that they are not. Thus we
|
|
681
682
|
// can move the element for `oldEndVnode` _before_ the element for
|
|
@@ -729,9 +730,10 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
729
730
|
*
|
|
730
731
|
* @param leftVNode the first VNode to check
|
|
731
732
|
* @param rightVNode the second VNode to check
|
|
733
|
+
* @param isInitialRender whether or not this is the first render of the vdom
|
|
732
734
|
* @returns whether they're equal or not
|
|
733
735
|
*/
|
|
734
|
-
const isSameVnode = (leftVNode, rightVNode) => {
|
|
736
|
+
const isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
735
737
|
// compare if two vnode to see if they're "technically" the same
|
|
736
738
|
// need to have the same element tag, and same key to be the same
|
|
737
739
|
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
@@ -746,8 +748,9 @@ const isSameVnode = (leftVNode, rightVNode) => {
|
|
|
746
748
|
*
|
|
747
749
|
* @param oldVNode an old VNode whose DOM element and children we want to update
|
|
748
750
|
* @param newVNode a new VNode representing an updated version of the old one
|
|
751
|
+
* @param isInitialRender whether or not this is the first render of the vdom
|
|
749
752
|
*/
|
|
750
|
-
const patch = (oldVNode, newVNode) => {
|
|
753
|
+
const patch = (oldVNode, newVNode, isInitialRender = false) => {
|
|
751
754
|
const elm = (newVNode.$elm$ = oldVNode.$elm$);
|
|
752
755
|
const oldChildren = oldVNode.$children$;
|
|
753
756
|
const newChildren = newVNode.$children$;
|
|
@@ -770,7 +773,7 @@ const patch = (oldVNode, newVNode) => {
|
|
|
770
773
|
if (oldChildren !== null && newChildren !== null) {
|
|
771
774
|
// looks like there's child vnodes for both the old and new vnodes
|
|
772
775
|
// so we need to call `updateChildren` to reconcile them
|
|
773
|
-
updateChildren(elm, oldChildren, newVNode, newChildren);
|
|
776
|
+
updateChildren(elm, oldChildren, newVNode, newChildren, isInitialRender);
|
|
774
777
|
}
|
|
775
778
|
else if (newChildren !== null) {
|
|
776
779
|
// no old child vnodes, but there are new child vnodes to add
|
|
@@ -844,7 +847,7 @@ const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
844
847
|
hostRef.$vnode$ = rootVnode;
|
|
845
848
|
rootVnode.$elm$ = oldVNode.$elm$ = (hostElm);
|
|
846
849
|
// synchronous patch
|
|
847
|
-
patch(oldVNode, rootVnode);
|
|
850
|
+
patch(oldVNode, rootVnode, isInitialLoad);
|
|
848
851
|
};
|
|
849
852
|
const attachToAncestor = (hostRef, ancestorComponent) => {
|
|
850
853
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
|
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-5a3b525d.js');
|
|
6
6
|
|
|
7
7
|
const defineCustomElements = (win, options) => {
|
|
8
8
|
if (typeof window === 'undefined') return undefined;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-5a3b525d.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Browser v4.
|
|
8
|
+
Stencil Client Patch Browser v4.9.0 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
const patchBrowser = () => {
|
|
11
11
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('proto-ikons-wc.cjs.js', document.baseURI).href));
|
|
@@ -587,8 +587,9 @@ const removeVnodes = (vnodes, startIdx, endIdx) => {
|
|
|
587
587
|
* @param oldCh the old children of the parent node
|
|
588
588
|
* @param newVNode the new VNode which will replace the parent
|
|
589
589
|
* @param newCh the new children of the parent node
|
|
590
|
+
* @param isInitialRender whether or not this is the first render of the vdom
|
|
590
591
|
*/
|
|
591
|
-
const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
592
|
+
const updateChildren = (parentElm, oldCh, newVNode, newCh, isInitialRender = false) => {
|
|
592
593
|
let oldStartIdx = 0;
|
|
593
594
|
let newStartIdx = 0;
|
|
594
595
|
let oldEndIdx = oldCh.length - 1;
|
|
@@ -612,25 +613,25 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
612
613
|
else if (newEndVnode == null) {
|
|
613
614
|
newEndVnode = newCh[--newEndIdx];
|
|
614
615
|
}
|
|
615
|
-
else if (isSameVnode(oldStartVnode, newStartVnode)) {
|
|
616
|
+
else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
|
|
616
617
|
// if the start nodes are the same then we should patch the new VNode
|
|
617
618
|
// onto the old one, and increment our `newStartIdx` and `oldStartIdx`
|
|
618
619
|
// indices to reflect that. We don't need to move any DOM Nodes around
|
|
619
620
|
// since things are matched up in order.
|
|
620
|
-
patch(oldStartVnode, newStartVnode);
|
|
621
|
+
patch(oldStartVnode, newStartVnode, isInitialRender);
|
|
621
622
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
622
623
|
newStartVnode = newCh[++newStartIdx];
|
|
623
624
|
}
|
|
624
|
-
else if (isSameVnode(oldEndVnode, newEndVnode)) {
|
|
625
|
+
else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
|
|
625
626
|
// likewise, if the end nodes are the same we patch new onto old and
|
|
626
627
|
// decrement our end indices, and also likewise in this case we don't
|
|
627
628
|
// need to move any DOM Nodes.
|
|
628
|
-
patch(oldEndVnode, newEndVnode);
|
|
629
|
+
patch(oldEndVnode, newEndVnode, isInitialRender);
|
|
629
630
|
oldEndVnode = oldCh[--oldEndIdx];
|
|
630
631
|
newEndVnode = newCh[--newEndIdx];
|
|
631
632
|
}
|
|
632
|
-
else if (isSameVnode(oldStartVnode, newEndVnode)) {
|
|
633
|
-
patch(oldStartVnode, newEndVnode);
|
|
633
|
+
else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
|
|
634
|
+
patch(oldStartVnode, newEndVnode, isInitialRender);
|
|
634
635
|
// We need to move the element for `oldStartVnode` into a position which
|
|
635
636
|
// will be appropriate for `newEndVnode`. For this we can use
|
|
636
637
|
// `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
|
|
@@ -652,8 +653,8 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
652
653
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
653
654
|
newEndVnode = newCh[--newEndIdx];
|
|
654
655
|
}
|
|
655
|
-
else if (isSameVnode(oldEndVnode, newStartVnode)) {
|
|
656
|
-
patch(oldEndVnode, newStartVnode);
|
|
656
|
+
else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
|
|
657
|
+
patch(oldEndVnode, newStartVnode, isInitialRender);
|
|
657
658
|
// We've already checked above if `oldStartVnode` and `newStartVnode` are
|
|
658
659
|
// the same node, so since we're here we know that they are not. Thus we
|
|
659
660
|
// can move the element for `oldEndVnode` _before_ the element for
|
|
@@ -707,9 +708,10 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
707
708
|
*
|
|
708
709
|
* @param leftVNode the first VNode to check
|
|
709
710
|
* @param rightVNode the second VNode to check
|
|
711
|
+
* @param isInitialRender whether or not this is the first render of the vdom
|
|
710
712
|
* @returns whether they're equal or not
|
|
711
713
|
*/
|
|
712
|
-
const isSameVnode = (leftVNode, rightVNode) => {
|
|
714
|
+
const isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
713
715
|
// compare if two vnode to see if they're "technically" the same
|
|
714
716
|
// need to have the same element tag, and same key to be the same
|
|
715
717
|
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
@@ -724,8 +726,9 @@ const isSameVnode = (leftVNode, rightVNode) => {
|
|
|
724
726
|
*
|
|
725
727
|
* @param oldVNode an old VNode whose DOM element and children we want to update
|
|
726
728
|
* @param newVNode a new VNode representing an updated version of the old one
|
|
729
|
+
* @param isInitialRender whether or not this is the first render of the vdom
|
|
727
730
|
*/
|
|
728
|
-
const patch = (oldVNode, newVNode) => {
|
|
731
|
+
const patch = (oldVNode, newVNode, isInitialRender = false) => {
|
|
729
732
|
const elm = (newVNode.$elm$ = oldVNode.$elm$);
|
|
730
733
|
const oldChildren = oldVNode.$children$;
|
|
731
734
|
const newChildren = newVNode.$children$;
|
|
@@ -748,7 +751,7 @@ const patch = (oldVNode, newVNode) => {
|
|
|
748
751
|
if (oldChildren !== null && newChildren !== null) {
|
|
749
752
|
// looks like there's child vnodes for both the old and new vnodes
|
|
750
753
|
// so we need to call `updateChildren` to reconcile them
|
|
751
|
-
updateChildren(elm, oldChildren, newVNode, newChildren);
|
|
754
|
+
updateChildren(elm, oldChildren, newVNode, newChildren, isInitialRender);
|
|
752
755
|
}
|
|
753
756
|
else if (newChildren !== null) {
|
|
754
757
|
// no old child vnodes, but there are new child vnodes to add
|
|
@@ -822,7 +825,7 @@ const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
822
825
|
hostRef.$vnode$ = rootVnode;
|
|
823
826
|
rootVnode.$elm$ = oldVNode.$elm$ = (hostElm);
|
|
824
827
|
// synchronous patch
|
|
825
|
-
patch(oldVNode, rootVnode);
|
|
828
|
+
patch(oldVNode, rootVnode, isInitialLoad);
|
|
826
829
|
};
|
|
827
830
|
const attachToAncestor = (hostRef, ancestorComponent) => {
|
|
828
831
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
|
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-73342eec.js';
|
|
2
|
+
export { s as setNonce } from './index-73342eec.js';
|
|
3
3
|
|
|
4
4
|
const defineCustomElements = (win, options) => {
|
|
5
5
|
if (typeof window === 'undefined') return undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
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-73342eec.js';
|
|
2
|
+
export { s as setNonce } from './index-73342eec.js';
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Patch Browser v4.
|
|
5
|
+
Stencil Client Patch Browser v4.9.0 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
const patchBrowser = () => {
|
|
8
8
|
const importMeta = import.meta.url;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
let n,t=!1,e=!1;const l="slot-fb{display:contents}slot-fb[hidden]{display:none}",o="http://www.w3.org/1999/xlink",s={},i=n=>"object"==(n=typeof n)||"function"===n;function c(n){var t,e,l;return null!==(l=null===(e=null===(t=n.head)||void 0===t?void 0:t.querySelector('meta[name="csp-nonce"]'))||void 0===e?void 0:e.getAttribute("content"))&&void 0!==l?l:void 0}const r=(n,t,...e)=>{let l=null,o=!1,s=!1;const c=[],r=t=>{for(let e=0;e<t.length;e++)l=t[e],Array.isArray(l)?r(l):null!=l&&"boolean"!=typeof l&&((o="function"!=typeof n&&!i(l))&&(l+=""),o&&s?c[c.length-1].t+=l:c.push(o?u(null,l):l),s=o)};if(r(e),t){const n=t.className||t.class;n&&(t.class="object"!=typeof n?n:Object.keys(n).filter((t=>n[t])).join(" "))}const a=u(n,null);return a.l=t,c.length>0&&(a.o=c),a},u=(n,t)=>({i:0,u:n,t,h:null,o:null,l:null}),a={},f=new WeakMap,d=n=>"sc-"+n.p,y=(n,t,e,l,s,c)=>{if(e!==l){let r=q(n,t),u=t.toLowerCase();if("class"===t){const t=n.classList,o=p(e),s=p(l);t.remove(...o.filter((n=>n&&!s.includes(n)))),t.add(...s.filter((n=>n&&!o.includes(n))))}else{const a=i(l);if((r||a&&null!==l)&&!s)try{if(n.tagName.includes("-"))n[t]=l;else{const o=null==l?"":l;"list"===t?r=!1:null!=e&&n[t]==o||(n[t]=o)}}catch(n){}let f=!1;u!==(u=u.replace(/^xlink\:?/,""))&&(t=u,f=!0),null==l||!1===l?!1===l&&""!==n.getAttribute(t)||(f?n.removeAttributeNS(o,t):n.removeAttribute(t)):(!r||4&c||s)&&!a&&(l=!0===l?"":l,f?n.setAttributeNS(o,t,l):n.setAttribute(t,l))}}},h=/\s/,p=n=>n?n.split(h):[],v=(n,t,e,l)=>{const o=11===t.h.nodeType&&t.h.host?t.h.host:t.h,i=n&&n.l||s,c=t.l||s;for(l in i)l in c||y(o,l,i[l],void 0,e,t.i);for(l in c)y(o,l,i[l],c[l],e,t.i)},w=(e,l,o)=>{const s=l.o[o];let i,c,r=0;if(null!==s.t)i=s.h=D.createTextNode(s.t);else{if(t||(t="svg"===s.u),i=s.h=D.createElementNS(t?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",s.u),t&&"foreignObject"===s.u&&(t=!1),v(null,s,t),s.o)for(r=0;r<s.o.length;++r)c=w(e,s,r),c&&i.appendChild(c);"svg"===s.u?t=!1:"foreignObject"===i.tagName&&(t=!0)}return i["s-hn"]=n,i},$=(n,t,e,l,o,s)=>{let i,c=n;for(;o<=s;++o)l[o]&&(i=w(null,e,o),i&&(l[o].h=i,c.insertBefore(i,t)))},m=(n,t,e)=>{for(let l=t;l<=e;++l){const t=n[l];if(t){const n=t.h;n&&n.remove()}}},b=(n,t)=>n.u===t.u,g=(n,e,l=!1)=>{const o=e.h=n.h,s=n.o,i=e.o,c=e.u,r=e.t;null===r?(t="svg"===c||"foreignObject"!==c&&t,v(n,e,t),null!==s&&null!==i?((n,t,e,l,o=!1)=>{let s,i=0,c=0,r=t.length-1,u=t[0],a=t[r],f=l.length-1,d=l[0],y=l[f];for(;i<=r&&c<=f;)null==u?u=t[++i]:null==a?a=t[--r]:null==d?d=l[++c]:null==y?y=l[--f]:b(u,d)?(g(u,d,o),u=t[++i],d=l[++c]):b(a,y)?(g(a,y,o),a=t[--r],y=l[--f]):b(u,y)?(g(u,y,o),n.insertBefore(u.h,a.h.nextSibling),u=t[++i],y=l[--f]):b(a,d)?(g(a,d,o),n.insertBefore(a.h,u.h),a=t[--r],d=l[++c]):(s=w(t&&t[c],e,c),d=l[++c],s&&u.h.parentNode.insertBefore(s,u.h));i>r?$(n,null==l[f+1]?null:l[f+1].h,e,l,c,f):c>f&&m(t,i,r)})(o,s,e,i,l):null!==i?(null!==n.t&&(o.textContent=""),$(o,null,e,i,0,i.length-1)):null!==s&&m(s,0,s.length-1),t&&"svg"===c&&(t=!1)):n.t!==r&&(o.data=r)},j=(n,t)=>{t&&!n.v&&t["s-p"]&&t["s-p"].push(new Promise((t=>n.v=t)))},S=(n,t)=>{if(n.i|=16,!(4&n.i))return j(n,n.$),tn((()=>O(n,t)));n.i|=512},O=(n,t)=>{const e=n.m;return k(void 0,(()=>x(n,e,t)))},k=(n,t)=>M(n)?n.then(t):t(),M=n=>n instanceof Promise||n&&n.then&&"function"==typeof n.then,x=async(n,t,e)=>{var o;const s=n.$hostElement$,i=s["s-rc"];e&&(n=>{const t=n.j;((n,t)=>{var e;const o=d(t),s=z.get(o);if(n=11===n.nodeType?n:D,s)if("string"==typeof s){let i,r=f.get(n=n.head||n);if(r||f.set(n,r=new Set),!r.has(o)){{i=D.createElement("style"),i.innerHTML=s;const t=null!==(e=G.S)&&void 0!==e?e:c(D);null!=t&&i.setAttribute("nonce",t),n.insertBefore(i,n.querySelector("link"))}4&t.i&&(i.innerHTML+=l),r&&r.add(o)}}else n.adoptedStyleSheets.includes(s)||(n.adoptedStyleSheets=[...n.adoptedStyleSheets,s])})(n.$hostElement$.getRootNode(),t)})(n);C(n,t,s,e),i&&(i.map((n=>n())),s["s-rc"]=void 0);{const t=null!==(o=s["s-p"])&&void 0!==o?o:[],e=()=>P(n);0===t.length?e():(Promise.all(t).then(e),n.i|=4,t.length=0)}},C=(t,e,l,o)=>{try{e=e.render(),t.i&=-17,t.i|=2,((t,e,l=!1)=>{const o=t.$hostElement$,s=t.O||u(null,null),i=(n=>n&&n.u===a)(e)?e:r(null,null,e);if(n=o.tagName,l&&i.l)for(const n of Object.keys(i.l))o.hasAttribute(n)&&!["key","ref","style","class"].includes(n)&&(i.l[n]=o[n]);i.u=null,i.i|=4,t.O=i,i.h=s.h=o,g(s,i,l)})(t,e,o)}catch(n){H(n,t.$hostElement$)}return null},P=n=>{const t=n.$hostElement$,e=n.$;64&n.i||(n.i|=64,E(t),n.k(t),e||A()),n.v&&(n.v(),n.v=void 0),512&n.i&&nn((()=>S(n,!1))),n.i&=-517},A=()=>{E(D.documentElement),nn((()=>(n=>{const t=G.ce("appload",{detail:{namespace:"proto-ikons-wc"}});return n.dispatchEvent(t),t})(B)))},E=n=>n.classList.add("hydrated"),N=(n,t,e)=>{var l;const o=n.prototype;if(t.M){const s=Object.entries(t.M);if(s.map((([n,[l]])=>{(31&l||2&e&&32&l)&&Object.defineProperty(o,n,{get(){return((n,t)=>R(this).C.get(t))(0,n)},set(e){((n,t,e,l)=>{const o=R(n),s=o.C.get(t),c=o.i,r=o.m;e=((n,t)=>null==n||i(n)?n:4&t?"false"!==n&&(""===n||!!n):2&t?parseFloat(n):1&t?n+"":n)(e,l.M[t][0]),8&c&&void 0!==s||e===s||Number.isNaN(s)&&Number.isNaN(e)||(o.C.set(t,e),r&&2==(18&c)&&S(o,!1))})(this,n,e,t)},configurable:!0,enumerable:!0})})),1&e){const e=new Map;o.attributeChangedCallback=function(n,l,s){G.jmp((()=>{var i;const c=e.get(n);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(o.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const e=R(this),o=null==e?void 0:e.i;if(o&&!(8&o)&&128&o&&s!==l){const o=e.m,c=null===(i=t.P)||void 0===i?void 0:i[n];null==c||c.forEach((t=>{null!=o[t]&&o[t].call(o,s,l,n)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},n.observedAttributes=Array.from(new Set([...Object.keys(null!==(l=t.P)&&void 0!==l?l:{}),...s.filter((([n,t])=>15&t[0])).map((([n,t])=>{const l=t[1]||n;return e.set(l,n),l}))]))}}return n},T=(n,t={})=>{var e;const o=[],s=t.exclude||[],i=B.customElements,r=D.head,u=r.querySelector("meta[charset]"),a=D.createElement("style"),f=[];let y,h=!0;Object.assign(G,t),G.A=new URL(t.resourcesUrl||"./",D.baseURI).href;let p=!1;if(n.map((n=>{n[1].map((t=>{const e={i:t[0],p:t[1],M:t[2],N:t[3]};4&e.i&&(p=!0),e.M=t[2];const l=e.p,c=class extends HTMLElement{constructor(n){super(n),W(n=this,e)}connectedCallback(){y&&(clearTimeout(y),y=null),h?f.push(this):G.jmp((()=>(n=>{if(0==(1&G.i)){const t=R(n),e=t.j,l=()=>{};if(1&t.i)(null==t?void 0:t.m)||(null==t?void 0:t.T)&&t.T.then((()=>{}));else{t.i|=1;{let e=n;for(;e=e.parentNode||e.host;)if(e["s-p"]){j(t,t.$=e);break}}e.M&&Object.entries(e.M).map((([t,[e]])=>{if(31&e&&n.hasOwnProperty(t)){const e=n[t];delete n[t],n[t]=e}})),(async(n,t,e)=>{let l;if(0==(32&t.i)){t.i|=32;{if(l=_(e),l.then){const n=()=>{};l=await l,n()}l.isProxied||(N(l,e,2),l.isProxied=!0);const n=()=>{};t.i|=8;try{new l(t)}catch(n){H(n)}t.i&=-9,n()}if(l.style){let n=l.style;const t=d(e);if(!z.has(t)){const l=()=>{};((n,t,e)=>{let l=z.get(n);J&&e?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,z.set(n,l)})(t,n,!!(1&e.i)),l()}}}const o=t.$,s=()=>S(t,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()})(0,t,e)}l()}})(this)))}disconnectedCallback(){G.jmp((()=>(async()=>{if(0==(1&G.i)){const n=R(this);(null==n?void 0:n.m)||(null==n?void 0:n.T)&&n.T.then((()=>{}))}})()))}componentOnReady(){return R(this).T}};e.F=n[0],s.includes(l)||i.get(l)||(o.push(l),i.define(l,N(c,e,1)))}))})),p&&(a.innerHTML+=l),a.innerHTML+=o+"{visibility:hidden}.hydrated{visibility:inherit}",a.innerHTML.length){a.setAttribute("data-styles","");const n=null!==(e=G.S)&&void 0!==e?e:c(D);null!=n&&a.setAttribute("nonce",n),r.insertBefore(a,u?u.nextSibling:r.firstChild)}h=!1,f.length?f.map((n=>n.connectedCallback())):G.jmp((()=>y=setTimeout(A,30)))},F=n=>G.S=n,L=new WeakMap,R=n=>L.get(n),U=(n,t)=>L.set(t.m=n,t),W=(n,t)=>{const e={i:0,$hostElement$:n,j:t,C:new Map};return e.T=new Promise((n=>e.k=n)),n["s-p"]=[],n["s-rc"]=[],L.set(n,e)},q=(n,t)=>t in n,H=(n,t)=>(0,console.error)(n,t),V=new Map,_=n=>{const t=n.p.replace(/-/g,"_"),e=n.F,l=V.get(e);return l?l[t]:import(`./${e}.entry.js`).then((n=>(V.set(e,n),n[t])),H)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},z=new Map,B="undefined"!=typeof window?window:{},D=B.document||{head:{}},G={i:0,A:"",jmp:n=>n(),raf:n=>requestAnimationFrame(n),ael:(n,t,e,l)=>n.addEventListener(t,e,l),rel:(n,t,e,l)=>n.removeEventListener(t,e,l),ce:(n,t)=>new CustomEvent(n,t)},I=n=>Promise.resolve(n),J=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(n){}return!1})(),K=[],Q=[],X=(n,t)=>l=>{n.push(l),e||(e=!0,t&&4&G.i?nn(Z):G.raf(Z))},Y=n=>{for(let t=0;t<n.length;t++)try{n[t](performance.now())}catch(n){H(n)}n.length=0},Z=()=>{Y(K),Y(Q),(e=K.length>0)&&G.raf(Z)},nn=n=>I().then(n),tn=X(Q,!0);export{T as b,r as h,I as p,U as r,F as s}
|