@webitel/ui-sdk 26.6.56 → 26.6.58

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 (128) hide show
  1. package/dist/{clients-BylvVtUg.js → clients-CX7SniM1.js} +6 -6
  2. package/dist/{components-Ceu_o5QZ.js → components-reoSYpZx.js} +2063 -1152
  3. package/dist/{composables-DJlgUtl5.js → composables-Ckg9IFyC.js} +3 -3
  4. package/dist/{debounce-DPzXwiOS.js → debounce-Bp3jy7S5.js} +2 -2
  5. package/dist/{deep-copy-CQw5yeEH.js → deep-copy-CTgLtgMO.js} +1 -1
  6. package/dist/{dist-BYiYpK00.js → dist-CAOIU8xq.js} +1 -1
  7. package/dist/{dist-05Bf47Wg.js → dist-Crpfx4FA.js} +1 -1
  8. package/dist/dist-uCh8HaP3.js +1910 -0
  9. package/dist/{enums-DW1oVune.js → enums-CBWwTuq7.js} +14 -10
  10. package/dist/{floating-ui.dom-n2j9PKCB.js → floating-ui.dom-Ch9ml4Rx.js} +322 -352
  11. package/dist/{generateInstance-BD4pC4PS.js → generateInstance-DpLUt03M.js} +3 -3
  12. package/dist/{chunk-CY3AvKd6.js → rolldown-runtime-BEcgMyyN.js} +8 -1
  13. package/dist/{side-channel-Cyte-MzW.js → side-channel-8SnAuRMA.js} +18 -18
  14. package/dist/ui-sdk.js +831 -25977
  15. package/dist/ui-sdk.umd.cjs +1849 -7448
  16. package/dist/{useValidation-NX7UjlXi.js → useValidation-B0voza7s.js} +2 -2
  17. package/dist/{useVidstackSrc-jCDCYTce.js → useVidstackSrc-epUQZhkL.js} +6 -4
  18. package/dist/{useWtTable-tqmVOvve.js → useWtTable-DrrvvB6k.js} +1 -1
  19. package/dist/vidstack-BLEs9rMG-Agxpv9v8.js +11 -0
  20. package/dist/{vidstack-video-IgjC6GLU.js → vidstack-C6nBVWwn-BlZqtkYB.js} +11 -11
  21. package/dist/{vidstack-C9vIqaYT-C1EgPq17.js → vidstack-CDOoBnJL-BCwLE1fB.js} +2 -2
  22. package/dist/{vidstack-Bq6c3Bam-hoRopLll.js → vidstack-CI5oafcm-DAV7Lilr.js} +38 -37
  23. package/dist/{vidstack-D_-9AA6_-Dq3APB0-.js → vidstack-CXo4cwSP2-6kDG00FC.js} +3 -3
  24. package/dist/{vidstack-Dihypf8P-ibWMCHK-.js → vidstack-CZQo98ic-D3uTuzB9.js} +1 -1
  25. package/dist/{vidstack-DDXt6fpN-Don_e6LS.js → vidstack-CceZzgm4-C37rtwSQ.js} +13 -13
  26. package/dist/{vidstack-ChQTHmIQ-nTO94M6P.js → vidstack-CdfyZegh-Bn47J4h6.js} +3 -3
  27. package/dist/{vidstack-C2US-gSO-DeIgENrW.js → vidstack-CgfrU1hS-CNTJkyzm.js} +26 -26
  28. package/dist/{vidstack-BGSTndAW-CyKM_CM4.js → vidstack-D9mvYVIz-DesuYgKV.js} +179 -278
  29. package/dist/{vidstack-BQlOPwOu-ChhdffAJ.js → vidstack-DATGlkSz2-BnlUxvSa.js} +2 -2
  30. package/dist/{vidstack-D2pY00kU-dXPuSPZl.js → vidstack-DUnfBERX2-Cl6yTfB3.js} +6 -6
  31. package/dist/{vidstack-Ci54COQW-CAAXpwzv.js → vidstack-DYPyTdYw-BzqKxwCK.js} +49 -44
  32. package/dist/vidstack-IMa-zkAV-DevzBPj3.js +35 -0
  33. package/dist/{vidstack-B01xzxC4-DeYSgDZy.js → vidstack-_E7LrUjK-DaCLs8ge.js} +1 -1
  34. package/dist/{vidstack-audio-CCSR8cXr.js → vidstack-audio-CH4wIf0F.js} +2 -2
  35. package/dist/{vidstack-dash-CNcNULYU.js → vidstack-dash-CmlmZIFT.js} +31 -32
  36. package/dist/{vidstack-google-cast-Co5Q_rfL.js → vidstack-google-cast-COyApZ_Z.js} +17 -18
  37. package/dist/{vidstack-hls-BP6P23Cc.js → vidstack-hls-D1sxUvBd.js} +70 -71
  38. package/dist/vidstack-ijoHbXQB-DBClSWHE.js +32 -0
  39. package/dist/{vidstack-CTojmhKq-D7sZJxgm.js → vidstack-mvRkf9tF-CoFf7dS9.js} +7 -7
  40. package/dist/vidstack-q-9soyHT-CiZ4hFSF.js +50 -0
  41. package/dist/vidstack-video-iy3-Vo1A.js +2 -0
  42. package/dist/{vidstack-vimeo-EzzPpggD.js → vidstack-vimeo-BhNQpz6m.js} +58 -58
  43. package/dist/{vidstack-youtube-C1_NAfWa.js → vidstack-youtube-BIhUrYs-.js} +33 -30
  44. package/dist/{vue-i18n-B8Px6VcD.js → vue-i18n-lTFLGg_9.js} +796 -728
  45. package/dist/{wt-action-bar-BHg0dHh-.js → wt-action-bar-B17FBHD7.js} +2 -2
  46. package/dist/{wt-button-Cv7wRtF5.js → wt-button-0kP5bPMs.js} +30 -30
  47. package/dist/wt-chat-emoji-C_fb9LZF.js +1372 -0
  48. package/dist/{wt-datepicker-DmmqWre1.js → wt-datepicker-baNcFWZ1.js} +765 -765
  49. package/dist/{wt-display-chip-items-CIW2Kmd1.js → wt-display-chip-items-CgrbKQ5R.js} +1 -1
  50. package/dist/{wt-dual-panel-Cnzr4m-k.js → wt-dual-panel-C5LZm1Tr.js} +1 -1
  51. package/dist/{wt-expansion-card-B3J3dMdV.js → wt-expansion-card-C2qETdn0.js} +2 -2
  52. package/dist/{wt-expansion-panel-CYZR6tYG.js → wt-expansion-panel-Dvzj9PTk.js} +1 -1
  53. package/dist/{wt-galleria-AICD8wZ_.js → wt-galleria-DL3svAQs.js} +2 -2
  54. package/dist/{wt-icon-CqEgBu_3.js → wt-icon-DIdpwmpC.js} +224 -219
  55. package/dist/{wt-icon-action-DlZx4RV6.js → wt-icon-action-C8WN2oVD.js} +2 -2
  56. package/dist/{wt-icon-btn-B66HR8qM.js → wt-icon-btn-BLnhJADA.js} +1 -1
  57. package/dist/{wt-notifications-bar-Bbzp4mi1.js → wt-notifications-bar-Dx1YPqFu.js} +7 -8
  58. package/dist/{wt-pagination-CZuQFM3-.js → wt-pagination-G2ZGU4Pi.js} +1 -1
  59. package/dist/{wt-player-CFL51-s6.js → wt-player-CCwEyUzv.js} +6 -6
  60. package/dist/{wt-popover-CJin-2BO.js → wt-popover-BdwrokVy.js} +1 -1
  61. package/dist/{wt-search-bar--ACLsoNo.js → wt-search-bar-CiQJ9ViN.js} +4 -4
  62. package/dist/{wt-selection-popup-B77UY7Yu.js → wt-selection-popup-Bh9D7VtA.js} +1 -1
  63. package/dist/{wt-send-message-popup-D5_uap5F.js → wt-send-message-popup-CIH2cusg.js} +3 -3
  64. package/dist/{wt-slider-BS3SoGht.js → wt-slider-BPzRTeYU.js} +1 -1
  65. package/dist/{wt-start-page-eN1PEokc.js → wt-start-page-DMXRhA9E.js} +1 -1
  66. package/dist/{wt-table-2AC3hrK9.js → wt-table-25p4E01H.js} +2 -2
  67. package/dist/{wt-table-column-select-DFF6z3a3.js → wt-table-column-select-C3ma6jxK.js} +3 -3
  68. package/dist/{wt-timepicker-DpZmWZdv.js → wt-timepicker-DyM1OQX4.js} +3 -3
  69. package/dist/wt-toast-KTAx-8zA.js +71 -0
  70. package/dist/{wt-tree-ZyoPrNOl.js → wt-tree-DZ9ErOGj.js} +22 -12
  71. package/dist/{wt-tree-table-DkK3EyzZ.js → wt-tree-table-BlZEw4tr.js} +41 -41
  72. package/dist/{wt-type-extension-value-input-f5i8mReW.js → wt-type-extension-value-input-Dw24yOLg.js} +4 -4
  73. package/dist/{wt-vidstack-player-Ba6-mEdW.js → wt-vidstack-player-CLtfGaGj.js} +1601 -1453
  74. package/package.json +1 -1
  75. package/src/assets/icons/sprite/index.ts +7 -0
  76. package/src/assets/icons/sprite/ws-signal-high.svg +11 -0
  77. package/src/assets/icons/sprite/ws-signal-low.svg +11 -0
  78. package/src/assets/icons/sprite/ws-signal-medium.svg +11 -0
  79. package/src/components/index.js +3 -0
  80. package/src/components/wt-call-media-metric/wt-call-media-metric.vue +41 -0
  81. package/src/components/wt-toast/wt-toast.vue +2 -2
  82. package/src/enums/ConnectionQualityLevel/ConnectionQualityLevel.enum.ts +8 -0
  83. package/src/enums/index.ts +6 -0
  84. package/src/locale/en/en.js +5 -0
  85. package/src/locale/es/es.js +5 -0
  86. package/src/locale/kz/kz.js +5 -0
  87. package/src/locale/pl/pl.js +5 -0
  88. package/src/locale/ro/ro.js +5 -0
  89. package/src/locale/ru/ru.js +5 -0
  90. package/src/locale/uk/uk.js +5 -0
  91. package/src/locale/uz/uz.js +5 -0
  92. package/src/locale/vi/vi.js +5 -0
  93. package/src/scripts/getConnectionQuality.ts +13 -0
  94. package/src/scripts/index.js +2 -0
  95. package/types/components/wt-call-media-metric/wt-call-media-metric.vue.d.ts +13 -0
  96. package/types/components/wt-galleria/wt-galleria.vue.d.ts +2 -6
  97. package/types/components/wt-input-number/wt-input-number.vue.d.ts +2 -2
  98. package/types/components/wt-input-text/wt-input-text.vue.d.ts +2 -2
  99. package/types/components/wt-switcher/wt-switcher.vue.d.ts +2 -2
  100. package/types/components/wt-table/wt-table.vue.d.ts +1 -1
  101. package/types/components/wt-textarea/wt-textarea.vue.d.ts +1 -9
  102. package/types/enums/ConnectionQualityLevel/ConnectionQualityLevel.enum.d.ts +6 -0
  103. package/types/enums/index.d.ts +3 -2
  104. package/types/locale/en/en.d.ts +5 -0
  105. package/types/locale/es/es.d.ts +5 -0
  106. package/types/locale/i18n.d.ts +45 -0
  107. package/types/locale/index.d.ts +45 -0
  108. package/types/locale/kz/kz.d.ts +5 -0
  109. package/types/locale/pl/pl.d.ts +5 -0
  110. package/types/locale/ro/ro.d.ts +5 -0
  111. package/types/locale/ru/ru.d.ts +5 -0
  112. package/types/locale/uk/uk.d.ts +5 -0
  113. package/types/locale/uz/uz.d.ts +5 -0
  114. package/types/locale/vi/vi.d.ts +5 -0
  115. package/types/modules/AuditForm/components/audit-form-question-write-wrapper.vue.d.ts +1 -5
  116. package/types/modules/AuditForm/components/audit-form.vue.d.ts +4 -10
  117. package/types/modules/Flow/lookups/FlowTypeApplications.lookup.d.ts +5 -5
  118. package/types/scripts/getConnectionQuality.d.ts +2 -0
  119. package/types/scripts/index.d.ts +2 -1
  120. package/dist/dist-Dz55hlwp.js +0 -1371
  121. package/dist/eventBus-By3thVlR.js +0 -31
  122. package/dist/usetoast-BECIyaas.js +0 -10
  123. package/dist/vidstack-D5EzK014-DOe01V3H.js +0 -14
  124. package/dist/vidstack-Dm1xEU9Q-VlefmrP8.js +0 -31
  125. package/dist/vidstack-DqAw8m9J-Dk1GT3Oe.js +0 -22
  126. package/dist/vidstack-krOAtKMi-DN1WZC3p.js +0 -30
  127. package/dist/wt-chat-emoji-Dnu07Or5.js +0 -2226
  128. package/dist/wt-toast-gaZL33Am.js +0 -44
