proto-ikons-wc 0.0.111 → 0.0.115

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 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-0bc5ea4a.js');
5
+ const index = require('./index-5a0eb06e.js');
6
6
 
7
7
  const acuraIkonCss = "";
8
8
 
@@ -958,6 +958,10 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
958
958
  */
959
959
  const callRender = (hostRef, instance, elm, isInitialLoad) => {
960
960
  try {
961
+ /**
962
+ * minification optimization: `allRenderFn` is `true` if all components have a `render`
963
+ * method, so we can call the method immediately. If not, check before calling it.
964
+ */
961
965
  instance = instance.render() ;
962
966
  {
963
967
  hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
@@ -1066,6 +1070,7 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
1066
1070
  * @returns a reference to the same constructor passed in (but now mutated)
1067
1071
  */
1068
1072
  const proxyComponent = (Cstr, cmpMeta, flags) => {
1073
+ var _a;
1069
1074
  if (cmpMeta.$members$) {
1070
1075
  // It's better to have a const than two Object.entries()
1071
1076
  const members = Object.entries(cmpMeta.$members$);
@@ -1090,7 +1095,7 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1090
1095
  });
1091
1096
  if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
1092
1097
  const attrNameToPropName = new Map();
1093
- prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
1098
+ prototype.attributeChangedCallback = function (attrName, oldValue, newValue) {
1094
1099
  plt.jmp(() => {
1095
1100
  const propName = attrNameToPropName.get(attrName);
1096
1101
  // In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
@@ -1138,23 +1143,62 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1138
1143
  // `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
1139
1144
  return;
1140
1145
  }
1146
+ else if (propName == null) {
1147
+ // At this point we should know this is not a "member", so we can treat it like watching an attribute
1148
+ // on a vanilla web component
1149
+ const hostRef = getHostRef(this);
1150
+ const flags = hostRef === null || hostRef === void 0 ? void 0 : hostRef.$flags$;
1151
+ // We only want to trigger the callback(s) if:
1152
+ // 1. The instance is ready
1153
+ // 2. The watchers are ready
1154
+ // 3. The value has changed
1155
+ if (!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) &&
1156
+ flags & 128 /* HOST_FLAGS.isWatchReady */ &&
1157
+ newValue !== oldValue) {
1158
+ const instance = hostRef.$lazyInstance$ ;
1159
+ const entry = cmpMeta.$watchers$[attrName];
1160
+ entry === null || entry === void 0 ? void 0 : entry.forEach((callbackName) => {
1161
+ if (instance[callbackName] != null) {
1162
+ instance[callbackName].call(instance, newValue, oldValue, attrName);
1163
+ }
1164
+ });
1165
+ }
1166
+ return;
1167
+ }
1141
1168
  this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
1142
1169
  });
1143
1170
  };
1144
- // create an array of attributes to observe
1145
- // and also create a map of html attribute name to js property name
1146
- Cstr.observedAttributes = members
1147
- .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */) // filter to only keep props that should match attributes
1148
- .map(([propName, m]) => {
1149
- const attrName = m[1] || propName;
1150
- attrNameToPropName.set(attrName, propName);
1151
- return attrName;
1152
- });
1171
+ // Create an array of attributes to observe
1172
+ // This list in comprised of all strings used within a `@Watch()` decorator
1173
+ // on a component as well as any Stencil-specific "members" (`@Prop()`s and `@State()`s).
1174
+ // As such, there is no way to guarantee type-safety here that a user hasn't entered
1175
+ // an invalid attribute.
1176
+ Cstr.observedAttributes = Array.from(new Set([
1177
+ ...Object.keys((_a = cmpMeta.$watchers$) !== null && _a !== void 0 ? _a : {}),
1178
+ ...members
1179
+ .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */)
1180
+ .map(([propName, m]) => {
1181
+ const attrName = m[1] || propName;
1182
+ attrNameToPropName.set(attrName, propName);
1183
+ return attrName;
1184
+ }),
1185
+ ]));
1153
1186
  }
