@telia-ace/widget-components-copyright-flamingo 1.1.110-rc.1 → 1.1.110
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/copyright-Dk-YoeXu.js +514 -0
- package/{copyright-CT76vuIZ.mjs → copyright-vxGANJlL.mjs} +635 -655
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +2 -2
- package/copyright-DGB-hQlb.js +0 -514
|
@@ -1,93 +1,93 @@
|
|
|
1
|
-
var
|
|
2
|
-
return
|
|
1
|
+
var lt = function(n, t) {
|
|
2
|
+
return lt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, i) {
|
|
3
3
|
e.__proto__ = i;
|
|
4
4
|
} || function(e, i) {
|
|
5
|
-
for (var
|
|
6
|
-
},
|
|
5
|
+
for (var s in i) Object.prototype.hasOwnProperty.call(i, s) && (e[s] = i[s]);
|
|
6
|
+
}, lt(n, t);
|
|
7
7
|
};
|
|
8
|
-
function D(
|
|
8
|
+
function D(n, t) {
|
|
9
9
|
if (typeof t != "function" && t !== null)
|
|
10
10
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
11
|
-
|
|
11
|
+
lt(n, t);
|
|
12
12
|
function e() {
|
|
13
|
-
this.constructor =
|
|
13
|
+
this.constructor = n;
|
|
14
14
|
}
|
|
15
|
-
|
|
15
|
+
n.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
|
|
16
16
|
}
|
|
17
|
-
function
|
|
18
|
-
var t = typeof Symbol == "function" && Symbol.iterator, e = t &&
|
|
19
|
-
if (e) return e.call(
|
|
20
|
-
if (
|
|
17
|
+
function dt(n) {
|
|
18
|
+
var t = typeof Symbol == "function" && Symbol.iterator, e = t && n[t], i = 0;
|
|
19
|
+
if (e) return e.call(n);
|
|
20
|
+
if (n && typeof n.length == "number") return {
|
|
21
21
|
next: function() {
|
|
22
|
-
return
|
|
22
|
+
return n && i >= n.length && (n = void 0), { value: n && n[i++], done: !n };
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
25
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
26
26
|
}
|
|
27
|
-
function ut(
|
|
28
|
-
var e = typeof Symbol == "function" &&
|
|
29
|
-
if (!e) return
|
|
30
|
-
var i = e.call(
|
|
27
|
+
function ut(n, t) {
|
|
28
|
+
var e = typeof Symbol == "function" && n[Symbol.iterator];
|
|
29
|
+
if (!e) return n;
|
|
30
|
+
var i = e.call(n), s, r = [], o;
|
|
31
31
|
try {
|
|
32
|
-
for (; (t === void 0 || t-- > 0) && !(
|
|
32
|
+
for (; (t === void 0 || t-- > 0) && !(s = i.next()).done; ) r.push(s.value);
|
|
33
33
|
} catch (a) {
|
|
34
34
|
o = { error: a };
|
|
35
35
|
} finally {
|
|
36
36
|
try {
|
|
37
|
-
|
|
37
|
+
s && !s.done && (e = i.return) && e.call(i);
|
|
38
38
|
} finally {
|
|
39
39
|
if (o) throw o.error;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
return
|
|
42
|
+
return r;
|
|
43
43
|
}
|
|
44
|
-
function
|
|
45
|
-
if (e || arguments.length === 2) for (var i = 0,
|
|
46
|
-
(
|
|
47
|
-
return
|
|
44
|
+
function pt(n, t, e) {
|
|
45
|
+
if (e || arguments.length === 2) for (var i = 0, s = t.length, r; i < s; i++)
|
|
46
|
+
(r || !(i in t)) && (r || (r = Array.prototype.slice.call(t, 0, i)), r[i] = t[i]);
|
|
47
|
+
return n.concat(r || Array.prototype.slice.call(t));
|
|
48
48
|
}
|
|
49
|
-
function
|
|
50
|
-
return typeof
|
|
49
|
+
function v(n) {
|
|
50
|
+
return typeof n == "function";
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function re(n) {
|
|
53
53
|
var t = function(i) {
|
|
54
54
|
Error.call(i), i.stack = new Error().stack;
|
|
55
|
-
}, e =
|
|
55
|
+
}, e = n(t);
|
|
56
56
|
return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
|
|
57
57
|
}
|
|
58
|
-
var it =
|
|
58
|
+
var it = re(function(n) {
|
|
59
59
|
return function(e) {
|
|
60
|
-
|
|
61
|
-
` + e.map(function(i,
|
|
62
|
-
return
|
|
60
|
+
n(this), this.message = e ? e.length + ` errors occurred during unsubscription:
|
|
61
|
+
` + e.map(function(i, s) {
|
|
62
|
+
return s + 1 + ") " + i.toString();
|
|
63
63
|
}).join(`
|
|
64
64
|
`) : "", this.name = "UnsubscriptionError", this.errors = e;
|
|
65
65
|
};
|
|
66
66
|
});
|
|
67
|
-
function
|
|
68
|
-
if (
|
|
69
|
-
var e =
|
|
70
|
-
0 <= e &&
|
|
67
|
+
function ft(n, t) {
|
|
68
|
+
if (n) {
|
|
69
|
+
var e = n.indexOf(t);
|
|
70
|
+
0 <= e && n.splice(e, 1);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
var tt = function() {
|
|
74
|
-
function
|
|
74
|
+
function n(t) {
|
|
75
75
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
76
76
|
}
|
|
77
|
-
return
|
|
78
|
-
var t, e, i,
|
|
77
|
+
return n.prototype.unsubscribe = function() {
|
|
78
|
+
var t, e, i, s, r;
|
|
79
79
|
if (!this.closed) {
|
|
80
80
|
this.closed = !0;
|
|
81
81
|
var o = this._parentage;
|
|
82
82
|
if (o)
|
|
83
83
|
if (this._parentage = null, Array.isArray(o))
|
|
84
84
|
try {
|
|
85
|
-
for (var a =
|
|
85
|
+
for (var a = dt(o), c = a.next(); !c.done; c = a.next()) {
|
|
86
86
|
var h = c.value;
|
|
87
87
|
h.remove(this);
|
|
88
88
|
}
|
|
89
|
-
} catch (
|
|
90
|
-
t = { error:
|
|
89
|
+
} catch (m) {
|
|
90
|
+
t = { error: m };
|
|
91
91
|
} finally {
|
|
92
92
|
try {
|
|
93
93
|
c && !c.done && (e = a.return) && e.call(a);
|
|
@@ -98,108 +98,104 @@ var tt = function() {
|
|
|
98
98
|
else
|
|
99
99
|
o.remove(this);
|
|
100
100
|
var l = this.initialTeardown;
|
|
101
|
-
if (
|
|
101
|
+
if (v(l))
|
|
102
102
|
try {
|
|
103
103
|
l();
|
|
104
|
-
} catch (
|
|
105
|
-
|
|
104
|
+
} catch (m) {
|
|
105
|
+
r = m instanceof it ? m.errors : [m];
|
|
106
106
|
}
|
|
107
107
|
var d = this._finalizers;
|
|
108
108
|
if (d) {
|
|
109
109
|
this._finalizers = null;
|
|
110
110
|
try {
|
|
111
|
-
for (var
|
|
112
|
-
var
|
|
111
|
+
for (var p = dt(d), f = p.next(); !f.done; f = p.next()) {
|
|
112
|
+
var k = f.value;
|
|
113
113
|
try {
|
|
114
|
-
|
|
115
|
-
} catch (
|
|
116
|
-
|
|
114
|
+
Mt(k);
|
|
115
|
+
} catch (m) {
|
|
116
|
+
r = r ?? [], m instanceof it ? r = pt(pt([], ut(r)), ut(m.errors)) : r.push(m);
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
-
} catch (
|
|
120
|
-
i = { error:
|
|
119
|
+
} catch (m) {
|
|
120
|
+
i = { error: m };
|
|
121
121
|
} finally {
|
|
122
122
|
try {
|
|
123
|
-
f && !f.done && (
|
|
123
|
+
f && !f.done && (s = p.return) && s.call(p);
|
|
124
124
|
} finally {
|
|
125
125
|
if (i) throw i.error;
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
|
-
if (
|
|
130
|
-
throw new it(
|
|
129
|
+
if (r)
|
|
130
|
+
throw new it(r);
|
|
131
131
|
}
|
|
132
|
-
},
|
|
132
|
+
}, n.prototype.add = function(t) {
|
|
133
133
|
var e;
|
|
134
134
|
if (t && t !== this)
|
|
135
135
|
if (this.closed)
|
|
136
|
-
|
|
136
|
+
Mt(t);
|
|
137
137
|
else {
|
|
138
|
-
if (t instanceof
|
|
138
|
+
if (t instanceof n) {
|
|
139
139
|
if (t.closed || t._hasParent(this))
|
|
140
140
|
return;
|
|
141
141
|
t._addParent(this);
|
|
142
142
|
}
|
|
143
143
|
(this._finalizers = (e = this._finalizers) !== null && e !== void 0 ? e : []).push(t);
|
|
144
144
|
}
|
|
145
|
-
},
|
|
145
|
+
}, n.prototype._hasParent = function(t) {
|
|
146
146
|
var e = this._parentage;
|
|
147
147
|
return e === t || Array.isArray(e) && e.includes(t);
|
|
148
|
-
},
|
|
148
|
+
}, n.prototype._addParent = function(t) {
|
|
149
149
|
var e = this._parentage;
|
|
150
150
|
this._parentage = Array.isArray(e) ? (e.push(t), e) : e ? [e, t] : t;
|
|
151
|
-
},
|
|
151
|
+
}, n.prototype._removeParent = function(t) {
|
|
152
152
|
var e = this._parentage;
|
|
153
|
-
e === t ? this._parentage = null : Array.isArray(e) &&
|
|
154
|
-
},
|
|
153
|
+
e === t ? this._parentage = null : Array.isArray(e) && ft(e, t);
|
|
154
|
+
}, n.prototype.remove = function(t) {
|
|
155
155
|
var e = this._finalizers;
|
|
156
|
-
e &&
|
|
157
|
-
},
|
|
158
|
-
var t = new
|
|
156
|
+
e && ft(e, t), t instanceof n && t._removeParent(this);
|
|
157
|
+
}, n.EMPTY = function() {
|
|
158
|
+
var t = new n();
|
|
159
159
|
return t.closed = !0, t;
|
|
160
|
-
}(),
|
|
161
|
-
}(),
|
|
162
|
-
function
|
|
163
|
-
return
|
|
160
|
+
}(), n;
|
|
161
|
+
}(), oe = tt.EMPTY;
|
|
162
|
+
function ae(n) {
|
|
163
|
+
return n instanceof tt || n && "closed" in n && v(n.remove) && v(n.add) && v(n.unsubscribe);
|
|
164
164
|
}
|
|
165
|
-
function
|
|
166
|
-
|
|
165
|
+
function Mt(n) {
|
|
166
|
+
v(n) ? n() : n.unsubscribe();
|
|
167
167
|
}
|
|
168
|
-
var
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
173
|
-
useDeprecatedNextContext: !1
|
|
174
|
-
}, Ee = {
|
|
175
|
-
setTimeout: function(s, t) {
|
|
168
|
+
var xe = {
|
|
169
|
+
Promise: void 0
|
|
170
|
+
}, Ce = {
|
|
171
|
+
setTimeout: function(n, t) {
|
|
176
172
|
for (var e = [], i = 2; i < arguments.length; i++)
|
|
177
173
|
e[i - 2] = arguments[i];
|
|
178
|
-
return setTimeout.apply(void 0,
|
|
174
|
+
return setTimeout.apply(void 0, pt([n, t], ut(e)));
|
|
179
175
|
},
|
|
180
|
-
clearTimeout: function(
|
|
181
|
-
return clearTimeout(
|
|
176
|
+
clearTimeout: function(n) {
|
|
177
|
+
return clearTimeout(n);
|
|
182
178
|
},
|
|
183
179
|
delegate: void 0
|
|
184
180
|
};
|
|
185
|
-
function
|
|
186
|
-
|
|
187
|
-
throw
|
|
181
|
+
function Ee(n) {
|
|
182
|
+
Ce.setTimeout(function() {
|
|
183
|
+
throw n;
|
|
188
184
|
});
|
|
189
185
|
}
|
|
190
|
-
function
|
|
186
|
+
function Ht() {
|
|
191
187
|
}
|
|
192
|
-
function W(
|
|
193
|
-
|
|
188
|
+
function W(n) {
|
|
189
|
+
n();
|
|
194
190
|
}
|
|
195
|
-
var
|
|
196
|
-
D(t,
|
|
191
|
+
var ce = function(n) {
|
|
192
|
+
D(t, n);
|
|
197
193
|
function t(e) {
|
|
198
|
-
var i =
|
|
199
|
-
return i.isStopped = !1, e ? (i.destination = e,
|
|
194
|
+
var i = n.call(this) || this;
|
|
195
|
+
return i.isStopped = !1, e ? (i.destination = e, ae(e) && e.add(i)) : i.destination = Oe, i;
|
|
200
196
|
}
|
|
201
|
-
return t.create = function(e, i,
|
|
202
|
-
return new
|
|
197
|
+
return t.create = function(e, i, s) {
|
|
198
|
+
return new gt(e, i, s);
|
|
203
199
|
}, t.prototype.next = function(e) {
|
|
204
200
|
this.isStopped || this._next(e);
|
|
205
201
|
}, t.prototype.error = function(e) {
|
|
@@ -207,7 +203,7 @@ var le = function(s) {
|
|
|
207
203
|
}, t.prototype.complete = function() {
|
|
208
204
|
this.isStopped || (this.isStopped = !0, this._complete());
|
|
209
205
|
}, t.prototype.unsubscribe = function() {
|
|
210
|
-
this.closed || (this.isStopped = !0,
|
|
206
|
+
this.closed || (this.isStopped = !0, n.prototype.unsubscribe.call(this), this.destination = null);
|
|
211
207
|
}, t.prototype._next = function(e) {
|
|
212
208
|
this.destination.next(e);
|
|
213
209
|
}, t.prototype._error = function(e) {
|
|
@@ -223,15 +219,11 @@ var le = function(s) {
|
|
|
223
219
|
this.unsubscribe();
|
|
224
220
|
}
|
|
225
221
|
}, t;
|
|
226
|
-
}(tt),
|
|
227
|
-
function
|
|
228
|
-
return Pe.call(s, t);
|
|
229
|
-
}
|
|
230
|
-
var ke = function() {
|
|
231
|
-
function s(t) {
|
|
222
|
+
}(tt), Se = function() {
|
|
223
|
+
function n(t) {
|
|
232
224
|
this.partialObserver = t;
|
|
233
225
|
}
|
|
234
|
-
return
|
|
226
|
+
return n.prototype.next = function(t) {
|
|
235
227
|
var e = this.partialObserver;
|
|
236
228
|
if (e.next)
|
|
237
229
|
try {
|
|
@@ -239,7 +231,7 @@ var ke = function() {
|
|
|
239
231
|
} catch (i) {
|
|
240
232
|
Z(i);
|
|
241
233
|
}
|
|
242
|
-
},
|
|
234
|
+
}, n.prototype.error = function(t) {
|
|
243
235
|
var e = this.partialObserver;
|
|
244
236
|
if (e.error)
|
|
245
237
|
try {
|
|
@@ -249,7 +241,7 @@ var ke = function() {
|
|
|
249
241
|
}
|
|
250
242
|
else
|
|
251
243
|
Z(t);
|
|
252
|
-
},
|
|
244
|
+
}, n.prototype.complete = function() {
|
|
253
245
|
var t = this.partialObserver;
|
|
254
246
|
if (t.complete)
|
|
255
247
|
try {
|
|
@@ -257,159 +249,147 @@ var ke = function() {
|
|
|
257
249
|
} catch (e) {
|
|
258
250
|
Z(e);
|
|
259
251
|
}
|
|
260
|
-
},
|
|
261
|
-
}(),
|
|
262
|
-
D(t,
|
|
263
|
-
function t(e, i,
|
|
264
|
-
var
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
};
|
|
271
|
-
else {
|
|
272
|
-
var a;
|
|
273
|
-
n && he.useDeprecatedNextContext ? (a = Object.create(e), a.unsubscribe = function() {
|
|
274
|
-
return n.unsubscribe();
|
|
275
|
-
}, o = {
|
|
276
|
-
next: e.next && st(e.next, a),
|
|
277
|
-
error: e.error && st(e.error, a),
|
|
278
|
-
complete: e.complete && st(e.complete, a)
|
|
279
|
-
}) : o = e;
|
|
280
|
-
}
|
|
281
|
-
return n.destination = new ke(o), n;
|
|
252
|
+
}, n;
|
|
253
|
+
}(), gt = function(n) {
|
|
254
|
+
D(t, n);
|
|
255
|
+
function t(e, i, s) {
|
|
256
|
+
var r = n.call(this) || this, o;
|
|
257
|
+
return v(e) || !e ? o = {
|
|
258
|
+
next: e ?? void 0,
|
|
259
|
+
error: i ?? void 0,
|
|
260
|
+
complete: s ?? void 0
|
|
261
|
+
} : o = e, r.destination = new Se(o), r;
|
|
282
262
|
}
|
|
283
263
|
return t;
|
|
284
|
-
}(
|
|
285
|
-
function Z(
|
|
286
|
-
|
|
264
|
+
}(ce);
|
|
265
|
+
function Z(n) {
|
|
266
|
+
Ee(n);
|
|
287
267
|
}
|
|
288
|
-
function
|
|
289
|
-
throw
|
|
268
|
+
function Pe(n) {
|
|
269
|
+
throw n;
|
|
290
270
|
}
|
|
291
|
-
var
|
|
271
|
+
var Oe = {
|
|
292
272
|
closed: !0,
|
|
293
|
-
next:
|
|
294
|
-
error:
|
|
295
|
-
complete:
|
|
296
|
-
},
|
|
273
|
+
next: Ht,
|
|
274
|
+
error: Pe,
|
|
275
|
+
complete: Ht
|
|
276
|
+
}, ke = function() {
|
|
297
277
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
298
278
|
}();
|
|
299
|
-
function
|
|
300
|
-
return
|
|
279
|
+
function Te(n) {
|
|
280
|
+
return n;
|
|
301
281
|
}
|
|
302
|
-
function
|
|
303
|
-
return
|
|
304
|
-
return
|
|
305
|
-
return
|
|
282
|
+
function Me(n) {
|
|
283
|
+
return n.length === 0 ? Te : n.length === 1 ? n[0] : function(e) {
|
|
284
|
+
return n.reduce(function(i, s) {
|
|
285
|
+
return s(i);
|
|
306
286
|
}, e);
|
|
307
287
|
};
|
|
308
288
|
}
|
|
309
|
-
var
|
|
310
|
-
function
|
|
289
|
+
var Lt = function() {
|
|
290
|
+
function n(t) {
|
|
311
291
|
t && (this._subscribe = t);
|
|
312
292
|
}
|
|
313
|
-
return
|
|
314
|
-
var e = new
|
|
293
|
+
return n.prototype.lift = function(t) {
|
|
294
|
+
var e = new n();
|
|
315
295
|
return e.source = this, e.operator = t, e;
|
|
316
|
-
},
|
|
317
|
-
var
|
|
296
|
+
}, n.prototype.subscribe = function(t, e, i) {
|
|
297
|
+
var s = this, r = Le(t) ? t : new gt(t, e, i);
|
|
318
298
|
return W(function() {
|
|
319
|
-
var o =
|
|
320
|
-
|
|
321
|
-
}),
|
|
322
|
-
},
|
|
299
|
+
var o = s, a = o.operator, c = o.source;
|
|
300
|
+
r.add(a ? a.call(r, c) : c ? s._subscribe(r) : s._trySubscribe(r));
|
|
301
|
+
}), r;
|
|
302
|
+
}, n.prototype._trySubscribe = function(t) {
|
|
323
303
|
try {
|
|
324
304
|
return this._subscribe(t);
|
|
325
305
|
} catch (e) {
|
|
326
306
|
t.error(e);
|
|
327
307
|
}
|
|
328
|
-
},
|
|
308
|
+
}, n.prototype.forEach = function(t, e) {
|
|
329
309
|
var i = this;
|
|
330
|
-
return e =
|
|
331
|
-
var o = new
|
|
310
|
+
return e = Ut(e), new e(function(s, r) {
|
|
311
|
+
var o = new gt({
|
|
332
312
|
next: function(a) {
|
|
333
313
|
try {
|
|
334
314
|
t(a);
|
|
335
315
|
} catch (c) {
|
|
336
|
-
|
|
316
|
+
r(c), o.unsubscribe();
|
|
337
317
|
}
|
|
338
318
|
},
|
|
339
|
-
error:
|
|
340
|
-
complete:
|
|
319
|
+
error: r,
|
|
320
|
+
complete: s
|
|
341
321
|
});
|
|
342
322
|
i.subscribe(o);
|
|
343
323
|
});
|
|
344
|
-
},
|
|
324
|
+
}, n.prototype._subscribe = function(t) {
|
|
345
325
|
var e;
|
|
346
326
|
return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(t);
|
|
347
|
-
},
|
|
327
|
+
}, n.prototype[ke] = function() {
|
|
348
328
|
return this;
|
|
349
|
-
},
|
|
329
|
+
}, n.prototype.pipe = function() {
|
|
350
330
|
for (var t = [], e = 0; e < arguments.length; e++)
|
|
351
331
|
t[e] = arguments[e];
|
|
352
|
-
return
|
|
353
|
-
},
|
|
332
|
+
return Me(t)(this);
|
|
333
|
+
}, n.prototype.toPromise = function(t) {
|
|
354
334
|
var e = this;
|
|
355
|
-
return t =
|
|
356
|
-
var
|
|
335
|
+
return t = Ut(t), new t(function(i, s) {
|
|
336
|
+
var r;
|
|
357
337
|
e.subscribe(function(o) {
|
|
358
|
-
return
|
|
338
|
+
return r = o;
|
|
359
339
|
}, function(o) {
|
|
360
|
-
return
|
|
340
|
+
return s(o);
|
|
361
341
|
}, function() {
|
|
362
|
-
return i(
|
|
342
|
+
return i(r);
|
|
363
343
|
});
|
|
364
344
|
});
|
|
365
|
-
},
|
|
366
|
-
return new
|
|
367
|
-
},
|
|
345
|
+
}, n.create = function(t) {
|
|
346
|
+
return new n(t);
|
|
347
|
+
}, n;
|
|
368
348
|
}();
|
|
369
|
-
function
|
|
349
|
+
function Ut(n) {
|
|
370
350
|
var t;
|
|
371
|
-
return (t =
|
|
351
|
+
return (t = n ?? xe.Promise) !== null && t !== void 0 ? t : Promise;
|
|
372
352
|
}
|
|
373
|
-
function
|
|
374
|
-
return
|
|
353
|
+
function He(n) {
|
|
354
|
+
return n && v(n.next) && v(n.error) && v(n.complete);
|
|
375
355
|
}
|
|
376
|
-
function
|
|
377
|
-
return
|
|
356
|
+
function Le(n) {
|
|
357
|
+
return n && n instanceof ce || He(n) && ae(n);
|
|
378
358
|
}
|
|
379
|
-
var
|
|
359
|
+
var Ue = re(function(n) {
|
|
380
360
|
return function() {
|
|
381
|
-
|
|
361
|
+
n(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
382
362
|
};
|
|
383
|
-
}), bt = function(
|
|
384
|
-
D(t,
|
|
363
|
+
}), bt = function(n) {
|
|
364
|
+
D(t, n);
|
|
385
365
|
function t() {
|
|
386
|
-
var e =
|
|
366
|
+
var e = n.call(this) || this;
|
|
387
367
|
return e.closed = !1, e.currentObservers = null, e.observers = [], e.isStopped = !1, e.hasError = !1, e.thrownError = null, e;
|
|
388
368
|
}
|
|
389
369
|
return t.prototype.lift = function(e) {
|
|
390
|
-
var i = new
|
|
370
|
+
var i = new Rt(this, this);
|
|
391
371
|
return i.operator = e, i;
|
|
392
372
|
}, t.prototype._throwIfClosed = function() {
|
|
393
373
|
if (this.closed)
|
|
394
|
-
throw new
|
|
374
|
+
throw new Ue();
|
|
395
375
|
}, t.prototype.next = function(e) {
|
|
396
376
|
var i = this;
|
|
397
377
|
W(function() {
|
|
398
|
-
var
|
|
378
|
+
var s, r;
|
|
399
379
|
if (i._throwIfClosed(), !i.isStopped) {
|
|
400
380
|
i.currentObservers || (i.currentObservers = Array.from(i.observers));
|
|
401
381
|
try {
|
|
402
|
-
for (var o =
|
|
382
|
+
for (var o = dt(i.currentObservers), a = o.next(); !a.done; a = o.next()) {
|
|
403
383
|
var c = a.value;
|
|
404
384
|
c.next(e);
|
|
405
385
|
}
|
|
406
386
|
} catch (h) {
|
|
407
|
-
|
|
387
|
+
s = { error: h };
|
|
408
388
|
} finally {
|
|
409
389
|
try {
|
|
410
|
-
a && !a.done && (
|
|
390
|
+
a && !a.done && (r = o.return) && r.call(o);
|
|
411
391
|
} finally {
|
|
412
|
-
if (
|
|
392
|
+
if (s) throw s.error;
|
|
413
393
|
}
|
|
414
394
|
}
|
|
415
395
|
}
|
|
@@ -419,8 +399,8 @@ var je = oe(function(s) {
|
|
|
419
399
|
W(function() {
|
|
420
400
|
if (i._throwIfClosed(), !i.isStopped) {
|
|
421
401
|
i.hasError = i.isStopped = !0, i.thrownError = e;
|
|
422
|
-
for (var
|
|
423
|
-
|
|
402
|
+
for (var s = i.observers; s.length; )
|
|
403
|
+
s.shift().error(e);
|
|
424
404
|
}
|
|
425
405
|
});
|
|
426
406
|
}, t.prototype.complete = function() {
|
|
@@ -442,46 +422,46 @@ var je = oe(function(s) {
|
|
|
442
422
|
enumerable: !1,
|
|
443
423
|
configurable: !0
|
|
444
424
|
}), t.prototype._trySubscribe = function(e) {
|
|
445
|
-
return this._throwIfClosed(),
|
|
425
|
+
return this._throwIfClosed(), n.prototype._trySubscribe.call(this, e);
|
|
446
426
|
}, t.prototype._subscribe = function(e) {
|
|
447
427
|
return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
|
|
448
428
|
}, t.prototype._innerSubscribe = function(e) {
|
|
449
|
-
var i = this,
|
|
450
|
-
return
|
|
451
|
-
i.currentObservers = null,
|
|
429
|
+
var i = this, s = this, r = s.hasError, o = s.isStopped, a = s.observers;
|
|
430
|
+
return r || o ? oe : (this.currentObservers = null, a.push(e), new tt(function() {
|
|
431
|
+
i.currentObservers = null, ft(a, e);
|
|
452
432
|
}));
|
|
453
433
|
}, t.prototype._checkFinalizedStatuses = function(e) {
|
|
454
|
-
var i = this,
|
|
455
|
-
|
|
434
|
+
var i = this, s = i.hasError, r = i.thrownError, o = i.isStopped;
|
|
435
|
+
s ? e.error(r) : o && e.complete();
|
|
456
436
|
}, t.prototype.asObservable = function() {
|
|
457
|
-
var e = new
|
|
437
|
+
var e = new Lt();
|
|
458
438
|
return e.source = this, e;
|
|
459
439
|
}, t.create = function(e, i) {
|
|
460
|
-
return new
|
|
440
|
+
return new Rt(e, i);
|
|
461
441
|
}, t;
|
|
462
|
-
}(
|
|
463
|
-
D(t,
|
|
442
|
+
}(Lt), Rt = function(n) {
|
|
443
|
+
D(t, n);
|
|
464
444
|
function t(e, i) {
|
|
465
|
-
var
|
|
466
|
-
return
|
|
445
|
+
var s = n.call(this) || this;
|
|
446
|
+
return s.destination = e, s.source = i, s;
|
|
467
447
|
}
|
|
468
448
|
return t.prototype.next = function(e) {
|
|
469
|
-
var i,
|
|
470
|
-
(
|
|
449
|
+
var i, s;
|
|
450
|
+
(s = (i = this.destination) === null || i === void 0 ? void 0 : i.next) === null || s === void 0 || s.call(i, e);
|
|
471
451
|
}, t.prototype.error = function(e) {
|
|
472
|
-
var i,
|
|
473
|
-
(
|
|
452
|
+
var i, s;
|
|
453
|
+
(s = (i = this.destination) === null || i === void 0 ? void 0 : i.error) === null || s === void 0 || s.call(i, e);
|
|
474
454
|
}, t.prototype.complete = function() {
|
|
475
455
|
var e, i;
|
|
476
456
|
(i = (e = this.destination) === null || e === void 0 ? void 0 : e.complete) === null || i === void 0 || i.call(e);
|
|
477
457
|
}, t.prototype._subscribe = function(e) {
|
|
478
|
-
var i,
|
|
479
|
-
return (
|
|
458
|
+
var i, s;
|
|
459
|
+
return (s = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(e)) !== null && s !== void 0 ? s : oe;
|
|
480
460
|
}, t;
|
|
481
|
-
}(bt),
|
|
482
|
-
D(t,
|
|
461
|
+
}(bt), Re = function(n) {
|
|
462
|
+
D(t, n);
|
|
483
463
|
function t(e) {
|
|
484
|
-
var i =
|
|
464
|
+
var i = n.call(this) || this;
|
|
485
465
|
return i._value = e, i;
|
|
486
466
|
}
|
|
487
467
|
return Object.defineProperty(t.prototype, "value", {
|
|
@@ -491,15 +471,15 @@ var je = oe(function(s) {
|
|
|
491
471
|
enumerable: !1,
|
|
492
472
|
configurable: !0
|
|
493
473
|
}), t.prototype._subscribe = function(e) {
|
|
494
|
-
var i =
|
|
474
|
+
var i = n.prototype._subscribe.call(this, e);
|
|
495
475
|
return !i.closed && e.next(this._value), i;
|
|
496
476
|
}, t.prototype.getValue = function() {
|
|
497
|
-
var e = this, i = e.hasError,
|
|
477
|
+
var e = this, i = e.hasError, s = e.thrownError, r = e._value;
|
|
498
478
|
if (i)
|
|
499
|
-
throw
|
|
500
|
-
return this._throwIfClosed(),
|
|
479
|
+
throw s;
|
|
480
|
+
return this._throwIfClosed(), r;
|
|
501
481
|
}, t.prototype.next = function(e) {
|
|
502
|
-
|
|
482
|
+
n.prototype.next.call(this, this._value = e);
|
|
503
483
|
}, t;
|
|
504
484
|
}(bt);
|
|
505
485
|
/**
|
|
@@ -507,16 +487,16 @@ var je = oe(function(s) {
|
|
|
507
487
|
* Copyright 2019 Google LLC
|
|
508
488
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
509
489
|
*/
|
|
510
|
-
const q = globalThis,
|
|
511
|
-
let
|
|
490
|
+
const q = globalThis, vt = q.ShadowRoot && (q.ShadyCSS === void 0 || q.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, $t = Symbol(), Nt = /* @__PURE__ */ new WeakMap();
|
|
491
|
+
let he = class {
|
|
512
492
|
constructor(t, e, i) {
|
|
513
|
-
if (this._$cssResult$ = !0, i !==
|
|
493
|
+
if (this._$cssResult$ = !0, i !== $t) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
514
494
|
this.cssText = t, this.t = e;
|
|
515
495
|
}
|
|
516
496
|
get styleSheet() {
|
|
517
497
|
let t = this.o;
|
|
518
498
|
const e = this.t;
|
|
519
|
-
if (
|
|
499
|
+
if (vt && t === void 0) {
|
|
520
500
|
const i = e !== void 0 && e.length === 1;
|
|
521
501
|
i && (t = Nt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && Nt.set(e, t));
|
|
522
502
|
}
|
|
@@ -526,58 +506,58 @@ let de = class {
|
|
|
526
506
|
return this.cssText;
|
|
527
507
|
}
|
|
528
508
|
};
|
|
529
|
-
const
|
|
530
|
-
const e =
|
|
509
|
+
const Ne = (n) => new he(typeof n == "string" ? n : n + "", void 0, $t), O = (n, ...t) => {
|
|
510
|
+
const e = n.length === 1 ? n[0] : t.reduce((i, s, r) => i + ((o) => {
|
|
531
511
|
if (o._$cssResult$ === !0) return o.cssText;
|
|
532
512
|
if (typeof o == "number") return o;
|
|
533
513
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
534
|
-
})(
|
|
535
|
-
return new
|
|
536
|
-
},
|
|
537
|
-
if (
|
|
514
|
+
})(s) + n[r + 1], n[0]);
|
|
515
|
+
return new he(e, n, $t);
|
|
516
|
+
}, je = (n, t) => {
|
|
517
|
+
if (vt) n.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
538
518
|
else for (const e of t) {
|
|
539
|
-
const i = document.createElement("style"),
|
|
540
|
-
|
|
519
|
+
const i = document.createElement("style"), s = q.litNonce;
|
|
520
|
+
s !== void 0 && i.setAttribute("nonce", s), i.textContent = e.cssText, n.appendChild(i);
|
|
541
521
|
}
|
|
542
|
-
},
|
|
522
|
+
}, jt = vt ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((t) => {
|
|
543
523
|
let e = "";
|
|
544
524
|
for (const i of t.cssRules) e += i.cssText;
|
|
545
|
-
return
|
|
546
|
-
})(
|
|
525
|
+
return Ne(e);
|
|
526
|
+
})(n) : n;
|
|
547
527
|
/**
|
|
548
528
|
* @license
|
|
549
529
|
* Copyright 2017 Google LLC
|
|
550
530
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
551
531
|
*/
|
|
552
|
-
const { is:
|
|
532
|
+
const { is: Ie, defineProperty: Be, getOwnPropertyDescriptor: Ve, getOwnPropertyNames: ze, getOwnPropertySymbols: De, getPrototypeOf: Fe } = Object, w = globalThis, It = w.trustedTypes, Ye = It ? It.emptyScript : "", nt = w.reactiveElementPolyfillSupport, R = (n, t) => n, K = { toAttribute(n, t) {
|
|
553
533
|
switch (t) {
|
|
554
534
|
case Boolean:
|
|
555
|
-
|
|
535
|
+
n = n ? Ye : null;
|
|
556
536
|
break;
|
|
557
537
|
case Object:
|
|
558
538
|
case Array:
|
|
559
|
-
|
|
539
|
+
n = n == null ? n : JSON.stringify(n);
|
|
560
540
|
}
|
|
561
|
-
return
|
|
562
|
-
}, fromAttribute(
|
|
563
|
-
let e =
|
|
541
|
+
return n;
|
|
542
|
+
}, fromAttribute(n, t) {
|
|
543
|
+
let e = n;
|
|
564
544
|
switch (t) {
|
|
565
545
|
case Boolean:
|
|
566
|
-
e =
|
|
546
|
+
e = n !== null;
|
|
567
547
|
break;
|
|
568
548
|
case Number:
|
|
569
|
-
e =
|
|
549
|
+
e = n === null ? null : Number(n);
|
|
570
550
|
break;
|
|
571
551
|
case Object:
|
|
572
552
|
case Array:
|
|
573
553
|
try {
|
|
574
|
-
e = JSON.parse(
|
|
554
|
+
e = JSON.parse(n);
|
|
575
555
|
} catch {
|
|
576
556
|
e = null;
|
|
577
557
|
}
|
|
578
558
|
}
|
|
579
559
|
return e;
|
|
580
|
-
} },
|
|
560
|
+
} }, _t = (n, t) => !Ie(n, t), Bt = { attribute: !0, type: String, converter: K, reflect: !1, hasChanged: _t };
|
|
581
561
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), w.litPropertyMetadata ?? (w.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
582
562
|
let T = class extends HTMLElement {
|
|
583
563
|
static addInitializer(t) {
|
|
@@ -586,48 +566,48 @@ let T = class extends HTMLElement {
|
|
|
586
566
|
static get observedAttributes() {
|
|
587
567
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
588
568
|
}
|
|
589
|
-
static createProperty(t, e =
|
|
569
|
+
static createProperty(t, e = Bt) {
|
|
590
570
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
591
|
-
const i = Symbol(),
|
|
592
|
-
|
|
571
|
+
const i = Symbol(), s = this.getPropertyDescriptor(t, i, e);
|
|
572
|
+
s !== void 0 && Be(this.prototype, t, s);
|
|
593
573
|
}
|
|
594
574
|
}
|
|
595
575
|
static getPropertyDescriptor(t, e, i) {
|
|
596
|
-
const { get:
|
|
576
|
+
const { get: s, set: r } = Ve(this.prototype, t) ?? { get() {
|
|
597
577
|
return this[e];
|
|
598
578
|
}, set(o) {
|
|
599
579
|
this[e] = o;
|
|
600
580
|
} };
|
|
601
581
|
return { get() {
|
|
602
|
-
return
|
|
582
|
+
return s == null ? void 0 : s.call(this);
|
|
603
583
|
}, set(o) {
|
|
604
|
-
const a =
|
|
605
|
-
|
|
584
|
+
const a = s == null ? void 0 : s.call(this);
|
|
585
|
+
r.call(this, o), this.requestUpdate(t, a, i);
|
|
606
586
|
}, configurable: !0, enumerable: !0 };
|
|
607
587
|
}
|
|
608
588
|
static getPropertyOptions(t) {
|
|
609
|
-
return this.elementProperties.get(t) ??
|
|
589
|
+
return this.elementProperties.get(t) ?? Bt;
|
|
610
590
|
}
|
|
611
591
|
static _$Ei() {
|
|
612
592
|
if (this.hasOwnProperty(R("elementProperties"))) return;
|
|
613
|
-
const t =
|
|
593
|
+
const t = Fe(this);
|
|
614
594
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
615
595
|
}
|
|
616
596
|
static finalize() {
|
|
617
597
|
if (this.hasOwnProperty(R("finalized"))) return;
|
|
618
598
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(R("properties"))) {
|
|
619
|
-
const e = this.properties, i = [...
|
|
620
|
-
for (const
|
|
599
|
+
const e = this.properties, i = [...ze(e), ...De(e)];
|
|
600
|
+
for (const s of i) this.createProperty(s, e[s]);
|
|
621
601
|
}
|
|
622
602
|
const t = this[Symbol.metadata];
|
|
623
603
|
if (t !== null) {
|
|
624
604
|
const e = litPropertyMetadata.get(t);
|
|
625
|
-
if (e !== void 0) for (const [i,
|
|
605
|
+
if (e !== void 0) for (const [i, s] of e) this.elementProperties.set(i, s);
|
|
626
606
|
}
|
|
627
607
|
this._$Eh = /* @__PURE__ */ new Map();
|
|
628
608
|
for (const [e, i] of this.elementProperties) {
|
|
629
|
-
const
|
|
630
|
-
|
|
609
|
+
const s = this._$Eu(e, i);
|
|
610
|
+
s !== void 0 && this._$Eh.set(s, e);
|
|
631
611
|
}
|
|
632
612
|
this.elementStyles = this.finalizeStyles(this.styles);
|
|
633
613
|
}
|
|
@@ -635,8 +615,8 @@ let T = class extends HTMLElement {
|
|
|
635
615
|
const e = [];
|
|
636
616
|
if (Array.isArray(t)) {
|
|
637
617
|
const i = new Set(t.flat(1 / 0).reverse());
|
|
638
|
-
for (const
|
|
639
|
-
} else t !== void 0 && e.push(
|
|
618
|
+
for (const s of i) e.unshift(jt(s));
|
|
619
|
+
} else t !== void 0 && e.push(jt(t));
|
|
640
620
|
return e;
|
|
641
621
|
}
|
|
642
622
|
static _$Eu(t, e) {
|
|
@@ -665,7 +645,7 @@ let T = class extends HTMLElement {
|
|
|
665
645
|
}
|
|
666
646
|
createRenderRoot() {
|
|
667
647
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
668
|
-
return
|
|
648
|
+
return je(t, this.constructor.elementStyles), t;
|
|
669
649
|
}
|
|
670
650
|
connectedCallback() {
|
|
671
651
|
var t;
|
|
@@ -687,24 +667,24 @@ let T = class extends HTMLElement {
|
|
|
687
667
|
this._$AK(t, i);
|
|
688
668
|
}
|
|
689
669
|
_$EC(t, e) {
|
|
690
|
-
var
|
|
691
|
-
const i = this.constructor.elementProperties.get(t),
|
|
692
|
-
if (
|
|
693
|
-
const o = (((
|
|
694
|
-
this._$Em = t, o == null ? this.removeAttribute(
|
|
670
|
+
var r;
|
|
671
|
+
const i = this.constructor.elementProperties.get(t), s = this.constructor._$Eu(t, i);
|
|
672
|
+
if (s !== void 0 && i.reflect === !0) {
|
|
673
|
+
const o = (((r = i.converter) == null ? void 0 : r.toAttribute) !== void 0 ? i.converter : K).toAttribute(e, i.type);
|
|
674
|
+
this._$Em = t, o == null ? this.removeAttribute(s) : this.setAttribute(s, o), this._$Em = null;
|
|
695
675
|
}
|
|
696
676
|
}
|
|
697
677
|
_$AK(t, e) {
|
|
698
|
-
var
|
|
699
|
-
const i = this.constructor,
|
|
700
|
-
if (
|
|
701
|
-
const o = i.getPropertyOptions(
|
|
702
|
-
this._$Em =
|
|
678
|
+
var r;
|
|
679
|
+
const i = this.constructor, s = i._$Eh.get(t);
|
|
680
|
+
if (s !== void 0 && this._$Em !== s) {
|
|
681
|
+
const o = i.getPropertyOptions(s), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((r = o.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? o.converter : K;
|
|
682
|
+
this._$Em = s, this[s] = a.fromAttribute(e, o.type), this._$Em = null;
|
|
703
683
|
}
|
|
704
684
|
}
|
|
705
685
|
requestUpdate(t, e, i) {
|
|
706
686
|
if (t !== void 0) {
|
|
707
|
-
if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ??
|
|
687
|
+
if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? _t)(this[t], e)) return;
|
|
708
688
|
this.P(t, e, i);
|
|
709
689
|
}
|
|
710
690
|
this.isUpdatePending === !1 && (this._$ES = this._$ET());
|
|
@@ -730,21 +710,21 @@ let T = class extends HTMLElement {
|
|
|
730
710
|
if (!this.isUpdatePending) return;
|
|
731
711
|
if (!this.hasUpdated) {
|
|
732
712
|
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
|
733
|
-
for (const [
|
|
713
|
+
for (const [r, o] of this._$Ep) this[r] = o;
|
|
734
714
|
this._$Ep = void 0;
|
|
735
715
|
}
|
|
736
|
-
const
|
|
737
|
-
if (
|
|
716
|
+
const s = this.constructor.elementProperties;
|
|
717
|
+
if (s.size > 0) for (const [r, o] of s) o.wrapped !== !0 || this._$AL.has(r) || this[r] === void 0 || this.P(r, this[r], o);
|
|
738
718
|
}
|
|
739
719
|
let t = !1;
|
|
740
720
|
const e = this._$AL;
|
|
741
721
|
try {
|
|
742
|
-
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$EO) == null || i.forEach((
|
|
743
|
-
var
|
|
744
|
-
return (
|
|
722
|
+
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$EO) == null || i.forEach((s) => {
|
|
723
|
+
var r;
|
|
724
|
+
return (r = s.hostUpdate) == null ? void 0 : r.call(s);
|
|
745
725
|
}), this.update(e)) : this._$EU();
|
|
746
|
-
} catch (
|
|
747
|
-
throw t = !1, this._$EU(),
|
|
726
|
+
} catch (s) {
|
|
727
|
+
throw t = !1, this._$EU(), s;
|
|
748
728
|
}
|
|
749
729
|
t && this._$AE(e);
|
|
750
730
|
}
|
|
@@ -753,8 +733,8 @@ let T = class extends HTMLElement {
|
|
|
753
733
|
_$AE(t) {
|
|
754
734
|
var e;
|
|
755
735
|
(e = this._$EO) == null || e.forEach((i) => {
|
|
756
|
-
var
|
|
757
|
-
return (
|
|
736
|
+
var s;
|
|
737
|
+
return (s = i.hostUpdated) == null ? void 0 : s.call(i);
|
|
758
738
|
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
|
759
739
|
}
|
|
760
740
|
_$EU() {
|
|
@@ -777,61 +757,61 @@ let T = class extends HTMLElement {
|
|
|
777
757
|
firstUpdated(t) {
|
|
778
758
|
}
|
|
779
759
|
};
|
|
780
|
-
T.elementStyles = [], T.shadowRootOptions = { mode: "open" }, T[R("elementProperties")] = /* @__PURE__ */ new Map(), T[R("finalized")] = /* @__PURE__ */ new Map(),
|
|
760
|
+
T.elementStyles = [], T.shadowRootOptions = { mode: "open" }, T[R("elementProperties")] = /* @__PURE__ */ new Map(), T[R("finalized")] = /* @__PURE__ */ new Map(), nt == null || nt({ ReactiveElement: T }), (w.reactiveElementVersions ?? (w.reactiveElementVersions = [])).push("2.0.4");
|
|
781
761
|
/**
|
|
782
762
|
* @license
|
|
783
763
|
* Copyright 2017 Google LLC
|
|
784
764
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
785
765
|
*/
|
|
786
|
-
const
|
|
787
|
-
\f\r]`, U = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
788
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
789
|
-
function
|
|
790
|
-
if (!
|
|
791
|
-
return
|
|
766
|
+
const N = globalThis, G = N.trustedTypes, Vt = G ? G.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, le = "$lit$", _ = `lit$${Math.random().toFixed(9).slice(2)}$`, de = "?" + _, Ze = `<${de}>`, S = document, I = () => S.createComment(""), B = (n) => n === null || typeof n != "object" && typeof n != "function", wt = Array.isArray, We = (n) => wt(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", st = `[
|
|
767
|
+
\f\r]`, U = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, zt = /-->/g, Dt = />/g, A = RegExp(`>|${st}(?:([^\\s"'>=/]+)(${st}*=${st}*(?:[^
|
|
768
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ft = /'/g, Yt = /"/g, ue = /^(?:script|style|textarea|title)$/i, pe = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), C = pe(1), qe = pe(2), P = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), Zt = /* @__PURE__ */ new WeakMap(), E = S.createTreeWalker(S, 129);
|
|
769
|
+
function fe(n, t) {
|
|
770
|
+
if (!wt(n) || !n.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
771
|
+
return Vt !== void 0 ? Vt.createHTML(t) : t;
|
|
792
772
|
}
|
|
793
|
-
const
|
|
794
|
-
const e =
|
|
795
|
-
let
|
|
773
|
+
const Ke = (n, t) => {
|
|
774
|
+
const e = n.length - 1, i = [];
|
|
775
|
+
let s, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = U;
|
|
796
776
|
for (let a = 0; a < e; a++) {
|
|
797
|
-
const c =
|
|
798
|
-
let h, l, d = -1,
|
|
799
|
-
for (;
|
|
800
|
-
const f = o === A &&
|
|
801
|
-
|
|
777
|
+
const c = n[a];
|
|
778
|
+
let h, l, d = -1, p = 0;
|
|
779
|
+
for (; p < c.length && (o.lastIndex = p, l = o.exec(c), l !== null); ) p = o.lastIndex, o === U ? l[1] === "!--" ? o = zt : l[1] !== void 0 ? o = Dt : l[2] !== void 0 ? (ue.test(l[2]) && (s = RegExp("</" + l[2], "g")), o = A) : l[3] !== void 0 && (o = A) : o === A ? l[0] === ">" ? (o = s ?? U, d = -1) : l[1] === void 0 ? d = -2 : (d = o.lastIndex - l[2].length, h = l[1], o = l[3] === void 0 ? A : l[3] === '"' ? Yt : Ft) : o === Yt || o === Ft ? o = A : o === zt || o === Dt ? o = U : (o = A, s = void 0);
|
|
780
|
+
const f = o === A && n[a + 1].startsWith("/>") ? " " : "";
|
|
781
|
+
r += o === U ? c + Ze : d >= 0 ? (i.push(h), c.slice(0, d) + le + c.slice(d) + _ + f) : c + _ + (d === -2 ? a : f);
|
|
802
782
|
}
|
|
803
|
-
return [
|
|
783
|
+
return [fe(n, r + (n[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
|
|
804
784
|
};
|
|
805
|
-
let mt = class
|
|
785
|
+
let mt = class ge {
|
|
806
786
|
constructor({ strings: t, _$litType$: e }, i) {
|
|
807
|
-
let
|
|
787
|
+
let s;
|
|
808
788
|
this.parts = [];
|
|
809
|
-
let
|
|
810
|
-
const a = t.length - 1, c = this.parts, [h, l] =
|
|
811
|
-
if (this.el =
|
|
789
|
+
let r = 0, o = 0;
|
|
790
|
+
const a = t.length - 1, c = this.parts, [h, l] = Ke(t, e);
|
|
791
|
+
if (this.el = ge.createElement(h, i), E.currentNode = this.el.content, e === 2 || e === 3) {
|
|
812
792
|
const d = this.el.content.firstChild;
|
|
813
793
|
d.replaceWith(...d.childNodes);
|
|
814
794
|
}
|
|
815
|
-
for (; (
|
|
816
|
-
if (
|
|
817
|
-
if (
|
|
818
|
-
const
|
|
819
|
-
c.push({ type: 1, index:
|
|
820
|
-
} else d.startsWith(_) && (c.push({ type: 6, index:
|
|
821
|
-
if (
|
|
822
|
-
const d =
|
|
823
|
-
if (
|
|
824
|
-
|
|
825
|
-
for (let f = 0; f <
|
|
826
|
-
|
|
795
|
+
for (; (s = E.nextNode()) !== null && c.length < a; ) {
|
|
796
|
+
if (s.nodeType === 1) {
|
|
797
|
+
if (s.hasAttributes()) for (const d of s.getAttributeNames()) if (d.endsWith(le)) {
|
|
798
|
+
const p = l[o++], f = s.getAttribute(d).split(_), k = /([.?@])?(.*)/.exec(p);
|
|
799
|
+
c.push({ type: 1, index: r, name: k[2], strings: f, ctor: k[1] === "." ? Xe : k[1] === "?" ? Je : k[1] === "@" ? Qe : et }), s.removeAttribute(d);
|
|
800
|
+
} else d.startsWith(_) && (c.push({ type: 6, index: r }), s.removeAttribute(d));
|
|
801
|
+
if (ue.test(s.tagName)) {
|
|
802
|
+
const d = s.textContent.split(_), p = d.length - 1;
|
|
803
|
+
if (p > 0) {
|
|
804
|
+
s.textContent = G ? G.emptyScript : "";
|
|
805
|
+
for (let f = 0; f < p; f++) s.append(d[f], I()), E.nextNode(), c.push({ type: 2, index: ++r });
|
|
806
|
+
s.append(d[p], I());
|
|
827
807
|
}
|
|
828
808
|
}
|
|
829
|
-
} else if (
|
|
809
|
+
} else if (s.nodeType === 8) if (s.data === de) c.push({ type: 2, index: r });
|
|
830
810
|
else {
|
|
831
811
|
let d = -1;
|
|
832
|
-
for (; (d =
|
|
812
|
+
for (; (d = s.data.indexOf(_, d + 1)) !== -1; ) c.push({ type: 7, index: r }), d += _.length - 1;
|
|
833
813
|
}
|
|
834
|
-
|
|
814
|
+
r++;
|
|
835
815
|
}
|
|
836
816
|
}
|
|
837
817
|
static createElement(t, e) {
|
|
@@ -839,14 +819,14 @@ let mt = class me {
|
|
|
839
819
|
return i.innerHTML = t, i;
|
|
840
820
|
}
|
|
841
821
|
};
|
|
842
|
-
function M(
|
|
822
|
+
function M(n, t, e = n, i) {
|
|
843
823
|
var o, a;
|
|
844
824
|
if (t === P) return t;
|
|
845
|
-
let
|
|
846
|
-
const
|
|
847
|
-
return (
|
|
825
|
+
let s = i !== void 0 ? (o = e._$Co) == null ? void 0 : o[i] : e._$Cl;
|
|
826
|
+
const r = B(t) ? void 0 : t._$litDirective$;
|
|
827
|
+
return (s == null ? void 0 : s.constructor) !== r && ((a = s == null ? void 0 : s._$AO) == null || a.call(s, !1), r === void 0 ? s = void 0 : (s = new r(n), s._$AT(n, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = s : e._$Cl = s), s !== void 0 && (t = M(n, s._$AS(n, t.values), s, i)), t;
|
|
848
828
|
}
|
|
849
|
-
class
|
|
829
|
+
class Ge {
|
|
850
830
|
constructor(t, e) {
|
|
851
831
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
|
852
832
|
}
|
|
@@ -857,17 +837,17 @@ class Je {
|
|
|
857
837
|
return this._$AM._$AU;
|
|
858
838
|
}
|
|
859
839
|
u(t) {
|
|
860
|
-
const { el: { content: e }, parts: i } = this._$AD,
|
|
861
|
-
E.currentNode =
|
|
862
|
-
let
|
|
840
|
+
const { el: { content: e }, parts: i } = this._$AD, s = ((t == null ? void 0 : t.creationScope) ?? S).importNode(e, !0);
|
|
841
|
+
E.currentNode = s;
|
|
842
|
+
let r = E.nextNode(), o = 0, a = 0, c = i[0];
|
|
863
843
|
for (; c !== void 0; ) {
|
|
864
844
|
if (o === c.index) {
|
|
865
845
|
let h;
|
|
866
|
-
c.type === 2 ? h = new F(
|
|
846
|
+
c.type === 2 ? h = new F(r, r.nextSibling, this, t) : c.type === 1 ? h = new c.ctor(r, c.name, c.strings, this, t) : c.type === 6 && (h = new ti(r, this, t)), this._$AV.push(h), c = i[++a];
|
|
867
847
|
}
|
|
868
|
-
o !== (c == null ? void 0 : c.index) && (
|
|
848
|
+
o !== (c == null ? void 0 : c.index) && (r = E.nextNode(), o++);
|
|
869
849
|
}
|
|
870
|
-
return E.currentNode = S,
|
|
850
|
+
return E.currentNode = S, s;
|
|
871
851
|
}
|
|
872
852
|
p(t) {
|
|
873
853
|
let e = 0;
|
|
@@ -879,8 +859,8 @@ class F {
|
|
|
879
859
|
var t;
|
|
880
860
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
|
881
861
|
}
|
|
882
|
-
constructor(t, e, i,
|
|
883
|
-
this.type = 2, this._$AH =
|
|
862
|
+
constructor(t, e, i, s) {
|
|
863
|
+
this.type = 2, this._$AH = u, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options = s, this._$Cv = (s == null ? void 0 : s.isConnected) ?? !0;
|
|
884
864
|
}
|
|
885
865
|
get parentNode() {
|
|
886
866
|
let t = this._$AA.parentNode;
|
|
@@ -894,7 +874,7 @@ class F {
|
|
|
894
874
|
return this._$AB;
|
|
895
875
|
}
|
|
896
876
|
_$AI(t, e = this) {
|
|
897
|
-
t = M(this, t, e), B(t) ? t ===
|
|
877
|
+
t = M(this, t, e), B(t) ? t === u || t == null || t === "" ? (this._$AH !== u && this._$AR(), this._$AH = u) : t !== this._$AH && t !== P && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : We(t) ? this.k(t) : this._(t);
|
|
898
878
|
}
|
|
899
879
|
O(t) {
|
|
900
880
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -903,33 +883,33 @@ class F {
|
|
|
903
883
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
904
884
|
}
|
|
905
885
|
_(t) {
|
|
906
|
-
this._$AH !==
|
|
886
|
+
this._$AH !== u && B(this._$AH) ? this._$AA.nextSibling.data = t : this.T(S.createTextNode(t)), this._$AH = t;
|
|
907
887
|
}
|
|
908
888
|
$(t) {
|
|
909
|
-
var
|
|
910
|
-
const { values: e, _$litType$: i } = t,
|
|
911
|
-
if (((
|
|
889
|
+
var r;
|
|
890
|
+
const { values: e, _$litType$: i } = t, s = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = mt.createElement(fe(i.h, i.h[0]), this.options)), i);
|
|
891
|
+
if (((r = this._$AH) == null ? void 0 : r._$AD) === s) this._$AH.p(e);
|
|
912
892
|
else {
|
|
913
|
-
const o = new
|
|
893
|
+
const o = new Ge(s, this), a = o.u(this.options);
|
|
914
894
|
o.p(e), this.T(a), this._$AH = o;
|
|
915
895
|
}
|
|
916
896
|
}
|
|
917
897
|
_$AC(t) {
|
|
918
|
-
let e =
|
|
919
|
-
return e === void 0 &&
|
|
898
|
+
let e = Zt.get(t.strings);
|
|
899
|
+
return e === void 0 && Zt.set(t.strings, e = new mt(t)), e;
|
|
920
900
|
}
|
|
921
901
|
k(t) {
|
|
922
|
-
|
|
902
|
+
wt(this._$AH) || (this._$AH = [], this._$AR());
|
|
923
903
|
const e = this._$AH;
|
|
924
|
-
let i,
|
|
925
|
-
for (const
|
|
926
|
-
|
|
904
|
+
let i, s = 0;
|
|
905
|
+
for (const r of t) s === e.length ? e.push(i = new F(this.O(I()), this.O(I()), this, this.options)) : i = e[s], i._$AI(r), s++;
|
|
906
|
+
s < e.length && (this._$AR(i && i._$AB.nextSibling, s), e.length = s);
|
|
927
907
|
}
|
|
928
908
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
929
909
|
var i;
|
|
930
910
|
for ((i = this._$AP) == null ? void 0 : i.call(this, !1, !0, e); t && t !== this._$AB; ) {
|
|
931
|
-
const
|
|
932
|
-
t.remove(), t =
|
|
911
|
+
const s = t.nextSibling;
|
|
912
|
+
t.remove(), t = s;
|
|
933
913
|
}
|
|
934
914
|
}
|
|
935
915
|
setConnected(t) {
|
|
@@ -944,55 +924,55 @@ class et {
|
|
|
944
924
|
get _$AU() {
|
|
945
925
|
return this._$AM._$AU;
|
|
946
926
|
}
|
|
947
|
-
constructor(t, e, i,
|
|
948
|
-
this.type = 1, this._$AH =
|
|
927
|
+
constructor(t, e, i, s, r) {
|
|
928
|
+
this.type = 1, this._$AH = u, this._$AN = void 0, this.element = t, this.name = e, this._$AM = s, this.options = r, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = u;
|
|
949
929
|
}
|
|
950
|
-
_$AI(t, e = this, i,
|
|
951
|
-
const
|
|
930
|
+
_$AI(t, e = this, i, s) {
|
|
931
|
+
const r = this.strings;
|
|
952
932
|
let o = !1;
|
|
953
|
-
if (
|
|
933
|
+
if (r === void 0) t = M(this, t, e, 0), o = !B(t) || t !== this._$AH && t !== P, o && (this._$AH = t);
|
|
954
934
|
else {
|
|
955
935
|
const a = t;
|
|
956
936
|
let c, h;
|
|
957
|
-
for (t =
|
|
937
|
+
for (t = r[0], c = 0; c < r.length - 1; c++) h = M(this, a[i + c], e, c), h === P && (h = this._$AH[c]), o || (o = !B(h) || h !== this._$AH[c]), h === u ? t = u : t !== u && (t += (h ?? "") + r[c + 1]), this._$AH[c] = h;
|
|
958
938
|
}
|
|
959
|
-
o && !
|
|
939
|
+
o && !s && this.j(t);
|
|
960
940
|
}
|
|
961
941
|
j(t) {
|
|
962
|
-
t ===
|
|
942
|
+
t === u ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
963
943
|
}
|
|
964
944
|
}
|
|
965
|
-
class
|
|
945
|
+
class Xe extends et {
|
|
966
946
|
constructor() {
|
|
967
947
|
super(...arguments), this.type = 3;
|
|
968
948
|
}
|
|
969
949
|
j(t) {
|
|
970
|
-
this.element[this.name] = t ===
|
|
950
|
+
this.element[this.name] = t === u ? void 0 : t;
|
|
971
951
|
}
|
|
972
952
|
}
|
|
973
|
-
class
|
|
953
|
+
class Je extends et {
|
|
974
954
|
constructor() {
|
|
975
955
|
super(...arguments), this.type = 4;
|
|
976
956
|
}
|
|
977
957
|
j(t) {
|
|
978
|
-
this.element.toggleAttribute(this.name, !!t && t !==
|
|
958
|
+
this.element.toggleAttribute(this.name, !!t && t !== u);
|
|
979
959
|
}
|
|
980
960
|
}
|
|
981
|
-
class
|
|
982
|
-
constructor(t, e, i,
|
|
983
|
-
super(t, e, i,
|
|
961
|
+
class Qe extends et {
|
|
962
|
+
constructor(t, e, i, s, r) {
|
|
963
|
+
super(t, e, i, s, r), this.type = 5;
|
|
984
964
|
}
|
|
985
965
|
_$AI(t, e = this) {
|
|
986
|
-
if ((t = M(this, t, e, 0) ??
|
|
987
|
-
const i = this._$AH,
|
|
988
|
-
|
|
966
|
+
if ((t = M(this, t, e, 0) ?? u) === P) return;
|
|
967
|
+
const i = this._$AH, s = t === u && i !== u || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, r = t !== u && (i === u || s);
|
|
968
|
+
s && this.element.removeEventListener(this.name, this, i), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
989
969
|
}
|
|
990
970
|
handleEvent(t) {
|
|
991
971
|
var e;
|
|
992
972
|
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
|
993
973
|
}
|
|
994
974
|
}
|
|
995
|
-
class
|
|
975
|
+
class ti {
|
|
996
976
|
constructor(t, e, i) {
|
|
997
977
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
|
|
998
978
|
}
|
|
@@ -1003,23 +983,23 @@ class ii {
|
|
|
1003
983
|
M(this, t);
|
|
1004
984
|
}
|
|
1005
985
|
}
|
|
1006
|
-
const
|
|
1007
|
-
|
|
1008
|
-
const
|
|
986
|
+
const rt = N.litHtmlPolyfillSupport;
|
|
987
|
+
rt == null || rt(mt, F), (N.litHtmlVersions ?? (N.litHtmlVersions = [])).push("3.2.1");
|
|
988
|
+
const ei = (n, t, e) => {
|
|
1009
989
|
const i = (e == null ? void 0 : e.renderBefore) ?? t;
|
|
1010
|
-
let
|
|
1011
|
-
if (
|
|
1012
|
-
const
|
|
1013
|
-
i._$litPart$ =
|
|
990
|
+
let s = i._$litPart$;
|
|
991
|
+
if (s === void 0) {
|
|
992
|
+
const r = (e == null ? void 0 : e.renderBefore) ?? null;
|
|
993
|
+
i._$litPart$ = s = new F(t.insertBefore(I(), r), r, void 0, e ?? {});
|
|
1014
994
|
}
|
|
1015
|
-
return
|
|
995
|
+
return s._$AI(n), s;
|
|
1016
996
|
};
|
|
1017
997
|
/**
|
|
1018
998
|
* @license
|
|
1019
999
|
* Copyright 2017 Google LLC
|
|
1020
1000
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1021
1001
|
*/
|
|
1022
|
-
let
|
|
1002
|
+
let y = class extends T {
|
|
1023
1003
|
constructor() {
|
|
1024
1004
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
1025
1005
|
}
|
|
@@ -1030,7 +1010,7 @@ let m = class extends T {
|
|
|
1030
1010
|
}
|
|
1031
1011
|
update(t) {
|
|
1032
1012
|
const e = this.render();
|
|
1033
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
|
1013
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = ei(e, this.renderRoot, this.renderOptions);
|
|
1034
1014
|
}
|
|
1035
1015
|
connectedCallback() {
|
|
1036
1016
|
var t;
|
|
@@ -1044,57 +1024,57 @@ let m = class extends T {
|
|
|
1044
1024
|
return P;
|
|
1045
1025
|
}
|
|
1046
1026
|
};
|
|
1047
|
-
var
|
|
1048
|
-
|
|
1049
|
-
const
|
|
1050
|
-
|
|
1027
|
+
var se;
|
|
1028
|
+
y._$litElement$ = !0, y.finalized = !0, (se = globalThis.litElementHydrateSupport) == null || se.call(globalThis, { LitElement: y });
|
|
1029
|
+
const ot = globalThis.litElementPolyfillSupport;
|
|
1030
|
+
ot == null || ot({ LitElement: y });
|
|
1051
1031
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
|
|
1052
1032
|
/**
|
|
1053
1033
|
* @license
|
|
1054
1034
|
* Copyright 2017 Google LLC
|
|
1055
1035
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1056
1036
|
*/
|
|
1057
|
-
const
|
|
1058
|
-
const { kind: i, metadata:
|
|
1059
|
-
let
|
|
1060
|
-
if (
|
|
1037
|
+
const ii = { attribute: !0, type: String, converter: K, reflect: !1, hasChanged: _t }, ni = (n = ii, t, e) => {
|
|
1038
|
+
const { kind: i, metadata: s } = e;
|
|
1039
|
+
let r = globalThis.litPropertyMetadata.get(s);
|
|
1040
|
+
if (r === void 0 && globalThis.litPropertyMetadata.set(s, r = /* @__PURE__ */ new Map()), r.set(e.name, n), i === "accessor") {
|
|
1061
1041
|
const { name: o } = e;
|
|
1062
1042
|
return { set(a) {
|
|
1063
1043
|
const c = t.get.call(this);
|
|
1064
|
-
t.set.call(this, a), this.requestUpdate(o, c,
|
|
1044
|
+
t.set.call(this, a), this.requestUpdate(o, c, n);
|
|
1065
1045
|
}, init(a) {
|
|
1066
|
-
return a !== void 0 && this.P(o, void 0,
|
|
1046
|
+
return a !== void 0 && this.P(o, void 0, n), a;
|
|
1067
1047
|
} };
|
|
1068
1048
|
}
|
|
1069
1049
|
if (i === "setter") {
|
|
1070
1050
|
const { name: o } = e;
|
|
1071
1051
|
return function(a) {
|
|
1072
1052
|
const c = this[o];
|
|
1073
|
-
t.call(this, a), this.requestUpdate(o, c,
|
|
1053
|
+
t.call(this, a), this.requestUpdate(o, c, n);
|
|
1074
1054
|
};
|
|
1075
1055
|
}
|
|
1076
1056
|
throw Error("Unsupported decorator location: " + i);
|
|
1077
1057
|
};
|
|
1078
|
-
function g(
|
|
1079
|
-
return (t, e) => typeof e == "object" ? ni(
|
|
1080
|
-
const o =
|
|
1081
|
-
return
|
|
1082
|
-
})(
|
|
1058
|
+
function g(n) {
|
|
1059
|
+
return (t, e) => typeof e == "object" ? ni(n, t, e) : ((i, s, r) => {
|
|
1060
|
+
const o = s.hasOwnProperty(r);
|
|
1061
|
+
return s.constructor.createProperty(r, o ? { ...i, wrapped: !0 } : i), o ? Object.getOwnPropertyDescriptor(s, r) : void 0;
|
|
1062
|
+
})(n, t, e);
|
|
1083
1063
|
}
|
|
1084
1064
|
/**
|
|
1085
1065
|
* @license
|
|
1086
1066
|
* Copyright 2017 Google LLC
|
|
1087
1067
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1088
1068
|
*/
|
|
1089
|
-
function L(
|
|
1090
|
-
return g({ ...
|
|
1069
|
+
function L(n) {
|
|
1070
|
+
return g({ ...n, state: !0, attribute: !1 });
|
|
1091
1071
|
}
|
|
1092
|
-
var
|
|
1093
|
-
for (var
|
|
1094
|
-
(o =
|
|
1095
|
-
return
|
|
1072
|
+
var si = Object.defineProperty, ri = (n, t, e, i) => {
|
|
1073
|
+
for (var s = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
1074
|
+
(o = n[r]) && (s = o(t, e, s) || s);
|
|
1075
|
+
return s && si(t, e, s), s;
|
|
1096
1076
|
};
|
|
1097
|
-
const
|
|
1077
|
+
const Et = class Et extends y {
|
|
1098
1078
|
constructor() {
|
|
1099
1079
|
super(...arguments), this.anchor = "BottomRight";
|
|
1100
1080
|
}
|
|
@@ -1103,11 +1083,11 @@ const St = class St extends m {
|
|
|
1103
1083
|
return (e = this.shadowRoot) == null || e.appendChild(t), t;
|
|
1104
1084
|
}
|
|
1105
1085
|
render() {
|
|
1106
|
-
return this.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right"),
|
|
1086
|
+
return this.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right"), u;
|
|
1107
1087
|
}
|
|
1108
1088
|
};
|
|
1109
|
-
|
|
1110
|
-
|
|
1089
|
+
Et.styles = [
|
|
1090
|
+
O`
|
|
1111
1091
|
:host {
|
|
1112
1092
|
position: fixed;
|
|
1113
1093
|
display: flex;
|
|
@@ -1125,8 +1105,8 @@ St.styles = [
|
|
|
1125
1105
|
}
|
|
1126
1106
|
`
|
|
1127
1107
|
];
|
|
1128
|
-
let X =
|
|
1129
|
-
|
|
1108
|
+
let X = Et;
|
|
1109
|
+
ri([
|
|
1130
1110
|
g({ attribute: !0 })
|
|
1131
1111
|
], X.prototype, "anchor");
|
|
1132
1112
|
/**
|
|
@@ -1134,8 +1114,8 @@ ai([
|
|
|
1134
1114
|
* Copyright 2017 Google LLC
|
|
1135
1115
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1136
1116
|
*/
|
|
1137
|
-
const
|
|
1138
|
-
let
|
|
1117
|
+
const At = { ATTRIBUTE: 1, CHILD: 2 }, xt = (n) => (...t) => ({ _$litDirective$: n, values: t });
|
|
1118
|
+
let me = class {
|
|
1139
1119
|
constructor(t) {
|
|
1140
1120
|
}
|
|
1141
1121
|
get _$AU() {
|
|
@@ -1156,57 +1136,57 @@ let ye = class {
|
|
|
1156
1136
|
* Copyright 2020 Google LLC
|
|
1157
1137
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1158
1138
|
*/
|
|
1159
|
-
const
|
|
1139
|
+
const oi = (n) => n.strings === void 0;
|
|
1160
1140
|
/**
|
|
1161
1141
|
* @license
|
|
1162
1142
|
* Copyright 2017 Google LLC
|
|
1163
1143
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1164
1144
|
*/
|
|
1165
|
-
const
|
|
1145
|
+
const j = (n, t) => {
|
|
1166
1146
|
var i;
|
|
1167
|
-
const e =
|
|
1147
|
+
const e = n._$AN;
|
|
1168
1148
|
if (e === void 0) return !1;
|
|
1169
|
-
for (const
|
|
1149
|
+
for (const s of e) (i = s._$AO) == null || i.call(s, t, !1), j(s, t);
|
|
1170
1150
|
return !0;
|
|
1171
|
-
}, J = (
|
|
1151
|
+
}, J = (n) => {
|
|
1172
1152
|
let t, e;
|
|
1173
1153
|
do {
|
|
1174
|
-
if ((t =
|
|
1175
|
-
e = t._$AN, e.delete(
|
|
1154
|
+
if ((t = n._$AM) === void 0) break;
|
|
1155
|
+
e = t._$AN, e.delete(n), n = t;
|
|
1176
1156
|
} while ((e == null ? void 0 : e.size) === 0);
|
|
1177
|
-
},
|
|
1178
|
-
for (let t; t =
|
|
1157
|
+
}, ye = (n) => {
|
|
1158
|
+
for (let t; t = n._$AM; n = t) {
|
|
1179
1159
|
let e = t._$AN;
|
|
1180
1160
|
if (e === void 0) t._$AN = e = /* @__PURE__ */ new Set();
|
|
1181
|
-
else if (e.has(
|
|
1182
|
-
e.add(
|
|
1161
|
+
else if (e.has(n)) break;
|
|
1162
|
+
e.add(n), hi(t);
|
|
1183
1163
|
}
|
|
1184
1164
|
};
|
|
1185
|
-
function
|
|
1186
|
-
this._$AN !== void 0 ? (J(this), this._$AM =
|
|
1165
|
+
function ai(n) {
|
|
1166
|
+
this._$AN !== void 0 ? (J(this), this._$AM = n, ye(this)) : this._$AM = n;
|
|
1187
1167
|
}
|
|
1188
|
-
function
|
|
1189
|
-
const i = this._$AH,
|
|
1190
|
-
if (
|
|
1191
|
-
else i != null && (
|
|
1192
|
-
else
|
|
1168
|
+
function ci(n, t = !1, e = 0) {
|
|
1169
|
+
const i = this._$AH, s = this._$AN;
|
|
1170
|
+
if (s !== void 0 && s.size !== 0) if (t) if (Array.isArray(i)) for (let r = e; r < i.length; r++) j(i[r], !1), J(i[r]);
|
|
1171
|
+
else i != null && (j(i, !1), J(i));
|
|
1172
|
+
else j(this, n);
|
|
1193
1173
|
}
|
|
1194
|
-
const
|
|
1195
|
-
|
|
1174
|
+
const hi = (n) => {
|
|
1175
|
+
n.type == At.CHILD && (n._$AP ?? (n._$AP = ci), n._$AQ ?? (n._$AQ = ai));
|
|
1196
1176
|
};
|
|
1197
|
-
class
|
|
1177
|
+
class be extends me {
|
|
1198
1178
|
constructor() {
|
|
1199
1179
|
super(...arguments), this._$AN = void 0;
|
|
1200
1180
|
}
|
|
1201
1181
|
_$AT(t, e, i) {
|
|
1202
|
-
super._$AT(t, e, i),
|
|
1182
|
+
super._$AT(t, e, i), ye(this), this.isConnected = t._$AU;
|
|
1203
1183
|
}
|
|
1204
1184
|
_$AO(t, e = !0) {
|
|
1205
|
-
var i,
|
|
1206
|
-
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (
|
|
1185
|
+
var i, s;
|
|
1186
|
+
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (s = this.disconnected) == null || s.call(this)), e && (j(this, t), J(this));
|
|
1207
1187
|
}
|
|
1208
1188
|
setValue(t) {
|
|
1209
|
-
if (
|
|
1189
|
+
if (oi(this._$Ct)) this._$Ct._$AI(t, this);
|
|
1210
1190
|
else {
|
|
1211
1191
|
const e = [...this._$Ct._$AH];
|
|
1212
1192
|
e[this._$Ci] = t, this._$Ct._$AI(e, this, 0);
|
|
@@ -1217,34 +1197,34 @@ class $e extends ye {
|
|
|
1217
1197
|
reconnected() {
|
|
1218
1198
|
}
|
|
1219
1199
|
}
|
|
1220
|
-
const
|
|
1221
|
-
let
|
|
1222
|
-
const
|
|
1223
|
-
const e =
|
|
1200
|
+
const li = /* @__PURE__ */ new WeakMap();
|
|
1201
|
+
let Wt = 0;
|
|
1202
|
+
const at = /* @__PURE__ */ new Map(), qt = /* @__PURE__ */ new WeakSet(), Kt = () => new Promise((n) => requestAnimationFrame(n)), di = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], Gt = (n, t) => {
|
|
1203
|
+
const e = n - t;
|
|
1224
1204
|
return e === 0 ? void 0 : e;
|
|
1225
|
-
},
|
|
1226
|
-
const e =
|
|
1205
|
+
}, Xt = (n, t) => {
|
|
1206
|
+
const e = n / t;
|
|
1227
1207
|
return e === 1 ? void 0 : e;
|
|
1228
|
-
},
|
|
1229
|
-
const e =
|
|
1208
|
+
}, ct = { left: (n, t) => {
|
|
1209
|
+
const e = Gt(n, t);
|
|
1230
1210
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateX(${e}px)` };
|
|
1231
|
-
}, top: (
|
|
1232
|
-
const e =
|
|
1211
|
+
}, top: (n, t) => {
|
|
1212
|
+
const e = Gt(n, t);
|
|
1233
1213
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateY(${e}px)` };
|
|
1234
|
-
}, width: (
|
|
1214
|
+
}, width: (n, t) => {
|
|
1235
1215
|
let e;
|
|
1236
1216
|
t === 0 && (t = 1, e = { width: "1px" });
|
|
1237
|
-
const i =
|
|
1217
|
+
const i = Xt(n, t);
|
|
1238
1218
|
return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleX(${i})` };
|
|
1239
|
-
}, height: (
|
|
1219
|
+
}, height: (n, t) => {
|
|
1240
1220
|
let e;
|
|
1241
1221
|
t === 0 && (t = 1, e = { height: "1px" });
|
|
1242
|
-
const i =
|
|
1222
|
+
const i = Xt(n, t);
|
|
1243
1223
|
return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleY(${i})` };
|
|
1244
|
-
} },
|
|
1245
|
-
class
|
|
1224
|
+
} }, ui = { duration: 333, easing: "ease-in-out" }, pi = ["left", "top", "width", "height", "opacity", "color", "background"], Jt = /* @__PURE__ */ new WeakMap();
|
|
1225
|
+
class fi extends be {
|
|
1246
1226
|
constructor(t) {
|
|
1247
|
-
if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type ===
|
|
1227
|
+
if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type === At.CHILD) throw Error("The `animate` directive must be used in attribute position.");
|
|
1248
1228
|
this.createFinished();
|
|
1249
1229
|
}
|
|
1250
1230
|
createFinished() {
|
|
@@ -1258,38 +1238,38 @@ class vi extends $e {
|
|
|
1258
1238
|
(t = this.l) == null || t.call(this), this.l = void 0;
|
|
1259
1239
|
}
|
|
1260
1240
|
render(t) {
|
|
1261
|
-
return
|
|
1241
|
+
return u;
|
|
1262
1242
|
}
|
|
1263
1243
|
getController() {
|
|
1264
|
-
return
|
|
1244
|
+
return li.get(this.u);
|
|
1265
1245
|
}
|
|
1266
1246
|
isDisabled() {
|
|
1267
1247
|
var t;
|
|
1268
1248
|
return this.options.disabled || ((t = this.getController()) == null ? void 0 : t.disabled);
|
|
1269
1249
|
}
|
|
1270
1250
|
update(t, [e]) {
|
|
1271
|
-
var
|
|
1251
|
+
var s;
|
|
1272
1252
|
const i = this.u === void 0;
|
|
1273
|
-
return i && (this.u = (
|
|
1253
|
+
return i && (this.u = (s = t.options) == null ? void 0 : s.host, this.u.addController(this), this.u.updateComplete.then((r) => this.t = !0), this.element = t.element, Jt.set(this.element, this)), this.optionsOrCallback = e, (i || typeof e != "function") && this.p(e), this.render(e);
|
|
1274
1254
|
}
|
|
1275
1255
|
p(t) {
|
|
1276
1256
|
t = t ?? {};
|
|
1277
1257
|
const e = this.getController();
|
|
1278
|
-
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties =
|
|
1258
|
+
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties = pi), this.options = t;
|
|
1279
1259
|
}
|
|
1280
1260
|
m() {
|
|
1281
1261
|
const t = {}, e = this.element.getBoundingClientRect(), i = getComputedStyle(this.element);
|
|
1282
|
-
return this.options.properties.forEach((
|
|
1283
|
-
const
|
|
1284
|
-
t[
|
|
1262
|
+
return this.options.properties.forEach((s) => {
|
|
1263
|
+
const r = e[s] ?? (ct[s] ? void 0 : i[s]), o = Number(r);
|
|
1264
|
+
t[s] = isNaN(o) ? r + "" : o;
|
|
1285
1265
|
}), t;
|
|
1286
1266
|
}
|
|
1287
1267
|
v() {
|
|
1288
1268
|
let t, e = !0;
|
|
1289
|
-
return this.options.guard && (t = this.options.guard(), e = ((i,
|
|
1269
|
+
return this.options.guard && (t = this.options.guard(), e = ((i, s) => {
|
|
1290
1270
|
if (Array.isArray(i)) {
|
|
1291
|
-
if (Array.isArray(
|
|
1292
|
-
} else if (
|
|
1271
|
+
if (Array.isArray(s) && s.length === i.length && i.every((r, o) => r === s[o])) return !1;
|
|
1272
|
+
} else if (s === i) return !1;
|
|
1293
1273
|
return !0;
|
|
1294
1274
|
})(t, this._)), this.h = this.t && !this.isDisabled() && !this.isAnimating() && e && this.element.isConnected, this.h && (this._ = Array.isArray(t) ? Array.from(t) : t), this.h;
|
|
1295
1275
|
}
|
|
@@ -1299,17 +1279,17 @@ class vi extends $e {
|
|
|
1299
1279
|
async hostUpdated() {
|
|
1300
1280
|
if (!this.h || !this.element.isConnected || this.options.skipInitial && !this.isHostRendered) return;
|
|
1301
1281
|
let t;
|
|
1302
|
-
this.prepare(), await
|
|
1303
|
-
const e = this.O(), i = this.j(this.options.keyframeOptions, e),
|
|
1282
|
+
this.prepare(), await Kt;
|
|
1283
|
+
const e = this.O(), i = this.j(this.options.keyframeOptions, e), s = this.m();
|
|
1304
1284
|
if (this.A !== void 0) {
|
|
1305
|
-
const { from:
|
|
1306
|
-
this.log("measured", [this.A,
|
|
1285
|
+
const { from: r, to: o } = this.N(this.A, s, e);
|
|
1286
|
+
this.log("measured", [this.A, s, r, o]), t = this.calculateKeyframes(r, o);
|
|
1307
1287
|
} else {
|
|
1308
|
-
const
|
|
1309
|
-
if (
|
|
1310
|
-
|
|
1311
|
-
const { from: o, to: a } = this.N(
|
|
1312
|
-
t = this.calculateKeyframes(o, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t,
|
|
1288
|
+
const r = at.get(this.options.inId);
|
|
1289
|
+
if (r) {
|
|
1290
|
+
at.delete(this.options.inId);
|
|
1291
|
+
const { from: o, to: a } = this.N(r, s, e);
|
|
1292
|
+
t = this.calculateKeyframes(o, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, Wt++, t.forEach((c) => c.zIndex = Wt);
|
|
1313
1293
|
} else this.options.in && (t = [...this.options.in, {}]);
|
|
1314
1294
|
}
|
|
1315
1295
|
this.animate(t, i);
|
|
@@ -1325,14 +1305,14 @@ class vi extends $e {
|
|
|
1325
1305
|
}
|
|
1326
1306
|
async disconnected() {
|
|
1327
1307
|
var e;
|
|
1328
|
-
if (!this.h || (this.options.id !== void 0 &&
|
|
1329
|
-
if (this.prepare(), await
|
|
1308
|
+
if (!this.h || (this.options.id !== void 0 && at.set(this.options.id, this.A), this.options.out === void 0)) return;
|
|
1309
|
+
if (this.prepare(), await Kt(), (e = this.i) == null ? void 0 : e.isConnected) {
|
|
1330
1310
|
const i = this.o && this.o.parentNode === this.i ? this.o : null;
|
|
1331
1311
|
if (this.i.insertBefore(this.element, i), this.options.stabilizeOut) {
|
|
1332
|
-
const
|
|
1312
|
+
const s = this.m();
|
|
1333
1313
|
this.log("stabilizing out");
|
|
1334
|
-
const
|
|
1335
|
-
getComputedStyle(this.element).position !== "static" ||
|
|
1314
|
+
const r = this.A.left - s.left, o = this.A.top - s.top;
|
|
1315
|
+
getComputedStyle(this.element).position !== "static" || r === 0 && o === 0 || (this.element.style.position = "relative"), r !== 0 && (this.element.style.left = r + "px"), o !== 0 && (this.element.style.top = o + "px");
|
|
1336
1316
|
}
|
|
1337
1317
|
}
|
|
1338
1318
|
const t = this.j(this.options.keyframeOptions);
|
|
@@ -1352,56 +1332,56 @@ class vi extends $e {
|
|
|
1352
1332
|
O() {
|
|
1353
1333
|
const t = [];
|
|
1354
1334
|
for (let e = this.element.parentNode; e; e = e == null ? void 0 : e.parentNode) {
|
|
1355
|
-
const i =
|
|
1335
|
+
const i = Jt.get(e);
|
|
1356
1336
|
i && !i.isDisabled() && i && t.push(i);
|
|
1357
1337
|
}
|
|
1358
1338
|
return t;
|
|
1359
1339
|
}
|
|
1360
1340
|
get isHostRendered() {
|
|
1361
|
-
const t =
|
|
1341
|
+
const t = qt.has(this.u);
|
|
1362
1342
|
return t || this.u.updateComplete.then(() => {
|
|
1363
|
-
|
|
1343
|
+
qt.add(this.u);
|
|
1364
1344
|
}), t;
|
|
1365
1345
|
}
|
|
1366
1346
|
j(t, e = this.O()) {
|
|
1367
|
-
const i = { ...
|
|
1368
|
-
return e.forEach((
|
|
1347
|
+
const i = { ...ui };
|
|
1348
|
+
return e.forEach((s) => Object.assign(i, s.options.keyframeOptions)), Object.assign(i, t), i;
|
|
1369
1349
|
}
|
|
1370
1350
|
N(t, e, i) {
|
|
1371
1351
|
t = { ...t }, e = { ...e };
|
|
1372
|
-
const
|
|
1373
|
-
let
|
|
1374
|
-
return
|
|
1375
|
-
a.width && (
|
|
1376
|
-
}), t.left !== void 0 && e.left !== void 0 && (t.left =
|
|
1352
|
+
const s = i.map((a) => a.animatingProperties).filter((a) => a !== void 0);
|
|
1353
|
+
let r = 1, o = 1;
|
|
1354
|
+
return s.length > 0 && (s.forEach((a) => {
|
|
1355
|
+
a.width && (r /= a.width), a.height && (o /= a.height);
|
|
1356
|
+
}), t.left !== void 0 && e.left !== void 0 && (t.left = r * t.left, e.left = r * e.left), t.top !== void 0 && e.top !== void 0 && (t.top = o * t.top, e.top = o * e.top)), { from: t, to: e };
|
|
1377
1357
|
}
|
|
1378
1358
|
calculateKeyframes(t, e, i = !1) {
|
|
1379
|
-
const
|
|
1359
|
+
const s = {}, r = {};
|
|
1380
1360
|
let o = !1;
|
|
1381
1361
|
const a = {};
|
|
1382
1362
|
for (const c in e) {
|
|
1383
1363
|
const h = t[c], l = e[c];
|
|
1384
|
-
if (c in
|
|
1385
|
-
const d =
|
|
1364
|
+
if (c in ct) {
|
|
1365
|
+
const d = ct[c];
|
|
1386
1366
|
if (h === void 0 || l === void 0) continue;
|
|
1387
|
-
const
|
|
1388
|
-
|
|
1389
|
-
} else h !== l && h !== void 0 && l !== void 0 && (o = !0,
|
|
1367
|
+
const p = d(h, l);
|
|
1368
|
+
p.transform !== void 0 && (a[c] = p.value, o = !0, s.transform = `${s.transform ?? ""} ${p.transform}`, p.overrideFrom !== void 0 && Object.assign(s, p.overrideFrom));
|
|
1369
|
+
} else h !== l && h !== void 0 && l !== void 0 && (o = !0, s[c] = h, r[c] = l);
|
|
1390
1370
|
}
|
|
1391
|
-
return
|
|
1371
|
+
return s.transformOrigin = r.transformOrigin = i ? "center center" : "top left", this.animatingProperties = a, o ? [s, r] : void 0;
|
|
1392
1372
|
}
|
|
1393
1373
|
async animate(t, e = this.options.keyframeOptions) {
|
|
1394
1374
|
this.start(), this.frames = t;
|
|
1395
1375
|
let i = !1;
|
|
1396
1376
|
if (!this.isAnimating() && !this.isDisabled() && (this.options.onFrames && (this.frames = t = this.options.onFrames(this), this.log("modified frames", t)), t !== void 0)) {
|
|
1397
1377
|
this.log("animate", [t, e]), i = !0, this.webAnimation = this.element.animate(t, e);
|
|
1398
|
-
const
|
|
1399
|
-
|
|
1378
|
+
const s = this.getController();
|
|
1379
|
+
s == null || s.add(this);
|
|
1400
1380
|
try {
|
|
1401
1381
|
await this.webAnimation.finished;
|
|
1402
1382
|
} catch {
|
|
1403
1383
|
}
|
|
1404
|
-
|
|
1384
|
+
s == null || s.remove(this);
|
|
1405
1385
|
}
|
|
1406
1386
|
return this.didFinish(i), i;
|
|
1407
1387
|
}
|
|
@@ -1413,96 +1393,96 @@ class vi extends $e {
|
|
|
1413
1393
|
this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, e);
|
|
1414
1394
|
}
|
|
1415
1395
|
}
|
|
1416
|
-
const
|
|
1396
|
+
const gi = xt(fi), mi = { name: "question", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60C47.464 60 60 47.464 60 32C59.9827 16.5432 47.4568 4.01731 32 4ZM32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.30769 18.9151 18.9151 8.30769 32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6775 45.0788 45.0788 55.6775 32 55.6923Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9423 37.5723L36.311 32.9068L36.7354 32.4448C39.7555 29.1161 40.7645 27.0647 40.7645 24.5087C40.7645 23.1091 40.4251 21.7942 39.7041 20.6491C38.3044 18.3587 35.6323 16.9166 32.2816 16.9166C28.7565 16.9166 25.3125 18.7414 23.2581 21.6772L23.1201 21.8791C22.8232 22.3032 22.696 22.6849 22.696 22.9818C22.696 23.7029 23.926 25.9932 25.2833 25.9932C25.5378 25.9932 25.7922 25.9084 26.0467 25.7388C26.2588 25.5691 26.5981 25.2298 27.0647 24.7208C28.8885 22.6849 30.1185 21.9215 31.7726 21.9215C33.6813 21.9215 35.081 23.1939 35.081 24.8905C35.081 26.375 34.2751 27.7746 32.3664 29.8529L28.2523 34.2216C27.9554 34.6033 27.7857 34.9426 27.7857 35.282C27.7857 35.6213 27.9978 36.1726 28.4219 36.8937C29.0581 37.8692 29.7368 38.3782 30.4578 38.3782C30.9244 38.3782 31.3909 38.1237 31.9423 37.5723ZM30.882 47.4972C29.2278 47.4972 27.6585 44.7403 27.6585 43.6799C27.6585 42.1954 30.0761 40.6261 32.4089 40.6261C33.6389 40.6261 34.2751 41.1775 34.2751 42.3227C34.2751 44.0616 33.4692 45.843 32.4513 46.7761C31.9423 47.2427 31.4334 47.4972 30.882 47.4972Z"/></svg>' };
|
|
1417
1397
|
/**
|
|
1418
1398
|
* @license
|
|
1419
1399
|
* Copyright 2018 Google LLC
|
|
1420
1400
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1421
1401
|
*/
|
|
1422
|
-
const
|
|
1423
|
-
constructor(
|
|
1402
|
+
const Qt = xt(class extends me {
|
|
1403
|
+
constructor(n) {
|
|
1424
1404
|
var t;
|
|
1425
|
-
if (super(
|
|
1405
|
+
if (super(n), n.type !== At.ATTRIBUTE || n.name !== "class" || ((t = n.strings) == null ? void 0 : t.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
1426
1406
|
}
|
|
1427
|
-
render(
|
|
1428
|
-
return " " + Object.keys(
|
|
1407
|
+
render(n) {
|
|
1408
|
+
return " " + Object.keys(n).filter((t) => n[t]).join(" ") + " ";
|
|
1429
1409
|
}
|
|
1430
|
-
update(
|
|
1431
|
-
var i,
|
|
1410
|
+
update(n, [t]) {
|
|
1411
|
+
var i, s;
|
|
1432
1412
|
if (this.st === void 0) {
|
|
1433
|
-
this.st = /* @__PURE__ */ new Set(),
|
|
1434
|
-
for (const
|
|
1413
|
+
this.st = /* @__PURE__ */ new Set(), n.strings !== void 0 && (this.nt = new Set(n.strings.join(" ").split(/\s/).filter((r) => r !== "")));
|
|
1414
|
+
for (const r in t) t[r] && !((i = this.nt) != null && i.has(r)) && this.st.add(r);
|
|
1435
1415
|
return this.render(t);
|
|
1436
1416
|
}
|
|
1437
|
-
const e =
|
|
1438
|
-
for (const
|
|
1439
|
-
for (const
|
|
1440
|
-
const o = !!t[
|
|
1441
|
-
o === this.st.has(
|
|
1417
|
+
const e = n.element.classList;
|
|
1418
|
+
for (const r of this.st) r in t || (e.remove(r), this.st.delete(r));
|
|
1419
|
+
for (const r in t) {
|
|
1420
|
+
const o = !!t[r];
|
|
1421
|
+
o === this.st.has(r) || (s = this.nt) != null && s.has(r) || (o ? (e.add(r), this.st.add(r)) : (e.remove(r), this.st.delete(r)));
|
|
1442
1422
|
}
|
|
1443
1423
|
return P;
|
|
1444
1424
|
}
|
|
1445
|
-
}),
|
|
1446
|
-
|
|
1447
|
-
},
|
|
1448
|
-
var e, i,
|
|
1449
|
-
|
|
1450
|
-
(i =
|
|
1425
|
+
}), b = (n, t, e) => {
|
|
1426
|
+
n && e.style.setProperty(t, n);
|
|
1427
|
+
}, ve = (n, t) => {
|
|
1428
|
+
var e, i, s, r, o, a, c, h, l;
|
|
1429
|
+
b((e = n.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), b(
|
|
1430
|
+
(i = n.colors) == null ? void 0 : i.textOnPrimaryBackground,
|
|
1451
1431
|
"--text-on-primary-background",
|
|
1452
1432
|
t
|
|
1453
|
-
),
|
|
1454
|
-
(
|
|
1433
|
+
), b(
|
|
1434
|
+
(s = n.colors) == null ? void 0 : s.secondaryBackground,
|
|
1455
1435
|
"--secondary-background",
|
|
1456
1436
|
t
|
|
1457
|
-
),
|
|
1458
|
-
(
|
|
1437
|
+
), b(
|
|
1438
|
+
(r = n.colors) == null ? void 0 : r.textOnSecondaryBackground,
|
|
1459
1439
|
"--text-on-secondary-background",
|
|
1460
1440
|
t
|
|
1461
|
-
),
|
|
1462
|
-
(o =
|
|
1441
|
+
), b(
|
|
1442
|
+
(o = n.colors) == null ? void 0 : o.interactiveDestructiveBackground,
|
|
1463
1443
|
"--destructive-color",
|
|
1464
1444
|
t
|
|
1465
|
-
),
|
|
1466
|
-
(a =
|
|
1445
|
+
), b(
|
|
1446
|
+
(a = n.colors) == null ? void 0 : a.interactiveTextOnDestructiveBackground,
|
|
1467
1447
|
"--text-on-destructive-color",
|
|
1468
1448
|
t
|
|
1469
|
-
),
|
|
1470
|
-
(c =
|
|
1449
|
+
), b(
|
|
1450
|
+
(c = n.colors) == null ? void 0 : c.interactivePrimaryBackground,
|
|
1471
1451
|
"--interactive-primary-background",
|
|
1472
1452
|
t
|
|
1473
|
-
),
|
|
1474
|
-
(h =
|
|
1453
|
+
), b(
|
|
1454
|
+
(h = n.colors) == null ? void 0 : h.interactiveTextOnPrimaryBackground,
|
|
1475
1455
|
"--interactive-text-on-primary-background",
|
|
1476
1456
|
t
|
|
1477
|
-
),
|
|
1457
|
+
), b((l = n.colors) == null ? void 0 : l.focusColor, "--focus-color", t);
|
|
1478
1458
|
};
|
|
1479
1459
|
/**
|
|
1480
1460
|
* @license
|
|
1481
1461
|
* Copyright 2020 Google LLC
|
|
1482
1462
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1483
1463
|
*/
|
|
1484
|
-
const
|
|
1485
|
-
class
|
|
1464
|
+
const $e = () => new yi();
|
|
1465
|
+
class yi {
|
|
1486
1466
|
}
|
|
1487
|
-
const
|
|
1488
|
-
render(
|
|
1489
|
-
return
|
|
1467
|
+
const ht = /* @__PURE__ */ new WeakMap(), _e = xt(class extends be {
|
|
1468
|
+
render(n) {
|
|
1469
|
+
return u;
|
|
1490
1470
|
}
|
|
1491
|
-
update(
|
|
1471
|
+
update(n, [t]) {
|
|
1492
1472
|
var i;
|
|
1493
1473
|
const e = t !== this.Y;
|
|
1494
|
-
return e && this.Y !== void 0 && this.rt(void 0), (e || this.lt !== this.ct) && (this.Y = t, this.ht = (i =
|
|
1474
|
+
return e && this.Y !== void 0 && this.rt(void 0), (e || this.lt !== this.ct) && (this.Y = t, this.ht = (i = n.options) == null ? void 0 : i.host, this.rt(this.ct = n.element)), u;
|
|
1495
1475
|
}
|
|
1496
|
-
rt(
|
|
1497
|
-
if (this.isConnected || (
|
|
1476
|
+
rt(n) {
|
|
1477
|
+
if (this.isConnected || (n = void 0), typeof this.Y == "function") {
|
|
1498
1478
|
const t = this.ht ?? globalThis;
|
|
1499
|
-
let e =
|
|
1500
|
-
e === void 0 && (e = /* @__PURE__ */ new WeakMap(),
|
|
1501
|
-
} else this.Y.value =
|
|
1479
|
+
let e = ht.get(t);
|
|
1480
|
+
e === void 0 && (e = /* @__PURE__ */ new WeakMap(), ht.set(t, e)), e.get(this.Y) !== void 0 && this.Y.call(this.ht, void 0), e.set(this.Y, n), n !== void 0 && this.Y.call(this.ht, n);
|
|
1481
|
+
} else this.Y.value = n;
|
|
1502
1482
|
}
|
|
1503
1483
|
get lt() {
|
|
1504
|
-
var
|
|
1505
|
-
return typeof this.Y == "function" ? (
|
|
1484
|
+
var n, t;
|
|
1485
|
+
return typeof this.Y == "function" ? (n = ht.get(this.ht ?? globalThis)) == null ? void 0 : n.get(this.Y) : (t = this.Y) == null ? void 0 : t.value;
|
|
1506
1486
|
}
|
|
1507
1487
|
disconnected() {
|
|
1508
1488
|
this.lt === this.ct && this.rt(void 0);
|
|
@@ -1511,14 +1491,14 @@ const lt = /* @__PURE__ */ new WeakMap(), Ae = Ct(class extends $e {
|
|
|
1511
1491
|
this.rt(this.ct);
|
|
1512
1492
|
}
|
|
1513
1493
|
});
|
|
1514
|
-
var
|
|
1515
|
-
for (var
|
|
1516
|
-
(o =
|
|
1517
|
-
return
|
|
1494
|
+
var bi = Object.defineProperty, Y = (n, t, e, i) => {
|
|
1495
|
+
for (var s = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
1496
|
+
(o = n[r]) && (s = o(t, e, s) || s);
|
|
1497
|
+
return s && bi(t, e, s), s;
|
|
1518
1498
|
};
|
|
1519
|
-
const
|
|
1499
|
+
const St = class St extends y {
|
|
1520
1500
|
constructor() {
|
|
1521
|
-
super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef =
|
|
1501
|
+
super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef = $e(), this.widgetActive$ = new Re(!1), this.componentIsDestroyed$ = new bt();
|
|
1522
1502
|
}
|
|
1523
1503
|
async connectedCallback() {
|
|
1524
1504
|
super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding();
|
|
@@ -1553,7 +1533,7 @@ const Pt = class Pt extends m {
|
|
|
1553
1533
|
}
|
|
1554
1534
|
_applyBranding() {
|
|
1555
1535
|
var t;
|
|
1556
|
-
(t = this.application) != null && t.settings &&
|
|
1536
|
+
(t = this.application) != null && t.settings && ve(this.application.settings.branding, this);
|
|
1557
1537
|
}
|
|
1558
1538
|
async _renderSymbol() {
|
|
1559
1539
|
var a, c, h;
|
|
@@ -1562,19 +1542,19 @@ const Pt = class Pt extends m {
|
|
|
1562
1542
|
return C` <img src=${e} class="trigger-icon" alt="" /> `;
|
|
1563
1543
|
const i = (h = this.application) == null ? void 0 : h.triggerIcon;
|
|
1564
1544
|
if (!i)
|
|
1565
|
-
return
|
|
1566
|
-
const
|
|
1567
|
-
switch (
|
|
1545
|
+
return u;
|
|
1546
|
+
const s = async (l) => mi, { type: r, content: o } = i;
|
|
1547
|
+
switch (r) {
|
|
1568
1548
|
case "Telia": {
|
|
1569
|
-
const l = await
|
|
1549
|
+
const l = await s();
|
|
1570
1550
|
return l ? C`<telia-icon
|
|
1571
1551
|
class="trigger-icon"
|
|
1572
1552
|
svg=${l.svg}
|
|
1573
1553
|
size="lg"
|
|
1574
|
-
></telia-icon>` :
|
|
1554
|
+
></telia-icon>` : u;
|
|
1575
1555
|
}
|
|
1576
1556
|
default:
|
|
1577
|
-
return
|
|
1557
|
+
return u;
|
|
1578
1558
|
}
|
|
1579
1559
|
}
|
|
1580
1560
|
hideTrigger() {
|
|
@@ -1584,33 +1564,33 @@ const Pt = class Pt extends m {
|
|
|
1584
1564
|
this.triggerVisible = !0;
|
|
1585
1565
|
}
|
|
1586
1566
|
render() {
|
|
1587
|
-
var t, e, i,
|
|
1567
|
+
var t, e, i, s;
|
|
1588
1568
|
return C`<div
|
|
1589
|
-
class=${
|
|
1569
|
+
class=${Qt({
|
|
1590
1570
|
"trigger-container": !0,
|
|
1591
1571
|
hidden: !this.triggerVisible
|
|
1592
1572
|
})}
|
|
1593
|
-
${
|
|
1573
|
+
${_e(this.containerRef)}
|
|
1594
1574
|
>
|
|
1595
|
-
${!this.active && ((
|
|
1575
|
+
${!this.active && ((s = (i = (e = (t = this.application) == null ? void 0 : t.settings) == null ? void 0 : e.branding) == null ? void 0 : i.other) != null && s.showButtonLabel) ? C`
|
|
1596
1576
|
<button
|
|
1597
1577
|
label="${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}"
|
|
1598
1578
|
class="trigger-label"
|
|
1599
1579
|
@click=${this.toggleActive}
|
|
1600
|
-
${
|
|
1580
|
+
${gi({
|
|
1601
1581
|
keyframeOptions: {},
|
|
1602
|
-
in:
|
|
1582
|
+
in: di,
|
|
1603
1583
|
stabilizeOut: !0,
|
|
1604
1584
|
skipInitial: !1
|
|
1605
1585
|
})}
|
|
1606
1586
|
>
|
|
1607
1587
|
${this.application.settings.branding.other.buttonLabelText}
|
|
1608
1588
|
</button>
|
|
1609
|
-
` :
|
|
1589
|
+
` : u}
|
|
1610
1590
|
|
|
1611
1591
|
<button
|
|
1612
1592
|
label="Widget trigger"
|
|
1613
|
-
class=${
|
|
1593
|
+
class=${Qt({
|
|
1614
1594
|
trigger: !0,
|
|
1615
1595
|
active: this.active,
|
|
1616
1596
|
rendered: this.loaded
|
|
@@ -1649,8 +1629,8 @@ const Pt = class Pt extends m {
|
|
|
1649
1629
|
</div>`;
|
|
1650
1630
|
}
|
|
1651
1631
|
};
|
|
1652
|
-
|
|
1653
|
-
|
|
1632
|
+
St.styles = [
|
|
1633
|
+
O`
|
|
1654
1634
|
:host {
|
|
1655
1635
|
--voca-rem-multiplier: 0.625;
|
|
1656
1636
|
--trigger-label-bg: #f5e0ff;
|
|
@@ -1781,7 +1761,7 @@ Pt.styles = [
|
|
|
1781
1761
|
}
|
|
1782
1762
|
`
|
|
1783
1763
|
];
|
|
1784
|
-
let $ =
|
|
1764
|
+
let $ = St;
|
|
1785
1765
|
Y([
|
|
1786
1766
|
g({ attribute: !1 })
|
|
1787
1767
|
], $.prototype, "application");
|
|
@@ -1797,27 +1777,27 @@ Y([
|
|
|
1797
1777
|
Y([
|
|
1798
1778
|
L()
|
|
1799
1779
|
], $.prototype, "icon");
|
|
1800
|
-
var
|
|
1801
|
-
for (var
|
|
1802
|
-
(o =
|
|
1803
|
-
return
|
|
1780
|
+
var vi = Object.defineProperty, x = (n, t, e, i) => {
|
|
1781
|
+
for (var s = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
1782
|
+
(o = n[r]) && (s = o(t, e, s) || s);
|
|
1783
|
+
return s && vi(t, e, s), s;
|
|
1804
1784
|
};
|
|
1805
|
-
const
|
|
1806
|
-
const e = class e extends
|
|
1785
|
+
const we = (n) => {
|
|
1786
|
+
const e = class e extends n {
|
|
1807
1787
|
constructor() {
|
|
1808
1788
|
super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
|
|
1809
1789
|
}
|
|
1810
|
-
writeProperties(
|
|
1811
|
-
this.properties =
|
|
1790
|
+
writeProperties(s) {
|
|
1791
|
+
this.properties = s;
|
|
1812
1792
|
}
|
|
1813
|
-
writeLayout(
|
|
1814
|
-
this.layout =
|
|
1793
|
+
writeLayout(s) {
|
|
1794
|
+
this.layout = s;
|
|
1815
1795
|
}
|
|
1816
|
-
writeContext(
|
|
1817
|
-
this.context =
|
|
1796
|
+
writeContext(s) {
|
|
1797
|
+
this.context = s;
|
|
1818
1798
|
}
|
|
1819
|
-
addChild(
|
|
1820
|
-
|
|
1799
|
+
addChild(s) {
|
|
1800
|
+
s.parent = this, this.nodes.push(s);
|
|
1821
1801
|
}
|
|
1822
1802
|
connectedCallback() {
|
|
1823
1803
|
super.connectedCallback(), this.renderRoot.host.style.setProperty(
|
|
@@ -1828,7 +1808,7 @@ const xe = (s) => {
|
|
|
1828
1808
|
};
|
|
1829
1809
|
e.styles = [
|
|
1830
1810
|
// (superClass as unknown as typeof LitElement).styles ?? [],
|
|
1831
|
-
|
|
1811
|
+
O`
|
|
1832
1812
|
:host {
|
|
1833
1813
|
font-family: var(--font-family);
|
|
1834
1814
|
grid-column: span var(--width);
|
|
@@ -1858,37 +1838,37 @@ const xe = (s) => {
|
|
|
1858
1838
|
], t.prototype, "application"), x([
|
|
1859
1839
|
g({ attribute: !1 })
|
|
1860
1840
|
], t.prototype, "parent"), t;
|
|
1861
|
-
},
|
|
1841
|
+
}, Pt = class Pt extends we(y) {
|
|
1862
1842
|
render() {
|
|
1863
1843
|
return C`Non resolved component`;
|
|
1864
1844
|
}
|
|
1865
1845
|
};
|
|
1866
|
-
|
|
1867
|
-
|
|
1846
|
+
Pt.styles = [
|
|
1847
|
+
O`
|
|
1868
1848
|
:host {
|
|
1869
1849
|
display: block;
|
|
1870
1850
|
}
|
|
1871
1851
|
`
|
|
1872
1852
|
];
|
|
1873
|
-
let yt =
|
|
1853
|
+
let yt = Pt;
|
|
1874
1854
|
/**
|
|
1875
1855
|
* @license
|
|
1876
1856
|
* Copyright 2021 Google LLC
|
|
1877
1857
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1878
1858
|
*/
|
|
1879
|
-
function*
|
|
1880
|
-
if (
|
|
1859
|
+
function* $i(n, t) {
|
|
1860
|
+
if (n !== void 0) {
|
|
1881
1861
|
let e = 0;
|
|
1882
|
-
for (const i of
|
|
1862
|
+
for (const i of n) yield t(i, e++);
|
|
1883
1863
|
}
|
|
1884
1864
|
}
|
|
1885
|
-
var V = /* @__PURE__ */ ((
|
|
1865
|
+
var V = /* @__PURE__ */ ((n) => (n.Inline = "inline", n.Trigger = "trigger", n))(V || {});
|
|
1886
1866
|
/**
|
|
1887
1867
|
* @license
|
|
1888
1868
|
* Copyright 2021 Google LLC
|
|
1889
1869
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1890
1870
|
*/
|
|
1891
|
-
let
|
|
1871
|
+
let _i = class extends Event {
|
|
1892
1872
|
constructor(t, e, i) {
|
|
1893
1873
|
super("context-request", { bubbles: !0, composed: !0 }), this.context = t, this.callback = e, this.subscribe = i ?? !1;
|
|
1894
1874
|
}
|
|
@@ -1903,7 +1883,7 @@ let Ai = class extends Event {
|
|
|
1903
1883
|
* Copyright 2021 Google LLC
|
|
1904
1884
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1905
1885
|
*/
|
|
1906
|
-
class
|
|
1886
|
+
class wi {
|
|
1907
1887
|
get value() {
|
|
1908
1888
|
return this.o;
|
|
1909
1889
|
}
|
|
@@ -1924,8 +1904,8 @@ class xi {
|
|
|
1924
1904
|
this.subscriptions.has(t) || this.subscriptions.set(t, { disposer: () => {
|
|
1925
1905
|
this.subscriptions.delete(t);
|
|
1926
1906
|
}, consumerHost: e });
|
|
1927
|
-
const { disposer:
|
|
1928
|
-
t(this.value,
|
|
1907
|
+
const { disposer: s } = this.subscriptions.get(t);
|
|
1908
|
+
t(this.value, s);
|
|
1929
1909
|
}
|
|
1930
1910
|
clearCallbacks() {
|
|
1931
1911
|
this.subscriptions.clear();
|
|
@@ -1936,14 +1916,14 @@ class xi {
|
|
|
1936
1916
|
* Copyright 2021 Google LLC
|
|
1937
1917
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1938
1918
|
*/
|
|
1939
|
-
let
|
|
1919
|
+
let Ai = class extends Event {
|
|
1940
1920
|
constructor(t) {
|
|
1941
1921
|
super("context-provider", { bubbles: !0, composed: !0 }), this.context = t;
|
|
1942
1922
|
}
|
|
1943
1923
|
};
|
|
1944
|
-
class
|
|
1924
|
+
class te extends wi {
|
|
1945
1925
|
constructor(t, e, i) {
|
|
1946
|
-
var
|
|
1926
|
+
var s, r;
|
|
1947
1927
|
super(e.context !== void 0 ? e.initialValue : i), this.onContextRequest = (o) => {
|
|
1948
1928
|
const a = o.composedPath()[0];
|
|
1949
1929
|
o.context === this.context && a !== this.host && (o.stopPropagation(), this.addCallback(o.callback, a, o.subscribe));
|
|
@@ -1951,15 +1931,15 @@ class ee extends xi {
|
|
|
1951
1931
|
const a = o.composedPath()[0];
|
|
1952
1932
|
if (o.context !== this.context || a === this.host) return;
|
|
1953
1933
|
const c = /* @__PURE__ */ new Set();
|
|
1954
|
-
for (const [h, { consumerHost: l }] of this.subscriptions) c.has(h) || (c.add(h), l.dispatchEvent(new
|
|
1934
|
+
for (const [h, { consumerHost: l }] of this.subscriptions) c.has(h) || (c.add(h), l.dispatchEvent(new _i(this.context, h, !0)));
|
|
1955
1935
|
o.stopPropagation();
|
|
1956
|
-
}, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (
|
|
1936
|
+
}, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (r = (s = this.host).addController) == null || r.call(s, this);
|
|
1957
1937
|
}
|
|
1958
1938
|
attachListeners() {
|
|
1959
1939
|
this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
|
|
1960
1940
|
}
|
|
1961
1941
|
hostConnected() {
|
|
1962
|
-
this.host.dispatchEvent(new
|
|
1942
|
+
this.host.dispatchEvent(new Ai(this.context));
|
|
1963
1943
|
}
|
|
1964
1944
|
}
|
|
1965
1945
|
/**
|
|
@@ -1967,51 +1947,51 @@ class ee extends xi {
|
|
|
1967
1947
|
* Copyright 2017 Google LLC
|
|
1968
1948
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1969
1949
|
*/
|
|
1970
|
-
function
|
|
1950
|
+
function xi({ context: n }) {
|
|
1971
1951
|
return (t, e) => {
|
|
1972
1952
|
const i = /* @__PURE__ */ new WeakMap();
|
|
1973
1953
|
if (typeof e == "object") return e.addInitializer(function() {
|
|
1974
|
-
i.set(this, new
|
|
1954
|
+
i.set(this, new te(this, { context: n }));
|
|
1975
1955
|
}), { get() {
|
|
1976
1956
|
return t.get.call(this);
|
|
1977
|
-
}, set(
|
|
1978
|
-
var
|
|
1979
|
-
return (
|
|
1980
|
-
}, init(
|
|
1981
|
-
var
|
|
1982
|
-
return (
|
|
1957
|
+
}, set(s) {
|
|
1958
|
+
var r;
|
|
1959
|
+
return (r = i.get(this)) == null || r.setValue(s), t.set.call(this, s);
|
|
1960
|
+
}, init(s) {
|
|
1961
|
+
var r;
|
|
1962
|
+
return (r = i.get(this)) == null || r.setValue(s), s;
|
|
1983
1963
|
} };
|
|
1984
1964
|
{
|
|
1985
1965
|
t.constructor.addInitializer((o) => {
|
|
1986
|
-
i.set(o, new
|
|
1966
|
+
i.set(o, new te(o, { context: n }));
|
|
1987
1967
|
});
|
|
1988
|
-
const
|
|
1989
|
-
let
|
|
1990
|
-
if (
|
|
1968
|
+
const s = Object.getOwnPropertyDescriptor(t, e);
|
|
1969
|
+
let r;
|
|
1970
|
+
if (s === void 0) {
|
|
1991
1971
|
const o = /* @__PURE__ */ new WeakMap();
|
|
1992
|
-
|
|
1972
|
+
r = { get() {
|
|
1993
1973
|
return o.get(this);
|
|
1994
1974
|
}, set(a) {
|
|
1995
1975
|
i.get(this).setValue(a), o.set(this, a);
|
|
1996
1976
|
}, configurable: !0, enumerable: !0 };
|
|
1997
1977
|
} else {
|
|
1998
|
-
const o =
|
|
1999
|
-
|
|
1978
|
+
const o = s.set;
|
|
1979
|
+
r = { ...s, set(a) {
|
|
2000
1980
|
i.get(this).setValue(a), o == null || o.call(this, a);
|
|
2001
1981
|
} };
|
|
2002
1982
|
}
|
|
2003
|
-
return void Object.defineProperty(t, e,
|
|
1983
|
+
return void Object.defineProperty(t, e, r);
|
|
2004
1984
|
}
|
|
2005
1985
|
};
|
|
2006
1986
|
}
|
|
2007
|
-
var
|
|
2008
|
-
for (var
|
|
2009
|
-
(o =
|
|
2010
|
-
return
|
|
1987
|
+
var Ci = Object.defineProperty, Ae = (n, t, e, i) => {
|
|
1988
|
+
for (var s = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
1989
|
+
(o = n[r]) && (s = o(t, e, s) || s);
|
|
1990
|
+
return s && Ci(t, e, s), s;
|
|
2011
1991
|
};
|
|
2012
|
-
const
|
|
1992
|
+
const Ei = "application", Ot = class Ot extends y {
|
|
2013
1993
|
constructor() {
|
|
2014
|
-
super(...arguments), this.nodes = [], this.wrapperRef =
|
|
1994
|
+
super(...arguments), this.nodes = [], this.wrapperRef = $e(), this.fullscreen = !1;
|
|
2015
1995
|
}
|
|
2016
1996
|
addChild(t) {
|
|
2017
1997
|
t.parent = this, this.nodes.push(t);
|
|
@@ -2020,28 +2000,28 @@ const Pi = "application", Ot = class Ot extends m {
|
|
|
2020
2000
|
if (!this.wrapperRef.value)
|
|
2021
2001
|
return;
|
|
2022
2002
|
const t = this.application.settings;
|
|
2023
|
-
t != null && t.branding &&
|
|
2003
|
+
t != null && t.branding && ve(t.branding, this.wrapperRef.value);
|
|
2024
2004
|
}
|
|
2025
2005
|
applyStyles() {
|
|
2026
2006
|
if (!this.wrapperRef.value)
|
|
2027
2007
|
return;
|
|
2028
2008
|
const t = this.application.styles(), e = this.wrapperRef.value;
|
|
2029
|
-
Object.entries(t).forEach(([i,
|
|
2030
|
-
e.style.setProperty(`--${i}`,
|
|
2009
|
+
Object.entries(t).forEach(([i, s]) => {
|
|
2010
|
+
e.style.setProperty(`--${i}`, s);
|
|
2031
2011
|
});
|
|
2032
2012
|
}
|
|
2033
2013
|
firstUpdated(t) {
|
|
2034
2014
|
this.applyBranding(), this.applyStyles();
|
|
2035
2015
|
}
|
|
2036
2016
|
render() {
|
|
2037
|
-
var i,
|
|
2017
|
+
var i, s;
|
|
2038
2018
|
const t = this.application.settings.components.conversation;
|
|
2039
|
-
return ((
|
|
2040
|
-
${
|
|
2019
|
+
return ((s = (i = t == null ? void 0 : t.properties) == null ? void 0 : i.chat) == null ? void 0 : s.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === V.Trigger && (this.renderRoot.host.classList.add("floating"), this.application.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.application.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right")), this.application.fullscreen && this.renderRoot.host.classList.add("fullscreen"), window.self !== window.top && this.renderRoot.host.classList.add("embedded"), C`<div class="widget-container" ${_e(this.wrapperRef)}>
|
|
2020
|
+
${$i(this.nodes, (r) => r)}
|
|
2041
2021
|
</div>`;
|
|
2042
2022
|
}
|
|
2043
2023
|
};
|
|
2044
|
-
Ot.styles =
|
|
2024
|
+
Ot.styles = O`
|
|
2045
2025
|
:host {
|
|
2046
2026
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
|
2047
2027
|
--spacing-xs: 0.2rem;
|
|
@@ -2195,12 +2175,12 @@ Ot.styles = k`
|
|
|
2195
2175
|
}
|
|
2196
2176
|
`;
|
|
2197
2177
|
let z = Ot;
|
|
2198
|
-
|
|
2178
|
+
Ae([
|
|
2199
2179
|
g({ attribute: !0 })
|
|
2200
2180
|
], z.prototype, "fullscreen");
|
|
2201
|
-
|
|
2181
|
+
Ae([
|
|
2202
2182
|
g({ attribute: !1 }),
|
|
2203
|
-
|
|
2183
|
+
xi({ context: Ei })
|
|
2204
2184
|
], z.prototype, "application");
|
|
2205
2185
|
const Q = class Q {
|
|
2206
2186
|
// TODO:
|
|
@@ -2213,14 +2193,14 @@ const Q = class Q {
|
|
|
2213
2193
|
return i ? {
|
|
2214
2194
|
id: i.id,
|
|
2215
2195
|
triggers: i.triggers || [],
|
|
2216
|
-
apps: (i.widgets || []).map((
|
|
2217
|
-
let
|
|
2218
|
-
|
|
2219
|
-
const o =
|
|
2196
|
+
apps: (i.widgets || []).map((s) => {
|
|
2197
|
+
let r = V.Trigger;
|
|
2198
|
+
s.renderStrategy.toLowerCase() === "inline" && (r = V.Inline);
|
|
2199
|
+
const o = s.widgetId ? s.widgetId : s.id, a = typeof s.autoActivate == "boolean" ? s.autoActivate : !1, c = typeof s.anchor == "string" ? s.anchor : "BottomRight", h = typeof s.triggerIcon == "string" ? s.triggerIcon : "question";
|
|
2220
2200
|
return {
|
|
2221
2201
|
id: o,
|
|
2222
2202
|
widgetId: o,
|
|
2223
|
-
renderStrategy:
|
|
2203
|
+
renderStrategy: r,
|
|
2224
2204
|
autoActivate: a,
|
|
2225
2205
|
anchor: c,
|
|
2226
2206
|
triggerIcon: {
|
|
@@ -2240,13 +2220,13 @@ const Q = class Q {
|
|
|
2240
2220
|
}
|
|
2241
2221
|
};
|
|
2242
2222
|
Q.endpoint = "https://widgets.ace.teliacompany.net/api";
|
|
2243
|
-
let
|
|
2244
|
-
var
|
|
2245
|
-
for (var
|
|
2246
|
-
(o =
|
|
2247
|
-
return
|
|
2223
|
+
let ee = Q;
|
|
2224
|
+
var Si = Object.defineProperty, Ct = (n, t, e, i) => {
|
|
2225
|
+
for (var s = void 0, r = n.length - 1, o; r >= 0; r--)
|
|
2226
|
+
(o = n[r]) && (s = o(t, e, s) || s);
|
|
2227
|
+
return s && Si(t, e, s), s;
|
|
2248
2228
|
};
|
|
2249
|
-
const
|
|
2229
|
+
const kt = class kt extends y {
|
|
2250
2230
|
constructor() {
|
|
2251
2231
|
super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
|
|
2252
2232
|
}
|
|
@@ -2270,7 +2250,7 @@ const Tt = class Tt extends m {
|
|
|
2270
2250
|
}
|
|
2271
2251
|
render() {
|
|
2272
2252
|
if (!this.widget || this.status !== "activated")
|
|
2273
|
-
return
|
|
2253
|
+
return u;
|
|
2274
2254
|
if (this.widget.renderStrategy === V.Trigger) {
|
|
2275
2255
|
const t = new $();
|
|
2276
2256
|
return t.application = this.widget, t;
|
|
@@ -2278,21 +2258,21 @@ const Tt = class Tt extends m {
|
|
|
2278
2258
|
return this.widget.render();
|
|
2279
2259
|
}
|
|
2280
2260
|
};
|
|
2281
|
-
|
|
2282
|
-
|
|
2261
|
+
kt.styles = [
|
|
2262
|
+
O`
|
|
2283
2263
|
:host {
|
|
2284
2264
|
display: block;
|
|
2285
2265
|
}
|
|
2286
2266
|
`
|
|
2287
2267
|
];
|
|
2288
|
-
let H =
|
|
2289
|
-
|
|
2268
|
+
let H = kt;
|
|
2269
|
+
Ct([
|
|
2290
2270
|
g({ attribute: !0 })
|
|
2291
2271
|
], H.prototype, "name");
|
|
2292
|
-
|
|
2272
|
+
Ct([
|
|
2293
2273
|
L()
|
|
2294
2274
|
], H.prototype, "widget");
|
|
2295
|
-
|
|
2275
|
+
Ct([
|
|
2296
2276
|
L()
|
|
2297
2277
|
], H.prototype, "status");
|
|
2298
2278
|
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", X);
|
|
@@ -2300,7 +2280,7 @@ customElements.get("ace-trigger") || customElements.define("ace-trigger", $);
|
|
|
2300
2280
|
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", yt);
|
|
2301
2281
|
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", z);
|
|
2302
2282
|
customElements.get("ace-widget") || customElements.define("ace-widget", H);
|
|
2303
|
-
const
|
|
2283
|
+
const Pi = qe`
|
|
2304
2284
|
<g clip-path="url(#clip0_119_1665)">
|
|
2305
2285
|
<path d="M16.9321 27.4656C11.5983 29.6245 8.54568 28.9365 6.85856 27.5904L6.83398 27.5712C9.44534 30.1717 12.4221 32.0011 15.0324 32.0011C19.6033 32.0011 25.8614 26.4651 28.8232 17.8805C27.1542 20.9792 23.5727 24.7861 16.9321 27.4656Z" fill="#990AE3"/>
|
|
2306
2286
|
<path d="M20.9805 22.4843C25.1369 20.0779 28.8809 15.9968 30.0615 13.0869C30.397 10.6784 30.4654 10.3744 30.506 7.72479C30.5113 7.35786 30.4889 7.00586 30.4547 6.66879C30.2122 10.56 25.1743 15.4528 18.5092 18.6496C10.4689 22.5056 4.43734 23.5435 1.74585 20.6027C2.68077 22.4459 3.29407 23.3408 4.34545 24.7083C7.45044 27.4539 13.9852 26.5355 20.9805 22.4843Z" fill="#990AE3"/>
|
|
@@ -2318,10 +2298,10 @@ const Oi = Ge`
|
|
|
2318
2298
|
<clipPath id="clip0_119_1665">
|
|
2319
2299
|
<rect width="30.5068" height="32.0011" fill="white"/>
|
|
2320
2300
|
</clipPath>
|
|
2321
|
-
</defs>`,
|
|
2301
|
+
</defs>`, ie = we(y), Tt = class Tt extends ie {
|
|
2322
2302
|
render() {
|
|
2323
2303
|
var e;
|
|
2324
|
-
return (e = this.application.branding().other) != null && e.whiteLabel ?
|
|
2304
|
+
return (e = this.application.branding().other) != null && e.whiteLabel ? u : C` <div class="copyright">
|
|
2325
2305
|
<a
|
|
2326
2306
|
aria-label="Powered by Telia ACE"
|
|
2327
2307
|
href="https://ace-showcase.com"
|
|
@@ -2336,15 +2316,15 @@ const Oi = Ge`
|
|
|
2336
2316
|
fill="none"
|
|
2337
2317
|
xmlns="http://www.w3.org/2000/svg"
|
|
2338
2318
|
>
|
|
2339
|
-
${
|
|
2319
|
+
${Pi}
|
|
2340
2320
|
</svg>
|
|
2341
2321
|
</a>
|
|
2342
2322
|
</div>`;
|
|
2343
2323
|
}
|
|
2344
2324
|
};
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2325
|
+
Tt.styles = [
|
|
2326
|
+
ie.styles || [],
|
|
2327
|
+
O`
|
|
2348
2328
|
:host {
|
|
2349
2329
|
--copyright-text-color: var(--text-on-primary-background);
|
|
2350
2330
|
}
|
|
@@ -2379,8 +2359,8 @@ Mt.styles = [
|
|
|
2379
2359
|
}
|
|
2380
2360
|
`
|
|
2381
2361
|
];
|
|
2382
|
-
let
|
|
2362
|
+
let ne = Tt;
|
|
2383
2363
|
export {
|
|
2384
|
-
|
|
2385
|
-
|
|
2364
|
+
ne as Copyright,
|
|
2365
|
+
ne as default
|
|
2386
2366
|
};
|