@wistia/wistia-player-react 0.7.31 → 0.7.32

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.
@@ -24,21 +24,22 @@ var __copyProps = (to, from, except, desc) => {
24
24
  };
25
25
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
26
26
 
27
- // ../../node_modules/@wistia/type-guards/dist/index.mjs
28
- var FALSY_VALUES, isNull, isUndefined, isNil2, isNotNil, isString, isNumber2, isRecord, isArray2, isFunction, isBoolean;
27
+ // ../../node_modules/@wistia/utils/dist/index.mjs
28
+ var isNull, isUndefined, isNil2, isNotNil, isRecord, isArray2, isFunction, isBoolean, isString, isNumber2, milisecondsInSecond, millisecondsInDay;
29
29
  var init_dist = __esm({
30
- "../../node_modules/@wistia/type-guards/dist/index.mjs"() {
31
- FALSY_VALUES = [false, 0, -0, 0n, "", null, void 0, Number.NaN];
30
+ "../../node_modules/@wistia/utils/dist/index.mjs"() {
32
31
  isNull = (value) => value === null;
33
32
  isUndefined = (value) => value === void 0;
34
33
  isNil2 = (value) => isNull(value) || isUndefined(value);
35
34
  isNotNil = (value) => !isNil2(value);
36
- isString = (value) => typeof value === "string";
37
- isNumber2 = (value) => typeof value === "number";
38
- isRecord = (value) => isNotNil(value) && typeof value === "object" && !(value instanceof Array);
39
- isArray2 = (value) => isNotNil(value) && typeof value === "object" && value instanceof Array;
35
+ isRecord = (value) => isNotNil(value) && typeof value === "object" && !Array.isArray(value);
36
+ isArray2 = (value) => isNotNil(value) && typeof value === "object" && Array.isArray(value);
40
37
  isFunction = (value) => isNotNil(value) && typeof value === "function";
41
38
  isBoolean = (value) => isNotNil(value) && typeof value === "boolean";
39
+ isString = (value) => typeof value === "string";
40
+ isNumber2 = (value) => typeof value === "number";
41
+ milisecondsInSecond = 1e3;
42
+ millisecondsInDay = 86400 * milisecondsInSecond;
42
43
  }
43
44
  });
44
45
 
@@ -227,7 +228,7 @@ function _defaultLocalization() {
227
228
  };
228
229
  }
229
230
  function _deferMediaDataFetchingToCarouselEmbed() {
230
- if (!(0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_1__.uI)(this.id)) {
231
+ if (!(0, _wistia_utils__WEBPACK_IMPORTED_MODULE_1__.uI)(this.id)) {
231
232
  return false;
232
233
  }
233
234
  return !!document.querySelector(`wistia-channel-carousel[player-dom-id="${this.id}"]:not([is-inside-playlist-embed="true"][channel-id])`);
@@ -270,7 +271,7 @@ function _getSyncedEmbedOption(key) {
270
271
  if (_classPrivateFieldGet(_impl, this) && key in _classPrivateFieldGet(_impl, this)._attrs) {
271
272
  return _classPrivateFieldGet(_impl, this)._attrs[key];
272
273
  }
273
- return this.embedOptions[key] ?? _assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, (0, _utilities_camelCaseToKebabCase_ts__WEBPACK_IMPORTED_MODULE_36__.$)(key)) ?? defaultEmbedOptions[key];
274
+ return this.embedOptions[key] ?? _assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, (0, _utilities_camelCaseToKebabCase_ts__WEBPACK_IMPORTED_MODULE_37__.$)(key)) ?? defaultEmbedOptions[key];
274
275
  }
275
276
  function _getValueFromAttribute(name) {
276
277
  if (!this.hasAttribute(name)) {
@@ -368,7 +369,7 @@ async function _initPublicApi(mediaId, options) {
368
369
  });
369
370
  }
370
371
  function _isPopoverWithThumbnail() {
371
- return this.wistiaPopover && ((0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_1__.gD)(this.popoverContent) || (0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_1__.jw)(this.popoverContent) || this.popoverContent === "thumbnail");
372
+ return this.wistiaPopover && ((0, _wistia_utils__WEBPACK_IMPORTED_MODULE_1__.gD)(this.popoverContent) || (0, _wistia_utils__WEBPACK_IMPORTED_MODULE_1__.jw)(this.popoverContent) || this.popoverContent === "thumbnail");
372
373
  }
373
374
  async function _maybeInitializeMux() {
374
375
  if (!_classPrivateFieldGet(_api, this)) {
@@ -410,8 +411,13 @@ function _maybeSetupEmbedOptionsFromIframe() {
410
411
  if (!window._inWistiaIframe) {
411
412
  return;
412
413
  }
413
- const searchParams = new URLSearchParams(window.location.search);
414
- const iframeEmbedOptions = Object.fromEntries(searchParams.entries());
414
+ const iframeEmbedOptions = {};
415
+ new URLSearchParams(window.location.search).forEach((value, key) => {
416
+ const path = key.includes("[") ? (0, _utilities_url_js__WEBPACK_IMPORTED_MODULE_27__.dn)(key) : [key];
417
+ if (path) {
418
+ (0, _utilities_obj_js__WEBPACK_IMPORTED_MODULE_35__.vd)(iframeEmbedOptions, path, value);
419
+ }
420
+ });
415
421
  iframeEmbedOptions.pageTitle = document.title;
416
422
  iframeEmbedOptions._inIframe = true;
417
423
  _classPrivateFieldGet(_playerData, this).setIframeEmbedOptionSource(iframeEmbedOptions);
@@ -561,7 +567,7 @@ function _runMethodsFromAttributes() {
561
567
  }
562
568
  }
563
569
  function _saveInitialAttributesFromDomOptions() {
564
- const domOptions = Object.fromEntries(Object.entries(this.attributes).map(([, value]) => [(0, _utilities_camelCaseToKebabCase_ts__WEBPACK_IMPORTED_MODULE_36__.b)(value.name), _assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, value.name)]));
570
+ const domOptions = Object.fromEntries(Object.entries(this.attributes).map(([, value]) => [(0, _utilities_camelCaseToKebabCase_ts__WEBPACK_IMPORTED_MODULE_37__.b)(value.name), _assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, value.name)]));
565
571
  _classPrivateFieldGet(_playerData, this).setDomEmbedOptionSource(domOptions);
566
572
  (0, _utilities_embedOptionStore_ts__WEBPACK_IMPORTED_MODULE_14__.gY)(`__${this.uniqueId}_dom_options__`, _classPrivateFieldGet(_playerData, this).embedOptions);
567
573
  }
@@ -637,7 +643,7 @@ function _updateMediaData(mediaData) {
637
643
  _classPrivateFieldSet(_playerType, this, (0, _utilities_judy_js__WEBPACK_IMPORTED_MODULE_20__.$F)(_classPrivateFieldGet(_judyContext, this), _classPrivateFieldGet(_playerData, this).mediaData, _classPrivateFieldGet(_playerData, this).embedOptions));
638
644
  _assertClassBrand(_WistiaPlayer_brand, this, _renderPreloadThumbnail).call(this);
639
645
  }
