@sapia-ai/chatbot-v3 1.0.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 (108) hide show
  1. package/dist/EmbeddedVideoPlayer-SaMMfDIW.js +1277 -0
  2. package/dist/EmbeddedVideoPlayer-SaMMfDIW.js.map +1 -0
  3. package/dist/Preview-Db-hgkTh.js +83 -0
  4. package/dist/Preview-Db-hgkTh.js.map +1 -0
  5. package/dist/api/client.d.ts +60 -0
  6. package/dist/api/config.d.ts +18 -0
  7. package/dist/api/constants.d.ts +5 -0
  8. package/dist/api/index.d.ts +5 -0
  9. package/dist/api/sse.d.ts +12 -0
  10. package/dist/api/types/branding.d.ts +17 -0
  11. package/dist/api/types/messages.d.ts +148 -0
  12. package/dist/api/types/responses.d.ts +106 -0
  13. package/dist/api.js +2 -0
  14. package/dist/classPrivateFieldSet2-DtQPURVD.js +32 -0
  15. package/dist/core/bubbles/convert.d.ts +18 -0
  16. package/dist/core/bubbles/types.d.ts +55 -0
  17. package/dist/core/constants.d.ts +14 -0
  18. package/dist/core/events.d.ts +44 -0
  19. package/dist/core/i18n/fallback.d.ts +2 -0
  20. package/dist/core/i18n/languages.d.ts +11 -0
  21. package/dist/core/i18n/translator.d.ts +13 -0
  22. package/dist/core/interview.d.ts +207 -0
  23. package/dist/core/media/mimeTypes.d.ts +10 -0
  24. package/dist/core/media/recorder.d.ts +61 -0
  25. package/dist/core/persistence.d.ts +4 -0
  26. package/dist/core/store.d.ts +49 -0
  27. package/dist/core/theme/branding.d.ts +6 -0
  28. package/dist/core/theme/cssVariables.d.ts +16 -0
  29. package/dist/core/theme/types.d.ts +11 -0
  30. package/dist/core/validation/phoneCountries.d.ts +21 -0
  31. package/dist/core/validation/pii.d.ts +30 -0
  32. package/dist/dash.all.min-DZ1yEcJk.js +27302 -0
  33. package/dist/dash.all.min-DZ1yEcJk.js.map +1 -0
  34. package/dist/defineProperty-DiFpLzd2.js +39 -0
  35. package/dist/dist-BSi28_cP.js +702 -0
  36. package/dist/dist-BSi28_cP.js.map +1 -0
  37. package/dist/dist-DGBYKC8c.js +14327 -0
  38. package/dist/dist-DGBYKC8c.js.map +1 -0
  39. package/dist/dist-FvHBWiRa.js +76 -0
  40. package/dist/dist-FvHBWiRa.js.map +1 -0
  41. package/dist/embed/compat.d.ts +82 -0
  42. package/dist/embed/constants.d.ts +2 -0
  43. package/dist/embed/createChatbot.d.ts +22 -0
  44. package/dist/fix-webm-duration-BW9Fbdzt.js +1057 -0
  45. package/dist/fix-webm-duration-BW9Fbdzt.js.map +1 -0
  46. package/dist/hls-mBncGwsE.js +18657 -0
  47. package/dist/hls-mBncGwsE.js.map +1 -0
  48. package/dist/index.d.ts +7 -0
  49. package/dist/index.js +4428 -0
  50. package/dist/index.js.map +1 -0
  51. package/dist/max-Btet1snX.js +12212 -0
  52. package/dist/max-Btet1snX.js.map +1 -0
  53. package/dist/messages-C4jqrtSG.js +187 -0
  54. package/dist/messages-C4jqrtSG.js.map +1 -0
  55. package/dist/react/AnswerInput.d.ts +21 -0
  56. package/dist/react/SapiaChatbot.d.ts +23 -0
  57. package/dist/react/bubbleViewModel.d.ts +50 -0
  58. package/dist/react/strings.d.ts +98 -0
  59. package/dist/react/useBeforeUnload.d.ts +5 -0
  60. package/dist/react/useVideoRecorder.d.ts +24 -0
  61. package/dist/react-BGJ7Szvq.js +216 -0
  62. package/dist/react-BGJ7Szvq.js.map +1 -0
  63. package/dist/react-BMxM8TWJ.js +192 -0
  64. package/dist/react-BMxM8TWJ.js.map +1 -0
  65. package/dist/react-BVzcquey.js +457 -0
  66. package/dist/react-BVzcquey.js.map +1 -0
  67. package/dist/react-BrCGR7Ca.js +2208 -0
  68. package/dist/react-BrCGR7Ca.js.map +1 -0
  69. package/dist/react-Bujo1aK5.js +334 -0
  70. package/dist/react-Bujo1aK5.js.map +1 -0
  71. package/dist/react-CRTg4gz8.js +367 -0
  72. package/dist/react-CRTg4gz8.js.map +1 -0
  73. package/dist/react-GXf8sbzf.js +311 -0
  74. package/dist/react-GXf8sbzf.js.map +1 -0
  75. package/dist/react-lp7yfM94.js +371 -0
  76. package/dist/react-lp7yfM94.js.map +1 -0
  77. package/dist/sapia-chatbot.css +3 -0
  78. package/dist/sapia.d.ts +4 -0
  79. package/dist/ui/chat/ChatBubble/ChatBubble.d.ts +47 -0
  80. package/dist/ui/chat/ChatLog/ChatLog.d.ts +33 -0
  81. package/dist/ui/chat/TypingIndicator/TypingIndicator.d.ts +17 -0
  82. package/dist/ui/chat/types.d.ts +71 -0
  83. package/dist/ui/constants.d.ts +2 -0
  84. package/dist/ui/inputs/DropdownInput/DropdownInput.d.ts +18 -0
  85. package/dist/ui/inputs/OptionList/OptionList.d.ts +18 -0
  86. package/dist/ui/inputs/PhoneAnswerInput/PhoneAnswerInput.d.ts +19 -0
  87. package/dist/ui/inputs/SliderInput/SliderInput.d.ts +19 -0
  88. package/dist/ui/inputs/TextAnswerInput/TextAnswerInput.d.ts +32 -0
  89. package/dist/ui/inputs/VideoRecorder/VideoRecorder.d.ts +54 -0
  90. package/dist/ui/media/EmbeddedVideo/EmbeddedVideo.d.ts +11 -0
  91. package/dist/ui/media/EmbeddedVideo/EmbeddedVideoPlayer.d.ts +16 -0
  92. package/dist/ui/media/EmbeddedVideo/VimeoPlayer.d.ts +20 -0
  93. package/dist/ui/media/UploadProgress/UploadProgress.d.ts +7 -0
  94. package/dist/ui/media/VideoPlayer/VideoPlayer.d.ts +13 -0
  95. package/dist/ui/primitives/Button/Button.d.ts +6 -0
  96. package/dist/ui/primitives/Dialog/Dialog.d.ts +16 -0
  97. package/dist/ui/richText.d.ts +6 -0
  98. package/dist/ui/shell/AccessVerificationForm/AccessVerificationForm.d.ts +21 -0
  99. package/dist/ui/shell/CopyLinkButton/CopyLinkButton.d.ts +11 -0
  100. package/dist/ui/shell/DoneScreen/DoneScreen.d.ts +15 -0
  101. package/dist/ui/shell/Header/Header.d.ts +13 -0
  102. package/dist/ui/shell/PreparingScreen/PreparingScreen.d.ts +9 -0
  103. package/dist/ui/shell/ProgressBar/ProgressBar.d.ts +9 -0
  104. package/dist/ui/shell/WelcomeScreen/WelcomeScreen.d.ts +22 -0
  105. package/dist/ui/shell/WidgetRoot/WidgetRoot.d.ts +12 -0
  106. package/dist-umd/sapia-chatbot.umd.js +3655 -0
  107. package/dist-umd/sapia-chatbot.umd.js.map +1 -0
  108. package/package.json +94 -0
