@telia-ace/widget-core-flamingo 1.1.110 → 1.1.111-rc.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. package/index.js +33 -33
  2. package/index.mjs +593 -573
  3. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1,35 +1,35 @@
1
- var ft = function(n, t) {
2
- return ft = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, i) {
1
+ var gt = function(r, t) {
2
+ return gt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, i) {
3
3
  e.__proto__ = i;
4
4
  } || function(e, i) {
5
5
  for (var s in i) Object.prototype.hasOwnProperty.call(i, s) && (e[s] = i[s]);
6
- }, ft(n, t);
6
+ }, gt(r, t);
7
7
  };
8
- function Y(n, t) {
8
+ function Y(r, 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
- ft(n, t);
11
+ gt(r, t);
12
12
  function e() {
13
- this.constructor = n;
13
+ this.constructor = r;
14
14
  }
15
- n.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
15
+ r.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
16
16
  }
17
- function gt(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 {
17
+ function mt(r) {
18
+ var t = typeof Symbol == "function" && Symbol.iterator, e = t && r[t], i = 0;
19
+ if (e) return e.call(r);
20
+ if (r && typeof r.length == "number") return {
21
21
  next: function() {
22
- return n && i >= n.length && (n = void 0), { value: n && n[i++], done: !n };
22
+ return r && i >= r.length && (r = void 0), { value: r && r[i++], done: !r };
23
23
  }
24
24
  };
25
25
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
26
26
  }
27
- function mt(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;
27
+ function vt(r, t) {
28
+ var e = typeof Symbol == "function" && r[Symbol.iterator];
29
+ if (!e) return r;
30
+ var i = e.call(r), s, n = [], o;
31
31
  try {
32
- for (; (t === void 0 || t-- > 0) && !(s = i.next()).done; ) r.push(s.value);
32
+ for (; (t === void 0 || t-- > 0) && !(s = i.next()).done; ) n.push(s.value);
33
33
  } catch (a) {
34
34
  o = { error: a };
35
35
  } finally {
@@ -39,55 +39,55 @@ function mt(n, t) {
39
39
  if (o) throw o.error;
40
40
  }
41
41
  }
42
- return r;
42
+ return n;
43
43
  }
44
- function yt(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));
44
+ function yt(r, t, e) {
45
+ if (e || arguments.length === 2) for (var i = 0, s = t.length, n; i < s; i++)
46
+ (n || !(i in t)) && (n || (n = Array.prototype.slice.call(t, 0, i)), n[i] = t[i]);
47
+ return r.concat(n || Array.prototype.slice.call(t));
48
48
  }
49
- function _(n) {
50
- return typeof n == "function";
49
+ function _(r) {
50
+ return typeof r == "function";
51
51
  }
52
- function oe(n) {
52
+ function ce(r) {
53
53
  var t = function(i) {
54
54
  Error.call(i), i.stack = new Error().stack;
55
- }, e = n(t);
55
+ }, e = r(t);
56
56
  return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
57
57
  }
58
- var ot = oe(function(n) {
58
+ var ot = ce(function(r) {
59
59
  return function(e) {
60
- n(this), this.message = e ? e.length + ` errors occurred during unsubscription:
60
+ r(this), this.message = e ? e.length + ` errors occurred during unsubscription:
61
61
  ` + e.map(function(i, s) {
62
62
  return s + 1 + ") " + i.toString();
63
63
  }).join(`
64
64
  `) : "", this.name = "UnsubscriptionError", this.errors = e;
65
65
  };
66
66
  });
67
- function bt(n, t) {
68
- if (n) {
69
- var e = n.indexOf(t);
70
- 0 <= e && n.splice(e, 1);
67
+ function bt(r, t) {
68
+ if (r) {
69
+ var e = r.indexOf(t);
70
+ 0 <= e && r.splice(e, 1);
71
71
  }
72
72
  }
73
- var nt = function() {
74
- function n(t) {
73
+ var rt = function() {
74
+ function r(t) {
75
75
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
76
76
  }
77
- return n.prototype.unsubscribe = function() {
78
- var t, e, i, s, r;
77
+ return r.prototype.unsubscribe = function() {
78
+ var t, e, i, s, n;
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 = gt(o), c = a.next(); !c.done; c = a.next()) {
85
+ for (var a = mt(o), c = a.next(); !c.done; c = a.next()) {
86
86
  var l = c.value;
87
87
  l.remove(this);
88
88
  }
89
- } catch (y) {
90
- t = { error: y };
89
+ } catch (v) {
90
+ t = { error: v };
91
91
  } finally {
92
92
  try {
93
93
  c && !c.done && (e = a.return) && e.call(a);
@@ -101,23 +101,23 @@ var nt = function() {
101
101
  if (_(h))
102
102
  try {
103
103
  h();
104
- } catch (y) {
105
- r = y instanceof ot ? y.errors : [y];
104
+ } catch (v) {
105
+ n = v instanceof ot ? v.errors : [v];
106
106
  }
107
107
  var d = this._finalizers;
108
108
  if (d) {
109
109
  this._finalizers = null;
110
110
  try {
111
- for (var u = gt(d), f = u.next(); !f.done; f = u.next()) {
111
+ for (var u = mt(d), f = u.next(); !f.done; f = u.next()) {
112
112
  var g = f.value;
113
113
  try {
114
- Mt(g);
115
- } catch (y) {
116
- r = r ?? [], y instanceof ot ? r = yt(yt([], mt(r)), mt(y.errors)) : r.push(y);
114
+ Lt(g);
115
+ } catch (v) {
116
+ n = n ?? [], v instanceof ot ? n = yt(yt([], vt(n)), vt(v.errors)) : n.push(v);
117
117
  }
118
118
  }
119
- } catch (y) {
120
- i = { error: y };
119
+ } catch (v) {
120
+ i = { error: v };
121
121
  } finally {
122
122
  try {
123
123
  f && !f.done && (s = u.return) && s.call(u);
@@ -126,76 +126,80 @@ var nt = function() {
126
126
  }
127
127
  }
128
128
  }
129
- if (r)
130
- throw new ot(r);
129
+ if (n)
130
+ throw new ot(n);
131
131
  }
132
- }, n.prototype.add = function(t) {
132
+ }, r.prototype.add = function(t) {
133
133
  var e;
134
134
  if (t && t !== this)
135
135
  if (this.closed)
136
- Mt(t);
136
+ Lt(t);
137
137
  else {
138
- if (t instanceof n) {
138
+ if (t instanceof r) {
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
- }, n.prototype._hasParent = function(t) {
145
+ }, r.prototype._hasParent = function(t) {
146
146
  var e = this._parentage;
147
147
  return e === t || Array.isArray(e) && e.includes(t);
148
- }, n.prototype._addParent = function(t) {
148
+ }, r.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
- }, n.prototype._removeParent = function(t) {
151
+ }, r.prototype._removeParent = function(t) {
152
152
  var e = this._parentage;
153
153
  e === t ? this._parentage = null : Array.isArray(e) && bt(e, t);
154
- }, n.prototype.remove = function(t) {
154
+ }, r.prototype.remove = function(t) {
155
155
  var e = this._finalizers;
156
- e && bt(e, t), t instanceof n && t._removeParent(this);
157
- }, n.EMPTY = function() {
158
- var t = new n();
156
+ e && bt(e, t), t instanceof r && t._removeParent(this);
157
+ }, r.EMPTY = function() {
158
+ var t = new r();
159
159
  return t.closed = !0, t;
160
- }(), n;
161
- }(), ae = nt.EMPTY;
162
- function ce(n) {
163
- return n instanceof nt || n && "closed" in n && _(n.remove) && _(n.add) && _(n.unsubscribe);
160
+ }(), r;
161
+ }(), he = rt.EMPTY;
162
+ function le(r) {
163
+ return r instanceof rt || r && "closed" in r && _(r.remove) && _(r.add) && _(r.unsubscribe);
164
164
  }
165
- function Mt(n) {
166
- _(n) ? n() : n.unsubscribe();
165
+ function Lt(r) {
166
+ _(r) ? r() : r.unsubscribe();
167
167
  }
168
- var Ce = {
169
- Promise: void 0
170
- }, Se = {
171
- setTimeout: function(n, t) {
168
+ var de = {
169
+ onUnhandledError: null,
170
+ onStoppedNotification: null,
171
+ Promise: void 0,
172
+ useDeprecatedSynchronousErrorHandling: !1,
173
+ useDeprecatedNextContext: !1
174
+ }, Ee = {
175
+ setTimeout: function(r, t) {
172
176
  for (var e = [], i = 2; i < arguments.length; i++)
173
177
  e[i - 2] = arguments[i];
174
- return setTimeout.apply(void 0, yt([n, t], mt(e)));
178
+ return setTimeout.apply(void 0, yt([r, t], vt(e)));
175
179
  },
176
- clearTimeout: function(n) {
177
- return clearTimeout(n);
180
+ clearTimeout: function(r) {
181
+ return clearTimeout(r);
178
182
  },
179
183
  delegate: void 0
180
184
  };
181
- function Ee(n) {
182
- Se.setTimeout(function() {
183
- throw n;
185
+ function Pe(r) {
186
+ Ee.setTimeout(function() {
187
+ throw r;
184
188
  });
185
189
  }
186
- function Ut() {
190
+ function jt() {
187
191
  }
188
- function G(n) {
189
- n();
192
+ function G(r) {
193
+ r();
190
194
  }
191
- var he = function(n) {
192
- Y(t, n);
195
+ var ue = function(r) {
196
+ Y(t, r);
193
197
  function t(e) {
194
- var i = n.call(this) || this;
195
- return i.isStopped = !1, e ? (i.destination = e, ce(e) && e.add(i)) : i.destination = Ie, i;
198
+ var i = r.call(this) || this;
199
+ return i.isStopped = !1, e ? (i.destination = e, le(e) && e.add(i)) : i.destination = ke, i;
196
200
  }
197
201
  return t.create = function(e, i, s) {
198
- return new vt(e, i, s);
202
+ return new wt(e, i, s);
199
203
  }, t.prototype.next = function(e) {
200
204
  this.isStopped || this._next(e);
201
205
  }, t.prototype.error = function(e) {
@@ -203,7 +207,7 @@ var he = function(n) {
203
207
  }, t.prototype.complete = function() {
204
208
  this.isStopped || (this.isStopped = !0, this._complete());
205
209
  }, t.prototype.unsubscribe = function() {
206
- this.closed || (this.isStopped = !0, n.prototype.unsubscribe.call(this), this.destination = null);
210
+ this.closed || (this.isStopped = !0, r.prototype.unsubscribe.call(this), this.destination = null);
207
211
  }, t.prototype._next = function(e) {
208
212
  this.destination.next(e);
209
213
  }, t.prototype._error = function(e) {
@@ -219,11 +223,15 @@ var he = function(n) {
219
223
  this.unsubscribe();
220
224
  }
221
225
  }, t;
222
- }(nt), Pe = function() {
223
- function n(t) {
226
+ }(rt), Oe = Function.prototype.bind;
227
+ function at(r, t) {
228
+ return Oe.call(r, t);
229
+ }
230
+ var Ie = function() {
231
+ function r(t) {
224
232
  this.partialObserver = t;
225
233
  }
226
- return n.prototype.next = function(t) {
234
+ return r.prototype.next = function(t) {
227
235
  var e = this.partialObserver;
228
236
  if (e.next)
229
237
  try {
@@ -231,7 +239,7 @@ var he = function(n) {
231
239
  } catch (i) {
232
240
  Z(i);
233
241
  }
234
- }, n.prototype.error = function(t) {
242
+ }, r.prototype.error = function(t) {
235
243
  var e = this.partialObserver;
236
244
  if (e.error)
237
245
  try {
@@ -241,7 +249,7 @@ var he = function(n) {
241
249
  }
242
250
  else
243
251
  Z(t);
244
- }, n.prototype.complete = function() {
252
+ }, r.prototype.complete = function() {
245
253
  var t = this.partialObserver;
246
254
  if (t.complete)
247
255
  try {
@@ -249,137 +257,149 @@ var he = function(n) {
249
257
  } catch (e) {
250
258
  Z(e);
251
259
  }
252
- }, n;
253
- }(), vt = function(n) {
254
- Y(t, n);
260
+ }, r;
261
+ }(), wt = function(r) {
262
+ Y(t, r);
255
263
  function t(e, i, s) {
256
- var r = n.call(this) || this, o;
257
- return _(e) || !e ? o = {
258
- next: e ?? void 0,
259
- error: i ?? void 0,
260
- complete: s ?? void 0
261
- } : o = e, r.destination = new Pe(o), r;
264
+ var n = r.call(this) || this, o;
265
+ if (_(e) || !e)
266
+ o = {
267
+ next: e ?? void 0,
268
+ error: i ?? void 0,
269
+ complete: s ?? void 0
270
+ };
271
+ else {
272
+ var a;
273
+ n && de.useDeprecatedNextContext ? (a = Object.create(e), a.unsubscribe = function() {
274
+ return n.unsubscribe();
275
+ }, o = {
276
+ next: e.next && at(e.next, a),
277
+ error: e.error && at(e.error, a),
278
+ complete: e.complete && at(e.complete, a)
279
+ }) : o = e;
280
+ }
281
+ return n.destination = new Ie(o), n;
262
282
  }
263
283
  return t;
264
- }(he);
265
- function Z(n) {
266
- Ee(n);
284
+ }(ue);
285
+ function Z(r) {
286
+ Pe(r);
267
287
  }
268
- function Oe(n) {
269
- throw n;
288
+ function Te(r) {
289
+ throw r;
270
290
  }
271
- var Ie = {
291
+ var ke = {
272
292
  closed: !0,
273
- next: Ut,
274
- error: Oe,
275
- complete: Ut
276
- }, ke = function() {
293
+ next: jt,
294
+ error: Te,
295
+ complete: jt
296
+ }, Re = function() {
277
297
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
278
298
  }();
279
- function Te(n) {
280
- return n;
299
+ function Me(r) {
300
+ return r;
281
301
  }
282
- function Re(n) {
283
- return n.length === 0 ? Te : n.length === 1 ? n[0] : function(e) {
284
- return n.reduce(function(i, s) {
302
+ function Ne(r) {
303
+ return r.length === 0 ? Me : r.length === 1 ? r[0] : function(e) {
304
+ return r.reduce(function(i, s) {
285
305
  return s(i);
286
306
  }, e);
287
307
  };
288
308
  }
289
- var Lt = function() {
290
- function n(t) {
309
+ var Ht = function() {
310
+ function r(t) {
291
311
  t && (this._subscribe = t);
292
312
  }
293
- return n.prototype.lift = function(t) {
294
- var e = new n();
313
+ return r.prototype.lift = function(t) {
314
+ var e = new r();
295
315
  return e.source = this, e.operator = t, e;
296
- }, n.prototype.subscribe = function(t, e, i) {
297
- var s = this, r = Me(t) ? t : new vt(t, e, i);
316
+ }, r.prototype.subscribe = function(t, e, i) {
317
+ var s = this, n = Le(t) ? t : new wt(t, e, i);
298
318
  return G(function() {
299
319
  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) {
320
+ n.add(a ? a.call(n, c) : c ? s._subscribe(n) : s._trySubscribe(n));
321
+ }), n;
322
+ }, r.prototype._trySubscribe = function(t) {
303
323
  try {
304
324
  return this._subscribe(t);
305
325
  } catch (e) {
306
326
  t.error(e);
307
327
  }
308
- }, n.prototype.forEach = function(t, e) {
328
+ }, r.prototype.forEach = function(t, e) {
309
329
  var i = this;
310
- return e = jt(e), new e(function(s, r) {
311
- var o = new vt({
330
+ return e = Bt(e), new e(function(s, n) {
331
+ var o = new wt({
312
332
  next: function(a) {
313
333
  try {
314
334
  t(a);
315
335
  } catch (c) {
316
- r(c), o.unsubscribe();
336
+ n(c), o.unsubscribe();
317
337
  }
318
338
  },
319
- error: r,
339
+ error: n,
320
340
  complete: s
321
341
  });
322
342
  i.subscribe(o);
323
343
  });
324
- }, n.prototype._subscribe = function(t) {
344
+ }, r.prototype._subscribe = function(t) {
325
345
  var e;
326
346
  return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(t);
327
- }, n.prototype[ke] = function() {
347
+ }, r.prototype[Re] = function() {
328
348
  return this;
329
- }, n.prototype.pipe = function() {
349
+ }, r.prototype.pipe = function() {
330
350
  for (var t = [], e = 0; e < arguments.length; e++)
331
351
  t[e] = arguments[e];
332
- return Re(t)(this);
333
- }, n.prototype.toPromise = function(t) {
352
+ return Ne(t)(this);
353
+ }, r.prototype.toPromise = function(t) {
334
354
  var e = this;
335
- return t = jt(t), new t(function(i, s) {
336
- var r;
355
+ return t = Bt(t), new t(function(i, s) {
356
+ var n;
337
357
  e.subscribe(function(o) {
338
- return r = o;
358
+ return n = o;
339
359
  }, function(o) {
340
360
  return s(o);
341
361
  }, function() {
342
- return i(r);
362
+ return i(n);
343
363
  });
344
364
  });
345
- }, n.create = function(t) {
346
- return new n(t);
347
- }, n;
365
+ }, r.create = function(t) {
366
+ return new r(t);
367
+ }, r;
348
368
  }();
349
- function jt(n) {
369
+ function Bt(r) {
350
370
  var t;
351
- return (t = n ?? Ce.Promise) !== null && t !== void 0 ? t : Promise;
371
+ return (t = r ?? de.Promise) !== null && t !== void 0 ? t : Promise;
352
372
  }
353
- function Ne(n) {
354
- return n && _(n.next) && _(n.error) && _(n.complete);
373
+ function Ue(r) {
374
+ return r && _(r.next) && _(r.error) && _(r.complete);
355
375
  }
356
- function Me(n) {
357
- return n && n instanceof he || Ne(n) && ce(n);
376
+ function Le(r) {
377
+ return r && r instanceof ue || Ue(r) && le(r);
358
378
  }
359
- var Ue = oe(function(n) {
379
+ var je = ce(function(r) {
360
380
  return function() {
361
- n(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
381
+ r(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
362
382
  };
363
- }), _t = function(n) {
364
- Y(t, n);
383
+ }), At = function(r) {
384
+ Y(t, r);
365
385
  function t() {
366
- var e = n.call(this) || this;
386
+ var e = r.call(this) || this;
367
387
  return e.closed = !1, e.currentObservers = null, e.observers = [], e.isStopped = !1, e.hasError = !1, e.thrownError = null, e;
368
388
  }
369
389
  return t.prototype.lift = function(e) {
370
- var i = new Ht(this, this);
390
+ var i = new Dt(this, this);
371
391
  return i.operator = e, i;
372
392
  }, t.prototype._throwIfClosed = function() {
373
393
  if (this.closed)
374
- throw new Ue();
394
+ throw new je();
375
395
  }, t.prototype.next = function(e) {
376
396
  var i = this;
377
397
  G(function() {
378
- var s, r;
398
+ var s, n;
379
399
  if (i._throwIfClosed(), !i.isStopped) {
380
400
  i.currentObservers || (i.currentObservers = Array.from(i.observers));
381
401
  try {
382
- for (var o = gt(i.currentObservers), a = o.next(); !a.done; a = o.next()) {
402
+ for (var o = mt(i.currentObservers), a = o.next(); !a.done; a = o.next()) {
383
403
  var c = a.value;
384
404
  c.next(e);
385
405
  }
@@ -387,7 +407,7 @@ var Ue = oe(function(n) {
387
407
  s = { error: l };
388
408
  } finally {
389
409
  try {
390
- a && !a.done && (r = o.return) && r.call(o);
410
+ a && !a.done && (n = o.return) && n.call(o);
391
411
  } finally {
392
412
  if (s) throw s.error;
393
413
  }
@@ -422,27 +442,27 @@ var Ue = oe(function(n) {
422
442
  enumerable: !1,
423
443
  configurable: !0
424
444
  }), t.prototype._trySubscribe = function(e) {
425
- return this._throwIfClosed(), n.prototype._trySubscribe.call(this, e);
445
+ return this._throwIfClosed(), r.prototype._trySubscribe.call(this, e);
426
446
  }, t.prototype._subscribe = function(e) {
427
447
  return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
428
448
  }, t.prototype._innerSubscribe = function(e) {
429
- var i = this, s = this, r = s.hasError, o = s.isStopped, a = s.observers;
430
- return r || o ? ae : (this.currentObservers = null, a.push(e), new nt(function() {
449
+ var i = this, s = this, n = s.hasError, o = s.isStopped, a = s.observers;
450
+ return n || o ? he : (this.currentObservers = null, a.push(e), new rt(function() {
431
451
  i.currentObservers = null, bt(a, e);
432
452
  }));
433
453
  }, t.prototype._checkFinalizedStatuses = function(e) {
434
- var i = this, s = i.hasError, r = i.thrownError, o = i.isStopped;
435
- s ? e.error(r) : o && e.complete();
454
+ var i = this, s = i.hasError, n = i.thrownError, o = i.isStopped;
455
+ s ? e.error(n) : o && e.complete();
436
456
  }, t.prototype.asObservable = function() {
437
- var e = new Lt();
457
+ var e = new Ht();
438
458
  return e.source = this, e;
439
459
  }, t.create = function(e, i) {
440
- return new Ht(e, i);
460
+ return new Dt(e, i);
441
461
  }, t;
442
- }(Lt), Ht = function(n) {
443
- Y(t, n);
462
+ }(Ht), Dt = function(r) {
463
+ Y(t, r);
444
464
  function t(e, i) {
445
- var s = n.call(this) || this;
465
+ var s = r.call(this) || this;
446
466
  return s.destination = e, s.source = i, s;
447
467
  }
448
468
  return t.prototype.next = function(e) {
@@ -456,12 +476,12 @@ var Ue = oe(function(n) {
456
476
  (i = (e = this.destination) === null || e === void 0 ? void 0 : e.complete) === null || i === void 0 || i.call(e);
457
477
  }, t.prototype._subscribe = function(e) {
458
478
  var i, s;
459
- return (s = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(e)) !== null && s !== void 0 ? s : ae;
479
+ return (s = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(e)) !== null && s !== void 0 ? s : he;
460
480
  }, t;
461
- }(_t), le = function(n) {
462
- Y(t, n);
481
+ }(At), xt = function(r) {
482
+ Y(t, r);
463
483
  function t(e) {
464
- var i = n.call(this) || this;
484
+ var i = r.call(this) || this;
465
485
  return i._value = e, i;
466
486
  }
467
487
  return Object.defineProperty(t.prototype, "value", {
@@ -471,20 +491,20 @@ var Ue = oe(function(n) {
471
491
  enumerable: !1,
472
492
  configurable: !0
473
493
  }), t.prototype._subscribe = function(e) {
474
- var i = n.prototype._subscribe.call(this, e);
494
+ var i = r.prototype._subscribe.call(this, e);
475
495
  return !i.closed && e.next(this._value), i;
476
496
  }, t.prototype.getValue = function() {
477
- var e = this, i = e.hasError, s = e.thrownError, r = e._value;
497
+ var e = this, i = e.hasError, s = e.thrownError, n = e._value;
478
498
  if (i)
479
499
  throw s;
480
- return this._throwIfClosed(), r;
500
+ return this._throwIfClosed(), n;
481
501
  }, t.prototype.next = function(e) {
482
- n.prototype.next.call(this, this._value = e);
502
+ r.prototype.next.call(this, this._value = e);
483
503
  }, t;
484
- }(_t), de = /* @__PURE__ */ ((n) => (n.Loading = "loading", n.Ready = "ready", n))(de || {});
485
- class Bt {
504
+ }(At), pe = /* @__PURE__ */ ((r) => (r.Loading = "loading", r.Ready = "ready", r))(pe || {});
505
+ class zt {
486
506
  constructor(t, e) {
487
- this.state = new le(
507
+ this.state = new xt(
488
508
  "loading"
489
509
  /* Loading */
490
510
  ), this.resolvers = /* @__PURE__ */ new Map(), this.name = t, this.environment = e, this.state.next(
@@ -507,18 +527,18 @@ class Bt {
507
527
  * Copyright 2019 Google LLC
508
528
  * SPDX-License-Identifier: BSD-3-Clause
509
529
  */
510
- const J = globalThis, At = J.ShadowRoot && (J.ShadyCSS === void 0 || J.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, xt = Symbol(), Dt = /* @__PURE__ */ new WeakMap();
511
- let ue = class {
530
+ const J = globalThis, Ct = J.ShadowRoot && (J.ShadyCSS === void 0 || J.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, St = Symbol(), Ft = /* @__PURE__ */ new WeakMap();
531
+ let fe = class {
512
532
  constructor(t, e, i) {
513
- if (this._$cssResult$ = !0, i !== xt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
533
+ if (this._$cssResult$ = !0, i !== St) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
514
534
  this.cssText = t, this.t = e;
515
535
  }
516
536
  get styleSheet() {
517
537
  let t = this.o;
518
538
  const e = this.t;
519
- if (At && t === void 0) {
539
+ if (Ct && t === void 0) {
520
540
  const i = e !== void 0 && e.length === 1;
521
- i && (t = Dt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && Dt.set(e, t));
541
+ i && (t = Ft.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && Ft.set(e, t));
522
542
  }
523
543
  return t;
524
544
  }
@@ -526,74 +546,74 @@ let ue = class {
526
546
  return this.cssText;
527
547
  }
528
548
  };
529
- const Le = (n) => new ue(typeof n == "string" ? n : n + "", void 0, xt), U = (n, ...t) => {
530
- const e = n.length === 1 ? n[0] : t.reduce((i, s, r) => i + ((o) => {
549
+ const He = (r) => new fe(typeof r == "string" ? r : r + "", void 0, St), U = (r, ...t) => {
550
+ const e = r.length === 1 ? r[0] : t.reduce((i, s, n) => i + ((o) => {
531
551
  if (o._$cssResult$ === !0) return o.cssText;
532
552
  if (typeof o == "number") return o;
533
553
  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
- })(s) + n[r + 1], n[0]);
535
- return new ue(e, n, xt);
536
- }, je = (n, t) => {
537
- if (At) n.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
554
+ })(s) + r[n + 1], r[0]);
555
+ return new fe(e, r, St);
556
+ }, Be = (r, t) => {
557
+ if (Ct) r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
538
558
  else for (const e of t) {
539
559
  const i = document.createElement("style"), s = J.litNonce;
540
- s !== void 0 && i.setAttribute("nonce", s), i.textContent = e.cssText, n.appendChild(i);
560
+ s !== void 0 && i.setAttribute("nonce", s), i.textContent = e.cssText, r.appendChild(i);
541
561
  }
542
- }, zt = At ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((t) => {
562
+ }, Vt = Ct ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
543
563
  let e = "";
544
564
  for (const i of t.cssRules) e += i.cssText;
545
- return Le(e);
546
- })(n) : n;
565
+ return He(e);
566
+ })(r) : r;
547
567
  /**
548
568
  * @license
549
569
  * Copyright 2017 Google LLC
550
570
  * SPDX-License-Identifier: BSD-3-Clause
551
571
  */
552
- const { is: He, defineProperty: Be, getOwnPropertyDescriptor: De, getOwnPropertyNames: ze, getOwnPropertySymbols: Fe, getPrototypeOf: Ve } = Object, C = globalThis, Ft = C.trustedTypes, We = Ft ? Ft.emptyScript : "", at = C.reactiveElementPolyfillSupport, H = (n, t) => n, X = { toAttribute(n, t) {
572
+ const { is: De, defineProperty: ze, getOwnPropertyDescriptor: Fe, getOwnPropertyNames: Ve, getOwnPropertySymbols: We, getPrototypeOf: Ye } = Object, C = globalThis, Wt = C.trustedTypes, qe = Wt ? Wt.emptyScript : "", ct = C.reactiveElementPolyfillSupport, H = (r, t) => r, X = { toAttribute(r, t) {
553
573
  switch (t) {
554
574
  case Boolean:
555
- n = n ? We : null;
575
+ r = r ? qe : null;
556
576
  break;
557
577
  case Object:
558
578
  case Array:
559
- n = n == null ? n : JSON.stringify(n);
579
+ r = r == null ? r : JSON.stringify(r);
560
580
  }
561
- return n;
562
- }, fromAttribute(n, t) {
563
- let e = n;
581
+ return r;
582
+ }, fromAttribute(r, t) {
583
+ let e = r;
564
584
  switch (t) {
565
585
  case Boolean:
566
- e = n !== null;
586
+ e = r !== null;
567
587
  break;
568
588
  case Number:
569
- e = n === null ? null : Number(n);
589
+ e = r === null ? null : Number(r);
570
590
  break;
571
591
  case Object:
572
592
  case Array:
573
593
  try {
574
- e = JSON.parse(n);
594
+ e = JSON.parse(r);
575
595
  } catch {
576
596
  e = null;
577
597
  }
578
598
  }
579
599
  return e;
580
- } }, Ct = (n, t) => !He(n, t), Vt = { attribute: !0, type: String, converter: X, reflect: !1, hasChanged: Ct };
600
+ } }, Et = (r, t) => !De(r, t), Yt = { attribute: !0, type: String, converter: X, reflect: !1, hasChanged: Et };
581
601
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), C.litPropertyMetadata ?? (C.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
582
- let k = class extends HTMLElement {
602
+ let T = class extends HTMLElement {
583
603
  static addInitializer(t) {
584
604
  this._$Ei(), (this.l ?? (this.l = [])).push(t);
585
605
  }
586
606
  static get observedAttributes() {
587
607
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
588
608
  }
589
- static createProperty(t, e = Vt) {
609
+ static createProperty(t, e = Yt) {
590
610
  if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
591
611
  const i = Symbol(), s = this.getPropertyDescriptor(t, i, e);
592
- s !== void 0 && Be(this.prototype, t, s);
612
+ s !== void 0 && ze(this.prototype, t, s);
593
613
  }
594
614
  }
595
615
  static getPropertyDescriptor(t, e, i) {
596
- const { get: s, set: r } = De(this.prototype, t) ?? { get() {
616
+ const { get: s, set: n } = Fe(this.prototype, t) ?? { get() {
597
617
  return this[e];
598
618
  }, set(o) {
599
619
  this[e] = o;
@@ -602,21 +622,21 @@ let k = class extends HTMLElement {
602
622
  return s == null ? void 0 : s.call(this);
603
623
  }, set(o) {
604
624
  const a = s == null ? void 0 : s.call(this);
605
- r.call(this, o), this.requestUpdate(t, a, i);
625
+ n.call(this, o), this.requestUpdate(t, a, i);
606
626
  }, configurable: !0, enumerable: !0 };
607
627
  }
608
628
  static getPropertyOptions(t) {
609
- return this.elementProperties.get(t) ?? Vt;
629
+ return this.elementProperties.get(t) ?? Yt;
610
630
  }
611
631
  static _$Ei() {
612
632
  if (this.hasOwnProperty(H("elementProperties"))) return;
613
- const t = Ve(this);
633
+ const t = Ye(this);
614
634
  t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
615
635
  }
616
636
  static finalize() {
617
637
  if (this.hasOwnProperty(H("finalized"))) return;
618
638
  if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(H("properties"))) {
619
- const e = this.properties, i = [...ze(e), ...Fe(e)];
639
+ const e = this.properties, i = [...Ve(e), ...We(e)];
620
640
  for (const s of i) this.createProperty(s, e[s]);
621
641
  }
622
642
  const t = this[Symbol.metadata];
@@ -635,8 +655,8 @@ let k = class extends HTMLElement {
635
655
  const e = [];
636
656
  if (Array.isArray(t)) {
637
657
  const i = new Set(t.flat(1 / 0).reverse());
638
- for (const s of i) e.unshift(zt(s));
639
- } else t !== void 0 && e.push(zt(t));
658
+ for (const s of i) e.unshift(Vt(s));
659
+ } else t !== void 0 && e.push(Vt(t));
640
660
  return e;
641
661
  }
642
662
  static _$Eu(t, e) {
@@ -665,7 +685,7 @@ let k = class extends HTMLElement {
665
685
  }
666
686
  createRenderRoot() {
667
687
  const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
668
- return je(t, this.constructor.elementStyles), t;
688
+ return Be(t, this.constructor.elementStyles), t;
669
689
  }
670
690
  connectedCallback() {
671
691
  var t;
@@ -687,24 +707,24 @@ let k = class extends HTMLElement {
687
707
  this._$AK(t, i);
688
708
  }
689
709
  _$EC(t, e) {
690
- var r;
710
+ var n;
691
711
  const i = this.constructor.elementProperties.get(t), s = this.constructor._$Eu(t, i);
692
712
  if (s !== void 0 && i.reflect === !0) {
693
- const o = (((r = i.converter) == null ? void 0 : r.toAttribute) !== void 0 ? i.converter : X).toAttribute(e, i.type);
713
+ const o = (((n = i.converter) == null ? void 0 : n.toAttribute) !== void 0 ? i.converter : X).toAttribute(e, i.type);
694
714
  this._$Em = t, o == null ? this.removeAttribute(s) : this.setAttribute(s, o), this._$Em = null;
695
715
  }
696
716
  }
697
717
  _$AK(t, e) {
698
- var r;
718
+ var n;
699
719
  const i = this.constructor, s = i._$Eh.get(t);
700
720
  if (s !== void 0 && this._$Em !== s) {
701
- 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 : X;
721
+ const o = i.getPropertyOptions(s), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((n = o.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? o.converter : X;
702
722
  this._$Em = s, this[s] = a.fromAttribute(e, o.type), this._$Em = null;
703
723
  }
704
724
  }
705
725
  requestUpdate(t, e, i) {
706
726
  if (t !== void 0) {
707
- if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? Ct)(this[t], e)) return;
727
+ if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? Et)(this[t], e)) return;
708
728
  this.P(t, e, i);
709
729
  }
710
730
  this.isUpdatePending === !1 && (this._$ES = this._$ET());
@@ -730,18 +750,18 @@ let k = class extends HTMLElement {
730
750
  if (!this.isUpdatePending) return;
731
751
  if (!this.hasUpdated) {
732
752
  if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
733
- for (const [r, o] of this._$Ep) this[r] = o;
753
+ for (const [n, o] of this._$Ep) this[n] = o;
734
754
  this._$Ep = void 0;
735
755
  }
736
756
  const s = this.constructor.elementProperties;
737
- 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);
757
+ if (s.size > 0) for (const [n, o] of s) o.wrapped !== !0 || this._$AL.has(n) || this[n] === void 0 || this.P(n, this[n], o);
738
758
  }
739
759
  let t = !1;
740
760
  const e = this._$AL;
741
761
  try {
742
762
  t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$EO) == null || i.forEach((s) => {
743
- var r;
744
- return (r = s.hostUpdate) == null ? void 0 : r.call(s);
763
+ var n;
764
+ return (n = s.hostUpdate) == null ? void 0 : n.call(s);
745
765
  }), this.update(e)) : this._$EU();
746
766
  } catch (s) {
747
767
  throw t = !1, this._$EU(), s;
@@ -777,61 +797,61 @@ let k = class extends HTMLElement {
777
797
  firstUpdated(t) {
778
798
  }
779
799
  };
780
- k.elementStyles = [], k.shadowRootOptions = { mode: "open" }, k[H("elementProperties")] = /* @__PURE__ */ new Map(), k[H("finalized")] = /* @__PURE__ */ new Map(), at == null || at({ ReactiveElement: k }), (C.reactiveElementVersions ?? (C.reactiveElementVersions = [])).push("2.0.4");
800
+ T.elementStyles = [], T.shadowRootOptions = { mode: "open" }, T[H("elementProperties")] = /* @__PURE__ */ new Map(), T[H("finalized")] = /* @__PURE__ */ new Map(), ct == null || ct({ ReactiveElement: T }), (C.reactiveElementVersions ?? (C.reactiveElementVersions = [])).push("2.0.4");
781
801
  /**
782
802
  * @license
783
803
  * Copyright 2017 Google LLC
784
804
  * SPDX-License-Identifier: BSD-3-Clause
785
805
  */
786
- const B = globalThis, Q = B.trustedTypes, Wt = Q ? Q.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, pe = "$lit$", x = `lit$${Math.random().toFixed(9).slice(2)}$`, fe = "?" + x, Ye = `<${fe}>`, O = document, z = () => O.createComment(""), F = (n) => n === null || typeof n != "object" && typeof n != "function", St = Array.isArray, qe = (n) => St(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", ct = `[
787
- \f\r]`, j = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Yt = /-->/g, qt = />/g, S = RegExp(`>|${ct}(?:([^\\s"'>=/]+)(${ct}*=${ct}*(?:[^
788
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Kt = /'/g, Zt = /"/g, ge = /^(?:script|style|textarea|title)$/i, Ke = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), T = Ke(1), I = Symbol.for("lit-noChange"), p = Symbol.for("lit-nothing"), Gt = /* @__PURE__ */ new WeakMap(), P = O.createTreeWalker(O, 129);
789
- function me(n, t) {
790
- if (!St(n) || !n.hasOwnProperty("raw")) throw Error("invalid template strings array");
791
- return Wt !== void 0 ? Wt.createHTML(t) : t;
806
+ const B = globalThis, Q = B.trustedTypes, qt = Q ? Q.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, ge = "$lit$", x = `lit$${Math.random().toFixed(9).slice(2)}$`, me = "?" + x, Ke = `<${me}>`, O = document, z = () => O.createComment(""), F = (r) => r === null || typeof r != "object" && typeof r != "function", Pt = Array.isArray, Ze = (r) => Pt(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", ht = `[
807
+ \f\r]`, j = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Kt = /-->/g, Zt = />/g, S = RegExp(`>|${ht}(?:([^\\s"'>=/]+)(${ht}*=${ht}*(?:[^
808
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Gt = /'/g, Jt = /"/g, ve = /^(?:script|style|textarea|title)$/i, Ge = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), k = Ge(1), I = Symbol.for("lit-noChange"), p = Symbol.for("lit-nothing"), Xt = /* @__PURE__ */ new WeakMap(), P = O.createTreeWalker(O, 129);
809
+ function ye(r, t) {
810
+ if (!Pt(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
811
+ return qt !== void 0 ? qt.createHTML(t) : t;
792
812
  }
793
- const Ze = (n, t) => {
794
- const e = n.length - 1, i = [];
795
- let s, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = j;
813
+ const Je = (r, t) => {
814
+ const e = r.length - 1, i = [];
815
+ let s, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = j;
796
816
  for (let a = 0; a < e; a++) {
797
- const c = n[a];
817
+ const c = r[a];
798
818
  let l, h, d = -1, u = 0;
799
- for (; u < c.length && (o.lastIndex = u, h = o.exec(c), h !== null); ) u = o.lastIndex, o === j ? h[1] === "!--" ? o = Yt : h[1] !== void 0 ? o = qt : h[2] !== void 0 ? (ge.test(h[2]) && (s = RegExp("</" + h[2], "g")), o = S) : h[3] !== void 0 && (o = S) : o === S ? h[0] === ">" ? (o = s ?? j, d = -1) : h[1] === void 0 ? d = -2 : (d = o.lastIndex - h[2].length, l = h[1], o = h[3] === void 0 ? S : h[3] === '"' ? Zt : Kt) : o === Zt || o === Kt ? o = S : o === Yt || o === qt ? o = j : (o = S, s = void 0);
800
- const f = o === S && n[a + 1].startsWith("/>") ? " " : "";
801
- r += o === j ? c + Ye : d >= 0 ? (i.push(l), c.slice(0, d) + pe + c.slice(d) + x + f) : c + x + (d === -2 ? a : f);
819
+ for (; u < c.length && (o.lastIndex = u, h = o.exec(c), h !== null); ) u = o.lastIndex, o === j ? h[1] === "!--" ? o = Kt : h[1] !== void 0 ? o = Zt : h[2] !== void 0 ? (ve.test(h[2]) && (s = RegExp("</" + h[2], "g")), o = S) : h[3] !== void 0 && (o = S) : o === S ? h[0] === ">" ? (o = s ?? j, d = -1) : h[1] === void 0 ? d = -2 : (d = o.lastIndex - h[2].length, l = h[1], o = h[3] === void 0 ? S : h[3] === '"' ? Jt : Gt) : o === Jt || o === Gt ? o = S : o === Kt || o === Zt ? o = j : (o = S, s = void 0);
820
+ const f = o === S && r[a + 1].startsWith("/>") ? " " : "";
821
+ n += o === j ? c + Ke : d >= 0 ? (i.push(l), c.slice(0, d) + ge + c.slice(d) + x + f) : c + x + (d === -2 ? a : f);
802
822
  }
803
- return [me(n, r + (n[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
823
+ return [ye(r, n + (r[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
804
824
  };
805
- let wt = class ye {
825
+ let $t = class be {
806
826
  constructor({ strings: t, _$litType$: e }, i) {
807
827
  let s;
808
828
  this.parts = [];
809
- let r = 0, o = 0;
810
- const a = t.length - 1, c = this.parts, [l, h] = Ze(t, e);
811
- if (this.el = ye.createElement(l, i), P.currentNode = this.el.content, e === 2 || e === 3) {
829
+ let n = 0, o = 0;
830
+ const a = t.length - 1, c = this.parts, [l, h] = Je(t, e);
831
+ if (this.el = be.createElement(l, i), P.currentNode = this.el.content, e === 2 || e === 3) {
812
832
  const d = this.el.content.firstChild;
813
833
  d.replaceWith(...d.childNodes);
814
834
  }
815
835
  for (; (s = P.nextNode()) !== null && c.length < a; ) {
816
836
  if (s.nodeType === 1) {
817
- if (s.hasAttributes()) for (const d of s.getAttributeNames()) if (d.endsWith(pe)) {
837
+ if (s.hasAttributes()) for (const d of s.getAttributeNames()) if (d.endsWith(ge)) {
818
838
  const u = h[o++], f = s.getAttribute(d).split(x), g = /([.?@])?(.*)/.exec(u);
819
- c.push({ type: 1, index: r, name: g[2], strings: f, ctor: g[1] === "." ? Je : g[1] === "?" ? Xe : g[1] === "@" ? Qe : rt }), s.removeAttribute(d);
820
- } else d.startsWith(x) && (c.push({ type: 6, index: r }), s.removeAttribute(d));
821
- if (ge.test(s.tagName)) {
839
+ c.push({ type: 1, index: n, name: g[2], strings: f, ctor: g[1] === "." ? Qe : g[1] === "?" ? ti : g[1] === "@" ? ei : nt }), s.removeAttribute(d);
840
+ } else d.startsWith(x) && (c.push({ type: 6, index: n }), s.removeAttribute(d));
841
+ if (ve.test(s.tagName)) {
822
842
  const d = s.textContent.split(x), u = d.length - 1;
823
843
  if (u > 0) {
824
844
  s.textContent = Q ? Q.emptyScript : "";
825
- for (let f = 0; f < u; f++) s.append(d[f], z()), P.nextNode(), c.push({ type: 2, index: ++r });
845
+ for (let f = 0; f < u; f++) s.append(d[f], z()), P.nextNode(), c.push({ type: 2, index: ++n });
826
846
  s.append(d[u], z());
827
847
  }
828
848
  }
829
- } else if (s.nodeType === 8) if (s.data === fe) c.push({ type: 2, index: r });
849
+ } else if (s.nodeType === 8) if (s.data === me) c.push({ type: 2, index: n });
830
850
  else {
831
851
  let d = -1;
832
- for (; (d = s.data.indexOf(x, d + 1)) !== -1; ) c.push({ type: 7, index: r }), d += x.length - 1;
852
+ for (; (d = s.data.indexOf(x, d + 1)) !== -1; ) c.push({ type: 7, index: n }), d += x.length - 1;
833
853
  }
834
- r++;
854
+ n++;
835
855
  }
836
856
  }
837
857
  static createElement(t, e) {
@@ -839,14 +859,14 @@ let wt = class ye {
839
859
  return i.innerHTML = t, i;
840
860
  }
841
861
  };
842
- function R(n, t, e = n, i) {
862
+ function R(r, t, e = r, i) {
843
863
  var o, a;
844
864
  if (t === I) return t;
845
865
  let s = i !== void 0 ? (o = e._$Co) == null ? void 0 : o[i] : e._$Cl;
846
- const r = F(t) ? void 0 : t._$litDirective$;
847
- 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 = R(n, s._$AS(n, t.values), s, i)), t;
866
+ const n = F(t) ? void 0 : t._$litDirective$;
867
+ return (s == null ? void 0 : s.constructor) !== n && ((a = s == null ? void 0 : s._$AO) == null || a.call(s, !1), n === void 0 ? s = void 0 : (s = new n(r), s._$AT(r, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = s : e._$Cl = s), s !== void 0 && (t = R(r, s._$AS(r, t.values), s, i)), t;
848
868
  }
849
- class Ge {
869
+ class Xe {
850
870
  constructor(t, e) {
851
871
  this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
852
872
  }
@@ -859,13 +879,13 @@ class Ge {
859
879
  u(t) {
860
880
  const { el: { content: e }, parts: i } = this._$AD, s = ((t == null ? void 0 : t.creationScope) ?? O).importNode(e, !0);
861
881
  P.currentNode = s;
862
- let r = P.nextNode(), o = 0, a = 0, c = i[0];
882
+ let n = P.nextNode(), o = 0, a = 0, c = i[0];
863
883
  for (; c !== void 0; ) {
864
884
  if (o === c.index) {
865
885
  let l;
866
- c.type === 2 ? l = new q(r, r.nextSibling, this, t) : c.type === 1 ? l = new c.ctor(r, c.name, c.strings, this, t) : c.type === 6 && (l = new ti(r, this, t)), this._$AV.push(l), c = i[++a];
886
+ c.type === 2 ? l = new q(n, n.nextSibling, this, t) : c.type === 1 ? l = new c.ctor(n, c.name, c.strings, this, t) : c.type === 6 && (l = new ii(n, this, t)), this._$AV.push(l), c = i[++a];
867
887
  }
868
- o !== (c == null ? void 0 : c.index) && (r = P.nextNode(), o++);
888
+ o !== (c == null ? void 0 : c.index) && (n = P.nextNode(), o++);
869
889
  }
870
890
  return P.currentNode = O, s;
871
891
  }
@@ -894,7 +914,7 @@ class q {
894
914
  return this._$AB;
895
915
  }
896
916
  _$AI(t, e = this) {
897
- t = R(this, t, e), F(t) ? t === p || t == null || t === "" ? (this._$AH !== p && this._$AR(), this._$AH = p) : t !== this._$AH && t !== I && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : qe(t) ? this.k(t) : this._(t);
917
+ t = R(this, t, e), F(t) ? t === p || t == null || t === "" ? (this._$AH !== p && this._$AR(), this._$AH = p) : t !== this._$AH && t !== I && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Ze(t) ? this.k(t) : this._(t);
898
918
  }
899
919
  O(t) {
900
920
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -906,23 +926,23 @@ class q {
906
926
  this._$AH !== p && F(this._$AH) ? this._$AA.nextSibling.data = t : this.T(O.createTextNode(t)), this._$AH = t;
907
927
  }
908
928
  $(t) {
909
- var r;
910
- const { values: e, _$litType$: i } = t, s = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = wt.createElement(me(i.h, i.h[0]), this.options)), i);
911
- if (((r = this._$AH) == null ? void 0 : r._$AD) === s) this._$AH.p(e);
929
+ var n;
930
+ const { values: e, _$litType$: i } = t, s = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = $t.createElement(ye(i.h, i.h[0]), this.options)), i);
931
+ if (((n = this._$AH) == null ? void 0 : n._$AD) === s) this._$AH.p(e);
912
932
  else {
913
- const o = new Ge(s, this), a = o.u(this.options);
933
+ const o = new Xe(s, this), a = o.u(this.options);
914
934
  o.p(e), this.T(a), this._$AH = o;
915
935
  }
916
936
  }
917
937
  _$AC(t) {
918
- let e = Gt.get(t.strings);
919
- return e === void 0 && Gt.set(t.strings, e = new wt(t)), e;
938
+ let e = Xt.get(t.strings);
939
+ return e === void 0 && Xt.set(t.strings, e = new $t(t)), e;
920
940
  }
921
941
  k(t) {
922
- St(this._$AH) || (this._$AH = [], this._$AR());
942
+ Pt(this._$AH) || (this._$AH = [], this._$AR());
923
943
  const e = this._$AH;
924
944
  let i, s = 0;
925
- for (const r of t) s === e.length ? e.push(i = new q(this.O(z()), this.O(z()), this, this.options)) : i = e[s], i._$AI(r), s++;
945
+ for (const n of t) s === e.length ? e.push(i = new q(this.O(z()), this.O(z()), this, this.options)) : i = e[s], i._$AI(n), s++;
926
946
  s < e.length && (this._$AR(i && i._$AB.nextSibling, s), e.length = s);
927
947
  }
928
948
  _$AR(t = this._$AA.nextSibling, e) {
@@ -937,24 +957,24 @@ class q {
937
957
  this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
938
958
  }
939
959
  }
940
- class rt {
960
+ class nt {
941
961
  get tagName() {
942
962
  return this.element.tagName;
943
963
  }
944
964
  get _$AU() {
945
965
  return this._$AM._$AU;
946
966
  }
947
- constructor(t, e, i, s, r) {
948
- this.type = 1, this._$AH = p, 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 = p;
967
+ constructor(t, e, i, s, n) {
968
+ this.type = 1, this._$AH = p, this._$AN = void 0, this.element = t, this.name = e, this._$AM = s, this.options = n, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = p;
949
969
  }
950
970
  _$AI(t, e = this, i, s) {
951
- const r = this.strings;
971
+ const n = this.strings;
952
972
  let o = !1;
953
- if (r === void 0) t = R(this, t, e, 0), o = !F(t) || t !== this._$AH && t !== I, o && (this._$AH = t);
973
+ if (n === void 0) t = R(this, t, e, 0), o = !F(t) || t !== this._$AH && t !== I, o && (this._$AH = t);
954
974
  else {
955
975
  const a = t;
956
976
  let c, l;
957
- for (t = r[0], c = 0; c < r.length - 1; c++) l = R(this, a[i + c], e, c), l === I && (l = this._$AH[c]), o || (o = !F(l) || l !== this._$AH[c]), l === p ? t = p : t !== p && (t += (l ?? "") + r[c + 1]), this._$AH[c] = l;
977
+ for (t = n[0], c = 0; c < n.length - 1; c++) l = R(this, a[i + c], e, c), l === I && (l = this._$AH[c]), o || (o = !F(l) || l !== this._$AH[c]), l === p ? t = p : t !== p && (t += (l ?? "") + n[c + 1]), this._$AH[c] = l;
958
978
  }
959
979
  o && !s && this.j(t);
960
980
  }
@@ -962,7 +982,7 @@ class rt {
962
982
  t === p ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
963
983
  }
964
984
  }
965
- class Je extends rt {
985
+ class Qe extends nt {
966
986
  constructor() {
967
987
  super(...arguments), this.type = 3;
968
988
  }
@@ -970,7 +990,7 @@ class Je extends rt {
970
990
  this.element[this.name] = t === p ? void 0 : t;
971
991
  }
972
992
  }
973
- class Xe extends rt {
993
+ class ti extends nt {
974
994
  constructor() {
975
995
  super(...arguments), this.type = 4;
976
996
  }
@@ -978,21 +998,21 @@ class Xe extends rt {
978
998
  this.element.toggleAttribute(this.name, !!t && t !== p);
979
999
  }
980
1000
  }
981
- class Qe extends rt {
982
- constructor(t, e, i, s, r) {
983
- super(t, e, i, s, r), this.type = 5;
1001
+ class ei extends nt {
1002
+ constructor(t, e, i, s, n) {
1003
+ super(t, e, i, s, n), this.type = 5;
984
1004
  }
985
1005
  _$AI(t, e = this) {
986
1006
  if ((t = R(this, t, e, 0) ?? p) === I) return;
987
- const i = this._$AH, s = t === p && i !== p || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, r = t !== p && (i === p || s);
988
- s && this.element.removeEventListener(this.name, this, i), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
1007
+ const i = this._$AH, s = t === p && i !== p || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, n = t !== p && (i === p || s);
1008
+ s && this.element.removeEventListener(this.name, this, i), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
989
1009
  }
990
1010
  handleEvent(t) {
991
1011
  var e;
992
1012
  typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
993
1013
  }
994
1014
  }
995
- class ti {
1015
+ class ii {
996
1016
  constructor(t, e, i) {
997
1017
  this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
998
1018
  }
@@ -1003,23 +1023,23 @@ class ti {
1003
1023
  R(this, t);
1004
1024
  }
1005
1025
  }
1006
- const ht = B.litHtmlPolyfillSupport;
1007
- ht == null || ht(wt, q), (B.litHtmlVersions ?? (B.litHtmlVersions = [])).push("3.2.1");
1008
- const ei = (n, t, e) => {
1026
+ const lt = B.litHtmlPolyfillSupport;
1027
+ lt == null || lt($t, q), (B.litHtmlVersions ?? (B.litHtmlVersions = [])).push("3.2.1");
1028
+ const si = (r, t, e) => {
1009
1029
  const i = (e == null ? void 0 : e.renderBefore) ?? t;
1010
1030
  let s = i._$litPart$;
1011
1031
  if (s === void 0) {
1012
- const r = (e == null ? void 0 : e.renderBefore) ?? null;
1013
- i._$litPart$ = s = new q(t.insertBefore(z(), r), r, void 0, e ?? {});
1032
+ const n = (e == null ? void 0 : e.renderBefore) ?? null;
1033
+ i._$litPart$ = s = new q(t.insertBefore(z(), n), n, void 0, e ?? {});
1014
1034
  }
1015
- return s._$AI(n), s;
1035
+ return s._$AI(r), s;
1016
1036
  };
1017
1037
  /**
1018
1038
  * @license
1019
1039
  * Copyright 2017 Google LLC
1020
1040
  * SPDX-License-Identifier: BSD-3-Clause
1021
1041
  */
1022
- let A = class extends k {
1042
+ let A = class extends T {
1023
1043
  constructor() {
1024
1044
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
1025
1045
  }
@@ -1030,7 +1050,7 @@ let A = class extends k {
1030
1050
  }
1031
1051
  update(t) {
1032
1052
  const e = this.render();
1033
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = ei(e, this.renderRoot, this.renderOptions);
1053
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = si(e, this.renderRoot, this.renderOptions);
1034
1054
  }
1035
1055
  connectedCallback() {
1036
1056
  var t;
@@ -1044,57 +1064,57 @@ let A = class extends k {
1044
1064
  return I;
1045
1065
  }
1046
1066
  };
1047
- var re;
1048
- A._$litElement$ = !0, A.finalized = !0, (re = globalThis.litElementHydrateSupport) == null || re.call(globalThis, { LitElement: A });
1049
- const lt = globalThis.litElementPolyfillSupport;
1050
- lt == null || lt({ LitElement: A });
1067
+ var ae;
1068
+ A._$litElement$ = !0, A.finalized = !0, (ae = globalThis.litElementHydrateSupport) == null || ae.call(globalThis, { LitElement: A });
1069
+ const dt = globalThis.litElementPolyfillSupport;
1070
+ dt == null || dt({ LitElement: A });
1051
1071
  (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
1052
1072
  /**
1053
1073
  * @license
1054
1074
  * Copyright 2017 Google LLC
1055
1075
  * SPDX-License-Identifier: BSD-3-Clause
1056
1076
  */
1057
- const ii = { attribute: !0, type: String, converter: X, reflect: !1, hasChanged: Ct }, si = (n = ii, t, e) => {
1077
+ const ri = { attribute: !0, type: String, converter: X, reflect: !1, hasChanged: Et }, ni = (r = ri, t, e) => {
1058
1078
  const { kind: i, metadata: s } = e;
1059
- let r = globalThis.litPropertyMetadata.get(s);
1060
- if (r === void 0 && globalThis.litPropertyMetadata.set(s, r = /* @__PURE__ */ new Map()), r.set(e.name, n), i === "accessor") {
1079
+ let n = globalThis.litPropertyMetadata.get(s);
1080
+ if (n === void 0 && globalThis.litPropertyMetadata.set(s, n = /* @__PURE__ */ new Map()), n.set(e.name, r), i === "accessor") {
1061
1081
  const { name: o } = e;
1062
1082
  return { set(a) {
1063
1083
  const c = t.get.call(this);
1064
- t.set.call(this, a), this.requestUpdate(o, c, n);
1084
+ t.set.call(this, a), this.requestUpdate(o, c, r);
1065
1085
  }, init(a) {
1066
- return a !== void 0 && this.P(o, void 0, n), a;
1086
+ return a !== void 0 && this.P(o, void 0, r), a;
1067
1087
  } };
1068
1088
  }
1069
1089
  if (i === "setter") {
1070
1090
  const { name: o } = e;
1071
1091
  return function(a) {
1072
1092
  const c = this[o];
1073
- t.call(this, a), this.requestUpdate(o, c, n);
1093
+ t.call(this, a), this.requestUpdate(o, c, r);
1074
1094
  };
1075
1095
  }
1076
1096
  throw Error("Unsupported decorator location: " + i);
1077
1097
  };
1078
- function m(n) {
1079
- return (t, e) => typeof e == "object" ? si(n, t, e) : ((i, s, r) => {
1080
- const o = s.hasOwnProperty(r);
1081
- return s.constructor.createProperty(r, o ? { ...i, wrapped: !0 } : i), o ? Object.getOwnPropertyDescriptor(s, r) : void 0;
1082
- })(n, t, e);
1098
+ function m(r) {
1099
+ return (t, e) => typeof e == "object" ? ni(r, t, e) : ((i, s, n) => {
1100
+ const o = s.hasOwnProperty(n);
1101
+ return s.constructor.createProperty(n, o ? { ...i, wrapped: !0 } : i), o ? Object.getOwnPropertyDescriptor(s, n) : void 0;
1102
+ })(r, t, e);
1083
1103
  }
1084
1104
  /**
1085
1105
  * @license
1086
1106
  * Copyright 2017 Google LLC
1087
1107
  * SPDX-License-Identifier: BSD-3-Clause
1088
1108
  */
1089
- function L(n) {
1090
- return m({ ...n, state: !0, attribute: !1 });
1109
+ function L(r) {
1110
+ return m({ ...r, state: !0, attribute: !1 });
1091
1111
  }
1092
- var ni = Object.defineProperty, ri = (n, t, e, i) => {
1093
- for (var s = void 0, r = n.length - 1, o; r >= 0; r--)
1094
- (o = n[r]) && (s = o(t, e, s) || s);
1095
- return s && ni(t, e, s), s;
1112
+ var oi = Object.defineProperty, ai = (r, t, e, i) => {
1113
+ for (var s = void 0, n = r.length - 1, o; n >= 0; n--)
1114
+ (o = r[n]) && (s = o(t, e, s) || s);
1115
+ return s && oi(t, e, s), s;
1096
1116
  };
1097
- const It = class It extends A {
1117
+ const kt = class kt extends A {
1098
1118
  constructor() {
1099
1119
  super(...arguments), this.anchor = "BottomRight";
1100
1120
  }
@@ -1106,7 +1126,7 @@ const It = class It extends A {
1106
1126
  return this.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right"), p;
1107
1127
  }
1108
1128
  };
1109
- It.styles = [
1129
+ kt.styles = [
1110
1130
  U`
1111
1131
  :host {
1112
1132
  position: fixed;
@@ -1125,8 +1145,8 @@ It.styles = [
1125
1145
  }
1126
1146
  `
1127
1147
  ];
1128
- let V = It;
1129
- ri([
1148
+ let V = kt;
1149
+ ai([
1130
1150
  m({ attribute: !0 })
1131
1151
  ], V.prototype, "anchor");
1132
1152
  /**
@@ -1134,8 +1154,8 @@ ri([
1134
1154
  * Copyright 2017 Google LLC
1135
1155
  * SPDX-License-Identifier: BSD-3-Clause
1136
1156
  */
1137
- const Et = { ATTRIBUTE: 1, CHILD: 2 }, Pt = (n) => (...t) => ({ _$litDirective$: n, values: t });
1138
- let be = class {
1157
+ const Ot = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, It = (r) => (...t) => ({ _$litDirective$: r, values: t });
1158
+ let we = class {
1139
1159
  constructor(t) {
1140
1160
  }
1141
1161
  get _$AU() {
@@ -1156,57 +1176,57 @@ let be = class {
1156
1176
  * Copyright 2020 Google LLC
1157
1177
  * SPDX-License-Identifier: BSD-3-Clause
1158
1178
  */
1159
- const oi = (n) => n.strings === void 0;
1179
+ const ci = (r) => r.strings === void 0;
1160
1180
  /**
1161
1181
  * @license
1162
1182
  * Copyright 2017 Google LLC
1163
1183
  * SPDX-License-Identifier: BSD-3-Clause
1164
1184
  */
1165
- const D = (n, t) => {
1185
+ const D = (r, t) => {
1166
1186
  var i;
1167
- const e = n._$AN;
1187
+ const e = r._$AN;
1168
1188
  if (e === void 0) return !1;
1169
1189
  for (const s of e) (i = s._$AO) == null || i.call(s, t, !1), D(s, t);
1170
1190
  return !0;
1171
- }, tt = (n) => {
1191
+ }, tt = (r) => {
1172
1192
  let t, e;
1173
1193
  do {
1174
- if ((t = n._$AM) === void 0) break;
1175
- e = t._$AN, e.delete(n), n = t;
1194
+ if ((t = r._$AM) === void 0) break;
1195
+ e = t._$AN, e.delete(r), r = t;
1176
1196
  } while ((e == null ? void 0 : e.size) === 0);
1177
- }, ve = (n) => {
1178
- for (let t; t = n._$AM; n = t) {
1197
+ }, $e = (r) => {
1198
+ for (let t; t = r._$AM; r = t) {
1179
1199
  let e = t._$AN;
1180
1200
  if (e === void 0) t._$AN = e = /* @__PURE__ */ new Set();
1181
- else if (e.has(n)) break;
1182
- e.add(n), hi(t);
1201
+ else if (e.has(r)) break;
1202
+ e.add(r), di(t);
1183
1203
  }
1184
1204
  };
1185
- function ai(n) {
1186
- this._$AN !== void 0 ? (tt(this), this._$AM = n, ve(this)) : this._$AM = n;
1205
+ function hi(r) {
1206
+ this._$AN !== void 0 ? (tt(this), this._$AM = r, $e(this)) : this._$AM = r;
1187
1207
  }
1188
- function ci(n, t = !1, e = 0) {
1208
+ function li(r, t = !1, e = 0) {
1189
1209
  const i = this._$AH, s = this._$AN;
1190
- if (s !== void 0 && s.size !== 0) if (t) if (Array.isArray(i)) for (let r = e; r < i.length; r++) D(i[r], !1), tt(i[r]);
1210
+ if (s !== void 0 && s.size !== 0) if (t) if (Array.isArray(i)) for (let n = e; n < i.length; n++) D(i[n], !1), tt(i[n]);
1191
1211
  else i != null && (D(i, !1), tt(i));
1192
- else D(this, n);
1212
+ else D(this, r);
1193
1213
  }
1194
- const hi = (n) => {
1195
- n.type == Et.CHILD && (n._$AP ?? (n._$AP = ci), n._$AQ ?? (n._$AQ = ai));
1214
+ const di = (r) => {
1215
+ r.type == Ot.CHILD && (r._$AP ?? (r._$AP = li), r._$AQ ?? (r._$AQ = hi));
1196
1216
  };
1197
- class we extends be {
1217
+ class _e extends we {
1198
1218
  constructor() {
1199
1219
  super(...arguments), this._$AN = void 0;
1200
1220
  }
1201
1221
  _$AT(t, e, i) {
1202
- super._$AT(t, e, i), ve(this), this.isConnected = t._$AU;
1222
+ super._$AT(t, e, i), $e(this), this.isConnected = t._$AU;
1203
1223
  }
1204
1224
  _$AO(t, e = !0) {
1205
1225
  var i, s;
1206
1226
  t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (s = this.disconnected) == null || s.call(this)), e && (D(this, t), tt(this));
1207
1227
  }
1208
1228
  setValue(t) {
1209
- if (oi(this._$Ct)) this._$Ct._$AI(t, this);
1229
+ if (ci(this._$Ct)) this._$Ct._$AI(t, this);
1210
1230
  else {
1211
1231
  const e = [...this._$Ct._$AH];
1212
1232
  e[this._$Ci] = t, this._$Ct._$AI(e, this, 0);
@@ -1217,34 +1237,34 @@ class we extends be {
1217
1237
  reconnected() {
1218
1238
  }
1219
1239
  }
1220
- const li = /* @__PURE__ */ new WeakMap();
1221
- let Jt = 0;
1222
- const dt = /* @__PURE__ */ new Map(), Xt = /* @__PURE__ */ new WeakSet(), Qt = () => new Promise((n) => requestAnimationFrame(n)), di = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], te = (n, t) => {
1223
- const e = n - t;
1240
+ const ui = /* @__PURE__ */ new WeakMap();
1241
+ let Qt = 0;
1242
+ const ut = /* @__PURE__ */ new Map(), te = /* @__PURE__ */ new WeakSet(), ee = () => new Promise((r) => requestAnimationFrame(r)), pi = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], ie = (r, t) => {
1243
+ const e = r - t;
1224
1244
  return e === 0 ? void 0 : e;
1225
- }, ee = (n, t) => {
1226
- const e = n / t;
1245
+ }, se = (r, t) => {
1246
+ const e = r / t;
1227
1247
  return e === 1 ? void 0 : e;
1228
- }, ut = { left: (n, t) => {
1229
- const e = te(n, t);
1248
+ }, pt = { left: (r, t) => {
1249
+ const e = ie(r, t);
1230
1250
  return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateX(${e}px)` };
1231
- }, top: (n, t) => {
1232
- const e = te(n, t);
1251
+ }, top: (r, t) => {
1252
+ const e = ie(r, t);
1233
1253
  return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateY(${e}px)` };
1234
- }, width: (n, t) => {
1254
+ }, width: (r, t) => {
1235
1255
  let e;
1236
1256
  t === 0 && (t = 1, e = { width: "1px" });
1237
- const i = ee(n, t);
1257
+ const i = se(r, t);
1238
1258
  return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleX(${i})` };
1239
- }, height: (n, t) => {
1259
+ }, height: (r, t) => {
1240
1260
  let e;
1241
1261
  t === 0 && (t = 1, e = { height: "1px" });
1242
- const i = ee(n, t);
1262
+ const i = se(r, t);
1243
1263
  return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleY(${i})` };
1244
- } }, ui = { duration: 333, easing: "ease-in-out" }, pi = ["left", "top", "width", "height", "opacity", "color", "background"], ie = /* @__PURE__ */ new WeakMap();
1245
- class fi extends we {
1264
+ } }, fi = { duration: 333, easing: "ease-in-out" }, gi = ["left", "top", "width", "height", "opacity", "color", "background"], re = /* @__PURE__ */ new WeakMap();
1265
+ class mi extends _e {
1246
1266
  constructor(t) {
1247
- if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type === Et.CHILD) throw Error("The `animate` directive must be used in attribute position.");
1267
+ if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type === Ot.CHILD) throw Error("The `animate` directive must be used in attribute position.");
1248
1268
  this.createFinished();
1249
1269
  }
1250
1270
  createFinished() {
@@ -1261,7 +1281,7 @@ class fi extends we {
1261
1281
  return p;
1262
1282
  }
1263
1283
  getController() {
1264
- return li.get(this.u);
1284
+ return ui.get(this.u);
1265
1285
  }
1266
1286
  isDisabled() {
1267
1287
  var t;
@@ -1270,25 +1290,25 @@ class fi extends we {
1270
1290
  update(t, [e]) {
1271
1291
  var s;
1272
1292
  const i = this.u === void 0;
1273
- 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, ie.set(this.element, this)), this.optionsOrCallback = e, (i || typeof e != "function") && this.p(e), this.render(e);
1293
+ return i && (this.u = (s = t.options) == null ? void 0 : s.host, this.u.addController(this), this.u.updateComplete.then((n) => this.t = !0), this.element = t.element, re.set(this.element, this)), this.optionsOrCallback = e, (i || typeof e != "function") && this.p(e), this.render(e);
1274
1294
  }
1275
1295
  p(t) {
1276
1296
  t = t ?? {};
1277
1297
  const e = this.getController();
1278
- e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties = pi), this.options = t;
1298
+ e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties = gi), this.options = t;
1279
1299
  }
1280
1300
  m() {
1281
1301
  const t = {}, e = this.element.getBoundingClientRect(), i = getComputedStyle(this.element);
1282
1302
  return this.options.properties.forEach((s) => {
1283
- const r = e[s] ?? (ut[s] ? void 0 : i[s]), o = Number(r);
1284
- t[s] = isNaN(o) ? r + "" : o;
1303
+ const n = e[s] ?? (pt[s] ? void 0 : i[s]), o = Number(n);
1304
+ t[s] = isNaN(o) ? n + "" : o;
1285
1305
  }), t;
1286
1306
  }
1287
1307
  v() {
1288
1308
  let t, e = !0;
1289
1309
  return this.options.guard && (t = this.options.guard(), e = ((i, s) => {
1290
1310
  if (Array.isArray(i)) {
1291
- if (Array.isArray(s) && s.length === i.length && i.every((r, o) => r === s[o])) return !1;
1311
+ if (Array.isArray(s) && s.length === i.length && i.every((n, o) => n === s[o])) return !1;
1292
1312
  } else if (s === i) return !1;
1293
1313
  return !0;
1294
1314
  })(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;
@@ -1299,17 +1319,17 @@ class fi extends we {
1299
1319
  async hostUpdated() {
1300
1320
  if (!this.h || !this.element.isConnected || this.options.skipInitial && !this.isHostRendered) return;
1301
1321
  let t;
1302
- this.prepare(), await Qt;
1322
+ this.prepare(), await ee;
1303
1323
  const e = this.O(), i = this.j(this.options.keyframeOptions, e), s = this.m();
1304
1324
  if (this.A !== void 0) {
1305
- const { from: r, to: o } = this.N(this.A, s, e);
1306
- this.log("measured", [this.A, s, r, o]), t = this.calculateKeyframes(r, o);
1325
+ const { from: n, to: o } = this.N(this.A, s, e);
1326
+ this.log("measured", [this.A, s, n, o]), t = this.calculateKeyframes(n, o);
1307
1327
  } else {
1308
- const r = dt.get(this.options.inId);
1309
- if (r) {
1310
- dt.delete(this.options.inId);
1311
- const { from: o, to: a } = this.N(r, s, e);
1312
- t = this.calculateKeyframes(o, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, Jt++, t.forEach((c) => c.zIndex = Jt);
1328
+ const n = ut.get(this.options.inId);
1329
+ if (n) {
1330
+ ut.delete(this.options.inId);
1331
+ const { from: o, to: a } = this.N(n, s, e);
1332
+ t = this.calculateKeyframes(o, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, Qt++, t.forEach((c) => c.zIndex = Qt);
1313
1333
  } else this.options.in && (t = [...this.options.in, {}]);
1314
1334
  }
1315
1335
  this.animate(t, i);
@@ -1325,14 +1345,14 @@ class fi extends we {
1325
1345
  }
1326
1346
  async disconnected() {
1327
1347
  var e;
1328
- if (!this.h || (this.options.id !== void 0 && dt.set(this.options.id, this.A), this.options.out === void 0)) return;
1329
- if (this.prepare(), await Qt(), (e = this.i) == null ? void 0 : e.isConnected) {
1348
+ if (!this.h || (this.options.id !== void 0 && ut.set(this.options.id, this.A), this.options.out === void 0)) return;
1349
+ if (this.prepare(), await ee(), (e = this.i) == null ? void 0 : e.isConnected) {
1330
1350
  const i = this.o && this.o.parentNode === this.i ? this.o : null;
1331
1351
  if (this.i.insertBefore(this.element, i), this.options.stabilizeOut) {
1332
1352
  const s = this.m();
1333
1353
  this.log("stabilizing out");
1334
- const r = this.A.left - s.left, o = this.A.top - s.top;
1335
- 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");
1354
+ const n = this.A.left - s.left, o = this.A.top - s.top;
1355
+ getComputedStyle(this.element).position !== "static" || n === 0 && o === 0 || (this.element.style.position = "relative"), n !== 0 && (this.element.style.left = n + "px"), o !== 0 && (this.element.style.top = o + "px");
1336
1356
  }
1337
1357
  }
1338
1358
  const t = this.j(this.options.keyframeOptions);
@@ -1352,43 +1372,43 @@ class fi extends we {
1352
1372
  O() {
1353
1373
  const t = [];
1354
1374
  for (let e = this.element.parentNode; e; e = e == null ? void 0 : e.parentNode) {
1355
- const i = ie.get(e);
1375
+ const i = re.get(e);
1356
1376
  i && !i.isDisabled() && i && t.push(i);
1357
1377
  }
1358
1378
  return t;
1359
1379
  }
1360
1380
  get isHostRendered() {
1361
- const t = Xt.has(this.u);
1381
+ const t = te.has(this.u);
1362
1382
  return t || this.u.updateComplete.then(() => {
1363
- Xt.add(this.u);
1383
+ te.add(this.u);
1364
1384
  }), t;
1365
1385
  }
1366
1386
  j(t, e = this.O()) {
1367
- const i = { ...ui };
1387
+ const i = { ...fi };
1368
1388
  return e.forEach((s) => Object.assign(i, s.options.keyframeOptions)), Object.assign(i, t), i;
1369
1389
  }
1370
1390
  N(t, e, i) {
1371
1391
  t = { ...t }, e = { ...e };
1372
1392
  const s = i.map((a) => a.animatingProperties).filter((a) => a !== void 0);
1373
- let r = 1, o = 1;
1393
+ let n = 1, o = 1;
1374
1394
  return s.length > 0 && (s.forEach((a) => {
1375
- a.width && (r /= a.width), a.height && (o /= a.height);
1376
- }), 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 };
1395
+ a.width && (n /= a.width), a.height && (o /= a.height);
1396
+ }), t.left !== void 0 && e.left !== void 0 && (t.left = n * t.left, e.left = n * 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
1397
  }
1378
1398
  calculateKeyframes(t, e, i = !1) {
1379
- const s = {}, r = {};
1399
+ const s = {}, n = {};
1380
1400
  let o = !1;
1381
1401
  const a = {};
1382
1402
  for (const c in e) {
1383
1403
  const l = t[c], h = e[c];
1384
- if (c in ut) {
1385
- const d = ut[c];
1404
+ if (c in pt) {
1405
+ const d = pt[c];
1386
1406
  if (l === void 0 || h === void 0) continue;
1387
1407
  const u = d(l, h);
1388
1408
  u.transform !== void 0 && (a[c] = u.value, o = !0, s.transform = `${s.transform ?? ""} ${u.transform}`, u.overrideFrom !== void 0 && Object.assign(s, u.overrideFrom));
1389
- } else l !== h && l !== void 0 && h !== void 0 && (o = !0, s[c] = l, r[c] = h);
1409
+ } else l !== h && l !== void 0 && h !== void 0 && (o = !0, s[c] = l, n[c] = h);
1390
1410
  }
1391
- return s.transformOrigin = r.transformOrigin = i ? "center center" : "top left", this.animatingProperties = a, o ? [s, r] : void 0;
1411
+ return s.transformOrigin = n.transformOrigin = i ? "center center" : "top left", this.animatingProperties = a, o ? [s, n] : void 0;
1392
1412
  }
1393
1413
  async animate(t, e = this.options.keyframeOptions) {
1394
1414
  this.start(), this.frames = t;
@@ -1413,96 +1433,96 @@ class fi extends we {
1413
1433
  this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, e);
1414
1434
  }
1415
1435
  }
1416
- const gi = Pt(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>' };
1436
+ const vi = It(mi), yi = { 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
1437
  /**
1418
1438
  * @license
1419
1439
  * Copyright 2018 Google LLC
1420
1440
  * SPDX-License-Identifier: BSD-3-Clause
1421
1441
  */
1422
- const se = Pt(class extends be {
1423
- constructor(n) {
1442
+ const ne = It(class extends we {
1443
+ constructor(r) {
1424
1444
  var t;
1425
- if (super(n), n.type !== Et.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.");
1445
+ if (super(r), r.type !== Ot.ATTRIBUTE || r.name !== "class" || ((t = r.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
1446
  }
1427
- render(n) {
1428
- return " " + Object.keys(n).filter((t) => n[t]).join(" ") + " ";
1447
+ render(r) {
1448
+ return " " + Object.keys(r).filter((t) => r[t]).join(" ") + " ";
1429
1449
  }
1430
- update(n, [t]) {
1450
+ update(r, [t]) {
1431
1451
  var i, s;
1432
1452
  if (this.st === void 0) {
1433
- this.st = /* @__PURE__ */ new Set(), n.strings !== void 0 && (this.nt = new Set(n.strings.join(" ").split(/\s/).filter((r) => r !== "")));
1434
- for (const r in t) t[r] && !((i = this.nt) != null && i.has(r)) && this.st.add(r);
1453
+ this.st = /* @__PURE__ */ new Set(), r.strings !== void 0 && (this.nt = new Set(r.strings.join(" ").split(/\s/).filter((n) => n !== "")));
1454
+ for (const n in t) t[n] && !((i = this.nt) != null && i.has(n)) && this.st.add(n);
1435
1455
  return this.render(t);
1436
1456
  }
1437
- const e = n.element.classList;
1438
- for (const r of this.st) r in t || (e.remove(r), this.st.delete(r));
1439
- for (const r in t) {
1440
- const o = !!t[r];
1441
- 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)));
1457
+ const e = r.element.classList;
1458
+ for (const n of this.st) n in t || (e.remove(n), this.st.delete(n));
1459
+ for (const n in t) {
1460
+ const o = !!t[n];
1461
+ o === this.st.has(n) || (s = this.nt) != null && s.has(n) || (o ? (e.add(n), this.st.add(n)) : (e.remove(n), this.st.delete(n)));
1442
1462
  }
1443
1463
  return I;
1444
1464
  }
1445
- }), w = (n, t, e) => {
1446
- n && e.style.setProperty(t, n);
1447
- }, $e = (n, t) => {
1448
- var e, i, s, r, o, a, c, l, h;
1449
- w((e = n.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), w(
1450
- (i = n.colors) == null ? void 0 : i.textOnPrimaryBackground,
1465
+ }), w = (r, t, e) => {
1466
+ r && e.style.setProperty(t, r);
1467
+ }, Ae = (r, t) => {
1468
+ var e, i, s, n, o, a, c, l, h;
1469
+ w((e = r.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), w(
1470
+ (i = r.colors) == null ? void 0 : i.textOnPrimaryBackground,
1451
1471
  "--text-on-primary-background",
1452
1472
  t
1453
1473
  ), w(
1454
- (s = n.colors) == null ? void 0 : s.secondaryBackground,
1474
+ (s = r.colors) == null ? void 0 : s.secondaryBackground,
1455
1475
  "--secondary-background",
1456
1476
  t
1457
1477
  ), w(
1458
- (r = n.colors) == null ? void 0 : r.textOnSecondaryBackground,
1478
+ (n = r.colors) == null ? void 0 : n.textOnSecondaryBackground,
1459
1479
  "--text-on-secondary-background",
1460
1480
  t
1461
1481
  ), w(
1462
- (o = n.colors) == null ? void 0 : o.interactiveDestructiveBackground,
1482
+ (o = r.colors) == null ? void 0 : o.interactiveDestructiveBackground,
1463
1483
  "--destructive-color",
1464
1484
  t
1465
1485
  ), w(
1466
- (a = n.colors) == null ? void 0 : a.interactiveTextOnDestructiveBackground,
1486
+ (a = r.colors) == null ? void 0 : a.interactiveTextOnDestructiveBackground,
1467
1487
  "--text-on-destructive-color",
1468
1488
  t
1469
1489
  ), w(
1470
- (c = n.colors) == null ? void 0 : c.interactivePrimaryBackground,
1490
+ (c = r.colors) == null ? void 0 : c.interactivePrimaryBackground,
1471
1491
  "--interactive-primary-background",
1472
1492
  t
1473
1493
  ), w(
1474
- (l = n.colors) == null ? void 0 : l.interactiveTextOnPrimaryBackground,
1494
+ (l = r.colors) == null ? void 0 : l.interactiveTextOnPrimaryBackground,
1475
1495
  "--interactive-text-on-primary-background",
1476
1496
  t
1477
- ), w((h = n.colors) == null ? void 0 : h.focusColor, "--focus-color", t);
1497
+ ), w((h = r.colors) == null ? void 0 : h.focusColor, "--focus-color", t);
1478
1498
  };
1479
1499
  /**
1480
1500
  * @license
1481
1501
  * Copyright 2020 Google LLC
1482
1502
  * SPDX-License-Identifier: BSD-3-Clause
1483
1503
  */
1484
- const _e = () => new yi();
1485
- class yi {
1504
+ const xe = () => new bi();
1505
+ class bi {
1486
1506
  }
1487
- const pt = /* @__PURE__ */ new WeakMap(), Ae = Pt(class extends we {
1488
- render(n) {
1507
+ const ft = /* @__PURE__ */ new WeakMap(), Ce = It(class extends _e {
1508
+ render(r) {
1489
1509
  return p;
1490
1510
  }
1491
- update(n, [t]) {
1511
+ update(r, [t]) {
1492
1512
  var i;
1493
1513
  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 = n.options) == null ? void 0 : i.host, this.rt(this.ct = n.element)), p;
1514
+ return e && this.Y !== void 0 && this.rt(void 0), (e || this.lt !== this.ct) && (this.Y = t, this.ht = (i = r.options) == null ? void 0 : i.host, this.rt(this.ct = r.element)), p;
1495
1515
  }
1496
- rt(n) {
1497
- if (this.isConnected || (n = void 0), typeof this.Y == "function") {
1516
+ rt(r) {
1517
+ if (this.isConnected || (r = void 0), typeof this.Y == "function") {
1498
1518
  const t = this.ht ?? globalThis;
1499
- let e = pt.get(t);
1500
- e === void 0 && (e = /* @__PURE__ */ new WeakMap(), pt.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);
1501
- } else this.Y.value = n;
1519
+ let e = ft.get(t);
1520
+ e === void 0 && (e = /* @__PURE__ */ new WeakMap(), ft.set(t, e)), e.get(this.Y) !== void 0 && this.Y.call(this.ht, void 0), e.set(this.Y, r), r !== void 0 && this.Y.call(this.ht, r);
1521
+ } else this.Y.value = r;
1502
1522
  }
1503
1523
  get lt() {
1504
- var n, t;
1505
- return typeof this.Y == "function" ? (n = pt.get(this.ht ?? globalThis)) == null ? void 0 : n.get(this.Y) : (t = this.Y) == null ? void 0 : t.value;
1524
+ var r, t;
1525
+ return typeof this.Y == "function" ? (r = ft.get(this.ht ?? globalThis)) == null ? void 0 : r.get(this.Y) : (t = this.Y) == null ? void 0 : t.value;
1506
1526
  }
1507
1527
  disconnected() {
1508
1528
  this.lt === this.ct && this.rt(void 0);
@@ -1511,14 +1531,14 @@ const pt = /* @__PURE__ */ new WeakMap(), Ae = Pt(class extends we {
1511
1531
  this.rt(this.ct);
1512
1532
  }
1513
1533
  });
1514
- var bi = Object.defineProperty, K = (n, t, e, i) => {
1515
- for (var s = void 0, r = n.length - 1, o; r >= 0; r--)
1516
- (o = n[r]) && (s = o(t, e, s) || s);
1517
- return s && bi(t, e, s), s;
1534
+ var wi = Object.defineProperty, K = (r, t, e, i) => {
1535
+ for (var s = void 0, n = r.length - 1, o; n >= 0; n--)
1536
+ (o = r[n]) && (s = o(t, e, s) || s);
1537
+ return s && wi(t, e, s), s;
1518
1538
  };
1519
- const kt = class kt extends A {
1539
+ const Rt = class Rt extends A {
1520
1540
  constructor() {
1521
- super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef = _e(), this.widgetActive$ = new le(!1), this.componentIsDestroyed$ = new _t();
1541
+ super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef = xe(), this.widgetActive$ = new xt(!1), this.componentIsDestroyed$ = new At();
1522
1542
  }
1523
1543
  async connectedCallback() {
1524
1544
  super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding();
@@ -1553,21 +1573,21 @@ const kt = class kt extends A {
1553
1573
  }
1554
1574
  _applyBranding() {
1555
1575
  var t;
1556
- (t = this.application) != null && t.settings && $e(this.application.settings.branding, this);
1576
+ (t = this.application) != null && t.settings && Ae(this.application.settings.branding, this);
1557
1577
  }
1558
1578
  async _renderSymbol() {
1559
1579
  var a, c, l;
1560
1580
  const t = (a = this.application) == null ? void 0 : a.branding(), e = (c = t == null ? void 0 : t.graphics) == null ? void 0 : c.trigger;
1561
1581
  if (e)
1562
- return T` <img src=${e} class="trigger-icon" alt="" /> `;
1582
+ return k` <img src=${e} class="trigger-icon" alt="" /> `;
1563
1583
  const i = (l = this.application) == null ? void 0 : l.triggerIcon;
1564
1584
  if (!i)
1565
1585
  return p;
1566
- const s = async (h) => mi, { type: r, content: o } = i;
1567
- switch (r) {
1586
+ const s = async (h) => yi, { type: n, content: o } = i;
1587
+ switch (n) {
1568
1588
  case "Telia": {
1569
1589
  const h = await s();
1570
- return h ? T`<telia-icon
1590
+ return h ? k`<telia-icon
1571
1591
  class="trigger-icon"
1572
1592
  svg=${h.svg}
1573
1593
  size="lg"
@@ -1585,21 +1605,21 @@ const kt = class kt extends A {
1585
1605
  }
1586
1606
  render() {
1587
1607
  var t, e, i, s;
1588
- return T`<div
1589
- class=${se({
1608
+ return k`<div
1609
+ class=${ne({
1590
1610
  "trigger-container": !0,
1591
1611
  hidden: !this.triggerVisible
1592
1612
  })}
1593
- ${Ae(this.containerRef)}
1613
+ ${Ce(this.containerRef)}
1594
1614
  >
1595
- ${!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) ? T`
1615
+ ${!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) ? k`
1596
1616
  <button
1597
1617
  label="${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}"
1598
1618
  class="trigger-label"
1599
1619
  @click=${this.toggleActive}
1600
- ${gi({
1620
+ ${vi({
1601
1621
  keyframeOptions: {},
1602
- in: di,
1622
+ in: pi,
1603
1623
  stabilizeOut: !0,
1604
1624
  skipInitial: !1
1605
1625
  })}
@@ -1610,7 +1630,7 @@ const kt = class kt extends A {
1610
1630
 
1611
1631
  <button
1612
1632
  label="Widget trigger"
1613
- class=${se({
1633
+ class=${ne({
1614
1634
  trigger: !0,
1615
1635
  active: this.active,
1616
1636
  rendered: this.loaded
@@ -1649,7 +1669,7 @@ const kt = class kt extends A {
1649
1669
  </div>`;
1650
1670
  }
1651
1671
  };
1652
- kt.styles = [
1672
+ Rt.styles = [
1653
1673
  U`
1654
1674
  :host {
1655
1675
  --voca-rem-multiplier: 0.625;
@@ -1781,29 +1801,29 @@ kt.styles = [
1781
1801
  }
1782
1802
  `
1783
1803
  ];
1784
- let v = kt;
1804
+ let b = Rt;
1785
1805
  K([
1786
1806
  m({ attribute: !1 })
1787
- ], v.prototype, "application");
1807
+ ], b.prototype, "application");
1788
1808
  K([
1789
1809
  L()
1790
- ], v.prototype, "active");
1810
+ ], b.prototype, "active");
1791
1811
  K([
1792
1812
  L()
1793
- ], v.prototype, "triggerVisible");
1813
+ ], b.prototype, "triggerVisible");
1794
1814
  K([
1795
1815
  L()
1796
- ], v.prototype, "loaded");
1816
+ ], b.prototype, "loaded");
1797
1817
  K([
1798
1818
  L()
1799
- ], v.prototype, "icon");
1800
- var vi = Object.defineProperty, E = (n, t, e, i) => {
1801
- for (var s = void 0, r = n.length - 1, o; r >= 0; r--)
1802
- (o = n[r]) && (s = o(t, e, s) || s);
1803
- return s && vi(t, e, s), s;
1819
+ ], b.prototype, "icon");
1820
+ var $i = Object.defineProperty, E = (r, t, e, i) => {
1821
+ for (var s = void 0, n = r.length - 1, o; n >= 0; n--)
1822
+ (o = r[n]) && (s = o(t, e, s) || s);
1823
+ return s && $i(t, e, s), s;
1804
1824
  };
1805
- const wi = (n) => {
1806
- const e = class e extends n {
1825
+ const _i = (r) => {
1826
+ const e = class e extends r {
1807
1827
  constructor() {
1808
1828
  super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
1809
1829
  }
@@ -1858,37 +1878,37 @@ const wi = (n) => {
1858
1878
  ], t.prototype, "application"), E([
1859
1879
  m({ attribute: !1 })
1860
1880
  ], t.prototype, "parent"), t;
1861
- }, Tt = class Tt extends wi(A) {
1881
+ }, Mt = class Mt extends _i(A) {
1862
1882
  render() {
1863
- return T`Non resolved component`;
1883
+ return k`Non resolved component`;
1864
1884
  }
1865
1885
  };
1866
- Tt.styles = [
1886
+ Mt.styles = [
1867
1887
  U`
1868
1888
  :host {
1869
1889
  display: block;
1870
1890
  }
1871
1891
  `
1872
1892
  ];
1873
- let et = Tt;
1893
+ let et = Mt;
1874
1894
  /**
1875
1895
  * @license
1876
1896
  * Copyright 2021 Google LLC
1877
1897
  * SPDX-License-Identifier: BSD-3-Clause
1878
1898
  */
1879
- function* $i(n, t) {
1880
- if (n !== void 0) {
1899
+ function* Ai(r, t) {
1900
+ if (r !== void 0) {
1881
1901
  let e = 0;
1882
- for (const i of n) yield t(i, e++);
1902
+ for (const i of r) yield t(i, e++);
1883
1903
  }
1884
1904
  }
1885
- var $ = /* @__PURE__ */ ((n) => (n.Inline = "inline", n.Trigger = "trigger", n))($ || {});
1905
+ var $ = /* @__PURE__ */ ((r) => (r.Inline = "inline", r.Trigger = "trigger", r))($ || {});
1886
1906
  /**
1887
1907
  * @license
1888
1908
  * Copyright 2021 Google LLC
1889
1909
  * SPDX-License-Identifier: BSD-3-Clause
1890
1910
  */
1891
- let _i = class extends Event {
1911
+ let xi = class extends Event {
1892
1912
  constructor(t, e, i) {
1893
1913
  super("context-request", { bubbles: !0, composed: !0 }), this.context = t, this.callback = e, this.subscribe = i ?? !1;
1894
1914
  }
@@ -1903,7 +1923,7 @@ let _i = class extends Event {
1903
1923
  * Copyright 2021 Google LLC
1904
1924
  * SPDX-License-Identifier: BSD-3-Clause
1905
1925
  */
1906
- class Ai {
1926
+ class Ci {
1907
1927
  get value() {
1908
1928
  return this.o;
1909
1929
  }
@@ -1936,14 +1956,14 @@ class Ai {
1936
1956
  * Copyright 2021 Google LLC
1937
1957
  * SPDX-License-Identifier: BSD-3-Clause
1938
1958
  */
1939
- let xi = class extends Event {
1959
+ let Si = class extends Event {
1940
1960
  constructor(t) {
1941
1961
  super("context-provider", { bubbles: !0, composed: !0 }), this.context = t;
1942
1962
  }
1943
1963
  };
1944
- class ne extends Ai {
1964
+ class oe extends Ci {
1945
1965
  constructor(t, e, i) {
1946
- var s, r;
1966
+ var s, n;
1947
1967
  super(e.context !== void 0 ? e.initialValue : i), this.onContextRequest = (o) => {
1948
1968
  const a = o.composedPath()[0];
1949
1969
  o.context === this.context && a !== this.host && (o.stopPropagation(), this.addCallback(o.callback, a, o.subscribe));
@@ -1951,15 +1971,15 @@ class ne extends Ai {
1951
1971
  const a = o.composedPath()[0];
1952
1972
  if (o.context !== this.context || a === this.host) return;
1953
1973
  const c = /* @__PURE__ */ new Set();
1954
- for (const [l, { consumerHost: h }] of this.subscriptions) c.has(l) || (c.add(l), h.dispatchEvent(new _i(this.context, l, !0)));
1974
+ for (const [l, { consumerHost: h }] of this.subscriptions) c.has(l) || (c.add(l), h.dispatchEvent(new xi(this.context, l, !0)));
1955
1975
  o.stopPropagation();
1956
- }, 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);
1976
+ }, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (n = (s = this.host).addController) == null || n.call(s, this);
1957
1977
  }
1958
1978
  attachListeners() {
1959
1979
  this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
1960
1980
  }
1961
1981
  hostConnected() {
1962
- this.host.dispatchEvent(new xi(this.context));
1982
+ this.host.dispatchEvent(new Si(this.context));
1963
1983
  }
1964
1984
  }
1965
1985
  /**
@@ -1967,51 +1987,51 @@ class ne extends Ai {
1967
1987
  * Copyright 2017 Google LLC
1968
1988
  * SPDX-License-Identifier: BSD-3-Clause
1969
1989
  */
1970
- function Ci({ context: n }) {
1990
+ function Ei({ context: r }) {
1971
1991
  return (t, e) => {
1972
1992
  const i = /* @__PURE__ */ new WeakMap();
1973
1993
  if (typeof e == "object") return e.addInitializer(function() {
1974
- i.set(this, new ne(this, { context: n }));
1994
+ i.set(this, new oe(this, { context: r }));
1975
1995
  }), { get() {
1976
1996
  return t.get.call(this);
1977
1997
  }, set(s) {
1978
- var r;
1979
- return (r = i.get(this)) == null || r.setValue(s), t.set.call(this, s);
1998
+ var n;
1999
+ return (n = i.get(this)) == null || n.setValue(s), t.set.call(this, s);
1980
2000
  }, init(s) {
1981
- var r;
1982
- return (r = i.get(this)) == null || r.setValue(s), s;
2001
+ var n;
2002
+ return (n = i.get(this)) == null || n.setValue(s), s;
1983
2003
  } };
1984
2004
  {
1985
2005
  t.constructor.addInitializer((o) => {
1986
- i.set(o, new ne(o, { context: n }));
2006
+ i.set(o, new oe(o, { context: r }));
1987
2007
  });
1988
2008
  const s = Object.getOwnPropertyDescriptor(t, e);
1989
- let r;
2009
+ let n;
1990
2010
  if (s === void 0) {
1991
2011
  const o = /* @__PURE__ */ new WeakMap();
1992
- r = { get() {
2012
+ n = { get() {
1993
2013
  return o.get(this);
1994
2014
  }, set(a) {
1995
2015
  i.get(this).setValue(a), o.set(this, a);
1996
2016
  }, configurable: !0, enumerable: !0 };
1997
2017
  } else {
1998
2018
  const o = s.set;
1999
- r = { ...s, set(a) {
2019
+ n = { ...s, set(a) {
2000
2020
  i.get(this).setValue(a), o == null || o.call(this, a);
2001
2021
  } };
2002
2022
  }
2003
- return void Object.defineProperty(t, e, r);
2023
+ return void Object.defineProperty(t, e, n);
2004
2024
  }
2005
2025
  };
2006
2026
  }
2007
- var Si = Object.defineProperty, xe = (n, t, e, i) => {
2008
- for (var s = void 0, r = n.length - 1, o; r >= 0; r--)
2009
- (o = n[r]) && (s = o(t, e, s) || s);
2010
- return s && Si(t, e, s), s;
2027
+ var Pi = Object.defineProperty, Se = (r, t, e, i) => {
2028
+ for (var s = void 0, n = r.length - 1, o; n >= 0; n--)
2029
+ (o = r[n]) && (s = o(t, e, s) || s);
2030
+ return s && Pi(t, e, s), s;
2011
2031
  };
2012
- const Ei = "application", Rt = class Rt extends A {
2032
+ const Oi = "application", Nt = class Nt extends A {
2013
2033
  constructor() {
2014
- super(...arguments), this.nodes = [], this.wrapperRef = _e(), this.fullscreen = !1;
2034
+ super(...arguments), this.nodes = [], this.wrapperRef = xe(), this.fullscreen = !1, this.isReady = new xt(!1);
2015
2035
  }
2016
2036
  addChild(t) {
2017
2037
  t.parent = this, this.nodes.push(t);
@@ -2020,7 +2040,7 @@ const Ei = "application", Rt = class Rt extends A {
2020
2040
  if (!this.wrapperRef.value)
2021
2041
  return;
2022
2042
  const t = this.application.settings;
2023
- t != null && t.branding && $e(t.branding, this.wrapperRef.value);
2043
+ t != null && t.branding && Ae(t.branding, this.wrapperRef.value);
2024
2044
  }
2025
2045
  applyStyles() {
2026
2046
  if (!this.wrapperRef.value)
@@ -2036,12 +2056,12 @@ const Ei = "application", Rt = class Rt extends A {
2036
2056
  render() {
2037
2057
  var i, s;
2038
2058
  const t = this.application.settings.components.conversation;
2039
- 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 === $.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"), T`<div class="widget-container" ${Ae(this.wrapperRef)}>
2040
- ${$i(this.nodes, (r) => r)}
2059
+ 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 === $.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"), k`<div class="widget-container" ${Ce(this.wrapperRef)}>
2060
+ ${Ai(this.nodes, (n) => n)}
2041
2061
  </div>`;
2042
2062
  }
2043
2063
  };
2044
- Rt.styles = U`
2064
+ Nt.styles = U`
2045
2065
  :host {
2046
2066
  --font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
2047
2067
  --spacing-xs: 0.2rem;
@@ -2194,15 +2214,15 @@ Rt.styles = U`
2194
2214
  animation: none;
2195
2215
  }
2196
2216
  `;
2197
- let N = Rt;
2198
- xe([
2217
+ let M = Nt;
2218
+ Se([
2199
2219
  m({ attribute: !0 })
2200
- ], N.prototype, "fullscreen");
2201
- xe([
2220
+ ], M.prototype, "fullscreen");
2221
+ Se([
2202
2222
  m({ attribute: !1 }),
2203
- Ci({ context: Ei })
2204
- ], N.prototype, "application");
2205
- class Pi {
2223
+ Ei({ context: Oi })
2224
+ ], M.prototype, "application");
2225
+ class Ii {
2206
2226
  constructor() {
2207
2227
  this.root = this.createRoot();
2208
2228
  }
@@ -2238,11 +2258,11 @@ class Pi {
2238
2258
  // views
2239
2259
  ));
2240
2260
  });
2241
- }, { entry: r, components: o } = t;
2242
- return s(this, this.root, [r], o), this.root;
2261
+ }, { entry: n, components: o } = t;
2262
+ return s(this, this.root, [n], o), this.root;
2243
2263
  }
2244
2264
  createRoot() {
2245
- return typeof window < "u" && (window.customElements.get("ace-wrapper") || window.customElements.define("ace-wrapper", N)), document.createElement("ace-wrapper");
2265
+ return typeof window < "u" && (window.customElements.get("ace-wrapper") || window.customElements.define("ace-wrapper", M)), document.createElement("ace-wrapper");
2246
2266
  }
2247
2267
  createNode(t, e) {
2248
2268
  if (!this.resolveComponent(e))
@@ -2284,9 +2304,9 @@ const it = class it {
2284
2304
  }
2285
2305
  };
2286
2306
  it.ResolveWebComponentName = (t) => `ace-${t}`;
2287
- let $t = it;
2288
- var b = /* @__PURE__ */ ((n) => (n.Necessary = "necessary", n.Functional = "functional", n.Analytics = "analytics", n))(b || {});
2289
- class Oi {
2307
+ let _t = it;
2308
+ var y = /* @__PURE__ */ ((r) => (r.Necessary = "necessary", r.Functional = "functional", r.Analytics = "analytics", r))(y || {});
2309
+ class Ti {
2290
2310
  constructor(t, e, i, s) {
2291
2311
  this.disallowedKeys = [], this.widgetId = t, this.storage = e === "localStorage" ? window.localStorage : window.sessionStorage, this.policy = i, this.storageEntries = s;
2292
2312
  }
@@ -2300,8 +2320,8 @@ class Oi {
2300
2320
  }
2301
2321
  const s = i.category;
2302
2322
  if (this.policy[s]) {
2303
- const r = { value: e, category: s };
2304
- this.storage.setItem(this._prefixKey(t), JSON.stringify(r));
2323
+ const n = { value: e, category: s };
2324
+ this.storage.setItem(this._prefixKey(t), JSON.stringify(n));
2305
2325
  } else
2306
2326
  console.warn(
2307
2327
  `Storage policy does not allow storing items in category: ${s}`
@@ -2343,7 +2363,7 @@ class Oi {
2343
2363
  return `ace_${this.widgetId.substring(0, 7)}-${t}`;
2344
2364
  }
2345
2365
  }
2346
- class Ii {
2366
+ class ki {
2347
2367
  constructor() {
2348
2368
  this.texts = /* @__PURE__ */ new Map();
2349
2369
  }
@@ -2358,8 +2378,8 @@ class Ii {
2358
2378
  return this.texts.get(t) || e;
2359
2379
  }
2360
2380
  }
2361
- const ki = "##__WIDGETS_VERSION__##";
2362
- class Ti {
2381
+ const Ri = "1.1.111-rc.1";
2382
+ class Mi {
2363
2383
  constructor(t) {
2364
2384
  this.widget = t, this.name = t.name;
2365
2385
  }
@@ -2377,21 +2397,21 @@ class Ti {
2377
2397
  }
2378
2398
  version() {
2379
2399
  return {
2380
- version: ki
2400
+ version: Ri
2381
2401
  };
2382
2402
  }
2383
2403
  }
2384
- class Ri {
2385
- constructor(t, e, i, s, r) {
2386
- this.id = t, this.name = e, this.container = i, this.settings = s, this.options = r, this.platform = new Pi(), this.texts = new Ii(), this.renderStrategy = $.Inline, this.fullscreen = !1, this.anchor = "BottomRight", this.autoActivate = !1, this.plugins = [], this.componentResolver = new $t(), this.components = [], this.trigger = null, this.api = new Ti(this), this.onMessageReceived = async (a) => {
2404
+ class Ni {
2405
+ constructor(t, e, i, s, n) {
2406
+ this.id = t, this.name = e, this.container = i, this.settings = s, this.options = n, this.platform = new Ii(), this.texts = new ki(), this.renderStrategy = $.Inline, this.fullscreen = !1, this.anchor = "BottomRight", this.autoActivate = !1, this.plugins = [], this.componentResolver = new _t(), this.components = [], this.trigger = null, this.api = new Mi(this), this.onMessageReceived = async (a) => {
2387
2407
  var l;
2388
2408
  const c = a.data;
2389
2409
  switch (c.type) {
2390
2410
  case "set-storage-policies": {
2391
2411
  const { policies: h } = c.data || [], d = {
2392
- [b.Analytics]: h.includes("analytics"),
2393
- [b.Necessary]: h.includes("necessary"),
2394
- [b.Functional]: h.includes("functional")
2412
+ [y.Analytics]: h.includes("analytics"),
2413
+ [y.Necessary]: h.includes("necessary"),
2414
+ [y.Functional]: h.includes("functional")
2395
2415
  };
2396
2416
  this.storage.updatePolicy(d);
2397
2417
  return;
@@ -2425,7 +2445,7 @@ class Ri {
2425
2445
  return;
2426
2446
  }
2427
2447
  case "set-open": {
2428
- typeof c.data.value == "boolean" && this.storage.set("open", c.data.value);
2448
+ typeof c.data.value == "boolean" && (this.storage.set("open", c.data.value), this.root && c.data.value === !0 && !this.root.isReady.getValue() && this.root.isReady.next(!0));
2429
2449
  return;
2430
2450
  }
2431
2451
  default:
@@ -2433,19 +2453,19 @@ class Ri {
2433
2453
  }
2434
2454
  }, this.renderStrategy = this.options.renderStrategy || $.Inline, this.triggerIcon = this.options.triggerIcon;
2435
2455
  const o = {
2436
- [b.Necessary]: !0,
2437
- [b.Functional]: !0,
2438
- [b.Analytics]: !0
2456
+ [y.Necessary]: !0,
2457
+ [y.Functional]: !0,
2458
+ [y.Analytics]: !0
2439
2459
  };
2440
- this.storage = new Oi(
2460
+ this.storage = new Ti(
2441
2461
  this.id,
2442
2462
  "sessionStorage",
2443
2463
  o,
2444
2464
  this.settings.storage
2445
- ), typeof r.autoActivate == "boolean" && (this.autoActivate = r.autoActivate), r.anchor && (this.anchor = r.anchor), this.container.register("$settings", s), this.texts.loadTexts(s.texts || {}), window.addEventListener("message", this.onMessageReceived);
2465
+ ), typeof n.autoActivate == "boolean" && (this.autoActivate = n.autoActivate), n.anchor && (this.anchor = n.anchor), this.container.register("$settings", s), this.texts.loadTexts(s.texts || {}), window.addEventListener("message", this.onMessageReceived);
2446
2466
  }
2447
2467
  async activate() {
2448
- if (await this.loadPlugins(), await this.componentResolver.loadComponents(), this.root = this.platform.createComponentModel(this.settings, this), this.container.setState(de.Ready), this.autoActivate) {
2468
+ if (await this.loadPlugins(), await this.componentResolver.loadComponents(), this.root = this.platform.createComponentModel(this.settings, this), this.container.setState(pe.Ready), this.autoActivate) {
2449
2469
  const t = this.render();
2450
2470
  t && this._getTargetElement().appendChild(t);
2451
2471
  }
@@ -2524,14 +2544,14 @@ class Ri {
2524
2544
  render() {
2525
2545
  if (this._isEmbeddedInIFrame())
2526
2546
  return this.root;
2527
- if (this.renderStrategy === $.Trigger) {
2528
- const t = new v();
2547
+ if (!this._isEmbeddedInIFrame() && this.root && (this.root.isReady.getValue() || this.root.isReady.next(!0)), this.renderStrategy === $.Trigger) {
2548
+ const t = new b();
2529
2549
  return t.application = this, this.trigger = t, this.storage.get("open") && this.trigger.toggleActive(), t;
2530
2550
  }
2531
2551
  return this.root;
2532
2552
  }
2533
2553
  }
2534
- const Vi = (n) => new W(n), st = class st {
2554
+ const Yi = (r) => new W(r), st = class st {
2535
2555
  // TODO:
2536
2556
  // private static endpoint = 'http://localhost:5299/api'; // TODO:
2537
2557
  constructor(t = st.endpoint) {
@@ -2543,13 +2563,13 @@ const Vi = (n) => new W(n), st = class st {
2543
2563
  id: i.id,
2544
2564
  triggers: i.triggers || [],
2545
2565
  apps: (i.widgets || []).map((s) => {
2546
- let r = $.Trigger;
2547
- s.renderStrategy.toLowerCase() === "inline" && (r = $.Inline);
2566
+ let n = $.Trigger;
2567
+ s.renderStrategy.toLowerCase() === "inline" && (n = $.Inline);
2548
2568
  const o = s.widgetId ? s.widgetId : s.id, a = typeof s.autoActivate == "boolean" ? s.autoActivate : !1, c = typeof s.anchor == "string" ? s.anchor : "BottomRight", l = typeof s.triggerIcon == "string" ? s.triggerIcon : "question";
2549
2569
  return {
2550
2570
  id: o,
2551
2571
  widgetId: o,
2552
- renderStrategy: r,
2572
+ renderStrategy: n,
2553
2573
  autoActivate: a,
2554
2574
  anchor: c,
2555
2575
  triggerIcon: {
@@ -2570,7 +2590,7 @@ const Vi = (n) => new W(n), st = class st {
2570
2590
  };
2571
2591
  st.endpoint = "https://widgets.ace.teliacompany.net/api";
2572
2592
  let W = st;
2573
- class Ni {
2593
+ class Ui {
2574
2594
  constructor(t) {
2575
2595
  this.site = t;
2576
2596
  }
@@ -2578,12 +2598,12 @@ class Ni {
2578
2598
  var i;
2579
2599
  (((i = this.site.environment) == null ? void 0 : i.applications) || []).forEach((s) => {
2580
2600
  if (s.storage) {
2581
- const r = {
2582
- [b.Analytics]: t.includes("analytics"),
2583
- [b.Necessary]: t.includes("necessary"),
2584
- [b.Functional]: t.includes("functional")
2601
+ const n = {
2602
+ [y.Analytics]: t.includes("analytics"),
2603
+ [y.Necessary]: t.includes("necessary"),
2604
+ [y.Functional]: t.includes("functional")
2585
2605
  };
2586
- s.storage.updatePolicy(r);
2606
+ s.storage.updatePolicy(n);
2587
2607
  }
2588
2608
  });
2589
2609
  }
@@ -2594,9 +2614,9 @@ class Ni {
2594
2614
  });
2595
2615
  }
2596
2616
  }
2597
- class Mi {
2617
+ class Li {
2598
2618
  constructor() {
2599
- this.applications = [], this.container = new Bt("environment", this), this.bootstrapped = !1, this.site = null, this.widgetAPIHandlers = /* @__PURE__ */ new Map(), this.siteConfigurationHandlers = [], setTimeout(() => {
2619
+ this.applications = [], this.container = new zt("environment", this), this.bootstrapped = !1, this.site = null, this.widgetAPIHandlers = /* @__PURE__ */ new Map(), this.siteConfigurationHandlers = [], setTimeout(() => {
2600
2620
  this.notifyWidgetsOfCreation();
2601
2621
  }, 1e3);
2602
2622
  }
@@ -2616,8 +2636,8 @@ class Mi {
2616
2636
  (i) => i.autoActivate
2617
2637
  );
2618
2638
  (((e = this.site) == null ? void 0 : e.triggers) || []).filter((i) => i.triggerType === "visit").forEach((i) => {
2619
- const s = window.location.pathname, r = i.condition.outputs || [];
2620
- i.condition.type === "url" && r.forEach((o) => {
2639
+ const s = window.location.pathname, n = i.condition.outputs || [];
2640
+ i.condition.type === "url" && n.forEach((o) => {
2621
2641
  const a = o.action.type === "render_widget";
2622
2642
  if ((o.value === s || o.value === "*") && a) {
2623
2643
  let l = { widgetId: "" };
@@ -2662,15 +2682,15 @@ class Mi {
2662
2682
  if (!i) {
2663
2683
  const s = this.widgetAPIHandlers.get(t) || [];
2664
2684
  s.push(() => {
2665
- const r = this.applications.find((o) => o.name === t);
2666
- e(r == null ? void 0 : r.api);
2685
+ const n = this.applications.find((o) => o.name === t);
2686
+ e(n == null ? void 0 : n.api);
2667
2687
  }), this.widgetAPIHandlers.set(t, s);
2668
2688
  return;
2669
2689
  }
2670
2690
  e(i == null ? void 0 : i.api);
2671
2691
  }
2672
2692
  registerApp(t, e, i, s) {
2673
- const r = new Bt(e, this), o = new Ri(t, e, r, i, s);
2693
+ const n = new zt(e, this), o = new Ni(t, e, n, i, s);
2674
2694
  this.applications.push(o);
2675
2695
  }
2676
2696
  registerSite(t) {
@@ -2682,9 +2702,9 @@ class Mi {
2682
2702
  }), this;
2683
2703
  }
2684
2704
  }
2685
- class Ui {
2705
+ class ji {
2686
2706
  constructor(t) {
2687
- this.configurations = [], this.httpClient = new W(), this.api = new Ni(this), this.triggers = [], this.httpClient = new W(), typeof t == "string" ? this.url = t : (t.httpClient && (this.httpClient = t.httpClient), this.loadFromConfig(t));
2707
+ this.configurations = [], this.httpClient = new W(), this.api = new Ui(this), this.triggers = [], this.httpClient = new W(), typeof t == "string" ? this.url = t : (t.httpClient && (this.httpClient = t.httpClient), this.loadFromConfig(t));
2688
2708
  }
2689
2709
  async load(t) {
2690
2710
  const e = await this.httpClient.getSite(t);
@@ -2712,7 +2732,7 @@ class Ui {
2712
2732
  }
2713
2733
  async bootstrap(t) {
2714
2734
  var e;
2715
- this.url && await this.load(this.url), this.environment = new Mi(), this.addGlobal(this.environment);
2735
+ this.url && await this.load(this.url), this.environment = new Li(), this.addGlobal(this.environment);
2716
2736
  for await (const i of this.configurations) {
2717
2737
  const s = await this.httpClient.getWidget(i.widgetId);
2718
2738
  s && ((e = this.environment) == null || e.registerApp(
@@ -2738,12 +2758,12 @@ class Ui {
2738
2758
  }), globalThis.ace = t;
2739
2759
  }
2740
2760
  }
2741
- var Li = Object.defineProperty, Ot = (n, t, e, i) => {
2742
- for (var s = void 0, r = n.length - 1, o; r >= 0; r--)
2743
- (o = n[r]) && (s = o(t, e, s) || s);
2744
- return s && Li(t, e, s), s;
2761
+ var Hi = Object.defineProperty, Tt = (r, t, e, i) => {
2762
+ for (var s = void 0, n = r.length - 1, o; n >= 0; n--)
2763
+ (o = r[n]) && (s = o(t, e, s) || s);
2764
+ return s && Hi(t, e, s), s;
2745
2765
  };
2746
- const Nt = class Nt extends A {
2766
+ const Ut = class Ut extends A {
2747
2767
  constructor() {
2748
2768
  super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
2749
2769
  }
@@ -2769,50 +2789,50 @@ const Nt = class Nt extends A {
2769
2789
  if (!this.widget || this.status !== "activated")
2770
2790
  return p;
2771
2791
  if (this.widget.renderStrategy === $.Trigger) {
2772
- const t = new v();
2792
+ const t = new b();
2773
2793
  return t.application = this.widget, t;
2774
2794
  }
2775
2795
  return this.widget.render();
2776
2796
  }
2777
2797
  };
2778
- Nt.styles = [
2798
+ Ut.styles = [
2779
2799
  U`
2780
2800
  :host {
2781
2801
  display: block;
2782
2802
  }
2783
2803
  `
2784
2804
  ];
2785
- let M = Nt;
2786
- Ot([
2805
+ let N = Ut;
2806
+ Tt([
2787
2807
  m({ attribute: !0 })
2788
- ], M.prototype, "name");
2789
- Ot([
2808
+ ], N.prototype, "name");
2809
+ Tt([
2790
2810
  L()
2791
- ], M.prototype, "widget");
2792
- Ot([
2811
+ ], N.prototype, "widget");
2812
+ Tt([
2793
2813
  L()
2794
- ], M.prototype, "status");
2814
+ ], N.prototype, "status");
2795
2815
  customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", V);
2796
- customElements.get("ace-trigger") || customElements.define("ace-trigger", v);
2816
+ customElements.get("ace-trigger") || customElements.define("ace-trigger", b);
2797
2817
  customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", et);
2798
- customElements.get("ace-wrapper") || customElements.define("ace-wrapper", N);
2799
- customElements.get("ace-widget") || customElements.define("ace-widget", M);
2800
- const Wi = async (n, t, e = {}) => {
2801
- const i = new Ui(n);
2818
+ customElements.get("ace-wrapper") || customElements.define("ace-wrapper", M);
2819
+ customElements.get("ace-widget") || customElements.define("ace-widget", N);
2820
+ const qi = async (r, t, e = {}) => {
2821
+ const i = new ji(r);
2802
2822
  e.httpClient && i.setHttpClient(e.httpClient), await i.bootstrap(t);
2803
2823
  };
2804
2824
  export {
2805
- M as AceWidget,
2806
- Ri as Application,
2807
- Bt as Container,
2808
- Mi as Environment,
2825
+ N as AceWidget,
2826
+ Ni as Application,
2827
+ zt as Container,
2828
+ Li as Environment,
2809
2829
  W as HttpClient,
2810
- Ui as Site,
2811
- b as StorageCategory,
2812
- Oi as StorageService,
2813
- v as Trigger,
2814
- wi as WidgetComponent,
2815
- Ei as applicationContext,
2816
- Wi as bootstrap,
2817
- Vi as createHttpClient
2830
+ ji as Site,
2831
+ y as StorageCategory,
2832
+ Ti as StorageService,
2833
+ b as Trigger,
2834
+ _i as WidgetComponent,
2835
+ Oi as applicationContext,
2836
+ qi as bootstrap,
2837
+ Yi as createHttpClient
2818
2838
  };