@@ -1,5 +1,5 @@
1
- import { H as e } from "./vidstack-BGSTndAW-CyKM_CM4.js";
2
- //#region node_modules/vidstack/prod/chunks/vidstack-BQlOPwOu.js
1
+ import { V as e } from "./vidstack-D9mvYVIz-DesuYgKV.js";
2
+ //#region node_modules/vidstack/prod/chunks/vidstack-DATGlkSz2.js
3
3
  function t() {
4
4
  return "https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1";
5
5
  }
@@ -1,8 +1,8 @@
1
- import { K as e } from "./vidstack-BGSTndAW-CyKM_CM4.js";
2
- import { c as t, i as n, r } from "./useVidstackSrc-jCDCYTce.js";
3
- import { r as i } from "./vidstack-CTojmhKq-D7sZJxgm.js";
4
- import { c as a, i as o, l as s, n as c, o as l, r as u, t as d, u as f } from "./vidstack-BQlOPwOu-ChhdffAJ.js";
5
- //#region node_modules/vidstack/prod/chunks/vidstack-D2pY00kU.js
1
+ import { G as e } from "./vidstack-D9mvYVIz-DesuYgKV.js";
2
+ import { c as t, i as n, r } from "./useVidstackSrc-epUQZhkL.js";
3
+ import { r as i } from "./vidstack-mvRkf9tF-CoFf7dS9.js";
4
+ import { c as a, i as o, l as s, n as c, o as l, r as u, t as d, u as f } from "./vidstack-DATGlkSz2-BnlUxvSa.js";
5
+ //#region node_modules/vidstack/prod/chunks/vidstack-DUnfBERX2.js
6
6
  var p = class {
7
7
  name = "google-cast";
8
8
  target;
@@ -33,7 +33,7 @@ var p = class {
33
33
  }
34
34
  async load(e) {
35
35
  if (!this.#e) throw Error("[vidstack] google cast player was not initialized");
36
- return new (await (import("./vidstack-google-cast-Co5Q_rfL.js"))).GoogleCastProvider(this.#e, e);
36
+ return new (await (import("./vidstack-google-cast-COyApZ_Z.js"))).GoogleCastProvider(this.#e, e);
37
37
  }
38
38
  async #t(e) {
39
39
  if (a()) return;
@@ -1,42 +1,42 @@
1
- import { H as e, I as t, N as n, S as r, X as i, a, r as o, w as s } from "./vidstack-BGSTndAW-CyKM_CM4.js";
2
- import { n as c } from "./vidstack-CTojmhKq-D7sZJxgm.js";
3
- //#region node_modules/vidstack/prod/chunks/vidstack-DYbwIVLq.js
1
+ import { C as e, F as t, M as n, V as r, Y as i, a, r as o, x as s } from "./vidstack-D9mvYVIz-DesuYgKV.js";
2
+ import { n as c } from "./vidstack-mvRkf9tF-CoFf7dS9.js";
3
+ //#region node_modules/vidstack/prod/chunks/vidstack-B1Z6f96t.js
4
4
  function l(e, t) {
5
5
  return t >= e.startTime && t < e.endTime;
6
6
  }
7
- function u(n, a, o) {
8
- let s = null, c = r();
7
+ function u(e, n, a) {
8
+ let o = null, c = s();
9
9
  function l() {
10
- let r = t(a) ? [a] : a, l = n.toArray().find((e) => r.includes(e.kind) && e.mode === "showing");
11
- if (l !== s) {
10
+ let s = t(n) ? [n] : n, l = e.toArray().find((e) => s.includes(e.kind) && e.mode === "showing");
11
+ if (l !== o) {
12
12
  if (!l) {
13
- o(null), s = null;
13
+ a(null), o = null;
14
14
  return;
15
15
  }
16
- l.readyState == 2 ? o(l) : (o(null), i(() => {
17
- let t = e(l, "load", () => {
18
- o(l), t();
16
+ l.readyState == 2 ? a(l) : (a(null), i(() => {
17
+ let e = r(l, "load", () => {
18
+ a(l), e();
19
19
  }, { once: !0 });
20
- }, c)), s = l;
20
+ }, c)), o = l;
21
21
  }
22
22
  }
23
- return l(), e(n, "mode-change", l);
23
+ return l(), r(e, "mode-change", l);
24
24
  }
25
- function d(t, n, r) {
26
- u(t, n, (t) => {
27
- if (!t) {
28
- r("");
25
+ function d(e, t, n) {
26
+ u(e, t, (e) => {
27
+ if (!e) {
28
+ n("");
29
29
  return;
30
30
  }
31
- let n = () => {
32
- let e = t?.activeCues[0];
33
- r(e?.text || "");
31
+ let t = () => {
32
+ let t = e?.activeCues[0];
33
+ n(t?.text || "");
34
34
  };
35
- n(), e(t, "cue-change", n);
35
+ t(), r(e, "cue-change", t);
36
36
  });
37
37
  }
38
38
  //#endregion
39
- //#region node_modules/vidstack/prod/chunks/vidstack-Ci54COQW.js
39
+ //#region node_modules/vidstack/prod/chunks/vidstack-DYPyTdYw.js
40
40
  var f = {
41
41
  crossOrigin: Symbol(0),
42
42
  readyState: Symbol(0),
@@ -65,6 +65,7 @@ var f = {
65
65
  #i = [];
66
66
  #a = [];
67
67
  #o = [];
68
+ #s = /* @__PURE__ */ new Set();
68
69
  [f.readyState] = 0;
69
70
  [f.crossOrigin];
70
71
  [f.onModeChange] = null;
@@ -93,9 +94,13 @@ var f = {
93
94
  constructor(e) {
94
95
  super();
95
96
  for (let t of Object.keys(e)) this[t] = e[t];
96
- this.type ||= "vtt", e.content ? this.#s(e) : e.src || (this[f.readyState] = 2);
97
+ this.type ||= "vtt", e.content ? this.#c(e) : e.src || (this[f.readyState] = 2);
97
98
  }
98
99
  addCue(e, t) {
100
+ if (e.id) {
101
+ if (this.#s.has(e.id)) return;
102
+ this.#s.add(e.id);
103
+ }
99
104
  let n = 0, r = this.#a.length;
100
105
  for (n = 0; n < r && !(e.endTime <= this.#a[n].startTime); n++);
101
106
  n === r ? this.#a.push(e) : this.#a.splice(n, 0, e), e instanceof TextTrackCue || this[f.native]?.track.addCue(e), this.dispatchEvent(new o("add-cue", {
@@ -107,14 +112,14 @@ var f = {
107
112
  let n = this.#a.indexOf(e);
108
113
  if (n >= 0) {
109
114
  let r = this.#o.includes(e);
110
- this.#a.splice(n, 1), this[f.native]?.track.removeCue(e), this.dispatchEvent(new o("remove-cue", {
115
+ e.id && this.#s.delete(e.id), this.#a.splice(n, 1), this[f.native]?.track.removeCue(e), this.dispatchEvent(new o("remove-cue", {
111
116
  detail: e,
112
117
  trigger: t
113
118
  })), r && this[f.updateActiveCues](this.#t, t);
114
119
  }
115
120
  }
116
121
  setMode(e, t) {
117
- this.#n !== e && (this.#n = e, e === "disabled" ? (this.#o = [], this.#f()) : this.readyState === 2 ? this[f.updateActiveCues](this.#t, t) : this.#c(), this.dispatchEvent(new o("mode-change", {
122
+ this.#n !== e && (this.#n = e, e === "disabled" ? (this.#o = [], this.#p()) : this.readyState === 2 ? this[f.updateActiveCues](this.#t, t) : this.#l(), this.dispatchEvent(new o("mode-change", {
118
123
  detail: this,
119
124
  trigger: t
120
125
  })), this[f.onModeChange]?.());
@@ -133,22 +138,22 @@ var f = {
133
138
  break;
134
139
  }
135
140
  }
136
- this.#o = n, r && this.#f(t);
141
+ this.#o = n, r && this.#p(t);
137
142
  }
138
143
  [f.canLoad]() {
139
- this.#e = !0, this.#n !== "disabled" && this.#c();
144
+ this.#e = !0, this.#n !== "disabled" && this.#l();
140
145
  }
141
- #s(e) {
146
+ #c(e) {
142
147
  import("./prod-DSuxcp5t.js").then(({ parseText: n, VTTCue: r, VTTRegion: i }) => {
143
- !t(e.content) || e.type === "json" ? (this.#d(e.content, r, i), this.readyState !== 3 && this.#l()) : n(e.content, { type: e.type }).then(({ cues: e, regions: t }) => {
144
- this.#a = e, this.#i = t, this.#l();
148
+ !t(e.content) || e.type === "json" ? (this.#f(e.content, r, i), this.readyState !== 3 && this.#u()) : n(e.content.split("\n").map((e) => e.trim()).join("\n").trim(), { type: e.type }).then(({ cues: e, regions: t }) => {
149
+ this.#a = e, this.#i = t, this.#u();
145
150
  });
146
151
  });
147
152
  }
148
- async #c() {
153
+ async #l() {
149
154
  if (!(!this.#e || this[f.readyState] > 0)) {
150
155
  if (this[f.readyState] = 1, this.dispatchEvent(new o("load-start")), !this.src) {
151
- this.#l();
156
+ this.#u();
152
157
  return;
153
158
  }
154
159
  try {
@@ -156,7 +161,7 @@ var f = {
156
161
  headers: this.type === "json" ? { "Content-Type": "application/json" } : void 0,
157
162
  credentials: c(r)
158
163
  });
159
- if (this.type === "json") this.#d(await (await i).text(), t, n);
164
+ if (this.type === "json") this.#f(await (await i).text(), t, n);
160
165
  else {
161
166
  let { errors: t, metadata: n, regions: r, cues: a } = await e(i, {
162
167
  type: this.type,
@@ -165,13 +170,13 @@ var f = {
165
170
  if (t[0]?.code === 0) throw t[0];
166
171
  this.#r = n, this.#i = r, this.#a = a;
167
172
  }
168
- this.#l();
173
+ this.#u();
169
174
  } catch (e) {
170
- this.#u(e);
175
+ this.#d(e);
171
176
  }
172
177
  }
173
178
  }
174
- #l() {
179
+ #u() {
175
180
  if (this[f.readyState] = 2, !this.src || this.type !== "vtt") {
176
181
  let e = this[f.native];
177
182
  if (e && !e.managed) for (let t of this.#a) e.track.addCue(t);
@@ -179,28 +184,28 @@ var f = {
179
184
  let e = new o("load");
180
185
  this[f.updateActiveCues](this.#t, e), this.dispatchEvent(e);
181
186
  }
182
- #u(e) {
187
+ #d(e) {
183
188
  this[f.readyState] = 3, this.dispatchEvent(new o("error", { detail: e }));
184
189
  }
185
- #d(e, t, n) {
190
+ #f(e, t, n) {
186
191
  try {
187
192
  let { regions: r, cues: i } = g(e, t, n);
188
193
  this.#i = r, this.#a = i;
189
194
  } catch (e) {
190
- this.#u(e);
195
+ this.#d(e);
191
196
  }
192
197
  }
193
- #f(e) {
198
+ #p(e) {
194
199
  this.dispatchEvent(new o("cue-change", { trigger: e }));
195
200
  }
196
201
  }, m = /captions|subtitles/;
197
202
  function h(e) {
198
203
  return m.test(e.kind);
199
204
  }
200
- function g(e, r, i) {
201
- let a = t(e) ? JSON.parse(e) : e, o = [], c = [];
202
- return a.regions && i && (o = a.regions.map((e) => Object.assign(new i(), e))), (a.cues || s(a)) && (c = (s(a) ? a : a.cues).filter((e) => n(e.startTime) && n(e.endTime)).map((e) => Object.assign(new r(0, 0, ""), e))), {
203
- regions: o,
205
+ function g(r, i, a) {
206
+ let o = t(r) ? JSON.parse(r) : r, s = [], c = [];
207
+ return o.regions && a && (s = o.regions.map((e) => Object.assign(new a(), e))), (o.cues || e(o)) && (c = (e(o) ? o : o.cues).filter((e) => n(e.startTime) && n(e.endTime)).map((e) => Object.assign(new i(0, 0, ""), e))), {
208
+ regions: s,
204
209
  cues: c
205
210
  };
206
211
  }
@@ -0,0 +1,35 @@
1
+ import { t as e } from "./vidstack-BLEs9rMG-Agxpv9v8.js";
2
+ //#region node_modules/vidstack/prod/chunks/vidstack-IMa-zkAV.js
3
+ var t = /* @__PURE__ */ e({
4
+ findYouTubePoster: () => o,
5
+ resolveYouTubeVideoId: () => a
6
+ }), n = /(?:youtu\.be|youtube|youtube\.com|youtube-nocookie\.com)(?:\/shorts)?\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=|)((?:\w|-){11})/, r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
7
+ function a(e) {
8
+ return e.match(n)?.[1];
9
+ }
10
+ async function o(e, t) {
11
+ if (r.has(e)) return r.get(e);
12
+ if (i.has(e)) return i.get(e);
13
+ let n = new Promise(async (n) => {
14
+ for (let i of [
15
+ "maxresdefault",
16
+ "sddefault",
17
+ "hqdefault"
18
+ ]) for (let a of [!0, !1]) {
19
+ let o = s(e, i, a);
20
+ if ((await fetch(o, {
21
+ mode: "no-cors",
22
+ signal: t.signal
23
+ })).status < 400) {
24
+ r.set(e, o), n(o);
25
+ return;
26
+ }
27
+ }
28
+ }).catch(() => "").finally(() => i.delete(e));
29
+ return i.set(e, n), n;
30
+ }
31
+ function s(e, t, n) {
32
+ return `https://i.ytimg.com/${n ? "vi_webp" : "vi"}/${e}/${t}.${n ? "webp" : "jpg"}`;
33
+ }
34
+ //#endregion
35
+ export { a as resolveYouTubeVideoId, t as utils_exports };
@@ -1,4 +1,4 @@
1
- //#region node_modules/vidstack/prod/chunks/vidstack-B01xzxC4.js
1
+ //#region node_modules/vidstack/prod/chunks/vidstack-_E7LrUjK.js
2
2
  var e = {
3
3
  setAuto: Symbol(0),
4
4
  enableAuto: Symbol(0)
@@ -1,5 +1,5 @@
1
- import { X as e } from "./vidstack-BGSTndAW-CyKM_CM4.js";
2
- import { n as t, t as n } from "./vidstack-Bq6c3Bam-hoRopLll.js";
1
+ import { Y as e } from "./vidstack-D9mvYVIz-DesuYgKV.js";
2
+ import { n as t, t as n } from "./vidstack-CI5oafcm-DAV7Lilr.js";
3
3
  //#region node_modules/vidstack/prod/providers/vidstack-audio.js
4
4
  var r = class extends t {
5
5
  $$PROVIDER_TYPE = "AUDIO";
@@ -1,13 +1,12 @@
1
- import { D as e, H as t, I as n, K as r, N as i, R as a, f as o, r as s, v as c } from "./vidstack-BGSTndAW-CyKM_CM4.js";
2
- import { _ as l, f as u, r as d, u as f } from "./useVidstackSrc-jCDCYTce.js";
3
- import { i as p, r as m } from "./vidstack-CTojmhKq-D7sZJxgm.js";
4
- import { t as h } from "./vidstack-DqAw8m9J-Dk1GT3Oe.js";
5
- import { t as g } from "./vidstack-D5EzK014-DOe01V3H.js";
6
- import { n as _, t as v } from "./vidstack-Ci54COQW-CAAXpwzv.js";
7
- import { VideoProvider as y } from "./vidstack-video-IgjC6GLU.js";
8
- import { t as b } from "./vidstack-B01xzxC4-DeYSgDZy.js";
9
- import { n as x } from "./vidstack-C9vIqaYT-C1EgPq17.js";
10
- //#region node_modules/vidstack/prod/providers/vidstack-dash.js
1
+ import { E as e, F as t, G as n, L as r, M as i, V as a, f as o, r as s, v as c } from "./vidstack-D9mvYVIz-DesuYgKV.js";
2
+ import { _ as l, f as u, r as d, u as f } from "./useVidstackSrc-epUQZhkL.js";
3
+ import { i as p, r as m } from "./vidstack-mvRkf9tF-CoFf7dS9.js";
4
+ import { n as h, t as g } from "./vidstack-ijoHbXQB-DBClSWHE.js";
5
+ import { n as _, t as v } from "./vidstack-DYPyTdYw-BzqKxwCK.js";
6
+ import { t as y } from "./vidstack-_E7LrUjK-DaCLs8ge.js";
7
+ import { t as b } from "./vidstack-C6nBVWwn-BlZqtkYB.js";
8
+ import { n as x } from "./vidstack-CDOoBnJL-BCwLE1fB.js";
9
+ //#region node_modules/vidstack/prod/chunks/vidstack-cIhilC9U.js
11
10
  function S(e) {
12
11
  try {
13
12
  return new Intl.DisplayNames(navigator.languages, { type: "language" }).of(e) ?? null;
@@ -30,8 +29,8 @@ var C = (e) => `dash-${o(e)}`, w = class {
30
29
  }
31
30
  setup(e) {
32
31
  this.#n = e().create();
33
- let n = this.#c.bind(this);
34
- for (let t of Object.values(e.events)) this.#n.on(t, n);
32
+ let t = this.#c.bind(this);
33
+ for (let n of Object.values(e.events)) this.#n.on(n, t);
35
34
  this.#n.on(e.events.ERROR, this.#g.bind(this));
36
35
  for (let e of this.#r) e(this.#n);
37
36
  this.#t.player.dispatch("dash-instance", { detail: this.#n }), this.#n.initialize(this.#e, void 0, !1), this.#n.updateSettings({
@@ -43,7 +42,7 @@ var C = (e) => `dash-${o(e)}`, w = class {
43
42
  buffer: { fastSwitchEnabled: !0 }
44
43
  },
45
44
  ...this.config
46
- }), this.#n.on(e.events.FRAGMENT_LOADING_STARTED, this.#_.bind(this)), this.#n.on(e.events.FRAGMENT_LOADING_COMPLETED, this.#v.bind(this)), this.#n.on(e.events.MANIFEST_LOADED, this.#h.bind(this)), this.#n.on(e.events.QUALITY_CHANGE_RENDERED, this.#m.bind(this)), this.#n.on(e.events.TEXT_TRACKS_ADDED, this.#f.bind(this)), this.#n.on(e.events.TRACK_CHANGE_RENDERED, this.#p.bind(this)), this.#t.qualities[b.enableAuto] = this.#C.bind(this), t(this.#t.qualities, "change", this.#T.bind(this)), t(this.#t.audioTracks, "change", this.#E.bind(this)), this.#i = c(this.#o.bind(this));
45
+ }), this.#n.on(e.events.FRAGMENT_LOADING_STARTED, this.#_.bind(this)), this.#n.on(e.events.FRAGMENT_LOADING_COMPLETED, this.#v.bind(this)), this.#n.on(e.events.MANIFEST_LOADED, this.#h.bind(this)), this.#n.on(e.events.QUALITY_CHANGE_RENDERED, this.#m.bind(this)), this.#n.on(e.events.TEXT_TRACKS_ADDED, this.#f.bind(this)), this.#n.on(e.events.TRACK_CHANGE_RENDERED, this.#p.bind(this)), this.#t.qualities[y.enableAuto] = this.#C.bind(this), a(this.#t.qualities, "change", this.#T.bind(this)), a(this.#t.audioTracks, "change", this.#E.bind(this)), this.#i = c(this.#o.bind(this));
47
46
  }
48
47
  #a(e) {
49
48
  return new s(C(e.type), { detail: e });
@@ -113,9 +112,9 @@ var C = (e) => `dash-${o(e)}`, w = class {
113
112
  #h(e) {
114
113
  if (this.#t.$state.canPlay() || !this.#n) return;
115
114
  let { type: t, mediaPresentationDuration: n } = e.data, r = this.#a(e);
116
- this.#t.notify("stream-type-change", t === "static" ? "on-demand" : "live", r), this.#t.notify("duration-change", n, r), this.#t.qualities[b.setAuto](!0, r);
117
- let a = this.#n.getVideoElement(), o = this.#n.getTracksForTypeFromManifest("video", e.data), c = [...new Set(o.map((e) => e.mimeType))].find((e) => e && u(a, e)), l = o.filter((e) => c === e.mimeType)[0], d = this.#n.getTracksForTypeFromManifest("audio", e.data), p = [...new Set(d.map((e) => e.mimeType))].find((e) => e && f(a, e));
118
- if (d = d.filter((e) => p === e.mimeType), l.bitrateList.forEach((e, t) => {
115
+ this.#t.notify("stream-type-change", t === "static" ? "on-demand" : "live", r), this.#t.notify("duration-change", n, r), this.#t.qualities[y.setAuto](!0, r);
116
+ let a = this.#n.getVideoElement(), o = this.#n.getTracksForTypeFromManifest("video", e.data), c = [...new Set(o.map((e) => e.mimeType))].find((e) => e && u(a, e)), l = o.find((e) => c === e.mimeType), d = this.#n.getTracksForTypeFromManifest("audio", e.data), p = [...new Set(d.map((e) => e.mimeType))].find((e) => e && f(a, e));
117
+ if (d = d.filter((e) => p === e.mimeType), l && (l.bitrateList.forEach((e, t) => {
119
118
  let n = {
120
119
  id: e.id?.toString() ?? `dash-bitrate-${t}`,
121
120
  width: e.width ?? 0,
@@ -125,7 +124,7 @@ var C = (e) => `dash-${o(e)}`, w = class {
125
124
  index: t
126
125
  };
127
126
  this.#t.qualities[g.add](n, r);
128
- }), i(l.index)) {
127
+ }), i(l.index))) {
129
128
  let e = this.#t.qualities[l.index];
130
129
  e && this.#t.qualities[g.select](e, !0, r);
131
130
  }
@@ -199,7 +198,7 @@ var C = (e) => `dash-${o(e)}`, w = class {
199
198
  return this.#r.add(e), () => this.#r.delete(e);
200
199
  }
201
200
  loadSource(e) {
202
- this.#D(), n(e.src) && this.#n?.attachSource(e.src);
201
+ this.#D(), t(e.src) && this.#n?.attachSource(e.src);
203
202
  }
204
203
  destroy() {
205
204
  this.#D(), this.#n?.destroy(), this.#n = null, this.#i?.(), this.#i = null;
@@ -216,8 +215,8 @@ var C = (e) => `dash-${o(e)}`, w = class {
216
215
  onLoadStart: this.#i.bind(this),
217
216
  onLoaded: this.#a.bind(this),
218
217
  onLoadError: this.#o.bind(this)
219
- }, t = await D(this.#e, e);
220
- return a(t) && !n(this.#e) && (t = await E(this.#e, e)), t ? window.dashjs.supportsMediaSource() ? t : (this.#t.player.dispatch(new s("dash-unsupported")), this.#t.notify("error", {
218
+ }, n = await D(this.#e, e);
219
+ return r(n) && !t(this.#e) && (n = await E(this.#e, e)), n ? window.dashjs.supportsMediaSource() ? n : (this.#t.player.dispatch(new s("dash-unsupported")), this.#t.notify("error", {
221
220
  message: "[vidstack] `dash.js` is not supported in this environment",
222
221
  code: 4
223
222
  }), null) : null;
@@ -238,7 +237,7 @@ var C = (e) => `dash-${o(e)}`, w = class {
238
237
  }
239
238
  };
240
239
  async function E(e, t = {}) {
241
- if (!a(e)) {
240
+ if (!r(e)) {
242
241
  if (t.onLoadStart?.(), O(e)) return t.onLoaded?.(e), e;
243
242
  if (k(e)) {
244
243
  let n = e.MediaPlayer;
@@ -255,13 +254,13 @@ async function E(e, t = {}) {
255
254
  }
256
255
  }
257
256
  }
258
- async function D(t, r = {}) {
259
- if (n(t)) {
257
+ async function D(n, r = {}) {
258
+ if (t(n)) {
260
259
  r.onLoadStart?.();
261
260
  try {
262
- if (await m(t), !e(window.dashjs.MediaPlayer)) throw Error("");
263
- let n = window.dashjs.MediaPlayer;
264
- return r.onLoaded?.(n), n;
261
+ if (await m(n), !e(window.dashjs.MediaPlayer)) throw Error("");
262
+ let t = window.dashjs.MediaPlayer;
263
+ return r.onLoaded?.(t), t;
265
264
  } catch (e) {
266
265
  r.onLoadError?.(e);
267
266
  }
@@ -273,7 +272,7 @@ function O(e) {
273
272
  function k(e) {
274
273
  return e && "MediaPlayer" in e;
275
274
  }
276
- var A = "https://cdn.jsdelivr.net", j = class extends y {
275
+ var A = "https://cdn.jsdelivr.net", j = class extends b {
277
276
  $$PROVIDER_TYPE = "DASH";
278
277
  #e = null;
279
278
  #t = new w(this.video, this.ctx);
@@ -304,21 +303,21 @@ var A = "https://cdn.jsdelivr.net", j = class extends y {
304
303
  this.#n = e;
305
304
  }
306
305
  preconnect() {
307
- n(this.#n) && p(this.#n);
306
+ t(this.#n) && p(this.#n);
308
307
  }
309
308
  setup() {
310
309
  super.setup(), new T(this.#n, this.ctx, (e) => {
311
310
  this.#e = e, this.#t.setup(e), this.ctx.notify("provider-setup", this);
312
- let t = r(this.ctx.$state.source);
311
+ let t = n(this.ctx.$state.source);
313
312
  t && this.loadSource(t);
314
313
  });
315
314
  }
316
- async loadSource(e, t) {
317
- if (!n(e.src)) {
315
+ async loadSource(e, n) {
316
+ if (!t(e.src)) {
318
317
  this.removeSource();
319
318
  return;
320
319
  }
321
- this.media.preload = t || "", this.appendSource(e, "application/x-mpegurl"), this.#t.loadSource(e), this.currentSrc = e;
320
+ this.media.preload = n || "", this.appendSource(e, "application/x-mpegurl"), this.#t.loadSource(e), this.currentSrc = e;
322
321
  }
323
322
  onInstance(e) {
324
323
  let t = this.#t.instance;
@@ -1,8 +1,7 @@
1
- import { G as e, H as t, K as n, V as r, h as i, r as a, tt as o, v as s } from "./vidstack-BGSTndAW-CyKM_CM4.js";
2
- import { a as c, d as l, i as u, n as d, s as f, t as p } from "./vidstack-BQlOPwOu-ChhdffAJ.js";
3
- import { t as m } from "./vidstack-DqAw8m9J-Dk1GT3Oe.js";
4
- import { t as h } from "./vidstack-D5EzK014-DOe01V3H.js";
5
- import { t as g } from "./vidstack-ChQTHmIQ-nTO94M6P.js";
1
+ import { B as e, G as t, V as n, W as r, et as i, h as a, r as o, v as s } from "./vidstack-D9mvYVIz-DesuYgKV.js";
2
+ import { a as c, d as l, i as u, n as d, s as f, t as p } from "./vidstack-DATGlkSz2-BnlUxvSa.js";
3
+ import { n as m, t as h } from "./vidstack-ijoHbXQB-DBClSWHE.js";
4
+ import { t as g } from "./vidstack-CdfyZegh-Bn47J4h6.js";
6
5
  //#region node_modules/vidstack/prod/providers/vidstack-google-cast.js
7
6
  var _ = class {
8
7
  #e;
@@ -34,7 +33,7 @@ var _ = class {
34
33
  }
35
34
  setup() {
36
35
  let e = this.syncRemoteActiveIds.bind(this);
37
- t(this.#t.audioTracks, "change", e), t(this.#t.textTracks, "mode-change", e), s(this.#o.bind(this));
36
+ n(this.#t.audioTracks, "change", e), n(this.#t.textTracks, "mode-change", e), s(this.#o.bind(this));
38
37
  }
39
38
  getLocalTextTracks() {
40
39
  return this.#t.$state.textTracks().filter((e) => e.src && e.type === "vtt");
@@ -66,7 +65,7 @@ var _ = class {
66
65
  if (!this.#e.isMediaLoaded) return;
67
66
  let t = this.#i(chrome.cast.media.TrackType.TEXT);
68
67
  for (let n of e) if (!this.#l(t, n)) {
69
- o(() => this.#n?.());
68
+ i(() => this.#n?.());
70
69
  break;
71
70
  }
72
71
  }
@@ -116,7 +115,7 @@ var _ = class {
116
115
  }
117
116
  }, y = class {
118
117
  $$PROVIDER_TYPE = "GOOGLE_CAST";
119
- scope = i();
118
+ scope = a();
120
119
  #e;
121
120
  #t;
122
121
  #n;
@@ -174,9 +173,9 @@ var _ = class {
174
173
  };
175
174
  this.#l = n;
176
175
  let i = this.#y.bind(this);
177
- for (let e of r(n)) this.#e.controller.addEventListener(e, i);
178
- e(() => {
179
- for (let e of r(n)) this.#e.controller.removeEventListener(e, i);
176
+ for (let t of e(n)) this.#e.controller.addEventListener(t, i);
177
+ r(() => {
178
+ for (let t of e(n)) this.#e.controller.removeEventListener(t, i);
180
179
  });
181
180
  }
182
181
  async play() {
@@ -225,7 +224,7 @@ var _ = class {
225
224
  this.#u || (this.#o = 0, this.#s = new g(0, 0)), this.#c.stop(), this.#a = 0, this.#u = null;
226
225
  }
227
226
  #h() {
228
- let e = new a("resume-session", { detail: this.session });
227
+ let e = new o("resume-session", { detail: this.session });
229
228
  this.#x(e);
230
229
  let { muted: t, volume: n, savedState: r } = this.#t.$state, i = r();
231
230
  this.setCurrentTime(Math.max(this.#e.currentTime, i?.currentTime ?? 0)), this.setMuted(t()), this.setVolume(n()), i?.paused === !1 && this.play();
@@ -259,9 +258,9 @@ var _ = class {
259
258
  }
260
259
  #x(e) {
261
260
  if (!this.#e.isMediaLoaded) return;
262
- let t = n(this.#t.$state.source);
261
+ let n = t(this.#t.$state.source);
263
262
  Promise.resolve().then(() => {
264
- if (t !== n(this.#t.$state.source) || !this.#e.isMediaLoaded) return;
263
+ if (n !== t(this.#t.$state.source) || !this.#e.isMediaLoaded) return;
265
264
  this.#m();
266
265
  let r = this.#e.duration;
267
266
  this.#s = new g(0, r);
@@ -335,7 +334,7 @@ var _ = class {
335
334
  return this.#e.liveSeekableRange ? new g(this.#e.liveSeekableRange.start, this.#e.liveSeekableRange.end) : this.#s;
336
335
  }
337
336
  #M(e) {
338
- return e instanceof Event ? e : new a(e.type, { detail: e });
337
+ return e instanceof Event ? e : new o(e.type, { detail: e });
339
338
  }
340
339
  #N(e) {
341
340
  let { streamType: t, title: n, poster: r } = this.#t.$state;
@@ -345,12 +344,12 @@ var _ = class {
345
344
  let t = this.#N(e), n = new chrome.cast.media.LoadRequest(t), r = this.#t.$state.savedState();
346
345
  return n.autoplay = (this.#u?.paused ?? r?.paused) === !1, n.currentTime = this.#u?.time ?? r?.currentTime ?? 0, n;
347
346
  }
348
- async #F(e, t) {
349
- let r = n(this.#t.$state.source);
347
+ async #F(e, n) {
348
+ let r = t(this.#t.$state.source);
350
349
  this.#u = {
351
350
  src: r,
352
351
  paused: e,
353
- time: t
352
+ time: n
354
353
  }, await this.loadSource(r);
355
354
  }
356
355
  #I() {