@@ -0,0 +1,2208 @@
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";
3
+ import { t as o } from "./dist-FvHBWiRa.js";
4
+ import s from "react";
5
+ //#region ../../node_modules/.pnpm/@vimeo+player@2.29.0/node_modules/@vimeo/player/dist/player.es.js
6
+ function c(e, t) {
7
+ var n = Object.keys(e);
8
+ if (Object.getOwnPropertySymbols) {
9
+ var r = Object.getOwnPropertySymbols(e);
10
+ t && (r = r.filter(function(t) {
11
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
12
+ })), n.push.apply(n, r);
13
+ }
14
+ return n;
15
+ }
16
+ function l(e) {
17
+ for (var t = 1; t < arguments.length; t++) {
18
+ var n = arguments[t] == null ? {} : arguments[t];
19
+ t % 2 ? c(Object(n), !0).forEach(function(t) {
20
+ g(e, t, n[t]);
21
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : c(Object(n)).forEach(function(t) {
22
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
23
+ });
24
+ }
25
+ return e;
26
+ }
27
+ function u() {
28
+ u = function() {
29
+ return e;
30
+ };
31
+ var e = {}, t = Object.prototype, n = t.hasOwnProperty, r = Object.defineProperty || function(e, t, n) {
32
+ e[t] = n.value;
33
+ }, i = typeof Symbol == "function" ? Symbol : {}, a = i.iterator || "@@iterator", o = i.asyncIterator || "@@asyncIterator", s = i.toStringTag || "@@toStringTag";
34
+ function c(e, t, n) {
35
+ return Object.defineProperty(e, t, {
36
+ value: n,
37
+ enumerable: !0,
38
+ configurable: !0,
39
+ writable: !0
40
+ }), e[t];
41
+ }
42
+ try {
43
+ c({}, "");
44
+ } catch {
45
+ c = function(e, t, n) {
46
+ return e[t] = n;
47
+ };
48
+ }
49
+ function l(e, t, n, i) {
50
+ var a = t && t.prototype instanceof p ? t : p, o = Object.create(a.prototype);
51
+ return r(o, "_invoke", { value: ee(e, n, new T(i || [])) }), o;
52
+ }
53
+ function d(e, t, n) {
54
+ try {
55
+ return {
56
+ type: "normal",
57
+ arg: e.call(t, n)
58
+ };
59
+ } catch (e) {
60
+ return {
61
+ type: "throw",
62
+ arg: e
63
+ };
64
+ }
65
+ }
66
+ e.wrap = l;
67
+ var f = {};
68
+ function p() {}
69
+ function m() {}
70
+ function h() {}
71
+ var g = {};
72
+ c(g, a, function() {
73
+ return this;
74
+ });
75
+ var _ = Object.getPrototypeOf, v = _ && _(_(E([])));
76
+ v && v !== t && n.call(v, a) && (g = v);
77
+ var y = h.prototype = p.prototype = Object.create(g);
78
+ function b(e) {
79
+ [
80
+ "next",
81
+ "throw",
82
+ "return"
83
+ ].forEach(function(t) {
84
+ c(e, t, function(e) {
85
+ return this._invoke(t, e);
86
+ });
87
+ });
88
+ }
89
+ function x(e, t) {
90
+ function i(r, a, o, s) {
91
+ var c = d(e[r], e, a);
92
+ if (c.type !== "throw") {
93
+ var l = c.arg, u = l.value;
94
+ return u && typeof u == "object" && n.call(u, "__await") ? t.resolve(u.__await).then(function(e) {
95
+ i("next", e, o, s);
96
+ }, function(e) {
97
+ i("throw", e, o, s);
98
+ }) : t.resolve(u).then(function(e) {
99
+ l.value = e, o(l);
100
+ }, function(e) {
101
+ return i("throw", e, o, s);
102
+ });
103
+ }
104
+ s(c.arg);
105
+ }
106
+ var a;
107
+ r(this, "_invoke", { value: function(e, n) {
108
+ function r() {
109
+ return new t(function(t, r) {
110
+ i(e, n, t, r);
111
+ });
112
+ }
113
+ return a = a ? a.then(r, r) : r();
114
+ } });
115
+ }
116
+ function ee(e, t, n) {
117
+ var r = "suspendedStart";
118
+ return function(i, a) {
119
+ if (r === "executing") throw Error("Generator is already running");
120
+ if (r === "completed") {
121
+ if (i === "throw") throw a;
122
+ return D();
123
+ }
124
+ for (n.method = i, n.arg = a;;) {
125
+ var o = n.delegate;
126
+ if (o) {
127
+ var s = S(o, n);
128
+ if (s) {
129
+ if (s === f) continue;
130
+ return s;
131
+ }
132
+ }
133
+ if (n.method === "next") n.sent = n._sent = n.arg;
134
+ else if (n.method === "throw") {
135
+ if (r === "suspendedStart") throw r = "completed", n.arg;
136
+ n.dispatchException(n.arg);
137
+ } else n.method === "return" && n.abrupt("return", n.arg);
138
+ r = "executing";
139
+ var c = d(e, t, n);
140
+ if (c.type === "normal") {
141
+ if (r = n.done ? "completed" : "suspendedYield", c.arg === f) continue;
142
+ return {
143
+ value: c.arg,
144
+ done: n.done
145
+ };
146
+ }
147
+ c.type === "throw" && (r = "completed", n.method = "throw", n.arg = c.arg);
148
+ }
149
+ };
150
+ }
151
+ function S(e, t) {
152
+ var n = t.method, r = e.iterator[n];
153
+ if (r === void 0) return t.delegate = null, n === "throw" && e.iterator.return && (t.method = "return", t.arg = void 0, S(e, t), t.method === "throw") || n !== "return" && (t.method = "throw", t.arg = /* @__PURE__ */ TypeError("The iterator does not provide a '" + n + "' method")), f;
154
+ var i = d(r, e.iterator, t.arg);
155
+ if (i.type === "throw") return t.method = "throw", t.arg = i.arg, t.delegate = null, f;
156
+ var a = i.arg;
157
+ return a ? a.done ? (t[e.resultName] = a.value, t.next = e.nextLoc, t.method !== "return" && (t.method = "next", t.arg = void 0), t.delegate = null, f) : a : (t.method = "throw", t.arg = /* @__PURE__ */ TypeError("iterator result is not an object"), t.delegate = null, f);
158
+ }
159
+ function C(e) {
160
+ var t = { tryLoc: e[0] };
161
+ 1 in e && (t.catchLoc = e[1]), 2 in e && (t.finallyLoc = e[2], t.afterLoc = e[3]), this.tryEntries.push(t);
162
+ }
163
+ function w(e) {
164
+ var t = e.completion || {};
165
+ t.type = "normal", delete t.arg, e.completion = t;
166
+ }
167
+ function T(e) {
168
+ this.tryEntries = [{ tryLoc: "root" }], e.forEach(C, this), this.reset(!0);
169
+ }
170
+ function E(e) {
171
+ if (e) {
172
+ var t = e[a];
173
+ if (t) return t.call(e);
174
+ if (typeof e.next == "function") return e;
175
+ if (!isNaN(e.length)) {
176
+ var r = -1, i = function t() {
177
+ for (; ++r < e.length;) if (n.call(e, r)) return t.value = e[r], t.done = !1, t;
178
+ return t.value = void 0, t.done = !0, t;
179
+ };
180
+ return i.next = i;
181
+ }
182
+ }
183
+ return { next: D };
184
+ }
185
+ function D() {
186
+ return {
187
+ value: void 0,
188
+ done: !0
189
+ };
190
+ }
191
+ return m.prototype = h, r(y, "constructor", {
192
+ value: h,
193
+ configurable: !0
194
+ }), r(h, "constructor", {
195
+ value: m,
196
+ configurable: !0
197
+ }), m.displayName = c(h, s, "GeneratorFunction"), e.isGeneratorFunction = function(e) {
198
+ var t = typeof e == "function" && e.constructor;
199
+ return !!t && (t === m || (t.displayName || t.name) === "GeneratorFunction");
200
+ }, e.mark = function(e) {
201
+ return Object.setPrototypeOf ? Object.setPrototypeOf(e, h) : (e.__proto__ = h, c(e, s, "GeneratorFunction")), e.prototype = Object.create(y), e;
202
+ }, e.awrap = function(e) {
203
+ return { __await: e };
204
+ }, b(x.prototype), c(x.prototype, o, function() {
205
+ return this;
206
+ }), e.AsyncIterator = x, e.async = function(t, n, r, i, a) {
207
+ a === void 0 && (a = Promise);
208
+ var o = new x(l(t, n, r, i), a);
209
+ return e.isGeneratorFunction(n) ? o : o.next().then(function(e) {
210
+ return e.done ? e.value : o.next();
211
+ });
212
+ }, b(y), c(y, s, "Generator"), c(y, a, function() {
213
+ return this;
214
+ }), c(y, "toString", function() {
215
+ return "[object Generator]";
216
+ }), e.keys = function(e) {
217
+ var t = Object(e), n = [];
218
+ for (var r in t) n.push(r);
219
+ return n.reverse(), function e() {
220
+ for (; n.length;) {
221
+ var r = n.pop();
222
+ if (r in t) return e.value = r, e.done = !1, e;
223
+ }
224
+ return e.done = !0, e;
225
+ };
226
+ }, e.values = E, T.prototype = {
227
+ constructor: T,
228
+ reset: function(e) {
229
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = void 0, this.done = !1, this.delegate = null, this.method = "next", this.arg = void 0, this.tryEntries.forEach(w), !e) for (var t in this) t.charAt(0) === "t" && n.call(this, t) && !isNaN(+t.slice(1)) && (this[t] = void 0);
230
+ },
231
+ stop: function() {
232
+ this.done = !0;
233
+ var e = this.tryEntries[0].completion;
234
+ if (e.type === "throw") throw e.arg;
235
+ return this.rval;
236
+ },
237
+ dispatchException: function(e) {
238
+ if (this.done) throw e;
239
+ var t = this;
240
+ function r(n, r) {
241
+ return o.type = "throw", o.arg = e, t.next = n, r && (t.method = "next", t.arg = void 0), !!r;
242
+ }
243
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
244
+ var a = this.tryEntries[i], o = a.completion;
245
+ if (a.tryLoc === "root") return r("end");
246
+ if (a.tryLoc <= this.prev) {
247
+ var s = n.call(a, "catchLoc"), c = n.call(a, "finallyLoc");
248
+ if (s && c) {
249
+ if (this.prev < a.catchLoc) return r(a.catchLoc, !0);
250
+ if (this.prev < a.finallyLoc) return r(a.finallyLoc);
251
+ } else if (s) {
252
+ if (this.prev < a.catchLoc) return r(a.catchLoc, !0);
253
+ } else {
254
+ if (!c) throw Error("try statement without catch or finally");
255
+ if (this.prev < a.finallyLoc) return r(a.finallyLoc);
256
+ }
257
+ }
258
+ }
259
+ },
260
+ abrupt: function(e, t) {
261
+ for (var r = this.tryEntries.length - 1; r >= 0; --r) {
262
+ var i = this.tryEntries[r];
263
+ if (i.tryLoc <= this.prev && n.call(i, "finallyLoc") && this.prev < i.finallyLoc) {
264
+ var a = i;
265
+ break;
266
+ }
267
+ }
268
+ a && (e === "break" || e === "continue") && a.tryLoc <= t && t <= a.finallyLoc && (a = null);
269
+ var o = a ? a.completion : {};
270
+ return o.type = e, o.arg = t, a ? (this.method = "next", this.next = a.finallyLoc, f) : this.complete(o);
271
+ },
272
+ complete: function(e, t) {
273
+ if (e.type === "throw") throw e.arg;
274
+ return e.type === "break" || e.type === "continue" ? this.next = e.arg : e.type === "return" ? (this.rval = this.arg = e.arg, this.method = "return", this.next = "end") : e.type === "normal" && t && (this.next = t), f;
275
+ },
276
+ finish: function(e) {
277
+ for (var t = this.tryEntries.length - 1; t >= 0; --t) {
278
+ var n = this.tryEntries[t];
279
+ if (n.finallyLoc === e) return this.complete(n.completion, n.afterLoc), w(n), f;
280
+ }
281
+ },
282
+ catch: function(e) {
283
+ for (var t = this.tryEntries.length - 1; t >= 0; --t) {
284
+ var n = this.tryEntries[t];
285
+ if (n.tryLoc === e) {
286
+ var r = n.completion;
287
+ if (r.type === "throw") {
288
+ var i = r.arg;
289
+ w(n);
290
+ }
291
+ return i;
292
+ }
293
+ }
294
+ throw Error("illegal catch attempt");
295
+ },
296
+ delegateYield: function(e, t, n) {
297
+ return this.delegate = {
298
+ iterator: E(e),
299
+ resultName: t,
300
+ nextLoc: n
301
+ }, this.method === "next" && (this.arg = void 0), f;
302
+ }
303
+ }, e;
304
+ }
305
+ function d(e, t, n, r, i, a, o) {
306
+ try {
307
+ var s = e[a](o), c = s.value;
308
+ } catch (e) {
309
+ n(e);
310
+ return;
311
+ }
312
+ s.done ? t(c) : Promise.resolve(c).then(r, i);
313
+ }
314
+ function f(e) {
315
+ return function() {
316
+ var t = this, n = arguments;
317
+ return new Promise(function(r, i) {
318
+ var a = e.apply(t, n);
319
+ function o(e) {
320
+ d(a, r, i, o, s, "next", e);
321
+ }
322
+ function s(e) {
323
+ d(a, r, i, o, s, "throw", e);
324
+ }
325
+ o(void 0);
326
+ });
327
+ };
328
+ }
329
+ function p(e, t) {
330
+ if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
331
+ }
332
+ function m(e, t) {
333
+ for (var n = 0; n < t.length; n++) {
334
+ var r = t[n];
335
+ r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, D(r.key), r);
336
+ }
337
+ }
338
+ function h(e, t, n) {
339
+ return t && m(e.prototype, t), n && m(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
340
+ }
341
+ function g(e, t, n) {
342
+ return t = D(t), t in e ? Object.defineProperty(e, t, {
343
+ value: n,
344
+ enumerable: !0,
345
+ configurable: !0,
346
+ writable: !0
347
+ }) : e[t] = n, e;
348
+ }
349
+ function _(e, t) {
350
+ if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function");
351
+ e.prototype = Object.create(t && t.prototype, { constructor: {
352
+ value: e,
353
+ writable: !0,
354
+ configurable: !0
355
+ } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && y(e, t);
356
+ }
357
+ function v(e) {
358
+ return v = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
359
+ return e.__proto__ || Object.getPrototypeOf(e);
360
+ }, v(e);
361
+ }
362
+ function y(e, t) {
363
+ return y = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
364
+ return e.__proto__ = t, e;
365
+ }, y(e, t);
366
+ }
367
+ function b() {
368
+ if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
369
+ if (typeof Proxy == "function") return !0;
370
+ try {
371
+ return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})), !0;
372
+ } catch {
373
+ return !1;
374
+ }
375
+ }
376
+ function x(e, t, n) {
377
+ return x = b() ? Reflect.construct.bind() : function(e, t, n) {
378
+ var r = [null];
379
+ r.push.apply(r, t);
380
+ var i = new (Function.bind.apply(e, r))();
381
+ return n && y(i, n.prototype), i;
382
+ }, x.apply(null, arguments);
383
+ }
384
+ function ee(e) {
385
+ return Function.toString.call(e).indexOf("[native code]") !== -1;
386
+ }
387
+ function S(e) {
388
+ var t = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
389
+ return S = function(e) {
390
+ if (e === null || !ee(e)) return e;
391
+ if (typeof e != "function") throw TypeError("Super expression must either be null or a function");
392
+ if (t !== void 0) {
393
+ if (t.has(e)) return t.get(e);
394
+ t.set(e, n);
395
+ }
396
+ function n() {
397
+ return x(e, arguments, v(this).constructor);
398
+ }
399
+ return n.prototype = Object.create(e.prototype, { constructor: {
400
+ value: n,
401
+ enumerable: !1,
402
+ writable: !0,
403
+ configurable: !0
404
+ } }), y(n, e);
405
+ }, S(e);
406
+ }
407
+ function C(e) {
408
+ if (e === void 0) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
409
+ return e;
410
+ }
411
+ function w(e, t) {
412
+ if (t && (typeof t == "object" || typeof t == "function")) return t;
413
+ if (t !== void 0) throw TypeError("Derived constructors may only return object or undefined");
414
+ return C(e);
415
+ }
416
+ function T(e) {
417
+ var t = b();
418
+ return function() {
419
+ var n = v(e), r;
420
+ if (t) {
421
+ var i = v(this).constructor;
422
+ r = Reflect.construct(n, arguments, i);
423
+ } else r = n.apply(this, arguments);
424
+ return w(this, r);
425
+ };
426
+ }
427
+ function E(e, t) {
428
+ if (typeof e != "object" || !e) return e;
429
+ var n = e[Symbol.toPrimitive];
430
+ if (n !== void 0) {
431
+ var r = n.call(e, t || "default");
432
+ if (typeof r != "object") return r;
433
+ throw TypeError("@@toPrimitive must return a primitive value.");
434
+ }
435
+ return (t === "string" ? String : Number)(e);
436
+ }
437
+ function D(e) {
438
+ var t = E(e, "string");
439
+ return typeof t == "symbol" ? t : String(t);
440
+ }
441
+ var te = typeof global < "u" && {}.toString.call(global) === "[object global]";
442
+ function ne(e, t) {
443
+ return e.indexOf(t.toLowerCase()) === 0 ? e : `${t.toLowerCase()}${e.substr(0, 1).toUpperCase()}${e.substr(1)}`;
444
+ }
445
+ function re(e) {
446
+ return !!(e && e.nodeType === 1 && "nodeName" in e && e.ownerDocument && e.ownerDocument.defaultView);
447
+ }
448
+ function ie(e) {
449
+ return !isNaN(parseFloat(e)) && isFinite(e) && Math.floor(e) == e;
450
+ }
451
+ function O(e) {
452
+ return /^(https?:)?\/\/((((player|www)\.)?vimeo\.com)|((player\.)?[a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))(?=$|\/)/.test(e);
453
+ }
454
+ function ae(e) {
455
+ return /^https:\/\/player\.((vimeo\.com)|([a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))\/video\/\d+/.test(e);
456
+ }
457
+ function oe(e) {
458
+ for (var t = (e || "").match(/^(?:https?:)?(?:\/\/)?([^/?]+)/), n = (t && t[1] || "").replace("player.", ""), r = [
459
+ ".videoji.hk",
460
+ ".vimeo.work",
461
+ ".videoji.cn"
462
+ ], i = 0, a = r; i < a.length; i++) {
463
+ var o = a[i];
464
+ if (n.endsWith(o)) return n;
465
+ }
466
+ return "vimeo.com";
467
+ }
468
+ function se() {
469
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.id, n = e.url, r = t || n;
470
+ if (!r) throw Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");
471
+ if (ie(r)) return `https://vimeo.com/${r}`;
472
+ if (O(r)) return r.replace("http:", "https:");
473
+ throw TypeError(t ? `“${t}” is not a valid video id.` : `“${r}” is not a vimeo.com url.`);
474
+ }
475
+ var ce = function(e, t, n) {
476
+ var r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "addEventListener", i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : "removeEventListener", a = typeof t == "string" ? [t] : t;
477
+ return a.forEach(function(t) {
478
+ e[r](t, n);
479
+ }), { cancel: function() {
480
+ return a.forEach(function(t) {
481
+ return e[i](t, n);
482
+ });
483
+ } };
484
+ }, le = Array.prototype.indexOf !== void 0, ue = typeof window < "u" && window.postMessage !== void 0;
485
+ if (!te && (!le || !ue)) throw Error("Sorry, the Vimeo Player API is not available in this browser.");
486
+ var de = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
487
+ function fe(e, t) {
488
+ return t = { exports: {} }, e(t, t.exports), t.exports;
489
+ }
490
+ (function(e) {
491
+ if (e.WeakMap) return;
492
+ var t = Object.prototype.hasOwnProperty, n = Object.defineProperty && function() {
493
+ try {
494
+ return Object.defineProperty({}, "x", { value: 1 }).x === 1;
495
+ } catch {}
496
+ }(), r = function(e, t, r) {
497
+ n ? Object.defineProperty(e, t, {
498
+ configurable: !0,
499
+ writable: !0,
500
+ value: r
501
+ }) : e[t] = r;
502
+ };
503
+ e.WeakMap = function() {
504
+ function e() {
505
+ if (this === void 0) throw TypeError("Constructor WeakMap requires 'new'");
506
+ if (r(this, "_id", a("_WeakMap")), arguments.length > 0) throw TypeError("WeakMap iterable is not supported");
507
+ }
508
+ r(e.prototype, "delete", function(e) {
509
+ if (n(this, "delete"), !i(e)) return !1;
510
+ var t = e[this._id];
511
+ return t && t[0] === e ? (delete e[this._id], !0) : !1;
512
+ }), r(e.prototype, "get", function(e) {
513
+ if (n(this, "get"), i(e)) {
514
+ var t = e[this._id];
515
+ if (t && t[0] === e) return t[1];
516
+ }
517
+ }), r(e.prototype, "has", function(e) {
518
+ if (n(this, "has"), !i(e)) return !1;
519
+ var t = e[this._id];
520
+ return !!(t && t[0] === e);
521
+ }), r(e.prototype, "set", function(e, t) {
522
+ if (n(this, "set"), !i(e)) throw TypeError("Invalid value used as weak map key");
523
+ var a = e[this._id];
524
+ return a && a[0] === e ? (a[1] = t, this) : (r(e, this._id, [e, t]), this);
525
+ });
526
+ function n(e, n) {
527
+ if (!i(e) || !t.call(e, "_id")) throw TypeError(n + " method called on incompatible receiver " + typeof e);
528
+ }
529
+ function a(e) {
530
+ return e + "_" + o() + "." + o();
531
+ }
532
+ function o() {
533
+ return Math.random().toString().substring(2);
534
+ }
535
+ return r(e, "_polyfill", !0), e;
536
+ }();
537
+ function i(e) {
538
+ return Object(e) === e;
539
+ }
540
+ })(typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : de);
541
+ var k = fe(function(e) {
542
+ (function(t, n, r) {
543
+ n[t] = n[t] || r(), e.exports && (e.exports = n[t]);
544
+ })("Promise", de, function() {
545
+ var e, t, n, r = Object.prototype.toString, i = typeof setImmediate < "u" ? function(e) {
546
+ return setImmediate(e);
547
+ } : setTimeout;
548
+ try {
549
+ Object.defineProperty({}, "x", {}), e = function(e, t, n, r) {
550
+ return Object.defineProperty(e, t, {
551
+ value: n,
552
+ writable: !0,
553
+ configurable: r !== !1
554
+ });
555
+ };
556
+ } catch {
557
+ e = function(e, t, n) {
558
+ return e[t] = n, e;
559
+ };
560
+ }
561
+ n = function() {
562
+ var e, n, r;
563
+ function i(e, t) {
564
+ this.fn = e, this.self = t, this.next = void 0;
565
+ }
566
+ return {
567
+ add: function(t, a) {
568
+ r = new i(t, a), n ? n.next = r : e = r, n = r, r = void 0;
569
+ },
570
+ drain: function() {
571
+ var r = e;
572
+ for (e = n = t = void 0; r;) r.fn.call(r.self), r = r.next;
573
+ }
574
+ };
575
+ }();
576
+ function a(e, r) {
577
+ n.add(e, r), t || (t = i(n.drain));
578
+ }
579
+ function o(e) {
580
+ var t, n = typeof e;
581
+ return e != null && (n == "object" || n == "function") && (t = e.then), typeof t == "function" ? t : !1;
582
+ }
583
+ function s() {
584
+ for (var e = 0; e < this.chain.length; e++) c(this, this.state === 1 ? this.chain[e].success : this.chain[e].failure, this.chain[e]);
585
+ this.chain.length = 0;
586
+ }
587
+ function c(e, t, n) {
588
+ var r, i;
589
+ try {
590
+ t === !1 ? n.reject(e.msg) : (r = t === !0 ? e.msg : t.call(void 0, e.msg), r === n.promise ? n.reject(TypeError("Promise-chain cycle")) : (i = o(r)) ? i.call(r, n.resolve, n.reject) : n.resolve(r));
591
+ } catch (e) {
592
+ n.reject(e);
593
+ }
594
+ }
595
+ function l(e) {
596
+ var t, n = this;
597
+ if (!n.triggered) {
598
+ n.triggered = !0, n.def && (n = n.def);
599
+ try {
600
+ (t = o(e)) ? a(function() {
601
+ var r = new f(n);
602
+ try {
603
+ t.call(e, function() {
604
+ l.apply(r, arguments);
605
+ }, function() {
606
+ u.apply(r, arguments);
607
+ });
608
+ } catch (e) {
609
+ u.call(r, e);
610
+ }
611
+ }) : (n.msg = e, n.state = 1, n.chain.length > 0 && a(s, n));
612
+ } catch (e) {
613
+ u.call(new f(n), e);
614
+ }
615
+ }
616
+ }
617
+ function u(e) {
618
+ var t = this;
619
+ t.triggered || (t.triggered = !0, t.def && (t = t.def), t.msg = e, t.state = 2, t.chain.length > 0 && a(s, t));
620
+ }
621
+ function d(e, t, n, r) {
622
+ for (var i = 0; i < t.length; i++) (function(i) {
623
+ e.resolve(t[i]).then(function(e) {
624
+ n(i, e);
625
+ }, r);
626
+ })(i);
627
+ }
628
+ function f(e) {
629
+ this.def = e, this.triggered = !1;
630
+ }
631
+ function p(e) {
632
+ this.promise = e, this.state = 0, this.triggered = !1, this.chain = [], this.msg = void 0;
633
+ }
634
+ function m(e) {
635
+ if (typeof e != "function") throw TypeError("Not a function");
636
+ if (this.__NPO__ !== 0) throw TypeError("Not a promise");
637
+ this.__NPO__ = 1;
638
+ var t = new p(this);
639
+ this.then = function(e, n) {
640
+ var r = {
641
+ success: typeof e == "function" ? e : !0,
642
+ failure: typeof n == "function" ? n : !1
643
+ };
644
+ return r.promise = new this.constructor(function(e, t) {
645
+ if (typeof e != "function" || typeof t != "function") throw TypeError("Not a function");
646
+ r.resolve = e, r.reject = t;
647
+ }), t.chain.push(r), t.state !== 0 && a(s, t), r.promise;
648
+ }, this.catch = function(e) {
649
+ return this.then(void 0, e);
650
+ };
651
+ try {
652
+ e.call(void 0, function(e) {
653
+ l.call(t, e);
654
+ }, function(e) {
655
+ u.call(t, e);
656
+ });
657
+ } catch (e) {
658
+ u.call(t, e);
659
+ }
660
+ }
661
+ var h = e({}, "constructor", m, !1);
662
+ return m.prototype = h, e(h, "__NPO__", 0, !1), e(m, "resolve", function(e) {
663
+ var t = this;
664
+ return e && typeof e == "object" && e.__NPO__ === 1 ? e : new t(function(t, n) {
665
+ if (typeof t != "function" || typeof n != "function") throw TypeError("Not a function");
666
+ t(e);
667
+ });
668
+ }), e(m, "reject", function(e) {
669
+ return new this(function(t, n) {
670
+ if (typeof t != "function" || typeof n != "function") throw TypeError("Not a function");
671
+ n(e);
672
+ });
673
+ }), e(m, "all", function(e) {
674
+ var t = this;
675
+ return r.call(e) == "[object Array]" ? e.length === 0 ? t.resolve([]) : new t(function(n, r) {
676
+ if (typeof n != "function" || typeof r != "function") throw TypeError("Not a function");
677
+ var i = e.length, a = Array(i), o = 0;
678
+ d(t, e, function(e, t) {
679
+ a[e] = t, ++o === i && n(a);
680
+ }, r);
681
+ }) : t.reject(TypeError("Not an array"));
682
+ }), e(m, "race", function(e) {
683
+ var t = this;
684
+ return r.call(e) == "[object Array]" ? new t(function(n, r) {
685
+ if (typeof n != "function" || typeof r != "function") throw TypeError("Not a function");
686
+ d(t, e, function(e, t) {
687
+ n(t);
688
+ }, r);
689
+ }) : t.reject(TypeError("Not an array"));
690
+ }), m;
691
+ });
692
+ }), A = /* @__PURE__ */ new WeakMap();
693
+ function j(e, t, n) {
694
+ var r = A.get(e.element) || {};
695
+ t in r || (r[t] = []), r[t].push(n), A.set(e.element, r);
696
+ }
697
+ function M(e, t) {
698
+ return (A.get(e.element) || {})[t] || [];
699
+ }
700
+ function N(e, t, n) {
701
+ var r = A.get(e.element) || {};
702
+ if (!r[t]) return !0;
703
+ if (!n) return r[t] = [], A.set(e.element, r), !0;
704
+ var i = r[t].indexOf(n);
705
+ return i !== -1 && r[t].splice(i, 1), A.set(e.element, r), r[t] && r[t].length === 0;
706
+ }
707
+ function pe(e, t) {
708
+ var n = M(e, t);
709
+ if (n.length < 1) return !1;
710
+ var r = n.shift();
711
+ return N(e, t, r), r;
712
+ }
713
+ function me(e, t) {
714
+ var n = A.get(e);
715
+ A.set(t, n), A.delete(e);
716
+ }
717
+ function P(e) {
718
+ if (typeof e == "string") try {
719
+ e = JSON.parse(e);
720
+ } catch (e) {
721
+ return console.warn(e), {};
722
+ }
723
+ return e;
724
+ }
725
+ function F(e, t, n) {
726
+ if (!(!e.element.contentWindow || !e.element.contentWindow.postMessage)) {
727
+ var r = { method: t };
728
+ n !== void 0 && (r.value = n);
729
+ var i = parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/, "$1"));
730
+ i >= 8 && i < 10 && (r = JSON.stringify(r)), e.element.contentWindow.postMessage(r, e.origin);
731
+ }
732
+ }
733
+ function he(e, t) {
734
+ t = P(t);
735
+ var n = [], r;
736
+ if (t.event) t.event === "error" && M(e, t.data.method).forEach(function(n) {
737
+ var r = Error(t.data.message);
738
+ r.name = t.data.name, n.reject(r), N(e, t.data.method, n);
739
+ }), n = M(e, `event:${t.event}`), r = t.data;
740
+ else if (t.method) {
741
+ var i = pe(e, t.method);
742
+ i && (n.push(i), r = t.value);
743
+ }
744
+ n.forEach(function(t) {
745
+ try {
746
+ if (typeof t == "function") {
747
+ t.call(e, r);
748
+ return;
749
+ }
750
+ t.resolve(r);
751
+ } catch {}
752
+ });
753
+ }
754
+ var ge = /* @__PURE__ */ "airplay.audio_tracks.audiotrack.autopause.autoplay.background.byline.cc.chapter_id.chapters.chromecast.color.colors.controls.dnt.end_time.fullscreen.height.id.initial_quality.interactive_params.keyboard.loop.maxheight.max_quality.maxwidth.min_quality.muted.play_button_position.playsinline.portrait.preload.progress_bar.quality.quality_selector.responsive.skipping_forward.speed.start_time.texttrack.thumbnail_id.title.transcript.transparent.unmute_button.url.vimeo_logo.volume.watch_full_video.width".split(".");
755
+ function _e(e) {
756
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
757
+ return ge.reduce(function(t, n) {
758
+ var r = e.getAttribute(`data-vimeo-${n}`);
759
+ return (r || r === "") && (t[n] = r === "" ? 1 : r), t;
760
+ }, t);
761
+ }
762
+ function ve(e, t) {
763
+ var n = e.html;
764
+ if (!t) throw TypeError("An element must be provided");
765
+ if (t.getAttribute("data-vimeo-initialized") !== null) return t.querySelector("iframe");
766
+ var r = document.createElement("div");
767
+ return r.innerHTML = n, t.appendChild(r.firstChild), t.setAttribute("data-vimeo-initialized", "true"), t.querySelector("iframe");
768
+ }
769
+ function ye(e) {
770
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 ? arguments[2] : void 0;
771
+ return new Promise(function(r, i) {
772
+ if (!O(e)) throw TypeError(`“${e}” is not a vimeo.com url.`);
773
+ var a = `https://${oe(e)}/api/oembed.json?url=${encodeURIComponent(e)}`;
774
+ for (var o in t) t.hasOwnProperty(o) && (a += `&${o}=${encodeURIComponent(t[o])}`);
775
+ var s = "XDomainRequest" in window ? new XDomainRequest() : new XMLHttpRequest();
776
+ s.open("GET", a, !0), s.onload = function() {
777
+ if (s.status === 404) {
778
+ i(/* @__PURE__ */ Error(`“${e}” was not found.`));
779
+ return;
780
+ }
781
+ if (s.status === 403) {
782
+ i(/* @__PURE__ */ Error(`“${e}” is not embeddable.`));
783
+ return;
784
+ }
785
+ try {
786
+ var t = JSON.parse(s.responseText);
787
+ if (t.domain_status_code === 403) {
788
+ ve(t, n), i(/* @__PURE__ */ Error(`“${e}” is not embeddable.`));
789
+ return;
790
+ }
791
+ r(t);
792
+ } catch (e) {
793
+ i(e);
794
+ }
795
+ }, s.onerror = function() {
796
+ var e = s.status ? ` (${s.status})` : "";
797
+ i(/* @__PURE__ */ Error(`There was an error fetching the embed code from Vimeo${e}.`));
798
+ }, s.send();
799
+ });
800
+ }
801
+ function be() {
802
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : document, t = [].slice.call(e.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")), n = function(e) {
803
+ "console" in window && console.error && console.error(`There was an error creating an embed: ${e}`);
804
+ };
805
+ t.forEach(function(e) {
806
+ try {
807
+ if (e.getAttribute("data-vimeo-defer") !== null) return;
808
+ var t = _e(e);
809
+ ye(se(t), t, e).then(function(t) {
810
+ return ve(t, e);
811
+ }).catch(n);
812
+ } catch (e) {
813
+ n(e);
814
+ }
815
+ });
816
+ }
817
+ function xe() {
818
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : document;
819
+ window.VimeoPlayerResizeEmbeds_ || (window.VimeoPlayerResizeEmbeds_ = !0, window.addEventListener("message", function(t) {
820
+ if (O(t.origin) && !(!t.data || t.data.event !== "spacechange")) {
821
+ for (var n = e.querySelectorAll("iframe"), r = 0; r < n.length; r++) if (n[r].contentWindow === t.source) {
822
+ var i = n[r].parentElement;
823
+ i.style.paddingBottom = `${t.data.data[0].bottom}px`;
824
+ break;
825
+ }
826
+ }
827
+ }));
828
+ }
829
+ function Se() {
830
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : document;
831
+ window.VimeoSeoMetadataAppended || (window.VimeoSeoMetadataAppended = !0, window.addEventListener("message", function(t) {
832
+ if (O(t.origin)) {
833
+ var n = P(t.data);
834
+ if (!(!n || n.event !== "ready")) for (var r = e.querySelectorAll("iframe"), i = 0; i < r.length; i++) {
835
+ var a = r[i], o = a.contentWindow === t.source;
836
+ ae(a.src) && o && new Oe(a).callMethod("appendVideoMetadata", window.location.href);
837
+ }
838
+ }
839
+ }));
840
+ }
841
+ function Ce() {
842
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : document;
843
+ if (!window.VimeoCheckedUrlTimeParam) {
844
+ window.VimeoCheckedUrlTimeParam = !0;
845
+ var t = function(e) {
846
+ "console" in window && console.error && console.error(`There was an error getting video Id: ${e}`);
847
+ };
848
+ window.addEventListener("message", function(n) {
849
+ if (O(n.origin)) {
850
+ var r = P(n.data);
851
+ if (!(!r || r.event !== "ready")) for (var i = e.querySelectorAll("iframe"), a = function() {
852
+ var e = i[o], r = e.contentWindow === n.source;
853
+ if (ae(e.src) && r) {
854
+ var a = new Oe(e);
855
+ a.getVideoId().then(function(e) {
856
+ var t = RegExp(`[?&]vimeo_t_${e}=([^&#]*)`).exec(window.location.href);
857
+ if (t && t[1]) {
858
+ var n = decodeURI(t[1]);
859
+ a.setCurrentTime(n);
860
+ }
861
+ }).catch(t);
862
+ }
863
+ }, o = 0; o < i.length; o++) a();
864
+ }
865
+ });
866
+ }
867
+ }
868
+ function we() {
869
+ var e = function() {
870
+ for (var e, t = [
871
+ [
872
+ "requestFullscreen",
873
+ "exitFullscreen",
874
+ "fullscreenElement",
875
+ "fullscreenEnabled",
876
+ "fullscreenchange",
877
+ "fullscreenerror"
878
+ ],
879
+ [
880
+ "webkitRequestFullscreen",
881
+ "webkitExitFullscreen",
882
+ "webkitFullscreenElement",
883
+ "webkitFullscreenEnabled",
884
+ "webkitfullscreenchange",
885
+ "webkitfullscreenerror"
886
+ ],
887
+ [
888
+ "webkitRequestFullScreen",
889
+ "webkitCancelFullScreen",
890
+ "webkitCurrentFullScreenElement",
891
+ "webkitCancelFullScreen",
892
+ "webkitfullscreenchange",
893
+ "webkitfullscreenerror"
894
+ ],
895
+ [
896
+ "mozRequestFullScreen",
897
+ "mozCancelFullScreen",
898
+ "mozFullScreenElement",
899
+ "mozFullScreenEnabled",
900
+ "mozfullscreenchange",
901
+ "mozfullscreenerror"
902
+ ],
903
+ [
904
+ "msRequestFullscreen",
905
+ "msExitFullscreen",
906
+ "msFullscreenElement",
907
+ "msFullscreenEnabled",
908
+ "MSFullscreenChange",
909
+ "MSFullscreenError"
910
+ ]
911
+ ], n = 0, r = t.length, i = {}; n < r; n++) if (e = t[n], e && e[1] in document) {
912
+ for (n = 0; n < e.length; n++) i[t[0][n]] = e[n];
913
+ return i;
914
+ }
915
+ return !1;
916
+ }(), t = {
917
+ fullscreenchange: e.fullscreenchange,
918
+ fullscreenerror: e.fullscreenerror
919
+ }, n = {
920
+ request: function(t) {
921
+ return new Promise(function(r, i) {
922
+ var a = function e() {
923
+ n.off("fullscreenchange", e), r();
924
+ };
925
+ n.on("fullscreenchange", a), t = t || document.documentElement;
926
+ var o = t[e.requestFullscreen]();
927
+ o instanceof Promise && o.then(a).catch(i);
928
+ });
929
+ },
930
+ exit: function() {
931
+ return new Promise(function(t, r) {
932
+ if (!n.isFullscreen) {
933
+ t();
934
+ return;
935
+ }
936
+ var i = function e() {
937
+ n.off("fullscreenchange", e), t();
938
+ };
939
+ n.on("fullscreenchange", i);
940
+ var a = document[e.exitFullscreen]();
941
+ a instanceof Promise && a.then(i).catch(r);
942
+ });
943
+ },
944
+ on: function(e, n) {
945
+ var r = t[e];
946
+ r && document.addEventListener(r, n);
947
+ },
948
+ off: function(e, n) {
949
+ var r = t[e];
950
+ r && document.removeEventListener(r, n);
951
+ }
952
+ };
953
+ return Object.defineProperties(n, {
954
+ isFullscreen: { get: function() {
955
+ return !!document[e.fullscreenElement];
956
+ } },
957
+ element: {
958
+ enumerable: !0,
959
+ get: function() {
960
+ return document[e.fullscreenElement];
961
+ }
962
+ },
963
+ isEnabled: {
964
+ enumerable: !0,
965
+ get: function() {
966
+ return !!document[e.fullscreenEnabled];
967
+ }
968
+ }
969
+ }), n;
970
+ }
971
+ var Te = {
972
+ role: "viewer",
973
+ autoPlayMuted: !0,
974
+ allowedDrift: .3,
975
+ maxAllowedDrift: 1,
976
+ minCheckInterval: .1,
977
+ maxRateAdjustment: .2,
978
+ maxTimeToCatchUp: 1
979
+ }, Ee = /*#__PURE__*/ function(e) {
980
+ _(n, e);
981
+ var t = T(n);
982
+ function n(e, r) {
983
+ var i, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = arguments.length > 3 ? arguments[3] : void 0;
984
+ return p(this, n), i = t.call(this), g(C(i), "logger", void 0), g(C(i), "speedAdjustment", 0), g(C(i), "adjustSpeed", /*#__PURE__*/ function() {
985
+ var e = f(/*#__PURE__*/ u().mark(function e(t, n) {
986
+ var r;
987
+ return u().wrap(function(e) {
988
+ for (;;) switch (e.prev = e.next) {
989
+ case 0:
990
+ if (i.speedAdjustment !== n) {
991
+ e.next = 2;
992
+ break;
993
+ }
994
+ return e.abrupt("return");
995
+ case 2: return e.next = 4, t.getPlaybackRate();
996
+ case 4: return e.t0 = e.sent, e.t1 = i.speedAdjustment, e.t2 = e.t0 - e.t1, e.t3 = n, r = e.t2 + e.t3, i.log(`New playbackRate: ${r}`), e.next = 12, t.setPlaybackRate(r);
997
+ case 12: i.speedAdjustment = n;
998
+ case 13:
999
+ case "end": return e.stop();
1000
+ }
1001
+ }, e);
1002
+ }));
1003
+ return function(t, n) {
1004
+ return e.apply(this, arguments);
1005
+ };
1006
+ }()), i.logger = o, i.init(r, e, l(l({}, Te), a)), i;
1007
+ }
1008
+ return h(n, [
1009
+ {
1010
+ key: "disconnect",
1011
+ value: function() {
1012
+ this.dispatchEvent(new Event("disconnect"));
1013
+ }
1014
+ },
1015
+ {
1016
+ key: "init",
1017
+ value: function() {
1018
+ var e = f(/*#__PURE__*/ u().mark(function e(t, n, r) {
1019
+ var i = this, a, o, s;
1020
+ return u().wrap(function(e) {
1021
+ for (;;) switch (e.prev = e.next) {
1022
+ case 0: return e.next = 2, this.waitForTOReadyState(t, "open");
1023
+ case 2:
1024
+ if (r.role !== "viewer") {
1025
+ e.next = 10;
1026
+ break;
1027
+ }
1028
+ return e.next = 5, this.updatePlayer(t, n, r);
1029
+ case 5:
1030
+ a = ce(t, "change", function() {
1031
+ return i.updatePlayer(t, n, r);
1032
+ }), o = this.maintainPlaybackPosition(t, n, r), this.addEventListener("disconnect", function() {
1033
+ o.cancel(), a.cancel();
1034
+ }), e.next = 14;
1035
+ break;
1036
+ case 10: return e.next = 12, this.updateTimingObject(t, n);
1037
+ case 12: s = ce(n, [
1038
+ "seeked",
1039
+ "play",
1040
+ "pause",
1041
+ "ratechange"
1042
+ ], function() {
1043
+ return i.updateTimingObject(t, n);
1044
+ }, "on", "off"), this.addEventListener("disconnect", function() {
1045
+ return s.cancel();
1046
+ });
1047
+ case 14:
1048
+ case "end": return e.stop();
1049
+ }
1050
+ }, e, this);
1051
+ }));
1052
+ function t(t, n, r) {
1053
+ return e.apply(this, arguments);
1054
+ }
1055
+ return t;
1056
+ }()
1057
+ },
1058
+ {
1059
+ key: "updateTimingObject",
1060
+ value: function() {
1061
+ var e = f(/*#__PURE__*/ u().mark(function e(t, n) {
1062
+ return u().wrap(function(e) {
1063
+ for (;;) switch (e.prev = e.next) {
1064
+ case 0: return e.t0 = t, e.next = 3, n.getCurrentTime();
1065
+ case 3: return e.t1 = e.sent, e.next = 6, n.getPaused();
1066
+ case 6:
1067
+ if (!e.sent) {
1068
+ e.next = 10;
1069
+ break;
1070
+ }
1071
+ e.t2 = 0, e.next = 13;
1072
+ break;
1073
+ case 10: return e.next = 12, n.getPlaybackRate();
1074
+ case 12: e.t2 = e.sent;
1075
+ case 13: e.t3 = e.t2, e.t4 = {
1076
+ position: e.t1,
1077
+ velocity: e.t3
1078
+ }, e.t0.update.call(e.t0, e.t4);
1079
+ case 16:
1080
+ case "end": return e.stop();
1081
+ }
1082
+ }, e);
1083
+ }));
1084
+ function t(t, n) {
1085
+ return e.apply(this, arguments);
1086
+ }
1087
+ return t;
1088
+ }()
1089
+ },
1090
+ {
1091
+ key: "updatePlayer",
1092
+ value: function() {
1093
+ var e = f(/*#__PURE__*/ u().mark(function e(t, n, r) {
1094
+ var i, a, o;
1095
+ return u().wrap(function(e) {
1096
+ for (;;) switch (e.prev = e.next) {
1097
+ case 0:
1098
+ if (i = t.query(), a = i.position, o = i.velocity, typeof a == "number" && n.setCurrentTime(a), typeof o != "number") {
1099
+ e.next = 25;
1100
+ break;
1101
+ }
1102
+ if (o !== 0) {
1103
+ e.next = 11;
1104
+ break;
1105
+ }
1106
+ return e.next = 6, n.getPaused();
1107
+ case 6:
1108
+ if (e.t0 = e.sent, e.t0 !== !1) {
1109
+ e.next = 9;
1110
+ break;
1111
+ }
1112
+ n.pause();
1113
+ case 9:
1114
+ e.next = 25;
1115
+ break;
1116
+ case 11:
1117
+ if (!(o > 0)) {
1118
+ e.next = 25;
1119
+ break;
1120
+ }
1121
+ return e.next = 14, n.getPaused();
1122
+ case 14:
1123
+ if (e.t1 = e.sent, e.t1 !== !0) {
1124
+ e.next = 19;
1125
+ break;
1126
+ }
1127
+ return e.next = 18, n.play().catch(/*#__PURE__*/ function() {
1128
+ var e = f(/*#__PURE__*/ u().mark(function e(t) {
1129
+ return u().wrap(function(e) {
1130
+ for (;;) switch (e.prev = e.next) {
1131
+ case 0:
1132
+ if (!(t.name === "NotAllowedError" && r.autoPlayMuted)) {
1133
+ e.next = 5;
1134
+ break;
1135
+ }
1136
+ return e.next = 3, n.setMuted(!0);
1137
+ case 3: return e.next = 5, n.play().catch(function(e) {
1138
+ return console.error("Couldn't play the video from TimingSrcConnector. Error:", e);
1139
+ });
1140
+ case 5:
1141
+ case "end": return e.stop();
1142
+ }
1143
+ }, e);
1144
+ }));
1145
+ return function(t) {
1146
+ return e.apply(this, arguments);
1147
+ };
1148
+ }());
1149
+ case 18: this.updatePlayer(t, n, r);
1150
+ case 19: return e.next = 21, n.getPlaybackRate();
1151
+ case 21:
1152
+ if (e.t2 = e.sent, e.t3 = o, e.t2 === e.t3) {
1153
+ e.next = 25;
1154
+ break;
1155
+ }
1156
+ n.setPlaybackRate(o);
1157
+ case 25:
1158
+ case "end": return e.stop();
1159
+ }
1160
+ }, e, this);
1161
+ }));
1162
+ function t(t, n, r) {
1163
+ return e.apply(this, arguments);
1164
+ }
1165
+ return t;
1166
+ }()
1167
+ },
1168
+ {
1169
+ key: "maintainPlaybackPosition",
1170
+ value: function(e, t, n) {
1171
+ var r = this, i = n.allowedDrift, a = n.maxAllowedDrift, o = n.minCheckInterval, s = n.maxRateAdjustment, c = n.maxTimeToCatchUp, l = Math.min(c, Math.max(o, a)) * 1e3, d = /*#__PURE__*/ function() {
1172
+ var n = f(/*#__PURE__*/ u().mark(function n() {
1173
+ var o, l, d, f, p;
1174
+ return u().wrap(function(n) {
1175
+ for (;;) switch (n.prev = n.next) {
1176
+ case 0:
1177
+ if (n.t0 = e.query().velocity === 0, n.t0) {
1178
+ n.next = 6;
1179
+ break;
1180
+ }
1181
+ return n.next = 4, t.getPaused();
1182
+ case 4: n.t1 = n.sent, n.t0 = n.t1 === !0;
1183
+ case 6:
1184
+ if (!n.t0) {
1185
+ n.next = 8;
1186
+ break;
1187
+ }
1188
+ return n.abrupt("return");
1189
+ case 8: return n.t2 = e.query().position, n.next = 11, t.getCurrentTime();
1190
+ case 11:
1191
+ if (n.t3 = n.sent, o = n.t2 - n.t3, l = Math.abs(o), r.log(`Drift: ${o}`), !(l > a)) {
1192
+ n.next = 22;
1193
+ break;
1194
+ }
1195
+ return n.next = 18, r.adjustSpeed(t, 0);
1196
+ case 18:
1197
+ t.setCurrentTime(e.query().position), r.log("Resync by currentTime"), n.next = 29;
1198
+ break;
1199
+ case 22:
1200
+ if (!(l > i)) {
1201
+ n.next = 29;
1202
+ break;
1203
+ }
1204
+ return d = l / c, f = s, p = d < f ? (f - d) / 2 : f, n.next = 28, r.adjustSpeed(t, p * Math.sign(o));
1205
+ case 28: r.log("Resync by playbackRate");
1206
+ case 29:
1207
+ case "end": return n.stop();
1208
+ }
1209
+ }, n);
1210
+ }));
1211
+ return function() {
1212
+ return n.apply(this, arguments);
1213
+ };
1214
+ }(), p = setInterval(function() {
1215
+ return d();
1216
+ }, l);
1217
+ return { cancel: function() {
1218
+ return clearInterval(p);
1219
+ } };
1220
+ }
1221
+ },
1222
+ {
1223
+ key: "log",
1224
+ value: function(e) {
1225
+ var t;
1226
+ (t = this.logger) == null || t.call(this, `TimingSrcConnector: ${e}`);
1227
+ }
1228
+ },
1229
+ {
1230
+ key: "waitForTOReadyState",
1231
+ value: function(e, t) {
1232
+ return new Promise(function(n) {
1233
+ (function r() {
1234
+ e.readyState === t ? n() : e.addEventListener("readystatechange", r, { once: !0 });
1235
+ })();
1236
+ });
1237
+ }
1238
+ }
1239
+ ]), n;
1240
+ }(/*#__PURE__*/ S(EventTarget)), I = /* @__PURE__ */ new WeakMap(), De = /* @__PURE__ */ new WeakMap(), L = {}, Oe = /*#__PURE__*/ function() {
1241
+ function e(t) {
1242
+ var n = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1243
+ if (p(this, e), window.jQuery && t instanceof jQuery && (t.length > 1 && window.console && console.warn && console.warn("A jQuery object with multiple elements was passed, using the first element."), t = t[0]), typeof document < "u" && typeof t == "string" && (t = document.getElementById(t)), !re(t)) throw TypeError("You must pass either a valid element or a valid id.");
1244
+ if (t.nodeName !== "IFRAME") {
1245
+ var i = t.querySelector("iframe");
1246
+ i && (t = i);
1247
+ }
1248
+ if (t.nodeName === "IFRAME" && !O(t.getAttribute("src") || "")) throw Error("The player element passed isn’t a Vimeo embed.");
1249
+ if (I.has(t)) return I.get(t);
1250
+ this._window = t.ownerDocument.defaultView, this.element = t, this.origin = "*";
1251
+ var a = new k(function(e, i) {
1252
+ if (n._onMessage = function(t) {
1253
+ if (!(!O(t.origin) || n.element.contentWindow !== t.source)) {
1254
+ n.origin === "*" && (n.origin = t.origin);
1255
+ var r = P(t.data);
1256
+ if (r && r.event === "error" && r.data && r.data.method === "ready") {
1257
+ var a = Error(r.data.message);
1258
+ a.name = r.data.name, i(a);
1259
+ return;
1260
+ }
1261
+ var o = r && r.event === "ready", s = r && r.method === "ping";
1262
+ if (o || s) {
1263
+ n.element.setAttribute("data-ready", "true"), e();
1264
+ return;
1265
+ }
1266
+ he(n, r);
1267
+ }
1268
+ }, n._window.addEventListener("message", n._onMessage), n.element.nodeName !== "IFRAME") {
1269
+ var a = _e(t, r);
1270
+ ye(se(a), a, t).then(function(e) {
1271
+ var r = ve(e, t);
1272
+ return n.element = r, n._originalElement = t, me(t, r), I.set(n.element, n), e;
1273
+ }).catch(i);
1274
+ }
1275
+ });
1276
+ if (De.set(this, a), I.set(this.element, this), this.element.nodeName === "IFRAME" && F(this, "ping"), L.isEnabled) {
1277
+ var o = function() {
1278
+ return L.exit();
1279
+ };
1280
+ this.fullscreenchangeHandler = function() {
1281
+ L.isFullscreen ? j(n, "event:exitFullscreen", o) : N(n, "event:exitFullscreen", o), n.ready().then(function() {
1282
+ F(n, "fullscreenchange", L.isFullscreen);
1283
+ });
1284
+ }, L.on("fullscreenchange", this.fullscreenchangeHandler);
1285
+ }
1286
+ return this;
1287
+ }
1288
+ return h(e, [
1289
+ {
1290
+ key: "callMethod",
1291
+ value: function(e) {
1292
+ var t = this, n = [...arguments].slice(1);
1293
+ if (e == null) throw TypeError("You must pass a method name.");
1294
+ return new k(function(r, i) {
1295
+ return t.ready().then(function() {
1296
+ j(t, e, {
1297
+ resolve: r,
1298
+ reject: i
1299
+ }), F(t, e, n);
1300
+ }).catch(i);
1301
+ });
1302
+ }
1303
+ },
1304
+ {
1305
+ key: "get",
1306
+ value: function(e) {
1307
+ var t = this;
1308
+ return new k(function(n, r) {
1309
+ return e = ne(e, "get"), t.ready().then(function() {
1310
+ j(t, e, {
1311
+ resolve: n,
1312
+ reject: r
1313
+ }), F(t, e);
1314
+ }).catch(r);
1315
+ });
1316
+ }
1317
+ },
1318
+ {
1319
+ key: "set",
1320
+ value: function(e, t) {
1321
+ var n = this;
1322
+ return new k(function(r, i) {
1323
+ if (e = ne(e, "set"), t == null) throw TypeError("There must be a value to set.");
1324
+ return n.ready().then(function() {
1325
+ j(n, e, {
1326
+ resolve: r,
1327
+ reject: i
1328
+ }), F(n, e, t);
1329
+ }).catch(i);
1330
+ });
1331
+ }
1332
+ },
1333
+ {
1334
+ key: "on",
1335
+ value: function(e, t) {
1336
+ if (!e) throw TypeError("You must pass an event name.");
1337
+ if (!t) throw TypeError("You must pass a callback function.");
1338
+ if (typeof t != "function") throw TypeError("The callback must be a function.");
1339
+ M(this, `event:${e}`).length === 0 && this.callMethod("addEventListener", e).catch(function() {}), j(this, `event:${e}`, t);
1340
+ }
1341
+ },
1342
+ {
1343
+ key: "off",
1344
+ value: function(e, t) {
1345
+ if (!e) throw TypeError("You must pass an event name.");
1346
+ if (t && typeof t != "function") throw TypeError("The callback must be a function.");
1347
+ N(this, `event:${e}`, t) && this.callMethod("removeEventListener", e).catch(function(e) {});
1348
+ }
1349
+ },
1350
+ {
1351
+ key: "loadVideo",
1352
+ value: function(e) {
1353
+ return this.callMethod("loadVideo", e);
1354
+ }
1355
+ },
1356
+ {
1357
+ key: "ready",
1358
+ value: function() {
1359
+ var e = De.get(this) || new k(function(e, t) {
1360
+ t(/* @__PURE__ */ Error("Unknown player. Probably unloaded."));
1361
+ });
1362
+ return k.resolve(e);
1363
+ }
1364
+ },
1365
+ {
1366
+ key: "addCuePoint",
1367
+ value: function(e) {
1368
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1369
+ return this.callMethod("addCuePoint", {
1370
+ time: e,
1371
+ data: t
1372
+ });
1373
+ }
1374
+ },
1375
+ {
1376
+ key: "removeCuePoint",
1377
+ value: function(e) {
1378
+ return this.callMethod("removeCuePoint", e);
1379
+ }
1380
+ },
1381
+ {
1382
+ key: "enableTextTrack",
1383
+ value: function(e, t) {
1384
+ if (!e) throw TypeError("You must pass a language.");
1385
+ return this.callMethod("enableTextTrack", {
1386
+ language: e,
1387
+ kind: t
1388
+ });
1389
+ }
1390
+ },
1391
+ {
1392
+ key: "disableTextTrack",
1393
+ value: function() {
1394
+ return this.callMethod("disableTextTrack");
1395
+ }
1396
+ },
1397
+ {
1398
+ key: "pause",
1399
+ value: function() {
1400
+ return this.callMethod("pause");
1401
+ }
1402
+ },
1403
+ {
1404
+ key: "play",
1405
+ value: function() {
1406
+ return this.callMethod("play");
1407
+ }
1408
+ },
1409
+ {
1410
+ key: "requestFullscreen",
1411
+ value: function() {
1412
+ return L.isEnabled ? L.request(this.element) : this.callMethod("requestFullscreen");
1413
+ }
1414
+ },
1415
+ {
1416
+ key: "exitFullscreen",
1417
+ value: function() {
1418
+ return L.isEnabled ? L.exit() : this.callMethod("exitFullscreen");
1419
+ }
1420
+ },
1421
+ {
1422
+ key: "getFullscreen",
1423
+ value: function() {
1424
+ return L.isEnabled ? k.resolve(L.isFullscreen) : this.get("fullscreen");
1425
+ }
1426
+ },
1427
+ {
1428
+ key: "requestPictureInPicture",
1429
+ value: function() {
1430
+ return this.callMethod("requestPictureInPicture");
1431
+ }
1432
+ },
1433
+ {
1434
+ key: "exitPictureInPicture",
1435
+ value: function() {
1436
+ return this.callMethod("exitPictureInPicture");
1437
+ }
1438
+ },
1439
+ {
1440
+ key: "getPictureInPicture",
1441
+ value: function() {
1442
+ return this.get("pictureInPicture");
1443
+ }
1444
+ },
1445
+ {
1446
+ key: "remotePlaybackPrompt",
1447
+ value: function() {
1448
+ return this.callMethod("remotePlaybackPrompt");
1449
+ }
1450
+ },
1451
+ {
1452
+ key: "unload",
1453
+ value: function() {
1454
+ return this.callMethod("unload");
1455
+ }
1456
+ },
1457
+ {
1458
+ key: "destroy",
1459
+ value: function() {
1460
+ var e = this;
1461
+ return new k(function(t) {
1462
+ if (De.delete(e), I.delete(e.element), e._originalElement && (I.delete(e._originalElement), e._originalElement.removeAttribute("data-vimeo-initialized")), e.element && e.element.nodeName === "IFRAME" && e.element.parentNode && (e.element.parentNode.parentNode && e._originalElement && e._originalElement !== e.element.parentNode ? e.element.parentNode.parentNode.removeChild(e.element.parentNode) : e.element.parentNode.removeChild(e.element)), e.element && e.element.nodeName === "DIV" && e.element.parentNode) {
1463
+ e.element.removeAttribute("data-vimeo-initialized");
1464
+ var n = e.element.querySelector("iframe");
1465
+ n && n.parentNode && (n.parentNode.parentNode && e._originalElement && e._originalElement !== n.parentNode ? n.parentNode.parentNode.removeChild(n.parentNode) : n.parentNode.removeChild(n));
1466
+ }
1467
+ e._window.removeEventListener("message", e._onMessage), L.isEnabled && L.off("fullscreenchange", e.fullscreenchangeHandler), t();
1468
+ });
1469
+ }
1470
+ },
1471
+ {
1472
+ key: "getAutopause",
1473
+ value: function() {
1474
+ return this.get("autopause");
1475
+ }
1476
+ },
1477
+ {
1478
+ key: "setAutopause",
1479
+ value: function(e) {
1480
+ return this.set("autopause", e);
1481
+ }
1482
+ },
1483
+ {
1484
+ key: "getBuffered",
1485
+ value: function() {
1486
+ return this.get("buffered");
1487
+ }
1488
+ },
1489
+ {
1490
+ key: "getCameraProps",
1491
+ value: function() {
1492
+ return this.get("cameraProps");
1493
+ }
1494
+ },
1495
+ {
1496
+ key: "setCameraProps",
1497
+ value: function(e) {
1498
+ return this.set("cameraProps", e);
1499
+ }
1500
+ },
1501
+ {
1502
+ key: "getChapters",
1503
+ value: function() {
1504
+ return this.get("chapters");
1505
+ }
1506
+ },
1507
+ {
1508
+ key: "getCurrentChapter",
1509
+ value: function() {
1510
+ return this.get("currentChapter");
1511
+ }
1512
+ },
1513
+ {
1514
+ key: "getColor",
1515
+ value: function() {
1516
+ return this.get("color");
1517
+ }
1518
+ },
1519
+ {
1520
+ key: "getColors",
1521
+ value: function() {
1522
+ return k.all([
1523
+ this.get("colorOne"),
1524
+ this.get("colorTwo"),
1525
+ this.get("colorThree"),
1526
+ this.get("colorFour")
1527
+ ]);
1528
+ }
1529
+ },
1530
+ {
1531
+ key: "setColor",
1532
+ value: function(e) {
1533
+ return this.set("color", e);
1534
+ }
1535
+ },
1536
+ {
1537
+ key: "setColors",
1538
+ value: function(e) {
1539
+ if (!Array.isArray(e)) return new k(function(e, t) {
1540
+ return t(/* @__PURE__ */ TypeError("Argument must be an array."));
1541
+ });
1542
+ var t = new k(function(e) {
1543
+ return e(null);
1544
+ }), n = [
1545
+ e[0] ? this.set("colorOne", e[0]) : t,
1546
+ e[1] ? this.set("colorTwo", e[1]) : t,
1547
+ e[2] ? this.set("colorThree", e[2]) : t,
1548
+ e[3] ? this.set("colorFour", e[3]) : t
1549
+ ];
1550
+ return k.all(n);
1551
+ }
1552
+ },
1553
+ {
1554
+ key: "getCuePoints",
1555
+ value: function() {
1556
+ return this.get("cuePoints");
1557
+ }
1558
+ },
1559
+ {
1560
+ key: "getCurrentTime",
1561
+ value: function() {
1562
+ return this.get("currentTime");
1563
+ }
1564
+ },
1565
+ {
1566
+ key: "setCurrentTime",
1567
+ value: function(e) {
1568
+ return this.set("currentTime", e);
1569
+ }
1570
+ },
1571
+ {
1572
+ key: "getDuration",
1573
+ value: function() {
1574
+ return this.get("duration");
1575
+ }
1576
+ },
1577
+ {
1578
+ key: "getEnded",
1579
+ value: function() {
1580
+ return this.get("ended");
1581
+ }
1582
+ },
1583
+ {
1584
+ key: "getLoop",
1585
+ value: function() {
1586
+ return this.get("loop");
1587
+ }
1588
+ },
1589
+ {
1590
+ key: "setLoop",
1591
+ value: function(e) {
1592
+ return this.set("loop", e);
1593
+ }
1594
+ },
1595
+ {
1596
+ key: "setMuted",
1597
+ value: function(e) {
1598
+ return this.set("muted", e);
1599
+ }
1600
+ },
1601
+ {
1602
+ key: "getMuted",
1603
+ value: function() {
1604
+ return this.get("muted");
1605
+ }
1606
+ },
1607
+ {
1608
+ key: "getPaused",
1609
+ value: function() {
1610
+ return this.get("paused");
1611
+ }
1612
+ },
1613
+ {
1614
+ key: "getPlaybackRate",
1615
+ value: function() {
1616
+ return this.get("playbackRate");
1617
+ }
1618
+ },
1619
+ {
1620
+ key: "setPlaybackRate",
1621
+ value: function(e) {
1622
+ return this.set("playbackRate", e);
1623
+ }
1624
+ },
1625
+ {
1626
+ key: "getPlayed",
1627
+ value: function() {
1628
+ return this.get("played");
1629
+ }
1630
+ },
1631
+ {
1632
+ key: "getQualities",
1633
+ value: function() {
1634
+ return this.get("qualities");
1635
+ }
1636
+ },
1637
+ {
1638
+ key: "getQuality",
1639
+ value: function() {
1640
+ return this.get("quality");
1641
+ }
1642
+ },
1643
+ {
1644
+ key: "setQuality",
1645
+ value: function(e) {
1646
+ return this.set("quality", e);
1647
+ }
1648
+ },
1649
+ {
1650
+ key: "getRemotePlaybackAvailability",
1651
+ value: function() {
1652
+ return this.get("remotePlaybackAvailability");
1653
+ }
1654
+ },
1655
+ {
1656
+ key: "getRemotePlaybackState",
1657
+ value: function() {
1658
+ return this.get("remotePlaybackState");
1659
+ }
1660
+ },
1661
+ {
1662
+ key: "getSeekable",
1663
+ value: function() {
1664
+ return this.get("seekable");
1665
+ }
1666
+ },
1667
+ {
1668
+ key: "getSeeking",
1669
+ value: function() {
1670
+ return this.get("seeking");
1671
+ }
1672
+ },
1673
+ {
1674
+ key: "getTextTracks",
1675
+ value: function() {
1676
+ return this.get("textTracks");
1677
+ }
1678
+ },
1679
+ {
1680
+ key: "getVideoEmbedCode",
1681
+ value: function() {
1682
+ return this.get("videoEmbedCode");
1683
+ }
1684
+ },
1685
+ {
1686
+ key: "getVideoId",
1687
+ value: function() {
1688
+ return this.get("videoId");
1689
+ }
1690
+ },
1691
+ {
1692
+ key: "getVideoTitle",
1693
+ value: function() {
1694
+ return this.get("videoTitle");
1695
+ }
1696
+ },
1697
+ {
1698
+ key: "getVideoWidth",
1699
+ value: function() {
1700
+ return this.get("videoWidth");
1701
+ }
1702
+ },
1703
+ {
1704
+ key: "getVideoHeight",
1705
+ value: function() {
1706
+ return this.get("videoHeight");
1707
+ }
1708
+ },
1709
+ {
1710
+ key: "getVideoUrl",
1711
+ value: function() {
1712
+ return this.get("videoUrl");
1713
+ }
1714
+ },
1715
+ {
1716
+ key: "getVolume",
1717
+ value: function() {
1718
+ return this.get("volume");
1719
+ }
1720
+ },
1721
+ {
1722
+ key: "setVolume",
1723
+ value: function(e) {
1724
+ return this.set("volume", e);
1725
+ }
1726
+ },
1727
+ {
1728
+ key: "setTimingSrc",
1729
+ value: function() {
1730
+ var e = f(/*#__PURE__*/ u().mark(function e(t, n) {
1731
+ var r = this, i;
1732
+ return u().wrap(function(e) {
1733
+ for (;;) switch (e.prev = e.next) {
1734
+ case 0:
1735
+ if (t) {
1736
+ e.next = 2;
1737
+ break;
1738
+ }
1739
+ throw TypeError("A Timing Object must be provided.");
1740
+ case 2: return e.next = 4, this.ready();
1741
+ case 4: return i = new Ee(this, t, n), F(this, "notifyTimingObjectConnect"), i.addEventListener("disconnect", function() {
1742
+ return F(r, "notifyTimingObjectDisconnect");
1743
+ }), e.abrupt("return", i);
1744
+ case 8:
1745
+ case "end": return e.stop();
1746
+ }
1747
+ }, e, this);
1748
+ }));
1749
+ function t(t, n) {
1750
+ return e.apply(this, arguments);
1751
+ }
1752
+ return t;
1753
+ }()
1754
+ }
1755
+ ]), e;
1756
+ }();
1757
+ te || (L = we(), be(), xe(), Se(), Ce());
1758
+ //#endregion
1759
+ //#region ../../node_modules/.pnpm/vimeo-video-element@1.7.2/node_modules/vimeo-video-element/dist/vimeo-video-element.js
1760
+ var ke, Ae = "https://player.vimeo.com/video", je = "https://vimeo.com/event", Me = /vimeo\.com\/(video\/|event\/)?(\d+)(?:\/([\w-]+))?/;
1761
+ function Ne(e, t = {}) {
1762
+ var n;
1763
+ let r = {
1764
+ src: Pe(e, t),
1765
+ frameborder: 0,
1766
+ width: "100%",
1767
+ height: "100%",
1768
+ allow: "accelerometer; fullscreen; autoplay; encrypted-media; gyroscope; picture-in-picture"
1769
+ };
1770
+ return t.config && (r["data-config"] = JSON.stringify(t.config)), (n = t.config) != null && n.referrerpolicy && (r.referrerpolicy = t.config.referrerpolicy), `
1771
+ <style>
1772
+ :host {
1773
+ display: inline-block;
1774
+ min-width: 300px;
1775
+ min-height: 150px;
1776
+ position: relative;
1777
+ }
1778
+ iframe {
1779
+ position: absolute;
1780
+ top: 0;
1781
+ left: 0;
1782
+ }
1783
+ :host(:not([controls])) {
1784
+ pointer-events: none;
1785
+ }
1786
+ </style>
1787
+ <iframe${Be(r)}></iframe>
1788
+ `;
1789
+ }
1790
+ function Pe(e, t) {
1791
+ var n;
1792
+ if (!e.src) return;
1793
+ let r = new URL(e.src), i = e.src.match(Me), a = i == null ? void 0 : i[1], o = i == null ? void 0 : i[2], s = r.searchParams.get("h") || (i == null ? void 0 : i[3]), c = {
1794
+ controls: e.controls === "" ? null : 0,
1795
+ autoplay: e.autoplay,
1796
+ loop: e.loop,
1797
+ muted: e.muted,
1798
+ playsinline: e.playsinline,
1799
+ preload: (n = e.preload) == null ? "metadata" : n,
1800
+ transparent: !1,
1801
+ autopause: e.autopause,
1802
+ h: s,
1803
+ ...t.config
1804
+ };
1805
+ if (a === "event/") {
1806
+ let e = s ? `/${s}` : "";
1807
+ return delete c.h, `${je}/${o}/embed${e}?${He(c)}`;
1808
+ }
1809
+ return `${Ae}/${o}?${He(c)}`;
1810
+ }
1811
+ var R = /* @__PURE__ */ new WeakMap(), z = /* @__PURE__ */ new WeakMap(), B = /* @__PURE__ */ new WeakMap(), V = /* @__PURE__ */ new WeakMap(), H = /* @__PURE__ */ new WeakMap(), U = /* @__PURE__ */ new WeakMap(), W = /* @__PURE__ */ new WeakMap(), G = /* @__PURE__ */ new WeakMap(), K = /* @__PURE__ */ new WeakMap(), q = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), Fe = /* @__PURE__ */ new WeakMap(), Z = /* @__PURE__ */ new WeakMap(), Q = /* @__PURE__ */ new WeakMap(), Ie = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakSet(), $ = class extends o((ke = globalThis.HTMLElement) == null ? class {} : ke) {
1812
+ constructor() {
1813
+ super(), e(this, Le), a(this, "loadComplete", new Ge()), t(this, R, void 0), t(this, z, void 0), t(this, B, void 0), t(this, V, 0), t(this, H, NaN), t(this, U, !1), t(this, W, !this.autoplay), t(this, G, 1), t(this, K, 0), t(this, q, 0), t(this, J, !1), t(this, Y, 1), t(this, X, NaN), t(this, Fe, NaN), t(this, Z, null), t(this, Q, !1), t(this, Ie, async () => {
1814
+ i(q, this, 1), this.dispatchEvent(new Event("loadedmetadata")), this.api && (i(U, this, await this.api.getMuted()), i(Y, this, await this.api.getVolume()), this.dispatchEvent(new Event("volumechange")), i(H, this, await this.api.getDuration()), this.dispatchEvent(new Event("durationchange"))), this.dispatchEvent(new Event("loadcomplete")), this.loadComplete.resolve();
1815
+ }), r(Le, this, ze).call(this, "config");
1816
+ }
1817
+ requestFullscreen() {
1818
+ var e, t;
1819
+ return (t = (e = this.api) == null ? void 0 : e.requestFullscreen) == null ? void 0 : t.call(e);
1820
+ }
1821
+ exitFullscreen() {
1822
+ var e, t;
1823
+ return (t = (e = this.api) == null ? void 0 : e.exitFullscreen) == null ? void 0 : t.call(e);
1824
+ }
1825
+ requestPictureInPicture() {
1826
+ var e, t;
1827
+ return (t = (e = this.api) == null ? void 0 : e.requestPictureInPicture) == null ? void 0 : t.call(e);
1828
+ }
1829
+ exitPictureInPicture() {
1830
+ var e, t;
1831
+ return (t = (e = this.api) == null ? void 0 : e.exitPictureInPicture) == null ? void 0 : t.call(e);
1832
+ }
1833
+ get config() {
1834
+ return n(Z, this);
1835
+ }
1836
+ set config(e) {
1837
+ JSON.stringify(n(Z, this)) !== JSON.stringify(e) && (i(Z, this, e), this.load());
1838
+ }
1839
+ async load() {
1840
+ var e, t;
1841
+ if (n(R, this)) return;
1842
+ await i(R, this, Promise.resolve()), i(R, this, null), i(V, this, 0), i(H, this, NaN), i(U, this, !1), i(W, this, !this.autoplay), i(G, this, 1), i(K, this, 0), i(q, this, 0), i(J, this, !1), i(Y, this, 1), i(q, this, 0), i(X, this, NaN), i(Fe, this, NaN), this.dispatchEvent(new Event("emptied"));
1843
+ let a = this.api;
1844
+ if (this.api = null, !this.src) return;
1845
+ n(z, this) && (this.loadComplete = new Ge()), i(z, this, !0), this.dispatchEvent(new Event("loadstart"));
1846
+ let o = {
1847
+ autoplay: this.autoplay,
1848
+ controls: this.controls,
1849
+ loop: this.loop,
1850
+ muted: this.defaultMuted,
1851
+ playsinline: this.playsInline,
1852
+ preload: (e = this.preload) == null ? "metadata" : e,
1853
+ transparent: !1,
1854
+ autopause: this.hasAttribute("autopause"),
1855
+ ...n(Z, this)
1856
+ };
1857
+ if (n(B, this)) {
1858
+ this.api = a, await this.api.loadVideo({
1859
+ ...o,
1860
+ url: this.src
1861
+ }), await n(Ie, this).call(this), await this.loadComplete;
1862
+ return;
1863
+ }
1864
+ i(B, this, !0), this.shadowRoot || this.attachShadow({ mode: "open" });
1865
+ let s = this.shadowRoot.querySelector("iframe");
1866
+ s && !n(Q, this) ? n(Z, this) || i(Z, this, JSON.parse(s.getAttribute("data-config") || "{}")) : this.shadowRoot.innerHTML = Ne(We(this.attributes), this), i(Q, this, !1), (t = a == null ? void 0 : a.destroy) == null || t.call(a);
1867
+ let c = this.shadowRoot.querySelector("iframe");
1868
+ this.api = new Oe(c), r(Le, this, Re).call(this), await this.loadComplete;
1869
+ }
1870
+ connectedCallback() {
1871
+ var e;
1872
+ n(Q, this) && this.load(), (e = super.connectedCallback) == null || e.call(this);
1873
+ }
1874
+ disconnectedCallback() {
1875
+ var e, t, n;
1876
+ i(Q, this, !0), i(R, this, null), i(z, this, null), i(B, this, null), this.loadComplete = new Ge(), (t = (e = this.api) == null ? void 0 : e.destroy) == null || t.call(e), this.api = null, (n = super.disconnectedCallback) == null || n.call(this);
1877
+ }
1878
+ async attributeChangedCallback(e, t, n) {
1879
+ if (t !== n) {
1880
+ switch (e) {
1881
+ case "autoplay":
1882
+ case "controls":
1883
+ case "src":
1884
+ this.load();
1885
+ return;
1886
+ }
1887
+ switch (await this.loadComplete, e) {
1888
+ case "loop":
1889
+ this.api.setLoop(this.loop);
1890
+ break;
1891
+ }
1892
+ }
1893
+ }
1894
+ async play() {
1895
+ var e;
1896
+ i(W, this, !1), this.dispatchEvent(new Event("play")), await this.loadComplete;
1897
+ try {
1898
+ await ((e = this.api) == null ? void 0 : e.play());
1899
+ } catch (e) {
1900
+ throw i(W, this, !0), this.dispatchEvent(new Event("pause")), e;
1901
+ }
1902
+ }
1903
+ async pause() {
1904
+ var e;
1905
+ return await this.loadComplete, (e = this.api) == null ? void 0 : e.pause();
1906
+ }
1907
+ get ended() {
1908
+ return n(V, this) >= n(H, this);
1909
+ }
1910
+ get seeking() {
1911
+ return n(J, this);
1912
+ }
1913
+ get readyState() {
1914
+ return n(q, this);
1915
+ }
1916
+ get videoWidth() {
1917
+ return n(X, this);
1918
+ }
1919
+ get videoHeight() {
1920
+ return n(Fe, this);
1921
+ }
1922
+ get src() {
1923
+ return this.getAttribute("src");
1924
+ }
1925
+ set src(e) {
1926
+ this.src != e && this.setAttribute("src", e);
1927
+ }
1928
+ get paused() {
1929
+ return n(W, this);
1930
+ }
1931
+ get duration() {
1932
+ return n(H, this);
1933
+ }
1934
+ get autoplay() {
1935
+ return this.hasAttribute("autoplay");
1936
+ }
1937
+ set autoplay(e) {
1938
+ this.autoplay != e && this.toggleAttribute("autoplay", !!e);
1939
+ }
1940
+ get buffered() {
1941
+ return n(K, this) > 0 ? Ke(0, n(K, this)) : Ke();
1942
+ }
1943
+ get controls() {
1944
+ return this.hasAttribute("controls");
1945
+ }
1946
+ set controls(e) {
1947
+ this.controls != e && this.toggleAttribute("controls", !!e);
1948
+ }
1949
+ get currentTime() {
1950
+ return n(V, this);
1951
+ }
1952
+ set currentTime(e) {
1953
+ this.currentTime != e && (i(V, this, e), this.loadComplete.then(() => {
1954
+ var t;
1955
+ (t = this.api) == null || t.setCurrentTime(e).catch(() => {});
1956
+ }));
1957
+ }
1958
+ get defaultMuted() {
1959
+ return this.hasAttribute("muted");
1960
+ }
1961
+ set defaultMuted(e) {
1962
+ this.defaultMuted != e && this.toggleAttribute("muted", !!e);
1963
+ }
1964
+ get loop() {
1965
+ return this.hasAttribute("loop");
1966
+ }
1967
+ set loop(e) {
1968
+ this.loop != e && this.toggleAttribute("loop", !!e);
1969
+ }
1970
+ get muted() {
1971
+ return n(U, this);
1972
+ }
1973
+ set muted(e) {
1974
+ this.muted != e && (i(U, this, e), this.loadComplete.then(() => {
1975
+ var t;
1976
+ (t = this.api) == null || t.setMuted(e).catch(() => {});
1977
+ }));
1978
+ }
1979
+ get playbackRate() {
1980
+ return n(G, this);
1981
+ }
1982
+ set playbackRate(e) {
1983
+ this.playbackRate != e && (i(G, this, e), this.loadComplete.then(() => {
1984
+ var t;
1985
+ (t = this.api) == null || t.setPlaybackRate(e).catch(() => {});
1986
+ }));
1987
+ }
1988
+ get playsInline() {
1989
+ return this.hasAttribute("playsinline");
1990
+ }
1991
+ set playsInline(e) {
1992
+ this.playsInline != e && this.toggleAttribute("playsinline", !!e);
1993
+ }
1994
+ get poster() {
1995
+ return this.getAttribute("poster");
1996
+ }
1997
+ set poster(e) {
1998
+ this.poster != e && this.setAttribute("poster", `${e}`);
1999
+ }
2000
+ get volume() {
2001
+ return n(Y, this);
2002
+ }
2003
+ set volume(e) {
2004
+ this.volume != e && (i(Y, this, e), this.loadComplete.then(() => {
2005
+ var t;
2006
+ (t = this.api) == null || t.setVolume(e).catch(() => {});
2007
+ }));
2008
+ }
2009
+ };
2010
+ function Re() {
2011
+ let e = document.createElement("video");
2012
+ this.textTracks = e.textTracks, this.api.getTextTracks().then((t) => {
2013
+ t.forEach((t) => {
2014
+ e.addTextTrack(t.kind, t.label, t.language);
2015
+ });
2016
+ }), this.textTracks.addEventListener("change", () => {
2017
+ let e = Array.from(this.textTracks).find((e) => e.mode === "showing");
2018
+ e ? this.api.enableTextTrack(e.language, e.kind) : this.api.disableTextTrack();
2019
+ });
2020
+ let t = () => {
2021
+ this.api.off("loaded", t), n(Ie, this).call(this);
2022
+ };
2023
+ this.api.on("loaded", t), this.api.on("bufferstart", () => {
2024
+ n(W, this) && (i(W, this, !1), this.dispatchEvent(new Event("play"))), this.dispatchEvent(new Event("waiting"));
2025
+ }), this.api.on("play", () => {
2026
+ n(W, this) && (i(W, this, !1), this.dispatchEvent(new Event("play")));
2027
+ }), this.api.on("playing", () => {
2028
+ i(q, this, 3), i(W, this, !1), this.dispatchEvent(new Event("playing"));
2029
+ }), this.api.on("seeking", () => {
2030
+ i(J, this, !0), this.onSeeking(), this.dispatchEvent(new Event("seeking"));
2031
+ }), this.api.on("seeked", async () => {
2032
+ i(J, this, !1), i(V, this, await this.api.getCurrentTime().catch(() => n(V, this))), this.dispatchEvent(new Event("seeked"));
2033
+ }), this.api.on("pause", () => {
2034
+ i(W, this, !0), this.dispatchEvent(new Event("pause"));
2035
+ }), this.api.on("ended", () => {
2036
+ i(W, this, !0), this.dispatchEvent(new Event("ended"));
2037
+ }), this.api.on("ratechange", ({ playbackRate: e }) => {
2038
+ i(G, this, e), this.dispatchEvent(new Event("ratechange"));
2039
+ }), this.api.on("volumechange", async ({ volume: e }) => {
2040
+ i(Y, this, e), this.api && i(U, this, await this.api.getMuted()), this.dispatchEvent(new Event("volumechange"));
2041
+ }), this.api.on("durationchange", ({ duration: e }) => {
2042
+ i(H, this, e), this.dispatchEvent(new Event("durationchange"));
2043
+ }), this.api.on("timeupdate", ({ seconds: e }) => {
2044
+ let t = Math.round(e * 100) / 100;
2045
+ i(V, this, t), this.dispatchEvent(new Event("timeupdate"));
2046
+ }), this.api.on("progress", ({ seconds: e }) => {
2047
+ i(K, this, e), this.dispatchEvent(new Event("progress"));
2048
+ }), this.api.on("resize", ({ videoWidth: e, videoHeight: t }) => {
2049
+ i(X, this, e), i(Fe, this, t), this.dispatchEvent(new Event("resize"));
2050
+ });
2051
+ }
2052
+ function ze(e) {
2053
+ if (Object.prototype.hasOwnProperty.call(this, e)) {
2054
+ let t = this[e];
2055
+ delete this[e], this[e] = t;
2056
+ }
2057
+ }
2058
+ a($, "getTemplateHTML", Ne), a($, "shadowRootOptions", { mode: "open" }), a($, "observedAttributes", [
2059
+ "autoplay",
2060
+ "controls",
2061
+ "crossorigin",
2062
+ "loop",
2063
+ "muted",
2064
+ "playsinline",
2065
+ "poster",
2066
+ "preload",
2067
+ "src"
2068
+ ]);
2069
+ function Be(e) {
2070
+ let t = "";
2071
+ for (let n in e) {
2072
+ let r = e[n];
2073
+ r === "" ? t += ` ${Ve(n)}` : t += ` ${Ve(n)}="${Ve(`${r}`)}"`;
2074
+ }
2075
+ return t;
2076
+ }
2077
+ function Ve(e) {
2078
+ return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;").replace(/`/g, "&#x60;");
2079
+ }
2080
+ function He(e) {
2081
+ return String(new URLSearchParams(Ue(e)));
2082
+ }
2083
+ function Ue(e) {
2084
+ let t = {};
2085
+ for (let n in e) {
2086
+ let r = e[n];
2087
+ r === !0 || r === "" ? t[n] = 1 : r === !1 ? t[n] = 0 : r != null && (t[n] = r);
2088
+ }
2089
+ return t;
2090
+ }
2091
+ function We(e) {
2092
+ let t = {};
2093
+ for (let n of e) t[n.name] = n.value;
2094
+ return t;
2095
+ }
2096
+ var Ge = class extends Promise {
2097
+ constructor(e = () => {}) {
2098
+ let t, n;
2099
+ super((r, i) => {
2100
+ e(r, i), t = r, n = i;
2101
+ }), this.resolve = t, this.reject = n;
2102
+ }
2103
+ };
2104
+ function Ke(e, t) {
2105
+ return qe(Array.isArray(e) ? e : e == null || t == null || e === 0 && t === 0 ? [[0, 0]] : [[e, t]]);
2106
+ }
2107
+ function qe(e) {
2108
+ return Object.defineProperties(e, {
2109
+ start: { value: (t) => e[t][0] },
2110
+ end: { value: (t) => e[t][1] }
2111
+ }), e;
2112
+ }
2113
+ globalThis.customElements && !globalThis.customElements.get("vimeo-video") && globalThis.customElements.define("vimeo-video", $);
2114
+ var Je = $, Ye = /* @__PURE__ */ new Set([
2115
+ "style",
2116
+ "children",
2117
+ "ref",
2118
+ "key",
2119
+ "suppressContentEditableWarning",
2120
+ "suppressHydrationWarning",
2121
+ "dangerouslySetInnerHTML"
2122
+ ]), Xe = {
2123
+ className: "class",
2124
+ htmlFor: "for"
2125
+ };
2126
+ function Ze(e) {
2127
+ return e.toLowerCase();
2128
+ }
2129
+ function Qe(e) {
2130
+ if (typeof e == "boolean") return e ? "" : void 0;
2131
+ if (typeof e != "function" && !(typeof e == "object" && e)) return e;
2132
+ }
2133
+ function $e({ react: e, tagName: t, elementClass: n, events: r, displayName: i, defaultProps: a, toAttributeName: o = Ze, toAttributeValue: s = Qe }) {
2134
+ let c = Number.parseInt(e.version) >= 19, l = e.forwardRef((i, l) => {
2135
+ var u, d;
2136
+ let f = e.useRef(null), p = e.useRef(/* @__PURE__ */ new Map()), m = {}, h = {}, g = {}, _ = {};
2137
+ for (let [e, t] of Object.entries(i)) {
2138
+ var v, y;
2139
+ if (Ye.has(e)) {
2140
+ g[e] = t;
2141
+ continue;
2142
+ }
2143
+ let r = o((v = Xe[e]) == null ? e : v);
2144
+ if (n.prototype && e in n.prototype && !(e in ((y = (u = globalThis.HTMLElement) == null ? void 0 : u.prototype) == null ? {} : y)) && !((d = n.observedAttributes) != null && d.some((e) => e === r))) {
2145
+ _[e] = t;
2146
+ continue;
2147
+ }
2148
+ if (e.startsWith("on")) {
2149
+ m[e] = t;
2150
+ continue;
2151
+ }
2152
+ let i = s(t);
2153
+ r && i != null && (h[r] = String(i), c || (g[r] = i)), r && c && (i === Qe(t) ? g[r] = t : g[r] = i);
2154
+ }
2155
+ if (typeof window < "u") {
2156
+ for (let t in m) {
2157
+ var b;
2158
+ let n = m[t], i = t.endsWith("Capture"), a = ((b = r == null ? void 0 : r[t]) == null ? t.slice(2).toLowerCase() : b).slice(0, i ? -7 : void 0);
2159
+ e.useLayoutEffect(() => {
2160
+ let e = f == null ? void 0 : f.current;
2161
+ if (!(!e || typeof n != "function")) return e.addEventListener(a, n, i), () => {
2162
+ e.removeEventListener(a, n, i);
2163
+ };
2164
+ }, [f == null ? void 0 : f.current, n]);
2165
+ }
2166
+ e.useLayoutEffect(() => {
2167
+ if (f.current === null) return;
2168
+ let e = /* @__PURE__ */ new Map();
2169
+ for (let t in _) et(f.current, t, _[t]), p.current.delete(t), e.set(t, _[t]);
2170
+ for (let [e, t] of p.current) et(f.current, e, void 0);
2171
+ p.current = e;
2172
+ });
2173
+ }
2174
+ if (typeof window > "u" && n != null && n.getTemplateHTML && n != null && n.shadowRootOptions) {
2175
+ let { mode: t, delegatesFocus: r } = n.shadowRootOptions;
2176
+ g.children = [e.createElement("template", {
2177
+ shadowrootmode: t,
2178
+ shadowrootdelegatesfocus: r,
2179
+ dangerouslySetInnerHTML: { __html: n.getTemplateHTML(h, i) },
2180
+ key: "ce-la-react-ssr-template-shadow-root"
2181
+ }), g.children];
2182
+ }
2183
+ return e.createElement(t, {
2184
+ ...a,
2185
+ ...g,
2186
+ ref: e.useCallback((e) => {
2187
+ f.current = e, typeof l == "function" ? l(e) : l !== null && (l.current = e);
2188
+ }, [l])
2189
+ }, g.children);
2190
+ });
2191
+ return l.displayName = i == null ? n.name : i, l;
2192
+ }
2193
+ function et(e, t, n) {
2194
+ var r, i;
2195
+ e[t] = n, n == null && t in ((r = (i = globalThis.HTMLElement) == null ? void 0 : i.prototype) == null ? {} : r) && e.removeAttribute(t);
2196
+ }
2197
+ var tt = $e({
2198
+ react: s,
2199
+ tagName: "vimeo-video",
2200
+ elementClass: Je,
2201
+ toAttributeName(e) {
2202
+ return e === "muted" ? "" : e === "defaultMuted" ? "muted" : Ze(e);
2203
+ }
2204
+ });
2205
+ //#endregion
2206
+ export { tt as default };
2207
+
2208
+ //# sourceMappingURL=react-BrCGR7Ca.js.map