@sapia-ai/chatbot-v3 1.0.2 → 1.1.0

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.
Files changed (49) hide show
  1. package/dist/{EmbeddedVideoPlayer-CNcds-dW.js → EmbeddedVideoPlayer-COUZHpPa.js} +14 -14
  2. package/dist/{Preview-Dmns6UWL.js → Preview-wPnYtccF.js} +3 -3
  3. package/dist/api/client.d.ts +6 -2
  4. package/dist/api/types/messages.d.ts +16 -5
  5. package/dist/api/types/responses.d.ts +48 -7
  6. package/dist/api.js +2 -2
  7. package/dist/core/bubbles/types.d.ts +2 -5
  8. package/dist/core/i18n/languages.d.ts +6 -1
  9. package/dist/core/interview.d.ts +15 -8
  10. package/dist/core/media/mimeTypes.d.ts +6 -1
  11. package/dist/core/media/recorder.d.ts +11 -2
  12. package/dist/core/store.d.ts +21 -1
  13. package/dist/core/theme/contrast.d.ts +6 -0
  14. package/dist/core/theme/cssVariables.d.ts +5 -0
  15. package/dist/core/theme/types.d.ts +3 -0
  16. package/dist/{dist-BSi28_cP.js → dist-BOe6WyvN.js} +92 -92
  17. package/dist/{dist-B9SbMqZU.js → dist-Bwlks_W8.js} +98 -98
  18. package/dist/{fix-webm-duration-BWL-ZRDX.js → fix-webm-duration-QAy9T6AR.js} +2 -2
  19. package/dist/index.js +7443 -5031
  20. package/dist/{jsx-runtime-8QqjHL5t.js → jsx-runtime-24G8w2Bf.js} +2 -2
  21. package/dist/{messages-Czlp86gl.js → messages-DCvBcspv.js} +260 -245
  22. package/dist/react/AnswerInput.d.ts +4 -5
  23. package/dist/react/bubbleViewModel.d.ts +25 -9
  24. package/dist/react/strings.d.ts +26 -3
  25. package/dist/{react-DJysvNxz.js → react-BjO903pN.js} +33 -33
  26. package/dist/{react-QrtEtv1G.js → react-Bw5AugJc.js} +31 -31
  27. package/dist/{react-dE7BdGuR.js → react-D8hV9uow.js} +10 -10
  28. package/dist/{react-NauLB_WU.js → react-DDjfkpOE.js} +38 -38
  29. package/dist/{react-Dbs-sPBo.js → react-DEF8h8hc.js} +37 -37
  30. package/dist/{react-B0K-sClg.js → react-DOgLiyZi.js} +2 -2
  31. package/dist/{react-be7q6yw_.js → react-DPFikgTM.js} +55 -55
  32. package/dist/{react-ChCcxVnw.js → react-qa12DkXH.js} +34 -34
  33. package/dist/{react-czRIxT0g.js → react-y4vaW3OH.js} +46 -46
  34. package/dist/ui/chat/ChatBubble/ChatBubble.d.ts +14 -5
  35. package/dist/ui/chat/ChatLog/ChatLog.d.ts +6 -4
  36. package/dist/ui/chat/EditBanner/EditBanner.d.ts +16 -0
  37. package/dist/ui/chat/SummaryCard/SummaryCard.d.ts +46 -0
  38. package/dist/ui/chat/types.d.ts +21 -8
  39. package/dist/ui/constants.d.ts +1 -0
  40. package/dist/ui/inputs/OptionList/OptionList.d.ts +3 -1
  41. package/dist/ui/inputs/TextAnswerInput/TextAnswerInput.d.ts +11 -4
  42. package/dist/ui/inputs/VideoRecorder/VideoRecorder.d.ts +6 -2
  43. package/dist/ui/markdown.d.ts +4 -0
  44. package/dist/ui/motion.d.ts +2 -0
  45. package/dist/ui/primitives/Button/Button.d.ts +5 -1
  46. package/dist/ui/primitives/Dialog/Dialog.d.ts +2 -1
  47. package/dist/ui/shell/WidgetRoot/WidgetRoot.d.ts +7 -1
  48. package/dist-umd/sapia-chatbot.umd.js +394 -270
  49. package/package.json +4 -1
