@telia-ace/widget-conversation-flamingo 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
1
  var Un = Object.defineProperty, Vn = Object.defineProperties;
2
2
  var Bn = Object.getOwnPropertyDescriptors;
3
- var xt = Object.getOwnPropertySymbols;
3
+ var _t = Object.getOwnPropertySymbols;
4
4
  var as = Object.prototype.hasOwnProperty, cs = Object.prototype.propertyIsEnumerable;
5
5
  var os = (s, t, e) => t in s ? Un(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, P = (s, t) => {
6
6
  for (var e in t || (t = {}))
7
7
  as.call(t, e) && os(s, e, t[e]);
8
- if (xt)
9
- for (var e of xt(t))
8
+ if (_t)
9
+ for (var e of _t(t))
10
10
  cs.call(t, e) && os(s, e, t[e]);
11
11
  return s;
12
12
  }, R = (s, t) => Vn(s, Bn(t));
@@ -14,8 +14,8 @@ var hs = (s, t) => {
14
14
  var e = {};
15
15
  for (var n in s)
16
16
  as.call(s, n) && t.indexOf(n) < 0 && (e[n] = s[n]);
17
- if (s != null && xt)
18
- for (var n of xt(s))
17
+ if (s != null && _t)
18
+ for (var n of _t(s))
19
19
  t.indexOf(n) < 0 && cs.call(s, n) && (e[n] = s[n]);
20
20
  return e;
21
21
  };
@@ -56,7 +56,7 @@ const ne = (s, t, e, ...n) => {
56
56
  error: (e, ...n) => ne(t, "error", e, ...n)
57
57
  };
58
58
  };
