pushfeedback 0.0.4 → 0.0.6
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/feedback-button_2.cjs.entry.js +1 -1031
- package/dist/cjs/index-df770657.js +1 -1463
- package/dist/cjs/index.cjs.js +1 -2
- package/dist/cjs/loader.cjs.js +1 -22
- package/dist/cjs/pushfeedback.cjs.js +1 -23
- package/dist/collection/components/feedback-button/feedback-button.css +47 -8
- package/dist/collection/components/feedback-button/feedback-button.js +1 -297
- package/dist/collection/components/feedback-modal/feedback-modal.js +1 -466
- package/dist/collection/index.js +1 -1
- package/dist/components/feedback-button.js +1 -92
- package/dist/components/feedback-modal.js +1 -6
- package/dist/components/feedback-modal2.js +1 -1011
- package/dist/components/index.js +1 -3
- package/dist/esm/feedback-button_2.entry.js +1 -1026
- package/dist/esm/index-0ae29483.js +1 -1436
- package/dist/esm/index.js +0 -1
- package/dist/esm/loader.js +1 -18
- package/dist/esm/polyfills/core-js.js +1 -11
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/polyfills/dom.js +1 -79
- package/dist/esm/polyfills/es5-html-element.js +1 -1
- package/dist/esm/polyfills/index.js +1 -34
- package/dist/esm/polyfills/system.js +1 -6
- package/dist/esm/pushfeedback.js +1 -18
- package/dist/index.cjs.js +1 -1
- package/dist/index.js +1 -1
- package/dist/pushfeedback/p-60079923.js +1 -2
- package/dist/pushfeedback/p-7630bdbf.entry.js +1 -0
- package/dist/pushfeedback/pushfeedback.css +1 -1
- package/dist/pushfeedback/pushfeedback.esm.js +1 -1
- package/dist/types/components/feedback-button/feedback-button.d.ts +1 -0
- package/dist/types/components.d.ts +2 -0
- package/package.json +3 -2
- package/dist/pushfeedback/p-b4e69248.entry.js +0 -1
|
@@ -1,1463 +1 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
function _interopNamespace(e) {
|
|
4
|
-
if (e && e.__esModule) return e;
|
|
5
|
-
var n = Object.create(null);
|
|
6
|
-
if (e) {
|
|
7
|
-
Object.keys(e).forEach(function (k) {
|
|
8
|
-
if (k !== 'default') {
|
|
9
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
10
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function () {
|
|
13
|
-
return e[k];
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
n['default'] = e;
|
|
20
|
-
return Object.freeze(n);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
const NAMESPACE = 'pushfeedback';
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Virtual DOM patching algorithm based on Snabbdom by
|
|
27
|
-
* Simon Friis Vindum (@paldepind)
|
|
28
|
-
* Licensed under the MIT License
|
|
29
|
-
* https://github.com/snabbdom/snabbdom/blob/master/LICENSE
|
|
30
|
-
*
|
|
31
|
-
* Modified for Stencil's renderer and slot projection
|
|
32
|
-
*/
|
|
33
|
-
let scopeId;
|
|
34
|
-
let hostTagName;
|
|
35
|
-
let isSvgMode = false;
|
|
36
|
-
let queuePending = false;
|
|
37
|
-
const createTime = (fnName, tagName = '') => {
|
|
38
|
-
{
|
|
39
|
-
return () => {
|
|
40
|
-
return;
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
const uniqueTime = (key, measureText) => {
|
|
45
|
-
{
|
|
46
|
-
return () => {
|
|
47
|
-
return;
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
|
|
52
|
-
/**
|
|
53
|
-
* Default style mode id
|
|
54
|
-
*/
|
|
55
|
-
/**
|
|
56
|
-
* Reusable empty obj/array
|
|
57
|
-
* Don't add values to these!!
|
|
58
|
-
*/
|
|
59
|
-
const EMPTY_OBJ = {};
|
|
60
|
-
/**
|
|
61
|
-
* Namespaces
|
|
62
|
-
*/
|
|
63
|
-
const SVG_NS = 'http://www.w3.org/2000/svg';
|
|
64
|
-
const HTML_NS = 'http://www.w3.org/1999/xhtml';
|
|
65
|
-
const isDef = (v) => v != null;
|
|
66
|
-
const isComplexType = (o) => {
|
|
67
|
-
// https://jsperf.com/typeof-fn-object/5
|
|
68
|
-
o = typeof o;
|
|
69
|
-
return o === 'object' || o === 'function';
|
|
70
|
-
};
|
|
71
|
-
/**
|
|
72
|
-
* Helper method for querying a `meta` tag that contains a nonce value
|
|
73
|
-
* out of a DOM's head.
|
|
74
|
-
*
|
|
75
|
-
* @param doc The DOM containing the `head` to query against
|
|
76
|
-
* @returns The content of the meta tag representing the nonce value, or `undefined` if no tag
|
|
77
|
-
* exists or the tag has no content.
|
|
78
|
-
*/
|
|
79
|
-
function queryNonceMetaTagContent(doc) {
|
|
80
|
-
var _a, _b, _c;
|
|
81
|
-
return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* Production h() function based on Preact by
|
|
85
|
-
* Jason Miller (@developit)
|
|
86
|
-
* Licensed under the MIT License
|
|
87
|
-
* https://github.com/developit/preact/blob/master/LICENSE
|
|
88
|
-
*
|
|
89
|
-
* Modified for Stencil's compiler and vdom
|
|
90
|
-
*/
|
|
91
|
-
// export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
|
|
92
|
-
// export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
|
|
93
|
-
const h = (nodeName, vnodeData, ...children) => {
|
|
94
|
-
let child = null;
|
|
95
|
-
let simple = false;
|
|
96
|
-
let lastSimple = false;
|
|
97
|
-
const vNodeChildren = [];
|
|
98
|
-
const walk = (c) => {
|
|
99
|
-
for (let i = 0; i < c.length; i++) {
|
|
100
|
-
child = c[i];
|
|
101
|
-
if (Array.isArray(child)) {
|
|
102
|
-
walk(child);
|
|
103
|
-
}
|
|
104
|
-
else if (child != null && typeof child !== 'boolean') {
|
|
105
|
-
if ((simple = typeof nodeName !== 'function' && !isComplexType(child))) {
|
|
106
|
-
child = String(child);
|
|
107
|
-
}
|
|
108
|
-
if (simple && lastSimple) {
|
|
109
|
-
// If the previous child was simple (string), we merge both
|
|
110
|
-
vNodeChildren[vNodeChildren.length - 1].$text$ += child;
|
|
111
|
-
}
|
|
112
|
-
else {
|
|
113
|
-
// Append a new vNode, if it's text, we create a text vNode
|
|
114
|
-
vNodeChildren.push(simple ? newVNode(null, child) : child);
|
|
115
|
-
}
|
|
116
|
-
lastSimple = simple;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
};
|
|
120
|
-
walk(children);
|
|
121
|
-
if (vnodeData) {
|
|
122
|
-
{
|
|
123
|
-
const classData = vnodeData.className || vnodeData.class;
|
|
124
|
-
if (classData) {
|
|
125
|
-
vnodeData.class =
|
|
126
|
-
typeof classData !== 'object'
|
|
127
|
-
? classData
|
|
128
|
-
: Object.keys(classData)
|
|
129
|
-
.filter((k) => classData[k])
|
|
130
|
-
.join(' ');
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
const vnode = newVNode(nodeName, null);
|
|
135
|
-
vnode.$attrs$ = vnodeData;
|
|
136
|
-
if (vNodeChildren.length > 0) {
|
|
137
|
-
vnode.$children$ = vNodeChildren;
|
|
138
|
-
}
|
|
139
|
-
return vnode;
|
|
140
|
-
};
|
|
141
|
-
/**
|
|
142
|
-
* A utility function for creating a virtual DOM node from a tag and some
|
|
143
|
-
* possible text content.
|
|
144
|
-
*
|
|
145
|
-
* @param tag the tag for this element
|
|
146
|
-
* @param text possible text content for the node
|
|
147
|
-
* @returns a newly-minted virtual DOM node
|
|
148
|
-
*/
|
|
149
|
-
const newVNode = (tag, text) => {
|
|
150
|
-
const vnode = {
|
|
151
|
-
$flags$: 0,
|
|
152
|
-
$tag$: tag,
|
|
153
|
-
$text$: text,
|
|
154
|
-
$elm$: null,
|
|
155
|
-
$children$: null,
|
|
156
|
-
};
|
|
157
|
-
{
|
|
158
|
-
vnode.$attrs$ = null;
|
|
159
|
-
}
|
|
160
|
-
return vnode;
|
|
161
|
-
};
|
|
162
|
-
const Host = {};
|
|
163
|
-
/**
|
|
164
|
-
* Check whether a given node is a Host node or not
|
|
165
|
-
*
|
|
166
|
-
* @param node the virtual DOM node to check
|
|
167
|
-
* @returns whether it's a Host node or not
|
|
168
|
-
*/
|
|
169
|
-
const isHost = (node) => node && node.$tag$ === Host;
|
|
170
|
-
/**
|
|
171
|
-
* Parse a new property value for a given property type.
|
|
172
|
-
*
|
|
173
|
-
* While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
|
|
174
|
-
* it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
|
|
175
|
-
* 1. `any`, the type given to `propValue` in the function signature
|
|
176
|
-
* 2. the type stored from `propType`.
|
|
177
|
-
*
|
|
178
|
-
* This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
|
|
179
|
-
*
|
|
180
|
-
* Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
|
|
181
|
-
* a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
|
|
182
|
-
* based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
|
|
183
|
-
* ```tsx
|
|
184
|
-
* <my-cmp prop-val={0}></my-cmp>
|
|
185
|
-
* ```
|
|
186
|
-
*
|
|
187
|
-
* HTML prop values on the other hand, will always a string
|
|
188
|
-
*
|
|
189
|
-
* @param propValue the new value to coerce to some type
|
|
190
|
-
* @param propType the type of the prop, expressed as a binary number
|
|
191
|
-
* @returns the parsed/coerced value
|
|
192
|
-
*/
|
|
193
|
-
const parsePropertyValue = (propValue, propType) => {
|
|
194
|
-
// ensure this value is of the correct prop type
|
|
195
|
-
if (propValue != null && !isComplexType(propValue)) {
|
|
196
|
-
if (propType & 4 /* MEMBER_FLAGS.Boolean */) {
|
|
197
|
-
// per the HTML spec, any string value means it is a boolean true value
|
|
198
|
-
// but we'll cheat here and say that the string "false" is the boolean false
|
|
199
|
-
return propValue === 'false' ? false : propValue === '' || !!propValue;
|
|
200
|
-
}
|
|
201
|
-
if (propType & 1 /* MEMBER_FLAGS.String */) {
|
|
202
|
-
// could have been passed as a number or boolean
|
|
203
|
-
// but we still want it as a string
|
|
204
|
-
return String(propValue);
|
|
205
|
-
}
|
|
206
|
-
// redundant return here for better minification
|
|
207
|
-
return propValue;
|
|
208
|
-
}
|
|
209
|
-
// not sure exactly what type we want
|
|
210
|
-
// so no need to change to a different type
|
|
211
|
-
return propValue;
|
|
212
|
-
};
|
|
213
|
-
/**
|
|
214
|
-
* Helper function to create & dispatch a custom Event on a provided target
|
|
215
|
-
* @param elm the target of the Event
|
|
216
|
-
* @param name the name to give the custom Event
|
|
217
|
-
* @param opts options for configuring a custom Event
|
|
218
|
-
* @returns the custom Event
|
|
219
|
-
*/
|
|
220
|
-
const emitEvent = (elm, name, opts) => {
|
|
221
|
-
const ev = plt.ce(name, opts);
|
|
222
|
-
elm.dispatchEvent(ev);
|
|
223
|
-
return ev;
|
|
224
|
-
};
|
|
225
|
-
const rootAppliedStyles = /*@__PURE__*/ new WeakMap();
|
|
226
|
-
const registerStyle = (scopeId, cssText, allowCS) => {
|
|
227
|
-
let style = styles.get(scopeId);
|
|
228
|
-
if (supportsConstructableStylesheets && allowCS) {
|
|
229
|
-
style = (style || new CSSStyleSheet());
|
|
230
|
-
if (typeof style === 'string') {
|
|
231
|
-
style = cssText;
|
|
232
|
-
}
|
|
233
|
-
else {
|
|
234
|
-
style.replaceSync(cssText);
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
else {
|
|
238
|
-
style = cssText;
|
|
239
|
-
}
|
|
240
|
-
styles.set(scopeId, style);
|
|
241
|
-
};
|
|
242
|
-
const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
243
|
-
var _a;
|
|
244
|
-
let scopeId = getScopeId(cmpMeta);
|
|
245
|
-
const style = styles.get(scopeId);
|
|
246
|
-
// if an element is NOT connected then getRootNode() will return the wrong root node
|
|
247
|
-
// so the fallback is to always use the document for the root node in those cases
|
|
248
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* NODE_TYPE.DocumentFragment */ ? styleContainerNode : doc;
|
|
249
|
-
if (style) {
|
|
250
|
-
if (typeof style === 'string') {
|
|
251
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
252
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
253
|
-
let styleElm;
|
|
254
|
-
if (!appliedStyles) {
|
|
255
|
-
rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
|
|
256
|
-
}
|
|
257
|
-
if (!appliedStyles.has(scopeId)) {
|
|
258
|
-
{
|
|
259
|
-
{
|
|
260
|
-
styleElm = doc.createElement('style');
|
|
261
|
-
styleElm.innerHTML = style;
|
|
262
|
-
}
|
|
263
|
-
// Apply CSP nonce to the style tag if it exists
|
|
264
|
-
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
|
265
|
-
if (nonce != null) {
|
|
266
|
-
styleElm.setAttribute('nonce', nonce);
|
|
267
|
-
}
|
|
268
|
-
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
|
|
269
|
-
}
|
|
270
|
-
if (appliedStyles) {
|
|
271
|
-
appliedStyles.add(scopeId);
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
276
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
return scopeId;
|
|
280
|
-
};
|
|
281
|
-
const attachStyles = (hostRef) => {
|
|
282
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
283
|
-
const elm = hostRef.$hostElement$;
|
|
284
|
-
const flags = cmpMeta.$flags$;
|
|
285
|
-
const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
|
|
286
|
-
const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
|
|
287
|
-
if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
|
|
288
|
-
// only required when we're NOT using native shadow dom (slot)
|
|
289
|
-
// or this browser doesn't support native shadow dom
|
|
290
|
-
// and this host element was NOT created with SSR
|
|
291
|
-
// let's pick out the inner content for slot projection
|
|
292
|
-
// create a node to represent where the original
|
|
293
|
-
// content was first placed, which is useful later on
|
|
294
|
-
// DOM WRITE!!
|
|
295
|
-
elm['s-sc'] = scopeId;
|
|
296
|
-
elm.classList.add(scopeId + '-h');
|
|
297
|
-
}
|
|
298
|
-
endAttachStyles();
|
|
299
|
-
};
|
|
300
|
-
const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
|
|
301
|
-
/**
|
|
302
|
-
* Production setAccessor() function based on Preact by
|
|
303
|
-
* Jason Miller (@developit)
|
|
304
|
-
* Licensed under the MIT License
|
|
305
|
-
* https://github.com/developit/preact/blob/master/LICENSE
|
|
306
|
-
*
|
|
307
|
-
* Modified for Stencil's compiler and vdom
|
|
308
|
-
*/
|
|
309
|
-
const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
310
|
-
if (oldValue !== newValue) {
|
|
311
|
-
let isProp = isMemberInElement(elm, memberName);
|
|
312
|
-
let ln = memberName.toLowerCase();
|
|
313
|
-
if (memberName === 'class') {
|
|
314
|
-
const classList = elm.classList;
|
|
315
|
-
const oldClasses = parseClassList(oldValue);
|
|
316
|
-
const newClasses = parseClassList(newValue);
|
|
317
|
-
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
318
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
319
|
-
}
|
|
320
|
-
else if (memberName === 'ref') {
|
|
321
|
-
// minifier will clean this up
|
|
322
|
-
if (newValue) {
|
|
323
|
-
newValue(elm);
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
else if ((!isProp ) &&
|
|
327
|
-
memberName[0] === 'o' &&
|
|
328
|
-
memberName[1] === 'n') {
|
|
329
|
-
// Event Handlers
|
|
330
|
-
// so if the member name starts with "on" and the 3rd characters is
|
|
331
|
-
// a capital letter, and it's not already a member on the element,
|
|
332
|
-
// then we're assuming it's an event listener
|
|
333
|
-
if (memberName[2] === '-') {
|
|
334
|
-
// on- prefixed events
|
|
335
|
-
// allows to be explicit about the dom event to listen without any magic
|
|
336
|
-
// under the hood:
|
|
337
|
-
// <my-cmp on-click> // listens for "click"
|
|
338
|
-
// <my-cmp on-Click> // listens for "Click"
|
|
339
|
-
// <my-cmp on-ionChange> // listens for "ionChange"
|
|
340
|
-
// <my-cmp on-EVENTS> // listens for "EVENTS"
|
|
341
|
-
memberName = memberName.slice(3);
|
|
342
|
-
}
|
|
343
|
-
else if (isMemberInElement(win, ln)) {
|
|
344
|
-
// standard event
|
|
345
|
-
// the JSX attribute could have been "onMouseOver" and the
|
|
346
|
-
// member name "onmouseover" is on the window's prototype
|
|
347
|
-
// so let's add the listener "mouseover", which is all lowercased
|
|
348
|
-
memberName = ln.slice(2);
|
|
349
|
-
}
|
|
350
|
-
else {
|
|
351
|
-
// custom event
|
|
352
|
-
// the JSX attribute could have been "onMyCustomEvent"
|
|
353
|
-
// so let's trim off the "on" prefix and lowercase the first character
|
|
354
|
-
// and add the listener "myCustomEvent"
|
|
355
|
-
// except for the first character, we keep the event name case
|
|
356
|
-
memberName = ln[2] + memberName.slice(3);
|
|
357
|
-
}
|
|
358
|
-
if (oldValue) {
|
|
359
|
-
plt.rel(elm, memberName, oldValue, false);
|
|
360
|
-
}
|
|
361
|
-
if (newValue) {
|
|
362
|
-
plt.ael(elm, memberName, newValue, false);
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
else {
|
|
366
|
-
// Set property if it exists and it's not a SVG
|
|
367
|
-
const isComplex = isComplexType(newValue);
|
|
368
|
-
if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
|
|
369
|
-
try {
|
|
370
|
-
if (!elm.tagName.includes('-')) {
|
|
371
|
-
const n = newValue == null ? '' : newValue;
|
|
372
|
-
// Workaround for Safari, moving the <input> caret when re-assigning the same valued
|
|
373
|
-
if (memberName === 'list') {
|
|
374
|
-
isProp = false;
|
|
375
|
-
}
|
|
376
|
-
else if (oldValue == null || elm[memberName] != n) {
|
|
377
|
-
elm[memberName] = n;
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
else {
|
|
381
|
-
elm[memberName] = newValue;
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
catch (e) { }
|
|
385
|
-
}
|
|
386
|
-
if (newValue == null || newValue === false) {
|
|
387
|
-
if (newValue !== false || elm.getAttribute(memberName) === '') {
|
|
388
|
-
{
|
|
389
|
-
elm.removeAttribute(memberName);
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
else if ((!isProp || flags & 4 /* VNODE_FLAGS.isHost */ || isSvg) && !isComplex) {
|
|
394
|
-
newValue = newValue === true ? '' : newValue;
|
|
395
|
-
{
|
|
396
|
-
elm.setAttribute(memberName, newValue);
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
};
|
|
402
|
-
const parseClassListRegex = /\s/;
|
|
403
|
-
const parseClassList = (value) => (!value ? [] : value.split(parseClassListRegex));
|
|
404
|
-
const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
|
|
405
|
-
// if the element passed in is a shadow root, which is a document fragment
|
|
406
|
-
// then we want to be adding attrs/props to the shadow root's "host" element
|
|
407
|
-
// if it's not a shadow root, then we add attrs/props to the same element
|
|
408
|
-
const elm = newVnode.$elm$.nodeType === 11 /* NODE_TYPE.DocumentFragment */ && newVnode.$elm$.host
|
|
409
|
-
? newVnode.$elm$.host
|
|
410
|
-
: newVnode.$elm$;
|
|
411
|
-
const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
|
|
412
|
-
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
413
|
-
{
|
|
414
|
-
// remove attributes no longer present on the vnode by setting them to undefined
|
|
415
|
-
for (memberName in oldVnodeAttrs) {
|
|
416
|
-
if (!(memberName in newVnodeAttrs)) {
|
|
417
|
-
setAccessor(elm, memberName, oldVnodeAttrs[memberName], undefined, isSvgMode, newVnode.$flags$);
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
// add new & update changed attributes
|
|
422
|
-
for (memberName in newVnodeAttrs) {
|
|
423
|
-
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
|
|
424
|
-
}
|
|
425
|
-
};
|
|
426
|
-
/**
|
|
427
|
-
* Create a DOM Node corresponding to one of the children of a given VNode.
|
|
428
|
-
*
|
|
429
|
-
* @param oldParentVNode the parent VNode from the previous render
|
|
430
|
-
* @param newParentVNode the parent VNode from the current render
|
|
431
|
-
* @param childIndex the index of the VNode, in the _new_ parent node's
|
|
432
|
-
* children, for which we will create a new DOM node
|
|
433
|
-
* @param parentElm the parent DOM node which our new node will be a child of
|
|
434
|
-
* @returns the newly created node
|
|
435
|
-
*/
|
|
436
|
-
const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
437
|
-
// tslint:disable-next-line: prefer-const
|
|
438
|
-
const newVNode = newParentVNode.$children$[childIndex];
|
|
439
|
-
let i = 0;
|
|
440
|
-
let elm;
|
|
441
|
-
let childNode;
|
|
442
|
-
if (newVNode.$text$ !== null) {
|
|
443
|
-
// create text node
|
|
444
|
-
elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
|
|
445
|
-
}
|
|
446
|
-
else {
|
|
447
|
-
if (!isSvgMode) {
|
|
448
|
-
isSvgMode = newVNode.$tag$ === 'svg';
|
|
449
|
-
}
|
|
450
|
-
// create element
|
|
451
|
-
elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$tag$)
|
|
452
|
-
);
|
|
453
|
-
if (isSvgMode && newVNode.$tag$ === 'foreignObject') {
|
|
454
|
-
isSvgMode = false;
|
|
455
|
-
}
|
|
456
|
-
// add css classes, attrs, props, listeners, etc.
|
|
457
|
-
{
|
|
458
|
-
updateElement(null, newVNode, isSvgMode);
|
|
459
|
-
}
|
|
460
|
-
if (isDef(scopeId) && elm['s-si'] !== scopeId) {
|
|
461
|
-
// if there is a scopeId and this is the initial render
|
|
462
|
-
// then let's add the scopeId as a css class
|
|
463
|
-
elm.classList.add((elm['s-si'] = scopeId));
|
|
464
|
-
}
|
|
465
|
-
if (newVNode.$children$) {
|
|
466
|
-
for (i = 0; i < newVNode.$children$.length; ++i) {
|
|
467
|
-
// create the node
|
|
468
|
-
childNode = createElm(oldParentVNode, newVNode, i);
|
|
469
|
-
// return node could have been null
|
|
470
|
-
if (childNode) {
|
|
471
|
-
// append our new node
|
|
472
|
-
elm.appendChild(childNode);
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
{
|
|
477
|
-
if (newVNode.$tag$ === 'svg') {
|
|
478
|
-
// Only reset the SVG context when we're exiting <svg> element
|
|
479
|
-
isSvgMode = false;
|
|
480
|
-
}
|
|
481
|
-
else if (elm.tagName === 'foreignObject') {
|
|
482
|
-
// Reenter SVG context when we're exiting <foreignObject> element
|
|
483
|
-
isSvgMode = true;
|
|
484
|
-
}
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
return elm;
|
|
488
|
-
};
|
|
489
|
-
/**
|
|
490
|
-
* Create DOM nodes corresponding to a list of {@link d.Vnode} objects and
|
|
491
|
-
* add them to the DOM in the appropriate place.
|
|
492
|
-
*
|
|
493
|
-
* @param parentElm the DOM node which should be used as a parent for the new
|
|
494
|
-
* DOM nodes
|
|
495
|
-
* @param before a child of the `parentElm` which the new children should be
|
|
496
|
-
* inserted before (optional)
|
|
497
|
-
* @param parentVNode the parent virtual DOM node
|
|
498
|
-
* @param vnodes the new child virtual DOM nodes to produce DOM nodes for
|
|
499
|
-
* @param startIdx the index in the child virtual DOM nodes at which to start
|
|
500
|
-
* creating DOM nodes (inclusive)
|
|
501
|
-
* @param endIdx the index in the child virtual DOM nodes at which to stop
|
|
502
|
-
* creating DOM nodes (inclusive)
|
|
503
|
-
*/
|
|
504
|
-
const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
505
|
-
let containerElm = (parentElm);
|
|
506
|
-
let childNode;
|
|
507
|
-
if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
|
|
508
|
-
containerElm = containerElm.shadowRoot;
|
|
509
|
-
}
|
|
510
|
-
for (; startIdx <= endIdx; ++startIdx) {
|
|
511
|
-
if (vnodes[startIdx]) {
|
|
512
|
-
childNode = createElm(null, parentVNode, startIdx);
|
|
513
|
-
if (childNode) {
|
|
514
|
-
vnodes[startIdx].$elm$ = childNode;
|
|
515
|
-
containerElm.insertBefore(childNode, before);
|
|
516
|
-
}
|
|
517
|
-
}
|
|
518
|
-
}
|
|
519
|
-
};
|
|
520
|
-
/**
|
|
521
|
-
* Remove the DOM elements corresponding to a list of {@link d.VNode} objects.
|
|
522
|
-
* This can be used to, for instance, clean up after a list of children which
|
|
523
|
-
* should no longer be shown.
|
|
524
|
-
*
|
|
525
|
-
* This function also handles some of Stencil's slot relocation logic.
|
|
526
|
-
*
|
|
527
|
-
* @param vnodes a list of virtual DOM nodes to remove
|
|
528
|
-
* @param startIdx the index at which to start removing nodes (inclusive)
|
|
529
|
-
* @param endIdx the index at which to stop removing nodes (inclusive)
|
|
530
|
-
* @param vnode a VNode
|
|
531
|
-
* @param elm an element
|
|
532
|
-
*/
|
|
533
|
-
const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
|
|
534
|
-
for (; startIdx <= endIdx; ++startIdx) {
|
|
535
|
-
if ((vnode = vnodes[startIdx])) {
|
|
536
|
-
elm = vnode.$elm$;
|
|
537
|
-
callNodeRefs(vnode);
|
|
538
|
-
// remove the vnode's element from the dom
|
|
539
|
-
elm.remove();
|
|
540
|
-
}
|
|
541
|
-
}
|
|
542
|
-
};
|
|
543
|
-
/**
|
|
544
|
-
* Reconcile the children of a new VNode with the children of an old VNode by
|
|
545
|
-
* traversing the two collections of children, identifying nodes that are
|
|
546
|
-
* conserved or changed, calling out to `patch` to make any necessary
|
|
547
|
-
* updates to the DOM, and rearranging DOM nodes as needed.
|
|
548
|
-
*
|
|
549
|
-
* The algorithm for reconciling children works by analyzing two 'windows' onto
|
|
550
|
-
* the two arrays of children (`oldCh` and `newCh`). We keep track of the
|
|
551
|
-
* 'windows' by storing start and end indices and references to the
|
|
552
|
-
* corresponding array entries. Initially the two 'windows' are basically equal
|
|
553
|
-
* to the entire array, but we progressively narrow the windows until there are
|
|
554
|
-
* no children left to update by doing the following:
|
|
555
|
-
*
|
|
556
|
-
* 1. Skip any `null` entries at the beginning or end of the two arrays, so
|
|
557
|
-
* that if we have an initial array like the following we'll end up dealing
|
|
558
|
-
* only with a window bounded by the highlighted elements:
|
|
559
|
-
*
|
|
560
|
-
* [null, null, VNode1 , ... , VNode2, null, null]
|
|
561
|
-
* ^^^^^^ ^^^^^^
|
|
562
|
-
*
|
|
563
|
-
* 2. Check to see if the elements at the head and tail positions are equal
|
|
564
|
-
* across the windows. This will basically detect elements which haven't
|
|
565
|
-
* been added, removed, or changed position, i.e. if you had the following
|
|
566
|
-
* VNode elements (represented as HTML):
|
|
567
|
-
*
|
|
568
|
-
* oldVNode: `<div><p><span>HEY</span></p></div>`
|
|
569
|
-
* newVNode: `<div><p><span>THERE</span></p></div>`
|
|
570
|
-
*
|
|
571
|
-
* Then when comparing the children of the `<div>` tag we check the equality
|
|
572
|
-
* of the VNodes corresponding to the `<p>` tags and, since they are the
|
|
573
|
-
* same tag in the same position, we'd be able to avoid completely
|
|
574
|
-
* re-rendering the subtree under them with a new DOM element and would just
|
|
575
|
-
* call out to `patch` to handle reconciling their children and so on.
|
|
576
|
-
*
|
|
577
|
-
* 3. Check, for both windows, to see if the element at the beginning of the
|
|
578
|
-
* window corresponds to the element at the end of the other window. This is
|
|
579
|
-
* a heuristic which will let us identify _some_ situations in which
|
|
580
|
-
* elements have changed position, for instance it _should_ detect that the
|
|
581
|
-
* children nodes themselves have not changed but merely moved in the
|
|
582
|
-
* following example:
|
|
583
|
-
*
|
|
584
|
-
* oldVNode: `<div><element-one /><element-two /></div>`
|
|
585
|
-
* newVNode: `<div><element-two /><element-one /></div>`
|
|
586
|
-
*
|
|
587
|
-
* If we find cases like this then we also need to move the concrete DOM
|
|
588
|
-
* elements corresponding to the moved children to write the re-order to the
|
|
589
|
-
* DOM.
|
|
590
|
-
*
|
|
591
|
-
* 4. Finally, if VNodes have the `key` attribute set on them we check for any
|
|
592
|
-
* nodes in the old children which have the same key as the first element in
|
|
593
|
-
* our window on the new children. If we find such a node we handle calling
|
|
594
|
-
* out to `patch`, moving relevant DOM nodes, and so on, in accordance with
|
|
595
|
-
* what we find.
|
|
596
|
-
*
|
|
597
|
-
* Finally, once we've narrowed our 'windows' to the point that either of them
|
|
598
|
-
* collapse (i.e. they have length 0) we then handle any remaining VNode
|
|
599
|
-
* insertion or deletion that needs to happen to get a DOM state that correctly
|
|
600
|
-
* reflects the new child VNodes. If, for instance, after our window on the old
|
|
601
|
-
* children has collapsed we still have more nodes on the new children that
|
|
602
|
-
* we haven't dealt with yet then we need to add them, or if the new children
|
|
603
|
-
* collapse but we still have unhandled _old_ children then we need to make
|
|
604
|
-
* sure the corresponding DOM nodes are removed.
|
|
605
|
-
*
|
|
606
|
-
* @param parentElm the node into which the parent VNode is rendered
|
|
607
|
-
* @param oldCh the old children of the parent node
|
|
608
|
-
* @param newVNode the new VNode which will replace the parent
|
|
609
|
-
* @param newCh the new children of the parent node
|
|
610
|
-
*/
|
|
611
|
-
const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
612
|
-
let oldStartIdx = 0;
|
|
613
|
-
let newStartIdx = 0;
|
|
614
|
-
let oldEndIdx = oldCh.length - 1;
|
|
615
|
-
let oldStartVnode = oldCh[0];
|
|
616
|
-
let oldEndVnode = oldCh[oldEndIdx];
|
|
617
|
-
let newEndIdx = newCh.length - 1;
|
|
618
|
-
let newStartVnode = newCh[0];
|
|
619
|
-
let newEndVnode = newCh[newEndIdx];
|
|
620
|
-
let node;
|
|
621
|
-
while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
|
|
622
|
-
if (oldStartVnode == null) {
|
|
623
|
-
// VNode might have been moved left
|
|
624
|
-
oldStartVnode = oldCh[++oldStartIdx];
|
|
625
|
-
}
|
|
626
|
-
else if (oldEndVnode == null) {
|
|
627
|
-
oldEndVnode = oldCh[--oldEndIdx];
|
|
628
|
-
}
|
|
629
|
-
else if (newStartVnode == null) {
|
|
630
|
-
newStartVnode = newCh[++newStartIdx];
|
|
631
|
-
}
|
|
632
|
-
else if (newEndVnode == null) {
|
|
633
|
-
newEndVnode = newCh[--newEndIdx];
|
|
634
|
-
}
|
|
635
|
-
else if (isSameVnode(oldStartVnode, newStartVnode)) {
|
|
636
|
-
// if the start nodes are the same then we should patch the new VNode
|
|
637
|
-
// onto the old one, and increment our `newStartIdx` and `oldStartIdx`
|
|
638
|
-
// indices to reflect that. We don't need to move any DOM Nodes around
|
|
639
|
-
// since things are matched up in order.
|
|
640
|
-
patch(oldStartVnode, newStartVnode);
|
|
641
|
-
oldStartVnode = oldCh[++oldStartIdx];
|
|
642
|
-
newStartVnode = newCh[++newStartIdx];
|
|
643
|
-
}
|
|
644
|
-
else if (isSameVnode(oldEndVnode, newEndVnode)) {
|
|
645
|
-
// likewise, if the end nodes are the same we patch new onto old and
|
|
646
|
-
// decrement our end indices, and also likewise in this case we don't
|
|
647
|
-
// need to move any DOM Nodes.
|
|
648
|
-
patch(oldEndVnode, newEndVnode);
|
|
649
|
-
oldEndVnode = oldCh[--oldEndIdx];
|
|
650
|
-
newEndVnode = newCh[--newEndIdx];
|
|
651
|
-
}
|
|
652
|
-
else if (isSameVnode(oldStartVnode, newEndVnode)) {
|
|
653
|
-
patch(oldStartVnode, newEndVnode);
|
|
654
|
-
// We need to move the element for `oldStartVnode` into a position which
|
|
655
|
-
// will be appropriate for `newEndVnode`. For this we can use
|
|
656
|
-
// `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
|
|
657
|
-
// sibling for `oldEndVnode.$elm$` then we want to move the DOM node for
|
|
658
|
-
// `oldStartVnode` between `oldEndVnode` and it's sibling, like so:
|
|
659
|
-
//
|
|
660
|
-
// <old-start-node />
|
|
661
|
-
// <some-intervening-node />
|
|
662
|
-
// <old-end-node />
|
|
663
|
-
// <!-- -> <-- `oldStartVnode.$elm$` should be inserted here
|
|
664
|
-
// <next-sibling />
|
|
665
|
-
//
|
|
666
|
-
// If instead `oldEndVnode.$elm$` has no sibling then we just want to put
|
|
667
|
-
// the node for `oldStartVnode` at the end of the children of
|
|
668
|
-
// `parentElm`. Luckily, `Node.nextSibling` will return `null` if there
|
|
669
|
-
// aren't any siblings, and passing `null` to `Node.insertBefore` will
|
|
670
|
-
// append it to the children of the parent element.
|
|
671
|
-
parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
|
|
672
|
-
oldStartVnode = oldCh[++oldStartIdx];
|
|
673
|
-
newEndVnode = newCh[--newEndIdx];
|
|
674
|
-
}
|
|
675
|
-
else if (isSameVnode(oldEndVnode, newStartVnode)) {
|
|
676
|
-
patch(oldEndVnode, newStartVnode);
|
|
677
|
-
// We've already checked above if `oldStartVnode` and `newStartVnode` are
|
|
678
|
-
// the same node, so since we're here we know that they are not. Thus we
|
|
679
|
-
// can move the element for `oldEndVnode` _before_ the element for
|
|
680
|
-
// `oldStartVnode`, leaving `oldStartVnode` to be reconciled in the
|
|
681
|
-
// future.
|
|
682
|
-
parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
|
|
683
|
-
oldEndVnode = oldCh[--oldEndIdx];
|
|
684
|
-
newStartVnode = newCh[++newStartIdx];
|
|
685
|
-
}
|
|
686
|
-
else {
|
|
687
|
-
{
|
|
688
|
-
// We either didn't find an element in the old children that matches
|
|
689
|
-
// the key of the first new child OR the build is not using `key`
|
|
690
|
-
// attributes at all. In either case we need to create a new element
|
|
691
|
-
// for the new node.
|
|
692
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx);
|
|
693
|
-
newStartVnode = newCh[++newStartIdx];
|
|
694
|
-
}
|
|
695
|
-
if (node) {
|
|
696
|
-
// if we created a new node then handle inserting it to the DOM
|
|
697
|
-
{
|
|
698
|
-
oldStartVnode.$elm$.parentNode.insertBefore(node, oldStartVnode.$elm$);
|
|
699
|
-
}
|
|
700
|
-
}
|
|
701
|
-
}
|
|
702
|
-
}
|
|
703
|
-
if (oldStartIdx > oldEndIdx) {
|
|
704
|
-
// we have some more new nodes to add which don't match up with old nodes
|
|
705
|
-
addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
|
|
706
|
-
}
|
|
707
|
-
else if (newStartIdx > newEndIdx) {
|
|
708
|
-
// there are nodes in the `oldCh` array which no longer correspond to nodes
|
|
709
|
-
// in the new array, so lets remove them (which entails cleaning up the
|
|
710
|
-
// relevant DOM nodes)
|
|
711
|
-
removeVnodes(oldCh, oldStartIdx, oldEndIdx);
|
|
712
|
-
}
|
|
713
|
-
};
|
|
714
|
-
/**
|
|
715
|
-
* Compare two VNodes to determine if they are the same
|
|
716
|
-
*
|
|
717
|
-
* **NB**: This function is an equality _heuristic_ based on the available
|
|
718
|
-
* information set on the two VNodes and can be misleading under certain
|
|
719
|
-
* circumstances. In particular, if the two nodes do not have `key` attrs
|
|
720
|
-
* (available under `$key$` on VNodes) then the function falls back on merely
|
|
721
|
-
* checking that they have the same tag.
|
|
722
|
-
*
|
|
723
|
-
* So, in other words, if `key` attrs are not set on VNodes which may be
|
|
724
|
-
* changing order within a `children` array or something along those lines then
|
|
725
|
-
* we could obtain a false negative and then have to do needless re-rendering
|
|
726
|
-
* (i.e. we'd say two VNodes aren't equal when in fact they should be).
|
|
727
|
-
*
|
|
728
|
-
* @param leftVNode the first VNode to check
|
|
729
|
-
* @param rightVNode the second VNode to check
|
|
730
|
-
* @returns whether they're equal or not
|
|
731
|
-
*/
|
|
732
|
-
const isSameVnode = (leftVNode, rightVNode) => {
|
|
733
|
-
// compare if two vnode to see if they're "technically" the same
|
|
734
|
-
// need to have the same element tag, and same key to be the same
|
|
735
|
-
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
736
|
-
return true;
|
|
737
|
-
}
|
|
738
|
-
return false;
|
|
739
|
-
};
|
|
740
|
-
/**
|
|
741
|
-
* Handle reconciling an outdated VNode with a new one which corresponds to
|
|
742
|
-
* it. This function handles flushing updates to the DOM and reconciling the
|
|
743
|
-
* children of the two nodes (if any).
|
|
744
|
-
*
|
|
745
|
-
* @param oldVNode an old VNode whose DOM element and children we want to update
|
|
746
|
-
* @param newVNode a new VNode representing an updated version of the old one
|
|
747
|
-
*/
|
|
748
|
-
const patch = (oldVNode, newVNode) => {
|
|
749
|
-
const elm = (newVNode.$elm$ = oldVNode.$elm$);
|
|
750
|
-
const oldChildren = oldVNode.$children$;
|
|
751
|
-
const newChildren = newVNode.$children$;
|
|
752
|
-
const tag = newVNode.$tag$;
|
|
753
|
-
const text = newVNode.$text$;
|
|
754
|
-
if (text === null) {
|
|
755
|
-
{
|
|
756
|
-
// test if we're rendering an svg element, or still rendering nodes inside of one
|
|
757
|
-
// only add this to the when the compiler sees we're using an svg somewhere
|
|
758
|
-
isSvgMode = tag === 'svg' ? true : tag === 'foreignObject' ? false : isSvgMode;
|
|
759
|
-
}
|
|
760
|
-
{
|
|
761
|
-
if (tag === 'slot')
|
|
762
|
-
;
|
|
763
|
-
else {
|
|
764
|
-
// either this is the first render of an element OR it's an update
|
|
765
|
-
// AND we already know it's possible it could have changed
|
|
766
|
-
// this updates the element's css classes, attrs, props, listeners, etc.
|
|
767
|
-
updateElement(oldVNode, newVNode, isSvgMode);
|
|
768
|
-
}
|
|
769
|
-
}
|
|
770
|
-
if (oldChildren !== null && newChildren !== null) {
|
|
771
|
-
// looks like there's child vnodes for both the old and new vnodes
|
|
772
|
-
// so we need to call `updateChildren` to reconcile them
|
|
773
|
-
updateChildren(elm, oldChildren, newVNode, newChildren);
|
|
774
|
-
}
|
|
775
|
-
else if (newChildren !== null) {
|
|
776
|
-
// no old child vnodes, but there are new child vnodes to add
|
|
777
|
-
if (oldVNode.$text$ !== null) {
|
|
778
|
-
// the old vnode was text, so be sure to clear it out
|
|
779
|
-
elm.textContent = '';
|
|
780
|
-
}
|
|
781
|
-
// add the new vnode children
|
|
782
|
-
addVnodes(elm, null, newVNode, newChildren, 0, newChildren.length - 1);
|
|
783
|
-
}
|
|
784
|
-
else if (oldChildren !== null) {
|
|
785
|
-
// no new child vnodes, but there are old child vnodes to remove
|
|
786
|
-
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
787
|
-
}
|
|
788
|
-
if (isSvgMode && tag === 'svg') {
|
|
789
|
-
isSvgMode = false;
|
|
790
|
-
}
|
|
791
|
-
}
|
|
792
|
-
else if (oldVNode.$text$ !== text) {
|
|
793
|
-
// update the text content for the text only vnode
|
|
794
|
-
// and also only if the text is different than before
|
|
795
|
-
elm.data = text;
|
|
796
|
-
}
|
|
797
|
-
};
|
|
798
|
-
const callNodeRefs = (vNode) => {
|
|
799
|
-
{
|
|
800
|
-
vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
|
|
801
|
-
vNode.$children$ && vNode.$children$.map(callNodeRefs);
|
|
802
|
-
}
|
|
803
|
-
};
|
|
804
|
-
/**
|
|
805
|
-
* The main entry point for Stencil's virtual DOM-based rendering engine
|
|
806
|
-
*
|
|
807
|
-
* Given a {@link d.HostRef} container and some virtual DOM nodes, this
|
|
808
|
-
* function will handle creating a virtual DOM tree with a single root, patching
|
|
809
|
-
* the current virtual DOM tree onto an old one (if any), dealing with slot
|
|
810
|
-
* relocation, and reflecting attributes.
|
|
811
|
-
*
|
|
812
|
-
* @param hostRef data needed to root and render the virtual DOM tree, such as
|
|
813
|
-
* the DOM node into which it should be rendered.
|
|
814
|
-
* @param renderFnResults the virtual DOM nodes to be rendered
|
|
815
|
-
*/
|
|
816
|
-
const renderVdom = (hostRef, renderFnResults) => {
|
|
817
|
-
const hostElm = hostRef.$hostElement$;
|
|
818
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
819
|
-
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
820
|
-
const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
|
|
821
|
-
hostTagName = hostElm.tagName;
|
|
822
|
-
if (cmpMeta.$attrsToReflect$) {
|
|
823
|
-
rootVnode.$attrs$ = rootVnode.$attrs$ || {};
|
|
824
|
-
cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
|
|
825
|
-
}
|
|
826
|
-
rootVnode.$tag$ = null;
|
|
827
|
-
rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
|
|
828
|
-
hostRef.$vnode$ = rootVnode;
|
|
829
|
-
rootVnode.$elm$ = oldVNode.$elm$ = (hostElm.shadowRoot || hostElm );
|
|
830
|
-
{
|
|
831
|
-
scopeId = hostElm['s-sc'];
|
|
832
|
-
}
|
|
833
|
-
// synchronous patch
|
|
834
|
-
patch(oldVNode, rootVnode);
|
|
835
|
-
};
|
|
836
|
-
const attachToAncestor = (hostRef, ancestorComponent) => {
|
|
837
|
-
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
|
|
838
|
-
ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
|
|
839
|
-
}
|
|
840
|
-
};
|
|
841
|
-
const scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
842
|
-
{
|
|
843
|
-
hostRef.$flags$ |= 16 /* HOST_FLAGS.isQueuedForUpdate */;
|
|
844
|
-
}
|
|
845
|
-
if (hostRef.$flags$ & 4 /* HOST_FLAGS.isWaitingForChildren */) {
|
|
846
|
-
hostRef.$flags$ |= 512 /* HOST_FLAGS.needsRerender */;
|
|
847
|
-
return;
|
|
848
|
-
}
|
|
849
|
-
attachToAncestor(hostRef, hostRef.$ancestorComponent$);
|
|
850
|
-
// there is no ancestor component or the ancestor component
|
|
851
|
-
// has already fired off its lifecycle update then
|
|
852
|
-
// fire off the initial update
|
|
853
|
-
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
854
|
-
return writeTask(dispatch) ;
|
|
855
|
-
};
|
|
856
|
-
const dispatchHooks = (hostRef, isInitialLoad) => {
|
|
857
|
-
const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
|
|
858
|
-
const instance = hostRef.$lazyInstance$ ;
|
|
859
|
-
let promise;
|
|
860
|
-
if (isInitialLoad) {
|
|
861
|
-
{
|
|
862
|
-
promise = safeCall(instance, 'componentWillLoad');
|
|
863
|
-
}
|
|
864
|
-
}
|
|
865
|
-
endSchedule();
|
|
866
|
-
return then(promise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
867
|
-
};
|
|
868
|
-
const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
869
|
-
// updateComponent
|
|
870
|
-
const elm = hostRef.$hostElement$;
|
|
871
|
-
const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
|
|
872
|
-
const rc = elm['s-rc'];
|
|
873
|
-
if (isInitialLoad) {
|
|
874
|
-
// DOM WRITE!
|
|
875
|
-
attachStyles(hostRef);
|
|
876
|
-
}
|
|
877
|
-
const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
|
|
878
|
-
{
|
|
879
|
-
callRender(hostRef, instance);
|
|
880
|
-
}
|
|
881
|
-
if (rc) {
|
|
882
|
-
// ok, so turns out there are some child host elements
|
|
883
|
-
// waiting on this parent element to load
|
|
884
|
-
// let's fire off all update callbacks waiting
|
|
885
|
-
rc.map((cb) => cb());
|
|
886
|
-
elm['s-rc'] = undefined;
|
|
887
|
-
}
|
|
888
|
-
endRender();
|
|
889
|
-
endUpdate();
|
|
890
|
-
{
|
|
891
|
-
const childrenPromises = elm['s-p'];
|
|
892
|
-
const postUpdate = () => postUpdateComponent(hostRef);
|
|
893
|
-
if (childrenPromises.length === 0) {
|
|
894
|
-
postUpdate();
|
|
895
|
-
}
|
|
896
|
-
else {
|
|
897
|
-
Promise.all(childrenPromises).then(postUpdate);
|
|
898
|
-
hostRef.$flags$ |= 4 /* HOST_FLAGS.isWaitingForChildren */;
|
|
899
|
-
childrenPromises.length = 0;
|
|
900
|
-
}
|
|
901
|
-
}
|
|
902
|
-
};
|
|
903
|
-
const callRender = (hostRef, instance, elm) => {
|
|
904
|
-
try {
|
|
905
|
-
instance = instance.render() ;
|
|
906
|
-
{
|
|
907
|
-
hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
|
|
908
|
-
}
|
|
909
|
-
{
|
|
910
|
-
hostRef.$flags$ |= 2 /* HOST_FLAGS.hasRendered */;
|
|
911
|
-
}
|
|
912
|
-
{
|
|
913
|
-
{
|
|
914
|
-
// looks like we've got child nodes to render into this host element
|
|
915
|
-
// or we need to update the css class/attrs on the host element
|
|
916
|
-
// DOM WRITE!
|
|
917
|
-
{
|
|
918
|
-
renderVdom(hostRef, instance);
|
|
919
|
-
}
|
|
920
|
-
}
|
|
921
|
-
}
|
|
922
|
-
}
|
|
923
|
-
catch (e) {
|
|
924
|
-
consoleError(e, hostRef.$hostElement$);
|
|
925
|
-
}
|
|
926
|
-
return null;
|
|
927
|
-
};
|
|
928
|
-
const postUpdateComponent = (hostRef) => {
|
|
929
|
-
const tagName = hostRef.$cmpMeta$.$tagName$;
|
|
930
|
-
const elm = hostRef.$hostElement$;
|
|
931
|
-
const endPostUpdate = createTime('postUpdate', tagName);
|
|
932
|
-
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
933
|
-
if (!(hostRef.$flags$ & 64 /* HOST_FLAGS.hasLoadedComponent */)) {
|
|
934
|
-
hostRef.$flags$ |= 64 /* HOST_FLAGS.hasLoadedComponent */;
|
|
935
|
-
{
|
|
936
|
-
// DOM WRITE!
|
|
937
|
-
addHydratedFlag(elm);
|
|
938
|
-
}
|
|
939
|
-
endPostUpdate();
|
|
940
|
-
{
|
|
941
|
-
hostRef.$onReadyResolve$(elm);
|
|
942
|
-
if (!ancestorComponent) {
|
|
943
|
-
appDidLoad();
|
|
944
|
-
}
|
|
945
|
-
}
|
|
946
|
-
}
|
|
947
|
-
else {
|
|
948
|
-
endPostUpdate();
|
|
949
|
-
}
|
|
950
|
-
// load events fire from bottom to top
|
|
951
|
-
// the deepest elements load first then bubbles up
|
|
952
|
-
{
|
|
953
|
-
if (hostRef.$onRenderResolve$) {
|
|
954
|
-
hostRef.$onRenderResolve$();
|
|
955
|
-
hostRef.$onRenderResolve$ = undefined;
|
|
956
|
-
}
|
|
957
|
-
if (hostRef.$flags$ & 512 /* HOST_FLAGS.needsRerender */) {
|
|
958
|
-
nextTick(() => scheduleUpdate(hostRef, false));
|
|
959
|
-
}
|
|
960
|
-
hostRef.$flags$ &= ~(4 /* HOST_FLAGS.isWaitingForChildren */ | 512 /* HOST_FLAGS.needsRerender */);
|
|
961
|
-
}
|
|
962
|
-
// ( •_•)
|
|
963
|
-
// ( •_•)>⌐■-■
|
|
964
|
-
// (⌐■_■)
|
|
965
|
-
};
|
|
966
|
-
const appDidLoad = (who) => {
|
|
967
|
-
// on appload
|
|
968
|
-
// we have finish the first big initial render
|
|
969
|
-
{
|
|
970
|
-
addHydratedFlag(doc.documentElement);
|
|
971
|
-
}
|
|
972
|
-
nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
|
|
973
|
-
};
|
|
974
|
-
const safeCall = (instance, method, arg) => {
|
|
975
|
-
if (instance && instance[method]) {
|
|
976
|
-
try {
|
|
977
|
-
return instance[method](arg);
|
|
978
|
-
}
|
|
979
|
-
catch (e) {
|
|
980
|
-
consoleError(e);
|
|
981
|
-
}
|
|
982
|
-
}
|
|
983
|
-
return undefined;
|
|
984
|
-
};
|
|
985
|
-
const then = (promise, thenFn) => {
|
|
986
|
-
return promise && promise.then ? promise.then(thenFn) : thenFn();
|
|
987
|
-
};
|
|
988
|
-
const addHydratedFlag = (elm) => elm.classList.add('hydrated')
|
|
989
|
-
;
|
|
990
|
-
const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
991
|
-
const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
992
|
-
// check our new property value against our internal value
|
|
993
|
-
const hostRef = getHostRef(ref);
|
|
994
|
-
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
995
|
-
const flags = hostRef.$flags$;
|
|
996
|
-
const instance = hostRef.$lazyInstance$ ;
|
|
997
|
-
newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
|
|
998
|
-
// explicitly check for NaN on both sides, as `NaN === NaN` is always false
|
|
999
|
-
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
|
1000
|
-
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
1001
|
-
if ((!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) || oldVal === undefined) && didValueChange) {
|
|
1002
|
-
// gadzooks! the property's value has changed!!
|
|
1003
|
-
// set our new value!
|
|
1004
|
-
hostRef.$instanceValues$.set(propName, newVal);
|
|
1005
|
-
if (instance) {
|
|
1006
|
-
if ((flags & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
|
|
1007
|
-
// looks like this value actually changed, so we've got work to do!
|
|
1008
|
-
// but only if we've already rendered, otherwise just chill out
|
|
1009
|
-
// queue that we need to do an update, but don't worry about queuing
|
|
1010
|
-
// up millions cuz this function ensures it only runs once
|
|
1011
|
-
scheduleUpdate(hostRef, false);
|
|
1012
|
-
}
|
|
1013
|
-
}
|
|
1014
|
-
}
|
|
1015
|
-
};
|
|
1016
|
-
/**
|
|
1017
|
-
* Attach a series of runtime constructs to a compiled Stencil component
|
|
1018
|
-
* constructor, including getters and setters for the `@Prop` and `@State`
|
|
1019
|
-
* decorators, callbacks for when attributes change, and so on.
|
|
1020
|
-
*
|
|
1021
|
-
* @param Cstr the constructor for a component that we need to process
|
|
1022
|
-
* @param cmpMeta metadata collected previously about the component
|
|
1023
|
-
* @param flags a number used to store a series of bit flags
|
|
1024
|
-
* @returns a reference to the same constructor passed in (but now mutated)
|
|
1025
|
-
*/
|
|
1026
|
-
const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
1027
|
-
if (cmpMeta.$members$) {
|
|
1028
|
-
// It's better to have a const than two Object.entries()
|
|
1029
|
-
const members = Object.entries(cmpMeta.$members$);
|
|
1030
|
-
const prototype = Cstr.prototype;
|
|
1031
|
-
members.map(([memberName, [memberFlags]]) => {
|
|
1032
|
-
if ((memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
|
|
1033
|
-
((flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
|
|
1034
|
-
// proxyComponent - prop
|
|
1035
|
-
Object.defineProperty(prototype, memberName, {
|
|
1036
|
-
get() {
|
|
1037
|
-
// proxyComponent, get value
|
|
1038
|
-
return getValue(this, memberName);
|
|
1039
|
-
},
|
|
1040
|
-
set(newValue) {
|
|
1041
|
-
// proxyComponent, set value
|
|
1042
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
1043
|
-
},
|
|
1044
|
-
configurable: true,
|
|
1045
|
-
enumerable: true,
|
|
1046
|
-
});
|
|
1047
|
-
}
|
|
1048
|
-
});
|
|
1049
|
-
if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
|
|
1050
|
-
const attrNameToPropName = new Map();
|
|
1051
|
-
prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
|
|
1052
|
-
plt.jmp(() => {
|
|
1053
|
-
const propName = attrNameToPropName.get(attrName);
|
|
1054
|
-
// In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
|
|
1055
|
-
// in the case where an attribute was set inline.
|
|
1056
|
-
// ```html
|
|
1057
|
-
// <my-component some-attribute="some-value"></my-component>
|
|
1058
|
-
// ```
|
|
1059
|
-
//
|
|
1060
|
-
// There is an edge case where a developer sets the attribute inline on a custom element and then
|
|
1061
|
-
// programmatically changes it before it has been upgraded as shown below:
|
|
1062
|
-
//
|
|
1063
|
-
// ```html
|
|
1064
|
-
// <!-- this component has _not_ been upgraded yet -->
|
|
1065
|
-
// <my-component id="test" some-attribute="some-value"></my-component>
|
|
1066
|
-
// <script>
|
|
1067
|
-
// // grab non-upgraded component
|
|
1068
|
-
// el = document.querySelector("#test");
|
|
1069
|
-
// el.someAttribute = "another-value";
|
|
1070
|
-
// // upgrade component
|
|
1071
|
-
// customElements.define('my-component', MyComponent);
|
|
1072
|
-
// </script>
|
|
1073
|
-
// ```
|
|
1074
|
-
// In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
|
|
1075
|
-
// will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
|
|
1076
|
-
// to the value that was set inline i.e. "some-value" from above example. When
|
|
1077
|
-
// the connectedCallback attempts to unshadow it will use "some-value" as the initial value rather than "another-value"
|
|
1078
|
-
//
|
|
1079
|
-
// The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
|
|
1080
|
-
// by connectedCallback as this attributeChangedCallback will not fire.
|
|
1081
|
-
//
|
|
1082
|
-
// https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
|
|
1083
|
-
//
|
|
1084
|
-
// TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
|
|
1085
|
-
// properties here given that this goes against best practices outlined here
|
|
1086
|
-
// https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
|
|
1087
|
-
if (this.hasOwnProperty(propName)) {
|
|
1088
|
-
newValue = this[propName];
|
|
1089
|
-
delete this[propName];
|
|
1090
|
-
}
|
|
1091
|
-
else if (prototype.hasOwnProperty(propName) &&
|
|
1092
|
-
typeof this[propName] === 'number' &&
|
|
1093
|
-
this[propName] == newValue) {
|
|
1094
|
-
// if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
|
|
1095
|
-
// APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
|
|
1096
|
-
// `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
|
|
1097
|
-
return;
|
|
1098
|
-
}
|
|
1099
|
-
this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
|
|
1100
|
-
});
|
|
1101
|
-
};
|
|
1102
|
-
// create an array of attributes to observe
|
|
1103
|
-
// and also create a map of html attribute name to js property name
|
|
1104
|
-
Cstr.observedAttributes = members
|
|
1105
|
-
.filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */) // filter to only keep props that should match attributes
|
|
1106
|
-
.map(([propName, m]) => {
|
|
1107
|
-
const attrName = m[1] || propName;
|
|
1108
|
-
attrNameToPropName.set(attrName, propName);
|
|
1109
|
-
if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
|
|
1110
|
-
cmpMeta.$attrsToReflect$.push([propName, attrName]);
|
|
1111
|
-
}
|
|
1112
|
-
return attrName;
|
|
1113
|
-
});
|
|
1114
|
-
}
|
|
1115
|
-
}
|
|
1116
|
-
return Cstr;
|
|
1117
|
-
};
|
|
1118
|
-
const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
|
|
1119
|
-
// initializeComponent
|
|
1120
|
-
if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
|
|
1121
|
-
{
|
|
1122
|
-
// we haven't initialized this element yet
|
|
1123
|
-
hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
|
|
1124
|
-
// lazy loaded components
|
|
1125
|
-
// request the component's implementation to be
|
|
1126
|
-
// wired up with the host element
|
|
1127
|
-
Cstr = loadModule(cmpMeta);
|
|
1128
|
-
if (Cstr.then) {
|
|
1129
|
-
// Await creates a micro-task avoid if possible
|
|
1130
|
-
const endLoad = uniqueTime();
|
|
1131
|
-
Cstr = await Cstr;
|
|
1132
|
-
endLoad();
|
|
1133
|
-
}
|
|
1134
|
-
if (!Cstr.isProxied) {
|
|
1135
|
-
proxyComponent(Cstr, cmpMeta, 2 /* PROXY_FLAGS.proxyState */);
|
|
1136
|
-
Cstr.isProxied = true;
|
|
1137
|
-
}
|
|
1138
|
-
const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
|
|
1139
|
-
// ok, time to construct the instance
|
|
1140
|
-
// but let's keep track of when we start and stop
|
|
1141
|
-
// so that the getters/setters don't incorrectly step on data
|
|
1142
|
-
{
|
|
1143
|
-
hostRef.$flags$ |= 8 /* HOST_FLAGS.isConstructingInstance */;
|
|
1144
|
-
}
|
|
1145
|
-
// construct the lazy-loaded component implementation
|
|
1146
|
-
// passing the hostRef is very important during
|
|
1147
|
-
// construction in order to directly wire together the
|
|
1148
|
-
// host element and the lazy-loaded instance
|
|
1149
|
-
try {
|
|
1150
|
-
new Cstr(hostRef);
|
|
1151
|
-
}
|
|
1152
|
-
catch (e) {
|
|
1153
|
-
consoleError(e);
|
|
1154
|
-
}
|
|
1155
|
-
{
|
|
1156
|
-
hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;
|
|
1157
|
-
}
|
|
1158
|
-
endNewInstance();
|
|
1159
|
-
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1160
|
-
}
|
|
1161
|
-
if (Cstr.style) {
|
|
1162
|
-
// this component has styles but we haven't registered them yet
|
|
1163
|
-
let style = Cstr.style;
|
|
1164
|
-
const scopeId = getScopeId(cmpMeta);
|
|
1165
|
-
if (!styles.has(scopeId)) {
|
|
1166
|
-
const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
|
|
1167
|
-
registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */));
|
|
1168
|
-
endRegisterStyles();
|
|
1169
|
-
}
|
|
1170
|
-
}
|
|
1171
|
-
}
|
|
1172
|
-
// we've successfully created a lazy instance
|
|
1173
|
-
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1174
|
-
const schedule = () => scheduleUpdate(hostRef, true);
|
|
1175
|
-
if (ancestorComponent && ancestorComponent['s-rc']) {
|
|
1176
|
-
// this is the initial load and this component it has an ancestor component
|
|
1177
|
-
// but the ancestor component has NOT fired its will update lifecycle yet
|
|
1178
|
-
// so let's just cool our jets and wait for the ancestor to continue first
|
|
1179
|
-
// this will get fired off when the ancestor component
|
|
1180
|
-
// finally gets around to rendering its lazy self
|
|
1181
|
-
// fire off the initial update
|
|
1182
|
-
ancestorComponent['s-rc'].push(schedule);
|
|
1183
|
-
}
|
|
1184
|
-
else {
|
|
1185
|
-
schedule();
|
|
1186
|
-
}
|
|
1187
|
-
};
|
|
1188
|
-
const fireConnectedCallback = (instance) => {
|
|
1189
|
-
{
|
|
1190
|
-
safeCall(instance, 'connectedCallback');
|
|
1191
|
-
}
|
|
1192
|
-
};
|
|
1193
|
-
const connectedCallback = (elm) => {
|
|
1194
|
-
if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
|
|
1195
|
-
const hostRef = getHostRef(elm);
|
|
1196
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
1197
|
-
const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
|
|
1198
|
-
if (!(hostRef.$flags$ & 1 /* HOST_FLAGS.hasConnected */)) {
|
|
1199
|
-
// first time this component has connected
|
|
1200
|
-
hostRef.$flags$ |= 1 /* HOST_FLAGS.hasConnected */;
|
|
1201
|
-
{
|
|
1202
|
-
// find the first ancestor component (if there is one) and register
|
|
1203
|
-
// this component as one of the actively loading child components for its ancestor
|
|
1204
|
-
let ancestorComponent = elm;
|
|
1205
|
-
while ((ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host)) {
|
|
1206
|
-
// climb up the ancestors looking for the first
|
|
1207
|
-
// component that hasn't finished its lifecycle update yet
|
|
1208
|
-
if (ancestorComponent['s-p']) {
|
|
1209
|
-
// we found this components first ancestor component
|
|
1210
|
-
// keep a reference to this component's ancestor component
|
|
1211
|
-
attachToAncestor(hostRef, (hostRef.$ancestorComponent$ = ancestorComponent));
|
|
1212
|
-
break;
|
|
1213
|
-
}
|
|
1214
|
-
}
|
|
1215
|
-
}
|
|
1216
|
-
// Lazy properties
|
|
1217
|
-
// https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
|
|
1218
|
-
if (cmpMeta.$members$) {
|
|
1219
|
-
Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
|
|
1220
|
-
if (memberFlags & 31 /* MEMBER_FLAGS.Prop */ && elm.hasOwnProperty(memberName)) {
|
|
1221
|
-
const value = elm[memberName];
|
|
1222
|
-
delete elm[memberName];
|
|
1223
|
-
elm[memberName] = value;
|
|
1224
|
-
}
|
|
1225
|
-
});
|
|
1226
|
-
}
|
|
1227
|
-
{
|
|
1228
|
-
initializeComponent(elm, hostRef, cmpMeta);
|
|
1229
|
-
}
|
|
1230
|
-
}
|
|
1231
|
-
else {
|
|
1232
|
-
// fire off connectedCallback() on component instance
|
|
1233
|
-
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1234
|
-
}
|
|
1235
|
-
endConnected();
|
|
1236
|
-
}
|
|
1237
|
-
};
|
|
1238
|
-
const disconnectedCallback = (elm) => {
|
|
1239
|
-
if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
|
|
1240
|
-
const hostRef = getHostRef(elm);
|
|
1241
|
-
const instance = hostRef.$lazyInstance$ ;
|
|
1242
|
-
{
|
|
1243
|
-
safeCall(instance, 'disconnectedCallback');
|
|
1244
|
-
}
|
|
1245
|
-
}
|
|
1246
|
-
};
|
|
1247
|
-
const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
1248
|
-
var _a;
|
|
1249
|
-
const endBootstrap = createTime();
|
|
1250
|
-
const cmpTags = [];
|
|
1251
|
-
const exclude = options.exclude || [];
|
|
1252
|
-
const customElements = win.customElements;
|
|
1253
|
-
const head = doc.head;
|
|
1254
|
-
const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
|
|
1255
|
-
const visibilityStyle = /*@__PURE__*/ doc.createElement('style');
|
|
1256
|
-
const deferredConnectedCallbacks = [];
|
|
1257
|
-
let appLoadFallback;
|
|
1258
|
-
let isBootstrapping = true;
|
|
1259
|
-
Object.assign(plt, options);
|
|
1260
|
-
plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
|
|
1261
|
-
lazyBundles.map((lazyBundle) => {
|
|
1262
|
-
lazyBundle[1].map((compactMeta) => {
|
|
1263
|
-
const cmpMeta = {
|
|
1264
|
-
$flags$: compactMeta[0],
|
|
1265
|
-
$tagName$: compactMeta[1],
|
|
1266
|
-
$members$: compactMeta[2],
|
|
1267
|
-
$listeners$: compactMeta[3],
|
|
1268
|
-
};
|
|
1269
|
-
{
|
|
1270
|
-
cmpMeta.$members$ = compactMeta[2];
|
|
1271
|
-
}
|
|
1272
|
-
{
|
|
1273
|
-
cmpMeta.$attrsToReflect$ = [];
|
|
1274
|
-
}
|
|
1275
|
-
const tagName = cmpMeta.$tagName$;
|
|
1276
|
-
const HostElement = class extends HTMLElement {
|
|
1277
|
-
// StencilLazyHost
|
|
1278
|
-
constructor(self) {
|
|
1279
|
-
// @ts-ignore
|
|
1280
|
-
super(self);
|
|
1281
|
-
self = this;
|
|
1282
|
-
registerHost(self, cmpMeta);
|
|
1283
|
-
if (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
|
|
1284
|
-
// this component is using shadow dom
|
|
1285
|
-
// and this browser supports shadow dom
|
|
1286
|
-
// add the read-only property "shadowRoot" to the host element
|
|
1287
|
-
// adding the shadow root build conditionals to minimize runtime
|
|
1288
|
-
{
|
|
1289
|
-
{
|
|
1290
|
-
self.attachShadow({ mode: 'open' });
|
|
1291
|
-
}
|
|
1292
|
-
}
|
|
1293
|
-
}
|
|
1294
|
-
}
|
|
1295
|
-
connectedCallback() {
|
|
1296
|
-
if (appLoadFallback) {
|
|
1297
|
-
clearTimeout(appLoadFallback);
|
|
1298
|
-
appLoadFallback = null;
|
|
1299
|
-
}
|
|
1300
|
-
if (isBootstrapping) {
|
|
1301
|
-
// connectedCallback will be processed once all components have been registered
|
|
1302
|
-
deferredConnectedCallbacks.push(this);
|
|
1303
|
-
}
|
|
1304
|
-
else {
|
|
1305
|
-
plt.jmp(() => connectedCallback(this));
|
|
1306
|
-
}
|
|
1307
|
-
}
|
|
1308
|
-
disconnectedCallback() {
|
|
1309
|
-
plt.jmp(() => disconnectedCallback(this));
|
|
1310
|
-
}
|
|
1311
|
-
componentOnReady() {
|
|
1312
|
-
return getHostRef(this).$onReadyPromise$;
|
|
1313
|
-
}
|
|
1314
|
-
};
|
|
1315
|
-
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
1316
|
-
if (!exclude.includes(tagName) && !customElements.get(tagName)) {
|
|
1317
|
-
cmpTags.push(tagName);
|
|
1318
|
-
customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* PROXY_FLAGS.isElementConstructor */));
|
|
1319
|
-
}
|
|
1320
|
-
});
|
|
1321
|
-
});
|
|
1322
|
-
{
|
|
1323
|
-
visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
|
|
1324
|
-
visibilityStyle.setAttribute('data-styles', '');
|
|
1325
|
-
// Apply CSP nonce to the style tag if it exists
|
|
1326
|
-
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
|
1327
|
-
if (nonce != null) {
|
|
1328
|
-
visibilityStyle.setAttribute('nonce', nonce);
|
|
1329
|
-
}
|
|
1330
|
-
head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
|
|
1331
|
-
}
|
|
1332
|
-
// Process deferred connectedCallbacks now all components have been registered
|
|
1333
|
-
isBootstrapping = false;
|
|
1334
|
-
if (deferredConnectedCallbacks.length) {
|
|
1335
|
-
deferredConnectedCallbacks.map((host) => host.connectedCallback());
|
|
1336
|
-
}
|
|
1337
|
-
else {
|
|
1338
|
-
{
|
|
1339
|
-
plt.jmp(() => (appLoadFallback = setTimeout(appDidLoad, 30)));
|
|
1340
|
-
}
|
|
1341
|
-
}
|
|
1342
|
-
// Fallback appLoad event
|
|
1343
|
-
endBootstrap();
|
|
1344
|
-
};
|
|
1345
|
-
/**
|
|
1346
|
-
* Assigns the given value to the nonce property on the runtime platform object.
|
|
1347
|
-
* During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
|
|
1348
|
-
* @param nonce The value to be assigned to the platform nonce property.
|
|
1349
|
-
* @returns void
|
|
1350
|
-
*/
|
|
1351
|
-
const setNonce = (nonce) => (plt.$nonce$ = nonce);
|
|
1352
|
-
const hostRefs = /*@__PURE__*/ new WeakMap();
|
|
1353
|
-
const getHostRef = (ref) => hostRefs.get(ref);
|
|
1354
|
-
const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
|
|
1355
|
-
const registerHost = (elm, cmpMeta) => {
|
|
1356
|
-
const hostRef = {
|
|
1357
|
-
$flags$: 0,
|
|
1358
|
-
$hostElement$: elm,
|
|
1359
|
-
$cmpMeta$: cmpMeta,
|
|
1360
|
-
$instanceValues$: new Map(),
|
|
1361
|
-
};
|
|
1362
|
-
{
|
|
1363
|
-
hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
|
|
1364
|
-
elm['s-p'] = [];
|
|
1365
|
-
elm['s-rc'] = [];
|
|
1366
|
-
}
|
|
1367
|
-
return hostRefs.set(elm, hostRef);
|
|
1368
|
-
};
|
|
1369
|
-
const isMemberInElement = (elm, memberName) => memberName in elm;
|
|
1370
|
-
const consoleError = (e, el) => (0, console.error)(e, el);
|
|
1371
|
-
const cmpModules = /*@__PURE__*/ new Map();
|
|
1372
|
-
const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
1373
|
-
// loadModuleImport
|
|
1374
|
-
const exportName = cmpMeta.$tagName$.replace(/-/g, '_');
|
|
1375
|
-
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1376
|
-
const module = cmpModules.get(bundleId) ;
|
|
1377
|
-
if (module) {
|
|
1378
|
-
return module[exportName];
|
|
1379
|
-
}
|
|
1380
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
|
1381
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1382
|
-
/* @vite-ignore */
|
|
1383
|
-
/* webpackInclude: /\.entry\.js$/ */
|
|
1384
|
-
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
1385
|
-
/* webpackMode: "lazy" */
|
|
1386
|
-
`./${bundleId}.entry.js${''}`)); }).then((importedModule) => {
|
|
1387
|
-
{
|
|
1388
|
-
cmpModules.set(bundleId, importedModule);
|
|
1389
|
-
}
|
|
1390
|
-
return importedModule[exportName];
|
|
1391
|
-
}, consoleError);
|
|
1392
|
-
};
|
|
1393
|
-
const styles = /*@__PURE__*/ new Map();
|
|
1394
|
-
const win = typeof window !== 'undefined' ? window : {};
|
|
1395
|
-
const doc = win.document || { head: {} };
|
|
1396
|
-
const plt = {
|
|
1397
|
-
$flags$: 0,
|
|
1398
|
-
$resourcesUrl$: '',
|
|
1399
|
-
jmp: (h) => h(),
|
|
1400
|
-
raf: (h) => requestAnimationFrame(h),
|
|
1401
|
-
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
|
1402
|
-
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
1403
|
-
ce: (eventName, opts) => new CustomEvent(eventName, opts),
|
|
1404
|
-
};
|
|
1405
|
-
const promiseResolve = (v) => Promise.resolve(v);
|
|
1406
|
-
const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
|
|
1407
|
-
try {
|
|
1408
|
-
new CSSStyleSheet();
|
|
1409
|
-
return typeof new CSSStyleSheet().replaceSync === 'function';
|
|
1410
|
-
}
|
|
1411
|
-
catch (e) { }
|
|
1412
|
-
return false;
|
|
1413
|
-
})()
|
|
1414
|
-
;
|
|
1415
|
-
const queueDomReads = [];
|
|
1416
|
-
const queueDomWrites = [];
|
|
1417
|
-
const queueTask = (queue, write) => (cb) => {
|
|
1418
|
-
queue.push(cb);
|
|
1419
|
-
if (!queuePending) {
|
|
1420
|
-
queuePending = true;
|
|
1421
|
-
if (write && plt.$flags$ & 4 /* PLATFORM_FLAGS.queueSync */) {
|
|
1422
|
-
nextTick(flush);
|
|
1423
|
-
}
|
|
1424
|
-
else {
|
|
1425
|
-
plt.raf(flush);
|
|
1426
|
-
}
|
|
1427
|
-
}
|
|
1428
|
-
};
|
|
1429
|
-
const consume = (queue) => {
|
|
1430
|
-
for (let i = 0; i < queue.length; i++) {
|
|
1431
|
-
try {
|
|
1432
|
-
queue[i](performance.now());
|
|
1433
|
-
}
|
|
1434
|
-
catch (e) {
|
|
1435
|
-
consoleError(e);
|
|
1436
|
-
}
|
|
1437
|
-
}
|
|
1438
|
-
queue.length = 0;
|
|
1439
|
-
};
|
|
1440
|
-
const flush = () => {
|
|
1441
|
-
// always force a bunch of medium callbacks to run, but still have
|
|
1442
|
-
// a throttle on how many can run in a certain time
|
|
1443
|
-
// DOM READS!!!
|
|
1444
|
-
consume(queueDomReads);
|
|
1445
|
-
// DOM WRITES!!!
|
|
1446
|
-
{
|
|
1447
|
-
consume(queueDomWrites);
|
|
1448
|
-
if ((queuePending = queueDomReads.length > 0)) {
|
|
1449
|
-
// still more to do yet, but we've run out of time
|
|
1450
|
-
// let's let this thing cool off and try again in the next tick
|
|
1451
|
-
plt.raf(flush);
|
|
1452
|
-
}
|
|
1453
|
-
}
|
|
1454
|
-
};
|
|
1455
|
-
const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
|
|
1456
|
-
const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
|
|
1457
|
-
|
|
1458
|
-
exports.Host = Host;
|
|
1459
|
-
exports.bootstrapLazy = bootstrapLazy;
|
|
1460
|
-
exports.h = h;
|
|
1461
|
-
exports.promiseResolve = promiseResolve;
|
|
1462
|
-
exports.registerInstance = registerInstance;
|
|
1463
|
-
exports.setNonce = setNonce;
|
|
1
|
+
'use strict';const _0x577dab=_0x4569;(function(_0x25f730,_0x564e81){const _0x1d9b92=_0x4569,_0x280059=_0x25f730();while(!![]){try{const _0x2bf906=-parseInt(_0x1d9b92(0xd5))/0x1+-parseInt(_0x1d9b92(0x148))/0x2*(-parseInt(_0x1d9b92(0xe0))/0x3)+parseInt(_0x1d9b92(0x173))/0x4*(-parseInt(_0x1d9b92(0x1ab))/0x5)+-parseInt(_0x1d9b92(0xd6))/0x6+parseInt(_0x1d9b92(0xc0))/0x7+-parseInt(_0x1d9b92(0x1af))/0x8+-parseInt(_0x1d9b92(0x117))/0x9*(-parseInt(_0x1d9b92(0x11f))/0xa);if(_0x2bf906===_0x564e81)break;else _0x280059['push'](_0x280059['shift']());}catch(_0x52b325){_0x280059['push'](_0x280059['shift']());}}}(_0x33fe,0x299de));function _interopNamespace(_0x3a6c3b){const _0x441803=_0x4569,_0x8ff949={'aTimm':function(_0x1f4b6a,_0x40a506){return _0x1f4b6a!==_0x40a506;},'pJonR':_0x441803(0xe2)};if(_0x3a6c3b&&_0x3a6c3b[_0x441803(0x1c3)])return _0x3a6c3b;var _0x3b6e32=Object[_0x441803(0x1d5)](null);return _0x3a6c3b&&Object[_0x441803(0x13a)](_0x3a6c3b)['forEach'](function(_0x145a68){const _0x10f33e=_0x441803;if(_0x8ff949[_0x10f33e(0x188)](_0x145a68,_0x8ff949['pJonR'])){var _0x367fcb=Object[_0x10f33e(0x15a)](_0x3a6c3b,_0x145a68);Object['defineProperty'](_0x3b6e32,_0x145a68,_0x367fcb[_0x10f33e(0x13d)]?_0x367fcb:{'enumerable':!![],'get':function(){return _0x3a6c3b[_0x145a68];}});}}),_0x3b6e32[_0x8ff949[_0x441803(0xca)]]=_0x3a6c3b,Object[_0x441803(0xf1)](_0x3b6e32);}const NAMESPACE=_0x577dab(0x1b6);let scopeId,hostTagName,isSvgMode=![],queuePending=![];const createTime=(_0x5bf451,_0x21d2e0='')=>{{return()=>{return;};}},uniqueTime=(_0x4354d2,_0x3ce146)=>{{return()=>{return;};}},HYDRATED_CSS=_0x577dab(0x19f),EMPTY_OBJ={},SVG_NS=_0x577dab(0x1ce),HTML_NS=_0x577dab(0x1d6),isDef=_0x3f8189=>_0x3f8189!=null,isComplexType=_0x1274b1=>{const _0x2e5426=_0x577dab,_0x55234d={'SvAfJ':function(_0x3d33fd,_0x2ec273){return _0x3d33fd===_0x2ec273;},'HvrUN':_0x2e5426(0xce),'BPuFR':function(_0x108a44,_0x499c77){return _0x108a44===_0x499c77;},'bbacn':_0x2e5426(0xd1)};return _0x1274b1=typeof _0x1274b1,_0x55234d[_0x2e5426(0x162)](_0x1274b1,_0x55234d[_0x2e5426(0xcc)])||_0x55234d[_0x2e5426(0xe6)](_0x1274b1,_0x55234d[_0x2e5426(0x18a)]);};function queryNonceMetaTagContent(_0xf2403){const _0x5a99b5=_0x577dab,_0x13189a={'GnhUK':function(_0x54e967,_0x475745){return _0x54e967!==_0x475745;},'DcTKp':function(_0x1e8dad,_0x3c006b){return _0x1e8dad===_0x3c006b;},'ljvhR':function(_0x41ebf6,_0x519db6){return _0x41ebf6===_0x519db6;},'nNeAl':_0x5a99b5(0x16b),'TslJL':_0x5a99b5(0x172)};var _0xaf5f49,_0x1e24b1,_0xa23440;return _0x13189a['GnhUK'](_0xa23440=_0x13189a['DcTKp'](_0x1e24b1=_0x13189a[_0x5a99b5(0x18c)](_0xaf5f49=_0xf2403['head'],null)||_0x13189a[_0x5a99b5(0x136)](_0xaf5f49,void 0x0)?void 0x0:_0xaf5f49[_0x5a99b5(0x1b2)](_0x13189a[_0x5a99b5(0x170)]),null)||_0x13189a[_0x5a99b5(0x18c)](_0x1e24b1,void 0x0)?void 0x0:_0x1e24b1[_0x5a99b5(0x13e)](_0x13189a[_0x5a99b5(0x126)]),null)&&_0xa23440!==void 0x0?_0xa23440:undefined;}function _0x33fe(){const _0x2e81d1=['createElement','$onRenderResolve$','keys','shadowRoot','error','get','getAttribute','className','has','DuFkL','YCeOC','TgQbX','iEeVt','XRCiJ','WThPi','split','228IJvpvu','yGAMF','nteLZ','$tag$','isNaN','isArray','defineProperty','set','data-styles','string','setAttribute','textContent','zKTTy','mkhTy','host','componentWillLoad','BDLzt','kjDFv','getOwnPropertyDescriptor','ODrVe','assign','pEUPU','.entry.js','nextSibling','data','kJcob','SvAfJ','dispatchEvent','toLowerCase','XOWWV','filter','wNhnW','NVqRW','CzNIX','$text$','meta[name=\x22csp-nonce\x22]','bootstrapLazy','MEYAX','EdYMK','EncyE','nNeAl','hrVbV','content','82736uMCjbB','VBlIz','undefined','classList','kEOWR','scheduleUpdate','TJVDo','componentOnReady','CRIGv','YZiKC','$ancestorComponent$','ccWOs','attributeChangedCallback','meta[charset]','s-p','baseURI','XtFRB','VZwvv','JrUEM','HRYMu','tHZpP','aTimm','pPWVw','bbacn','aVnGG','DcTKp','replaceSync','uCxEJ','$instanceValues$','NeFra','pcZvr','rFguf','rdeVF','update','pAKEE','uyILe','PurPD','ouCMy','foreignObject','then','zGCyA','$members$','vBtwI','$vnode$','{visibility:hidden}.hydrated{visibility:inherit}','tLtCK','YWIFG','resolve','GGBvt','link','map','parentNode','tagName','JiVUK','pGUmF','uFLzb','5wqoTxd','s-sc','EttUn','ppuvt','1279200cUIavF','iwFrT','attachShadow','querySelector','prototype','Paowe','$children$','pushfeedback','all','boolean','jmp','sc-','hmsxd','style','zcoQe','$hostElement$','head','IIZJR','AranD','createElementNS','__esModule','IdWmv','$elm$','getRootNode','xdEsW','isProxied','GFyjz','ERlpn','$onReadyResolve$','observedAttributes','registerStyles','http://www.w3.org/2000/svg','$lazyInstance$','fgnEm','EEOhK','ILxia','includes','CVQUc','create','http://www.w3.org/1999/xhtml','$onReadyPromise$','hLgpG','yyiyW','HFEma','$cmpMeta$','tTQGe','azwyV','raf','$attrsToReflect$','464527yBjwug','RsKMe','qDeDZ','FIarV','now','CEkFm','FMxnm','wuyia','btEVr','GJTbK','pJonR','XIDms','HvrUN','FuKXo','object','zKToa','DDPeF','function','CirCf','attachStyles','HcFpl','201562TYpsxV','98850HkTFBL','QVCVH','ZcsxG','VveQs','WmuXu','number','IpWNc','wxhFd','$attrs$','QGcIM','6180gRXiCb','nodeType','default','LtkCP','define','BrsTk','BPuFR','ljAgO','nonce','$flags$','push','RuvsS','JDkYt','tACFy','remove','sDIOe','AXfKg','freeze','bqcJM','vHglN','qsYwm','$tagName$','cSvff','PEpwv','setNonce','JhJFy','CuxdG','yZTZH','tUjsO','open','promiseResolve','$lazyBundleId$','slice','adoptedStyleSheets','EFYyQ','hasOwnProperty','length','OctgT','pHZkE','tEIID','NusrT','nyoNw','connectedCallback','ref','ztrXC','insertBefore','bJFoX','XzXyC','postUpdate','registerInstance','puQQm','HEskN','SDSQC','ATGAE','DtjVg','803646dovfbV','aCxQH','vXLob','entries','MQGPa','$nonce$','YfkHD','createTextNode','30EhlBFz','LrEVm','appload','fMgHl','resourcesUrl','disconnectedCallback','Host','TslJL','PUpxu','createInstance','add','hydrated','render','YTvuX','svg','replace','PCRcd','qSald','customElements','s-rc','upOab','slot','HwrAo','ljvhR','Efwzc'];_0x33fe=function(){return _0x2e81d1;};return _0x33fe();}const h=(_0x45cc38,_0x12eca4,..._0xfc6bc8)=>{const _0x56397b=_0x577dab,_0x598165={'WshjC':function(_0x56fb70,_0x17ae2d){return _0x56fb70<_0x17ae2d;},'YCeOC':function(_0x19dbe0,_0x1540a9){return _0x19dbe0(_0x1540a9);},'nmYgB':function(_0x13643c,_0x25c3f4){return _0x13643c!=_0x25c3f4;},'CuxdG':function(_0x311144,_0x1ba036){return _0x311144!==_0x1ba036;},'aVnGG':_0x56397b(0x1b8),'RuvsS':_0x56397b(0xd1),'Paowe':function(_0x208483,_0x29d1c6){return _0x208483(_0x29d1c6);},'hrVbV':function(_0x1fe036,_0x8af978){return _0x1fe036&&_0x8af978;},'VveQs':function(_0x33ac2a,_0x1aa938){return _0x33ac2a(_0x1aa938);},'wsBjk':function(_0xbfcac5,_0x1829b9){return _0xbfcac5!==_0x1829b9;},'whWeK':function(_0x1e15a3,_0x38829b,_0x49ed87){return _0x1e15a3(_0x38829b,_0x49ed87);},'GGBvt':function(_0x338c18,_0xbf7b98){return _0x338c18>_0xbf7b98;}};let _0x268f6f=null,_0x360068=![],_0x303340=![];const _0xf1c99=[],_0x3928f9=_0x599626=>{const _0x276eab=_0x56397b;for(let _0x18bbe4=0x0;_0x598165['WshjC'](_0x18bbe4,_0x599626['length']);_0x18bbe4++){_0x268f6f=_0x599626[_0x18bbe4];if(Array[_0x276eab(0x14d)](_0x268f6f))_0x598165[_0x276eab(0x142)](_0x3928f9,_0x268f6f);else _0x598165['nmYgB'](_0x268f6f,null)&&_0x598165['CuxdG'](typeof _0x268f6f,_0x598165[_0x276eab(0x18b)])&&((_0x360068=_0x598165[_0x276eab(0xfa)](typeof _0x45cc38,_0x598165[_0x276eab(0xeb)])&&!isComplexType(_0x268f6f))&&(_0x268f6f=_0x598165[_0x276eab(0x1b4)](String,_0x268f6f)),_0x598165[_0x276eab(0x171)](_0x360068,_0x303340)?_0xf1c99[_0xf1c99[_0x276eab(0x104)]-0x1]['$text$']+=_0x268f6f:_0xf1c99[_0x276eab(0xea)](_0x360068?newVNode(null,_0x268f6f):_0x268f6f),_0x303340=_0x360068);}};_0x598165[_0x56397b(0xd9)](_0x3928f9,_0xfc6bc8);if(_0x12eca4){const _0x58a65e=_0x12eca4[_0x56397b(0x13f)]||_0x12eca4['class'];_0x58a65e&&(_0x12eca4['class']=_0x598165['wsBjk'](typeof _0x58a65e,'object')?_0x58a65e:Object[_0x56397b(0x13a)](_0x58a65e)['filter'](_0x54d8d6=>_0x58a65e[_0x54d8d6])['join']('\x20'));}const _0x37392b=_0x598165['whWeK'](newVNode,_0x45cc38,null);return _0x37392b[_0x56397b(0xde)]=_0x12eca4,_0x598165[_0x56397b(0x1a3)](_0xf1c99[_0x56397b(0x104)],0x0)&&(_0x37392b['$children$']=_0xf1c99),_0x37392b;},newVNode=(_0x378997,_0x4094ce)=>{const _0x5f2f85=_0x577dab,_0xf02701={'$flags$':0x0,'$tag$':_0x378997,'$text$':_0x4094ce,'$elm$':null,'$children$':null};{_0xf02701[_0x5f2f85(0xde)]=null;}return _0xf02701;},Host={},isHost=_0x536c2c=>_0x536c2c&&_0x536c2c[_0x577dab(0x14b)]===Host,parsePropertyValue=(_0x31538d,_0xa50156)=>{const _0x33b94d=_0x577dab,_0x1a55cb={'GFyjz':function(_0x21870c,_0x2bfb46){return _0x21870c!=_0x2bfb46;},'ZcsxG':function(_0x115991,_0x8f2263){return _0x115991===_0x8f2263;},'FMLQH':'false','XzXyC':function(_0x51e834,_0x5638f1){return _0x51e834===_0x5638f1;},'IWtdS':function(_0x3795bf,_0x15d0ef){return _0x3795bf(_0x15d0ef);}};if(_0x1a55cb[_0x33b94d(0x1c9)](_0x31538d,null)&&!isComplexType(_0x31538d)){if(_0xa50156&0x4)return _0x1a55cb[_0x33b94d(0xd8)](_0x31538d,_0x1a55cb['FMLQH'])?![]:_0x1a55cb[_0x33b94d(0x10f)](_0x31538d,'')||!!_0x31538d;if(_0xa50156&0x1)return _0x1a55cb['IWtdS'](String,_0x31538d);return _0x31538d;}return _0x31538d;},emitEvent=(_0x3adc15,_0x20892c,_0x20704b)=>{const _0x3c6743=_0x577dab,_0xab318d=plt['ce'](_0x20892c,_0x20704b);return _0x3adc15[_0x3c6743(0x163)](_0xab318d),_0xab318d;},rootAppliedStyles=new WeakMap(),registerStyle=(_0x36caa5,_0x38b8b4,_0x44b498)=>{const _0x4533b0=_0x577dab,_0x43d15c={'fMgHl':function(_0x3fdd9b,_0x2c380b){return _0x3fdd9b&&_0x2c380b;},'ILxia':function(_0x5ebd0a,_0xdeffc9){return _0x5ebd0a===_0xdeffc9;},'tEIID':_0x4533b0(0x151)};let _0x2ccfde=styles['get'](_0x36caa5);_0x43d15c[_0x4533b0(0x122)](supportsConstructableStylesheets,_0x44b498)?(_0x2ccfde=_0x2ccfde||new CSSStyleSheet(),_0x43d15c[_0x4533b0(0x1d2)](typeof _0x2ccfde,_0x43d15c[_0x4533b0(0x107)])?_0x2ccfde=_0x38b8b4:_0x2ccfde['replaceSync'](_0x38b8b4)):_0x2ccfde=_0x38b8b4,styles[_0x4533b0(0x14f)](_0x36caa5,_0x2ccfde);},addStyle=(_0x404781,_0x4d5db2,_0x24c597,_0xe31397)=>{const _0x249e83=_0x577dab,_0x3e72ac={'JDkYt':function(_0x2b76bb,_0x26067e){return _0x2b76bb(_0x26067e);},'AranD':function(_0x3d837f,_0x303b44){return _0x3d837f===_0x303b44;},'GIFmK':_0x249e83(0x151),'SDSQC':_0x249e83(0x1bc),'qsYwm':function(_0x459809,_0x1c2f81){return _0x459809!==_0x1c2f81;},'IpWNc':function(_0x20f595,_0x57dc98){return _0x20f595!=_0x57dc98;},'HwrAo':'nonce','ZiSue':_0x249e83(0x1a4)};var _0x8914ac;let _0x18f7b2=_0x3e72ac['JDkYt'](getScopeId,_0x4d5db2);const _0x1de442=styles[_0x249e83(0x13d)](_0x18f7b2);_0x404781=_0x3e72ac[_0x249e83(0x1c1)](_0x404781[_0x249e83(0xe1)],0xb)?_0x404781:doc;if(_0x1de442){if(typeof _0x1de442===_0x3e72ac['GIFmK']){_0x404781=_0x404781[_0x249e83(0x1bf)]||_0x404781;let _0x371aaf=rootAppliedStyles['get'](_0x404781),_0x1b5b22;!_0x371aaf&&rootAppliedStyles[_0x249e83(0x14f)](_0x404781,_0x371aaf=new Set());if(!_0x371aaf['has'](_0x18f7b2)){{{_0x1b5b22=doc[_0x249e83(0x138)](_0x3e72ac[_0x249e83(0x114)]),_0x1b5b22['innerHTML']=_0x1de442;}const _0x2c5018=_0x3e72ac['qsYwm'](_0x8914ac=plt[_0x249e83(0x11c)],null)&&_0x3e72ac[_0x249e83(0xf4)](_0x8914ac,void 0x0)?_0x8914ac:_0x3e72ac[_0x249e83(0xec)](queryNonceMetaTagContent,doc);_0x3e72ac[_0x249e83(0xdc)](_0x2c5018,null)&&_0x1b5b22[_0x249e83(0x152)](_0x3e72ac[_0x249e83(0x135)],_0x2c5018),_0x404781[_0x249e83(0x10d)](_0x1b5b22,_0x404781[_0x249e83(0x1b2)](_0x3e72ac['ZiSue']));}_0x371aaf&&_0x371aaf[_0x249e83(0x129)](_0x18f7b2);}}else!_0x404781[_0x249e83(0x101)][_0x249e83(0x1d3)](_0x1de442)&&(_0x404781[_0x249e83(0x101)]=[..._0x404781[_0x249e83(0x101)],_0x1de442]);}return _0x18f7b2;},attachStyles=_0x450522=>{const _0x3060b7=_0x577dab,_0x3c9799={'VBlIz':function(_0x53e036,_0x3b011f,_0x1f3077){return _0x53e036(_0x3b011f,_0x1f3077);},'DtjVg':function(_0x130b34,_0x3472a7){return _0x130b34&_0x3472a7;},'PUpxu':_0x3060b7(0x1ac),'qSald':function(_0x37fc14){return _0x37fc14();}},_0x1fbd0b=_0x450522[_0x3060b7(0x1db)],_0x3686e6=_0x450522['$hostElement$'],_0x2ef5aa=_0x1fbd0b[_0x3060b7(0xe9)],_0x2784d7=_0x3c9799['VBlIz'](createTime,_0x3060b7(0xd3),_0x1fbd0b[_0x3060b7(0xf5)]),_0x5f29b6=_0x3c9799[_0x3060b7(0x174)](addStyle,_0x3686e6[_0x3060b7(0x13b)]?_0x3686e6[_0x3060b7(0x13b)]:_0x3686e6[_0x3060b7(0x1c6)](),_0x1fbd0b);_0x3c9799[_0x3060b7(0x116)](_0x2ef5aa,0xa)&&(_0x3686e6[_0x3c9799[_0x3060b7(0x127)]]=_0x5f29b6,_0x3686e6[_0x3060b7(0x176)][_0x3060b7(0x129)](_0x5f29b6+'-h')),_0x3c9799[_0x3060b7(0x130)](_0x2784d7);},getScopeId=(_0x488582,_0x3db824)=>_0x577dab(0x1ba)+_0x488582[_0x577dab(0xf5)],setAccessor=(_0x376250,_0x366716,_0x1b511d,_0x56deb9,_0x3a6a6a,_0x19585b)=>{const _0x4c4dd5=_0x577dab,_0x493887={'CirCf':function(_0x3af4bc,_0x46c173){return _0x3af4bc!==_0x46c173;},'iEeVt':function(_0x3766f7,_0x4bf5c0,_0x27c8bd){return _0x3766f7(_0x4bf5c0,_0x27c8bd);},'wuyia':function(_0x24a0ac,_0x3f27dc){return _0x24a0ac===_0x3f27dc;},'aCxQH':_0x4c4dd5(0x10b),'zcoQe':function(_0x2c7291,_0x3f14ba){return _0x2c7291(_0x3f14ba);},'NusrT':function(_0xfd4ac5,_0x21a249){return _0xfd4ac5+_0x21a249;},'XOWWV':function(_0x1ef589,_0x4d2b80){return _0x1ef589(_0x4d2b80);},'LrEVm':function(_0x28f228,_0x31fe1a){return _0x28f228==_0x31fe1a;},'FMxnm':function(_0x413a79,_0x12c998){return _0x413a79==_0x12c998;},'PurPD':function(_0x2125ed,_0x557910){return _0x2125ed!=_0x557910;},'CEkFm':function(_0x44c658,_0x52b4ca){return _0x44c658==_0x52b4ca;},'TtLSB':function(_0x870c4f,_0x5a02d5){return _0x870c4f!==_0x5a02d5;},'kEOWR':function(_0x5e11bc,_0x10972b){return _0x5e11bc&_0x10972b;}};if(_0x493887[_0x4c4dd5(0xd2)](_0x1b511d,_0x56deb9)){let _0x144e05=_0x493887[_0x4c4dd5(0x144)](isMemberInElement,_0x376250,_0x366716),_0x88e3f5=_0x366716[_0x4c4dd5(0x164)]();if(_0x493887[_0x4c4dd5(0xc7)](_0x366716,'class')){const _0x534e40=_0x376250[_0x4c4dd5(0x176)],_0x2d2c3c=parseClassList(_0x1b511d),_0x1533cf=parseClassList(_0x56deb9);_0x534e40[_0x4c4dd5(0xee)](..._0x2d2c3c[_0x4c4dd5(0x166)](_0x2230f2=>_0x2230f2&&!_0x1533cf[_0x4c4dd5(0x1d3)](_0x2230f2))),_0x534e40[_0x4c4dd5(0x129)](..._0x1533cf[_0x4c4dd5(0x166)](_0x4c3b94=>_0x4c3b94&&!_0x2d2c3c[_0x4c4dd5(0x1d3)](_0x4c3b94)));}else{if(_0x366716===_0x493887[_0x4c4dd5(0x118)])_0x56deb9&&_0x493887[_0x4c4dd5(0x1bd)](_0x56deb9,_0x376250);else{if(!_0x144e05&&_0x493887[_0x4c4dd5(0xc7)](_0x366716[0x0],'o')&&_0x366716[0x1]==='n'){if(_0x366716[0x2]==='-')_0x366716=_0x366716[_0x4c4dd5(0x100)](0x3);else isMemberInElement(win,_0x88e3f5)?_0x366716=_0x88e3f5[_0x4c4dd5(0x100)](0x2):_0x366716=_0x493887[_0x4c4dd5(0x108)](_0x88e3f5[0x2],_0x366716['slice'](0x3));_0x1b511d&&plt['rel'](_0x376250,_0x366716,_0x1b511d,![]),_0x56deb9&&plt['ael'](_0x376250,_0x366716,_0x56deb9,![]);}else{const _0x4dc92d=_0x493887[_0x4c4dd5(0x165)](isComplexType,_0x56deb9);if((_0x144e05||_0x4dc92d&&_0x56deb9!==null)&&!_0x3a6a6a)try{if(!_0x376250[_0x4c4dd5(0x1a7)][_0x4c4dd5(0x1d3)]('-')){const _0x3d7e6e=_0x493887[_0x4c4dd5(0x120)](_0x56deb9,null)?'':_0x56deb9;if(_0x366716==='list')_0x144e05=![];else(_0x493887[_0x4c4dd5(0xc6)](_0x1b511d,null)||_0x493887[_0x4c4dd5(0x197)](_0x376250[_0x366716],_0x3d7e6e))&&(_0x376250[_0x366716]=_0x3d7e6e);}else _0x376250[_0x366716]=_0x56deb9;}catch(_0x3d7642){}if(_0x493887[_0x4c4dd5(0xc5)](_0x56deb9,null)||_0x493887[_0x4c4dd5(0xc7)](_0x56deb9,![])){if(_0x493887['TtLSB'](_0x56deb9,![])||_0x376250[_0x4c4dd5(0x13e)](_0x366716)===''){_0x376250['removeAttribute'](_0x366716);}}else{if((!_0x144e05||_0x493887[_0x4c4dd5(0x177)](_0x19585b,0x4)||_0x3a6a6a)&&!_0x4dc92d){_0x56deb9=_0x493887[_0x4c4dd5(0xc7)](_0x56deb9,!![])?'':_0x56deb9;{_0x376250[_0x4c4dd5(0x152)](_0x366716,_0x56deb9);}}}}}}}},parseClassListRegex=/\s/,parseClassList=_0x475d3f=>!_0x475d3f?[]:_0x475d3f[_0x577dab(0x147)](parseClassListRegex),updateElement=(_0x46742e,_0x516c62,_0x53094c,_0x22fad3)=>{const _0x24b622=_0x577dab,_0x322d29={'MvmKa':function(_0x6f8614,_0x595c27){return _0x6f8614===_0x595c27;},'mkhTy':function(_0x217555,_0x58dc3c){return _0x217555 in _0x58dc3c;},'Efwzc':function(_0x4ef08e,_0x126960,_0x36ed98,_0x81b858,_0x4cffd0,_0x3491df,_0x32c2a7){return _0x4ef08e(_0x126960,_0x36ed98,_0x81b858,_0x4cffd0,_0x3491df,_0x32c2a7);}},_0x416194=_0x322d29['MvmKa'](_0x516c62[_0x24b622(0x1c5)][_0x24b622(0xe1)],0xb)&&_0x516c62['$elm$']['host']?_0x516c62[_0x24b622(0x1c5)][_0x24b622(0x156)]:_0x516c62[_0x24b622(0x1c5)],_0x2acc8f=_0x46742e&&_0x46742e[_0x24b622(0xde)]||EMPTY_OBJ,_0x37a8a2=_0x516c62['$attrs$']||EMPTY_OBJ;{for(_0x22fad3 in _0x2acc8f){!_0x322d29[_0x24b622(0x155)](_0x22fad3,_0x37a8a2)&&_0x322d29[_0x24b622(0x137)](setAccessor,_0x416194,_0x22fad3,_0x2acc8f[_0x22fad3],undefined,_0x53094c,_0x516c62[_0x24b622(0xe9)]);}}for(_0x22fad3 in _0x37a8a2){_0x322d29[_0x24b622(0x137)](setAccessor,_0x416194,_0x22fad3,_0x2acc8f[_0x22fad3],_0x37a8a2[_0x22fad3],_0x53094c,_0x516c62['$flags$']);}},createElm=(_0x251c03,_0x30d8bc,_0x3e74ef,_0x301c51)=>{const _0x2a9f47=_0x577dab,_0x5d1777={'OctgT':function(_0x459b74,_0x2abbff){return _0x459b74!==_0x2abbff;},'hmsxd':function(_0x29ec3f,_0x23a011){return _0x29ec3f===_0x23a011;},'MDemU':_0x2a9f47(0x12d),'pHeAm':function(_0x5d68f7,_0x30cfcd,_0x4af38e,_0x5c3af7){return _0x5d68f7(_0x30cfcd,_0x4af38e,_0x5c3af7);},'QGcIM':'s-si','vXLob':function(_0x191377,_0xaeb6d){return _0x191377<_0xaeb6d;},'nyoNw':function(_0x3605c6,_0x29070b){return _0x3605c6===_0x29070b;},'EFYyQ':function(_0xc3190c,_0x244939){return _0xc3190c===_0x244939;},'ehfhJ':_0x2a9f47(0x199)},_0x23c7a1=_0x30d8bc[_0x2a9f47(0x1b5)][_0x3e74ef];let _0x234ba9=0x0,_0x5ceb97,_0x834031;if(_0x5d1777[_0x2a9f47(0x105)](_0x23c7a1['$text$'],null))_0x5ceb97=_0x23c7a1['$elm$']=doc[_0x2a9f47(0x11e)](_0x23c7a1['$text$']);else{!isSvgMode&&(isSvgMode=_0x5d1777['hmsxd'](_0x23c7a1['$tag$'],_0x5d1777['MDemU']));_0x5ceb97=_0x23c7a1['$elm$']=doc[_0x2a9f47(0x1c2)](isSvgMode?SVG_NS:HTML_NS,_0x23c7a1[_0x2a9f47(0x14b)]);isSvgMode&&_0x5d1777[_0x2a9f47(0x1bb)](_0x23c7a1['$tag$'],'foreignObject')&&(isSvgMode=![]);{_0x5d1777['pHeAm'](updateElement,null,_0x23c7a1,isSvgMode);}isDef(scopeId)&&_0x5ceb97[_0x5d1777[_0x2a9f47(0xdf)]]!==scopeId&&_0x5ceb97[_0x2a9f47(0x176)][_0x2a9f47(0x129)](_0x5ceb97[_0x5d1777[_0x2a9f47(0xdf)]]=scopeId);if(_0x23c7a1[_0x2a9f47(0x1b5)])for(_0x234ba9=0x0;_0x5d1777[_0x2a9f47(0x119)](_0x234ba9,_0x23c7a1[_0x2a9f47(0x1b5)][_0x2a9f47(0x104)]);++_0x234ba9){_0x834031=createElm(_0x251c03,_0x23c7a1,_0x234ba9),_0x834031&&_0x5ceb97['appendChild'](_0x834031);}{if(_0x5d1777[_0x2a9f47(0x109)](_0x23c7a1[_0x2a9f47(0x14b)],_0x2a9f47(0x12d)))isSvgMode=![];else _0x5d1777[_0x2a9f47(0x102)](_0x5ceb97[_0x2a9f47(0x1a7)],_0x5d1777['ehfhJ'])&&(isSvgMode=!![]);}}return _0x5ceb97;},addVnodes=(_0x14e320,_0x546971,_0x5ec75c,_0x478c2c,_0x1dec88,_0x2ad327)=>{const _0x48b951=_0x577dab,_0x289800={'pHZkE':function(_0x219ba5,_0x1965ba){return _0x219ba5===_0x1965ba;},'bJFoX':function(_0x364699,_0x5830d1){return _0x364699<=_0x5830d1;},'QvUnZ':function(_0x3b7f58,_0x127ce5,_0x2ba0e1,_0xbc8c7f){return _0x3b7f58(_0x127ce5,_0x2ba0e1,_0xbc8c7f);}};let _0x14785b=_0x14e320,_0x7397ac;_0x14785b[_0x48b951(0x13b)]&&_0x289800[_0x48b951(0x106)](_0x14785b[_0x48b951(0x1a7)],hostTagName)&&(_0x14785b=_0x14785b[_0x48b951(0x13b)]);for(;_0x289800[_0x48b951(0x10e)](_0x1dec88,_0x2ad327);++_0x1dec88){_0x478c2c[_0x1dec88]&&(_0x7397ac=_0x289800['QvUnZ'](createElm,null,_0x5ec75c,_0x1dec88),_0x7397ac&&(_0x478c2c[_0x1dec88][_0x48b951(0x1c5)]=_0x7397ac,_0x14785b[_0x48b951(0x10d)](_0x7397ac,_0x546971)));}},removeVnodes=(_0x193181,_0x31e107,_0x152e47,_0x65d5c1,_0x41bfad)=>{const _0x37bbcc=_0x577dab,_0x4f7389={'JrUEM':function(_0x2fc4e8,_0xb81d9b){return _0x2fc4e8<=_0xb81d9b;}};for(;_0x4f7389[_0x37bbcc(0x185)](_0x31e107,_0x152e47);++_0x31e107){(_0x65d5c1=_0x193181[_0x31e107])&&(_0x41bfad=_0x65d5c1[_0x37bbcc(0x1c5)],callNodeRefs(_0x65d5c1),_0x41bfad[_0x37bbcc(0xee)]());}},updateChildren=(_0xda1395,_0x10796c,_0x520b32,_0x1581f6)=>{const _0x13f959=_0x577dab,_0x2649ed={'azwyV':function(_0x24b345,_0x29eee1){return _0x24b345-_0x29eee1;},'sgUYO':function(_0x1baa42,_0x24fc7d){return _0x1baa42<=_0x24fc7d;},'EncyE':function(_0x23461b,_0x431947){return _0x23461b==_0x431947;},'LtkCP':function(_0x61c8ec,_0x5720b9,_0x2606e6){return _0x61c8ec(_0x5720b9,_0x2606e6);},'yyiyW':function(_0x1de7eb,_0x3e147c,_0x26d8b2){return _0x1de7eb(_0x3e147c,_0x26d8b2);},'ouLWW':function(_0x18a8b9,_0x4dcff2,_0x328bbb){return _0x18a8b9(_0x4dcff2,_0x328bbb);},'IdWmv':function(_0xf7f06e,_0x5ed903,_0x2e5f49){return _0xf7f06e(_0x5ed903,_0x2e5f49);},'YWIFG':function(_0xeebc3a,_0x49f516,_0x45cb89){return _0xeebc3a(_0x49f516,_0x45cb89);},'tTQGe':function(_0x124b56,_0x126c4c,_0x3ce070){return _0x124b56(_0x126c4c,_0x3ce070);},'DZdmp':function(_0x53a472,_0x48f9b3,_0x92f21d){return _0x53a472(_0x48f9b3,_0x92f21d);},'HEskN':function(_0x46fa8e,_0x49cc8d,_0x4d2145,_0x2e4cfc){return _0x46fa8e(_0x49cc8d,_0x4d2145,_0x2e4cfc);},'cSvff':function(_0xe885b1,_0x345836){return _0xe885b1>_0x345836;},'upOab':function(_0x3833d5,_0x3ebf0a,_0x3af079,_0x2d2662,_0x246835,_0x43e78c,_0x1a1ec5){return _0x3833d5(_0x3ebf0a,_0x3af079,_0x2d2662,_0x246835,_0x43e78c,_0x1a1ec5);},'PZJis':function(_0x5b3acc,_0x2da246){return _0x5b3acc==_0x2da246;},'NVqRW':function(_0x44cf96,_0x160b42){return _0x44cf96+_0x160b42;},'HFEma':function(_0x20185c,_0x1eb6ec){return _0x20185c+_0x1eb6ec;},'AxWpt':function(_0x2ce987,_0x4c80ee,_0x357403,_0x158fb7){return _0x2ce987(_0x4c80ee,_0x357403,_0x158fb7);}};let _0x3e9c16=0x0,_0x2e80cb=0x0,_0x184e71=_0x2649ed['azwyV'](_0x10796c[_0x13f959(0x104)],0x1),_0x119f6e=_0x10796c[0x0],_0x466a66=_0x10796c[_0x184e71],_0x1f4416=_0x2649ed[_0x13f959(0xbd)](_0x1581f6['length'],0x1),_0x51374d=_0x1581f6[0x0],_0x595f95=_0x1581f6[_0x1f4416],_0x2eed0c;while(_0x2649ed['sgUYO'](_0x3e9c16,_0x184e71)&&_0x2e80cb<=_0x1f4416){if(_0x2649ed[_0x13f959(0x16f)](_0x119f6e,null))_0x119f6e=_0x10796c[++_0x3e9c16];else{if(_0x2649ed['EncyE'](_0x466a66,null))_0x466a66=_0x10796c[--_0x184e71];else{if(_0x2649ed[_0x13f959(0x16f)](_0x51374d,null))_0x51374d=_0x1581f6[++_0x2e80cb];else{if(_0x2649ed['EncyE'](_0x595f95,null))_0x595f95=_0x1581f6[--_0x1f4416];else{if(_0x2649ed[_0x13f959(0xe3)](isSameVnode,_0x119f6e,_0x51374d))_0x2649ed[_0x13f959(0x1d9)](patch,_0x119f6e,_0x51374d),_0x119f6e=_0x10796c[++_0x3e9c16],_0x51374d=_0x1581f6[++_0x2e80cb];else{if(_0x2649ed['ouLWW'](isSameVnode,_0x466a66,_0x595f95))_0x2649ed[_0x13f959(0x1c4)](patch,_0x466a66,_0x595f95),_0x466a66=_0x10796c[--_0x184e71],_0x595f95=_0x1581f6[--_0x1f4416];else{if(_0x2649ed[_0x13f959(0x1a1)](isSameVnode,_0x119f6e,_0x595f95))_0x2649ed[_0x13f959(0x1dc)](patch,_0x119f6e,_0x595f95),_0xda1395[_0x13f959(0x10d)](_0x119f6e[_0x13f959(0x1c5)],_0x466a66[_0x13f959(0x1c5)][_0x13f959(0x15f)]),_0x119f6e=_0x10796c[++_0x3e9c16],_0x595f95=_0x1581f6[--_0x1f4416];else{if(_0x2649ed['DZdmp'](isSameVnode,_0x466a66,_0x51374d))_0x2649ed[_0x13f959(0xe3)](patch,_0x466a66,_0x51374d),_0xda1395[_0x13f959(0x10d)](_0x466a66['$elm$'],_0x119f6e[_0x13f959(0x1c5)]),_0x466a66=_0x10796c[--_0x184e71],_0x51374d=_0x1581f6[++_0x2e80cb];else{{_0x2eed0c=_0x2649ed[_0x13f959(0x113)](createElm,_0x10796c&&_0x10796c[_0x2e80cb],_0x520b32,_0x2e80cb),_0x51374d=_0x1581f6[++_0x2e80cb];}if(_0x2eed0c){_0x119f6e[_0x13f959(0x1c5)][_0x13f959(0x1a6)][_0x13f959(0x10d)](_0x2eed0c,_0x119f6e[_0x13f959(0x1c5)]);}}}}}}}}}}if(_0x2649ed[_0x13f959(0xf6)](_0x3e9c16,_0x184e71))_0x2649ed[_0x13f959(0x133)](addVnodes,_0xda1395,_0x2649ed['PZJis'](_0x1581f6[_0x2649ed[_0x13f959(0x168)](_0x1f4416,0x1)],null)?null:_0x1581f6[_0x2649ed[_0x13f959(0x1da)](_0x1f4416,0x1)][_0x13f959(0x1c5)],_0x520b32,_0x1581f6,_0x2e80cb,_0x1f4416);else _0x2649ed['cSvff'](_0x2e80cb,_0x1f4416)&&_0x2649ed['AxWpt'](removeVnodes,_0x10796c,_0x3e9c16,_0x184e71);},isSameVnode=(_0xb2dec7,_0x44ff2e)=>{const _0x4e70ef=_0x577dab,_0x75dff={'PCRcd':function(_0x29fede,_0x5a56f0){return _0x29fede===_0x5a56f0;}};if(_0x75dff[_0x4e70ef(0x12f)](_0xb2dec7[_0x4e70ef(0x14b)],_0x44ff2e['$tag$']))return!![];return![];},patch=(_0x30c2cd,_0x1edb8f)=>{const _0x5dc25b=_0x577dab,_0x2a31dd={'DDPeF':function(_0x35614b,_0x755e60){return _0x35614b===_0x755e60;},'LfDaw':function(_0x1981f8,_0x209afc){return _0x1981f8===_0x209afc;},'TJVDo':_0x5dc25b(0x12d),'IIZJR':function(_0x2b1dcf,_0x58a5a9){return _0x2b1dcf===_0x58a5a9;},'DuFkL':function(_0x535b4b,_0x2a30fe,_0x2bb871,_0x3ccda0){return _0x535b4b(_0x2a30fe,_0x2bb871,_0x3ccda0);},'WThPi':function(_0x51724b,_0x402f3f){return _0x51724b!==_0x402f3f;},'RsKMe':function(_0x57a859,_0x593769,_0x422b50,_0x2ace9f,_0x12d3b7){return _0x57a859(_0x593769,_0x422b50,_0x2ace9f,_0x12d3b7);},'hLgpG':function(_0x510791,_0x18dc5e,_0x4145eb,_0x1a276e,_0x51bae5,_0x243f33,_0x113d33){return _0x510791(_0x18dc5e,_0x4145eb,_0x1a276e,_0x51bae5,_0x243f33,_0x113d33);},'fgnEm':function(_0x166962,_0x162b2b){return _0x166962-_0x162b2b;},'xdEsW':function(_0xb1f507,_0x565a17){return _0xb1f507-_0x565a17;},'HRYMu':function(_0x1c20f6,_0x337c79){return _0x1c20f6===_0x337c79;}},_0x5eff18=_0x1edb8f[_0x5dc25b(0x1c5)]=_0x30c2cd[_0x5dc25b(0x1c5)],_0x44646c=_0x30c2cd[_0x5dc25b(0x1b5)],_0x3e99e3=_0x1edb8f[_0x5dc25b(0x1b5)],_0x227ad4=_0x1edb8f[_0x5dc25b(0x14b)],_0x118b4f=_0x1edb8f['$text$'];if(_0x2a31dd[_0x5dc25b(0xd0)](_0x118b4f,null)){{isSvgMode=_0x2a31dd['LfDaw'](_0x227ad4,_0x2a31dd[_0x5dc25b(0x179)])?!![]:_0x2a31dd[_0x5dc25b(0x1c0)](_0x227ad4,_0x5dc25b(0x199))?![]:isSvgMode;}{if(_0x2a31dd[_0x5dc25b(0xd0)](_0x227ad4,_0x5dc25b(0x134)));else _0x2a31dd[_0x5dc25b(0x141)](updateElement,_0x30c2cd,_0x1edb8f,isSvgMode);}if(_0x44646c!==null&&_0x2a31dd[_0x5dc25b(0x146)](_0x3e99e3,null))_0x2a31dd[_0x5dc25b(0xc1)](updateChildren,_0x5eff18,_0x44646c,_0x1edb8f,_0x3e99e3);else{if(_0x2a31dd['WThPi'](_0x3e99e3,null))_0x2a31dd['WThPi'](_0x30c2cd[_0x5dc25b(0x16a)],null)&&(_0x5eff18[_0x5dc25b(0x153)]=''),_0x2a31dd[_0x5dc25b(0x1d8)](addVnodes,_0x5eff18,null,_0x1edb8f,_0x3e99e3,0x0,_0x2a31dd[_0x5dc25b(0x1d0)](_0x3e99e3[_0x5dc25b(0x104)],0x1));else _0x2a31dd[_0x5dc25b(0x146)](_0x44646c,null)&&_0x2a31dd[_0x5dc25b(0x141)](removeVnodes,_0x44646c,0x0,_0x2a31dd[_0x5dc25b(0x1c7)](_0x44646c[_0x5dc25b(0x104)],0x1));}isSvgMode&&_0x2a31dd[_0x5dc25b(0x186)](_0x227ad4,_0x2a31dd[_0x5dc25b(0x179)])&&(isSvgMode=![]);}else _0x30c2cd[_0x5dc25b(0x16a)]!==_0x118b4f&&(_0x5eff18[_0x5dc25b(0x160)]=_0x118b4f);},callNodeRefs=_0x162f44=>{const _0x1b37f0=_0x577dab;{_0x162f44[_0x1b37f0(0xde)]&&_0x162f44['$attrs$']['ref']&&_0x162f44[_0x1b37f0(0xde)][_0x1b37f0(0x10b)](null),_0x162f44[_0x1b37f0(0x1b5)]&&_0x162f44['$children$'][_0x1b37f0(0x1a5)](callNodeRefs);}},renderVdom=(_0x522134,_0x3a006b)=>{const _0x34e19c=_0x577dab,_0x2a076b={'gXKVv':function(_0x179e74,_0x3e3c2f){return _0x179e74(_0x3e3c2f);},'VoRjB':function(_0x21aaa5,_0x46e4f7,_0x233532,_0x3e65e4){return _0x21aaa5(_0x46e4f7,_0x233532,_0x3e65e4);},'CVQUc':_0x34e19c(0x1ac),'EEOhK':function(_0x28eae0,_0x323f44,_0x42982d){return _0x28eae0(_0x323f44,_0x42982d);}},_0x37f5af=_0x522134[_0x34e19c(0x1be)],_0x25f25b=_0x522134['$cmpMeta$'],_0x180a38=_0x522134[_0x34e19c(0x19e)]||newVNode(null,null),_0x48ce09=_0x2a076b['gXKVv'](isHost,_0x3a006b)?_0x3a006b:_0x2a076b['VoRjB'](h,null,null,_0x3a006b);hostTagName=_0x37f5af[_0x34e19c(0x1a7)];_0x25f25b[_0x34e19c(0xbf)]&&(_0x48ce09[_0x34e19c(0xde)]=_0x48ce09[_0x34e19c(0xde)]||{},_0x25f25b['$attrsToReflect$'][_0x34e19c(0x1a5)](([_0x4c6fd8,_0x3991f9])=>_0x48ce09[_0x34e19c(0xde)][_0x3991f9]=_0x37f5af[_0x4c6fd8]));_0x48ce09['$tag$']=null,_0x48ce09['$flags$']|=0x4,_0x522134[_0x34e19c(0x19e)]=_0x48ce09,_0x48ce09[_0x34e19c(0x1c5)]=_0x180a38['$elm$']=_0x37f5af[_0x34e19c(0x13b)]||_0x37f5af;{scopeId=_0x37f5af[_0x2a076b[_0x34e19c(0x1d4)]];}_0x2a076b[_0x34e19c(0x1d1)](patch,_0x180a38,_0x48ce09);},attachToAncestor=(_0x25feff,_0x50c9b8)=>{const _0xe0ac9b=_0x577dab,_0x2f1b1f={'xKFIx':'s-p'};_0x50c9b8&&!_0x25feff[_0xe0ac9b(0x139)]&&_0x50c9b8[_0xe0ac9b(0x181)]&&_0x50c9b8[_0x2f1b1f['xKFIx']][_0xe0ac9b(0xea)](new Promise(_0x582531=>_0x25feff['$onRenderResolve$']=_0x582531));},scheduleUpdate=(_0x1c8ae9,_0x4ec5f2)=>{const _0x25c115=_0x577dab,_0x138cba={'CzNIX':function(_0x251abf,_0x4d0266){return _0x251abf&_0x4d0266;},'HwXxH':function(_0x2c1b6e,_0x291a3c){return _0x2c1b6e(_0x291a3c);}};{_0x1c8ae9[_0x25c115(0xe9)]|=0x10;}if(_0x138cba[_0x25c115(0x169)](_0x1c8ae9[_0x25c115(0xe9)],0x4)){_0x1c8ae9['$flags$']|=0x200;return;}attachToAncestor(_0x1c8ae9,_0x1c8ae9[_0x25c115(0x17d)]);const _0x108731=()=>dispatchHooks(_0x1c8ae9,_0x4ec5f2);return _0x138cba['HwXxH'](writeTask,_0x108731);},dispatchHooks=(_0x52a111,_0x5552c0)=>{const _0x1fa387=_0x577dab,_0x418f25={'ljAgO':function(_0x494948,_0x5656b6,_0x4383b6){return _0x494948(_0x5656b6,_0x4383b6);},'MQGPa':_0x1fa387(0x157),'QVCVH':function(_0x4c90ec,_0x2889be,_0x376340){return _0x4c90ec(_0x2889be,_0x376340);}},_0x53764b=_0x418f25[_0x1fa387(0xe7)](createTime,_0x1fa387(0x178),_0x52a111[_0x1fa387(0x1db)]['$tagName$']),_0x2f6a9a=_0x52a111[_0x1fa387(0x1cf)];let _0x323b69;if(_0x5552c0){_0x323b69=_0x418f25['ljAgO'](safeCall,_0x2f6a9a,_0x418f25[_0x1fa387(0x11b)]);}return _0x53764b(),_0x418f25[_0x1fa387(0xd7)](then,_0x323b69,()=>updateComponent(_0x52a111,_0x2f6a9a,_0x5552c0));},updateComponent=async(_0x470bad,_0x34fe99,_0x49bbdf)=>{const _0x20e416=_0x577dab,_0x2f57ff={'uFLzb':function(_0x59988f,_0x346bf8){return _0x59988f(_0x346bf8);},'HcFpl':function(_0x23f225,_0x5a8b1a,_0x16c08c){return _0x23f225(_0x5a8b1a,_0x16c08c);},'rdeVF':function(_0x3dbc1b,_0x374ab3,_0x7a7d7d){return _0x3dbc1b(_0x374ab3,_0x7a7d7d);},'tUjsO':_0x20e416(0x132),'pEUPU':function(_0x23dbfe){return _0x23dbfe();},'EelPy':_0x20e416(0x181),'zKToa':function(_0x25ea55,_0x2d0612){return _0x25ea55===_0x2d0612;}},_0x5174f6=_0x470bad[_0x20e416(0x1be)],_0x2b93fc=createTime(_0x20e416(0x194),_0x470bad['$cmpMeta$'][_0x20e416(0xf5)]),_0x101cdd=_0x5174f6[_0x20e416(0x132)];_0x49bbdf&&_0x2f57ff[_0x20e416(0x1aa)](attachStyles,_0x470bad);const _0x241db0=_0x2f57ff[_0x20e416(0xd4)](createTime,_0x20e416(0x12b),_0x470bad[_0x20e416(0x1db)][_0x20e416(0xf5)]);{_0x2f57ff[_0x20e416(0x193)](callRender,_0x470bad,_0x34fe99);}_0x101cdd&&(_0x101cdd[_0x20e416(0x1a5)](_0x325d8a=>_0x325d8a()),_0x5174f6[_0x2f57ff[_0x20e416(0xfc)]]=undefined);_0x241db0(),_0x2f57ff[_0x20e416(0x15d)](_0x2b93fc);{const _0x1da4c2=_0x5174f6[_0x2f57ff['EelPy']],_0x1ab5c0=()=>postUpdateComponent(_0x470bad);_0x2f57ff[_0x20e416(0xcf)](_0x1da4c2[_0x20e416(0x104)],0x0)?_0x2f57ff['pEUPU'](_0x1ab5c0):(Promise[_0x20e416(0x1b7)](_0x1da4c2)[_0x20e416(0x19a)](_0x1ab5c0),_0x470bad[_0x20e416(0xe9)]|=0x4,_0x1da4c2[_0x20e416(0x104)]=0x0);}},callRender=(_0x5dae8b,_0x328690,_0x5a1834)=>{const _0x480f5a=_0x577dab,_0x237cdd={'fKvsO':function(_0x2a4620,_0x28ecfd,_0x36f7bd){return _0x2a4620(_0x28ecfd,_0x36f7bd);}};try{_0x328690=_0x328690[_0x480f5a(0x12b)]();{_0x5dae8b[_0x480f5a(0xe9)]&=~0x10;}{_0x5dae8b[_0x480f5a(0xe9)]|=0x2;}{{{renderVdom(_0x5dae8b,_0x328690);}}}}catch(_0x1e00a1){_0x237cdd['fKvsO'](consoleError,_0x1e00a1,_0x5dae8b[_0x480f5a(0x1be)]);}return null;},postUpdateComponent=_0x10dcdb=>{const _0x148b63=_0x577dab,_0x29f433={'JYbcp':function(_0x308de,_0x36a5c7,_0xb98ee9){return _0x308de(_0x36a5c7,_0xb98ee9);},'XIDms':_0x148b63(0x110),'SFnbx':function(_0x55381d,_0x4b3cd4){return _0x55381d&_0x4b3cd4;},'JiVUK':function(_0x28a303,_0x249ace){return _0x28a303(_0x249ace);},'kjDFv':function(_0x12d2fe){return _0x12d2fe();},'QLObc':function(_0x2f03ea,_0xaf04ad){return _0x2f03ea|_0xaf04ad;}},_0x4270a7=_0x10dcdb[_0x148b63(0x1db)]['$tagName$'],_0x4b1bd1=_0x10dcdb[_0x148b63(0x1be)],_0x18e5d2=_0x29f433['JYbcp'](createTime,_0x29f433[_0x148b63(0xcb)],_0x4270a7),_0xbd1981=_0x10dcdb['$ancestorComponent$'];if(!_0x29f433['SFnbx'](_0x10dcdb[_0x148b63(0xe9)],0x40)){_0x10dcdb[_0x148b63(0xe9)]|=0x40;{_0x29f433[_0x148b63(0x1a8)](addHydratedFlag,_0x4b1bd1);}_0x18e5d2();{_0x10dcdb[_0x148b63(0x1cb)](_0x4b1bd1),!_0xbd1981&&_0x29f433[_0x148b63(0x159)](appDidLoad);}}else _0x18e5d2();{_0x10dcdb['$onRenderResolve$']&&(_0x10dcdb[_0x148b63(0x139)](),_0x10dcdb[_0x148b63(0x139)]=undefined),_0x10dcdb[_0x148b63(0xe9)]&0x200&&_0x29f433[_0x148b63(0x1a8)](nextTick,()=>scheduleUpdate(_0x10dcdb,![])),_0x10dcdb[_0x148b63(0xe9)]&=~_0x29f433['QLObc'](0x4,0x200);}},appDidLoad=_0x5e3486=>{const _0x54f4f6=_0x577dab,_0xd1da88={'CFpJK':function(_0x51e4e1,_0x51d1d5){return _0x51e4e1(_0x51d1d5);},'ztrXC':function(_0x59963f,_0x3329e8){return _0x59963f(_0x3329e8);}};{_0xd1da88['CFpJK'](addHydratedFlag,doc['documentElement']);}_0xd1da88[_0x54f4f6(0x10c)](nextTick,()=>emitEvent(win,_0x54f4f6(0x121),{'detail':{'namespace':NAMESPACE}}));},safeCall=(_0x3b3585,_0x39e695,_0x21557a)=>{const _0x2dc9aa=_0x577dab,_0x3cd90d={'btEVr':function(_0x141e16,_0x217c7f){return _0x141e16(_0x217c7f);}};if(_0x3b3585&&_0x3b3585[_0x39e695])try{return _0x3b3585[_0x39e695](_0x21557a);}catch(_0x50fa3f){_0x3cd90d[_0x2dc9aa(0xc8)](consoleError,_0x50fa3f);}return undefined;},then=(_0x174bf3,_0x55e1ec)=>{const _0x350721=_0x577dab,_0xd73476={'paqxp':function(_0x363fa0){return _0x363fa0();}};return _0x174bf3&&_0x174bf3[_0x350721(0x19a)]?_0x174bf3[_0x350721(0x19a)](_0x55e1ec):_0xd73476['paqxp'](_0x55e1ec);},addHydratedFlag=_0x21a437=>_0x21a437[_0x577dab(0x176)][_0x577dab(0x129)](_0x577dab(0x12a)),getValue=(_0x5d0a44,_0xc257e7)=>getHostRef(_0x5d0a44)['$instanceValues$'][_0x577dab(0x13d)](_0xc257e7),setValue=(_0x254cb4,_0x11d273,_0x72ae34,_0x11754f)=>{const _0x1c7878=_0x577dab,_0x12ac68={'ouCMy':function(_0x31fb8a,_0xd647c8){return _0x31fb8a!==_0xd647c8;},'nPvDm':function(_0x1b8c75,_0x3f38f9){return _0x1b8c75&_0x3f38f9;},'VvWyL':function(_0x45cda9,_0x525adb){return _0x45cda9===_0x525adb;},'rFguf':function(_0x1545dc,_0x5ca253){return _0x1545dc===_0x5ca253;},'CrlkQ':function(_0x42623b,_0x431a61,_0x52e0ff){return _0x42623b(_0x431a61,_0x52e0ff);}},_0x25285a=getHostRef(_0x254cb4),_0xebb527=_0x25285a[_0x1c7878(0x18f)][_0x1c7878(0x13d)](_0x11d273),_0x294e9a=_0x25285a['$flags$'],_0x3c0470=_0x25285a[_0x1c7878(0x1cf)];_0x72ae34=parsePropertyValue(_0x72ae34,_0x11754f['$members$'][_0x11d273][0x0]);const _0x5c19d2=Number[_0x1c7878(0x14c)](_0xebb527)&&Number['isNaN'](_0x72ae34),_0x34135d=_0x12ac68[_0x1c7878(0x198)](_0x72ae34,_0xebb527)&&!_0x5c19d2;(!_0x12ac68['nPvDm'](_0x294e9a,0x8)||_0x12ac68['VvWyL'](_0xebb527,undefined))&&_0x34135d&&(_0x25285a[_0x1c7878(0x18f)]['set'](_0x11d273,_0x72ae34),_0x3c0470&&(_0x12ac68[_0x1c7878(0x192)](_0x294e9a&(0x2|0x10),0x2)&&_0x12ac68['CrlkQ'](scheduleUpdate,_0x25285a,![])));},proxyComponent=(_0x528a81,_0xc1ff4b,_0x5bcb6a)=>{const _0x5f40ed=_0x577dab,_0x1fb270={'TgQbX':function(_0x4e29c8,_0x120c91){return _0x4e29c8&_0x120c91;},'XRCiJ':function(_0x4cb45c,_0x56e26a){return _0x4cb45c&_0x56e26a;},'EdYMK':function(_0x225529,_0x37dda8){return _0x225529===_0x37dda8;},'vxpky':_0x5f40ed(0xdb),'AXfKg':function(_0x3691f5,_0x44e261){return _0x3691f5==_0x44e261;},'pAKEE':function(_0xb18f85,_0x3c3921){return _0xb18f85&_0x3c3921;}};if(_0xc1ff4b[_0x5f40ed(0x19c)]){const _0x1f7e7e=Object['entries'](_0xc1ff4b['$members$']),_0x589698=_0x528a81[_0x5f40ed(0x1b3)];_0x1f7e7e[_0x5f40ed(0x1a5)](([_0x45affa,[_0x58feb2]])=>{const _0x4f6283=_0x5f40ed;(_0x1fb270[_0x4f6283(0x143)](_0x58feb2,0x1f)||_0x1fb270[_0x4f6283(0x145)](_0x5bcb6a,0x2)&&_0x1fb270[_0x4f6283(0x145)](_0x58feb2,0x20))&&Object[_0x4f6283(0x14e)](_0x589698,_0x45affa,{'get'(){return getValue(this,_0x45affa);},'set'(_0x555010){setValue(this,_0x45affa,_0x555010,_0xc1ff4b);},'configurable':!![],'enumerable':!![]});});if(_0x1fb270[_0x5f40ed(0x195)](_0x5bcb6a,0x1)){const _0x2d30ec=new Map();_0x589698[_0x5f40ed(0x17f)]=function(_0x45051c,_0xa8a6b4,_0x2ab561){const _0x1dbb9f=_0x5f40ed,_0x53debf={'nteLZ':function(_0x5322f7,_0x36f134){return _0x1fb270['EdYMK'](_0x5322f7,_0x36f134);},'CRIGv':_0x1fb270['vxpky'],'GJTbK':function(_0x21b33c,_0x1303bc){const _0x5396bb=_0x4569;return _0x1fb270[_0x5396bb(0xf0)](_0x21b33c,_0x1303bc);},'puQQm':function(_0x18d5b3,_0x4025a7){const _0x2d9809=_0x4569;return _0x1fb270[_0x2d9809(0x16e)](_0x18d5b3,_0x4025a7);}};plt[_0x1dbb9f(0x1b9)](()=>{const _0x3806b5=_0x1dbb9f,_0x11d24a=_0x2d30ec[_0x3806b5(0x13d)](_0x45051c);if(this[_0x3806b5(0x103)](_0x11d24a))_0x2ab561=this[_0x11d24a],delete this[_0x11d24a];else{if(_0x589698[_0x3806b5(0x103)](_0x11d24a)&&_0x53debf[_0x3806b5(0x14a)](typeof this[_0x11d24a],_0x53debf[_0x3806b5(0x17b)])&&_0x53debf[_0x3806b5(0xc9)](this[_0x11d24a],_0x2ab561))return;}this[_0x11d24a]=_0x53debf[_0x3806b5(0x14a)](_0x2ab561,null)&&_0x53debf[_0x3806b5(0x112)](typeof this[_0x11d24a],'boolean')?![]:_0x2ab561;});},_0x528a81[_0x5f40ed(0x1cc)]=_0x1f7e7e['filter'](([_0x12a1d6,_0x580bd7])=>_0x580bd7[0x0]&0xf)[_0x5f40ed(0x1a5)](([_0xcdb77b,_0x45e0c4])=>{const _0x350f7b=_0x5f40ed,_0x13f303=_0x45e0c4[0x1]||_0xcdb77b;return _0x2d30ec[_0x350f7b(0x14f)](_0x13f303,_0xcdb77b),_0x1fb270[_0x350f7b(0x195)](_0x45e0c4[0x0],0x200)&&_0xc1ff4b['$attrsToReflect$'][_0x350f7b(0xea)]([_0xcdb77b,_0x13f303]),_0x13f303;});}}return _0x528a81;},initializeComponent=async(_0x3055b9,_0x473c12,_0x3b3064,_0x5157b2,_0x45dbb4)=>{const _0x47ff22=_0x577dab,_0x384332={'YTvuX':function(_0x1d4be7,_0x46b446){return _0x1d4be7===_0x46b446;},'ZkYYQ':function(_0x3a57af,_0xe864ce){return _0x3a57af&_0xe864ce;},'pcZvr':function(_0x424fd7,_0x6b846b){return _0x424fd7(_0x6b846b);},'cKTQD':function(_0xcf1fc9){return _0xcf1fc9();},'YZiKC':function(_0x4a0ca6){return _0x4a0ca6();},'YfkHD':function(_0x5805c1,_0x259a5a,_0x310758){return _0x5805c1(_0x259a5a,_0x310758);},'uyILe':function(_0x451584,_0x3d232c){return _0x451584(_0x3d232c);},'MEYAX':function(_0x4995b3){return _0x4995b3();},'JhJFy':function(_0x268e00,_0x4caf59){return _0x268e00(_0x4caf59);},'vHglN':function(_0x21273f,_0x456429,_0x115478){return _0x21273f(_0x456429,_0x115478);},'BrsTk':_0x47ff22(0x1cd),'EttUn':function(_0x205831,_0x836c4d,_0x218f6e,_0x416654){return _0x205831(_0x836c4d,_0x218f6e,_0x416654);},'FIarV':function(_0x1f79a3,_0x240b8c){return _0x1f79a3&_0x240b8c;},'uCxEJ':'s-rc'};if(_0x384332[_0x47ff22(0x12c)](_0x384332['ZkYYQ'](_0x473c12[_0x47ff22(0xe9)],0x20),0x0)){{_0x473c12[_0x47ff22(0xe9)]|=0x20,_0x45dbb4=_0x384332[_0x47ff22(0x191)](loadModule,_0x3b3064);if(_0x45dbb4[_0x47ff22(0x19a)]){const _0x13f49b=_0x384332['cKTQD'](uniqueTime);_0x45dbb4=await _0x45dbb4,_0x384332['YZiKC'](_0x13f49b);}!_0x45dbb4[_0x47ff22(0x1c8)]&&(proxyComponent(_0x45dbb4,_0x3b3064,0x2),_0x45dbb4[_0x47ff22(0x1c8)]=!![]);const _0x2ee7ea=_0x384332[_0x47ff22(0x11d)](createTime,_0x47ff22(0x128),_0x3b3064[_0x47ff22(0xf5)]);{_0x473c12[_0x47ff22(0xe9)]|=0x8;}try{new _0x45dbb4(_0x473c12);}catch(_0x4c4a0f){_0x384332[_0x47ff22(0x196)](consoleError,_0x4c4a0f);}{_0x473c12['$flags$']&=~0x8;}_0x384332[_0x47ff22(0x16d)](_0x2ee7ea),_0x384332[_0x47ff22(0xf9)](fireConnectedCallback,_0x473c12[_0x47ff22(0x1cf)]);}if(_0x45dbb4[_0x47ff22(0x1bc)]){let _0xe8d86d=_0x45dbb4[_0x47ff22(0x1bc)];const _0xa168db=getScopeId(_0x3b3064);if(!styles[_0x47ff22(0x140)](_0xa168db)){const _0x582dcf=_0x384332[_0x47ff22(0xf3)](createTime,_0x384332[_0x47ff22(0xe5)],_0x3b3064[_0x47ff22(0xf5)]);_0x384332[_0x47ff22(0x1ad)](registerStyle,_0xa168db,_0xe8d86d,!!_0x384332[_0x47ff22(0xc3)](_0x3b3064[_0x47ff22(0xe9)],0x1)),_0x384332[_0x47ff22(0x17c)](_0x582dcf);}}}const _0x2d114d=_0x473c12[_0x47ff22(0x17d)],_0xe078a1=()=>scheduleUpdate(_0x473c12,!![]);_0x2d114d&&_0x2d114d[_0x384332[_0x47ff22(0x18e)]]?_0x2d114d[_0x384332[_0x47ff22(0x18e)]][_0x47ff22(0xea)](_0xe078a1):_0x384332['cKTQD'](_0xe078a1);},fireConnectedCallback=_0x1cbb8c=>{const _0x4feac5=_0x577dab,_0x245251={'pPWVw':_0x4feac5(0x10a)};{safeCall(_0x1cbb8c,_0x245251[_0x4feac5(0x189)]);}},connectedCallback=_0x50b293=>{const _0x267fa5=_0x577dab,_0x50fdae={'yGAMF':function(_0x5f0c65,_0x406a24){return _0x5f0c65&_0x406a24;},'kJcob':function(_0x3ccaeb,_0x7239bd){return _0x3ccaeb===_0x7239bd;},'XtFRB':function(_0x4e1fd9,_0x22ea5e){return _0x4e1fd9&_0x22ea5e;},'VZwvv':function(_0x3155da,_0x26f185){return _0x3155da(_0x26f185);},'HdAsm':_0x267fa5(0x10a),'FuKXo':function(_0x17b06d,_0x185810){return _0x17b06d&_0x185810;},'yZTZH':'s-p','asbzY':function(_0x53d2bf,_0x1592d5,_0x207e42){return _0x53d2bf(_0x1592d5,_0x207e42);},'XgmWZ':function(_0x4e3cc3,_0x1642ad){return _0x4e3cc3(_0x1642ad);}};if(_0x50fdae[_0x267fa5(0x161)](_0x50fdae[_0x267fa5(0x183)](plt[_0x267fa5(0xe9)],0x1),0x0)){const _0x585a49=_0x50fdae[_0x267fa5(0x184)](getHostRef,_0x50b293),_0x464802=_0x585a49[_0x267fa5(0x1db)],_0x252d87=createTime(_0x50fdae['HdAsm'],_0x464802[_0x267fa5(0xf5)]);if(!_0x50fdae[_0x267fa5(0xcd)](_0x585a49[_0x267fa5(0xe9)],0x1)){_0x585a49[_0x267fa5(0xe9)]|=0x1;{let _0x2ea51b=_0x50b293;while(_0x2ea51b=_0x2ea51b[_0x267fa5(0x1a6)]||_0x2ea51b['host']){if(_0x2ea51b[_0x50fdae[_0x267fa5(0xfb)]]){_0x50fdae['asbzY'](attachToAncestor,_0x585a49,_0x585a49[_0x267fa5(0x17d)]=_0x2ea51b);break;}}}_0x464802[_0x267fa5(0x19c)]&&Object[_0x267fa5(0x11a)](_0x464802['$members$'])['map'](([_0x2e7b81,[_0x1e6ad2]])=>{const _0x4a16dc=_0x267fa5;if(_0x50fdae[_0x4a16dc(0x149)](_0x1e6ad2,0x1f)&&_0x50b293['hasOwnProperty'](_0x2e7b81)){const _0x139f55=_0x50b293[_0x2e7b81];delete _0x50b293[_0x2e7b81],_0x50b293[_0x2e7b81]=_0x139f55;}});{initializeComponent(_0x50b293,_0x585a49,_0x464802);}}else _0x50fdae['XgmWZ'](fireConnectedCallback,_0x585a49[_0x267fa5(0x1cf)]);_0x252d87();}},disconnectedCallback=_0x4b43f5=>{const _0x547f3f=_0x577dab,_0x3e1e5d={'ZBaVp':function(_0x70fc62,_0x5ef186){return _0x70fc62===_0x5ef186;},'mKWCk':function(_0x42e033,_0x306932){return _0x42e033&_0x306932;},'fQdCo':function(_0x14b488,_0x5757e3){return _0x14b488(_0x5757e3);},'PEpwv':function(_0x23edf8,_0x5a8ffa,_0x284554){return _0x23edf8(_0x5a8ffa,_0x284554);},'ERlpn':_0x547f3f(0x124)};if(_0x3e1e5d['ZBaVp'](_0x3e1e5d['mKWCk'](plt[_0x547f3f(0xe9)],0x1),0x0)){const _0x976bc1=_0x3e1e5d['fQdCo'](getHostRef,_0x4b43f5),_0x397bab=_0x976bc1[_0x547f3f(0x1cf)];{_0x3e1e5d[_0x547f3f(0xf7)](safeCall,_0x397bab,_0x3e1e5d[_0x547f3f(0x1ca)]);}}},bootstrapLazy=(_0x1d9067,_0x85d25f={})=>{const _0x55fb22=_0x577dab,_0x18d0e6={'ccWOs':function(_0x3731f3,_0x28fa7b,_0x235808){return _0x3731f3(_0x28fa7b,_0x235808);},'xHvar':_0x55fb22(0xfd),'tACFy':function(_0xd62b15,_0x2821c8){return _0xd62b15(_0x2821c8);},'zGCyA':function(_0xfc4505){return _0xfc4505();},'BDLzt':_0x55fb22(0x180),'zKTTy':_0x55fb22(0x150),'aNLmS':function(_0x5c3b42,_0xc44547){return _0x5c3b42!==_0xc44547;},'tLtCK':function(_0x439caf,_0x3d2e82){return _0x439caf!==_0x3d2e82;},'ODrVe':function(_0x193691,_0x55f73e){return _0x193691(_0x55f73e);},'xxMPp':function(_0x2864c8,_0x38eb0e){return _0x2864c8!=_0x38eb0e;},'wxhFd':_0x55fb22(0xe8)};var _0x230e7a;const _0x46c55f=_0x18d0e6[_0x55fb22(0x19b)](createTime),_0x35ca30=[],_0x1c800f=_0x85d25f['exclude']||[],_0x4b218e=win[_0x55fb22(0x131)],_0x536dcd=doc[_0x55fb22(0x1bf)],_0x576379=_0x536dcd['querySelector'](_0x18d0e6[_0x55fb22(0x158)]),_0x4b2b14=doc[_0x55fb22(0x138)]('style'),_0x4a2dc2=[];let _0x245b98,_0x13a84d=!![];Object[_0x55fb22(0x15c)](plt,_0x85d25f),plt['$resourcesUrl$']=new URL(_0x85d25f[_0x55fb22(0x123)]||'./',doc[_0x55fb22(0x182)])['href'],_0x1d9067[_0x55fb22(0x1a5)](_0x316341=>{const _0x4ee204=_0x55fb22,_0x25a988={'sDIOe':function(_0x53d624,_0x14e0be,_0x1d37c0){const _0x58f5de=_0x4569;return _0x18d0e6[_0x58f5de(0x17e)](_0x53d624,_0x14e0be,_0x1d37c0);},'UnWVG':_0x18d0e6['xHvar'],'qDeDZ':function(_0xb96176,_0x35f04c){return _0xb96176(_0x35f04c);},'KHNcc':function(_0x5bec94,_0x291e42){const _0x44e3f7=_0x4569;return _0x18d0e6[_0x44e3f7(0xed)](_0x5bec94,_0x291e42);}};_0x316341[0x1][_0x4ee204(0x1a5)](_0x516c5a=>{const _0x4a6b58=_0x4ee204,_0x4aa39d={'ppuvt':function(_0x57e9a6,_0x361afc){const _0x184500=_0x4569;return _0x25a988[_0x184500(0xc2)](_0x57e9a6,_0x361afc);},'vBtwI':function(_0x21e174,_0x3b64e3){return _0x25a988['KHNcc'](_0x21e174,_0x3b64e3);}},_0x1860b3={'$flags$':_0x516c5a[0x0],'$tagName$':_0x516c5a[0x1],'$members$':_0x516c5a[0x2],'$listeners$':_0x516c5a[0x3]};{_0x1860b3[_0x4a6b58(0x19c)]=_0x516c5a[0x2];}{_0x1860b3[_0x4a6b58(0xbf)]=[];}const _0x33724e=_0x1860b3[_0x4a6b58(0xf5)],_0x25d08d=class extends HTMLElement{constructor(_0x5ad843){const _0x2f9259=_0x4a6b58;super(_0x5ad843),_0x5ad843=this,_0x25a988[_0x2f9259(0xef)](registerHost,_0x5ad843,_0x1860b3);if(_0x1860b3[_0x2f9259(0xe9)]&0x1){{_0x5ad843[_0x2f9259(0x1b1)]({'mode':_0x25a988['UnWVG']});}}}[_0x4a6b58(0x10a)](){const _0x3f3b44=_0x4a6b58;_0x245b98&&(_0x4aa39d[_0x3f3b44(0x1ae)](clearTimeout,_0x245b98),_0x245b98=null),_0x13a84d?_0x4a2dc2['push'](this):plt[_0x3f3b44(0x1b9)](()=>connectedCallback(this));}['disconnectedCallback'](){plt['jmp'](()=>disconnectedCallback(this));}[_0x4a6b58(0x17a)](){const _0x3ef875=_0x4a6b58;return _0x4aa39d[_0x3ef875(0x19d)](getHostRef,this)[_0x3ef875(0x1d7)];}};_0x1860b3[_0x4a6b58(0xff)]=_0x316341[0x0],!_0x1c800f[_0x4a6b58(0x1d3)](_0x33724e)&&!_0x4b218e[_0x4a6b58(0x13d)](_0x33724e)&&(_0x35ca30[_0x4a6b58(0xea)](_0x33724e),_0x4b218e[_0x4a6b58(0xe4)](_0x33724e,proxyComponent(_0x25d08d,_0x1860b3,0x1)));});});{_0x4b2b14['innerHTML']=_0x35ca30+HYDRATED_CSS,_0x4b2b14[_0x55fb22(0x152)](_0x18d0e6[_0x55fb22(0x154)],'');const _0x524509=_0x18d0e6['aNLmS'](_0x230e7a=plt['$nonce$'],null)&&_0x18d0e6[_0x55fb22(0x1a0)](_0x230e7a,void 0x0)?_0x230e7a:_0x18d0e6[_0x55fb22(0x15b)](queryNonceMetaTagContent,doc);_0x18d0e6['xxMPp'](_0x524509,null)&&_0x4b2b14[_0x55fb22(0x152)](_0x18d0e6[_0x55fb22(0xdd)],_0x524509),_0x536dcd['insertBefore'](_0x4b2b14,_0x576379?_0x576379[_0x55fb22(0x15f)]:_0x536dcd['firstChild']);}_0x13a84d=![];if(_0x4a2dc2[_0x55fb22(0x104)])_0x4a2dc2['map'](_0x5f4054=>_0x5f4054[_0x55fb22(0x10a)]());else{plt[_0x55fb22(0x1b9)](()=>_0x245b98=setTimeout(appDidLoad,0x1e));}_0x46c55f();},setNonce=_0x1bdc7a=>plt['$nonce$']=_0x1bdc7a,hostRefs=new WeakMap(),getHostRef=_0x1d7ebd=>hostRefs[_0x577dab(0x13d)](_0x1d7ebd),registerInstance=(_0x375f83,_0x1e9f70)=>hostRefs[_0x577dab(0x14f)](_0x1e9f70[_0x577dab(0x1cf)]=_0x375f83,_0x1e9f70),registerHost=(_0x3a3920,_0x4104b8)=>{const _0xea3f70=_0x577dab,_0x241ae8={'WmuXu':_0xea3f70(0x181),'pGUmF':_0xea3f70(0x132)},_0x12933f={'$flags$':0x0,'$hostElement$':_0x3a3920,'$cmpMeta$':_0x4104b8,'$instanceValues$':new Map()};{_0x12933f[_0xea3f70(0x1d7)]=new Promise(_0x48a208=>_0x12933f[_0xea3f70(0x1cb)]=_0x48a208),_0x3a3920[_0x241ae8[_0xea3f70(0xda)]]=[],_0x3a3920[_0x241ae8[_0xea3f70(0x1a9)]]=[];}return hostRefs[_0xea3f70(0x14f)](_0x3a3920,_0x12933f);},isMemberInElement=(_0x1508b2,_0x568b21)=>_0x568b21 in _0x1508b2,consoleError=(_0x41e1cc,_0x2eb14a)=>(0x0,console[_0x577dab(0x13c)])(_0x41e1cc,_0x2eb14a),cmpModules=new Map(),loadModule=(_0x4df7d9,_0x392aec,_0x4a686e)=>{const _0x320386=_0x577dab,_0x384b92={'wNhnW':function(_0x59a405,_0x3b7283){return _0x59a405(_0x3b7283);}},_0x532914=_0x4df7d9['$tagName$'][_0x320386(0x12e)](/-/g,'_'),_0x38f982=_0x4df7d9[_0x320386(0xff)],_0x55b828=cmpModules[_0x320386(0x13d)](_0x38f982);if(_0x55b828)return _0x55b828[_0x532914];return Promise[_0x320386(0x1a2)]()[_0x320386(0x19a)](function(){const _0x36e18c=_0x320386;return _0x384b92[_0x36e18c(0x167)](_interopNamespace,require('./'+_0x38f982+_0x36e18c(0x15e)));})[_0x320386(0x19a)](_0x29363e=>{{cmpModules['set'](_0x38f982,_0x29363e);}return _0x29363e[_0x532914];},consoleError);},styles=new Map(),win=typeof window!==_0x577dab(0x175)?window:{},doc=win['document']||{'head':{}},plt={'$flags$':0x0,'$resourcesUrl$':'','jmp':_0x1f2f59=>_0x1f2f59(),'raf':_0x4619eb=>requestAnimationFrame(_0x4619eb),'ael':(_0xf7ac4,_0x17a6a2,_0x2738e4,_0x15f889)=>_0xf7ac4['addEventListener'](_0x17a6a2,_0x2738e4,_0x15f889),'rel':(_0x39e7f5,_0x262373,_0x3ebcfb,_0x311e6f)=>_0x39e7f5['removeEventListener'](_0x262373,_0x3ebcfb,_0x311e6f),'ce':(_0x308b92,_0x16158a)=>new CustomEvent(_0x308b92,_0x16158a)},promiseResolve=_0x55127a=>Promise[_0x577dab(0x1a2)](_0x55127a),supportsConstructableStylesheets=((()=>{const _0x44fb6e=_0x577dab,_0x5e1ff2={'NeFra':function(_0x5df985,_0x5bf22b){return _0x5df985===_0x5bf22b;}};try{return new CSSStyleSheet(),_0x5e1ff2[_0x44fb6e(0x190)](typeof new CSSStyleSheet()[_0x44fb6e(0x18d)],_0x44fb6e(0xd1));}catch(_0x35d4cf){}return![];})()),queueDomReads=[],queueDomWrites=[],queueTask=(_0x83f38e,_0x42c354)=>_0x3b5b85=>{const _0xfdedd8=_0x577dab,_0x5653d4={'tHZpP':function(_0x45cc9f,_0x57ae88){return _0x45cc9f(_0x57ae88);}};_0x83f38e[_0xfdedd8(0xea)](_0x3b5b85),!queuePending&&(queuePending=!![],_0x42c354&&plt[_0xfdedd8(0xe9)]&0x4?_0x5653d4[_0xfdedd8(0x187)](nextTick,flush):plt[_0xfdedd8(0xbe)](flush));},consume=_0x36a5af=>{const _0xe5a292=_0x577dab,_0x7c4743={'Njbck':function(_0x12f308,_0x4cacf2){return _0x12f308<_0x4cacf2;},'iwFrT':function(_0x518df9,_0x56ef48){return _0x518df9(_0x56ef48);}};for(let _0x49e647=0x0;_0x7c4743['Njbck'](_0x49e647,_0x36a5af[_0xe5a292(0x104)]);_0x49e647++){try{_0x36a5af[_0x49e647](performance[_0xe5a292(0xc4)]());}catch(_0x54ede8){_0x7c4743[_0xe5a292(0x1b0)](consoleError,_0x54ede8);}}_0x36a5af['length']=0x0;},flush=()=>{const _0x156eb7=_0x577dab,_0x12c18b={'ATGAE':function(_0x5aa86b,_0xb97734){return _0x5aa86b(_0xb97734);},'bqcJM':function(_0x4e272b,_0x33fd6b){return _0x4e272b>_0x33fd6b;}};_0x12c18b[_0x156eb7(0x115)](consume,queueDomReads);{consume(queueDomWrites),(queuePending=_0x12c18b[_0x156eb7(0xf2)](queueDomReads[_0x156eb7(0x104)],0x0))&&plt[_0x156eb7(0xbe)](flush);}},nextTick=_0x3867f1=>promiseResolve()[_0x577dab(0x19a)](_0x3867f1),writeTask=queueTask(queueDomWrites,!![]);function _0x4569(_0xd93324,_0x4b5f16){const _0x33fe7d=_0x33fe();return _0x4569=function(_0x456997,_0x3ff06c){_0x456997=_0x456997-0xbd;let _0x177eff=_0x33fe7d[_0x456997];return _0x177eff;},_0x4569(_0xd93324,_0x4b5f16);}exports[_0x577dab(0x125)]=Host,exports[_0x577dab(0x16c)]=bootstrapLazy,exports['h']=h,exports[_0x577dab(0xfe)]=promiseResolve,exports[_0x577dab(0x111)]=registerInstance,exports[_0x577dab(0xf8)]=setNonce;
|