proto-daisy-db 0.0.209 → 0.0.211
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/{index-2deefb9f.js → index-d20555ca.js} +31 -6
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/proto-daisy-db.cjs.js +2 -2
- package/dist/cjs/proto-daisy-db_5.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/esm/{index-b0e0c2f5.js → index-3cc7c567.js} +31 -6
- package/dist/esm/loader.js +2 -2
- package/dist/esm/proto-daisy-db.js +3 -3
- package/dist/esm/proto-daisy-db_5.entry.js +1 -1
- package/dist/proto-daisy-db/p-02e05b51.js +2 -0
- package/dist/proto-daisy-db/{p-79510073.entry.js → p-4c14e51e.entry.js} +1 -1
- package/dist/proto-daisy-db/proto-daisy-db.esm.js +1 -1
- package/package.json +4 -4
- package/dist/proto-daisy-db/p-de7e7f4d.js +0 -2
|
@@ -49,6 +49,13 @@ const uniqueTime = (key, measureText) => {
|
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
51
|
const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
|
|
52
|
+
/**
|
|
53
|
+
* Constant for styles to be globally applied to `slot-fb` elements for pseudo-slot behavior.
|
|
54
|
+
*
|
|
55
|
+
* Two cascading rules must be used instead of a `:not()` selector due to Stencil browser
|
|
56
|
+
* support as of Stencil v4.
|
|
57
|
+
*/
|
|
58
|
+
const SLOT_FB_CSS = 'slot-fb{display:contents}slot-fb[hidden]{display:none}';
|
|
52
59
|
/**
|
|
53
60
|
* Default style mode id
|
|
54
61
|
*/
|
|
@@ -263,6 +270,10 @@ const addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
263
270
|
}
|
|
264
271
|
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
|
|
265
272
|
}
|
|
273
|
+
// Add styles for `slot-fb` elements if we're using slots outside the Shadow DOM
|
|
274
|
+
if (cmpMeta.$flags$ & 4 /* CMP_FLAGS.hasSlotRelocation */) {
|
|
275
|
+
styleElm.innerHTML += SLOT_FB_CSS;
|
|
276
|
+
}
|
|
266
277
|
if (appliedStyles) {
|
|
267
278
|
appliedStyles.add(scopeId);
|
|
268
279
|
}
|
|
@@ -1376,12 +1387,13 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1376
1387
|
const customElements = win.customElements;
|
|
1377
1388
|
const head = doc.head;
|
|
1378
1389
|
const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
|
|
1379
|
-
const
|
|
1390
|
+
const dataStyles = /*@__PURE__*/ doc.createElement('style');
|
|
1380
1391
|
const deferredConnectedCallbacks = [];
|
|
1381
1392
|
let appLoadFallback;
|
|
1382
1393
|
let isBootstrapping = true;
|
|
1383
1394
|
Object.assign(plt, options);
|
|
1384
1395
|
plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
|
|
1396
|
+
let hasSlotRelocation = false;
|
|
1385
1397
|
lazyBundles.map((lazyBundle) => {
|
|
1386
1398
|
lazyBundle[1].map((compactMeta) => {
|
|
1387
1399
|
const cmpMeta = {
|
|
@@ -1390,6 +1402,11 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1390
1402
|
$members$: compactMeta[2],
|
|
1391
1403
|
$listeners$: compactMeta[3],
|
|
1392
1404
|
};
|
|
1405
|
+
// Check if we are using slots outside the shadow DOM in this component.
|
|
1406
|
+
// We'll use this information later to add styles for `slot-fb` elements
|
|
1407
|
+
if (cmpMeta.$flags$ & 4 /* CMP_FLAGS.hasSlotRelocation */) {
|
|
1408
|
+
hasSlotRelocation = true;
|
|
1409
|
+
}
|
|
1393
1410
|
{
|
|
1394
1411
|
cmpMeta.$members$ = compactMeta[2];
|
|
1395
1412
|
}
|
|
@@ -1440,15 +1457,23 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1440
1457
|
}
|
|
1441
1458
|
});
|
|
1442
1459
|
});
|
|
1460
|
+
// Add styles for `slot-fb` elements if any of our components are using slots outside the Shadow DOM
|
|
1461
|
+
if (hasSlotRelocation) {
|
|
1462
|
+
dataStyles.innerHTML += SLOT_FB_CSS;
|
|
1463
|
+
}
|
|
1464
|
+
// Add hydration styles
|
|
1443
1465
|
{
|
|
1444
|
-
|
|
1445
|
-
|
|
1466
|
+
dataStyles.innerHTML += cmpTags + HYDRATED_CSS;
|
|
1467
|
+
}
|
|
1468
|
+
// If we have styles, add them to the DOM
|
|
1469
|
+
if (dataStyles.innerHTML.length) {
|
|
1470
|
+
dataStyles.setAttribute('data-styles', '');
|
|
1471
|
+
head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
|
|
1446
1472
|
// Apply CSP nonce to the style tag if it exists
|
|
1447
1473
|
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
|
1448
1474
|
if (nonce != null) {
|
|
1449
|
-
|
|
1475
|
+
dataStyles.setAttribute('nonce', nonce);
|
|
1450
1476
|
}
|
|
1451
|
-
head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
|
|
1452
1477
|
}
|
|
1453
1478
|
// Process deferred connectedCallbacks now all components have been registered
|
|
1454
1479
|
isBootstrapping = false;
|
|
@@ -1600,7 +1625,7 @@ const flush = () => {
|
|
|
1600
1625
|
}
|
|
1601
1626
|
}
|
|
1602
1627
|
};
|
|
1603
|
-
const nextTick =
|
|
1628
|
+
const nextTick = (cb) => promiseResolve().then(cb);
|
|
1604
1629
|
const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
|
|
1605
1630
|
|
|
1606
1631
|
exports.bootstrapLazy = bootstrapLazy;
|
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-d20555ca.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-d20555ca.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Browser v4.7.
|
|
8
|
+
Stencil Client Patch Browser v4.7.2 | 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-daisy-db.cjs.js', document.baseURI).href));
|
|
@@ -27,6 +27,13 @@ const uniqueTime = (key, measureText) => {
|
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
29
|
const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
|
|
30
|
+
/**
|
|
31
|
+
* Constant for styles to be globally applied to `slot-fb` elements for pseudo-slot behavior.
|
|
32
|
+
*
|
|
33
|
+
* Two cascading rules must be used instead of a `:not()` selector due to Stencil browser
|
|
34
|
+
* support as of Stencil v4.
|
|
35
|
+
*/
|
|
36
|
+
const SLOT_FB_CSS = 'slot-fb{display:contents}slot-fb[hidden]{display:none}';
|
|
30
37
|
/**
|
|
31
38
|
* Default style mode id
|
|
32
39
|
*/
|
|
@@ -241,6 +248,10 @@ const addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
241
248
|
}
|
|
242
249
|
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
|
|
243
250
|
}
|
|
251
|
+
// Add styles for `slot-fb` elements if we're using slots outside the Shadow DOM
|
|
252
|
+
if (cmpMeta.$flags$ & 4 /* CMP_FLAGS.hasSlotRelocation */) {
|
|
253
|
+
styleElm.innerHTML += SLOT_FB_CSS;
|
|
254
|
+
}
|
|
244
255
|
if (appliedStyles) {
|
|
245
256
|
appliedStyles.add(scopeId);
|
|
246
257
|
}
|
|
@@ -1354,12 +1365,13 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1354
1365
|
const customElements = win.customElements;
|
|
1355
1366
|
const head = doc.head;
|
|
1356
1367
|
const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
|
|
1357
|
-
const
|
|
1368
|
+
const dataStyles = /*@__PURE__*/ doc.createElement('style');
|
|
1358
1369
|
const deferredConnectedCallbacks = [];
|
|
1359
1370
|
let appLoadFallback;
|
|
1360
1371
|
let isBootstrapping = true;
|
|
1361
1372
|
Object.assign(plt, options);
|
|
1362
1373
|
plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
|
|
1374
|
+
let hasSlotRelocation = false;
|
|
1363
1375
|
lazyBundles.map((lazyBundle) => {
|
|
1364
1376
|
lazyBundle[1].map((compactMeta) => {
|
|
1365
1377
|
const cmpMeta = {
|
|
@@ -1368,6 +1380,11 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1368
1380
|
$members$: compactMeta[2],
|
|
1369
1381
|
$listeners$: compactMeta[3],
|
|
1370
1382
|
};
|
|
1383
|
+
// Check if we are using slots outside the shadow DOM in this component.
|
|
1384
|
+
// We'll use this information later to add styles for `slot-fb` elements
|
|
1385
|
+
if (cmpMeta.$flags$ & 4 /* CMP_FLAGS.hasSlotRelocation */) {
|
|
1386
|
+
hasSlotRelocation = true;
|
|
1387
|
+
}
|
|
1371
1388
|
{
|
|
1372
1389
|
cmpMeta.$members$ = compactMeta[2];
|
|
1373
1390
|
}
|
|
@@ -1418,15 +1435,23 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1418
1435
|
}
|
|
1419
1436
|
});
|
|
1420
1437
|
});
|
|
1438
|
+
// Add styles for `slot-fb` elements if any of our components are using slots outside the Shadow DOM
|
|
1439
|
+
if (hasSlotRelocation) {
|
|
1440
|
+
dataStyles.innerHTML += SLOT_FB_CSS;
|
|
1441
|
+
}
|
|
1442
|
+
// Add hydration styles
|
|
1421
1443
|
{
|
|
1422
|
-
|
|
1423
|
-
|
|
1444
|
+
dataStyles.innerHTML += cmpTags + HYDRATED_CSS;
|
|
1445
|
+
}
|
|
1446
|
+
// If we have styles, add them to the DOM
|
|
1447
|
+
if (dataStyles.innerHTML.length) {
|
|
1448
|
+
dataStyles.setAttribute('data-styles', '');
|
|
1449
|
+
head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
|
|
1424
1450
|
// Apply CSP nonce to the style tag if it exists
|
|
1425
1451
|
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
|
1426
1452
|
if (nonce != null) {
|
|
1427
|
-
|
|
1453
|
+
dataStyles.setAttribute('nonce', nonce);
|
|
1428
1454
|
}
|
|
1429
|
-
head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
|
|
1430
1455
|
}
|
|
1431
1456
|
// Process deferred connectedCallbacks now all components have been registered
|
|
1432
1457
|
isBootstrapping = false;
|
|
@@ -1578,7 +1603,7 @@ const flush = () => {
|
|
|
1578
1603
|
}
|
|
1579
1604
|
}
|
|
1580
1605
|
};
|
|
1581
|
-
const nextTick =
|
|
1606
|
+
const nextTick = (cb) => promiseResolve().then(cb);
|
|
1582
1607
|
const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
|
|
1583
1608
|
|
|
1584
1609
|
export { bootstrapLazy as b, h, promiseResolve as p, registerInstance as r, setNonce as s };
|
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-3cc7c567.js';
|
|
2
|
+
export { s as setNonce } from './index-3cc7c567.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-3cc7c567.js';
|
|
2
|
+
export { s as setNonce } from './index-3cc7c567.js';
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Patch Browser v4.7.
|
|
5
|
+
Stencil Client Patch Browser v4.7.2 | 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,e=!1;const l="slot-fb{display:contents}slot-fb[hidden]{display:none}",o={},s=n=>"object"==(n=typeof n)||"function"===n;function i(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 c=(n,t,...e)=>{let l=null,o=!1,i=!1;const c=[],u=t=>{for(let e=0;e<t.length;e++)l=t[e],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((o="function"!=typeof n&&!s(l))&&(l+=""),o&&i?c[c.length-1].t+=l:c.push(o?r(null,l):l),i=o)};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=r(n,null);return a.l=t,c.length>0&&(a.o=c),a},r=(n,t)=>({i:0,u:n,t,p:null,o:null,l:null}),u={},a=new WeakMap,f=n=>"sc-"+n.h,d=(n,t,e,l,o,i)=>{if(e!==l){let c=H(n,t),r=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 if(c||"o"!==t[0]||"n"!==t[1]){const r=s(l);if((c||r&&null!==l)&&!o)try{if(n.tagName.includes("-"))n[t]=l;else{const o=null==l?"":l;"list"===t?c=!1:null!=e&&n[t]==o||(n[t]=o)}}catch(n){}null==l||!1===l?!1===l&&""!==n.getAttribute(t)||n.removeAttribute(t):(!c||4&i||o)&&!r&&n.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):H(G,r)?r.slice(2):r[2]+t.slice(3),e||l){const o=t.endsWith(h);t=t.replace($,""),e&&J.rel(n,t,e,o),l&&J.ael(n,t,l,o)}}},y=/\s/,p=n=>n?n.split(y):[],h="Capture",$=RegExp(h+"$"),m=(n,t,e,l)=>{const s=11===t.p.nodeType&&t.p.host?t.p.host:t.p,i=n&&n.l||o,c=t.l||o;for(l in i)l in c||d(s,l,i[l],void 0,e,t.i);for(l in c)d(s,l,i[l],c[l],e,t.i)},v=(t,e,l)=>{const o=e.o[l];let s,i,c=0;if(null!==o.t)s=o.p=I.createTextNode(o.t);else if(s=o.p=I.createElement(o.u),m(null,o,!1),null!=n&&s["s-si"]!==n&&s.classList.add(s["s-si"]=n),o.o)for(c=0;c<o.o.length;++c)i=v(t,o,c),i&&s.appendChild(i);return s},b=(n,e,l,o,s,i)=>{let c,r=n;for(r.shadowRoot&&r.tagName===t&&(r=r.shadowRoot);s<=i;++s)o[s]&&(c=v(null,l,s),c&&(o[s].p=c,r.insertBefore(c,e)))},w=(n,t,e)=>{for(let l=t;l<=e;++l){const t=n[l];if(t){const n=t.p;n&&n.remove()}}},S=(n,t)=>n.u===t.u,g=(n,t)=>{const e=t.p=n.p,l=n.o,o=t.o,s=t.t;null===s?(m(n,t,!1),null!==l&&null!==o?((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]:S(r,f)?(g(r,f),r=t[++s],f=l[++i]):S(u,d)?(g(u,d),u=t[--c],d=l[--a]):S(r,d)?(g(r,d),n.insertBefore(r.p,u.p.nextSibling),r=t[++s],d=l[--a]):S(u,f)?(g(u,f),n.insertBefore(u.p,r.p),u=t[--c],f=l[++i]):(o=v(t&&t[i],e,i),f=l[++i],o&&r.p.parentNode.insertBefore(o,r.p));s>c?b(n,null==l[a+1]?null:l[a+1].p,e,l,i,a):i>a&&w(t,s,c)})(e,l,t,o):null!==o?(null!==n.t&&(e.textContent=""),b(e,null,t,o,0,o.length-1)):null!==l&&w(l,0,l.length-1)):n.t!==s&&(e.data=s)},j=(n,t)=>{t&&!n.$&&t["s-p"]&&t["s-p"].push(new Promise((t=>n.$=t)))},M=(n,t)=>{if(n.i|=16,!(4&n.i))return j(n,n.m),ln((()=>O(n,t)));n.i|=512},O=(n,t)=>{const e=n.v;return k(void 0,(()=>P(n,e,t)))},k=(n,t)=>C(n)?n.then(t):t(),C=n=>n instanceof Promise||n&&n.then&&"function"==typeof n.then,P=async(n,t,e)=>{var o;const s=n.$hostElement$,c=s["s-rc"];e&&(n=>{const t=n.S,e=n.$hostElement$,o=t.i,s=((n,t)=>{var e;const o=f(t),s=B.get(o);if(n=11===n.nodeType?n:I,s)if("string"==typeof s){let c,r=a.get(n=n.head||n);if(r||a.set(n,r=new Set),!r.has(o)){{c=I.createElement("style"),c.innerHTML=s;const t=null!==(e=J.j)&&void 0!==e?e:i(I);null!=t&&c.setAttribute("nonce",t),n.insertBefore(c,n.querySelector("link"))}4&t.i&&(c.innerHTML+=l),r&&r.add(o)}}else n.adoptedStyleSheets.includes(s)||(n.adoptedStyleSheets=[...n.adoptedStyleSheets,s]);return o})(e.shadowRoot?e.shadowRoot:e.getRootNode(),t);10&o&&(e["s-sc"]=s,e.classList.add(s+"-h"))})(n);x(n,t,s,e),c&&(c.map((n=>n())),s["s-rc"]=void 0);{const t=null!==(o=s["s-p"])&&void 0!==o?o:[],e=()=>E(n);0===t.length?e():(Promise.all(t).then(e),n.i|=4,t.length=0)}},x=(e,l,o,s)=>{try{l=l.render(),e.i&=-17,e.i|=2,((e,l,o=!1)=>{const s=e.$hostElement$,i=e.M||r(null,null),a=(n=>n&&n.u===u)(l)?l:c(null,null,l);if(t=s.tagName,o&&a.l)for(const n of Object.keys(a.l))s.hasAttribute(n)&&!["key","ref","style","class"].includes(n)&&(a.l[n]=s[n]);a.u=null,a.i|=4,e.M=a,a.p=i.p=s.shadowRoot||s,n=s["s-sc"],g(i,a)})(e,l,s)}catch(n){V(n,e.$hostElement$)}return null},E=n=>{const t=n.$hostElement$,e=n.v,l=n.m;64&n.i||(n.i|=64,N(t),L(e,"componentDidLoad"),n.O(t),l||A()),n.$&&(n.$(),n.$=void 0),512&n.i&&en((()=>M(n,!1))),n.i&=-517},A=()=>{N(I.documentElement),en((()=>(n=>{const t=J.ce("appload",{detail:{namespace:"proto-daisy-db"}});return n.dispatchEvent(t),t})(G)))},L=(n,t,e)=>{if(n&&n[t])try{return n[t](e)}catch(n){V(n)}},N=n=>n.classList.add("hydrated"),R=(n,t,e)=>{var l;if(t.k){const o=Object.entries(t.k),i=n.prototype;if(o.map((([n,[l]])=>{(31&l||2&e&&32&l)&&Object.defineProperty(i,n,{get(){return((n,t)=>q(this).C.get(t))(0,n)},set(e){((n,t,e,l)=>{const o=q(n),i=o.C.get(t),c=o.i,r=o.v;e=((n,t)=>null==n||s(n)?n:1&t?n+"":n)(e,l.k[t][0]),8&c&&void 0!==i||e===i||Number.isNaN(i)&&Number.isNaN(e)||(o.C.set(t,e),r&&2==(18&c)&&M(o,!1))})(this,n,e,t)},configurable:!0,enumerable:!0})})),1&e){const e=new Map;i.attributeChangedCallback=function(n,l,o){J.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=q(this),s=null==e?void 0:e.i;if(!(8&s)&&128&s&&o!==l){const s=e.v,i=t.P[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.P)&&void 0!==l?l:{}),...o.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||[],c=G.customElements,r=I.head,u=r.querySelector("meta[charset]"),a=I.createElement("style"),d=[];let y,p=!0;Object.assign(J,t),J.A=new URL(t.resourcesUrl||"./",I.baseURI).href;let h=!1;if(n.map((n=>{n[1].map((t=>{const e={i:t[0],h:t[1],k:t[2],L:t[3]};4&e.i&&(h=!0),e.k=t[2];const l=e.h,i=class extends HTMLElement{constructor(n){super(n),F(n=this,e),1&e.i&&n.attachShadow({mode:"open"})}connectedCallback(){y&&(clearTimeout(y),y=null),p?d.push(this):J.jmp((()=>(n=>{if(0==(1&J.i)){const t=q(n),e=t.S,l=()=>{};if(1&t.i)(null==t?void 0:t.v)||(null==t?void 0:t.N)&&t.N.then((()=>{}));else{t.i|=1;{let e=n;for(;e=e.parentNode||e.host;)if(e["s-p"]){j(t,t.m=e);break}}e.k&&Object.entries(e.k).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=z(e),l.then){const n=()=>{};l=await l,n()}l.isProxied||(R(l,e,2),l.isProxied=!0);const n=()=>{};t.i|=8;try{new l(t)}catch(n){V(n)}t.i&=-9,n()}if(l.style){let n=l.style;const t=f(e);if(!B.has(t)){const l=()=>{};((n,t,e)=>{let l=B.get(n);Q&&e?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,B.set(n,l)})(t,n,!!(1&e.i)),l()}}}const o=t.m,s=()=>M(t,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()})(0,t,e)}l()}})(this)))}disconnectedCallback(){J.jmp((()=>(async()=>{if(0==(1&J.i)){const n=q(this);(null==n?void 0:n.v)||(null==n?void 0:n.N)&&n.N.then((()=>{}))}})()))}componentOnReady(){return q(this).N}};e.R=n[0],s.includes(l)||c.get(l)||(o.push(l),c.define(l,R(i,e,1)))}))})),h&&(a.innerHTML+=l),a.innerHTML+=o+"{visibility:hidden}.hydrated{visibility:inherit}",a.innerHTML.length){a.setAttribute("data-styles",""),r.insertBefore(a,u?u.nextSibling:r.firstChild);const n=null!==(e=J.j)&&void 0!==e?e:i(I);null!=n&&a.setAttribute("nonce",n)}p=!1,d.length?d.map((n=>n.connectedCallback())):J.jmp((()=>y=setTimeout(A,30)))},U=n=>J.j=n,W=new WeakMap,q=n=>W.get(n),D=(n,t)=>W.set(t.v=n,t),F=(n,t)=>{const e={i:0,$hostElement$:n,S:t,C:new Map};return e.N=new Promise((n=>e.O=n)),n["s-p"]=[],n["s-rc"]=[],W.set(n,e)},H=(n,t)=>t in n,V=(n,t)=>(0,console.error)(n,t),_=new Map,z=n=>{const t=n.h.replace(/-/g,"_"),e=n.R,l=_.get(e);return l?l[t]:import(`./${e}.entry.js`).then((n=>(_.set(e,n),n[t])),V)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},B=new Map,G="undefined"!=typeof window?window:{},I=G.document||{head:{}},J={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)},K=n=>Promise.resolve(n),Q=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(n){}return!1})(),X=[],Y=[],Z=(n,t)=>l=>{n.push(l),e||(e=!0,t&&4&J.i?en(tn):J.raf(tn))},nn=n=>{for(let t=0;t<n.length;t++)try{n[t](performance.now())}catch(n){V(n)}n.length=0},tn=()=>{nn(X),nn(Y),(e=X.length>0)&&J.raf(tn)},en=n=>K().then(n),ln=Z(Y,!0);export{T as b,c as h,K as p,D as r,U as s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as o}from"./p-
|
|
1
|
+
import{r as t,h as o}from"./p-02e05b51.js";const s="proto-daisy-db:app-data",a=class{constructor(o){t(this,o),this.emitter=void 0}componentDidLoad(){if(this.emitter&&window[this.emitter]){const t=window[this.emitter];t.on("app-data:get",(()=>{var o;console.log("app-data:get"),(o=localStorage.getItem(s),new Promise(((t,s)=>{try{t(JSON.parse(o))}catch(t){s(t)}}))).then((o=>{t.emit("app-data:value",o)})).catch((t=>{console.log(t)}))})),t.on("app-data:store",(t=>{console.log("app-data:store",t),(t=>{const o=JSON.stringify(t);localStorage.setItem(s,o)})(t)})),t.emit("proto-daisy-db",{ready:!0})}}render(){return o("div",null)}};a.style="";const r=class{constructor(o){t(this,o),this.data=void 0}render(){const t=this.data?Object.keys(this.data):[];return o("div",{class:"flex flex-col"},t.map((t=>o("span",null,t))))}};r.style="";const e=class{constructor(o){t(this,o),this.data=void 0}render(){return o("div",{class:"flex"},o("span",null,this.data?this.data.stamp:""))}};e.style="";const i=class{constructor(o){t(this,o),this.emitter=void 0,this.data=void 0}componentDidLoad(){this.emitter&&window[this.emitter]&&window[this.emitter].on("app-data:value",(t=>{this.data=t}))}emitData(){if(this.emitter&&window[this.emitter]){const t=window[this.emitter],o={login:!0,stamp:Date.now(),theme:"dark",dealers:[]};this.data=void 0,t.emit("app-data:store",o)}}fetchData(){this.emitter&&window[this.emitter]&&window[this.emitter].emit("app-data:get",42)}render(){return o("div",{class:"flex flex-col font-sans"},o("div",{class:"flex flex-row content-center gap-2"},o("button",{class:"btn bg-clrs-navy text-clrs-white",onClick:()=>this.emitData()},"Save"),o("button",{class:"btn bg-clrs-blue text-clrs-white",onClick:()=>this.fetchData()},"Fetch")),o("proto-faux-type",{class:"mt-4",emitter:this.emitter}),o("proto-faux-stamp",{class:"mt-2 text-xs",data:this.data}),o("proto-faux-keys",{class:"mt-2",data:this.data}))}};i.style="*,::before,::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}.btn{border-radius:0.375rem;border-width:1px;border-style:solid;border-color:var(--clrs-aqua, #7fdbff);padding:0.5rem}.mt-2{margin-top:0.5rem}.mt-4{margin-top:1rem}.flex{display:flex}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.content-center{align-content:center}.gap-2{gap:0.5rem}.bg-clrs-blue{background-color:var(--clrs-blue, #0074d9)}.bg-clrs-navy{background-color:var(--clrs-navy, #001f3f)}.font-sans{font-family:ui-sans-serif,\n system-ui,\n -apple-system,\n BlinkMacSystemFont,\n 'Segoe UI',\n Roboto,\n 'Helvetica Neue',\n Arial,\n 'Noto Sans',\n sans-serif,\n 'Apple Color Emoji',\n 'Segoe UI Emoji',\n 'Segoe UI Symbol',\n 'Noto Color Emoji'}.text-xs{font-size:0.75rem;line-height:1rem}.italic{font-style:italic}.text-clrs-white{color:var(--clrs-white, #ffffff)}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),\n 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}";const n=class{constructor(o){t(this,o),this.emitter=void 0,this.eventType=void 0}componentDidLoad(){this.emitter&&window[this.emitter]&&window[this.emitter].on("*",(t=>{this.eventType=t}))}render(){return o("div",null,o("span",{class:"text-xs italic"},this.eventType))}};n.style="proto-faux-type{}";export{a as proto_daisy_db,r as proto_faux_keys,e as proto_faux_stamp,i as proto_faux_trigger,n as proto_faux_type}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,b as e}from"./p-
|
|
1
|
+
import{p as t,b as e}from"./p-02e05b51.js";export{s as setNonce}from"./p-02e05b51.js";(()=>{const e=import.meta.url,o={};return""!==e&&(o.resourcesUrl=new URL(".",e).href),t(o)})().then((t=>e([["p-4c14e51e",[[0,"proto-faux-trigger",{emitter:[1],data:[1040]}],[1,"proto-daisy-db",{emitter:[1]}],[0,"proto-faux-keys",{data:[16]}],[0,"proto-faux-stamp",{data:[16]}],[0,"proto-faux-type",{emitter:[1],eventType:[1025,"event-type"]}]]]],t)));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "proto-daisy-db",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.211",
|
|
4
4
|
"description": "Stencil Component Starter",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"format": "prettier --write src"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@stencil/core": "4.7.
|
|
30
|
+
"@stencil/core": "4.7.2",
|
|
31
31
|
"mitt": "3.0.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"concurrently": "8.2.2",
|
|
36
36
|
"cspell": "8.0.0",
|
|
37
37
|
"postcss": "8.4.31",
|
|
38
|
-
"prettier": "3.0
|
|
38
|
+
"prettier": "3.1.0",
|
|
39
39
|
"prettier-plugin-tailwindcss": "0.5.7",
|
|
40
|
-
"proto-tailwindcss-clrs": "0.0.
|
|
40
|
+
"proto-tailwindcss-clrs": "0.0.287",
|
|
41
41
|
"tailwindcss": "3.3.5"
|
|
42
42
|
},
|
|
43
43
|
"license": "MIT"
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
let n,t,e=!1;const 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,p:null,o:null,l:null}),r={},u=new WeakMap,a=n=>"sc-"+n.$,f=(n,t,e,l,s,i)=>{if(e!==l){let c=F(n,t),r=t.toLowerCase();if("class"===t){const t=n.classList,o=y(e),s=y(l);t.remove(...o.filter((n=>n&&!s.includes(n)))),t.add(...s.filter((n=>n&&!o.includes(n))))}else if(c||"o"!==t[0]||"n"!==t[1]){const r=o(l);if((c||r&&null!==l)&&!s)try{if(n.tagName.includes("-"))n[t]=l;else{const o=null==l?"":l;"list"===t?c=!1:null!=e&&n[t]==o||(n[t]=o)}}catch(n){}null==l||!1===l?!1===l&&""!==n.getAttribute(t)||n.removeAttribute(t):(!c||4&i||s)&&!r&&n.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):F(B,r)?r.slice(2):r[2]+t.slice(3),e||l){const o=t.endsWith(p);t=t.replace($,""),e&&I.rel(n,t,e,o),l&&I.ael(n,t,l,o)}}},d=/\s/,y=n=>n?n.split(d):[],p="Capture",$=RegExp(p+"$"),h=(n,t,e,o)=>{const s=11===t.p.nodeType&&t.p.host?t.p.host:t.p,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)},m=(t,e,l)=>{const o=e.o[l];let s,i,c=0;if(null!==o.t)s=o.p=G.createTextNode(o.t);else if(s=o.p=G.createElement(o.u),h(null,o,!1),null!=n&&s["s-si"]!==n&&s.classList.add(s["s-si"]=n),o.o)for(c=0;c<o.o.length;++c)i=m(t,o,c),i&&s.appendChild(i);return s},v=(n,e,l,o,s,i)=>{let c,r=n;for(r.shadowRoot&&r.tagName===t&&(r=r.shadowRoot);s<=i;++s)o[s]&&(c=m(null,l,s),c&&(o[s].p=c,r.insertBefore(c,e)))},b=(n,t,e)=>{for(let l=t;l<=e;++l){const t=n[l];if(t){const n=t.p;n&&n.remove()}}},w=(n,t)=>n.u===t.u,S=(n,t)=>{const e=t.p=n.p,l=n.o,o=t.o,s=t.t;null===s?(h(n,t,!1),null!==l&&null!==o?((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]:w(r,f)?(S(r,f),r=t[++s],f=l[++i]):w(u,d)?(S(u,d),u=t[--c],d=l[--a]):w(r,d)?(S(r,d),n.insertBefore(r.p,u.p.nextSibling),r=t[++s],d=l[--a]):w(u,f)?(S(u,f),n.insertBefore(u.p,r.p),u=t[--c],f=l[++i]):(o=m(t&&t[i],e,i),f=l[++i],o&&r.p.parentNode.insertBefore(o,r.p));s>c?v(n,null==l[a+1]?null:l[a+1].p,e,l,i,a):i>a&&b(t,s,c)})(e,l,t,o):null!==o?(null!==n.t&&(e.textContent=""),v(e,null,t,o,0,o.length-1)):null!==l&&b(l,0,l.length-1)):n.t!==s&&(e.data=s)},g=(n,t)=>{t&&!n.h&&t["s-p"]&&t["s-p"].push(new Promise((t=>n.h=t)))},j=(n,t)=>{if(n.i|=16,!(4&n.i))return g(n,n.m),en((()=>M(n,t)));n.i|=512},M=(n,t)=>{const e=n.v;return O(void 0,(()=>C(n,e,t)))},O=(n,t)=>k(n)?n.then(t):t(),k=n=>n instanceof Promise||n&&n.then&&"function"==typeof n.then,C=async(n,t,e)=>{var l;const o=n.$hostElement$,i=o["s-rc"];e&&(n=>{const t=n.S,e=n.$hostElement$,l=t.i,o=((n,t)=>{var e;const l=a(t),o=z.get(l);if(n=11===n.nodeType?n:G,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=G.createElement("style"),t.innerHTML=o;const l=null!==(e=I.j)&&void 0!==e?e:s(G);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]);return l})(e.shadowRoot?e.shadowRoot:e.getRootNode(),t);10&l&&(e["s-sc"]=o,e.classList.add(o+"-h"))})(n);P(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)}},P=(e,l,o,s)=>{try{l=l.render(),e.i&=-17,e.i|=2,((e,l,o=!1)=>{const s=e.$hostElement$,u=e.M||c(null,null),a=(n=>n&&n.u===r)(l)?l:i(null,null,l);if(t=s.tagName,o&&a.l)for(const n of Object.keys(a.l))s.hasAttribute(n)&&!["key","ref","style","class"].includes(n)&&(a.l[n]=s[n]);a.u=null,a.i|=4,e.M=a,a.p=u.p=s.shadowRoot||s,n=s["s-sc"],S(u,a)})(e,l,s)}catch(n){H(n,e.$hostElement$)}return null},x=n=>{const t=n.$hostElement$,e=n.v,l=n.m;64&n.i||(n.i|=64,L(t),A(e,"componentDidLoad"),n.O(t),l||E()),n.h&&(n.h(),n.h=void 0),512&n.i&&tn((()=>j(n,!1))),n.i&=-517},E=()=>{L(G.documentElement),tn((()=>(n=>{const t=I.ce("appload",{detail:{namespace:"proto-daisy-db"}});return n.dispatchEvent(t),t})(B)))},A=(n,t,e)=>{if(n&&n[t])try{return n[t](e)}catch(n){H(n)}},L=n=>n.classList.add("hydrated"),N=(n,t,e)=>{var l;if(t.k){const s=Object.entries(t.k),i=n.prototype;if(s.map((([n,[l]])=>{(31&l||2&e&&32&l)&&Object.defineProperty(i,n,{get(){return((n,t)=>W(this).C.get(t))(0,n)},set(e){((n,t,e,l)=>{const s=W(n),i=s.C.get(t),c=s.i,r=s.v;e=((n,t)=>null==n||o(n)?n:1&t?n+"":n)(e,l.k[t][0]),8&c&&void 0!==i||e===i||Number.isNaN(i)&&Number.isNaN(e)||(s.C.set(t,e),r&&2==(18&c)&&j(s,!1))})(this,n,e,t)},configurable:!0,enumerable:!0})})),1&e){const e=new Map;i.attributeChangedCallback=function(n,l,o){I.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=W(this),s=null==e?void 0:e.i;if(!(8&s)&&128&s&&o!==l){const s=e.v,i=t.P[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.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},R=(n,t={})=>{var e;const l=[],o=t.exclude||[],i=B.customElements,c=G.head,r=c.querySelector("meta[charset]"),u=G.createElement("style"),f=[];let d,y=!0;Object.assign(I,t),I.A=new URL(t.resourcesUrl||"./",G.baseURI).href,n.map((n=>{n[1].map((t=>{const e={i:t[0],$:t[1],k:t[2],L:t[3]};e.k=t[2];const s=e.$,c=class extends HTMLElement{constructor(n){super(n),D(n=this,e),1&e.i&&n.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),y?f.push(this):I.jmp((()=>(n=>{if(0==(1&I.i)){const t=W(n),e=t.S,l=()=>{};if(1&t.i)(null==t?void 0:t.v)||(null==t?void 0:t.N)&&t.N.then((()=>{}));else{t.i|=1;{let e=n;for(;e=e.parentNode||e.host;)if(e["s-p"]){g(t,t.m=e);break}}e.k&&Object.entries(e.k).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=a(e);if(!z.has(t)){const l=()=>{};((n,t,e)=>{let l=z.get(n);K&&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.m,s=()=>j(t,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()})(0,t,e)}l()}})(this)))}disconnectedCallback(){I.jmp((()=>(async()=>{if(0==(1&I.i)){const n=W(this);(null==n?void 0:n.v)||(null==n?void 0:n.N)&&n.N.then((()=>{}))}})()))}componentOnReady(){return W(this).N}};e.R=n[0],o.includes(s)||i.get(s)||(l.push(s),i.define(s,N(c,e,1)))}))}));{u.innerHTML=l+"{visibility:hidden}.hydrated{visibility:inherit}",u.setAttribute("data-styles","");const n=null!==(e=I.j)&&void 0!==e?e:s(G);null!=n&&u.setAttribute("nonce",n),c.insertBefore(u,r?r.nextSibling:c.firstChild)}y=!1,f.length?f.map((n=>n.connectedCallback())):I.jmp((()=>d=setTimeout(E,30)))},T=n=>I.j=n,U=new WeakMap,W=n=>U.get(n),q=(n,t)=>U.set(t.v=n,t),D=(n,t)=>{const e={i:0,$hostElement$:n,S:t,C:new Map};return e.N=new Promise((n=>e.O=n)),n["s-p"]=[],n["s-rc"]=[],U.set(n,e)},F=(n,t)=>t in n,H=(n,t)=>(0,console.error)(n,t),V=new Map,_=n=>{const t=n.$.replace(/-/g,"_"),e=n.R,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:{},G=B.document||{head:{}},I={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)},J=n=>Promise.resolve(n),K=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(n){}return!1})(),Q=[],X=[],Y=(n,t)=>l=>{n.push(l),e||(e=!0,t&&4&I.i?tn(nn):I.raf(nn))},Z=n=>{for(let t=0;t<n.length;t++)try{n[t](performance.now())}catch(n){H(n)}n.length=0},nn=()=>{Z(Q),Z(X),(e=Q.length>0)&&I.raf(nn)},tn=n=>J().then(n),en=Y(X,!0);export{R as b,i as h,J as p,q as r,T as s}
|