59
- var vt = /* @__PURE__ */ ((s) => (s.Implementation = "implementation", s.Widget = "widget", s))(vt || {}), L = /* @__PURE__ */ ((s) => (s.Pre = "pre", s.Post = "post", s))(L || {});
59
+ var ft = /* @__PURE__ */ ((s) => (s.Implementation = "implementation", s.Widget = "widget", s))(ft || {}), L = /* @__PURE__ */ ((s) => (s.Pre = "pre", s.Post = "post", s))(L || {});
60
60
  const qn = (s, t, e, n) => {
61
61
  try {
62
62
  const i = new t(e, n);
@@ -91,12 +91,12 @@ let Fn = class {
91
91
  createCommand(t, e, n) {
92
92
  let i;
93
93
  typeof e == "function" ? i = {
94
- scope: vt.Widget,
94
+ scope: ft.Widget,
95
95
  stage: L.Post,
96
96
  defaultArgs: void 0,
97
97
  handlerResolver: e
98
98
  } : i = {
99
- scope: ls(e.scope, vt.Widget),
99
+ scope: ls(e.scope, ft.Widget),
100
100
  stage: ls(e.stage, L.Post),
101
101
  defaultArgs: e.defaultArgs,
102
102
  handlerResolver: n
@@ -118,7 +118,7 @@ const sn = (s) => {
118
118
  sn((s) => {
119
119
  s.createCommand(
120
120
  "types.register",
121
- { scope: vt.Implementation, stage: L.Pre },
121
+ { scope: ft.Implementation, stage: L.Pre },
122
122
  (t) => (e, n) => {
123
123
  t.container.get("$types")[e] = n;
124
124
  }
@@ -197,7 +197,7 @@ sn((s) => {
197
197
  const Kn = sn((s) => {
198
198
  s.createCommand(
199
199
  "ready",
200
- { scope: vt.Implementation, stage: L.Pre },
200
+ { scope: ft.Implementation, stage: L.Pre },
201
201
  (t) => (e) => {
202
202
  const { container: n } = t, i = n.owner;
203
203
  n.get("bootstrapping").ready ? e(i) : i.events.subscribeOnce("bootstrap:ready", () => {
@@ -222,18 +222,18 @@ const re = (s, t, e, ...n) => {
222
222
  console.error(i, ...n);
223
223
  break;
224
224
  }
225
- }, _ = (s) => {
225
+ }, x = (s) => {
226
226
  const t = s.container || s;
227
227
  return {
228
228
  info: (e, ...n) => re(t, "info", e, ...n),
229
229
  warn: (e, ...n) => re(t, "warning", e, ...n),
230
230
  error: (e, ...n) => re(t, "error", e, ...n)
231
231
  };
232
- }, v = at(), He = (() => {
232
+ }, f = at(), He = (() => {
233
233
  let s = 0;
234
234
  return () => ++s;
235
235
  })(), ze = (s, t, e) => {
236
- const n = v(s).touchQueue.get(t);
236
+ const n = f(s).touchQueue.get(t);
237
237
  n && n.forEach((i) => {
238
238
  i(e, s);
239
239
  });
@@ -269,21 +269,21 @@ let Qn = class {
269
269
  * @param parent Parent container this should be a child of.
270
270
  */
271
271
  constructor(t, e, n) {
272
- this.owner = t, this.name = e, this.parent = n, v(this).resolvers = /* @__PURE__ */ new Map(), v(this).touchQueue = /* @__PURE__ */ new Map(), v(this).children = [];
272
+ this.owner = t, this.name = e, this.parent = n, f(this).resolvers = /* @__PURE__ */ new Map(), f(this).touchQueue = /* @__PURE__ */ new Map(), f(this).children = [];
273
273
  }
274
274
  /**
275
275
  * Deletes an existing resolver by its unique id.
276
276
  * @param id Resolver id.
277
277
  */
278
278
  delete(t) {
279
- const e = v(this).resolvers, n = Array.from(e.values()).find((i) => i.id === t);
280
- return n ? (v(this).touchQueue.delete(n.key), Promise.resolve(e.delete(n.key))) : this.parent ? this.parent.delete(t) : Promise.resolve(!1);
279
+ const e = f(this).resolvers, n = Array.from(e.values()).find((i) => i.id === t);
280
+ return n ? (f(this).touchQueue.delete(n.key), Promise.resolve(e.delete(n.key))) : this.parent ? this.parent.delete(t) : Promise.resolve(!1);
281
281
  }
282
282
  /**
283
283
  * Clears the `Container` and any child containers by deleteing all registered resolvers.
284
284
  */
285
285
  clear() {
286
- const t = v(this).resolvers, e = Array.from(t.values());
286
+ const t = f(this).resolvers, e = Array.from(t.values());
287
287
  return Promise.all(e.map((n) => {
288
288
  if (n.constructed)
289
289
  return Promise.resolve(n.resolve()).then((i) => {
@@ -291,7 +291,7 @@ let Qn = class {
291
291
  return i.dispose.call(i, this, n);
292
292
  });
293
293
  })).then(() => {
294
- e.forEach((n) => this.delete(n.id)), v(this).children.forEach((n) => n.clear());
294
+ e.forEach((n) => this.delete(n.id)), f(this).children.forEach((n) => n.clear());
295
295
  });
296
296
  }
297
297
  /**
@@ -299,7 +299,7 @@ let Qn = class {
299
299
  */
300
300
  detach() {
301
301
  if (this.parent) {
302
- const t = v(this.parent).children, e = t.indexOf(this);
302
+ const t = f(this.parent).children, e = t.indexOf(this);
303
303
  e > -1 && (t.splice(e, 1), delete this.parent);
304
304
  }
305
305
  }
@@ -309,13 +309,13 @@ let Qn = class {
309
309
  * @param handler Handler function for touching the resolved value.
310
310
  */
311
311
  touch(t, e) {
312
- const n = v(this).resolvers.get(t);
312
+ const n = f(this).resolvers.get(t);
313
313
  if (n && n.constructed)
314
314
  Promise.resolve(n.resolve()).then((i) => {
315
315
  e(i, this);
316
316
  });
317
317
  else {
318
- const i = v(this).touchQueue;
318
+ const i = f(this).touchQueue;
319
319
  let r = i.get(t);
320
320
  r || (r = [], i.set(t, r)), r.push(e);
321
321
  }
@@ -327,10 +327,10 @@ let Qn = class {
327
327
  * @param factory Value factory.
328
328
  */
329
329
  registerAsync(t, e) {
330
- const n = v(this).resolvers.get(t);
331
- n && !n.async && process.env.NODE_ENV !== "production" && _(this).warn(`Mismatching resolver type. You are registering an async resolver with a key ('${t}') previously used by a non-async resolver.`);
330
+ const n = f(this).resolvers.get(t);
331
+ n && !n.async && process.env.NODE_ENV !== "production" && x(this).warn(`Mismatching resolver type. You are registering an async resolver with a key ('${t}') previously used by a non-async resolver.`);
332
332
  const i = new Qn(t, e, n, this);
333
- return v(this).resolvers.set(t, i), i.id;
333
+ return f(this).resolvers.set(t, i), i.id;
334
334
  }
335
335
  /**
336
336
  * Registers a factory resolver for constructing the value to be resolved.
@@ -338,10 +338,10 @@ let Qn = class {
338
338
  * @param factory Value factory.
339
339
  */
340
340
  registerFactory(t, e) {
341
- const n = v(this).resolvers.get(t);
342
- n && n.async && process.env.NODE_ENV !== "production" && _(this).warn(`Mismatching resolver type. You are registering a non-async resolver with a key ('${t}') previously used by an async resolver.`);
341
+ const n = f(this).resolvers.get(t);
342
+ n && n.async && process.env.NODE_ENV !== "production" && x(this).warn(`Mismatching resolver type. You are registering a non-async resolver with a key ('${t}') previously used by an async resolver.`);
343
343
  const i = new Zn(t, e, n, this);
344
- return v(this).resolvers.set(t, i), i.id;
344
+ return f(this).resolvers.set(t, i), i.id;
345
345
  }
346
346
  /**
347
347
  * Registers an synchronous resolver.
@@ -349,19 +349,19 @@ let Qn = class {
349
349
  * @param value Value.
350
350
  */
351
351
  register(t, e) {
352
- const n = v(this).resolvers.get(t);
353
- n && n.async && process.env.NODE_ENV !== "production" && _(this).warn(`Mismatching resolver type. You are registering a non-async resolver with a key ('${t}') previously used by an async resolver.`);
352
+ const n = f(this).resolvers.get(t);
353
+ n && n.async && process.env.NODE_ENV !== "production" && x(this).warn(`Mismatching resolver type. You are registering a non-async resolver with a key ('${t}') previously used by an async resolver.`);
354
354
  const i = new Yn(t, e, n, this);
355
- return v(this).resolvers.set(t, i), i.id;
355
+ return f(this).resolvers.set(t, i), i.id;
356
356
  }
357
357
  /**
358
358
  * Gets the value for a synchronous resolver.
359
359
  * @param key Key of resolver to get.
360
360
  */
361
361
  get(t) {
362
- const e = v(this).resolvers.get(t);
362
+ const e = f(this).resolvers.get(t);
363
363
  if (e)
364
- return e.async && process.env.NODE_ENV !== "production" && _(this).warn(`You are retrieving an async value (with key '${t}') by the non-async function 'container.get(key)'. This will not be supported in future versions. Use 'container.getAsync(key) instead.'`), e.resolve();
364
+ return e.async && process.env.NODE_ENV !== "production" && x(this).warn(`You are retrieving an async value (with key '${t}') by the non-async function 'container.get(key)'. This will not be supported in future versions. Use 'container.getAsync(key) instead.'`), e.resolve();
365
365
  if (this.parent)
366
366
  return this.parent.get(t);
367
367
  }
@@ -370,10 +370,10 @@ let Qn = class {
370
370
  * @param key Key of resolver to get.
371
371
  */
372
372
  getAsync(t) {
373
- const e = v(this).resolvers.get(t);
373
+ const e = f(this).resolvers.get(t);
374
374
  if (e) {
375
375
  if (!e.async)
376
- throw process.env.NODE_ENV !== "production" && _(this).warn(`You are retrieving a non-async value (with key '${t}') by the async function 'container.getAsync(key)'.Use 'container.get(key) instead.'`), "Mismatching resolver type";
376
+ throw process.env.NODE_ENV !== "production" && x(this).warn(`You are retrieving a non-async value (with key '${t}') by the async function 'container.getAsync(key)'.Use 'container.get(key) instead.'`), "Mismatching resolver type";
377
377
  return e.resolve();
378
378
  }
379
379
  return this.parent ? this.parent.getAsync(t) : Promise.resolve(void 0);
@@ -388,7 +388,7 @@ let Qn = class {
388
388
  }
389
389
  createChild(t, e) {
390
390
  const n = new nn(t, e, this);
391
- return v(this).children.push(n), n;
391
+ return f(this).children.push(n), n;
392
392
  }
393
393
  }, ds = class {
394
394
  /**
@@ -516,7 +516,7 @@ const Et = (s, t, e) => {
516
516
  try {
517
517
  return i.invoke(t, e);
518
518
  } catch (r) {
519
- _(s).error("An error occured when invoking a plugin.", i, r);
519
+ x(s).error("An error occured when invoking a plugin.", i, r);
520
520
  }
521
521
  });
522
522
  return Promise.all(n);
@@ -528,16 +528,16 @@ let ti = class {
528
528
  createInstance() {
529
529
  if (!this.widget.container.get("$instance")) {
530
530
  const t = this.widget.container.get("$types"), e = this.widget.container.get("$type");
531
- !e && _(this).error("Unable to create widget. No type is specified.");
531
+ !e && x(this).error("Unable to create widget. No type is specified.");
532
532
  const n = t[e];
533
- !n && _(this).error(`Unable to create widget. Type '${e}' is not registered.`), this.widget.events.dispatch("widget:create-instance", {}, { bubbles: !0 });
533
+ !n && x(this).error(`Unable to create widget. Type '${e}' is not registered.`), this.widget.events.dispatch("widget:create-instance", {}, { bubbles: !0 });
534
534
  try {
535
535
  this.widget.container.register(
536
536
  "$instance",
537
537
  new n(this.container)
538
538
  );
539
539
  } catch (i) {
540
- _(this).error("Unable to create widget type.", i);
540
+ x(this).error("Unable to create widget type.", i);
541
541
  }
542
542
  this.widget.events.dispatch("widget:instance-created", {}, { bubbles: !0 });
543
543
  }
@@ -712,7 +712,7 @@ const hi = (s, t, e, n) => {
712
712
  throw i;
713
713
  }
714
714
  };
715
- function fs(s, t) {
715
+ function vs(s, t) {
716
716
  return typeof s == "undefined" ? t : s;
717
717
  }
718
718
  let li = class {
@@ -727,8 +727,8 @@ let li = class {
727
727
  defaultArgs: void 0,
728
728
  handlerResolver: e
729
729
  } : i = {
730
- scope: fs(e.scope, Dt.Widget),
731
- stage: fs(e.stage, j.Post),
730
+ scope: vs(e.scope, Dt.Widget),
731
+ stage: vs(e.stage, j.Post),
732
732
  defaultArgs: e.defaultArgs,
733
733
  handlerResolver: n
734
734
  };
@@ -791,7 +791,7 @@ const cn = (s) => {
791
791
  );
792
792
  r.get("$plugins").push(u), l && u.invoke("initialize", null);
793
793
  } catch (u) {
794
- _(t).warn("Error when initializing plugin", u);
794
+ x(t).warn("Error when initializing plugin", u);
795
795
  }
796
796
  };
797
797
  t.container.get("$instance") ? h(!0) : t.events.subscribeOnce("widget:instance-created", () => h(!1));
@@ -860,13 +860,13 @@ function mi(s) {
860
860
  });
861
861
  });
862
862
  }
863
- const vs = (s) => typeof s != "undefined", lt = (s, t) => {
863
+ const fs = (s) => typeof s != "undefined", lt = (s, t) => {
864
864
  s.events.dispatch("widget:state-change", { state: t }, { bubbles: !0 }), s.state = t, s.events.dispatch("widget:state-changed", {}, { bubbles: !0 });
865
- }, k = at(), fi = (s) => {
865
+ }, k = at(), vi = (s) => {
866
866
  const { container: t, events: e } = s;
867
867
  t.get("$controller") || (t.register("$controller", new ti(t)), e.dispatch("widget:controller-created", {}, { bubbles: !0 }));
868
868
  };
869
- let vi = class {
869
+ let fi = class {
870
870
  /**
871
871
  * Creates a new `Widget` instance.
872
872
  * @param name Name of widget.
@@ -876,7 +876,7 @@ let vi = class {
876
876
  constructor(t, e, n) {
877
877
  this.state = "deactivated", this.name = t, this.implementation = e, this.container = e.container.createChild(this, t), this.events = e.events.createChild(this), k(this).subscriptions = [], n && e.configure((i) => {
878
878
  const r = i(t);
879
- vs(n.type) && r.type(n.type), vs(n.settings) && r.settings(n.settings), n.plugins && Object.keys(n.plugins).forEach((o) => {
879
+ fs(n.type) && r.type(n.type), fs(n.settings) && r.settings(n.settings), n.plugins && Object.keys(n.plugins).forEach((o) => {
880
880
  var a;
881
881
  const c = (a = n.plugins) == null ? void 0 : a[o];
882
882
  r.plugin(o, c);
@@ -902,7 +902,7 @@ let vi = class {
902
902
  );
903
903
  const e = this.implementation.instructions, n = gs(e, j.Pre, this);
904
904
  return Promise.all(n.map((i) => i.handler(this))).then(() => {
905
- fi(this);
905
+ vi(this);
906
906
  const i = gs(e, j.Post, this);
907
907
  return Promise.all(i.map((r) => r.handler(this))).then(() => {
908
908
  t && this.container.get("$controller").initialize();
@@ -930,7 +930,7 @@ let vi = class {
930
930
  })
931
931
  );
932
932
  const e = k(this).activatedPromise;
933
- return e ? (process.env.NODE_ENV !== "production" && _(this).warn(`Widget '${this.name}' has already been activated. The passed arguments for this activation will be discarded.`, t), e) : k(this).activatedPromise = this.load().then(() => this.container.get("$controller").activate(t));
933
+ return e ? (process.env.NODE_ENV !== "production" && x(this).warn(`Widget '${this.name}' has already been activated. The passed arguments for this activation will be discarded.`, t), e) : k(this).activatedPromise = this.load().then(() => this.container.get("$controller").activate(t));
934
934
  }
935
935
  /**
936
936
  * Invokes a command on a widget. If the widget isn't activate the invocation
@@ -940,7 +940,7 @@ let vi = class {
940
940
  */
941
941
  invoke(t, ...e) {
942
942
  const n = k(this).activatedPromise, i = (r, ...o) => n.then(this.load).then(() => this.container.get("$controller").invoke(r, ...o));
943
- return n ? i(t, ...e) : (process.env.NODE_ENV !== "production" && _(this).warn("You are invoking a command on a deactivated widget. The invocation will be queued until the widget is activated.", this), new Promise((r) => {
943
+ return n ? i(t, ...e) : (process.env.NODE_ENV !== "production" && x(this).warn("You are invoking a command on a deactivated widget. The invocation will be queued until the widget is activated.", this), new Promise((r) => {
944
944
  const o = this.events.subscribe("widget:state-changed", () => {
945
945
  this.state === "activated" && (o(), r(i(t, ...e)));
946
946
  });
@@ -999,7 +999,7 @@ class yi {
999
999
  * @param configuration Widget configuration.
1000
1000
  */
1001
1001
  createWidget(t, e) {
1002
- const n = new vi(t, this, e);
1002
+ const n = new fi(t, this, e);
1003
1003
  return this.widgets.set(n.name, n), n;
1004
1004
  }
1005
1005
  }
@@ -1054,7 +1054,7 @@ const Le = "#____version____#", oe = at(), wi = (s) => s.tenant ? `${s.name}:${s
1054
1054
  const e = wi(t);
1055
1055
  let n = this.implementations.find(e);
1056
1056
  if (n)
1057
- return process.env.NODE_ENV !== "production" && _(n).warn(`Implementation "${e}" already exist on current environment.`), n;
1057
+ return process.env.NODE_ENV !== "production" && x(n).warn(`Implementation "${e}" already exist on current environment.`), n;
1058
1058
  const i = oe(this).configurationApiExtensions;
1059
1059
  return n = bi(
1060
1060
  t,
@@ -1163,14 +1163,14 @@ const W = () => Math.floor((1 + Math.random()) * 65536).toString(16).substring(1
1163
1163
  function Jt() {
1164
1164
  return W() + W() + "-" + W() + "-" + W() + "-" + W() + "-" + W() + W() + W();
1165
1165
  }
1166
- var Pi = Object.defineProperty, _i = Object.defineProperties, xi = Object.getOwnPropertyDescriptors, $s = Object.getOwnPropertySymbols, Ei = Object.prototype.hasOwnProperty, Ci = Object.prototype.propertyIsEnumerable, As = (s, t, e) => t in s ? Pi(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, ke = (s, t) => {
1166
+ var Pi = Object.defineProperty, xi = Object.defineProperties, _i = Object.getOwnPropertyDescriptors, $s = Object.getOwnPropertySymbols, Ei = Object.prototype.hasOwnProperty, Ci = Object.prototype.propertyIsEnumerable, As = (s, t, e) => t in s ? Pi(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, ke = (s, t) => {
1167
1167
  for (var e in t || (t = {}))
1168
1168
  Ei.call(t, e) && As(s, e, t[e]);
1169
1169
  if ($s)
1170
1170
  for (var e of $s(t))
1171
1171
  Ci.call(t, e) && As(s, e, t[e]);
1172
1172
  return s;
1173
- }, Oi = (s, t) => _i(s, xi(t));
1173
+ }, Oi = (s, t) => xi(s, _i(t));
1174
1174
  const ki = (s) => {
1175
1175
  const t = [];
1176
1176
  return [
@@ -1528,18 +1528,18 @@ const Mi = (s) => {
1528
1528
  process.env.NODE_ENV !== "production" && console.time("state-processor.flush");
1529
1529
  const a = /* @__PURE__ */ new Map(), c = Ri(e.map((l, d) => [l, n[d]])), h = (l, d) => {
1530
1530
  var p;
1531
- const u = a.get(l) || {}, g = d.context && !u.context, m = d.properties && !u.properties, x = d.layout && !u.layout;
1531
+ const u = a.get(l) || {}, g = d.context && !u.context, m = d.properties && !u.properties, _ = d.layout && !u.layout;
1532
1532
  a.set(l, {
1533
1533
  context: u.context || g,
1534
1534
  properties: u.properties || m,
1535
- layout: u.layout || x
1536
- }), m && (l.attributes.properties = {}), x && (l.attributes.layout = {}), g && (l.attributes.context = N({}, (p = l.parent) == null ? void 0 : p.attributes.context));
1535
+ layout: u.layout || _
1536
+ }), m && (l.attributes.properties = {}), _ && (l.attributes.layout = {}), g && (l.attributes.context = N({}, (p = l.parent) == null ? void 0 : p.attributes.context));
1537
1537
  const M = [], ct = [], ht = [];
1538
1538
  if (l.changesets.forEach((b) => {
1539
- const [f, V] = b;
1540
- Wi(V.breakpoints, s.breakpoints) && (m && (typeof f.properties == "function" ? M.push(
1541
- f.properties
1542
- ) : N(l.attributes.properties, f.properties)), x && (typeof f.layout == "function" ? ct.push(f.layout) : N(l.attributes.layout, f.layout)), g && (typeof f.context == "function" ? ht.push(f.context) : N(l.attributes.context, f.context)));
1539
+ const [v, V] = b;
1540
+ Wi(V.breakpoints, s.breakpoints) && (m && (typeof v.properties == "function" ? M.push(
1541
+ v.properties
1542
+ ) : N(l.attributes.properties, v.properties)), _ && (typeof v.layout == "function" ? ct.push(v.layout) : N(l.attributes.layout, v.layout)), g && (typeof v.context == "function" ? ht.push(v.context) : N(l.attributes.context, v.context)));
1543
1543
  }), M.forEach((b) => {
1544
1544
  N(l.attributes.properties, b(l.attributes.properties));
1545
1545
  }), ct.forEach((b) => {
@@ -1547,11 +1547,11 @@ const Mi = (s) => {
1547
1547
  }), ht.forEach((b) => {
1548
1548
  N(l.attributes.context, b(l.attributes.context));
1549
1549
  }), g || d.recursive) {
1550
- const b = s.getBranch(l), f = d.recursive ? d : {
1550
+ const b = s.getBranch(l), v = d.recursive ? d : {
1551
1551
  context: !!g
1552
1552
  };
1553
1553
  l.getChildren(b).forEach((V) => {
1554
- h(V, f);
1554
+ h(V, v);
1555
1555
  });
1556
1556
  }
1557
1557
  };
@@ -1779,12 +1779,12 @@ const Li = "#____version____#", mn = class extends dn {
1779
1779
  };
1780
1780
  let Ui = mn;
1781
1781
  Ui.version = `${Li} (${Le})`;
1782
- var Vi = Object.defineProperty, _s = Object.getOwnPropertySymbols, Bi = Object.prototype.hasOwnProperty, Ji = Object.prototype.propertyIsEnumerable, xs = (s, t, e) => t in s ? Vi(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, X = (s, t) => {
1782
+ var Vi = Object.defineProperty, xs = Object.getOwnPropertySymbols, Bi = Object.prototype.hasOwnProperty, Ji = Object.prototype.propertyIsEnumerable, _s = (s, t, e) => t in s ? Vi(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, X = (s, t) => {
1783
1783
  for (var e in t || (t = {}))
1784
- Bi.call(t, e) && xs(s, e, t[e]);
1785
- if (_s)
1786
- for (var e of _s(t))
1787
- Ji.call(t, e) && xs(s, e, t[e]);
1784
+ Bi.call(t, e) && _s(s, e, t[e]);
1785
+ if (xs)
1786
+ for (var e of xs(t))
1787
+ Ji.call(t, e) && _s(s, e, t[e]);
1788
1788
  return s;
1789
1789
  }, A = /* @__PURE__ */ ((s) => (s.Cookie = "cookie", s.Local = "local", s.Session = "session", s))(A || {}), qt = /* @__PURE__ */ ((s) => (s.Tenant = "tenant", s.Implementation = "implementation", s.Widget = "widget", s))(qt || {}), $ = /* @__PURE__ */ ((s) => (s.Necessary = "necessary", s.Functional = "functional", s.Analytical = "analytical", s.Marketing = "marketing", s))($ || {});
1790
1790
  const Ft = (s, t, e, n = {}) => Es(s, e).then((i) => (process.env.NODE_ENV !== "production" && i && C.warn(
@@ -1811,7 +1811,7 @@ const Ft = (s, t, e, n = {}) => Es(s, e).then((i) => (process.env.NODE_ENV !== "
1811
1811
  return l[a][t] = yn(r, e, h), c === A.Cookie ? Gi(s, l) : tr(s, c, l);
1812
1812
  })))), J = (s, t, e = A.Session) => (Je(s), typeof t == "undefined" ? (process.env.NODE_ENV !== "production" && C.warn("readStorage: Undefined key passed when reading storage. ", t, e), Promise.resolve(void 0)) : e === A.Cookie ? Zi(s).then((n) => Ne(n, t)) : Xi(s, e).then((n) => Ne(n, t))), nt = (s) => !!Object.entries(s).filter(([t, e]) => typeof e != "undefined").length, he = (s) => Object.entries(s).filter(([t, e]) => typeof e != "undefined").forEach(([t, { value: e }]) => {
1813
1813
  typeof e == "undefined" && delete s[t];
1814
- }), fn = (s, t) => {
1814
+ }), vn = (s, t) => {
1815
1815
  const e = {
1816
1816
  tenant: X(X({}, s.tenant), t.tenant),
1817
1817
  implementation: X(X({}, s.implementation), t.implementation),
@@ -1847,8 +1847,8 @@ const Ft = (s, t, e, n = {}) => Es(s, e).then((i) => (process.env.NODE_ENV !== "
1847
1847
  implementation: r,
1848
1848
  widget: o
1849
1849
  };
1850
- }, vn = (s, t) => {
1851
- const e = Be(s), n = fn(e, t), [i, r, o] = Kt(s), { tenant: a, implementation: c, widget: h } = n, l = qi(t), d = qe({ days: -1 });
1850
+ }, fn = (s, t) => {
1851
+ const e = Be(s), n = vn(e, t), [i, r, o] = Kt(s), { tenant: a, implementation: c, widget: h } = n, l = qi(t), d = qe({ days: -1 });
1852
1852
  de(i, a, nt(a) ? l : d), de(
1853
1853
  r,
1854
1854
  c,
@@ -1862,7 +1862,7 @@ const Ft = (s, t, e, n = {}) => Es(s, e).then((i) => (process.env.NODE_ENV !== "
1862
1862
  widget: JSON.parse(a)
1863
1863
  };
1864
1864
  }, Se = (s, t, e) => {
1865
- const n = Mt(s, t), i = fn(n, e), [r, o, a] = Kt(s), { tenant: c, implementation: h, widget: l } = i;
1865
+ const n = Mt(s, t), i = vn(n, e), [r, o, a] = Kt(s), { tenant: c, implementation: h, widget: l } = i;
1866
1866
  nt(c) ? t.setItem(r, JSON.stringify(c)) : t.removeItem(r), nt(h) ? t.setItem(o, JSON.stringify(h)) : t.removeItem(o), nt(l) ? t.setItem(a, JSON.stringify(l)) : t.removeItem(a);
1867
1867
  }, Fi = () => ({ tenant: {}, implementation: {}, widget: {} }), Ki = (s) => s ? !!s && /* @__PURE__ */ new Date() > new Date(s) : !1, Ne = (s, t) => {
1868
1868
  const e = s.widget[t] || s.implementation[t] || s.tenant[t];
@@ -1890,11 +1890,11 @@ const Ft = (s, t, e, n = {}) => Es(s, e).then((i) => (process.env.NODE_ENV !== "
1890
1890
  e,
1891
1891
  n
1892
1892
  ].map((c) => Qi(c, i));
1893
- vn(s, r), Se(s, window.localStorage, o), Se(s, window.sessionStorage, a);
1893
+ fn(s, r), Se(s, window.localStorage, o), Se(s, window.sessionStorage, a);
1894
1894
  }, qe = (s = { days: 30 }) => {
1895
1895
  const { days: t = 0, hours: e = 0, minutes: n = 0, seconds: i = 0 } = s, r = /* @__PURE__ */ new Date();
1896
1896
  return r.setTime(r.getTime() + e * 60 * 60 * 1e3), r.setTime(r.getTime() + t * 24 * 60 * 60 * 1e3), r.setTime(r.getTime() + n * 60 * 1e3), r.setTime(r.getTime() + i * 1e3), r.toISOString();
1897
- }, Zi = (s) => At(document)(() => Be(s)), Gi = (s, t) => At(document)(() => vn(s, t)), Xi = (s, t) => {
1897
+ }, Zi = (s) => At(document)(() => Be(s)), Gi = (s, t) => At(document)(() => fn(s, t)), Xi = (s, t) => {
1898
1898
  const e = t === A.Local ? window.localStorage : window.sessionStorage;
1899
1899
  return At(e)(() => Mt(s, e));
1900
1900
  }, tr = (s, t, e) => {
@@ -2949,14 +2949,14 @@ class Qe {
2949
2949
  });
2950
2950
  }
2951
2951
  }
2952
- var pr = Object.defineProperty, gr = Object.defineProperties, mr = Object.getOwnPropertyDescriptors, Ss = Object.getOwnPropertySymbols, fr = Object.getPrototypeOf, vr = Object.prototype.hasOwnProperty, yr = Object.prototype.propertyIsEnumerable, br = Reflect.get, Ns = (s, t, e) => t in s ? pr(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, $n = (s, t) => {
2952
+ var pr = Object.defineProperty, gr = Object.defineProperties, mr = Object.getOwnPropertyDescriptors, Ss = Object.getOwnPropertySymbols, vr = Object.getPrototypeOf, fr = Object.prototype.hasOwnProperty, yr = Object.prototype.propertyIsEnumerable, br = Reflect.get, Ns = (s, t, e) => t in s ? pr(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, $n = (s, t) => {
2953
2953
  for (var e in t || (t = {}))
2954
- vr.call(t, e) && Ns(s, e, t[e]);
2954
+ fr.call(t, e) && Ns(s, e, t[e]);
2955
2955
  if (Ss)
2956
2956
  for (var e of Ss(t))
2957
2957
  yr.call(t, e) && Ns(s, e, t[e]);
2958
2958
  return s;
2959
- }, An = (s, t) => gr(s, mr(t)), wr = (s, t, e) => br(fr(s), e, t), mt = (s, t, e) => new Promise((n, i) => {
2959
+ }, An = (s, t) => gr(s, mr(t)), wr = (s, t, e) => br(vr(s), e, t), mt = (s, t, e) => new Promise((n, i) => {
2960
2960
  var r = (c) => {
2961
2961
  try {
2962
2962
  a(e.next(c));
@@ -3152,7 +3152,7 @@ const Pn = (s) => {
3152
3152
  for (n in s)
3153
3153
  e = s[n], t[n] = typeof e == "object" && e !== null ? Pn(e) : e;
3154
3154
  return t;
3155
- }, _r = Pn;
3155
+ }, xr = Pn;
3156
3156
  function Is(s) {
3157
3157
  let t = 0;
3158
3158
  if (s.length === 0)
@@ -3163,7 +3163,7 @@ function Is(s) {
3163
3163
  }
3164
3164
  return t.toString();
3165
3165
  }
3166
- let xr = class {
3166
+ let _r = class {
3167
3167
  constructor(s, t) {
3168
3168
  this.lockWarningTime = s, this.lockErrorTime = t, this.tasks = [], this.current = Promise.resolve(), this.next = this.next.bind(this);
3169
3169
  }
@@ -3195,7 +3195,7 @@ let xr = class {
3195
3195
  };
3196
3196
  const kt = /* @__PURE__ */ new WeakMap();
3197
3197
  function Zt(s, t = 5e3, e = 1e3) {
3198
- return kt.has(s) || kt.set(s, new xr(t, e)), (n) => new Promise((i, r) => {
3198
+ return kt.has(s) || kt.set(s, new _r(t, e)), (n) => new Promise((i, r) => {
3199
3199
  const o = kt.get(s);
3200
3200
  o.add(n, i, r, () => {
3201
3201
  o.tasks.length || kt.delete(s);
@@ -3243,7 +3243,7 @@ let Xt = class {
3243
3243
  select() {
3244
3244
  return new jr(this.platform, this);
3245
3245
  }
3246
- }, _n = class {
3246
+ }, xn = class {
3247
3247
  constructor(s, t, e) {
3248
3248
  this.platform = s, this.node = t, this.actions = new Ze(
3249
3249
  s,
@@ -3364,7 +3364,7 @@ let Ze = class {
3364
3364
  ), a = this.platform.actionsState.watchers.filter((c) => c.key === s && (!c.ns || !this.ns || c.ns === this.ns) && o.some((h) => c.target.match(h))).map((c) => c.fn);
3365
3365
  return Promise.all(
3366
3366
  o.map((c) => {
3367
- const h = new _n(
3367
+ const h = new xn(
3368
3368
  this.platform,
3369
3369
  c,
3370
3370
  this.ns
@@ -3497,15 +3497,15 @@ let Ms = class {
3497
3497
  }), delete s.parent;
3498
3498
  }
3499
3499
  };
3500
- const xn = (s, t, e) => {
3500
+ const _n = (s, t, e) => {
3501
3501
  for (let n = 0, i = s.length; n < i && e(s[n]) !== !0; n++) {
3502
3502
  const r = t[s[n].id] || "default", o = s[n].getChildren(r);
3503
- xn(o, t, e);
3503
+ _n(o, t, e);
3504
3504
  }
3505
3505
  }, Ge = (s, t, e) => {
3506
3506
  if (e(s) !== !0) {
3507
3507
  const n = t[s.id] || "default", i = s.children[n];
3508
- xn(i, t, e);
3508
+ _n(i, t, e);
3509
3509
  }
3510
3510
  }, ge = (s, t) => {
3511
3511
  const e = [];
@@ -3569,18 +3569,18 @@ const Hr = (s) => {
3569
3569
  process.env.NODE_ENV !== "production" && console.time("state-processor.flush");
3570
3570
  const a = /* @__PURE__ */ new Map(), c = zr(e.map((l, d) => [l, n[d]])), h = (l, d) => {
3571
3571
  var p;
3572
- const u = a.get(l) || {}, g = d.context && !u.context, m = d.properties && !u.properties, x = d.layout && !u.layout;
3572
+ const u = a.get(l) || {}, g = d.context && !u.context, m = d.properties && !u.properties, _ = d.layout && !u.layout;
3573
3573
  a.set(l, {
3574
3574
  context: u.context || g,
3575
3575
  properties: u.properties || m,
3576
- layout: u.layout || x
3577
- }), m && (l.attributes.properties = {}), x && (l.attributes.layout = {}), g && (l.attributes.context = T({}, (p = l.parent) == null ? void 0 : p.attributes.context));
3576
+ layout: u.layout || _
3577
+ }), m && (l.attributes.properties = {}), _ && (l.attributes.layout = {}), g && (l.attributes.context = T({}, (p = l.parent) == null ? void 0 : p.attributes.context));
3578
3578
  const M = [], ct = [], ht = [];
3579
3579
  if (l.changesets.forEach((b) => {
3580
- const [f, V] = b;
3581
- Lr(V.breakpoints, s.breakpoints) && (m && (typeof f.properties == "function" ? M.push(
3582
- f.properties
3583
- ) : T(l.attributes.properties, f.properties)), x && (typeof f.layout == "function" ? ct.push(f.layout) : T(l.attributes.layout, f.layout)), g && (typeof f.context == "function" ? ht.push(f.context) : T(l.attributes.context, f.context)));
3580
+ const [v, V] = b;
3581
+ Lr(V.breakpoints, s.breakpoints) && (m && (typeof v.properties == "function" ? M.push(
3582
+ v.properties
3583
+ ) : T(l.attributes.properties, v.properties)), _ && (typeof v.layout == "function" ? ct.push(v.layout) : T(l.attributes.layout, v.layout)), g && (typeof v.context == "function" ? ht.push(v.context) : T(l.attributes.context, v.context)));
3584
3584
  }), M.forEach((b) => {
3585
3585
  T(l.attributes.properties, b(l.attributes.properties));
3586
3586
  }), ct.forEach((b) => {
@@ -3588,11 +3588,11 @@ const Hr = (s) => {
3588
3588
  }), ht.forEach((b) => {
3589
3589
  T(l.attributes.context, b(l.attributes.context));
3590
3590
  }), g || d.recursive) {
3591
- const b = s.getBranch(l), f = d.recursive ? d : {
3591
+ const b = s.getBranch(l), v = d.recursive ? d : {
3592
3592
  context: !!g
3593
3593
  };
3594
3594
  l.getChildren(b).forEach((V) => {
3595
- h(V, f);
3595
+ h(V, v);
3596
3596
  });
3597
3597
  }
3598
3598
  };
@@ -3771,7 +3771,7 @@ const Vr = (s, t, e, n = Gt(), i = {}) => s.getAsync("components").then((r) => {
3771
3771
  o = t;
3772
3772
  const a = {}, c = (h) => {
3773
3773
  const l = a[h.id];
3774
- return l ? Promise.resolve(l.controller) : En.getInstance(s).then((d) => new _n(d, h, n));
3774
+ return l ? Promise.resolve(l.controller) : En.getInstance(s).then((d) => new xn(d, h, n));
3775
3775
  };
3776
3776
  r.events.subscribe(
3777
3777
  "components:node-enter",
@@ -3824,7 +3824,7 @@ const Fr = (s, t, e, n = {}) => Hs(s, e).then((i) => (process.env.NODE_ENV !== "
3824
3824
  duration: h
3825
3825
  } = n, l = Yr();
3826
3826
  return l[a][t] = kn(r, e, h), c === D.Cookie ? eo(s, l) : no(s, c, l);
3827
- })))), Kr = (s, t, e = D.Session) => (es(s), typeof t == "undefined" ? (process.env.NODE_ENV !== "production" && O.warn("readStorage: Undefined key passed when reading storage. ", t, e), Promise.resolve(void 0)) : e === D.Cookie ? to(s).then((n) => De(n, t)) : so(s, e).then((n) => De(n, t))), it = (s) => !!Object.entries(s).filter(([t, e]) => typeof e != "undefined").length, fe = (s) => Object.entries(s).filter(([t, e]) => typeof e != "undefined").forEach(([t, { value: e }]) => {
3827
+ })))), Kr = (s, t, e = D.Session) => (es(s), typeof t == "undefined" ? (process.env.NODE_ENV !== "production" && O.warn("readStorage: Undefined key passed when reading storage. ", t, e), Promise.resolve(void 0)) : e === D.Cookie ? to(s).then((n) => De(n, t)) : so(s, e).then((n) => De(n, t))), it = (s) => !!Object.entries(s).filter(([t, e]) => typeof e != "undefined").length, ve = (s) => Object.entries(s).filter(([t, e]) => typeof e != "undefined").forEach(([t, { value: e }]) => {
3828
3828
  typeof e == "undefined" && delete s[t];
3829
3829
  }), Cn = (s, t) => {
3830
3830
  const e = {
@@ -3832,7 +3832,7 @@ const Fr = (s, t, e, n = {}) => Hs(s, e).then((i) => (process.env.NODE_ENV !== "
3832
3832
  implementation: tt(tt({}, s.implementation), t.implementation),
3833
3833
  widget: tt(tt({}, s.widget), t.widget)
3834
3834
  };
3835
- return fe(e.tenant), fe(e.implementation), fe(e.widget), e;
3835
+ return ve(e.tenant), ve(e.implementation), ve(e.widget), e;
3836
3836
  }, Qr = (s) => Object.entries(s).reduce((t, e) => {
3837
3837
  const [n, i] = e;
3838
3838
  return Object.entries(i).forEach((r) => {
@@ -3849,14 +3849,14 @@ const Fr = (s, t, e, n = {}) => Hs(s, e).then((i) => (process.env.NODE_ENV !== "
3849
3849
  `humany_${Is(n + e)}`,
3850
3850
  `humany_${Is(n + e + t)}`
3851
3851
  ];
3852
- }, ve = (s) => {
3852
+ }, fe = (s) => {
3853
3853
  const t = new RegExp(`(?:^|;)\\s?${s}=(.*?)(?:;|$)`, "i"), e = document.cookie.match(t);
3854
3854
  return e && e[1] && JSON.parse(e[1]) || void 0;
3855
3855
  }, ye = (s, t, e) => {
3856
3856
  const n = `${s}=${JSON.stringify(t).trim()}`, i = `expires=${new Date(e).toUTCString()}`, r = "path=/", o = "SameSite=None;Secure";
3857
3857
  return document.cookie = `${n}; ${i}; ${r}; ${o}`;
3858
3858
  }, ts = (s) => {
3859
- const [t, e, n] = te(s), i = ve(t) || {}, r = ve(e) || {}, o = ve(n) || {};
3859
+ const [t, e, n] = te(s), i = fe(t) || {}, r = fe(e) || {}, o = fe(n) || {};
3860
3860
  return {
3861
3861
  tenant: i,
3862
3862
  implementation: r,
@@ -3890,7 +3890,7 @@ const Fr = (s, t, e, n = {}) => Hs(s, e).then((i) => (process.env.NODE_ENV !== "
3890
3890
  value: s,
3891
3891
  category: t
3892
3892
  }, Gr = (s, t) => {
3893
- const e = _r(s);
3893
+ const e = xr(s);
3894
3894
  return Object.entries(e).forEach(([n, i]) => {
3895
3895
  Object.entries(i).forEach(([r, o]) => {
3896
3896
  const { expiration: a, category: c } = o;
@@ -4241,10 +4241,10 @@ const go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4241
4241
  __proto__: null,
4242
4242
  default: Tt
4243
4243
  }, Symbol.toStringTag, { value: "Module" })), mo = /* @__PURE__ */ Nn(go);
4244
- var fo = po;
4245
- In(fo);
4246
- var vo = mo;
4244
+ var vo = po;
4247
4245
  In(vo);
4246
+ var fo = mo;
4247
+ In(fo);
4248
4248
  function In(s) {
4249
4249
  return s && s.__esModule ? s : { default: s };
4250
4250
  }
@@ -4478,10 +4478,10 @@ const $o = (s) => new Dn(typeof s == "string" ? s : s + "", void 0, is), Ao = (s
4478
4478
  * SPDX-License-Identifier: BSD-3-Clause
4479
4479
  */
4480
4480
  var Ae;
4481
- const Ut = window, Js = Ut.trustedTypes, _o = Js ? Js.emptyScript : "", qs = Ut.reactiveElementPolyfillSupport, Me = { toAttribute(s, t) {
4481
+ const Ut = window, Js = Ut.trustedTypes, xo = Js ? Js.emptyScript : "", qs = Ut.reactiveElementPolyfillSupport, Me = { toAttribute(s, t) {
4482
4482
  switch (t) {
4483
4483
  case Boolean:
4484
- s = s ? _o : null;
4484
+ s = s ? xo : null;
4485
4485
  break;
4486
4486
  case Object:
4487
4487
  case Array:
@@ -4694,9 +4694,9 @@ et[Re] = !0, et.elementProperties = /* @__PURE__ */ new Map(), et.elementStyles
4694
4694
  * Copyright 2017 Google LLC
4695
4695
  * SPDX-License-Identifier: BSD-3-Clause
4696
4696
  */
4697
- var _e;
4698
- const Vt = window, rt = Vt.trustedTypes, Fs = rt ? rt.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, We = "$lit$", z = `lit$${(Math.random() + "").slice(9)}$`, Rn = "?" + z, xo = `<${Rn}>`, Y = document, bt = () => Y.createComment(""), wt = (s) => s === null || typeof s != "object" && typeof s != "function", Wn = Array.isArray, Eo = (s) => Wn(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", xe = `[
4699
- \f\r]`, ut = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Ks = /-->/g, Qs = />/g, B = RegExp(`>|${xe}(?:([^\\s"'>=/]+)(${xe}*=${xe}*(?:[^
4697
+ var xe;
4698
+ const Vt = window, rt = Vt.trustedTypes, Fs = rt ? rt.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, We = "$lit$", z = `lit$${(Math.random() + "").slice(9)}$`, Rn = "?" + z, _o = `<${Rn}>`, Y = document, bt = () => Y.createComment(""), wt = (s) => s === null || typeof s != "object" && typeof s != "function", Wn = Array.isArray, Eo = (s) => Wn(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", _e = `[
4699
+ \f\r]`, ut = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Ks = /-->/g, Qs = />/g, B = RegExp(`>|${_e}(?:([^\\s"'>=/]+)(${_e}*=${_e}*(?:[^
4700
4700
  \f\r"'\`<>=]|("|')|))|$)`, "g"), Ys = /'/g, Zs = /"/g, Hn = /^(?:script|style|textarea|title)$/i, Co = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), Nt = Co(1), Z = Symbol.for("lit-noChange"), y = Symbol.for("lit-nothing"), Gs = /* @__PURE__ */ new WeakMap(), Q = Y.createTreeWalker(Y, 129, null, !1);
4701
4701
  function zn(s, t) {
4702
4702
  if (!Array.isArray(s) || !s.hasOwnProperty("raw"))
@@ -4712,7 +4712,7 @@ const Oo = (s, t) => {
4712
4712
  for (; p < c.length && (o.lastIndex = p, l = o.exec(c), l !== null); )
4713
4713
  p = o.lastIndex, o === ut ? l[1] === "!--" ? o = Ks : l[1] !== void 0 ? o = Qs : l[2] !== void 0 ? (Hn.test(l[2]) && (i = RegExp("</" + l[2], "g")), o = B) : l[3] !== void 0 && (o = B) : o === B ? l[0] === ">" ? (o = i != null ? i : ut, d = -1) : l[1] === void 0 ? d = -2 : (d = o.lastIndex - l[2].length, h = l[1], o = l[3] === void 0 ? B : l[3] === '"' ? Zs : Ys) : o === Zs || o === Ys ? o = B : o === Ks || o === Qs ? o = ut : (o = B, i = void 0);
4714
4714
  const u = o === B && s[a + 1].startsWith("/>") ? " " : "";
4715
- r += o === ut ? c + xo : d >= 0 ? (n.push(h), c.slice(0, d) + We + c.slice(d) + z + u) : c + z + (d === -2 ? (n.push(void 0), a) : u);
4715
+ r += o === ut ? c + _o : d >= 0 ? (n.push(h), c.slice(0, d) + We + c.slice(d) + z + u) : c + z + (d === -2 ? (n.push(void 0), a) : u);
4716
4716
  }
4717
4717
  return [zn(s, r + (s[e] || "<?>") + (t === 2 ? "</svg>" : "")), n];
4718
4718
  };
@@ -4793,7 +4793,7 @@ class ko {
4793
4793
  for (; h !== void 0; ) {
4794
4794
  if (a === h.index) {
4795
4795
  let l;
4796
- h.type === 2 ? l = new _t(o, o.nextSibling, this, t) : h.type === 1 ? l = new h.ctor(o, h.name, h.strings, this, t) : h.type === 6 && (l = new jo(o, this, t)), this._$AV.push(l), h = i[++c];
4796
+ h.type === 2 ? l = new xt(o, o.nextSibling, this, t) : h.type === 1 ? l = new h.ctor(o, h.name, h.strings, this, t) : h.type === 6 && (l = new jo(o, this, t)), this._$AV.push(l), h = i[++c];
4797
4797
  }
4798
4798
  a !== (h == null ? void 0 : h.index) && (o = Q.nextNode(), a++);
4799
4799
  }
@@ -4805,7 +4805,7 @@ class ko {
4805
4805
  n !== void 0 && (n.strings !== void 0 ? (n._$AI(t, n, e), e += n.strings.length - 2) : n._$AI(t[e])), e++;
4806
4806
  }
4807
4807
  }
4808
- class _t {
4808
+ class xt {
4809
4809
  constructor(t, e, n, i) {
4810
4810
  var r;
4811
4811
  this.type = 2, this._$AH = y, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = n, this.options = i, this._$Cp = (r = i == null ? void 0 : i.isConnected) === null || r === void 0 || r;
@@ -4856,7 +4856,7 @@ class _t {
4856
4856
  const e = this._$AH;
4857
4857
  let n, i = 0;
4858
4858
  for (const r of t)
4859
- i === e.length ? e.push(n = new _t(this.k(bt()), this.k(bt()), this, this.options)) : n = e[i], n._$AI(r), i++;
4859
+ i === e.length ? e.push(n = new xt(this.k(bt()), this.k(bt()), this, this.options)) : n = e[i], n._$AI(r), i++;
4860
4860
  i < e.length && (this._$AR(n && n._$AB.nextSibling, i), e.length = i);
4861
4861
  }
4862
4862
  _$AR(t = this._$AA.nextSibling, e) {
@@ -4943,14 +4943,14 @@ class jo {
4943
4943
  }
4944
4944
  }
4945
4945
  const Xs = Vt.litHtmlPolyfillSupport;
4946
- Xs == null || Xs($t, _t), ((_e = Vt.litHtmlVersions) !== null && _e !== void 0 ? _e : Vt.litHtmlVersions = []).push("2.8.0");
4946
+ Xs == null || Xs($t, xt), ((xe = Vt.litHtmlVersions) !== null && xe !== void 0 ? xe : Vt.litHtmlVersions = []).push("2.8.0");
4947
4947
  const Do = (s, t, e) => {
4948
4948
  var n, i;
4949
4949
  const r = (n = e == null ? void 0 : e.renderBefore) !== null && n !== void 0 ? n : t;
4950
4950
  let o = r._$litPart$;
4951
4951
  if (o === void 0) {
4952
4952
  const a = (i = e == null ? void 0 : e.renderBefore) !== null && i !== void 0 ? i : null;
4953
- r._$litPart$ = o = new _t(t.insertBefore(bt(), a), a, void 0, e != null ? e : {});
4953
+ r._$litPart$ = o = new xt(t.insertBefore(bt(), a), a, void 0, e != null ? e : {});
4954
4954
  }
4955
4955
  return o._$AI(s), o;
4956
4956
  };
@@ -4960,7 +4960,7 @@ const Do = (s, t, e) => {
4960
4960
  * SPDX-License-Identifier: BSD-3-Clause
4961
4961
  */
4962
4962
  var Ee, Ce;
4963
- let ft = class extends et {
4963
+ let vt = class extends et {
4964
4964
  constructor() {
4965
4965
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
4966
4966
  }
@@ -4985,9 +4985,9 @@ let ft = class extends et {
4985
4985
  return Z;
4986
4986
  }
4987
4987
  };
4988
- ft.finalized = !0, ft._$litElement$ = !0, (Ee = globalThis.litElementHydrateSupport) === null || Ee === void 0 || Ee.call(globalThis, { LitElement: ft });
4988
+ vt.finalized = !0, vt._$litElement$ = !0, (Ee = globalThis.litElementHydrateSupport) === null || Ee === void 0 || Ee.call(globalThis, { LitElement: vt });
4989
4989
  const tn = globalThis.litElementPolyfillSupport;
4990
- tn == null || tn({ LitElement: ft });
4990
+ tn == null || tn({ LitElement: vt });
4991
4991
  ((Ce = globalThis.litElementVersions) !== null && Ce !== void 0 ? Ce : globalThis.litElementVersions = []).push("3.3.3");
4992
4992
  /**
4993
4993
  * @license
@@ -5081,7 +5081,7 @@ var Uo = Object.defineProperty, Vo = Object.getOwnPropertyDescriptor, se = (s, t
5081
5081
  (o = s[r]) && (i = (n ? o(t, e, i) : o(i)) || i);
5082
5082
  return n && i && Uo(t, e, i), i;
5083
5083
  };
5084
- class G extends ft {
5084
+ class G extends vt {
5085
5085
  constructor() {
5086
5086
  super(...arguments), this.active = !1, this.loaded = !1;
5087
5087
  }
@@ -5290,7 +5290,7 @@ class en {
5290
5290
  }
5291
5291
  }
5292
5292
  const Jo = "descriptor", qo = "container", ma = "properties";
5293
- class fa {
5293
+ class va {
5294
5294
  constructor(t) {
5295
5295
  (this.host = t).addController(this), new en(
5296
5296
  t,
@@ -5340,12 +5340,12 @@ const Fo = (s, t, e, n, i) => s.getAsync("componentResolver").then((r) => (r.reg
5340
5340
  return c.timestamp = n.timestamp, c.content.push(R(P({}, n.content), { key: n.key })), e;
5341
5341
  }
5342
5342
  return e.push(r), e;
5343
- }, []), va = (s) => w(void 0, null, function* () {
5343
+ }, []), fa = (s) => w(void 0, null, function* () {
5344
5344
  const t = yield s.getAsync("router"), e = yield Qe.getInstance(s);
5345
5345
  return Fo(
5346
5346
  s,
5347
5347
  "conversation",
5348
- import("./conversation-e1b55f28.js"),
5348
+ import("./conversation-d7cd0ee9.js"),
5349
5349
  (n) => w(void 0, null, function* () {
5350
5350
  const { rehydrate: i = !1 } = n.properties(), o = t.getRouteData().params.id || n.node.name || "component", a = yield e.createController(o, { rehydrate: i }), c = e.registerController(
5351
5351
  a,
@@ -5361,20 +5361,20 @@ const Fo = (s, t, e, n, i) => s.getAsync("componentResolver").then((r) => (r.reg
5361
5361
  n.properties(l)
5362
5362
  ), a.setComponentMountedState(!0);
5363
5363
  const d = (u) => {
5364
- const { loading: g, typingActors: m, messages: x } = u;
5364
+ const { loading: g, typingActors: m, messages: _ } = u;
5365
5365
  n.writeProperties({
5366
5366
  loading: g,
5367
5367
  typingActors: m,
5368
- messages: Ko(x, h)
5368
+ messages: Ko(_, h)
5369
5369
  });
5370
5370
  };
5371
5371
  d(a.getMessageStream()), c && (n.writeProperties({
5372
5372
  conversationControllerId: a.id
5373
5373
  }), n.actions.create("user-submit", (u, g) => {
5374
5374
  if (g) {
5375
- const { preventDefault: m, validationPromise: x } = g;
5375
+ const { preventDefault: m, validationPromise: _ } = g;
5376
5376
  if (m) {
5377
- x && x().then((M) => {
5377
+ _ && _().then((M) => {
5378
5378
  M && a.user.print(M);
5379
5379
  });
5380
5380
  return;
@@ -5425,16 +5425,16 @@ const ya = (s, t, e) => w(void 0, null, function* () {
5425
5425
  yield e;
5426
5426
  });
5427
5427
  export {
5428
- qo as B,
5429
5428
  Pt as C,
5429
+ qo as V,
5430
5430
  Qe as a,
5431
5431
  Wt as b,
5432
- va as c,
5433
- fa as d,
5434
- hr as e,
5435
- cr as f,
5432
+ fa as c,
5433
+ hr as d,
5434
+ cr as e,
5435
+ ma as f,
5436
5436
  Qo as g,
5437
- ya as r,
5438
- ma as u
5437
+ va as m,
5438
+ ya as r
5439
5439
  };
5440
- //# sourceMappingURL=index-246b0d35.js.map
5440
+ //# sourceMappingURL=index-87a5d014.js.map