1154
1187
  }
1155
1188
  return Cstr;
1156
1189
  };
1157
- const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
1190
+ /**
1191
+ * Initialize a Stencil component given a reference to its host element, its
1192
+ * runtime bookkeeping data structure, runtime metadata about the component,
1193
+ * and (optionally) an HMR version ID.
1194
+ *
1195
+ * @param elm a host element
1196
+ * @param hostRef the element's runtime bookkeeping object
1197
+ * @param cmpMeta runtime metadata for the Stencil component
1198
+ * @param hmrVersionId an (optional) HMR version ID
1199
+ */
1200
+ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1201
+ let Cstr;
1158
1202
  // initializeComponent
1159
1203
  if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
1160
1204
  // Let the runtime know that the component has been initialized
@@ -1375,22 +1419,49 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1375
1419
  * @returns void
1376
1420
  */
1377
1421
  const setNonce = (nonce) => (plt.$nonce$ = nonce);
1422
+ /**
1423
+ * A WeakMap mapping runtime component references to their corresponding host reference
1424
+ * instances.
1425
+ */
1378
1426
  const hostRefs = /*@__PURE__*/ new WeakMap();
1427
+ /**
1428
+ * Given a {@link d.RuntimeRef} retrieve the corresponding {@link d.HostRef}
1429
+ *
1430
+ * @param ref the runtime ref of interest
1431
+ * @returns the Host reference (if found) or undefined
1432
+ */
1379
1433
  const getHostRef = (ref) => hostRefs.get(ref);
1434
+ /**
1435
+ * Register a lazy instance with the {@link hostRefs} object so it's
1436
+ * corresponding {@link d.HostRef} can be retrieved later.
1437
+ *
1438
+ * @param lazyInstance the lazy instance of interest
1439
+ * @param hostRef that instances `HostRef` object
1440
+ * @returns a reference to the host ref WeakMap
1441
+ */
1380
1442
  const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
