@sapia-ai/chatbot-v3 1.0.3 → 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.
- package/dist/{EmbeddedVideoPlayer-CNcds-dW.js → EmbeddedVideoPlayer-COUZHpPa.js} +14 -14
- package/dist/{Preview-Dmns6UWL.js → Preview-wPnYtccF.js} +3 -3
- package/dist/api/client.d.ts +6 -2
- package/dist/api/types/messages.d.ts +16 -5
- package/dist/api/types/responses.d.ts +48 -7
- package/dist/api.js +2 -2
- package/dist/core/bubbles/types.d.ts +2 -5
- package/dist/core/i18n/languages.d.ts +6 -1
- package/dist/core/interview.d.ts +15 -8
- package/dist/core/media/mimeTypes.d.ts +6 -1
- package/dist/core/media/recorder.d.ts +11 -2
- package/dist/core/store.d.ts +21 -1
- package/dist/core/theme/contrast.d.ts +6 -0
- package/dist/core/theme/cssVariables.d.ts +5 -0
- package/dist/core/theme/types.d.ts +3 -0
- package/dist/{dist-BSi28_cP.js → dist-BOe6WyvN.js} +92 -92
- package/dist/{dist-B9SbMqZU.js → dist-Bwlks_W8.js} +98 -98
- package/dist/{fix-webm-duration-BWL-ZRDX.js → fix-webm-duration-QAy9T6AR.js} +2 -2
- package/dist/index.js +7445 -5039
- package/dist/{jsx-runtime-8QqjHL5t.js → jsx-runtime-24G8w2Bf.js} +2 -2
- package/dist/{messages-Czlp86gl.js → messages-DCvBcspv.js} +260 -245
- package/dist/react/AnswerInput.d.ts +4 -5
- package/dist/react/bubbleViewModel.d.ts +25 -9
- package/dist/react/strings.d.ts +26 -3
- package/dist/{react-DJysvNxz.js → react-BjO903pN.js} +33 -33
- package/dist/{react-QrtEtv1G.js → react-Bw5AugJc.js} +31 -31
- package/dist/{react-dE7BdGuR.js → react-D8hV9uow.js} +10 -10
- package/dist/{react-NauLB_WU.js → react-DDjfkpOE.js} +38 -38
- package/dist/{react-Dbs-sPBo.js → react-DEF8h8hc.js} +37 -37
- package/dist/{react-B0K-sClg.js → react-DOgLiyZi.js} +2 -2
- package/dist/{react-be7q6yw_.js → react-DPFikgTM.js} +55 -55
- package/dist/{react-ChCcxVnw.js → react-qa12DkXH.js} +34 -34
- package/dist/{react-czRIxT0g.js → react-y4vaW3OH.js} +46 -46
- package/dist/ui/chat/ChatBubble/ChatBubble.d.ts +14 -5
- package/dist/ui/chat/ChatLog/ChatLog.d.ts +6 -4
- package/dist/ui/chat/EditBanner/EditBanner.d.ts +16 -0
- package/dist/ui/chat/SummaryCard/SummaryCard.d.ts +46 -0
- package/dist/ui/chat/types.d.ts +21 -8
- package/dist/ui/constants.d.ts +1 -0
- package/dist/ui/inputs/OptionList/OptionList.d.ts +3 -1
- package/dist/ui/inputs/TextAnswerInput/TextAnswerInput.d.ts +11 -4
- package/dist/ui/inputs/VideoRecorder/VideoRecorder.d.ts +6 -2
- package/dist/ui/markdown.d.ts +4 -0
- package/dist/ui/motion.d.ts +2 -0
- package/dist/ui/primitives/Button/Button.d.ts +5 -1
- package/dist/ui/primitives/Dialog/Dialog.d.ts +2 -1
- package/dist/ui/shell/WidgetRoot/WidgetRoot.d.ts +7 -1
- package/dist-umd/sapia-chatbot.umd.js +394 -270
- package/package.json +4 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as a } from "./
|
|
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(...
|
|
72
|
-
super(...
|
|
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
|
|
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,
|
|
80
|
-
return
|
|
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
|
-
|
|
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)
|
|
112
|
-
|
|
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
|
-
|
|
118
|
+
i(b, this, w).call(this), i(b, this, ie).call(this, e, t, n);
|
|
119
119
|
}
|
|
120
120
|
connectedCallback() {
|
|
121
|
-
|
|
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 =
|
|
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",
|
|
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
|
|
131
|
-
(
|
|
130
|
+
var n;
|
|
131
|
+
(n = this.shadowRoot) == null || n.removeEventListener(e, this, !0);
|
|
132
132
|
}
|
|
133
|
-
|
|
133
|
+
r(_, this).forEach((e) => e.remove()), r(_, this).clear(), a(g, this, null);
|
|
134
134
|
}
|
|
135
|
-
},
|
|
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 (
|
|
138
|
-
m._ =
|
|
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
|
|
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,
|
|
152
|
-
|
|
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 = (
|
|
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
|
-
|
|
162
|
-
let
|
|
163
|
-
if (e.has(
|
|
164
|
-
n === !0 || n === !1 || n == null ? this.toggleAttribute(
|
|
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
|
-
|
|
176
|
+
r(h, this) || (a(h, this, !0), this.init());
|
|
177
177
|
}
|
|
178
178
|
function T() {
|
|
179
179
|
var e;
|
|
180
|
-
|
|
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(
|
|
189
|
-
(
|
|
190
|
-
var
|
|
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 =
|
|
192
|
+
let a = r(_, this).get(e);
|
|
193
193
|
if (!a) {
|
|
194
194
|
var o;
|
|
195
|
-
a = e.cloneNode(),
|
|
195
|
+
a = e.cloneNode(), r(_, this).set(e, a), (o = r(v, this)) == null || o.observe(e, { attributes: !0 });
|
|
196
196
|
}
|
|
197
|
-
(
|
|
197
|
+
(n = this.nativeEl) == null || n.append(a), i(b, this, O).call(this, a);
|
|
198
198
|
}), t.forEach((e, t) => {
|
|
199
|
-
e.remove(),
|
|
199
|
+
e.remove(), r(_, this).delete(t);
|
|
200
200
|
});
|
|
201
201
|
}
|
|
202
202
|
function D(e) {
|
|
203
|
-
for (let
|
|
204
|
-
let { target: e, attributeName: a } =
|
|
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),
|
|
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(
|
|
261
|
-
super(
|
|
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(),
|
|
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(
|
|
312
|
+
return E.call(i(w, this)).values();
|
|
313
313
|
}
|
|
314
314
|
get length() {
|
|
315
|
-
return E.call(
|
|
315
|
+
return E.call(i(w, this)).size;
|
|
316
316
|
}
|
|
317
317
|
getTrackById(e) {
|
|
318
318
|
var t;
|
|
319
|
-
return (t = [...E.call(
|
|
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(
|
|
322
|
+
return [...E.call(i(w, this))].findIndex((e) => e.selected);
|
|
323
323
|
}
|
|
324
324
|
get onaddtrack() {
|
|
325
|
-
return
|
|
325
|
+
return r(x, this);
|
|
326
326
|
}
|
|
327
327
|
set onaddtrack(e) {
|
|
328
|
-
|
|
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
|
|
331
|
+
return r(S, this);
|
|
332
332
|
}
|
|
333
333
|
set onremovetrack(e) {
|
|
334
|
-
|
|
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
|
|
337
|
+
return r(C, this);
|
|
338
338
|
}
|
|
339
339
|
set onchange(e) {
|
|
340
|
-
|
|
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(
|
|
350
|
-
super(
|
|
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),
|
|
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
|
|
409
|
+
return r(j, this);
|
|
410
410
|
}
|
|
411
411
|
set onaddrendition(e) {
|
|
412
|
-
|
|
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
|
|
415
|
+
return r(M, this);
|
|
416
416
|
}
|
|
417
417
|
set onremoverendition(e) {
|
|
418
|
-
|
|
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
|
|
421
|
+
return r(N, this);
|
|
422
422
|
}
|
|
423
423
|
set onchange(e) {
|
|
424
|
-
|
|
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
|
-
|
|
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
|
|
431
|
+
return r(F, this);
|
|
432
432
|
}
|
|
433
433
|
set selected(e) {
|
|
434
|
-
|
|
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
|
-
|
|
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
|
|
448
|
+
return r(I, this);
|
|
449
449
|
}
|
|
450
450
|
set selected(e) {
|
|
451
|
-
|
|
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),
|
|
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
|
|
510
|
+
return r(z, this);
|
|
511
511
|
}
|
|
512
512
|
set onaddrendition(e) {
|
|
513
|
-
|
|
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
|
|
516
|
+
return r(B, this);
|
|
517
517
|
}
|
|
518
518
|
set onremoverendition(e) {
|
|
519
|
-
|
|
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
|
|
522
|
+
return r(V, this);
|
|
523
523
|
}
|
|
524
524
|
set onchange(e) {
|
|
525
|
-
|
|
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
|
-
|
|
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
|
|
532
|
+
return r(U, this);
|
|
533
533
|
}
|
|
534
534
|
set selected(e) {
|
|
535
|
-
|
|
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(),
|
|
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(
|
|
571
|
+
return Z.call(i(Y, this)).values();
|
|
572
572
|
}
|
|
573
573
|
get length() {
|
|
574
|
-
return Z.call(
|
|
574
|
+
return Z.call(i(Y, this)).size;
|
|
575
575
|
}
|
|
576
576
|
getTrackById(e) {
|
|
577
577
|
var t;
|
|
578
|
-
return (t = [...Z.call(
|
|
578
|
+
return (t = [...Z.call(i(Y, this))].find((t) => t.id === e)) == null ? null : t;
|
|
579
579
|
}
|
|
580
580
|
get onaddtrack() {
|
|
581
|
-
return
|
|
581
|
+
return r(K, this);
|
|
582
582
|
}
|
|
583
583
|
set onaddtrack(e) {
|
|
584
|
-
|
|
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
|
|
587
|
+
return r(q, this);
|
|
588
588
|
}
|
|
589
589
|
set onremovetrack(e) {
|
|
590
|
-
|
|
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
|
|
593
|
+
return r(J, this);
|
|
594
594
|
}
|
|
595
595
|
set onchange(e) {
|
|
596
|
-
|
|
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
|
-
|
|
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
|
|
616
|
+
return r(Q, this);
|
|
617
617
|
}
|
|
618
618
|
set enabled(e) {
|
|
619
|
-
|
|
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-
|
|
702
|
+
//# sourceMappingURL=dist-BOe6WyvN.js.map
|