pr360-questionnaire 2.1.6 → 2.1.10
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 +13351 -10804
- package/css/app.scss +3 -0
- package/css/base/_variables.scss +1 -0
- package/css/components/_event-details.scss +92 -0
- package/css/components/_modal.scss +1 -0
- package/css/components/_prospect-details.scss +203 -0
- package/css/components/_site-rules.scss +189 -0
- package/css/components/_tables.scss +199 -455
- package/dist/index.js +2644 -913
- package/js/app.js +296 -5
- package/js/calendar.ts +84 -0
- package/js/questionnaire.ts +21 -48
- package/package.json +9 -2
- package/vendor/ShowHistory.js +0 -15
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 i9 = decorators.length - 1, decorator; i9 >= 0; i9--)
|
|
8
|
+
if (decorator = decorators[i9])
|
|
9
9
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
10
10
|
if (kind && result)
|
|
11
11
|
__defProp(target, key, result);
|
|
@@ -33,251 +33,245 @@
|
|
|
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
|
+
};
|
|
36
40
|
|
|
37
|
-
// node_modules/@lit/reactive-element/css-tag.js
|
|
41
|
+
// node_modules/lit/node_modules/@lit/reactive-element/css-tag.js
|
|
38
42
|
var t = window;
|
|
39
43
|
var e = t.ShadowRoot && (void 0 === t.ShadyCSS || t.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype;
|
|
40
44
|
var s = Symbol();
|
|
41
45
|
var n = /* @__PURE__ */ new WeakMap();
|
|
42
46
|
var o = class {
|
|
43
|
-
constructor(
|
|
44
|
-
if (this._$cssResult$ = true,
|
|
47
|
+
constructor(t7, e11, n10) {
|
|
48
|
+
if (this._$cssResult$ = true, n10 !== s)
|
|
45
49
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
46
|
-
this.cssText =
|
|
50
|
+
this.cssText = t7, this.t = e11;
|
|
47
51
|
}
|
|
48
52
|
get styleSheet() {
|
|
49
|
-
let
|
|
50
|
-
const
|
|
51
|
-
if (e && void 0 ===
|
|
52
|
-
const
|
|
53
|
-
|
|
53
|
+
let t7 = this.o;
|
|
54
|
+
const s9 = this.t;
|
|
55
|
+
if (e && void 0 === t7) {
|
|
56
|
+
const e11 = void 0 !== s9 && 1 === s9.length;
|
|
57
|
+
e11 && (t7 = n.get(s9)), void 0 === t7 && ((this.o = t7 = new CSSStyleSheet()).replaceSync(this.cssText), e11 && n.set(s9, t7));
|
|
54
58
|
}
|
|
55
|
-
return
|
|
59
|
+
return t7;
|
|
56
60
|
}
|
|
57
61
|
toString() {
|
|
58
62
|
return this.cssText;
|
|
59
63
|
}
|
|
60
64
|
};
|
|
61
|
-
var r = (
|
|
62
|
-
var
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
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);
|
|
65
|
+
var r = (t7) => new o("string" == typeof t7 ? t7 : t7 + "", void 0, s);
|
|
66
|
+
var S = (s9, n10) => {
|
|
67
|
+
e ? s9.adoptedStyleSheets = n10.map((t7) => t7 instanceof CSSStyleSheet ? t7 : t7.styleSheet) : n10.forEach((e11) => {
|
|
68
|
+
const n11 = document.createElement("style"), o9 = t.litNonce;
|
|
69
|
+
void 0 !== o9 && n11.setAttribute("nonce", o9), n11.textContent = e11.cssText, s9.appendChild(n11);
|
|
76
70
|
});
|
|
77
71
|
};
|
|
78
|
-
var c = e ? (
|
|
79
|
-
let
|
|
80
|
-
for (const
|
|
81
|
-
|
|
82
|
-
return r(
|
|
83
|
-
})(
|
|
72
|
+
var c = e ? (t7) => t7 : (t7) => t7 instanceof CSSStyleSheet ? ((t8) => {
|
|
73
|
+
let e11 = "";
|
|
74
|
+
for (const s9 of t8.cssRules)
|
|
75
|
+
e11 += s9.cssText;
|
|
76
|
+
return r(e11);
|
|
77
|
+
})(t7) : t7;
|
|
84
78
|
|
|
85
|
-
// node_modules/@lit/reactive-element/reactive-element.js
|
|
79
|
+
// node_modules/lit/node_modules/@lit/reactive-element/reactive-element.js
|
|
86
80
|
var s2;
|
|
87
81
|
var e2 = window;
|
|
88
82
|
var r2 = e2.trustedTypes;
|
|
89
83
|
var h = r2 ? r2.emptyScript : "";
|
|
90
84
|
var o2 = e2.reactiveElementPolyfillSupport;
|
|
91
|
-
var n2 = { toAttribute(
|
|
92
|
-
switch (
|
|
85
|
+
var n2 = { toAttribute(t7, i9) {
|
|
86
|
+
switch (i9) {
|
|
93
87
|
case Boolean:
|
|
94
|
-
|
|
88
|
+
t7 = t7 ? h : null;
|
|
95
89
|
break;
|
|
96
90
|
case Object:
|
|
97
91
|
case Array:
|
|
98
|
-
|
|
92
|
+
t7 = null == t7 ? t7 : JSON.stringify(t7);
|
|
99
93
|
}
|
|
100
|
-
return
|
|
101
|
-
}, fromAttribute(
|
|
102
|
-
let
|
|
103
|
-
switch (
|
|
94
|
+
return t7;
|
|
95
|
+
}, fromAttribute(t7, i9) {
|
|
96
|
+
let s9 = t7;
|
|
97
|
+
switch (i9) {
|
|
104
98
|
case Boolean:
|
|
105
|
-
|
|
99
|
+
s9 = null !== t7;
|
|
106
100
|
break;
|
|
107
101
|
case Number:
|
|
108
|
-
|
|
102
|
+
s9 = null === t7 ? null : Number(t7);
|
|
109
103
|
break;
|
|
110
104
|
case Object:
|
|
111
105
|
case Array:
|
|
112
106
|
try {
|
|
113
|
-
|
|
114
|
-
} catch (
|
|
115
|
-
|
|
107
|
+
s9 = JSON.parse(t7);
|
|
108
|
+
} catch (t8) {
|
|
109
|
+
s9 = null;
|
|
116
110
|
}
|
|
117
111
|
}
|
|
118
|
-
return
|
|
112
|
+
return s9;
|
|
119
113
|
} };
|
|
120
|
-
var a = (
|
|
114
|
+
var a = (t7, i9) => i9 !== t7 && (i9 == i9 || t7 == t7);
|
|
121
115
|
var l = { attribute: true, type: String, converter: n2, reflect: false, hasChanged: a };
|
|
122
116
|
var d = "finalized";
|
|
123
117
|
var u = class extends HTMLElement {
|
|
124
118
|
constructor() {
|
|
125
|
-
super(), this._$Ei = /* @__PURE__ */ new Map(), this.isUpdatePending = false, this.hasUpdated = false, this._$El = null, this.
|
|
119
|
+
super(), this._$Ei = /* @__PURE__ */ new Map(), this.isUpdatePending = false, this.hasUpdated = false, this._$El = null, this._$Eu();
|
|
126
120
|
}
|
|
127
|
-
static addInitializer(
|
|
128
|
-
var
|
|
129
|
-
this.finalize(), (null !== (
|
|
121
|
+
static addInitializer(t7) {
|
|
122
|
+
var i9;
|
|
123
|
+
this.finalize(), (null !== (i9 = this.h) && void 0 !== i9 ? i9 : this.h = []).push(t7);
|
|
130
124
|
}
|
|
131
125
|
static get observedAttributes() {
|
|
132
126
|
this.finalize();
|
|
133
|
-
const
|
|
134
|
-
return this.elementProperties.forEach((
|
|
135
|
-
const
|
|
136
|
-
void 0 !==
|
|
137
|
-
}),
|
|
127
|
+
const t7 = [];
|
|
128
|
+
return this.elementProperties.forEach((i9, s9) => {
|
|
129
|
+
const e11 = this._$Ep(s9, i9);
|
|
130
|
+
void 0 !== e11 && (this._$Ev.set(e11, s9), t7.push(e11));
|
|
131
|
+
}), t7;
|
|
138
132
|
}
|
|
139
|
-
static createProperty(
|
|
140
|
-
if (
|
|
141
|
-
const
|
|
142
|
-
void 0 !==
|
|
133
|
+
static createProperty(t7, i9 = l) {
|
|
134
|
+
if (i9.state && (i9.attribute = false), this.finalize(), this.elementProperties.set(t7, i9), !i9.noAccessor && !this.prototype.hasOwnProperty(t7)) {
|
|
135
|
+
const s9 = "symbol" == typeof t7 ? Symbol() : "__" + t7, e11 = this.getPropertyDescriptor(t7, s9, i9);
|
|
136
|
+
void 0 !== e11 && Object.defineProperty(this.prototype, t7, e11);
|
|
143
137
|
}
|
|
144
138
|
}
|
|
145
|
-
static getPropertyDescriptor(
|
|
139
|
+
static getPropertyDescriptor(t7, i9, s9) {
|
|
146
140
|
return { get() {
|
|
147
|
-
return this[
|
|
148
|
-
}, set(
|
|
149
|
-
const
|
|
150
|
-
this[
|
|
141
|
+
return this[i9];
|
|
142
|
+
}, set(e11) {
|
|
143
|
+
const r8 = this[t7];
|
|
144
|
+
this[i9] = e11, this.requestUpdate(t7, r8, s9);
|
|
151
145
|
}, configurable: true, enumerable: true };
|
|
152
146
|
}
|
|
153
|
-
static getPropertyOptions(
|
|
154
|
-
return this.elementProperties.get(
|
|
147
|
+
static getPropertyOptions(t7) {
|
|
148
|
+
return this.elementProperties.get(t7) || l;
|
|
155
149
|
}
|
|
156
150
|
static finalize() {
|
|
157
151
|
if (this.hasOwnProperty(d))
|
|
158
152
|
return false;
|
|
159
153
|
this[d] = true;
|
|
160
|
-
const
|
|
161
|
-
if (
|
|
162
|
-
const
|
|
163
|
-
for (const
|
|
164
|
-
this.createProperty(
|
|
154
|
+
const t7 = Object.getPrototypeOf(this);
|
|
155
|
+
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")) {
|
|
156
|
+
const t8 = this.properties, i9 = [...Object.getOwnPropertyNames(t8), ...Object.getOwnPropertySymbols(t8)];
|
|
157
|
+
for (const s9 of i9)
|
|
158
|
+
this.createProperty(s9, t8[s9]);
|
|
165
159
|
}
|
|
166
160
|
return this.elementStyles = this.finalizeStyles(this.styles), true;
|
|
167
161
|
}
|
|
168
|
-
static finalizeStyles(
|
|
169
|
-
const
|
|
170
|
-
if (Array.isArray(
|
|
171
|
-
const
|
|
172
|
-
for (const
|
|
173
|
-
|
|
162
|
+
static finalizeStyles(i9) {
|
|
163
|
+
const s9 = [];
|
|
164
|
+
if (Array.isArray(i9)) {
|
|
165
|
+
const e11 = new Set(i9.flat(1 / 0).reverse());
|
|
166
|
+
for (const i10 of e11)
|
|
167
|
+
s9.unshift(c(i10));
|
|
174
168
|
} else
|
|
175
|
-
void 0 !==
|
|
176
|
-
return
|
|
169
|
+
void 0 !== i9 && s9.push(c(i9));
|
|
170
|
+
return s9;
|
|
177
171
|
}
|
|
178
|
-
static _$Ep(
|
|
179
|
-
const
|
|
180
|
-
return false ===
|
|
172
|
+
static _$Ep(t7, i9) {
|
|
173
|
+
const s9 = i9.attribute;
|
|
174
|
+
return false === s9 ? void 0 : "string" == typeof s9 ? s9 : "string" == typeof t7 ? t7.toLowerCase() : void 0;
|
|
181
175
|
}
|
|
182
|
-
|
|
183
|
-
var
|
|
184
|
-
this._$E_ = new Promise((
|
|
176
|
+
_$Eu() {
|
|
177
|
+
var t7;
|
|
178
|
+
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));
|
|
185
179
|
}
|
|
186
|
-
addController(
|
|
187
|
-
var
|
|
188
|
-
(null !== (
|
|
180
|
+
addController(t7) {
|
|
181
|
+
var i9, s9;
|
|
182
|
+
(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));
|
|
189
183
|
}
|
|
190
|
-
removeController(
|
|
191
|
-
var
|
|
192
|
-
null === (
|
|
184
|
+
removeController(t7) {
|
|
185
|
+
var i9;
|
|
186
|
+
null === (i9 = this._$ES) || void 0 === i9 || i9.splice(this._$ES.indexOf(t7) >>> 0, 1);
|
|
193
187
|
}
|
|
194
188
|
_$Eg() {
|
|
195
|
-
this.constructor.elementProperties.forEach((
|
|
196
|
-
this.hasOwnProperty(
|
|
189
|
+
this.constructor.elementProperties.forEach((t7, i9) => {
|
|
190
|
+
this.hasOwnProperty(i9) && (this._$Ei.set(i9, this[i9]), delete this[i9]);
|
|
197
191
|
});
|
|
198
192
|
}
|
|
199
193
|
createRenderRoot() {
|
|
200
|
-
var
|
|
201
|
-
const
|
|
202
|
-
return S(
|
|
194
|
+
var t7;
|
|
195
|
+
const s9 = null !== (t7 = this.shadowRoot) && void 0 !== t7 ? t7 : this.attachShadow(this.constructor.shadowRootOptions);
|
|
196
|
+
return S(s9, this.constructor.elementStyles), s9;
|
|
203
197
|
}
|
|
204
198
|
connectedCallback() {
|
|
205
|
-
var
|
|
206
|
-
void 0 === this.renderRoot && (this.renderRoot = this.createRenderRoot()), this.enableUpdating(true), null === (
|
|
207
|
-
var
|
|
208
|
-
return null === (
|
|
199
|
+
var t7;
|
|
200
|
+
void 0 === this.renderRoot && (this.renderRoot = this.createRenderRoot()), this.enableUpdating(true), null === (t7 = this._$ES) || void 0 === t7 || t7.forEach((t8) => {
|
|
201
|
+
var i9;
|
|
202
|
+
return null === (i9 = t8.hostConnected) || void 0 === i9 ? void 0 : i9.call(t8);
|
|
209
203
|
});
|
|
210
204
|
}
|
|
211
|
-
enableUpdating(
|
|
205
|
+
enableUpdating(t7) {
|
|
212
206
|
}
|
|
213
207
|
disconnectedCallback() {
|
|
214
|
-
var
|
|
215
|
-
null === (
|
|
216
|
-
var
|
|
217
|
-
return null === (
|
|
208
|
+
var t7;
|
|
209
|
+
null === (t7 = this._$ES) || void 0 === t7 || t7.forEach((t8) => {
|
|
210
|
+
var i9;
|
|
211
|
+
return null === (i9 = t8.hostDisconnected) || void 0 === i9 ? void 0 : i9.call(t8);
|
|
218
212
|
});
|
|
219
213
|
}
|
|
220
|
-
attributeChangedCallback(
|
|
221
|
-
this._$AK(
|
|
214
|
+
attributeChangedCallback(t7, i9, s9) {
|
|
215
|
+
this._$AK(t7, s9);
|
|
222
216
|
}
|
|
223
|
-
_$EO(
|
|
224
|
-
var
|
|
225
|
-
const
|
|
226
|
-
if (void 0 !==
|
|
227
|
-
const
|
|
228
|
-
this._$El =
|
|
217
|
+
_$EO(t7, i9, s9 = l) {
|
|
218
|
+
var e11;
|
|
219
|
+
const r8 = this.constructor._$Ep(t7, s9);
|
|
220
|
+
if (void 0 !== r8 && true === s9.reflect) {
|
|
221
|
+
const h5 = (void 0 !== (null === (e11 = s9.converter) || void 0 === e11 ? void 0 : e11.toAttribute) ? s9.converter : n2).toAttribute(i9, s9.type);
|
|
222
|
+
this._$El = t7, null == h5 ? this.removeAttribute(r8) : this.setAttribute(r8, h5), this._$El = null;
|
|
229
223
|
}
|
|
230
224
|
}
|
|
231
|
-
_$AK(
|
|
232
|
-
var
|
|
233
|
-
const
|
|
234
|
-
if (void 0 !==
|
|
235
|
-
const
|
|
236
|
-
this._$El =
|
|
225
|
+
_$AK(t7, i9) {
|
|
226
|
+
var s9;
|
|
227
|
+
const e11 = this.constructor, r8 = e11._$Ev.get(t7);
|
|
228
|
+
if (void 0 !== r8 && this._$El !== r8) {
|
|
229
|
+
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 : n2;
|
|
230
|
+
this._$El = r8, this[r8] = h5.fromAttribute(i9, t8.type), this._$El = null;
|
|
237
231
|
}
|
|
238
232
|
}
|
|
239
|
-
requestUpdate(
|
|
240
|
-
let
|
|
241
|
-
void 0 !==
|
|
233
|
+
requestUpdate(t7, i9, s9) {
|
|
234
|
+
let e11 = true;
|
|
235
|
+
void 0 !== t7 && (((s9 = s9 || this.constructor.getPropertyOptions(t7)).hasChanged || a)(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());
|
|
242
236
|
}
|
|
243
237
|
async _$Ej() {
|
|
244
238
|
this.isUpdatePending = true;
|
|
245
239
|
try {
|
|
246
240
|
await this._$E_;
|
|
247
|
-
} catch (
|
|
248
|
-
Promise.reject(
|
|
241
|
+
} catch (t8) {
|
|
242
|
+
Promise.reject(t8);
|
|
249
243
|
}
|
|
250
|
-
const
|
|
251
|
-
return null !=
|
|
244
|
+
const t7 = this.scheduleUpdate();
|
|
245
|
+
return null != t7 && await t7, !this.isUpdatePending;
|
|
252
246
|
}
|
|
253
247
|
scheduleUpdate() {
|
|
254
248
|
return this.performUpdate();
|
|
255
249
|
}
|
|
256
250
|
performUpdate() {
|
|
257
|
-
var
|
|
251
|
+
var t7;
|
|
258
252
|
if (!this.isUpdatePending)
|
|
259
253
|
return;
|
|
260
|
-
this.hasUpdated, this._$Ei && (this._$Ei.forEach((
|
|
261
|
-
let
|
|
262
|
-
const
|
|
254
|
+
this.hasUpdated, this._$Ei && (this._$Ei.forEach((t8, i10) => this[i10] = t8), this._$Ei = void 0);
|
|
255
|
+
let i9 = false;
|
|
256
|
+
const s9 = this._$AL;
|
|
263
257
|
try {
|
|
264
|
-
|
|
265
|
-
var
|
|
266
|
-
return null === (
|
|
267
|
-
}), this.update(
|
|
268
|
-
} catch (
|
|
269
|
-
throw
|
|
258
|
+
i9 = this.shouldUpdate(s9), i9 ? (this.willUpdate(s9), null === (t7 = this._$ES) || void 0 === t7 || t7.forEach((t8) => {
|
|
259
|
+
var i10;
|
|
260
|
+
return null === (i10 = t8.hostUpdate) || void 0 === i10 ? void 0 : i10.call(t8);
|
|
261
|
+
}), this.update(s9)) : this._$Ek();
|
|
262
|
+
} catch (t8) {
|
|
263
|
+
throw i9 = false, this._$Ek(), t8;
|
|
270
264
|
}
|
|
271
|
-
|
|
265
|
+
i9 && this._$AE(s9);
|
|
272
266
|
}
|
|
273
|
-
willUpdate(
|
|
267
|
+
willUpdate(t7) {
|
|
274
268
|
}
|
|
275
|
-
_$AE(
|
|
276
|
-
var
|
|
277
|
-
null === (
|
|
278
|
-
var
|
|
279
|
-
return null === (
|
|
280
|
-
}), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(
|
|
269
|
+
_$AE(t7) {
|
|
270
|
+
var i9;
|
|
271
|
+
null === (i9 = this._$ES) || void 0 === i9 || i9.forEach((t8) => {
|
|
272
|
+
var i10;
|
|
273
|
+
return null === (i10 = t8.hostUpdated) || void 0 === i10 ? void 0 : i10.call(t8);
|
|
274
|
+
}), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t7)), this.updated(t7);
|
|
281
275
|
}
|
|
282
276
|
_$Ek() {
|
|
283
277
|
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = false;
|
|
@@ -288,33 +282,33 @@
|
|
|
288
282
|
getUpdateComplete() {
|
|
289
283
|
return this._$E_;
|
|
290
284
|
}
|
|
291
|
-
shouldUpdate(
|
|
285
|
+
shouldUpdate(t7) {
|
|
292
286
|
return true;
|
|
293
287
|
}
|
|
294
|
-
update(
|
|
295
|
-
void 0 !== this._$EC && (this._$EC.forEach((
|
|
288
|
+
update(t7) {
|
|
289
|
+
void 0 !== this._$EC && (this._$EC.forEach((t8, i9) => this._$EO(i9, this[i9], t8)), this._$EC = void 0), this._$Ek();
|
|
296
290
|
}
|
|
297
|
-
updated(
|
|
291
|
+
updated(t7) {
|
|
298
292
|
}
|
|
299
|
-
firstUpdated(
|
|
293
|
+
firstUpdated(t7) {
|
|
300
294
|
}
|
|
301
295
|
};
|
|
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.
|
|
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.3");
|
|
303
297
|
|
|
304
|
-
// node_modules/lit-html/lit-html.js
|
|
298
|
+
// node_modules/lit/node_modules/lit-html/lit-html.js
|
|
305
299
|
var t2;
|
|
306
300
|
var i2 = window;
|
|
307
301
|
var s3 = i2.trustedTypes;
|
|
308
|
-
var e3 = s3 ? s3.createPolicy("lit-html", { createHTML: (
|
|
302
|
+
var e3 = s3 ? s3.createPolicy("lit-html", { createHTML: (t7) => t7 }) : void 0;
|
|
309
303
|
var o3 = "$lit$";
|
|
310
304
|
var n3 = `lit$${(Math.random() + "").slice(9)}$`;
|
|
311
305
|
var l2 = "?" + n3;
|
|
312
306
|
var h2 = `<${l2}>`;
|
|
313
307
|
var r3 = document;
|
|
314
308
|
var u2 = () => r3.createComment("");
|
|
315
|
-
var d2 = (
|
|
309
|
+
var d2 = (t7) => null === t7 || "object" != typeof t7 && "function" != typeof t7;
|
|
316
310
|
var c2 = Array.isArray;
|
|
317
|
-
var v = (
|
|
311
|
+
var v = (t7) => c2(t7) || "function" == typeof (null == t7 ? void 0 : t7[Symbol.iterator]);
|
|
318
312
|
var a2 = "[ \n\f\r]";
|
|
319
313
|
var f = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g;
|
|
320
314
|
var _ = /-->/g;
|
|
@@ -324,93 +318,93 @@
|
|
|
324
318
|
var g = /'/g;
|
|
325
319
|
var $ = /"/g;
|
|
326
320
|
var y = /^(?:script|style|textarea|title)$/i;
|
|
327
|
-
var w = (
|
|
321
|
+
var w = (t7) => (i9, ...s9) => ({ _$litType$: t7, strings: i9, values: s9 });
|
|
328
322
|
var x = w(1);
|
|
329
323
|
var b = w(2);
|
|
330
324
|
var T = Symbol.for("lit-noChange");
|
|
331
325
|
var A = Symbol.for("lit-nothing");
|
|
332
326
|
var E = /* @__PURE__ */ new WeakMap();
|
|
333
327
|
var C = r3.createTreeWalker(r3, 129, null, false);
|
|
334
|
-
function P(
|
|
335
|
-
if (!Array.isArray(
|
|
328
|
+
function P(t7, i9) {
|
|
329
|
+
if (!Array.isArray(t7) || !t7.hasOwnProperty("raw"))
|
|
336
330
|
throw Error("invalid template strings array");
|
|
337
|
-
return void 0 !== e3 ? e3.createHTML(
|
|
331
|
+
return void 0 !== e3 ? e3.createHTML(i9) : i9;
|
|
338
332
|
}
|
|
339
|
-
var V = (
|
|
340
|
-
const
|
|
341
|
-
let
|
|
342
|
-
for (let
|
|
343
|
-
const
|
|
344
|
-
let
|
|
345
|
-
for (;
|
|
346
|
-
|
|
347
|
-
const
|
|
348
|
-
|
|
349
|
-
}
|
|
350
|
-
return [P(
|
|
333
|
+
var V = (t7, i9) => {
|
|
334
|
+
const s9 = t7.length - 1, e11 = [];
|
|
335
|
+
let l8, r8 = 2 === i9 ? "<svg>" : "", u6 = f;
|
|
336
|
+
for (let i10 = 0; i10 < s9; i10++) {
|
|
337
|
+
const s10 = t7[i10];
|
|
338
|
+
let d5, c7, v3 = -1, a6 = 0;
|
|
339
|
+
for (; a6 < s10.length && (u6.lastIndex = a6, c7 = u6.exec(s10), null !== c7); )
|
|
340
|
+
a6 = u6.lastIndex, u6 === f ? "!--" === c7[1] ? u6 = _ : void 0 !== c7[1] ? u6 = m : void 0 !== c7[2] ? (y.test(c7[2]) && (l8 = RegExp("</" + c7[2], "g")), u6 = p) : void 0 !== c7[3] && (u6 = p) : u6 === p ? ">" === c7[0] ? (u6 = null != l8 ? l8 : f, v3 = -1) : void 0 === c7[1] ? v3 = -2 : (v3 = u6.lastIndex - c7[2].length, d5 = c7[1], u6 = void 0 === c7[3] ? p : '"' === c7[3] ? $ : g) : u6 === $ || u6 === g ? u6 = p : u6 === _ || u6 === m ? u6 = f : (u6 = p, l8 = void 0);
|
|
341
|
+
const w3 = u6 === p && t7[i10 + 1].startsWith("/>") ? " " : "";
|
|
342
|
+
r8 += u6 === f ? s10 + h2 : v3 >= 0 ? (e11.push(d5), s10.slice(0, v3) + o3 + s10.slice(v3) + n3 + w3) : s10 + n3 + (-2 === v3 ? (e11.push(void 0), i10) : w3);
|
|
343
|
+
}
|
|
344
|
+
return [P(t7, r8 + (t7[s9] || "<?>") + (2 === i9 ? "</svg>" : "")), e11];
|
|
351
345
|
};
|
|
352
346
|
var N = class _N {
|
|
353
|
-
constructor({ strings:
|
|
354
|
-
let
|
|
347
|
+
constructor({ strings: t7, _$litType$: i9 }, e11) {
|
|
348
|
+
let h5;
|
|
355
349
|
this.parts = [];
|
|
356
|
-
let
|
|
357
|
-
const
|
|
358
|
-
if (this.el = _N.createElement(
|
|
359
|
-
const
|
|
360
|
-
|
|
361
|
-
}
|
|
362
|
-
for (; null !== (
|
|
363
|
-
if (1 ===
|
|
364
|
-
if (
|
|
365
|
-
const
|
|
366
|
-
for (const
|
|
367
|
-
if (
|
|
368
|
-
const
|
|
369
|
-
if (
|
|
370
|
-
const
|
|
371
|
-
|
|
350
|
+
let r8 = 0, d5 = 0;
|
|
351
|
+
const c7 = t7.length - 1, v3 = this.parts, [a6, f4] = V(t7, i9);
|
|
352
|
+
if (this.el = _N.createElement(a6, e11), C.currentNode = this.el.content, 2 === i9) {
|
|
353
|
+
const t8 = this.el.content, i10 = t8.firstChild;
|
|
354
|
+
i10.remove(), t8.append(...i10.childNodes);
|
|
355
|
+
}
|
|
356
|
+
for (; null !== (h5 = C.nextNode()) && v3.length < c7; ) {
|
|
357
|
+
if (1 === h5.nodeType) {
|
|
358
|
+
if (h5.hasAttributes()) {
|
|
359
|
+
const t8 = [];
|
|
360
|
+
for (const i10 of h5.getAttributeNames())
|
|
361
|
+
if (i10.endsWith(o3) || i10.startsWith(n3)) {
|
|
362
|
+
const s9 = f4[d5++];
|
|
363
|
+
if (t8.push(i10), void 0 !== s9) {
|
|
364
|
+
const t9 = h5.getAttribute(s9.toLowerCase() + o3).split(n3), i11 = /([.?@])?(.*)/.exec(s9);
|
|
365
|
+
v3.push({ type: 1, index: r8, name: i11[2], strings: t9, ctor: "." === i11[1] ? H : "?" === i11[1] ? L : "@" === i11[1] ? z : k });
|
|
372
366
|
} else
|
|
373
|
-
|
|
367
|
+
v3.push({ type: 6, index: r8 });
|
|
374
368
|
}
|
|
375
|
-
for (const
|
|
376
|
-
|
|
369
|
+
for (const i10 of t8)
|
|
370
|
+
h5.removeAttribute(i10);
|
|
377
371
|
}
|
|
378
|
-
if (y.test(
|
|
379
|
-
const
|
|
380
|
-
if (
|
|
381
|
-
|
|
382
|
-
for (let
|
|
383
|
-
|
|
384
|
-
|
|
372
|
+
if (y.test(h5.tagName)) {
|
|
373
|
+
const t8 = h5.textContent.split(n3), i10 = t8.length - 1;
|
|
374
|
+
if (i10 > 0) {
|
|
375
|
+
h5.textContent = s3 ? s3.emptyScript : "";
|
|
376
|
+
for (let s9 = 0; s9 < i10; s9++)
|
|
377
|
+
h5.append(t8[s9], u2()), C.nextNode(), v3.push({ type: 2, index: ++r8 });
|
|
378
|
+
h5.append(t8[i10], u2());
|
|
385
379
|
}
|
|
386
380
|
}
|
|
387
|
-
} else if (8 ===
|
|
388
|
-
if (
|
|
389
|
-
|
|
381
|
+
} else if (8 === h5.nodeType)
|
|
382
|
+
if (h5.data === l2)
|
|
383
|
+
v3.push({ type: 2, index: r8 });
|
|
390
384
|
else {
|
|
391
|
-
let
|
|
392
|
-
for (; -1 !== (
|
|
393
|
-
|
|
385
|
+
let t8 = -1;
|
|
386
|
+
for (; -1 !== (t8 = h5.data.indexOf(n3, t8 + 1)); )
|
|
387
|
+
v3.push({ type: 7, index: r8 }), t8 += n3.length - 1;
|
|
394
388
|
}
|
|
395
|
-
|
|
389
|
+
r8++;
|
|
396
390
|
}
|
|
397
391
|
}
|
|
398
|
-
static createElement(
|
|
399
|
-
const
|
|
400
|
-
return
|
|
392
|
+
static createElement(t7, i9) {
|
|
393
|
+
const s9 = r3.createElement("template");
|
|
394
|
+
return s9.innerHTML = t7, s9;
|
|
401
395
|
}
|
|
402
396
|
};
|
|
403
|
-
function S2(
|
|
404
|
-
var
|
|
405
|
-
if (
|
|
406
|
-
return
|
|
407
|
-
let
|
|
408
|
-
const
|
|
409
|
-
return (null ==
|
|
397
|
+
function S2(t7, i9, s9 = t7, e11) {
|
|
398
|
+
var o9, n10, l8, h5;
|
|
399
|
+
if (i9 === T)
|
|
400
|
+
return i9;
|
|
401
|
+
let r8 = void 0 !== e11 ? null === (o9 = s9._$Co) || void 0 === o9 ? void 0 : o9[e11] : s9._$Cl;
|
|
402
|
+
const u6 = d2(i9) ? void 0 : i9._$litDirective$;
|
|
403
|
+
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 = S2(t7, r8._$AS(t7, i9.values), r8, e11)), i9;
|
|
410
404
|
}
|
|
411
405
|
var M = class {
|
|
412
|
-
constructor(
|
|
413
|
-
this._$AV = [], this._$AN = void 0, this._$AD =
|
|
406
|
+
constructor(t7, i9) {
|
|
407
|
+
this._$AV = [], this._$AN = void 0, this._$AD = t7, this._$AM = i9;
|
|
414
408
|
}
|
|
415
409
|
get parentNode() {
|
|
416
410
|
return this._$AM.parentNode;
|
|
@@ -418,39 +412,39 @@
|
|
|
418
412
|
get _$AU() {
|
|
419
413
|
return this._$AM._$AU;
|
|
420
414
|
}
|
|
421
|
-
u(
|
|
422
|
-
var
|
|
423
|
-
const { el: { content:
|
|
424
|
-
C.currentNode =
|
|
425
|
-
let
|
|
426
|
-
for (; void 0 !==
|
|
427
|
-
if (
|
|
428
|
-
let
|
|
429
|
-
2 ===
|
|
415
|
+
u(t7) {
|
|
416
|
+
var i9;
|
|
417
|
+
const { el: { content: s9 }, parts: e11 } = this._$AD, o9 = (null !== (i9 = null == t7 ? void 0 : t7.creationScope) && void 0 !== i9 ? i9 : r3).importNode(s9, true);
|
|
418
|
+
C.currentNode = o9;
|
|
419
|
+
let n10 = C.nextNode(), l8 = 0, h5 = 0, u6 = e11[0];
|
|
420
|
+
for (; void 0 !== u6; ) {
|
|
421
|
+
if (l8 === u6.index) {
|
|
422
|
+
let i10;
|
|
423
|
+
2 === u6.type ? i10 = new R(n10, n10.nextSibling, this, t7) : 1 === u6.type ? i10 = new u6.ctor(n10, u6.name, u6.strings, this, t7) : 6 === u6.type && (i10 = new Z(n10, this, t7)), this._$AV.push(i10), u6 = e11[++h5];
|
|
430
424
|
}
|
|
431
|
-
|
|
425
|
+
l8 !== (null == u6 ? void 0 : u6.index) && (n10 = C.nextNode(), l8++);
|
|
432
426
|
}
|
|
433
|
-
return C.currentNode = r3,
|
|
427
|
+
return C.currentNode = r3, o9;
|
|
434
428
|
}
|
|
435
|
-
v(
|
|
436
|
-
let
|
|
437
|
-
for (const
|
|
438
|
-
void 0 !==
|
|
429
|
+
v(t7) {
|
|
430
|
+
let i9 = 0;
|
|
431
|
+
for (const s9 of this._$AV)
|
|
432
|
+
void 0 !== s9 && (void 0 !== s9.strings ? (s9._$AI(t7, s9, i9), i9 += s9.strings.length - 2) : s9._$AI(t7[i9])), i9++;
|
|
439
433
|
}
|
|
440
434
|
};
|
|
441
435
|
var R = class _R {
|
|
442
|
-
constructor(
|
|
443
|
-
var
|
|
444
|
-
this.type = 2, this._$AH = A, this._$AN = void 0, this._$AA =
|
|
436
|
+
constructor(t7, i9, s9, e11) {
|
|
437
|
+
var o9;
|
|
438
|
+
this.type = 2, this._$AH = A, 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;
|
|
445
439
|
}
|
|
446
440
|
get _$AU() {
|
|
447
|
-
var
|
|
448
|
-
return null !== (
|
|
441
|
+
var t7, i9;
|
|
442
|
+
return null !== (i9 = null === (t7 = this._$AM) || void 0 === t7 ? void 0 : t7._$AU) && void 0 !== i9 ? i9 : this._$Cp;
|
|
449
443
|
}
|
|
450
444
|
get parentNode() {
|
|
451
|
-
let
|
|
452
|
-
const
|
|
453
|
-
return void 0 !==
|
|
445
|
+
let t7 = this._$AA.parentNode;
|
|
446
|
+
const i9 = this._$AM;
|
|
447
|
+
return void 0 !== i9 && 11 === (null == t7 ? void 0 : t7.nodeType) && (t7 = i9.parentNode), t7;
|
|
454
448
|
}
|
|
455
449
|
get startNode() {
|
|
456
450
|
return this._$AA;
|
|
@@ -458,55 +452,55 @@
|
|
|
458
452
|
get endNode() {
|
|
459
453
|
return this._$AB;
|
|
460
454
|
}
|
|
461
|
-
_$AI(
|
|
462
|
-
|
|
455
|
+
_$AI(t7, i9 = this) {
|
|
456
|
+
t7 = S2(this, t7, i9), d2(t7) ? t7 === A || null == t7 || "" === t7 ? (this._$AH !== A && this._$AR(), this._$AH = A) : t7 !== this._$AH && t7 !== T && this._(t7) : void 0 !== t7._$litType$ ? this.g(t7) : void 0 !== t7.nodeType ? this.$(t7) : v(t7) ? this.T(t7) : this._(t7);
|
|
463
457
|
}
|
|
464
|
-
k(
|
|
465
|
-
return this._$AA.parentNode.insertBefore(
|
|
458
|
+
k(t7) {
|
|
459
|
+
return this._$AA.parentNode.insertBefore(t7, this._$AB);
|
|
466
460
|
}
|
|
467
|
-
$(
|
|
468
|
-
this._$AH !==
|
|
461
|
+
$(t7) {
|
|
462
|
+
this._$AH !== t7 && (this._$AR(), this._$AH = this.k(t7));
|
|
469
463
|
}
|
|
470
|
-
_(
|
|
471
|
-
this._$AH !== A && d2(this._$AH) ? this._$AA.nextSibling.data =
|
|
464
|
+
_(t7) {
|
|
465
|
+
this._$AH !== A && d2(this._$AH) ? this._$AA.nextSibling.data = t7 : this.$(r3.createTextNode(t7)), this._$AH = t7;
|
|
472
466
|
}
|
|
473
|
-
g(
|
|
474
|
-
var
|
|
475
|
-
const { values:
|
|
476
|
-
if ((null === (
|
|
477
|
-
this._$AH.v(
|
|
467
|
+
g(t7) {
|
|
468
|
+
var i9;
|
|
469
|
+
const { values: s9, _$litType$: e11 } = t7, o9 = "number" == typeof e11 ? this._$AC(t7) : (void 0 === e11.el && (e11.el = N.createElement(P(e11.h, e11.h[0]), this.options)), e11);
|
|
470
|
+
if ((null === (i9 = this._$AH) || void 0 === i9 ? void 0 : i9._$AD) === o9)
|
|
471
|
+
this._$AH.v(s9);
|
|
478
472
|
else {
|
|
479
|
-
const
|
|
480
|
-
|
|
473
|
+
const t8 = new M(o9, this), i10 = t8.u(this.options);
|
|
474
|
+
t8.v(s9), this.$(i10), this._$AH = t8;
|
|
481
475
|
}
|
|
482
476
|
}
|
|
483
|
-
_$AC(
|
|
484
|
-
let
|
|
485
|
-
return void 0 ===
|
|
477
|
+
_$AC(t7) {
|
|
478
|
+
let i9 = E.get(t7.strings);
|
|
479
|
+
return void 0 === i9 && E.set(t7.strings, i9 = new N(t7)), i9;
|
|
486
480
|
}
|
|
487
|
-
T(
|
|
481
|
+
T(t7) {
|
|
488
482
|
c2(this._$AH) || (this._$AH = [], this._$AR());
|
|
489
|
-
const
|
|
490
|
-
let
|
|
491
|
-
for (const
|
|
492
|
-
|
|
493
|
-
|
|
483
|
+
const i9 = this._$AH;
|
|
484
|
+
let s9, e11 = 0;
|
|
485
|
+
for (const o9 of t7)
|
|
486
|
+
e11 === i9.length ? i9.push(s9 = new _R(this.k(u2()), this.k(u2()), this, this.options)) : s9 = i9[e11], s9._$AI(o9), e11++;
|
|
487
|
+
e11 < i9.length && (this._$AR(s9 && s9._$AB.nextSibling, e11), i9.length = e11);
|
|
494
488
|
}
|
|
495
|
-
_$AR(
|
|
496
|
-
var
|
|
497
|
-
for (null === (
|
|
498
|
-
const
|
|
499
|
-
|
|
489
|
+
_$AR(t7 = this._$AA.nextSibling, i9) {
|
|
490
|
+
var s9;
|
|
491
|
+
for (null === (s9 = this._$AP) || void 0 === s9 || s9.call(this, false, true, i9); t7 && t7 !== this._$AB; ) {
|
|
492
|
+
const i10 = t7.nextSibling;
|
|
493
|
+
t7.remove(), t7 = i10;
|
|
500
494
|
}
|
|
501
495
|
}
|
|
502
|
-
setConnected(
|
|
503
|
-
var
|
|
504
|
-
void 0 === this._$AM && (this._$Cp =
|
|
496
|
+
setConnected(t7) {
|
|
497
|
+
var i9;
|
|
498
|
+
void 0 === this._$AM && (this._$Cp = t7, null === (i9 = this._$AP) || void 0 === i9 || i9.call(this, t7));
|
|
505
499
|
}
|
|
506
500
|
};
|
|
507
501
|
var k = class {
|
|
508
|
-
constructor(
|
|
509
|
-
this.type = 1, this._$AH = A, this._$AN = void 0, this.element =
|
|
502
|
+
constructor(t7, i9, s9, e11, o9) {
|
|
503
|
+
this.type = 1, this._$AH = A, 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 = A;
|
|
510
504
|
}
|
|
511
505
|
get tagName() {
|
|
512
506
|
return this.element.tagName;
|
|
@@ -514,29 +508,29 @@
|
|
|
514
508
|
get _$AU() {
|
|
515
509
|
return this._$AM._$AU;
|
|
516
510
|
}
|
|
517
|
-
_$AI(
|
|
518
|
-
const
|
|
519
|
-
let
|
|
520
|
-
if (void 0 ===
|
|
521
|
-
|
|
511
|
+
_$AI(t7, i9 = this, s9, e11) {
|
|
512
|
+
const o9 = this.strings;
|
|
513
|
+
let n10 = false;
|
|
514
|
+
if (void 0 === o9)
|
|
515
|
+
t7 = S2(this, t7, i9, 0), n10 = !d2(t7) || t7 !== this._$AH && t7 !== T, n10 && (this._$AH = t7);
|
|
522
516
|
else {
|
|
523
|
-
const
|
|
524
|
-
let
|
|
525
|
-
for (
|
|
526
|
-
|
|
517
|
+
const e12 = t7;
|
|
518
|
+
let l8, h5;
|
|
519
|
+
for (t7 = o9[0], l8 = 0; l8 < o9.length - 1; l8++)
|
|
520
|
+
h5 = S2(this, e12[s9 + l8], i9, l8), h5 === T && (h5 = this._$AH[l8]), n10 || (n10 = !d2(h5) || h5 !== this._$AH[l8]), h5 === A ? t7 = A : t7 !== A && (t7 += (null != h5 ? h5 : "") + o9[l8 + 1]), this._$AH[l8] = h5;
|
|
527
521
|
}
|
|
528
|
-
|
|
522
|
+
n10 && !e11 && this.j(t7);
|
|
529
523
|
}
|
|
530
|
-
j(
|
|
531
|
-
|
|
524
|
+
j(t7) {
|
|
525
|
+
t7 === A ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, null != t7 ? t7 : "");
|
|
532
526
|
}
|
|
533
527
|
};
|
|
534
528
|
var H = class extends k {
|
|
535
529
|
constructor() {
|
|
536
530
|
super(...arguments), this.type = 3;
|
|
537
531
|
}
|
|
538
|
-
j(
|
|
539
|
-
this.element[this.name] =
|
|
532
|
+
j(t7) {
|
|
533
|
+
this.element[this.name] = t7 === A ? void 0 : t7;
|
|
540
534
|
}
|
|
541
535
|
};
|
|
542
536
|
var I = s3 ? s3.emptyScript : "";
|
|
@@ -544,148 +538,692 @@
|
|
|
544
538
|
constructor() {
|
|
545
539
|
super(...arguments), this.type = 4;
|
|
546
540
|
}
|
|
547
|
-
j(
|
|
548
|
-
|
|
541
|
+
j(t7) {
|
|
542
|
+
t7 && t7 !== A ? this.element.setAttribute(this.name, I) : this.element.removeAttribute(this.name);
|
|
549
543
|
}
|
|
550
544
|
};
|
|
551
545
|
var z = class extends k {
|
|
552
|
-
constructor(
|
|
553
|
-
super(
|
|
546
|
+
constructor(t7, i9, s9, e11, o9) {
|
|
547
|
+
super(t7, i9, s9, e11, o9), this.type = 5;
|
|
554
548
|
}
|
|
555
|
-
_$AI(
|
|
556
|
-
var
|
|
557
|
-
if ((
|
|
549
|
+
_$AI(t7, i9 = this) {
|
|
550
|
+
var s9;
|
|
551
|
+
if ((t7 = null !== (s9 = S2(this, t7, i9, 0)) && void 0 !== s9 ? s9 : A) === T)
|
|
558
552
|
return;
|
|
559
|
-
const
|
|
560
|
-
|
|
553
|
+
const e11 = this._$AH, o9 = t7 === A && e11 !== A || t7.capture !== e11.capture || t7.once !== e11.once || t7.passive !== e11.passive, n10 = t7 !== A && (e11 === A || o9);
|
|
554
|
+
o9 && this.element.removeEventListener(this.name, this, e11), n10 && this.element.addEventListener(this.name, this, t7), this._$AH = t7;
|
|
561
555
|
}
|
|
562
|
-
handleEvent(
|
|
563
|
-
var
|
|
564
|
-
"function" == typeof this._$AH ? this._$AH.call(null !== (
|
|
556
|
+
handleEvent(t7) {
|
|
557
|
+
var i9, s9;
|
|
558
|
+
"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);
|
|
565
559
|
}
|
|
566
560
|
};
|
|
567
561
|
var Z = class {
|
|
568
|
-
constructor(
|
|
569
|
-
this.element =
|
|
562
|
+
constructor(t7, i9, s9) {
|
|
563
|
+
this.element = t7, this.type = 6, this._$AN = void 0, this._$AM = i9, this.options = s9;
|
|
570
564
|
}
|
|
571
565
|
get _$AU() {
|
|
572
566
|
return this._$AM._$AU;
|
|
573
567
|
}
|
|
574
|
-
_$AI(
|
|
575
|
-
S2(this,
|
|
568
|
+
_$AI(t7) {
|
|
569
|
+
S2(this, t7);
|
|
576
570
|
}
|
|
577
571
|
};
|
|
578
|
-
var j = { O: o3, P: n3, A: l2, C: 1, M: V, L: M,
|
|
572
|
+
var j = { O: o3, P: n3, A: l2, C: 1, M: V, L: M, R: v, D: S2, I: R, V: k, H: L, N: z, U: H, F: Z };
|
|
579
573
|
var B = i2.litHtmlPolyfillSupport;
|
|
580
|
-
null == B || B(N, R), (null !== (t2 = i2.litHtmlVersions) && void 0 !== t2 ? t2 : i2.litHtmlVersions = []).push("2.
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
574
|
+
null == B || B(N, R), (null !== (t2 = i2.litHtmlVersions) && void 0 !== t2 ? t2 : i2.litHtmlVersions = []).push("2.8.0");
|
|
575
|
+
|
|
576
|
+
// node_modules/lit-element/node_modules/@lit/reactive-element/css-tag.js
|
|
577
|
+
var t3 = window;
|
|
578
|
+
var e4 = t3.ShadowRoot && (void 0 === t3.ShadyCSS || t3.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype;
|
|
579
|
+
var s4 = Symbol();
|
|
580
|
+
var n4 = /* @__PURE__ */ new WeakMap();
|
|
581
|
+
var o4 = class {
|
|
582
|
+
constructor(t7, e11, n10) {
|
|
583
|
+
if (this._$cssResult$ = true, n10 !== s4)
|
|
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;
|
|
590
1128
|
};
|
|
591
1129
|
|
|
592
1130
|
// node_modules/lit-element/lit-element.js
|
|
593
|
-
var
|
|
594
|
-
var
|
|
595
|
-
var
|
|
1131
|
+
var l5;
|
|
1132
|
+
var o7;
|
|
1133
|
+
var s7 = class extends u3 {
|
|
596
1134
|
constructor() {
|
|
597
1135
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
598
1136
|
}
|
|
599
1137
|
createRenderRoot() {
|
|
600
|
-
var
|
|
601
|
-
const
|
|
602
|
-
return null !== (
|
|
1138
|
+
var t7, e11;
|
|
1139
|
+
const i9 = super.createRenderRoot();
|
|
1140
|
+
return null !== (t7 = (e11 = this.renderOptions).renderBefore) && void 0 !== t7 || (e11.renderBefore = i9.firstChild), i9;
|
|
603
1141
|
}
|
|
604
|
-
update(
|
|
605
|
-
const
|
|
606
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(
|
|
1142
|
+
update(t7) {
|
|
1143
|
+
const i9 = this.render();
|
|
1144
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t7), this._$Do = D(i9, this.renderRoot, this.renderOptions);
|
|
607
1145
|
}
|
|
608
1146
|
connectedCallback() {
|
|
609
|
-
var
|
|
610
|
-
super.connectedCallback(), null === (
|
|
1147
|
+
var t7;
|
|
1148
|
+
super.connectedCallback(), null === (t7 = this._$Do) || void 0 === t7 || t7.setConnected(true);
|
|
611
1149
|
}
|
|
612
1150
|
disconnectedCallback() {
|
|
613
|
-
var
|
|
614
|
-
super.disconnectedCallback(), null === (
|
|
1151
|
+
var t7;
|
|
1152
|
+
super.disconnectedCallback(), null === (t7 = this._$Do) || void 0 === t7 || t7.setConnected(false);
|
|
615
1153
|
}
|
|
616
1154
|
render() {
|
|
617
|
-
return
|
|
1155
|
+
return T2;
|
|
618
1156
|
}
|
|
619
1157
|
};
|
|
620
|
-
|
|
621
|
-
var
|
|
622
|
-
null ==
|
|
623
|
-
(null !== (
|
|
1158
|
+
s7.finalized = true, s7._$litElement$ = true, null === (l5 = globalThis.litElementHydrateSupport) || void 0 === l5 || l5.call(globalThis, { LitElement: s7 });
|
|
1159
|
+
var n7 = globalThis.litElementPolyfillSupport;
|
|
1160
|
+
null == n7 || n7({ LitElement: s7 });
|
|
1161
|
+
(null !== (o7 = globalThis.litElementVersions) && void 0 !== o7 ? o7 : globalThis.litElementVersions = []).push("3.3.3");
|
|
624
1162
|
|
|
625
|
-
// node_modules/@lit/reactive-element/decorators/custom-element.js
|
|
626
|
-
var
|
|
627
|
-
const { kind:
|
|
628
|
-
return { kind:
|
|
629
|
-
customElements.define(
|
|
1163
|
+
// node_modules/lit/node_modules/@lit/reactive-element/decorators/custom-element.js
|
|
1164
|
+
var e7 = (e11) => (n10) => "function" == typeof n10 ? ((e12, n11) => (customElements.define(e12, n11), n11))(e11, n10) : ((e12, n11) => {
|
|
1165
|
+
const { kind: t7, elements: s9 } = n11;
|
|
1166
|
+
return { kind: t7, elements: s9, finisher(n12) {
|
|
1167
|
+
customElements.define(e12, n12);
|
|
630
1168
|
} };
|
|
631
|
-
})(
|
|
1169
|
+
})(e11, n10);
|
|
632
1170
|
|
|
633
|
-
// node_modules/@lit/reactive-element/decorators/property.js
|
|
634
|
-
var
|
|
635
|
-
|
|
636
|
-
} } : { kind: "field", key: Symbol(), placement: "own", descriptor: {}, originalKey:
|
|
637
|
-
"function" == typeof
|
|
638
|
-
}, finisher(
|
|
639
|
-
|
|
1171
|
+
// node_modules/lit/node_modules/@lit/reactive-element/decorators/property.js
|
|
1172
|
+
var i5 = (i9, e11) => "method" === e11.kind && e11.descriptor && !("value" in e11.descriptor) ? { ...e11, finisher(n10) {
|
|
1173
|
+
n10.createProperty(e11.key, i9);
|
|
1174
|
+
} } : { kind: "field", key: Symbol(), placement: "own", descriptor: {}, originalKey: e11.key, initializer() {
|
|
1175
|
+
"function" == typeof e11.initializer && (this[e11.key] = e11.initializer.call(this));
|
|
1176
|
+
}, finisher(n10) {
|
|
1177
|
+
n10.createProperty(e11.key, i9);
|
|
640
1178
|
} };
|
|
641
|
-
var
|
|
642
|
-
|
|
1179
|
+
var e8 = (i9, e11, n10) => {
|
|
1180
|
+
e11.constructor.createProperty(n10, i9);
|
|
643
1181
|
};
|
|
644
|
-
function
|
|
645
|
-
return (
|
|
1182
|
+
function n8(n10) {
|
|
1183
|
+
return (t7, o9) => void 0 !== o9 ? e8(n10, t7, o9) : i5(n10, t7);
|
|
646
1184
|
}
|
|
647
1185
|
|
|
648
|
-
// node_modules/@lit/reactive-element/decorators/state.js
|
|
649
|
-
function
|
|
650
|
-
return
|
|
1186
|
+
// node_modules/lit/node_modules/@lit/reactive-element/decorators/state.js
|
|
1187
|
+
function t5(t7) {
|
|
1188
|
+
return n8({ ...t7, state: true });
|
|
651
1189
|
}
|
|
652
1190
|
|
|
653
|
-
// node_modules/@lit/reactive-element/decorators/base.js
|
|
654
|
-
var
|
|
655
|
-
var
|
|
656
|
-
if (void 0 ===
|
|
657
|
-
const
|
|
658
|
-
return null !=
|
|
659
|
-
|
|
660
|
-
}),
|
|
1191
|
+
// node_modules/lit/node_modules/@lit/reactive-element/decorators/base.js
|
|
1192
|
+
var o8 = ({ finisher: e11, descriptor: t7 }) => (o9, n10) => {
|
|
1193
|
+
var r8;
|
|
1194
|
+
if (void 0 === n10) {
|
|
1195
|
+
const n11 = null !== (r8 = o9.originalKey) && void 0 !== r8 ? r8 : o9.key, i9 = null != t7 ? { kind: "method", placement: "prototype", key: n11, descriptor: t7(o9.key) } : { ...o9, key: n11 };
|
|
1196
|
+
return null != e11 && (i9.finisher = function(t8) {
|
|
1197
|
+
e11(t8, n11);
|
|
1198
|
+
}), i9;
|
|
661
1199
|
}
|
|
662
1200
|
{
|
|
663
|
-
const
|
|
664
|
-
void 0 !==
|
|
1201
|
+
const r9 = o9.constructor;
|
|
1202
|
+
void 0 !== t7 && Object.defineProperty(o9, n10, t7(n10)), null == e11 || e11(r9, n10);
|
|
665
1203
|
}
|
|
666
1204
|
};
|
|
667
1205
|
|
|
668
|
-
// node_modules/@lit/reactive-element/decorators/query.js
|
|
669
|
-
function
|
|
670
|
-
return
|
|
671
|
-
const
|
|
672
|
-
var
|
|
673
|
-
return null !== (
|
|
1206
|
+
// node_modules/lit/node_modules/@lit/reactive-element/decorators/query.js
|
|
1207
|
+
function i6(i9, n10) {
|
|
1208
|
+
return o8({ descriptor: (o9) => {
|
|
1209
|
+
const t7 = { get() {
|
|
1210
|
+
var o10, n11;
|
|
1211
|
+
return null !== (n11 = null === (o10 = this.renderRoot) || void 0 === o10 ? void 0 : o10.querySelector(i9)) && void 0 !== n11 ? n11 : null;
|
|
674
1212
|
}, enumerable: true, configurable: true };
|
|
675
|
-
if (
|
|
676
|
-
const
|
|
677
|
-
|
|
678
|
-
var
|
|
679
|
-
return void 0 === this[
|
|
1213
|
+
if (n10) {
|
|
1214
|
+
const n11 = "symbol" == typeof o9 ? Symbol() : "__" + o9;
|
|
1215
|
+
t7.get = function() {
|
|
1216
|
+
var o10, t8;
|
|
1217
|
+
return void 0 === this[n11] && (this[n11] = null !== (t8 = null === (o10 = this.renderRoot) || void 0 === o10 ? void 0 : o10.querySelector(i9)) && void 0 !== t8 ? t8 : null), this[n11];
|
|
680
1218
|
};
|
|
681
1219
|
}
|
|
682
|
-
return
|
|
1220
|
+
return t7;
|
|
683
1221
|
} });
|
|
684
1222
|
}
|
|
685
1223
|
|
|
686
|
-
// node_modules/@lit/reactive-element/decorators/query-assigned-elements.js
|
|
687
|
-
var
|
|
688
|
-
var
|
|
1224
|
+
// node_modules/lit/node_modules/@lit/reactive-element/decorators/query-assigned-elements.js
|
|
1225
|
+
var n9;
|
|
1226
|
+
var e9 = null != (null === (n9 = window.HTMLSlotElement) || void 0 === n9 ? void 0 : n9.prototype.assignedElements) ? (o9, n10) => o9.assignedElements(n10) : (o9, n10) => o9.assignedNodes(n10).filter((o10) => o10.nodeType === Node.ELEMENT_NODE);
|
|
689
1227
|
|
|
690
1228
|
// node_modules/json-joy/esm/json-clone/clone.js
|
|
691
1229
|
var { isArray } = Array;
|
|
@@ -696,15 +1234,15 @@
|
|
|
696
1234
|
if (isArray(obj)) {
|
|
697
1235
|
const arr = [];
|
|
698
1236
|
const length = obj.length;
|
|
699
|
-
for (let
|
|
700
|
-
arr.push(clone(obj[
|
|
1237
|
+
for (let i9 = 0; i9 < length; i9++)
|
|
1238
|
+
arr.push(clone(obj[i9]));
|
|
701
1239
|
return arr;
|
|
702
1240
|
} else if (typeof obj === "object") {
|
|
703
1241
|
const keys = objectKeys(obj);
|
|
704
1242
|
const length = keys.length;
|
|
705
1243
|
const newObject = {};
|
|
706
|
-
for (let
|
|
707
|
-
const key = keys[
|
|
1244
|
+
for (let i9 = 0; i9 < length; i9++) {
|
|
1245
|
+
const key = keys[i9];
|
|
708
1246
|
newObject[key] = clone(obj[key]);
|
|
709
1247
|
}
|
|
710
1248
|
return newObject;
|
|
@@ -725,7 +1263,7 @@
|
|
|
725
1263
|
var r1 = /~1/g;
|
|
726
1264
|
var r22 = /~0/g;
|
|
727
1265
|
var r32 = /~/g;
|
|
728
|
-
var
|
|
1266
|
+
var r42 = /\//g;
|
|
729
1267
|
function unescapeComponent(component) {
|
|
730
1268
|
if (component.indexOf("~") === -1)
|
|
731
1269
|
return component;
|
|
@@ -734,7 +1272,7 @@
|
|
|
734
1272
|
function escapeComponent(component) {
|
|
735
1273
|
if (component.indexOf("/") === -1 && component.indexOf("~") === -1)
|
|
736
1274
|
return component;
|
|
737
|
-
return component.replace(r32, "~0").replace(
|
|
1275
|
+
return component.replace(r32, "~0").replace(r42, "~1");
|
|
738
1276
|
}
|
|
739
1277
|
function parseJsonPointer(pointer) {
|
|
740
1278
|
if (!pointer)
|
|
@@ -766,9 +1304,9 @@
|
|
|
766
1304
|
return { val };
|
|
767
1305
|
let obj;
|
|
768
1306
|
let key;
|
|
769
|
-
for (let
|
|
1307
|
+
for (let i9 = 0; i9 < pathLength; i9++) {
|
|
770
1308
|
obj = val;
|
|
771
|
-
key = path[
|
|
1309
|
+
key = path[i9];
|
|
772
1310
|
if (isArray3(obj)) {
|
|
773
1311
|
const length = obj.length;
|
|
774
1312
|
if (key === "-")
|
|
@@ -1036,29 +1574,29 @@
|
|
|
1036
1574
|
};
|
|
1037
1575
|
|
|
1038
1576
|
// node_modules/json-joy/esm/json-equal/deepEqual/v1.js
|
|
1039
|
-
var deepEqual = (
|
|
1040
|
-
if (
|
|
1577
|
+
var deepEqual = (a6, b3) => {
|
|
1578
|
+
if (a6 === b3)
|
|
1041
1579
|
return true;
|
|
1042
|
-
if (
|
|
1043
|
-
if (
|
|
1580
|
+
if (a6 && b3 && typeof a6 === "object" && typeof b3 === "object") {
|
|
1581
|
+
if (a6.constructor !== b3.constructor)
|
|
1044
1582
|
return false;
|
|
1045
|
-
let length,
|
|
1046
|
-
if (Array.isArray(
|
|
1047
|
-
length =
|
|
1048
|
-
if (length !==
|
|
1583
|
+
let length, i9, keys;
|
|
1584
|
+
if (Array.isArray(a6)) {
|
|
1585
|
+
length = a6.length;
|
|
1586
|
+
if (length !== b3.length)
|
|
1049
1587
|
return false;
|
|
1050
|
-
for (
|
|
1051
|
-
if (!deepEqual(
|
|
1588
|
+
for (i9 = length; i9-- !== 0; )
|
|
1589
|
+
if (!deepEqual(a6[i9], b3[i9]))
|
|
1052
1590
|
return false;
|
|
1053
1591
|
return true;
|
|
1054
1592
|
}
|
|
1055
|
-
keys = Object.keys(
|
|
1593
|
+
keys = Object.keys(a6);
|
|
1056
1594
|
length = keys.length;
|
|
1057
|
-
if (length !== Object.keys(
|
|
1595
|
+
if (length !== Object.keys(b3).length)
|
|
1058
1596
|
return false;
|
|
1059
|
-
for (
|
|
1060
|
-
const key = keys[
|
|
1061
|
-
if (!deepEqual(
|
|
1597
|
+
for (i9 = length; i9-- !== 0; ) {
|
|
1598
|
+
const key = keys[i9];
|
|
1599
|
+
if (!deepEqual(a6[key], b3[key]))
|
|
1062
1600
|
return false;
|
|
1063
1601
|
}
|
|
1064
1602
|
return true;
|
|
@@ -1540,14 +2078,14 @@
|
|
|
1540
2078
|
return value;
|
|
1541
2079
|
if (!value)
|
|
1542
2080
|
return value;
|
|
1543
|
-
for (const [key,
|
|
2081
|
+
for (const [key, v3] of Object.entries(this.props)) {
|
|
1544
2082
|
if (key === "__proto__")
|
|
1545
2083
|
throw new Error("NO_PROTO");
|
|
1546
|
-
if (
|
|
2084
|
+
if (v3 === null && this.deleteNull) {
|
|
1547
2085
|
delete value[key];
|
|
1548
2086
|
continue;
|
|
1549
2087
|
}
|
|
1550
|
-
value[key] =
|
|
2088
|
+
value[key] = v3;
|
|
1551
2089
|
}
|
|
1552
2090
|
return value;
|
|
1553
2091
|
}
|
|
@@ -1960,8 +2498,8 @@
|
|
|
1960
2498
|
}
|
|
1961
2499
|
test(doc) {
|
|
1962
2500
|
const { val } = find(doc, this.path);
|
|
1963
|
-
for (const
|
|
1964
|
-
if (deepEqual(val,
|
|
2501
|
+
for (const x3 of this.value)
|
|
2502
|
+
if (deepEqual(val, x3))
|
|
1965
2503
|
return true;
|
|
1966
2504
|
return false;
|
|
1967
2505
|
}
|
|
@@ -2116,8 +2654,8 @@
|
|
|
2116
2654
|
encoder.encodeArray(path);
|
|
2117
2655
|
const length = this.ops.length;
|
|
2118
2656
|
encoder.encodeArrayHeader(length);
|
|
2119
|
-
for (let
|
|
2120
|
-
this.ops[
|
|
2657
|
+
for (let i9 = 0; i9 < length; i9++)
|
|
2658
|
+
this.ops[i9].encode(encoder, this);
|
|
2121
2659
|
}
|
|
2122
2660
|
};
|
|
2123
2661
|
|
|
@@ -2162,8 +2700,8 @@
|
|
|
2162
2700
|
encoder.encodeArray(parent ? this.path.slice(parent.path.length) : this.path);
|
|
2163
2701
|
const length = this.ops.length;
|
|
2164
2702
|
encoder.encodeArrayHeader(length);
|
|
2165
|
-
for (let
|
|
2166
|
-
this.ops[
|
|
2703
|
+
for (let i9 = 0; i9 < length; i9++)
|
|
2704
|
+
this.ops[i9].encode(encoder, this);
|
|
2167
2705
|
}
|
|
2168
2706
|
};
|
|
2169
2707
|
|
|
@@ -2208,8 +2746,8 @@
|
|
|
2208
2746
|
encoder.encodeArray(parent ? this.path.slice(parent.path.length) : this.path);
|
|
2209
2747
|
const length = this.ops.length;
|
|
2210
2748
|
encoder.encodeArrayHeader(length);
|
|
2211
|
-
for (let
|
|
2212
|
-
this.ops[
|
|
2749
|
+
for (let i9 = 0; i9 < length; i9++)
|
|
2750
|
+
this.ops[i9].encode(encoder, this);
|
|
2213
2751
|
}
|
|
2214
2752
|
};
|
|
2215
2753
|
|
|
@@ -2371,15 +2909,15 @@
|
|
|
2371
2909
|
return new OpMore(toPath(op.path), op.value);
|
|
2372
2910
|
case "and": {
|
|
2373
2911
|
const path = toPath(op.path);
|
|
2374
|
-
return new OpAnd(path, op.apply.map((
|
|
2912
|
+
return new OpAnd(path, op.apply.map((x3) => operationToPredicateOp({ ...x3, path: [...path, ...toPath(x3.path)] }, options)));
|
|
2375
2913
|
}
|
|
2376
2914
|
case "or": {
|
|
2377
2915
|
const path = toPath(op.path);
|
|
2378
|
-
return new OpOr(path, op.apply.map((
|
|
2916
|
+
return new OpOr(path, op.apply.map((x3) => operationToPredicateOp({ ...x3, path: [...path, ...toPath(x3.path)] }, options)));
|
|
2379
2917
|
}
|
|
2380
2918
|
case "not": {
|
|
2381
2919
|
const path = toPath(op.path);
|
|
2382
|
-
return new OpNot(path, op.apply.map((
|
|
2920
|
+
return new OpNot(path, op.apply.map((x3) => operationToPredicateOp({ ...x3, path: [...path, ...toPath(x3.path)] }, options)));
|
|
2383
2921
|
}
|
|
2384
2922
|
default:
|
|
2385
2923
|
throw new Error("OP_UNKNOWN");
|
|
@@ -2392,8 +2930,8 @@
|
|
|
2392
2930
|
doc = clone(doc);
|
|
2393
2931
|
const res = [];
|
|
2394
2932
|
const length = patch.length;
|
|
2395
|
-
for (let
|
|
2396
|
-
const op = operationToOp(patch[
|
|
2933
|
+
for (let i9 = 0; i9 < length; i9++) {
|
|
2934
|
+
const op = operationToOp(patch[i9], options);
|
|
2397
2935
|
const opResult = op.apply(doc);
|
|
2398
2936
|
doc = opResult.doc;
|
|
2399
2937
|
res.push(opResult);
|
|
@@ -2487,7 +3025,7 @@
|
|
|
2487
3025
|
this.sent = false;
|
|
2488
3026
|
}
|
|
2489
3027
|
matchReceive({ status, response, _ref }) {
|
|
2490
|
-
this.recHooks.filter((
|
|
3028
|
+
this.recHooks.filter((h5) => h5.status === status).forEach((h5) => h5.callback(response));
|
|
2491
3029
|
}
|
|
2492
3030
|
cancelRefEvent() {
|
|
2493
3031
|
if (!this.refEvent) {
|
|
@@ -2705,8 +3243,8 @@
|
|
|
2705
3243
|
throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");
|
|
2706
3244
|
}
|
|
2707
3245
|
let eventBindings = this.bindings.filter((bind) => bind.event === event);
|
|
2708
|
-
for (let
|
|
2709
|
-
let bind = eventBindings[
|
|
3246
|
+
for (let i9 = 0; i9 < eventBindings.length; i9++) {
|
|
3247
|
+
let bind = eventBindings[i9];
|
|
2710
3248
|
bind.callback(handledPayload, ref, joinRef || this.joinRef());
|
|
2711
3249
|
}
|
|
2712
3250
|
}
|
|
@@ -2777,7 +3315,7 @@
|
|
|
2777
3315
|
}
|
|
2778
3316
|
try {
|
|
2779
3317
|
return JSON.parse(resp);
|
|
2780
|
-
} catch (
|
|
3318
|
+
} catch (e11) {
|
|
2781
3319
|
console && console.log("failed to parse JSON response", resp);
|
|
2782
3320
|
return null;
|
|
2783
3321
|
}
|
|
@@ -3291,7 +3829,7 @@
|
|
|
3291
3829
|
}
|
|
3292
3830
|
remove(channel) {
|
|
3293
3831
|
this.off(channel.stateChangeRefs);
|
|
3294
|
-
this.channels = this.channels.filter((
|
|
3832
|
+
this.channels = this.channels.filter((c7) => c7.joinRef() !== channel.joinRef());
|
|
3295
3833
|
}
|
|
3296
3834
|
off(refs) {
|
|
3297
3835
|
for (let key in this.stateChangeCallbacks) {
|
|
@@ -3349,21 +3887,21 @@
|
|
|
3349
3887
|
}
|
|
3350
3888
|
if (this.hasLogger())
|
|
3351
3889
|
this.log("receive", `${payload.status || ""} ${topic} ${event} ${ref && "(" + ref + ")" || ""}`, payload);
|
|
3352
|
-
for (let
|
|
3353
|
-
const channel = this.channels[
|
|
3890
|
+
for (let i9 = 0; i9 < this.channels.length; i9++) {
|
|
3891
|
+
const channel = this.channels[i9];
|
|
3354
3892
|
if (!channel.isMember(topic, event, payload, join_ref)) {
|
|
3355
3893
|
continue;
|
|
3356
3894
|
}
|
|
3357
3895
|
channel.trigger(event, payload, ref, join_ref);
|
|
3358
3896
|
}
|
|
3359
|
-
for (let
|
|
3360
|
-
let [, callback] = this.stateChangeCallbacks.message[
|
|
3897
|
+
for (let i9 = 0; i9 < this.stateChangeCallbacks.message.length; i9++) {
|
|
3898
|
+
let [, callback] = this.stateChangeCallbacks.message[i9];
|
|
3361
3899
|
callback(msg);
|
|
3362
3900
|
}
|
|
3363
3901
|
});
|
|
3364
3902
|
}
|
|
3365
3903
|
leaveOpenTopic(topic) {
|
|
3366
|
-
let dupChannel = this.channels.find((
|
|
3904
|
+
let dupChannel = this.channels.find((c7) => c7.topic === topic && (c7.isJoined() || c7.isJoining()));
|
|
3367
3905
|
if (dupChannel) {
|
|
3368
3906
|
if (this.hasLogger())
|
|
3369
3907
|
this.log("transport", `leaving duplicate topic "${topic}"`);
|
|
@@ -3377,7 +3915,7 @@
|
|
|
3377
3915
|
constructor(config) {
|
|
3378
3916
|
this.connected = false;
|
|
3379
3917
|
this.config = config;
|
|
3380
|
-
this.socket = new Socket(this.config.url, { logger: (kind, msg, data) => {
|
|
3918
|
+
this.socket = new Socket(this.config.url, this.config.socketOptions || { logger: (kind, msg, data) => {
|
|
3381
3919
|
console.log(`${kind}: ${msg}`, data);
|
|
3382
3920
|
} });
|
|
3383
3921
|
this.channel = this.socket.channel(this.config.topic, this.config.params);
|
|
@@ -3386,13 +3924,13 @@
|
|
|
3386
3924
|
/** connect to socket and join channel. will do nothing if already connected */
|
|
3387
3925
|
connect() {
|
|
3388
3926
|
if (!this.connected) {
|
|
3389
|
-
this.socket.onError((
|
|
3927
|
+
this.socket.onError((e11) => this.emitError("socket error", e11));
|
|
3390
3928
|
this.socket.connect();
|
|
3391
|
-
this.channel.onError((
|
|
3929
|
+
this.channel.onError((e11) => console.log("channel error", e11));
|
|
3392
3930
|
this.channel.join().receive("ok", () => {
|
|
3393
3931
|
console.log("joined");
|
|
3394
|
-
}).receive("error", (
|
|
3395
|
-
this.emitError("channel join error",
|
|
3932
|
+
}).receive("error", (e11) => {
|
|
3933
|
+
this.emitError("channel join error", e11);
|
|
3396
3934
|
});
|
|
3397
3935
|
this.channel.on("state:change", (state) => this.handleChange(state));
|
|
3398
3936
|
this.channel.on("state:patch", (patch) => this.handlePatch(patch));
|
|
@@ -3484,7 +4022,7 @@
|
|
|
3484
4022
|
var connectElement = (liveState2, el, { properties, attributes, events }) => {
|
|
3485
4023
|
if (el["liveState"] !== liveState2) {
|
|
3486
4024
|
liveState2.connect();
|
|
3487
|
-
properties?.forEach((
|
|
4025
|
+
properties?.forEach((p4) => connectProperty(liveState2, el, p4));
|
|
3488
4026
|
attributes?.forEach((attr) => connectAtttribute(liveState2, el, attr));
|
|
3489
4027
|
events?.send?.forEach((eventName) => sendEvent(liveState2, el, eventName));
|
|
3490
4028
|
events?.receive?.forEach((eventName) => receiveEvent(liveState2, el, eventName));
|
|
@@ -3515,6 +4053,7 @@
|
|
|
3515
4053
|
var connectElement_default = connectElement;
|
|
3516
4054
|
|
|
3517
4055
|
// node_modules/wc-context/core.js
|
|
4056
|
+
var noContext = Symbol("noContext");
|
|
3518
4057
|
var orphanMap = {};
|
|
3519
4058
|
var resolved = Promise.resolve();
|
|
3520
4059
|
var orphanResolveQueue = {
|
|
@@ -3528,11 +4067,9 @@
|
|
|
3528
4067
|
this.contexts.forEach((context2) => {
|
|
3529
4068
|
const orphans = orphanMap[context2];
|
|
3530
4069
|
orphans.forEach(({ setter, payload }, orphan) => {
|
|
3531
|
-
const
|
|
3532
|
-
|
|
3533
|
-
if (provider) {
|
|
4070
|
+
const handled = sendContextEvent(orphan, context2, payload, setter);
|
|
4071
|
+
if (handled) {
|
|
3534
4072
|
orphans.delete(orphan);
|
|
3535
|
-
registerProvider(orphan, context2, provider);
|
|
3536
4073
|
}
|
|
3537
4074
|
});
|
|
3538
4075
|
});
|
|
@@ -3546,15 +4083,30 @@
|
|
|
3546
4083
|
const orphans = orphanMap[name] || (orphanMap[name] = /* @__PURE__ */ new Map());
|
|
3547
4084
|
orphans.set(el, { setter, payload });
|
|
3548
4085
|
}
|
|
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
|
+
};
|
|
3549
4098
|
function sendContextEvent(consumer, context, payload, setter) {
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
4099
|
+
let handled;
|
|
4100
|
+
const callback = (value, unsubscribe) => {
|
|
4101
|
+
if (!handled) {
|
|
4102
|
+
registerProvider(consumer, context, unsubscribe);
|
|
4103
|
+
}
|
|
4104
|
+
setter(consumer, value, payload);
|
|
4105
|
+
handled = true;
|
|
4106
|
+
};
|
|
4107
|
+
const event = new ContextRequestEvent(context, callback, true);
|
|
3556
4108
|
consumer.dispatchEvent(event);
|
|
3557
|
-
return
|
|
4109
|
+
return handled;
|
|
3558
4110
|
}
|
|
3559
4111
|
function getProviderValue(provider, { getter, payload }) {
|
|
3560
4112
|
return getter(provider, payload);
|
|
@@ -3568,14 +4120,30 @@
|
|
|
3568
4120
|
providedContexts[context] = { getter, payload };
|
|
3569
4121
|
const observers = observerMap[context] || (observerMap[context] = []);
|
|
3570
4122
|
const orphans = orphanMap[context];
|
|
3571
|
-
provider.addEventListener(`context-request
|
|
4123
|
+
provider.addEventListener(`context-request`, (event) => {
|
|
4124
|
+
const { target, callback, subscribe: subscribe3 } = event;
|
|
4125
|
+
if (event.context !== context || typeof callback !== "function") {
|
|
4126
|
+
return;
|
|
4127
|
+
}
|
|
3572
4128
|
event.stopPropagation();
|
|
3573
4129
|
const value = getProviderValue(provider, providedContexts[context]);
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
4130
|
+
if (subscribe3 || value === noContext) {
|
|
4131
|
+
const unsubscribe = () => {
|
|
4132
|
+
removeObserver(provider, context, target);
|
|
4133
|
+
};
|
|
4134
|
+
observers.push({
|
|
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
|
+
}
|
|
3579
4147
|
});
|
|
3580
4148
|
if (orphans && orphans.size) {
|
|
3581
4149
|
orphanResolveQueue.add(context);
|
|
@@ -3614,14 +4182,22 @@
|
|
|
3614
4182
|
providerMap[context] = provider;
|
|
3615
4183
|
}
|
|
3616
4184
|
function observeContext(consumer, context, payload = context, setter = consumerSetter) {
|
|
3617
|
-
const
|
|
3618
|
-
|
|
3619
|
-
if (provider) {
|
|
3620
|
-
registerProvider(consumer, context, provider);
|
|
3621
|
-
} else {
|
|
4185
|
+
const handled = sendContextEvent(consumer, context, payload, setter);
|
|
4186
|
+
if (!handled) {
|
|
3622
4187
|
addOrphan(consumer, context, payload, setter);
|
|
3623
4188
|
}
|
|
3624
4189
|
}
|
|
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
|
+
}
|
|
3625
4201
|
|
|
3626
4202
|
// node_modules/reflect-metadata/Reflect.js
|
|
3627
4203
|
var Reflect2;
|
|
@@ -3673,7 +4249,7 @@
|
|
|
3673
4249
|
}
|
|
3674
4250
|
};
|
|
3675
4251
|
var functionPrototype = Object.getPrototypeOf(Function);
|
|
3676
|
-
var usePolyfill = typeof process === "object" && process
|
|
4252
|
+
var usePolyfill = typeof process === "object" && process["env"] && process["env"]["REFLECT_METADATA_USE_MAP_POLYFILL"] === "true";
|
|
3677
4253
|
var _Map = !usePolyfill && typeof Map === "function" && typeof Map.prototype.entries === "function" ? Map : CreateMapPolyfill();
|
|
3678
4254
|
var _Set = !usePolyfill && typeof Set === "function" && typeof Set.prototype.entries === "function" ? Set : CreateSetPolyfill();
|
|
3679
4255
|
var _WeakMap = !usePolyfill && typeof WeakMap === "function" ? WeakMap : CreateWeakMapPolyfill();
|
|
@@ -3792,8 +4368,8 @@
|
|
|
3792
4368
|
}
|
|
3793
4369
|
exporter("deleteMetadata", deleteMetadata);
|
|
3794
4370
|
function DecorateConstructor(decorators, target) {
|
|
3795
|
-
for (var
|
|
3796
|
-
var decorator = decorators[
|
|
4371
|
+
for (var i9 = decorators.length - 1; i9 >= 0; --i9) {
|
|
4372
|
+
var decorator = decorators[i9];
|
|
3797
4373
|
var decorated = decorator(target);
|
|
3798
4374
|
if (!IsUndefined(decorated) && !IsNull(decorated)) {
|
|
3799
4375
|
if (!IsConstructor(decorated))
|
|
@@ -3804,8 +4380,8 @@
|
|
|
3804
4380
|
return target;
|
|
3805
4381
|
}
|
|
3806
4382
|
function DecorateProperty(decorators, target, propertyKey, descriptor) {
|
|
3807
|
-
for (var
|
|
3808
|
-
var decorator = decorators[
|
|
4383
|
+
for (var i9 = decorators.length - 1; i9 >= 0; --i9) {
|
|
4384
|
+
var decorator = decorators[i9];
|
|
3809
4385
|
var decorated = decorator(target, propertyKey, descriptor);
|
|
3810
4386
|
if (!IsUndefined(decorated) && !IsNull(decorated)) {
|
|
3811
4387
|
if (!IsObject(decorated))
|
|
@@ -3815,7 +4391,7 @@
|
|
|
3815
4391
|
}
|
|
3816
4392
|
return descriptor;
|
|
3817
4393
|
}
|
|
3818
|
-
function GetOrCreateMetadataMap(O,
|
|
4394
|
+
function GetOrCreateMetadataMap(O, P3, Create) {
|
|
3819
4395
|
var targetMetadata = Metadata.get(O);
|
|
3820
4396
|
if (IsUndefined(targetMetadata)) {
|
|
3821
4397
|
if (!Create)
|
|
@@ -3823,28 +4399,28 @@
|
|
|
3823
4399
|
targetMetadata = new _Map();
|
|
3824
4400
|
Metadata.set(O, targetMetadata);
|
|
3825
4401
|
}
|
|
3826
|
-
var metadataMap = targetMetadata.get(
|
|
4402
|
+
var metadataMap = targetMetadata.get(P3);
|
|
3827
4403
|
if (IsUndefined(metadataMap)) {
|
|
3828
4404
|
if (!Create)
|
|
3829
4405
|
return void 0;
|
|
3830
4406
|
metadataMap = new _Map();
|
|
3831
|
-
targetMetadata.set(
|
|
4407
|
+
targetMetadata.set(P3, metadataMap);
|
|
3832
4408
|
}
|
|
3833
4409
|
return metadataMap;
|
|
3834
4410
|
}
|
|
3835
|
-
function OrdinaryHasMetadata(MetadataKey, O,
|
|
3836
|
-
var hasOwn2 = OrdinaryHasOwnMetadata(MetadataKey, O,
|
|
4411
|
+
function OrdinaryHasMetadata(MetadataKey, O, P3) {
|
|
4412
|
+
var hasOwn2 = OrdinaryHasOwnMetadata(MetadataKey, O, P3);
|
|
3837
4413
|
if (hasOwn2)
|
|
3838
4414
|
return true;
|
|
3839
4415
|
var parent = OrdinaryGetPrototypeOf(O);
|
|
3840
4416
|
if (!IsNull(parent))
|
|
3841
|
-
return OrdinaryHasMetadata(MetadataKey, parent,
|
|
4417
|
+
return OrdinaryHasMetadata(MetadataKey, parent, P3);
|
|
3842
4418
|
return false;
|
|
3843
4419
|
}
|
|
3844
|
-
function OrdinaryHasOwnMetadata(MetadataKey, O,
|
|
4420
|
+
function OrdinaryHasOwnMetadata(MetadataKey, O, P3) {
|
|
3845
4421
|
var metadataMap = GetOrCreateMetadataMap(
|
|
3846
4422
|
O,
|
|
3847
|
-
|
|
4423
|
+
P3,
|
|
3848
4424
|
/*Create*/
|
|
3849
4425
|
false
|
|
3850
4426
|
);
|
|
@@ -3852,19 +4428,19 @@
|
|
|
3852
4428
|
return false;
|
|
3853
4429
|
return ToBoolean(metadataMap.has(MetadataKey));
|
|
3854
4430
|
}
|
|
3855
|
-
function OrdinaryGetMetadata(MetadataKey, O,
|
|
3856
|
-
var hasOwn2 = OrdinaryHasOwnMetadata(MetadataKey, O,
|
|
4431
|
+
function OrdinaryGetMetadata(MetadataKey, O, P3) {
|
|
4432
|
+
var hasOwn2 = OrdinaryHasOwnMetadata(MetadataKey, O, P3);
|
|
3857
4433
|
if (hasOwn2)
|
|
3858
|
-
return OrdinaryGetOwnMetadata(MetadataKey, O,
|
|
4434
|
+
return OrdinaryGetOwnMetadata(MetadataKey, O, P3);
|
|
3859
4435
|
var parent = OrdinaryGetPrototypeOf(O);
|
|
3860
4436
|
if (!IsNull(parent))
|
|
3861
|
-
return OrdinaryGetMetadata(MetadataKey, parent,
|
|
4437
|
+
return OrdinaryGetMetadata(MetadataKey, parent, P3);
|
|
3862
4438
|
return void 0;
|
|
3863
4439
|
}
|
|
3864
|
-
function OrdinaryGetOwnMetadata(MetadataKey, O,
|
|
4440
|
+
function OrdinaryGetOwnMetadata(MetadataKey, O, P3) {
|
|
3865
4441
|
var metadataMap = GetOrCreateMetadataMap(
|
|
3866
4442
|
O,
|
|
3867
|
-
|
|
4443
|
+
P3,
|
|
3868
4444
|
/*Create*/
|
|
3869
4445
|
false
|
|
3870
4446
|
);
|
|
@@ -3872,28 +4448,28 @@
|
|
|
3872
4448
|
return void 0;
|
|
3873
4449
|
return metadataMap.get(MetadataKey);
|
|
3874
4450
|
}
|
|
3875
|
-
function OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O,
|
|
4451
|
+
function OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P3) {
|
|
3876
4452
|
var metadataMap = GetOrCreateMetadataMap(
|
|
3877
4453
|
O,
|
|
3878
|
-
|
|
4454
|
+
P3,
|
|
3879
4455
|
/*Create*/
|
|
3880
4456
|
true
|
|
3881
4457
|
);
|
|
3882
4458
|
metadataMap.set(MetadataKey, MetadataValue);
|
|
3883
4459
|
}
|
|
3884
|
-
function OrdinaryMetadataKeys(O,
|
|
3885
|
-
var
|
|
4460
|
+
function OrdinaryMetadataKeys(O, P3) {
|
|
4461
|
+
var ownKeys2 = OrdinaryOwnMetadataKeys(O, P3);
|
|
3886
4462
|
var parent = OrdinaryGetPrototypeOf(O);
|
|
3887
4463
|
if (parent === null)
|
|
3888
|
-
return
|
|
3889
|
-
var parentKeys = OrdinaryMetadataKeys(parent,
|
|
4464
|
+
return ownKeys2;
|
|
4465
|
+
var parentKeys = OrdinaryMetadataKeys(parent, P3);
|
|
3890
4466
|
if (parentKeys.length <= 0)
|
|
3891
|
-
return
|
|
3892
|
-
if (
|
|
4467
|
+
return ownKeys2;
|
|
4468
|
+
if (ownKeys2.length <= 0)
|
|
3893
4469
|
return parentKeys;
|
|
3894
4470
|
var set = new _Set();
|
|
3895
4471
|
var keys = [];
|
|
3896
|
-
for (var _i = 0, ownKeys_1 =
|
|
4472
|
+
for (var _i = 0, ownKeys_1 = ownKeys2; _i < ownKeys_1.length; _i++) {
|
|
3897
4473
|
var key = ownKeys_1[_i];
|
|
3898
4474
|
var hasKey = set.has(key);
|
|
3899
4475
|
if (!hasKey) {
|
|
@@ -3911,11 +4487,11 @@
|
|
|
3911
4487
|
}
|
|
3912
4488
|
return keys;
|
|
3913
4489
|
}
|
|
3914
|
-
function OrdinaryOwnMetadataKeys(O,
|
|
4490
|
+
function OrdinaryOwnMetadataKeys(O, P3) {
|
|
3915
4491
|
var keys = [];
|
|
3916
4492
|
var metadataMap = GetOrCreateMetadataMap(
|
|
3917
4493
|
O,
|
|
3918
|
-
|
|
4494
|
+
P3,
|
|
3919
4495
|
/*Create*/
|
|
3920
4496
|
false
|
|
3921
4497
|
);
|
|
@@ -3923,30 +4499,30 @@
|
|
|
3923
4499
|
return keys;
|
|
3924
4500
|
var keysObj = metadataMap.keys();
|
|
3925
4501
|
var iterator = GetIterator(keysObj);
|
|
3926
|
-
var
|
|
4502
|
+
var k3 = 0;
|
|
3927
4503
|
while (true) {
|
|
3928
4504
|
var next = IteratorStep(iterator);
|
|
3929
4505
|
if (!next) {
|
|
3930
|
-
keys.length =
|
|
4506
|
+
keys.length = k3;
|
|
3931
4507
|
return keys;
|
|
3932
4508
|
}
|
|
3933
4509
|
var nextValue = IteratorValue(next);
|
|
3934
4510
|
try {
|
|
3935
|
-
keys[
|
|
3936
|
-
} catch (
|
|
4511
|
+
keys[k3] = nextValue;
|
|
4512
|
+
} catch (e11) {
|
|
3937
4513
|
try {
|
|
3938
4514
|
IteratorClose(iterator);
|
|
3939
4515
|
} finally {
|
|
3940
|
-
throw
|
|
4516
|
+
throw e11;
|
|
3941
4517
|
}
|
|
3942
4518
|
}
|
|
3943
|
-
|
|
4519
|
+
k3++;
|
|
3944
4520
|
}
|
|
3945
4521
|
}
|
|
3946
|
-
function Type(
|
|
3947
|
-
if (
|
|
4522
|
+
function Type(x3) {
|
|
4523
|
+
if (x3 === null)
|
|
3948
4524
|
return 1;
|
|
3949
|
-
switch (typeof
|
|
4525
|
+
switch (typeof x3) {
|
|
3950
4526
|
case "undefined":
|
|
3951
4527
|
return 0;
|
|
3952
4528
|
case "boolean":
|
|
@@ -3958,22 +4534,22 @@
|
|
|
3958
4534
|
case "number":
|
|
3959
4535
|
return 5;
|
|
3960
4536
|
case "object":
|
|
3961
|
-
return
|
|
4537
|
+
return x3 === null ? 1 : 6;
|
|
3962
4538
|
default:
|
|
3963
4539
|
return 6;
|
|
3964
4540
|
}
|
|
3965
4541
|
}
|
|
3966
|
-
function IsUndefined(
|
|
3967
|
-
return
|
|
4542
|
+
function IsUndefined(x3) {
|
|
4543
|
+
return x3 === void 0;
|
|
3968
4544
|
}
|
|
3969
|
-
function IsNull(
|
|
3970
|
-
return
|
|
4545
|
+
function IsNull(x3) {
|
|
4546
|
+
return x3 === null;
|
|
3971
4547
|
}
|
|
3972
|
-
function IsSymbol(
|
|
3973
|
-
return typeof
|
|
4548
|
+
function IsSymbol(x3) {
|
|
4549
|
+
return typeof x3 === "symbol";
|
|
3974
4550
|
}
|
|
3975
|
-
function IsObject(
|
|
3976
|
-
return typeof
|
|
4551
|
+
function IsObject(x3) {
|
|
4552
|
+
return typeof x3 === "object" ? x3 !== null : typeof x3 === "function";
|
|
3977
4553
|
}
|
|
3978
4554
|
function ToPrimitive(input, PreferredType) {
|
|
3979
4555
|
switch (Type(input)) {
|
|
@@ -4065,8 +4641,8 @@
|
|
|
4065
4641
|
return false;
|
|
4066
4642
|
}
|
|
4067
4643
|
}
|
|
4068
|
-
function GetMethod(
|
|
4069
|
-
var func =
|
|
4644
|
+
function GetMethod(V3, P3) {
|
|
4645
|
+
var func = V3[P3];
|
|
4070
4646
|
if (func === void 0 || func === null)
|
|
4071
4647
|
return void 0;
|
|
4072
4648
|
if (!IsCallable(func))
|
|
@@ -4090,9 +4666,9 @@
|
|
|
4090
4666
|
return result.done ? false : result;
|
|
4091
4667
|
}
|
|
4092
4668
|
function IteratorClose(iterator) {
|
|
4093
|
-
var
|
|
4094
|
-
if (
|
|
4095
|
-
|
|
4669
|
+
var f4 = iterator["return"];
|
|
4670
|
+
if (f4)
|
|
4671
|
+
f4.call(iterator);
|
|
4096
4672
|
}
|
|
4097
4673
|
function OrdinaryGetPrototypeOf(O) {
|
|
4098
4674
|
var proto = Object.getPrototypeOf(O);
|
|
@@ -4211,9 +4787,9 @@
|
|
|
4211
4787
|
);
|
|
4212
4788
|
if (index >= 0) {
|
|
4213
4789
|
var size = this._keys.length;
|
|
4214
|
-
for (var
|
|
4215
|
-
this._keys[
|
|
4216
|
-
this._values[
|
|
4790
|
+
for (var i9 = index + 1; i9 < size; i9++) {
|
|
4791
|
+
this._keys[i9 - 1] = this._keys[i9];
|
|
4792
|
+
this._values[i9 - 1] = this._values[i9];
|
|
4217
4793
|
}
|
|
4218
4794
|
this._keys.length--;
|
|
4219
4795
|
this._values.length--;
|
|
@@ -4260,10 +4836,10 @@
|
|
|
4260
4836
|
return Map2;
|
|
4261
4837
|
}()
|
|
4262
4838
|
);
|
|
4263
|
-
function getKey(key,
|
|
4839
|
+
function getKey(key, _3) {
|
|
4264
4840
|
return key;
|
|
4265
4841
|
}
|
|
4266
|
-
function getValue(
|
|
4842
|
+
function getValue(_3, value) {
|
|
4267
4843
|
return value;
|
|
4268
4844
|
}
|
|
4269
4845
|
function getEntry(key, value) {
|
|
@@ -4381,8 +4957,8 @@
|
|
|
4381
4957
|
return target[rootKey];
|
|
4382
4958
|
}
|
|
4383
4959
|
function FillRandomBytes(buffer, size) {
|
|
4384
|
-
for (var
|
|
4385
|
-
buffer[
|
|
4960
|
+
for (var i9 = 0; i9 < size; ++i9)
|
|
4961
|
+
buffer[i9] = Math.random() * 255 | 0;
|
|
4386
4962
|
return buffer;
|
|
4387
4963
|
}
|
|
4388
4964
|
function GenRandomBytes(size) {
|
|
@@ -4487,58 +5063,584 @@
|
|
|
4487
5063
|
var liveStateDecorator_default = liveState;
|
|
4488
5064
|
|
|
4489
5065
|
// node_modules/@vimeo/player/dist/player.es.js
|
|
4490
|
-
function
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
descriptor.configurable = true;
|
|
4500
|
-
if ("value" in descriptor)
|
|
4501
|
-
descriptor.writable = true;
|
|
4502
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
4503
|
-
}
|
|
4504
|
-
}
|
|
4505
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
4506
|
-
if (protoProps)
|
|
4507
|
-
_defineProperties(Constructor.prototype, protoProps);
|
|
4508
|
-
if (staticProps)
|
|
4509
|
-
_defineProperties(Constructor, staticProps);
|
|
4510
|
-
return Constructor;
|
|
5066
|
+
function ownKeys(object, enumerableOnly) {
|
|
5067
|
+
var keys = Object.keys(object);
|
|
5068
|
+
if (Object.getOwnPropertySymbols) {
|
|
5069
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
5070
|
+
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
5071
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
5072
|
+
})), keys.push.apply(keys, symbols);
|
|
5073
|
+
}
|
|
5074
|
+
return keys;
|
|
4511
5075
|
}
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
|
|
5076
|
+
function _objectSpread2(target) {
|
|
5077
|
+
for (var i9 = 1; i9 < arguments.length; i9++) {
|
|
5078
|
+
var source = null != arguments[i9] ? arguments[i9] : {};
|
|
5079
|
+
i9 % 2 ? ownKeys(Object(source), true).forEach(function(key) {
|
|
5080
|
+
_defineProperty(target, key, source[key]);
|
|
5081
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
5082
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
5083
|
+
});
|
|
4516
5084
|
}
|
|
4517
|
-
return
|
|
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);
|
|
5085
|
+
return target;
|
|
4531
5086
|
}
|
|
4532
|
-
function
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
var
|
|
4537
|
-
|
|
4538
|
-
|
|
5087
|
+
function _regeneratorRuntime() {
|
|
5088
|
+
_regeneratorRuntime = function() {
|
|
5089
|
+
return exports;
|
|
5090
|
+
};
|
|
5091
|
+
var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function(obj, key, desc) {
|
|
5092
|
+
obj[key] = desc.value;
|
|
5093
|
+
}, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
5094
|
+
function define(obj, key, value) {
|
|
5095
|
+
return Object.defineProperty(obj, key, {
|
|
5096
|
+
value,
|
|
5097
|
+
enumerable: true,
|
|
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
|
+
};
|
|
4539
5108
|
}
|
|
4540
|
-
|
|
4541
|
-
|
|
5109
|
+
function wrap(innerFn, outerFn, self2, tryLocsList) {
|
|
5110
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []);
|
|
5111
|
+
return defineProperty(generator, "_invoke", {
|
|
5112
|
+
value: makeInvokeMethod(innerFn, self2, context)
|
|
5113
|
+
}), generator;
|
|
5114
|
+
}
|
|
5115
|
+
function tryCatch(fn, obj, arg) {
|
|
5116
|
+
try {
|
|
5117
|
+
return {
|
|
5118
|
+
type: "normal",
|
|
5119
|
+
arg: fn.call(obj, arg)
|
|
5120
|
+
};
|
|
5121
|
+
} catch (err) {
|
|
5122
|
+
return {
|
|
5123
|
+
type: "throw",
|
|
5124
|
+
arg: err
|
|
5125
|
+
};
|
|
5126
|
+
}
|
|
5127
|
+
}
|
|
5128
|
+
exports.wrap = wrap;
|
|
5129
|
+
var ContinueSentinel = {};
|
|
5130
|
+
function Generator() {
|
|
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.");
|
|
5641
|
+
}
|
|
5642
|
+
if (isInteger(idOrUrl)) {
|
|
5643
|
+
return "https://vimeo.com/".concat(idOrUrl);
|
|
4542
5644
|
}
|
|
4543
5645
|
if (isVimeoUrl(idOrUrl)) {
|
|
4544
5646
|
return idOrUrl.replace("http:", "https:");
|
|
@@ -4548,6 +5650,21 @@
|
|
|
4548
5650
|
}
|
|
4549
5651
|
throw new TypeError("\u201C".concat(idOrUrl, "\u201D is not a vimeo.com url."));
|
|
4550
5652
|
}
|
|
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
|
+
};
|
|
4551
5668
|
var arrayIndexOfSupport = typeof Array.prototype.indexOf !== "undefined";
|
|
4552
5669
|
var postMessageSupport = typeof window !== "undefined" && typeof window.postMessage !== "undefined";
|
|
4553
5670
|
if (!isNode && (!arrayIndexOfSupport || !postMessageSupport)) {
|
|
@@ -4567,7 +5684,7 @@
|
|
|
4567
5684
|
return Object.defineProperty({}, "x", {
|
|
4568
5685
|
value: 1
|
|
4569
5686
|
}).x === 1;
|
|
4570
|
-
} catch (
|
|
5687
|
+
} catch (e11) {
|
|
4571
5688
|
}
|
|
4572
5689
|
}();
|
|
4573
5690
|
var defineProperty = function(object, name, value) {
|
|
@@ -4638,9 +5755,9 @@
|
|
|
4638
5755
|
defineProperty(key, this._id, [key, value]);
|
|
4639
5756
|
return this;
|
|
4640
5757
|
});
|
|
4641
|
-
function checkInstance(
|
|
4642
|
-
if (!isObject(
|
|
4643
|
-
throw new TypeError(methodName + " method called on incompatible receiver " + typeof
|
|
5758
|
+
function checkInstance(x3, methodName) {
|
|
5759
|
+
if (!isObject(x3) || !hasOwnProperty2.call(x3, "_id")) {
|
|
5760
|
+
throw new TypeError(methodName + " method called on incompatible receiver " + typeof x3);
|
|
4644
5761
|
}
|
|
4645
5762
|
}
|
|
4646
5763
|
function genId(prefix) {
|
|
@@ -4652,8 +5769,8 @@
|
|
|
4652
5769
|
defineProperty(WeakMap2, "_polyfill", true);
|
|
4653
5770
|
return WeakMap2;
|
|
4654
5771
|
}();
|
|
4655
|
-
function isObject(
|
|
4656
|
-
return Object(
|
|
5772
|
+
function isObject(x3) {
|
|
5773
|
+
return Object(x3) === x3;
|
|
4657
5774
|
}
|
|
4658
5775
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof commonjsGlobal !== "undefined" ? commonjsGlobal : commonjsGlobal);
|
|
4659
5776
|
var npo_src = createCommonjsModule(function(module) {
|
|
@@ -4681,7 +5798,7 @@
|
|
|
4681
5798
|
return obj;
|
|
4682
5799
|
};
|
|
4683
5800
|
}
|
|
4684
|
-
scheduling_queue = function Queue() {
|
|
5801
|
+
scheduling_queue = /* @__PURE__ */ function Queue() {
|
|
4685
5802
|
var first, last, item;
|
|
4686
5803
|
function Item(fn, self2) {
|
|
4687
5804
|
this.fn = fn;
|
|
@@ -4700,11 +5817,11 @@
|
|
|
4700
5817
|
item = void 0;
|
|
4701
5818
|
},
|
|
4702
5819
|
drain: function drain() {
|
|
4703
|
-
var
|
|
5820
|
+
var f4 = first;
|
|
4704
5821
|
first = last = cycle = void 0;
|
|
4705
|
-
while (
|
|
4706
|
-
|
|
4707
|
-
|
|
5822
|
+
while (f4) {
|
|
5823
|
+
f4.fn.call(f4.self);
|
|
5824
|
+
f4 = f4.next;
|
|
4708
5825
|
}
|
|
4709
5826
|
}
|
|
4710
5827
|
};
|
|
@@ -4715,16 +5832,16 @@
|
|
|
4715
5832
|
cycle = timer(scheduling_queue.drain);
|
|
4716
5833
|
}
|
|
4717
5834
|
}
|
|
4718
|
-
function isThenable(
|
|
4719
|
-
var _then, o_type = typeof
|
|
4720
|
-
if (
|
|
4721
|
-
_then =
|
|
5835
|
+
function isThenable(o9) {
|
|
5836
|
+
var _then, o_type = typeof o9;
|
|
5837
|
+
if (o9 != null && (o_type == "object" || o_type == "function")) {
|
|
5838
|
+
_then = o9.then;
|
|
4722
5839
|
}
|
|
4723
5840
|
return typeof _then == "function" ? _then : false;
|
|
4724
5841
|
}
|
|
4725
5842
|
function notify() {
|
|
4726
|
-
for (var
|
|
4727
|
-
notifyIsolated(this, this.state === 1 ? this.chain[
|
|
5843
|
+
for (var i9 = 0; i9 < this.chain.length; i9++) {
|
|
5844
|
+
notifyIsolated(this, this.state === 1 ? this.chain[i9].success : this.chain[i9].failure, this.chain[i9]);
|
|
4728
5845
|
}
|
|
4729
5846
|
this.chain.length = 0;
|
|
4730
5847
|
}
|
|
@@ -4830,22 +5947,22 @@
|
|
|
4830
5947
|
this.__NPO__ = 1;
|
|
4831
5948
|
var def = new MakeDef(this);
|
|
4832
5949
|
this["then"] = function then(success, failure) {
|
|
4833
|
-
var
|
|
5950
|
+
var o9 = {
|
|
4834
5951
|
success: typeof success == "function" ? success : true,
|
|
4835
5952
|
failure: typeof failure == "function" ? failure : false
|
|
4836
5953
|
};
|
|
4837
|
-
|
|
5954
|
+
o9.promise = new this.constructor(function extractChain(resolve2, reject2) {
|
|
4838
5955
|
if (typeof resolve2 != "function" || typeof reject2 != "function") {
|
|
4839
5956
|
throw TypeError("Not a function");
|
|
4840
5957
|
}
|
|
4841
|
-
|
|
4842
|
-
|
|
5958
|
+
o9.resolve = resolve2;
|
|
5959
|
+
o9.reject = reject2;
|
|
4843
5960
|
});
|
|
4844
|
-
def.chain.push(
|
|
5961
|
+
def.chain.push(o9);
|
|
4845
5962
|
if (def.state !== 0) {
|
|
4846
5963
|
schedule(notify, def);
|
|
4847
5964
|
}
|
|
4848
|
-
return
|
|
5965
|
+
return o9.promise;
|
|
4849
5966
|
};
|
|
4850
5967
|
this["catch"] = function $catch$(failure) {
|
|
4851
5968
|
return this.then(void 0, failure);
|
|
@@ -5034,11 +6151,11 @@
|
|
|
5034
6151
|
return;
|
|
5035
6152
|
}
|
|
5036
6153
|
callback2.resolve(param);
|
|
5037
|
-
} catch (
|
|
6154
|
+
} catch (e11) {
|
|
5038
6155
|
}
|
|
5039
6156
|
});
|
|
5040
6157
|
}
|
|
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"];
|
|
6158
|
+
var oEmbedParameters = ["airplay", "audio_tracks", "autopause", "autoplay", "background", "byline", "cc", "chapter_id", "chapters", "chromecast", "color", "colors", "controls", "dnt", "end_time", "fullscreen", "height", "id", "interactive_params", "keyboard", "loop", "maxheight", "maxwidth", "muted", "play_button_position", "playsinline", "portrait", "progress_bar", "quality_selector", "responsive", "speed", "start_time", "texttrack", "title", "transcript", "transparent", "url", "vimeo_logo", "volume", "watch_full_video", "width"];
|
|
5042
6159
|
function getOEmbedParameters(element) {
|
|
5043
6160
|
var defaults = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
5044
6161
|
return oEmbedParameters.reduce(function(params, param) {
|
|
@@ -5070,7 +6187,8 @@
|
|
|
5070
6187
|
if (!isVimeoUrl(videoUrl)) {
|
|
5071
6188
|
throw new TypeError("\u201C".concat(videoUrl, "\u201D is not a vimeo.com url."));
|
|
5072
6189
|
}
|
|
5073
|
-
var
|
|
6190
|
+
var domain = getOembedDomain(videoUrl);
|
|
6191
|
+
var url = "https://".concat(domain, "/api/oembed.json?url=").concat(encodeURIComponent(videoUrl));
|
|
5074
6192
|
for (var param in params) {
|
|
5075
6193
|
if (params.hasOwnProperty(param)) {
|
|
5076
6194
|
url += "&".concat(param, "=").concat(encodeURIComponent(params[param]));
|
|
@@ -5143,11 +6261,11 @@
|
|
|
5143
6261
|
return;
|
|
5144
6262
|
}
|
|
5145
6263
|
var iframes = parent.querySelectorAll("iframe");
|
|
5146
|
-
for (var
|
|
5147
|
-
if (iframes[
|
|
6264
|
+
for (var i9 = 0; i9 < iframes.length; i9++) {
|
|
6265
|
+
if (iframes[i9].contentWindow !== event.source) {
|
|
5148
6266
|
continue;
|
|
5149
6267
|
}
|
|
5150
|
-
var space = iframes[
|
|
6268
|
+
var space = iframes[i9].parentElement;
|
|
5151
6269
|
space.style.paddingBottom = "".concat(event.data.data[0].bottom, "px");
|
|
5152
6270
|
break;
|
|
5153
6271
|
}
|
|
@@ -5169,8 +6287,8 @@
|
|
|
5169
6287
|
return;
|
|
5170
6288
|
}
|
|
5171
6289
|
var iframes = parent.querySelectorAll("iframe");
|
|
5172
|
-
for (var
|
|
5173
|
-
var iframe = iframes[
|
|
6290
|
+
for (var i9 = 0; i9 < iframes.length; i9++) {
|
|
6291
|
+
var iframe = iframes[i9];
|
|
5174
6292
|
var isValidMessageSource = iframe.contentWindow === event.source;
|
|
5175
6293
|
if (isVimeoEmbed(iframe.src) && isValidMessageSource) {
|
|
5176
6294
|
var player = new Player(iframe);
|
|
@@ -5200,22 +6318,23 @@
|
|
|
5200
6318
|
return;
|
|
5201
6319
|
}
|
|
5202
6320
|
var iframes = parent.querySelectorAll("iframe");
|
|
5203
|
-
|
|
5204
|
-
var iframe = iframes[
|
|
6321
|
+
var _loop = function _loop2() {
|
|
6322
|
+
var iframe = iframes[i9];
|
|
5205
6323
|
var isValidMessageSource = iframe.contentWindow === event.source;
|
|
5206
6324
|
if (isVimeoEmbed(iframe.src) && isValidMessageSource) {
|
|
5207
|
-
(
|
|
5208
|
-
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
}).catch(handleError);
|
|
5217
|
-
})();
|
|
6325
|
+
var player = new Player(iframe);
|
|
6326
|
+
player.getVideoId().then(function(videoId) {
|
|
6327
|
+
var matches = new RegExp("[?&]vimeo_t_".concat(videoId, "=([^&#]*)")).exec(window.location.href);
|
|
6328
|
+
if (matches && matches[1]) {
|
|
6329
|
+
var sec = decodeURI(matches[1]);
|
|
6330
|
+
player.setCurrentTime(sec);
|
|
6331
|
+
}
|
|
6332
|
+
return;
|
|
6333
|
+
}).catch(handleError);
|
|
5218
6334
|
}
|
|
6335
|
+
};
|
|
6336
|
+
for (var i9 = 0; i9 < iframes.length; i9++) {
|
|
6337
|
+
_loop();
|
|
5219
6338
|
}
|
|
5220
6339
|
};
|
|
5221
6340
|
window.addEventListener("message", onMessage);
|
|
@@ -5232,14 +6351,14 @@
|
|
|
5232
6351
|
["mozRequestFullScreen", "mozCancelFullScreen", "mozFullScreenElement", "mozFullScreenEnabled", "mozfullscreenchange", "mozfullscreenerror"],
|
|
5233
6352
|
["msRequestFullscreen", "msExitFullscreen", "msFullscreenElement", "msFullscreenEnabled", "MSFullscreenChange", "MSFullscreenError"]
|
|
5234
6353
|
];
|
|
5235
|
-
var
|
|
5236
|
-
var
|
|
6354
|
+
var i9 = 0;
|
|
6355
|
+
var l8 = fnMap.length;
|
|
5237
6356
|
var ret = {};
|
|
5238
|
-
for (;
|
|
5239
|
-
val = fnMap[
|
|
6357
|
+
for (; i9 < l8; i9++) {
|
|
6358
|
+
val = fnMap[i9];
|
|
5240
6359
|
if (val && val[1] in document) {
|
|
5241
|
-
for (
|
|
5242
|
-
ret[fnMap[0][
|
|
6360
|
+
for (i9 = 0; i9 < val.length; i9++) {
|
|
6361
|
+
ret[fnMap[0][i9]] = val[i9];
|
|
5243
6362
|
}
|
|
5244
6363
|
return ret;
|
|
5245
6364
|
}
|
|
@@ -5316,6 +6435,414 @@
|
|
|
5316
6435
|
});
|
|
5317
6436
|
return screenfull2;
|
|
5318
6437
|
}
|
|
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));
|
|
5319
6846
|
var playerMap = /* @__PURE__ */ new WeakMap();
|
|
5320
6847
|
var readyMap = /* @__PURE__ */ new WeakMap();
|
|
5321
6848
|
var screenfull = {};
|
|
@@ -5523,7 +7050,7 @@
|
|
|
5523
7050
|
}
|
|
5524
7051
|
var lastCallback = removeCallback(this, "event:".concat(eventName), callback);
|
|
5525
7052
|
if (lastCallback) {
|
|
5526
|
-
this.callMethod("removeEventListener", eventName).catch(function(
|
|
7053
|
+
this.callMethod("removeEventListener", eventName).catch(function(e11) {
|
|
5527
7054
|
});
|
|
5528
7055
|
}
|
|
5529
7056
|
}
|
|
@@ -5770,6 +7297,23 @@
|
|
|
5770
7297
|
value: function getPictureInPicture() {
|
|
5771
7298
|
return this.get("pictureInPicture");
|
|
5772
7299
|
}
|
|
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
|
+
}
|
|
5773
7317
|
/**
|
|
5774
7318
|
* A promise to unload the video.
|
|
5775
7319
|
*
|
|
@@ -5970,13 +7514,13 @@
|
|
|
5970
7514
|
return this.get("currentChapter");
|
|
5971
7515
|
}
|
|
5972
7516
|
/**
|
|
5973
|
-
* A promise to get the color of the player.
|
|
7517
|
+
* A promise to get the accent color of the player.
|
|
5974
7518
|
*
|
|
5975
7519
|
* @promise GetColorPromise
|
|
5976
7520
|
* @fulfill {string} The hex color of the player.
|
|
5977
7521
|
*/
|
|
5978
7522
|
/**
|
|
5979
|
-
* Get the color for this player.
|
|
7523
|
+
* Get the accent color for this player. Note this is deprecated in place of `getColorTwo`.
|
|
5980
7524
|
*
|
|
5981
7525
|
* @return {GetColorPromise}
|
|
5982
7526
|
*/
|
|
@@ -5986,7 +7530,23 @@
|
|
|
5986
7530
|
return this.get("color");
|
|
5987
7531
|
}
|
|
5988
7532
|
/**
|
|
5989
|
-
* A promise to
|
|
7533
|
+
* A promise to get all colors for the player in an array.
|
|
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.
|
|
5990
7550
|
*
|
|
5991
7551
|
* @promise SetColorPromise
|
|
5992
7552
|
* @fulfill {string} The color was successfully set.
|
|
@@ -5997,9 +7557,10 @@
|
|
|
5997
7557
|
* use a specific color.
|
|
5998
7558
|
*/
|
|
5999
7559
|
/**
|
|
6000
|
-
* Set the color of this player to a hex or rgb string. Setting the
|
|
7560
|
+
* Set the accent color of this player to a hex or rgb string. Setting the
|
|
6001
7561
|
* color may fail if the owner of the video has set their embed
|
|
6002
7562
|
* preferences to force a specific color.
|
|
7563
|
+
* Note this is deprecated in place of `setColorTwo`.
|
|
6003
7564
|
*
|
|
6004
7565
|
* @param {string} color The hex or rgb color string to set.
|
|
6005
7566
|
* @return {SetColorPromise}
|
|
@@ -6009,6 +7570,41 @@
|
|
|
6009
7570
|
value: function setColor(color) {
|
|
6010
7571
|
return this.set("color", color);
|
|
6011
7572
|
}
|
|
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
|
+
}
|
|
6012
7608
|
/**
|
|
6013
7609
|
* A representation of a cue point.
|
|
6014
7610
|
*
|
|
@@ -6199,10 +7795,10 @@
|
|
|
6199
7795
|
* A promise to get the playback rate of the player.
|
|
6200
7796
|
*
|
|
6201
7797
|
* @promise GetPlaybackRatePromise
|
|
6202
|
-
* @fulfill {number} The playback rate of the player on a scale from 0
|
|
7798
|
+
* @fulfill {number} The playback rate of the player on a scale from 0 to 2.
|
|
6203
7799
|
*/
|
|
6204
7800
|
/**
|
|
6205
|
-
* Get the playback rate of the player on a scale from `0
|
|
7801
|
+
* Get the playback rate of the player on a scale from `0` to `2`.
|
|
6206
7802
|
*
|
|
6207
7803
|
* @return {GetPlaybackRatePromise}
|
|
6208
7804
|
*/
|
|
@@ -6216,10 +7812,10 @@
|
|
|
6216
7812
|
*
|
|
6217
7813
|
* @promise SetPlaybackRatePromise
|
|
6218
7814
|
* @fulfill {number} The playback rate was set.
|
|
6219
|
-
* @reject {RangeError} The playback rate was less than 0
|
|
7815
|
+
* @reject {RangeError} The playback rate was less than 0 or greater than 2.
|
|
6220
7816
|
*/
|
|
6221
7817
|
/**
|
|
6222
|
-
* Set the playback rate of the player on a scale from `0
|
|
7818
|
+
* Set the playback rate of the player on a scale from `0` to `2`. When set
|
|
6223
7819
|
* via the API, the playback rate will not be synchronized to other
|
|
6224
7820
|
* players or stored as the viewer's preference.
|
|
6225
7821
|
*
|
|
@@ -6297,6 +7893,38 @@
|
|
|
6297
7893
|
value: function setQuality(quality) {
|
|
6298
7894
|
return this.set("quality", quality);
|
|
6299
7895
|
}
|
|
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
|
+
}
|
|
6300
7928
|
/**
|
|
6301
7929
|
* A promise to get the seekable property of the video.
|
|
6302
7930
|
*
|
|
@@ -6486,6 +8114,53 @@
|
|
|
6486
8114
|
value: function setVolume(volume) {
|
|
6487
8115
|
return this.set("volume", volume);
|
|
6488
8116
|
}
|
|
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
|
+
}()
|
|
6489
8164
|
}]);
|
|
6490
8165
|
return Player2;
|
|
6491
8166
|
}();
|
|
@@ -6498,39 +8173,78 @@
|
|
|
6498
8173
|
}
|
|
6499
8174
|
var player_es_default = Player;
|
|
6500
8175
|
|
|
6501
|
-
// node_modules/vimeo-video-element/vimeo-video-element.js
|
|
8176
|
+
// node_modules/vimeo-video-element/dist/vimeo-video-element.js
|
|
6502
8177
|
var EMBED_BASE = "https://player.vimeo.com/video";
|
|
6503
|
-
var MATCH_SRC = /vimeo\.com\/(?:video\/)?(\d+)
|
|
6504
|
-
|
|
6505
|
-
|
|
6506
|
-
|
|
6507
|
-
|
|
6508
|
-
|
|
6509
|
-
|
|
6510
|
-
|
|
6511
|
-
|
|
6512
|
-
|
|
6513
|
-
|
|
6514
|
-
}
|
|
6515
|
-
|
|
6516
|
-
|
|
6517
|
-
|
|
6518
|
-
|
|
6519
|
-
|
|
6520
|
-
|
|
6521
|
-
|
|
6522
|
-
|
|
6523
|
-
|
|
6524
|
-
|
|
8178
|
+
var MATCH_SRC = /vimeo\.com\/(?:video\/)?(\d+)(?:\/([\w-]+))?/;
|
|
8179
|
+
function getTemplateHTML(attrs, props = {}) {
|
|
8180
|
+
const iframeAttrs = {
|
|
8181
|
+
src: serializeIframeUrl(attrs, props),
|
|
8182
|
+
frameborder: 0,
|
|
8183
|
+
width: "100%",
|
|
8184
|
+
height: "100%",
|
|
8185
|
+
allow: "accelerometer; fullscreen; autoplay; encrypted-media; gyroscope; picture-in-picture"
|
|
8186
|
+
};
|
|
8187
|
+
if (props.config) {
|
|
8188
|
+
iframeAttrs["data-config"] = JSON.stringify(props.config);
|
|
8189
|
+
}
|
|
8190
|
+
return (
|
|
8191
|
+
/*html*/
|
|
8192
|
+
`
|
|
8193
|
+
<style>
|
|
8194
|
+
:host {
|
|
8195
|
+
display: inline-block;
|
|
8196
|
+
min-width: 300px;
|
|
8197
|
+
min-height: 150px;
|
|
8198
|
+
position: relative;
|
|
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)}`;
|
|
6525
8234
|
}
|
|
6526
|
-
var
|
|
8235
|
+
var _loadRequested, _hasLoaded, _isInit, _currentTime, _duration, _muted, _paused, _playbackRate, _progress, _readyState, _seeking, _volume, _videoWidth, _videoHeight, _config, _upgradeProperty, upgradeProperty_fn;
|
|
6527
8236
|
var VimeoVideoElement = class extends (globalThis.HTMLElement ?? class {
|
|
6528
8237
|
}) {
|
|
6529
8238
|
constructor() {
|
|
6530
8239
|
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);
|
|
6531
8246
|
__privateAdd(this, _hasLoaded, void 0);
|
|
6532
|
-
__privateAdd(this,
|
|
6533
|
-
__privateAdd(this, _options, void 0);
|
|
8247
|
+
__privateAdd(this, _isInit, void 0);
|
|
6534
8248
|
__privateAdd(this, _currentTime, 0);
|
|
6535
8249
|
__privateAdd(this, _duration, NaN);
|
|
6536
8250
|
__privateAdd(this, _muted, false);
|
|
@@ -6542,16 +8256,25 @@
|
|
|
6542
8256
|
__privateAdd(this, _volume, 1);
|
|
6543
8257
|
__privateAdd(this, _videoWidth, NaN);
|
|
6544
8258
|
__privateAdd(this, _videoHeight, NaN);
|
|
6545
|
-
this
|
|
6546
|
-
this.
|
|
6547
|
-
|
|
8259
|
+
__privateAdd(this, _config, null);
|
|
8260
|
+
__privateMethod(this, _upgradeProperty, upgradeProperty_fn).call(this, "config");
|
|
8261
|
+
}
|
|
8262
|
+
get config() {
|
|
8263
|
+
return __privateGet(this, _config);
|
|
8264
|
+
}
|
|
8265
|
+
set config(value) {
|
|
8266
|
+
__privateSet(this, _config, value);
|
|
6548
8267
|
}
|
|
6549
8268
|
async load() {
|
|
6550
|
-
|
|
8269
|
+
var _a;
|
|
8270
|
+
if (__privateGet(this, _loadRequested))
|
|
8271
|
+
return;
|
|
8272
|
+
const isFirstLoad = !__privateGet(this, _hasLoaded);
|
|
8273
|
+
if (__privateGet(this, _hasLoaded))
|
|
6551
8274
|
this.loadComplete = new PublicPromise();
|
|
6552
|
-
__privateSet(this, _noInit, true);
|
|
6553
|
-
}
|
|
6554
8275
|
__privateSet(this, _hasLoaded, true);
|
|
8276
|
+
await __privateSet(this, _loadRequested, Promise.resolve());
|
|
8277
|
+
__privateSet(this, _loadRequested, null);
|
|
6555
8278
|
__privateSet(this, _currentTime, 0);
|
|
6556
8279
|
__privateSet(this, _duration, NaN);
|
|
6557
8280
|
__privateSet(this, _muted, false);
|
|
@@ -6567,12 +8290,11 @@
|
|
|
6567
8290
|
this.dispatchEvent(new Event("emptied"));
|
|
6568
8291
|
let oldApi = this.api;
|
|
6569
8292
|
this.api = null;
|
|
6570
|
-
await Promise.resolve();
|
|
6571
8293
|
if (!this.src) {
|
|
6572
8294
|
return;
|
|
6573
8295
|
}
|
|
6574
8296
|
this.dispatchEvent(new Event("loadstart"));
|
|
6575
|
-
|
|
8297
|
+
const options = {
|
|
6576
8298
|
autoplay: this.autoplay,
|
|
6577
8299
|
controls: this.controls,
|
|
6578
8300
|
loop: this.loop,
|
|
@@ -6580,8 +8302,9 @@
|
|
|
6580
8302
|
playsinline: this.playsInline,
|
|
6581
8303
|
preload: this.preload ?? "metadata",
|
|
6582
8304
|
transparent: false,
|
|
6583
|
-
autopause: this.hasAttribute("autopause")
|
|
6584
|
-
|
|
8305
|
+
autopause: this.hasAttribute("autopause"),
|
|
8306
|
+
...__privateGet(this, _config)
|
|
8307
|
+
};
|
|
6585
8308
|
const onLoaded = async () => {
|
|
6586
8309
|
__privateSet(this, _readyState, 1);
|
|
6587
8310
|
this.dispatchEvent(new Event("loadedmetadata"));
|
|
@@ -6595,25 +8318,25 @@
|
|
|
6595
8318
|
this.dispatchEvent(new Event("loadcomplete"));
|
|
6596
8319
|
this.loadComplete.resolve();
|
|
6597
8320
|
};
|
|
6598
|
-
if (__privateGet(this,
|
|
8321
|
+
if (__privateGet(this, _isInit)) {
|
|
6599
8322
|
this.api = oldApi;
|
|
6600
8323
|
await this.api.loadVideo({
|
|
6601
|
-
...
|
|
8324
|
+
...options,
|
|
6602
8325
|
url: this.src
|
|
6603
8326
|
});
|
|
6604
8327
|
await onLoaded();
|
|
6605
8328
|
await this.loadComplete;
|
|
6606
8329
|
return;
|
|
6607
8330
|
}
|
|
6608
|
-
|
|
6609
|
-
|
|
6610
|
-
|
|
6611
|
-
|
|
6612
|
-
|
|
6613
|
-
|
|
6614
|
-
|
|
6615
|
-
|
|
6616
|
-
this.shadowRoot.
|
|
8331
|
+
__privateSet(this, _isInit, true);
|
|
8332
|
+
let iframe = (_a = this.shadowRoot) == null ? void 0 : _a.querySelector("iframe");
|
|
8333
|
+
if (isFirstLoad && iframe) {
|
|
8334
|
+
__privateSet(this, _config, JSON.parse(iframe.getAttribute("data-config") || "{}"));
|
|
8335
|
+
}
|
|
8336
|
+
if (!this.shadowRoot) {
|
|
8337
|
+
this.attachShadow({ mode: "open" });
|
|
8338
|
+
this.shadowRoot.innerHTML = getTemplateHTML(namedNodeMapToObject(this.attributes), this);
|
|
8339
|
+
iframe = this.shadowRoot.querySelector("iframe");
|
|
6617
8340
|
}
|
|
6618
8341
|
this.api = new player_es_default(iframe);
|
|
6619
8342
|
const onceLoaded = () => {
|
|
@@ -6686,23 +8409,18 @@
|
|
|
6686
8409
|
await this.loadComplete;
|
|
6687
8410
|
}
|
|
6688
8411
|
async attributeChangedCallback(attrName, oldValue, newValue) {
|
|
8412
|
+
if (oldValue === newValue)
|
|
8413
|
+
return;
|
|
6689
8414
|
switch (attrName) {
|
|
8415
|
+
case "autoplay":
|
|
8416
|
+
case "controls":
|
|
6690
8417
|
case "src": {
|
|
6691
|
-
|
|
6692
|
-
this.load();
|
|
6693
|
-
}
|
|
8418
|
+
this.load();
|
|
6694
8419
|
return;
|
|
6695
8420
|
}
|
|
6696
8421
|
}
|
|
6697
8422
|
await this.loadComplete;
|
|
6698
8423
|
switch (attrName) {
|
|
6699
|
-
case "autoplay":
|
|
6700
|
-
case "controls": {
|
|
6701
|
-
if (__privateGet(this, _options)[attrName] !== this.hasAttribute(attrName)) {
|
|
6702
|
-
this.load();
|
|
6703
|
-
}
|
|
6704
|
-
break;
|
|
6705
|
-
}
|
|
6706
8424
|
case "loop": {
|
|
6707
8425
|
this.api.setLoop(this.loop);
|
|
6708
8426
|
break;
|
|
@@ -6710,11 +8428,12 @@
|
|
|
6710
8428
|
}
|
|
6711
8429
|
}
|
|
6712
8430
|
async play() {
|
|
8431
|
+
var _a;
|
|
6713
8432
|
__privateSet(this, _paused, false);
|
|
6714
8433
|
this.dispatchEvent(new Event("play"));
|
|
6715
8434
|
await this.loadComplete;
|
|
6716
8435
|
try {
|
|
6717
|
-
await this.api
|
|
8436
|
+
await ((_a = this.api) == null ? void 0 : _a.play());
|
|
6718
8437
|
} catch (error) {
|
|
6719
8438
|
__privateSet(this, _paused, true);
|
|
6720
8439
|
this.dispatchEvent(new Event("pause"));
|
|
@@ -6722,8 +8441,9 @@
|
|
|
6722
8441
|
}
|
|
6723
8442
|
}
|
|
6724
8443
|
async pause() {
|
|
8444
|
+
var _a;
|
|
6725
8445
|
await this.loadComplete;
|
|
6726
|
-
return this.api
|
|
8446
|
+
return (_a = this.api) == null ? void 0 : _a.pause();
|
|
6727
8447
|
}
|
|
6728
8448
|
get ended() {
|
|
6729
8449
|
return __privateGet(this, _currentTime) >= __privateGet(this, _duration);
|
|
@@ -6740,8 +8460,6 @@
|
|
|
6740
8460
|
get videoHeight() {
|
|
6741
8461
|
return __privateGet(this, _videoHeight);
|
|
6742
8462
|
}
|
|
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.
|
|
6745
8463
|
get src() {
|
|
6746
8464
|
return this.getAttribute("src");
|
|
6747
8465
|
}
|
|
@@ -6786,7 +8504,8 @@
|
|
|
6786
8504
|
return;
|
|
6787
8505
|
__privateSet(this, _currentTime, val);
|
|
6788
8506
|
this.loadComplete.then(() => {
|
|
6789
|
-
|
|
8507
|
+
var _a;
|
|
8508
|
+
(_a = this.api) == null ? void 0 : _a.setCurrentTime(val);
|
|
6790
8509
|
});
|
|
6791
8510
|
}
|
|
6792
8511
|
get defaultMuted() {
|
|
@@ -6813,7 +8532,8 @@
|
|
|
6813
8532
|
return;
|
|
6814
8533
|
__privateSet(this, _muted, val);
|
|
6815
8534
|
this.loadComplete.then(() => {
|
|
6816
|
-
|
|
8535
|
+
var _a;
|
|
8536
|
+
(_a = this.api) == null ? void 0 : _a.setMuted(val);
|
|
6817
8537
|
});
|
|
6818
8538
|
}
|
|
6819
8539
|
get playbackRate() {
|
|
@@ -6824,7 +8544,8 @@
|
|
|
6824
8544
|
return;
|
|
6825
8545
|
__privateSet(this, _playbackRate, val);
|
|
6826
8546
|
this.loadComplete.then(() => {
|
|
6827
|
-
|
|
8547
|
+
var _a;
|
|
8548
|
+
(_a = this.api) == null ? void 0 : _a.setPlaybackRate(val);
|
|
6828
8549
|
});
|
|
6829
8550
|
}
|
|
6830
8551
|
get playsInline() {
|
|
@@ -6851,13 +8572,14 @@
|
|
|
6851
8572
|
return;
|
|
6852
8573
|
__privateSet(this, _volume, val);
|
|
6853
8574
|
this.loadComplete.then(() => {
|
|
6854
|
-
|
|
8575
|
+
var _a;
|
|
8576
|
+
(_a = this.api) == null ? void 0 : _a.setVolume(val);
|
|
6855
8577
|
});
|
|
6856
8578
|
}
|
|
6857
8579
|
};
|
|
8580
|
+
_loadRequested = new WeakMap();
|
|
6858
8581
|
_hasLoaded = new WeakMap();
|
|
6859
|
-
|
|
6860
|
-
_options = new WeakMap();
|
|
8582
|
+
_isInit = new WeakMap();
|
|
6861
8583
|
_currentTime = new WeakMap();
|
|
6862
8584
|
_duration = new WeakMap();
|
|
6863
8585
|
_muted = new WeakMap();
|
|
@@ -6869,6 +8591,17 @@
|
|
|
6869
8591
|
_volume = new WeakMap();
|
|
6870
8592
|
_videoWidth = new WeakMap();
|
|
6871
8593
|
_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" });
|
|
6872
8605
|
__publicField(VimeoVideoElement, "observedAttributes", [
|
|
6873
8606
|
"autoplay",
|
|
6874
8607
|
"controls",
|
|
@@ -6880,6 +8613,43 @@
|
|
|
6880
8613
|
"preload",
|
|
6881
8614
|
"src"
|
|
6882
8615
|
]);
|
|
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
|
+
}
|
|
6883
8653
|
var PublicPromise = class extends Promise {
|
|
6884
8654
|
constructor(executor = () => {
|
|
6885
8655
|
}) {
|
|
@@ -6893,43 +8663,6 @@
|
|
|
6893
8663
|
this.reject = rej;
|
|
6894
8664
|
}
|
|
6895
8665
|
};
|
|
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
|
-
}
|
|
6933
8666
|
function createTimeRanges(start, end) {
|
|
6934
8667
|
if (Array.isArray(start)) {
|
|
6935
8668
|
return createTimeRangesObj(start);
|
|
@@ -6941,10 +8674,10 @@
|
|
|
6941
8674
|
function createTimeRangesObj(ranges) {
|
|
6942
8675
|
Object.defineProperties(ranges, {
|
|
6943
8676
|
start: {
|
|
6944
|
-
value: (
|
|
8677
|
+
value: (i9) => ranges[i9][0]
|
|
6945
8678
|
},
|
|
6946
8679
|
end: {
|
|
6947
|
-
value: (
|
|
8680
|
+
value: (i9) => ranges[i9][1]
|
|
6948
8681
|
}
|
|
6949
8682
|
});
|
|
6950
8683
|
return ranges;
|
|
@@ -6954,8 +8687,7 @@
|
|
|
6954
8687
|
}
|
|
6955
8688
|
|
|
6956
8689
|
// css/questionnaire.lit.scss
|
|
6957
|
-
var questionnaire_lit_default =
|
|
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");
|
|
8690
|
+
var questionnaire_lit_default = i3`@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");
|
|
6959
8691
|
h1 {
|
|
6960
8692
|
font-size: 1.5rem !important;
|
|
6961
8693
|
font-family: "Lato", Helvetica, sans-serif;
|
|
@@ -7350,150 +9082,150 @@ meter::-webkit-meter-optimum-value {
|
|
|
7350
9082
|
justify-content: center;
|
|
7351
9083
|
}`;
|
|
7352
9084
|
|
|
7353
|
-
// node_modules/lit-html/directive.js
|
|
7354
|
-
var
|
|
7355
|
-
var
|
|
7356
|
-
var
|
|
7357
|
-
constructor(
|
|
9085
|
+
// node_modules/lit/node_modules/lit-html/directive.js
|
|
9086
|
+
var t6 = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 };
|
|
9087
|
+
var e10 = (t7) => (...e11) => ({ _$litDirective$: t7, values: e11 });
|
|
9088
|
+
var i7 = class {
|
|
9089
|
+
constructor(t7) {
|
|
7358
9090
|
}
|
|
7359
9091
|
get _$AU() {
|
|
7360
9092
|
return this._$AM._$AU;
|
|
7361
9093
|
}
|
|
7362
|
-
_$AT(
|
|
7363
|
-
this._$Ct =
|
|
9094
|
+
_$AT(t7, e11, i9) {
|
|
9095
|
+
this._$Ct = t7, this._$AM = e11, this._$Ci = i9;
|
|
7364
9096
|
}
|
|
7365
|
-
_$AS(
|
|
7366
|
-
return this.update(
|
|
9097
|
+
_$AS(t7, e11) {
|
|
9098
|
+
return this.update(t7, e11);
|
|
7367
9099
|
}
|
|
7368
|
-
update(
|
|
7369
|
-
return this.render(...
|
|
9100
|
+
update(t7, e11) {
|
|
9101
|
+
return this.render(...e11);
|
|
7370
9102
|
}
|
|
7371
9103
|
};
|
|
7372
9104
|
|
|
7373
|
-
// node_modules/lit-html/directive-helpers.js
|
|
7374
|
-
var { I:
|
|
7375
|
-
var
|
|
7376
|
-
var
|
|
7377
|
-
var
|
|
7378
|
-
const
|
|
7379
|
-
if (void 0 ===
|
|
7380
|
-
const
|
|
7381
|
-
|
|
9105
|
+
// node_modules/lit/node_modules/lit-html/directive-helpers.js
|
|
9106
|
+
var { I: l7 } = j;
|
|
9107
|
+
var r7 = () => document.createComment("");
|
|
9108
|
+
var c5 = (o9, i9, n10) => {
|
|
9109
|
+
var t7;
|
|
9110
|
+
const v3 = o9._$AA.parentNode, d5 = void 0 === i9 ? o9._$AB : i9._$AA;
|
|
9111
|
+
if (void 0 === n10) {
|
|
9112
|
+
const i10 = v3.insertBefore(r7(), d5), t8 = v3.insertBefore(r7(), d5);
|
|
9113
|
+
n10 = new l7(i10, t8, o9, o9.options);
|
|
7382
9114
|
} else {
|
|
7383
|
-
const
|
|
7384
|
-
if (
|
|
7385
|
-
let
|
|
7386
|
-
null === (
|
|
7387
|
-
}
|
|
7388
|
-
if (
|
|
7389
|
-
let
|
|
7390
|
-
for (;
|
|
7391
|
-
const
|
|
7392
|
-
|
|
9115
|
+
const l8 = n10._$AB.nextSibling, i10 = n10._$AM, u6 = i10 !== o9;
|
|
9116
|
+
if (u6) {
|
|
9117
|
+
let l9;
|
|
9118
|
+
null === (t7 = n10._$AQ) || void 0 === t7 || t7.call(n10, o9), n10._$AM = o9, void 0 !== n10._$AP && (l9 = o9._$AU) !== i10._$AU && n10._$AP(l9);
|
|
9119
|
+
}
|
|
9120
|
+
if (l8 !== d5 || u6) {
|
|
9121
|
+
let o10 = n10._$AA;
|
|
9122
|
+
for (; o10 !== l8; ) {
|
|
9123
|
+
const l9 = o10.nextSibling;
|
|
9124
|
+
v3.insertBefore(o10, d5), o10 = l9;
|
|
7393
9125
|
}
|
|
7394
9126
|
}
|
|
7395
9127
|
}
|
|
7396
|
-
return
|
|
9128
|
+
return n10;
|
|
7397
9129
|
};
|
|
7398
|
-
var
|
|
7399
|
-
var
|
|
7400
|
-
var
|
|
7401
|
-
var
|
|
7402
|
-
var
|
|
7403
|
-
var
|
|
7404
|
-
null === (
|
|
7405
|
-
let
|
|
7406
|
-
const
|
|
7407
|
-
for (;
|
|
7408
|
-
const
|
|
7409
|
-
|
|
9130
|
+
var f3 = (o9, l8, i9 = o9) => (o9._$AI(l8, i9), o9);
|
|
9131
|
+
var s8 = {};
|
|
9132
|
+
var a5 = (o9, l8 = s8) => o9._$AH = l8;
|
|
9133
|
+
var m3 = (o9) => o9._$AH;
|
|
9134
|
+
var p3 = (o9) => {
|
|
9135
|
+
var l8;
|
|
9136
|
+
null === (l8 = o9._$AP) || void 0 === l8 || l8.call(o9, false, true);
|
|
9137
|
+
let i9 = o9._$AA;
|
|
9138
|
+
const n10 = o9._$AB.nextSibling;
|
|
9139
|
+
for (; i9 !== n10; ) {
|
|
9140
|
+
const o10 = i9.nextSibling;
|
|
9141
|
+
i9.remove(), i9 = o10;
|
|
7410
9142
|
}
|
|
7411
9143
|
};
|
|
7412
9144
|
|
|
7413
|
-
// node_modules/lit-html/directives/repeat.js
|
|
7414
|
-
var
|
|
7415
|
-
const
|
|
7416
|
-
for (let
|
|
7417
|
-
|
|
7418
|
-
return
|
|
9145
|
+
// node_modules/lit/node_modules/lit-html/directives/repeat.js
|
|
9146
|
+
var u5 = (e11, s9, t7) => {
|
|
9147
|
+
const r8 = /* @__PURE__ */ new Map();
|
|
9148
|
+
for (let l8 = s9; l8 <= t7; l8++)
|
|
9149
|
+
r8.set(e11[l8], l8);
|
|
9150
|
+
return r8;
|
|
7419
9151
|
};
|
|
7420
|
-
var
|
|
7421
|
-
constructor(
|
|
7422
|
-
if (super(
|
|
9152
|
+
var c6 = e10(class extends i7 {
|
|
9153
|
+
constructor(e11) {
|
|
9154
|
+
if (super(e11), e11.type !== t6.CHILD)
|
|
7423
9155
|
throw Error("repeat() can only be used in text expressions");
|
|
7424
9156
|
}
|
|
7425
|
-
|
|
7426
|
-
let
|
|
7427
|
-
void 0 ===
|
|
7428
|
-
const
|
|
7429
|
-
let
|
|
7430
|
-
for (const
|
|
7431
|
-
|
|
7432
|
-
return { values:
|
|
7433
|
-
}
|
|
7434
|
-
render(
|
|
7435
|
-
return this.
|
|
7436
|
-
}
|
|
7437
|
-
update(
|
|
7438
|
-
var
|
|
7439
|
-
const
|
|
7440
|
-
if (!Array.isArray(
|
|
7441
|
-
return this.
|
|
7442
|
-
const
|
|
7443
|
-
let
|
|
7444
|
-
for (; j2 <=
|
|
7445
|
-
if (null ===
|
|
9157
|
+
ct(e11, s9, t7) {
|
|
9158
|
+
let r8;
|
|
9159
|
+
void 0 === t7 ? t7 = s9 : void 0 !== s9 && (r8 = s9);
|
|
9160
|
+
const l8 = [], o9 = [];
|
|
9161
|
+
let i9 = 0;
|
|
9162
|
+
for (const s10 of e11)
|
|
9163
|
+
l8[i9] = r8 ? r8(s10, i9) : i9, o9[i9] = t7(s10, i9), i9++;
|
|
9164
|
+
return { values: o9, keys: l8 };
|
|
9165
|
+
}
|
|
9166
|
+
render(e11, s9, t7) {
|
|
9167
|
+
return this.ct(e11, s9, t7).values;
|
|
9168
|
+
}
|
|
9169
|
+
update(s9, [t7, r8, c7]) {
|
|
9170
|
+
var d5;
|
|
9171
|
+
const a6 = m3(s9), { values: p4, keys: v3 } = this.ct(t7, r8, c7);
|
|
9172
|
+
if (!Array.isArray(a6))
|
|
9173
|
+
return this.ut = v3, p4;
|
|
9174
|
+
const h5 = null !== (d5 = this.ut) && void 0 !== d5 ? d5 : this.ut = [], m4 = [];
|
|
9175
|
+
let y3, x3, j2 = 0, k3 = a6.length - 1, w3 = 0, A3 = p4.length - 1;
|
|
9176
|
+
for (; j2 <= k3 && w3 <= A3; )
|
|
9177
|
+
if (null === a6[j2])
|
|
7446
9178
|
j2++;
|
|
7447
|
-
else if (null ===
|
|
7448
|
-
|
|
7449
|
-
else if (
|
|
7450
|
-
|
|
7451
|
-
else if (
|
|
7452
|
-
|
|
7453
|
-
else if (
|
|
7454
|
-
|
|
7455
|
-
else if (
|
|
7456
|
-
|
|
7457
|
-
else if (void 0 ===
|
|
7458
|
-
if (
|
|
7459
|
-
const
|
|
7460
|
-
if (null ===
|
|
7461
|
-
const
|
|
7462
|
-
|
|
9179
|
+
else if (null === a6[k3])
|
|
9180
|
+
k3--;
|
|
9181
|
+
else if (h5[j2] === v3[w3])
|
|
9182
|
+
m4[w3] = f3(a6[j2], p4[w3]), j2++, w3++;
|
|
9183
|
+
else if (h5[k3] === v3[A3])
|
|
9184
|
+
m4[A3] = f3(a6[k3], p4[A3]), k3--, A3--;
|
|
9185
|
+
else if (h5[j2] === v3[A3])
|
|
9186
|
+
m4[A3] = f3(a6[j2], p4[A3]), c5(s9, m4[A3 + 1], a6[j2]), j2++, A3--;
|
|
9187
|
+
else if (h5[k3] === v3[w3])
|
|
9188
|
+
m4[w3] = f3(a6[k3], p4[w3]), c5(s9, a6[j2], a6[k3]), k3--, w3++;
|
|
9189
|
+
else if (void 0 === y3 && (y3 = u5(v3, w3, A3), x3 = u5(h5, j2, k3)), y3.has(h5[j2]))
|
|
9190
|
+
if (y3.has(h5[k3])) {
|
|
9191
|
+
const e11 = x3.get(v3[w3]), t8 = void 0 !== e11 ? a6[e11] : null;
|
|
9192
|
+
if (null === t8) {
|
|
9193
|
+
const e12 = c5(s9, a6[j2]);
|
|
9194
|
+
f3(e12, p4[w3]), m4[w3] = e12;
|
|
7463
9195
|
} else
|
|
7464
|
-
|
|
7465
|
-
|
|
9196
|
+
m4[w3] = f3(t8, p4[w3]), c5(s9, a6[j2], t8), a6[e11] = null;
|
|
9197
|
+
w3++;
|
|
7466
9198
|
} else
|
|
7467
|
-
|
|
9199
|
+
p3(a6[k3]), k3--;
|
|
7468
9200
|
else
|
|
7469
|
-
|
|
7470
|
-
for (;
|
|
7471
|
-
const
|
|
7472
|
-
|
|
9201
|
+
p3(a6[j2]), j2++;
|
|
9202
|
+
for (; w3 <= A3; ) {
|
|
9203
|
+
const e11 = c5(s9, m4[A3 + 1]);
|
|
9204
|
+
f3(e11, p4[w3]), m4[w3++] = e11;
|
|
7473
9205
|
}
|
|
7474
|
-
for (; j2 <=
|
|
7475
|
-
const
|
|
7476
|
-
null !==
|
|
9206
|
+
for (; j2 <= k3; ) {
|
|
9207
|
+
const e11 = a6[j2++];
|
|
9208
|
+
null !== e11 && p3(e11);
|
|
7477
9209
|
}
|
|
7478
|
-
return this.
|
|
9210
|
+
return this.ut = v3, a5(s9, m4), T;
|
|
7479
9211
|
}
|
|
7480
9212
|
});
|
|
7481
9213
|
|
|
7482
|
-
// node_modules/lit-html/directives/keyed.js
|
|
7483
|
-
var
|
|
9214
|
+
// node_modules/lit/node_modules/lit-html/directives/keyed.js
|
|
9215
|
+
var i8 = e10(class extends i7 {
|
|
7484
9216
|
constructor() {
|
|
7485
9217
|
super(...arguments), this.key = A;
|
|
7486
9218
|
}
|
|
7487
|
-
render(
|
|
7488
|
-
return this.key =
|
|
9219
|
+
render(r8, t7) {
|
|
9220
|
+
return this.key = r8, t7;
|
|
7489
9221
|
}
|
|
7490
|
-
update(
|
|
7491
|
-
return
|
|
9222
|
+
update(r8, [t7, e11]) {
|
|
9223
|
+
return t7 !== this.key && (a5(r8), this.key = t7), e11;
|
|
7492
9224
|
}
|
|
7493
9225
|
});
|
|
7494
9226
|
|
|
7495
9227
|
// js/questionnaire.ts
|
|
7496
|
-
var QuestionnaireElement = class extends
|
|
9228
|
+
var QuestionnaireElement = class extends s7 {
|
|
7497
9229
|
constructor() {
|
|
7498
9230
|
super(...arguments);
|
|
7499
9231
|
this.accountActive = true;
|
|
@@ -7515,8 +9247,8 @@ meter::-webkit-meter-optimum-value {
|
|
|
7515
9247
|
}
|
|
7516
9248
|
}
|
|
7517
9249
|
render() {
|
|
7518
|
-
return
|
|
7519
|
-
${this.open ? "<div></div>" :
|
|
9250
|
+
return x2`
|
|
9251
|
+
${this.open ? "<div></div>" : x2`<button class="button button--begin" ?disabled=${!this.accountActive} part="begin-button" @click=${this.openModal}><slot>Begin</slot></button>`}
|
|
7520
9252
|
<dialog id="question-modal" class="questionnaire--modal">${this.renderCurrentStep()}</dialog>
|
|
7521
9253
|
`;
|
|
7522
9254
|
}
|
|
@@ -7536,7 +9268,7 @@ meter::-webkit-meter-optimum-value {
|
|
|
7536
9268
|
}
|
|
7537
9269
|
}
|
|
7538
9270
|
renderVideo() {
|
|
7539
|
-
return
|
|
9271
|
+
return x2`
|
|
7540
9272
|
<div>
|
|
7541
9273
|
<button class="button--link" id="close" @click=${this.closeModal}>Back</button>
|
|
7542
9274
|
<div class="questionnaire u-flex u-flex-justify--center fade-in fade-out">
|
|
@@ -7544,14 +9276,15 @@ meter::-webkit-meter-optimum-value {
|
|
|
7544
9276
|
<div class="questionnaire-illustration"><img src=${this.contactInfoImageUrl()}> </div>
|
|
7545
9277
|
<div class="questionnaire--question"><h2 class="u-padding--bt">${this.currentStep.text}</h2></div>
|
|
7546
9278
|
<vimeo-video controls src=${this.currentStep.url} class="questionnaire--video"></vimeo-video>
|
|
7547
|
-
<div data-test-id="
|
|
9279
|
+
<div data-test-id="questionnaire-info"><h4>Thank you for completing the assessment. We'll be calling you within 24 hours with more information.</h4></div>
|
|
9280
|
+
<div data-test-id="site-phone-number"><h4>If you'd like to speak with us sooner, </br> please feel free to</h4><a href="tel:${this.phoneNumber}"><h1>Call Us</h1></a></div>
|
|
7548
9281
|
</div>
|
|
7549
9282
|
</div>
|
|
7550
9283
|
</div>
|
|
7551
9284
|
`;
|
|
7552
9285
|
}
|
|
7553
9286
|
renderContactInfo() {
|
|
7554
|
-
return
|
|
9287
|
+
return x2`
|
|
7555
9288
|
<div class="questionnaire fade-in fade-out">
|
|
7556
9289
|
<div class="questionnaire-illustration"><img src=${this.contactInfoImageUrl()}> </div>
|
|
7557
9290
|
<div class="form__container">
|
|
@@ -7571,9 +9304,7 @@ meter::-webkit-meter-optimum-value {
|
|
|
7571
9304
|
</div>
|
|
7572
9305
|
<div>
|
|
7573
9306
|
<label for="email">Email</label>
|
|
7574
|
-
<input type="email" id="email" name="email" required
|
|
7575
|
-
pattern="^[^@\s]+@[^@\s]+\\.[^@\s]+$"
|
|
7576
|
-
title="Please enter a valid email address (e.g. user@example.com)"/>
|
|
9307
|
+
<input type="email" id="email" name="email" required />
|
|
7577
9308
|
</div>
|
|
7578
9309
|
<div>
|
|
7579
9310
|
<label for="phone">Phone</label>
|
|
@@ -7585,12 +9316,12 @@ meter::-webkit-meter-optimum-value {
|
|
|
7585
9316
|
<label for="zip_code">Zip Code</label>
|
|
7586
9317
|
<input type="text" id="zip_code" name="zip_code" required
|
|
7587
9318
|
pattern="^[0-9]{5,6}$"
|
|
7588
|
-
title="Please enter a valid
|
|
9319
|
+
title="Please enter a valid zip code (5 or 6 digits)"/>
|
|
7589
9320
|
</div>
|
|
7590
9321
|
<div>
|
|
7591
9322
|
<label for="insurance_provider">Insurance Provider</label>
|
|
7592
9323
|
<select id="insurance_provider" name="insurance_provider">
|
|
7593
|
-
${this.providers.map((provider) =>
|
|
9324
|
+
${this.providers.map((provider) => x2`
|
|
7594
9325
|
<option value="${provider}">${provider}</option>
|
|
7595
9326
|
`)}
|
|
7596
9327
|
</select>
|
|
@@ -7621,16 +9352,16 @@ meter::-webkit-meter-optimum-value {
|
|
|
7621
9352
|
}
|
|
7622
9353
|
renderQuestion() {
|
|
7623
9354
|
const question = this.currentStep;
|
|
7624
|
-
return
|
|
9355
|
+
return x2`
|
|
7625
9356
|
<div>
|
|
7626
|
-
${
|
|
9357
|
+
${i8(question.id, x2`
|
|
7627
9358
|
<div class="questionnaire fade-in fade-out u-push-bottom--lg">
|
|
7628
9359
|
<div class="questionnaire-illustration"><img src=${this.imageSrc()}></div>
|
|
7629
9360
|
<div class="questionnaire--question"><h1>${question.text}</h1></div>
|
|
7630
9361
|
<div class="questionnaire--subtitle"><h2>${question.subtitle}</h2></div>
|
|
7631
9362
|
<div class="questionnaire--bt-contain">
|
|
7632
9363
|
<div>
|
|
7633
|
-
${
|
|
9364
|
+
${c6(question?.answers, (answer) => answer.id, (answer) => x2`<button class="button" @click=${this.answerQuestion} data-answer-id=${answer.id}>${answer.text}</button>
|
|
7634
9365
|
`)}
|
|
7635
9366
|
</div>
|
|
7636
9367
|
</div>
|
|
@@ -7639,11 +9370,11 @@ meter::-webkit-meter-optimum-value {
|
|
|
7639
9370
|
<meter value=${this.visitedNodes.length} max=${this.questionnaireDepth} />
|
|
7640
9371
|
</div>
|
|
7641
9372
|
`)}
|
|
7642
|
-
${this.visitedNodes.length > 1 ?
|
|
7643
|
-
<button class="button--link" @click=${this.goBack}>Back</button>` :
|
|
9373
|
+
${this.visitedNodes.length > 1 ? x2`
|
|
9374
|
+
<button class="button--link" @click=${this.goBack}>Back</button>` : x2`
|
|
7644
9375
|
<button class="button--link" id="close" @click=${this.closeModal}>Close</button>
|
|
7645
9376
|
`}
|
|
7646
|
-
<span class="u-flex u-flex-justify--center u-width-100"> ${this.links && this.links["learn_more_url"] ?
|
|
9377
|
+
<span class="u-flex u-flex-justify--center u-width-100"> ${this.links && this.links["learn_more_url"] ? x2`<a href=${this.links["learn_more_url"]} target="_blank">Learn More</a>` : ""} </span>
|
|
7647
9378
|
</div>
|
|
7648
9379
|
`;
|
|
7649
9380
|
}
|
|
@@ -7673,115 +9404,94 @@ meter::-webkit-meter-optimum-value {
|
|
|
7673
9404
|
event.preventDefault();
|
|
7674
9405
|
if (this.contactInfoForm?.checkValidity()) {
|
|
7675
9406
|
const email = this.emailInput?.value;
|
|
7676
|
-
const phone = this.phoneInput?.value;
|
|
7677
|
-
const zipCode = this.zipCodeInput?.value;
|
|
7678
|
-
const emailRegex = /^[^@\s]+@[^@\s]+\.[^@\s]+$/;
|
|
7679
|
-
if (!emailRegex.test(email)) {
|
|
7680
|
-
alert("Please enter a valid email address");
|
|
7681
|
-
return;
|
|
7682
|
-
}
|
|
7683
|
-
const phoneRegex = /^\d{6,}$/;
|
|
7684
|
-
if (!phoneRegex.test(phone)) {
|
|
7685
|
-
alert("Phone number must contain only numbers and be at least 6 digits long");
|
|
7686
|
-
return;
|
|
7687
|
-
}
|
|
7688
|
-
const zipCodeRegex = /^\d{5,6}$/;
|
|
7689
|
-
if (!zipCodeRegex.test(zipCode)) {
|
|
7690
|
-
alert("Zip code must be 5 or 6 digits");
|
|
7691
|
-
return;
|
|
7692
|
-
}
|
|
7693
9407
|
const hsq = window["_hsq"] = window["_hsq"] || [];
|
|
7694
9408
|
hsq.push(["identify", { email }]);
|
|
7695
9409
|
hsq.push(["setPath", "/submit-contact-info"]);
|
|
7696
9410
|
hsq.push(["trackPageView"]);
|
|
9411
|
+
const formData = {
|
|
9412
|
+
nodeId: this.currentStep?.id,
|
|
9413
|
+
first_name: this.firstNameInput.value,
|
|
9414
|
+
last_name: this.lastNameInput.value,
|
|
9415
|
+
email,
|
|
9416
|
+
zip_code: this.zipCodeInput?.value,
|
|
9417
|
+
phone_number: this.phoneInput?.value,
|
|
9418
|
+
insurance_provider: this.insuranceProviderSelect.value
|
|
9419
|
+
};
|
|
9420
|
+
window["dataLayer"] = window["dataLayer"] || [];
|
|
9421
|
+
window["dataLayer"].push({
|
|
9422
|
+
"event": "questionnaireSubmission",
|
|
9423
|
+
"formData": formData
|
|
9424
|
+
});
|
|
7697
9425
|
this.dispatchEvent(new CustomEvent("submitContactInfo", {
|
|
7698
|
-
detail:
|
|
7699
|
-
nodeId: this.currentStep?.id,
|
|
7700
|
-
first_name: this.firstNameInput.value,
|
|
7701
|
-
last_name: this.lastNameInput.value,
|
|
7702
|
-
email,
|
|
7703
|
-
zip_code: zipCode,
|
|
7704
|
-
phone_number: phone,
|
|
7705
|
-
insurance_provider: this.insuranceProviderSelect.value
|
|
7706
|
-
}
|
|
9426
|
+
detail: formData
|
|
7707
9427
|
}));
|
|
7708
9428
|
}
|
|
7709
9429
|
}
|
|
7710
|
-
formatPhoneNumber(phoneNumber) {
|
|
7711
|
-
switch (phoneNumber.length) {
|
|
7712
|
-
case 10:
|
|
7713
|
-
return `${phoneNumber.slice(0, 3)}-${phoneNumber.slice(3, 6)}-${phoneNumber.slice(6)}`;
|
|
7714
|
-
case 11:
|
|
7715
|
-
return `${phoneNumber.slice(0, 1)}-${phoneNumber.slice(1, 4)}-${phoneNumber.slice(4, 7)}-${phoneNumber.slice(7)}`;
|
|
7716
|
-
default:
|
|
7717
|
-
return phoneNumber;
|
|
7718
|
-
}
|
|
7719
|
-
}
|
|
7720
9430
|
};
|
|
7721
9431
|
QuestionnaireElement.styles = questionnaire_lit_default;
|
|
7722
9432
|
__decorateClass([
|
|
7723
|
-
|
|
9433
|
+
t5()
|
|
7724
9434
|
], QuestionnaireElement.prototype, "currentStep", 2);
|
|
7725
9435
|
__decorateClass([
|
|
7726
|
-
|
|
9436
|
+
t5()
|
|
7727
9437
|
], QuestionnaireElement.prototype, "accountActive", 2);
|
|
7728
9438
|
__decorateClass([
|
|
7729
|
-
|
|
9439
|
+
t5()
|
|
7730
9440
|
], QuestionnaireElement.prototype, "visitedNodes", 2);
|
|
7731
9441
|
__decorateClass([
|
|
7732
|
-
|
|
9442
|
+
t5()
|
|
7733
9443
|
], QuestionnaireElement.prototype, "links", 2);
|
|
7734
9444
|
__decorateClass([
|
|
7735
|
-
|
|
9445
|
+
t5()
|
|
7736
9446
|
], QuestionnaireElement.prototype, "questionnaireDepth", 2);
|
|
7737
9447
|
__decorateClass([
|
|
7738
|
-
|
|
9448
|
+
t5()
|
|
7739
9449
|
], QuestionnaireElement.prototype, "phoneNumber", 2);
|
|
7740
9450
|
__decorateClass([
|
|
7741
|
-
|
|
9451
|
+
t5()
|
|
7742
9452
|
], QuestionnaireElement.prototype, "providers", 2);
|
|
7743
9453
|
__decorateClass([
|
|
7744
|
-
|
|
9454
|
+
n8(),
|
|
7745
9455
|
liveStateConfig("url")
|
|
7746
9456
|
], QuestionnaireElement.prototype, "url", 2);
|
|
7747
9457
|
__decorateClass([
|
|
7748
|
-
|
|
9458
|
+
n8({ attribute: "site-id" })
|
|
7749
9459
|
], QuestionnaireElement.prototype, "siteId", 2);
|
|
7750
9460
|
__decorateClass([
|
|
7751
|
-
|
|
9461
|
+
n8({ attribute: "hubspot-id" })
|
|
7752
9462
|
], QuestionnaireElement.prototype, "hubspotId", 2);
|
|
7753
9463
|
__decorateClass([
|
|
7754
|
-
|
|
9464
|
+
n8({ type: Boolean })
|
|
7755
9465
|
], QuestionnaireElement.prototype, "open", 2);
|
|
7756
9466
|
__decorateClass([
|
|
7757
|
-
|
|
9467
|
+
i6("#question-modal")
|
|
7758
9468
|
], QuestionnaireElement.prototype, "modal", 2);
|
|
7759
9469
|
__decorateClass([
|
|
7760
|
-
|
|
9470
|
+
i6("#first_name")
|
|
7761
9471
|
], QuestionnaireElement.prototype, "firstNameInput", 2);
|
|
7762
9472
|
__decorateClass([
|
|
7763
|
-
|
|
9473
|
+
i6("#last_name")
|
|
7764
9474
|
], QuestionnaireElement.prototype, "lastNameInput", 2);
|
|
7765
9475
|
__decorateClass([
|
|
7766
|
-
|
|
9476
|
+
i6("#email")
|
|
7767
9477
|
], QuestionnaireElement.prototype, "emailInput", 2);
|
|
7768
9478
|
__decorateClass([
|
|
7769
|
-
|
|
9479
|
+
i6("#phone")
|
|
7770
9480
|
], QuestionnaireElement.prototype, "phoneInput", 2);
|
|
7771
9481
|
__decorateClass([
|
|
7772
|
-
|
|
9482
|
+
i6("#zip_code")
|
|
7773
9483
|
], QuestionnaireElement.prototype, "zipCodeInput", 2);
|
|
7774
9484
|
__decorateClass([
|
|
7775
|
-
|
|
9485
|
+
i6("#insurance_provider")
|
|
7776
9486
|
], QuestionnaireElement.prototype, "insuranceProviderSelect", 2);
|
|
7777
9487
|
__decorateClass([
|
|
7778
|
-
|
|
9488
|
+
i6("form")
|
|
7779
9489
|
], QuestionnaireElement.prototype, "contactInfoForm", 2);
|
|
7780
9490
|
__decorateClass([
|
|
7781
9491
|
liveStateConfig("topic")
|
|
7782
9492
|
], QuestionnaireElement.prototype, "topic", 1);
|
|
7783
9493
|
QuestionnaireElement = __decorateClass([
|
|
7784
|
-
|
|
9494
|
+
e7("pr360-questionnaire"),
|
|
7785
9495
|
liveStateDecorator_default({
|
|
7786
9496
|
properties: ["currentStep", "visitedNodes", "phoneNumber", "links", "accountActive", "questionnaireDepth", "providers"],
|
|
7787
9497
|
events: {
|
|
@@ -7796,6 +9506,27 @@ meter::-webkit-meter-optimum-value {
|
|
|
7796
9506
|
})();
|
|
7797
9507
|
/*! Bundled license information:
|
|
7798
9508
|
|
|
9509
|
+
@lit/reactive-element/css-tag.js:
|
|
9510
|
+
(**
|
|
9511
|
+
* @license
|
|
9512
|
+
* Copyright 2019 Google LLC
|
|
9513
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
9514
|
+
*)
|
|
9515
|
+
|
|
9516
|
+
@lit/reactive-element/reactive-element.js:
|
|
9517
|
+
(**
|
|
9518
|
+
* @license
|
|
9519
|
+
* Copyright 2017 Google LLC
|
|
9520
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
9521
|
+
*)
|
|
9522
|
+
|
|
9523
|
+
lit-html/lit-html.js:
|
|
9524
|
+
(**
|
|
9525
|
+
* @license
|
|
9526
|
+
* Copyright 2017 Google LLC
|
|
9527
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
9528
|
+
*)
|
|
9529
|
+
|
|
7799
9530
|
@lit/reactive-element/css-tag.js:
|
|
7800
9531
|
(**
|
|
7801
9532
|
* @license
|
|
@@ -7918,7 +9649,7 @@ reflect-metadata/Reflect.js:
|
|
|
7918
9649
|
***************************************************************************** *)
|
|
7919
9650
|
|
|
7920
9651
|
@vimeo/player/dist/player.es.js:
|
|
7921
|
-
(*! @vimeo/player v2.
|
|
9652
|
+
(*! @vimeo/player v2.23.0 | (c) 2024 Vimeo | MIT License | https://github.com/vimeo/player.js *)
|
|
7922
9653
|
(*!
|
|
7923
9654
|
* weakmap-polyfill v2.0.4 - ECMAScript6 WeakMap polyfill
|
|
7924
9655
|
* https://github.com/polygonplanet/weakmap-polyfill
|