1381
- const registerHost = (elm, cmpMeta) => {
1443
+ /**
1444
+ * Register a host element for a Stencil component, setting up various metadata
1445
+ * and callbacks based on {@link BUILD} flags as well as the component's runtime
1446
+ * metadata.
1447
+ *
1448
+ * @param hostElement the host element to register
1449
+ * @param cmpMeta runtime metadata for that component
1450
+ * @returns a reference to the host ref WeakMap
1451
+ */
1452
+ const registerHost = (hostElement, cmpMeta) => {
1382
1453
  const hostRef = {
1383
1454
  $flags$: 0,
1384
- $hostElement$: elm,
1455
+ $hostElement$: hostElement,
1385
1456
  $cmpMeta$: cmpMeta,
1386
1457
  $instanceValues$: new Map(),
1387
1458
  };
1388
1459
  {
1389
1460
  hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
1390
- elm['s-p'] = [];
1391
- elm['s-rc'] = [];
1461
+ hostElement['s-p'] = [];
1462
+ hostElement['s-rc'] = [];
1392
1463
  }
1393
- return hostRefs.set(elm, hostRef);
1464
+ return hostRefs.set(hostElement, hostRef);
1394
1465
  };
1395
1466
  const isMemberInElement = (elm, memberName) => memberName in elm;
1396
1467
  const consoleError = (e, el) => (0, console.error)(e, el);
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-0bc5ea4a.js');
5
+ const index = require('./index-5a0eb06e.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-0bc5ea4a.js');
5
+ const index = require('./index-5a0eb06e.js');
6
6
 
7
7
  /*
8
- Stencil Client Patch Browser v4.2.1 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Browser v4.5.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));
@@ -122,8 +122,8 @@
122
122
  ],
123
123
  "compiler": {
124
124
  "name": "@stencil/core",
125
- "version": "4.2.1",
126
- "typescriptVersion": "5.1.6"
125
+ "version": "4.5.0",
126
+ "typescriptVersion": "5.2.2"
127
127
  },
128
128
  "collections": [],
129
129
  "bundles": []
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-34f9dd90.js';
1
+ import { r as registerInstance, h } from './index-ca9b9204.js';
2
2
 
3
3
  const acuraIkonCss = "";
4
4
 
@@ -936,6 +936,10 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
936
936
  */
937
937
  const callRender = (hostRef, instance, elm, isInitialLoad) => {
938
938
  try {
939
+ /**
940
+ * minification optimization: `allRenderFn` is `true` if all components have a `render`
941
+ * method, so we can call the method immediately. If not, check before calling it.
942
+ */
939
943
  instance = instance.render() ;
940
944
  {
941
945
  hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
@@ -1044,6 +1048,7 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
1044
1048
  * @returns a reference to the same constructor passed in (but now mutated)
1045
1049
  */
1046
1050
  const proxyComponent = (Cstr, cmpMeta, flags) => {
1051
+ var _a;
1047
1052
  if (cmpMeta.$members$) {
1048
1053
  // It's better to have a const than two Object.entries()
1049
1054
  const members = Object.entries(cmpMeta.$members$);
@@ -1068,7 +1073,7 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1068
1073
  });
1069
1074
  if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
1070
1075
  const attrNameToPropName = new Map();
1071
- prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
1076
+ prototype.attributeChangedCallback = function (attrName, oldValue, newValue) {
1072
1077
  plt.jmp(() => {
1073
1078
  const propName = attrNameToPropName.get(attrName);
1074
1079
  // In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
@@ -1116,23 +1121,62 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1116
1121
  // `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
1117
1122
  return;
1118
1123
  }
1124
+ else if (propName == null) {
1125
+ // At this point we should know this is not a "member", so we can treat it like watching an attribute
1126
+ // on a vanilla web component
1127
+ const hostRef = getHostRef(this);
1128
+ const flags = hostRef === null || hostRef === void 0 ? void 0 : hostRef.$flags$;
1129
+ // We only want to trigger the callback(s) if:
1130
+ // 1. The instance is ready
1131
+ // 2. The watchers are ready
1132
+ // 3. The value has changed
1133
+ if (!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) &&
1134
+ flags & 128 /* HOST_FLAGS.isWatchReady */ &&
1135
+ newValue !== oldValue) {
1136
+ const instance = hostRef.$lazyInstance$ ;
1137
+ const entry = cmpMeta.$watchers$[attrName];
1138
+ entry === null || entry === void 0 ? void 0 : entry.forEach((callbackName) => {
1139
+ if (instance[callbackName] != null) {
1140
+ instance[callbackName].call(instance, newValue, oldValue, attrName);
1141
+ }
1142
+ });
1143
+ }
1144
+ return;
1145
+ }
1119
1146
  this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
1120
1147
  });
1121
1148
  };
1122
- // create an array of attributes to observe
1123
- // and also create a map of html attribute name to js property name
1124
- Cstr.observedAttributes = members
1125
- .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */) // filter to only keep props that should match attributes
1126
- .map(([propName, m]) => {
1127
- const attrName = m[1] || propName;
1128
- attrNameToPropName.set(attrName, propName);
1129
- return attrName;
1130
- });
1149
+ // Create an array of attributes to observe
1150
+ // This list in comprised of all strings used within a `@Watch()` decorator
1151
+ // on a component as well as any Stencil-specific "members" (`@Prop()`s and `@State()`s).
1152
+ // As such, there is no way to guarantee type-safety here that a user hasn't entered
1153
+ // an invalid attribute.
1154
+ Cstr.observedAttributes = Array.from(new Set([
1155
+ ...Object.keys((_a = cmpMeta.$watchers$) !== null && _a !== void 0 ? _a : {}),
1156
+ ...members
1157
+ .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */)
1158
+ .map(([propName, m]) => {
1159
+ const attrName = m[1] || propName;
1160
+ attrNameToPropName.set(attrName, propName);
1161
+ return attrName;
1162
+ }),
1163
+ ]));
1131
1164
  }
1132
1165
  }
1133
1166
  return Cstr;
1134
1167
  };
