proto-daisy-db 0.0.393 → 0.0.394
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-bc96c92b.js → index-77a2b6f9.js} +187 -171
- 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-e35c6222.js → index-09bce8df.js} +187 -171
- 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-f0b7428e.js +2 -0
- package/dist/proto-daisy-db/{p-d4d9e284.entry.js → p-febae878.entry.js} +1 -1
- package/dist/proto-daisy-db/proto-daisy-db.esm.js +1 -1
- package/package.json +2 -2
- package/dist/proto-daisy-db/p-3c1eefd5.js +0 -2
|
@@ -24,7 +24,7 @@ const NAMESPACE = 'proto-daisy-db';
|
|
|
24
24
|
const BUILD = /* proto-daisy-db */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: 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: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: true, propNumber: false, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: false, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
|
-
Stencil Client Platform v4.
|
|
27
|
+
Stencil Client Platform v4.24.0 | MIT Licensed | https://stenciljs.com
|
|
28
28
|
*/
|
|
29
29
|
var __defProp = Object.defineProperty;
|
|
30
30
|
var __export = (target, all) => {
|
|
@@ -202,6 +202,20 @@ var unwrapErr = (result) => {
|
|
|
202
202
|
throw result.value;
|
|
203
203
|
}
|
|
204
204
|
};
|
|
205
|
+
var createTime = (fnName, tagName = "") => {
|
|
206
|
+
{
|
|
207
|
+
return () => {
|
|
208
|
+
return;
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
var uniqueTime = (key, measureText) => {
|
|
213
|
+
{
|
|
214
|
+
return () => {
|
|
215
|
+
return;
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
};
|
|
205
219
|
var h = (nodeName, vnodeData, ...children) => {
|
|
206
220
|
let child = null;
|
|
207
221
|
let key = null;
|
|
@@ -266,6 +280,110 @@ var newVNode = (tag, text) => {
|
|
|
266
280
|
};
|
|
267
281
|
var Host = {};
|
|
268
282
|
var isHost = (node) => node && node.$tag$ === Host;
|
|
283
|
+
var parsePropertyValue = (propValue, propType) => {
|
|
284
|
+
if (propValue != null && !isComplexType(propValue)) {
|
|
285
|
+
if (propType & 1 /* String */) {
|
|
286
|
+
return String(propValue);
|
|
287
|
+
}
|
|
288
|
+
return propValue;
|
|
289
|
+
}
|
|
290
|
+
return propValue;
|
|
291
|
+
};
|
|
292
|
+
var emitEvent = (elm, name, opts) => {
|
|
293
|
+
const ev = plt.ce(name, opts);
|
|
294
|
+
elm.dispatchEvent(ev);
|
|
295
|
+
return ev;
|
|
296
|
+
};
|
|
297
|
+
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
298
|
+
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
299
|
+
let style = styles.get(scopeId2);
|
|
300
|
+
if (supportsConstructableStylesheets && allowCS) {
|
|
301
|
+
style = style || new CSSStyleSheet();
|
|
302
|
+
if (typeof style === "string") {
|
|
303
|
+
style = cssText;
|
|
304
|
+
} else {
|
|
305
|
+
style.replaceSync(cssText);
|
|
306
|
+
}
|
|
307
|
+
} else {
|
|
308
|
+
style = cssText;
|
|
309
|
+
}
|
|
310
|
+
styles.set(scopeId2, style);
|
|
311
|
+
};
|
|
312
|
+
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
313
|
+
var _a;
|
|
314
|
+
const scopeId2 = getScopeId(cmpMeta);
|
|
315
|
+
const style = styles.get(scopeId2);
|
|
316
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
317
|
+
if (style) {
|
|
318
|
+
if (typeof style === "string") {
|
|
319
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
320
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
321
|
+
let styleElm;
|
|
322
|
+
if (!appliedStyles) {
|
|
323
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
324
|
+
}
|
|
325
|
+
if (!appliedStyles.has(scopeId2)) {
|
|
326
|
+
{
|
|
327
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
|
328
|
+
styleElm.innerHTML = style;
|
|
329
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
330
|
+
if (nonce != null) {
|
|
331
|
+
styleElm.setAttribute("nonce", nonce);
|
|
332
|
+
}
|
|
333
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
334
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
|
335
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
336
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
337
|
+
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
338
|
+
} else if ("host" in styleContainerNode) {
|
|
339
|
+
if (supportsConstructableStylesheets) {
|
|
340
|
+
const stylesheet = new CSSStyleSheet();
|
|
341
|
+
stylesheet.replaceSync(style);
|
|
342
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
343
|
+
} else {
|
|
344
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
345
|
+
if (existingStyleContainer) {
|
|
346
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
347
|
+
} else {
|
|
348
|
+
styleContainerNode.prepend(styleElm);
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
} else {
|
|
352
|
+
styleContainerNode.append(styleElm);
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
356
|
+
styleContainerNode.insertBefore(styleElm, null);
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
360
|
+
styleElm.innerHTML += SLOT_FB_CSS;
|
|
361
|
+
}
|
|
362
|
+
if (appliedStyles) {
|
|
363
|
+
appliedStyles.add(scopeId2);
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
367
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
return scopeId2;
|
|
371
|
+
};
|
|
372
|
+
var attachStyles = (hostRef) => {
|
|
373
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
374
|
+
const elm = hostRef.$hostElement$;
|
|
375
|
+
const flags = cmpMeta.$flags$;
|
|
376
|
+
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
377
|
+
const scopeId2 = addStyle(
|
|
378
|
+
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
379
|
+
cmpMeta);
|
|
380
|
+
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
381
|
+
elm["s-sc"] = scopeId2;
|
|
382
|
+
elm.classList.add(scopeId2 + "-h");
|
|
383
|
+
}
|
|
384
|
+
endAttachStyles();
|
|
385
|
+
};
|
|
386
|
+
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
269
387
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
270
388
|
if (oldValue !== newValue) {
|
|
271
389
|
let isProp = isMemberInElement(elm, memberName);
|
|
@@ -319,7 +437,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
319
437
|
elm.setAttribute(memberName, n);
|
|
320
438
|
}
|
|
321
439
|
}
|
|
322
|
-
} else {
|
|
440
|
+
} else if (elm[memberName] !== newValue) {
|
|
323
441
|
elm[memberName] = newValue;
|
|
324
442
|
}
|
|
325
443
|
} catch (e) {
|
|
@@ -559,8 +677,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
559
677
|
}
|
|
560
678
|
};
|
|
561
679
|
var insertBefore = (parent, newNode, reference) => {
|
|
562
|
-
|
|
563
|
-
|
|
680
|
+
{
|
|
681
|
+
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
682
|
+
}
|
|
564
683
|
};
|
|
565
684
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
566
685
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -582,129 +701,18 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
582
701
|
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
583
702
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
584
703
|
};
|
|
585
|
-
var createTime = (fnName, tagName = "") => {
|
|
586
|
-
{
|
|
587
|
-
return () => {
|
|
588
|
-
return;
|
|
589
|
-
};
|
|
590
|
-
}
|
|
591
|
-
};
|
|
592
|
-
var uniqueTime = (key, measureText) => {
|
|
593
|
-
{
|
|
594
|
-
return () => {
|
|
595
|
-
return;
|
|
596
|
-
};
|
|
597
|
-
}
|
|
598
|
-
};
|
|
599
|
-
var parsePropertyValue = (propValue, propType) => {
|
|
600
|
-
if (propValue != null && !isComplexType(propValue)) {
|
|
601
|
-
if (propType & 1 /* String */) {
|
|
602
|
-
return String(propValue);
|
|
603
|
-
}
|
|
604
|
-
return propValue;
|
|
605
|
-
}
|
|
606
|
-
return propValue;
|
|
607
|
-
};
|
|
608
|
-
var emitEvent = (elm, name, opts) => {
|
|
609
|
-
const ev = plt.ce(name, opts);
|
|
610
|
-
elm.dispatchEvent(ev);
|
|
611
|
-
return ev;
|
|
612
|
-
};
|
|
613
|
-
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
614
|
-
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
615
|
-
let style = styles.get(scopeId2);
|
|
616
|
-
if (supportsConstructableStylesheets && allowCS) {
|
|
617
|
-
style = style || new CSSStyleSheet();
|
|
618
|
-
if (typeof style === "string") {
|
|
619
|
-
style = cssText;
|
|
620
|
-
} else {
|
|
621
|
-
style.replaceSync(cssText);
|
|
622
|
-
}
|
|
623
|
-
} else {
|
|
624
|
-
style = cssText;
|
|
625
|
-
}
|
|
626
|
-
styles.set(scopeId2, style);
|
|
627
|
-
};
|
|
628
|
-
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
629
|
-
var _a;
|
|
630
|
-
const scopeId2 = getScopeId(cmpMeta);
|
|
631
|
-
const style = styles.get(scopeId2);
|
|
632
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
633
|
-
if (style) {
|
|
634
|
-
if (typeof style === "string") {
|
|
635
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
636
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
637
|
-
let styleElm;
|
|
638
|
-
if (!appliedStyles) {
|
|
639
|
-
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
640
|
-
}
|
|
641
|
-
if (!appliedStyles.has(scopeId2)) {
|
|
642
|
-
{
|
|
643
|
-
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
|
644
|
-
styleElm.innerHTML = style;
|
|
645
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
646
|
-
if (nonce != null) {
|
|
647
|
-
styleElm.setAttribute("nonce", nonce);
|
|
648
|
-
}
|
|
649
|
-
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
650
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
651
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
652
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
653
|
-
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
654
|
-
} else if ("host" in styleContainerNode) {
|
|
655
|
-
if (supportsConstructableStylesheets) {
|
|
656
|
-
const stylesheet = new CSSStyleSheet();
|
|
657
|
-
stylesheet.replaceSync(style);
|
|
658
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
659
|
-
} else {
|
|
660
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
661
|
-
if (existingStyleContainer) {
|
|
662
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
663
|
-
} else {
|
|
664
|
-
styleContainerNode.prepend(styleElm);
|
|
665
|
-
}
|
|
666
|
-
}
|
|
667
|
-
} else {
|
|
668
|
-
styleContainerNode.append(styleElm);
|
|
669
|
-
}
|
|
670
|
-
}
|
|
671
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
672
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
673
|
-
}
|
|
674
|
-
}
|
|
675
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
676
|
-
styleElm.innerHTML += SLOT_FB_CSS;
|
|
677
|
-
}
|
|
678
|
-
if (appliedStyles) {
|
|
679
|
-
appliedStyles.add(scopeId2);
|
|
680
|
-
}
|
|
681
|
-
}
|
|
682
|
-
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
683
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
684
|
-
}
|
|
685
|
-
}
|
|
686
|
-
return scopeId2;
|
|
687
|
-
};
|
|
688
|
-
var attachStyles = (hostRef) => {
|
|
689
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
690
|
-
const elm = hostRef.$hostElement$;
|
|
691
|
-
const flags = cmpMeta.$flags$;
|
|
692
|
-
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
693
|
-
const scopeId2 = addStyle(
|
|
694
|
-
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
695
|
-
cmpMeta);
|
|
696
|
-
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
697
|
-
elm["s-sc"] = scopeId2;
|
|
698
|
-
elm.classList.add(scopeId2 + "-h");
|
|
699
|
-
}
|
|
700
|
-
endAttachStyles();
|
|
701
|
-
};
|
|
702
|
-
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
703
704
|
|
|
704
705
|
// src/runtime/update-component.ts
|
|
705
706
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
706
707
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
707
|
-
ancestorComponent["s-p"].push(
|
|
708
|
+
const index = ancestorComponent["s-p"].push(
|
|
709
|
+
new Promise(
|
|
710
|
+
(r) => hostRef.$onRenderResolve$ = () => {
|
|
711
|
+
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
712
|
+
r();
|
|
713
|
+
}
|
|
714
|
+
)
|
|
715
|
+
);
|
|
708
716
|
}
|
|
709
717
|
};
|
|
710
718
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -877,62 +885,69 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
877
885
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
878
886
|
members.map(([memberName, [memberFlags]]) => {
|
|
879
887
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
880
|
-
|
|
888
|
+
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
889
|
+
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
890
|
+
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
891
|
+
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
881
892
|
Object.defineProperty(prototype, memberName, {
|
|
882
893
|
get() {
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
},
|
|
888
|
-
configurable: true,
|
|
889
|
-
enumerable: true
|
|
890
|
-
});
|
|
891
|
-
} else if (flags & 1 /* isElementConstructor */ && memberFlags & 2048 /* Getter */) {
|
|
892
|
-
{
|
|
893
|
-
Object.defineProperty(prototype, memberName, {
|
|
894
|
-
get() {
|
|
894
|
+
{
|
|
895
|
+
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
896
|
+
return getValue(this, memberName);
|
|
897
|
+
}
|
|
895
898
|
const ref = getHostRef(this);
|
|
896
899
|
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
897
900
|
if (!instance) return;
|
|
898
901
|
return instance[memberName];
|
|
899
|
-
}
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
}
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
902
|
+
}
|
|
903
|
+
},
|
|
904
|
+
configurable: true,
|
|
905
|
+
enumerable: true
|
|
906
|
+
});
|
|
907
|
+
}
|
|
908
|
+
Object.defineProperty(prototype, memberName, {
|
|
909
|
+
set(newValue) {
|
|
910
|
+
const ref = getHostRef(this);
|
|
911
|
+
if (origSetter) {
|
|
912
|
+
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
913
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
914
|
+
newValue = ref.$instanceValues$.get(memberName);
|
|
915
|
+
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
916
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
917
|
+
}
|
|
918
|
+
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
919
|
+
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
920
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
921
|
+
return;
|
|
922
|
+
}
|
|
923
|
+
{
|
|
924
|
+
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
925
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
926
|
+
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
927
|
+
ref.$onReadyPromise$.then(() => {
|
|
928
|
+
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
929
|
+
ref.$lazyInstance$[memberName] = newValue;
|
|
930
|
+
}
|
|
931
|
+
});
|
|
917
932
|
}
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, cmpMeta.$members$[memberName][0]);
|
|
925
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
926
|
-
};
|
|
927
|
-
if (ref.$lazyInstance$) {
|
|
928
|
-
setterSetVal();
|
|
929
|
-
} else {
|
|
930
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
933
|
+
return;
|
|
934
|
+
}
|
|
935
|
+
const setterSetVal = () => {
|
|
936
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
|
937
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
938
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
931
939
|
}
|
|
940
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
941
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
942
|
+
};
|
|
943
|
+
if (ref.$lazyInstance$) {
|
|
944
|
+
setterSetVal();
|
|
945
|
+
} else {
|
|
946
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
932
947
|
}
|
|
933
|
-
}
|
|
948
|
+
}
|
|
934
949
|
}
|
|
935
|
-
}
|
|
950
|
+
});
|
|
936
951
|
}
|
|
937
952
|
});
|
|
938
953
|
if ((flags & 1 /* isElementConstructor */)) {
|
|
@@ -962,8 +977,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
962
977
|
return;
|
|
963
978
|
}
|
|
964
979
|
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
965
|
-
|
|
966
|
-
|
|
980
|
+
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
981
|
+
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
982
|
+
this[propName] = newValue;
|
|
967
983
|
}
|
|
968
984
|
});
|
|
969
985
|
};
|
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-77a2b6f9.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-77a2b6f9.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
|
-
Stencil Client Patch Browser v4.
|
|
9
|
+
Stencil Client Patch Browser v4.24.0 | MIT Licensed | https://stenciljs.com
|
|
10
10
|
*/
|
|
11
11
|
var patchBrowser = () => {
|
|
12
12
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('proto-daisy-db.cjs.js', document.baseURI).href));
|
|
@@ -2,7 +2,7 @@ const NAMESPACE = 'proto-daisy-db';
|
|
|
2
2
|
const BUILD = /* proto-daisy-db */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: 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: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: true, propNumber: false, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: false, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.
|
|
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) => {
|
|
@@ -180,6 +180,20 @@ var unwrapErr = (result) => {
|
|
|
180
180
|
throw result.value;
|
|
181
181
|
}
|
|
182
182
|
};
|
|
183
|
+
var createTime = (fnName, tagName = "") => {
|
|
184
|
+
{
|
|
185
|
+
return () => {
|
|
186
|
+
return;
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
var uniqueTime = (key, measureText) => {
|
|
191
|
+
{
|
|
192
|
+
return () => {
|
|
193
|
+
return;
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
};
|
|
183
197
|
var h = (nodeName, vnodeData, ...children) => {
|
|
184
198
|
let child = null;
|
|
185
199
|
let key = null;
|
|
@@ -244,6 +258,110 @@ var newVNode = (tag, text) => {
|
|
|
244
258
|
};
|
|
245
259
|
var Host = {};
|
|
246
260
|
var isHost = (node) => node && node.$tag$ === Host;
|
|
261
|
+
var parsePropertyValue = (propValue, propType) => {
|
|
262
|
+
if (propValue != null && !isComplexType(propValue)) {
|
|
263
|
+
if (propType & 1 /* String */) {
|
|
264
|
+
return String(propValue);
|
|
265
|
+
}
|
|
266
|
+
return propValue;
|
|
267
|
+
}
|
|
268
|
+
return propValue;
|
|
269
|
+
};
|
|
270
|
+
var emitEvent = (elm, name, opts) => {
|
|
271
|
+
const ev = plt.ce(name, opts);
|
|
272
|
+
elm.dispatchEvent(ev);
|
|
273
|
+
return ev;
|
|
274
|
+
};
|
|
275
|
+
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
276
|
+
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
277
|
+
let style = styles.get(scopeId2);
|
|
278
|
+
if (supportsConstructableStylesheets && allowCS) {
|
|
279
|
+
style = style || new CSSStyleSheet();
|
|
280
|
+
if (typeof style === "string") {
|
|
281
|
+
style = cssText;
|
|
282
|
+
} else {
|
|
283
|
+
style.replaceSync(cssText);
|
|
284
|
+
}
|
|
285
|
+
} else {
|
|
286
|
+
style = cssText;
|
|
287
|
+
}
|
|
288
|
+
styles.set(scopeId2, style);
|
|
289
|
+
};
|
|
290
|
+
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
291
|
+
var _a;
|
|
292
|
+
const scopeId2 = getScopeId(cmpMeta);
|
|
293
|
+
const style = styles.get(scopeId2);
|
|
294
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
295
|
+
if (style) {
|
|
296
|
+
if (typeof style === "string") {
|
|
297
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
298
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
299
|
+
let styleElm;
|
|
300
|
+
if (!appliedStyles) {
|
|
301
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
302
|
+
}
|
|
303
|
+
if (!appliedStyles.has(scopeId2)) {
|
|
304
|
+
{
|
|
305
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
|
306
|
+
styleElm.innerHTML = style;
|
|
307
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
308
|
+
if (nonce != null) {
|
|
309
|
+
styleElm.setAttribute("nonce", nonce);
|
|
310
|
+
}
|
|
311
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
312
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
|
313
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
314
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
315
|
+
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
316
|
+
} else if ("host" in styleContainerNode) {
|
|
317
|
+
if (supportsConstructableStylesheets) {
|
|
318
|
+
const stylesheet = new CSSStyleSheet();
|
|
319
|
+
stylesheet.replaceSync(style);
|
|
320
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
321
|
+
} else {
|
|
322
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
323
|
+
if (existingStyleContainer) {
|
|
324
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
325
|
+
} else {
|
|
326
|
+
styleContainerNode.prepend(styleElm);
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
} else {
|
|
330
|
+
styleContainerNode.append(styleElm);
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
334
|
+
styleContainerNode.insertBefore(styleElm, null);
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
338
|
+
styleElm.innerHTML += SLOT_FB_CSS;
|
|
339
|
+
}
|
|
340
|
+
if (appliedStyles) {
|
|
341
|
+
appliedStyles.add(scopeId2);
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
345
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
return scopeId2;
|
|
349
|
+
};
|
|
350
|
+
var attachStyles = (hostRef) => {
|
|
351
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
352
|
+
const elm = hostRef.$hostElement$;
|
|
353
|
+
const flags = cmpMeta.$flags$;
|
|
354
|
+
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
355
|
+
const scopeId2 = addStyle(
|
|
356
|
+
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
357
|
+
cmpMeta);
|
|
358
|
+
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
359
|
+
elm["s-sc"] = scopeId2;
|
|
360
|
+
elm.classList.add(scopeId2 + "-h");
|
|
361
|
+
}
|
|
362
|
+
endAttachStyles();
|
|
363
|
+
};
|
|
364
|
+
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
247
365
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
248
366
|
if (oldValue !== newValue) {
|
|
249
367
|
let isProp = isMemberInElement(elm, memberName);
|
|
@@ -297,7 +415,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
297
415
|
elm.setAttribute(memberName, n);
|
|
298
416
|
}
|
|
299
417
|
}
|
|
300
|
-
} else {
|
|
418
|
+
} else if (elm[memberName] !== newValue) {
|
|
301
419
|
elm[memberName] = newValue;
|
|
302
420
|
}
|
|
303
421
|
} catch (e) {
|
|
@@ -537,8 +655,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
537
655
|
}
|
|
538
656
|
};
|
|
539
657
|
var insertBefore = (parent, newNode, reference) => {
|
|
540
|
-
|
|
541
|
-
|
|
658
|
+
{
|
|
659
|
+
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
660
|
+
}
|
|
542
661
|
};
|
|
543
662
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
544
663
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -560,129 +679,18 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
560
679
|
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
561
680
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
562
681
|
};
|
|
563
|
-
var createTime = (fnName, tagName = "") => {
|
|
564
|
-
{
|
|
565
|
-
return () => {
|
|
566
|
-
return;
|
|
567
|
-
};
|
|
568
|
-
}
|
|
569
|
-
};
|
|
570
|
-
var uniqueTime = (key, measureText) => {
|
|
571
|
-
{
|
|
572
|
-
return () => {
|
|
573
|
-
return;
|
|
574
|
-
};
|
|
575
|
-
}
|
|
576
|
-
};
|
|
577
|
-
var parsePropertyValue = (propValue, propType) => {
|
|
578
|
-
if (propValue != null && !isComplexType(propValue)) {
|
|
579
|
-
if (propType & 1 /* String */) {
|
|
580
|
-
return String(propValue);
|
|
581
|
-
}
|
|
582
|
-
return propValue;
|
|
583
|
-
}
|
|
584
|
-
return propValue;
|
|
585
|
-
};
|
|
586
|
-
var emitEvent = (elm, name, opts) => {
|
|
587
|
-
const ev = plt.ce(name, opts);
|
|
588
|
-
elm.dispatchEvent(ev);
|
|
589
|
-
return ev;
|
|
590
|
-
};
|
|
591
|
-
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
592
|
-
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
593
|
-
let style = styles.get(scopeId2);
|
|
594
|
-
if (supportsConstructableStylesheets && allowCS) {
|
|
595
|
-
style = style || new CSSStyleSheet();
|
|
596
|
-
if (typeof style === "string") {
|
|
597
|
-
style = cssText;
|
|
598
|
-
} else {
|
|
599
|
-
style.replaceSync(cssText);
|
|
600
|
-
}
|
|
601
|
-
} else {
|
|
602
|
-
style = cssText;
|
|
603
|
-
}
|
|
604
|
-
styles.set(scopeId2, style);
|
|
605
|
-
};
|
|
606
|
-
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
607
|
-
var _a;
|
|
608
|
-
const scopeId2 = getScopeId(cmpMeta);
|
|
609
|
-
const style = styles.get(scopeId2);
|
|
610
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
611
|
-
if (style) {
|
|
612
|
-
if (typeof style === "string") {
|
|
613
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
614
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
615
|
-
let styleElm;
|
|
616
|
-
if (!appliedStyles) {
|
|
617
|
-
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
618
|
-
}
|
|
619
|
-
if (!appliedStyles.has(scopeId2)) {
|
|
620
|
-
{
|
|
621
|
-
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
|
622
|
-
styleElm.innerHTML = style;
|
|
623
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
624
|
-
if (nonce != null) {
|
|
625
|
-
styleElm.setAttribute("nonce", nonce);
|
|
626
|
-
}
|
|
627
|
-
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
628
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
629
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
630
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
631
|
-
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
632
|
-
} else if ("host" in styleContainerNode) {
|
|
633
|
-
if (supportsConstructableStylesheets) {
|
|
634
|
-
const stylesheet = new CSSStyleSheet();
|
|
635
|
-
stylesheet.replaceSync(style);
|
|
636
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
637
|
-
} else {
|
|
638
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
639
|
-
if (existingStyleContainer) {
|
|
640
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
641
|
-
} else {
|
|
642
|
-
styleContainerNode.prepend(styleElm);
|
|
643
|
-
}
|
|
644
|
-
}
|
|
645
|
-
} else {
|
|
646
|
-
styleContainerNode.append(styleElm);
|
|
647
|
-
}
|
|
648
|
-
}
|
|
649
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
650
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
651
|
-
}
|
|
652
|
-
}
|
|
653
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
654
|
-
styleElm.innerHTML += SLOT_FB_CSS;
|
|
655
|
-
}
|
|
656
|
-
if (appliedStyles) {
|
|
657
|
-
appliedStyles.add(scopeId2);
|
|
658
|
-
}
|
|
659
|
-
}
|
|
660
|
-
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
661
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
662
|
-
}
|
|
663
|
-
}
|
|
664
|
-
return scopeId2;
|
|
665
|
-
};
|
|
666
|
-
var attachStyles = (hostRef) => {
|
|
667
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
668
|
-
const elm = hostRef.$hostElement$;
|
|
669
|
-
const flags = cmpMeta.$flags$;
|
|
670
|
-
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
671
|
-
const scopeId2 = addStyle(
|
|
672
|
-
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
673
|
-
cmpMeta);
|
|
674
|
-
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
675
|
-
elm["s-sc"] = scopeId2;
|
|
676
|
-
elm.classList.add(scopeId2 + "-h");
|
|
677
|
-
}
|
|
678
|
-
endAttachStyles();
|
|
679
|
-
};
|
|
680
|
-
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
681
682
|
|
|
682
683
|
// src/runtime/update-component.ts
|
|
683
684
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
684
685
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
685
|
-
ancestorComponent["s-p"].push(
|
|
686
|
+
const index = ancestorComponent["s-p"].push(
|
|
687
|
+
new Promise(
|
|
688
|
+
(r) => hostRef.$onRenderResolve$ = () => {
|
|
689
|
+
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
690
|
+
r();
|
|
691
|
+
}
|
|
692
|
+
)
|
|
693
|
+
);
|
|
686
694
|
}
|
|
687
695
|
};
|
|
688
696
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -855,62 +863,69 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
855
863
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
856
864
|
members.map(([memberName, [memberFlags]]) => {
|
|
857
865
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
858
|
-
|
|
866
|
+
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
867
|
+
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
868
|
+
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
869
|
+
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
859
870
|
Object.defineProperty(prototype, memberName, {
|
|
860
871
|
get() {
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
},
|
|
866
|
-
configurable: true,
|
|
867
|
-
enumerable: true
|
|
868
|
-
});
|
|
869
|
-
} else if (flags & 1 /* isElementConstructor */ && memberFlags & 2048 /* Getter */) {
|
|
870
|
-
{
|
|
871
|
-
Object.defineProperty(prototype, memberName, {
|
|
872
|
-
get() {
|
|
872
|
+
{
|
|
873
|
+
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
874
|
+
return getValue(this, memberName);
|
|
875
|
+
}
|
|
873
876
|
const ref = getHostRef(this);
|
|
874
877
|
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
875
878
|
if (!instance) return;
|
|
876
879
|
return instance[memberName];
|
|
877
|
-
}
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
}
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
880
|
+
}
|
|
881
|
+
},
|
|
882
|
+
configurable: true,
|
|
883
|
+
enumerable: true
|
|
884
|
+
});
|
|
885
|
+
}
|
|
886
|
+
Object.defineProperty(prototype, memberName, {
|
|
887
|
+
set(newValue) {
|
|
888
|
+
const ref = getHostRef(this);
|
|
889
|
+
if (origSetter) {
|
|
890
|
+
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
891
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
892
|
+
newValue = ref.$instanceValues$.get(memberName);
|
|
893
|
+
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
894
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
895
|
+
}
|
|
896
|
+
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
897
|
+
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
898
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
899
|
+
return;
|
|
900
|
+
}
|
|
901
|
+
{
|
|
902
|
+
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
903
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
904
|
+
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
905
|
+
ref.$onReadyPromise$.then(() => {
|
|
906
|
+
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
907
|
+
ref.$lazyInstance$[memberName] = newValue;
|
|
908
|
+
}
|
|
909
|
+
});
|
|
895
910
|
}
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, cmpMeta.$members$[memberName][0]);
|
|
903
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
904
|
-
};
|
|
905
|
-
if (ref.$lazyInstance$) {
|
|
906
|
-
setterSetVal();
|
|
907
|
-
} else {
|
|
908
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
911
|
+
return;
|
|
912
|
+
}
|
|
913
|
+
const setterSetVal = () => {
|
|
914
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
|
915
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
916
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
909
917
|
}
|
|
918
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
919
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
920
|
+
};
|
|
921
|
+
if (ref.$lazyInstance$) {
|
|
922
|
+
setterSetVal();
|
|
923
|
+
} else {
|
|
924
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
910
925
|
}
|
|
911
|
-
}
|
|
926
|
+
}
|
|
912
927
|
}
|
|
913
|
-
}
|
|
928
|
+
});
|
|
914
929
|
}
|
|
915
930
|
});
|
|
916
931
|
if ((flags & 1 /* isElementConstructor */)) {
|
|
@@ -940,8 +955,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
940
955
|
return;
|
|
941
956
|
}
|
|
942
957
|
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
943
|
-
|
|
944
|
-
|
|
958
|
+
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
959
|
+
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
960
|
+
this[propName] = newValue;
|
|
945
961
|
}
|
|
946
962
|
});
|
|
947
963
|
};
|
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-09bce8df.js';
|
|
2
|
+
export { s as setNonce } from './index-09bce8df.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-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-09bce8df.js';
|
|
2
|
+
export { s as setNonce } from './index-09bce8df.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v4.
|
|
6
|
+
Stencil Client Patch Browser v4.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 e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),o=(e,n)=>{t.set(n.t=e,n)},l=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),i=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={o:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),p=!1,m=[],y=[],$=(e,t)=>n=>{e.push(n),p||(p=!0,t&&4&f.o?w(b):f.raf(b))},v=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},b=()=>{v(m),v(y),(p=m.length>0)&&f.raf(b)},w=e=>h().then(e),S=$(y,!0),g=e=>"object"==(e=typeof e)||"function"===e;function j(e){var t,n,o;return null!=(o=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>k,map:()=>E,ok:()=>O,unwrap:()=>M,unwrapErr:()=>x});var O=e=>({isOk:!0,isErr:!1,value:e}),k=e=>({isOk:!1,isErr:!0,value:e});function E(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>O(e))):O(n)}if(e.isErr)return k(e.value);throw"should never get here"}var C,M=e=>{if(e.isOk)return e.value;throw e.value},x=e=>{if(e.isErr)return e.value;throw e.value},P=(e,t,...n)=>{let o=null,l=null,s=!1,i=!1;const r=[],c=t=>{for(let n=0;n<t.length;n++)o=t[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof e&&!g(o))&&(o+=""),s&&i?r[r.length-1].i+=o:r.push(s?A(null,o):o),i=s)};if(c(n),t){t.key&&(l=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=A(e,null);return u.u=t,r.length>0&&(u.h=r),u.p=l,u},A=(e,t)=>({o:0,m:e,i:t,$:null,h:null,u:null,p:null}),D={},H=(e,t)=>null==e||g(e)?e:1&t?e+"":e,N=new WeakMap,R=e=>"sc-"+e.v,T=(e,t,n,o,s,i)=>{if(n!==o){let r=l(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,l=U(n);let s=U(o);e["s-si"]?(s.push(e["s-si"]),l.forEach((t=>{t.startsWith(e["s-si"])&&s.push(t)})),s=[...new Set(s)],t.add(...s),delete e["s-si"]):(t.remove(...l.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!l.includes(e)))))}else if("key"===t);else if(r||"o"!==t[0]||"n"!==t[1]){const l=g(o);if((r||l&&null!==o)&&!s)try{if(e.tagName.includes("-"))e[t]!==o&&(e[t]=o);else{const l=null==o?"":o;"list"===t?r=!1:null!=n&&e[t]==l||("function"==typeof e.__lookupSetter__(t)?e[t]=l:e.setAttribute(t,l))}}catch(e){}null==o||!1===o?!1===o&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&i||s)&&!l&&e.setAttribute(t,o=!0===o?"":o)}else if(t="-"===t[2]?t.slice(3):l(u,c)?c.slice(2):c[2]+t.slice(3),n||o){const l=t.endsWith(F);t=t.replace(V,""),n&&f.rel(e,t,n,l),o&&f.ael(e,t,o,l)}}},L=/\s/,U=e=>("object"==typeof e&&"baseVal"in e&&(e=e.baseVal),e?e.split(L):[]),F="Capture",V=RegExp(F+"$"),W=(e,t,n)=>{const o=11===t.$.nodeType&&t.$.host?t.$.host:t.$,l=e&&e.u||{},s=t.u||{};for(const e of q(Object.keys(l)))e in s||T(o,e,l[e],void 0,n,t.o);for(const e of q(Object.keys(s)))T(o,e,l[e],s[e],n,t.o)};function q(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var G=!1,_=(e,t,n)=>{const o=t.h[n];let l,s,i=0;if(null!==o.i)l=o.$=a.createTextNode(o.i);else if(l=o.$=a.createElement(o.m),W(null,o,G),o.h)for(i=0;i<o.h.length;++i)s=_(e,o,i),s&&l.appendChild(s);return l["s-hn"]=C,l},z=(e,t,n,o,l,s)=>{let i,r=e;for(r.shadowRoot&&r.tagName===C&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=_(null,n,l),i&&(o[l].$=i,K(r,i,t)))},B=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.$;e&&e.remove()}}},I=(e,t,n=!1)=>e.m===t.m&&(n?(n&&!e.p&&t.p&&(e.p=t.p),!0):e.p===t.p),J=(e,t,n=!1)=>{const o=t.$=e.$,l=e.h,s=t.h,i=t.i;null===i?(W(e,t,G),null!==l&&null!==s?((e,t,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=t.length-1,h=t[0],d=t[f],p=o.length-1,m=o[0],y=o[p];for(;r<=f&&c<=p;)if(null==h)h=t[++r];else if(null==d)d=t[--f];else if(null==m)m=o[++c];else if(null==y)y=o[--p];else if(I(h,m,l))J(h,m,l),h=t[++r],m=o[++c];else if(I(d,y,l))J(d,y,l),d=t[--f],y=o[--p];else if(I(h,y,l))J(h,y,l),K(e,h.$,d.$.nextSibling),h=t[++r],y=o[--p];else if(I(d,m,l))J(d,m,l),K(e,d.$,h.$),d=t[--f],m=o[++c];else{for(u=-1,a=r;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(i=t[u],i.m!==m.m?s=_(t&&t[c],n,u):(J(i,m,l),t[u]=void 0,s=i.$),m=o[++c]):(s=_(t&&t[c],n,c),m=o[++c]),s&&K(h.$.parentNode,s,h.$)}r>f?z(e,null==o[p+1]?null:o[p+1].$,n,o,c,p):c>p&&B(t,r,f)})(o,l,t,s,n):null!==s?(null!==e.i&&(o.textContent=""),z(o,null,t,s,0,s.length-1)):!n&&null!==l&&B(l,0,l.length-1)):e.i!==i&&(o.data=i)},K=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),Q=(e,t)=>{if(t&&!e.S&&t["s-p"]){const n=t["s-p"].push(new Promise((o=>e.S=()=>{t["s-p"].splice(n-1,1),o()})))}},X=(e,t)=>{if(e.o|=16,!(4&e.o))return Q(e,e.j),S((()=>Y(e,t)));e.o|=512},Y=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);return Z(void 0,(()=>te(e,n,t)))},Z=(e,t)=>ee(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),ee=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,te=async(e,t,n)=>{var o;const l=e.$hostElement$,s=l["s-rc"];n&&(e=>{const t=e.O,n=e.$hostElement$,o=t.o,l=((e,t)=>{var n;const o=R(t),l=r.get(o);if(e=11===e.nodeType?e:a,l)if("string"==typeof l){let s,i=N.get(e=e.head||e);if(i||N.set(e,i=new Set),!i.has(o)){{s=document.querySelector(`[sty-id="${o}"]`)||a.createElement("style"),s.innerHTML=l;const i=null!=(n=f.k)?n:j(a);if(null!=i&&s.setAttribute("nonce",i),!(1&t.o))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,n)}else if("host"in e)if(d){const t=new CSSStyleSheet;t.replaceSync(l),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=l+t.innerHTML:e.prepend(s)}else e.append(s);1&t.o&&"HEAD"!==e.nodeName&&e.insertBefore(s,null)}4&t.o&&(s.innerHTML+=c),i&&i.add(o)}}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&o&&2&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(e);ne(e,t,l,n),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>oe(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},ne=(e,t,n,o)=>{try{t=t.render(),e.o&=-17,e.o|=2,((e,t,n=!1)=>{const o=e.$hostElement$,l=e.O,s=e.C||A(null,null),i=(e=>e&&e.m===D)(t)?t:P(null,null,t);if(C=o.tagName,n&&i.u)for(const e of Object.keys(i.u))o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(i.u[e]=o[e]);i.m=null,i.o|=4,e.C=i,i.$=s.$=o.shadowRoot||o,J(s,i,n)})(e,t,o)}catch(t){s(t,e.$hostElement$)}return null},oe=e=>{const t=e.$hostElement$,n=e.t,o=e.j;64&e.o||(e.o|=64,ie(t),se(n,"componentDidLoad"),e.M(t),o||le()),e.S&&(e.S(),e.S=void 0),512&e.o&&w((()=>X(e,!1))),e.o&=-517},le=()=>{ie(a.documentElement),w((()=>(e=>{const t=f.ce("appload",{detail:{namespace:"proto-daisy-db"}});return e.dispatchEvent(t),t})(u)))},se=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},ie=e=>e.classList.add("hydrated"),re=(e,t,o,l)=>{const s=n(e);if(!s)throw Error(`Couldn't find host element for "${l.v}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=s.P.get(t),r=s.o,c=s.t;o=H(o,l.A[t][0]),8&r&&void 0!==i||o===i||Number.isNaN(i)&&Number.isNaN(o)||(s.P.set(t,o),c&&2==(18&r)&&X(s,!1))},ce=(e,t,o)=>{var l,s;const i=e.prototype;if(t.A){const r=Object.entries(null!=(l=t.A)?l:{});if(r.map((([e,[l]])=>{if(31&l||2&o&&32&l){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,e)||{};s&&(t.A[e][0]|=2048),r&&(t.A[e][0]|=4096),(1&o||!s)&&Object.defineProperty(i,e,{get(){{if(!(2048&t.A[e][0]))return((e,t)=>n(this).P.get(t))(0,e);const o=n(this),l=o?o.t:i;if(!l)return;return l[e]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,e,{set(s){const i=n(this);if(r){const n=32&l?this[e]:i.$hostElement$[e];return void 0===n&&i.P.get(e)?s=i.P.get(e):!i.P.get(e)&&n&&i.P.set(e,n),r.call(this,H(s,l)),void re(this,e,s=32&l?this[e]:i.$hostElement$[e],t)}{if(!(1&o&&4096&t.A[e][0]))return re(this,e,s,t),void(1&o&&!i.t&&i.D.then((()=>{4096&t.A[e][0]&&i.t[e]!==i.P.get(e)&&(i.t[e]=s)})));const n=()=>{const n=i.t[e];!i.P.get(e)&&n&&i.P.set(e,n),i.t[e]=H(s,l),re(this,e,i.t[e],t)};i.t?n():i.D.then((()=>n()))}}})}})),1&o){const o=new Map;i.attributeChangedCallback=function(e,l,s){f.jmp((()=>{var r;const c=o.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const n=o.t,i=null==(r=t.H)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,l,e)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);(s=(null!==s||"boolean"!=typeof this[c])&&s)===this[c]||u.get&&!u.set||(this[c]=s)}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.H)?s:{}),...r.filter((([e,t])=>15&t[0])).map((([e,t])=>{const n=t[1]||e;return o.set(n,e),n}))]))}}return e},ue=(e,o={})=>{var l;const h=[],p=o.exclude||[],m=u.customElements,y=a.head,$=y.querySelector("meta[charset]"),v=a.createElement("style"),b=[];let w,S=!0;Object.assign(f,o),f.l=new URL(o.resourcesUrl||"./",a.baseURI).href;let g=!1;if(e.map((e=>{e[1].map((o=>{const l={o:o[0],v:o[1],A:o[2],N:o[3]};4&l.o&&(g=!0),l.A=o[2];const c=l.v,u=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const o={o:0,$hostElement$:e,O:n,P:new Map};o.D=new Promise((e=>o.M=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,o)})(e=this,l),1&l.o)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${l.v}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),w&&(clearTimeout(w),w=null),S?b.push(this):f.jmp((()=>(e=>{if(!(1&f.o)){const t=n(e),o=t.O,l=()=>{};if(1&t.o)(null==t?void 0:t.t)||(null==t?void 0:t.D)&&t.D.then((()=>{}));else{t.o|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){Q(t,t.j=n);break}}o.A&&Object.entries(o.A).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let o;if(!(32&t.o)){if(t.o|=32,n.R){const e=(e=>{const t=e.v.replace(/-/g,"_"),n=e.R;if(!n)return;const o=i.get(n);return o?o[t]:import(`./${n}.entry.js`).then((e=>(i.set(n,e),e[t])),s)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};o=await e,t()}else o=e;if(!o)throw Error(`Constructor for "${n.v}#${t.T}" was not found`);o.isProxied||(ce(o,n,2),o.isProxied=!0);const l=()=>{};t.o|=8;try{new o(t)}catch(e){s(e)}t.o&=-9,l()}else o=e.constructor,customElements.whenDefined(e.localName).then((()=>t.o|=128));if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=R(n);if(!r.has(t)){const o=()=>{};((e,t,n)=>{let o=r.get(e);d&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,r.set(e,o)})(t,e,!!(1&n.o)),o()}}}const l=t.j,c=()=>X(t,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(e,t,o)}l()}})(this)))}disconnectedCallback(){f.jmp((()=>(async e=>{if(!(1&f.o)){const t=n(e);(null==t?void 0:t.t)||(null==t?void 0:t.D)&&t.D.then((()=>{}))}N.has(e)&&N.delete(e),e.shadowRoot&&N.has(e.shadowRoot)&&N.delete(e.shadowRoot)})(this))),f.raf((()=>{var e;const t=n(this);(null==(e=null==t?void 0:t.C)?void 0:e.$)instanceof Node&&!t.C.$.isConnected&&delete t.C.$}))}componentOnReady(){return n(this).D}};l.R=e[0],p.includes(c)||m.get(c)||(h.push(c),m.define(c,ce(u,l,1)))}))})),h.length>0&&(g&&(v.textContent+=c),v.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const e=null!=(l=f.k)?l:j(a);null!=e&&v.setAttribute("nonce",e),y.insertBefore(v,$?$.nextSibling:y.firstChild)}S=!1,b.length?b.map((e=>e.connectedCallback())):f.jmp((()=>w=setTimeout(le,30)))},ae=e=>f.k=e;export{ue as b,P as h,h as p,o as r,ae as s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as a}from"./p-
|
|
1
|
+
import{r as t,h as a}from"./p-f0b7428e.js";const s="proto-daisy-db:app-data",e=class{constructor(a){t(this,a),this.emitter=void 0}componentDidLoad(){if(this.emitter&&window[this.emitter]){const t=window[this.emitter];t.on("app-data:get",(()=>{var a;console.log("app-data:get"),(a=localStorage.getItem(s),new Promise(((t,s)=>{try{t(JSON.parse(a))}catch(t){s(t)}}))).then((a=>{t.emit("app-data:value",a)})).catch((t=>{console.log(t)}))})),t.on("app-data:store",(t=>{console.log("app-data:store",t),(t=>{const a=JSON.stringify(t);localStorage.setItem(s,a)})(t)})),t.emit("proto-daisy-db",{ready:!0})}}render(){return a("div",{key:"35e42fc3a7d518f3bc0211bc5f2c8221fd9bcc81"})}};e.style="";const o=class{constructor(a){t(this,a),this.data=void 0}render(){const t=this.data?Object.keys(this.data):[];return a("div",{key:"a423b82d951a69b266dd3d508a8dc11326a8008b",class:"flex flex-col"},t.map((t=>a("span",null,t))))}};o.style="";const r=class{constructor(a){t(this,a),this.data=void 0}render(){return a("div",{key:"f4837fa667d5d6e57086b09d1bc91719035442be",class:"flex"},a("span",{key:"a70fa27ba603ead243b5d262922082141420e0ac"},this.data?this.data.stamp:""))}};r.style="";const i=class{constructor(a){t(this,a),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],a={login:!0,stamp:Date.now(),theme:"dark",dealers:[]};this.data=void 0,t.emit("app-data:store",a)}}fetchData(){this.emitter&&window[this.emitter]&&window[this.emitter].emit("app-data:get",42)}render(){return a("div",{key:"47a9f4c68160b18fceedba61f54a7be29c75325a",class:"flex flex-col font-sans"},a("div",{key:"334f34a36a896139cf4cc01f66bbf0d09bd89505",class:"flex flex-row content-center gap-2"},a("button",{key:"784f07b93d4cd4a0287e6dd172bc73ab8e3c49e5",class:"btn bg-clrs-navy text-clrs-white",onClick:()=>this.emitData()},"Save"),a("button",{key:"8526e3216eb0a725ea22b288ac0cb3c503405ee4",class:"btn bg-clrs-blue text-clrs-white",onClick:()=>this.fetchData()},"Fetch")),a("proto-faux-type",{key:"3033b83816b2997c790fb8df1e1d90f387f62afa",class:"mt-4",emitter:this.emitter}),a("proto-faux-stamp",{key:"811eef59cdcdfa2edb318ee5facf7ae0bc497c82",class:"mt-2 text-xs",data:this.data}),a("proto-faux-keys",{key:"ed39e233d92c46f801841240d32d783ee6b0f0fd",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, system-ui, sans-serif, 'Apple Color Emoji',\n 'Segoe UI Emoji', 'Segoe UI Symbol', '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 c=class{constructor(a){t(this,a),this.emitter=void 0,this.eventType=void 0}componentDidLoad(){this.emitter&&window[this.emitter]&&window[this.emitter].on("*",(t=>{this.eventType=t}))}render(){return a("div",{key:"d441f639241a54d1ef8ae9c26a4560b5266457df"},a("span",{key:"a192c0ce3af5f94d72856ca851300537fd00f31f",class:"text-xs italic"},this.eventType))}};c.style="proto-faux-type{}";export{e as proto_daisy_db,o as proto_faux_keys,r as proto_faux_stamp,i as proto_faux_trigger,c 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-f0b7428e.js";export{s as setNonce}from"./p-f0b7428e.js";import{g as a}from"./p-e1255160.js";(()=>{const e=import.meta.url,a={};return""!==e&&(a.resourcesUrl=new URL(".",e).href),t(a)})().then((async t=>(await a(),e([["p-febae878",[[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.394",
|
|
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.
|
|
30
|
+
"@stencil/core": "4.24.0",
|
|
31
31
|
"mitt": "3.0.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),o=(e,n)=>{t.set(n.t=e,n)},l=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),i=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={o:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),p=!1,m=[],y=[],b=(e,t)=>n=>{e.push(n),p||(p=!0,t&&4&f.o?v(w):f.raf(w))},$=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},w=()=>{$(m),$(y),(p=m.length>0)&&f.raf(w)},v=e=>h().then(e),S=b(y,!0),g=e=>"object"==(e=typeof e)||"function"===e;function j(e){var t,n,o;return null!=(o=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>k,map:()=>E,ok:()=>O,unwrap:()=>M,unwrapErr:()=>x});var O=e=>({isOk:!0,isErr:!1,value:e}),k=e=>({isOk:!1,isErr:!0,value:e});function E(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>O(e))):O(n)}if(e.isErr)return k(e.value);throw"should never get here"}var C,M=e=>{if(e.isOk)return e.value;throw e.value},x=e=>{if(e.isErr)return e.value;throw e.value},P=(e,t,...n)=>{let o=null,l=null,s=!1,i=!1;const r=[],c=t=>{for(let n=0;n<t.length;n++)o=t[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof e&&!g(o))&&(o+=""),s&&i?r[r.length-1].i+=o:r.push(s?A(null,o):o),i=s)};if(c(n),t){t.key&&(l=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=A(e,null);return u.u=t,r.length>0&&(u.h=r),u.p=l,u},A=(e,t)=>({o:0,m:e,i:t,$:null,h:null,u:null,p:null}),D={},H=(e,t,n,o,s,i)=>{if(n!==o){let r=l(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,l=R(n);let s=R(o);e["s-si"]?(s.push(e["s-si"]),l.forEach((t=>{t.startsWith(e["s-si"])&&s.push(t)})),s=[...new Set(s)],t.add(...s),delete e["s-si"]):(t.remove(...l.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!l.includes(e)))))}else if("key"===t);else if(r||"o"!==t[0]||"n"!==t[1]){const l=g(o);if((r||l&&null!==o)&&!s)try{if(e.tagName.includes("-"))e[t]=o;else{const l=null==o?"":o;"list"===t?r=!1:null!=n&&e[t]==l||("function"==typeof e.__lookupSetter__(t)?e[t]=l:e.setAttribute(t,l))}}catch(e){}null==o||!1===o?!1===o&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&i||s)&&!l&&e.setAttribute(t,o=!0===o?"":o)}else if(t="-"===t[2]?t.slice(3):l(u,c)?c.slice(2):c[2]+t.slice(3),n||o){const l=t.endsWith(T);t=t.replace(L,""),n&&f.rel(e,t,n,l),o&&f.ael(e,t,o,l)}}},N=/\s/,R=e=>("object"==typeof e&&"baseVal"in e&&(e=e.baseVal),e?e.split(N):[]),T="Capture",L=RegExp(T+"$"),U=(e,t,n)=>{const o=11===t.$.nodeType&&t.$.host?t.$.host:t.$,l=e&&e.u||{},s=t.u||{};for(const e of F(Object.keys(l)))e in s||H(o,e,l[e],void 0,n,t.o);for(const e of F(Object.keys(s)))H(o,e,l[e],s[e],n,t.o)};function F(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var V=!1,W=(e,t,n)=>{const o=t.h[n];let l,s,i=0;if(null!==o.i)l=o.$=a.createTextNode(o.i);else if(l=o.$=a.createElement(o.m),U(null,o,V),o.h)for(i=0;i<o.h.length;++i)s=W(e,o,i),s&&l.appendChild(s);return l["s-hn"]=C,l},q=(e,t,n,o,l,s)=>{let i,r=e;for(r.shadowRoot&&r.tagName===C&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=W(null,n,l),i&&(o[l].$=i,B(r,i,t)))},G=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.$;e&&e.remove()}}},_=(e,t,n=!1)=>e.m===t.m&&(n?(n&&!e.p&&t.p&&(e.p=t.p),!0):e.p===t.p),z=(e,t,n=!1)=>{const o=t.$=e.$,l=e.h,s=t.h,i=t.i;null===i?(U(e,t,V),null!==l&&null!==s?((e,t,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=t.length-1,h=t[0],d=t[f],p=o.length-1,m=o[0],y=o[p];for(;r<=f&&c<=p;)if(null==h)h=t[++r];else if(null==d)d=t[--f];else if(null==m)m=o[++c];else if(null==y)y=o[--p];else if(_(h,m,l))z(h,m,l),h=t[++r],m=o[++c];else if(_(d,y,l))z(d,y,l),d=t[--f],y=o[--p];else if(_(h,y,l))z(h,y,l),B(e,h.$,d.$.nextSibling),h=t[++r],y=o[--p];else if(_(d,m,l))z(d,m,l),B(e,d.$,h.$),d=t[--f],m=o[++c];else{for(u=-1,a=r;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(i=t[u],i.m!==m.m?s=W(t&&t[c],n,u):(z(i,m,l),t[u]=void 0,s=i.$),m=o[++c]):(s=W(t&&t[c],n,c),m=o[++c]),s&&B(h.$.parentNode,s,h.$)}r>f?q(e,null==o[p+1]?null:o[p+1].$,n,o,c,p):c>p&&G(t,r,f)})(o,l,t,s,n):null!==s?(null!==e.i&&(o.textContent=""),q(o,null,t,s,0,s.length-1)):!n&&null!==l&&G(l,0,l.length-1)):e.i!==i&&(o.data=i)},B=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),I=(e,t)=>null==e||g(e)?e:1&t?e+"":e,J=new WeakMap,K=e=>"sc-"+e.v,Q=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},X=(e,t)=>{if(e.o|=16,!(4&e.o))return Q(e,e.j),S((()=>Y(e,t)));e.o|=512},Y=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);return Z(void 0,(()=>te(e,n,t)))},Z=(e,t)=>ee(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),ee=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,te=async(e,t,n)=>{var o;const l=e.$hostElement$,s=l["s-rc"];n&&(e=>{const t=e.O,n=e.$hostElement$,o=t.o,l=((e,t)=>{var n;const o=K(t),l=r.get(o);if(e=11===e.nodeType?e:a,l)if("string"==typeof l){let s,i=J.get(e=e.head||e);if(i||J.set(e,i=new Set),!i.has(o)){{s=document.querySelector(`[sty-id="${o}"]`)||a.createElement("style"),s.innerHTML=l;const i=null!=(n=f.k)?n:j(a);if(null!=i&&s.setAttribute("nonce",i),!(1&t.o))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,n)}else if("host"in e)if(d){const t=new CSSStyleSheet;t.replaceSync(l),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=l+t.innerHTML:e.prepend(s)}else e.append(s);1&t.o&&"HEAD"!==e.nodeName&&e.insertBefore(s,null)}4&t.o&&(s.innerHTML+=c),i&&i.add(o)}}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&o&&2&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(e);ne(e,t,l,n),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>oe(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},ne=(e,t,n,o)=>{try{t=t.render(),e.o&=-17,e.o|=2,((e,t,n=!1)=>{const o=e.$hostElement$,l=e.O,s=e.C||A(null,null),i=(e=>e&&e.m===D)(t)?t:P(null,null,t);if(C=o.tagName,n&&i.u)for(const e of Object.keys(i.u))o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(i.u[e]=o[e]);i.m=null,i.o|=4,e.C=i,i.$=s.$=o.shadowRoot||o,z(s,i,n)})(e,t,o)}catch(t){s(t,e.$hostElement$)}return null},oe=e=>{const t=e.$hostElement$,n=e.t,o=e.j;64&e.o||(e.o|=64,ie(t),se(n,"componentDidLoad"),e.M(t),o||le()),e.S&&(e.S(),e.S=void 0),512&e.o&&v((()=>X(e,!1))),e.o&=-517},le=()=>{ie(a.documentElement),v((()=>(e=>{const t=f.ce("appload",{detail:{namespace:"proto-daisy-db"}});return e.dispatchEvent(t),t})(u)))},se=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},ie=e=>e.classList.add("hydrated"),re=(e,t,o,l)=>{const s=n(e);if(!s)throw Error(`Couldn't find host element for "${l.v}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=s.P.get(t),r=s.o,c=s.t;o=I(o,l.A[t][0]),8&r&&void 0!==i||o===i||Number.isNaN(i)&&Number.isNaN(o)||(s.P.set(t,o),c&&2==(18&r)&&X(s,!1))},ce=(e,t,o)=>{var l,s;const i=e.prototype;if(t.A){const r=Object.entries(null!=(l=t.A)?l:{});if(r.map((([e,[l]])=>{if(31&l||2&o&&32&l)if(2048&l){if(1&o&&2048&l&&(Object.defineProperty(i,e,{get(){const t=n(this),o=t?t.t:i;if(o)return o[e]},configurable:!0,enumerable:!0}),4096&l)){const o=Object.getOwnPropertyDescriptor(i,e).set;Object.defineProperty(i,e,{set(l){const s=n(this);if(o){const n=s.$hostElement$[e];return!s.P.get(e)&&n&&s.P.set(e,n),o.call(this,I(l,t.A[e][0])),void re(this,e,s.$hostElement$[e],t)}if(!s)return;const i=()=>{const n=s.t[e];!s.P.get(e)&&n&&s.P.set(e,n),s.t[e]=I(l,t.A[e][0]),re(this,e,s.t[e],t)};s.t?i():s.D.then((()=>i()))}})}}else Object.defineProperty(i,e,{get(){return((e,t)=>n(this).P.get(t))(0,e)},set(n){re(this,e,n,t)},configurable:!0,enumerable:!0})})),1&o){const o=new Map;i.attributeChangedCallback=function(e,l,s){f.jmp((()=>{var r;const c=o.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const n=o.t,i=null==(r=t.H)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,l,e)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);u.get&&!u.set||(this[c]=(null!==s||"boolean"!=typeof this[c])&&s)}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.H)?s:{}),...r.filter((([e,t])=>15&t[0])).map((([e,t])=>{const n=t[1]||e;return o.set(n,e),n}))]))}}return e},ue=(e,o={})=>{var l;const h=[],p=o.exclude||[],m=u.customElements,y=a.head,b=y.querySelector("meta[charset]"),$=a.createElement("style"),w=[];let v,S=!0;Object.assign(f,o),f.l=new URL(o.resourcesUrl||"./",a.baseURI).href;let g=!1;if(e.map((e=>{e[1].map((o=>{const l={o:o[0],v:o[1],A:o[2],N:o[3]};4&l.o&&(g=!0),l.A=o[2];const c=l.v,u=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const o={o:0,$hostElement$:e,O:n,P:new Map};o.D=new Promise((e=>o.M=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,o)})(e=this,l),1&l.o)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${l.v}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),v&&(clearTimeout(v),v=null),S?w.push(this):f.jmp((()=>(e=>{if(!(1&f.o)){const t=n(e),o=t.O,l=()=>{};if(1&t.o)(null==t?void 0:t.t)||(null==t?void 0:t.D)&&t.D.then((()=>{}));else{t.o|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){Q(t,t.j=n);break}}o.A&&Object.entries(o.A).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let o;if(!(32&t.o)){if(t.o|=32,n.R){const e=(e=>{const t=e.v.replace(/-/g,"_"),n=e.R;if(!n)return;const o=i.get(n);return o?o[t]:import(`./${n}.entry.js`).then((e=>(i.set(n,e),e[t])),s)
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};o=await e,t()}else o=e;if(!o)throw Error(`Constructor for "${n.v}#${t.T}" was not found`);o.isProxied||(ce(o,n,2),o.isProxied=!0);const l=()=>{};t.o|=8;try{new o(t)}catch(e){s(e)}t.o&=-9,l()}else o=e.constructor,customElements.whenDefined(e.localName).then((()=>t.o|=128));if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=K(n);if(!r.has(t)){const o=()=>{};((e,t,n)=>{let o=r.get(e);d&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,r.set(e,o)})(t,e,!!(1&n.o)),o()}}}const l=t.j,c=()=>X(t,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(e,t,o)}l()}})(this)))}disconnectedCallback(){f.jmp((()=>(async e=>{if(!(1&f.o)){const t=n(e);(null==t?void 0:t.t)||(null==t?void 0:t.D)&&t.D.then((()=>{}))}J.has(e)&&J.delete(e),e.shadowRoot&&J.has(e.shadowRoot)&&J.delete(e.shadowRoot)})(this))),f.raf((()=>{var e;const t=n(this);(null==(e=null==t?void 0:t.C)?void 0:e.$)instanceof Node&&!t.C.$.isConnected&&delete t.C.$}))}componentOnReady(){return n(this).D}};l.R=e[0],p.includes(c)||m.get(c)||(h.push(c),m.define(c,ce(u,l,1)))}))})),h.length>0&&(g&&($.textContent+=c),$.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",$.innerHTML.length)){$.setAttribute("data-styles","");const e=null!=(l=f.k)?l:j(a);null!=e&&$.setAttribute("nonce",e),y.insertBefore($,b?b.nextSibling:y.firstChild)}S=!1,w.length?w.map((e=>e.connectedCallback())):f.jmp((()=>v=setTimeout(le,30)))},ae=e=>f.k=e;export{ue as b,P as h,h as p,o as r,ae as s}
|