proto-daisy-db 0.0.387 → 0.0.388
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-d92a1003.js → index-8fc73180.js} +39 -29
- 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-4eff58f0.js → index-68a7f5e1.js} +39 -29
- 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-05dbfa8a.entry.js → p-a4a63d8f.entry.js} +1 -1
- package/dist/proto-daisy-db/p-a71c0c99.js +2 -0
- package/dist/proto-daisy-db/proto-daisy-db.esm.js +1 -1
- package/package.json +2 -2
- package/dist/proto-daisy-db/p-da8ebe19.js +0 -2
|
@@ -21,19 +21,26 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'proto-daisy-db';
|
|
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, 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 };
|
|
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.23.
|
|
27
|
+
Stencil Client Platform v4.23.1 | MIT Licensed | https://stenciljs.com
|
|
28
28
|
*/
|
|
29
29
|
var __defProp = Object.defineProperty;
|
|
30
30
|
var __export = (target, all) => {
|
|
31
31
|
for (var name in all)
|
|
32
32
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
33
33
|
};
|
|
34
|
+
|
|
35
|
+
// src/utils/constants.ts
|
|
36
|
+
var EMPTY_OBJ = {};
|
|
37
|
+
|
|
38
|
+
// src/client/client-host-ref.ts
|
|
34
39
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
35
40
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
36
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
41
|
+
var registerInstance = (lazyInstance, hostRef) => {
|
|
42
|
+
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
43
|
+
};
|
|
37
44
|
var registerHost = (hostElement, cmpMeta) => {
|
|
38
45
|
const hostRef = {
|
|
39
46
|
$flags$: 0,
|
|
@@ -46,7 +53,8 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
46
53
|
hostElement["s-p"] = [];
|
|
47
54
|
hostElement["s-rc"] = [];
|
|
48
55
|
}
|
|
49
|
-
|
|
56
|
+
const ref = hostRefs.set(hostElement, hostRef);
|
|
57
|
+
return ref;
|
|
50
58
|
};
|
|
51
59
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
52
60
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -80,6 +88,7 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
80
88
|
|
|
81
89
|
// src/client/client-style.ts
|
|
82
90
|
var styles = /* @__PURE__ */ new Map();
|
|
91
|
+
var HYDRATED_STYLE_ID = "sty-id";
|
|
83
92
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
84
93
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
85
94
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -137,12 +146,6 @@ var flush = () => {
|
|
|
137
146
|
};
|
|
138
147
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
139
148
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
140
|
-
|
|
141
|
-
// src/utils/constants.ts
|
|
142
|
-
var EMPTY_OBJ = {};
|
|
143
|
-
|
|
144
|
-
// src/utils/helpers.ts
|
|
145
|
-
var isDef = (v) => v != null;
|
|
146
149
|
var isComplexType = (o) => {
|
|
147
150
|
o = typeof o;
|
|
148
151
|
return o === "object" || o === "function";
|
|
@@ -273,12 +276,19 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
273
276
|
if (memberName === "class") {
|
|
274
277
|
const classList = elm.classList;
|
|
275
278
|
const oldClasses = parseClassList(oldValue);
|
|
276
|
-
|
|
277
|
-
if (elm["s-si"]
|
|
279
|
+
let newClasses = parseClassList(newValue);
|
|
280
|
+
if (elm["s-si"]) {
|
|
278
281
|
newClasses.push(elm["s-si"]);
|
|
282
|
+
oldClasses.forEach((c) => {
|
|
283
|
+
if (c.startsWith(elm["s-si"])) newClasses.push(c);
|
|
284
|
+
});
|
|
285
|
+
newClasses = [...new Set(newClasses)];
|
|
286
|
+
classList.add(...newClasses);
|
|
287
|
+
delete elm["s-si"];
|
|
288
|
+
} else {
|
|
289
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
290
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
279
291
|
}
|
|
280
|
-
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
281
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
282
292
|
} else if (memberName === "key") ; else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
|
283
293
|
if (memberName[2] === "-") {
|
|
284
294
|
memberName = memberName.slice(3);
|
|
@@ -334,7 +344,15 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
334
344
|
}
|
|
335
345
|
};
|
|
336
346
|
var parseClassListRegex = /\s/;
|
|
337
|
-
var parseClassList = (value) =>
|
|
347
|
+
var parseClassList = (value) => {
|
|
348
|
+
if (typeof value === "object" && "baseVal" in value) {
|
|
349
|
+
value = value.baseVal;
|
|
350
|
+
}
|
|
351
|
+
if (!value) {
|
|
352
|
+
return [];
|
|
353
|
+
}
|
|
354
|
+
return value.split(parseClassListRegex);
|
|
355
|
+
};
|
|
338
356
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
339
357
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
340
358
|
|
|
@@ -363,13 +381,10 @@ function sortedAttrNames(attrNames) {
|
|
|
363
381
|
attrNames
|
|
364
382
|
);
|
|
365
383
|
}
|
|
366
|
-
|
|
367
|
-
// src/runtime/vdom/vdom-render.ts
|
|
368
|
-
var scopeId;
|
|
369
384
|
var hostTagName;
|
|
370
385
|
var useNativeShadowDom = false;
|
|
371
386
|
var isSvgMode = false;
|
|
372
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex
|
|
387
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
373
388
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
374
389
|
let i2 = 0;
|
|
375
390
|
let elm;
|
|
@@ -383,11 +398,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
383
398
|
{
|
|
384
399
|
updateElement(null, newVNode2, isSvgMode);
|
|
385
400
|
}
|
|
386
|
-
const rootNode = elm.getRootNode();
|
|
387
|
-
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
388
|
-
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
389
|
-
elm.classList.add(elm["s-si"] = scopeId);
|
|
390
|
-
}
|
|
391
401
|
if (newVNode2.$children$) {
|
|
392
402
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
393
403
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -516,6 +526,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
516
526
|
if (!isInitialRender) {
|
|
517
527
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
518
528
|
}
|
|
529
|
+
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
530
|
+
leftVNode.$key$ = rightVNode.$key$;
|
|
531
|
+
}
|
|
519
532
|
return true;
|
|
520
533
|
}
|
|
521
534
|
return false;
|
|
@@ -569,9 +582,6 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
569
582
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
570
583
|
hostRef.$vnode$ = rootVnode;
|
|
571
584
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
572
|
-
{
|
|
573
|
-
scopeId = hostElm["s-sc"];
|
|
574
|
-
}
|
|
575
585
|
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
576
586
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
577
587
|
};
|
|
@@ -633,7 +643,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
633
643
|
}
|
|
634
644
|
if (!appliedStyles.has(scopeId2)) {
|
|
635
645
|
{
|
|
636
|
-
styleElm = doc.createElement("style");
|
|
646
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
|
637
647
|
styleElm.innerHTML = style;
|
|
638
648
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
639
649
|
if (nonce != null) {
|
|
@@ -934,7 +944,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
934
944
|
plt.jmp(() => {
|
|
935
945
|
var _a2;
|
|
936
946
|
const propName = attrNameToPropName.get(attrName);
|
|
937
|
-
if (this.hasOwnProperty(propName)) {
|
|
947
|
+
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
938
948
|
newValue = this[propName];
|
|
939
949
|
delete this[propName];
|
|
940
950
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
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-8fc73180.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-8fc73180.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
|
-
Stencil Client Patch Browser v4.23.
|
|
9
|
+
Stencil Client Patch Browser v4.23.1 | 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));
|
|
@@ -1,17 +1,24 @@
|
|
|
1
1
|
const NAMESPACE = 'proto-daisy-db';
|
|
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, 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 };
|
|
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.23.
|
|
5
|
+
Stencil Client Platform v4.23.1 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __export = (target, all) => {
|
|
9
9
|
for (var name in all)
|
|
10
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
11
|
};
|
|
12
|
+
|
|
13
|
+
// src/utils/constants.ts
|
|
14
|
+
var EMPTY_OBJ = {};
|
|
15
|
+
|
|
16
|
+
// src/client/client-host-ref.ts
|
|
12
17
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
13
18
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
14
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
19
|
+
var registerInstance = (lazyInstance, hostRef) => {
|
|
20
|
+
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
21
|
+
};
|
|
15
22
|
var registerHost = (hostElement, cmpMeta) => {
|
|
16
23
|
const hostRef = {
|
|
17
24
|
$flags$: 0,
|
|
@@ -24,7 +31,8 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
24
31
|
hostElement["s-p"] = [];
|
|
25
32
|
hostElement["s-rc"] = [];
|
|
26
33
|
}
|
|
27
|
-
|
|
34
|
+
const ref = hostRefs.set(hostElement, hostRef);
|
|
35
|
+
return ref;
|
|
28
36
|
};
|
|
29
37
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
30
38
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -58,6 +66,7 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
58
66
|
|
|
59
67
|
// src/client/client-style.ts
|
|
60
68
|
var styles = /* @__PURE__ */ new Map();
|
|
69
|
+
var HYDRATED_STYLE_ID = "sty-id";
|
|
61
70
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
62
71
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
63
72
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -115,12 +124,6 @@ var flush = () => {
|
|
|
115
124
|
};
|
|
116
125
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
117
126
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
118
|
-
|
|
119
|
-
// src/utils/constants.ts
|
|
120
|
-
var EMPTY_OBJ = {};
|
|
121
|
-
|
|
122
|
-
// src/utils/helpers.ts
|
|
123
|
-
var isDef = (v) => v != null;
|
|
124
127
|
var isComplexType = (o) => {
|
|
125
128
|
o = typeof o;
|
|
126
129
|
return o === "object" || o === "function";
|
|
@@ -251,12 +254,19 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
251
254
|
if (memberName === "class") {
|
|
252
255
|
const classList = elm.classList;
|
|
253
256
|
const oldClasses = parseClassList(oldValue);
|
|
254
|
-
|
|
255
|
-
if (elm["s-si"]
|
|
257
|
+
let newClasses = parseClassList(newValue);
|
|
258
|
+
if (elm["s-si"]) {
|
|
256
259
|
newClasses.push(elm["s-si"]);
|
|
260
|
+
oldClasses.forEach((c) => {
|
|
261
|
+
if (c.startsWith(elm["s-si"])) newClasses.push(c);
|
|
262
|
+
});
|
|
263
|
+
newClasses = [...new Set(newClasses)];
|
|
264
|
+
classList.add(...newClasses);
|
|
265
|
+
delete elm["s-si"];
|
|
266
|
+
} else {
|
|
267
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
268
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
257
269
|
}
|
|
258
|
-
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
259
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
260
270
|
} else if (memberName === "key") ; else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
|
261
271
|
if (memberName[2] === "-") {
|
|
262
272
|
memberName = memberName.slice(3);
|
|
@@ -312,7 +322,15 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
312
322
|
}
|
|
313
323
|
};
|
|
314
324
|
var parseClassListRegex = /\s/;
|
|
315
|
-
var parseClassList = (value) =>
|
|
325
|
+
var parseClassList = (value) => {
|
|
326
|
+
if (typeof value === "object" && "baseVal" in value) {
|
|
327
|
+
value = value.baseVal;
|
|
328
|
+
}
|
|
329
|
+
if (!value) {
|
|
330
|
+
return [];
|
|
331
|
+
}
|
|
332
|
+
return value.split(parseClassListRegex);
|
|
333
|
+
};
|
|
316
334
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
317
335
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
318
336
|
|
|
@@ -341,13 +359,10 @@ function sortedAttrNames(attrNames) {
|
|
|
341
359
|
attrNames
|
|
342
360
|
);
|
|
343
361
|
}
|
|
344
|
-
|
|
345
|
-
// src/runtime/vdom/vdom-render.ts
|
|
346
|
-
var scopeId;
|
|
347
362
|
var hostTagName;
|
|
348
363
|
var useNativeShadowDom = false;
|
|
349
364
|
var isSvgMode = false;
|
|
350
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex
|
|
365
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
351
366
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
352
367
|
let i2 = 0;
|
|
353
368
|
let elm;
|
|
@@ -361,11 +376,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
361
376
|
{
|
|
362
377
|
updateElement(null, newVNode2, isSvgMode);
|
|
363
378
|
}
|
|
364
|
-
const rootNode = elm.getRootNode();
|
|
365
|
-
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
366
|
-
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
367
|
-
elm.classList.add(elm["s-si"] = scopeId);
|
|
368
|
-
}
|
|
369
379
|
if (newVNode2.$children$) {
|
|
370
380
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
371
381
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -494,6 +504,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
494
504
|
if (!isInitialRender) {
|
|
495
505
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
496
506
|
}
|
|
507
|
+
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
508
|
+
leftVNode.$key$ = rightVNode.$key$;
|
|
509
|
+
}
|
|
497
510
|
return true;
|
|
498
511
|
}
|
|
499
512
|
return false;
|
|
@@ -547,9 +560,6 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
547
560
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
548
561
|
hostRef.$vnode$ = rootVnode;
|
|
549
562
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
550
|
-
{
|
|
551
|
-
scopeId = hostElm["s-sc"];
|
|
552
|
-
}
|
|
553
563
|
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
554
564
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
555
565
|
};
|
|
@@ -611,7 +621,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
611
621
|
}
|
|
612
622
|
if (!appliedStyles.has(scopeId2)) {
|
|
613
623
|
{
|
|
614
|
-
styleElm = doc.createElement("style");
|
|
624
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
|
615
625
|
styleElm.innerHTML = style;
|
|
616
626
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
617
627
|
if (nonce != null) {
|
|
@@ -912,7 +922,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
912
922
|
plt.jmp(() => {
|
|
913
923
|
var _a2;
|
|
914
924
|
const propName = attrNameToPropName.get(attrName);
|
|
915
|
-
if (this.hasOwnProperty(propName)) {
|
|
925
|
+
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
916
926
|
newValue = this[propName];
|
|
917
927
|
delete this[propName];
|
|
918
928
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
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-68a7f5e1.js';
|
|
2
|
+
export { s as setNonce } from './index-68a7f5e1.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-68a7f5e1.js';
|
|
2
|
+
export { s as setNonce } from './index-68a7f5e1.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v4.23.
|
|
6
|
+
Stencil Client Patch Browser v4.23.1 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
var patchBrowser = () => {
|
|
9
9
|
const importMeta = import.meta.url;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as a}from"./p-
|
|
1
|
+
import{r as t,h as a}from"./p-a71c0c99.js";const s="proto-daisy-db:app-data",o=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"})}};o.style="";const e=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))))}};e.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 c=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}))}};c.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 i=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))}};i.style="proto-faux-type{}";export{o as proto_daisy_db,e as proto_faux_keys,r as proto_faux_stamp,c as proto_faux_trigger,i as proto_faux_type}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e=Object.defineProperty,t={},n=new WeakMap,o=e=>n.get(e),l=(e,t)=>{n.set(t.t=e,t)},s=(e,t)=>t in e,i=(e,t)=>(0,console.error)(e,t),r=new Map,c=new Map,u="slot-fb{display:contents}slot-fb[hidden]{display:none}",a="undefined"!=typeof window?window:{},f=a.document||{head:{}},h={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)},d=e=>Promise.resolve(e),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),m=!1,y=[],b=[],$=(e,t)=>n=>{e.push(n),m||(m=!0,t&&4&h.o?S(v):h.raf(v))},w=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){i(e)}e.length=0},v=()=>{w(y),w(b),(m=y.length>0)&&h.raf(v)},S=e=>d().then(e),g=$(b,!0),j=e=>"object"==(e=typeof e)||"function"===e;function O(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:()=>E,map:()=>C,ok:()=>k,unwrap:()=>x,unwrapErr:()=>P});var k=e=>({isOk:!0,isErr:!1,value:e}),E=e=>({isOk:!1,isErr:!0,value:e});function C(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>k(e))):k(n)}if(e.isErr)return E(e.value);throw"should never get here"}var M,x=e=>{if(e.isOk)return e.value;throw e.value},P=e=>{if(e.isErr)return e.value;throw e.value},A=(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&&!j(o))&&(o+=""),s&&i?r[r.length-1].i+=o:r.push(s?D(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=D(e,null);return u.u=t,r.length>0&&(u.h=r),u.p=l,u},D=(e,t)=>({o:0,m:e,i:t,$:null,h:null,u:null,p:null}),H={},R=(e,t,n,o,l,i)=>{if(n!==o){let r=s(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,l=L(n);let s=L(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 s=j(o);if((r||s&&null!==o)&&!l)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||l)&&!s&&e.setAttribute(t,o=!0===o?"":o)}else if(t="-"===t[2]?t.slice(3):s(a,c)?c.slice(2):c[2]+t.slice(3),n||o){const l=t.endsWith(N);t=t.replace(U,""),n&&h.rel(e,t,n,l),o&&h.ael(e,t,o,l)}}},T=/\s/,L=e=>("object"==typeof e&&"baseVal"in e&&(e=e.baseVal),e?e.split(T):[]),N="Capture",U=RegExp(N+"$"),F=(e,n,o)=>{const l=11===n.$.nodeType&&n.$.host?n.$.host:n.$,s=e&&e.u||t,i=n.u||t;for(const e of V(Object.keys(s)))e in i||R(l,e,s[e],void 0,o,n.o);for(const e of V(Object.keys(i)))R(l,e,s[e],i[e],o,n.o)};function V(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var W=!1,q=(e,t,n)=>{const o=t.h[n];let l,s,i=0;if(null!==o.i)l=o.$=f.createTextNode(o.i);else if(l=o.$=f.createElement(o.m),F(null,o,W),o.h)for(i=0;i<o.h.length;++i)s=q(e,o,i),s&&l.appendChild(s);return l["s-hn"]=M,l},G=(e,t,n,o,l,s)=>{let i,r=e;for(r.shadowRoot&&r.tagName===M&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=q(null,n,l),i&&(o[l].$=i,I(r,i,t)))},_=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.$;e&&e.remove()}}},z=(e,t,n=!1)=>e.m===t.m&&(n?(n&&!e.p&&t.p&&(e.p=t.p),!0):e.p===t.p),B=(e,t,n=!1)=>{const o=t.$=e.$,l=e.h,s=t.h,i=t.i;null===i?(F(e,t,W),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(z(h,m,l))B(h,m,l),h=t[++r],m=o[++c];else if(z(d,y,l))B(d,y,l),d=t[--f],y=o[--p];else if(z(h,y,l))B(h,y,l),I(e,h.$,d.$.nextSibling),h=t[++r],y=o[--p];else if(z(d,m,l))B(d,m,l),I(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=q(t&&t[c],n,u):(B(i,m,l),t[u]=void 0,s=i.$),m=o[++c]):(s=q(t&&t[c],n,c),m=o[++c]),s&&I(h.$.parentNode,s,h.$)}r>f?G(e,null==o[p+1]?null:o[p+1].$,n,o,c,p):c>p&&_(t,r,f)})(o,l,t,s,n):null!==s?(null!==e.i&&(o.textContent=""),G(o,null,t,s,0,s.length-1)):!n&&null!==l&&_(l,0,l.length-1)):e.i!==i&&(o.data=i)},I=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),J=(e,t)=>null==e||j(e)?e:1&t?e+"":e,K=new WeakMap,Q=e=>"sc-"+e.v,X=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},Y=(e,t)=>{if(e.o|=16,!(4&e.o))return X(e,e.j),g((()=>Z(e,t)));e.o|=512},Z=(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 ee(void 0,(()=>ne(e,n,t)))},ee=(e,t)=>te(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),te=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,ne=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=Q(t),l=c.get(o);if(e=11===e.nodeType?e:f,l)if("string"==typeof l){let s,i=K.get(e=e.head||e);if(i||K.set(e,i=new Set),!i.has(o)){{s=document.querySelector(`[sty-id="${o}"]`)||f.createElement("style"),s.innerHTML=l;const i=null!=(n=h.k)?n:O(f);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(p){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+=u),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);oe(e,t,l,n),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>le(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},oe=(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||D(null,null),i=(e=>e&&e.m===H)(t)?t:A(null,null,t);if(M=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,B(s,i,n)})(e,t,o)}catch(t){i(t,e.$hostElement$)}return null},le=e=>{const t=e.$hostElement$,n=e.t,o=e.j;64&e.o||(e.o|=64,re(t),ie(n,"componentDidLoad"),e.M(t),o||se()),e.S&&(e.S(),e.S=void 0),512&e.o&&S((()=>Y(e,!1))),e.o&=-517},se=()=>{re(f.documentElement),S((()=>(e=>{const t=h.ce("appload",{detail:{namespace:"proto-daisy-db"}});return e.dispatchEvent(t),t})(a)))},ie=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){i(e)}},re=e=>e.classList.add("hydrated"),ce=(e,t,n,l)=>{const s=o(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;n=J(n,l.A[t][0]),8&r&&void 0!==i||n===i||Number.isNaN(i)&&Number.isNaN(n)||(s.P.set(t,n),c&&2==(18&r)&&Y(s,!1))},ue=(e,t,n)=>{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&n&&32&l)if(2048&l){if(1&n&&2048&l&&(Object.defineProperty(i,e,{get(){const t=o(this),n=t?t.t:i;if(n)return n[e]},configurable:!0,enumerable:!0}),4096&l)){const n=Object.getOwnPropertyDescriptor(i,e).set;Object.defineProperty(i,e,{set(l){const s=o(this);if(n){const o=s.$hostElement$[e];return!s.P.get(e)&&o&&s.P.set(e,o),n.call(this,J(l,t.A[e][0])),void ce(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]=J(l,t.A[e][0]),ce(this,e,s.t[e],t)};s.t?i():s.D.then((()=>i()))}})}}else Object.defineProperty(i,e,{get(){return((e,t)=>o(this).P.get(t))(0,e)},set(n){ce(this,e,n,t)},configurable:!0,enumerable:!0})})),1&n){const n=new Map;i.attributeChangedCallback=function(e,l,s){h.jmp((()=>{var r;const c=n.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 n=o(this),i=null==n?void 0:n.o;if(i&&!(8&i)&&128&i&&s!==l){const o=n.t,i=null==(r=t.H)?void 0:r[e];null==i||i.forEach((t=>{null!=o[t]&&o[t].call(o,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 o=t[1]||e;return n.set(o,e),o}))]))}}return e},ae=(e,t={})=>{var l;const s=[],d=t.exclude||[],m=a.customElements,y=f.head,b=y.querySelector("meta[charset]"),$=f.createElement("style"),w=[];let v,S=!0;Object.assign(h,t),h.l=new URL(t.resourcesUrl||"./",f.baseURI).href;let g=!1;if(e.map((e=>{e[1].map((t=>{const l={o:t[0],v:t[1],A:t[2],R:t[3]};4&l.o&&(g=!0),l.A=t[2];const u=l.v,a=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,t)=>{const o={o:0,$hostElement$:e,O:t,P:new Map};o.D=new Promise((e=>o.M=e)),e["s-p"]=[],e["s-rc"]=[],n.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):h.jmp((()=>(e=>{if(!(1&h.o)){const t=o(e),n=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"]){X(t,t.j=n);break}}n.A&&Object.entries(n.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.T){const e=(e=>{const t=e.v.replace(/-/g,"_"),n=e.T;if(!n)return;const o=r.get(n);return o?o[t]:import(`./${n}.entry.js`).then((e=>(r.set(n,e),e[t])),i)
|
|
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.L}" was not found`);o.isProxied||(ue(o,n,2),o.isProxied=!0);const l=()=>{};t.o|=8;try{new o(t)}catch(e){i(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=Q(n);if(!c.has(t)){const o=()=>{};((e,t,n)=>{let o=c.get(e);p&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,c.set(e,o)})(t,e,!!(1&n.o)),o()}}}const l=t.j,s=()=>Y(t,!0);l&&l["s-rc"]?l["s-rc"].push(s):s()})(e,t,n)}l()}})(this)))}disconnectedCallback(){h.jmp((()=>(async()=>{if(!(1&h.o)){const e=o(this);(null==e?void 0:e.t)||(null==e?void 0:e.D)&&e.D.then((()=>{}))}})()))}componentOnReady(){return o(this).D}};l.T=e[0],d.includes(u)||m.get(u)||(s.push(u),m.define(u,ue(a,l,1)))}))})),s.length>0&&(g&&($.textContent+=u),$.textContent+=s.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",$.innerHTML.length)){$.setAttribute("data-styles","");const e=null!=(l=h.k)?l:O(f);null!=e&&$.setAttribute("nonce",e),y.insertBefore($,b?b.nextSibling:y.firstChild)}S=!1,w.length?w.map((e=>e.connectedCallback())):h.jmp((()=>v=setTimeout(se,30)))},fe=e=>h.k=e;export{ae as b,A as h,d as p,l as r,fe as s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,b as
|
|
1
|
+
import{p as t,b as a}from"./p-a71c0c99.js";export{s as setNonce}from"./p-a71c0c99.js";import{g as e}from"./p-e1255160.js";(()=>{const a=import.meta.url,e={};return""!==a&&(e.resourcesUrl=new URL(".",a).href),t(e)})().then((async t=>(await e(),a([["p-a4a63d8f",[[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.388",
|
|
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.23.
|
|
30
|
+
"@stencil/core": "4.23.1",
|
|
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:{},f=u.document||{head:{}},a={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&a.o?v(w):a.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)&&a.raf(w)},v=e=>h().then(e),S=b(y,!0),g={},j=e=>"object"==(e=typeof e)||"function"===e;function O(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:()=>E,map:()=>C,ok:()=>k,unwrap:()=>x,unwrapErr:()=>P});var k=e=>({isOk:!0,isErr:!1,value:e}),E=e=>({isOk:!1,isErr:!0,value:e});function C(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>k(e))):k(n)}if(e.isErr)return E(e.value);throw"should never get here"}var M,x=e=>{if(e.isOk)return e.value;throw e.value},P=e=>{if(e.isErr)return e.value;throw e.value},A=(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&&!j(o))&&(o+=""),s&&i?r[r.length-1].i+=o:r.push(s?D(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=D(e,null);return u.u=t,r.length>0&&(u.h=r),u.p=l,u},D=(e,t)=>({o:0,m:e,i:t,$:null,h:null,u:null,p:null}),H={},R=(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=L(n),s=L(o);e["s-si"]&&s.indexOf(e["s-si"])<0&&s.push(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=j(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(N);t=t.replace(U,""),n&&a.rel(e,t,n,l),o&&a.ael(e,t,o,l)}}},T=/\s/,L=e=>e?e.split(T):[],N="Capture",U=RegExp(N+"$"),F=(e,t,n)=>{const o=11===t.$.nodeType&&t.$.host?t.$.host:t.$,l=e&&e.u||g,s=t.u||g;for(const e of W(Object.keys(l)))e in s||R(o,e,l[e],void 0,n,t.o);for(const e of W(Object.keys(s)))R(o,e,l[e],s[e],n,t.o)};function W(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var q=!1,G=(e,t,n)=>{const o=t.h[n];let l,s,i=0;if(null!==o.i)l=o.$=f.createTextNode(o.i);else if(l=o.$=f.createElement(o.m),F(null,o,q),l.getRootNode().querySelector("body"),o.h)for(i=0;i<o.h.length;++i)s=G(e,o,i),s&&l.appendChild(s);return l["s-hn"]=M,l},V=(e,t,n,o,l,s)=>{let i,r=e;for(r.shadowRoot&&r.tagName===M&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=G(null,n,l),i&&(o[l].$=i,I(r,i,t)))},_=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.$;e&&e.remove()}}},z=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),B=(e,t,n=!1)=>{const o=t.$=e.$,l=e.h,s=t.h,i=t.i;null===i?(F(e,t,q),null!==l&&null!==s?((e,t,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,f=0,a=t.length-1,h=t[0],d=t[a],p=o.length-1,m=o[0],y=o[p];for(;r<=a&&c<=p;)if(null==h)h=t[++r];else if(null==d)d=t[--a];else if(null==m)m=o[++c];else if(null==y)y=o[--p];else if(z(h,m,l))B(h,m,l),h=t[++r],m=o[++c];else if(z(d,y,l))B(d,y,l),d=t[--a],y=o[--p];else if(z(h,y,l))B(h,y,l),I(e,h.$,d.$.nextSibling),h=t[++r],y=o[--p];else if(z(d,m,l))B(d,m,l),I(e,d.$,h.$),d=t[--a],m=o[++c];else{for(u=-1,f=r;f<=a;++f)if(t[f]&&null!==t[f].p&&t[f].p===m.p){u=f;break}u>=0?(i=t[u],i.m!==m.m?s=G(t&&t[c],n,u):(B(i,m,l),t[u]=void 0,s=i.$),m=o[++c]):(s=G(t&&t[c],n,c),m=o[++c]),s&&I(h.$.parentNode,s,h.$)}r>a?V(e,null==o[p+1]?null:o[p+1].$,n,o,c,p):c>p&&_(t,r,a)})(o,l,t,s,n):null!==s?(null!==e.i&&(o.textContent=""),V(o,null,t,s,0,s.length-1)):!n&&null!==l&&_(l,0,l.length-1)):e.i!==i&&(o.data=i)},I=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),J=(e,t)=>null==e||j(e)?e:1&t?e+"":e,K=new WeakMap,Q=e=>"sc-"+e.v,X=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},Y=(e,t)=>{if(e.o|=16,!(4&e.o))return X(e,e.j),S((()=>Z(e,t)));e.o|=512},Z=(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 ee(void 0,(()=>ne(e,n,t)))},ee=(e,t)=>te(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),te=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,ne=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=Q(t),l=r.get(o);if(e=11===e.nodeType?e:f,l)if("string"==typeof l){let s,i=K.get(e=e.head||e);if(i||K.set(e,i=new Set),!i.has(o)){{s=f.createElement("style"),s.innerHTML=l;const o=null!=(n=a.k)?n:O(f);if(null!=o&&s.setAttribute("nonce",o),!(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);oe(e,t,l,n),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>le(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},oe=(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||D(null,null),i=(e=>e&&e.m===H)(t)?t:A(null,null,t);if(M=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,B(s,i,n)})(e,t,o)}catch(t){s(t,e.$hostElement$)}return null},le=e=>{const t=e.$hostElement$,n=e.t,o=e.j;64&e.o||(e.o|=64,re(t),ie(n,"componentDidLoad"),e.M(t),o||se()),e.S&&(e.S(),e.S=void 0),512&e.o&&v((()=>Y(e,!1))),e.o&=-517},se=()=>{re(f.documentElement),v((()=>(e=>{const t=a.ce("appload",{detail:{namespace:"proto-daisy-db"}});return e.dispatchEvent(t),t})(u)))},ie=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},re=e=>e.classList.add("hydrated"),ce=(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=J(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)&&Y(s,!1))},ue=(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,J(l,t.A[e][0])),void ce(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]=J(l,t.A[e][0]),ce(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){ce(this,e,n,t)},configurable:!0,enumerable:!0})})),1&o){const o=new Map;i.attributeChangedCallback=function(e,l,s){a.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},fe=(e,o={})=>{var l;const h=[],p=o.exclude||[],m=u.customElements,y=f.head,b=y.querySelector("meta[charset]"),$=f.createElement("style"),w=[];let v,S=!0;Object.assign(a,o),a.l=new URL(o.resourcesUrl||"./",f.baseURI).href;let g=!1;if(e.map((e=>{e[1].map((o=>{const l={o:o[0],v:o[1],A:o[2],R: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):a.jmp((()=>(e=>{if(!(1&a.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"]){X(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.T){const e=(e=>{const t=e.v.replace(/-/g,"_"),n=e.T;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.L}" was not found`);o.isProxied||(ue(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=Q(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=()=>Y(t,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(e,t,o)}l()}})(this)))}disconnectedCallback(){a.jmp((()=>(async()=>{if(!(1&a.o)){const e=n(this);(null==e?void 0:e.t)||(null==e?void 0:e.D)&&e.D.then((()=>{}))}})()))}componentOnReady(){return n(this).D}};l.T=e[0],p.includes(c)||m.get(c)||(h.push(c),m.define(c,ue(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=a.k)?l:O(f);null!=e&&$.setAttribute("nonce",e),y.insertBefore($,b?b.nextSibling:y.firstChild)}S=!1,w.length?w.map((e=>e.connectedCallback())):a.jmp((()=>v=setTimeout(se,30)))},ae=e=>a.k=e;export{fe as b,A as h,h as p,o as r,ae as s}
|