1135
- const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
1168
+ /**
1169
+ * Initialize a Stencil component given a reference to its host element, its
1170
+ * runtime bookkeeping data structure, runtime metadata about the component,
1171
+ * and (optionally) an HMR version ID.
1172
+ *
1173
+ * @param elm a host element
1174
+ * @param hostRef the element's runtime bookkeeping object
1175
+ * @param cmpMeta runtime metadata for the Stencil component
1176
+ * @param hmrVersionId an (optional) HMR version ID
1177
+ */
1178
+ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1179
+ let Cstr;
1136
1180
  // initializeComponent
1137
1181
  if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
1138
1182
  // Let the runtime know that the component has been initialized
@@ -1353,22 +1397,49 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1353
1397
  * @returns void
1354
1398
  */
1355
1399
  const setNonce = (nonce) => (plt.$nonce$ = nonce);
1400
+ /**
1401
+ * A WeakMap mapping runtime component references to their corresponding host reference
1402
+ * instances.
1403
+ */
1356
1404
  const hostRefs = /*@__PURE__*/ new WeakMap();
1405
+ /**
1406
+ * Given a {@link d.RuntimeRef} retrieve the corresponding {@link d.HostRef}
1407
+ *
1408
+ * @param ref the runtime ref of interest
1409
+ * @returns the Host reference (if found) or undefined
1410
+ */
1357
1411
  const getHostRef = (ref) => hostRefs.get(ref);
1412
+ /**
1413
+ * Register a lazy instance with the {@link hostRefs} object so it's
1414
+ * corresponding {@link d.HostRef} can be retrieved later.
1415
+ *
1416
+ * @param lazyInstance the lazy instance of interest
1417
+ * @param hostRef that instances `HostRef` object
1418
+ * @returns a reference to the host ref WeakMap
1419
+ */
1358
1420
  const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
