UNPKG

dashjs

Version:

A reference client implementation for the playback of MPEG DASH via Javascript and compliant browsers.

1,245 lines (1,097 loc) 1.44 MB
/******/ var __webpack_modules__ = ({ /***/ "./node_modules/@svta/common-media-library/dist/cmcd/CMCD_OBJECT.js": /*!**************************************************************************!*\ !*** ./node_modules/@svta/common-media-library/dist/cmcd/CMCD_OBJECT.js ***! \**************************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ CMCD_OBJECT: function() { return /* binding */ CMCD_OBJECT; } /* harmony export */ }); /** * CMCD object header name. * * @group CMCD * * @beta */ const CMCD_OBJECT = 'CMCD-Object'; /***/ }), /***/ "./node_modules/@svta/common-media-library/dist/cmcd/CMCD_PARAM.js": /*!*************************************************************************!*\ !*** ./node_modules/@svta/common-media-library/dist/cmcd/CMCD_PARAM.js ***! \*************************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ CMCD_PARAM: function() { return /* binding */ CMCD_PARAM; } /* harmony export */ }); /** * CMCD parameter name. * * @group CMCD * * @beta */ const CMCD_PARAM = 'CMCD'; /***/ }), /***/ "./node_modules/@svta/common-media-library/dist/cmcd/CMCD_REQUEST.js": /*!***************************************************************************!*\ !*** ./node_modules/@svta/common-media-library/dist/cmcd/CMCD_REQUEST.js ***! \***************************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ CMCD_REQUEST: function() { return /* binding */ CMCD_REQUEST; } /* harmony export */ }); /** * CMCD request header name. * * @group CMCD * * @beta */ const CMCD_REQUEST = 'CMCD-Request'; /***/ }), /***/ "./node_modules/@svta/common-media-library/dist/cmcd/CMCD_SESSION.js": /*!***************************************************************************!*\ !*** ./node_modules/@svta/common-media-library/dist/cmcd/CMCD_SESSION.js ***! \***************************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ CMCD_SESSION: function() { return /* binding */ CMCD_SESSION; } /* harmony export */ }); /** * CMCD session header name. * * @group CMCD * * @beta */ const CMCD_SESSION = 'CMCD-Session'; /***/ }), /***/ "./node_modules/@svta/common-media-library/dist/cmcd/CMCD_STATUS.js": /*!**************************************************************************!*\ !*** ./node_modules/@svta/common-media-library/dist/cmcd/CMCD_STATUS.js ***! \**************************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ CMCD_STATUS: function() { return /* binding */ CMCD_STATUS; } /* harmony export */ }); /** * CMCD status header name. * * @group CMCD * * @beta */ const CMCD_STATUS = 'CMCD-Status'; /***/ }), /***/ "./node_modules/@svta/common-media-library/dist/cmcd/CmcdFormatters.js": /*!*****************************************************************************!*\ !*** ./node_modules/@svta/common-media-library/dist/cmcd/CmcdFormatters.js ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ CmcdFormatters: function() { return /* binding */ CmcdFormatters; } /* harmony export */ }); /* harmony import */ var _utils_urlToRelativePath_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/urlToRelativePath.js */ "./node_modules/@svta/common-media-library/dist/utils/urlToRelativePath.js"); const toRounded = value => Math.round(value); const toUrlSafe = (value, options) => { if (options === null || options === void 0 ? void 0 : options.baseUrl) { value = (0,_utils_urlToRelativePath_js__WEBPACK_IMPORTED_MODULE_0__.urlToRelativePath)(value, options.baseUrl); } return encodeURIComponent(value); }; const toHundred = value => toRounded(value / 100) * 100; /** * The default formatters for CMCD values. * * @group CMCD * * @beta */ const CmcdFormatters = { /** * Bitrate (kbps) rounded integer */ br: toRounded, /** * Duration (milliseconds) rounded integer */ d: toRounded, /** * Buffer Length (milliseconds) rounded nearest 100ms */ bl: toHundred, /** * Deadline (milliseconds) rounded nearest 100ms */ dl: toHundred, /** * Measured Throughput (kbps) rounded nearest 100kbps */ mtp: toHundred, /** * Next Object Request URL encoded */ nor: toUrlSafe, /** * Requested maximum throughput (kbps) rounded nearest 100kbps */ rtp: toHundred, /** * Top Bitrate (kbps) rounded integer */ tb: toRounded }; /***/ }), /***/ "./node_modules/@svta/common-media-library/dist/cmcd/CmcdHeaderField.js": /*!******************************************************************************!*\ !*** ./node_modules/@svta/common-media-library/dist/cmcd/CmcdHeaderField.js ***! \******************************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ CmcdHeaderField: function() { return /* binding */ CmcdHeaderField; } /* harmony export */ }); /* harmony import */ var _CMCD_OBJECT_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CMCD_OBJECT.js */ "./node_modules/@svta/common-media-library/dist/cmcd/CMCD_OBJECT.js"); /* harmony import */ var _CMCD_REQUEST_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CMCD_REQUEST.js */ "./node_modules/@svta/common-media-library/dist/cmcd/CMCD_REQUEST.js"); /* harmony import */ var _CMCD_SESSION_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CMCD_SESSION.js */ "./node_modules/@svta/common-media-library/dist/cmcd/CMCD_SESSION.js"); /* harmony import */ var _CMCD_STATUS_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./CMCD_STATUS.js */ "./node_modules/@svta/common-media-library/dist/cmcd/CMCD_STATUS.js"); /** * CMCD header fields. * * @group CMCD * * @enum * * @beta */ const CmcdHeaderField = { /** * keys whose values vary with the object being requested. */ OBJECT: _CMCD_OBJECT_js__WEBPACK_IMPORTED_MODULE_0__.CMCD_OBJECT, /** * keys whose values vary with each request. */ REQUEST: _CMCD_REQUEST_js__WEBPACK_IMPORTED_MODULE_1__.CMCD_REQUEST, /** * keys whose values are expected to be invariant over the life of the session. */ SESSION: _CMCD_SESSION_js__WEBPACK_IMPORTED_MODULE_2__.CMCD_SESSION, /** * keys whose values do not vary with every request or object. */ STATUS: _CMCD_STATUS_js__WEBPACK_IMPORTED_MODULE_3__.CMCD_STATUS }; /***/ }), /***/ "./node_modules/@svta/common-media-library/dist/cmcd/CmcdHeaderMap.js": /*!****************************************************************************!*\ !*** ./node_modules/@svta/common-media-library/dist/cmcd/CmcdHeaderMap.js ***! \****************************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ CmcdHeaderMap: function() { return /* binding */ CmcdHeaderMap; } /* harmony export */ }); /* harmony import */ var _CmcdHeaderField_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CmcdHeaderField.js */ "./node_modules/@svta/common-media-library/dist/cmcd/CmcdHeaderField.js"); /** * The map of CMCD header fields to official CMCD keys. * * @internal * * @group CMCD */ const CmcdHeaderMap = { [_CmcdHeaderField_js__WEBPACK_IMPORTED_MODULE_0__.CmcdHeaderField.OBJECT]: ['br', 'd', 'ot', 'tb'], [_CmcdHeaderField_js__WEBPACK_IMPORTED_MODULE_0__.CmcdHeaderField.REQUEST]: ['bl', 'dl', 'mtp', 'nor', 'nrr', 'su'], [_CmcdHeaderField_js__WEBPACK_IMPORTED_MODULE_0__.CmcdHeaderField.SESSION]: ['cid', 'pr', 'sf', 'sid', 'st', 'v'], [_CmcdHeaderField_js__WEBPACK_IMPORTED_MODULE_0__.CmcdHeaderField.STATUS]: ['bs', 'rtp'] }; /***/ }), /***/ "./node_modules/@svta/common-media-library/dist/cmcd/CmcdObjectType.js": /*!*****************************************************************************!*\ !*** ./node_modules/@svta/common-media-library/dist/cmcd/CmcdObjectType.js ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ CmcdObjectType: function() { return /* binding */ CmcdObjectType; } /* harmony export */ }); /* harmony import */ var _cta_CmObjectType_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../cta/CmObjectType.js */ "./node_modules/@svta/common-media-library/dist/cta/CmObjectType.js"); /** * Common Media Client Data Object Type * * @group CMCD * * @beta * * @enum */ const CmcdObjectType = _cta_CmObjectType_js__WEBPACK_IMPORTED_MODULE_0__.CmObjectType; /***/ }), /***/ "./node_modules/@svta/common-media-library/dist/cmcd/CmcdStreamType.js": /*!*****************************************************************************!*\ !*** ./node_modules/@svta/common-media-library/dist/cmcd/CmcdStreamType.js ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ CmcdStreamType: function() { return /* binding */ CmcdStreamType; } /* harmony export */ }); /* harmony import */ var _cta_CmStreamType_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../cta/CmStreamType.js */ "./node_modules/@svta/common-media-library/dist/cta/CmStreamType.js"); /** * Common Media Client Data Stream Type * * @group CMCD * * @enum * * @beta */ const CmcdStreamType = _cta_CmStreamType_js__WEBPACK_IMPORTED_MODULE_0__.CmStreamType; /***/ }), /***/ "./node_modules/@svta/common-media-library/dist/cmcd/CmcdStreamingFormat.js": /*!**********************************************************************************!*\ !*** ./node_modules/@svta/common-media-library/dist/cmcd/CmcdStreamingFormat.js ***! \**********************************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ CmcdStreamingFormat: function() { return /* binding */ CmcdStreamingFormat; } /* harmony export */ }); /* harmony import */ var _cta_CmStreamingFormat_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../cta/CmStreamingFormat.js */ "./node_modules/@svta/common-media-library/dist/cta/CmStreamingFormat.js"); /** * Common Media Client Data Streaming Format * * @group CMCD * * @enum * * @beta */ const CmcdStreamingFormat = _cta_CmStreamingFormat_js__WEBPACK_IMPORTED_MODULE_0__.CmStreamingFormat; /***/ }), /***/ "./node_modules/@svta/common-media-library/dist/cmcd/encodeCmcd.js": /*!*************************************************************************!*\ !*** ./node_modules/@svta/common-media-library/dist/cmcd/encodeCmcd.js ***! \*************************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ encodeCmcd: function() { return /* binding */ encodeCmcd; } /* harmony export */ }); /* harmony import */ var _structuredfield_encodeSfDict_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../structuredfield/encodeSfDict.js */ "./node_modules/@svta/common-media-library/dist/structuredfield/encodeSfDict.js"); /* harmony import */ var _utils_processCmcd_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils/processCmcd.js */ "./node_modules/@svta/common-media-library/dist/cmcd/utils/processCmcd.js"); /** * Encode a CMCD object to a string. * * @param cmcd - The CMCD object to encode. * @param options - Options for encoding. * * @returns The encoded CMCD string. * * @group CMCD * * @beta */ function encodeCmcd(cmcd) { let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; if (!cmcd) { return ''; } return (0,_structuredfield_encodeSfDict_js__WEBPACK_IMPORTED_MODULE_0__.encodeSfDict)((0,_utils_processCmcd_js__WEBPACK_IMPORTED_MODULE_1__.processCmcd)(cmcd, options), Object.assign({ whitespace: false }, options)); } /***/ }), /***/ "./node_modules/@svta/common-media-library/dist/cmcd/toCmcdHeaders.js": /*!****************************************************************************!*\ !*** ./node_modules/@svta/common-media-library/dist/cmcd/toCmcdHeaders.js ***! \****************************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ toCmcdHeaders: function() { return /* binding */ toCmcdHeaders; } /* harmony export */ }); /* harmony import */ var _CmcdHeaderField_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CmcdHeaderField.js */ "./node_modules/@svta/common-media-library/dist/cmcd/CmcdHeaderField.js"); /* harmony import */ var _CmcdHeaderMap_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CmcdHeaderMap.js */ "./node_modules/@svta/common-media-library/dist/cmcd/CmcdHeaderMap.js"); /* harmony import */ var _encodeCmcd_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./encodeCmcd.js */ "./node_modules/@svta/common-media-library/dist/cmcd/encodeCmcd.js"); /** * Convert a CMCD data object to request headers * * @param cmcd - The CMCD data object to convert. * @param options - Options for encoding the CMCD object. * * @returns The CMCD header shards. * * @group CMCD * * @beta */ function toCmcdHeaders(cmcd) { let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; const result = {}; if (!cmcd) { return result; } const entries = Object.entries(cmcd); const headerMap = Object.entries(_CmcdHeaderMap_js__WEBPACK_IMPORTED_MODULE_1__.CmcdHeaderMap).concat(Object.entries((options === null || options === void 0 ? void 0 : options.customHeaderMap) || {})); const shards = entries.reduce((acc, entry) => { var _a, _b; const [key, value] = entry; const field = ((_a = headerMap.find(entry => entry[1].includes(key))) === null || _a === void 0 ? void 0 : _a[0]) || _CmcdHeaderField_js__WEBPACK_IMPORTED_MODULE_0__.CmcdHeaderField.REQUEST; (_b = acc[field]) !== null && _b !== void 0 ? _b : acc[field] = {}; acc[field][key] = value; return acc; }, {}); return Object.entries(shards).reduce((acc, _ref) => { let [field, value] = _ref; acc[field] = (0,_encodeCmcd_js__WEBPACK_IMPORTED_MODULE_2__.encodeCmcd)(value, options); return acc; }, result); } /***/ }), /***/ "./node_modules/@svta/common-media-library/dist/cmcd/utils/processCmcd.js": /*!********************************************************************************!*\ !*** ./node_modules/@svta/common-media-library/dist/cmcd/utils/processCmcd.js ***! \********************************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ processCmcd: function() { return /* binding */ processCmcd; } /* harmony export */ }); /* harmony import */ var _cta_utils_isTokenField_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../cta/utils/isTokenField.js */ "./node_modules/@svta/common-media-library/dist/cta/utils/isTokenField.js"); /* harmony import */ var _cta_utils_isValid_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../cta/utils/isValid.js */ "./node_modules/@svta/common-media-library/dist/cta/utils/isValid.js"); /* harmony import */ var _structuredfield_SfToken_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../structuredfield/SfToken.js */ "./node_modules/@svta/common-media-library/dist/structuredfield/SfToken.js"); /* harmony import */ var _CmcdFormatters_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../CmcdFormatters.js */ "./node_modules/@svta/common-media-library/dist/cmcd/CmcdFormatters.js"); /** * Internal CMCD processing function. * * @param obj - The CMCD object to process. * @param map - The mapping function to use. * @param options - Options for encoding. * * @internal * * @group CMCD */ function processCmcd(obj, options) { const results = {}; if (obj == null || typeof obj !== 'object') { return results; } const keys = Object.keys(obj).sort(); const formatters = Object.assign({}, _CmcdFormatters_js__WEBPACK_IMPORTED_MODULE_3__.CmcdFormatters, options === null || options === void 0 ? void 0 : options.formatters); const filter = options === null || options === void 0 ? void 0 : options.filter; keys.forEach(key => { if (filter === null || filter === void 0 ? void 0 : filter(key)) { return; } let value = obj[key]; const formatter = formatters[key]; if (formatter) { value = formatter(value, options); } // Version should only be reported if not equal to 1. if (key === 'v' && value === 1) { return; } // Playback rate should only be sent if not equal to 1. if (key == 'pr' && value === 1) { return; } // ignore invalid values if (!(0,_cta_utils_isValid_js__WEBPACK_IMPORTED_MODULE_1__.isValid)(value)) { return; } if ((0,_cta_utils_isTokenField_js__WEBPACK_IMPORTED_MODULE_0__.isTokenField)(key) && typeof value === 'string') { value = new _structuredfield_SfToken_js__WEBPACK_IMPORTED_MODULE_2__.SfToken(value); } results[key] = value; }); return results; } /***/ }), /***/ "./node_modules/@svta/common-media-library/dist/cmsd/CMSD_DYNAMIC.js": /*!***************************************************************************!*\ !*** ./node_modules/@svta/common-media-library/dist/cmsd/CMSD_DYNAMIC.js ***! \***************************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ CMSD_DYNAMIC: function() { return /* binding */ CMSD_DYNAMIC; } /* harmony export */ }); /** * CMSD dynamic header name. * * @group CMSD * * @beta */ const CMSD_DYNAMIC = 'CMSD-Dynamic'; /***/ }), /***/ "./node_modules/@svta/common-media-library/dist/cmsd/CMSD_STATIC.js": /*!**************************************************************************!*\ !*** ./node_modules/@svta/common-media-library/dist/cmsd/CMSD_STATIC.js ***! \**************************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ CMSD_STATIC: function() { return /* binding */ CMSD_STATIC; } /* harmony export */ }); /** * CMSD static header name. * * @group CMSD * * @beta */ const CMSD_STATIC = 'CMSD-Static'; /***/ }), /***/ "./node_modules/@svta/common-media-library/dist/cmsd/CmsdObjectType.js": /*!*****************************************************************************!*\ !*** ./node_modules/@svta/common-media-library/dist/cmsd/CmsdObjectType.js ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ CmsdObjectType: function() { return /* binding */ CmsdObjectType; } /* harmony export */ }); /* harmony import */ var _cta_CmObjectType_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../cta/CmObjectType.js */ "./node_modules/@svta/common-media-library/dist/cta/CmObjectType.js"); /** * Common Media Server Data Object Type * * @group CMSD * * @enum * * @beta */ const CmsdObjectType = _cta_CmObjectType_js__WEBPACK_IMPORTED_MODULE_0__.CmObjectType; /***/ }), /***/ "./node_modules/@svta/common-media-library/dist/cmsd/decodeCmsdDynamic.js": /*!********************************************************************************!*\ !*** ./node_modules/@svta/common-media-library/dist/cmsd/decodeCmsdDynamic.js ***! \********************************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ decodeCmsdDynamic: function() { return /* binding */ decodeCmsdDynamic; } /* harmony export */ }); /* harmony import */ var _structuredfield_decodeSfList_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../structuredfield/decodeSfList.js */ "./node_modules/@svta/common-media-library/dist/structuredfield/decodeSfList.js"); /** * Decode a CMSD dynamic string to an object. * * @param cmsd - The CMSD string to decode. * * @returns The decoded CMSD object. * * @group CMSD * * @beta */ function decodeCmsdDynamic(cmsd) { if (!cmsd) { return []; } const sfDict = (0,_structuredfield_decodeSfList_js__WEBPACK_IMPORTED_MODULE_0__.decodeSfList)(cmsd); return sfDict; } /***/ }), /***/ "./node_modules/@svta/common-media-library/dist/cmsd/decodeCmsdStatic.js": /*!*******************************************************************************!*\ !*** ./node_modules/@svta/common-media-library/dist/cmsd/decodeCmsdStatic.js ***! \*******************************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ decodeCmsdStatic: function() { return /* binding */ decodeCmsdStatic; } /* harmony export */ }); /* harmony import */ var _cta_utils_symbolToStr_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../cta/utils/symbolToStr.js */ "./node_modules/@svta/common-media-library/dist/cta/utils/symbolToStr.js"); /* harmony import */ var _structuredfield_decodeSfDict_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../structuredfield/decodeSfDict.js */ "./node_modules/@svta/common-media-library/dist/structuredfield/decodeSfDict.js"); /** * Decode a CMSD Static dict string to an object. * * @param cmsd - The CMSD string to decode. * * @returns The decoded CMSD object. * * @group CMSD * * @beta */ function decodeCmsdStatic(cmsd) { if (!cmsd) { return {}; } return Object.entries((0,_structuredfield_decodeSfDict_js__WEBPACK_IMPORTED_MODULE_1__.decodeSfDict)(cmsd)).reduce((acc, _ref) => { let [key, item] = _ref; const { value } = item; acc[key] = typeof value === 'symbol' ? (0,_cta_utils_symbolToStr_js__WEBPACK_IMPORTED_MODULE_0__.symbolToStr)(value) : value; return acc; }, {}); } /***/ }), /***/ "./node_modules/@svta/common-media-library/dist/cta/CmObjectType.js": /*!**************************************************************************!*\ !*** ./node_modules/@svta/common-media-library/dist/cta/CmObjectType.js ***! \**************************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ CmObjectType: function() { return /* binding */ CmObjectType; } /* harmony export */ }); /** * Common Media Object Type * * @internal */ const CmObjectType = { /** * text file, such as a manifest or playlist */ MANIFEST: 'm', /** * audio only */ AUDIO: 'a', /** * video only */ VIDEO: 'v', /** * muxed audio and video */ MUXED: 'av', /** * init segment */ INIT: 'i', /** * caption or subtitle */ CAPTION: 'c', /** * ISOBMFF timed text track */ TIMED_TEXT: 'tt', /** * cryptographic key, license or certificate. */ KEY: 'k', /** * other */ OTHER: 'o' }; /***/ }), /***/ "./node_modules/@svta/common-media-library/dist/cta/CmStreamType.js": /*!**************************************************************************!*\ !*** ./node_modules/@svta/common-media-library/dist/cta/CmStreamType.js ***! \**************************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ CmStreamType: function() { return /* binding */ CmStreamType; } /* harmony export */ }); /** * Common Media Stream Type * * @internal */ const CmStreamType = { /** * All segments are available – e.g., VOD */ VOD: 'v', /** * Segments become available over time – e.g., LIVE */ LIVE: 'l' }; /***/ }), /***/ "./node_modules/@svta/common-media-library/dist/cta/CmStreamingFormat.js": /*!*******************************************************************************!*\ !*** ./node_modules/@svta/common-media-library/dist/cta/CmStreamingFormat.js ***! \*******************************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ CmStreamingFormat: function() { return /* binding */ CmStreamingFormat; } /* harmony export */ }); /** * Common Media Streaming Format * * @internal */ const CmStreamingFormat = { /** * MPEG DASH */ DASH: 'd', /** * HTTP Live Streaming (HLS) */ HLS: 'h', /** * Smooth Streaming */ SMOOTH: 's', /** * Other */ OTHER: 'o' }; /***/ }), /***/ "./node_modules/@svta/common-media-library/dist/cta/utils/isTokenField.js": /*!********************************************************************************!*\ !*** ./node_modules/@svta/common-media-library/dist/cta/utils/isTokenField.js ***! \********************************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ isTokenField: function() { return /* binding */ isTokenField; } /* harmony export */ }); /** * Checks if the given key is a token field. * * @param key - The key to check. * * @returns `true` if the key is a token field. * * @internal */ function isTokenField(key) { return key === 'ot' || key === 'sf' || key === 'st'; } /***/ }), /***/ "./node_modules/@svta/common-media-library/dist/cta/utils/isValid.js": /*!***************************************************************************!*\ !*** ./node_modules/@svta/common-media-library/dist/cta/utils/isValid.js ***! \***************************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ isValid: function() { return /* binding */ isValid; } /* harmony export */ }); /** * Checks if the given value is valid * * @param value - The value to check. * * @returns `true` if the key is a value is valid. * * @internal */ function isValid(value) { if (typeof value === 'number') { return Number.isFinite(value); } return value != null && value !== '' && value !== false; } /***/ }), /***/ "./node_modules/@svta/common-media-library/dist/cta/utils/symbolToStr.js": /*!*******************************************************************************!*\ !*** ./node_modules/@svta/common-media-library/dist/cta/utils/symbolToStr.js ***! \*******************************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ symbolToStr: function() { return /* binding */ symbolToStr; } /* harmony export */ }); /** * Converts a symbol to a string. * * @param symbol - The symbol to convert. * * @returns The string representation of the symbol. * * @internal */ function symbolToStr(symbol) { return symbol.description || symbol.toString().slice(7, -1); } /***/ }), /***/ "./node_modules/@svta/common-media-library/dist/dash/processUriTemplate.js": /*!*********************************************************************************!*\ !*** ./node_modules/@svta/common-media-library/dist/dash/processUriTemplate.js ***! \*********************************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ processUriTemplate: function() { return /* binding */ processUriTemplate; } /* harmony export */ }); const TOKENS = /\$(RepresentationID|Number|SubNumber|Bandwidth|Time)?(?:%0([0-9]+)([diouxX]))?\$/g; /** * Process a URI template used in `SegmentTemplate` nodes. * * @param uriTemplate - URI template to process. * @param representationId - Representation ID. * @param number - Number. * @param subNumber - Sub-number. * @param bandwidth - Bandwidth. * @param time - Time. Should be passed as a number unless the value is larger than `MAX_SAFE_INTEGER`, then it should be provided as a string. If the value is a string all format tags will be ignored. * * @returns Processed URI template. * * @group DASH * @beta * * @example * {@includeCode ../../test/dash/processUriTemplate.test.ts#example} */ function processUriTemplate(uriTemplate, representationId, number, subNumber, bandwidth, time) { const uri = uriTemplate.replace(TOKENS, (match, name, widthStr, format) => { let value; switch (name) { case undefined: // $$ case return '$'; case 'RepresentationID': value = representationId; break; case 'Number': value = number; break; case 'SubNumber': value = subNumber; break; case 'Bandwidth': value = bandwidth; break; case 'Time': if (typeof time === 'string') { return time; } value = time ? Math.round(time) : time; break; default: value = null; } if (value == null) { return match; } let valueString; switch (format) { case undefined: // Happens if there is no format specifier. case 'd': case 'i': case 'u': valueString = value.toString(); break; case 'o': valueString = value.toString(8); break; case 'x': valueString = value.toString(16); break; case 'X': valueString = value.toString(16).toUpperCase(); break; default: valueString = value.toString(); break; } const width = parseInt(widthStr, 10) || 1; return valueString.padStart(width, '0'); }); return uri; } /***/ }), /***/ "./node_modules/@svta/common-media-library/dist/structuredfield/SfItem.js": /*!********************************************************************************!*\ !*** ./node_modules/@svta/common-media-library/dist/structuredfield/SfItem.js ***! \********************************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ SfItem: function() { return /* binding */ SfItem; } /* harmony export */ }); /** * Structured Field Item * * @group Structured Field * * @beta */ class SfItem { constructor(value, params) { if (Array.isArray(value)) { value = value.map(v => v instanceof SfItem ? v : new SfItem(v)); } this.value = value; this.params = params; } } /***/ }), /***/ "./node_modules/@svta/common-media-library/dist/structuredfield/SfToken.js": /*!*********************************************************************************!*\ !*** ./node_modules/@svta/common-media-library/dist/structuredfield/SfToken.js ***! \*********************************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ SfToken: function() { return /* binding */ SfToken; } /* harmony export */ }); /** * A class to represent structured field tokens when `Symbol` is not available. * * @group Structured Field * * @beta */ class SfToken { constructor(description) { this.description = description; } } /***/ }), /***/ "./node_modules/@svta/common-media-library/dist/structuredfield/decodeSfDict.js": /*!**************************************************************************************!*\ !*** ./node_modules/@svta/common-media-library/dist/structuredfield/decodeSfDict.js ***! \**************************************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ decodeSfDict: function() { return /* binding */ decodeSfDict; } /* harmony export */ }); /* harmony import */ var _parse_parseDict_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./parse/parseDict.js */ "./node_modules/@svta/common-media-library/dist/structuredfield/parse/parseDict.js"); /* harmony import */ var _parse_parseError_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./parse/parseError.js */ "./node_modules/@svta/common-media-library/dist/structuredfield/parse/parseError.js"); /* harmony import */ var _utils_DICT_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils/DICT.js */ "./node_modules/@svta/common-media-library/dist/structuredfield/utils/DICT.js"); /** * Decode a structured field string into a structured field dictionary * * @param input - The structured field string to decode * @returns The structured field dictionary * * @group Structured Field * * @beta */ function decodeSfDict(input, options) { try { const { src, value } = (0,_parse_parseDict_js__WEBPACK_IMPORTED_MODULE_0__.parseDict)(input.trim(), options); if (src !== '') { throw (0,_parse_parseError_js__WEBPACK_IMPORTED_MODULE_1__.parseError)(src, _utils_DICT_js__WEBPACK_IMPORTED_MODULE_2__.DICT); } return value; } catch (cause) { throw (0,_parse_parseError_js__WEBPACK_IMPORTED_MODULE_1__.parseError)(input, _utils_DICT_js__WEBPACK_IMPORTED_MODULE_2__.DICT, cause); } } /***/ }), /***/ "./node_modules/@svta/common-media-library/dist/structuredfield/decodeSfList.js": /*!**************************************************************************************!*\ !*** ./node_modules/@svta/common-media-library/dist/structuredfield/decodeSfList.js ***! \**************************************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ decodeSfList: function() { return /* binding */ decodeSfList; } /* harmony export */ }); /* harmony import */ var _parse_parseError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./parse/parseError.js */ "./node_modules/@svta/common-media-library/dist/structuredfield/parse/parseError.js"); /* harmony import */ var _parse_parseList_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./parse/parseList.js */ "./node_modules/@svta/common-media-library/dist/structuredfield/parse/parseList.js"); /* harmony import */ var _utils_LIST_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils/LIST.js */ "./node_modules/@svta/common-media-library/dist/structuredfield/utils/LIST.js"); /** * Decode a structured field string into a structured field list * * @param input - The structured field string to decode * @returns The structured field list * * @group Structured Field * * @beta */ function decodeSfList(input, options) { try { const { src, value } = (0,_parse_parseList_js__WEBPACK_IMPORTED_MODULE_1__.parseList)(input.trim(), options); if (src !== '') { throw (0,_parse_parseError_js__WEBPACK_IMPORTED_MODULE_0__.parseError)(src, _utils_LIST_js__WEBPACK_IMPORTED_MODULE_2__.LIST); } return value; } catch (cause) { throw (0,_parse_parseError_js__WEBPACK_IMPORTED_MODULE_0__.parseError)(input, _utils_LIST_js__WEBPACK_IMPORTED_MODULE_2__.LIST, cause); } } /***/ }), /***/ "./node_modules/@svta/common-media-library/dist/structuredfield/encodeSfDict.js": /*!**************************************************************************************!*\ !*** ./node_modules/@svta/common-media-library/dist/structuredfield/encodeSfDict.js ***! \**************************************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ encodeSfDict: function() { return /* binding */ encodeSfDict; } /* harmony export */ }); /* harmony import */ var _serialize_serializeDict_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./serialize/serializeDict.js */ "./node_modules/@svta/common-media-library/dist/structuredfield/serialize/serializeDict.js"); /** * Encode an object into a structured field dictionary * * @param value - The structured field dictionary to encode * @param options - Encoding options * * @returns The structured field string * * @group Structured Field * * @beta */ function encodeSfDict(value, options) { return (0,_serialize_serializeDict_js__WEBPACK_IMPORTED_MODULE_0__.serializeDict)(value, options); } /***/ }), /***/ "./node_modules/@svta/common-media-library/dist/structuredfield/parse/ParsedValue.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@svta/common-media-library/dist/structuredfield/parse/ParsedValue.js ***! \*******************************************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ parsedValue: function() { return /* binding */ parsedValue; } /* harmony export */ }); function parsedValue(value, src) { return { value, src }; } /***/ }), /***/ "./node_modules/@svta/common-media-library/dist/structuredfield/parse/parseBareItem.js": /*!*********************************************************************************************!*\ !*** ./node_modules/@svta/common-media-library/dist/structuredfield/parse/parseBareItem.js ***! \*********************************************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ parseBareItem: function() { return /* binding */ parseBareItem; } /* harmony export */ }); /* harmony import */ var _utils_BARE_ITEM_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/BARE_ITEM.js */ "./node_modules/@svta/common-media-library/dist/structuredfield/utils/BARE_ITEM.js"); /* harmony import */ var _parseBoolean_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./parseBoolean.js */ "./node_modules/@svta/common-media-library/dist/structuredfield/parse/parseBoolean.js"); /* harmony import */ var _parseByteSequence_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./parseByteSequence.js */ "./node_modules/@svta/common-media-library/dist/structuredfield/parse/parseByteSequence.js"); /* harmony import */ var _parseDate_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./parseDate.js */ "./node_modules/@svta/common-media-library/dist/structuredfield/parse/parseDate.js"); /* harmony import */ var _parseError_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./parseError.js */ "./node_modules/@svta/common-media-library/dist/structuredfield/parse/parseError.js"); /* harmony import */ var _parseIntegerOrDecimal_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./parseIntegerOrDecimal.js */ "./node_modules/@svta/common-media-library/dist/structuredfield/parse/parseIntegerOrDecimal.js"); /* harmony import */ var _parseString_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./parseString.js */ "./node_modules/@svta/common-media-library/dist/structuredfield/parse/parseString.js"); /* harmony import */ var _parseToken_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./parseToken.js */ "./node_modules/@svta/common-media-library/dist/structuredfield/parse/parseToken.js"); // 4.2.3.1. Parsing a Bare Item // // Given an ASCII string as input_string, return a bare Item. // input_string is modified to remove the parsed value. // // 1. If the first character of input_string is a "-" or a DIGIT, // return the result of running Parsing an Integer or Decimal // (Section 4.2.4) with input_string. // // 2. If the first character of input_string is a DQUOTE, return the // result of running Parsing a String (Section 4.2.5) with // input_string. // // 3. If the first character of input_string is ":", return the result // of running Parsing a Byte Sequence (Section 4.2.7) with // input_string. // // 4. If the first character of input_string is "?", return the result // of running Parsing a Boolean (Section 4.2.8) with input_string. // // 5. If the first character of input_string is an ALPHA or "*", return // the result of running Parsing a Token (Section 4.2.6) with // input_string. // // 6. If the first character of input_string is "@", return the result // of running Parsing a Date (Section 4.2.9) with input_string. // // 7. Otherwise, the item type is unrecognized; fail parsing. function parseBareItem(src, options) { const first = src[0]; if (first === `"`) { return (0,_parseString_js__WEBPACK_IMPORTED_MODULE_6__.parseString)(src); } if (/^[-0-9]/.test(first)) { return (0,_parseIntegerOrDecimal_js__WEBPACK_IMPORTED_MODULE_5__.parseIntegerOrDecimal)(src); } if (first === `?`) { return (0,_parseBoolean_js__WEBPACK_IMPORTED_MODULE_1__.parseBoolean)(src); } if (first === `:`) { return (0,_parseByteSequence_js__WEBPACK_IMPORTED_MODULE_2__.parseByteSequence)(src); } if (/^[a-zA-Z*]/.test(first)) { return (0,_parseToken_js__WEBPACK_IMPORTED_MODULE_7__.parseToken)(src, options); } if (first === `@`) { return (0,_parseDate_js__WEBPACK_IMPORTED_MODULE_3__.parseDate)(src); } throw (0,_parseError_js__WEBPACK_IMPORTED_MODULE_4__.parseError)(src, _utils_BARE_ITEM_js__WEBPACK_IMPORTED_MODULE_0__.BARE_ITEM); } /***/ }), /***/ "./node_modules/@svta/common-media-library/dist/structuredfield/parse/parseBoolean.js": /*!********************************************************************************************!*\ !*** ./node_modules/@svta/common-media-library/dist/structuredfield/parse/parseBoolean.js ***! \********************************************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ parseBoolean: function() { return /* binding */ parseBoolean; } /* harmony export */ }); /* harmony import */ var _utils_BOOLEAN_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/BOOLEAN.js */ "./node_modules/@svta/common-media-library/dist/structuredfield/utils/BOOLEAN.js"); /* harmony import */ var _ParsedValue_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ParsedValue.js */ "./node_modules/@svta/common-media-library/dist/structuredfield/parse/ParsedValue.js"); /* harmony import */ var _parseError_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./parseError.js */ "./node_modules/@svta/common-media-library/dist/structuredfield/parse/parseError.js"); // 4.2.8. Parsing a Boolean // // Given an ASCII string as input_string, return a Boolean. input_string // is modified to remove the parsed value. // // 1. If the first character of input_string is not "?", fail parsing. // // 2. Discard the first character of input_string. // // 3. If the first character of input_string matches "1", discard the // first character, and return true. // // 4. If the first character of input_string matches "0", discard the // first character, and return false. // // 5. No value has matched; fail parsing. function parseBoolean(src) { let i = 0; if (src[i] !== '?') { throw (0,_parseError_js__WEBPACK_IMPORTED_MODULE_2__.parseError)(src, _utils_BOOLEAN_js__WEBPACK_IMPORTED_MODULE_0__.BOOLEAN); } i++; if (src[i] === '1') { return (0,_ParsedValue_js__WEBPACK_IMPORTED_MODULE_1__.parsedValue)(true, src.substring(++i)); } if (src[i] === '0') { return (0,_ParsedValue_js__WEBPACK_IMPORTED_MODULE_1__.parsedValue)(false, src.substring(++i)); } throw (0,_parseError_js__WEBPACK_IMPORTED_MODULE_2__.parseError)(src, _utils_BOOLEAN_js__WEBPACK_IMPORTED_MODULE_0__.BOOLEAN); } /***/ }), /***/ "./node_modules/@svta/common-media-library/dist/structuredfield/parse/parseByteSequence.js": /*!*************************************************************************************************!*\ !*** ./node_modules/@svta/common-media-library/dist/structuredfield/parse/parseByteSequence.js ***! \*************************************************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ parseByteSequence: function() { return /* binding */ parseByteSequence; } /* harmony export */ }); /* harmony import */ var _utils_base64decode_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../utils/base64decode.js */ "./node_modules/@svta/common-media-library/dist/utils/base64decode.js"); /* harmony import */ var _utils_BYTES_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/BYTES.js */ "./node_modules/@svta/common-media-library/dist/structuredfield/utils/BYTES.js"); /* harmony import */ var _ParsedValue_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ParsedValue.js */ "./node_modules/@svta/common-media-library/dist/structuredfield/parse/ParsedValue.js"); /* harmony import */ var _parseError_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./parseError.js */ "./node_modules/@svta/common-media-library/dist/structuredfield/parse/parseError.js"); // 4.2.7.