@sula-tech/webcomponents 0.3.3 → 0.4.1
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-87eec792.js → index-BtkenDV1.js} +205 -156
- package/dist/cjs/index-BtkenDV1.js.map +1 -0
- package/dist/cjs/index.cjs.js +1 -0
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +4 -6
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/sula-avatar.sula-badge.sula-button.sula-checkbox.sula-chip.sula-icon.sula-loader.sula-menu-select-list.sula-radio-button.sula-switch.sula-tag.sula-textarea.sula-textfield.sula-tiles.entry.cjs.js.map +1 -0
- package/dist/cjs/sula-avatar_14.cjs.entry.js +28284 -0
- package/dist/cjs/sula-avatar_14.cjs.entry.js.map +1 -0
- package/dist/cjs/webcomponents.cjs.js +8 -8
- package/dist/cjs/webcomponents.cjs.js.map +1 -1
- package/dist/collection/assets/lottie/loader.json +1 -0
- package/dist/collection/collection-manifest.json +7 -2
- package/dist/collection/components/sula-avatar/sula-avatar.css +1 -1
- package/dist/collection/components/sula-avatar/sula-avatar.js +4 -4
- package/dist/collection/components/sula-avatar/sula-avatar.stories.js +7 -0
- package/dist/collection/components/sula-avatar/sula-avatar.stories.js.map +1 -1
- package/dist/collection/components/sula-badge/sula-badge.css +1 -1
- package/dist/collection/components/sula-badge/sula-badge.js +5 -5
- package/dist/collection/components/sula-badge/sula-badge.stories.js +7 -0
- package/dist/collection/components/sula-badge/sula-badge.stories.js.map +1 -1
- package/dist/collection/components/sula-button/sula-button.css +1 -1
- package/dist/collection/components/sula-button/sula-button.js +8 -8
- package/dist/collection/components/sula-button/sula-button.stories.js +7 -0
- package/dist/collection/components/sula-button/sula-button.stories.js.map +1 -1
- package/dist/collection/components/sula-checkbox/sula-checkbox.css +1 -1
- package/dist/collection/components/sula-checkbox/sula-checkbox.js +5 -5
- package/dist/collection/components/sula-checkbox/sula-checkbox.stories.js +7 -0
- package/dist/collection/components/sula-checkbox/sula-checkbox.stories.js.map +1 -1
- package/dist/collection/components/sula-chip/model/sula-chip.model.js +6 -0
- package/dist/collection/components/sula-chip/model/sula-chip.model.js.map +1 -0
- package/dist/collection/components/sula-chip/sula-chip.css +1 -0
- package/dist/collection/components/sula-chip/sula-chip.js +243 -0
- package/dist/collection/components/sula-chip/sula-chip.js.map +1 -0
- package/dist/collection/components/sula-chip/sula-chip.stories.js +125 -0
- package/dist/collection/components/sula-chip/sula-chip.stories.js.map +1 -0
- package/dist/collection/components/sula-icon/sula-icon.css +1 -1
- package/dist/collection/components/sula-icon/sula-icon.js +3 -3
- package/dist/collection/components/sula-loader/model/sula-loader.model.js +7 -0
- package/dist/collection/components/sula-loader/model/sula-loader.model.js.map +1 -0
- package/dist/collection/components/sula-loader/sula-loader.css +1 -0
- package/dist/collection/components/sula-loader/sula-loader.js +102 -0
- package/dist/collection/components/sula-loader/sula-loader.js.map +1 -0
- package/dist/collection/components/sula-loader/sula-loader.stories.js +48 -0
- package/dist/collection/components/sula-loader/sula-loader.stories.js.map +1 -0
- package/dist/collection/components/sula-loader/test/__mocks__/lottie-web.js +10 -0
- package/dist/collection/components/sula-loader/test/__mocks__/lottie-web.js.map +1 -0
- package/dist/collection/components/sula-menu-select-list/model/sula-menu-select-list.model.js +2 -0
- package/dist/collection/components/sula-menu-select-list/model/sula-menu-select-list.model.js.map +1 -0
- package/dist/collection/components/sula-menu-select-list/sula-menu-select-list.css +1 -0
- package/dist/collection/components/sula-menu-select-list/sula-menu-select-list.js +81 -0
- package/dist/collection/components/sula-menu-select-list/sula-menu-select-list.js.map +1 -0
- package/dist/collection/components/sula-menu-select-list/sula-menu-select-list.stories.js +91 -0
- package/dist/collection/components/sula-menu-select-list/sula-menu-select-list.stories.js.map +1 -0
- package/dist/collection/components/sula-radio-button/sula-radio-button.css +1 -0
- package/dist/collection/components/sula-radio-button/sula-radio-button.js +176 -0
- package/dist/collection/components/sula-radio-button/sula-radio-button.js.map +1 -0
- package/dist/collection/components/sula-radio-button/sula-radio-button.stories.js +123 -0
- package/dist/collection/components/sula-radio-button/sula-radio-button.stories.js.map +1 -0
- package/dist/collection/components/sula-switch/sula-switch.css +1 -1
- package/dist/collection/components/sula-switch/sula-switch.js +9 -9
- package/dist/collection/components/sula-switch/sula-switch.stories.js +7 -0
- package/dist/collection/components/sula-switch/sula-switch.stories.js.map +1 -1
- package/dist/collection/components/sula-tag/sula-tag.css +1 -1
- package/dist/collection/components/sula-tag/sula-tag.js +9 -9
- package/dist/collection/components/sula-tag/sula-tag.stories.js +7 -0
- package/dist/collection/components/sula-tag/sula-tag.stories.js.map +1 -1
- package/dist/collection/components/sula-textarea/sula-textarea.css +1 -1
- package/dist/collection/components/sula-textarea/sula-textarea.js +35 -22
- package/dist/collection/components/sula-textarea/sula-textarea.js.map +1 -1
- package/dist/collection/components/sula-textarea/sula-textarea.stories.js +7 -0
- package/dist/collection/components/sula-textarea/sula-textarea.stories.js.map +1 -1
- package/dist/collection/components/sula-textfield/sula-textfield.css +1 -1
- package/dist/collection/components/sula-textfield/sula-textfield.js +12 -12
- package/dist/collection/components/sula-textfield/sula-textfield.js.map +1 -1
- package/dist/collection/components/sula-textfield/sula-textfield.stories.js +7 -0
- package/dist/collection/components/sula-textfield/sula-textfield.stories.js.map +1 -1
- package/dist/collection/components/sula-tiles/model/sula-tiles.model.js +11 -0
- package/dist/collection/components/sula-tiles/model/sula-tiles.model.js.map +1 -0
- package/dist/collection/components/sula-tiles/sula-tiles.css +1 -0
- package/dist/collection/components/sula-tiles/sula-tiles.js +316 -0
- package/dist/collection/components/sula-tiles/sula-tiles.js.map +1 -0
- package/dist/collection/components/sula-tiles/sula-tiles.stories.js +420 -0
- package/dist/collection/components/sula-tiles/sula-tiles.stories.js.map +1 -0
- package/dist/components/index.js +1251 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/{p-b0d1214f.js → p-CEU3PNQs.js} +6 -6
- package/dist/components/p-CEU3PNQs.js.map +1 -0
- package/dist/components/p-DJGFqp8r.js +44 -0
- package/dist/components/p-DJGFqp8r.js.map +1 -0
- package/dist/components/sula-avatar.js +5 -5
- package/dist/components/sula-avatar.js.map +1 -1
- package/dist/components/sula-badge.js +5 -5
- package/dist/components/sula-badge.js.map +1 -1
- package/dist/components/sula-button.js +6 -6
- package/dist/components/sula-button.js.map +1 -1
- package/dist/components/sula-checkbox.js +8 -8
- package/dist/components/sula-checkbox.js.map +1 -1
- package/dist/components/sula-chip.d.ts +11 -0
- package/dist/components/sula-chip.js +136 -0
- package/dist/components/sula-chip.js.map +1 -0
- package/dist/components/sula-icon.js +2 -1
- package/dist/components/sula-loader.d.ts +11 -0
- package/dist/components/sula-loader.js +27132 -0
- package/dist/components/sula-loader.js.map +1 -0
- package/dist/components/sula-menu-select-list.d.ts +11 -0
- package/dist/components/sula-menu-select-list.js +9 -0
- package/dist/components/sula-menu-select-list.js.map +1 -0
- package/dist/components/sula-radio-button.d.ts +11 -0
- package/dist/components/sula-radio-button.js +83 -0
- package/dist/components/sula-radio-button.js.map +1 -0
- package/dist/components/sula-switch.js +11 -11
- package/dist/components/sula-switch.js.map +1 -1
- package/dist/components/sula-tag.js +8 -8
- package/dist/components/sula-tag.js.map +1 -1
- package/dist/components/sula-textarea.js +34 -21
- package/dist/components/sula-textarea.js.map +1 -1
- package/dist/components/sula-textfield.js +11 -11
- package/dist/components/sula-textfield.js.map +1 -1
- package/dist/components/sula-tiles.d.ts +11 -0
- package/dist/components/sula-tiles.js +180 -0
- package/dist/components/sula-tiles.js.map +1 -0
- package/dist/esm/{index-aa1c5f36.js → index-Yyeke16a.js} +203 -135
- package/dist/esm/index-Yyeke16a.js.map +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +4 -4
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/sula-avatar.sula-badge.sula-button.sula-checkbox.sula-chip.sula-icon.sula-loader.sula-menu-select-list.sula-radio-button.sula-switch.sula-tag.sula-textarea.sula-textfield.sula-tiles.entry.js.map +1 -0
- package/dist/esm/sula-avatar_14.entry.js +28269 -0
- package/dist/esm/sula-avatar_14.entry.js.map +1 -0
- package/dist/esm/webcomponents.js +6 -5
- package/dist/esm/webcomponents.js.map +1 -1
- package/dist/types/components/sula-avatar/sula-avatar.stories.d.ts +7 -0
- package/dist/types/components/sula-badge/sula-badge.stories.d.ts +7 -0
- package/dist/types/components/sula-button/sula-button.stories.d.ts +7 -0
- package/dist/types/components/sula-checkbox/sula-checkbox.stories.d.ts +7 -0
- package/dist/types/components/sula-chip/model/sula-chip.model.d.ts +4 -0
- package/dist/types/components/sula-chip/sula-chip.d.ts +40 -0
- package/dist/types/components/sula-chip/sula-chip.stories.d.ts +64 -0
- package/dist/types/components/sula-loader/model/sula-loader.model.d.ts +5 -0
- package/dist/types/components/sula-loader/sula-loader.d.ts +19 -0
- package/dist/types/components/sula-loader/sula-loader.stories.d.ts +29 -0
- package/dist/types/components/sula-loader/test/__mocks__/lottie-web.d.ts +4 -0
- package/dist/types/components/sula-menu-select-list/model/sula-menu-select-list.model.d.ts +4 -0
- package/dist/types/components/sula-menu-select-list/sula-menu-select-list.d.ts +14 -0
- package/dist/types/components/sula-menu-select-list/sula-menu-select-list.stories.d.ts +32 -0
- package/dist/types/components/sula-radio-button/sula-radio-button.d.ts +32 -0
- package/dist/types/components/sula-radio-button/sula-radio-button.stories.d.ts +57 -0
- package/dist/types/components/sula-switch/sula-switch.stories.d.ts +7 -0
- package/dist/types/components/sula-tag/sula-tag.stories.d.ts +7 -0
- package/dist/types/components/sula-textarea/sula-textarea.d.ts +4 -1
- package/dist/types/components/sula-textarea/sula-textarea.stories.d.ts +7 -0
- package/dist/types/components/sula-textfield/sula-textfield.stories.d.ts +7 -0
- package/dist/types/components/sula-tiles/model/sula-tiles.model.d.ts +8 -0
- package/dist/types/components/sula-tiles/sula-tiles.d.ts +54 -0
- package/dist/types/components/sula-tiles/sula-tiles.stories.d.ts +99 -0
- package/dist/types/components.d.ts +383 -0
- package/dist/types/stencil-public-runtime.d.ts +23 -1
- package/dist/webcomponents/assets/lottie/loader.json +1 -0
- package/dist/webcomponents/index.esm.js +1 -0
- package/dist/webcomponents/index.esm.js.map +1 -1
- package/dist/webcomponents/loader.esm.js.map +1 -0
- package/dist/webcomponents/p-5ba79323.entry.js +21643 -0
- package/dist/webcomponents/p-5ba79323.entry.js.map +1 -0
- package/dist/webcomponents/p-Yyeke16a.js +1469 -0
- package/dist/webcomponents/p-Yyeke16a.js.map +1 -0
- package/dist/webcomponents/sula-avatar.sula-badge.sula-button.sula-checkbox.sula-chip.sula-icon.sula-loader.sula-menu-select-list.sula-radio-button.sula-switch.sula-tag.sula-textarea.sula-textfield.sula-tiles.entry.esm.js.map +1 -0
- package/dist/webcomponents/webcomponents.esm.js +37 -14
- package/dist/webcomponents/webcomponents.esm.js.map +1 -1
- package/package.json +5 -2
- package/dist/cjs/app-globals-3a1e7e63.js +0 -7
- package/dist/cjs/app-globals-3a1e7e63.js.map +0 -1
- package/dist/cjs/index-87eec792.js.map +0 -1
- package/dist/cjs/sula-avatar_9.cjs.entry.js +0 -865
- package/dist/cjs/sula-avatar_9.cjs.entry.js.map +0 -1
- package/dist/components/p-881c6b35.js +0 -1198
- package/dist/components/p-881c6b35.js.map +0 -1
- package/dist/components/p-b0d1214f.js.map +0 -1
- package/dist/esm/app-globals-0f993ce5.js +0 -5
- package/dist/esm/app-globals-0f993ce5.js.map +0 -1
- package/dist/esm/index-aa1c5f36.js.map +0 -1
- package/dist/esm/sula-avatar_9.entry.js +0 -853
- package/dist/esm/sula-avatar_9.entry.js.map +0 -1
- package/dist/webcomponents/p-5a36af0f.js +0 -1492
- package/dist/webcomponents/p-5a36af0f.js.map +0 -1
- package/dist/webcomponents/p-7cde1edf.entry.js +0 -1123
- package/dist/webcomponents/p-7cde1edf.entry.js.map +0 -1
- package/dist/webcomponents/p-e1255160.js +0 -4
- package/dist/webcomponents/p-e1255160.js.map +0 -1
- package/loader/package.json +0 -11
|
@@ -1,1492 +0,0 @@
|
|
|
1
|
-
const e = "webcomponents";
|
|
2
|
-
|
|
3
|
-
const t = /* webcomponents */ {
|
|
4
|
-
allRenderFn: true,
|
|
5
|
-
appendChildSlotFix: false,
|
|
6
|
-
asyncLoading: true,
|
|
7
|
-
asyncQueue: false,
|
|
8
|
-
attachStyles: true,
|
|
9
|
-
cloneNodeFix: false,
|
|
10
|
-
cmpDidLoad: true,
|
|
11
|
-
cmpDidRender: false,
|
|
12
|
-
cmpDidUnload: false,
|
|
13
|
-
cmpDidUpdate: false,
|
|
14
|
-
cmpShouldUpdate: false,
|
|
15
|
-
cmpWillLoad: true,
|
|
16
|
-
cmpWillRender: false,
|
|
17
|
-
cmpWillUpdate: false,
|
|
18
|
-
connectedCallback: false,
|
|
19
|
-
constructableCSS: true,
|
|
20
|
-
cssAnnotations: true,
|
|
21
|
-
devTools: false,
|
|
22
|
-
disconnectedCallback: false,
|
|
23
|
-
element: false,
|
|
24
|
-
event: true,
|
|
25
|
-
experimentalScopedSlotChanges: false,
|
|
26
|
-
experimentalSlotFixes: false,
|
|
27
|
-
formAssociated: false,
|
|
28
|
-
hasRenderFn: true,
|
|
29
|
-
hostListener: true,
|
|
30
|
-
hostListenerTarget: true,
|
|
31
|
-
hostListenerTargetBody: false,
|
|
32
|
-
hostListenerTargetDocument: true,
|
|
33
|
-
hostListenerTargetParent: false,
|
|
34
|
-
hostListenerTargetWindow: false,
|
|
35
|
-
hotModuleReplacement: false,
|
|
36
|
-
hydrateClientSide: false,
|
|
37
|
-
hydrateServerSide: false,
|
|
38
|
-
hydratedAttribute: false,
|
|
39
|
-
hydratedClass: true,
|
|
40
|
-
hydratedSelectorName: "hydrated",
|
|
41
|
-
initializeNextTick: false,
|
|
42
|
-
invisiblePrehydration: true,
|
|
43
|
-
isDebug: true,
|
|
44
|
-
isDev: false,
|
|
45
|
-
isTesting: false,
|
|
46
|
-
lazyLoad: true,
|
|
47
|
-
lifecycle: true,
|
|
48
|
-
lifecycleDOMEvents: true,
|
|
49
|
-
member: true,
|
|
50
|
-
method: false,
|
|
51
|
-
mode: false,
|
|
52
|
-
modernPropertyDecls: false,
|
|
53
|
-
observeAttribute: true,
|
|
54
|
-
profile: false,
|
|
55
|
-
prop: true,
|
|
56
|
-
propBoolean: true,
|
|
57
|
-
propMutable: true,
|
|
58
|
-
propNumber: true,
|
|
59
|
-
propString: true,
|
|
60
|
-
reflect: false,
|
|
61
|
-
scoped: false,
|
|
62
|
-
scopedSlotTextContentFix: false,
|
|
63
|
-
scriptDataOpts: false,
|
|
64
|
-
shadowDelegatesFocus: false,
|
|
65
|
-
shadowDom: true,
|
|
66
|
-
slot: true,
|
|
67
|
-
slotChildNodesFix: false,
|
|
68
|
-
slotRelocation: false,
|
|
69
|
-
state: true,
|
|
70
|
-
style: true,
|
|
71
|
-
svg: false,
|
|
72
|
-
taskQueue: true,
|
|
73
|
-
transformTagName: false,
|
|
74
|
-
updatable: true,
|
|
75
|
-
vdomAttribute: true,
|
|
76
|
-
vdomClass: true,
|
|
77
|
-
vdomFunctional: false,
|
|
78
|
-
vdomKey: true,
|
|
79
|
-
vdomListener: true,
|
|
80
|
-
vdomPropOrAttr: true,
|
|
81
|
-
vdomRef: true,
|
|
82
|
-
vdomRender: true,
|
|
83
|
-
vdomStyle: true,
|
|
84
|
-
vdomText: true,
|
|
85
|
-
vdomXlink: false,
|
|
86
|
-
watchCallback: false
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
/*
|
|
90
|
-
Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
|
|
91
|
-
*/ var n = Object.defineProperty;
|
|
92
|
-
|
|
93
|
-
var __export = (e, t) => {
|
|
94
|
-
for (var s in t) n(e, s, {
|
|
95
|
-
get: t[s],
|
|
96
|
-
enumerable: true
|
|
97
|
-
});
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
// src/client/client-host-ref.ts
|
|
101
|
-
var s = new WeakMap;
|
|
102
|
-
|
|
103
|
-
var getHostRef = e => s.get(e);
|
|
104
|
-
|
|
105
|
-
var registerInstance = (e, t) => {
|
|
106
|
-
s.set(t._$$lazyInstance$$_ = e, t);
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
var registerHost = (e, t) => {
|
|
110
|
-
const n = {
|
|
111
|
-
_$$flags$$_: 0,
|
|
112
|
-
$hostElement$: e,
|
|
113
|
-
_$$cmpMeta$$_: t,
|
|
114
|
-
_$$instanceValues$$_: new Map
|
|
115
|
-
};
|
|
116
|
-
{
|
|
117
|
-
n._$$onReadyPromise$$_ = new Promise((e => n._$$onReadyResolve$$_ = e));
|
|
118
|
-
e["s-p"] = [];
|
|
119
|
-
e["s-rc"] = [];
|
|
120
|
-
}
|
|
121
|
-
const r = s.set(e, n);
|
|
122
|
-
return r;
|
|
123
|
-
};
|
|
124
|
-
|
|
125
|
-
var isMemberInElement = (e, t) => t in e;
|
|
126
|
-
|
|
127
|
-
var consoleError = (e, t) => (0, console.error)(e, t)
|
|
128
|
-
// src/client/client-load-module.ts
|
|
129
|
-
;
|
|
130
|
-
|
|
131
|
-
var r = new Map;
|
|
132
|
-
|
|
133
|
-
var loadModule = (e, t, n) => {
|
|
134
|
-
const s = e._$$tagName$$_.replace(/-/g, "_");
|
|
135
|
-
const l = e._$$lazyBundleId$$_;
|
|
136
|
-
if (!l) {
|
|
137
|
-
return void 0;
|
|
138
|
-
}
|
|
139
|
-
const o = r.get(l);
|
|
140
|
-
if (o) {
|
|
141
|
-
return o[s];
|
|
142
|
-
}
|
|
143
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/ return import(
|
|
144
|
-
/* @vite-ignore */
|
|
145
|
-
/* webpackInclude: /\.entry\.js$/ */
|
|
146
|
-
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
147
|
-
/* webpackMode: "lazy" */
|
|
148
|
-
`./${l}.entry.js${""}`).then((e => {
|
|
149
|
-
{
|
|
150
|
-
r.set(l, e);
|
|
151
|
-
}
|
|
152
|
-
return e[s];
|
|
153
|
-
}), (e => {
|
|
154
|
-
consoleError(e, t.$hostElement$);
|
|
155
|
-
}));
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
// src/client/client-style.ts
|
|
159
|
-
var l = new Map;
|
|
160
|
-
|
|
161
|
-
var o = "sty-id";
|
|
162
|
-
|
|
163
|
-
var i = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
164
|
-
|
|
165
|
-
var a = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
166
|
-
|
|
167
|
-
var f = typeof window !== "undefined" ? window : {};
|
|
168
|
-
|
|
169
|
-
var c = f.document || {
|
|
170
|
-
head: {}
|
|
171
|
-
};
|
|
172
|
-
|
|
173
|
-
var u = {
|
|
174
|
-
_$$flags$$_: 0,
|
|
175
|
-
_$$resourcesUrl$$_: "",
|
|
176
|
-
jmp: e => e(),
|
|
177
|
-
raf: e => requestAnimationFrame(e),
|
|
178
|
-
ael: (e, t, n, s) => e.addEventListener(t, n, s),
|
|
179
|
-
rel: (e, t, n, s) => e.removeEventListener(t, n, s),
|
|
180
|
-
ce: (e, t) => new CustomEvent(e, t)
|
|
181
|
-
};
|
|
182
|
-
|
|
183
|
-
var d = (() => {
|
|
184
|
-
let e = false;
|
|
185
|
-
try {
|
|
186
|
-
c.addEventListener("e", null, Object.defineProperty({}, "passive", {
|
|
187
|
-
get() {
|
|
188
|
-
e = true;
|
|
189
|
-
}
|
|
190
|
-
}));
|
|
191
|
-
} catch (e) {}
|
|
192
|
-
return e;
|
|
193
|
-
})();
|
|
194
|
-
|
|
195
|
-
var promiseResolve = e => Promise.resolve(e);
|
|
196
|
-
|
|
197
|
-
var v = (() => {
|
|
198
|
-
try {
|
|
199
|
-
new CSSStyleSheet;
|
|
200
|
-
return typeof (new CSSStyleSheet).replaceSync === "function";
|
|
201
|
-
} catch (e) {}
|
|
202
|
-
return false;
|
|
203
|
-
})();
|
|
204
|
-
|
|
205
|
-
var p = false;
|
|
206
|
-
|
|
207
|
-
var m = [];
|
|
208
|
-
|
|
209
|
-
var y = [];
|
|
210
|
-
|
|
211
|
-
var queueTask = (e, t) => n => {
|
|
212
|
-
e.push(n);
|
|
213
|
-
if (!p) {
|
|
214
|
-
p = true;
|
|
215
|
-
if (t && u._$$flags$$_ & 4 /* queueSync */) {
|
|
216
|
-
nextTick(flush);
|
|
217
|
-
} else {
|
|
218
|
-
u.raf(flush);
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
};
|
|
222
|
-
|
|
223
|
-
var consume = e => {
|
|
224
|
-
for (let t = 0; t < e.length; t++) {
|
|
225
|
-
try {
|
|
226
|
-
e[t](performance.now());
|
|
227
|
-
} catch (e) {
|
|
228
|
-
consoleError(e);
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
e.length = 0;
|
|
232
|
-
};
|
|
233
|
-
|
|
234
|
-
var flush = () => {
|
|
235
|
-
consume(m);
|
|
236
|
-
{
|
|
237
|
-
consume(y);
|
|
238
|
-
if (p = m.length > 0) {
|
|
239
|
-
u.raf(flush);
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
};
|
|
243
|
-
|
|
244
|
-
var nextTick = e => promiseResolve().then(e);
|
|
245
|
-
|
|
246
|
-
var b = queueTask(y, true);
|
|
247
|
-
|
|
248
|
-
var isComplexType = e => {
|
|
249
|
-
e = typeof e;
|
|
250
|
-
return e === "object" || e === "function";
|
|
251
|
-
};
|
|
252
|
-
|
|
253
|
-
// src/utils/query-nonce-meta-tag-content.ts
|
|
254
|
-
function queryNonceMetaTagContent(e) {
|
|
255
|
-
var t, n, s;
|
|
256
|
-
return (s = (n = (t = e.head) == null ? void 0 : t.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : n.getAttribute("content")) != null ? s : void 0;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
// src/utils/result.ts
|
|
260
|
-
var w = {};
|
|
261
|
-
|
|
262
|
-
__export(w, {
|
|
263
|
-
err: () => err,
|
|
264
|
-
map: () => map,
|
|
265
|
-
ok: () => ok,
|
|
266
|
-
unwrap: () => unwrap,
|
|
267
|
-
unwrapErr: () => unwrapErr
|
|
268
|
-
});
|
|
269
|
-
|
|
270
|
-
var ok = e => ({
|
|
271
|
-
isOk: true,
|
|
272
|
-
isErr: false,
|
|
273
|
-
value: e
|
|
274
|
-
});
|
|
275
|
-
|
|
276
|
-
var err = e => ({
|
|
277
|
-
isOk: false,
|
|
278
|
-
isErr: true,
|
|
279
|
-
value: e
|
|
280
|
-
});
|
|
281
|
-
|
|
282
|
-
function map(e, t) {
|
|
283
|
-
if (e.isOk) {
|
|
284
|
-
const n = t(e.value);
|
|
285
|
-
if (n instanceof Promise) {
|
|
286
|
-
return n.then((e => ok(e)));
|
|
287
|
-
} else {
|
|
288
|
-
return ok(n);
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
if (e.isErr) {
|
|
292
|
-
const t = e.value;
|
|
293
|
-
return err(t);
|
|
294
|
-
}
|
|
295
|
-
throw "should never get here";
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
var unwrap = e => {
|
|
299
|
-
if (e.isOk) {
|
|
300
|
-
return e.value;
|
|
301
|
-
} else {
|
|
302
|
-
throw e.value;
|
|
303
|
-
}
|
|
304
|
-
};
|
|
305
|
-
|
|
306
|
-
var unwrapErr = e => {
|
|
307
|
-
if (e.isErr) {
|
|
308
|
-
return e.value;
|
|
309
|
-
} else {
|
|
310
|
-
throw e.value;
|
|
311
|
-
}
|
|
312
|
-
};
|
|
313
|
-
|
|
314
|
-
var createTime = (e, t = "") => {
|
|
315
|
-
{
|
|
316
|
-
return () => {};
|
|
317
|
-
}
|
|
318
|
-
};
|
|
319
|
-
|
|
320
|
-
var uniqueTime = (e, t) => {
|
|
321
|
-
{
|
|
322
|
-
return () => {};
|
|
323
|
-
}
|
|
324
|
-
};
|
|
325
|
-
|
|
326
|
-
var h = (e, t, ...n) => {
|
|
327
|
-
let s = null;
|
|
328
|
-
let r = null;
|
|
329
|
-
let l = false;
|
|
330
|
-
let o = false;
|
|
331
|
-
const i = [];
|
|
332
|
-
const walk = t => {
|
|
333
|
-
for (let n = 0; n < t.length; n++) {
|
|
334
|
-
s = t[n];
|
|
335
|
-
if (Array.isArray(s)) {
|
|
336
|
-
walk(s);
|
|
337
|
-
} else if (s != null && typeof s !== "boolean") {
|
|
338
|
-
if (l = typeof e !== "function" && !isComplexType(s)) {
|
|
339
|
-
s = String(s);
|
|
340
|
-
}
|
|
341
|
-
if (l && o) {
|
|
342
|
-
i[i.length - 1]._$$text$$_ += s;
|
|
343
|
-
} else {
|
|
344
|
-
i.push(l ? newVNode(null, s) : s);
|
|
345
|
-
}
|
|
346
|
-
o = l;
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
};
|
|
350
|
-
walk(n);
|
|
351
|
-
if (t) {
|
|
352
|
-
if (t.key) {
|
|
353
|
-
r = t.key;
|
|
354
|
-
}
|
|
355
|
-
{
|
|
356
|
-
const e = t.className || t.class;
|
|
357
|
-
if (e) {
|
|
358
|
-
t.class = typeof e !== "object" ? e : Object.keys(e).filter((t => e[t])).join(" ");
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
const a = newVNode(e, null);
|
|
363
|
-
a._$$attrs$$_ = t;
|
|
364
|
-
if (i.length > 0) {
|
|
365
|
-
a._$$children$$_ = i;
|
|
366
|
-
}
|
|
367
|
-
{
|
|
368
|
-
a._$$key$$_ = r;
|
|
369
|
-
}
|
|
370
|
-
return a;
|
|
371
|
-
};
|
|
372
|
-
|
|
373
|
-
var newVNode = (e, t) => {
|
|
374
|
-
const n = {
|
|
375
|
-
_$$flags$$_: 0,
|
|
376
|
-
_$$tag$$_: e,
|
|
377
|
-
_$$text$$_: t,
|
|
378
|
-
_$$elm$$_: null,
|
|
379
|
-
_$$children$$_: null
|
|
380
|
-
};
|
|
381
|
-
{
|
|
382
|
-
n._$$attrs$$_ = null;
|
|
383
|
-
}
|
|
384
|
-
{
|
|
385
|
-
n._$$key$$_ = null;
|
|
386
|
-
}
|
|
387
|
-
return n;
|
|
388
|
-
};
|
|
389
|
-
|
|
390
|
-
var S = {};
|
|
391
|
-
|
|
392
|
-
var isHost = e => e && e._$$tag$$_ === S;
|
|
393
|
-
|
|
394
|
-
var parsePropertyValue = (e, t) => {
|
|
395
|
-
if (e != null && !isComplexType(e)) {
|
|
396
|
-
if (t & 4 /* Boolean */) {
|
|
397
|
-
return e === "false" ? false : e === "" || !!e;
|
|
398
|
-
}
|
|
399
|
-
if (t & 2 /* Number */) {
|
|
400
|
-
return parseFloat(e);
|
|
401
|
-
}
|
|
402
|
-
if (t & 1 /* String */) {
|
|
403
|
-
return String(e);
|
|
404
|
-
}
|
|
405
|
-
return e;
|
|
406
|
-
}
|
|
407
|
-
return e;
|
|
408
|
-
};
|
|
409
|
-
|
|
410
|
-
var getElement = e => getHostRef(e).$hostElement$
|
|
411
|
-
// src/runtime/event-emitter.ts
|
|
412
|
-
;
|
|
413
|
-
|
|
414
|
-
var createEvent = (e, t, n) => {
|
|
415
|
-
const s = getElement(e);
|
|
416
|
-
return {
|
|
417
|
-
emit: e => emitEvent(s, t, {
|
|
418
|
-
bubbles: !!(n & 4 /* Bubbles */),
|
|
419
|
-
composed: !!(n & 2 /* Composed */),
|
|
420
|
-
cancelable: !!(n & 1 /* Cancellable */),
|
|
421
|
-
detail: e
|
|
422
|
-
})
|
|
423
|
-
};
|
|
424
|
-
};
|
|
425
|
-
|
|
426
|
-
var emitEvent = (e, t, n) => {
|
|
427
|
-
const s = u.ce(t, n);
|
|
428
|
-
e.dispatchEvent(s);
|
|
429
|
-
return s;
|
|
430
|
-
};
|
|
431
|
-
|
|
432
|
-
var g = new WeakMap;
|
|
433
|
-
|
|
434
|
-
var registerStyle = (e, t, n) => {
|
|
435
|
-
let s = l.get(e);
|
|
436
|
-
if (v && n) {
|
|
437
|
-
s = s || new CSSStyleSheet;
|
|
438
|
-
if (typeof s === "string") {
|
|
439
|
-
s = t;
|
|
440
|
-
} else {
|
|
441
|
-
s.replaceSync(t);
|
|
442
|
-
}
|
|
443
|
-
} else {
|
|
444
|
-
s = t;
|
|
445
|
-
}
|
|
446
|
-
l.set(e, s);
|
|
447
|
-
};
|
|
448
|
-
|
|
449
|
-
var addStyle = (e, t, n) => {
|
|
450
|
-
var s;
|
|
451
|
-
const r = getScopeId(t);
|
|
452
|
-
const i = l.get(r);
|
|
453
|
-
e = e.nodeType === 11 /* DocumentFragment */ ? e : c;
|
|
454
|
-
if (i) {
|
|
455
|
-
if (typeof i === "string") {
|
|
456
|
-
e = e.head || e;
|
|
457
|
-
let n = g.get(e);
|
|
458
|
-
let l;
|
|
459
|
-
if (!n) {
|
|
460
|
-
g.set(e, n = new Set);
|
|
461
|
-
}
|
|
462
|
-
if (!n.has(r)) {
|
|
463
|
-
{
|
|
464
|
-
l = document.querySelector(`[${o}="${r}"]`) || c.createElement("style");
|
|
465
|
-
l.innerHTML = i;
|
|
466
|
-
const n = (s = u._$$nonce$$_) != null ? s : queryNonceMetaTagContent(c);
|
|
467
|
-
if (n != null) {
|
|
468
|
-
l.setAttribute("nonce", n);
|
|
469
|
-
}
|
|
470
|
-
if (!(t._$$flags$$_ & 1 /* shadowDomEncapsulation */)) {
|
|
471
|
-
if (e.nodeName === "HEAD") {
|
|
472
|
-
const t = e.querySelectorAll("link[rel=preconnect]");
|
|
473
|
-
const n = t.length > 0 ? t[t.length - 1].nextSibling : e.querySelector("style");
|
|
474
|
-
e.insertBefore(l, (n == null ? void 0 : n.parentNode) === e ? n : null);
|
|
475
|
-
} else if ("host" in e) {
|
|
476
|
-
if (v) {
|
|
477
|
-
const t = new CSSStyleSheet;
|
|
478
|
-
t.replaceSync(i);
|
|
479
|
-
e.adoptedStyleSheets = [ t, ...e.adoptedStyleSheets ];
|
|
480
|
-
} else {
|
|
481
|
-
const t = e.querySelector("style");
|
|
482
|
-
if (t) {
|
|
483
|
-
t.innerHTML = i + t.innerHTML;
|
|
484
|
-
} else {
|
|
485
|
-
e.prepend(l);
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
} else {
|
|
489
|
-
e.append(l);
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
if (t._$$flags$$_ & 1 /* shadowDomEncapsulation */) {
|
|
493
|
-
e.insertBefore(l, null);
|
|
494
|
-
}
|
|
495
|
-
}
|
|
496
|
-
if (t._$$flags$$_ & 4 /* hasSlotRelocation */) {
|
|
497
|
-
l.innerHTML += a;
|
|
498
|
-
}
|
|
499
|
-
if (n) {
|
|
500
|
-
n.add(r);
|
|
501
|
-
}
|
|
502
|
-
}
|
|
503
|
-
} else if (!e.adoptedStyleSheets.includes(i)) {
|
|
504
|
-
e.adoptedStyleSheets = [ ...e.adoptedStyleSheets, i ];
|
|
505
|
-
}
|
|
506
|
-
}
|
|
507
|
-
return r;
|
|
508
|
-
};
|
|
509
|
-
|
|
510
|
-
var attachStyles = e => {
|
|
511
|
-
const t = e._$$cmpMeta$$_;
|
|
512
|
-
const n = e.$hostElement$;
|
|
513
|
-
const s = t._$$flags$$_;
|
|
514
|
-
const r = createTime("attachStyles", t._$$tagName$$_);
|
|
515
|
-
const l = addStyle(n.shadowRoot ? n.shadowRoot : n.getRootNode(), t);
|
|
516
|
-
if (s & 10 /* needsScopedEncapsulation */ && s & 2 /* scopedCssEncapsulation */ || s & 128 /* shadowNeedsScopedCss */) {
|
|
517
|
-
n["s-sc"] = l;
|
|
518
|
-
n.classList.add(l + "-h");
|
|
519
|
-
}
|
|
520
|
-
r();
|
|
521
|
-
};
|
|
522
|
-
|
|
523
|
-
var getScopeId = (e, t) => "sc-" + e._$$tagName$$_;
|
|
524
|
-
|
|
525
|
-
var setAccessor = (e, t, n, s, r, l, o) => {
|
|
526
|
-
if (n !== s) {
|
|
527
|
-
let o = isMemberInElement(e, t);
|
|
528
|
-
let i = t.toLowerCase();
|
|
529
|
-
if (t === "class") {
|
|
530
|
-
const t = e.classList;
|
|
531
|
-
const r = parseClassList(n);
|
|
532
|
-
let l = parseClassList(s);
|
|
533
|
-
{
|
|
534
|
-
t.remove(...r.filter((e => e && !l.includes(e))));
|
|
535
|
-
t.add(...l.filter((e => e && !r.includes(e))));
|
|
536
|
-
}
|
|
537
|
-
} else if (t === "style") {
|
|
538
|
-
{
|
|
539
|
-
for (const t in n) {
|
|
540
|
-
if (!s || s[t] == null) {
|
|
541
|
-
if (t.includes("-")) {
|
|
542
|
-
e.style.removeProperty(t);
|
|
543
|
-
} else {
|
|
544
|
-
e.style[t] = "";
|
|
545
|
-
}
|
|
546
|
-
}
|
|
547
|
-
}
|
|
548
|
-
}
|
|
549
|
-
for (const t in s) {
|
|
550
|
-
if (!n || s[t] !== n[t]) {
|
|
551
|
-
if (t.includes("-")) {
|
|
552
|
-
e.style.setProperty(t, s[t]);
|
|
553
|
-
} else {
|
|
554
|
-
e.style[t] = s[t];
|
|
555
|
-
}
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
} else if (t === "key") ; else if (t === "ref") {
|
|
559
|
-
if (s) {
|
|
560
|
-
s(e);
|
|
561
|
-
}
|
|
562
|
-
} else if (!o && t[0] === "o" && t[1] === "n") {
|
|
563
|
-
if (t[2] === "-") {
|
|
564
|
-
t = t.slice(3);
|
|
565
|
-
} else if (isMemberInElement(f, i)) {
|
|
566
|
-
t = i.slice(2);
|
|
567
|
-
} else {
|
|
568
|
-
t = i[2] + t.slice(3);
|
|
569
|
-
}
|
|
570
|
-
if (n || s) {
|
|
571
|
-
const r = t.endsWith(C);
|
|
572
|
-
t = t.replace(j, "");
|
|
573
|
-
if (n) {
|
|
574
|
-
u.rel(e, t, n, r);
|
|
575
|
-
}
|
|
576
|
-
if (s) {
|
|
577
|
-
u.ael(e, t, s, r);
|
|
578
|
-
}
|
|
579
|
-
}
|
|
580
|
-
} else {
|
|
581
|
-
const i = isComplexType(s);
|
|
582
|
-
if ((o || i && s !== null) && !r) {
|
|
583
|
-
try {
|
|
584
|
-
if (!e.tagName.includes("-")) {
|
|
585
|
-
const r = s == null ? "" : s;
|
|
586
|
-
if (t === "list") {
|
|
587
|
-
o = false;
|
|
588
|
-
} else if (n == null || e[t] != r) {
|
|
589
|
-
if (typeof e.__lookupSetter__(t) === "function") {
|
|
590
|
-
e[t] = r;
|
|
591
|
-
} else {
|
|
592
|
-
e.setAttribute(t, r);
|
|
593
|
-
}
|
|
594
|
-
}
|
|
595
|
-
} else if (e[t] !== s) {
|
|
596
|
-
e[t] = s;
|
|
597
|
-
}
|
|
598
|
-
} catch (e) {}
|
|
599
|
-
}
|
|
600
|
-
if (s == null || s === false) {
|
|
601
|
-
if (s !== false || e.getAttribute(t) === "") {
|
|
602
|
-
{
|
|
603
|
-
e.removeAttribute(t);
|
|
604
|
-
}
|
|
605
|
-
}
|
|
606
|
-
} else if ((!o || l & 4 /* isHost */ || r) && !i) {
|
|
607
|
-
s = s === true ? "" : s;
|
|
608
|
-
{
|
|
609
|
-
e.setAttribute(t, s);
|
|
610
|
-
}
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
}
|
|
614
|
-
};
|
|
615
|
-
|
|
616
|
-
var $ = /\s/;
|
|
617
|
-
|
|
618
|
-
var parseClassList = e => {
|
|
619
|
-
if (typeof e === "object" && e && "baseVal" in e) {
|
|
620
|
-
e = e.baseVal;
|
|
621
|
-
}
|
|
622
|
-
if (!e || typeof e !== "string") {
|
|
623
|
-
return [];
|
|
624
|
-
}
|
|
625
|
-
return e.split($);
|
|
626
|
-
};
|
|
627
|
-
|
|
628
|
-
var C = "Capture";
|
|
629
|
-
|
|
630
|
-
var j = new RegExp(C + "$");
|
|
631
|
-
|
|
632
|
-
// src/runtime/vdom/update-element.ts
|
|
633
|
-
var updateElement = (e, t, n, s) => {
|
|
634
|
-
const r = t._$$elm$$_.nodeType === 11 /* DocumentFragment */ && t._$$elm$$_.host ? t._$$elm$$_.host : t._$$elm$$_;
|
|
635
|
-
const l = e && e._$$attrs$$_ || {};
|
|
636
|
-
const o = t._$$attrs$$_ || {};
|
|
637
|
-
{
|
|
638
|
-
for (const e of sortedAttrNames(Object.keys(l))) {
|
|
639
|
-
if (!(e in o)) {
|
|
640
|
-
setAccessor(r, e, l[e], void 0, n, t._$$flags$$_);
|
|
641
|
-
}
|
|
642
|
-
}
|
|
643
|
-
}
|
|
644
|
-
for (const e of sortedAttrNames(Object.keys(o))) {
|
|
645
|
-
setAccessor(r, e, l[e], o[e], n, t._$$flags$$_);
|
|
646
|
-
}
|
|
647
|
-
};
|
|
648
|
-
|
|
649
|
-
function sortedAttrNames(e) {
|
|
650
|
-
return e.includes("ref") ?
|
|
651
|
-
// we need to sort these to ensure that `'ref'` is the last attr
|
|
652
|
-
[ ...e.filter((e => e !== "ref")), "ref" ] :
|
|
653
|
-
// no need to sort, return the original array
|
|
654
|
-
e;
|
|
655
|
-
}
|
|
656
|
-
|
|
657
|
-
var k;
|
|
658
|
-
|
|
659
|
-
var O = false;
|
|
660
|
-
|
|
661
|
-
var D = false;
|
|
662
|
-
|
|
663
|
-
var createElm = (e, n, s) => {
|
|
664
|
-
const r = n._$$children$$_[s];
|
|
665
|
-
let l = 0;
|
|
666
|
-
let o;
|
|
667
|
-
let i;
|
|
668
|
-
if (r._$$text$$_ !== null) {
|
|
669
|
-
o = r._$$elm$$_ = c.createTextNode(r._$$text$$_);
|
|
670
|
-
} else {
|
|
671
|
-
o = r._$$elm$$_ = c.createElement(!O && t.slotRelocation && r._$$flags$$_ & 2 /* isSlotFallback */ ? "slot-fb" : r._$$tag$$_);
|
|
672
|
-
{
|
|
673
|
-
updateElement(null, r, D);
|
|
674
|
-
}
|
|
675
|
-
if (r._$$children$$_) {
|
|
676
|
-
for (l = 0; l < r._$$children$$_.length; ++l) {
|
|
677
|
-
i = createElm(e, r, l);
|
|
678
|
-
if (i) {
|
|
679
|
-
o.appendChild(i);
|
|
680
|
-
}
|
|
681
|
-
}
|
|
682
|
-
}
|
|
683
|
-
}
|
|
684
|
-
o["s-hn"] = k;
|
|
685
|
-
return o;
|
|
686
|
-
};
|
|
687
|
-
|
|
688
|
-
var addVnodes = (e, t, n, s, r, l) => {
|
|
689
|
-
let o = e;
|
|
690
|
-
let i;
|
|
691
|
-
if (o.shadowRoot && o.tagName === k) {
|
|
692
|
-
o = o.shadowRoot;
|
|
693
|
-
}
|
|
694
|
-
for (;r <= l; ++r) {
|
|
695
|
-
if (s[r]) {
|
|
696
|
-
i = createElm(null, n, r);
|
|
697
|
-
if (i) {
|
|
698
|
-
s[r]._$$elm$$_ = i;
|
|
699
|
-
insertBefore(o, i, t);
|
|
700
|
-
}
|
|
701
|
-
}
|
|
702
|
-
}
|
|
703
|
-
};
|
|
704
|
-
|
|
705
|
-
var removeVnodes = (e, t, n) => {
|
|
706
|
-
for (let s = t; s <= n; ++s) {
|
|
707
|
-
const t = e[s];
|
|
708
|
-
if (t) {
|
|
709
|
-
const e = t._$$elm$$_;
|
|
710
|
-
nullifyVNodeRefs(t);
|
|
711
|
-
if (e) {
|
|
712
|
-
e.remove();
|
|
713
|
-
}
|
|
714
|
-
}
|
|
715
|
-
}
|
|
716
|
-
};
|
|
717
|
-
|
|
718
|
-
var updateChildren = (e, t, n, s, r = false) => {
|
|
719
|
-
let l = 0;
|
|
720
|
-
let o = 0;
|
|
721
|
-
let i = 0;
|
|
722
|
-
let a = 0;
|
|
723
|
-
let f = t.length - 1;
|
|
724
|
-
let c = t[0];
|
|
725
|
-
let u = t[f];
|
|
726
|
-
let d = s.length - 1;
|
|
727
|
-
let v = s[0];
|
|
728
|
-
let p = s[d];
|
|
729
|
-
let m;
|
|
730
|
-
let y;
|
|
731
|
-
while (l <= f && o <= d) {
|
|
732
|
-
if (c == null) {
|
|
733
|
-
c = t[++l];
|
|
734
|
-
} else if (u == null) {
|
|
735
|
-
u = t[--f];
|
|
736
|
-
} else if (v == null) {
|
|
737
|
-
v = s[++o];
|
|
738
|
-
} else if (p == null) {
|
|
739
|
-
p = s[--d];
|
|
740
|
-
} else if (isSameVnode(c, v, r)) {
|
|
741
|
-
patch(c, v, r);
|
|
742
|
-
c = t[++l];
|
|
743
|
-
v = s[++o];
|
|
744
|
-
} else if (isSameVnode(u, p, r)) {
|
|
745
|
-
patch(u, p, r);
|
|
746
|
-
u = t[--f];
|
|
747
|
-
p = s[--d];
|
|
748
|
-
} else if (isSameVnode(c, p, r)) {
|
|
749
|
-
patch(c, p, r);
|
|
750
|
-
insertBefore(e, c._$$elm$$_, u._$$elm$$_.nextSibling);
|
|
751
|
-
c = t[++l];
|
|
752
|
-
p = s[--d];
|
|
753
|
-
} else if (isSameVnode(u, v, r)) {
|
|
754
|
-
patch(u, v, r);
|
|
755
|
-
insertBefore(e, u._$$elm$$_, c._$$elm$$_);
|
|
756
|
-
u = t[--f];
|
|
757
|
-
v = s[++o];
|
|
758
|
-
} else {
|
|
759
|
-
i = -1;
|
|
760
|
-
{
|
|
761
|
-
for (a = l; a <= f; ++a) {
|
|
762
|
-
if (t[a] && t[a]._$$key$$_ !== null && t[a]._$$key$$_ === v._$$key$$_) {
|
|
763
|
-
i = a;
|
|
764
|
-
break;
|
|
765
|
-
}
|
|
766
|
-
}
|
|
767
|
-
}
|
|
768
|
-
if (i >= 0) {
|
|
769
|
-
y = t[i];
|
|
770
|
-
if (y._$$tag$$_ !== v._$$tag$$_) {
|
|
771
|
-
m = createElm(t && t[o], n, i);
|
|
772
|
-
} else {
|
|
773
|
-
patch(y, v, r);
|
|
774
|
-
t[i] = void 0;
|
|
775
|
-
m = y._$$elm$$_;
|
|
776
|
-
}
|
|
777
|
-
v = s[++o];
|
|
778
|
-
} else {
|
|
779
|
-
m = createElm(t && t[o], n, o);
|
|
780
|
-
v = s[++o];
|
|
781
|
-
}
|
|
782
|
-
if (m) {
|
|
783
|
-
{
|
|
784
|
-
insertBefore(c._$$elm$$_.parentNode, m, c._$$elm$$_);
|
|
785
|
-
}
|
|
786
|
-
}
|
|
787
|
-
}
|
|
788
|
-
}
|
|
789
|
-
if (l > f) {
|
|
790
|
-
addVnodes(e, s[d + 1] == null ? null : s[d + 1]._$$elm$$_, n, s, o, d);
|
|
791
|
-
} else if (o > d) {
|
|
792
|
-
removeVnodes(t, l, f);
|
|
793
|
-
}
|
|
794
|
-
};
|
|
795
|
-
|
|
796
|
-
var isSameVnode = (e, t, n = false) => {
|
|
797
|
-
if (e._$$tag$$_ === t._$$tag$$_) {
|
|
798
|
-
if (!n) {
|
|
799
|
-
return e._$$key$$_ === t._$$key$$_;
|
|
800
|
-
}
|
|
801
|
-
if (n && !e._$$key$$_ && t._$$key$$_) {
|
|
802
|
-
e._$$key$$_ = t._$$key$$_;
|
|
803
|
-
}
|
|
804
|
-
return true;
|
|
805
|
-
}
|
|
806
|
-
return false;
|
|
807
|
-
};
|
|
808
|
-
|
|
809
|
-
var patch = (e, n, s = false) => {
|
|
810
|
-
const r = n._$$elm$$_ = e._$$elm$$_;
|
|
811
|
-
const l = e._$$children$$_;
|
|
812
|
-
const o = n._$$children$$_;
|
|
813
|
-
const i = n._$$tag$$_;
|
|
814
|
-
const a = n._$$text$$_;
|
|
815
|
-
if (a === null) {
|
|
816
|
-
{
|
|
817
|
-
if (i === "slot" && !O) ; else {
|
|
818
|
-
updateElement(e, n, D);
|
|
819
|
-
}
|
|
820
|
-
}
|
|
821
|
-
if (l !== null && o !== null) {
|
|
822
|
-
updateChildren(r, l, n, o, s);
|
|
823
|
-
} else if (o !== null) {
|
|
824
|
-
if (e._$$text$$_ !== null) {
|
|
825
|
-
r.textContent = "";
|
|
826
|
-
}
|
|
827
|
-
addVnodes(r, null, n, o, 0, o.length - 1);
|
|
828
|
-
} else if (
|
|
829
|
-
// don't do this on initial render as it can cause non-hydrated content to be removed
|
|
830
|
-
!s && t.updatable && l !== null) {
|
|
831
|
-
removeVnodes(l, 0, l.length - 1);
|
|
832
|
-
}
|
|
833
|
-
} else if (e._$$text$$_ !== a) {
|
|
834
|
-
r.data = a;
|
|
835
|
-
}
|
|
836
|
-
};
|
|
837
|
-
|
|
838
|
-
var nullifyVNodeRefs = e => {
|
|
839
|
-
{
|
|
840
|
-
e._$$attrs$$_ && e._$$attrs$$_.ref && e._$$attrs$$_.ref(null);
|
|
841
|
-
e._$$children$$_ && e._$$children$$_.map(nullifyVNodeRefs);
|
|
842
|
-
}
|
|
843
|
-
};
|
|
844
|
-
|
|
845
|
-
var insertBefore = (e, t, n) => {
|
|
846
|
-
{
|
|
847
|
-
return e == null ? void 0 : e.insertBefore(t, n);
|
|
848
|
-
}
|
|
849
|
-
};
|
|
850
|
-
|
|
851
|
-
var renderVdom = (e, t, n = false) => {
|
|
852
|
-
const s = e.$hostElement$;
|
|
853
|
-
const r = e._$$cmpMeta$$_;
|
|
854
|
-
const l = e._$$vnode$$_ || newVNode(null, null);
|
|
855
|
-
const o = isHost(t) ? t : h(null, null, t);
|
|
856
|
-
k = s.tagName;
|
|
857
|
-
if (n && o._$$attrs$$_) {
|
|
858
|
-
for (const e of Object.keys(o._$$attrs$$_)) {
|
|
859
|
-
if (s.hasAttribute(e) && ![ "key", "ref", "style", "class" ].includes(e)) {
|
|
860
|
-
o._$$attrs$$_[e] = s[e];
|
|
861
|
-
}
|
|
862
|
-
}
|
|
863
|
-
}
|
|
864
|
-
o._$$tag$$_ = null;
|
|
865
|
-
o._$$flags$$_ |= 4 /* isHost */;
|
|
866
|
-
e._$$vnode$$_ = o;
|
|
867
|
-
o._$$elm$$_ = l._$$elm$$_ = s.shadowRoot || s;
|
|
868
|
-
O = !!(r._$$flags$$_ & 1 /* shadowDomEncapsulation */) && !(r._$$flags$$_ & 128 /* shadowNeedsScopedCss */);
|
|
869
|
-
patch(l, o, n);
|
|
870
|
-
};
|
|
871
|
-
|
|
872
|
-
// src/runtime/update-component.ts
|
|
873
|
-
var attachToAncestor = (e, t) => {
|
|
874
|
-
if (t && !e._$$onRenderResolve$$_ && t["s-p"]) {
|
|
875
|
-
const n = t["s-p"].push(new Promise((s => e._$$onRenderResolve$$_ = () => {
|
|
876
|
-
t["s-p"].splice(n - 1, 1);
|
|
877
|
-
s();
|
|
878
|
-
})));
|
|
879
|
-
}
|
|
880
|
-
};
|
|
881
|
-
|
|
882
|
-
var scheduleUpdate = (e, t) => {
|
|
883
|
-
{
|
|
884
|
-
e._$$flags$$_ |= 16 /* isQueuedForUpdate */;
|
|
885
|
-
}
|
|
886
|
-
if (e._$$flags$$_ & 4 /* isWaitingForChildren */) {
|
|
887
|
-
e._$$flags$$_ |= 512 /* needsRerender */;
|
|
888
|
-
return;
|
|
889
|
-
}
|
|
890
|
-
attachToAncestor(e, e._$$ancestorComponent$$_);
|
|
891
|
-
const dispatch = () => dispatchHooks(e, t);
|
|
892
|
-
return b(dispatch);
|
|
893
|
-
};
|
|
894
|
-
|
|
895
|
-
var dispatchHooks = (e, t) => {
|
|
896
|
-
const n = e.$hostElement$;
|
|
897
|
-
const s = createTime("scheduleUpdate", e._$$cmpMeta$$_._$$tagName$$_);
|
|
898
|
-
const r = e._$$lazyInstance$$_;
|
|
899
|
-
if (!r) {
|
|
900
|
-
throw new Error(`Can't render component <${n.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`);
|
|
901
|
-
}
|
|
902
|
-
let l;
|
|
903
|
-
if (t) {
|
|
904
|
-
{
|
|
905
|
-
e._$$flags$$_ |= 256 /* isListenReady */;
|
|
906
|
-
if (e._$$queuedListeners$$_) {
|
|
907
|
-
e._$$queuedListeners$$_.map((([e, t]) => safeCall(r, e, t, n)));
|
|
908
|
-
e._$$queuedListeners$$_ = void 0;
|
|
909
|
-
}
|
|
910
|
-
}
|
|
911
|
-
emitLifecycleEvent(n, "componentWillLoad");
|
|
912
|
-
{
|
|
913
|
-
l = safeCall(r, "componentWillLoad", void 0, n);
|
|
914
|
-
}
|
|
915
|
-
} else {
|
|
916
|
-
emitLifecycleEvent(n, "componentWillUpdate");
|
|
917
|
-
}
|
|
918
|
-
emitLifecycleEvent(n, "componentWillRender");
|
|
919
|
-
s();
|
|
920
|
-
return enqueue(l, (() => updateComponent(e, r, t)));
|
|
921
|
-
};
|
|
922
|
-
|
|
923
|
-
var enqueue = (e, t) => isPromisey(e) ? e.then(t).catch((e => {
|
|
924
|
-
console.error(e);
|
|
925
|
-
t();
|
|
926
|
-
})) : t();
|
|
927
|
-
|
|
928
|
-
var isPromisey = e => e instanceof Promise || e && e.then && typeof e.then === "function";
|
|
929
|
-
|
|
930
|
-
var updateComponent = async (e, t, n) => {
|
|
931
|
-
var s;
|
|
932
|
-
const r = e.$hostElement$;
|
|
933
|
-
const l = createTime("update", e._$$cmpMeta$$_._$$tagName$$_);
|
|
934
|
-
const o = r["s-rc"];
|
|
935
|
-
if (n) {
|
|
936
|
-
attachStyles(e);
|
|
937
|
-
}
|
|
938
|
-
const i = createTime("render", e._$$cmpMeta$$_._$$tagName$$_);
|
|
939
|
-
{
|
|
940
|
-
callRender(e, t, r, n);
|
|
941
|
-
}
|
|
942
|
-
if (o) {
|
|
943
|
-
o.map((e => e()));
|
|
944
|
-
r["s-rc"] = void 0;
|
|
945
|
-
}
|
|
946
|
-
i();
|
|
947
|
-
l();
|
|
948
|
-
{
|
|
949
|
-
const t = (s = r["s-p"]) != null ? s : [];
|
|
950
|
-
const postUpdate = () => postUpdateComponent(e);
|
|
951
|
-
if (t.length === 0) {
|
|
952
|
-
postUpdate();
|
|
953
|
-
} else {
|
|
954
|
-
Promise.all(t).then(postUpdate);
|
|
955
|
-
e._$$flags$$_ |= 4 /* isWaitingForChildren */;
|
|
956
|
-
t.length = 0;
|
|
957
|
-
}
|
|
958
|
-
}
|
|
959
|
-
};
|
|
960
|
-
|
|
961
|
-
var callRender = (e, t, n, s) => {
|
|
962
|
-
try {
|
|
963
|
-
t = t.render();
|
|
964
|
-
{
|
|
965
|
-
e._$$flags$$_ &= ~16 /* isQueuedForUpdate */;
|
|
966
|
-
}
|
|
967
|
-
{
|
|
968
|
-
e._$$flags$$_ |= 2 /* hasRendered */;
|
|
969
|
-
}
|
|
970
|
-
{
|
|
971
|
-
{
|
|
972
|
-
{
|
|
973
|
-
renderVdom(e, t, s);
|
|
974
|
-
}
|
|
975
|
-
}
|
|
976
|
-
}
|
|
977
|
-
} catch (t) {
|
|
978
|
-
consoleError(t, e.$hostElement$);
|
|
979
|
-
}
|
|
980
|
-
return null;
|
|
981
|
-
};
|
|
982
|
-
|
|
983
|
-
var postUpdateComponent = e => {
|
|
984
|
-
const t = e._$$cmpMeta$$_._$$tagName$$_;
|
|
985
|
-
const n = e.$hostElement$;
|
|
986
|
-
const s = createTime("postUpdate", t);
|
|
987
|
-
const r = e._$$lazyInstance$$_;
|
|
988
|
-
const l = e._$$ancestorComponent$$_;
|
|
989
|
-
emitLifecycleEvent(n, "componentDidRender");
|
|
990
|
-
if (!(e._$$flags$$_ & 64 /* hasLoadedComponent */)) {
|
|
991
|
-
e._$$flags$$_ |= 64 /* hasLoadedComponent */;
|
|
992
|
-
{
|
|
993
|
-
addHydratedFlag(n);
|
|
994
|
-
}
|
|
995
|
-
{
|
|
996
|
-
safeCall(r, "componentDidLoad", void 0, n);
|
|
997
|
-
}
|
|
998
|
-
emitLifecycleEvent(n, "componentDidLoad");
|
|
999
|
-
s();
|
|
1000
|
-
{
|
|
1001
|
-
e._$$onReadyResolve$$_(n);
|
|
1002
|
-
if (!l) {
|
|
1003
|
-
appDidLoad();
|
|
1004
|
-
}
|
|
1005
|
-
}
|
|
1006
|
-
} else {
|
|
1007
|
-
emitLifecycleEvent(n, "componentDidUpdate");
|
|
1008
|
-
s();
|
|
1009
|
-
}
|
|
1010
|
-
{
|
|
1011
|
-
if (e._$$onRenderResolve$$_) {
|
|
1012
|
-
e._$$onRenderResolve$$_();
|
|
1013
|
-
e._$$onRenderResolve$$_ = void 0;
|
|
1014
|
-
}
|
|
1015
|
-
if (e._$$flags$$_ & 512 /* needsRerender */) {
|
|
1016
|
-
nextTick((() => scheduleUpdate(e, false)));
|
|
1017
|
-
}
|
|
1018
|
-
e._$$flags$$_ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);
|
|
1019
|
-
}
|
|
1020
|
-
};
|
|
1021
|
-
|
|
1022
|
-
var appDidLoad = t => {
|
|
1023
|
-
nextTick((() => emitEvent(f, "appload", {
|
|
1024
|
-
detail: {
|
|
1025
|
-
namespace: e
|
|
1026
|
-
}
|
|
1027
|
-
})));
|
|
1028
|
-
};
|
|
1029
|
-
|
|
1030
|
-
var safeCall = (e, t, n, s) => {
|
|
1031
|
-
if (e && e[t]) {
|
|
1032
|
-
try {
|
|
1033
|
-
return e[t](n);
|
|
1034
|
-
} catch (e) {
|
|
1035
|
-
consoleError(e, s);
|
|
1036
|
-
}
|
|
1037
|
-
}
|
|
1038
|
-
return void 0;
|
|
1039
|
-
};
|
|
1040
|
-
|
|
1041
|
-
var emitLifecycleEvent = (t, n) => {
|
|
1042
|
-
{
|
|
1043
|
-
emitEvent(t, "stencil_" + n, {
|
|
1044
|
-
bubbles: true,
|
|
1045
|
-
composed: true,
|
|
1046
|
-
detail: {
|
|
1047
|
-
namespace: e
|
|
1048
|
-
}
|
|
1049
|
-
});
|
|
1050
|
-
}
|
|
1051
|
-
};
|
|
1052
|
-
|
|
1053
|
-
var addHydratedFlag = e => {
|
|
1054
|
-
var n;
|
|
1055
|
-
return e.classList.add((n = t.hydratedSelectorName) != null ? n : "hydrated");
|
|
1056
|
-
};
|
|
1057
|
-
|
|
1058
|
-
// src/runtime/set-value.ts
|
|
1059
|
-
var getValue = (e, t) => getHostRef(e)._$$instanceValues$$_.get(t);
|
|
1060
|
-
|
|
1061
|
-
var setValue = (e, t, n, s) => {
|
|
1062
|
-
const r = getHostRef(e);
|
|
1063
|
-
if (!r) {
|
|
1064
|
-
throw new Error(`Couldn't find host element for "${s._$$tagName$$_}" 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).`);
|
|
1065
|
-
}
|
|
1066
|
-
const l = r._$$instanceValues$$_.get(t);
|
|
1067
|
-
const o = r._$$flags$$_;
|
|
1068
|
-
const i = r._$$lazyInstance$$_;
|
|
1069
|
-
n = parsePropertyValue(n, s._$$members$$_[t][0]);
|
|
1070
|
-
const a = Number.isNaN(l) && Number.isNaN(n);
|
|
1071
|
-
const f = n !== l && !a;
|
|
1072
|
-
if ((!(o & 8 /* isConstructingInstance */) || l === void 0) && f) {
|
|
1073
|
-
r._$$instanceValues$$_.set(t, n);
|
|
1074
|
-
if (i) {
|
|
1075
|
-
if ((o & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1076
|
-
scheduleUpdate(r, false);
|
|
1077
|
-
}
|
|
1078
|
-
}
|
|
1079
|
-
}
|
|
1080
|
-
};
|
|
1081
|
-
|
|
1082
|
-
// src/runtime/proxy-component.ts
|
|
1083
|
-
var proxyComponent = (e, n, s) => {
|
|
1084
|
-
var r, l;
|
|
1085
|
-
const o = e.prototype;
|
|
1086
|
-
if (n._$$members$$_ || t.watchCallback) {
|
|
1087
|
-
const i = Object.entries((r = n._$$members$$_) != null ? r : {});
|
|
1088
|
-
i.map((([e, [t]]) => {
|
|
1089
|
-
if (t & 31 /* Prop */ || s & 2 /* proxyState */ && t & 32 /* State */) {
|
|
1090
|
-
const {get: r, set: l} = Object.getOwnPropertyDescriptor(o, e) || {};
|
|
1091
|
-
if (r) n._$$members$$_[e][0] |= 2048 /* Getter */;
|
|
1092
|
-
if (l) n._$$members$$_[e][0] |= 4096 /* Setter */;
|
|
1093
|
-
if (s & 1 /* isElementConstructor */ || !r) {
|
|
1094
|
-
Object.defineProperty(o, e, {
|
|
1095
|
-
get() {
|
|
1096
|
-
{
|
|
1097
|
-
if ((n._$$members$$_[e][0] & 2048 /* Getter */) === 0) {
|
|
1098
|
-
return getValue(this, e);
|
|
1099
|
-
}
|
|
1100
|
-
const t = getHostRef(this);
|
|
1101
|
-
const s = t ? t._$$lazyInstance$$_ : o;
|
|
1102
|
-
if (!s) return;
|
|
1103
|
-
return s[e];
|
|
1104
|
-
}
|
|
1105
|
-
},
|
|
1106
|
-
configurable: true,
|
|
1107
|
-
enumerable: true
|
|
1108
|
-
});
|
|
1109
|
-
}
|
|
1110
|
-
Object.defineProperty(o, e, {
|
|
1111
|
-
set(r) {
|
|
1112
|
-
const o = getHostRef(this);
|
|
1113
|
-
if (l) {
|
|
1114
|
-
const s = t & 32 /* State */ ? this[e] : o.$hostElement$[e];
|
|
1115
|
-
if (typeof s === "undefined" && o._$$instanceValues$$_.get(e)) {
|
|
1116
|
-
r = o._$$instanceValues$$_.get(e);
|
|
1117
|
-
} else if (!o._$$instanceValues$$_.get(e) && s) {
|
|
1118
|
-
o._$$instanceValues$$_.set(e, s);
|
|
1119
|
-
}
|
|
1120
|
-
l.apply(this, [ parsePropertyValue(r, t) ]);
|
|
1121
|
-
r = t & 32 /* State */ ? this[e] : o.$hostElement$[e];
|
|
1122
|
-
setValue(this, e, r, n);
|
|
1123
|
-
return;
|
|
1124
|
-
}
|
|
1125
|
-
{
|
|
1126
|
-
if ((s & 1 /* isElementConstructor */) === 0 || (n._$$members$$_[e][0] & 4096 /* Setter */) === 0) {
|
|
1127
|
-
setValue(this, e, r, n);
|
|
1128
|
-
if (s & 1 /* isElementConstructor */ && !o._$$lazyInstance$$_) {
|
|
1129
|
-
o._$$onReadyPromise$$_.then((() => {
|
|
1130
|
-
if (n._$$members$$_[e][0] & 4096 /* Setter */ && o._$$lazyInstance$$_[e] !== o._$$instanceValues$$_.get(e)) {
|
|
1131
|
-
o._$$lazyInstance$$_[e] = r;
|
|
1132
|
-
}
|
|
1133
|
-
}));
|
|
1134
|
-
}
|
|
1135
|
-
return;
|
|
1136
|
-
}
|
|
1137
|
-
const setterSetVal = () => {
|
|
1138
|
-
const s = o._$$lazyInstance$$_[e];
|
|
1139
|
-
if (!o._$$instanceValues$$_.get(e) && s) {
|
|
1140
|
-
o._$$instanceValues$$_.set(e, s);
|
|
1141
|
-
}
|
|
1142
|
-
o._$$lazyInstance$$_[e] = parsePropertyValue(r, t);
|
|
1143
|
-
setValue(this, e, o._$$lazyInstance$$_[e], n);
|
|
1144
|
-
};
|
|
1145
|
-
if (o._$$lazyInstance$$_) {
|
|
1146
|
-
setterSetVal();
|
|
1147
|
-
} else {
|
|
1148
|
-
o._$$onReadyPromise$$_.then((() => setterSetVal()));
|
|
1149
|
-
}
|
|
1150
|
-
}
|
|
1151
|
-
}
|
|
1152
|
-
});
|
|
1153
|
-
}
|
|
1154
|
-
}));
|
|
1155
|
-
if (s & 1 /* isElementConstructor */) {
|
|
1156
|
-
const s = new Map;
|
|
1157
|
-
o.attributeChangedCallback = function(e, r, l) {
|
|
1158
|
-
u.jmp((() => {
|
|
1159
|
-
var i;
|
|
1160
|
-
const a = s.get(e);
|
|
1161
|
-
if (this.hasOwnProperty(a) && t.lazyLoad) {
|
|
1162
|
-
l = this[a];
|
|
1163
|
-
delete this[a];
|
|
1164
|
-
} else if (o.hasOwnProperty(a) && typeof this[a] === "number" && // cast type to number to avoid TS compiler issues
|
|
1165
|
-
this[a] == l) {
|
|
1166
|
-
return;
|
|
1167
|
-
} else if (a == null) {
|
|
1168
|
-
const t = getHostRef(this);
|
|
1169
|
-
const s = t == null ? void 0 : t._$$flags$$_;
|
|
1170
|
-
if (s && !(s & 8 /* isConstructingInstance */) && s & 128 /* isWatchReady */ && l !== r) {
|
|
1171
|
-
const s = t._$$lazyInstance$$_;
|
|
1172
|
-
const o = (i = n._$$watchers$$_) == null ? void 0 : i[e];
|
|
1173
|
-
o == null ? void 0 : o.forEach((t => {
|
|
1174
|
-
if (s[t] != null) {
|
|
1175
|
-
s[t].call(s, l, r, e);
|
|
1176
|
-
}
|
|
1177
|
-
}));
|
|
1178
|
-
}
|
|
1179
|
-
return;
|
|
1180
|
-
}
|
|
1181
|
-
const f = Object.getOwnPropertyDescriptor(o, a);
|
|
1182
|
-
l = l === null && typeof this[a] === "boolean" ? false : l;
|
|
1183
|
-
if (l !== this[a] && (!f.get || !!f.set)) {
|
|
1184
|
-
this[a] = l;
|
|
1185
|
-
}
|
|
1186
|
-
}));
|
|
1187
|
-
};
|
|
1188
|
-
e.observedAttributes = Array.from(
|
|
1189
|
-
new Set([ ...Object.keys((l = n._$$watchers$$_) != null ? l : {}), ...i.filter((([e, t]) => t[0] & 15 /* HasAttribute */)).map((([e, t]) => {
|
|
1190
|
-
const n = t[1] || e;
|
|
1191
|
-
s.set(n, e);
|
|
1192
|
-
return n;
|
|
1193
|
-
})) ]));
|
|
1194
|
-
}
|
|
1195
|
-
}
|
|
1196
|
-
return e;
|
|
1197
|
-
};
|
|
1198
|
-
|
|
1199
|
-
// src/runtime/initialize-component.ts
|
|
1200
|
-
var initializeComponent = async (e, t, n, s) => {
|
|
1201
|
-
let r;
|
|
1202
|
-
if ((t._$$flags$$_ & 32 /* hasInitializedComponent */) === 0) {
|
|
1203
|
-
t._$$flags$$_ |= 32 /* hasInitializedComponent */;
|
|
1204
|
-
const s = n._$$lazyBundleId$$_;
|
|
1205
|
-
if (s) {
|
|
1206
|
-
const s = loadModule(n, t);
|
|
1207
|
-
if (s && "then" in s) {
|
|
1208
|
-
const e = uniqueTime();
|
|
1209
|
-
r = await s;
|
|
1210
|
-
e();
|
|
1211
|
-
} else {
|
|
1212
|
-
r = s;
|
|
1213
|
-
}
|
|
1214
|
-
if (!r) {
|
|
1215
|
-
throw new Error(`Constructor for "${n._$$tagName$$_}#${t._$$modeName$$_}" was not found`);
|
|
1216
|
-
}
|
|
1217
|
-
if (!r.isProxied) {
|
|
1218
|
-
proxyComponent(r, n, 2 /* proxyState */);
|
|
1219
|
-
r.isProxied = true;
|
|
1220
|
-
}
|
|
1221
|
-
const l = createTime("createInstance", n._$$tagName$$_);
|
|
1222
|
-
{
|
|
1223
|
-
t._$$flags$$_ |= 8 /* isConstructingInstance */;
|
|
1224
|
-
}
|
|
1225
|
-
try {
|
|
1226
|
-
new r(t);
|
|
1227
|
-
} catch (t) {
|
|
1228
|
-
consoleError(t, e);
|
|
1229
|
-
}
|
|
1230
|
-
{
|
|
1231
|
-
t._$$flags$$_ &= ~8 /* isConstructingInstance */;
|
|
1232
|
-
}
|
|
1233
|
-
l();
|
|
1234
|
-
} else {
|
|
1235
|
-
r = e.constructor;
|
|
1236
|
-
const n = e.localName;
|
|
1237
|
-
customElements.whenDefined(n).then((() => t._$$flags$$_ |= 128 /* isWatchReady */));
|
|
1238
|
-
}
|
|
1239
|
-
if (r && r.style) {
|
|
1240
|
-
let e;
|
|
1241
|
-
if (typeof r.style === "string") {
|
|
1242
|
-
e = r.style;
|
|
1243
|
-
}
|
|
1244
|
-
const t = getScopeId(n);
|
|
1245
|
-
if (!l.has(t)) {
|
|
1246
|
-
const s = createTime("registerStyles", n._$$tagName$$_);
|
|
1247
|
-
registerStyle(t, e, !!(n._$$flags$$_ & 1 /* shadowDomEncapsulation */));
|
|
1248
|
-
s();
|
|
1249
|
-
}
|
|
1250
|
-
}
|
|
1251
|
-
}
|
|
1252
|
-
const o = t._$$ancestorComponent$$_;
|
|
1253
|
-
const schedule = () => scheduleUpdate(t, true);
|
|
1254
|
-
if (o && o["s-rc"]) {
|
|
1255
|
-
o["s-rc"].push(schedule);
|
|
1256
|
-
} else {
|
|
1257
|
-
schedule();
|
|
1258
|
-
}
|
|
1259
|
-
};
|
|
1260
|
-
|
|
1261
|
-
var fireConnectedCallback = (e, t) => {};
|
|
1262
|
-
|
|
1263
|
-
// src/runtime/connected-callback.ts
|
|
1264
|
-
var connectedCallback = e => {
|
|
1265
|
-
if ((u._$$flags$$_ & 1 /* isTmpDisconnected */) === 0) {
|
|
1266
|
-
const t = getHostRef(e);
|
|
1267
|
-
const n = t._$$cmpMeta$$_;
|
|
1268
|
-
const s = createTime("connectedCallback", n._$$tagName$$_);
|
|
1269
|
-
if (!(t._$$flags$$_ & 1 /* hasConnected */)) {
|
|
1270
|
-
t._$$flags$$_ |= 1 /* hasConnected */;
|
|
1271
|
-
{
|
|
1272
|
-
let n = e;
|
|
1273
|
-
while (n = n.parentNode || n.host) {
|
|
1274
|
-
if (n["s-p"]) {
|
|
1275
|
-
attachToAncestor(t, t._$$ancestorComponent$$_ = n);
|
|
1276
|
-
break;
|
|
1277
|
-
}
|
|
1278
|
-
}
|
|
1279
|
-
}
|
|
1280
|
-
if (n._$$members$$_) {
|
|
1281
|
-
Object.entries(n._$$members$$_).map((([t, [n]]) => {
|
|
1282
|
-
if (n & 31 /* Prop */ && e.hasOwnProperty(t)) {
|
|
1283
|
-
const n = e[t];
|
|
1284
|
-
delete e[t];
|
|
1285
|
-
e[t] = n;
|
|
1286
|
-
}
|
|
1287
|
-
}));
|
|
1288
|
-
}
|
|
1289
|
-
{
|
|
1290
|
-
initializeComponent(e, t, n);
|
|
1291
|
-
}
|
|
1292
|
-
} else {
|
|
1293
|
-
addHostEventListeners(e, t, n._$$listeners$$_);
|
|
1294
|
-
if (t == null ? void 0 : t._$$lazyInstance$$_) ; else if (t == null ? void 0 : t._$$onReadyPromise$$_) {
|
|
1295
|
-
t._$$onReadyPromise$$_.then((() => fireConnectedCallback()));
|
|
1296
|
-
}
|
|
1297
|
-
}
|
|
1298
|
-
s();
|
|
1299
|
-
}
|
|
1300
|
-
};
|
|
1301
|
-
|
|
1302
|
-
var disconnectInstance = (e, t) => {};
|
|
1303
|
-
|
|
1304
|
-
var disconnectedCallback = async e => {
|
|
1305
|
-
if ((u._$$flags$$_ & 1 /* isTmpDisconnected */) === 0) {
|
|
1306
|
-
const t = getHostRef(e);
|
|
1307
|
-
{
|
|
1308
|
-
if (t._$$rmListeners$$_) {
|
|
1309
|
-
t._$$rmListeners$$_.map((e => e()));
|
|
1310
|
-
t._$$rmListeners$$_ = void 0;
|
|
1311
|
-
}
|
|
1312
|
-
}
|
|
1313
|
-
if (t == null ? void 0 : t._$$lazyInstance$$_) ; else if (t == null ? void 0 : t._$$onReadyPromise$$_) {
|
|
1314
|
-
t._$$onReadyPromise$$_.then((() => disconnectInstance()));
|
|
1315
|
-
}
|
|
1316
|
-
}
|
|
1317
|
-
if (g.has(e)) {
|
|
1318
|
-
g.delete(e);
|
|
1319
|
-
}
|
|
1320
|
-
if (e.shadowRoot && g.has(e.shadowRoot)) {
|
|
1321
|
-
g.delete(e.shadowRoot);
|
|
1322
|
-
}
|
|
1323
|
-
};
|
|
1324
|
-
|
|
1325
|
-
// src/runtime/bootstrap-lazy.ts
|
|
1326
|
-
var bootstrapLazy = (e, t = {}) => {
|
|
1327
|
-
var n;
|
|
1328
|
-
const s = createTime();
|
|
1329
|
-
const r = [];
|
|
1330
|
-
const l = t.exclude || [];
|
|
1331
|
-
const o = f.customElements;
|
|
1332
|
-
const d = c.head;
|
|
1333
|
-
const v = d.querySelector("meta[charset]");
|
|
1334
|
-
const p = c.createElement("style");
|
|
1335
|
-
const m = [];
|
|
1336
|
-
let y;
|
|
1337
|
-
let b = true;
|
|
1338
|
-
Object.assign(u, t);
|
|
1339
|
-
u._$$resourcesUrl$$_ = new URL(t.resourcesUrl || "./", c.baseURI).href;
|
|
1340
|
-
let w = false;
|
|
1341
|
-
e.map((e => {
|
|
1342
|
-
e[1].map((t => {
|
|
1343
|
-
const n = {
|
|
1344
|
-
_$$flags$$_: t[0],
|
|
1345
|
-
_$$tagName$$_: t[1],
|
|
1346
|
-
_$$members$$_: t[2],
|
|
1347
|
-
_$$listeners$$_: t[3]
|
|
1348
|
-
};
|
|
1349
|
-
if (n._$$flags$$_ & 4 /* hasSlotRelocation */) {
|
|
1350
|
-
w = true;
|
|
1351
|
-
}
|
|
1352
|
-
{
|
|
1353
|
-
n._$$members$$_ = t[2];
|
|
1354
|
-
}
|
|
1355
|
-
{
|
|
1356
|
-
n._$$listeners$$_ = t[3];
|
|
1357
|
-
}
|
|
1358
|
-
const s = n._$$tagName$$_;
|
|
1359
|
-
const i = class extends HTMLElement {
|
|
1360
|
-
// StencilLazyHost
|
|
1361
|
-
constructor(e) {
|
|
1362
|
-
super(e);
|
|
1363
|
-
this.hasRegisteredEventListeners = false;
|
|
1364
|
-
e = this;
|
|
1365
|
-
registerHost(e, n);
|
|
1366
|
-
if (n._$$flags$$_ & 1 /* shadowDomEncapsulation */) {
|
|
1367
|
-
{
|
|
1368
|
-
if (!e.shadowRoot) {
|
|
1369
|
-
{
|
|
1370
|
-
e.attachShadow({
|
|
1371
|
-
mode: "open"
|
|
1372
|
-
});
|
|
1373
|
-
}
|
|
1374
|
-
} else {
|
|
1375
|
-
if (e.shadowRoot.mode !== "open") {
|
|
1376
|
-
throw new Error(`Unable to re-use existing shadow root for ${n._$$tagName$$_}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`);
|
|
1377
|
-
}
|
|
1378
|
-
}
|
|
1379
|
-
}
|
|
1380
|
-
}
|
|
1381
|
-
}
|
|
1382
|
-
connectedCallback() {
|
|
1383
|
-
const e = getHostRef(this);
|
|
1384
|
-
if (!this.hasRegisteredEventListeners) {
|
|
1385
|
-
this.hasRegisteredEventListeners = true;
|
|
1386
|
-
addHostEventListeners(this, e, n._$$listeners$$_);
|
|
1387
|
-
}
|
|
1388
|
-
if (y) {
|
|
1389
|
-
clearTimeout(y);
|
|
1390
|
-
y = null;
|
|
1391
|
-
}
|
|
1392
|
-
if (b) {
|
|
1393
|
-
m.push(this);
|
|
1394
|
-
} else {
|
|
1395
|
-
u.jmp((() => connectedCallback(this)));
|
|
1396
|
-
}
|
|
1397
|
-
}
|
|
1398
|
-
disconnectedCallback() {
|
|
1399
|
-
u.jmp((() => disconnectedCallback(this)));
|
|
1400
|
-
u.raf((() => {
|
|
1401
|
-
var e;
|
|
1402
|
-
const t = getHostRef(this);
|
|
1403
|
-
const n = m.findIndex((e => e === this));
|
|
1404
|
-
if (n > -1) {
|
|
1405
|
-
m.splice(n, 1);
|
|
1406
|
-
}
|
|
1407
|
-
if (((e = t == null ? void 0 : t._$$vnode$$_) == null ? void 0 : e._$$elm$$_) instanceof Node && !t._$$vnode$$_._$$elm$$_.isConnected) {
|
|
1408
|
-
delete t._$$vnode$$_._$$elm$$_;
|
|
1409
|
-
}
|
|
1410
|
-
}));
|
|
1411
|
-
}
|
|
1412
|
-
componentOnReady() {
|
|
1413
|
-
return getHostRef(this)._$$onReadyPromise$$_;
|
|
1414
|
-
}
|
|
1415
|
-
};
|
|
1416
|
-
n._$$lazyBundleId$$_ = e[0];
|
|
1417
|
-
if (!l.includes(s) && !o.get(s)) {
|
|
1418
|
-
r.push(s);
|
|
1419
|
-
o.define(s, proxyComponent(i, n, 1 /* isElementConstructor */));
|
|
1420
|
-
}
|
|
1421
|
-
}));
|
|
1422
|
-
}));
|
|
1423
|
-
if (r.length > 0) {
|
|
1424
|
-
if (w) {
|
|
1425
|
-
p.textContent += a;
|
|
1426
|
-
}
|
|
1427
|
-
{
|
|
1428
|
-
p.textContent += r.sort() + i;
|
|
1429
|
-
}
|
|
1430
|
-
if (p.innerHTML.length) {
|
|
1431
|
-
p.setAttribute("data-styles", "");
|
|
1432
|
-
const e = (n = u._$$nonce$$_) != null ? n : queryNonceMetaTagContent(c);
|
|
1433
|
-
if (e != null) {
|
|
1434
|
-
p.setAttribute("nonce", e);
|
|
1435
|
-
}
|
|
1436
|
-
d.insertBefore(p, v ? v.nextSibling : d.firstChild);
|
|
1437
|
-
}
|
|
1438
|
-
}
|
|
1439
|
-
b = false;
|
|
1440
|
-
if (m.length) {
|
|
1441
|
-
m.map((e => e.connectedCallback()));
|
|
1442
|
-
} else {
|
|
1443
|
-
{
|
|
1444
|
-
u.jmp((() => y = setTimeout(appDidLoad, 30)));
|
|
1445
|
-
}
|
|
1446
|
-
}
|
|
1447
|
-
s();
|
|
1448
|
-
};
|
|
1449
|
-
|
|
1450
|
-
var addHostEventListeners = (e, t, n, s) => {
|
|
1451
|
-
if (n) {
|
|
1452
|
-
n.map((([n, s, r]) => {
|
|
1453
|
-
const l = getHostListenerTarget(e, n);
|
|
1454
|
-
const o = hostListenerProxy(t, r);
|
|
1455
|
-
const i = hostListenerOpts(n);
|
|
1456
|
-
u.ael(l, s, o, i);
|
|
1457
|
-
(t._$$rmListeners$$_ = t._$$rmListeners$$_ || []).push((() => u.rel(l, s, o, i)));
|
|
1458
|
-
}));
|
|
1459
|
-
}
|
|
1460
|
-
};
|
|
1461
|
-
|
|
1462
|
-
var hostListenerProxy = (e, t) => n => {
|
|
1463
|
-
var s;
|
|
1464
|
-
try {
|
|
1465
|
-
{
|
|
1466
|
-
if (e._$$flags$$_ & 256 /* isListenReady */) {
|
|
1467
|
-
(s = e._$$lazyInstance$$_) == null ? void 0 : s[t](n);
|
|
1468
|
-
} else {
|
|
1469
|
-
(e._$$queuedListeners$$_ = e._$$queuedListeners$$_ || []).push([ t, n ]);
|
|
1470
|
-
}
|
|
1471
|
-
}
|
|
1472
|
-
} catch (t) {
|
|
1473
|
-
consoleError(t, e.$hostElement$);
|
|
1474
|
-
}
|
|
1475
|
-
};
|
|
1476
|
-
|
|
1477
|
-
var getHostListenerTarget = (e, t) => {
|
|
1478
|
-
if (t & 4 /* TargetDocument */) return c;
|
|
1479
|
-
return e;
|
|
1480
|
-
};
|
|
1481
|
-
|
|
1482
|
-
var hostListenerOpts = e => d ? {
|
|
1483
|
-
passive: (e & 1 /* Passive */) !== 0,
|
|
1484
|
-
capture: (e & 2 /* Capture */) !== 0
|
|
1485
|
-
} : (e & 2 /* Capture */) !== 0
|
|
1486
|
-
// src/runtime/nonce.ts
|
|
1487
|
-
;
|
|
1488
|
-
|
|
1489
|
-
var setNonce = e => u._$$nonce$$_ = e;
|
|
1490
|
-
|
|
1491
|
-
export { S as H, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
|
|
1492
|
-
//# sourceMappingURL=p-5a36af0f.js.map
|