640
- var __webpack_modules__, __webpack_module_cache__, __webpack_exports__2, preact__WEBPACK_IMPORTED_MODULE_0__, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_1__, _utilities_gradients_ts__WEBPACK_IMPORTED_MODULE_2__, _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_3__, _components_PreloadThumbnail_tsx__WEBPACK_IMPORTED_MODULE_4__, _hooks_usePlayerData_tsx__WEBPACK_IMPORTED_MODULE_5__, _utilities_constants_ts__WEBPACK_IMPORTED_MODULE_6__, _utilities_PlayerDataHandler_ts__WEBPACK_IMPORTED_MODULE_7__, _media_modules_publicApiHelpers_languageHelpers_ts__WEBPACK_IMPORTED_MODULE_8__, _appHostname_js__WEBPACK_IMPORTED_MODULE_9__, _utilities_assets_js__WEBPACK_IMPORTED_MODULE_10__, _utilities_coinFlip_ts__WEBPACK_IMPORTED_MODULE_11__, _utilities_detect_js__WEBPACK_IMPORTED_MODULE_12__, _utilities_dynamicImport_ts__WEBPACK_IMPORTED_MODULE_13__, _utilities_embedOptionStore_ts__WEBPACK_IMPORTED_MODULE_14__, _utilities_elem_js__WEBPACK_IMPORTED_MODULE_15__, _utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_16__, _utilities_extractEmailFromParams_ts__WEBPACK_IMPORTED_MODULE_17__, _utilities_hosts_js__WEBPACK_IMPORTED_MODULE_18__, _utilities_inferPageUrl_ts__WEBPACK_IMPORTED_MODULE_19__, _utilities_judy_js__WEBPACK_IMPORTED_MODULE_20__, _utilities_roundedPlayerDefaults_ts__WEBPACK_IMPORTED_MODULE_21__, _utilities_runScript_js__WEBPACK_IMPORTED_MODULE_22__, _utilities_seqid_js__WEBPACK_IMPORTED_MODULE_23__, _utilities_shouldEnableMux_ts__WEBPACK_IMPORTED_MODULE_24__, _utilities_simpleMetrics_js__WEBPACK_IMPORTED_MODULE_25__, _utilities_trackingConsentApi_js__WEBPACK_IMPORTED_MODULE_26__, _utilities_url_js__WEBPACK_IMPORTED_MODULE_27__, _utilities_wistiaLocalStorage_js__WEBPACK_IMPORTED_MODULE_28__, _utilities_wistiaOptions_ts__WEBPACK_IMPORTED_MODULE_29__, _utilities_wistiaQueue_ts__WEBPACK_IMPORTED_MODULE_30__, _utilities_wlog_js__WEBPACK_IMPORTED_MODULE_31__, _utilities_injectJsonLd_js__WEBPACK_IMPORTED_MODULE_32__, _utilities_getInitialMediaData_ts__WEBPACK_IMPORTED_MODULE_33__, _utilities_mediaDataError_ts__WEBPACK_IMPORTED_MODULE_34__, _utilities_remote_data_cache_ts__WEBPACK_IMPORTED_MODULE_35__, _utilities_camelCaseToKebabCase_ts__WEBPACK_IMPORTED_MODULE_36__, _types_gradient_ts__WEBPACK_IMPORTED_MODULE_37__, _WistiaPlayer, requiredAttributes, optionalPublicAttributes, optionalPrivateAttributes, defaultEmbedOptions, getSwatchUrl, PRELOAD_CLICK_OPTIONS, _api, _eventListeners, _fullscreenState, _impl, _internals, _jsonLdId, _judyContext, _logger, _oldEngine, _playerData, _playerType, _removeEventListeners, _cachedRemapTime, _hasElementConnectedToDOM, _paddingTop, _playPending, _preactRoot, _preloadThumbnailRoot, _publicApiScript, _resizeObserver, _WistiaPlayer_brand, _handleAfterReplace, _handleBeforeReplace, _handlePreloadThumbnailClick, _returnFocusToPopoverTrigger, WistiaPlayer, getSwatchMetaData2, wistiaSwatchElement, __webpack_exports__WistiaPlayer, __webpack_exports__wistiaSwatchElement;
646
+ var __webpack_modules__, __webpack_module_cache__, __webpack_exports__2, preact__WEBPACK_IMPORTED_MODULE_0__, _wistia_utils__WEBPACK_IMPORTED_MODULE_1__, _utilities_gradients_ts__WEBPACK_IMPORTED_MODULE_2__, _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_3__, _components_PreloadThumbnail_tsx__WEBPACK_IMPORTED_MODULE_4__, _hooks_usePlayerData_tsx__WEBPACK_IMPORTED_MODULE_5__, _utilities_constants_ts__WEBPACK_IMPORTED_MODULE_6__, _utilities_PlayerDataHandler_ts__WEBPACK_IMPORTED_MODULE_7__, _media_modules_publicApiHelpers_languageHelpers_ts__WEBPACK_IMPORTED_MODULE_8__, _appHostname_js__WEBPACK_IMPORTED_MODULE_9__, _utilities_assets_js__WEBPACK_IMPORTED_MODULE_10__, _utilities_coinFlip_ts__WEBPACK_IMPORTED_MODULE_11__, _utilities_detect_js__WEBPACK_IMPORTED_MODULE_12__, _utilities_dynamicImport_ts__WEBPACK_IMPORTED_MODULE_13__, _utilities_embedOptionStore_ts__WEBPACK_IMPORTED_MODULE_14__, _utilities_elem_js__WEBPACK_IMPORTED_MODULE_15__, _utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_16__, _utilities_extractEmailFromParams_ts__WEBPACK_IMPORTED_MODULE_17__, _utilities_hosts_js__WEBPACK_IMPORTED_MODULE_18__, _utilities_inferPageUrl_ts__WEBPACK_IMPORTED_MODULE_19__, _utilities_judy_js__WEBPACK_IMPORTED_MODULE_20__, _utilities_roundedPlayerDefaults_ts__WEBPACK_IMPORTED_MODULE_21__, _utilities_runScript_js__WEBPACK_IMPORTED_MODULE_22__, _utilities_seqid_js__WEBPACK_IMPORTED_MODULE_23__, _utilities_shouldEnableMux_ts__WEBPACK_IMPORTED_MODULE_24__, _utilities_simpleMetrics_js__WEBPACK_IMPORTED_MODULE_25__, _utilities_trackingConsentApi_js__WEBPACK_IMPORTED_MODULE_26__, _utilities_url_js__WEBPACK_IMPORTED_MODULE_27__, _utilities_wistiaLocalStorage_js__WEBPACK_IMPORTED_MODULE_28__, _utilities_wistiaOptions_ts__WEBPACK_IMPORTED_MODULE_29__, _utilities_wistiaQueue_ts__WEBPACK_IMPORTED_MODULE_30__, _utilities_wlog_js__WEBPACK_IMPORTED_MODULE_31__, _utilities_injectJsonLd_js__WEBPACK_IMPORTED_MODULE_32__, _utilities_getInitialMediaData_ts__WEBPACK_IMPORTED_MODULE_33__, _utilities_mediaDataError_ts__WEBPACK_IMPORTED_MODULE_34__, _utilities_obj_js__WEBPACK_IMPORTED_MODULE_35__, _utilities_remote_data_cache_ts__WEBPACK_IMPORTED_MODULE_36__, _utilities_camelCaseToKebabCase_ts__WEBPACK_IMPORTED_MODULE_37__, _types_gradient_ts__WEBPACK_IMPORTED_MODULE_38__, _WistiaPlayer, requiredAttributes, optionalPublicAttributes, optionalPrivateAttributes, defaultEmbedOptions, getSwatchUrl, PRELOAD_CLICK_OPTIONS, _api, _eventListeners, _fullscreenState, _impl, _internals, _jsonLdId, _judyContext, _logger, _oldEngine, _playerData, _playerType, _removeEventListeners, _cachedRemapTime, _hasElementConnectedToDOM, _paddingTop, _playPending, _preactRoot, _preloadThumbnailRoot, _publicApiScript, _resizeObserver, _WistiaPlayer_brand, _handleAfterReplace, _handleBeforeReplace, _handlePreloadThumbnailClick, _returnFocusToPopoverTrigger, WistiaPlayer, getSwatchMetaData2, wistiaSwatchElement, __webpack_exports__WistiaPlayer, __webpack_exports__wistiaSwatchElement;
641
647
  var init_wistia_player = __esm({
642
648
  "../wistia-player/dist/wistia-player.js"() {
643
649
  __webpack_modules__ = {
@@ -2152,7 +2158,7 @@ var init_wistia_player = __esm({
2152
2158
  )
2153
2159
  /* harmony export */
2154
2160
  });
2155
- var _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(9814);
2161
+ var _wistia_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(2002);
2156
2162
  var _objectHasOwn = function(object, property) {
2157
2163
  if (typeof object === "undefined" || object === null) {
2158
2164
  throw new TypeError("Cannot convert undefined or null to object");
@@ -2160,7 +2166,7 @@ var init_wistia_player = __esm({
2160
2166
  return Object.prototype.hasOwnProperty.call(Object(object), property);
2161
2167
  };
2162
2168
  const isMediaDataError = (mediaData) => {
2163
- if (!_objectHasOwn(mediaData, "error") || (0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__.gD)(mediaData.error)) {
2169
+ if (!_objectHasOwn(mediaData, "error") || (0, _wistia_utils__WEBPACK_IMPORTED_MODULE_0__.gD)(mediaData.error)) {
2164
2170
  return false;
2165
2171
  }
2166
2172
  if (mediaData.error === "true" || mediaData.error === true) {
@@ -2204,7 +2210,7 @@ var init_wistia_player = __esm({
2204
2210
  )
2205
2211
  /* harmony export */
2206
2212
  });
2207
- var _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(9814);
2213
+ var _wistia_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(2002);
2208
2214
  var _color_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__3(5417);
2209
2215
  var _sentryUtils_ts__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__3(2621);
2210
2216
  const DEFAULT_PLAYER_COLOR2 = "#2949E5";
@@ -2226,13 +2232,13 @@ var init_wistia_player = __esm({
2226
2232
  const rgbToHsl = (color) => {
2227
2233
  let colorArray = color;
2228
2234
  if (color instanceof _color_js__WEBPACK_IMPORTED_MODULE_1__.Q1) {
2229
- if ((0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__.gD)(color.r) || (0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__.gD)(color.g) || (0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__.gD)(color.b)) {
2235
+ if ((0, _wistia_utils__WEBPACK_IMPORTED_MODULE_0__.gD)(color.r) || (0, _wistia_utils__WEBPACK_IMPORTED_MODULE_0__.gD)(color.g) || (0, _wistia_utils__WEBPACK_IMPORTED_MODULE_0__.gD)(color.b)) {
2230
2236
  throw new Error("Color does not contain required RGB values");
2231
2237
  }
2232
2238
  colorArray = [color.r, color.g, color.b];
2233
2239
  } else if (typeof color === "string") {
2234
2240
  const colorInstance = new _color_js__WEBPACK_IMPORTED_MODULE_1__.Q1(color);
2235
- if ((0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__.gD)(colorInstance.r) || (0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__.gD)(colorInstance.g) || (0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__.gD)(colorInstance.b)) {
2241
+ if ((0, _wistia_utils__WEBPACK_IMPORTED_MODULE_0__.gD)(colorInstance.r) || (0, _wistia_utils__WEBPACK_IMPORTED_MODULE_0__.gD)(colorInstance.g) || (0, _wistia_utils__WEBPACK_IMPORTED_MODULE_0__.gD)(colorInstance.b)) {
2236
2242
  throw new Error("Color does not contain required RGB values");
2237
2243
  }
2238
2244
  colorArray = [colorInstance.r, colorInstance.g, colorInstance.b];
@@ -2287,7 +2293,7 @@ var init_wistia_player = __esm({
2287
2293
  const adjustColorForProperContrast = (foreground, background, shape = "paragraphText") => {
2288
2294
  const foregroundColor = new _color_js__WEBPACK_IMPORTED_MODULE_1__.Q1(foreground);
2289
2295
  const backgroundColor = new _color_js__WEBPACK_IMPORTED_MODULE_1__.Q1(background);
2290
- if ((0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__.gD)(foregroundColor.r) || (0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__.gD)(foregroundColor.g) || (0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__.gD)(foregroundColor.b)) {
2296
+ if ((0, _wistia_utils__WEBPACK_IMPORTED_MODULE_0__.gD)(foregroundColor.r) || (0, _wistia_utils__WEBPACK_IMPORTED_MODULE_0__.gD)(foregroundColor.g) || (0, _wistia_utils__WEBPACK_IMPORTED_MODULE_0__.gD)(foregroundColor.b)) {
2291
2297
  throw new Error("Color does not contain required RGB values");
2292
2298
  }
2293
2299
  const initialContrastRatio = getContrast(foregroundColor.toHexWithHash(), backgroundColor.toHexWithHash());
@@ -3321,6 +3327,539 @@ var init_wistia_player = __esm({
3321
3327
  };
3322
3328
  },
3323
3329
  /***/
3330
+ 2002(__unused_webpack___webpack_module__2, __webpack_exports__3, __webpack_require__3) {
3331
+ __webpack_require__3.d(__webpack_exports__3, {
3332
+ /* harmony export */
3333
+ gD: () => (
3334
+ /* binding */
3335
+ isNil3
3336
+ ),
3337
+ /* harmony export */
3338
+ jw: () => (
3339
+ /* binding */
3340
+ isEmptyString
3341
+ ),
3342
+ /* harmony export */
3343
+ n9: () => (
3344
+ /* binding */
3345
+ isNotNil2
3346
+ ),
3347
+ /* harmony export */
3348
+ uI: () => (
3349
+ /* binding */
3350
+ isNonEmptyString2
3351
+ ),
3352
+ /* harmony export */
3353
+ uu: () => (
3354
+ /* binding */
3355
+ isNonEmptyRecord
3356
+ )
3357
+ /* harmony export */
3358
+ });
3359
+ const isNull2 = (value) => value === null;
3360
+ const isUndefined2 = (value) => value === void 0;
3361
+ const isNil3 = (value) => isNull2(value) || isUndefined2(value);
3362
+ const isNotNil2 = (value) => !isNil3(value);
3363
+ const isRecord2 = (value) => isNotNil2(value) && typeof value === "object" && !Array.isArray(value);
3364
+ const isNonEmptyRecord = (value) => isRecord2(value) && Object.keys(value).length > 0;
3365
+ const hasKey = (value, key) => isNonEmptyRecord(value) && key in value;
3366
+ const isArray3 = (value) => isNotNil2(value) && typeof value === "object" && Array.isArray(value);
3367
+ const isFunction2 = (value) => isNotNil2(value) && typeof value === "function";
3368
+ const isAsyncFunction = (value) => {
3369
+ return isFunction2(value) && value.constructor?.name === "AsyncFunction";
3370
+ };
3371
+ const isBigInt = (value) => typeof value === "bigint";
3372
+ const isBoolean2 = (value) => isNotNil2(value) && typeof value === "boolean";
3373
+ const isDate = (value) => {
3374
+ return isNotNil2(value) && value instanceof Date;
3375
+ };
3376
+ const isEmptyArray = (value) => isArray3(value) && value.length === 0;
3377
+ const isEmptyRecord = (value) => isRecord2(value) && Object.keys(value).length === 0;
3378
+ const isString2 = (value) => typeof value === "string";
3379
+ const isEmptyString = (value) => isString2(value) && value === "";
3380
+ const isError = (value) => {
3381
+ return isNotNil2(value) && value instanceof Error;
3382
+ };
3383
+ const FALSY_VALUES = [
3384
+ false,
3385
+ 0,
3386
+ -0,
3387
+ 0n,
3388
+ "",
3389
+ null,
3390
+ void 0,
3391
+ NaN
3392
+ ];
3393
+ const isFalsy = (value) => FALSY_VALUES.includes(value) || Number.isNaN(value);
3394
+ const isNumber3 = (value) => typeof value === "number";
3395
+ const isFiniteNumber = (value) => isNumber3(value) && Number.isFinite(value);
3396
+ const isHtmlButtonElement = (value) => value instanceof HTMLButtonElement;
3397
+ const isHtmlElement = (value) => value instanceof HTMLElement;
3398
+ const isHtmlInputElement = (value) => value instanceof HTMLInputElement;
3399
+ const isHtmlVideoElement = (value) => value instanceof HTMLVideoElement;
3400
+ const isInteger = (value) => Number.isInteger(value);
3401
+ const isIterable = (value) => {
3402
+ if (!isNotNil2(value)) return false;
3403
+ return typeof value[Symbol.iterator] === "function";
3404
+ };
3405
+ const isMap = (value) => {
3406
+ return isNotNil2(value) && value instanceof Map;
3407
+ };
3408
+ const isMouseEvent = (value) => value instanceof MouseEvent;
3409
+ const isNaN2 = (value) => Number.isNaN(value);
3410
+ const isNonBlankString = (value) => isString2(value) && value.trim() !== "";
3411
+ const isNonEmptyArray = (value) => isArray3(value) && value.length > 0;
3412
+ const isNonEmptyString2 = (value) => isString2(value) && !isEmptyString(value);
3413
+ const isNonNaNNumber = (value) => isNumber3(value) && !isNaN2(value);
3414
+ const isNotArray = (value) => !isArray3(value);
3415
+ const isNotBoolean = (value) => !isBoolean2(value);
3416
+ const isNotFunction = (value) => !isFunction2(value);
3417
+ const isNotNull = (value) => !isNull2(value);
3418
+ const isNotNumber = (value) => !isNumber3(value);
3419
+ const isNotRecord = (value) => !isRecord2(value);
3420
+ const isNotString = (value) => !isString2(value);
3421
+ const isNotUndefined = (value) => !isUndefined2(value);
3422
+ const isVoid = (value) => value === void 0;
3423
+ const isNotVoid = (value) => !isVoid(value);
3424
+ const isPlainObject = (value) => {
3425
+ if (isNil3(value) || typeof value !== "object") return false;
3426
+ if (isArray3(value)) return false;
3427
+ const proto = Object.getPrototypeOf(value);
3428
+ return proto === Object.prototype || proto === null;
3429
+ };
3430
+ const isPromise = (value) => {
3431
+ if (!isNotNil2(value)) return false;
3432
+ const candidate = value;
3433
+ return typeof candidate.then === "function" && typeof candidate.catch === "function" && typeof candidate.finally === "function";
3434
+ };
3435
+ const isRegExp = (value) => {
3436
+ return isNotNil2(value) && value instanceof RegExp;
3437
+ };
3438
+ const isSet = (value) => {
3439
+ return isNotNil2(value) && value instanceof Set;
3440
+ };
3441
+ const isSvgElement = (value) => value instanceof SVGElement;
3442
+ const isSymbol = (value) => typeof value === "symbol";
3443
+ const isTextNode = (value) => value.nodeName === "#text";
3444
+ const isTruthy = (value) => !FALSY_VALUES.includes(value) && !Number.isNaN(value);
3445
+ const isWeakMap = (value) => {
3446
+ return isNotNil2(value) && value instanceof WeakMap;
3447
+ };
3448
+ const isWeakSet = (value) => {
3449
+ return isNotNil2(value) && value instanceof WeakSet;
3450
+ };
3451
+ const readonlyArrayIncludes = (arr, elem) => arr.includes(elem);
3452
+ const asyncNoOpFn = async () => {
3453
+ };
3454
+ const defaultLocales = (
3455
+ /* unused pure expression or super */
3456
+ null
3457
+ );
3458
+ const defaultTimeZone = (
3459
+ /* unused pure expression or super */
3460
+ null
3461
+ );
3462
+ const milisecondsInSecond2 = 1e3;
3463
+ const millisecondsInDay2 = 86400 * milisecondsInSecond2;
3464
+ const buildTimeDuration = (numberOfMilliseconds) => {
3465
+ const numberOfSeconds = Math.floor(numberOfMilliseconds / milisecondsInSecond2);
3466
+ const numberOfMinutes = Math.floor(numberOfSeconds / 60);
3467
+ const numberOfHours = Math.floor(numberOfMinutes / 60);
3468
+ return {
3469
+ seconds: numberOfSeconds - numberOfMinutes * 60,
3470
+ minutes: numberOfMinutes - numberOfHours * 60,
3471
+ hours: numberOfHours
3472
+ };
3473
+ };
3474
+ const coerceToBoolean = (value) => {
3475
+ if (value === "true" || value === "false") return value === "true";
3476
+ return Boolean(value);
3477
+ };
3478
+ const isInvalidDate = (date) => {
3479
+ if (!isDate(date)) return true;
3480
+ const time = date.getTime();
3481
+ return time === 0 || Number.isNaN(time);
3482
+ };
3483
+ const dateOnlyISOString = (date, { timeZone = defaultTimeZone } = {}) => {
3484
+ if (!isDate(date) || isInvalidDate(date)) return "";
3485
+ try {
3486
+ const partsAsObject = new Intl.DateTimeFormat(defaultLocales, {
3487
+ year: "numeric",
3488
+ month: "2-digit",
3489
+ day: "2-digit",
3490
+ timeZone
3491
+ }).formatToParts(date).reduce((map, obj) => {
3492
+ map[obj.type] = obj.value;
3493
+ return map;
3494
+ }, {});
3495
+ return `${partsAsObject.year}-${partsAsObject.month}-${partsAsObject.day}`;
3496
+ } catch (error) {
3497
+ console.error(error);
3498
+ return "";
3499
+ }
3500
+ };
3501
+ const dateOnlyString = (date, { timeZone = defaultTimeZone, omitYear = false } = {}) => {
3502
+ if (!isDate(date) || isInvalidDate(date)) return "";
3503
+ const formatOptions = omitYear ? {
3504
+ month: "short",
3505
+ day: "numeric",
3506
+ timeZone
3507
+ } : {
3508
+ dateStyle: "medium",
3509
+ timeZone
3510
+ };
3511
+ try {
3512
+ return new Intl.DateTimeFormat(defaultLocales, formatOptions).format(date);
3513
+ } catch (error) {
3514
+ console.error(error);
3515
+ return "";
3516
+ }
3517
+ };
3518
+ const dateOnlyStringForSentence = (date, { timeZone = defaultTimeZone } = {}) => {
3519
+ if (!isDate(date) || isInvalidDate(date)) return "";
3520
+ try {
3521
+ return new Intl.DateTimeFormat(defaultLocales, {
3522
+ dateStyle: "long",
3523
+ timeZone
3524
+ }).format(date);
3525
+ } catch (error) {
3526
+ console.error(error);
3527
+ return "";
3528
+ }
3529
+ };
3530
+ const dateOnlyStringNumeric = (date, { timeZone = defaultTimeZone } = {}) => {
3531
+ if (!isDate(date) || isInvalidDate(date)) return "";
3532
+ try {
3533
+ return new Intl.DateTimeFormat(defaultLocales, {
3534
+ year: "numeric",
3535
+ month: "2-digit",
3536
+ day: "2-digit",
3537
+ timeZone
3538
+ }).format(date);
3539
+ } catch (error) {
3540
+ console.error(error);
3541
+ return "";
3542
+ }
3543
+ };
3544
+ const dateTimeToDate = (dateTime) => {
3545
+ const { year, month, dayOfMonth, hours, minutes } = dateTime ?? {};
3546
+ if (year !== void 0 && month !== void 0 && dayOfMonth !== void 0) return new Date(year, month, dayOfMonth, hours ?? 0, minutes ?? 0);
3547
+ return null;
3548
+ };
3549
+ const dateTimeToISO = (dateTime) => dateTimeToDate(dateTime)?.toISOString() ?? null;
3550
+ const dateToDateTime = (date) => {
3551
+ if (!isDate(date)) return null;
3552
+ return {
3553
+ year: date.getFullYear(),
3554
+ month: date.getMonth(),
3555
+ dayOfMonth: date.getDate(),
3556
+ hours: date.getHours(),
3557
+ minutes: date.getMinutes()
3558
+ };
3559
+ };
3560
+ const dateTimeRounded = (dateTime, toISOString = true) => {
3561
+ const first30Min = dateTime.getMinutes() <= 30;
3562
+ const hours = first30Min ? dateTime.getHours() : dateTime.getHours() + 1;
3563
+ const minutes = first30Min ? 30 : 0;
3564
+ const dateWithTime = {
3565
+ ...dateToDateTime(dateTime),
3566
+ hours,
3567
+ minutes
3568
+ };
3569
+ if (toISOString) return dateTimeToISO(dateWithTime);
3570
+ return dateTimeToDate(dateWithTime);
3571
+ };
3572
+ const dateTimeString = (date, { timeZone = defaultTimeZone, omitYear = false } = {}) => {
3573
+ if (isNil3(date)) return "";
3574
+ const formattedDate = new Date(date);
3575
+ if (isInvalidDate(formattedDate)) return "";
3576
+ try {
3577
+ const baseOptions = {
3578
+ month: "short",
3579
+ day: "numeric",
3580
+ hour: "numeric",
3581
+ minute: "2-digit",
3582
+ timeZone
3583
+ };
3584
+ const options = omitYear ? baseOptions : {
3585
+ ...baseOptions,
3586
+ year: "numeric"
3587
+ };
3588
+ return formattedDate.toLocaleDateString(defaultLocales, options);
3589
+ } catch (error) {
3590
+ console.error(error);
3591
+ return "";
3592
+ }
3593
+ };
3594
+ const dateTimeStringForSentence = (date, { timeZone = defaultTimeZone } = {}) => {
3595
+ if (!isDate(date) || isInvalidDate(date)) return "";
3596
+ try {
3597
+ const { year, month, day, hour, minute, dayPeriod } = new Intl.DateTimeFormat(defaultLocales, {
3598
+ month: "long",
3599
+ day: "numeric",
3600
+ year: "numeric",
3601
+ hour: "numeric",
3602
+ minute: "2-digit",
3603
+ timeZone
3604
+ }).formatToParts(date).reduce((acc, part) => {
3605
+ if (part.type !== "literal") acc[part.type] = part.value;
3606
+ return acc;
3607
+ }, {});
3608
+ return `${month} ${day}, ${year}, ${hour}:${minute} ${dayPeriod}`;
3609
+ } catch (error) {
3610
+ console.error(error);
3611
+ return "";
3612
+ }
3613
+ };
3614
+ const dateUTCOffset = (date) => {
3615
+ const offsetInHours = date.getTimezoneOffset() / 60 * -1;
3616
+ const hours = Math.round(offsetInHours);
3617
+ const minutes = (offsetInHours - hours) * 60;
3618
+ return `${hours >= 0 ? "+" : ""}${`${hours}`.padStart(2, "0")}:${`${minutes}`.padStart(2, "0")}`;
3619
+ };
3620
+ const dayOfWeekString = (date, { timeZone = defaultTimeZone } = {}) => {
3621
+ if (date === null) return "";
3622
+ try {
3623
+ return new Intl.DateTimeFormat(defaultLocales, {
3624
+ weekday: "long",
3625
+ timeZone
3626
+ }).format(date);
3627
+ } catch (error) {
3628
+ console.error(error);
3629
+ return "";
3630
+ }
3631
+ };
3632
+ const UNSAFE_KEYS = /* @__PURE__ */ new Set([
3633
+ "__proto__",
3634
+ "constructor",
3635
+ "prototype"
3636
+ ]);
3637
+ const cloneIfArray = (value) => isArray3(value) ? [...value] : value;
3638
+ const deepMerge = (...objects) => {
3639
+ const result = {};
3640
+ for (const current of objects) {
3641
+ if (isArray3(current)) throw new TypeError("Arguments provided to deepMerge must be objects, not arrays.");
3642
+ const safeKeys = Object.keys(current).filter((key) => !UNSAFE_KEYS.has(key));
3643
+ for (const key of safeKeys) {
3644
+ const existing = result[key];
3645
+ const incoming = current[key];
3646
+ if (isArray3(existing) && isArray3(incoming)) result[key] = [.../* @__PURE__ */ new Set([...existing, ...incoming])];
3647
+ else if (isPlainObject(existing) && isPlainObject(incoming)) result[key] = deepMerge(existing, incoming);
3648
+ else if (isPlainObject(incoming)) result[key] = deepMerge(incoming);
3649
+ else result[key] = cloneIfArray(incoming);
3650
+ }
3651
+ }
3652
+ return result;
3653
+ };
3654
+ const getObjectEntries = (obj) => Object.keys(obj).map((key) => [key, obj[key]]);
3655
+ const getObjectKeys = (obj) => Object.keys(obj);
3656
+ const getObjectValues = (obj) => Object.values(obj);
3657
+ const isEmail = (value) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(value);
3658
+ const isUrl = (value) => {
3659
+ const protocolAndDomain = /^(?:\w+:)?\/\/(\S+)$/;
3660
+ const localhostDomain = /^localhost[:?\d]*(?:[^:?\d]\S*)?$/;
3661
+ const nonLocalhostDomain = /^[^\s.]+\.\S{2,}$/;
3662
+ if (!isString2(value)) return false;
3663
+ const remaining = protocolAndDomain.exec(value)?.[1];
3664
+ if (remaining === void 0) return false;
3665
+ return localhostDomain.test(remaining) || nonLocalhostDomain.test(remaining);
3666
+ };
3667
+ const padTimeInteger = (num) => num.toString().padStart(2, "0");
3668
+ const mediaDurationString = (numberOfMilliseconds) => {
3669
+ const { hours, minutes, seconds } = buildTimeDuration(numberOfMilliseconds);
3670
+ if (hours < 1) return `${minutes}:${padTimeInteger(seconds)}`;
3671
+ return `${hours}:${padTimeInteger(minutes)}:${padTimeInteger(seconds)}`;
3672
+ };
3673
+ const millisecondsToDurationISOString = (numberOfMilliseconds) => {
3674
+ const { seconds, minutes, hours } = buildTimeDuration(numberOfMilliseconds);
3675
+ let string = "PT";
3676
+ if (hours) string += `${hours}H`;
3677
+ if (minutes) string += `${minutes}M`;
3678
+ if (seconds) string += `${seconds}S`;
3679
+ if (!(seconds || minutes || hours)) string += "0S";
3680
+ return string;
3681
+ };
3682
+ const monthDayStringNumeric = (date, { timeZone = defaultTimeZone } = {}) => {
3683
+ if (!isDate(date) || isInvalidDate(date)) return "";
3684
+ try {
3685
+ return new Intl.DateTimeFormat(defaultLocales, {
3686
+ month: "2-digit",
3687
+ day: "2-digit",
3688
+ timeZone
3689
+ }).format(date);
3690
+ } catch (error) {
3691
+ console.error(error);
3692
+ return "";
3693
+ }
3694
+ };
3695
+ const noOpFn = () => {
3696
+ };
3697
+ const noOpFnReturningFalse = () => false;
3698
+ const noOpFnReturningNull = () => null;
3699
+ const MONTH_NAMES = (
3700
+ /* unused pure expression or super */
3701
+ null
3702
+ );
3703
+ const startOfDay = (date) => {
3704
+ const result = new Date(date);
3705
+ result.setHours(0, 0, 0, 0);
3706
+ return result;
3707
+ };
3708
+ const startOfToday = () => startOfDay(/* @__PURE__ */ new Date());
3709
+ const startOfTomorrow = () => {
3710
+ const tomorrow = startOfToday();
3711
+ tomorrow.setDate(tomorrow.getDate() + 1);
3712
+ return tomorrow;
3713
+ };
3714
+ const monthIndexIn = (names, value) => names.findIndex((name) => name.toLowerCase() === value.toLowerCase());
3715
+ const toNumberOrUndefined = (value) => value === void 0 ? void 0 : Number(value);
3716
+ const buildDatePatterns = () => {
3717
+ const monthAbbreviations = MONTH_NAMES.map((name) => name.slice(0, 3));
3718
+ return [
3719
+ {
3720
+ regex: new RegExp(`^(${monthAbbreviations.join("|")}) (\\d{1,2})(?:, (\\d{1,4}))?$`, "i"),
3721
+ toParts: ([, month, day, year]) => ({
3722
+ monthIndex: monthIndexIn(monthAbbreviations, String(month)),
3723
+ day: Number(day),
3724
+ year: toNumberOrUndefined(year)
3725
+ })
3726
+ },
3727
+ {
3728
+ regex: new RegExp(`^(${MONTH_NAMES.join("|")}) (\\d{1,2})(?:, (\\d{1,4}))?$`, "i"),
3729
+ toParts: ([, month, day, year]) => ({
3730
+ monthIndex: monthIndexIn(MONTH_NAMES, String(month)),
3731
+ day: Number(day),
3732
+ year: toNumberOrUndefined(year)
3733
+ })
3734
+ },
3735
+ {
3736
+ regex: /^(\d{1,2})\/(\d{1,2})(?:\/(\d{1,4}))?$/,
3737
+ toParts: ([, month, day, year]) => ({
3738
+ monthIndex: Number(month) - 1,
3739
+ day: Number(day),
3740
+ year: toNumberOrUndefined(year)
3741
+ })
3742
+ },
3743
+ {
3744
+ regex: /^(\d{1,2})-(\d{1,2})(?:-(\d{1,4}))?$/,
3745
+ toParts: ([, month, day, year]) => ({
3746
+ monthIndex: Number(month) - 1,
3747
+ day: Number(day),
3748
+ year: toNumberOrUndefined(year)
3749
+ })
3750
+ },
3751
+ {
3752
+ regex: /^(\d{1,4})-(\d{1,2})-(\d{1,2})$/,
3753
+ toParts: ([, year, month, day]) => ({
3754
+ monthIndex: Number(month) - 1,
3755
+ day: Number(day),
3756
+ year: Number(year)
3757
+ })
3758
+ }
3759
+ ];
3760
+ };
3761
+ const DATE_PATTERNS = (
3762
+ /* unused pure expression or super */
3763
+ null
3764
+ );
3765
+ const toValidDate = ({ monthIndex, day, year }, referenceDate) => {
3766
+ if (year === 0) return null;
3767
+ const resolvedYear = year ?? referenceDate.getFullYear();
3768
+ const date = new Date(referenceDate.getFullYear(), 0, 1);
3769
+ date.setFullYear(resolvedYear, monthIndex, day);
3770
+ return date.getFullYear() === resolvedYear && date.getMonth() === monthIndex && date.getDate() === day ? date : null;
3771
+ };
3772
+ const parseDateString = (str) => {
3773
+ const trimmed = str.trim();
3774
+ if (!trimmed) return null;
3775
+ const lower = trimmed.toLowerCase();
3776
+ if (lower === "today") return startOfToday();
3777
+ if (lower === "tomorrow") return startOfTomorrow();
3778
+ const monthIndex = MONTH_NAMES.findIndex((name) => name.toLowerCase().startsWith(lower));
3779
+ if (monthIndex !== -1) {
3780
+ const today = startOfToday();
3781
+ let date = new Date(today.getFullYear(), monthIndex, 1);
3782
+ if (date.getTime() < Date.now()) date = new Date(today.getFullYear() + 1, monthIndex, 1);
3783
+ return date;
3784
+ }
3785
+ const referenceDate = /* @__PURE__ */ new Date();
3786
+ for (const { regex, toParts } of DATE_PATTERNS) {
3787
+ const match = trimmed.match(regex);
3788
+ if (match) {
3789
+ const parsed = toValidDate(toParts(match), referenceDate);
3790
+ if (parsed !== null) return parsed;
3791
+ }
3792
+ }
3793
+ const native = new Date(trimmed);
3794
+ if (!Number.isNaN(native.getTime())) return startOfDay(native);
3795
+ return null;
3796
+ };
3797
+ const sessionDurationString = (numberOfMilliseconds) => {
3798
+ const { hours, minutes, seconds } = buildTimeDuration(numberOfMilliseconds);
3799
+ return `${hours}:${padTimeInteger(minutes)}:${padTimeInteger(seconds)}`;
3800
+ };
3801
+ const stripExtension = (str) => (str || "").replace(/\.[^/.]{1,4}$/, "");
3802
+ const getLocalDateParts = (date) => {
3803
+ const partsAsObject = new Intl.DateTimeFormat(defaultLocales, {
3804
+ year: "numeric",
3805
+ month: "numeric",
3806
+ day: "numeric",
3807
+ timeZone: defaultTimeZone
3808
+ }).formatToParts(date).reduce((map, part) => {
3809
+ map[part.type] = part.value;
3810
+ return map;
3811
+ }, {});
3812
+ return {
3813
+ year: Math.trunc(Number(partsAsObject.year)),
3814
+ month: Math.trunc(Number(partsAsObject.month)),
3815
+ day: Math.trunc(Number(partsAsObject.day))
3816
+ };
3817
+ };
3818
+ const differenceInCalendarDays = (dateLeft, dateRight) => {
3819
+ const leftDate = isDate(dateLeft) ? dateLeft : new Date(dateLeft);
3820
+ const rightDate = isDate(dateRight) ? dateRight : new Date(dateRight);
3821
+ if (Number.isNaN(leftDate.getTime()) || Number.isNaN(rightDate.getTime())) return NaN;
3822
+ const { year: y1, month: m1, day: d1 } = getLocalDateParts(leftDate);
3823
+ const { year: y2, month: m2, day: d2 } = getLocalDateParts(rightDate);
3824
+ const msDiff = new Date(y1, m1 - 1, d1).getTime() - new Date(y2, m2 - 1, d2).getTime();
3825
+ return Math.round(msDiff / millisecondsInDay2);
3826
+ };
3827
+ const timeAgoString = (date, { nowAnchor = /* @__PURE__ */ new Date(), includeTime = true } = {}) => {
3828
+ if (isInvalidDate(date)) return "";
3829
+ const minutesAgo = (nowAnchor.valueOf() - date.valueOf()) / (60 * milisecondsInSecond2);
3830
+ const minutesAgoRounded = Math.round(minutesAgo);
3831
+ const differenceInDays = differenceInCalendarDays(nowAnchor, date);
3832
+ const isSameYear = date.getFullYear() === nowAnchor.getFullYear();
3833
+ if (minutesAgo < 0) return dateTimeString(date);
3834
+ if (minutesAgo < 1) return "< 1 minute ago";
3835
+ if (minutesAgoRounded < 2) return "1 minute ago";
3836
+ if (minutesAgoRounded <= 60) return `${minutesAgoRounded} minutes ago`;
3837
+ if (differenceInDays === 0) return includeTime ? `Today, ${Intl.DateTimeFormat(defaultLocales, {
3838
+ hour: "numeric",
3839
+ minute: "2-digit"
3840
+ }).format(date)}` : "Today";
3841
+ if (differenceInDays === 1) return includeTime ? `Yesterday, ${Intl.DateTimeFormat(defaultLocales, {
3842
+ hour: "numeric",
3843
+ minute: "2-digit"
3844
+ }).format(date)}` : "Yesterday";
3845
+ if (differenceInDays < 7 && !includeTime) return `on ${dayOfWeekString(date)}`;
3846
+ return includeTime ? dateTimeString(date, { omitYear: isSameYear }) : dateOnlyString(date, { omitYear: false });
3847
+ };
3848
+ const timeOnlyString = (date, { timeZone = defaultTimeZone } = {}) => {
3849
+ if (!isDate(date) || isInvalidDate(date)) return "";
3850
+ try {
3851
+ return new Intl.DateTimeFormat(defaultLocales, {
3852
+ timeStyle: "short",
3853
+ timeZone
3854
+ }).format(date);
3855
+ } catch (error) {
3856
+ console.error(error);
3857
+ return "";
3858
+ }
3859
+ };
3860
+ const tupleIncludes = (tuple, item) => tuple.includes(item);
3861
+ },
3862
+ /***/
3324
3863
  2147(__unused_webpack___webpack_module__2, __webpack_exports__3, __webpack_require__3) {
3325
3864
  __webpack_require__3.d(__webpack_exports__3, {
3326
3865
  /* harmony export */
@@ -3526,7 +4065,7 @@ var init_wistia_player = __esm({
3526
4065
  )
3527
4066
  /* harmony export */
3528
4067
  });
3529
- var _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(9814);
4068
+ var _wistia_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(2002);
3530
4069
  var _globalBindAndTrigger_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__3(4271);
3531
4070
  var _trackingConsentApi_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__3(4755);
3532
4071
  var _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_3__2 = __webpack_require__3(5509);
@@ -3564,7 +4103,7 @@ var init_wistia_player = __esm({
3564
4103
  }
3565
4104
  };
3566
4105
  const configureSentry = () => {
3567
- if ((0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__.gD)(window.Sentry) || (0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__.gD)(window.Sentry.BrowserClient) || (0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__.gD)(window.Sentry.makeFetchTransport) || (0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__.gD)(window.Sentry.defaultStackParser) || (0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__.gD)(window.Sentry.Scope)) {
4106
+ if ((0, _wistia_utils__WEBPACK_IMPORTED_MODULE_0__.gD)(window.Sentry) || (0, _wistia_utils__WEBPACK_IMPORTED_MODULE_0__.gD)(window.Sentry.BrowserClient) || (0, _wistia_utils__WEBPACK_IMPORTED_MODULE_0__.gD)(window.Sentry.makeFetchTransport) || (0, _wistia_utils__WEBPACK_IMPORTED_MODULE_0__.gD)(window.Sentry.defaultStackParser) || (0, _wistia_utils__WEBPACK_IMPORTED_MODULE_0__.gD)(window.Sentry.Scope)) {
3568
4107
  return;
3569
4108
  }
3570
4109
  const client = new window.Sentry.BrowserClient({
@@ -3573,7 +4112,7 @@ var init_wistia_player = __esm({
3573
4112
  stackParser: window.Sentry.defaultStackParser,
3574
4113
  integrations: [window.Sentry.httpContextIntegration()],
3575
4114
  // Allow httpContextIntegration so we can collect URL, browser, and OS version information. No PII is included here.
3576
- release: (0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__.uI)(_hosts_js__WEBPACK_IMPORTED_MODULE_5__.U4) ? _hosts_js__WEBPACK_IMPORTED_MODULE_5__.U4 : _hosts_js__WEBPACK_IMPORTED_MODULE_5__.lR
4115
+ release: (0, _wistia_utils__WEBPACK_IMPORTED_MODULE_0__.uI)(_hosts_js__WEBPACK_IMPORTED_MODULE_5__.U4) ? _hosts_js__WEBPACK_IMPORTED_MODULE_5__.U4 : _hosts_js__WEBPACK_IMPORTED_MODULE_5__.lR
3577
4116
  });
3578
4117
  const scope = new window.Sentry.Scope();
3579
4118
  scope.setClient(client);
@@ -3642,7 +4181,7 @@ var init_wistia_player = __esm({
3642
4181
  return;
3643
4182
  }
3644
4183
  let shouldSendToSentry = false;
3645
- const cryptoObj = (0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__.gD)(window.crypto) ? window.msCrypto : window.crypto;
4184
+ const cryptoObj = (0, _wistia_utils__WEBPACK_IMPORTED_MODULE_0__.gD)(window.crypto) ? window.msCrypto : window.crypto;
3646
4185
  if (cryptoObj !== void 0) {
3647
4186
  const cryptoRandom = cryptoObj.getRandomValues(new Uint32Array(1));
3648
4187
  shouldSendToSentry = cryptoRandom[0] / (4294967295 + 1) < sampleRate;
@@ -3656,7 +4195,7 @@ var init_wistia_player = __esm({
3656
4195
  _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_3__2.s._sentryScope.clear();
3657
4196
  _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_3__2.s._sentryScope.setTag("pillar", "publish");
3658
4197
  _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_3__2.s._sentryScope.setTag("product", product);
3659
- if ((0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__.uu)(details)) {
4198
+ if ((0, _wistia_utils__WEBPACK_IMPORTED_MODULE_0__.uu)(details)) {
3660
4199
  _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_3__2.s._sentryScope.setTags(details);
3661
4200
  }
3662
4201
  _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_3__2.s._sentryScope.setTag("url", window.location.href);
@@ -3703,6 +4242,11 @@ var init_wistia_player = __esm({
3703
4242
  /***/
3704
4243
  2671(__unused_webpack___webpack_module__2, __webpack_exports__3, __webpack_require__3) {
3705
4244
  __webpack_require__3.d(__webpack_exports__3, {
4245
+ /* harmony export */
4246
+ dn: () => (
4247
+ /* binding */
4248
+ debrack
4249
+ ),
3706
4250
  /* harmony export */
3707
4251
  ff: () => (
3708
4252
  /* binding */
@@ -4270,7 +4814,7 @@ var init_wistia_player = __esm({
4270
4814
  )
4271
4815
  /* harmony export */
4272
4816
  });
4273
- var _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(9814);
4817
+ var _wistia_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(2002);
4274
4818
  var _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__3(5509);
4275
4819
  var _hosts_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__3(5857);
4276
4820
  var _media_data_transforms_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__3(3917);
@@ -4284,19 +4828,19 @@ var init_wistia_player = __esm({
4284
4828
  if (mediaDataFromCache && options.skipCache !== true) {
4285
4829
  return Promise.resolve(mediaDataFromCache);
4286
4830
  }
4287
- if ((0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__.n9)(_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_1__.s._mediaDataPromises[cacheKey]) && options.skipCache !== true) {
4831
+ if ((0, _wistia_utils__WEBPACK_IMPORTED_MODULE_0__.n9)(_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_1__.s._mediaDataPromises[cacheKey]) && options.skipCache !== true) {
4288
4832
  return _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_1__.s._mediaDataPromises[cacheKey];
4289
4833
  }
4290
4834
  const host = (0, _hosts_js__WEBPACK_IMPORTED_MODULE_2__.Dd)(options);
4291
4835
  const url = new window.URL(`https://${host}/embed/medias/${hashedId}.json`);
4292
- if ((0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__.n9)(options.channelId)) {
4836
+ if ((0, _wistia_utils__WEBPACK_IMPORTED_MODULE_0__.n9)(options.channelId)) {
4293
4837
  url.searchParams.set("channelId", options.channelId.toString());
4294
4838
  }
4295
4839
  const channelPasswordParam = options.channelPassword ?? options.plugin?.passwordProtectedChannel?.password;
4296
- if ((0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__.n9)(channelPasswordParam)) {
4840
+ if ((0, _wistia_utils__WEBPACK_IMPORTED_MODULE_0__.n9)(channelPasswordParam)) {
4297
4841
  url.searchParams.set("channelPassword", channelPasswordParam);
4298
4842
  }
4299
- if ((0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__.n9)(options.password)) {
4843
+ if ((0, _wistia_utils__WEBPACK_IMPORTED_MODULE_0__.n9)(options.password)) {
4300
4844
  url.searchParams.set("password", options.password);
4301
4845
  }
4302
4846
  if (options.deferFetchingToCarousel) {
@@ -4683,7 +5227,7 @@ var init_wistia_player = __esm({
4683
5227
  )
4684
5228
  /* harmony export */
4685
5229
  });
4686
- var _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(9814);
5230
+ var _wistia_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(2002);
4687
5231
  var _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__3(5509);
4688
5232
  var _wlog_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__3(6637);
4689
5233
  var _objectHasOwn = function(object, property) {
@@ -4694,7 +5238,7 @@ var init_wistia_player = __esm({
4694
5238
  };
4695
5239
  const getMediaDataFromCache2 = (hashedId) => {
4696
5240
  const mediaData = _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_1__.s._remoteData.get(`media_${hashedId}`);
4697
- if ((0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__.gD)(mediaData)) return null;
5241
+ if ((0, _wistia_utils__WEBPACK_IMPORTED_MODULE_0__.gD)(mediaData)) return null;
4698
5242
  if (_objectHasOwn(mediaData, "error")) {
4699
5243
  _wlog_js__WEBPACK_IMPORTED_MODULE_2__.ct.error(`Received cached error response instead of MediaData when retrieving cached mediaData for ${hashedId}`);
4700
5244
  }
@@ -4759,7 +5303,7 @@ var init_wistia_player = __esm({
4759
5303
  )
4760
5304
  /* harmony export */
4761
5305
  });
4762
- var _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(9814);
5306
+ var _wistia_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(2002);
4763
5307
  var _normalizeChapters_ts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__3(9128);
4764
5308
  const DEFAULT_CHAPTER_TITLE = "Chapter Title";
4765
5309
  const MINIMUM_DURATION = 30;
@@ -4806,6 +5350,10 @@ var init_wistia_player = __esm({
4806
5350
  return true;
4807
5351
  });
4808
5352
  };
5353
+ const deleteTimeParams = (url) => {
5354
+ const keys = [...new Set(url.searchParams.keys())];
5355
+ keys.filter((key) => /^wtime(\[|$)/.test(key)).forEach((key) => url.searchParams.delete(key));
5356
+ };
4809
5357
  const clipsFromChapters = (chapterList, baseUrl, mediaDuration) => {
4810
5358
  if (!Array.isArray(chapterList) || chapterList.length === 0) {
4811
5359
  return [];
@@ -4818,7 +5366,8 @@ var init_wistia_player = __esm({
4818
5366
  const url = new window.URL(baseUrl);
4819
5367
  const floorTime = Math.floor(time);
4820
5368
  const nextChapter = chapters[index + 1];
4821
- const endOffsetTime = (0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__.n9)(nextChapter) ? nextChapter.time : mediaDuration;
5369
+ const endOffsetTime = (0, _wistia_utils__WEBPACK_IMPORTED_MODULE_0__.n9)(nextChapter) ? nextChapter.time : mediaDuration;
5370
+ deleteTimeParams(url);
4822
5371
  url.searchParams.set("wtime", `${floorTime}s`);
4823
5372
  return {
4824
5373
  "@type": "Clip",
@@ -4832,6 +5381,7 @@ var init_wistia_player = __esm({
4832
5381
  };
4833
5382
  const seekToAction = () => {
4834
5383
  const url = new window.URL(window.location.href);
5384
+ deleteTimeParams(url);
4835
5385
  url.searchParams.set("wtime", "{seek_to_second_number}");
4836
5386
  return {
4837
5387
  "@type": "SeekToAction",
@@ -5015,7 +5565,7 @@ var init_wistia_player = __esm({
5015
5565
  var utilities_obj_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(731);
5016
5566
  var utilities_url_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__3(2671);
5017
5567
  var utilities_detect_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__3(7231);
5018
- var _wistia_type_guards__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__3(9814);
5568
+ var _wistia_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__3(2002);
5019
5569
  var _assets_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__3(7209);
5020
5570
  const detect = (0, utilities_detect_js__WEBPACK_IMPORTED_MODULE_2__.o1)();
5021
5571
  const convertStillImageToWebp = (media) => {
@@ -5046,12 +5596,12 @@ var init_wistia_player = __esm({
5046
5596
  })];
5047
5597
  };
5048
5598
  const maybeAddChannelIdToEmbedOptions = (media, options = {}) => {
5049
- if ((0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_3__.n9)(options.channelId) && media.embedOptions) {
5599
+ if ((0, _wistia_utils__WEBPACK_IMPORTED_MODULE_3__.n9)(options.channelId) && media.embedOptions) {
5050
5600
  media.embedOptions.channelId = options.channelId;
5051
5601
  }
5052
5602
  };
5053
5603
  const maybeAddChannelPasswordToEmbedOptions = (media, options = {}) => {
5054
- if ((0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_3__.n9)(options.channelPassword) && media.embedOptions) {
5604
+ if ((0, _wistia_utils__WEBPACK_IMPORTED_MODULE_3__.n9)(options.channelPassword) && media.embedOptions) {
5055
5605
  media.embedOptions.channelPassword = options.channelPassword;
5056
5606
  }
5057
5607
  };
@@ -7079,8 +7629,8 @@ var init_wistia_player = __esm({
7079
7629
  const PROD_SSL_EMBED_HOST = "embed-ssl.wistia.com";
7080
7630
  const PROD_FASTLY_SSL_HOST = "embed-fastly.wistia.com";
7081
7631
  const SSL_EMBED_HOST = "embed-ssl.wistia.com";
7082
- const TAGGED_VERSION = "0.7.31";
7083
- const CURRENT_SHA = "65b8997b69ccf6fecc2c118378433208e340851c";
7632
+ const TAGGED_VERSION = "0.7.32";
7633
+ const CURRENT_SHA = "c014139e2b0142411cfdefe5129e87a46bac08c4";
7084
7634
  const DEFAULT_PROTOCOL = (() => {
7085
7635
  if (typeof window !== "undefined" && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z === window && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location) {
7086
7636
  return utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location.protocol;
@@ -10121,6 +10671,17 @@ var init_wistia_player = __esm({
10121
10671
  const elemIsInside = (elem, ancestor) => {
10122
10672
  return elem === ancestor || elemIsDescendantOf(elem, ancestor);
10123
10673
  };
10674
+ const elemIsInsideComposedTree = (elem, ancestor) => {
10675
+ let current = elem;
10676
+ while (current) {
10677
+ if (elemIsInside(current, ancestor)) {
10678
+ return true;
10679
+ }
10680
+ const root2 = current.getRootNode();
10681
+ current = root2 instanceof ShadowRoot ? root2.host : null;
10682
+ }
10683
+ return false;
10684
+ };
10124
10685
  const getTransitionProp = (props, time, easing) => {
10125
10686
  const result = [];
10126
10687
  for (let prop in props) {
@@ -12027,7 +12588,7 @@ var init_wistia_player = __esm({
12027
12588
  )
12028
12589
  /* harmony export */
12029
12590
  });
12030
- var _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(9814);
12591
+ var _wistia_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(2002);
12031
12592
  const normalizeChapters = (embedOptions) => {
12032
12593
  const {
12033
12594
  plugin,
@@ -12038,8 +12599,8 @@ var init_wistia_player = __esm({
12038
12599
  return plugin.chapters;
12039
12600
  }
12040
12601
  const areChaptersOn = chaptersOn === true || chaptersOn === "true";
12041
- if ((0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__.n9)(chapterList) || areChaptersOn) {
12042
- const hasChapters = (0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__.n9)(chapterList) && chapterList.length > 0;
12602
+ if ((0, _wistia_utils__WEBPACK_IMPORTED_MODULE_0__.n9)(chapterList) || areChaptersOn) {
12603
+ const hasChapters = (0, _wistia_utils__WEBPACK_IMPORTED_MODULE_0__.n9)(chapterList) && chapterList.length > 0;
12043
12604
  const list = hasChapters ? chapterList : [];
12044
12605
  return {
12045
12606
  on: chaptersOn,
@@ -12720,78 +13281,6 @@ var init_wistia_player = __esm({
12720
13281
  }))
12721
13282
  );
12722
13283
  };
12723
- },
12724
- /***/
12725
- 9814(__unused_webpack___webpack_module__2, __webpack_exports__3, __webpack_require__3) {
12726
- __webpack_require__3.d(__webpack_exports__3, {
12727
- /* harmony export */
12728
- gD: () => (
12729
- /* binding */
12730
- isNil3
12731
- ),
12732
- /* harmony export */
12733
- jw: () => (
12734
- /* binding */
12735
- isEmptyString
12736
- ),
12737
- /* harmony export */
12738
- n9: () => (
12739
- /* binding */
12740
- isNotNil2
12741
- ),
12742
- /* harmony export */
12743
- uI: () => (
12744
- /* binding */
12745
- isNonEmptyString2
12746
- ),
12747
- /* harmony export */
12748
- uu: () => (
12749
- /* binding */
12750
- isNonEmptyRecord
12751
- )
12752
- /* harmony export */
12753
- });
12754
- var FALSY_VALUES2 = [false, 0, -0, 0n, "", null, void 0, Number.NaN];
12755
- var isNull2 = (value) => value === null;
12756
- var isNotNull = (value) => !isNull2(value);
12757
- var isUndefined2 = (value) => value === void 0;
12758
- var isNotUndefined = (value) => !isUndefined2(value);
12759
- var isNil3 = (value) => isNull2(value) || isUndefined2(value);
12760
- var isNotNil2 = (value) => !isNil3(value);
12761
- var isString2 = (value) => typeof value === "string";
12762
- var isNotString = (value) => !isString2(value);
12763
- var isEmptyString = (value) => isString2(value) && value === "";
12764
- var isNonEmptyString2 = (value) => isString2(value) && !isEmptyString(value);
12765
- var isNumber3 = (value) => typeof value === "number";
12766
- var isNotNumber = (value) => !isNumber3(value);
12767
- var isNaN2 = (value) => Number.isNaN(value);
12768
- var isInteger = (value) => Number.isInteger(value);
12769
- var isRecord2 = (value) => isNotNil2(value) && typeof value === "object" && !(value instanceof Array);
12770
- var isNotRecord = (value) => !isRecord2(value);
12771
- var isEmptyRecord = (value) => isRecord2(value) && Object.keys(value).length === 0;
12772
- var isNonEmptyRecord = (value) => isRecord2(value) && Object.keys(value).length > 0;
12773
- var isArray3 = (value) => isNotNil2(value) && typeof value === "object" && value instanceof Array;
12774
- var isNotArray = (value) => !isArray3(value);
12775
- var isEmptyArray = (value) => isArray3(value) && value.length === 0;
12776
- var isNonEmptyArray = (value) => isArray3(value) && value.length > 0;
12777
- var isFunction2 = (value) => isNotNil2(value) && typeof value === "function";
12778
- var isNotFunction = (value) => !isFunction2(value);
12779
- var isBoolean2 = (value) => isNotNil2(value) && typeof value === "boolean";
12780
- var isNotBoolean = (value) => !isBoolean2(value);
12781
- var isVoid = (value) => value === void 0;
12782
- var isNotVoid = (value) => !isVoid(value);
12783
- var isError = (value) => {
12784
- return isNotNil2(value) && value instanceof Error;
12785
- };
12786
- var isFalsy = (value) => (
12787
- // eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion
12788
- FALSY_VALUES2.includes(value) || Number.isNaN(value)
12789
- );
12790
- var isTruthy = (value) => (
12791
- // eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion
12792
- !FALSY_VALUES2.includes(value) && !Number.isNaN(value)
12793
- );
12794
- var hasKey = (value, key) => isNonEmptyRecord(value) && key in value;
12795
13284
  }
12796
13285
  /******/
12797
13286
  };
@@ -12861,7 +13350,7 @@ var init_wistia_player = __esm({
12861
13350
  /* harmony export */
12862
13351
  });
12863
13352
  preact__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__2(1765);
12864
- _wistia_type_guards__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__2(9814);
13353
+ _wistia_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__2(2002);
12865
13354
  _utilities_gradients_ts__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__2(4372);
12866
13355
  _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__2(5509);
12867
13356
  _components_PreloadThumbnail_tsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__2(9804);
@@ -12895,9 +13384,10 @@ var init_wistia_player = __esm({
12895
13384
  _utilities_injectJsonLd_js__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__2(2147);
12896
13385
  _utilities_getInitialMediaData_ts__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__2(5833);
12897
13386
  _utilities_mediaDataError_ts__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__2(959);
12898
- _utilities_remote_data_cache_ts__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__2(3411);
12899
- _utilities_camelCaseToKebabCase_ts__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__2(4989);
12900
- _types_gradient_ts__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__2(7350);
13387
+ _utilities_obj_js__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__2(731);
13388
+ _utilities_remote_data_cache_ts__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__2(3411);
13389
+ _utilities_camelCaseToKebabCase_ts__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__2(4989);
13390
+ _types_gradient_ts__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__2(7350);
12901
13391
  requiredAttributes = ["media-id"];
12902
13392
  optionalPublicAttributes = ["aspect", "audio-description-control", "autoplay", "big-play-button", "branding", "contrast-icons", "controls-visible-on-load", "copy-link-and-thumbnail", "current-time", "do-not-track", "email", "end-video-behavior", "fit-strategy", "fullscreen-control", "language", "muted", "opaque-controls", "playback-rate-control", "play-bar-control", "player-color", "playlist-links", "playlist-loop", "play-pause-control", "play-pause-notifier", "play-suspended-off-screen", "popover-animate-thumbnail", "popover-animation", "popover-border-color", "popover-border-radius", "popover-border-width", "popover-box-shadow", "popover-caption", "popover-caption-container", "popover-content", "popover-disable-autoplay", "popover-overlay-color", "popover-overlay-opacity", "popover-prevent-scroll", "popover-show-on-load", "poster", "preload", "quality-control", "quality-max", "quality-min", "resumable", "rounded-player", "rounded-playlist", "rotate-to-fullscreen", "seo", "settings-control", "silent-autoplay", "transparent-letterbox", "video-quality", "volume", "volume-control", "wistia-popover"];
12903
13393
  optionalPrivateAttributes = ["big-play-button-border-radius", "control-bar-border-radius", "embed-host", "hls", "page-url", "player-border-radius", "player-force", "stats-url", "swatch", "unique-id", "use-web-component"];
@@ -13764,7 +14254,7 @@ var init_wistia_player = __esm({
13764
14254
  */
13765
14255
  get playerColorGradient() {
13766
14256
  const value = _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playerColorGradient");
13767
- if ((0, _types_gradient_ts__WEBPACK_IMPORTED_MODULE_37__.b)(value)) {
14257
+ if ((0, _types_gradient_ts__WEBPACK_IMPORTED_MODULE_38__.b)(value)) {
13768
14258
  return value;
13769
14259
  }
13770
14260
  return void 0;
@@ -13775,7 +14265,7 @@ var init_wistia_player = __esm({
13775
14265
  * @returns {void}
13776
14266
  */
13777
14267
  set playerColorGradient(gradient) {
13778
- if (!(0, _types_gradient_ts__WEBPACK_IMPORTED_MODULE_37__.b)(gradient)) {
14268
+ if (!(0, _types_gradient_ts__WEBPACK_IMPORTED_MODULE_38__.b)(gradient)) {
13779
14269
  throw new Error("playerColorGradient must be a valid gradient object");
13780
14270
  }
13781
14271
  _classPrivateFieldGet(_impl, this)?.playerColorGradient(gradient);
@@ -14928,7 +15418,7 @@ var init_wistia_player = __esm({
14928
15418
  default:
14929
15419
  break;
14930
15420
  }
14931
- this[(0, _utilities_camelCaseToKebabCase_ts__WEBPACK_IMPORTED_MODULE_36__.b)(name)] = finalValue;
15421
+ this[(0, _utilities_camelCaseToKebabCase_ts__WEBPACK_IMPORTED_MODULE_37__.b)(name)] = finalValue;
14932
15422
  }
14933
15423
  connectedCallback() {
14934
15424
  if (_classPrivateFieldGet(_hasElementConnectedToDOM, this)) {
@@ -15017,7 +15507,7 @@ var init_wistia_player = __esm({
15017
15507
  this.removeAllEventListeners();
15018
15508
  _classPrivateFieldSet(_eventListeners, this, {});
15019
15509
  (0, _utilities_injectJsonLd_js__WEBPACK_IMPORTED_MODULE_32__.Z)(_classPrivateFieldGet(_jsonLdId, this));
15020
- (0, _utilities_remote_data_cache_ts__WEBPACK_IMPORTED_MODULE_35__.s3)(this.mediaId);
15510
+ (0, _utilities_remote_data_cache_ts__WEBPACK_IMPORTED_MODULE_36__.s3)(this.mediaId);
15021
15511
  _classPrivateFieldGet(_resizeObserver, this)?.disconnect();
15022
15512
  _classPrivateFieldSet(_resizeObserver, this, null);
15023
15513
  (0, _utilities_embedOptionStore_ts__WEBPACK_IMPORTED_MODULE_14__.iU)(`__${this.uniqueId}_dom_options__`);
@@ -15214,19 +15704,19 @@ var WistiaPlayer2 = (0, import_react2.forwardRef)(
15214
15704
  }
15215
15705
  );
15216
15706
  /*
15217
- * @license @wistia/type-guards v0.9.3
15707
+ * @license @wistia/utils v1.0.1
15218
15708
  *
15219
- * Copyright (c) 2023-2025, Wistia, Inc. and its affiliates.
15709
+ * Copyright (c) 2023-2026, Wistia, Inc. and its affiliates.
15220
15710
  *
15221
15711
  * This source code is unlicensed, all rights reserved.
15222
15712
  */
15223
15713
  /*! Bundled license information:
15224
15714
 
15225
- @wistia/type-guards/dist/index.mjs:
15715
+ @wistia/utils/dist/index.mjs:
15226
15716
  (*
15227
- * @license @wistia/type-guards v0.9.3
15717
+ * @license @wistia/utils v1.0.1
15228
15718
  *
15229
- * Copyright (c) 2023-2025, Wistia, Inc. and its affiliates.
15719
+ * Copyright (c) 2023-2026, Wistia, Inc. and its affiliates.
15230
15720
  *
15231
15721
  * This source code is unlicensed, all rights reserved.
15232
15722
  *)