@@ -1,5 +1,5 @@
1
- import { a as e, i as t, n, r, t as i } from "./classPrivateFieldSet2-DtQPURVD.js";
2
- import { t as a } from "./defineProperty-DiFpLzd2.js";
1
+ import { t as e } from "./defineProperty-DiFpLzd2.js";
2
+ import { a as t, i as n, n as r, r as i, t as a } from "./classPrivateFieldSet2-DtQPURVD.js";
3
3
  //#region ../../node_modules/.pnpm/custom-media-element@1.4.6/node_modules/custom-media-element/dist/custom-media-element.js
4
4
  var o, s, c = /* @__PURE__ */ "abort.canplay.canplaythrough.durationchange.emptied.encrypted.ended.error.loadeddata.loadedmetadata.loadstart.pause.play.playing.progress.ratechange.seeked.seeking.stalled.suspend.timeupdate.volumechange.waiting.waitingforkey.resize.enterpictureinpicture.leavepictureinpicture.webkitbeginfullscreen.webkitendfullscreen.webkitpresentationmodechanged".split("."), l = [
5
5
  "autopictureinpicture",
@@ -68,19 +68,19 @@ function u(o, { tag: s, is: u }) {
68
68
  var d, f, p, m, h, g, _, v, y, b;
69
69
  let x = (d = globalThis.document) == null || (f = d.createElement) == null ? void 0 : f.call(d, s, { is: u }), S = x ? ne(x) : [];
70
70
  return h = /* @__PURE__ */ new WeakMap(), g = /* @__PURE__ */ new WeakMap(), _ = /* @__PURE__ */ new WeakMap(), v = /* @__PURE__ */ new WeakMap(), y = /* @__PURE__ */ new WeakMap(), b = /* @__PURE__ */ new WeakSet(), p = class c extends o {
71
- constructor(...n) {
72
- super(...n), e(this, b), t(this, h, !1), t(this, g, null), t(this, _, /* @__PURE__ */ new Map()), t(this, v, void 0), t(this, y, void 0), a(this, "get", void 0), a(this, "set", void 0), a(this, "call", void 0);
71
+ constructor(...r) {
72
+ super(...r), t(this, b), n(this, h, !1), n(this, g, null), n(this, _, /* @__PURE__ */ new Map()), n(this, v, void 0), n(this, y, void 0), e(this, "get", void 0), e(this, "set", void 0), e(this, "call", void 0);
73
73
  }
74
74
  static get observedAttributes() {
75
75
  var e, t;
76
- return r(p, c, C).call(c), [...(e = x == null || (t = x.constructor) == null ? void 0 : t.observedAttributes) == null ? [] : e, ...l];
76
+ return i(p, c, C).call(c), [...(e = x == null || (t = x.constructor) == null ? void 0 : t.observedAttributes) == null ? [] : e, ...l];
77
77
  }
78
78
  get nativeEl() {
79
- var e, t, i, a, o;
80
- return r(b, this, w).call(this), (e = (t = (i = (a = n(g, this)) == null ? this.querySelector(":scope > [slot=media]") : a) == null ? this.querySelector(s) : i) == null ? (o = this.shadowRoot) == null ? void 0 : o.querySelector(s) : t) == null ? null : e;
79
+ var e, t, n, a, o;
80
+ return i(b, this, w).call(this), (e = (t = (n = (a = r(g, this)) == null ? this.querySelector(":scope > [slot=media]") : a) == null ? this.querySelector(s) : n) == null ? (o = this.shadowRoot) == null ? void 0 : o.querySelector(s) : t) == null ? null : e;
81
81
  }
82
82
  set nativeEl(e) {
83
- i(g, this, e);
83
+ a(g, this, e);
84
84
  }
85
85
  get defaultMuted() {
86
86
  return this.hasAttribute("muted");
@@ -108,38 +108,38 @@ function u(o, { tag: s, is: u }) {
108
108
  u && (e.is = u), s && (e.part = s), this.shadowRoot.innerHTML = this.constructor.getTemplateHTML(e);
109
109
  }
110
110
  this.nativeEl.muted = this.hasAttribute("muted");
111
- for (let e of S) r(b, this, k).call(this, e);
112
- r(b, this, T).call(this);
111
+ for (let e of S) i(b, this, k).call(this, e);
112
+ i(b, this, T).call(this);
113
113
  }
114
114
  handleEvent(e) {
115
115
  e.target === this.nativeEl && this.dispatchEvent(new CustomEvent(e.type, { detail: e.detail }));
116
116
  }
117
117
  attributeChangedCallback(e, t, n) {
118
- r(b, this, w).call(this), r(b, this, ie).call(this, e, t, n);
118
+ i(b, this, w).call(this), i(b, this, ie).call(this, e, t, n);
119
119
  }
120
120
  connectedCallback() {
121
- r(b, this, w).call(this), n(y, this) || r(b, this, T).call(this);
121
+ i(b, this, w).call(this), r(y, this) || i(b, this, T).call(this);
122
122
  }
123
123
  disconnectedCallback() {
124
124
  var e;
125
- if ((e = n(v, this)) == null || e.disconnect(), i(v, this, void 0), n(y, this)) {
125
+ if ((e = r(v, this)) == null || e.disconnect(), a(v, this, void 0), r(y, this)) {
126
126
  var t;
127
- (t = this.shadowRoot) == null || t.removeEventListener("slotchange", n(y, this)), i(y, this, void 0);
127
+ (t = this.shadowRoot) == null || t.removeEventListener("slotchange", r(y, this)), a(y, this, void 0);
128
128
  }
129
129
  for (let e of this.constructor.Events) {
130
- var r;
131
- (r = this.shadowRoot) == null || r.removeEventListener(e, this, !0);
130
+ var n;
131
+ (n = this.shadowRoot) == null || n.removeEventListener(e, this, !0);
132
132
  }
133
- n(_, this).forEach((e) => e.remove()), n(_, this).clear(), i(g, this, null);
133
+ r(_, this).forEach((e) => e.remove()), r(_, this).clear(), a(g, this, null);
134
134
  }
135
- }, a(p, "getTemplateHTML", s.endsWith("audio") ? ee : te), a(p, "shadowRootOptions", { mode: "open" }), a(p, "Events", c), m = { _: !1 }, p;
135
+ }, e(p, "getTemplateHTML", s.endsWith("audio") ? ee : te), e(p, "shadowRootOptions", { mode: "open" }), e(p, "Events", c), m = { _: !1 }, p;
136
136
  function C() {
137
- if (r(p, this, m)._) return;
138
- m._ = r(p, this, !0);
137
+ if (i(p, this, m)._) return;
138
+ m._ = i(p, this, !0);
139
139
  let e = new Set(this.observedAttributes);
140
140
  e.delete("muted");
141
141
  for (let t of S) if (!(t in this.prototype)) if (typeof x[t] == "function") this.prototype[t] = function(...e) {
142
- return r(b, this, w).call(this), (() => {
142
+ return i(b, this, w).call(this), (() => {
143
143
  var n;
144
144
  if (this.call) return this.call(t, ...e);
145
145
  let r = (n = this.nativeEl) == null ? void 0 : n[t];
@@ -148,20 +148,20 @@ function u(o, { tag: s, is: u }) {
148
148
  };
149
149
  else {
150
150
  let n = { get() {
151
- var n, i, a;
152
- r(b, this, w).call(this);
151
+ var n, r, a;
152
+ i(b, this, w).call(this);
153
153
  let o = t.toLowerCase();
154
154
  if (e.has(o)) {
155
155
  let e = this.getAttribute(o);
156
156
  return e === null ? !1 : e === "" ? !0 : e;
157
157
  }
158
- return (n = (i = this.get) == null ? void 0 : i.call(this, t)) == null ? (a = this.nativeEl) == null ? void 0 : a[t] : n;
158
+ return (n = (r = this.get) == null ? void 0 : r.call(this, t)) == null ? (a = this.nativeEl) == null ? void 0 : a[t] : n;
159
159
  } };
160
160
  t !== t.toUpperCase() && (n.set = function(n) {
161
- r(b, this, w).call(this);
162
- let i = t.toLowerCase();
163
- if (e.has(i)) {
164
- n === !0 || n === !1 || n == null ? this.toggleAttribute(i, !!n) : this.setAttribute(i, n);
161
+ i(b, this, w).call(this);
162
+ let r = t.toLowerCase();
163
+ if (e.has(r)) {
164
+ n === !0 || n === !1 || n == null ? this.toggleAttribute(r, !!n) : this.setAttribute(r, n);
165
165
  return;
166
166
  }
167
167
  if (this.set) {
@@ -173,11 +173,11 @@ function u(o, { tag: s, is: u }) {
173
173
  }
174
174
  }
175
175
  function w() {
176
- n(h, this) || (i(h, this, !0), this.init());
176
+ r(h, this) || (a(h, this, !0), this.init());
177
177
  }
178
178
  function T() {
179
179
  var e;
180
- i(v, this, new MutationObserver(r(b, this, D).bind(this))), i(y, this, () => r(b, this, E).call(this)), (e = this.shadowRoot) == null || e.addEventListener("slotchange", n(y, this)), r(b, this, E).call(this);
180
+ a(v, this, new MutationObserver(i(b, this, D).bind(this))), a(y, this, () => i(b, this, E).call(this)), (e = this.shadowRoot) == null || e.addEventListener("slotchange", r(y, this)), i(b, this, E).call(this);
181
181
  for (let e of this.constructor.Events) {
182
182
  var t;
183
183
  (t = this.shadowRoot) == null || t.addEventListener(e, this, !0);
@@ -185,26 +185,26 @@ function u(o, { tag: s, is: u }) {
185
185
  }
186
186
  function E() {
187
187
  var e;
188
- let t = new Map(n(_, this)), i = (e = this.shadowRoot) == null ? void 0 : e.querySelector("slot:not([name])");
189
- (i == null ? void 0 : i.assignedElements({ flatten: !0 }).filter((e) => ["track", "source"].includes(e.localName))).forEach((e) => {
190
- var i;
188
+ let t = new Map(r(_, this)), n = (e = this.shadowRoot) == null ? void 0 : e.querySelector("slot:not([name])");
189
+ (n == null ? void 0 : n.assignedElements({ flatten: !0 }).filter((e) => ["track", "source"].includes(e.localName))).forEach((e) => {
190
+ var n;
191
191
  t.delete(e);
192
- let a = n(_, this).get(e);
192
+ let a = r(_, this).get(e);
193
193
  if (!a) {
194
194
  var o;
195
- a = e.cloneNode(), n(_, this).set(e, a), (o = n(v, this)) == null || o.observe(e, { attributes: !0 });
195
+ a = e.cloneNode(), r(_, this).set(e, a), (o = r(v, this)) == null || o.observe(e, { attributes: !0 });
196
196
  }
197
- (i = this.nativeEl) == null || i.append(a), r(b, this, O).call(this, a);
197
+ (n = this.nativeEl) == null || n.append(a), i(b, this, O).call(this, a);
198
198
  }), t.forEach((e, t) => {
199
- e.remove(), n(_, this).delete(t);
199
+ e.remove(), r(_, this).delete(t);
200
200
  });
201
201
  }
202
202
  function D(e) {
203
- for (let i of e) if (i.type === "attributes") {
204
- let { target: e, attributeName: a } = i, o = n(_, this).get(e);
203
+ for (let n of e) if (n.type === "attributes") {
204
+ let { target: e, attributeName: a } = n, o = r(_, this).get(e);
205
205
  if (o && a) {
206
206
  var t;
207
- o.setAttribute(a, (t = e.getAttribute(a)) == null ? "" : t), r(b, this, O).call(this, o);
207
+ o.setAttribute(a, (t = e.getAttribute(a)) == null ? "" : t), i(b, this, O).call(this, o);
208
208
  }
209
209
  }
210
210
  }
@@ -257,8 +257,8 @@ u((s = globalThis.HTMLElement) == null ? class {} : s, { tag: "audio" });
257
257
  //#endregion
258
258
  //#region ../../node_modules/.pnpm/media-tracks@0.3.5/node_modules/media-tracks/dist/change-event.js
259
259
  var p = class extends Event {
260
- constructor(e, t) {
261
- super(e), a(this, "track", void 0), this.track = t.track;
260
+ constructor(t, n) {
261
+ super(t), e(this, "track", void 0), this.track = n.track;
262
262
  }
263
263
  }, m = /* @__PURE__ */ new WeakMap();
264
264
  function h(e) {
@@ -306,38 +306,38 @@ var x = /* @__PURE__ */ new WeakMap(), S = /* @__PURE__ */ new WeakMap(), C = /*
306
306
  _ = Symbol.iterator;
307
307
  var T = class extends EventTarget {
308
308
  constructor() {
309
- super(), e(this, w), t(this, x, void 0), t(this, S, void 0), t(this, C, void 0), h(this).trackSet = /* @__PURE__ */ new Set();
309
+ super(), t(this, w), n(this, x, void 0), n(this, S, void 0), n(this, C, void 0), h(this).trackSet = /* @__PURE__ */ new Set();
310
310
  }
311
311
  [_]() {
312
- return E.call(r(w, this)).values();
312
+ return E.call(i(w, this)).values();
313
313
  }
314
314
  get length() {
315
- return E.call(r(w, this)).size;
315
+ return E.call(i(w, this)).size;
316
316
  }
317
317
  getTrackById(e) {
318
318
  var t;
319
- return (t = [...E.call(r(w, this))].find((t) => t.id === e)) == null ? null : t;
319
+ return (t = [...E.call(i(w, this))].find((t) => t.id === e)) == null ? null : t;
320
320
  }
321
321
  get selectedIndex() {
322
- return [...E.call(r(w, this))].findIndex((e) => e.selected);
322
+ return [...E.call(i(w, this))].findIndex((e) => e.selected);
323
323
  }
324
324
  get onaddtrack() {
325
- return n(x, this);
325
+ return r(x, this);
326
326
  }
327
327
  set onaddtrack(e) {
328
- n(x, this) && (this.removeEventListener("addtrack", n(x, this)), i(x, this, void 0)), typeof e == "function" && (i(x, this, e), this.addEventListener("addtrack", e));
328
+ r(x, this) && (this.removeEventListener("addtrack", r(x, this)), a(x, this, void 0)), typeof e == "function" && (a(x, this, e), this.addEventListener("addtrack", e));
329
329
  }
330
330
  get onremovetrack() {
331
- return n(S, this);
331
+ return r(S, this);
332
332
  }
333
333
  set onremovetrack(e) {
334
- n(S, this) && (this.removeEventListener("removetrack", n(S, this)), i(S, this, void 0)), typeof e == "function" && (i(S, this, e), this.addEventListener("removetrack", e));
334
+ r(S, this) && (this.removeEventListener("removetrack", r(S, this)), a(S, this, void 0)), typeof e == "function" && (a(S, this, e), this.addEventListener("removetrack", e));
335
335
  }
336
336
  get onchange() {
337
- return n(C, this);
337
+ return r(C, this);
338
338
  }
339
339
  set onchange(e) {
340
- n(C, this) && (this.removeEventListener("change", n(C, this)), i(C, this, void 0)), typeof e == "function" && (i(C, this, e), this.addEventListener("change", e));
340
+ r(C, this) && (this.removeEventListener("change", r(C, this)), a(C, this, void 0)), typeof e == "function" && (a(C, this, e), this.addEventListener("change", e));
341
341
  }
342
342
  };
343
343
  function E() {
@@ -346,8 +346,8 @@ function E() {
346
346
  //#endregion
347
347
  //#region ../../node_modules/.pnpm/media-tracks@0.3.5/node_modules/media-tracks/dist/rendition-event.js
348
348
  var D = class extends Event {
349
- constructor(e, t) {
350
- super(e), a(this, "rendition", void 0), this.rendition = t.rendition;
349
+ constructor(t, n) {
350
+ super(t), e(this, "rendition", void 0), this.rendition = n.rendition;
351
351
  }
352
352
  }, O;
353
353
  function k(e, t) {
@@ -387,7 +387,7 @@ var j = /* @__PURE__ */ new WeakMap(), M = /* @__PURE__ */ new WeakMap(), N = /*
387
387
  O = Symbol.iterator;
388
388
  var P = class extends EventTarget {
389
389
  constructor(...e) {
390
- super(...e), t(this, j, void 0), t(this, M, void 0), t(this, N, void 0);
390
+ super(...e), n(this, j, void 0), n(this, M, void 0), n(this, N, void 0);
391
391
  }
392
392
  [O]() {
393
393
  return A(this).values();
@@ -406,36 +406,36 @@ var P = class extends EventTarget {
406
406
  for (let [t, n] of A(this).entries()) n.selected = t === e;
407
407
  }
408
408
  get onaddrendition() {
409
- return n(j, this);
409
+ return r(j, this);
410
410
  }
411
411
  set onaddrendition(e) {
412
- n(j, this) && (this.removeEventListener("addrendition", n(j, this)), i(j, this, void 0)), typeof e == "function" && (i(j, this, e), this.addEventListener("addrendition", e));
412
+ r(j, this) && (this.removeEventListener("addrendition", r(j, this)), a(j, this, void 0)), typeof e == "function" && (a(j, this, e), this.addEventListener("addrendition", e));
413
413
  }
414
414
  get onremoverendition() {
415
- return n(M, this);
415
+ return r(M, this);
416
416
  }
417
417
  set onremoverendition(e) {
418
- n(M, this) && (this.removeEventListener("removerendition", n(M, this)), i(M, this, void 0)), typeof e == "function" && (i(M, this, e), this.addEventListener("removerendition", e));
418
+ r(M, this) && (this.removeEventListener("removerendition", r(M, this)), a(M, this, void 0)), typeof e == "function" && (a(M, this, e), this.addEventListener("removerendition", e));
419
419
  }
420
420
  get onchange() {
421
- return n(N, this);
421
+ return r(N, this);
422
422
  }
423
423
  set onchange(e) {
424
- n(N, this) && (this.removeEventListener("change", n(N, this)), i(N, this, void 0)), typeof e == "function" && (i(N, this, e), this.addEventListener("change", e));
424
+ r(N, this) && (this.removeEventListener("change", r(N, this)), a(N, this, void 0)), typeof e == "function" && (a(N, this, e), this.addEventListener("change", e));
425
425
  }
426
426
  }, F = /* @__PURE__ */ new WeakMap(), oe = class {
427
427
  constructor() {
428
- a(this, "src", void 0), a(this, "id", void 0), a(this, "width", void 0), a(this, "height", void 0), a(this, "bitrate", void 0), a(this, "frameRate", void 0), a(this, "codec", void 0), t(this, F, !1);
428
+ e(this, "src", void 0), e(this, "id", void 0), e(this, "width", void 0), e(this, "height", void 0), e(this, "bitrate", void 0), e(this, "frameRate", void 0), e(this, "codec", void 0), n(this, F, !1);
429
429
  }
430
430
  get selected() {
431
- return n(F, this);
431
+ return r(F, this);
432
432
  }
433
433
  set selected(e) {
434
- n(F, this) !== e && (i(F, this, e), ae(this));
434
+ r(F, this) !== e && (a(F, this, e), ae(this));
435
435
  }
436
436
  }, I = /* @__PURE__ */ new WeakMap(), se = class {
437
437
  constructor() {
438
- a(this, "id", void 0), a(this, "kind", void 0), a(this, "label", ""), a(this, "language", ""), a(this, "sourceBuffer", void 0), t(this, I, !1);
438
+ e(this, "id", void 0), e(this, "kind", void 0), e(this, "label", ""), e(this, "language", ""), e(this, "sourceBuffer", void 0), n(this, I, !1);
439
439
  }
440
440
  addRendition(e, t, n, r, i, a) {
441
441
  let o = new oe();
@@ -445,10 +445,10 @@ var P = class extends EventTarget {
445
445
  ie(e);
446
446
  }
447
447
  get selected() {
448
- return n(I, this);
448
+ return r(I, this);
449
449
  }
450
450
  set selected(e) {
451
- n(I, this) !== e && (i(I, this, e), e === !0 && b(this));
451
+ r(I, this) !== e && (a(I, this, e), e === !0 && b(this));
452
452
  }
453
453
  }, L;
454
454
  function ce(e, t) {
@@ -488,7 +488,7 @@ var z = /* @__PURE__ */ new WeakMap(), B = /* @__PURE__ */ new WeakMap(), V = /*
488
488
  L = Symbol.iterator;
489
489
  var H = class extends EventTarget {
490
490
  constructor(...e) {
491
- super(...e), t(this, z, void 0), t(this, B, void 0), t(this, V, void 0);
491
+ super(...e), n(this, z, void 0), n(this, B, void 0), n(this, V, void 0);
492
492
  }
493
493
  [L]() {
494
494
  return R(this).values();
@@ -507,32 +507,32 @@ var H = class extends EventTarget {
507
507
  for (let [t, n] of R(this).entries()) n.selected = t === e;
508
508
  }
509
509
  get onaddrendition() {
510
- return n(z, this);
510
+ return r(z, this);
511
511
  }
512
512
  set onaddrendition(e) {
513
- n(z, this) && (this.removeEventListener("addrendition", n(z, this)), i(z, this, void 0)), typeof e == "function" && (i(z, this, e), this.addEventListener("addrendition", e));
513
+ r(z, this) && (this.removeEventListener("addrendition", r(z, this)), a(z, this, void 0)), typeof e == "function" && (a(z, this, e), this.addEventListener("addrendition", e));
514
514
  }
515
515
  get onremoverendition() {
516
- return n(B, this);
516
+ return r(B, this);
517
517
  }
518
518
  set onremoverendition(e) {
519
- n(B, this) && (this.removeEventListener("removerendition", n(B, this)), i(B, this, void 0)), typeof e == "function" && (i(B, this, e), this.addEventListener("removerendition", e));
519
+ r(B, this) && (this.removeEventListener("removerendition", r(B, this)), a(B, this, void 0)), typeof e == "function" && (a(B, this, e), this.addEventListener("removerendition", e));
520
520
  }
521
521
  get onchange() {
522
- return n(V, this);
522
+ return r(V, this);
523
523
  }
524
524
  set onchange(e) {
525
- n(V, this) && (this.removeEventListener("change", n(V, this)), i(V, this, void 0)), typeof e == "function" && (i(V, this, e), this.addEventListener("change", e));
525
+ r(V, this) && (this.removeEventListener("change", r(V, this)), a(V, this, void 0)), typeof e == "function" && (a(V, this, e), this.addEventListener("change", e));
526
526
  }
527
527
  }, U = /* @__PURE__ */ new WeakMap(), de = class {
528
528
  constructor() {
529
- a(this, "src", void 0), a(this, "id", void 0), a(this, "bitrate", void 0), a(this, "codec", void 0), t(this, U, !1);
529
+ e(this, "src", void 0), e(this, "id", void 0), e(this, "bitrate", void 0), e(this, "codec", void 0), n(this, U, !1);
530
530
  }
531
531
  get selected() {
532
- return n(U, this);
532
+ return r(U, this);
533
533
  }
534
534
  set selected(e) {
535
- n(U, this) !== e && (i(U, this, e), ue(this));
535
+ r(U, this) !== e && (a(U, this, e), ue(this));
536
536
  }
537
537
  }, fe;
538
538
  function W(e, t) {
@@ -565,35 +565,35 @@ var K = /* @__PURE__ */ new WeakMap(), q = /* @__PURE__ */ new WeakMap(), J = /*
565
565
  fe = Symbol.iterator;
566
566
  var X = class extends EventTarget {
567
567
  constructor() {
568
- super(), e(this, Y), t(this, K, void 0), t(this, q, void 0), t(this, J, void 0), h(this).trackSet = /* @__PURE__ */ new Set();
568
+ super(), t(this, Y), n(this, K, void 0), n(this, q, void 0), n(this, J, void 0), h(this).trackSet = /* @__PURE__ */ new Set();
569
569
  }
570
570
  [fe]() {
571
- return Z.call(r(Y, this)).values();
571
+ return Z.call(i(Y, this)).values();
572
572
  }
573
573
  get length() {
574
- return Z.call(r(Y, this)).size;
574
+ return Z.call(i(Y, this)).size;
575
575
  }
576
576
  getTrackById(e) {
577
577
  var t;
578
- return (t = [...Z.call(r(Y, this))].find((t) => t.id === e)) == null ? null : t;
578
+ return (t = [...Z.call(i(Y, this))].find((t) => t.id === e)) == null ? null : t;
579
579
  }
580
580
  get onaddtrack() {
581
- return n(K, this);
581
+ return r(K, this);
582
582
  }
583
583
  set onaddtrack(e) {
584
- n(K, this) && (this.removeEventListener("addtrack", n(K, this)), i(K, this, void 0)), typeof e == "function" && (i(K, this, e), this.addEventListener("addtrack", e));
584
+ r(K, this) && (this.removeEventListener("addtrack", r(K, this)), a(K, this, void 0)), typeof e == "function" && (a(K, this, e), this.addEventListener("addtrack", e));
585
585
  }
586
586
  get onremovetrack() {
587
- return n(q, this);
587
+ return r(q, this);
588
588
  }
589
589
  set onremovetrack(e) {
590
- n(q, this) && (this.removeEventListener("removetrack", n(q, this)), i(q, this, void 0)), typeof e == "function" && (i(q, this, e), this.addEventListener("removetrack", e));
590
+ r(q, this) && (this.removeEventListener("removetrack", r(q, this)), a(q, this, void 0)), typeof e == "function" && (a(q, this, e), this.addEventListener("removetrack", e));
591
591
  }
592
592
  get onchange() {
593
- return n(J, this);
593
+ return r(J, this);
594
594
  }
595
595
  set onchange(e) {
596
- n(J, this) && (this.removeEventListener("change", n(J, this)), i(J, this, void 0)), typeof e == "function" && (i(J, this, e), this.addEventListener("change", e));
596
+ r(J, this) && (this.removeEventListener("change", r(J, this)), a(J, this, void 0)), typeof e == "function" && (a(J, this, e), this.addEventListener("change", e));
597
597
  }
598
598
  };
599
599
  function Z() {
@@ -603,7 +603,7 @@ function Z() {
603
603
  //#region ../../node_modules/.pnpm/media-tracks@0.3.5/node_modules/media-tracks/dist/audio-track.js
604
604
  var Q = /* @__PURE__ */ new WeakMap(), me = class {
605
605
  constructor() {
606
- a(this, "id", void 0), a(this, "kind", void 0), a(this, "label", ""), a(this, "language", ""), a(this, "sourceBuffer", void 0), t(this, Q, !1);
606
+ e(this, "id", void 0), e(this, "kind", void 0), e(this, "label", ""), e(this, "language", ""), e(this, "sourceBuffer", void 0), n(this, Q, !1);
607
607
  }
608
608
  addRendition(e, t, n) {
609
609
  let r = new de();
@@ -613,10 +613,10 @@ var Q = /* @__PURE__ */ new WeakMap(), me = class {
613
613
  le(e);
614
614
  }
615
615
  get enabled() {
616
- return n(Q, this);
616
+ return r(Q, this);
617
617
  }
618
618
  set enabled(e) {
619
- n(Q, this) !== e && (i(Q, this, e), pe(this));
619
+ r(Q, this) !== e && (a(Q, this, e), pe(this));
620
620
  }
621
621
  }, he = $(globalThis.HTMLMediaElement, "video"), ge = $(globalThis.HTMLMediaElement, "audio");
622
622
  function _e(e) {
@@ -699,4 +699,4 @@ function ye(e) {
699
699
  //#endregion
700
700
  export { f as n, _e as t };
701
701
 
702
- //# sourceMappingURL=dist-BSi28_cP.js.map
702
+ //# sourceMappingURL=dist-BOe6WyvN.js.map