pr360-questionnaire 2.1.11 → 2.2.11
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/build/questionnaire-test.js +10905 -13331
- package/css/app.scss +1 -0
- package/css/components/_forms.scss +80 -0
- package/css/components/_modal.scss +15 -3
- package/css/components/_network-live.scss +210 -0
- package/css/components/_tables.scss +0 -11
- package/css/questionnaire.lit.scss +48 -0
- package/dist/index.js +978 -2626
- package/js/questionnaire.ts +74 -3
- package/package.json +1 -1
- package/test/questionnaire-test.ts +48 -1
package/dist/index.js
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5
5
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
6
6
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
7
|
-
for (var
|
|
8
|
-
if (decorator = decorators[
|
|
7
|
+
for (var i7 = decorators.length - 1, decorator; i7 >= 0; i7--)
|
|
8
|
+
if (decorator = decorators[i7])
|
|
9
9
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
10
10
|
if (kind && result)
|
|
11
11
|
__defProp(target, key, result);
|
|
@@ -33,245 +33,251 @@
|
|
|
33
33
|
setter ? setter.call(obj, value) : member.set(obj, value);
|
|
34
34
|
return value;
|
|
35
35
|
};
|
|
36
|
-
var __privateMethod = (obj, member, method) => {
|
|
37
|
-
__accessCheck(obj, member, "access private method");
|
|
38
|
-
return method;
|
|
39
|
-
};
|
|
40
36
|
|
|
41
|
-
// node_modules
|
|
37
|
+
// node_modules/@lit/reactive-element/css-tag.js
|
|
42
38
|
var t = window;
|
|
43
39
|
var e = t.ShadowRoot && (void 0 === t.ShadyCSS || t.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype;
|
|
44
40
|
var s = Symbol();
|
|
45
41
|
var n = /* @__PURE__ */ new WeakMap();
|
|
46
42
|
var o = class {
|
|
47
|
-
constructor(
|
|
48
|
-
if (this._$cssResult$ = true,
|
|
43
|
+
constructor(t5, e8, n7) {
|
|
44
|
+
if (this._$cssResult$ = true, n7 !== s)
|
|
49
45
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
50
|
-
this.cssText =
|
|
46
|
+
this.cssText = t5, this.t = e8;
|
|
51
47
|
}
|
|
52
48
|
get styleSheet() {
|
|
53
|
-
let
|
|
54
|
-
const
|
|
55
|
-
if (e && void 0 ===
|
|
56
|
-
const
|
|
57
|
-
|
|
49
|
+
let t5 = this.o;
|
|
50
|
+
const s6 = this.t;
|
|
51
|
+
if (e && void 0 === t5) {
|
|
52
|
+
const e8 = void 0 !== s6 && 1 === s6.length;
|
|
53
|
+
e8 && (t5 = n.get(s6)), void 0 === t5 && ((this.o = t5 = new CSSStyleSheet()).replaceSync(this.cssText), e8 && n.set(s6, t5));
|
|
58
54
|
}
|
|
59
|
-
return
|
|
55
|
+
return t5;
|
|
60
56
|
}
|
|
61
57
|
toString() {
|
|
62
58
|
return this.cssText;
|
|
63
59
|
}
|
|
64
60
|
};
|
|
65
|
-
var r = (
|
|
66
|
-
var
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
61
|
+
var r = (t5) => new o("string" == typeof t5 ? t5 : t5 + "", void 0, s);
|
|
62
|
+
var i = (t5, ...e8) => {
|
|
63
|
+
const n7 = 1 === t5.length ? t5[0] : e8.reduce((e9, s6, n8) => e9 + ((t6) => {
|
|
64
|
+
if (true === t6._$cssResult$)
|
|
65
|
+
return t6.cssText;
|
|
66
|
+
if ("number" == typeof t6)
|
|
67
|
+
return t6;
|
|
68
|
+
throw Error("Value passed to 'css' function must be a 'css' function result: " + t6 + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
69
|
+
})(s6) + t5[n8 + 1], t5[0]);
|
|
70
|
+
return new o(n7, t5, s);
|
|
71
|
+
};
|
|
72
|
+
var S = (s6, n7) => {
|
|
73
|
+
e ? s6.adoptedStyleSheets = n7.map((t5) => t5 instanceof CSSStyleSheet ? t5 : t5.styleSheet) : n7.forEach((e8) => {
|
|
74
|
+
const n8 = document.createElement("style"), o6 = t.litNonce;
|
|
75
|
+
void 0 !== o6 && n8.setAttribute("nonce", o6), n8.textContent = e8.cssText, s6.appendChild(n8);
|
|
70
76
|
});
|
|
71
77
|
};
|
|
72
|
-
var c = e ? (
|
|
73
|
-
let
|
|
74
|
-
for (const
|
|
75
|
-
|
|
76
|
-
return r(
|
|
77
|
-
})(
|
|
78
|
+
var c = e ? (t5) => t5 : (t5) => t5 instanceof CSSStyleSheet ? ((t6) => {
|
|
79
|
+
let e8 = "";
|
|
80
|
+
for (const s6 of t6.cssRules)
|
|
81
|
+
e8 += s6.cssText;
|
|
82
|
+
return r(e8);
|
|
83
|
+
})(t5) : t5;
|
|
78
84
|
|
|
79
|
-
// node_modules
|
|
85
|
+
// node_modules/@lit/reactive-element/reactive-element.js
|
|
80
86
|
var s2;
|
|
81
87
|
var e2 = window;
|
|
82
88
|
var r2 = e2.trustedTypes;
|
|
83
89
|
var h = r2 ? r2.emptyScript : "";
|
|
84
90
|
var o2 = e2.reactiveElementPolyfillSupport;
|
|
85
|
-
var n2 = { toAttribute(
|
|
86
|
-
switch (
|
|
91
|
+
var n2 = { toAttribute(t5, i7) {
|
|
92
|
+
switch (i7) {
|
|
87
93
|
case Boolean:
|
|
88
|
-
|
|
94
|
+
t5 = t5 ? h : null;
|
|
89
95
|
break;
|
|
90
96
|
case Object:
|
|
91
97
|
case Array:
|
|
92
|
-
|
|
98
|
+
t5 = null == t5 ? t5 : JSON.stringify(t5);
|
|
93
99
|
}
|
|
94
|
-
return
|
|
95
|
-
}, fromAttribute(
|
|
96
|
-
let
|
|
97
|
-
switch (
|
|
100
|
+
return t5;
|
|
101
|
+
}, fromAttribute(t5, i7) {
|
|
102
|
+
let s6 = t5;
|
|
103
|
+
switch (i7) {
|
|
98
104
|
case Boolean:
|
|
99
|
-
|
|
105
|
+
s6 = null !== t5;
|
|
100
106
|
break;
|
|
101
107
|
case Number:
|
|
102
|
-
|
|
108
|
+
s6 = null === t5 ? null : Number(t5);
|
|
103
109
|
break;
|
|
104
110
|
case Object:
|
|
105
111
|
case Array:
|
|
106
112
|
try {
|
|
107
|
-
|
|
108
|
-
} catch (
|
|
109
|
-
|
|
113
|
+
s6 = JSON.parse(t5);
|
|
114
|
+
} catch (t6) {
|
|
115
|
+
s6 = null;
|
|
110
116
|
}
|
|
111
117
|
}
|
|
112
|
-
return
|
|
118
|
+
return s6;
|
|
113
119
|
} };
|
|
114
|
-
var a = (
|
|
120
|
+
var a = (t5, i7) => i7 !== t5 && (i7 == i7 || t5 == t5);
|
|
115
121
|
var l = { attribute: true, type: String, converter: n2, reflect: false, hasChanged: a };
|
|
116
122
|
var d = "finalized";
|
|
117
123
|
var u = class extends HTMLElement {
|
|
118
124
|
constructor() {
|
|
119
|
-
super(), this._$Ei = /* @__PURE__ */ new Map(), this.isUpdatePending = false, this.hasUpdated = false, this._$El = null, this.
|
|
125
|
+
super(), this._$Ei = /* @__PURE__ */ new Map(), this.isUpdatePending = false, this.hasUpdated = false, this._$El = null, this.u();
|
|
120
126
|
}
|
|
121
|
-
static addInitializer(
|
|
122
|
-
var
|
|
123
|
-
this.finalize(), (null !== (
|
|
127
|
+
static addInitializer(t5) {
|
|
128
|
+
var i7;
|
|
129
|
+
this.finalize(), (null !== (i7 = this.h) && void 0 !== i7 ? i7 : this.h = []).push(t5);
|
|
124
130
|
}
|
|
125
131
|
static get observedAttributes() {
|
|
126
132
|
this.finalize();
|
|
127
|
-
const
|
|
128
|
-
return this.elementProperties.forEach((
|
|
129
|
-
const
|
|
130
|
-
void 0 !==
|
|
131
|
-
}),
|
|
133
|
+
const t5 = [];
|
|
134
|
+
return this.elementProperties.forEach((i7, s6) => {
|
|
135
|
+
const e8 = this._$Ep(s6, i7);
|
|
136
|
+
void 0 !== e8 && (this._$Ev.set(e8, s6), t5.push(e8));
|
|
137
|
+
}), t5;
|
|
132
138
|
}
|
|
133
|
-
static createProperty(
|
|
134
|
-
if (
|
|
135
|
-
const
|
|
136
|
-
void 0 !==
|
|
139
|
+
static createProperty(t5, i7 = l) {
|
|
140
|
+
if (i7.state && (i7.attribute = false), this.finalize(), this.elementProperties.set(t5, i7), !i7.noAccessor && !this.prototype.hasOwnProperty(t5)) {
|
|
141
|
+
const s6 = "symbol" == typeof t5 ? Symbol() : "__" + t5, e8 = this.getPropertyDescriptor(t5, s6, i7);
|
|
142
|
+
void 0 !== e8 && Object.defineProperty(this.prototype, t5, e8);
|
|
137
143
|
}
|
|
138
144
|
}
|
|
139
|
-
static getPropertyDescriptor(
|
|
145
|
+
static getPropertyDescriptor(t5, i7, s6) {
|
|
140
146
|
return { get() {
|
|
141
|
-
return this[
|
|
142
|
-
}, set(
|
|
143
|
-
const
|
|
144
|
-
this[
|
|
147
|
+
return this[i7];
|
|
148
|
+
}, set(e8) {
|
|
149
|
+
const r6 = this[t5];
|
|
150
|
+
this[i7] = e8, this.requestUpdate(t5, r6, s6);
|
|
145
151
|
}, configurable: true, enumerable: true };
|
|
146
152
|
}
|
|
147
|
-
static getPropertyOptions(
|
|
148
|
-
return this.elementProperties.get(
|
|
153
|
+
static getPropertyOptions(t5) {
|
|
154
|
+
return this.elementProperties.get(t5) || l;
|
|
149
155
|
}
|
|
150
156
|
static finalize() {
|
|
151
157
|
if (this.hasOwnProperty(d))
|
|
152
158
|
return false;
|
|
153
159
|
this[d] = true;
|
|
154
|
-
const
|
|
155
|
-
if (
|
|
156
|
-
const
|
|
157
|
-
for (const
|
|
158
|
-
this.createProperty(
|
|
160
|
+
const t5 = Object.getPrototypeOf(this);
|
|
161
|
+
if (t5.finalize(), void 0 !== t5.h && (this.h = [...t5.h]), this.elementProperties = new Map(t5.elementProperties), this._$Ev = /* @__PURE__ */ new Map(), this.hasOwnProperty("properties")) {
|
|
162
|
+
const t6 = this.properties, i7 = [...Object.getOwnPropertyNames(t6), ...Object.getOwnPropertySymbols(t6)];
|
|
163
|
+
for (const s6 of i7)
|
|
164
|
+
this.createProperty(s6, t6[s6]);
|
|
159
165
|
}
|
|
160
166
|
return this.elementStyles = this.finalizeStyles(this.styles), true;
|
|
161
167
|
}
|
|
162
|
-
static finalizeStyles(
|
|
163
|
-
const
|
|
164
|
-
if (Array.isArray(
|
|
165
|
-
const
|
|
166
|
-
for (const
|
|
167
|
-
|
|
168
|
+
static finalizeStyles(i7) {
|
|
169
|
+
const s6 = [];
|
|
170
|
+
if (Array.isArray(i7)) {
|
|
171
|
+
const e8 = new Set(i7.flat(1 / 0).reverse());
|
|
172
|
+
for (const i8 of e8)
|
|
173
|
+
s6.unshift(c(i8));
|
|
168
174
|
} else
|
|
169
|
-
void 0 !==
|
|
170
|
-
return
|
|
175
|
+
void 0 !== i7 && s6.push(c(i7));
|
|
176
|
+
return s6;
|
|
171
177
|
}
|
|
172
|
-
static _$Ep(
|
|
173
|
-
const
|
|
174
|
-
return false ===
|
|
178
|
+
static _$Ep(t5, i7) {
|
|
179
|
+
const s6 = i7.attribute;
|
|
180
|
+
return false === s6 ? void 0 : "string" == typeof s6 ? s6 : "string" == typeof t5 ? t5.toLowerCase() : void 0;
|
|
175
181
|
}
|
|
176
|
-
|
|
177
|
-
var
|
|
178
|
-
this._$E_ = new Promise((
|
|
182
|
+
u() {
|
|
183
|
+
var t5;
|
|
184
|
+
this._$E_ = new Promise((t6) => this.enableUpdating = t6), this._$AL = /* @__PURE__ */ new Map(), this._$Eg(), this.requestUpdate(), null === (t5 = this.constructor.h) || void 0 === t5 || t5.forEach((t6) => t6(this));
|
|
179
185
|
}
|
|
180
|
-
addController(
|
|
181
|
-
var
|
|
182
|
-
(null !== (
|
|
186
|
+
addController(t5) {
|
|
187
|
+
var i7, s6;
|
|
188
|
+
(null !== (i7 = this._$ES) && void 0 !== i7 ? i7 : this._$ES = []).push(t5), void 0 !== this.renderRoot && this.isConnected && (null === (s6 = t5.hostConnected) || void 0 === s6 || s6.call(t5));
|
|
183
189
|
}
|
|
184
|
-
removeController(
|
|
185
|
-
var
|
|
186
|
-
null === (
|
|
190
|
+
removeController(t5) {
|
|
191
|
+
var i7;
|
|
192
|
+
null === (i7 = this._$ES) || void 0 === i7 || i7.splice(this._$ES.indexOf(t5) >>> 0, 1);
|
|
187
193
|
}
|
|
188
194
|
_$Eg() {
|
|
189
|
-
this.constructor.elementProperties.forEach((
|
|
190
|
-
this.hasOwnProperty(
|
|
195
|
+
this.constructor.elementProperties.forEach((t5, i7) => {
|
|
196
|
+
this.hasOwnProperty(i7) && (this._$Ei.set(i7, this[i7]), delete this[i7]);
|
|
191
197
|
});
|
|
192
198
|
}
|
|
193
199
|
createRenderRoot() {
|
|
194
|
-
var
|
|
195
|
-
const
|
|
196
|
-
return S(
|
|
200
|
+
var t5;
|
|
201
|
+
const s6 = null !== (t5 = this.shadowRoot) && void 0 !== t5 ? t5 : this.attachShadow(this.constructor.shadowRootOptions);
|
|
202
|
+
return S(s6, this.constructor.elementStyles), s6;
|
|
197
203
|
}
|
|
198
204
|
connectedCallback() {
|
|
199
|
-
var
|
|
200
|
-
void 0 === this.renderRoot && (this.renderRoot = this.createRenderRoot()), this.enableUpdating(true), null === (
|
|
201
|
-
var
|
|
202
|
-
return null === (
|
|
205
|
+
var t5;
|
|
206
|
+
void 0 === this.renderRoot && (this.renderRoot = this.createRenderRoot()), this.enableUpdating(true), null === (t5 = this._$ES) || void 0 === t5 || t5.forEach((t6) => {
|
|
207
|
+
var i7;
|
|
208
|
+
return null === (i7 = t6.hostConnected) || void 0 === i7 ? void 0 : i7.call(t6);
|
|
203
209
|
});
|
|
204
210
|
}
|
|
205
|
-
enableUpdating(
|
|
211
|
+
enableUpdating(t5) {
|
|
206
212
|
}
|
|
207
213
|
disconnectedCallback() {
|
|
208
|
-
var
|
|
209
|
-
null === (
|
|
210
|
-
var
|
|
211
|
-
return null === (
|
|
214
|
+
var t5;
|
|
215
|
+
null === (t5 = this._$ES) || void 0 === t5 || t5.forEach((t6) => {
|
|
216
|
+
var i7;
|
|
217
|
+
return null === (i7 = t6.hostDisconnected) || void 0 === i7 ? void 0 : i7.call(t6);
|
|
212
218
|
});
|
|
213
219
|
}
|
|
214
|
-
attributeChangedCallback(
|
|
215
|
-
this._$AK(
|
|
220
|
+
attributeChangedCallback(t5, i7, s6) {
|
|
221
|
+
this._$AK(t5, s6);
|
|
216
222
|
}
|
|
217
|
-
_$EO(
|
|
218
|
-
var
|
|
219
|
-
const
|
|
220
|
-
if (void 0 !==
|
|
221
|
-
const
|
|
222
|
-
this._$El =
|
|
223
|
+
_$EO(t5, i7, s6 = l) {
|
|
224
|
+
var e8;
|
|
225
|
+
const r6 = this.constructor._$Ep(t5, s6);
|
|
226
|
+
if (void 0 !== r6 && true === s6.reflect) {
|
|
227
|
+
const h3 = (void 0 !== (null === (e8 = s6.converter) || void 0 === e8 ? void 0 : e8.toAttribute) ? s6.converter : n2).toAttribute(i7, s6.type);
|
|
228
|
+
this._$El = t5, null == h3 ? this.removeAttribute(r6) : this.setAttribute(r6, h3), this._$El = null;
|
|
223
229
|
}
|
|
224
230
|
}
|
|
225
|
-
_$AK(
|
|
226
|
-
var
|
|
227
|
-
const
|
|
228
|
-
if (void 0 !==
|
|
229
|
-
const
|
|
230
|
-
this._$El =
|
|
231
|
+
_$AK(t5, i7) {
|
|
232
|
+
var s6;
|
|
233
|
+
const e8 = this.constructor, r6 = e8._$Ev.get(t5);
|
|
234
|
+
if (void 0 !== r6 && this._$El !== r6) {
|
|
235
|
+
const t6 = e8.getPropertyOptions(r6), h3 = "function" == typeof t6.converter ? { fromAttribute: t6.converter } : void 0 !== (null === (s6 = t6.converter) || void 0 === s6 ? void 0 : s6.fromAttribute) ? t6.converter : n2;
|
|
236
|
+
this._$El = r6, this[r6] = h3.fromAttribute(i7, t6.type), this._$El = null;
|
|
231
237
|
}
|
|
232
238
|
}
|
|
233
|
-
requestUpdate(
|
|
234
|
-
let
|
|
235
|
-
void 0 !==
|
|
239
|
+
requestUpdate(t5, i7, s6) {
|
|
240
|
+
let e8 = true;
|
|
241
|
+
void 0 !== t5 && (((s6 = s6 || this.constructor.getPropertyOptions(t5)).hasChanged || a)(this[t5], i7) ? (this._$AL.has(t5) || this._$AL.set(t5, i7), true === s6.reflect && this._$El !== t5 && (void 0 === this._$EC && (this._$EC = /* @__PURE__ */ new Map()), this._$EC.set(t5, s6))) : e8 = false), !this.isUpdatePending && e8 && (this._$E_ = this._$Ej());
|
|
236
242
|
}
|
|
237
243
|
async _$Ej() {
|
|
238
244
|
this.isUpdatePending = true;
|
|
239
245
|
try {
|
|
240
246
|
await this._$E_;
|
|
241
|
-
} catch (
|
|
242
|
-
Promise.reject(
|
|
247
|
+
} catch (t6) {
|
|
248
|
+
Promise.reject(t6);
|
|
243
249
|
}
|
|
244
|
-
const
|
|
245
|
-
return null !=
|
|
250
|
+
const t5 = this.scheduleUpdate();
|
|
251
|
+
return null != t5 && await t5, !this.isUpdatePending;
|
|
246
252
|
}
|
|
247
253
|
scheduleUpdate() {
|
|
248
254
|
return this.performUpdate();
|
|
249
255
|
}
|
|
250
256
|
performUpdate() {
|
|
251
|
-
var
|
|
257
|
+
var t5;
|
|
252
258
|
if (!this.isUpdatePending)
|
|
253
259
|
return;
|
|
254
|
-
this.hasUpdated, this._$Ei && (this._$Ei.forEach((
|
|
255
|
-
let
|
|
256
|
-
const
|
|
260
|
+
this.hasUpdated, this._$Ei && (this._$Ei.forEach((t6, i8) => this[i8] = t6), this._$Ei = void 0);
|
|
261
|
+
let i7 = false;
|
|
262
|
+
const s6 = this._$AL;
|
|
257
263
|
try {
|
|
258
|
-
|
|
259
|
-
var
|
|
260
|
-
return null === (
|
|
261
|
-
}), this.update(
|
|
262
|
-
} catch (
|
|
263
|
-
throw
|
|
264
|
+
i7 = this.shouldUpdate(s6), i7 ? (this.willUpdate(s6), null === (t5 = this._$ES) || void 0 === t5 || t5.forEach((t6) => {
|
|
265
|
+
var i8;
|
|
266
|
+
return null === (i8 = t6.hostUpdate) || void 0 === i8 ? void 0 : i8.call(t6);
|
|
267
|
+
}), this.update(s6)) : this._$Ek();
|
|
268
|
+
} catch (t6) {
|
|
269
|
+
throw i7 = false, this._$Ek(), t6;
|
|
264
270
|
}
|
|
265
|
-
|
|
271
|
+
i7 && this._$AE(s6);
|
|
266
272
|
}
|
|
267
|
-
willUpdate(
|
|
273
|
+
willUpdate(t5) {
|
|
268
274
|
}
|
|
269
|
-
_$AE(
|
|
270
|
-
var
|
|
271
|
-
null === (
|
|
272
|
-
var
|
|
273
|
-
return null === (
|
|
274
|
-
}), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(
|
|
275
|
+
_$AE(t5) {
|
|
276
|
+
var i7;
|
|
277
|
+
null === (i7 = this._$ES) || void 0 === i7 || i7.forEach((t6) => {
|
|
278
|
+
var i8;
|
|
279
|
+
return null === (i8 = t6.hostUpdated) || void 0 === i8 ? void 0 : i8.call(t6);
|
|
280
|
+
}), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t5)), this.updated(t5);
|
|
275
281
|
}
|
|
276
282
|
_$Ek() {
|
|
277
283
|
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = false;
|
|
@@ -282,33 +288,33 @@
|
|
|
282
288
|
getUpdateComplete() {
|
|
283
289
|
return this._$E_;
|
|
284
290
|
}
|
|
285
|
-
shouldUpdate(
|
|
291
|
+
shouldUpdate(t5) {
|
|
286
292
|
return true;
|
|
287
293
|
}
|
|
288
|
-
update(
|
|
289
|
-
void 0 !== this._$EC && (this._$EC.forEach((
|
|
294
|
+
update(t5) {
|
|
295
|
+
void 0 !== this._$EC && (this._$EC.forEach((t6, i7) => this._$EO(i7, this[i7], t6)), this._$EC = void 0), this._$Ek();
|
|
290
296
|
}
|
|
291
|
-
updated(
|
|
297
|
+
updated(t5) {
|
|
292
298
|
}
|
|
293
|
-
firstUpdated(
|
|
299
|
+
firstUpdated(t5) {
|
|
294
300
|
}
|
|
295
301
|
};
|
|
296
|
-
u[d] = true, u.elementProperties = /* @__PURE__ */ new Map(), u.elementStyles = [], u.shadowRootOptions = { mode: "open" }, null == o2 || o2({ ReactiveElement: u }), (null !== (s2 = e2.reactiveElementVersions) && void 0 !== s2 ? s2 : e2.reactiveElementVersions = []).push("1.6.
|
|
302
|
+
u[d] = true, u.elementProperties = /* @__PURE__ */ new Map(), u.elementStyles = [], u.shadowRootOptions = { mode: "open" }, null == o2 || o2({ ReactiveElement: u }), (null !== (s2 = e2.reactiveElementVersions) && void 0 !== s2 ? s2 : e2.reactiveElementVersions = []).push("1.6.2");
|
|
297
303
|
|
|
298
|
-
// node_modules/lit
|
|
304
|
+
// node_modules/lit-html/lit-html.js
|
|
299
305
|
var t2;
|
|
300
306
|
var i2 = window;
|
|
301
307
|
var s3 = i2.trustedTypes;
|
|
302
|
-
var e3 = s3 ? s3.createPolicy("lit-html", { createHTML: (
|
|
308
|
+
var e3 = s3 ? s3.createPolicy("lit-html", { createHTML: (t5) => t5 }) : void 0;
|
|
303
309
|
var o3 = "$lit$";
|
|
304
310
|
var n3 = `lit$${(Math.random() + "").slice(9)}$`;
|
|
305
311
|
var l2 = "?" + n3;
|
|
306
312
|
var h2 = `<${l2}>`;
|
|
307
313
|
var r3 = document;
|
|
308
314
|
var u2 = () => r3.createComment("");
|
|
309
|
-
var d2 = (
|
|
315
|
+
var d2 = (t5) => null === t5 || "object" != typeof t5 && "function" != typeof t5;
|
|
310
316
|
var c2 = Array.isArray;
|
|
311
|
-
var v = (
|
|
317
|
+
var v = (t5) => c2(t5) || "function" == typeof (null == t5 ? void 0 : t5[Symbol.iterator]);
|
|
312
318
|
var a2 = "[ \n\f\r]";
|
|
313
319
|
var f = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g;
|
|
314
320
|
var _ = /-->/g;
|
|
@@ -318,93 +324,93 @@
|
|
|
318
324
|
var g = /'/g;
|
|
319
325
|
var $ = /"/g;
|
|
320
326
|
var y = /^(?:script|style|textarea|title)$/i;
|
|
321
|
-
var w = (
|
|
327
|
+
var w = (t5) => (i7, ...s6) => ({ _$litType$: t5, strings: i7, values: s6 });
|
|
322
328
|
var x = w(1);
|
|
323
329
|
var b = w(2);
|
|
324
330
|
var T = Symbol.for("lit-noChange");
|
|
325
331
|
var A = Symbol.for("lit-nothing");
|
|
326
332
|
var E = /* @__PURE__ */ new WeakMap();
|
|
327
333
|
var C = r3.createTreeWalker(r3, 129, null, false);
|
|
328
|
-
function P(
|
|
329
|
-
if (!Array.isArray(
|
|
334
|
+
function P(t5, i7) {
|
|
335
|
+
if (!Array.isArray(t5) || !t5.hasOwnProperty("raw"))
|
|
330
336
|
throw Error("invalid template strings array");
|
|
331
|
-
return void 0 !== e3 ? e3.createHTML(
|
|
337
|
+
return void 0 !== e3 ? e3.createHTML(i7) : i7;
|
|
332
338
|
}
|
|
333
|
-
var V = (
|
|
334
|
-
const
|
|
335
|
-
let
|
|
336
|
-
for (let
|
|
337
|
-
const
|
|
338
|
-
let
|
|
339
|
-
for (;
|
|
340
|
-
|
|
341
|
-
const
|
|
342
|
-
|
|
343
|
-
}
|
|
344
|
-
return [P(
|
|
339
|
+
var V = (t5, i7) => {
|
|
340
|
+
const s6 = t5.length - 1, e8 = [];
|
|
341
|
+
let l6, r6 = 2 === i7 ? "<svg>" : "", u5 = f;
|
|
342
|
+
for (let i8 = 0; i8 < s6; i8++) {
|
|
343
|
+
const s7 = t5[i8];
|
|
344
|
+
let d3, c5, v2 = -1, a3 = 0;
|
|
345
|
+
for (; a3 < s7.length && (u5.lastIndex = a3, c5 = u5.exec(s7), null !== c5); )
|
|
346
|
+
a3 = u5.lastIndex, u5 === f ? "!--" === c5[1] ? u5 = _ : void 0 !== c5[1] ? u5 = m : void 0 !== c5[2] ? (y.test(c5[2]) && (l6 = RegExp("</" + c5[2], "g")), u5 = p) : void 0 !== c5[3] && (u5 = p) : u5 === p ? ">" === c5[0] ? (u5 = null != l6 ? l6 : f, v2 = -1) : void 0 === c5[1] ? v2 = -2 : (v2 = u5.lastIndex - c5[2].length, d3 = c5[1], u5 = void 0 === c5[3] ? p : '"' === c5[3] ? $ : g) : u5 === $ || u5 === g ? u5 = p : u5 === _ || u5 === m ? u5 = f : (u5 = p, l6 = void 0);
|
|
347
|
+
const w2 = u5 === p && t5[i8 + 1].startsWith("/>") ? " " : "";
|
|
348
|
+
r6 += u5 === f ? s7 + h2 : v2 >= 0 ? (e8.push(d3), s7.slice(0, v2) + o3 + s7.slice(v2) + n3 + w2) : s7 + n3 + (-2 === v2 ? (e8.push(void 0), i8) : w2);
|
|
349
|
+
}
|
|
350
|
+
return [P(t5, r6 + (t5[s6] || "<?>") + (2 === i7 ? "</svg>" : "")), e8];
|
|
345
351
|
};
|
|
346
352
|
var N = class _N {
|
|
347
|
-
constructor({ strings:
|
|
348
|
-
let
|
|
353
|
+
constructor({ strings: t5, _$litType$: i7 }, e8) {
|
|
354
|
+
let h3;
|
|
349
355
|
this.parts = [];
|
|
350
|
-
let
|
|
351
|
-
const
|
|
352
|
-
if (this.el = _N.createElement(
|
|
353
|
-
const
|
|
354
|
-
|
|
355
|
-
}
|
|
356
|
-
for (; null !== (
|
|
357
|
-
if (1 ===
|
|
358
|
-
if (
|
|
359
|
-
const
|
|
360
|
-
for (const
|
|
361
|
-
if (
|
|
362
|
-
const
|
|
363
|
-
if (
|
|
364
|
-
const
|
|
365
|
-
|
|
356
|
+
let r6 = 0, d3 = 0;
|
|
357
|
+
const c5 = t5.length - 1, v2 = this.parts, [a3, f3] = V(t5, i7);
|
|
358
|
+
if (this.el = _N.createElement(a3, e8), C.currentNode = this.el.content, 2 === i7) {
|
|
359
|
+
const t6 = this.el.content, i8 = t6.firstChild;
|
|
360
|
+
i8.remove(), t6.append(...i8.childNodes);
|
|
361
|
+
}
|
|
362
|
+
for (; null !== (h3 = C.nextNode()) && v2.length < c5; ) {
|
|
363
|
+
if (1 === h3.nodeType) {
|
|
364
|
+
if (h3.hasAttributes()) {
|
|
365
|
+
const t6 = [];
|
|
366
|
+
for (const i8 of h3.getAttributeNames())
|
|
367
|
+
if (i8.endsWith(o3) || i8.startsWith(n3)) {
|
|
368
|
+
const s6 = f3[d3++];
|
|
369
|
+
if (t6.push(i8), void 0 !== s6) {
|
|
370
|
+
const t7 = h3.getAttribute(s6.toLowerCase() + o3).split(n3), i9 = /([.?@])?(.*)/.exec(s6);
|
|
371
|
+
v2.push({ type: 1, index: r6, name: i9[2], strings: t7, ctor: "." === i9[1] ? H : "?" === i9[1] ? L : "@" === i9[1] ? z : k });
|
|
366
372
|
} else
|
|
367
|
-
|
|
373
|
+
v2.push({ type: 6, index: r6 });
|
|
368
374
|
}
|
|
369
|
-
for (const
|
|
370
|
-
|
|
375
|
+
for (const i8 of t6)
|
|
376
|
+
h3.removeAttribute(i8);
|
|
371
377
|
}
|
|
372
|
-
if (y.test(
|
|
373
|
-
const
|
|
374
|
-
if (
|
|
375
|
-
|
|
376
|
-
for (let
|
|
377
|
-
|
|
378
|
-
|
|
378
|
+
if (y.test(h3.tagName)) {
|
|
379
|
+
const t6 = h3.textContent.split(n3), i8 = t6.length - 1;
|
|
380
|
+
if (i8 > 0) {
|
|
381
|
+
h3.textContent = s3 ? s3.emptyScript : "";
|
|
382
|
+
for (let s6 = 0; s6 < i8; s6++)
|
|
383
|
+
h3.append(t6[s6], u2()), C.nextNode(), v2.push({ type: 2, index: ++r6 });
|
|
384
|
+
h3.append(t6[i8], u2());
|
|
379
385
|
}
|
|
380
386
|
}
|
|
381
|
-
} else if (8 ===
|
|
382
|
-
if (
|
|
383
|
-
|
|
387
|
+
} else if (8 === h3.nodeType)
|
|
388
|
+
if (h3.data === l2)
|
|
389
|
+
v2.push({ type: 2, index: r6 });
|
|
384
390
|
else {
|
|
385
|
-
let
|
|
386
|
-
for (; -1 !== (
|
|
387
|
-
|
|
391
|
+
let t6 = -1;
|
|
392
|
+
for (; -1 !== (t6 = h3.data.indexOf(n3, t6 + 1)); )
|
|
393
|
+
v2.push({ type: 7, index: r6 }), t6 += n3.length - 1;
|
|
388
394
|
}
|
|
389
|
-
|
|
395
|
+
r6++;
|
|
390
396
|
}
|
|
391
397
|
}
|
|
392
|
-
static createElement(
|
|
393
|
-
const
|
|
394
|
-
return
|
|
398
|
+
static createElement(t5, i7) {
|
|
399
|
+
const s6 = r3.createElement("template");
|
|
400
|
+
return s6.innerHTML = t5, s6;
|
|
395
401
|
}
|
|
396
402
|
};
|
|
397
|
-
function S2(
|
|
398
|
-
var
|
|
399
|
-
if (
|
|
400
|
-
return
|
|
401
|
-
let
|
|
402
|
-
const
|
|
403
|
-
return (null ==
|
|
403
|
+
function S2(t5, i7, s6 = t5, e8) {
|
|
404
|
+
var o6, n7, l6, h3;
|
|
405
|
+
if (i7 === T)
|
|
406
|
+
return i7;
|
|
407
|
+
let r6 = void 0 !== e8 ? null === (o6 = s6._$Co) || void 0 === o6 ? void 0 : o6[e8] : s6._$Cl;
|
|
408
|
+
const u5 = d2(i7) ? void 0 : i7._$litDirective$;
|
|
409
|
+
return (null == r6 ? void 0 : r6.constructor) !== u5 && (null === (n7 = null == r6 ? void 0 : r6._$AO) || void 0 === n7 || n7.call(r6, false), void 0 === u5 ? r6 = void 0 : (r6 = new u5(t5), r6._$AT(t5, s6, e8)), void 0 !== e8 ? (null !== (l6 = (h3 = s6)._$Co) && void 0 !== l6 ? l6 : h3._$Co = [])[e8] = r6 : s6._$Cl = r6), void 0 !== r6 && (i7 = S2(t5, r6._$AS(t5, i7.values), r6, e8)), i7;
|
|
404
410
|
}
|
|
405
411
|
var M = class {
|
|
406
|
-
constructor(
|
|
407
|
-
this._$AV = [], this._$AN = void 0, this._$AD =
|
|
412
|
+
constructor(t5, i7) {
|
|
413
|
+
this._$AV = [], this._$AN = void 0, this._$AD = t5, this._$AM = i7;
|
|
408
414
|
}
|
|
409
415
|
get parentNode() {
|
|
410
416
|
return this._$AM.parentNode;
|
|
@@ -412,39 +418,39 @@
|
|
|
412
418
|
get _$AU() {
|
|
413
419
|
return this._$AM._$AU;
|
|
414
420
|
}
|
|
415
|
-
u(
|
|
416
|
-
var
|
|
417
|
-
const { el: { content:
|
|
418
|
-
C.currentNode =
|
|
419
|
-
let
|
|
420
|
-
for (; void 0 !==
|
|
421
|
-
if (
|
|
422
|
-
let
|
|
423
|
-
2 ===
|
|
421
|
+
u(t5) {
|
|
422
|
+
var i7;
|
|
423
|
+
const { el: { content: s6 }, parts: e8 } = this._$AD, o6 = (null !== (i7 = null == t5 ? void 0 : t5.creationScope) && void 0 !== i7 ? i7 : r3).importNode(s6, true);
|
|
424
|
+
C.currentNode = o6;
|
|
425
|
+
let n7 = C.nextNode(), l6 = 0, h3 = 0, u5 = e8[0];
|
|
426
|
+
for (; void 0 !== u5; ) {
|
|
427
|
+
if (l6 === u5.index) {
|
|
428
|
+
let i8;
|
|
429
|
+
2 === u5.type ? i8 = new R(n7, n7.nextSibling, this, t5) : 1 === u5.type ? i8 = new u5.ctor(n7, u5.name, u5.strings, this, t5) : 6 === u5.type && (i8 = new Z(n7, this, t5)), this._$AV.push(i8), u5 = e8[++h3];
|
|
424
430
|
}
|
|
425
|
-
|
|
431
|
+
l6 !== (null == u5 ? void 0 : u5.index) && (n7 = C.nextNode(), l6++);
|
|
426
432
|
}
|
|
427
|
-
return C.currentNode = r3,
|
|
433
|
+
return C.currentNode = r3, o6;
|
|
428
434
|
}
|
|
429
|
-
v(
|
|
430
|
-
let
|
|
431
|
-
for (const
|
|
432
|
-
void 0 !==
|
|
435
|
+
v(t5) {
|
|
436
|
+
let i7 = 0;
|
|
437
|
+
for (const s6 of this._$AV)
|
|
438
|
+
void 0 !== s6 && (void 0 !== s6.strings ? (s6._$AI(t5, s6, i7), i7 += s6.strings.length - 2) : s6._$AI(t5[i7])), i7++;
|
|
433
439
|
}
|
|
434
440
|
};
|
|
435
441
|
var R = class _R {
|
|
436
|
-
constructor(
|
|
437
|
-
var
|
|
438
|
-
this.type = 2, this._$AH = A, this._$AN = void 0, this._$AA =
|
|
442
|
+
constructor(t5, i7, s6, e8) {
|
|
443
|
+
var o6;
|
|
444
|
+
this.type = 2, this._$AH = A, this._$AN = void 0, this._$AA = t5, this._$AB = i7, this._$AM = s6, this.options = e8, this._$Cp = null === (o6 = null == e8 ? void 0 : e8.isConnected) || void 0 === o6 || o6;
|
|
439
445
|
}
|
|
440
446
|
get _$AU() {
|
|
441
|
-
var
|
|
442
|
-
return null !== (
|
|
447
|
+
var t5, i7;
|
|
448
|
+
return null !== (i7 = null === (t5 = this._$AM) || void 0 === t5 ? void 0 : t5._$AU) && void 0 !== i7 ? i7 : this._$Cp;
|
|
443
449
|
}
|
|
444
450
|
get parentNode() {
|
|
445
|
-
let
|
|
446
|
-
const
|
|
447
|
-
return void 0 !==
|
|
451
|
+
let t5 = this._$AA.parentNode;
|
|
452
|
+
const i7 = this._$AM;
|
|
453
|
+
return void 0 !== i7 && 11 === (null == t5 ? void 0 : t5.nodeType) && (t5 = i7.parentNode), t5;
|
|
448
454
|
}
|
|
449
455
|
get startNode() {
|
|
450
456
|
return this._$AA;
|
|
@@ -452,55 +458,55 @@
|
|
|
452
458
|
get endNode() {
|
|
453
459
|
return this._$AB;
|
|
454
460
|
}
|
|
455
|
-
_$AI(
|
|
456
|
-
|
|
461
|
+
_$AI(t5, i7 = this) {
|
|
462
|
+
t5 = S2(this, t5, i7), d2(t5) ? t5 === A || null == t5 || "" === t5 ? (this._$AH !== A && this._$AR(), this._$AH = A) : t5 !== this._$AH && t5 !== T && this._(t5) : void 0 !== t5._$litType$ ? this.g(t5) : void 0 !== t5.nodeType ? this.$(t5) : v(t5) ? this.T(t5) : this._(t5);
|
|
457
463
|
}
|
|
458
|
-
k(
|
|
459
|
-
return this._$AA.parentNode.insertBefore(
|
|
464
|
+
k(t5) {
|
|
465
|
+
return this._$AA.parentNode.insertBefore(t5, this._$AB);
|
|
460
466
|
}
|
|
461
|
-
$(
|
|
462
|
-
this._$AH !==
|
|
467
|
+
$(t5) {
|
|
468
|
+
this._$AH !== t5 && (this._$AR(), this._$AH = this.k(t5));
|
|
463
469
|
}
|
|
464
|
-
_(
|
|
465
|
-
this._$AH !== A && d2(this._$AH) ? this._$AA.nextSibling.data =
|
|
470
|
+
_(t5) {
|
|
471
|
+
this._$AH !== A && d2(this._$AH) ? this._$AA.nextSibling.data = t5 : this.$(r3.createTextNode(t5)), this._$AH = t5;
|
|
466
472
|
}
|
|
467
|
-
g(
|
|
468
|
-
var
|
|
469
|
-
const { values:
|
|
470
|
-
if ((null === (
|
|
471
|
-
this._$AH.v(
|
|
473
|
+
g(t5) {
|
|
474
|
+
var i7;
|
|
475
|
+
const { values: s6, _$litType$: e8 } = t5, o6 = "number" == typeof e8 ? this._$AC(t5) : (void 0 === e8.el && (e8.el = N.createElement(P(e8.h, e8.h[0]), this.options)), e8);
|
|
476
|
+
if ((null === (i7 = this._$AH) || void 0 === i7 ? void 0 : i7._$AD) === o6)
|
|
477
|
+
this._$AH.v(s6);
|
|
472
478
|
else {
|
|
473
|
-
const
|
|
474
|
-
|
|
479
|
+
const t6 = new M(o6, this), i8 = t6.u(this.options);
|
|
480
|
+
t6.v(s6), this.$(i8), this._$AH = t6;
|
|
475
481
|
}
|
|
476
482
|
}
|
|
477
|
-
_$AC(
|
|
478
|
-
let
|
|
479
|
-
return void 0 ===
|
|
483
|
+
_$AC(t5) {
|
|
484
|
+
let i7 = E.get(t5.strings);
|
|
485
|
+
return void 0 === i7 && E.set(t5.strings, i7 = new N(t5)), i7;
|
|
480
486
|
}
|
|
481
|
-
T(
|
|
487
|
+
T(t5) {
|
|
482
488
|
c2(this._$AH) || (this._$AH = [], this._$AR());
|
|
483
|
-
const
|
|
484
|
-
let
|
|
485
|
-
for (const
|
|
486
|
-
|
|
487
|
-
|
|
489
|
+
const i7 = this._$AH;
|
|
490
|
+
let s6, e8 = 0;
|
|
491
|
+
for (const o6 of t5)
|
|
492
|
+
e8 === i7.length ? i7.push(s6 = new _R(this.k(u2()), this.k(u2()), this, this.options)) : s6 = i7[e8], s6._$AI(o6), e8++;
|
|
493
|
+
e8 < i7.length && (this._$AR(s6 && s6._$AB.nextSibling, e8), i7.length = e8);
|
|
488
494
|
}
|
|
489
|
-
_$AR(
|
|
490
|
-
var
|
|
491
|
-
for (null === (
|
|
492
|
-
const
|
|
493
|
-
|
|
495
|
+
_$AR(t5 = this._$AA.nextSibling, i7) {
|
|
496
|
+
var s6;
|
|
497
|
+
for (null === (s6 = this._$AP) || void 0 === s6 || s6.call(this, false, true, i7); t5 && t5 !== this._$AB; ) {
|
|
498
|
+
const i8 = t5.nextSibling;
|
|
499
|
+
t5.remove(), t5 = i8;
|
|
494
500
|
}
|
|
495
501
|
}
|
|
496
|
-
setConnected(
|
|
497
|
-
var
|
|
498
|
-
void 0 === this._$AM && (this._$Cp =
|
|
502
|
+
setConnected(t5) {
|
|
503
|
+
var i7;
|
|
504
|
+
void 0 === this._$AM && (this._$Cp = t5, null === (i7 = this._$AP) || void 0 === i7 || i7.call(this, t5));
|
|
499
505
|
}
|
|
500
506
|
};
|
|
501
507
|
var k = class {
|
|
502
|
-
constructor(
|
|
503
|
-
this.type = 1, this._$AH = A, this._$AN = void 0, this.element =
|
|
508
|
+
constructor(t5, i7, s6, e8, o6) {
|
|
509
|
+
this.type = 1, this._$AH = A, this._$AN = void 0, this.element = t5, this.name = i7, this._$AM = e8, this.options = o6, s6.length > 2 || "" !== s6[0] || "" !== s6[1] ? (this._$AH = Array(s6.length - 1).fill(new String()), this.strings = s6) : this._$AH = A;
|
|
504
510
|
}
|
|
505
511
|
get tagName() {
|
|
506
512
|
return this.element.tagName;
|
|
@@ -508,29 +514,29 @@
|
|
|
508
514
|
get _$AU() {
|
|
509
515
|
return this._$AM._$AU;
|
|
510
516
|
}
|
|
511
|
-
_$AI(
|
|
512
|
-
const
|
|
513
|
-
let
|
|
514
|
-
if (void 0 ===
|
|
515
|
-
|
|
517
|
+
_$AI(t5, i7 = this, s6, e8) {
|
|
518
|
+
const o6 = this.strings;
|
|
519
|
+
let n7 = false;
|
|
520
|
+
if (void 0 === o6)
|
|
521
|
+
t5 = S2(this, t5, i7, 0), n7 = !d2(t5) || t5 !== this._$AH && t5 !== T, n7 && (this._$AH = t5);
|
|
516
522
|
else {
|
|
517
|
-
const
|
|
518
|
-
let
|
|
519
|
-
for (
|
|
520
|
-
|
|
523
|
+
const e9 = t5;
|
|
524
|
+
let l6, h3;
|
|
525
|
+
for (t5 = o6[0], l6 = 0; l6 < o6.length - 1; l6++)
|
|
526
|
+
h3 = S2(this, e9[s6 + l6], i7, l6), h3 === T && (h3 = this._$AH[l6]), n7 || (n7 = !d2(h3) || h3 !== this._$AH[l6]), h3 === A ? t5 = A : t5 !== A && (t5 += (null != h3 ? h3 : "") + o6[l6 + 1]), this._$AH[l6] = h3;
|
|
521
527
|
}
|
|
522
|
-
|
|
528
|
+
n7 && !e8 && this.j(t5);
|
|
523
529
|
}
|
|
524
|
-
j(
|
|
525
|
-
|
|
530
|
+
j(t5) {
|
|
531
|
+
t5 === A ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, null != t5 ? t5 : "");
|
|
526
532
|
}
|
|
527
533
|
};
|
|
528
534
|
var H = class extends k {
|
|
529
535
|
constructor() {
|
|
530
536
|
super(...arguments), this.type = 3;
|
|
531
537
|
}
|
|
532
|
-
j(
|
|
533
|
-
this.element[this.name] =
|
|
538
|
+
j(t5) {
|
|
539
|
+
this.element[this.name] = t5 === A ? void 0 : t5;
|
|
534
540
|
}
|
|
535
541
|
};
|
|
536
542
|
var I = s3 ? s3.emptyScript : "";
|
|
@@ -538,692 +544,148 @@
|
|
|
538
544
|
constructor() {
|
|
539
545
|
super(...arguments), this.type = 4;
|
|
540
546
|
}
|
|
541
|
-
j(
|
|
542
|
-
|
|
547
|
+
j(t5) {
|
|
548
|
+
t5 && t5 !== A ? this.element.setAttribute(this.name, I) : this.element.removeAttribute(this.name);
|
|
543
549
|
}
|
|
544
550
|
};
|
|
545
551
|
var z = class extends k {
|
|
546
|
-
constructor(
|
|
547
|
-
super(
|
|
552
|
+
constructor(t5, i7, s6, e8, o6) {
|
|
553
|
+
super(t5, i7, s6, e8, o6), this.type = 5;
|
|
548
554
|
}
|
|
549
|
-
_$AI(
|
|
550
|
-
var
|
|
551
|
-
if ((
|
|
555
|
+
_$AI(t5, i7 = this) {
|
|
556
|
+
var s6;
|
|
557
|
+
if ((t5 = null !== (s6 = S2(this, t5, i7, 0)) && void 0 !== s6 ? s6 : A) === T)
|
|
552
558
|
return;
|
|
553
|
-
const
|
|
554
|
-
|
|
559
|
+
const e8 = this._$AH, o6 = t5 === A && e8 !== A || t5.capture !== e8.capture || t5.once !== e8.once || t5.passive !== e8.passive, n7 = t5 !== A && (e8 === A || o6);
|
|
560
|
+
o6 && this.element.removeEventListener(this.name, this, e8), n7 && this.element.addEventListener(this.name, this, t5), this._$AH = t5;
|
|
555
561
|
}
|
|
556
|
-
handleEvent(
|
|
557
|
-
var
|
|
558
|
-
"function" == typeof this._$AH ? this._$AH.call(null !== (
|
|
562
|
+
handleEvent(t5) {
|
|
563
|
+
var i7, s6;
|
|
564
|
+
"function" == typeof this._$AH ? this._$AH.call(null !== (s6 = null === (i7 = this.options) || void 0 === i7 ? void 0 : i7.host) && void 0 !== s6 ? s6 : this.element, t5) : this._$AH.handleEvent(t5);
|
|
559
565
|
}
|
|
560
566
|
};
|
|
561
567
|
var Z = class {
|
|
562
|
-
constructor(
|
|
563
|
-
this.element =
|
|
568
|
+
constructor(t5, i7, s6) {
|
|
569
|
+
this.element = t5, this.type = 6, this._$AN = void 0, this._$AM = i7, this.options = s6;
|
|
564
570
|
}
|
|
565
571
|
get _$AU() {
|
|
566
572
|
return this._$AM._$AU;
|
|
567
573
|
}
|
|
568
|
-
_$AI(
|
|
569
|
-
S2(this,
|
|
574
|
+
_$AI(t5) {
|
|
575
|
+
S2(this, t5);
|
|
570
576
|
}
|
|
571
577
|
};
|
|
572
|
-
var j = { O: o3, P: n3, A: l2, C: 1, M: V, L: M,
|
|
578
|
+
var j = { O: o3, P: n3, A: l2, C: 1, M: V, L: M, D: v, R: S2, I: R, V: k, H: L, N: z, U: H, F: Z };
|
|
573
579
|
var B = i2.litHtmlPolyfillSupport;
|
|
574
|
-
null == B || B(N, R), (null !== (t2 = i2.litHtmlVersions) && void 0 !== t2 ? t2 : i2.litHtmlVersions = []).push("2.
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
585
|
-
this.cssText = t7, this.t = e11;
|
|
586
|
-
}
|
|
587
|
-
get styleSheet() {
|
|
588
|
-
let t7 = this.o;
|
|
589
|
-
const s9 = this.t;
|
|
590
|
-
if (e4 && void 0 === t7) {
|
|
591
|
-
const e11 = void 0 !== s9 && 1 === s9.length;
|
|
592
|
-
e11 && (t7 = n4.get(s9)), void 0 === t7 && ((this.o = t7 = new CSSStyleSheet()).replaceSync(this.cssText), e11 && n4.set(s9, t7));
|
|
593
|
-
}
|
|
594
|
-
return t7;
|
|
595
|
-
}
|
|
596
|
-
toString() {
|
|
597
|
-
return this.cssText;
|
|
598
|
-
}
|
|
599
|
-
};
|
|
600
|
-
var r4 = (t7) => new o4("string" == typeof t7 ? t7 : t7 + "", void 0, s4);
|
|
601
|
-
var i3 = (t7, ...e11) => {
|
|
602
|
-
const n10 = 1 === t7.length ? t7[0] : e11.reduce((e12, s9, n11) => e12 + ((t8) => {
|
|
603
|
-
if (true === t8._$cssResult$)
|
|
604
|
-
return t8.cssText;
|
|
605
|
-
if ("number" == typeof t8)
|
|
606
|
-
return t8;
|
|
607
|
-
throw Error("Value passed to 'css' function must be a 'css' function result: " + t8 + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
608
|
-
})(s9) + t7[n11 + 1], t7[0]);
|
|
609
|
-
return new o4(n10, t7, s4);
|
|
610
|
-
};
|
|
611
|
-
var S3 = (s9, n10) => {
|
|
612
|
-
e4 ? s9.adoptedStyleSheets = n10.map((t7) => t7 instanceof CSSStyleSheet ? t7 : t7.styleSheet) : n10.forEach((e11) => {
|
|
613
|
-
const n11 = document.createElement("style"), o9 = t3.litNonce;
|
|
614
|
-
void 0 !== o9 && n11.setAttribute("nonce", o9), n11.textContent = e11.cssText, s9.appendChild(n11);
|
|
615
|
-
});
|
|
616
|
-
};
|
|
617
|
-
var c3 = e4 ? (t7) => t7 : (t7) => t7 instanceof CSSStyleSheet ? ((t8) => {
|
|
618
|
-
let e11 = "";
|
|
619
|
-
for (const s9 of t8.cssRules)
|
|
620
|
-
e11 += s9.cssText;
|
|
621
|
-
return r4(e11);
|
|
622
|
-
})(t7) : t7;
|
|
623
|
-
|
|
624
|
-
// node_modules/lit-element/node_modules/@lit/reactive-element/reactive-element.js
|
|
625
|
-
var s5;
|
|
626
|
-
var e5 = window;
|
|
627
|
-
var r5 = e5.trustedTypes;
|
|
628
|
-
var h3 = r5 ? r5.emptyScript : "";
|
|
629
|
-
var o5 = e5.reactiveElementPolyfillSupport;
|
|
630
|
-
var n5 = { toAttribute(t7, i9) {
|
|
631
|
-
switch (i9) {
|
|
632
|
-
case Boolean:
|
|
633
|
-
t7 = t7 ? h3 : null;
|
|
634
|
-
break;
|
|
635
|
-
case Object:
|
|
636
|
-
case Array:
|
|
637
|
-
t7 = null == t7 ? t7 : JSON.stringify(t7);
|
|
638
|
-
}
|
|
639
|
-
return t7;
|
|
640
|
-
}, fromAttribute(t7, i9) {
|
|
641
|
-
let s9 = t7;
|
|
642
|
-
switch (i9) {
|
|
643
|
-
case Boolean:
|
|
644
|
-
s9 = null !== t7;
|
|
645
|
-
break;
|
|
646
|
-
case Number:
|
|
647
|
-
s9 = null === t7 ? null : Number(t7);
|
|
648
|
-
break;
|
|
649
|
-
case Object:
|
|
650
|
-
case Array:
|
|
651
|
-
try {
|
|
652
|
-
s9 = JSON.parse(t7);
|
|
653
|
-
} catch (t8) {
|
|
654
|
-
s9 = null;
|
|
655
|
-
}
|
|
656
|
-
}
|
|
657
|
-
return s9;
|
|
658
|
-
} };
|
|
659
|
-
var a3 = (t7, i9) => i9 !== t7 && (i9 == i9 || t7 == t7);
|
|
660
|
-
var l3 = { attribute: true, type: String, converter: n5, reflect: false, hasChanged: a3 };
|
|
661
|
-
var d3 = "finalized";
|
|
662
|
-
var u3 = class extends HTMLElement {
|
|
663
|
-
constructor() {
|
|
664
|
-
super(), this._$Ei = /* @__PURE__ */ new Map(), this.isUpdatePending = false, this.hasUpdated = false, this._$El = null, this._$Eu();
|
|
665
|
-
}
|
|
666
|
-
static addInitializer(t7) {
|
|
667
|
-
var i9;
|
|
668
|
-
this.finalize(), (null !== (i9 = this.h) && void 0 !== i9 ? i9 : this.h = []).push(t7);
|
|
669
|
-
}
|
|
670
|
-
static get observedAttributes() {
|
|
671
|
-
this.finalize();
|
|
672
|
-
const t7 = [];
|
|
673
|
-
return this.elementProperties.forEach((i9, s9) => {
|
|
674
|
-
const e11 = this._$Ep(s9, i9);
|
|
675
|
-
void 0 !== e11 && (this._$Ev.set(e11, s9), t7.push(e11));
|
|
676
|
-
}), t7;
|
|
677
|
-
}
|
|
678
|
-
static createProperty(t7, i9 = l3) {
|
|
679
|
-
if (i9.state && (i9.attribute = false), this.finalize(), this.elementProperties.set(t7, i9), !i9.noAccessor && !this.prototype.hasOwnProperty(t7)) {
|
|
680
|
-
const s9 = "symbol" == typeof t7 ? Symbol() : "__" + t7, e11 = this.getPropertyDescriptor(t7, s9, i9);
|
|
681
|
-
void 0 !== e11 && Object.defineProperty(this.prototype, t7, e11);
|
|
682
|
-
}
|
|
683
|
-
}
|
|
684
|
-
static getPropertyDescriptor(t7, i9, s9) {
|
|
685
|
-
return { get() {
|
|
686
|
-
return this[i9];
|
|
687
|
-
}, set(e11) {
|
|
688
|
-
const r8 = this[t7];
|
|
689
|
-
this[i9] = e11, this.requestUpdate(t7, r8, s9);
|
|
690
|
-
}, configurable: true, enumerable: true };
|
|
691
|
-
}
|
|
692
|
-
static getPropertyOptions(t7) {
|
|
693
|
-
return this.elementProperties.get(t7) || l3;
|
|
694
|
-
}
|
|
695
|
-
static finalize() {
|
|
696
|
-
if (this.hasOwnProperty(d3))
|
|
697
|
-
return false;
|
|
698
|
-
this[d3] = true;
|
|
699
|
-
const t7 = Object.getPrototypeOf(this);
|
|
700
|
-
if (t7.finalize(), void 0 !== t7.h && (this.h = [...t7.h]), this.elementProperties = new Map(t7.elementProperties), this._$Ev = /* @__PURE__ */ new Map(), this.hasOwnProperty("properties")) {
|
|
701
|
-
const t8 = this.properties, i9 = [...Object.getOwnPropertyNames(t8), ...Object.getOwnPropertySymbols(t8)];
|
|
702
|
-
for (const s9 of i9)
|
|
703
|
-
this.createProperty(s9, t8[s9]);
|
|
704
|
-
}
|
|
705
|
-
return this.elementStyles = this.finalizeStyles(this.styles), true;
|
|
706
|
-
}
|
|
707
|
-
static finalizeStyles(i9) {
|
|
708
|
-
const s9 = [];
|
|
709
|
-
if (Array.isArray(i9)) {
|
|
710
|
-
const e11 = new Set(i9.flat(1 / 0).reverse());
|
|
711
|
-
for (const i10 of e11)
|
|
712
|
-
s9.unshift(c3(i10));
|
|
713
|
-
} else
|
|
714
|
-
void 0 !== i9 && s9.push(c3(i9));
|
|
715
|
-
return s9;
|
|
716
|
-
}
|
|
717
|
-
static _$Ep(t7, i9) {
|
|
718
|
-
const s9 = i9.attribute;
|
|
719
|
-
return false === s9 ? void 0 : "string" == typeof s9 ? s9 : "string" == typeof t7 ? t7.toLowerCase() : void 0;
|
|
720
|
-
}
|
|
721
|
-
_$Eu() {
|
|
722
|
-
var t7;
|
|
723
|
-
this._$E_ = new Promise((t8) => this.enableUpdating = t8), this._$AL = /* @__PURE__ */ new Map(), this._$Eg(), this.requestUpdate(), null === (t7 = this.constructor.h) || void 0 === t7 || t7.forEach((t8) => t8(this));
|
|
724
|
-
}
|
|
725
|
-
addController(t7) {
|
|
726
|
-
var i9, s9;
|
|
727
|
-
(null !== (i9 = this._$ES) && void 0 !== i9 ? i9 : this._$ES = []).push(t7), void 0 !== this.renderRoot && this.isConnected && (null === (s9 = t7.hostConnected) || void 0 === s9 || s9.call(t7));
|
|
728
|
-
}
|
|
729
|
-
removeController(t7) {
|
|
730
|
-
var i9;
|
|
731
|
-
null === (i9 = this._$ES) || void 0 === i9 || i9.splice(this._$ES.indexOf(t7) >>> 0, 1);
|
|
732
|
-
}
|
|
733
|
-
_$Eg() {
|
|
734
|
-
this.constructor.elementProperties.forEach((t7, i9) => {
|
|
735
|
-
this.hasOwnProperty(i9) && (this._$Ei.set(i9, this[i9]), delete this[i9]);
|
|
736
|
-
});
|
|
737
|
-
}
|
|
738
|
-
createRenderRoot() {
|
|
739
|
-
var t7;
|
|
740
|
-
const s9 = null !== (t7 = this.shadowRoot) && void 0 !== t7 ? t7 : this.attachShadow(this.constructor.shadowRootOptions);
|
|
741
|
-
return S3(s9, this.constructor.elementStyles), s9;
|
|
742
|
-
}
|
|
743
|
-
connectedCallback() {
|
|
744
|
-
var t7;
|
|
745
|
-
void 0 === this.renderRoot && (this.renderRoot = this.createRenderRoot()), this.enableUpdating(true), null === (t7 = this._$ES) || void 0 === t7 || t7.forEach((t8) => {
|
|
746
|
-
var i9;
|
|
747
|
-
return null === (i9 = t8.hostConnected) || void 0 === i9 ? void 0 : i9.call(t8);
|
|
748
|
-
});
|
|
749
|
-
}
|
|
750
|
-
enableUpdating(t7) {
|
|
751
|
-
}
|
|
752
|
-
disconnectedCallback() {
|
|
753
|
-
var t7;
|
|
754
|
-
null === (t7 = this._$ES) || void 0 === t7 || t7.forEach((t8) => {
|
|
755
|
-
var i9;
|
|
756
|
-
return null === (i9 = t8.hostDisconnected) || void 0 === i9 ? void 0 : i9.call(t8);
|
|
757
|
-
});
|
|
758
|
-
}
|
|
759
|
-
attributeChangedCallback(t7, i9, s9) {
|
|
760
|
-
this._$AK(t7, s9);
|
|
761
|
-
}
|
|
762
|
-
_$EO(t7, i9, s9 = l3) {
|
|
763
|
-
var e11;
|
|
764
|
-
const r8 = this.constructor._$Ep(t7, s9);
|
|
765
|
-
if (void 0 !== r8 && true === s9.reflect) {
|
|
766
|
-
const h5 = (void 0 !== (null === (e11 = s9.converter) || void 0 === e11 ? void 0 : e11.toAttribute) ? s9.converter : n5).toAttribute(i9, s9.type);
|
|
767
|
-
this._$El = t7, null == h5 ? this.removeAttribute(r8) : this.setAttribute(r8, h5), this._$El = null;
|
|
768
|
-
}
|
|
769
|
-
}
|
|
770
|
-
_$AK(t7, i9) {
|
|
771
|
-
var s9;
|
|
772
|
-
const e11 = this.constructor, r8 = e11._$Ev.get(t7);
|
|
773
|
-
if (void 0 !== r8 && this._$El !== r8) {
|
|
774
|
-
const t8 = e11.getPropertyOptions(r8), h5 = "function" == typeof t8.converter ? { fromAttribute: t8.converter } : void 0 !== (null === (s9 = t8.converter) || void 0 === s9 ? void 0 : s9.fromAttribute) ? t8.converter : n5;
|
|
775
|
-
this._$El = r8, this[r8] = h5.fromAttribute(i9, t8.type), this._$El = null;
|
|
776
|
-
}
|
|
777
|
-
}
|
|
778
|
-
requestUpdate(t7, i9, s9) {
|
|
779
|
-
let e11 = true;
|
|
780
|
-
void 0 !== t7 && (((s9 = s9 || this.constructor.getPropertyOptions(t7)).hasChanged || a3)(this[t7], i9) ? (this._$AL.has(t7) || this._$AL.set(t7, i9), true === s9.reflect && this._$El !== t7 && (void 0 === this._$EC && (this._$EC = /* @__PURE__ */ new Map()), this._$EC.set(t7, s9))) : e11 = false), !this.isUpdatePending && e11 && (this._$E_ = this._$Ej());
|
|
781
|
-
}
|
|
782
|
-
async _$Ej() {
|
|
783
|
-
this.isUpdatePending = true;
|
|
784
|
-
try {
|
|
785
|
-
await this._$E_;
|
|
786
|
-
} catch (t8) {
|
|
787
|
-
Promise.reject(t8);
|
|
788
|
-
}
|
|
789
|
-
const t7 = this.scheduleUpdate();
|
|
790
|
-
return null != t7 && await t7, !this.isUpdatePending;
|
|
791
|
-
}
|
|
792
|
-
scheduleUpdate() {
|
|
793
|
-
return this.performUpdate();
|
|
794
|
-
}
|
|
795
|
-
performUpdate() {
|
|
796
|
-
var t7;
|
|
797
|
-
if (!this.isUpdatePending)
|
|
798
|
-
return;
|
|
799
|
-
this.hasUpdated, this._$Ei && (this._$Ei.forEach((t8, i10) => this[i10] = t8), this._$Ei = void 0);
|
|
800
|
-
let i9 = false;
|
|
801
|
-
const s9 = this._$AL;
|
|
802
|
-
try {
|
|
803
|
-
i9 = this.shouldUpdate(s9), i9 ? (this.willUpdate(s9), null === (t7 = this._$ES) || void 0 === t7 || t7.forEach((t8) => {
|
|
804
|
-
var i10;
|
|
805
|
-
return null === (i10 = t8.hostUpdate) || void 0 === i10 ? void 0 : i10.call(t8);
|
|
806
|
-
}), this.update(s9)) : this._$Ek();
|
|
807
|
-
} catch (t8) {
|
|
808
|
-
throw i9 = false, this._$Ek(), t8;
|
|
809
|
-
}
|
|
810
|
-
i9 && this._$AE(s9);
|
|
811
|
-
}
|
|
812
|
-
willUpdate(t7) {
|
|
813
|
-
}
|
|
814
|
-
_$AE(t7) {
|
|
815
|
-
var i9;
|
|
816
|
-
null === (i9 = this._$ES) || void 0 === i9 || i9.forEach((t8) => {
|
|
817
|
-
var i10;
|
|
818
|
-
return null === (i10 = t8.hostUpdated) || void 0 === i10 ? void 0 : i10.call(t8);
|
|
819
|
-
}), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t7)), this.updated(t7);
|
|
820
|
-
}
|
|
821
|
-
_$Ek() {
|
|
822
|
-
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = false;
|
|
823
|
-
}
|
|
824
|
-
get updateComplete() {
|
|
825
|
-
return this.getUpdateComplete();
|
|
826
|
-
}
|
|
827
|
-
getUpdateComplete() {
|
|
828
|
-
return this._$E_;
|
|
829
|
-
}
|
|
830
|
-
shouldUpdate(t7) {
|
|
831
|
-
return true;
|
|
832
|
-
}
|
|
833
|
-
update(t7) {
|
|
834
|
-
void 0 !== this._$EC && (this._$EC.forEach((t8, i9) => this._$EO(i9, this[i9], t8)), this._$EC = void 0), this._$Ek();
|
|
835
|
-
}
|
|
836
|
-
updated(t7) {
|
|
837
|
-
}
|
|
838
|
-
firstUpdated(t7) {
|
|
839
|
-
}
|
|
840
|
-
};
|
|
841
|
-
u3[d3] = true, u3.elementProperties = /* @__PURE__ */ new Map(), u3.elementStyles = [], u3.shadowRootOptions = { mode: "open" }, null == o5 || o5({ ReactiveElement: u3 }), (null !== (s5 = e5.reactiveElementVersions) && void 0 !== s5 ? s5 : e5.reactiveElementVersions = []).push("1.6.3");
|
|
842
|
-
|
|
843
|
-
// node_modules/lit-element/node_modules/lit-html/lit-html.js
|
|
844
|
-
var t4;
|
|
845
|
-
var i4 = window;
|
|
846
|
-
var s6 = i4.trustedTypes;
|
|
847
|
-
var e6 = s6 ? s6.createPolicy("lit-html", { createHTML: (t7) => t7 }) : void 0;
|
|
848
|
-
var o6 = "$lit$";
|
|
849
|
-
var n6 = `lit$${(Math.random() + "").slice(9)}$`;
|
|
850
|
-
var l4 = "?" + n6;
|
|
851
|
-
var h4 = `<${l4}>`;
|
|
852
|
-
var r6 = document;
|
|
853
|
-
var u4 = () => r6.createComment("");
|
|
854
|
-
var d4 = (t7) => null === t7 || "object" != typeof t7 && "function" != typeof t7;
|
|
855
|
-
var c4 = Array.isArray;
|
|
856
|
-
var v2 = (t7) => c4(t7) || "function" == typeof (null == t7 ? void 0 : t7[Symbol.iterator]);
|
|
857
|
-
var a4 = "[ \n\f\r]";
|
|
858
|
-
var f2 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g;
|
|
859
|
-
var _2 = /-->/g;
|
|
860
|
-
var m2 = />/g;
|
|
861
|
-
var p2 = RegExp(`>|${a4}(?:([^\\s"'>=/]+)(${a4}*=${a4}*(?:[^
|
|
862
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g");
|
|
863
|
-
var g2 = /'/g;
|
|
864
|
-
var $2 = /"/g;
|
|
865
|
-
var y2 = /^(?:script|style|textarea|title)$/i;
|
|
866
|
-
var w2 = (t7) => (i9, ...s9) => ({ _$litType$: t7, strings: i9, values: s9 });
|
|
867
|
-
var x2 = w2(1);
|
|
868
|
-
var b2 = w2(2);
|
|
869
|
-
var T2 = Symbol.for("lit-noChange");
|
|
870
|
-
var A2 = Symbol.for("lit-nothing");
|
|
871
|
-
var E2 = /* @__PURE__ */ new WeakMap();
|
|
872
|
-
var C2 = r6.createTreeWalker(r6, 129, null, false);
|
|
873
|
-
function P2(t7, i9) {
|
|
874
|
-
if (!Array.isArray(t7) || !t7.hasOwnProperty("raw"))
|
|
875
|
-
throw Error("invalid template strings array");
|
|
876
|
-
return void 0 !== e6 ? e6.createHTML(i9) : i9;
|
|
877
|
-
}
|
|
878
|
-
var V2 = (t7, i9) => {
|
|
879
|
-
const s9 = t7.length - 1, e11 = [];
|
|
880
|
-
let l8, r8 = 2 === i9 ? "<svg>" : "", u6 = f2;
|
|
881
|
-
for (let i10 = 0; i10 < s9; i10++) {
|
|
882
|
-
const s10 = t7[i10];
|
|
883
|
-
let d5, c7, v3 = -1, a6 = 0;
|
|
884
|
-
for (; a6 < s10.length && (u6.lastIndex = a6, c7 = u6.exec(s10), null !== c7); )
|
|
885
|
-
a6 = u6.lastIndex, u6 === f2 ? "!--" === c7[1] ? u6 = _2 : void 0 !== c7[1] ? u6 = m2 : void 0 !== c7[2] ? (y2.test(c7[2]) && (l8 = RegExp("</" + c7[2], "g")), u6 = p2) : void 0 !== c7[3] && (u6 = p2) : u6 === p2 ? ">" === c7[0] ? (u6 = null != l8 ? l8 : f2, v3 = -1) : void 0 === c7[1] ? v3 = -2 : (v3 = u6.lastIndex - c7[2].length, d5 = c7[1], u6 = void 0 === c7[3] ? p2 : '"' === c7[3] ? $2 : g2) : u6 === $2 || u6 === g2 ? u6 = p2 : u6 === _2 || u6 === m2 ? u6 = f2 : (u6 = p2, l8 = void 0);
|
|
886
|
-
const w3 = u6 === p2 && t7[i10 + 1].startsWith("/>") ? " " : "";
|
|
887
|
-
r8 += u6 === f2 ? s10 + h4 : v3 >= 0 ? (e11.push(d5), s10.slice(0, v3) + o6 + s10.slice(v3) + n6 + w3) : s10 + n6 + (-2 === v3 ? (e11.push(void 0), i10) : w3);
|
|
888
|
-
}
|
|
889
|
-
return [P2(t7, r8 + (t7[s9] || "<?>") + (2 === i9 ? "</svg>" : "")), e11];
|
|
890
|
-
};
|
|
891
|
-
var N2 = class _N {
|
|
892
|
-
constructor({ strings: t7, _$litType$: i9 }, e11) {
|
|
893
|
-
let h5;
|
|
894
|
-
this.parts = [];
|
|
895
|
-
let r8 = 0, d5 = 0;
|
|
896
|
-
const c7 = t7.length - 1, v3 = this.parts, [a6, f4] = V2(t7, i9);
|
|
897
|
-
if (this.el = _N.createElement(a6, e11), C2.currentNode = this.el.content, 2 === i9) {
|
|
898
|
-
const t8 = this.el.content, i10 = t8.firstChild;
|
|
899
|
-
i10.remove(), t8.append(...i10.childNodes);
|
|
900
|
-
}
|
|
901
|
-
for (; null !== (h5 = C2.nextNode()) && v3.length < c7; ) {
|
|
902
|
-
if (1 === h5.nodeType) {
|
|
903
|
-
if (h5.hasAttributes()) {
|
|
904
|
-
const t8 = [];
|
|
905
|
-
for (const i10 of h5.getAttributeNames())
|
|
906
|
-
if (i10.endsWith(o6) || i10.startsWith(n6)) {
|
|
907
|
-
const s9 = f4[d5++];
|
|
908
|
-
if (t8.push(i10), void 0 !== s9) {
|
|
909
|
-
const t9 = h5.getAttribute(s9.toLowerCase() + o6).split(n6), i11 = /([.?@])?(.*)/.exec(s9);
|
|
910
|
-
v3.push({ type: 1, index: r8, name: i11[2], strings: t9, ctor: "." === i11[1] ? H2 : "?" === i11[1] ? L2 : "@" === i11[1] ? z2 : k2 });
|
|
911
|
-
} else
|
|
912
|
-
v3.push({ type: 6, index: r8 });
|
|
913
|
-
}
|
|
914
|
-
for (const i10 of t8)
|
|
915
|
-
h5.removeAttribute(i10);
|
|
916
|
-
}
|
|
917
|
-
if (y2.test(h5.tagName)) {
|
|
918
|
-
const t8 = h5.textContent.split(n6), i10 = t8.length - 1;
|
|
919
|
-
if (i10 > 0) {
|
|
920
|
-
h5.textContent = s6 ? s6.emptyScript : "";
|
|
921
|
-
for (let s9 = 0; s9 < i10; s9++)
|
|
922
|
-
h5.append(t8[s9], u4()), C2.nextNode(), v3.push({ type: 2, index: ++r8 });
|
|
923
|
-
h5.append(t8[i10], u4());
|
|
924
|
-
}
|
|
925
|
-
}
|
|
926
|
-
} else if (8 === h5.nodeType)
|
|
927
|
-
if (h5.data === l4)
|
|
928
|
-
v3.push({ type: 2, index: r8 });
|
|
929
|
-
else {
|
|
930
|
-
let t8 = -1;
|
|
931
|
-
for (; -1 !== (t8 = h5.data.indexOf(n6, t8 + 1)); )
|
|
932
|
-
v3.push({ type: 7, index: r8 }), t8 += n6.length - 1;
|
|
933
|
-
}
|
|
934
|
-
r8++;
|
|
935
|
-
}
|
|
936
|
-
}
|
|
937
|
-
static createElement(t7, i9) {
|
|
938
|
-
const s9 = r6.createElement("template");
|
|
939
|
-
return s9.innerHTML = t7, s9;
|
|
940
|
-
}
|
|
941
|
-
};
|
|
942
|
-
function S4(t7, i9, s9 = t7, e11) {
|
|
943
|
-
var o9, n10, l8, h5;
|
|
944
|
-
if (i9 === T2)
|
|
945
|
-
return i9;
|
|
946
|
-
let r8 = void 0 !== e11 ? null === (o9 = s9._$Co) || void 0 === o9 ? void 0 : o9[e11] : s9._$Cl;
|
|
947
|
-
const u6 = d4(i9) ? void 0 : i9._$litDirective$;
|
|
948
|
-
return (null == r8 ? void 0 : r8.constructor) !== u6 && (null === (n10 = null == r8 ? void 0 : r8._$AO) || void 0 === n10 || n10.call(r8, false), void 0 === u6 ? r8 = void 0 : (r8 = new u6(t7), r8._$AT(t7, s9, e11)), void 0 !== e11 ? (null !== (l8 = (h5 = s9)._$Co) && void 0 !== l8 ? l8 : h5._$Co = [])[e11] = r8 : s9._$Cl = r8), void 0 !== r8 && (i9 = S4(t7, r8._$AS(t7, i9.values), r8, e11)), i9;
|
|
949
|
-
}
|
|
950
|
-
var M2 = class {
|
|
951
|
-
constructor(t7, i9) {
|
|
952
|
-
this._$AV = [], this._$AN = void 0, this._$AD = t7, this._$AM = i9;
|
|
953
|
-
}
|
|
954
|
-
get parentNode() {
|
|
955
|
-
return this._$AM.parentNode;
|
|
956
|
-
}
|
|
957
|
-
get _$AU() {
|
|
958
|
-
return this._$AM._$AU;
|
|
959
|
-
}
|
|
960
|
-
u(t7) {
|
|
961
|
-
var i9;
|
|
962
|
-
const { el: { content: s9 }, parts: e11 } = this._$AD, o9 = (null !== (i9 = null == t7 ? void 0 : t7.creationScope) && void 0 !== i9 ? i9 : r6).importNode(s9, true);
|
|
963
|
-
C2.currentNode = o9;
|
|
964
|
-
let n10 = C2.nextNode(), l8 = 0, h5 = 0, u6 = e11[0];
|
|
965
|
-
for (; void 0 !== u6; ) {
|
|
966
|
-
if (l8 === u6.index) {
|
|
967
|
-
let i10;
|
|
968
|
-
2 === u6.type ? i10 = new R2(n10, n10.nextSibling, this, t7) : 1 === u6.type ? i10 = new u6.ctor(n10, u6.name, u6.strings, this, t7) : 6 === u6.type && (i10 = new Z2(n10, this, t7)), this._$AV.push(i10), u6 = e11[++h5];
|
|
969
|
-
}
|
|
970
|
-
l8 !== (null == u6 ? void 0 : u6.index) && (n10 = C2.nextNode(), l8++);
|
|
971
|
-
}
|
|
972
|
-
return C2.currentNode = r6, o9;
|
|
973
|
-
}
|
|
974
|
-
v(t7) {
|
|
975
|
-
let i9 = 0;
|
|
976
|
-
for (const s9 of this._$AV)
|
|
977
|
-
void 0 !== s9 && (void 0 !== s9.strings ? (s9._$AI(t7, s9, i9), i9 += s9.strings.length - 2) : s9._$AI(t7[i9])), i9++;
|
|
978
|
-
}
|
|
979
|
-
};
|
|
980
|
-
var R2 = class _R {
|
|
981
|
-
constructor(t7, i9, s9, e11) {
|
|
982
|
-
var o9;
|
|
983
|
-
this.type = 2, this._$AH = A2, this._$AN = void 0, this._$AA = t7, this._$AB = i9, this._$AM = s9, this.options = e11, this._$Cp = null === (o9 = null == e11 ? void 0 : e11.isConnected) || void 0 === o9 || o9;
|
|
984
|
-
}
|
|
985
|
-
get _$AU() {
|
|
986
|
-
var t7, i9;
|
|
987
|
-
return null !== (i9 = null === (t7 = this._$AM) || void 0 === t7 ? void 0 : t7._$AU) && void 0 !== i9 ? i9 : this._$Cp;
|
|
988
|
-
}
|
|
989
|
-
get parentNode() {
|
|
990
|
-
let t7 = this._$AA.parentNode;
|
|
991
|
-
const i9 = this._$AM;
|
|
992
|
-
return void 0 !== i9 && 11 === (null == t7 ? void 0 : t7.nodeType) && (t7 = i9.parentNode), t7;
|
|
993
|
-
}
|
|
994
|
-
get startNode() {
|
|
995
|
-
return this._$AA;
|
|
996
|
-
}
|
|
997
|
-
get endNode() {
|
|
998
|
-
return this._$AB;
|
|
999
|
-
}
|
|
1000
|
-
_$AI(t7, i9 = this) {
|
|
1001
|
-
t7 = S4(this, t7, i9), d4(t7) ? t7 === A2 || null == t7 || "" === t7 ? (this._$AH !== A2 && this._$AR(), this._$AH = A2) : t7 !== this._$AH && t7 !== T2 && this._(t7) : void 0 !== t7._$litType$ ? this.g(t7) : void 0 !== t7.nodeType ? this.$(t7) : v2(t7) ? this.T(t7) : this._(t7);
|
|
1002
|
-
}
|
|
1003
|
-
k(t7) {
|
|
1004
|
-
return this._$AA.parentNode.insertBefore(t7, this._$AB);
|
|
1005
|
-
}
|
|
1006
|
-
$(t7) {
|
|
1007
|
-
this._$AH !== t7 && (this._$AR(), this._$AH = this.k(t7));
|
|
1008
|
-
}
|
|
1009
|
-
_(t7) {
|
|
1010
|
-
this._$AH !== A2 && d4(this._$AH) ? this._$AA.nextSibling.data = t7 : this.$(r6.createTextNode(t7)), this._$AH = t7;
|
|
1011
|
-
}
|
|
1012
|
-
g(t7) {
|
|
1013
|
-
var i9;
|
|
1014
|
-
const { values: s9, _$litType$: e11 } = t7, o9 = "number" == typeof e11 ? this._$AC(t7) : (void 0 === e11.el && (e11.el = N2.createElement(P2(e11.h, e11.h[0]), this.options)), e11);
|
|
1015
|
-
if ((null === (i9 = this._$AH) || void 0 === i9 ? void 0 : i9._$AD) === o9)
|
|
1016
|
-
this._$AH.v(s9);
|
|
1017
|
-
else {
|
|
1018
|
-
const t8 = new M2(o9, this), i10 = t8.u(this.options);
|
|
1019
|
-
t8.v(s9), this.$(i10), this._$AH = t8;
|
|
1020
|
-
}
|
|
1021
|
-
}
|
|
1022
|
-
_$AC(t7) {
|
|
1023
|
-
let i9 = E2.get(t7.strings);
|
|
1024
|
-
return void 0 === i9 && E2.set(t7.strings, i9 = new N2(t7)), i9;
|
|
1025
|
-
}
|
|
1026
|
-
T(t7) {
|
|
1027
|
-
c4(this._$AH) || (this._$AH = [], this._$AR());
|
|
1028
|
-
const i9 = this._$AH;
|
|
1029
|
-
let s9, e11 = 0;
|
|
1030
|
-
for (const o9 of t7)
|
|
1031
|
-
e11 === i9.length ? i9.push(s9 = new _R(this.k(u4()), this.k(u4()), this, this.options)) : s9 = i9[e11], s9._$AI(o9), e11++;
|
|
1032
|
-
e11 < i9.length && (this._$AR(s9 && s9._$AB.nextSibling, e11), i9.length = e11);
|
|
1033
|
-
}
|
|
1034
|
-
_$AR(t7 = this._$AA.nextSibling, i9) {
|
|
1035
|
-
var s9;
|
|
1036
|
-
for (null === (s9 = this._$AP) || void 0 === s9 || s9.call(this, false, true, i9); t7 && t7 !== this._$AB; ) {
|
|
1037
|
-
const i10 = t7.nextSibling;
|
|
1038
|
-
t7.remove(), t7 = i10;
|
|
1039
|
-
}
|
|
1040
|
-
}
|
|
1041
|
-
setConnected(t7) {
|
|
1042
|
-
var i9;
|
|
1043
|
-
void 0 === this._$AM && (this._$Cp = t7, null === (i9 = this._$AP) || void 0 === i9 || i9.call(this, t7));
|
|
1044
|
-
}
|
|
1045
|
-
};
|
|
1046
|
-
var k2 = class {
|
|
1047
|
-
constructor(t7, i9, s9, e11, o9) {
|
|
1048
|
-
this.type = 1, this._$AH = A2, this._$AN = void 0, this.element = t7, this.name = i9, this._$AM = e11, this.options = o9, s9.length > 2 || "" !== s9[0] || "" !== s9[1] ? (this._$AH = Array(s9.length - 1).fill(new String()), this.strings = s9) : this._$AH = A2;
|
|
1049
|
-
}
|
|
1050
|
-
get tagName() {
|
|
1051
|
-
return this.element.tagName;
|
|
1052
|
-
}
|
|
1053
|
-
get _$AU() {
|
|
1054
|
-
return this._$AM._$AU;
|
|
1055
|
-
}
|
|
1056
|
-
_$AI(t7, i9 = this, s9, e11) {
|
|
1057
|
-
const o9 = this.strings;
|
|
1058
|
-
let n10 = false;
|
|
1059
|
-
if (void 0 === o9)
|
|
1060
|
-
t7 = S4(this, t7, i9, 0), n10 = !d4(t7) || t7 !== this._$AH && t7 !== T2, n10 && (this._$AH = t7);
|
|
1061
|
-
else {
|
|
1062
|
-
const e12 = t7;
|
|
1063
|
-
let l8, h5;
|
|
1064
|
-
for (t7 = o9[0], l8 = 0; l8 < o9.length - 1; l8++)
|
|
1065
|
-
h5 = S4(this, e12[s9 + l8], i9, l8), h5 === T2 && (h5 = this._$AH[l8]), n10 || (n10 = !d4(h5) || h5 !== this._$AH[l8]), h5 === A2 ? t7 = A2 : t7 !== A2 && (t7 += (null != h5 ? h5 : "") + o9[l8 + 1]), this._$AH[l8] = h5;
|
|
1066
|
-
}
|
|
1067
|
-
n10 && !e11 && this.j(t7);
|
|
1068
|
-
}
|
|
1069
|
-
j(t7) {
|
|
1070
|
-
t7 === A2 ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, null != t7 ? t7 : "");
|
|
1071
|
-
}
|
|
1072
|
-
};
|
|
1073
|
-
var H2 = class extends k2 {
|
|
1074
|
-
constructor() {
|
|
1075
|
-
super(...arguments), this.type = 3;
|
|
1076
|
-
}
|
|
1077
|
-
j(t7) {
|
|
1078
|
-
this.element[this.name] = t7 === A2 ? void 0 : t7;
|
|
1079
|
-
}
|
|
1080
|
-
};
|
|
1081
|
-
var I2 = s6 ? s6.emptyScript : "";
|
|
1082
|
-
var L2 = class extends k2 {
|
|
1083
|
-
constructor() {
|
|
1084
|
-
super(...arguments), this.type = 4;
|
|
1085
|
-
}
|
|
1086
|
-
j(t7) {
|
|
1087
|
-
t7 && t7 !== A2 ? this.element.setAttribute(this.name, I2) : this.element.removeAttribute(this.name);
|
|
1088
|
-
}
|
|
1089
|
-
};
|
|
1090
|
-
var z2 = class extends k2 {
|
|
1091
|
-
constructor(t7, i9, s9, e11, o9) {
|
|
1092
|
-
super(t7, i9, s9, e11, o9), this.type = 5;
|
|
1093
|
-
}
|
|
1094
|
-
_$AI(t7, i9 = this) {
|
|
1095
|
-
var s9;
|
|
1096
|
-
if ((t7 = null !== (s9 = S4(this, t7, i9, 0)) && void 0 !== s9 ? s9 : A2) === T2)
|
|
1097
|
-
return;
|
|
1098
|
-
const e11 = this._$AH, o9 = t7 === A2 && e11 !== A2 || t7.capture !== e11.capture || t7.once !== e11.once || t7.passive !== e11.passive, n10 = t7 !== A2 && (e11 === A2 || o9);
|
|
1099
|
-
o9 && this.element.removeEventListener(this.name, this, e11), n10 && this.element.addEventListener(this.name, this, t7), this._$AH = t7;
|
|
1100
|
-
}
|
|
1101
|
-
handleEvent(t7) {
|
|
1102
|
-
var i9, s9;
|
|
1103
|
-
"function" == typeof this._$AH ? this._$AH.call(null !== (s9 = null === (i9 = this.options) || void 0 === i9 ? void 0 : i9.host) && void 0 !== s9 ? s9 : this.element, t7) : this._$AH.handleEvent(t7);
|
|
1104
|
-
}
|
|
1105
|
-
};
|
|
1106
|
-
var Z2 = class {
|
|
1107
|
-
constructor(t7, i9, s9) {
|
|
1108
|
-
this.element = t7, this.type = 6, this._$AN = void 0, this._$AM = i9, this.options = s9;
|
|
1109
|
-
}
|
|
1110
|
-
get _$AU() {
|
|
1111
|
-
return this._$AM._$AU;
|
|
1112
|
-
}
|
|
1113
|
-
_$AI(t7) {
|
|
1114
|
-
S4(this, t7);
|
|
1115
|
-
}
|
|
1116
|
-
};
|
|
1117
|
-
var B2 = i4.litHtmlPolyfillSupport;
|
|
1118
|
-
null == B2 || B2(N2, R2), (null !== (t4 = i4.litHtmlVersions) && void 0 !== t4 ? t4 : i4.litHtmlVersions = []).push("2.8.0");
|
|
1119
|
-
var D = (t7, i9, s9) => {
|
|
1120
|
-
var e11, o9;
|
|
1121
|
-
const n10 = null !== (e11 = null == s9 ? void 0 : s9.renderBefore) && void 0 !== e11 ? e11 : i9;
|
|
1122
|
-
let l8 = n10._$litPart$;
|
|
1123
|
-
if (void 0 === l8) {
|
|
1124
|
-
const t8 = null !== (o9 = null == s9 ? void 0 : s9.renderBefore) && void 0 !== o9 ? o9 : null;
|
|
1125
|
-
n10._$litPart$ = l8 = new R2(i9.insertBefore(u4(), t8), t8, void 0, null != s9 ? s9 : {});
|
|
1126
|
-
}
|
|
1127
|
-
return l8._$AI(t7), l8;
|
|
580
|
+
null == B || B(N, R), (null !== (t2 = i2.litHtmlVersions) && void 0 !== t2 ? t2 : i2.litHtmlVersions = []).push("2.7.5");
|
|
581
|
+
var D = (t5, i7, s6) => {
|
|
582
|
+
var e8, o6;
|
|
583
|
+
const n7 = null !== (e8 = null == s6 ? void 0 : s6.renderBefore) && void 0 !== e8 ? e8 : i7;
|
|
584
|
+
let l6 = n7._$litPart$;
|
|
585
|
+
if (void 0 === l6) {
|
|
586
|
+
const t6 = null !== (o6 = null == s6 ? void 0 : s6.renderBefore) && void 0 !== o6 ? o6 : null;
|
|
587
|
+
n7._$litPart$ = l6 = new R(i7.insertBefore(u2(), t6), t6, void 0, null != s6 ? s6 : {});
|
|
588
|
+
}
|
|
589
|
+
return l6._$AI(t5), l6;
|
|
1128
590
|
};
|
|
1129
591
|
|
|
1130
592
|
// node_modules/lit-element/lit-element.js
|
|
1131
|
-
var
|
|
1132
|
-
var
|
|
1133
|
-
var
|
|
593
|
+
var l3;
|
|
594
|
+
var o4;
|
|
595
|
+
var s4 = class extends u {
|
|
1134
596
|
constructor() {
|
|
1135
597
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
1136
598
|
}
|
|
1137
599
|
createRenderRoot() {
|
|
1138
|
-
var
|
|
1139
|
-
const
|
|
1140
|
-
return null !== (
|
|
600
|
+
var t5, e8;
|
|
601
|
+
const i7 = super.createRenderRoot();
|
|
602
|
+
return null !== (t5 = (e8 = this.renderOptions).renderBefore) && void 0 !== t5 || (e8.renderBefore = i7.firstChild), i7;
|
|
1141
603
|
}
|
|
1142
|
-
update(
|
|
1143
|
-
const
|
|
1144
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(
|
|
604
|
+
update(t5) {
|
|
605
|
+
const i7 = this.render();
|
|
606
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t5), this._$Do = D(i7, this.renderRoot, this.renderOptions);
|
|
1145
607
|
}
|
|
1146
608
|
connectedCallback() {
|
|
1147
|
-
var
|
|
1148
|
-
super.connectedCallback(), null === (
|
|
609
|
+
var t5;
|
|
610
|
+
super.connectedCallback(), null === (t5 = this._$Do) || void 0 === t5 || t5.setConnected(true);
|
|
1149
611
|
}
|
|
1150
612
|
disconnectedCallback() {
|
|
1151
|
-
var
|
|
1152
|
-
super.disconnectedCallback(), null === (
|
|
613
|
+
var t5;
|
|
614
|
+
super.disconnectedCallback(), null === (t5 = this._$Do) || void 0 === t5 || t5.setConnected(false);
|
|
1153
615
|
}
|
|
1154
616
|
render() {
|
|
1155
|
-
return
|
|
617
|
+
return T;
|
|
1156
618
|
}
|
|
1157
619
|
};
|
|
1158
|
-
|
|
1159
|
-
var
|
|
1160
|
-
null ==
|
|
1161
|
-
(null !== (
|
|
620
|
+
s4.finalized = true, s4._$litElement$ = true, null === (l3 = globalThis.litElementHydrateSupport) || void 0 === l3 || l3.call(globalThis, { LitElement: s4 });
|
|
621
|
+
var n4 = globalThis.litElementPolyfillSupport;
|
|
622
|
+
null == n4 || n4({ LitElement: s4 });
|
|
623
|
+
(null !== (o4 = globalThis.litElementVersions) && void 0 !== o4 ? o4 : globalThis.litElementVersions = []).push("3.3.2");
|
|
1162
624
|
|
|
1163
|
-
// node_modules
|
|
1164
|
-
var
|
|
1165
|
-
const { kind:
|
|
1166
|
-
return { kind:
|
|
1167
|
-
customElements.define(
|
|
625
|
+
// node_modules/@lit/reactive-element/decorators/custom-element.js
|
|
626
|
+
var e4 = (e8) => (n7) => "function" == typeof n7 ? ((e9, n8) => (customElements.define(e9, n8), n8))(e8, n7) : ((e9, n8) => {
|
|
627
|
+
const { kind: t5, elements: s6 } = n8;
|
|
628
|
+
return { kind: t5, elements: s6, finisher(n9) {
|
|
629
|
+
customElements.define(e9, n9);
|
|
1168
630
|
} };
|
|
1169
|
-
})(
|
|
631
|
+
})(e8, n7);
|
|
1170
632
|
|
|
1171
|
-
// node_modules
|
|
1172
|
-
var
|
|
1173
|
-
|
|
1174
|
-
} } : { kind: "field", key: Symbol(), placement: "own", descriptor: {}, originalKey:
|
|
1175
|
-
"function" == typeof
|
|
1176
|
-
}, finisher(
|
|
1177
|
-
|
|
633
|
+
// node_modules/@lit/reactive-element/decorators/property.js
|
|
634
|
+
var i3 = (i7, e8) => "method" === e8.kind && e8.descriptor && !("value" in e8.descriptor) ? { ...e8, finisher(n7) {
|
|
635
|
+
n7.createProperty(e8.key, i7);
|
|
636
|
+
} } : { kind: "field", key: Symbol(), placement: "own", descriptor: {}, originalKey: e8.key, initializer() {
|
|
637
|
+
"function" == typeof e8.initializer && (this[e8.key] = e8.initializer.call(this));
|
|
638
|
+
}, finisher(n7) {
|
|
639
|
+
n7.createProperty(e8.key, i7);
|
|
1178
640
|
} };
|
|
1179
|
-
var
|
|
1180
|
-
|
|
641
|
+
var e5 = (i7, e8, n7) => {
|
|
642
|
+
e8.constructor.createProperty(n7, i7);
|
|
1181
643
|
};
|
|
1182
|
-
function
|
|
1183
|
-
return (
|
|
644
|
+
function n5(n7) {
|
|
645
|
+
return (t5, o6) => void 0 !== o6 ? e5(n7, t5, o6) : i3(n7, t5);
|
|
1184
646
|
}
|
|
1185
647
|
|
|
1186
|
-
// node_modules
|
|
1187
|
-
function t5
|
|
1188
|
-
return
|
|
648
|
+
// node_modules/@lit/reactive-element/decorators/state.js
|
|
649
|
+
function t3(t5) {
|
|
650
|
+
return n5({ ...t5, state: true });
|
|
1189
651
|
}
|
|
1190
652
|
|
|
1191
|
-
// node_modules
|
|
1192
|
-
var
|
|
1193
|
-
var
|
|
1194
|
-
if (void 0 ===
|
|
1195
|
-
const
|
|
1196
|
-
return null !=
|
|
1197
|
-
|
|
1198
|
-
}),
|
|
653
|
+
// node_modules/@lit/reactive-element/decorators/base.js
|
|
654
|
+
var o5 = ({ finisher: e8, descriptor: t5 }) => (o6, n7) => {
|
|
655
|
+
var r6;
|
|
656
|
+
if (void 0 === n7) {
|
|
657
|
+
const n8 = null !== (r6 = o6.originalKey) && void 0 !== r6 ? r6 : o6.key, i7 = null != t5 ? { kind: "method", placement: "prototype", key: n8, descriptor: t5(o6.key) } : { ...o6, key: n8 };
|
|
658
|
+
return null != e8 && (i7.finisher = function(t6) {
|
|
659
|
+
e8(t6, n8);
|
|
660
|
+
}), i7;
|
|
1199
661
|
}
|
|
1200
662
|
{
|
|
1201
|
-
const
|
|
1202
|
-
void 0 !==
|
|
663
|
+
const r7 = o6.constructor;
|
|
664
|
+
void 0 !== t5 && Object.defineProperty(o6, n7, t5(n7)), null == e8 || e8(r7, n7);
|
|
1203
665
|
}
|
|
1204
666
|
};
|
|
1205
667
|
|
|
1206
|
-
// node_modules
|
|
1207
|
-
function
|
|
1208
|
-
return
|
|
1209
|
-
const
|
|
1210
|
-
var
|
|
1211
|
-
return null !== (
|
|
668
|
+
// node_modules/@lit/reactive-element/decorators/query.js
|
|
669
|
+
function i4(i7, n7) {
|
|
670
|
+
return o5({ descriptor: (o6) => {
|
|
671
|
+
const t5 = { get() {
|
|
672
|
+
var o7, n8;
|
|
673
|
+
return null !== (n8 = null === (o7 = this.renderRoot) || void 0 === o7 ? void 0 : o7.querySelector(i7)) && void 0 !== n8 ? n8 : null;
|
|
1212
674
|
}, enumerable: true, configurable: true };
|
|
1213
|
-
if (
|
|
1214
|
-
const
|
|
1215
|
-
|
|
1216
|
-
var
|
|
1217
|
-
return void 0 === this[
|
|
675
|
+
if (n7) {
|
|
676
|
+
const n8 = "symbol" == typeof o6 ? Symbol() : "__" + o6;
|
|
677
|
+
t5.get = function() {
|
|
678
|
+
var o7, t6;
|
|
679
|
+
return void 0 === this[n8] && (this[n8] = null !== (t6 = null === (o7 = this.renderRoot) || void 0 === o7 ? void 0 : o7.querySelector(i7)) && void 0 !== t6 ? t6 : null), this[n8];
|
|
1218
680
|
};
|
|
1219
681
|
}
|
|
1220
|
-
return
|
|
682
|
+
return t5;
|
|
1221
683
|
} });
|
|
1222
684
|
}
|
|
1223
685
|
|
|
1224
|
-
// node_modules
|
|
1225
|
-
var
|
|
1226
|
-
var
|
|
686
|
+
// node_modules/@lit/reactive-element/decorators/query-assigned-elements.js
|
|
687
|
+
var n6;
|
|
688
|
+
var e6 = null != (null === (n6 = window.HTMLSlotElement) || void 0 === n6 ? void 0 : n6.prototype.assignedElements) ? (o6, n7) => o6.assignedElements(n7) : (o6, n7) => o6.assignedNodes(n7).filter((o7) => o7.nodeType === Node.ELEMENT_NODE);
|
|
1227
689
|
|
|
1228
690
|
// node_modules/json-joy/esm/json-clone/clone.js
|
|
1229
691
|
var { isArray } = Array;
|
|
@@ -1234,15 +696,15 @@
|
|
|
1234
696
|
if (isArray(obj)) {
|
|
1235
697
|
const arr = [];
|
|
1236
698
|
const length = obj.length;
|
|
1237
|
-
for (let
|
|
1238
|
-
arr.push(clone(obj[
|
|
699
|
+
for (let i7 = 0; i7 < length; i7++)
|
|
700
|
+
arr.push(clone(obj[i7]));
|
|
1239
701
|
return arr;
|
|
1240
702
|
} else if (typeof obj === "object") {
|
|
1241
703
|
const keys = objectKeys(obj);
|
|
1242
704
|
const length = keys.length;
|
|
1243
705
|
const newObject = {};
|
|
1244
|
-
for (let
|
|
1245
|
-
const key = keys[
|
|
706
|
+
for (let i7 = 0; i7 < length; i7++) {
|
|
707
|
+
const key = keys[i7];
|
|
1246
708
|
newObject[key] = clone(obj[key]);
|
|
1247
709
|
}
|
|
1248
710
|
return newObject;
|
|
@@ -1263,7 +725,7 @@
|
|
|
1263
725
|
var r1 = /~1/g;
|
|
1264
726
|
var r22 = /~0/g;
|
|
1265
727
|
var r32 = /~/g;
|
|
1266
|
-
var
|
|
728
|
+
var r4 = /\//g;
|
|
1267
729
|
function unescapeComponent(component) {
|
|
1268
730
|
if (component.indexOf("~") === -1)
|
|
1269
731
|
return component;
|
|
@@ -1272,7 +734,7 @@
|
|
|
1272
734
|
function escapeComponent(component) {
|
|
1273
735
|
if (component.indexOf("/") === -1 && component.indexOf("~") === -1)
|
|
1274
736
|
return component;
|
|
1275
|
-
return component.replace(r32, "~0").replace(
|
|
737
|
+
return component.replace(r32, "~0").replace(r4, "~1");
|
|
1276
738
|
}
|
|
1277
739
|
function parseJsonPointer(pointer) {
|
|
1278
740
|
if (!pointer)
|
|
@@ -1304,9 +766,9 @@
|
|
|
1304
766
|
return { val };
|
|
1305
767
|
let obj;
|
|
1306
768
|
let key;
|
|
1307
|
-
for (let
|
|
769
|
+
for (let i7 = 0; i7 < pathLength; i7++) {
|
|
1308
770
|
obj = val;
|
|
1309
|
-
key = path[
|
|
771
|
+
key = path[i7];
|
|
1310
772
|
if (isArray3(obj)) {
|
|
1311
773
|
const length = obj.length;
|
|
1312
774
|
if (key === "-")
|
|
@@ -1574,29 +1036,29 @@
|
|
|
1574
1036
|
};
|
|
1575
1037
|
|
|
1576
1038
|
// node_modules/json-joy/esm/json-equal/deepEqual/v1.js
|
|
1577
|
-
var deepEqual = (
|
|
1578
|
-
if (
|
|
1039
|
+
var deepEqual = (a3, b2) => {
|
|
1040
|
+
if (a3 === b2)
|
|
1579
1041
|
return true;
|
|
1580
|
-
if (
|
|
1581
|
-
if (
|
|
1042
|
+
if (a3 && b2 && typeof a3 === "object" && typeof b2 === "object") {
|
|
1043
|
+
if (a3.constructor !== b2.constructor)
|
|
1582
1044
|
return false;
|
|
1583
|
-
let length,
|
|
1584
|
-
if (Array.isArray(
|
|
1585
|
-
length =
|
|
1586
|
-
if (length !==
|
|
1045
|
+
let length, i7, keys;
|
|
1046
|
+
if (Array.isArray(a3)) {
|
|
1047
|
+
length = a3.length;
|
|
1048
|
+
if (length !== b2.length)
|
|
1587
1049
|
return false;
|
|
1588
|
-
for (
|
|
1589
|
-
if (!deepEqual(
|
|
1050
|
+
for (i7 = length; i7-- !== 0; )
|
|
1051
|
+
if (!deepEqual(a3[i7], b2[i7]))
|
|
1590
1052
|
return false;
|
|
1591
1053
|
return true;
|
|
1592
1054
|
}
|
|
1593
|
-
keys = Object.keys(
|
|
1055
|
+
keys = Object.keys(a3);
|
|
1594
1056
|
length = keys.length;
|
|
1595
|
-
if (length !== Object.keys(
|
|
1057
|
+
if (length !== Object.keys(b2).length)
|
|
1596
1058
|
return false;
|
|
1597
|
-
for (
|
|
1598
|
-
const key = keys[
|
|
1599
|
-
if (!deepEqual(
|
|
1059
|
+
for (i7 = length; i7-- !== 0; ) {
|
|
1060
|
+
const key = keys[i7];
|
|
1061
|
+
if (!deepEqual(a3[key], b2[key]))
|
|
1600
1062
|
return false;
|
|
1601
1063
|
}
|
|
1602
1064
|
return true;
|
|
@@ -2078,14 +1540,14 @@
|
|
|
2078
1540
|
return value;
|
|
2079
1541
|
if (!value)
|
|
2080
1542
|
return value;
|
|
2081
|
-
for (const [key,
|
|
1543
|
+
for (const [key, v2] of Object.entries(this.props)) {
|
|
2082
1544
|
if (key === "__proto__")
|
|
2083
1545
|
throw new Error("NO_PROTO");
|
|
2084
|
-
if (
|
|
1546
|
+
if (v2 === null && this.deleteNull) {
|
|
2085
1547
|
delete value[key];
|
|
2086
1548
|
continue;
|
|
2087
1549
|
}
|
|
2088
|
-
value[key] =
|
|
1550
|
+
value[key] = v2;
|
|
2089
1551
|
}
|
|
2090
1552
|
return value;
|
|
2091
1553
|
}
|
|
@@ -2498,8 +1960,8 @@
|
|
|
2498
1960
|
}
|
|
2499
1961
|
test(doc) {
|
|
2500
1962
|
const { val } = find(doc, this.path);
|
|
2501
|
-
for (const
|
|
2502
|
-
if (deepEqual(val,
|
|
1963
|
+
for (const x2 of this.value)
|
|
1964
|
+
if (deepEqual(val, x2))
|
|
2503
1965
|
return true;
|
|
2504
1966
|
return false;
|
|
2505
1967
|
}
|
|
@@ -2654,8 +2116,8 @@
|
|
|
2654
2116
|
encoder.encodeArray(path);
|
|
2655
2117
|
const length = this.ops.length;
|
|
2656
2118
|
encoder.encodeArrayHeader(length);
|
|
2657
|
-
for (let
|
|
2658
|
-
this.ops[
|
|
2119
|
+
for (let i7 = 0; i7 < length; i7++)
|
|
2120
|
+
this.ops[i7].encode(encoder, this);
|
|
2659
2121
|
}
|
|
2660
2122
|
};
|
|
2661
2123
|
|
|
@@ -2700,8 +2162,8 @@
|
|
|
2700
2162
|
encoder.encodeArray(parent ? this.path.slice(parent.path.length) : this.path);
|
|
2701
2163
|
const length = this.ops.length;
|
|
2702
2164
|
encoder.encodeArrayHeader(length);
|
|
2703
|
-
for (let
|
|
2704
|
-
this.ops[
|
|
2165
|
+
for (let i7 = 0; i7 < length; i7++)
|
|
2166
|
+
this.ops[i7].encode(encoder, this);
|
|
2705
2167
|
}
|
|
2706
2168
|
};
|
|
2707
2169
|
|
|
@@ -2746,8 +2208,8 @@
|
|
|
2746
2208
|
encoder.encodeArray(parent ? this.path.slice(parent.path.length) : this.path);
|
|
2747
2209
|
const length = this.ops.length;
|
|
2748
2210
|
encoder.encodeArrayHeader(length);
|
|
2749
|
-
for (let
|
|
2750
|
-
this.ops[
|
|
2211
|
+
for (let i7 = 0; i7 < length; i7++)
|
|
2212
|
+
this.ops[i7].encode(encoder, this);
|
|
2751
2213
|
}
|
|
2752
2214
|
};
|
|
2753
2215
|
|
|
@@ -2909,15 +2371,15 @@
|
|
|
2909
2371
|
return new OpMore(toPath(op.path), op.value);
|
|
2910
2372
|
case "and": {
|
|
2911
2373
|
const path = toPath(op.path);
|
|
2912
|
-
return new OpAnd(path, op.apply.map((
|
|
2374
|
+
return new OpAnd(path, op.apply.map((x2) => operationToPredicateOp({ ...x2, path: [...path, ...toPath(x2.path)] }, options)));
|
|
2913
2375
|
}
|
|
2914
2376
|
case "or": {
|
|
2915
2377
|
const path = toPath(op.path);
|
|
2916
|
-
return new OpOr(path, op.apply.map((
|
|
2378
|
+
return new OpOr(path, op.apply.map((x2) => operationToPredicateOp({ ...x2, path: [...path, ...toPath(x2.path)] }, options)));
|
|
2917
2379
|
}
|
|
2918
2380
|
case "not": {
|
|
2919
2381
|
const path = toPath(op.path);
|
|
2920
|
-
return new OpNot(path, op.apply.map((
|
|
2382
|
+
return new OpNot(path, op.apply.map((x2) => operationToPredicateOp({ ...x2, path: [...path, ...toPath(x2.path)] }, options)));
|
|
2921
2383
|
}
|
|
2922
2384
|
default:
|
|
2923
2385
|
throw new Error("OP_UNKNOWN");
|
|
@@ -2930,8 +2392,8 @@
|
|
|
2930
2392
|
doc = clone(doc);
|
|
2931
2393
|
const res = [];
|
|
2932
2394
|
const length = patch.length;
|
|
2933
|
-
for (let
|
|
2934
|
-
const op = operationToOp(patch[
|
|
2395
|
+
for (let i7 = 0; i7 < length; i7++) {
|
|
2396
|
+
const op = operationToOp(patch[i7], options);
|
|
2935
2397
|
const opResult = op.apply(doc);
|
|
2936
2398
|
doc = opResult.doc;
|
|
2937
2399
|
res.push(opResult);
|
|
@@ -3025,7 +2487,7 @@
|
|
|
3025
2487
|
this.sent = false;
|
|
3026
2488
|
}
|
|
3027
2489
|
matchReceive({ status, response, _ref }) {
|
|
3028
|
-
this.recHooks.filter((
|
|
2490
|
+
this.recHooks.filter((h3) => h3.status === status).forEach((h3) => h3.callback(response));
|
|
3029
2491
|
}
|
|
3030
2492
|
cancelRefEvent() {
|
|
3031
2493
|
if (!this.refEvent) {
|
|
@@ -3243,8 +2705,8 @@
|
|
|
3243
2705
|
throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");
|
|
3244
2706
|
}
|
|
3245
2707
|
let eventBindings = this.bindings.filter((bind) => bind.event === event);
|
|
3246
|
-
for (let
|
|
3247
|
-
let bind = eventBindings[
|
|
2708
|
+
for (let i7 = 0; i7 < eventBindings.length; i7++) {
|
|
2709
|
+
let bind = eventBindings[i7];
|
|
3248
2710
|
bind.callback(handledPayload, ref, joinRef || this.joinRef());
|
|
3249
2711
|
}
|
|
3250
2712
|
}
|
|
@@ -3315,7 +2777,7 @@
|
|
|
3315
2777
|
}
|
|
3316
2778
|
try {
|
|
3317
2779
|
return JSON.parse(resp);
|
|
3318
|
-
} catch (
|
|
2780
|
+
} catch (e8) {
|
|
3319
2781
|
console && console.log("failed to parse JSON response", resp);
|
|
3320
2782
|
return null;
|
|
3321
2783
|
}
|
|
@@ -3829,7 +3291,7 @@
|
|
|
3829
3291
|
}
|
|
3830
3292
|
remove(channel) {
|
|
3831
3293
|
this.off(channel.stateChangeRefs);
|
|
3832
|
-
this.channels = this.channels.filter((
|
|
3294
|
+
this.channels = this.channels.filter((c5) => c5.joinRef() !== channel.joinRef());
|
|
3833
3295
|
}
|
|
3834
3296
|
off(refs) {
|
|
3835
3297
|
for (let key in this.stateChangeCallbacks) {
|
|
@@ -3887,21 +3349,21 @@
|
|
|
3887
3349
|
}
|
|
3888
3350
|
if (this.hasLogger())
|
|
3889
3351
|
this.log("receive", `${payload.status || ""} ${topic} ${event} ${ref && "(" + ref + ")" || ""}`, payload);
|
|
3890
|
-
for (let
|
|
3891
|
-
const channel = this.channels[
|
|
3352
|
+
for (let i7 = 0; i7 < this.channels.length; i7++) {
|
|
3353
|
+
const channel = this.channels[i7];
|
|
3892
3354
|
if (!channel.isMember(topic, event, payload, join_ref)) {
|
|
3893
3355
|
continue;
|
|
3894
3356
|
}
|
|
3895
3357
|
channel.trigger(event, payload, ref, join_ref);
|
|
3896
3358
|
}
|
|
3897
|
-
for (let
|
|
3898
|
-
let [, callback] = this.stateChangeCallbacks.message[
|
|
3359
|
+
for (let i7 = 0; i7 < this.stateChangeCallbacks.message.length; i7++) {
|
|
3360
|
+
let [, callback] = this.stateChangeCallbacks.message[i7];
|
|
3899
3361
|
callback(msg);
|
|
3900
3362
|
}
|
|
3901
3363
|
});
|
|
3902
3364
|
}
|
|
3903
3365
|
leaveOpenTopic(topic) {
|
|
3904
|
-
let dupChannel = this.channels.find((
|
|
3366
|
+
let dupChannel = this.channels.find((c5) => c5.topic === topic && (c5.isJoined() || c5.isJoining()));
|
|
3905
3367
|
if (dupChannel) {
|
|
3906
3368
|
if (this.hasLogger())
|
|
3907
3369
|
this.log("transport", `leaving duplicate topic "${topic}"`);
|
|
@@ -3915,7 +3377,7 @@
|
|
|
3915
3377
|
constructor(config) {
|
|
3916
3378
|
this.connected = false;
|
|
3917
3379
|
this.config = config;
|
|
3918
|
-
this.socket = new Socket(this.config.url,
|
|
3380
|
+
this.socket = new Socket(this.config.url, { logger: (kind, msg, data) => {
|
|
3919
3381
|
console.log(`${kind}: ${msg}`, data);
|
|
3920
3382
|
} });
|
|
3921
3383
|
this.channel = this.socket.channel(this.config.topic, this.config.params);
|
|
@@ -3924,13 +3386,13 @@
|
|
|
3924
3386
|
/** connect to socket and join channel. will do nothing if already connected */
|
|
3925
3387
|
connect() {
|
|
3926
3388
|
if (!this.connected) {
|
|
3927
|
-
this.socket.onError((
|
|
3389
|
+
this.socket.onError((e8) => this.emitError("socket error", e8));
|
|
3928
3390
|
this.socket.connect();
|
|
3929
|
-
this.channel.onError((
|
|
3391
|
+
this.channel.onError((e8) => console.log("channel error", e8));
|
|
3930
3392
|
this.channel.join().receive("ok", () => {
|
|
3931
3393
|
console.log("joined");
|
|
3932
|
-
}).receive("error", (
|
|
3933
|
-
this.emitError("channel join error",
|
|
3394
|
+
}).receive("error", (e8) => {
|
|
3395
|
+
this.emitError("channel join error", e8);
|
|
3934
3396
|
});
|
|
3935
3397
|
this.channel.on("state:change", (state) => this.handleChange(state));
|
|
3936
3398
|
this.channel.on("state:patch", (patch) => this.handlePatch(patch));
|
|
@@ -4022,7 +3484,7 @@
|
|
|
4022
3484
|
var connectElement = (liveState2, el, { properties, attributes, events }) => {
|
|
4023
3485
|
if (el["liveState"] !== liveState2) {
|
|
4024
3486
|
liveState2.connect();
|
|
4025
|
-
properties?.forEach((
|
|
3487
|
+
properties?.forEach((p3) => connectProperty(liveState2, el, p3));
|
|
4026
3488
|
attributes?.forEach((attr) => connectAtttribute(liveState2, el, attr));
|
|
4027
3489
|
events?.send?.forEach((eventName) => sendEvent(liveState2, el, eventName));
|
|
4028
3490
|
events?.receive?.forEach((eventName) => receiveEvent(liveState2, el, eventName));
|
|
@@ -4053,7 +3515,6 @@
|
|
|
4053
3515
|
var connectElement_default = connectElement;
|
|
4054
3516
|
|
|
4055
3517
|
// node_modules/wc-context/core.js
|
|
4056
|
-
var noContext = Symbol("noContext");
|
|
4057
3518
|
var orphanMap = {};
|
|
4058
3519
|
var resolved = Promise.resolve();
|
|
4059
3520
|
var orphanResolveQueue = {
|
|
@@ -4067,9 +3528,11 @@
|
|
|
4067
3528
|
this.contexts.forEach((context2) => {
|
|
4068
3529
|
const orphans = orphanMap[context2];
|
|
4069
3530
|
orphans.forEach(({ setter, payload }, orphan) => {
|
|
4070
|
-
const
|
|
4071
|
-
|
|
3531
|
+
const event = sendContextEvent(orphan, context2, payload, setter);
|
|
3532
|
+
const provider = event.detail.provider;
|
|
3533
|
+
if (provider) {
|
|
4072
3534
|
orphans.delete(orphan);
|
|
3535
|
+
registerProvider(orphan, context2, provider);
|
|
4073
3536
|
}
|
|
4074
3537
|
});
|
|
4075
3538
|
});
|
|
@@ -4083,30 +3546,15 @@
|
|
|
4083
3546
|
const orphans = orphanMap[name] || (orphanMap[name] = /* @__PURE__ */ new Map());
|
|
4084
3547
|
orphans.set(el, { setter, payload });
|
|
4085
3548
|
}
|
|
4086
|
-
var ContextRequestEvent = class extends Event {
|
|
4087
|
-
constructor(context, callback, subscribe3) {
|
|
4088
|
-
super("context-request", {
|
|
4089
|
-
bubbles: true,
|
|
4090
|
-
cancelable: true,
|
|
4091
|
-
composed: true
|
|
4092
|
-
});
|
|
4093
|
-
this.context = context;
|
|
4094
|
-
this.callback = callback;
|
|
4095
|
-
this.subscribe = subscribe3;
|
|
4096
|
-
}
|
|
4097
|
-
};
|
|
4098
3549
|
function sendContextEvent(consumer, context, payload, setter) {
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
handled = true;
|
|
4106
|
-
};
|
|
4107
|
-
const event = new ContextRequestEvent(context, callback, true);
|
|
3550
|
+
const event = new CustomEvent(`context-request-${context}`, {
|
|
3551
|
+
detail: { setter, payload, consumer },
|
|
3552
|
+
bubbles: true,
|
|
3553
|
+
cancelable: true,
|
|
3554
|
+
composed: true
|
|
3555
|
+
});
|
|
4108
3556
|
consumer.dispatchEvent(event);
|
|
4109
|
-
return
|
|
3557
|
+
return event;
|
|
4110
3558
|
}
|
|
4111
3559
|
function getProviderValue(provider, { getter, payload }) {
|
|
4112
3560
|
return getter(provider, payload);
|
|
@@ -4120,30 +3568,14 @@
|
|
|
4120
3568
|
providedContexts[context] = { getter, payload };
|
|
4121
3569
|
const observers = observerMap[context] || (observerMap[context] = []);
|
|
4122
3570
|
const orphans = orphanMap[context];
|
|
4123
|
-
provider.addEventListener(`context-request`, (event) => {
|
|
4124
|
-
const { target, callback, subscribe: subscribe3 } = event;
|
|
4125
|
-
if (event.context !== context || typeof callback !== "function") {
|
|
4126
|
-
return;
|
|
4127
|
-
}
|
|
3571
|
+
provider.addEventListener(`context-request-${context}`, (event) => {
|
|
4128
3572
|
event.stopPropagation();
|
|
4129
3573
|
const value = getProviderValue(provider, providedContexts[context]);
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
consumer: target,
|
|
4136
|
-
callback,
|
|
4137
|
-
unsubscribe,
|
|
4138
|
-
once: !subscribe3
|
|
4139
|
-
});
|
|
4140
|
-
if (value !== noContext) {
|
|
4141
|
-
callback(value, unsubscribe);
|
|
4142
|
-
}
|
|
4143
|
-
runListeners(provider, context, "observe", observers.length);
|
|
4144
|
-
} else {
|
|
4145
|
-
callback(value);
|
|
4146
|
-
}
|
|
3574
|
+
const { setter, payload: payload2, consumer } = event.detail;
|
|
3575
|
+
setter(consumer, value, payload2);
|
|
3576
|
+
observers.push({ consumer, setter, payload: payload2 });
|
|
3577
|
+
runListeners(provider, context, "observe", observers.length);
|
|
3578
|
+
event.detail.provider = provider;
|
|
4147
3579
|
});
|
|
4148
3580
|
if (orphans && orphans.size) {
|
|
4149
3581
|
orphanResolveQueue.add(context);
|
|
@@ -4182,22 +3614,14 @@
|
|
|
4182
3614
|
providerMap[context] = provider;
|
|
4183
3615
|
}
|
|
4184
3616
|
function observeContext(consumer, context, payload = context, setter = consumerSetter) {
|
|
4185
|
-
const
|
|
4186
|
-
|
|
3617
|
+
const event = sendContextEvent(consumer, context, payload, setter);
|
|
3618
|
+
const provider = event.detail.provider;
|
|
3619
|
+
if (provider) {
|
|
3620
|
+
registerProvider(consumer, context, provider);
|
|
3621
|
+
} else {
|
|
4187
3622
|
addOrphan(consumer, context, payload, setter);
|
|
4188
3623
|
}
|
|
4189
3624
|
}
|
|
4190
|
-
function removeObserver(provider, context, consumer) {
|
|
4191
|
-
const observerMap = provider.__wcContextObserverMap;
|
|
4192
|
-
const observers = observerMap[context];
|
|
4193
|
-
const consumerIndex = observers.findIndex(
|
|
4194
|
-
(observer) => observer.consumer === consumer
|
|
4195
|
-
);
|
|
4196
|
-
if (consumerIndex !== -1) {
|
|
4197
|
-
observers.splice(consumerIndex, 1);
|
|
4198
|
-
}
|
|
4199
|
-
runListeners(provider, context, "unobserve", observers.length);
|
|
4200
|
-
}
|
|
4201
3625
|
|
|
4202
3626
|
// node_modules/reflect-metadata/Reflect.js
|
|
4203
3627
|
var Reflect2;
|
|
@@ -4249,7 +3673,7 @@
|
|
|
4249
3673
|
}
|
|
4250
3674
|
};
|
|
4251
3675
|
var functionPrototype = Object.getPrototypeOf(Function);
|
|
4252
|
-
var usePolyfill = typeof process === "object" && process
|
|
3676
|
+
var usePolyfill = typeof process === "object" && process.env && process.env["REFLECT_METADATA_USE_MAP_POLYFILL"] === "true";
|
|
4253
3677
|
var _Map = !usePolyfill && typeof Map === "function" && typeof Map.prototype.entries === "function" ? Map : CreateMapPolyfill();
|
|
4254
3678
|
var _Set = !usePolyfill && typeof Set === "function" && typeof Set.prototype.entries === "function" ? Set : CreateSetPolyfill();
|
|
4255
3679
|
var _WeakMap = !usePolyfill && typeof WeakMap === "function" ? WeakMap : CreateWeakMapPolyfill();
|
|
@@ -4368,8 +3792,8 @@
|
|
|
4368
3792
|
}
|
|
4369
3793
|
exporter("deleteMetadata", deleteMetadata);
|
|
4370
3794
|
function DecorateConstructor(decorators, target) {
|
|
4371
|
-
for (var
|
|
4372
|
-
var decorator = decorators[
|
|
3795
|
+
for (var i7 = decorators.length - 1; i7 >= 0; --i7) {
|
|
3796
|
+
var decorator = decorators[i7];
|
|
4373
3797
|
var decorated = decorator(target);
|
|
4374
3798
|
if (!IsUndefined(decorated) && !IsNull(decorated)) {
|
|
4375
3799
|
if (!IsConstructor(decorated))
|
|
@@ -4380,8 +3804,8 @@
|
|
|
4380
3804
|
return target;
|
|
4381
3805
|
}
|
|
4382
3806
|
function DecorateProperty(decorators, target, propertyKey, descriptor) {
|
|
4383
|
-
for (var
|
|
4384
|
-
var decorator = decorators[
|
|
3807
|
+
for (var i7 = decorators.length - 1; i7 >= 0; --i7) {
|
|
3808
|
+
var decorator = decorators[i7];
|
|
4385
3809
|
var decorated = decorator(target, propertyKey, descriptor);
|
|
4386
3810
|
if (!IsUndefined(decorated) && !IsNull(decorated)) {
|
|
4387
3811
|
if (!IsObject(decorated))
|
|
@@ -4391,7 +3815,7 @@
|
|
|
4391
3815
|
}
|
|
4392
3816
|
return descriptor;
|
|
4393
3817
|
}
|
|
4394
|
-
function GetOrCreateMetadataMap(O,
|
|
3818
|
+
function GetOrCreateMetadataMap(O, P2, Create) {
|
|
4395
3819
|
var targetMetadata = Metadata.get(O);
|
|
4396
3820
|
if (IsUndefined(targetMetadata)) {
|
|
4397
3821
|
if (!Create)
|
|
@@ -4399,28 +3823,28 @@
|
|
|
4399
3823
|
targetMetadata = new _Map();
|
|
4400
3824
|
Metadata.set(O, targetMetadata);
|
|
4401
3825
|
}
|
|
4402
|
-
var metadataMap = targetMetadata.get(
|
|
3826
|
+
var metadataMap = targetMetadata.get(P2);
|
|
4403
3827
|
if (IsUndefined(metadataMap)) {
|
|
4404
3828
|
if (!Create)
|
|
4405
3829
|
return void 0;
|
|
4406
3830
|
metadataMap = new _Map();
|
|
4407
|
-
targetMetadata.set(
|
|
3831
|
+
targetMetadata.set(P2, metadataMap);
|
|
4408
3832
|
}
|
|
4409
3833
|
return metadataMap;
|
|
4410
3834
|
}
|
|
4411
|
-
function OrdinaryHasMetadata(MetadataKey, O,
|
|
4412
|
-
var hasOwn2 = OrdinaryHasOwnMetadata(MetadataKey, O,
|
|
3835
|
+
function OrdinaryHasMetadata(MetadataKey, O, P2) {
|
|
3836
|
+
var hasOwn2 = OrdinaryHasOwnMetadata(MetadataKey, O, P2);
|
|
4413
3837
|
if (hasOwn2)
|
|
4414
3838
|
return true;
|
|
4415
3839
|
var parent = OrdinaryGetPrototypeOf(O);
|
|
4416
3840
|
if (!IsNull(parent))
|
|
4417
|
-
return OrdinaryHasMetadata(MetadataKey, parent,
|
|
3841
|
+
return OrdinaryHasMetadata(MetadataKey, parent, P2);
|
|
4418
3842
|
return false;
|
|
4419
3843
|
}
|
|
4420
|
-
function OrdinaryHasOwnMetadata(MetadataKey, O,
|
|
3844
|
+
function OrdinaryHasOwnMetadata(MetadataKey, O, P2) {
|
|
4421
3845
|
var metadataMap = GetOrCreateMetadataMap(
|
|
4422
3846
|
O,
|
|
4423
|
-
|
|
3847
|
+
P2,
|
|
4424
3848
|
/*Create*/
|
|
4425
3849
|
false
|
|
4426
3850
|
);
|
|
@@ -4428,19 +3852,19 @@
|
|
|
4428
3852
|
return false;
|
|
4429
3853
|
return ToBoolean(metadataMap.has(MetadataKey));
|
|
4430
3854
|
}
|
|
4431
|
-
function OrdinaryGetMetadata(MetadataKey, O,
|
|
4432
|
-
var hasOwn2 = OrdinaryHasOwnMetadata(MetadataKey, O,
|
|
3855
|
+
function OrdinaryGetMetadata(MetadataKey, O, P2) {
|
|
3856
|
+
var hasOwn2 = OrdinaryHasOwnMetadata(MetadataKey, O, P2);
|
|
4433
3857
|
if (hasOwn2)
|
|
4434
|
-
return OrdinaryGetOwnMetadata(MetadataKey, O,
|
|
3858
|
+
return OrdinaryGetOwnMetadata(MetadataKey, O, P2);
|
|
4435
3859
|
var parent = OrdinaryGetPrototypeOf(O);
|
|
4436
3860
|
if (!IsNull(parent))
|
|
4437
|
-
return OrdinaryGetMetadata(MetadataKey, parent,
|
|
3861
|
+
return OrdinaryGetMetadata(MetadataKey, parent, P2);
|
|
4438
3862
|
return void 0;
|
|
4439
3863
|
}
|
|
4440
|
-
function OrdinaryGetOwnMetadata(MetadataKey, O,
|
|
3864
|
+
function OrdinaryGetOwnMetadata(MetadataKey, O, P2) {
|
|
4441
3865
|
var metadataMap = GetOrCreateMetadataMap(
|
|
4442
3866
|
O,
|
|
4443
|
-
|
|
3867
|
+
P2,
|
|
4444
3868
|
/*Create*/
|
|
4445
3869
|
false
|
|
4446
3870
|
);
|
|
@@ -4448,28 +3872,28 @@
|
|
|
4448
3872
|
return void 0;
|
|
4449
3873
|
return metadataMap.get(MetadataKey);
|
|
4450
3874
|
}
|
|
4451
|
-
function OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O,
|
|
3875
|
+
function OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P2) {
|
|
4452
3876
|
var metadataMap = GetOrCreateMetadataMap(
|
|
4453
3877
|
O,
|
|
4454
|
-
|
|
3878
|
+
P2,
|
|
4455
3879
|
/*Create*/
|
|
4456
3880
|
true
|
|
4457
3881
|
);
|
|
4458
3882
|
metadataMap.set(MetadataKey, MetadataValue);
|
|
4459
3883
|
}
|
|
4460
|
-
function OrdinaryMetadataKeys(O,
|
|
4461
|
-
var
|
|
3884
|
+
function OrdinaryMetadataKeys(O, P2) {
|
|
3885
|
+
var ownKeys = OrdinaryOwnMetadataKeys(O, P2);
|
|
4462
3886
|
var parent = OrdinaryGetPrototypeOf(O);
|
|
4463
3887
|
if (parent === null)
|
|
4464
|
-
return
|
|
4465
|
-
var parentKeys = OrdinaryMetadataKeys(parent,
|
|
3888
|
+
return ownKeys;
|
|
3889
|
+
var parentKeys = OrdinaryMetadataKeys(parent, P2);
|
|
4466
3890
|
if (parentKeys.length <= 0)
|
|
4467
|
-
return
|
|
4468
|
-
if (
|
|
3891
|
+
return ownKeys;
|
|
3892
|
+
if (ownKeys.length <= 0)
|
|
4469
3893
|
return parentKeys;
|
|
4470
3894
|
var set = new _Set();
|
|
4471
3895
|
var keys = [];
|
|
4472
|
-
for (var _i = 0, ownKeys_1 =
|
|
3896
|
+
for (var _i = 0, ownKeys_1 = ownKeys; _i < ownKeys_1.length; _i++) {
|
|
4473
3897
|
var key = ownKeys_1[_i];
|
|
4474
3898
|
var hasKey = set.has(key);
|
|
4475
3899
|
if (!hasKey) {
|
|
@@ -4487,11 +3911,11 @@
|
|
|
4487
3911
|
}
|
|
4488
3912
|
return keys;
|
|
4489
3913
|
}
|
|
4490
|
-
function OrdinaryOwnMetadataKeys(O,
|
|
3914
|
+
function OrdinaryOwnMetadataKeys(O, P2) {
|
|
4491
3915
|
var keys = [];
|
|
4492
3916
|
var metadataMap = GetOrCreateMetadataMap(
|
|
4493
3917
|
O,
|
|
4494
|
-
|
|
3918
|
+
P2,
|
|
4495
3919
|
/*Create*/
|
|
4496
3920
|
false
|
|
4497
3921
|
);
|
|
@@ -4499,30 +3923,30 @@
|
|
|
4499
3923
|
return keys;
|
|
4500
3924
|
var keysObj = metadataMap.keys();
|
|
4501
3925
|
var iterator = GetIterator(keysObj);
|
|
4502
|
-
var
|
|
3926
|
+
var k2 = 0;
|
|
4503
3927
|
while (true) {
|
|
4504
3928
|
var next = IteratorStep(iterator);
|
|
4505
3929
|
if (!next) {
|
|
4506
|
-
keys.length =
|
|
3930
|
+
keys.length = k2;
|
|
4507
3931
|
return keys;
|
|
4508
3932
|
}
|
|
4509
3933
|
var nextValue = IteratorValue(next);
|
|
4510
3934
|
try {
|
|
4511
|
-
keys[
|
|
4512
|
-
} catch (
|
|
3935
|
+
keys[k2] = nextValue;
|
|
3936
|
+
} catch (e8) {
|
|
4513
3937
|
try {
|
|
4514
3938
|
IteratorClose(iterator);
|
|
4515
3939
|
} finally {
|
|
4516
|
-
throw
|
|
3940
|
+
throw e8;
|
|
4517
3941
|
}
|
|
4518
3942
|
}
|
|
4519
|
-
|
|
3943
|
+
k2++;
|
|
4520
3944
|
}
|
|
4521
3945
|
}
|
|
4522
|
-
function Type(
|
|
4523
|
-
if (
|
|
3946
|
+
function Type(x2) {
|
|
3947
|
+
if (x2 === null)
|
|
4524
3948
|
return 1;
|
|
4525
|
-
switch (typeof
|
|
3949
|
+
switch (typeof x2) {
|
|
4526
3950
|
case "undefined":
|
|
4527
3951
|
return 0;
|
|
4528
3952
|
case "boolean":
|
|
@@ -4534,22 +3958,22 @@
|
|
|
4534
3958
|
case "number":
|
|
4535
3959
|
return 5;
|
|
4536
3960
|
case "object":
|
|
4537
|
-
return
|
|
3961
|
+
return x2 === null ? 1 : 6;
|
|
4538
3962
|
default:
|
|
4539
3963
|
return 6;
|
|
4540
3964
|
}
|
|
4541
3965
|
}
|
|
4542
|
-
function IsUndefined(
|
|
4543
|
-
return
|
|
3966
|
+
function IsUndefined(x2) {
|
|
3967
|
+
return x2 === void 0;
|
|
4544
3968
|
}
|
|
4545
|
-
function IsNull(
|
|
4546
|
-
return
|
|
3969
|
+
function IsNull(x2) {
|
|
3970
|
+
return x2 === null;
|
|
4547
3971
|
}
|
|
4548
|
-
function IsSymbol(
|
|
4549
|
-
return typeof
|
|
3972
|
+
function IsSymbol(x2) {
|
|
3973
|
+
return typeof x2 === "symbol";
|
|
4550
3974
|
}
|
|
4551
|
-
function IsObject(
|
|
4552
|
-
return typeof
|
|
3975
|
+
function IsObject(x2) {
|
|
3976
|
+
return typeof x2 === "object" ? x2 !== null : typeof x2 === "function";
|
|
4553
3977
|
}
|
|
4554
3978
|
function ToPrimitive(input, PreferredType) {
|
|
4555
3979
|
switch (Type(input)) {
|
|
@@ -4641,8 +4065,8 @@
|
|
|
4641
4065
|
return false;
|
|
4642
4066
|
}
|
|
4643
4067
|
}
|
|
4644
|
-
function GetMethod(
|
|
4645
|
-
var func =
|
|
4068
|
+
function GetMethod(V2, P2) {
|
|
4069
|
+
var func = V2[P2];
|
|
4646
4070
|
if (func === void 0 || func === null)
|
|
4647
4071
|
return void 0;
|
|
4648
4072
|
if (!IsCallable(func))
|
|
@@ -4666,9 +4090,9 @@
|
|
|
4666
4090
|
return result.done ? false : result;
|
|
4667
4091
|
}
|
|
4668
4092
|
function IteratorClose(iterator) {
|
|
4669
|
-
var
|
|
4670
|
-
if (
|
|
4671
|
-
|
|
4093
|
+
var f3 = iterator["return"];
|
|
4094
|
+
if (f3)
|
|
4095
|
+
f3.call(iterator);
|
|
4672
4096
|
}
|
|
4673
4097
|
function OrdinaryGetPrototypeOf(O) {
|
|
4674
4098
|
var proto = Object.getPrototypeOf(O);
|
|
@@ -4787,9 +4211,9 @@
|
|
|
4787
4211
|
);
|
|
4788
4212
|
if (index >= 0) {
|
|
4789
4213
|
var size = this._keys.length;
|
|
4790
|
-
for (var
|
|
4791
|
-
this._keys[
|
|
4792
|
-
this._values[
|
|
4214
|
+
for (var i7 = index + 1; i7 < size; i7++) {
|
|
4215
|
+
this._keys[i7 - 1] = this._keys[i7];
|
|
4216
|
+
this._values[i7 - 1] = this._values[i7];
|
|
4793
4217
|
}
|
|
4794
4218
|
this._keys.length--;
|
|
4795
4219
|
this._values.length--;
|
|
@@ -4836,10 +4260,10 @@
|
|
|
4836
4260
|
return Map2;
|
|
4837
4261
|
}()
|
|
4838
4262
|
);
|
|
4839
|
-
function getKey(key,
|
|
4263
|
+
function getKey(key, _2) {
|
|
4840
4264
|
return key;
|
|
4841
4265
|
}
|
|
4842
|
-
function getValue(
|
|
4266
|
+
function getValue(_2, value) {
|
|
4843
4267
|
return value;
|
|
4844
4268
|
}
|
|
4845
4269
|
function getEntry(key, value) {
|
|
@@ -4957,8 +4381,8 @@
|
|
|
4957
4381
|
return target[rootKey];
|
|
4958
4382
|
}
|
|
4959
4383
|
function FillRandomBytes(buffer, size) {
|
|
4960
|
-
for (var
|
|
4961
|
-
buffer[
|
|
4384
|
+
for (var i7 = 0; i7 < size; ++i7)
|
|
4385
|
+
buffer[i7] = Math.random() * 255 | 0;
|
|
4962
4386
|
return buffer;
|
|
4963
4387
|
}
|
|
4964
4388
|
function GenRandomBytes(size) {
|
|
@@ -5063,581 +4487,55 @@
|
|
|
5063
4487
|
var liveStateDecorator_default = liveState;
|
|
5064
4488
|
|
|
5065
4489
|
// node_modules/@vimeo/player/dist/player.es.js
|
|
5066
|
-
function
|
|
5067
|
-
|
|
5068
|
-
|
|
5069
|
-
|
|
5070
|
-
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
5071
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
5072
|
-
})), keys.push.apply(keys, symbols);
|
|
5073
|
-
}
|
|
5074
|
-
return keys;
|
|
4490
|
+
function _classCallCheck(instance, Constructor) {
|
|
4491
|
+
if (!(instance instanceof Constructor)) {
|
|
4492
|
+
throw new TypeError("Cannot call a class as a function");
|
|
4493
|
+
}
|
|
5075
4494
|
}
|
|
5076
|
-
function
|
|
5077
|
-
for (var
|
|
5078
|
-
var
|
|
5079
|
-
|
|
5080
|
-
|
|
5081
|
-
|
|
5082
|
-
|
|
5083
|
-
|
|
4495
|
+
function _defineProperties(target, props) {
|
|
4496
|
+
for (var i7 = 0; i7 < props.length; i7++) {
|
|
4497
|
+
var descriptor = props[i7];
|
|
4498
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
4499
|
+
descriptor.configurable = true;
|
|
4500
|
+
if ("value" in descriptor)
|
|
4501
|
+
descriptor.writable = true;
|
|
4502
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
5084
4503
|
}
|
|
5085
|
-
return target;
|
|
5086
4504
|
}
|
|
5087
|
-
function
|
|
5088
|
-
|
|
5089
|
-
|
|
5090
|
-
|
|
5091
|
-
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
configurable: true,
|
|
5099
|
-
writable: true
|
|
5100
|
-
}), obj[key];
|
|
5101
|
-
}
|
|
5102
|
-
try {
|
|
5103
|
-
define({}, "");
|
|
5104
|
-
} catch (err) {
|
|
5105
|
-
define = function(obj, key, value) {
|
|
5106
|
-
return obj[key] = value;
|
|
5107
|
-
};
|
|
4505
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
4506
|
+
if (protoProps)
|
|
4507
|
+
_defineProperties(Constructor.prototype, protoProps);
|
|
4508
|
+
if (staticProps)
|
|
4509
|
+
_defineProperties(Constructor, staticProps);
|
|
4510
|
+
return Constructor;
|
|
4511
|
+
}
|
|
4512
|
+
var isNode = typeof global !== "undefined" && {}.toString.call(global) === "[object global]";
|
|
4513
|
+
function getMethodName(prop, type) {
|
|
4514
|
+
if (prop.indexOf(type.toLowerCase()) === 0) {
|
|
4515
|
+
return prop;
|
|
5108
4516
|
}
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
|
-
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
|
|
5116
|
-
|
|
5117
|
-
|
|
5118
|
-
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
|
|
5126
|
-
|
|
5127
|
-
|
|
5128
|
-
|
|
5129
|
-
|
|
5130
|
-
|
|
5131
|
-
}
|
|
5132
|
-
function GeneratorFunction() {
|
|
5133
|
-
}
|
|
5134
|
-
function GeneratorFunctionPrototype() {
|
|
5135
|
-
}
|
|
5136
|
-
var IteratorPrototype = {};
|
|
5137
|
-
define(IteratorPrototype, iteratorSymbol, function() {
|
|
5138
|
-
return this;
|
|
5139
|
-
});
|
|
5140
|
-
var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
5141
|
-
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
5142
|
-
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
5143
|
-
function defineIteratorMethods(prototype) {
|
|
5144
|
-
["next", "throw", "return"].forEach(function(method) {
|
|
5145
|
-
define(prototype, method, function(arg) {
|
|
5146
|
-
return this._invoke(method, arg);
|
|
5147
|
-
});
|
|
5148
|
-
});
|
|
5149
|
-
}
|
|
5150
|
-
function AsyncIterator(generator, PromiseImpl) {
|
|
5151
|
-
function invoke(method, arg, resolve, reject) {
|
|
5152
|
-
var record = tryCatch(generator[method], generator, arg);
|
|
5153
|
-
if ("throw" !== record.type) {
|
|
5154
|
-
var result = record.arg, value = result.value;
|
|
5155
|
-
return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function(value2) {
|
|
5156
|
-
invoke("next", value2, resolve, reject);
|
|
5157
|
-
}, function(err) {
|
|
5158
|
-
invoke("throw", err, resolve, reject);
|
|
5159
|
-
}) : PromiseImpl.resolve(value).then(function(unwrapped) {
|
|
5160
|
-
result.value = unwrapped, resolve(result);
|
|
5161
|
-
}, function(error) {
|
|
5162
|
-
return invoke("throw", error, resolve, reject);
|
|
5163
|
-
});
|
|
5164
|
-
}
|
|
5165
|
-
reject(record.arg);
|
|
5166
|
-
}
|
|
5167
|
-
var previousPromise;
|
|
5168
|
-
defineProperty(this, "_invoke", {
|
|
5169
|
-
value: function(method, arg) {
|
|
5170
|
-
function callInvokeWithMethodAndArg() {
|
|
5171
|
-
return new PromiseImpl(function(resolve, reject) {
|
|
5172
|
-
invoke(method, arg, resolve, reject);
|
|
5173
|
-
});
|
|
5174
|
-
}
|
|
5175
|
-
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
5176
|
-
}
|
|
5177
|
-
});
|
|
5178
|
-
}
|
|
5179
|
-
function makeInvokeMethod(innerFn, self2, context) {
|
|
5180
|
-
var state = "suspendedStart";
|
|
5181
|
-
return function(method, arg) {
|
|
5182
|
-
if ("executing" === state)
|
|
5183
|
-
throw new Error("Generator is already running");
|
|
5184
|
-
if ("completed" === state) {
|
|
5185
|
-
if ("throw" === method)
|
|
5186
|
-
throw arg;
|
|
5187
|
-
return doneResult();
|
|
5188
|
-
}
|
|
5189
|
-
for (context.method = method, context.arg = arg; ; ) {
|
|
5190
|
-
var delegate = context.delegate;
|
|
5191
|
-
if (delegate) {
|
|
5192
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
5193
|
-
if (delegateResult) {
|
|
5194
|
-
if (delegateResult === ContinueSentinel)
|
|
5195
|
-
continue;
|
|
5196
|
-
return delegateResult;
|
|
5197
|
-
}
|
|
5198
|
-
}
|
|
5199
|
-
if ("next" === context.method)
|
|
5200
|
-
context.sent = context._sent = context.arg;
|
|
5201
|
-
else if ("throw" === context.method) {
|
|
5202
|
-
if ("suspendedStart" === state)
|
|
5203
|
-
throw state = "completed", context.arg;
|
|
5204
|
-
context.dispatchException(context.arg);
|
|
5205
|
-
} else
|
|
5206
|
-
"return" === context.method && context.abrupt("return", context.arg);
|
|
5207
|
-
state = "executing";
|
|
5208
|
-
var record = tryCatch(innerFn, self2, context);
|
|
5209
|
-
if ("normal" === record.type) {
|
|
5210
|
-
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel)
|
|
5211
|
-
continue;
|
|
5212
|
-
return {
|
|
5213
|
-
value: record.arg,
|
|
5214
|
-
done: context.done
|
|
5215
|
-
};
|
|
5216
|
-
}
|
|
5217
|
-
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
5218
|
-
}
|
|
5219
|
-
};
|
|
5220
|
-
}
|
|
5221
|
-
function maybeInvokeDelegate(delegate, context) {
|
|
5222
|
-
var methodName = context.method, method = delegate.iterator[methodName];
|
|
5223
|
-
if (void 0 === method)
|
|
5224
|
-
return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = void 0, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
|
|
5225
|
-
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
5226
|
-
if ("throw" === record.type)
|
|
5227
|
-
return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
5228
|
-
var info = record.arg;
|
|
5229
|
-
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = void 0), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
|
|
5230
|
-
}
|
|
5231
|
-
function pushTryEntry(locs) {
|
|
5232
|
-
var entry = {
|
|
5233
|
-
tryLoc: locs[0]
|
|
5234
|
-
};
|
|
5235
|
-
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
5236
|
-
}
|
|
5237
|
-
function resetTryEntry(entry) {
|
|
5238
|
-
var record = entry.completion || {};
|
|
5239
|
-
record.type = "normal", delete record.arg, entry.completion = record;
|
|
5240
|
-
}
|
|
5241
|
-
function Context(tryLocsList) {
|
|
5242
|
-
this.tryEntries = [{
|
|
5243
|
-
tryLoc: "root"
|
|
5244
|
-
}], tryLocsList.forEach(pushTryEntry, this), this.reset(true);
|
|
5245
|
-
}
|
|
5246
|
-
function values(iterable) {
|
|
5247
|
-
if (iterable) {
|
|
5248
|
-
var iteratorMethod = iterable[iteratorSymbol];
|
|
5249
|
-
if (iteratorMethod)
|
|
5250
|
-
return iteratorMethod.call(iterable);
|
|
5251
|
-
if ("function" == typeof iterable.next)
|
|
5252
|
-
return iterable;
|
|
5253
|
-
if (!isNaN(iterable.length)) {
|
|
5254
|
-
var i9 = -1, next = function next2() {
|
|
5255
|
-
for (; ++i9 < iterable.length; )
|
|
5256
|
-
if (hasOwn.call(iterable, i9))
|
|
5257
|
-
return next2.value = iterable[i9], next2.done = false, next2;
|
|
5258
|
-
return next2.value = void 0, next2.done = true, next2;
|
|
5259
|
-
};
|
|
5260
|
-
return next.next = next;
|
|
5261
|
-
}
|
|
5262
|
-
}
|
|
5263
|
-
return {
|
|
5264
|
-
next: doneResult
|
|
5265
|
-
};
|
|
5266
|
-
}
|
|
5267
|
-
function doneResult() {
|
|
5268
|
-
return {
|
|
5269
|
-
value: void 0,
|
|
5270
|
-
done: true
|
|
5271
|
-
};
|
|
5272
|
-
}
|
|
5273
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
|
5274
|
-
value: GeneratorFunctionPrototype,
|
|
5275
|
-
configurable: true
|
|
5276
|
-
}), defineProperty(GeneratorFunctionPrototype, "constructor", {
|
|
5277
|
-
value: GeneratorFunction,
|
|
5278
|
-
configurable: true
|
|
5279
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function(genFun) {
|
|
5280
|
-
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
5281
|
-
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
5282
|
-
}, exports.mark = function(genFun) {
|
|
5283
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
5284
|
-
}, exports.awrap = function(arg) {
|
|
5285
|
-
return {
|
|
5286
|
-
__await: arg
|
|
5287
|
-
};
|
|
5288
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function() {
|
|
5289
|
-
return this;
|
|
5290
|
-
}), exports.AsyncIterator = AsyncIterator, exports.async = function(innerFn, outerFn, self2, tryLocsList, PromiseImpl) {
|
|
5291
|
-
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
5292
|
-
var iter = new AsyncIterator(wrap(innerFn, outerFn, self2, tryLocsList), PromiseImpl);
|
|
5293
|
-
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function(result) {
|
|
5294
|
-
return result.done ? result.value : iter.next();
|
|
5295
|
-
});
|
|
5296
|
-
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function() {
|
|
5297
|
-
return this;
|
|
5298
|
-
}), define(Gp, "toString", function() {
|
|
5299
|
-
return "[object Generator]";
|
|
5300
|
-
}), exports.keys = function(val) {
|
|
5301
|
-
var object = Object(val), keys = [];
|
|
5302
|
-
for (var key in object)
|
|
5303
|
-
keys.push(key);
|
|
5304
|
-
return keys.reverse(), function next() {
|
|
5305
|
-
for (; keys.length; ) {
|
|
5306
|
-
var key2 = keys.pop();
|
|
5307
|
-
if (key2 in object)
|
|
5308
|
-
return next.value = key2, next.done = false, next;
|
|
5309
|
-
}
|
|
5310
|
-
return next.done = true, next;
|
|
5311
|
-
};
|
|
5312
|
-
}, exports.values = values, Context.prototype = {
|
|
5313
|
-
constructor: Context,
|
|
5314
|
-
reset: function(skipTempReset) {
|
|
5315
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent = void 0, this.done = false, this.delegate = null, this.method = "next", this.arg = void 0, this.tryEntries.forEach(resetTryEntry), !skipTempReset)
|
|
5316
|
-
for (var name in this)
|
|
5317
|
-
"t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = void 0);
|
|
5318
|
-
},
|
|
5319
|
-
stop: function() {
|
|
5320
|
-
this.done = true;
|
|
5321
|
-
var rootRecord = this.tryEntries[0].completion;
|
|
5322
|
-
if ("throw" === rootRecord.type)
|
|
5323
|
-
throw rootRecord.arg;
|
|
5324
|
-
return this.rval;
|
|
5325
|
-
},
|
|
5326
|
-
dispatchException: function(exception) {
|
|
5327
|
-
if (this.done)
|
|
5328
|
-
throw exception;
|
|
5329
|
-
var context = this;
|
|
5330
|
-
function handle(loc, caught) {
|
|
5331
|
-
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = void 0), !!caught;
|
|
5332
|
-
}
|
|
5333
|
-
for (var i9 = this.tryEntries.length - 1; i9 >= 0; --i9) {
|
|
5334
|
-
var entry = this.tryEntries[i9], record = entry.completion;
|
|
5335
|
-
if ("root" === entry.tryLoc)
|
|
5336
|
-
return handle("end");
|
|
5337
|
-
if (entry.tryLoc <= this.prev) {
|
|
5338
|
-
var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
5339
|
-
if (hasCatch && hasFinally) {
|
|
5340
|
-
if (this.prev < entry.catchLoc)
|
|
5341
|
-
return handle(entry.catchLoc, true);
|
|
5342
|
-
if (this.prev < entry.finallyLoc)
|
|
5343
|
-
return handle(entry.finallyLoc);
|
|
5344
|
-
} else if (hasCatch) {
|
|
5345
|
-
if (this.prev < entry.catchLoc)
|
|
5346
|
-
return handle(entry.catchLoc, true);
|
|
5347
|
-
} else {
|
|
5348
|
-
if (!hasFinally)
|
|
5349
|
-
throw new Error("try statement without catch or finally");
|
|
5350
|
-
if (this.prev < entry.finallyLoc)
|
|
5351
|
-
return handle(entry.finallyLoc);
|
|
5352
|
-
}
|
|
5353
|
-
}
|
|
5354
|
-
}
|
|
5355
|
-
},
|
|
5356
|
-
abrupt: function(type, arg) {
|
|
5357
|
-
for (var i9 = this.tryEntries.length - 1; i9 >= 0; --i9) {
|
|
5358
|
-
var entry = this.tryEntries[i9];
|
|
5359
|
-
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
5360
|
-
var finallyEntry = entry;
|
|
5361
|
-
break;
|
|
5362
|
-
}
|
|
5363
|
-
}
|
|
5364
|
-
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
5365
|
-
var record = finallyEntry ? finallyEntry.completion : {};
|
|
5366
|
-
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
5367
|
-
},
|
|
5368
|
-
complete: function(record, afterLoc) {
|
|
5369
|
-
if ("throw" === record.type)
|
|
5370
|
-
throw record.arg;
|
|
5371
|
-
return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
|
|
5372
|
-
},
|
|
5373
|
-
finish: function(finallyLoc) {
|
|
5374
|
-
for (var i9 = this.tryEntries.length - 1; i9 >= 0; --i9) {
|
|
5375
|
-
var entry = this.tryEntries[i9];
|
|
5376
|
-
if (entry.finallyLoc === finallyLoc)
|
|
5377
|
-
return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
5378
|
-
}
|
|
5379
|
-
},
|
|
5380
|
-
catch: function(tryLoc) {
|
|
5381
|
-
for (var i9 = this.tryEntries.length - 1; i9 >= 0; --i9) {
|
|
5382
|
-
var entry = this.tryEntries[i9];
|
|
5383
|
-
if (entry.tryLoc === tryLoc) {
|
|
5384
|
-
var record = entry.completion;
|
|
5385
|
-
if ("throw" === record.type) {
|
|
5386
|
-
var thrown = record.arg;
|
|
5387
|
-
resetTryEntry(entry);
|
|
5388
|
-
}
|
|
5389
|
-
return thrown;
|
|
5390
|
-
}
|
|
5391
|
-
}
|
|
5392
|
-
throw new Error("illegal catch attempt");
|
|
5393
|
-
},
|
|
5394
|
-
delegateYield: function(iterable, resultName, nextLoc) {
|
|
5395
|
-
return this.delegate = {
|
|
5396
|
-
iterator: values(iterable),
|
|
5397
|
-
resultName,
|
|
5398
|
-
nextLoc
|
|
5399
|
-
}, "next" === this.method && (this.arg = void 0), ContinueSentinel;
|
|
5400
|
-
}
|
|
5401
|
-
}, exports;
|
|
5402
|
-
}
|
|
5403
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
5404
|
-
try {
|
|
5405
|
-
var info = gen[key](arg);
|
|
5406
|
-
var value = info.value;
|
|
5407
|
-
} catch (error) {
|
|
5408
|
-
reject(error);
|
|
5409
|
-
return;
|
|
5410
|
-
}
|
|
5411
|
-
if (info.done) {
|
|
5412
|
-
resolve(value);
|
|
5413
|
-
} else {
|
|
5414
|
-
Promise.resolve(value).then(_next, _throw);
|
|
5415
|
-
}
|
|
5416
|
-
}
|
|
5417
|
-
function _asyncToGenerator(fn) {
|
|
5418
|
-
return function() {
|
|
5419
|
-
var self2 = this, args = arguments;
|
|
5420
|
-
return new Promise(function(resolve, reject) {
|
|
5421
|
-
var gen = fn.apply(self2, args);
|
|
5422
|
-
function _next(value) {
|
|
5423
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
5424
|
-
}
|
|
5425
|
-
function _throw(err) {
|
|
5426
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
5427
|
-
}
|
|
5428
|
-
_next(void 0);
|
|
5429
|
-
});
|
|
5430
|
-
};
|
|
5431
|
-
}
|
|
5432
|
-
function _classCallCheck(instance, Constructor) {
|
|
5433
|
-
if (!(instance instanceof Constructor)) {
|
|
5434
|
-
throw new TypeError("Cannot call a class as a function");
|
|
5435
|
-
}
|
|
5436
|
-
}
|
|
5437
|
-
function _defineProperties(target, props) {
|
|
5438
|
-
for (var i9 = 0; i9 < props.length; i9++) {
|
|
5439
|
-
var descriptor = props[i9];
|
|
5440
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
5441
|
-
descriptor.configurable = true;
|
|
5442
|
-
if ("value" in descriptor)
|
|
5443
|
-
descriptor.writable = true;
|
|
5444
|
-
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
5445
|
-
}
|
|
5446
|
-
}
|
|
5447
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
5448
|
-
if (protoProps)
|
|
5449
|
-
_defineProperties(Constructor.prototype, protoProps);
|
|
5450
|
-
if (staticProps)
|
|
5451
|
-
_defineProperties(Constructor, staticProps);
|
|
5452
|
-
Object.defineProperty(Constructor, "prototype", {
|
|
5453
|
-
writable: false
|
|
5454
|
-
});
|
|
5455
|
-
return Constructor;
|
|
5456
|
-
}
|
|
5457
|
-
function _defineProperty(obj, key, value) {
|
|
5458
|
-
key = _toPropertyKey(key);
|
|
5459
|
-
if (key in obj) {
|
|
5460
|
-
Object.defineProperty(obj, key, {
|
|
5461
|
-
value,
|
|
5462
|
-
enumerable: true,
|
|
5463
|
-
configurable: true,
|
|
5464
|
-
writable: true
|
|
5465
|
-
});
|
|
5466
|
-
} else {
|
|
5467
|
-
obj[key] = value;
|
|
5468
|
-
}
|
|
5469
|
-
return obj;
|
|
5470
|
-
}
|
|
5471
|
-
function _inherits(subClass, superClass) {
|
|
5472
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
5473
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
5474
|
-
}
|
|
5475
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
5476
|
-
constructor: {
|
|
5477
|
-
value: subClass,
|
|
5478
|
-
writable: true,
|
|
5479
|
-
configurable: true
|
|
5480
|
-
}
|
|
5481
|
-
});
|
|
5482
|
-
Object.defineProperty(subClass, "prototype", {
|
|
5483
|
-
writable: false
|
|
5484
|
-
});
|
|
5485
|
-
if (superClass)
|
|
5486
|
-
_setPrototypeOf(subClass, superClass);
|
|
5487
|
-
}
|
|
5488
|
-
function _getPrototypeOf(o9) {
|
|
5489
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o10) {
|
|
5490
|
-
return o10.__proto__ || Object.getPrototypeOf(o10);
|
|
5491
|
-
};
|
|
5492
|
-
return _getPrototypeOf(o9);
|
|
5493
|
-
}
|
|
5494
|
-
function _setPrototypeOf(o9, p4) {
|
|
5495
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o10, p5) {
|
|
5496
|
-
o10.__proto__ = p5;
|
|
5497
|
-
return o10;
|
|
5498
|
-
};
|
|
5499
|
-
return _setPrototypeOf(o9, p4);
|
|
5500
|
-
}
|
|
5501
|
-
function _isNativeReflectConstruct() {
|
|
5502
|
-
if (typeof Reflect === "undefined" || !Reflect.construct)
|
|
5503
|
-
return false;
|
|
5504
|
-
if (Reflect.construct.sham)
|
|
5505
|
-
return false;
|
|
5506
|
-
if (typeof Proxy === "function")
|
|
5507
|
-
return true;
|
|
5508
|
-
try {
|
|
5509
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
5510
|
-
}));
|
|
5511
|
-
return true;
|
|
5512
|
-
} catch (e11) {
|
|
5513
|
-
return false;
|
|
5514
|
-
}
|
|
5515
|
-
}
|
|
5516
|
-
function _construct(Parent, args, Class) {
|
|
5517
|
-
if (_isNativeReflectConstruct()) {
|
|
5518
|
-
_construct = Reflect.construct.bind();
|
|
5519
|
-
} else {
|
|
5520
|
-
_construct = function _construct2(Parent2, args2, Class2) {
|
|
5521
|
-
var a6 = [null];
|
|
5522
|
-
a6.push.apply(a6, args2);
|
|
5523
|
-
var Constructor = Function.bind.apply(Parent2, a6);
|
|
5524
|
-
var instance = new Constructor();
|
|
5525
|
-
if (Class2)
|
|
5526
|
-
_setPrototypeOf(instance, Class2.prototype);
|
|
5527
|
-
return instance;
|
|
5528
|
-
};
|
|
5529
|
-
}
|
|
5530
|
-
return _construct.apply(null, arguments);
|
|
5531
|
-
}
|
|
5532
|
-
function _isNativeFunction(fn) {
|
|
5533
|
-
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
5534
|
-
}
|
|
5535
|
-
function _wrapNativeSuper(Class) {
|
|
5536
|
-
var _cache = typeof Map === "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
5537
|
-
_wrapNativeSuper = function _wrapNativeSuper2(Class2) {
|
|
5538
|
-
if (Class2 === null || !_isNativeFunction(Class2))
|
|
5539
|
-
return Class2;
|
|
5540
|
-
if (typeof Class2 !== "function") {
|
|
5541
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
5542
|
-
}
|
|
5543
|
-
if (typeof _cache !== "undefined") {
|
|
5544
|
-
if (_cache.has(Class2))
|
|
5545
|
-
return _cache.get(Class2);
|
|
5546
|
-
_cache.set(Class2, Wrapper);
|
|
5547
|
-
}
|
|
5548
|
-
function Wrapper() {
|
|
5549
|
-
return _construct(Class2, arguments, _getPrototypeOf(this).constructor);
|
|
5550
|
-
}
|
|
5551
|
-
Wrapper.prototype = Object.create(Class2.prototype, {
|
|
5552
|
-
constructor: {
|
|
5553
|
-
value: Wrapper,
|
|
5554
|
-
enumerable: false,
|
|
5555
|
-
writable: true,
|
|
5556
|
-
configurable: true
|
|
5557
|
-
}
|
|
5558
|
-
});
|
|
5559
|
-
return _setPrototypeOf(Wrapper, Class2);
|
|
5560
|
-
};
|
|
5561
|
-
return _wrapNativeSuper(Class);
|
|
5562
|
-
}
|
|
5563
|
-
function _assertThisInitialized(self2) {
|
|
5564
|
-
if (self2 === void 0) {
|
|
5565
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
5566
|
-
}
|
|
5567
|
-
return self2;
|
|
5568
|
-
}
|
|
5569
|
-
function _possibleConstructorReturn(self2, call) {
|
|
5570
|
-
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
5571
|
-
return call;
|
|
5572
|
-
} else if (call !== void 0) {
|
|
5573
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
5574
|
-
}
|
|
5575
|
-
return _assertThisInitialized(self2);
|
|
5576
|
-
}
|
|
5577
|
-
function _createSuper(Derived) {
|
|
5578
|
-
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
5579
|
-
return function _createSuperInternal() {
|
|
5580
|
-
var Super = _getPrototypeOf(Derived), result;
|
|
5581
|
-
if (hasNativeReflectConstruct) {
|
|
5582
|
-
var NewTarget = _getPrototypeOf(this).constructor;
|
|
5583
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
5584
|
-
} else {
|
|
5585
|
-
result = Super.apply(this, arguments);
|
|
5586
|
-
}
|
|
5587
|
-
return _possibleConstructorReturn(this, result);
|
|
5588
|
-
};
|
|
5589
|
-
}
|
|
5590
|
-
function _toPrimitive(input, hint) {
|
|
5591
|
-
if (typeof input !== "object" || input === null)
|
|
5592
|
-
return input;
|
|
5593
|
-
var prim = input[Symbol.toPrimitive];
|
|
5594
|
-
if (prim !== void 0) {
|
|
5595
|
-
var res = prim.call(input, hint || "default");
|
|
5596
|
-
if (typeof res !== "object")
|
|
5597
|
-
return res;
|
|
5598
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
5599
|
-
}
|
|
5600
|
-
return (hint === "string" ? String : Number)(input);
|
|
5601
|
-
}
|
|
5602
|
-
function _toPropertyKey(arg) {
|
|
5603
|
-
var key = _toPrimitive(arg, "string");
|
|
5604
|
-
return typeof key === "symbol" ? key : String(key);
|
|
5605
|
-
}
|
|
5606
|
-
var isNode = typeof global !== "undefined" && {}.toString.call(global) === "[object global]";
|
|
5607
|
-
function getMethodName(prop, type) {
|
|
5608
|
-
if (prop.indexOf(type.toLowerCase()) === 0) {
|
|
5609
|
-
return prop;
|
|
5610
|
-
}
|
|
5611
|
-
return "".concat(type.toLowerCase()).concat(prop.substr(0, 1).toUpperCase()).concat(prop.substr(1));
|
|
5612
|
-
}
|
|
5613
|
-
function isDomElement(element) {
|
|
5614
|
-
return Boolean(element && element.nodeType === 1 && "nodeName" in element && element.ownerDocument && element.ownerDocument.defaultView);
|
|
5615
|
-
}
|
|
5616
|
-
function isInteger(value) {
|
|
5617
|
-
return !isNaN(parseFloat(value)) && isFinite(value) && Math.floor(value) == value;
|
|
5618
|
-
}
|
|
5619
|
-
function isVimeoUrl(url) {
|
|
5620
|
-
return /^(https?:)?\/\/((((player|www)\.)?vimeo\.com)|((player\.)?[a-zA-Z0-9-]+\.videoji\.hk))(?=$|\/)/.test(url);
|
|
5621
|
-
}
|
|
5622
|
-
function isVimeoEmbed(url) {
|
|
5623
|
-
var expr = /^https:\/\/player\.((vimeo\.com)|([a-zA-Z0-9-]+\.videoji\.hk))\/video\/\d+/;
|
|
5624
|
-
return expr.test(url);
|
|
5625
|
-
}
|
|
5626
|
-
function getOembedDomain(url) {
|
|
5627
|
-
var match = (url || "").match(/^(?:https?:)?(?:\/\/)?([^/?]+)/);
|
|
5628
|
-
var domain = (match && match[1] || "").replace("player.", "");
|
|
5629
|
-
if (domain.endsWith(".videoji.hk")) {
|
|
5630
|
-
return domain;
|
|
5631
|
-
}
|
|
5632
|
-
return "vimeo.com";
|
|
5633
|
-
}
|
|
5634
|
-
function getVimeoUrl() {
|
|
5635
|
-
var oEmbedParameters2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
5636
|
-
var id = oEmbedParameters2.id;
|
|
5637
|
-
var url = oEmbedParameters2.url;
|
|
5638
|
-
var idOrUrl = id || url;
|
|
5639
|
-
if (!idOrUrl) {
|
|
5640
|
-
throw new Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");
|
|
4517
|
+
return "".concat(type.toLowerCase()).concat(prop.substr(0, 1).toUpperCase()).concat(prop.substr(1));
|
|
4518
|
+
}
|
|
4519
|
+
function isDomElement(element) {
|
|
4520
|
+
return Boolean(element && element.nodeType === 1 && "nodeName" in element && element.ownerDocument && element.ownerDocument.defaultView);
|
|
4521
|
+
}
|
|
4522
|
+
function isInteger(value) {
|
|
4523
|
+
return !isNaN(parseFloat(value)) && isFinite(value) && Math.floor(value) == value;
|
|
4524
|
+
}
|
|
4525
|
+
function isVimeoUrl(url) {
|
|
4526
|
+
return /^(https?:)?\/\/((player|www)\.)?vimeo\.com(?=$|\/)/.test(url);
|
|
4527
|
+
}
|
|
4528
|
+
function isVimeoEmbed(url) {
|
|
4529
|
+
var expr = /^https:\/\/player\.vimeo\.com\/video\/\d+/;
|
|
4530
|
+
return expr.test(url);
|
|
4531
|
+
}
|
|
4532
|
+
function getVimeoUrl() {
|
|
4533
|
+
var oEmbedParameters2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4534
|
+
var id = oEmbedParameters2.id;
|
|
4535
|
+
var url = oEmbedParameters2.url;
|
|
4536
|
+
var idOrUrl = id || url;
|
|
4537
|
+
if (!idOrUrl) {
|
|
4538
|
+
throw new Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");
|
|
5641
4539
|
}
|
|
5642
4540
|
if (isInteger(idOrUrl)) {
|
|
5643
4541
|
return "https://vimeo.com/".concat(idOrUrl);
|
|
@@ -5650,21 +4548,6 @@
|
|
|
5650
4548
|
}
|
|
5651
4549
|
throw new TypeError("\u201C".concat(idOrUrl, "\u201D is not a vimeo.com url."));
|
|
5652
4550
|
}
|
|
5653
|
-
var subscribe = function subscribe2(target, eventName, callback) {
|
|
5654
|
-
var onName = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "addEventListener";
|
|
5655
|
-
var offName = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : "removeEventListener";
|
|
5656
|
-
var eventNames = typeof eventName === "string" ? [eventName] : eventName;
|
|
5657
|
-
eventNames.forEach(function(evName) {
|
|
5658
|
-
target[onName](evName, callback);
|
|
5659
|
-
});
|
|
5660
|
-
return {
|
|
5661
|
-
cancel: function cancel() {
|
|
5662
|
-
return eventNames.forEach(function(evName) {
|
|
5663
|
-
return target[offName](evName, callback);
|
|
5664
|
-
});
|
|
5665
|
-
}
|
|
5666
|
-
};
|
|
5667
|
-
};
|
|
5668
4551
|
var arrayIndexOfSupport = typeof Array.prototype.indexOf !== "undefined";
|
|
5669
4552
|
var postMessageSupport = typeof window !== "undefined" && typeof window.postMessage !== "undefined";
|
|
5670
4553
|
if (!isNode && (!arrayIndexOfSupport || !postMessageSupport)) {
|
|
@@ -5684,7 +4567,7 @@
|
|
|
5684
4567
|
return Object.defineProperty({}, "x", {
|
|
5685
4568
|
value: 1
|
|
5686
4569
|
}).x === 1;
|
|
5687
|
-
} catch (
|
|
4570
|
+
} catch (e8) {
|
|
5688
4571
|
}
|
|
5689
4572
|
}();
|
|
5690
4573
|
var defineProperty = function(object, name, value) {
|
|
@@ -5755,9 +4638,9 @@
|
|
|
5755
4638
|
defineProperty(key, this._id, [key, value]);
|
|
5756
4639
|
return this;
|
|
5757
4640
|
});
|
|
5758
|
-
function checkInstance(
|
|
5759
|
-
if (!isObject(
|
|
5760
|
-
throw new TypeError(methodName + " method called on incompatible receiver " + typeof
|
|
4641
|
+
function checkInstance(x2, methodName) {
|
|
4642
|
+
if (!isObject(x2) || !hasOwnProperty2.call(x2, "_id")) {
|
|
4643
|
+
throw new TypeError(methodName + " method called on incompatible receiver " + typeof x2);
|
|
5761
4644
|
}
|
|
5762
4645
|
}
|
|
5763
4646
|
function genId(prefix) {
|
|
@@ -5769,8 +4652,8 @@
|
|
|
5769
4652
|
defineProperty(WeakMap2, "_polyfill", true);
|
|
5770
4653
|
return WeakMap2;
|
|
5771
4654
|
}();
|
|
5772
|
-
function isObject(
|
|
5773
|
-
return Object(
|
|
4655
|
+
function isObject(x2) {
|
|
4656
|
+
return Object(x2) === x2;
|
|
5774
4657
|
}
|
|
5775
4658
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof commonjsGlobal !== "undefined" ? commonjsGlobal : commonjsGlobal);
|
|
5776
4659
|
var npo_src = createCommonjsModule(function(module) {
|
|
@@ -5798,7 +4681,7 @@
|
|
|
5798
4681
|
return obj;
|
|
5799
4682
|
};
|
|
5800
4683
|
}
|
|
5801
|
-
scheduling_queue =
|
|
4684
|
+
scheduling_queue = function Queue() {
|
|
5802
4685
|
var first, last, item;
|
|
5803
4686
|
function Item(fn, self2) {
|
|
5804
4687
|
this.fn = fn;
|
|
@@ -5817,11 +4700,11 @@
|
|
|
5817
4700
|
item = void 0;
|
|
5818
4701
|
},
|
|
5819
4702
|
drain: function drain() {
|
|
5820
|
-
var
|
|
4703
|
+
var f3 = first;
|
|
5821
4704
|
first = last = cycle = void 0;
|
|
5822
|
-
while (
|
|
5823
|
-
|
|
5824
|
-
|
|
4705
|
+
while (f3) {
|
|
4706
|
+
f3.fn.call(f3.self);
|
|
4707
|
+
f3 = f3.next;
|
|
5825
4708
|
}
|
|
5826
4709
|
}
|
|
5827
4710
|
};
|
|
@@ -5832,16 +4715,16 @@
|
|
|
5832
4715
|
cycle = timer(scheduling_queue.drain);
|
|
5833
4716
|
}
|
|
5834
4717
|
}
|
|
5835
|
-
function isThenable(
|
|
5836
|
-
var _then, o_type = typeof
|
|
5837
|
-
if (
|
|
5838
|
-
_then =
|
|
4718
|
+
function isThenable(o6) {
|
|
4719
|
+
var _then, o_type = typeof o6;
|
|
4720
|
+
if (o6 != null && (o_type == "object" || o_type == "function")) {
|
|
4721
|
+
_then = o6.then;
|
|
5839
4722
|
}
|
|
5840
4723
|
return typeof _then == "function" ? _then : false;
|
|
5841
4724
|
}
|
|
5842
4725
|
function notify() {
|
|
5843
|
-
for (var
|
|
5844
|
-
notifyIsolated(this, this.state === 1 ? this.chain[
|
|
4726
|
+
for (var i7 = 0; i7 < this.chain.length; i7++) {
|
|
4727
|
+
notifyIsolated(this, this.state === 1 ? this.chain[i7].success : this.chain[i7].failure, this.chain[i7]);
|
|
5845
4728
|
}
|
|
5846
4729
|
this.chain.length = 0;
|
|
5847
4730
|
}
|
|
@@ -5947,22 +4830,22 @@
|
|
|
5947
4830
|
this.__NPO__ = 1;
|
|
5948
4831
|
var def = new MakeDef(this);
|
|
5949
4832
|
this["then"] = function then(success, failure) {
|
|
5950
|
-
var
|
|
4833
|
+
var o6 = {
|
|
5951
4834
|
success: typeof success == "function" ? success : true,
|
|
5952
4835
|
failure: typeof failure == "function" ? failure : false
|
|
5953
4836
|
};
|
|
5954
|
-
|
|
4837
|
+
o6.promise = new this.constructor(function extractChain(resolve2, reject2) {
|
|
5955
4838
|
if (typeof resolve2 != "function" || typeof reject2 != "function") {
|
|
5956
4839
|
throw TypeError("Not a function");
|
|
5957
4840
|
}
|
|
5958
|
-
|
|
5959
|
-
|
|
4841
|
+
o6.resolve = resolve2;
|
|
4842
|
+
o6.reject = reject2;
|
|
5960
4843
|
});
|
|
5961
|
-
def.chain.push(
|
|
4844
|
+
def.chain.push(o6);
|
|
5962
4845
|
if (def.state !== 0) {
|
|
5963
4846
|
schedule(notify, def);
|
|
5964
4847
|
}
|
|
5965
|
-
return
|
|
4848
|
+
return o6.promise;
|
|
5966
4849
|
};
|
|
5967
4850
|
this["catch"] = function $catch$(failure) {
|
|
5968
4851
|
return this.then(void 0, failure);
|
|
@@ -6151,11 +5034,11 @@
|
|
|
6151
5034
|
return;
|
|
6152
5035
|
}
|
|
6153
5036
|
callback2.resolve(param);
|
|
6154
|
-
} catch (
|
|
5037
|
+
} catch (e8) {
|
|
6155
5038
|
}
|
|
6156
5039
|
});
|
|
6157
5040
|
}
|
|
6158
|
-
var oEmbedParameters = ["
|
|
5041
|
+
var oEmbedParameters = ["autopause", "autoplay", "background", "byline", "color", "controls", "dnt", "height", "id", "interactive_params", "keyboard", "loop", "maxheight", "maxwidth", "muted", "playsinline", "portrait", "responsive", "speed", "texttrack", "title", "transparent", "url", "width"];
|
|
6159
5042
|
function getOEmbedParameters(element) {
|
|
6160
5043
|
var defaults = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
6161
5044
|
return oEmbedParameters.reduce(function(params, param) {
|
|
@@ -6187,8 +5070,7 @@
|
|
|
6187
5070
|
if (!isVimeoUrl(videoUrl)) {
|
|
6188
5071
|
throw new TypeError("\u201C".concat(videoUrl, "\u201D is not a vimeo.com url."));
|
|
6189
5072
|
}
|
|
6190
|
-
var
|
|
6191
|
-
var url = "https://".concat(domain, "/api/oembed.json?url=").concat(encodeURIComponent(videoUrl));
|
|
5073
|
+
var url = "https://vimeo.com/api/oembed.json?url=".concat(encodeURIComponent(videoUrl));
|
|
6192
5074
|
for (var param in params) {
|
|
6193
5075
|
if (params.hasOwnProperty(param)) {
|
|
6194
5076
|
url += "&".concat(param, "=").concat(encodeURIComponent(params[param]));
|
|
@@ -6261,11 +5143,11 @@
|
|
|
6261
5143
|
return;
|
|
6262
5144
|
}
|
|
6263
5145
|
var iframes = parent.querySelectorAll("iframe");
|
|
6264
|
-
for (var
|
|
6265
|
-
if (iframes[
|
|
5146
|
+
for (var i7 = 0; i7 < iframes.length; i7++) {
|
|
5147
|
+
if (iframes[i7].contentWindow !== event.source) {
|
|
6266
5148
|
continue;
|
|
6267
5149
|
}
|
|
6268
|
-
var space = iframes[
|
|
5150
|
+
var space = iframes[i7].parentElement;
|
|
6269
5151
|
space.style.paddingBottom = "".concat(event.data.data[0].bottom, "px");
|
|
6270
5152
|
break;
|
|
6271
5153
|
}
|
|
@@ -6287,8 +5169,8 @@
|
|
|
6287
5169
|
return;
|
|
6288
5170
|
}
|
|
6289
5171
|
var iframes = parent.querySelectorAll("iframe");
|
|
6290
|
-
for (var
|
|
6291
|
-
var iframe = iframes[
|
|
5172
|
+
for (var i7 = 0; i7 < iframes.length; i7++) {
|
|
5173
|
+
var iframe = iframes[i7];
|
|
6292
5174
|
var isValidMessageSource = iframe.contentWindow === event.source;
|
|
6293
5175
|
if (isVimeoEmbed(iframe.src) && isValidMessageSource) {
|
|
6294
5176
|
var player = new Player(iframe);
|
|
@@ -6318,23 +5200,22 @@
|
|
|
6318
5200
|
return;
|
|
6319
5201
|
}
|
|
6320
5202
|
var iframes = parent.querySelectorAll("iframe");
|
|
6321
|
-
var
|
|
6322
|
-
var iframe = iframes[
|
|
5203
|
+
for (var i7 = 0; i7 < iframes.length; i7++) {
|
|
5204
|
+
var iframe = iframes[i7];
|
|
6323
5205
|
var isValidMessageSource = iframe.contentWindow === event.source;
|
|
6324
5206
|
if (isVimeoEmbed(iframe.src) && isValidMessageSource) {
|
|
6325
|
-
|
|
6326
|
-
|
|
6327
|
-
|
|
6328
|
-
|
|
6329
|
-
|
|
6330
|
-
|
|
6331
|
-
|
|
6332
|
-
|
|
6333
|
-
|
|
5207
|
+
(function() {
|
|
5208
|
+
var player = new Player(iframe);
|
|
5209
|
+
player.getVideoId().then(function(videoId) {
|
|
5210
|
+
var matches = new RegExp("[?&]vimeo_t_".concat(videoId, "=([^&#]*)")).exec(window.location.href);
|
|
5211
|
+
if (matches && matches[1]) {
|
|
5212
|
+
var sec = decodeURI(matches[1]);
|
|
5213
|
+
player.setCurrentTime(sec);
|
|
5214
|
+
}
|
|
5215
|
+
return;
|
|
5216
|
+
}).catch(handleError);
|
|
5217
|
+
})();
|
|
6334
5218
|
}
|
|
6335
|
-
};
|
|
6336
|
-
for (var i9 = 0; i9 < iframes.length; i9++) {
|
|
6337
|
-
_loop();
|
|
6338
5219
|
}
|
|
6339
5220
|
};
|
|
6340
5221
|
window.addEventListener("message", onMessage);
|
|
@@ -6351,14 +5232,14 @@
|
|
|
6351
5232
|
["mozRequestFullScreen", "mozCancelFullScreen", "mozFullScreenElement", "mozFullScreenEnabled", "mozfullscreenchange", "mozfullscreenerror"],
|
|
6352
5233
|
["msRequestFullscreen", "msExitFullscreen", "msFullscreenElement", "msFullscreenEnabled", "MSFullscreenChange", "MSFullscreenError"]
|
|
6353
5234
|
];
|
|
6354
|
-
var
|
|
6355
|
-
var
|
|
5235
|
+
var i7 = 0;
|
|
5236
|
+
var l6 = fnMap.length;
|
|
6356
5237
|
var ret = {};
|
|
6357
|
-
for (;
|
|
6358
|
-
val = fnMap[
|
|
5238
|
+
for (; i7 < l6; i7++) {
|
|
5239
|
+
val = fnMap[i7];
|
|
6359
5240
|
if (val && val[1] in document) {
|
|
6360
|
-
for (
|
|
6361
|
-
ret[fnMap[0][
|
|
5241
|
+
for (i7 = 0; i7 < val.length; i7++) {
|
|
5242
|
+
ret[fnMap[0][i7]] = val[i7];
|
|
6362
5243
|
}
|
|
6363
5244
|
return ret;
|
|
6364
5245
|
}
|
|
@@ -6435,414 +5316,6 @@
|
|
|
6435
5316
|
});
|
|
6436
5317
|
return screenfull2;
|
|
6437
5318
|
}
|
|
6438
|
-
var defaultOptions = {
|
|
6439
|
-
role: "viewer",
|
|
6440
|
-
autoPlayMuted: true,
|
|
6441
|
-
allowedDrift: 0.3,
|
|
6442
|
-
maxAllowedDrift: 1,
|
|
6443
|
-
minCheckInterval: 0.1,
|
|
6444
|
-
maxRateAdjustment: 0.2,
|
|
6445
|
-
maxTimeToCatchUp: 1
|
|
6446
|
-
};
|
|
6447
|
-
var TimingSrcConnector = /* @__PURE__ */ function(_EventTarget) {
|
|
6448
|
-
_inherits(TimingSrcConnector2, _EventTarget);
|
|
6449
|
-
var _super = _createSuper(TimingSrcConnector2);
|
|
6450
|
-
function TimingSrcConnector2(_player, timingObject) {
|
|
6451
|
-
var _this;
|
|
6452
|
-
var options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
6453
|
-
var logger = arguments.length > 3 ? arguments[3] : void 0;
|
|
6454
|
-
_classCallCheck(this, TimingSrcConnector2);
|
|
6455
|
-
_this = _super.call(this);
|
|
6456
|
-
_defineProperty(_assertThisInitialized(_this), "logger", void 0);
|
|
6457
|
-
_defineProperty(_assertThisInitialized(_this), "speedAdjustment", 0);
|
|
6458
|
-
_defineProperty(_assertThisInitialized(_this), "adjustSpeed", /* @__PURE__ */ function() {
|
|
6459
|
-
var _ref = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee(player, newAdjustment) {
|
|
6460
|
-
var newPlaybackRate;
|
|
6461
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
6462
|
-
while (1)
|
|
6463
|
-
switch (_context.prev = _context.next) {
|
|
6464
|
-
case 0:
|
|
6465
|
-
if (!(_this.speedAdjustment === newAdjustment)) {
|
|
6466
|
-
_context.next = 2;
|
|
6467
|
-
break;
|
|
6468
|
-
}
|
|
6469
|
-
return _context.abrupt("return");
|
|
6470
|
-
case 2:
|
|
6471
|
-
_context.next = 4;
|
|
6472
|
-
return player.getPlaybackRate();
|
|
6473
|
-
case 4:
|
|
6474
|
-
_context.t0 = _context.sent;
|
|
6475
|
-
_context.t1 = _this.speedAdjustment;
|
|
6476
|
-
_context.t2 = _context.t0 - _context.t1;
|
|
6477
|
-
_context.t3 = newAdjustment;
|
|
6478
|
-
newPlaybackRate = _context.t2 + _context.t3;
|
|
6479
|
-
_this.log("New playbackRate: ".concat(newPlaybackRate));
|
|
6480
|
-
_context.next = 12;
|
|
6481
|
-
return player.setPlaybackRate(newPlaybackRate);
|
|
6482
|
-
case 12:
|
|
6483
|
-
_this.speedAdjustment = newAdjustment;
|
|
6484
|
-
case 13:
|
|
6485
|
-
case "end":
|
|
6486
|
-
return _context.stop();
|
|
6487
|
-
}
|
|
6488
|
-
}, _callee);
|
|
6489
|
-
}));
|
|
6490
|
-
return function(_x, _x2) {
|
|
6491
|
-
return _ref.apply(this, arguments);
|
|
6492
|
-
};
|
|
6493
|
-
}());
|
|
6494
|
-
_this.logger = logger;
|
|
6495
|
-
_this.init(timingObject, _player, _objectSpread2(_objectSpread2({}, defaultOptions), options));
|
|
6496
|
-
return _this;
|
|
6497
|
-
}
|
|
6498
|
-
_createClass(TimingSrcConnector2, [{
|
|
6499
|
-
key: "disconnect",
|
|
6500
|
-
value: function disconnect() {
|
|
6501
|
-
this.dispatchEvent(new Event("disconnect"));
|
|
6502
|
-
}
|
|
6503
|
-
/**
|
|
6504
|
-
* @param {TimingObject} timingObject
|
|
6505
|
-
* @param {PlayerControls} player
|
|
6506
|
-
* @param {TimingSrcConnectorOptions} options
|
|
6507
|
-
* @return {Promise<void>}
|
|
6508
|
-
*/
|
|
6509
|
-
}, {
|
|
6510
|
-
key: "init",
|
|
6511
|
-
value: function() {
|
|
6512
|
-
var _init = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee2(timingObject, player, options) {
|
|
6513
|
-
var _this2 = this;
|
|
6514
|
-
var playerUpdater, positionSync, timingObjectUpdater;
|
|
6515
|
-
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
6516
|
-
while (1)
|
|
6517
|
-
switch (_context2.prev = _context2.next) {
|
|
6518
|
-
case 0:
|
|
6519
|
-
_context2.next = 2;
|
|
6520
|
-
return this.waitForTOReadyState(timingObject, "open");
|
|
6521
|
-
case 2:
|
|
6522
|
-
if (!(options.role === "viewer")) {
|
|
6523
|
-
_context2.next = 10;
|
|
6524
|
-
break;
|
|
6525
|
-
}
|
|
6526
|
-
_context2.next = 5;
|
|
6527
|
-
return this.updatePlayer(timingObject, player, options);
|
|
6528
|
-
case 5:
|
|
6529
|
-
playerUpdater = subscribe(timingObject, "change", function() {
|
|
6530
|
-
return _this2.updatePlayer(timingObject, player, options);
|
|
6531
|
-
});
|
|
6532
|
-
positionSync = this.maintainPlaybackPosition(timingObject, player, options);
|
|
6533
|
-
this.addEventListener("disconnect", function() {
|
|
6534
|
-
positionSync.cancel();
|
|
6535
|
-
playerUpdater.cancel();
|
|
6536
|
-
});
|
|
6537
|
-
_context2.next = 14;
|
|
6538
|
-
break;
|
|
6539
|
-
case 10:
|
|
6540
|
-
_context2.next = 12;
|
|
6541
|
-
return this.updateTimingObject(timingObject, player);
|
|
6542
|
-
case 12:
|
|
6543
|
-
timingObjectUpdater = subscribe(player, ["seeked", "play", "pause", "ratechange"], function() {
|
|
6544
|
-
return _this2.updateTimingObject(timingObject, player);
|
|
6545
|
-
}, "on", "off");
|
|
6546
|
-
this.addEventListener("disconnect", function() {
|
|
6547
|
-
return timingObjectUpdater.cancel();
|
|
6548
|
-
});
|
|
6549
|
-
case 14:
|
|
6550
|
-
case "end":
|
|
6551
|
-
return _context2.stop();
|
|
6552
|
-
}
|
|
6553
|
-
}, _callee2, this);
|
|
6554
|
-
}));
|
|
6555
|
-
function init(_x3, _x4, _x5) {
|
|
6556
|
-
return _init.apply(this, arguments);
|
|
6557
|
-
}
|
|
6558
|
-
return init;
|
|
6559
|
-
}()
|
|
6560
|
-
/**
|
|
6561
|
-
* Sets the TimingObject's state to reflect that of the player
|
|
6562
|
-
*
|
|
6563
|
-
* @param {TimingObject} timingObject
|
|
6564
|
-
* @param {PlayerControls} player
|
|
6565
|
-
* @return {Promise<void>}
|
|
6566
|
-
*/
|
|
6567
|
-
}, {
|
|
6568
|
-
key: "updateTimingObject",
|
|
6569
|
-
value: function() {
|
|
6570
|
-
var _updateTimingObject = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee3(timingObject, player) {
|
|
6571
|
-
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
6572
|
-
while (1)
|
|
6573
|
-
switch (_context3.prev = _context3.next) {
|
|
6574
|
-
case 0:
|
|
6575
|
-
_context3.t0 = timingObject;
|
|
6576
|
-
_context3.next = 3;
|
|
6577
|
-
return player.getCurrentTime();
|
|
6578
|
-
case 3:
|
|
6579
|
-
_context3.t1 = _context3.sent;
|
|
6580
|
-
_context3.next = 6;
|
|
6581
|
-
return player.getPaused();
|
|
6582
|
-
case 6:
|
|
6583
|
-
if (!_context3.sent) {
|
|
6584
|
-
_context3.next = 10;
|
|
6585
|
-
break;
|
|
6586
|
-
}
|
|
6587
|
-
_context3.t2 = 0;
|
|
6588
|
-
_context3.next = 13;
|
|
6589
|
-
break;
|
|
6590
|
-
case 10:
|
|
6591
|
-
_context3.next = 12;
|
|
6592
|
-
return player.getPlaybackRate();
|
|
6593
|
-
case 12:
|
|
6594
|
-
_context3.t2 = _context3.sent;
|
|
6595
|
-
case 13:
|
|
6596
|
-
_context3.t3 = _context3.t2;
|
|
6597
|
-
_context3.t4 = {
|
|
6598
|
-
position: _context3.t1,
|
|
6599
|
-
velocity: _context3.t3
|
|
6600
|
-
};
|
|
6601
|
-
_context3.t0.update.call(_context3.t0, _context3.t4);
|
|
6602
|
-
case 16:
|
|
6603
|
-
case "end":
|
|
6604
|
-
return _context3.stop();
|
|
6605
|
-
}
|
|
6606
|
-
}, _callee3);
|
|
6607
|
-
}));
|
|
6608
|
-
function updateTimingObject(_x6, _x7) {
|
|
6609
|
-
return _updateTimingObject.apply(this, arguments);
|
|
6610
|
-
}
|
|
6611
|
-
return updateTimingObject;
|
|
6612
|
-
}()
|
|
6613
|
-
/**
|
|
6614
|
-
* Sets the player's timing state to reflect that of the TimingObject
|
|
6615
|
-
*
|
|
6616
|
-
* @param {TimingObject} timingObject
|
|
6617
|
-
* @param {PlayerControls} player
|
|
6618
|
-
* @param {TimingSrcConnectorOptions} options
|
|
6619
|
-
* @return {Promise<void>}
|
|
6620
|
-
*/
|
|
6621
|
-
}, {
|
|
6622
|
-
key: "updatePlayer",
|
|
6623
|
-
value: function() {
|
|
6624
|
-
var _updatePlayer = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee5(timingObject, player, options) {
|
|
6625
|
-
var _timingObject$query, position, velocity;
|
|
6626
|
-
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
6627
|
-
while (1)
|
|
6628
|
-
switch (_context5.prev = _context5.next) {
|
|
6629
|
-
case 0:
|
|
6630
|
-
_timingObject$query = timingObject.query(), position = _timingObject$query.position, velocity = _timingObject$query.velocity;
|
|
6631
|
-
if (typeof position === "number") {
|
|
6632
|
-
player.setCurrentTime(position);
|
|
6633
|
-
}
|
|
6634
|
-
if (!(typeof velocity === "number")) {
|
|
6635
|
-
_context5.next = 25;
|
|
6636
|
-
break;
|
|
6637
|
-
}
|
|
6638
|
-
if (!(velocity === 0)) {
|
|
6639
|
-
_context5.next = 11;
|
|
6640
|
-
break;
|
|
6641
|
-
}
|
|
6642
|
-
_context5.next = 6;
|
|
6643
|
-
return player.getPaused();
|
|
6644
|
-
case 6:
|
|
6645
|
-
_context5.t0 = _context5.sent;
|
|
6646
|
-
if (!(_context5.t0 === false)) {
|
|
6647
|
-
_context5.next = 9;
|
|
6648
|
-
break;
|
|
6649
|
-
}
|
|
6650
|
-
player.pause();
|
|
6651
|
-
case 9:
|
|
6652
|
-
_context5.next = 25;
|
|
6653
|
-
break;
|
|
6654
|
-
case 11:
|
|
6655
|
-
if (!(velocity > 0)) {
|
|
6656
|
-
_context5.next = 25;
|
|
6657
|
-
break;
|
|
6658
|
-
}
|
|
6659
|
-
_context5.next = 14;
|
|
6660
|
-
return player.getPaused();
|
|
6661
|
-
case 14:
|
|
6662
|
-
_context5.t1 = _context5.sent;
|
|
6663
|
-
if (!(_context5.t1 === true)) {
|
|
6664
|
-
_context5.next = 19;
|
|
6665
|
-
break;
|
|
6666
|
-
}
|
|
6667
|
-
_context5.next = 18;
|
|
6668
|
-
return player.play().catch(/* @__PURE__ */ function() {
|
|
6669
|
-
var _ref2 = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee4(err) {
|
|
6670
|
-
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
6671
|
-
while (1)
|
|
6672
|
-
switch (_context4.prev = _context4.next) {
|
|
6673
|
-
case 0:
|
|
6674
|
-
if (!(err.name === "NotAllowedError" && options.autoPlayMuted)) {
|
|
6675
|
-
_context4.next = 5;
|
|
6676
|
-
break;
|
|
6677
|
-
}
|
|
6678
|
-
_context4.next = 3;
|
|
6679
|
-
return player.setMuted(true);
|
|
6680
|
-
case 3:
|
|
6681
|
-
_context4.next = 5;
|
|
6682
|
-
return player.play().catch(function(err2) {
|
|
6683
|
-
return console.error("Couldn't play the video from TimingSrcConnector. Error:", err2);
|
|
6684
|
-
});
|
|
6685
|
-
case 5:
|
|
6686
|
-
case "end":
|
|
6687
|
-
return _context4.stop();
|
|
6688
|
-
}
|
|
6689
|
-
}, _callee4);
|
|
6690
|
-
}));
|
|
6691
|
-
return function(_x11) {
|
|
6692
|
-
return _ref2.apply(this, arguments);
|
|
6693
|
-
};
|
|
6694
|
-
}());
|
|
6695
|
-
case 18:
|
|
6696
|
-
this.updatePlayer(timingObject, player, options);
|
|
6697
|
-
case 19:
|
|
6698
|
-
_context5.next = 21;
|
|
6699
|
-
return player.getPlaybackRate();
|
|
6700
|
-
case 21:
|
|
6701
|
-
_context5.t2 = _context5.sent;
|
|
6702
|
-
_context5.t3 = velocity;
|
|
6703
|
-
if (!(_context5.t2 !== _context5.t3)) {
|
|
6704
|
-
_context5.next = 25;
|
|
6705
|
-
break;
|
|
6706
|
-
}
|
|
6707
|
-
player.setPlaybackRate(velocity);
|
|
6708
|
-
case 25:
|
|
6709
|
-
case "end":
|
|
6710
|
-
return _context5.stop();
|
|
6711
|
-
}
|
|
6712
|
-
}, _callee5, this);
|
|
6713
|
-
}));
|
|
6714
|
-
function updatePlayer(_x8, _x9, _x10) {
|
|
6715
|
-
return _updatePlayer.apply(this, arguments);
|
|
6716
|
-
}
|
|
6717
|
-
return updatePlayer;
|
|
6718
|
-
}()
|
|
6719
|
-
/**
|
|
6720
|
-
* Since video players do not play with 100% time precision, we need to closely monitor
|
|
6721
|
-
* our player to be sure it remains in sync with the TimingObject.
|
|
6722
|
-
*
|
|
6723
|
-
* If out of sync, we use the current conditions and the options provided to determine
|
|
6724
|
-
* whether to re-sync via setting currentTime or adjusting the playbackRate
|
|
6725
|
-
*
|
|
6726
|
-
* @param {TimingObject} timingObject
|
|
6727
|
-
* @param {PlayerControls} player
|
|
6728
|
-
* @param {TimingSrcConnectorOptions} options
|
|
6729
|
-
* @return {{cancel: (function(): void)}}
|
|
6730
|
-
*/
|
|
6731
|
-
}, {
|
|
6732
|
-
key: "maintainPlaybackPosition",
|
|
6733
|
-
value: function maintainPlaybackPosition(timingObject, player, options) {
|
|
6734
|
-
var _this3 = this;
|
|
6735
|
-
var allowedDrift = options.allowedDrift, maxAllowedDrift = options.maxAllowedDrift, minCheckInterval = options.minCheckInterval, maxRateAdjustment = options.maxRateAdjustment, maxTimeToCatchUp = options.maxTimeToCatchUp;
|
|
6736
|
-
var syncInterval = Math.min(maxTimeToCatchUp, Math.max(minCheckInterval, maxAllowedDrift)) * 1e3;
|
|
6737
|
-
var check = /* @__PURE__ */ function() {
|
|
6738
|
-
var _ref3 = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee6() {
|
|
6739
|
-
var diff, diffAbs, min, max, adjustment;
|
|
6740
|
-
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
6741
|
-
while (1)
|
|
6742
|
-
switch (_context6.prev = _context6.next) {
|
|
6743
|
-
case 0:
|
|
6744
|
-
_context6.t0 = timingObject.query().velocity === 0;
|
|
6745
|
-
if (_context6.t0) {
|
|
6746
|
-
_context6.next = 6;
|
|
6747
|
-
break;
|
|
6748
|
-
}
|
|
6749
|
-
_context6.next = 4;
|
|
6750
|
-
return player.getPaused();
|
|
6751
|
-
case 4:
|
|
6752
|
-
_context6.t1 = _context6.sent;
|
|
6753
|
-
_context6.t0 = _context6.t1 === true;
|
|
6754
|
-
case 6:
|
|
6755
|
-
if (!_context6.t0) {
|
|
6756
|
-
_context6.next = 8;
|
|
6757
|
-
break;
|
|
6758
|
-
}
|
|
6759
|
-
return _context6.abrupt("return");
|
|
6760
|
-
case 8:
|
|
6761
|
-
_context6.t2 = timingObject.query().position;
|
|
6762
|
-
_context6.next = 11;
|
|
6763
|
-
return player.getCurrentTime();
|
|
6764
|
-
case 11:
|
|
6765
|
-
_context6.t3 = _context6.sent;
|
|
6766
|
-
diff = _context6.t2 - _context6.t3;
|
|
6767
|
-
diffAbs = Math.abs(diff);
|
|
6768
|
-
_this3.log("Drift: ".concat(diff));
|
|
6769
|
-
if (!(diffAbs > maxAllowedDrift)) {
|
|
6770
|
-
_context6.next = 22;
|
|
6771
|
-
break;
|
|
6772
|
-
}
|
|
6773
|
-
_context6.next = 18;
|
|
6774
|
-
return _this3.adjustSpeed(player, 0);
|
|
6775
|
-
case 18:
|
|
6776
|
-
player.setCurrentTime(timingObject.query().position);
|
|
6777
|
-
_this3.log("Resync by currentTime");
|
|
6778
|
-
_context6.next = 29;
|
|
6779
|
-
break;
|
|
6780
|
-
case 22:
|
|
6781
|
-
if (!(diffAbs > allowedDrift)) {
|
|
6782
|
-
_context6.next = 29;
|
|
6783
|
-
break;
|
|
6784
|
-
}
|
|
6785
|
-
min = diffAbs / maxTimeToCatchUp;
|
|
6786
|
-
max = maxRateAdjustment;
|
|
6787
|
-
adjustment = min < max ? (max - min) / 2 : max;
|
|
6788
|
-
_context6.next = 28;
|
|
6789
|
-
return _this3.adjustSpeed(player, adjustment * Math.sign(diff));
|
|
6790
|
-
case 28:
|
|
6791
|
-
_this3.log("Resync by playbackRate");
|
|
6792
|
-
case 29:
|
|
6793
|
-
case "end":
|
|
6794
|
-
return _context6.stop();
|
|
6795
|
-
}
|
|
6796
|
-
}, _callee6);
|
|
6797
|
-
}));
|
|
6798
|
-
return function check2() {
|
|
6799
|
-
return _ref3.apply(this, arguments);
|
|
6800
|
-
};
|
|
6801
|
-
}();
|
|
6802
|
-
var interval = setInterval(function() {
|
|
6803
|
-
return check();
|
|
6804
|
-
}, syncInterval);
|
|
6805
|
-
return {
|
|
6806
|
-
cancel: function cancel() {
|
|
6807
|
-
return clearInterval(interval);
|
|
6808
|
-
}
|
|
6809
|
-
};
|
|
6810
|
-
}
|
|
6811
|
-
/**
|
|
6812
|
-
* @param {string} msg
|
|
6813
|
-
*/
|
|
6814
|
-
}, {
|
|
6815
|
-
key: "log",
|
|
6816
|
-
value: function log(msg) {
|
|
6817
|
-
var _this$logger;
|
|
6818
|
-
(_this$logger = this.logger) === null || _this$logger === void 0 ? void 0 : _this$logger.call(this, "TimingSrcConnector: ".concat(msg));
|
|
6819
|
-
}
|
|
6820
|
-
}, {
|
|
6821
|
-
key: "waitForTOReadyState",
|
|
6822
|
-
value: (
|
|
6823
|
-
/**
|
|
6824
|
-
* @param {TimingObject} timingObject
|
|
6825
|
-
* @param {TConnectionState} state
|
|
6826
|
-
* @return {Promise<void>}
|
|
6827
|
-
*/
|
|
6828
|
-
function waitForTOReadyState(timingObject, state) {
|
|
6829
|
-
return new Promise(function(resolve) {
|
|
6830
|
-
var check = function check2() {
|
|
6831
|
-
if (timingObject.readyState === state) {
|
|
6832
|
-
resolve();
|
|
6833
|
-
} else {
|
|
6834
|
-
timingObject.addEventListener("readystatechange", check2, {
|
|
6835
|
-
once: true
|
|
6836
|
-
});
|
|
6837
|
-
}
|
|
6838
|
-
};
|
|
6839
|
-
check();
|
|
6840
|
-
});
|
|
6841
|
-
}
|
|
6842
|
-
)
|
|
6843
|
-
}]);
|
|
6844
|
-
return TimingSrcConnector2;
|
|
6845
|
-
}(/* @__PURE__ */ _wrapNativeSuper(EventTarget));
|
|
6846
5319
|
var playerMap = /* @__PURE__ */ new WeakMap();
|
|
6847
5320
|
var readyMap = /* @__PURE__ */ new WeakMap();
|
|
6848
5321
|
var screenfull = {};
|
|
@@ -7050,7 +5523,7 @@
|
|
|
7050
5523
|
}
|
|
7051
5524
|
var lastCallback = removeCallback(this, "event:".concat(eventName), callback);
|
|
7052
5525
|
if (lastCallback) {
|
|
7053
|
-
this.callMethod("removeEventListener", eventName).catch(function(
|
|
5526
|
+
this.callMethod("removeEventListener", eventName).catch(function(e8) {
|
|
7054
5527
|
});
|
|
7055
5528
|
}
|
|
7056
5529
|
}
|
|
@@ -7297,23 +5770,6 @@
|
|
|
7297
5770
|
value: function getPictureInPicture() {
|
|
7298
5771
|
return this.get("pictureInPicture");
|
|
7299
5772
|
}
|
|
7300
|
-
/**
|
|
7301
|
-
* A promise to prompt the viewer to initiate remote playback.
|
|
7302
|
-
*
|
|
7303
|
-
* @promise RemotePlaybackPromptPromise
|
|
7304
|
-
* @fulfill {void}
|
|
7305
|
-
* @reject {NotFoundError} No remote playback device is available.
|
|
7306
|
-
*/
|
|
7307
|
-
/**
|
|
7308
|
-
* Request to prompt the user to initiate remote playback.
|
|
7309
|
-
*
|
|
7310
|
-
* @return {RemotePlaybackPromptPromise}
|
|
7311
|
-
*/
|
|
7312
|
-
}, {
|
|
7313
|
-
key: "remotePlaybackPrompt",
|
|
7314
|
-
value: function remotePlaybackPrompt() {
|
|
7315
|
-
return this.callMethod("remotePlaybackPrompt");
|
|
7316
|
-
}
|
|
7317
5773
|
/**
|
|
7318
5774
|
* A promise to unload the video.
|
|
7319
5775
|
*
|
|
@@ -7514,13 +5970,13 @@
|
|
|
7514
5970
|
return this.get("currentChapter");
|
|
7515
5971
|
}
|
|
7516
5972
|
/**
|
|
7517
|
-
* A promise to get the
|
|
5973
|
+
* A promise to get the color of the player.
|
|
7518
5974
|
*
|
|
7519
5975
|
* @promise GetColorPromise
|
|
7520
5976
|
* @fulfill {string} The hex color of the player.
|
|
7521
5977
|
*/
|
|
7522
5978
|
/**
|
|
7523
|
-
* Get the
|
|
5979
|
+
* Get the color for this player.
|
|
7524
5980
|
*
|
|
7525
5981
|
* @return {GetColorPromise}
|
|
7526
5982
|
*/
|
|
@@ -7530,23 +5986,7 @@
|
|
|
7530
5986
|
return this.get("color");
|
|
7531
5987
|
}
|
|
7532
5988
|
/**
|
|
7533
|
-
* A promise to
|
|
7534
|
-
*
|
|
7535
|
-
* @promise GetColorsPromise
|
|
7536
|
-
* @fulfill {string[]} The hex colors of the player.
|
|
7537
|
-
*/
|
|
7538
|
-
/**
|
|
7539
|
-
* Get all the colors for this player in an array: [colorOne, colorTwo, colorThree, colorFour]
|
|
7540
|
-
*
|
|
7541
|
-
* @return {GetColorPromise}
|
|
7542
|
-
*/
|
|
7543
|
-
}, {
|
|
7544
|
-
key: "getColors",
|
|
7545
|
-
value: function getColors() {
|
|
7546
|
-
return npo_src.all([this.get("colorOne"), this.get("colorTwo"), this.get("colorThree"), this.get("colorFour")]);
|
|
7547
|
-
}
|
|
7548
|
-
/**
|
|
7549
|
-
* A promise to set the accent color of the player.
|
|
5989
|
+
* A promise to set the color of the player.
|
|
7550
5990
|
*
|
|
7551
5991
|
* @promise SetColorPromise
|
|
7552
5992
|
* @fulfill {string} The color was successfully set.
|
|
@@ -7557,10 +5997,9 @@
|
|
|
7557
5997
|
* use a specific color.
|
|
7558
5998
|
*/
|
|
7559
5999
|
/**
|
|
7560
|
-
* Set the
|
|
6000
|
+
* Set the color of this player to a hex or rgb string. Setting the
|
|
7561
6001
|
* color may fail if the owner of the video has set their embed
|
|
7562
6002
|
* preferences to force a specific color.
|
|
7563
|
-
* Note this is deprecated in place of `setColorTwo`.
|
|
7564
6003
|
*
|
|
7565
6004
|
* @param {string} color The hex or rgb color string to set.
|
|
7566
6005
|
* @return {SetColorPromise}
|
|
@@ -7570,41 +6009,6 @@
|
|
|
7570
6009
|
value: function setColor(color) {
|
|
7571
6010
|
return this.set("color", color);
|
|
7572
6011
|
}
|
|
7573
|
-
/**
|
|
7574
|
-
* A promise to set all colors for the player.
|
|
7575
|
-
*
|
|
7576
|
-
* @promise SetColorsPromise
|
|
7577
|
-
* @fulfill {string[]} The colors were successfully set.
|
|
7578
|
-
* @reject {TypeError} The string was not a valid hex or rgb color.
|
|
7579
|
-
* @reject {ContrastError} The color was set, but the contrast is
|
|
7580
|
-
* outside of the acceptable range.
|
|
7581
|
-
* @reject {EmbedSettingsError} The owner of the player has chosen to
|
|
7582
|
-
* use a specific color.
|
|
7583
|
-
*/
|
|
7584
|
-
/**
|
|
7585
|
-
* Set the colors of this player to a hex or rgb string. Setting the
|
|
7586
|
-
* color may fail if the owner of the video has set their embed
|
|
7587
|
-
* preferences to force a specific color.
|
|
7588
|
-
* The colors should be passed in as an array: [colorOne, colorTwo, colorThree, colorFour].
|
|
7589
|
-
* If a color should not be set, the index in the array can be left as null.
|
|
7590
|
-
*
|
|
7591
|
-
* @param {string[]} colors Array of the hex or rgb color strings to set.
|
|
7592
|
-
* @return {SetColorsPromise}
|
|
7593
|
-
*/
|
|
7594
|
-
}, {
|
|
7595
|
-
key: "setColors",
|
|
7596
|
-
value: function setColors(colors) {
|
|
7597
|
-
if (!Array.isArray(colors)) {
|
|
7598
|
-
return new npo_src(function(resolve, reject) {
|
|
7599
|
-
return reject(new TypeError("Argument must be an array."));
|
|
7600
|
-
});
|
|
7601
|
-
}
|
|
7602
|
-
var nullPromise = new npo_src(function(resolve) {
|
|
7603
|
-
return resolve(null);
|
|
7604
|
-
});
|
|
7605
|
-
var colorPromises = [colors[0] ? this.set("colorOne", colors[0]) : nullPromise, colors[1] ? this.set("colorTwo", colors[1]) : nullPromise, colors[2] ? this.set("colorThree", colors[2]) : nullPromise, colors[3] ? this.set("colorFour", colors[3]) : nullPromise];
|
|
7606
|
-
return npo_src.all(colorPromises);
|
|
7607
|
-
}
|
|
7608
6012
|
/**
|
|
7609
6013
|
* A representation of a cue point.
|
|
7610
6014
|
*
|
|
@@ -7795,10 +6199,10 @@
|
|
|
7795
6199
|
* A promise to get the playback rate of the player.
|
|
7796
6200
|
*
|
|
7797
6201
|
* @promise GetPlaybackRatePromise
|
|
7798
|
-
* @fulfill {number} The playback rate of the player on a scale from 0 to 2.
|
|
6202
|
+
* @fulfill {number} The playback rate of the player on a scale from 0.5 to 2.
|
|
7799
6203
|
*/
|
|
7800
6204
|
/**
|
|
7801
|
-
* Get the playback rate of the player on a scale from `0` to `2`.
|
|
6205
|
+
* Get the playback rate of the player on a scale from `0.5` to `2`.
|
|
7802
6206
|
*
|
|
7803
6207
|
* @return {GetPlaybackRatePromise}
|
|
7804
6208
|
*/
|
|
@@ -7812,10 +6216,10 @@
|
|
|
7812
6216
|
*
|
|
7813
6217
|
* @promise SetPlaybackRatePromise
|
|
7814
6218
|
* @fulfill {number} The playback rate was set.
|
|
7815
|
-
* @reject {RangeError} The playback rate was less than 0 or greater than 2.
|
|
6219
|
+
* @reject {RangeError} The playback rate was less than 0.5 or greater than 2.
|
|
7816
6220
|
*/
|
|
7817
6221
|
/**
|
|
7818
|
-
* Set the playback rate of the player on a scale from `0` to `2`. When set
|
|
6222
|
+
* Set the playback rate of the player on a scale from `0.5` to `2`. When set
|
|
7819
6223
|
* via the API, the playback rate will not be synchronized to other
|
|
7820
6224
|
* players or stored as the viewer's preference.
|
|
7821
6225
|
*
|
|
@@ -7893,38 +6297,6 @@
|
|
|
7893
6297
|
value: function setQuality(quality) {
|
|
7894
6298
|
return this.set("quality", quality);
|
|
7895
6299
|
}
|
|
7896
|
-
/**
|
|
7897
|
-
* A promise to get the remote playback availability.
|
|
7898
|
-
*
|
|
7899
|
-
* @promise RemotePlaybackAvailabilityPromise
|
|
7900
|
-
* @fulfill {boolean} Whether remote playback is available.
|
|
7901
|
-
*/
|
|
7902
|
-
/**
|
|
7903
|
-
* Get the availability of remote playback.
|
|
7904
|
-
*
|
|
7905
|
-
* @return {RemotePlaybackAvailabilityPromise}
|
|
7906
|
-
*/
|
|
7907
|
-
}, {
|
|
7908
|
-
key: "getRemotePlaybackAvailability",
|
|
7909
|
-
value: function getRemotePlaybackAvailability() {
|
|
7910
|
-
return this.get("remotePlaybackAvailability");
|
|
7911
|
-
}
|
|
7912
|
-
/**
|
|
7913
|
-
* A promise to get the current remote playback state.
|
|
7914
|
-
*
|
|
7915
|
-
* @promise RemotePlaybackStatePromise
|
|
7916
|
-
* @fulfill {string} The state of the remote playback: connecting, connected, or disconnected.
|
|
7917
|
-
*/
|
|
7918
|
-
/**
|
|
7919
|
-
* Get the current remote playback state.
|
|
7920
|
-
*
|
|
7921
|
-
* @return {RemotePlaybackStatePromise}
|
|
7922
|
-
*/
|
|
7923
|
-
}, {
|
|
7924
|
-
key: "getRemotePlaybackState",
|
|
7925
|
-
value: function getRemotePlaybackState() {
|
|
7926
|
-
return this.get("remotePlaybackState");
|
|
7927
|
-
}
|
|
7928
6300
|
/**
|
|
7929
6301
|
* A promise to get the seekable property of the video.
|
|
7930
6302
|
*
|
|
@@ -8114,53 +6486,6 @@
|
|
|
8114
6486
|
value: function setVolume(volume) {
|
|
8115
6487
|
return this.set("volume", volume);
|
|
8116
6488
|
}
|
|
8117
|
-
/** @typedef {import('./lib/timing-object.types').TimingObject} TimingObject */
|
|
8118
|
-
/** @typedef {import('./lib/timing-src-connector.types').TimingSrcConnectorOptions} TimingSrcConnectorOptions */
|
|
8119
|
-
/** @typedef {import('./lib/timing-src-connector').TimingSrcConnector} TimingSrcConnector */
|
|
8120
|
-
/**
|
|
8121
|
-
* Connects a TimingObject to the video player (https://webtiming.github.io/timingobject/)
|
|
8122
|
-
*
|
|
8123
|
-
* @param {TimingObject} timingObject
|
|
8124
|
-
* @param {TimingSrcConnectorOptions} options
|
|
8125
|
-
*
|
|
8126
|
-
* @return {Promise<TimingSrcConnector>}
|
|
8127
|
-
*/
|
|
8128
|
-
}, {
|
|
8129
|
-
key: "setTimingSrc",
|
|
8130
|
-
value: function() {
|
|
8131
|
-
var _setTimingSrc = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee(timingObject, options) {
|
|
8132
|
-
var _this6 = this;
|
|
8133
|
-
var connector;
|
|
8134
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
8135
|
-
while (1)
|
|
8136
|
-
switch (_context.prev = _context.next) {
|
|
8137
|
-
case 0:
|
|
8138
|
-
if (timingObject) {
|
|
8139
|
-
_context.next = 2;
|
|
8140
|
-
break;
|
|
8141
|
-
}
|
|
8142
|
-
throw new TypeError("A Timing Object must be provided.");
|
|
8143
|
-
case 2:
|
|
8144
|
-
_context.next = 4;
|
|
8145
|
-
return this.ready();
|
|
8146
|
-
case 4:
|
|
8147
|
-
connector = new TimingSrcConnector(this, timingObject, options);
|
|
8148
|
-
postMessage(this, "notifyTimingObjectConnect");
|
|
8149
|
-
connector.addEventListener("disconnect", function() {
|
|
8150
|
-
return postMessage(_this6, "notifyTimingObjectDisconnect");
|
|
8151
|
-
});
|
|
8152
|
-
return _context.abrupt("return", connector);
|
|
8153
|
-
case 8:
|
|
8154
|
-
case "end":
|
|
8155
|
-
return _context.stop();
|
|
8156
|
-
}
|
|
8157
|
-
}, _callee, this);
|
|
8158
|
-
}));
|
|
8159
|
-
function setTimingSrc(_x, _x2) {
|
|
8160
|
-
return _setTimingSrc.apply(this, arguments);
|
|
8161
|
-
}
|
|
8162
|
-
return setTimingSrc;
|
|
8163
|
-
}()
|
|
8164
6489
|
}]);
|
|
8165
6490
|
return Player2;
|
|
8166
6491
|
}();
|
|
@@ -8173,78 +6498,39 @@
|
|
|
8173
6498
|
}
|
|
8174
6499
|
var player_es_default = Player;
|
|
8175
6500
|
|
|
8176
|
-
// node_modules/vimeo-video-element/
|
|
6501
|
+
// node_modules/vimeo-video-element/vimeo-video-element.js
|
|
8177
6502
|
var EMBED_BASE = "https://player.vimeo.com/video";
|
|
8178
|
-
var MATCH_SRC = /vimeo\.com\/(?:video\/)?(\d+)
|
|
8179
|
-
|
|
8180
|
-
|
|
8181
|
-
|
|
8182
|
-
|
|
8183
|
-
|
|
8184
|
-
|
|
8185
|
-
|
|
8186
|
-
|
|
8187
|
-
|
|
8188
|
-
|
|
8189
|
-
}
|
|
8190
|
-
|
|
8191
|
-
|
|
8192
|
-
|
|
8193
|
-
|
|
8194
|
-
|
|
8195
|
-
|
|
8196
|
-
|
|
8197
|
-
|
|
8198
|
-
|
|
8199
|
-
|
|
8200
|
-
iframe {
|
|
8201
|
-
position: absolute;
|
|
8202
|
-
top: 0;
|
|
8203
|
-
left: 0;
|
|
8204
|
-
}
|
|
8205
|
-
:host(:not([controls])) {
|
|
8206
|
-
pointer-events: none;
|
|
8207
|
-
}
|
|
8208
|
-
</style>
|
|
8209
|
-
<iframe${serializeAttributes(iframeAttrs)}></iframe>
|
|
8210
|
-
`
|
|
8211
|
-
);
|
|
8212
|
-
}
|
|
8213
|
-
function serializeIframeUrl(attrs, props) {
|
|
8214
|
-
if (!attrs.src)
|
|
8215
|
-
return;
|
|
8216
|
-
const matches = attrs.src.match(MATCH_SRC);
|
|
8217
|
-
const srcId = matches && matches[1];
|
|
8218
|
-
const hParam = matches && matches[2];
|
|
8219
|
-
const params = {
|
|
8220
|
-
// ?controls=true is enabled by default in the iframe
|
|
8221
|
-
controls: attrs.controls === "" ? null : 0,
|
|
8222
|
-
autoplay: attrs.autoplay,
|
|
8223
|
-
loop: attrs.loop,
|
|
8224
|
-
muted: attrs.muted,
|
|
8225
|
-
playsinline: attrs.playsinline,
|
|
8226
|
-
preload: attrs.preload ?? "metadata",
|
|
8227
|
-
transparent: false,
|
|
8228
|
-
autopause: attrs.autopause,
|
|
8229
|
-
h: hParam,
|
|
8230
|
-
// This param is required when the video is Unlisted.
|
|
8231
|
-
...props.config
|
|
8232
|
-
};
|
|
8233
|
-
return `${EMBED_BASE}/${srcId}?${serialize(params)}`;
|
|
6503
|
+
var MATCH_SRC = /vimeo\.com\/(?:video\/)?(\d+)/;
|
|
6504
|
+
var templateShadowDOM = globalThis.document?.createElement("template");
|
|
6505
|
+
if (templateShadowDOM) {
|
|
6506
|
+
templateShadowDOM.innerHTML = /*html*/
|
|
6507
|
+
`
|
|
6508
|
+
<style>
|
|
6509
|
+
:host {
|
|
6510
|
+
display: inline-block;
|
|
6511
|
+
min-width: 300px;
|
|
6512
|
+
min-height: 150px;
|
|
6513
|
+
position: relative;
|
|
6514
|
+
}
|
|
6515
|
+
iframe {
|
|
6516
|
+
position: absolute;
|
|
6517
|
+
top: 0;
|
|
6518
|
+
left: 0;
|
|
6519
|
+
}
|
|
6520
|
+
:host(:not([controls])) {
|
|
6521
|
+
pointer-events: none;
|
|
6522
|
+
}
|
|
6523
|
+
</style>
|
|
6524
|
+
`;
|
|
8234
6525
|
}
|
|
8235
|
-
var
|
|
6526
|
+
var _hasLoaded, _noInit, _options, _currentTime, _duration, _muted, _paused, _playbackRate, _progress, _readyState, _seeking, _volume, _videoWidth, _videoHeight;
|
|
8236
6527
|
var VimeoVideoElement = class extends (globalThis.HTMLElement ?? class {
|
|
8237
6528
|
}) {
|
|
8238
6529
|
constructor() {
|
|
8239
6530
|
super();
|
|
8240
|
-
// This is a pattern to update property values that are set before
|
|
8241
|
-
// the custom element is upgraded.
|
|
8242
|
-
// https://web.dev/custom-elements-best-practices/#make-properties-lazy
|
|
8243
|
-
__privateAdd(this, _upgradeProperty);
|
|
8244
|
-
__publicField(this, "loadComplete", new PublicPromise());
|
|
8245
|
-
__privateAdd(this, _loadRequested, void 0);
|
|
8246
6531
|
__privateAdd(this, _hasLoaded, void 0);
|
|
8247
|
-
__privateAdd(this,
|
|
6532
|
+
__privateAdd(this, _noInit, void 0);
|
|
6533
|
+
__privateAdd(this, _options, void 0);
|
|
8248
6534
|
__privateAdd(this, _currentTime, 0);
|
|
8249
6535
|
__privateAdd(this, _duration, NaN);
|
|
8250
6536
|
__privateAdd(this, _muted, false);
|
|
@@ -8256,25 +6542,16 @@
|
|
|
8256
6542
|
__privateAdd(this, _volume, 1);
|
|
8257
6543
|
__privateAdd(this, _videoWidth, NaN);
|
|
8258
6544
|
__privateAdd(this, _videoHeight, NaN);
|
|
8259
|
-
|
|
8260
|
-
|
|
8261
|
-
|
|
8262
|
-
get config() {
|
|
8263
|
-
return __privateGet(this, _config);
|
|
8264
|
-
}
|
|
8265
|
-
set config(value) {
|
|
8266
|
-
__privateSet(this, _config, value);
|
|
6545
|
+
this.attachShadow({ mode: "open" });
|
|
6546
|
+
this.shadowRoot.append(templateShadowDOM.content.cloneNode(true));
|
|
6547
|
+
this.loadComplete = new PublicPromise();
|
|
8267
6548
|
}
|
|
8268
6549
|
async load() {
|
|
8269
|
-
|
|
8270
|
-
if (__privateGet(this, _loadRequested))
|
|
8271
|
-
return;
|
|
8272
|
-
const isFirstLoad = !__privateGet(this, _hasLoaded);
|
|
8273
|
-
if (__privateGet(this, _hasLoaded))
|
|
6550
|
+
if (__privateGet(this, _hasLoaded)) {
|
|
8274
6551
|
this.loadComplete = new PublicPromise();
|
|
6552
|
+
__privateSet(this, _noInit, true);
|
|
6553
|
+
}
|
|
8275
6554
|
__privateSet(this, _hasLoaded, true);
|
|
8276
|
-
await __privateSet(this, _loadRequested, Promise.resolve());
|
|
8277
|
-
__privateSet(this, _loadRequested, null);
|
|
8278
6555
|
__privateSet(this, _currentTime, 0);
|
|
8279
6556
|
__privateSet(this, _duration, NaN);
|
|
8280
6557
|
__privateSet(this, _muted, false);
|
|
@@ -8290,11 +6567,12 @@
|
|
|
8290
6567
|
this.dispatchEvent(new Event("emptied"));
|
|
8291
6568
|
let oldApi = this.api;
|
|
8292
6569
|
this.api = null;
|
|
6570
|
+
await Promise.resolve();
|
|
8293
6571
|
if (!this.src) {
|
|
8294
6572
|
return;
|
|
8295
6573
|
}
|
|
8296
6574
|
this.dispatchEvent(new Event("loadstart"));
|
|
8297
|
-
|
|
6575
|
+
__privateSet(this, _options, {
|
|
8298
6576
|
autoplay: this.autoplay,
|
|
8299
6577
|
controls: this.controls,
|
|
8300
6578
|
loop: this.loop,
|
|
@@ -8302,9 +6580,8 @@
|
|
|
8302
6580
|
playsinline: this.playsInline,
|
|
8303
6581
|
preload: this.preload ?? "metadata",
|
|
8304
6582
|
transparent: false,
|
|
8305
|
-
autopause: this.hasAttribute("autopause")
|
|
8306
|
-
|
|
8307
|
-
};
|
|
6583
|
+
autopause: this.hasAttribute("autopause")
|
|
6584
|
+
});
|
|
8308
6585
|
const onLoaded = async () => {
|
|
8309
6586
|
__privateSet(this, _readyState, 1);
|
|
8310
6587
|
this.dispatchEvent(new Event("loadedmetadata"));
|
|
@@ -8318,25 +6595,25 @@
|
|
|
8318
6595
|
this.dispatchEvent(new Event("loadcomplete"));
|
|
8319
6596
|
this.loadComplete.resolve();
|
|
8320
6597
|
};
|
|
8321
|
-
if (__privateGet(this,
|
|
6598
|
+
if (__privateGet(this, _noInit)) {
|
|
8322
6599
|
this.api = oldApi;
|
|
8323
6600
|
await this.api.loadVideo({
|
|
8324
|
-
...
|
|
6601
|
+
...__privateGet(this, _options),
|
|
8325
6602
|
url: this.src
|
|
8326
6603
|
});
|
|
8327
6604
|
await onLoaded();
|
|
8328
6605
|
await this.loadComplete;
|
|
8329
6606
|
return;
|
|
8330
6607
|
}
|
|
8331
|
-
|
|
8332
|
-
|
|
8333
|
-
|
|
8334
|
-
|
|
8335
|
-
}
|
|
8336
|
-
|
|
8337
|
-
|
|
8338
|
-
|
|
8339
|
-
|
|
6608
|
+
const matches = this.src.match(MATCH_SRC);
|
|
6609
|
+
const metaId = matches && matches[1];
|
|
6610
|
+
const src = `${EMBED_BASE}/${metaId}?${serialize(
|
|
6611
|
+
boolToBinary(__privateGet(this, _options))
|
|
6612
|
+
)}`;
|
|
6613
|
+
let iframe = this.shadowRoot.querySelector("iframe");
|
|
6614
|
+
if (!iframe) {
|
|
6615
|
+
iframe = createEmbedIframe({ src });
|
|
6616
|
+
this.shadowRoot.append(iframe);
|
|
8340
6617
|
}
|
|
8341
6618
|
this.api = new player_es_default(iframe);
|
|
8342
6619
|
const onceLoaded = () => {
|
|
@@ -8409,18 +6686,23 @@
|
|
|
8409
6686
|
await this.loadComplete;
|
|
8410
6687
|
}
|
|
8411
6688
|
async attributeChangedCallback(attrName, oldValue, newValue) {
|
|
8412
|
-
if (oldValue === newValue)
|
|
8413
|
-
return;
|
|
8414
6689
|
switch (attrName) {
|
|
8415
|
-
case "autoplay":
|
|
8416
|
-
case "controls":
|
|
8417
6690
|
case "src": {
|
|
8418
|
-
|
|
6691
|
+
if (oldValue !== newValue) {
|
|
6692
|
+
this.load();
|
|
6693
|
+
}
|
|
8419
6694
|
return;
|
|
8420
6695
|
}
|
|
8421
6696
|
}
|
|
8422
6697
|
await this.loadComplete;
|
|
8423
6698
|
switch (attrName) {
|
|
6699
|
+
case "autoplay":
|
|
6700
|
+
case "controls": {
|
|
6701
|
+
if (__privateGet(this, _options)[attrName] !== this.hasAttribute(attrName)) {
|
|
6702
|
+
this.load();
|
|
6703
|
+
}
|
|
6704
|
+
break;
|
|
6705
|
+
}
|
|
8424
6706
|
case "loop": {
|
|
8425
6707
|
this.api.setLoop(this.loop);
|
|
8426
6708
|
break;
|
|
@@ -8428,12 +6710,11 @@
|
|
|
8428
6710
|
}
|
|
8429
6711
|
}
|
|
8430
6712
|
async play() {
|
|
8431
|
-
var _a;
|
|
8432
6713
|
__privateSet(this, _paused, false);
|
|
8433
6714
|
this.dispatchEvent(new Event("play"));
|
|
8434
6715
|
await this.loadComplete;
|
|
8435
6716
|
try {
|
|
8436
|
-
await
|
|
6717
|
+
await this.api?.play();
|
|
8437
6718
|
} catch (error) {
|
|
8438
6719
|
__privateSet(this, _paused, true);
|
|
8439
6720
|
this.dispatchEvent(new Event("pause"));
|
|
@@ -8441,9 +6722,8 @@
|
|
|
8441
6722
|
}
|
|
8442
6723
|
}
|
|
8443
6724
|
async pause() {
|
|
8444
|
-
var _a;
|
|
8445
6725
|
await this.loadComplete;
|
|
8446
|
-
return
|
|
6726
|
+
return this.api?.pause();
|
|
8447
6727
|
}
|
|
8448
6728
|
get ended() {
|
|
8449
6729
|
return __privateGet(this, _currentTime) >= __privateGet(this, _duration);
|
|
@@ -8460,6 +6740,8 @@
|
|
|
8460
6740
|
get videoHeight() {
|
|
8461
6741
|
return __privateGet(this, _videoHeight);
|
|
8462
6742
|
}
|
|
6743
|
+
// If the getter from SuperVideoElement is overridden, it's required to define
|
|
6744
|
+
// the setter again too unless it's a read only property! It's a JS thing.
|
|
8463
6745
|
get src() {
|
|
8464
6746
|
return this.getAttribute("src");
|
|
8465
6747
|
}
|
|
@@ -8504,8 +6786,7 @@
|
|
|
8504
6786
|
return;
|
|
8505
6787
|
__privateSet(this, _currentTime, val);
|
|
8506
6788
|
this.loadComplete.then(() => {
|
|
8507
|
-
|
|
8508
|
-
(_a = this.api) == null ? void 0 : _a.setCurrentTime(val);
|
|
6789
|
+
this.api?.setCurrentTime(val);
|
|
8509
6790
|
});
|
|
8510
6791
|
}
|
|
8511
6792
|
get defaultMuted() {
|
|
@@ -8532,8 +6813,7 @@
|
|
|
8532
6813
|
return;
|
|
8533
6814
|
__privateSet(this, _muted, val);
|
|
8534
6815
|
this.loadComplete.then(() => {
|
|
8535
|
-
|
|
8536
|
-
(_a = this.api) == null ? void 0 : _a.setMuted(val);
|
|
6816
|
+
this.api?.setMuted(val);
|
|
8537
6817
|
});
|
|
8538
6818
|
}
|
|
8539
6819
|
get playbackRate() {
|
|
@@ -8544,8 +6824,7 @@
|
|
|
8544
6824
|
return;
|
|
8545
6825
|
__privateSet(this, _playbackRate, val);
|
|
8546
6826
|
this.loadComplete.then(() => {
|
|
8547
|
-
|
|
8548
|
-
(_a = this.api) == null ? void 0 : _a.setPlaybackRate(val);
|
|
6827
|
+
this.api?.setPlaybackRate(val);
|
|
8549
6828
|
});
|
|
8550
6829
|
}
|
|
8551
6830
|
get playsInline() {
|
|
@@ -8572,14 +6851,13 @@
|
|
|
8572
6851
|
return;
|
|
8573
6852
|
__privateSet(this, _volume, val);
|
|
8574
6853
|
this.loadComplete.then(() => {
|
|
8575
|
-
|
|
8576
|
-
(_a = this.api) == null ? void 0 : _a.setVolume(val);
|
|
6854
|
+
this.api?.setVolume(val);
|
|
8577
6855
|
});
|
|
8578
6856
|
}
|
|
8579
6857
|
};
|
|
8580
|
-
_loadRequested = new WeakMap();
|
|
8581
6858
|
_hasLoaded = new WeakMap();
|
|
8582
|
-
|
|
6859
|
+
_noInit = new WeakMap();
|
|
6860
|
+
_options = new WeakMap();
|
|
8583
6861
|
_currentTime = new WeakMap();
|
|
8584
6862
|
_duration = new WeakMap();
|
|
8585
6863
|
_muted = new WeakMap();
|
|
@@ -8591,17 +6869,6 @@
|
|
|
8591
6869
|
_volume = new WeakMap();
|
|
8592
6870
|
_videoWidth = new WeakMap();
|
|
8593
6871
|
_videoHeight = new WeakMap();
|
|
8594
|
-
_config = new WeakMap();
|
|
8595
|
-
_upgradeProperty = new WeakSet();
|
|
8596
|
-
upgradeProperty_fn = function(prop) {
|
|
8597
|
-
if (Object.prototype.hasOwnProperty.call(this, prop)) {
|
|
8598
|
-
const value = this[prop];
|
|
8599
|
-
delete this[prop];
|
|
8600
|
-
this[prop] = value;
|
|
8601
|
-
}
|
|
8602
|
-
};
|
|
8603
|
-
__publicField(VimeoVideoElement, "getTemplateHTML", getTemplateHTML);
|
|
8604
|
-
__publicField(VimeoVideoElement, "shadowRootOptions", { mode: "open" });
|
|
8605
6872
|
__publicField(VimeoVideoElement, "observedAttributes", [
|
|
8606
6873
|
"autoplay",
|
|
8607
6874
|
"controls",
|
|
@@ -8613,43 +6880,6 @@
|
|
|
8613
6880
|
"preload",
|
|
8614
6881
|
"src"
|
|
8615
6882
|
]);
|
|
8616
|
-
function serializeAttributes(attrs) {
|
|
8617
|
-
let html = "";
|
|
8618
|
-
for (const key in attrs) {
|
|
8619
|
-
const value = attrs[key];
|
|
8620
|
-
if (value === "")
|
|
8621
|
-
html += ` ${escapeHtml(key)}`;
|
|
8622
|
-
else
|
|
8623
|
-
html += ` ${escapeHtml(key)}="${escapeHtml(`${value}`)}"`;
|
|
8624
|
-
}
|
|
8625
|
-
return html;
|
|
8626
|
-
}
|
|
8627
|
-
function escapeHtml(str) {
|
|
8628
|
-
return str.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/`/g, "`");
|
|
8629
|
-
}
|
|
8630
|
-
function serialize(props) {
|
|
8631
|
-
return String(new URLSearchParams(boolToBinary(props)));
|
|
8632
|
-
}
|
|
8633
|
-
function boolToBinary(props) {
|
|
8634
|
-
let p4 = {};
|
|
8635
|
-
for (let key in props) {
|
|
8636
|
-
let val = props[key];
|
|
8637
|
-
if (val === true || val === "")
|
|
8638
|
-
p4[key] = 1;
|
|
8639
|
-
else if (val === false)
|
|
8640
|
-
p4[key] = 0;
|
|
8641
|
-
else if (val != null)
|
|
8642
|
-
p4[key] = val;
|
|
8643
|
-
}
|
|
8644
|
-
return p4;
|
|
8645
|
-
}
|
|
8646
|
-
function namedNodeMapToObject(namedNodeMap) {
|
|
8647
|
-
let obj = {};
|
|
8648
|
-
for (let attr of namedNodeMap) {
|
|
8649
|
-
obj[attr.name] = attr.value;
|
|
8650
|
-
}
|
|
8651
|
-
return obj;
|
|
8652
|
-
}
|
|
8653
6883
|
var PublicPromise = class extends Promise {
|
|
8654
6884
|
constructor(executor = () => {
|
|
8655
6885
|
}) {
|
|
@@ -8663,6 +6893,43 @@
|
|
|
8663
6893
|
this.reject = rej;
|
|
8664
6894
|
}
|
|
8665
6895
|
};
|
|
6896
|
+
function createElement(tag, attrs = {}, ...children) {
|
|
6897
|
+
const el = document.createElement(tag);
|
|
6898
|
+
Object.keys(attrs).forEach(
|
|
6899
|
+
(name) => attrs[name] != null && el.setAttribute(name, attrs[name])
|
|
6900
|
+
);
|
|
6901
|
+
el.append(...children);
|
|
6902
|
+
return el;
|
|
6903
|
+
}
|
|
6904
|
+
var allow = "accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture";
|
|
6905
|
+
function createEmbedIframe({ src, ...props }) {
|
|
6906
|
+
return createElement("iframe", {
|
|
6907
|
+
src,
|
|
6908
|
+
width: "100%",
|
|
6909
|
+
height: "100%",
|
|
6910
|
+
allow,
|
|
6911
|
+
allowfullscreen: "",
|
|
6912
|
+
frameborder: 0,
|
|
6913
|
+
...props
|
|
6914
|
+
});
|
|
6915
|
+
}
|
|
6916
|
+
function serialize(props) {
|
|
6917
|
+
return Object.keys(props).map((key) => {
|
|
6918
|
+
if (props[key] == null)
|
|
6919
|
+
return "";
|
|
6920
|
+
return `${key}=${encodeURIComponent(props[key])}`;
|
|
6921
|
+
}).join("&");
|
|
6922
|
+
}
|
|
6923
|
+
function boolToBinary(props) {
|
|
6924
|
+
let p3 = { ...props };
|
|
6925
|
+
for (let key in p3) {
|
|
6926
|
+
if (p3[key] === false)
|
|
6927
|
+
p3[key] = 0;
|
|
6928
|
+
else if (p3[key] === true)
|
|
6929
|
+
p3[key] = 1;
|
|
6930
|
+
}
|
|
6931
|
+
return p3;
|
|
6932
|
+
}
|
|
8666
6933
|
function createTimeRanges(start, end) {
|
|
8667
6934
|
if (Array.isArray(start)) {
|
|
8668
6935
|
return createTimeRangesObj(start);
|
|
@@ -8674,10 +6941,10 @@
|
|
|
8674
6941
|
function createTimeRangesObj(ranges) {
|
|
8675
6942
|
Object.defineProperties(ranges, {
|
|
8676
6943
|
start: {
|
|
8677
|
-
value: (
|
|
6944
|
+
value: (i7) => ranges[i7][0]
|
|
8678
6945
|
},
|
|
8679
6946
|
end: {
|
|
8680
|
-
value: (
|
|
6947
|
+
value: (i7) => ranges[i7][1]
|
|
8681
6948
|
}
|
|
8682
6949
|
});
|
|
8683
6950
|
return ranges;
|
|
@@ -8687,7 +6954,8 @@
|
|
|
8687
6954
|
}
|
|
8688
6955
|
|
|
8689
6956
|
// css/questionnaire.lit.scss
|
|
8690
|
-
var questionnaire_lit_default =
|
|
6957
|
+
var questionnaire_lit_default = i`
|
|
6958
|
+
@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap");
|
|
8691
6959
|
h1 {
|
|
8692
6960
|
font-size: 1.5rem !important;
|
|
8693
6961
|
font-family: "Lato", Helvetica, sans-serif;
|
|
@@ -9050,6 +7318,51 @@ meter::-webkit-meter-optimum-value {
|
|
|
9050
7318
|
width: 80vw;
|
|
9051
7319
|
}
|
|
9052
7320
|
}
|
|
7321
|
+
.verification-phone-number {
|
|
7322
|
+
font-size: 1rem !important;
|
|
7323
|
+
font-weight: 500;
|
|
7324
|
+
color: rgba(24, 24, 24, 0.88);
|
|
7325
|
+
margin-top: 10px;
|
|
7326
|
+
}
|
|
7327
|
+
|
|
7328
|
+
.verification-form {
|
|
7329
|
+
display: flex !important;
|
|
7330
|
+
flex-direction: column;
|
|
7331
|
+
align-items: center;
|
|
7332
|
+
justify-content: center;
|
|
7333
|
+
grid-template-columns: 1fr !important;
|
|
7334
|
+
}
|
|
7335
|
+
|
|
7336
|
+
.verification-input-container {
|
|
7337
|
+
text-align: center;
|
|
7338
|
+
width: 100%;
|
|
7339
|
+
display: flex;
|
|
7340
|
+
flex-direction: column;
|
|
7341
|
+
align-items: center;
|
|
7342
|
+
}
|
|
7343
|
+
.verification-input-container label {
|
|
7344
|
+
text-align: center !important;
|
|
7345
|
+
margin-bottom: 5px;
|
|
7346
|
+
margin-left: auto !important;
|
|
7347
|
+
margin-right: auto !important;
|
|
7348
|
+
display: block;
|
|
7349
|
+
width: auto !important;
|
|
7350
|
+
}
|
|
7351
|
+
.verification-input-container input {
|
|
7352
|
+
text-align: center;
|
|
7353
|
+
width: 300px !important;
|
|
7354
|
+
margin-left: auto !important;
|
|
7355
|
+
margin-right: auto !important;
|
|
7356
|
+
}
|
|
7357
|
+
|
|
7358
|
+
.verification-resend-button {
|
|
7359
|
+
position: static !important;
|
|
7360
|
+
margin-top: 10px !important;
|
|
7361
|
+
display: block;
|
|
7362
|
+
top: auto !important;
|
|
7363
|
+
left: auto !important;
|
|
7364
|
+
}
|
|
7365
|
+
|
|
9053
7366
|
.u-margin-none--bt {
|
|
9054
7367
|
margin-bottom: 0px;
|
|
9055
7368
|
}
|
|
@@ -9082,154 +7395,155 @@ meter::-webkit-meter-optimum-value {
|
|
|
9082
7395
|
justify-content: center;
|
|
9083
7396
|
}`;
|
|
9084
7397
|
|
|
9085
|
-
// node_modules/lit
|
|
9086
|
-
var
|
|
9087
|
-
var
|
|
9088
|
-
var
|
|
9089
|
-
constructor(
|
|
7398
|
+
// node_modules/lit-html/directive.js
|
|
7399
|
+
var t4 = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 };
|
|
7400
|
+
var e7 = (t5) => (...e8) => ({ _$litDirective$: t5, values: e8 });
|
|
7401
|
+
var i5 = class {
|
|
7402
|
+
constructor(t5) {
|
|
9090
7403
|
}
|
|
9091
7404
|
get _$AU() {
|
|
9092
7405
|
return this._$AM._$AU;
|
|
9093
7406
|
}
|
|
9094
|
-
_$AT(
|
|
9095
|
-
this._$Ct =
|
|
7407
|
+
_$AT(t5, e8, i7) {
|
|
7408
|
+
this._$Ct = t5, this._$AM = e8, this._$Ci = i7;
|
|
9096
7409
|
}
|
|
9097
|
-
_$AS(
|
|
9098
|
-
return this.update(
|
|
7410
|
+
_$AS(t5, e8) {
|
|
7411
|
+
return this.update(t5, e8);
|
|
9099
7412
|
}
|
|
9100
|
-
update(
|
|
9101
|
-
return this.render(...
|
|
7413
|
+
update(t5, e8) {
|
|
7414
|
+
return this.render(...e8);
|
|
9102
7415
|
}
|
|
9103
7416
|
};
|
|
9104
7417
|
|
|
9105
|
-
// node_modules/lit
|
|
9106
|
-
var { I:
|
|
9107
|
-
var
|
|
9108
|
-
var
|
|
9109
|
-
var
|
|
9110
|
-
const
|
|
9111
|
-
if (void 0 ===
|
|
9112
|
-
const
|
|
9113
|
-
|
|
7418
|
+
// node_modules/lit-html/directive-helpers.js
|
|
7419
|
+
var { I: l5 } = j;
|
|
7420
|
+
var c3 = () => document.createComment("");
|
|
7421
|
+
var r5 = (o6, t5, i7) => {
|
|
7422
|
+
var n7;
|
|
7423
|
+
const d3 = o6._$AA.parentNode, v2 = void 0 === t5 ? o6._$AB : t5._$AA;
|
|
7424
|
+
if (void 0 === i7) {
|
|
7425
|
+
const t6 = d3.insertBefore(c3(), v2), n8 = d3.insertBefore(c3(), v2);
|
|
7426
|
+
i7 = new l5(t6, n8, o6, o6.options);
|
|
9114
7427
|
} else {
|
|
9115
|
-
const
|
|
9116
|
-
if (
|
|
9117
|
-
let
|
|
9118
|
-
null === (
|
|
9119
|
-
}
|
|
9120
|
-
if (
|
|
9121
|
-
let
|
|
9122
|
-
for (;
|
|
9123
|
-
const
|
|
9124
|
-
|
|
7428
|
+
const l6 = i7._$AB.nextSibling, t6 = i7._$AM, e8 = t6 !== o6;
|
|
7429
|
+
if (e8) {
|
|
7430
|
+
let l7;
|
|
7431
|
+
null === (n7 = i7._$AQ) || void 0 === n7 || n7.call(i7, o6), i7._$AM = o6, void 0 !== i7._$AP && (l7 = o6._$AU) !== t6._$AU && i7._$AP(l7);
|
|
7432
|
+
}
|
|
7433
|
+
if (l6 !== v2 || e8) {
|
|
7434
|
+
let o7 = i7._$AA;
|
|
7435
|
+
for (; o7 !== l6; ) {
|
|
7436
|
+
const l7 = o7.nextSibling;
|
|
7437
|
+
d3.insertBefore(o7, v2), o7 = l7;
|
|
9125
7438
|
}
|
|
9126
7439
|
}
|
|
9127
7440
|
}
|
|
9128
|
-
return
|
|
7441
|
+
return i7;
|
|
9129
7442
|
};
|
|
9130
|
-
var
|
|
9131
|
-
var
|
|
9132
|
-
var
|
|
9133
|
-
var
|
|
9134
|
-
var
|
|
9135
|
-
var
|
|
9136
|
-
null === (
|
|
9137
|
-
let
|
|
9138
|
-
const
|
|
9139
|
-
for (;
|
|
9140
|
-
const
|
|
9141
|
-
|
|
7443
|
+
var u3 = (o6, l6, t5 = o6) => (o6._$AI(l6, t5), o6);
|
|
7444
|
+
var f2 = {};
|
|
7445
|
+
var s5 = (o6, l6 = f2) => o6._$AH = l6;
|
|
7446
|
+
var m2 = (o6) => o6._$AH;
|
|
7447
|
+
var p2 = (o6) => {
|
|
7448
|
+
var l6;
|
|
7449
|
+
null === (l6 = o6._$AP) || void 0 === l6 || l6.call(o6, false, true);
|
|
7450
|
+
let t5 = o6._$AA;
|
|
7451
|
+
const i7 = o6._$AB.nextSibling;
|
|
7452
|
+
for (; t5 !== i7; ) {
|
|
7453
|
+
const o7 = t5.nextSibling;
|
|
7454
|
+
t5.remove(), t5 = o7;
|
|
9142
7455
|
}
|
|
9143
7456
|
};
|
|
9144
7457
|
|
|
9145
|
-
// node_modules/lit
|
|
9146
|
-
var
|
|
9147
|
-
const
|
|
9148
|
-
for (let
|
|
9149
|
-
|
|
9150
|
-
return
|
|
7458
|
+
// node_modules/lit-html/directives/repeat.js
|
|
7459
|
+
var u4 = (e8, s6, t5) => {
|
|
7460
|
+
const r6 = /* @__PURE__ */ new Map();
|
|
7461
|
+
for (let l6 = s6; l6 <= t5; l6++)
|
|
7462
|
+
r6.set(e8[l6], l6);
|
|
7463
|
+
return r6;
|
|
9151
7464
|
};
|
|
9152
|
-
var
|
|
9153
|
-
constructor(
|
|
9154
|
-
if (super(
|
|
7465
|
+
var c4 = e7(class extends i5 {
|
|
7466
|
+
constructor(e8) {
|
|
7467
|
+
if (super(e8), e8.type !== t4.CHILD)
|
|
9155
7468
|
throw Error("repeat() can only be used in text expressions");
|
|
9156
7469
|
}
|
|
9157
|
-
|
|
9158
|
-
let
|
|
9159
|
-
void 0 ===
|
|
9160
|
-
const
|
|
9161
|
-
let
|
|
9162
|
-
for (const
|
|
9163
|
-
|
|
9164
|
-
return { values:
|
|
9165
|
-
}
|
|
9166
|
-
render(
|
|
9167
|
-
return this.
|
|
9168
|
-
}
|
|
9169
|
-
update(
|
|
9170
|
-
var
|
|
9171
|
-
const
|
|
9172
|
-
if (!Array.isArray(
|
|
9173
|
-
return this.
|
|
9174
|
-
const
|
|
9175
|
-
let
|
|
9176
|
-
for (; j2 <=
|
|
9177
|
-
if (null ===
|
|
7470
|
+
dt(e8, s6, t5) {
|
|
7471
|
+
let r6;
|
|
7472
|
+
void 0 === t5 ? t5 = s6 : void 0 !== s6 && (r6 = s6);
|
|
7473
|
+
const l6 = [], o6 = [];
|
|
7474
|
+
let i7 = 0;
|
|
7475
|
+
for (const s7 of e8)
|
|
7476
|
+
l6[i7] = r6 ? r6(s7, i7) : i7, o6[i7] = t5(s7, i7), i7++;
|
|
7477
|
+
return { values: o6, keys: l6 };
|
|
7478
|
+
}
|
|
7479
|
+
render(e8, s6, t5) {
|
|
7480
|
+
return this.dt(e8, s6, t5).values;
|
|
7481
|
+
}
|
|
7482
|
+
update(s6, [t5, r6, c5]) {
|
|
7483
|
+
var d3;
|
|
7484
|
+
const a3 = m2(s6), { values: p3, keys: v2 } = this.dt(t5, r6, c5);
|
|
7485
|
+
if (!Array.isArray(a3))
|
|
7486
|
+
return this.ht = v2, p3;
|
|
7487
|
+
const h3 = null !== (d3 = this.ht) && void 0 !== d3 ? d3 : this.ht = [], m3 = [];
|
|
7488
|
+
let y2, x2, j2 = 0, k2 = a3.length - 1, w2 = 0, A2 = p3.length - 1;
|
|
7489
|
+
for (; j2 <= k2 && w2 <= A2; )
|
|
7490
|
+
if (null === a3[j2])
|
|
9178
7491
|
j2++;
|
|
9179
|
-
else if (null ===
|
|
9180
|
-
|
|
9181
|
-
else if (
|
|
9182
|
-
|
|
9183
|
-
else if (
|
|
9184
|
-
|
|
9185
|
-
else if (
|
|
9186
|
-
|
|
9187
|
-
else if (
|
|
9188
|
-
|
|
9189
|
-
else if (void 0 ===
|
|
9190
|
-
if (
|
|
9191
|
-
const
|
|
9192
|
-
if (null ===
|
|
9193
|
-
const
|
|
9194
|
-
|
|
7492
|
+
else if (null === a3[k2])
|
|
7493
|
+
k2--;
|
|
7494
|
+
else if (h3[j2] === v2[w2])
|
|
7495
|
+
m3[w2] = u3(a3[j2], p3[w2]), j2++, w2++;
|
|
7496
|
+
else if (h3[k2] === v2[A2])
|
|
7497
|
+
m3[A2] = u3(a3[k2], p3[A2]), k2--, A2--;
|
|
7498
|
+
else if (h3[j2] === v2[A2])
|
|
7499
|
+
m3[A2] = u3(a3[j2], p3[A2]), r5(s6, m3[A2 + 1], a3[j2]), j2++, A2--;
|
|
7500
|
+
else if (h3[k2] === v2[w2])
|
|
7501
|
+
m3[w2] = u3(a3[k2], p3[w2]), r5(s6, a3[j2], a3[k2]), k2--, w2++;
|
|
7502
|
+
else if (void 0 === y2 && (y2 = u4(v2, w2, A2), x2 = u4(h3, j2, k2)), y2.has(h3[j2]))
|
|
7503
|
+
if (y2.has(h3[k2])) {
|
|
7504
|
+
const e8 = x2.get(v2[w2]), t6 = void 0 !== e8 ? a3[e8] : null;
|
|
7505
|
+
if (null === t6) {
|
|
7506
|
+
const e9 = r5(s6, a3[j2]);
|
|
7507
|
+
u3(e9, p3[w2]), m3[w2] = e9;
|
|
9195
7508
|
} else
|
|
9196
|
-
|
|
9197
|
-
|
|
7509
|
+
m3[w2] = u3(t6, p3[w2]), r5(s6, a3[j2], t6), a3[e8] = null;
|
|
7510
|
+
w2++;
|
|
9198
7511
|
} else
|
|
9199
|
-
|
|
7512
|
+
p2(a3[k2]), k2--;
|
|
9200
7513
|
else
|
|
9201
|
-
|
|
9202
|
-
for (;
|
|
9203
|
-
const
|
|
9204
|
-
|
|
7514
|
+
p2(a3[j2]), j2++;
|
|
7515
|
+
for (; w2 <= A2; ) {
|
|
7516
|
+
const e8 = r5(s6, m3[A2 + 1]);
|
|
7517
|
+
u3(e8, p3[w2]), m3[w2++] = e8;
|
|
9205
7518
|
}
|
|
9206
|
-
for (; j2 <=
|
|
9207
|
-
const
|
|
9208
|
-
null !==
|
|
7519
|
+
for (; j2 <= k2; ) {
|
|
7520
|
+
const e8 = a3[j2++];
|
|
7521
|
+
null !== e8 && p2(e8);
|
|
9209
7522
|
}
|
|
9210
|
-
return this.
|
|
7523
|
+
return this.ht = v2, s5(s6, m3), T;
|
|
9211
7524
|
}
|
|
9212
7525
|
});
|
|
9213
7526
|
|
|
9214
|
-
// node_modules/lit
|
|
9215
|
-
var
|
|
7527
|
+
// node_modules/lit-html/directives/keyed.js
|
|
7528
|
+
var i6 = e7(class extends i5 {
|
|
9216
7529
|
constructor() {
|
|
9217
7530
|
super(...arguments), this.key = A;
|
|
9218
7531
|
}
|
|
9219
|
-
render(
|
|
9220
|
-
return this.key =
|
|
7532
|
+
render(r6, t5) {
|
|
7533
|
+
return this.key = r6, t5;
|
|
9221
7534
|
}
|
|
9222
|
-
update(
|
|
9223
|
-
return
|
|
7535
|
+
update(r6, [t5, e8]) {
|
|
7536
|
+
return t5 !== this.key && (s5(r6), this.key = t5), e8;
|
|
9224
7537
|
}
|
|
9225
7538
|
});
|
|
9226
7539
|
|
|
9227
7540
|
// js/questionnaire.ts
|
|
9228
|
-
var QuestionnaireElement = class extends
|
|
7541
|
+
var QuestionnaireElement = class extends s4 {
|
|
9229
7542
|
constructor() {
|
|
9230
7543
|
super(...arguments);
|
|
9231
7544
|
this.accountActive = true;
|
|
9232
7545
|
this.visitedNodes = [];
|
|
7546
|
+
this.verificationError = null;
|
|
9233
7547
|
this.hubspotId = "40834387";
|
|
9234
7548
|
}
|
|
9235
7549
|
get topic() {
|
|
@@ -9245,7 +7559,7 @@ meter::-webkit-meter-optimum-value {
|
|
|
9245
7559
|
const urlParams = new URLSearchParams(window.location.search);
|
|
9246
7560
|
const utmParams = Object.fromEntries(
|
|
9247
7561
|
Array.from(urlParams.entries()).filter(
|
|
9248
|
-
([key,
|
|
7562
|
+
([key, _2]) => key.startsWith("utm_")
|
|
9249
7563
|
)
|
|
9250
7564
|
);
|
|
9251
7565
|
utmParams["utm_url"] = window.location.href;
|
|
@@ -9299,8 +7613,8 @@ meter::-webkit-meter-optimum-value {
|
|
|
9299
7613
|
}
|
|
9300
7614
|
}
|
|
9301
7615
|
render() {
|
|
9302
|
-
return
|
|
9303
|
-
${this.open ? "<div></div>" :
|
|
7616
|
+
return x`
|
|
7617
|
+
${this.open ? "<div></div>" : x`<button class="button button--begin" ?disabled=${!this.accountActive} part="begin-button" @click=${this.openModal}><slot>Begin</slot></button>`}
|
|
9304
7618
|
<dialog id="question-modal" class="questionnaire--modal">${this.renderCurrentStep()}</dialog>
|
|
9305
7619
|
`;
|
|
9306
7620
|
}
|
|
@@ -9312,10 +7626,12 @@ meter::-webkit-meter-optimum-value {
|
|
|
9312
7626
|
return this.renderContactInfo();
|
|
9313
7627
|
case "Video":
|
|
9314
7628
|
return this.renderVideo();
|
|
7629
|
+
case "Verification":
|
|
7630
|
+
return this.renderVerification();
|
|
9315
7631
|
}
|
|
9316
7632
|
}
|
|
9317
7633
|
renderVideo() {
|
|
9318
|
-
return
|
|
7634
|
+
return x`
|
|
9319
7635
|
<div>
|
|
9320
7636
|
<button class="button--link" id="close" @click=${this.closeModal}>Back</button>
|
|
9321
7637
|
<div class="questionnaire u-flex u-flex-justify--center fade-in fade-out">
|
|
@@ -9331,7 +7647,7 @@ meter::-webkit-meter-optimum-value {
|
|
|
9331
7647
|
`;
|
|
9332
7648
|
}
|
|
9333
7649
|
renderContactInfo() {
|
|
9334
|
-
return
|
|
7650
|
+
return x`
|
|
9335
7651
|
<div class="questionnaire fade-in fade-out">
|
|
9336
7652
|
<div class="questionnaire-illustration"><img src=${this.contactInfoImageUrl()}> </div>
|
|
9337
7653
|
<div class="form__container">
|
|
@@ -9368,7 +7684,7 @@ meter::-webkit-meter-optimum-value {
|
|
|
9368
7684
|
<div>
|
|
9369
7685
|
<label for="insurance_provider">Insurance Provider</label>
|
|
9370
7686
|
<select id="insurance_provider" name="insurance_provider">
|
|
9371
|
-
${this.providers.map((provider) =>
|
|
7687
|
+
${this.providers.map((provider) => x`
|
|
9372
7688
|
<option value="${provider}">${provider}</option>
|
|
9373
7689
|
`)}
|
|
9374
7690
|
</select>
|
|
@@ -9386,6 +7702,37 @@ meter::-webkit-meter-optimum-value {
|
|
|
9386
7702
|
</div>
|
|
9387
7703
|
`;
|
|
9388
7704
|
}
|
|
7705
|
+
renderVerification() {
|
|
7706
|
+
const verification = this.currentStep;
|
|
7707
|
+
return x`
|
|
7708
|
+
<div class="questionnaire fade-in fade-out">
|
|
7709
|
+
<div class="questionnaire-illustration"><img src=${this.contactInfoImageUrl()}> </div>
|
|
7710
|
+
<div class="form__container">
|
|
7711
|
+
<div class="header">
|
|
7712
|
+
<h1>Verify Your Phone Number</h1>
|
|
7713
|
+
<h2>${verification.text}</h2>
|
|
7714
|
+
<p class="verification-phone-number">We've sent a verification code to ${verification.phoneNumber}</p>
|
|
7715
|
+
</div>
|
|
7716
|
+
<form @submit=${this.submitVerification}>
|
|
7717
|
+
<div class="form verification-form">
|
|
7718
|
+
<div class="verification-input-container">
|
|
7719
|
+
<label for="verification_code">Verification Code</label>
|
|
7720
|
+
<input type="text" id="verification_code" name="verification_code" required
|
|
7721
|
+
pattern="^[a-zA-Z0-9]+$"
|
|
7722
|
+
title="Please enter the verification code" />
|
|
7723
|
+
${this.verificationError ? x`<div class="error">${this.verificationError}</div>` : ""}
|
|
7724
|
+
</div>
|
|
7725
|
+
</div>
|
|
7726
|
+
<div class="footer u-text-center">
|
|
7727
|
+
<button class="button button--primary u-push-top" type="submit">Submit</button>
|
|
7728
|
+
<button class="button--link" type="button" @click=${this.goBackToContactInfo}>Go Back</button>
|
|
7729
|
+
<button class="button--link verification-resend-button" type="button" @click=${this.resendCode}>Resend Code</button>
|
|
7730
|
+
</div>
|
|
7731
|
+
</form>
|
|
7732
|
+
</div>
|
|
7733
|
+
</div>
|
|
7734
|
+
`;
|
|
7735
|
+
}
|
|
9389
7736
|
imageSrc() {
|
|
9390
7737
|
return this.absolutifyImageUrl(this.currentStep.url);
|
|
9391
7738
|
}
|
|
@@ -9399,16 +7746,16 @@ meter::-webkit-meter-optimum-value {
|
|
|
9399
7746
|
}
|
|
9400
7747
|
renderQuestion() {
|
|
9401
7748
|
const question = this.currentStep;
|
|
9402
|
-
return
|
|
7749
|
+
return x`
|
|
9403
7750
|
<div>
|
|
9404
|
-
${
|
|
7751
|
+
${i6(question.id, x`
|
|
9405
7752
|
<div class="questionnaire fade-in fade-out u-push-bottom--lg">
|
|
9406
7753
|
<div class="questionnaire-illustration"><img src=${this.imageSrc()}></div>
|
|
9407
7754
|
<div class="questionnaire--question"><h1>${question.text}</h1></div>
|
|
9408
7755
|
<div class="questionnaire--subtitle"><h2>${question.subtitle}</h2></div>
|
|
9409
7756
|
<div class="questionnaire--bt-contain">
|
|
9410
7757
|
<div>
|
|
9411
|
-
${
|
|
7758
|
+
${c4(question?.answers, (answer) => answer.id, (answer) => x`<button class="button" @click=${this.answerQuestion} data-answer-id=${answer.id}>${answer.text}</button>
|
|
9412
7759
|
`)}
|
|
9413
7760
|
</div>
|
|
9414
7761
|
</div>
|
|
@@ -9417,11 +7764,11 @@ meter::-webkit-meter-optimum-value {
|
|
|
9417
7764
|
<meter value=${this.visitedNodes.length} max=${this.questionnaireDepth} />
|
|
9418
7765
|
</div>
|
|
9419
7766
|
`)}
|
|
9420
|
-
${this.visitedNodes.length > 1 ?
|
|
9421
|
-
<button class="button--link" @click=${this.goBack}>Back</button>` :
|
|
7767
|
+
${this.visitedNodes.length > 1 ? x`
|
|
7768
|
+
<button class="button--link" @click=${this.goBack}>Back</button>` : x`
|
|
9422
7769
|
<button class="button--link" id="close" @click=${this.closeModal}>Close</button>
|
|
9423
7770
|
`}
|
|
9424
|
-
<span class="u-flex u-flex-justify--center u-width-100"> ${this.links && this.links["learn_more_url"] ?
|
|
7771
|
+
<span class="u-flex u-flex-justify--center u-width-100"> ${this.links && this.links["learn_more_url"] ? x`<a href=${this.links["learn_more_url"]} target="_blank">Learn More</a>` : ""} </span>
|
|
9425
7772
|
</div>
|
|
9426
7773
|
`;
|
|
9427
7774
|
}
|
|
@@ -9474,68 +7821,94 @@ meter::-webkit-meter-optimum-value {
|
|
|
9474
7821
|
}));
|
|
9475
7822
|
}
|
|
9476
7823
|
}
|
|
7824
|
+
submitVerification(event) {
|
|
7825
|
+
event.stopPropagation();
|
|
7826
|
+
event.preventDefault();
|
|
7827
|
+
const code = this.verificationCodeInput?.value;
|
|
7828
|
+
if (code) {
|
|
7829
|
+
this.verificationError = null;
|
|
7830
|
+
const nodeId = this.currentStep?.id.replace("verification_", "");
|
|
7831
|
+
this.dispatchEvent(new CustomEvent("submitVerification", {
|
|
7832
|
+
detail: { verificationCode: code, nodeId }
|
|
7833
|
+
}));
|
|
7834
|
+
}
|
|
7835
|
+
}
|
|
7836
|
+
resendCode(event) {
|
|
7837
|
+
event.stopPropagation();
|
|
7838
|
+
this.dispatchEvent(new CustomEvent("resendCode"));
|
|
7839
|
+
}
|
|
7840
|
+
goBackToContactInfo(event) {
|
|
7841
|
+
event.stopPropagation();
|
|
7842
|
+
this.dispatchEvent(new CustomEvent("goBack"));
|
|
7843
|
+
}
|
|
9477
7844
|
};
|
|
9478
7845
|
QuestionnaireElement.styles = questionnaire_lit_default;
|
|
9479
7846
|
__decorateClass([
|
|
9480
|
-
|
|
7847
|
+
t3()
|
|
9481
7848
|
], QuestionnaireElement.prototype, "currentStep", 2);
|
|
9482
7849
|
__decorateClass([
|
|
9483
|
-
|
|
7850
|
+
t3()
|
|
9484
7851
|
], QuestionnaireElement.prototype, "accountActive", 2);
|
|
9485
7852
|
__decorateClass([
|
|
9486
|
-
|
|
7853
|
+
t3()
|
|
9487
7854
|
], QuestionnaireElement.prototype, "visitedNodes", 2);
|
|
9488
7855
|
__decorateClass([
|
|
9489
|
-
|
|
7856
|
+
t3()
|
|
9490
7857
|
], QuestionnaireElement.prototype, "links", 2);
|
|
9491
7858
|
__decorateClass([
|
|
9492
|
-
|
|
7859
|
+
t3()
|
|
9493
7860
|
], QuestionnaireElement.prototype, "questionnaireDepth", 2);
|
|
9494
7861
|
__decorateClass([
|
|
9495
|
-
|
|
7862
|
+
t3()
|
|
9496
7863
|
], QuestionnaireElement.prototype, "phoneNumber", 2);
|
|
9497
7864
|
__decorateClass([
|
|
9498
|
-
|
|
7865
|
+
t3()
|
|
9499
7866
|
], QuestionnaireElement.prototype, "providers", 2);
|
|
9500
7867
|
__decorateClass([
|
|
9501
|
-
|
|
7868
|
+
t3()
|
|
9502
7869
|
], QuestionnaireElement.prototype, "outcome", 2);
|
|
9503
7870
|
__decorateClass([
|
|
9504
|
-
|
|
7871
|
+
t3()
|
|
7872
|
+
], QuestionnaireElement.prototype, "verificationError", 2);
|
|
7873
|
+
__decorateClass([
|
|
7874
|
+
n5(),
|
|
9505
7875
|
liveStateConfig("url")
|
|
9506
7876
|
], QuestionnaireElement.prototype, "url", 2);
|
|
9507
7877
|
__decorateClass([
|
|
9508
|
-
|
|
7878
|
+
n5({ attribute: "site-id" })
|
|
9509
7879
|
], QuestionnaireElement.prototype, "siteId", 2);
|
|
9510
7880
|
__decorateClass([
|
|
9511
|
-
|
|
7881
|
+
n5({ attribute: "hubspot-id" })
|
|
9512
7882
|
], QuestionnaireElement.prototype, "hubspotId", 2);
|
|
9513
7883
|
__decorateClass([
|
|
9514
|
-
|
|
7884
|
+
n5({ type: Boolean })
|
|
9515
7885
|
], QuestionnaireElement.prototype, "open", 2);
|
|
9516
7886
|
__decorateClass([
|
|
9517
|
-
|
|
7887
|
+
i4("#question-modal")
|
|
9518
7888
|
], QuestionnaireElement.prototype, "modal", 2);
|
|
9519
7889
|
__decorateClass([
|
|
9520
|
-
|
|
7890
|
+
i4("#first_name")
|
|
9521
7891
|
], QuestionnaireElement.prototype, "firstNameInput", 2);
|
|
9522
7892
|
__decorateClass([
|
|
9523
|
-
|
|
7893
|
+
i4("#last_name")
|
|
9524
7894
|
], QuestionnaireElement.prototype, "lastNameInput", 2);
|
|
9525
7895
|
__decorateClass([
|
|
9526
|
-
|
|
7896
|
+
i4("#email")
|
|
9527
7897
|
], QuestionnaireElement.prototype, "emailInput", 2);
|
|
9528
7898
|
__decorateClass([
|
|
9529
|
-
|
|
7899
|
+
i4("#phone")
|
|
9530
7900
|
], QuestionnaireElement.prototype, "phoneInput", 2);
|
|
9531
7901
|
__decorateClass([
|
|
9532
|
-
|
|
7902
|
+
i4("#zip_code")
|
|
9533
7903
|
], QuestionnaireElement.prototype, "zipCodeInput", 2);
|
|
9534
7904
|
__decorateClass([
|
|
9535
|
-
|
|
7905
|
+
i4("#insurance_provider")
|
|
9536
7906
|
], QuestionnaireElement.prototype, "insuranceProviderSelect", 2);
|
|
9537
7907
|
__decorateClass([
|
|
9538
|
-
|
|
7908
|
+
i4("#verification_code")
|
|
7909
|
+
], QuestionnaireElement.prototype, "verificationCodeInput", 2);
|
|
7910
|
+
__decorateClass([
|
|
7911
|
+
i4("form")
|
|
9539
7912
|
], QuestionnaireElement.prototype, "contactInfoForm", 2);
|
|
9540
7913
|
__decorateClass([
|
|
9541
7914
|
liveStateConfig("topic")
|
|
@@ -9544,11 +7917,11 @@ meter::-webkit-meter-optimum-value {
|
|
|
9544
7917
|
liveStateConfig("params")
|
|
9545
7918
|
], QuestionnaireElement.prototype, "params", 1);
|
|
9546
7919
|
QuestionnaireElement = __decorateClass([
|
|
9547
|
-
|
|
7920
|
+
e4("pr360-questionnaire"),
|
|
9548
7921
|
liveStateDecorator_default({
|
|
9549
|
-
properties: ["currentStep", "visitedNodes", "phoneNumber", "links", "accountActive", "questionnaireDepth", "providers", "outcome"],
|
|
7922
|
+
properties: ["currentStep", "visitedNodes", "phoneNumber", "links", "accountActive", "questionnaireDepth", "providers", "outcome", "verificationError"],
|
|
9550
7923
|
events: {
|
|
9551
|
-
send: ["answerQuestion", "submitContactInfo", "goBack", "setUtmParams"]
|
|
7924
|
+
send: ["answerQuestion", "submitContactInfo", "goBack", "setUtmParams", "submitVerification", "resendCode"]
|
|
9552
7925
|
},
|
|
9553
7926
|
provide: {
|
|
9554
7927
|
scope: window,
|
|
@@ -9559,27 +7932,6 @@ meter::-webkit-meter-optimum-value {
|
|
|
9559
7932
|
})();
|
|
9560
7933
|
/*! Bundled license information:
|
|
9561
7934
|
|
|
9562
|
-
@lit/reactive-element/css-tag.js:
|
|
9563
|
-
(**
|
|
9564
|
-
* @license
|
|
9565
|
-
* Copyright 2019 Google LLC
|
|
9566
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
9567
|
-
*)
|
|
9568
|
-
|
|
9569
|
-
@lit/reactive-element/reactive-element.js:
|
|
9570
|
-
(**
|
|
9571
|
-
* @license
|
|
9572
|
-
* Copyright 2017 Google LLC
|
|
9573
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
9574
|
-
*)
|
|
9575
|
-
|
|
9576
|
-
lit-html/lit-html.js:
|
|
9577
|
-
(**
|
|
9578
|
-
* @license
|
|
9579
|
-
* Copyright 2017 Google LLC
|
|
9580
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
9581
|
-
*)
|
|
9582
|
-
|
|
9583
7935
|
@lit/reactive-element/css-tag.js:
|
|
9584
7936
|
(**
|
|
9585
7937
|
* @license
|
|
@@ -9702,7 +8054,7 @@ reflect-metadata/Reflect.js:
|
|
|
9702
8054
|
***************************************************************************** *)
|
|
9703
8055
|
|
|
9704
8056
|
@vimeo/player/dist/player.es.js:
|
|
9705
|
-
(*! @vimeo/player v2.
|
|
8057
|
+
(*! @vimeo/player v2.18.0 | (c) 2022 Vimeo | MIT License | https://github.com/vimeo/player.js *)
|
|
9706
8058
|
(*!
|
|
9707
8059
|
* weakmap-polyfill v2.0.4 - ECMAScript6 WeakMap polyfill
|
|
9708
8060
|
* https://github.com/polygonplanet/weakmap-polyfill
|