1359
- const registerHost = (elm, cmpMeta) => {
1421
+ /**
1422
+ * Register a host element for a Stencil component, setting up various metadata
1423
+ * and callbacks based on {@link BUILD} flags as well as the component's runtime
1424
+ * metadata.
1425
+ *
1426
+ * @param hostElement the host element to register
1427
+ * @param cmpMeta runtime metadata for that component
1428
+ * @returns a reference to the host ref WeakMap
1429
+ */
1430
+ const registerHost = (hostElement, cmpMeta) => {
1360
1431
  const hostRef = {
1361
1432
  $flags$: 0,
1362
- $hostElement$: elm,
1433
+ $hostElement$: hostElement,
1363
1434
  $cmpMeta$: cmpMeta,
1364
1435
  $instanceValues$: new Map(),
1365
1436
  };
1366
1437
  {
1367
1438
  hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
1368
- elm['s-p'] = [];
1369
- elm['s-rc'] = [];
1439
+ hostElement['s-p'] = [];
1440
+ hostElement['s-rc'] = [];
1370
1441
  }
1371
- return hostRefs.set(elm, hostRef);
1442
+ return hostRefs.set(hostElement, hostRef);
1372
1443
  };
1373
1444
  const isMemberInElement = (elm, memberName) => memberName in elm;
1374
1445
  const consoleError = (e, el) => (0, console.error)(e, el);
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-34f9dd90.js';
2
- export { s as setNonce } from './index-34f9dd90.js';
1
+ import { b as bootstrapLazy } from './index-ca9b9204.js';
2
+ export { s as setNonce } from './index-ca9b9204.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-34f9dd90.js';
2
- export { s as setNonce } from './index-34f9dd90.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-ca9b9204.js';
2
+ export { s as setNonce } from './index-ca9b9204.js';
3
3
 
4
4
  /*
5
- Stencil Client Patch Browser v4.2.1 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Patch Browser v4.5.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=!1,t=!1;const e="http://www.w3.org/1999/xlink",l={},o=n=>"object"==(n=typeof n)||"function"===n;function s(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 i=(n,t,...e)=>{let l=null,s=!1,i=!1;const r=[],u=t=>{for(let e=0;e<t.length;e++)l=t[e],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof n&&!o(l))&&(l+=""),s&&i?r[r.length-1].t+=l:r.push(s?c(null,l):l),i=s)};if(u(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=c(n,null);return a.l=t,r.length>0&&(a.o=r),a},c=(n,t)=>({i:0,u:n,t,h:null,o:null,l:null}),r={},u=new WeakMap,a=n=>"sc-"+n.p,f=(n,t,l,s,i,c)=>{if(l!==s){let r=U(n,t),u=t.toLowerCase();if("class"===t){const t=n.classList,e=h(l),o=h(s);t.remove(...e.filter((n=>n&&!o.includes(n)))),t.add(...o.filter((n=>n&&!e.includes(n))))}else{const a=o(s);if((r||a&&null!==s)&&!i)try{if(n.tagName.includes("-"))n[t]=s;else{const e=null==s?"":s;"list"===t?r=!1:null!=l&&n[t]==e||(n[t]=e)}}catch(n){}let f=!1;u!==(u=u.replace(/^xlink\:?/,""))&&(t=u,f=!0),null==s||!1===s?!1===s&&""!==n.getAttribute(t)||(f?n.removeAttributeNS(e,t):n.removeAttribute(t)):(!r||4&c||i)&&!a&&(s=!0===s?"":s,f?n.setAttributeNS(e,t,s):n.setAttribute(t,s))}}},d=/\s/,h=n=>n?n.split(d):[],y=(n,t,e,o)=>{const s=11===t.h.nodeType&&t.h.host?t.h.host:t.h,i=n&&n.l||l,c=t.l||l;for(o in i)o in c||f(s,o,i[o],void 0,e,t.i);for(o in c)f(s,o,i[o],c[o],e,t.i)},p=(t,e,l)=>{const o=e.o[l];let s,i,c=0;if(null!==o.t)s=o.h=z.createTextNode(o.t);else{if(n||(n="svg"===o.u),s=o.h=z.createElementNS(n?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.u),n&&"foreignObject"===o.u&&(n=!1),y(null,o,n),o.o)for(c=0;c<o.o.length;++c)i=p(t,o,c),i&&s.appendChild(i);"svg"===o.u?n=!1:"foreignObject"===s.tagName&&(n=!0)}return s},w=(n,t,e,l,o,s)=>{let i,c=n;for(;o<=s;++o)l[o]&&(i=p(null,e,o),i&&(l[o].h=i,c.insertBefore(i,t)))},v=(n,t,e)=>{for(let l=t;l<=e;++l){const t=n[l];if(t){const n=t.h;n&&n.remove()}}},$=(n,t)=>n.u===t.u,m=(t,e)=>{const l=e.h=t.h,o=t.o,s=e.o,i=e.u,c=e.t;null===c?(n="svg"===i||"foreignObject"!==i&&n,y(t,e,n),null!==o&&null!==s?((n,t,e,l)=>{let o,s=0,i=0,c=t.length-1,r=t[0],u=t[c],a=l.length-1,f=l[0],d=l[a];for(;s<=c&&i<=a;)null==r?r=t[++s]:null==u?u=t[--c]:null==f?f=l[++i]:null==d?d=l[--a]:$(r,f)?(m(r,f),r=t[++s],f=l[++i]):$(u,d)?(m(u,d),u=t[--c],d=l[--a]):$(r,d)?(m(r,d),n.insertBefore(r.h,u.h.nextSibling),r=t[++s],d=l[--a]):$(u,f)?(m(u,f),n.insertBefore(u.h,r.h),u=t[--c],f=l[++i]):(o=p(t&&t[i],e,i),f=l[++i],o&&r.h.parentNode.insertBefore(o,r.h));s>c?w(n,null==l[a+1]?null:l[a+1].h,e,l,i,a):i>a&&v(t,s,c)})(l,o,e,s):null!==s?(null!==t.t&&(l.textContent=""),w(l,null,e,s,0,s.length-1)):null!==o&&v(o,0,o.length-1),n&&"svg"===i&&(n=!1)):t.t!==c&&(l.data=c)},b=(n,t)=>{t&&!n.v&&t["s-p"]&&t["s-p"].push(new Promise((t=>n.v=t)))},g=(n,t)=>{if(n.i|=16,!(4&n.i))return b(n,n.$),Z((()=>j(n,t)));n.i|=512},j=(n,t)=>{const e=n.m;return S(void 0,(()=>k(n,e,t)))},S=(n,t)=>O(n)?n.then(t):t(),O=n=>n instanceof Promise||n&&n.then&&"function"==typeof n.then,k=async(n,t,e)=>{var l;const o=n.j,i=o["s-rc"];e&&(n=>{const t=n.S;((n,t)=>{var e;const l=a(t),o=V.get(l);if(n=11===n.nodeType?n:z,o)if("string"==typeof o){let t,i=u.get(n=n.head||n);if(i||u.set(n,i=new Set),!i.has(l)){{t=z.createElement("style"),t.innerHTML=o;const l=null!==(e=B.O)&&void 0!==e?e:s(z);null!=l&&t.setAttribute("nonce",l),n.insertBefore(t,n.querySelector("link"))}i&&i.add(l)}}else n.adoptedStyleSheets.includes(o)||(n.adoptedStyleSheets=[...n.adoptedStyleSheets,o])})(n.j.getRootNode(),t)})(n);M(n,t,o,e),i&&(i.map((n=>n())),o["s-rc"]=void 0);{const t=null!==(l=o["s-p"])&&void 0!==l?l:[],e=()=>x(n);0===t.length?e():(Promise.all(t).then(e),n.i|=4,t.length=0)}},M=(n,t,e,l)=>{try{t=t.render(),n.i&=-17,n.i|=2,((n,t,e=!1)=>{const l=n.j,o=n.k||c(null,null),s=(n=>n&&n.u===r)(t)?t:i(null,null,t);if(e&&s.l)for(const n of Object.keys(s.l))l.hasAttribute(n)&&!["key","ref","style","class"].includes(n)&&(s.l[n]=l[n]);s.u=null,s.i|=4,n.k=s,s.h=o.h=l,m(o,s)})(n,t,l)}catch(t){W(t,n.j)}return null},x=n=>{const t=n.j,e=n.$;64&n.i||(n.i|=64,P(t),n.M(t),e||C()),n.v&&(n.v(),n.v=void 0),512&n.i&&Y((()=>g(n,!1))),n.i&=-517},C=()=>{P(z.documentElement),Y((()=>(n=>{const t=B.ce("appload",{detail:{namespace:"proto-ikons-wc"}});return n.dispatchEvent(t),t})(_)))},P=n=>n.classList.add("hydrated"),A=(n,t,e)=>{var l;if(t.C){const s=Object.entries(t.C),i=n.prototype;if(s.map((([n,[l]])=>{(31&l||2&e&&32&l)&&Object.defineProperty(i,n,{get(){return((n,t)=>F(this).P.get(t))(0,n)},set(e){((n,t,e,l)=>{const s=F(n),i=s.P.get(t),c=s.i,r=s.m;e=((n,t)=>null==n||o(n)?n:4&t?"false"!==n&&(""===n||!!n):2&t?parseFloat(n):1&t?n+"":n)(e,l.C[t][0]),8&c&&void 0!==i||e===i||Number.isNaN(i)&&Number.isNaN(e)||(s.P.set(t,e),r&&2==(18&c)&&g(s,!1))})(this,n,e,t)},configurable:!0,enumerable:!0})})),1&e){const e=new Map;i.attributeChangedCallback=function(n,l,o){B.jmp((()=>{const s=e.get(n);if(this.hasOwnProperty(s))o=this[s],delete this[s];else{if(i.hasOwnProperty(s)&&"number"==typeof this[s]&&this[s]==o)return;if(null==s){const e=F(this),s=null==e?void 0:e.i;if(!(8&s)&&128&s&&o!==l){const s=e.m,i=t.A[n];null==i||i.forEach((t=>{null!=s[t]&&s[t].call(s,o,l,n)}))}return}}this[s]=(null!==o||"boolean"!=typeof this[s])&&o}))},n.observedAttributes=Array.from(new Set([...Object.keys(null!==(l=t.A)&&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},E=(n,t={})=>{var e;const l=[],o=t.exclude||[],i=_.customElements,c=z.head,r=c.querySelector("meta[charset]"),u=z.createElement("style"),f=[];let d,h=!0;Object.assign(B,t),B.N=new URL(t.resourcesUrl||"./",z.baseURI).href,n.map((n=>{n[1].map((t=>{const e={i:t[0],p:t[1],C:t[2],T:t[3]};e.C=t[2];const s=e.p,c=class extends HTMLElement{constructor(n){super(n),R(n=this,e)}connectedCallback(){d&&(clearTimeout(d),d=null),h?f.push(this):B.jmp((()=>(n=>{if(0==(1&B.i)){const t=F(n),e=t.S,l=()=>{};if(1&t.i)(null==t?void 0:t.m)||(null==t?void 0:t.F)&&t.F.then((()=>{}));else{t.i|=1;{let e=n;for(;e=e.parentNode||e.host;)if(e["s-p"]){b(t,t.$=e);break}}e.C&&Object.entries(e.C).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=H(e),l.then){const n=()=>{};l=await l,n()}l.isProxied||(A(l,e,2),l.isProxied=!0);const n=()=>{};t.i|=8;try{new l(t)}catch(n){W(n)}t.i&=-9,n()}if(l.style){let n=l.style;const t=a(e);if(!V.has(t)){const l=()=>{};((n,t,e)=>{let l=V.get(n);G&&e?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,V.set(n,l)})(t,n,!!(1&e.i)),l()}}}const o=t.$,s=()=>g(t,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()})(0,t,e)}l()}})(this)))}disconnectedCallback(){B.jmp((()=>(async()=>{if(0==(1&B.i)){const n=F(this);(null==n?void 0:n.m)||(null==n?void 0:n.F)&&n.F.then((()=>{}))}})()))}componentOnReady(){return F(this).F}};e.L=n[0],o.includes(s)||i.get(s)||(l.push(s),i.define(s,A(c,e,1)))}))}));{u.innerHTML=l+"{visibility:hidden}.hydrated{visibility:inherit}",u.setAttribute("data-styles","");const n=null!==(e=B.O)&&void 0!==e?e:s(z);null!=n&&u.setAttribute("nonce",n),c.insertBefore(u,r?r.nextSibling:c.firstChild)}h=!1,f.length?f.map((n=>n.connectedCallback())):B.jmp((()=>d=setTimeout(C,30)))},N=n=>B.O=n,T=new WeakMap,F=n=>T.get(n),L=(n,t)=>T.set(t.m=n,t),R=(n,t)=>{const e={i:0,j:n,S:t,P:new Map};return e.F=new Promise((n=>e.M=n)),n["s-p"]=[],n["s-rc"]=[],T.set(n,e)},U=(n,t)=>t in n,W=(n,t)=>(0,console.error)(n,t),q=new Map,H=n=>{const t=n.p.replace(/-/g,"_"),e=n.L,l=q.get(e);return l?l[t]:import(`./${e}.entry.js`).then((n=>(q.set(e,n),n[t])),W)
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},V=new Map,_="undefined"!=typeof window?window:{},z=_.document||{head:{}},B={i:0,N:"",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)},D=n=>Promise.resolve(n),G=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(n){}return!1})(),I=[],J=[],K=(n,e)=>l=>{n.push(l),t||(t=!0,e&&4&B.i?Y(X):B.raf(X))},Q=n=>{for(let t=0;t<n.length;t++)try{n[t](performance.now())}catch(n){W(n)}n.length=0},X=()=>{Q(I),Q(J),(t=I.length>0)&&B.raf(X)},Y=n=>D().then(n),Z=K(J,!0);export{E as b,i as h,D as p,L as r,N as s}