cloudinary-video-player 1.9.1 → 1.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist/cld-video-player.css +6 -5
- package/dist/cld-video-player.js +22 -22
- package/dist/cld-video-player.light.css +6 -5
- package/dist/cld-video-player.light.js +22 -22
- package/dist/cld-video-player.light.min.css +1 -1
- package/dist/cld-video-player.light.min.js +1 -1
- package/dist/cld-video-player.light.min.js.LICENSE.txt +0 -15
- package/dist/cld-video-player.min.css +1 -1
- package/dist/cld-video-player.min.js +1 -1
- package/dist/cld-video-player.min.js.LICENSE.txt +0 -15
- package/docs/playlist-by-tag.html +1 -1
- package/docs/vast-vpaid.html +6 -4
- package/package.json +2 -2
- package/src/components/playlist/components/playlist-next-button.js +1 -0
- package/src/components/playlist/components/upcoming-video-overlay.js +1 -1
- package/src/components/playlist/components/upcoming-video-overlay.scss +2 -1
|
@@ -128,7 +128,7 @@ eval("\n\n__webpack_require__(/*! core-js/es6 */ \"../node_modules/core-js/es6/i
|
|
|
128
128
|
/***/ (function(module, exports, __webpack_require__) {
|
|
129
129
|
|
|
130
130
|
"use strict";
|
|
131
|
-
eval("\n\nvar tslib_es6 = __webpack_require__(/*! ../tslib.es6-
|
|
131
|
+
eval("\n\nvar tslib_es6 = __webpack_require__(/*! ../tslib.es6-bcbd7c13.cjs */ \"../node_modules/@cloudinary/url-gen/tslib.es6-bcbd7c13.cjs\");\nvar backwards_expression = __webpack_require__(/*! ./expression.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/expression.cjs\");\n\n/**\n * Represents a transformation condition.\n * @param {string} conditionStr - a condition in string format\n * @class Condition\n * @example\n * // normally this class is not instantiated directly\n * var tr = cloudinary.Transformation.new()\n * .if().width( \">\", 1000).and().aspectRatio(\"<\", \"3:4\").then()\n * .width(1000)\n * .crop(\"scale\")\n * .else()\n * .width(500)\n * .crop(\"scale\")\n *\n * var tr = cloudinary.Transformation.new()\n * .if(\"w > 1000 and aspectRatio < 3:4\")\n * .width(1000)\n * .crop(\"scale\")\n * .else()\n * .width(500)\n * .crop(\"scale\")\n *\n */\nvar Condition = /** @class */ (function (_super) {\n tslib_es6.__extends(Condition, _super);\n function Condition(conditionStr) {\n return _super.call(this, conditionStr) || this;\n }\n /**\n * @function Condition#height\n * @param {string} operator the comparison operator (e.g. \"<\", \"lt\")\n * @param {string|number} value the right hand side value\n * @return {Condition} this condition\n */\n Condition.prototype.height = function (operator, value) {\n return this.predicate(\"h\", operator, value);\n };\n /**\n * @function Condition#width\n * @param {string} operator the comparison operator (e.g. \"<\", \"lt\")\n * @param {string|number} value the right hand side value\n * @return {Condition} this condition\n */\n Condition.prototype.width = function (operator, value) {\n return this.predicate(\"w\", operator, value);\n };\n /**\n * @function Condition#aspectRatio\n * @param {string} operator the comparison operator (e.g. \"<\", \"lt\")\n * @param {string|number} value the right hand side value\n * @return {Condition} this condition\n */\n Condition.prototype.aspectRatio = function (operator, value) {\n return this.predicate(\"ar\", operator, value);\n };\n /**\n * @function Condition#pages\n * @param {string} operator the comparison operator (e.g. \"<\", \"lt\")\n * @param {string|number} value the right hand side value\n * @return {Condition} this condition\n */\n Condition.prototype.pageCount = function (operator, value) {\n return this.predicate(\"pc\", operator, value);\n };\n /**\n * @function Condition#faces\n * @param {string} operator the comparison operator (e.g. \"<\", \"lt\")\n * @param {string|number} value the right hand side value\n * @return {Condition} this condition\n */\n Condition.prototype.faceCount = function (operator, value) {\n return this.predicate(\"fc\", operator, value);\n };\n /**\n * @function Condition#duration\n * @param {string} operator the comparison operator (e.g. \"<\", \"lt\")\n * @param {string|number} value the right hand side value\n * @return {Condition} this condition\n */\n Condition.prototype.duration = function (operator, value) {\n return this.predicate(\"du\", operator, value);\n };\n /**\n * @function Condition#initialDuration\n * @param {string} operator the comparison operator (e.g. \"<\", \"lt\")\n * @param {string|number} value the right hand side value\n * @return {Condition} this condition\n */\n Condition.prototype.initialDuration = function (operator, value) {\n return this.predicate(\"idu\", operator, value);\n };\n return Condition;\n}(backwards_expression));\n\nmodule.exports = Condition;\n\n\n//# sourceURL=webpack://cloudinaryVideoPlayer/../node_modules/@cloudinary/url-gen/backwards/condition.cjs?");
|
|
132
132
|
|
|
133
133
|
/***/ }),
|
|
134
134
|
|
|
@@ -152,7 +152,7 @@ eval("/* WEBPACK VAR INJECTION */(function(process) {\n\nObject.defineProperty(e
|
|
|
152
152
|
/***/ (function(module, exports, __webpack_require__) {
|
|
153
153
|
|
|
154
154
|
"use strict";
|
|
155
|
-
eval("\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar LEGACY_CONDITIONAL_OPERATORS = {\n \"=\": 'eq',\n \"!=\": 'ne',\n \"<\": 'lt',\n \">\": 'gt',\n \"<=\": 'lte',\n \">=\": 'gte',\n \"&&\": 'and',\n \"||\": 'or',\n \"*\": \"mul\",\n \"/\": \"div\",\n \"+\": \"add\",\n \"-\": \"sub\",\n \"^\": \"pow\"\n};\nvar CF_SHARED_CDN = \"d3jpl91pxevbkh.cloudfront.net\";\nvar OLD_AKAMAI_SHARED_CDN = \"cloudinary-a.akamaihd.net\";\nvar AKAMAI_SHARED_CDN = \"res.cloudinary.com\";\nvar SHARED_CDN = AKAMAI_SHARED_CDN;\nvar LEGACY_PREDEFINED_VARS = {\n \"aspect_ratio\": \"ar\",\n \"aspectRatio\": \"ar\",\n \"current_page\": \"cp\",\n \"currentPage\": \"cp\",\n \"duration\": \"du\",\n \"face_count\": \"fc\",\n \"faceCount\": \"fc\",\n \"height\": \"h\",\n \"initial_aspect_ratio\": \"iar\",\n \"initial_height\": \"ih\",\n \"initial_width\": \"iw\",\n \"initialAspectRatio\": \"iar\",\n \"initialHeight\": \"ih\",\n \"initialWidth\": \"iw\",\n \"initial_duration\": \"idu\",\n \"initialDuration\": \"idu\",\n \"page_count\": \"pc\",\n \"page_x\": \"px\",\n \"page_y\": \"py\",\n \"pageCount\": \"pc\",\n \"pageX\": \"px\",\n \"pageY\": \"py\",\n \"tags\": \"tags\",\n \"width\": \"w\"\n};\nvar NUMBER_PATTERN = \"([0-9]*)\\\\.([0-9]+)|([0-9]+)\";\nvar OFFSET_ANY_PATTERN = \"(\"
|
|
155
|
+
eval("\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar LEGACY_CONDITIONAL_OPERATORS = {\n \"=\": 'eq',\n \"!=\": 'ne',\n \"<\": 'lt',\n \">\": 'gt',\n \"<=\": 'lte',\n \">=\": 'gte',\n \"&&\": 'and',\n \"||\": 'or',\n \"*\": \"mul\",\n \"/\": \"div\",\n \"+\": \"add\",\n \"-\": \"sub\",\n \"^\": \"pow\"\n};\nvar CF_SHARED_CDN = \"d3jpl91pxevbkh.cloudfront.net\";\nvar OLD_AKAMAI_SHARED_CDN = \"cloudinary-a.akamaihd.net\";\nvar AKAMAI_SHARED_CDN = \"res.cloudinary.com\";\nvar SHARED_CDN = AKAMAI_SHARED_CDN;\nvar LEGACY_PREDEFINED_VARS = {\n \"aspect_ratio\": \"ar\",\n \"aspectRatio\": \"ar\",\n \"current_page\": \"cp\",\n \"currentPage\": \"cp\",\n \"duration\": \"du\",\n \"face_count\": \"fc\",\n \"faceCount\": \"fc\",\n \"height\": \"h\",\n \"initial_aspect_ratio\": \"iar\",\n \"initial_height\": \"ih\",\n \"initial_width\": \"iw\",\n \"initialAspectRatio\": \"iar\",\n \"initialHeight\": \"ih\",\n \"initialWidth\": \"iw\",\n \"initial_duration\": \"idu\",\n \"initialDuration\": \"idu\",\n \"page_count\": \"pc\",\n \"page_x\": \"px\",\n \"page_y\": \"py\",\n \"pageCount\": \"pc\",\n \"pageX\": \"px\",\n \"pageY\": \"py\",\n \"tags\": \"tags\",\n \"width\": \"w\"\n};\nvar NUMBER_PATTERN = \"([0-9]*)\\\\.([0-9]+)|([0-9]+)\";\nvar OFFSET_ANY_PATTERN = \"(\".concat(NUMBER_PATTERN, \")([%pP])?\");\nvar RANGE_VALUE_RE = RegExp(\"^\".concat(OFFSET_ANY_PATTERN, \"$\"));\nvar OFFSET_ANY_PATTERN_RE = RegExp(\"(\".concat(OFFSET_ANY_PATTERN, \")\\\\.\\\\.(\").concat(OFFSET_ANY_PATTERN, \")\"));\nvar LAYER_KEYWORD_PARAMS = {\n font_weight: \"normal\",\n font_style: \"normal\",\n text_decoration: \"none\",\n text_align: '',\n stroke: \"none\"\n};\n\nexports.AKAMAI_SHARED_CDN = AKAMAI_SHARED_CDN;\nexports.CF_SHARED_CDN = CF_SHARED_CDN;\nexports.LAYER_KEYWORD_PARAMS = LAYER_KEYWORD_PARAMS;\nexports.LEGACY_CONDITIONAL_OPERATORS = LEGACY_CONDITIONAL_OPERATORS;\nexports.LEGACY_PREDEFINED_VARS = LEGACY_PREDEFINED_VARS;\nexports.NUMBER_PATTERN = NUMBER_PATTERN;\nexports.OFFSET_ANY_PATTERN = OFFSET_ANY_PATTERN;\nexports.OFFSET_ANY_PATTERN_RE = OFFSET_ANY_PATTERN_RE;\nexports.OLD_AKAMAI_SHARED_CDN = OLD_AKAMAI_SHARED_CDN;\nexports.RANGE_VALUE_RE = RANGE_VALUE_RE;\nexports.SHARED_CDN = SHARED_CDN;\n\n\n//# sourceURL=webpack://cloudinaryVideoPlayer/../node_modules/@cloudinary/url-gen/backwards/consts.cjs?");
|
|
156
156
|
|
|
157
157
|
/***/ }),
|
|
158
158
|
|
|
@@ -164,7 +164,7 @@ eval("\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar
|
|
|
164
164
|
/***/ (function(module, exports, __webpack_require__) {
|
|
165
165
|
|
|
166
166
|
"use strict";
|
|
167
|
-
eval("\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar backwards_generateTransformationString = __webpack_require__(/*! ./generateTransformationString.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/generateTransformationString.cjs\");\nvar backwards_utils_finalizeResourceType = __webpack_require__(/*! ./utils/finalizeResourceType.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/finalizeResourceType.cjs\");\nvar backwards_utils_finalize_source = __webpack_require__(/*! ./utils/finalize_source.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/finalize_source.cjs\");\nvar backwards_utils_unsigned_url_prefix = __webpack_require__(/*! ./utils/unsigned_url_prefix.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/unsigned_url_prefix.cjs\");\nvar internal_utils_cloneDeep = __webpack_require__(/*! ../internal/utils/cloneDeep.cjs */ \"../node_modules/@cloudinary/url-gen/internal/utils/cloneDeep.cjs\");\n__webpack_require__(/*! ./transformationProcessing/processLayer.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/transformationProcessing/processLayer.cjs\");\n__webpack_require__(/*! ./utils/isObject.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/isObject.cjs\");\n__webpack_require__(/*! ../internal/utils/base64Encode.cjs */ \"../node_modules/@cloudinary/url-gen/internal/utils/base64Encode.cjs\");\n__webpack_require__(/*! ./consts.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/consts.cjs\");\n__webpack_require__(/*! ./utils/smartEscape.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/smartEscape.cjs\");\n__webpack_require__(/*! ./legacyLayer/textlayer.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/legacyLayer/textlayer.cjs\");\n__webpack_require__(/*! ../tslib.es6-
|
|
167
|
+
eval("\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar backwards_generateTransformationString = __webpack_require__(/*! ./generateTransformationString.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/generateTransformationString.cjs\");\nvar backwards_utils_finalizeResourceType = __webpack_require__(/*! ./utils/finalizeResourceType.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/finalizeResourceType.cjs\");\nvar backwards_utils_finalize_source = __webpack_require__(/*! ./utils/finalize_source.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/finalize_source.cjs\");\nvar backwards_utils_unsigned_url_prefix = __webpack_require__(/*! ./utils/unsigned_url_prefix.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/unsigned_url_prefix.cjs\");\nvar internal_utils_cloneDeep = __webpack_require__(/*! ../internal/utils/cloneDeep.cjs */ \"../node_modules/@cloudinary/url-gen/internal/utils/cloneDeep.cjs\");\n__webpack_require__(/*! ./transformationProcessing/processLayer.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/transformationProcessing/processLayer.cjs\");\n__webpack_require__(/*! ./utils/isObject.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/isObject.cjs\");\n__webpack_require__(/*! ../internal/utils/base64Encode.cjs */ \"../node_modules/@cloudinary/url-gen/internal/utils/base64Encode.cjs\");\n__webpack_require__(/*! ./consts.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/consts.cjs\");\n__webpack_require__(/*! ./utils/smartEscape.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/smartEscape.cjs\");\n__webpack_require__(/*! ./legacyLayer/textlayer.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/legacyLayer/textlayer.cjs\");\n__webpack_require__(/*! ../tslib.es6-bcbd7c13.cjs */ \"../node_modules/@cloudinary/url-gen/tslib.es6-bcbd7c13.cjs\");\n__webpack_require__(/*! ./legacyLayer/layer.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/legacyLayer/layer.cjs\");\n__webpack_require__(/*! ./utils/snakeCase.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/snakeCase.cjs\");\n__webpack_require__(/*! ./utils/isEmpty.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/isEmpty.cjs\");\n__webpack_require__(/*! ./utils/isNumberLike.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/isNumberLike.cjs\");\n__webpack_require__(/*! ./transformationProcessing/processIf.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/transformationProcessing/processIf.cjs\");\n__webpack_require__(/*! ./utils/legacyNormalizeExpression.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/legacyNormalizeExpression.cjs\");\n__webpack_require__(/*! ./utils/toArray.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/toArray.cjs\");\n__webpack_require__(/*! ./transformationProcessing/processRadius.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/transformationProcessing/processRadius.cjs\");\n__webpack_require__(/*! ./transformationProcessing/processCustomFunction.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/transformationProcessing/processCustomFunction.cjs\");\n__webpack_require__(/*! ./transformationProcessing/processCustomPreFunction.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/transformationProcessing/processCustomPreFunction.cjs\");\n__webpack_require__(/*! ./utils/splitRange.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/splitRange.cjs\");\n__webpack_require__(/*! ./utils/norm_range_values.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/norm_range_values.cjs\");\n__webpack_require__(/*! ./transformationProcessing/processVideoParams.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/transformationProcessing/processVideoParams.cjs\");\n__webpack_require__(/*! ./transformation.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/transformation.cjs\");\n__webpack_require__(/*! ./condition.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/condition.cjs\");\n__webpack_require__(/*! ./expression.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/expression.cjs\");\n__webpack_require__(/*! ./configuration.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/configuration.cjs\");\n__webpack_require__(/*! ./utils/legacyBaseUtil.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/legacyBaseUtil.cjs\");\n__webpack_require__(/*! ./legacyLayer/subtitleslayer.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/legacyLayer/subtitleslayer.cjs\");\n__webpack_require__(/*! ./legacyLayer/fetchlayer.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/legacyLayer/fetchlayer.cjs\");\n__webpack_require__(/*! ../internal/utils/dataStructureUtils.cjs */ \"../node_modules/@cloudinary/url-gen/internal/utils/dataStructureUtils.cjs\");\n__webpack_require__(/*! ./utils/isFunction.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/isFunction.cjs\");\n__webpack_require__(/*! ./transformationProcessing/processDpr.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/transformationProcessing/processDpr.cjs\");\n\nfunction createCloudinaryLegacyURL(public_id, transformationOptions) {\n var _a, _b;\n // Path format\n if (transformationOptions.type === \"fetch\") {\n if (transformationOptions.fetch_format == null) {\n transformationOptions.fetch_format = transformationOptions.format;\n }\n }\n var source_to_sign;\n var type = transformationOptions.type;\n var resource_type = transformationOptions.resource_type || 'image';\n var version = transformationOptions.version;\n var force_version = typeof transformationOptions.force_version === 'boolean' ? transformationOptions.force_version : true;\n !!transformationOptions.long_url_signature;\n var format = transformationOptions.format;\n var cloud_name = transformationOptions.cloud_name;\n if (!cloud_name) {\n throw \"cloud_name must be provided in the configuration\";\n }\n var private_cdn = transformationOptions.private_cdn;\n var secure_distribution = transformationOptions.secure_distribution;\n var secure = transformationOptions.secure;\n var cdn_subdomain = transformationOptions.cdn_subdomain;\n var secure_cdn_subdomain = transformationOptions.secure_cdn_subdomain;\n var cname = transformationOptions.cname;\n var shorten = transformationOptions.shorten;\n var sign_url = transformationOptions.sign_url;\n transformationOptions.api_secret;\n var url_suffix = transformationOptions.url_suffix;\n var use_root_path = transformationOptions.use_root_path;\n var auth_token = transformationOptions.auth_token;\n var preloaded = /^(image|raw)\\/([a-z0-9_]+)\\/v(\\d+)\\/([^#]+)$/.exec(public_id);\n if (preloaded) {\n resource_type = preloaded[1];\n type = preloaded[2];\n version = preloaded[3];\n public_id = preloaded[4];\n }\n var original_source = public_id;\n if (public_id == null) {\n return original_source;\n }\n public_id = public_id.toString();\n if (type === null && public_id.match(/^https?:\\//i)) {\n return original_source;\n }\n _a = backwards_utils_finalizeResourceType.finalize_resource_type(resource_type, type, url_suffix, use_root_path, shorten), resource_type = _a[0], type = _a[1];\n _b = backwards_utils_finalize_source.finalize_source(public_id, format, url_suffix), public_id = _b[0], source_to_sign = _b[1];\n if (version == null && force_version && source_to_sign.indexOf(\"/\") >= 0 && !source_to_sign.match(/^v[0-9]+/) && !source_to_sign.match(/^https?:\\//)) {\n version = 1;\n }\n if (version != null) {\n version = \"v\".concat(version);\n }\n else {\n version = null;\n }\n var transformation = backwards_generateTransformationString.generateTransformationString(internal_utils_cloneDeep.cloneDeep(transformationOptions)).replace(/([^:])\\/\\//g, '$1/');\n if (sign_url && !auth_token) {\n var to_sign = [transformation, source_to_sign].filter(function (part) {\n return (part != null) && part !== '';\n }).join('/');\n try {\n for (var i = 0; to_sign !== decodeURIComponent(to_sign) && i < 10; i++) {\n to_sign = decodeURIComponent(to_sign);\n }\n // eslint-disable-next-line no-empty\n }\n catch (error) {\n }\n // No support for Auth Token\n // const shasum = crypto.createHash(long_url_signature ? 'sha256' : 'sha1');\n // shasum.update(utf8_encode(to_sign + api_secret), 'binary');\n // signature = shasum.digest('base64').replace(/\\//g, '_').replace(/\\+/g, '-').substring(0, long_url_signature ? 32 : 8);\n // signature = `s--${signature}--`;\n }\n var prefix = backwards_utils_unsigned_url_prefix.unsigned_url_prefix(public_id, cloud_name, private_cdn, cdn_subdomain, secure_cdn_subdomain, cname, secure, secure_distribution);\n var resultUrl = [prefix, resource_type, type, transformation, version, public_id].filter(function (part) {\n return (part != null) && part !== '';\n }).join('/').replace(' ', '%20');\n return resultUrl;\n}\n\nexports.createCloudinaryLegacyURL = createCloudinaryLegacyURL;\n\n\n//# sourceURL=webpack://cloudinaryVideoPlayer/../node_modules/@cloudinary/url-gen/backwards/createCloudinaryLegacyURL.cjs?");
|
|
168
168
|
|
|
169
169
|
/***/ }),
|
|
170
170
|
|
|
@@ -176,7 +176,7 @@ eval("\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar
|
|
|
176
176
|
/***/ (function(module, exports, __webpack_require__) {
|
|
177
177
|
|
|
178
178
|
"use strict";
|
|
179
|
-
eval("\n\n/**\n * Represents a transformation expression.\n * @param {string} expressionStr - An expression in string format.\n * @class Expression\n *\n */\nvar Expression = /** @class */ (function () {\n function Expression(expressionStr) {\n /**\n * @protected\n * @inner Expression-expressions\n */\n this.expressions = [];\n if (expressionStr != null) {\n this.expressions.push(Expression.normalize(expressionStr));\n }\n }\n /**\n * Convenience constructor method\n * @function Expression.new\n */\n Expression.new = function (expressionStr) {\n return new this(expressionStr);\n };\n /**\n * Normalize a string expression\n * @function Cloudinary#normalize\n * @param {string} expression a expression, e.g. \"w gt 100\", \"width_gt_100\", \"width > 100\"\n * @return {string} the normalized form of the value expression, e.g. \"w_gt_100\"\n */\n Expression.normalize = function (expression) {\n var operators, operatorsPattern, operatorsReplaceRE, predefinedVarsPattern, predefinedVarsReplaceRE;\n if (expression == null) {\n return expression;\n }\n expression = String(expression);\n operators = \"\\\\|\\\\||>=|<=|&&|!=|>|=|<|/|-|\\\\+|\\\\*|\\\\^\";\n // operators\n operatorsPattern = \"((\" + operators + \")(?=[ _]))\";\n operatorsReplaceRE = new RegExp(operatorsPattern, \"g\");\n // @ts-ignore\n expression = expression.replace(operatorsReplaceRE, function (match) { return OPERATORS[match]; });\n // predefined variables\n predefinedVarsPattern = \"(\" + Object.keys(PREDEFINED_VARS).join(\"|\") + \")\";\n predefinedVarsReplaceRE = new RegExp(predefinedVarsPattern, \"g\");\n // @ts-ignore\n expression = expression.replace(predefinedVarsReplaceRE, function (match, p1, offset) { return (expression[offset - 1] === '$' ? match : PREDEFINED_VARS[match]); });\n return expression.replace(/[ _]+/g, '_');\n };\n /**\n * Serialize the expression\n * @return {string} the expression as a string\n */\n Expression.prototype.serialize = function () {\n return Expression.normalize(this.expressions.join(\"_\"));\n };\n Expression.prototype.toString = function () {\n return this.serialize();\n };\n /**\n * Get the parent transformation of this expression\n * @return Transformation\n */\n Expression.prototype.getParent = function () {\n return this.parent;\n };\n /**\n * Set the parent transformation of this expression\n * @param {Transformation} the parent transformation\n * @return {Expression} this expression\n */\n Expression.prototype.setParent = function (parent) {\n this.parent = parent;\n return this;\n };\n /**\n * Add a expression\n * @function Expression#predicate\n * @internal\n */\n Expression.prototype.predicate = function (name, operator, value) {\n // @ts-ignore\n if (OPERATORS[operator] != null) {\n // @ts-ignore\n operator = OPERATORS[operator];\n }\n this.expressions.push(name + \"_\" + operator + \"_\" + value);\n return this;\n };\n /**\n * @function Expression#and\n */\n Expression.prototype.and = function () {\n this.expressions.push(\"and\");\n return this;\n };\n /**\n * @function Expression#or\n */\n Expression.prototype.or = function () {\n this.expressions.push(\"or\");\n return this;\n };\n /**\n * Conclude expression\n * @function Expression#then\n * @return {Transformation} the transformation this expression is defined for\n */\n Expression.prototype.then = function () {\n return this.getParent().if(this.toString());\n };\n /**\n * @function Expression#height\n * @param {string} operator the comparison operator (e.g. \"<\", \"lt\")\n * @param {string|number} value the right hand side value\n * @return {Expression} this expression\n */\n Expression.prototype.height = function (operator, value) {\n return this.predicate(\"h\", operator, value);\n };\n /**\n * @function Expression#width\n * @param {string} operator the comparison operator (e.g. \"<\", \"lt\")\n * @param {string|number} value the right hand side value\n * @return {Expression} this expression\n */\n Expression.prototype.width = function (operator, value) {\n return this.predicate(\"w\", operator, value);\n };\n /**\n * @function Expression#aspectRatio\n * @param {string} operator the comparison operator (e.g. \"<\", \"lt\")\n * @param {string|number} value the right hand side value\n * @return {Expression} this expression\n */\n Expression.prototype.aspectRatio = function (operator, value) {\n return this.predicate(\"ar\", operator, value);\n };\n /**\n * @function Expression#pages\n * @param {string} operator the comparison operator (e.g. \"<\", \"lt\")\n * @param {string|number} value the right hand side value\n * @return {Expression} this expression\n */\n Expression.prototype.pageCount = function (operator, value) {\n return this.predicate(\"pc\", operator, value);\n };\n /**\n * @function Expression#faces\n * @param {string} operator the comparison operator (e.g. \"<\", \"lt\")\n * @param {string|number} value the right hand side value\n * @return {Expression} this expression\n */\n Expression.prototype.faceCount = function (operator, value) {\n return this.predicate(\"fc\", operator, value);\n };\n Expression.prototype.value = function (value) {\n this.expressions.push(value);\n return this;\n };\n /**\n */\n Expression.variable = function (name, value) {\n return new this(name).value(value);\n };\n /**\n * @returns Expression a new expression with the predefined variable \"width\"\n * @function Expression.width\n */\n Expression.width = function () {\n return new this(\"width\");\n };\n /**\n * @returns Expression a new expression with the predefined variable \"height\"\n * @function Expression.height\n */\n Expression.height = function () {\n return new this(\"height\");\n };\n /**\n * @returns Expression a new expression with the predefined variable \"initialWidth\"\n * @function Expression.initialWidth\n */\n Expression.initialWidth = function () {\n return new this(\"initialWidth\");\n };\n /**\n * @returns Expression a new expression with the predefined variable \"initialHeight\"\n * @function Expression.initialHeight\n */\n Expression.initialHeight = function () {\n return new this(\"initialHeight\");\n };\n /**\n * @returns Expression a new expression with the predefined variable \"aspectRatio\"\n * @function Expression.aspectRatio\n */\n Expression.aspectRatio = function () {\n return new this(\"aspectRatio\");\n };\n /**\n * @returns Expression a new expression with the predefined variable \"initialAspectRatio\"\n * @function Expression.initialAspectRatio\n */\n Expression.initialAspectRatio = function () {\n return new this(\"initialAspectRatio\");\n };\n /**\n * @returns Expression a new expression with the predefined variable \"pageCount\"\n * @function Expression.pageCount\n */\n Expression.pageCount = function () {\n return new this(\"pageCount\");\n };\n /**\n * @returns Expression new expression with the predefined variable \"faceCount\"\n * @function Expression.faceCount\n */\n Expression.faceCount = function () {\n return new this(\"faceCount\");\n };\n /**\n * @returns Expression a new expression with the predefined variable \"currentPage\"\n * @function Expression.currentPage\n */\n Expression.currentPage = function () {\n return new this(\"currentPage\");\n };\n /**\n * @returns Expression a new expression with the predefined variable \"tags\"\n * @function Expression.tags\n */\n Expression.tags = function () {\n return new this(\"tags\");\n };\n /**\n * @returns Expression a new expression with the predefined variable \"pageX\"\n * @function Expression.pageX\n */\n Expression.pageX = function () {\n return new this(\"pageX\");\n };\n /**\n * @returns Expression a new expression with the predefined variable \"pageY\"\n * @function Expression.pageY\n */\n Expression.pageY = function () {\n return new this(\"pageY\");\n };\n return Expression;\n}());\n/**\n * @internal\n */\nvar OPERATORS = {\n \"=\": 'eq',\n \"!=\": 'ne',\n \"<\": 'lt',\n \">\": 'gt',\n \"<=\": 'lte',\n \">=\": 'gte',\n \"&&\": 'and',\n \"||\": 'or',\n \"*\": \"mul\",\n \"/\": \"div\",\n \"+\": \"add\",\n \"-\": \"sub\",\n \"^\": \"pow\",\n};\n/**\n * @internal\n */\nvar PREDEFINED_VARS = {\n \"aspect_ratio\": \"ar\",\n \"aspectRatio\": \"ar\",\n \"current_page\": \"cp\",\n \"currentPage\": \"cp\",\n \"preview:duration\": \"preview:duration\",\n \"duration\": \"du\",\n \"face_count\": \"fc\",\n \"faceCount\": \"fc\",\n \"height\": \"h\",\n \"initial_aspect_ratio\": \"iar\",\n \"initial_duration\": \"idu\",\n \"initial_height\": \"ih\",\n \"initial_width\": \"iw\",\n \"initialAspectRatio\": \"iar\",\n \"initialDuration\": \"idu\",\n \"initialHeight\": \"ih\",\n \"initialWidth\": \"iw\",\n \"page_count\": \"pc\",\n \"page_x\": \"px\",\n \"page_y\": \"py\",\n \"pageCount\": \"pc\",\n \"pageX\": \"px\",\n \"pageY\": \"py\",\n \"tags\": \"tags\",\n \"width\": \"w\"\n};\n\nmodule.exports = Expression;\n\n\n//# sourceURL=webpack://cloudinaryVideoPlayer/../node_modules/@cloudinary/url-gen/backwards/expression.cjs?");
|
|
179
|
+
eval("\n\n/**\n * Represents a transformation expression.\n * @param {string} expressionStr - An expression in string format.\n * @class Expression\n *\n */\nvar Expression = /** @class */ (function () {\n function Expression(expressionStr) {\n /**\n * @protected\n * @inner Expression-expressions\n */\n this.expressions = [];\n if (expressionStr != null) {\n this.expressions.push(Expression.normalize(expressionStr));\n }\n }\n /**\n * Convenience constructor method\n * @function Expression.new\n */\n Expression.new = function (expressionStr) {\n return new this(expressionStr);\n };\n /**\n * Normalize a string expression\n * @function Cloudinary#normalize\n * @param {string} expression a expression, e.g. \"w gt 100\", \"width_gt_100\", \"width > 100\"\n * @return {string} the normalized form of the value expression, e.g. \"w_gt_100\"\n */\n Expression.normalize = function (expression) {\n var operators, operatorsPattern, operatorsReplaceRE, predefinedVarsPattern, predefinedVarsReplaceRE;\n if (expression == null) {\n return expression;\n }\n expression = String(expression);\n operators = \"\\\\|\\\\||>=|<=|&&|!=|>|=|<|/|-|\\\\+|\\\\*|\\\\^\";\n // operators\n operatorsPattern = \"((\" + operators + \")(?=[ _]))\";\n operatorsReplaceRE = new RegExp(operatorsPattern, \"g\");\n // @ts-ignore\n expression = expression.replace(operatorsReplaceRE, function (match) { return OPERATORS[match]; });\n // predefined variables\n predefinedVarsPattern = \"(\" + Object.keys(PREDEFINED_VARS).join(\"|\") + \")\";\n predefinedVarsReplaceRE = new RegExp(predefinedVarsPattern, \"g\");\n // @ts-ignore\n expression = expression.replace(predefinedVarsReplaceRE, function (match, p1, offset) { return (expression[offset - 1] === '$' ? match : PREDEFINED_VARS[match]); });\n return expression.replace(/[ _]+/g, '_');\n };\n /**\n * Serialize the expression\n * @return {string} the expression as a string\n */\n Expression.prototype.serialize = function () {\n return Expression.normalize(this.expressions.join(\"_\"));\n };\n Expression.prototype.toString = function () {\n return this.serialize();\n };\n /**\n * Get the parent transformation of this expression\n * @return Transformation\n */\n Expression.prototype.getParent = function () {\n return this.parent;\n };\n /**\n * Set the parent transformation of this expression\n * @param {Transformation} the parent transformation\n * @return {Expression} this expression\n */\n Expression.prototype.setParent = function (parent) {\n this.parent = parent;\n return this;\n };\n /**\n * Add a expression\n * @function Expression#predicate\n * @internal\n */\n Expression.prototype.predicate = function (name, operator, value) {\n // @ts-ignore\n if (OPERATORS[operator] != null) {\n // @ts-ignore\n operator = OPERATORS[operator];\n }\n this.expressions.push(\"\".concat(name, \"_\").concat(operator, \"_\").concat(value));\n return this;\n };\n /**\n * @function Expression#and\n */\n Expression.prototype.and = function () {\n this.expressions.push(\"and\");\n return this;\n };\n /**\n * @function Expression#or\n */\n Expression.prototype.or = function () {\n this.expressions.push(\"or\");\n return this;\n };\n /**\n * Conclude expression\n * @function Expression#then\n * @return {Transformation} the transformation this expression is defined for\n */\n Expression.prototype.then = function () {\n return this.getParent().if(this.toString());\n };\n /**\n * @function Expression#height\n * @param {string} operator the comparison operator (e.g. \"<\", \"lt\")\n * @param {string|number} value the right hand side value\n * @return {Expression} this expression\n */\n Expression.prototype.height = function (operator, value) {\n return this.predicate(\"h\", operator, value);\n };\n /**\n * @function Expression#width\n * @param {string} operator the comparison operator (e.g. \"<\", \"lt\")\n * @param {string|number} value the right hand side value\n * @return {Expression} this expression\n */\n Expression.prototype.width = function (operator, value) {\n return this.predicate(\"w\", operator, value);\n };\n /**\n * @function Expression#aspectRatio\n * @param {string} operator the comparison operator (e.g. \"<\", \"lt\")\n * @param {string|number} value the right hand side value\n * @return {Expression} this expression\n */\n Expression.prototype.aspectRatio = function (operator, value) {\n return this.predicate(\"ar\", operator, value);\n };\n /**\n * @function Expression#pages\n * @param {string} operator the comparison operator (e.g. \"<\", \"lt\")\n * @param {string|number} value the right hand side value\n * @return {Expression} this expression\n */\n Expression.prototype.pageCount = function (operator, value) {\n return this.predicate(\"pc\", operator, value);\n };\n /**\n * @function Expression#faces\n * @param {string} operator the comparison operator (e.g. \"<\", \"lt\")\n * @param {string|number} value the right hand side value\n * @return {Expression} this expression\n */\n Expression.prototype.faceCount = function (operator, value) {\n return this.predicate(\"fc\", operator, value);\n };\n Expression.prototype.value = function (value) {\n this.expressions.push(value);\n return this;\n };\n /**\n */\n Expression.variable = function (name, value) {\n return new this(name).value(value);\n };\n /**\n * @returns Expression a new expression with the predefined variable \"width\"\n * @function Expression.width\n */\n Expression.width = function () {\n return new this(\"width\");\n };\n /**\n * @returns Expression a new expression with the predefined variable \"height\"\n * @function Expression.height\n */\n Expression.height = function () {\n return new this(\"height\");\n };\n /**\n * @returns Expression a new expression with the predefined variable \"initialWidth\"\n * @function Expression.initialWidth\n */\n Expression.initialWidth = function () {\n return new this(\"initialWidth\");\n };\n /**\n * @returns Expression a new expression with the predefined variable \"initialHeight\"\n * @function Expression.initialHeight\n */\n Expression.initialHeight = function () {\n return new this(\"initialHeight\");\n };\n /**\n * @returns Expression a new expression with the predefined variable \"aspectRatio\"\n * @function Expression.aspectRatio\n */\n Expression.aspectRatio = function () {\n return new this(\"aspectRatio\");\n };\n /**\n * @returns Expression a new expression with the predefined variable \"initialAspectRatio\"\n * @function Expression.initialAspectRatio\n */\n Expression.initialAspectRatio = function () {\n return new this(\"initialAspectRatio\");\n };\n /**\n * @returns Expression a new expression with the predefined variable \"pageCount\"\n * @function Expression.pageCount\n */\n Expression.pageCount = function () {\n return new this(\"pageCount\");\n };\n /**\n * @returns Expression new expression with the predefined variable \"faceCount\"\n * @function Expression.faceCount\n */\n Expression.faceCount = function () {\n return new this(\"faceCount\");\n };\n /**\n * @returns Expression a new expression with the predefined variable \"currentPage\"\n * @function Expression.currentPage\n */\n Expression.currentPage = function () {\n return new this(\"currentPage\");\n };\n /**\n * @returns Expression a new expression with the predefined variable \"tags\"\n * @function Expression.tags\n */\n Expression.tags = function () {\n return new this(\"tags\");\n };\n /**\n * @returns Expression a new expression with the predefined variable \"pageX\"\n * @function Expression.pageX\n */\n Expression.pageX = function () {\n return new this(\"pageX\");\n };\n /**\n * @returns Expression a new expression with the predefined variable \"pageY\"\n * @function Expression.pageY\n */\n Expression.pageY = function () {\n return new this(\"pageY\");\n };\n return Expression;\n}());\n/**\n * @internal\n */\nvar OPERATORS = {\n \"=\": 'eq',\n \"!=\": 'ne',\n \"<\": 'lt',\n \">\": 'gt',\n \"<=\": 'lte',\n \">=\": 'gte',\n \"&&\": 'and',\n \"||\": 'or',\n \"*\": \"mul\",\n \"/\": \"div\",\n \"+\": \"add\",\n \"-\": \"sub\",\n \"^\": \"pow\",\n};\n/**\n * @internal\n */\nvar PREDEFINED_VARS = {\n \"aspect_ratio\": \"ar\",\n \"aspectRatio\": \"ar\",\n \"current_page\": \"cp\",\n \"currentPage\": \"cp\",\n \"preview:duration\": \"preview:duration\",\n \"duration\": \"du\",\n \"face_count\": \"fc\",\n \"faceCount\": \"fc\",\n \"height\": \"h\",\n \"initial_aspect_ratio\": \"iar\",\n \"initial_duration\": \"idu\",\n \"initial_height\": \"ih\",\n \"initial_width\": \"iw\",\n \"initialAspectRatio\": \"iar\",\n \"initialDuration\": \"idu\",\n \"initialHeight\": \"ih\",\n \"initialWidth\": \"iw\",\n \"page_count\": \"pc\",\n \"page_x\": \"px\",\n \"page_y\": \"py\",\n \"pageCount\": \"pc\",\n \"pageX\": \"px\",\n \"pageY\": \"py\",\n \"tags\": \"tags\",\n \"width\": \"w\"\n};\n\nmodule.exports = Expression;\n\n\n//# sourceURL=webpack://cloudinaryVideoPlayer/../node_modules/@cloudinary/url-gen/backwards/expression.cjs?");
|
|
180
180
|
|
|
181
181
|
/***/ }),
|
|
182
182
|
|
|
@@ -188,7 +188,7 @@ eval("\n\n/**\n * Represents a transformation expression.\n * @param {string} ex
|
|
|
188
188
|
/***/ (function(module, exports, __webpack_require__) {
|
|
189
189
|
|
|
190
190
|
"use strict";
|
|
191
|
-
eval("\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar backwards_transformationProcessing_processLayer = __webpack_require__(/*! ./transformationProcessing/processLayer.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/transformationProcessing/processLayer.cjs\");\nvar backwards_transformationProcessing_processIf = __webpack_require__(/*! ./transformationProcessing/processIf.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/transformationProcessing/processIf.cjs\");\nvar backwards_utils_toArray = __webpack_require__(/*! ./utils/toArray.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/toArray.cjs\");\nvar backwards_transformationProcessing_processRadius = __webpack_require__(/*! ./transformationProcessing/processRadius.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/transformationProcessing/processRadius.cjs\");\nvar backwards_utils_isObject = __webpack_require__(/*! ./utils/isObject.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/isObject.cjs\");\nvar backwards_transformationProcessing_processCustomFunction = __webpack_require__(/*! ./transformationProcessing/processCustomFunction.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/transformationProcessing/processCustomFunction.cjs\");\nvar backwards_transformationProcessing_processCustomPreFunction = __webpack_require__(/*! ./transformationProcessing/processCustomPreFunction.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/transformationProcessing/processCustomPreFunction.cjs\");\nvar backwards_utils_splitRange = __webpack_require__(/*! ./utils/splitRange.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/splitRange.cjs\");\nvar backwards_utils_legacyNormalizeExpression = __webpack_require__(/*! ./utils/legacyNormalizeExpression.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/legacyNormalizeExpression.cjs\");\nvar backwards_utils_norm_range_values = __webpack_require__(/*! ./utils/norm_range_values.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/norm_range_values.cjs\");\nvar backwards_transformationProcessing_processVideoParams = __webpack_require__(/*! ./transformationProcessing/processVideoParams.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/transformationProcessing/processVideoParams.cjs\");\nvar backwards_transformation = __webpack_require__(/*! ./transformation.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/transformation.cjs\");\nvar backwards_transformationProcessing_processDpr = __webpack_require__(/*! ./transformationProcessing/processDpr.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/transformationProcessing/processDpr.cjs\");\n__webpack_require__(/*! ../internal/utils/base64Encode.cjs */ \"../node_modules/@cloudinary/url-gen/internal/utils/base64Encode.cjs\");\n__webpack_require__(/*! ./consts.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/consts.cjs\");\n__webpack_require__(/*! ./utils/smartEscape.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/smartEscape.cjs\");\n__webpack_require__(/*! ./legacyLayer/textlayer.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/legacyLayer/textlayer.cjs\");\n__webpack_require__(/*! ../tslib.es6-18ed4f64.cjs */ \"../node_modules/@cloudinary/url-gen/tslib.es6-18ed4f64.cjs\");\n__webpack_require__(/*! ./legacyLayer/layer.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/legacyLayer/layer.cjs\");\n__webpack_require__(/*! ./utils/snakeCase.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/snakeCase.cjs\");\n__webpack_require__(/*! ./utils/isEmpty.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/isEmpty.cjs\");\n__webpack_require__(/*! ./utils/isNumberLike.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/isNumberLike.cjs\");\n__webpack_require__(/*! ./condition.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/condition.cjs\");\n__webpack_require__(/*! ./expression.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/expression.cjs\");\n__webpack_require__(/*! ./configuration.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/configuration.cjs\");\n__webpack_require__(/*! ../internal/utils/cloneDeep.cjs */ \"../node_modules/@cloudinary/url-gen/internal/utils/cloneDeep.cjs\");\n__webpack_require__(/*! ./utils/legacyBaseUtil.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/legacyBaseUtil.cjs\");\n__webpack_require__(/*! ./legacyLayer/subtitleslayer.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/legacyLayer/subtitleslayer.cjs\");\n__webpack_require__(/*! ./legacyLayer/fetchlayer.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/legacyLayer/fetchlayer.cjs\");\n__webpack_require__(/*! ../internal/utils/dataStructureUtils.cjs */ \"../node_modules/@cloudinary/url-gen/internal/utils/dataStructureUtils.cjs\");\n__webpack_require__(/*! ./utils/isFunction.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/isFunction.cjs\");\n\n/**\n * Things dropped\n * - responsive_width\n * - config().dpr\n * - SSL Detected\n * - Provisioning API\n * - Magical configuration auto-mapping (everything has to be explicit)\n * - Signatures\n * - Secure is default true\n * @param transformationOptions\n */\nfunction generateTransformationString(transformationOptions) {\n if (typeof transformationOptions === 'string') {\n return transformationOptions;\n }\n if (transformationOptions instanceof backwards_transformation[\"default\"]) {\n return transformationOptions.toString();\n }\n if (Array.isArray(transformationOptions)) {\n return transformationOptions\n .map(function (singleTransformation) {\n return generateTransformationString(singleTransformation);\n }).filter(function (a) { return a; }).join('/');\n }\n // let responsive_width = consumeOption(transformationOptions, \"responsive_width\", config().responsive_width);\n var width;\n var height;\n var size = transformationOptions.size;\n var hasLayer = transformationOptions.overlay || transformationOptions.underlay;\n var crop = transformationOptions.crop;\n var angle = backwards_utils_toArray.toArray(transformationOptions.angle).join(\".\");\n var background = (transformationOptions.background || '').replace(/^#/, \"rgb:\");\n var color = (transformationOptions.color || '').replace(/^#/, \"rgb:\");\n var flags = (backwards_utils_toArray.toArray(transformationOptions.flags || [])).join('.');\n var dpr = transformationOptions.dpr === undefined ? transformationOptions.dpr : backwards_transformationProcessing_processDpr.processDpr(transformationOptions.dpr);\n var overlay = backwards_transformationProcessing_processLayer.processLayer(transformationOptions.overlay);\n var radius = backwards_transformationProcessing_processRadius.processRadius(transformationOptions.radius);\n var underlay = backwards_transformationProcessing_processLayer.processLayer(transformationOptions.underlay);\n var ifValue = backwards_transformationProcessing_processIf.process_if(transformationOptions.if);\n var custom_function = backwards_transformationProcessing_processCustomFunction.processCustomFunction(transformationOptions.custom_function);\n var custom_pre_function = backwards_transformationProcessing_processCustomPreFunction.processCustomPreFunction(transformationOptions.custom_pre_function);\n // These will change down the line, heads up!\n var fps = transformationOptions.fps;\n var namedTransformations = [];\n var childTransformations = backwards_utils_toArray.toArray(transformationOptions.transformation || []);\n var effect = transformationOptions.effect;\n // TODO, Do we need this?\n var no_html_sizes = hasLayer || angle || crop === \"fit\" || crop === \"limit\";\n if (size) {\n var _a = size.split(\"x\"), sizeWidth = _a[0], sizeHeight = _a[1];\n width = sizeWidth;\n height = sizeHeight;\n }\n else {\n width = transformationOptions.width;\n height = transformationOptions.height;\n }\n if (width && (width.toString().indexOf(\"auto\") === 0 || no_html_sizes || parseFloat(width.toString()) < 1)) {\n delete transformationOptions.width;\n }\n if (height && (no_html_sizes || parseFloat(height.toString()) < 1)) {\n delete transformationOptions.height;\n }\n // Is any child transformation an object?\n var isAnyChildAnObject = childTransformations.some(function (transformation) { return typeof transformation === 'object'; });\n // If array of objects, or array of strings?\n if (isAnyChildAnObject) {\n childTransformations = childTransformations.map(function (transformation) {\n if (backwards_utils_isObject.isObject(transformation)) {\n return generateTransformationString(transformation);\n }\n else {\n return generateTransformationString({ transformation: transformation });\n }\n }).filter(function (a) { return a; });\n }\n else {\n namedTransformations = childTransformations.join(\".\");\n childTransformations = []; // Reset child transfomrations\n }\n if (Array.isArray(effect)) {\n effect = effect.join(\":\");\n }\n else if (backwards_utils_isObject.isObject(effect)) {\n effect = Object.entries(effect).map(function (_a) {\n var key = _a[0], value = _a[1];\n return key + \":\" + value;\n });\n }\n var border = transformationOptions.border;\n if (backwards_utils_isObject.isObject(border)) {\n border = (border.width != null ? border.width : 2) + \"px_solid_\" + (border.color != null ? border.color : \"black\").replace(/^#/, 'rgb:');\n }\n else {\n // @ts-ignore\n if (/^\\d+$/.exec(border)) { // fallback to html border attributes\n transformationOptions.border = border;\n border = void 0;\n }\n }\n if (Array.isArray(fps)) {\n fps = fps.join('-');\n }\n // ocr(value) {\n // return this.param(value, \"ocr\", \"ocr\");\n // }\n var urlParams = {\n a: backwards_utils_legacyNormalizeExpression.legacyNormalizeExpression(angle),\n ar: backwards_utils_legacyNormalizeExpression.legacyNormalizeExpression(transformationOptions.aspect_ratio),\n b: background,\n bo: border,\n c: crop,\n co: color,\n dpr: backwards_utils_legacyNormalizeExpression.legacyNormalizeExpression(dpr),\n e: backwards_utils_legacyNormalizeExpression.legacyNormalizeExpression(effect),\n fl: flags,\n fn: custom_function || custom_pre_function,\n fps: fps,\n h: backwards_utils_legacyNormalizeExpression.legacyNormalizeExpression(height),\n ki: backwards_utils_legacyNormalizeExpression.legacyNormalizeExpression(transformationOptions.keyframe_interval),\n l: overlay,\n o: backwards_utils_legacyNormalizeExpression.legacyNormalizeExpression(transformationOptions.opacity),\n q: backwards_utils_legacyNormalizeExpression.legacyNormalizeExpression(transformationOptions.quality),\n r: radius,\n t: namedTransformations,\n u: underlay,\n w: backwards_utils_legacyNormalizeExpression.legacyNormalizeExpression(width),\n x: backwards_utils_legacyNormalizeExpression.legacyNormalizeExpression(transformationOptions.x),\n y: backwards_utils_legacyNormalizeExpression.legacyNormalizeExpression(transformationOptions.y),\n z: backwards_utils_legacyNormalizeExpression.legacyNormalizeExpression(transformationOptions.zoom),\n ac: transformationOptions.audio_codec,\n af: transformationOptions.audio_frequency,\n br: transformationOptions.bit_rate,\n cs: transformationOptions.color_space,\n d: transformationOptions.default_image,\n dl: transformationOptions.delay,\n dn: transformationOptions.density,\n du: backwards_utils_norm_range_values.normRangeValues(transformationOptions.duration),\n eo: backwards_utils_norm_range_values.normRangeValues(backwards_utils_splitRange.splitRange(transformationOptions.offset)[1]),\n f: transformationOptions.fetch_format,\n g: transformationOptions.gravity,\n pg: transformationOptions.page,\n p: transformationOptions.prefix,\n so: backwards_utils_norm_range_values.normRangeValues(backwards_utils_splitRange.splitRange(transformationOptions.offset)[0]),\n sp: transformationOptions.streaming_profile,\n vc: backwards_transformationProcessing_processVideoParams.processVideoParams(transformationOptions.video_codec),\n vs: transformationOptions.video_sampling\n };\n // We can accept variables in here transformationOptions, or in here transformationOptions.variables\n var variables = Object.entries(transformationOptions)\n .filter(function (_a) {\n var key = _a[0]; _a[1];\n return key.startsWith('$');\n })\n .map(function (_a) {\n var key = _a[0], value = _a[1];\n // delete transformationOptions[key]; // Delete the variables, so we don't add them twice\n return key + \"_\" + backwards_utils_legacyNormalizeExpression.legacyNormalizeExpression(value);\n }).sort().concat(\n // @ts-ignore\n (transformationOptions.variables || []).map(function (_a) {\n var name = _a[0], value = _a[1];\n return name + \"_\" + backwards_utils_legacyNormalizeExpression.legacyNormalizeExpression(value);\n })).join(',');\n // Clean up!\n var urlImageTransfomrations = Object.entries(urlParams)\n .filter(function (_a) {\n _a[0]; var value = _a[1];\n if (typeof value === 'undefined' || value === null) {\n return false;\n }\n if (typeof value === 'string' && value.length === 0) {\n return false;\n }\n if (Array.isArray(value) && value.length === 0) {\n return false;\n }\n return true;\n })\n .map(function (_a) {\n var key = _a[0], value = _a[1];\n return key + \"_\" + value;\n })\n .sort()\n .join(',');\n var finalTransformationString = [\n ifValue,\n variables,\n urlImageTransfomrations,\n transformationOptions.raw_transformation\n ].filter(function (a) { return a; }).join(\",\");\n if (finalTransformationString) {\n childTransformations.push(finalTransformationString);\n }\n // console.log(childTransformations);\n return childTransformations.join(\"/\");\n}\n\nexports.generateTransformationString = generateTransformationString;\n\n\n//# sourceURL=webpack://cloudinaryVideoPlayer/../node_modules/@cloudinary/url-gen/backwards/generateTransformationString.cjs?");
|
|
191
|
+
eval("\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar backwards_transformationProcessing_processLayer = __webpack_require__(/*! ./transformationProcessing/processLayer.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/transformationProcessing/processLayer.cjs\");\nvar backwards_transformationProcessing_processIf = __webpack_require__(/*! ./transformationProcessing/processIf.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/transformationProcessing/processIf.cjs\");\nvar backwards_utils_toArray = __webpack_require__(/*! ./utils/toArray.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/toArray.cjs\");\nvar backwards_transformationProcessing_processRadius = __webpack_require__(/*! ./transformationProcessing/processRadius.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/transformationProcessing/processRadius.cjs\");\nvar backwards_utils_isObject = __webpack_require__(/*! ./utils/isObject.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/isObject.cjs\");\nvar backwards_transformationProcessing_processCustomFunction = __webpack_require__(/*! ./transformationProcessing/processCustomFunction.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/transformationProcessing/processCustomFunction.cjs\");\nvar backwards_transformationProcessing_processCustomPreFunction = __webpack_require__(/*! ./transformationProcessing/processCustomPreFunction.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/transformationProcessing/processCustomPreFunction.cjs\");\nvar backwards_utils_splitRange = __webpack_require__(/*! ./utils/splitRange.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/splitRange.cjs\");\nvar backwards_utils_legacyNormalizeExpression = __webpack_require__(/*! ./utils/legacyNormalizeExpression.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/legacyNormalizeExpression.cjs\");\nvar backwards_utils_norm_range_values = __webpack_require__(/*! ./utils/norm_range_values.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/norm_range_values.cjs\");\nvar backwards_transformationProcessing_processVideoParams = __webpack_require__(/*! ./transformationProcessing/processVideoParams.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/transformationProcessing/processVideoParams.cjs\");\nvar backwards_transformation = __webpack_require__(/*! ./transformation.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/transformation.cjs\");\nvar backwards_transformationProcessing_processDpr = __webpack_require__(/*! ./transformationProcessing/processDpr.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/transformationProcessing/processDpr.cjs\");\nvar backwards_utils_isNumberLike = __webpack_require__(/*! ./utils/isNumberLike.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/isNumberLike.cjs\");\n__webpack_require__(/*! ../internal/utils/base64Encode.cjs */ \"../node_modules/@cloudinary/url-gen/internal/utils/base64Encode.cjs\");\n__webpack_require__(/*! ./consts.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/consts.cjs\");\n__webpack_require__(/*! ./utils/smartEscape.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/smartEscape.cjs\");\n__webpack_require__(/*! ./legacyLayer/textlayer.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/legacyLayer/textlayer.cjs\");\n__webpack_require__(/*! ../tslib.es6-bcbd7c13.cjs */ \"../node_modules/@cloudinary/url-gen/tslib.es6-bcbd7c13.cjs\");\n__webpack_require__(/*! ./legacyLayer/layer.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/legacyLayer/layer.cjs\");\n__webpack_require__(/*! ./utils/snakeCase.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/snakeCase.cjs\");\n__webpack_require__(/*! ./utils/isEmpty.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/isEmpty.cjs\");\n__webpack_require__(/*! ./condition.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/condition.cjs\");\n__webpack_require__(/*! ./expression.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/expression.cjs\");\n__webpack_require__(/*! ./configuration.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/configuration.cjs\");\n__webpack_require__(/*! ../internal/utils/cloneDeep.cjs */ \"../node_modules/@cloudinary/url-gen/internal/utils/cloneDeep.cjs\");\n__webpack_require__(/*! ./utils/legacyBaseUtil.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/legacyBaseUtil.cjs\");\n__webpack_require__(/*! ./legacyLayer/subtitleslayer.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/legacyLayer/subtitleslayer.cjs\");\n__webpack_require__(/*! ./legacyLayer/fetchlayer.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/legacyLayer/fetchlayer.cjs\");\n__webpack_require__(/*! ../internal/utils/dataStructureUtils.cjs */ \"../node_modules/@cloudinary/url-gen/internal/utils/dataStructureUtils.cjs\");\n__webpack_require__(/*! ./utils/isFunction.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/isFunction.cjs\");\n\n/**\n * Things dropped\n * - responsive_width\n * - config().dpr\n * - SSL Detected\n * - Provisioning API\n * - Magical configuration auto-mapping (everything has to be explicit)\n * - Signatures\n * - Secure is default true\n * @param transformationOptions\n */\nfunction generateTransformationString(transformationOptions) {\n if (typeof transformationOptions === 'string') {\n return transformationOptions;\n }\n if (transformationOptions instanceof backwards_transformation[\"default\"]) {\n return transformationOptions.toString();\n }\n if (Array.isArray(transformationOptions)) {\n return transformationOptions\n .map(function (singleTransformation) {\n return generateTransformationString(singleTransformation);\n }).filter(function (a) { return a; }).join('/');\n }\n // let responsive_width = consumeOption(transformationOptions, \"responsive_width\", config().responsive_width);\n var width;\n var height;\n var size = transformationOptions.size;\n var hasLayer = transformationOptions.overlay || transformationOptions.underlay;\n var crop = transformationOptions.crop;\n var angle = backwards_utils_toArray.toArray(transformationOptions.angle).join(\".\");\n var background = (transformationOptions.background || '').replace(/^#/, \"rgb:\");\n var color = (transformationOptions.color || '').replace(/^#/, \"rgb:\");\n var flags = (backwards_utils_toArray.toArray(transformationOptions.flags || [])).join('.');\n var dpr = transformationOptions.dpr === undefined ? transformationOptions.dpr : backwards_transformationProcessing_processDpr.processDpr(transformationOptions.dpr);\n var overlay = backwards_transformationProcessing_processLayer.processLayer(transformationOptions.overlay);\n var radius = backwards_transformationProcessing_processRadius.processRadius(transformationOptions.radius);\n var underlay = backwards_transformationProcessing_processLayer.processLayer(transformationOptions.underlay);\n var ifValue = backwards_transformationProcessing_processIf.process_if(transformationOptions.if);\n var custom_function = backwards_transformationProcessing_processCustomFunction.processCustomFunction(transformationOptions.custom_function);\n var custom_pre_function = backwards_transformationProcessing_processCustomPreFunction.processCustomPreFunction(transformationOptions.custom_pre_function);\n // These will change down the line, heads up!\n var fps = transformationOptions.fps;\n var namedTransformations = [];\n var childTransformations = backwards_utils_toArray.toArray(transformationOptions.transformation || []);\n var effect = transformationOptions.effect;\n // TODO, Do we need this?\n var no_html_sizes = hasLayer || angle || crop === \"fit\" || crop === \"limit\";\n if (size) {\n var _a = size.split(\"x\"), sizeWidth = _a[0], sizeHeight = _a[1];\n width = sizeWidth;\n height = sizeHeight;\n }\n else {\n width = transformationOptions.width;\n height = transformationOptions.height;\n }\n if (width && (width.toString().indexOf(\"auto\") === 0 || no_html_sizes || parseFloat(width.toString()) < 1)) {\n delete transformationOptions.width;\n }\n if (height && (no_html_sizes || parseFloat(height.toString()) < 1)) {\n delete transformationOptions.height;\n }\n // Is any child transformation an object?\n var isAnyChildAnObject = childTransformations.some(function (transformation) { return typeof transformation === 'object'; });\n // If array of objects, or array of strings?\n if (isAnyChildAnObject) {\n childTransformations = childTransformations.map(function (transformation) {\n if (backwards_utils_isObject.isObject(transformation)) {\n return generateTransformationString(transformation);\n }\n else {\n return generateTransformationString({ transformation: transformation });\n }\n }).filter(function (a) { return a; });\n }\n else {\n namedTransformations = childTransformations.join(\".\");\n childTransformations = []; // Reset child transfomrations\n }\n if (Array.isArray(effect)) {\n effect = effect.join(\":\");\n }\n else if (backwards_utils_isObject.isObject(effect)) {\n effect = Object.entries(effect).map(function (_a) {\n var key = _a[0], value = _a[1];\n return \"\".concat(key, \":\").concat(value);\n });\n }\n var border = transformationOptions.border;\n if (backwards_utils_isObject.isObject(border)) {\n border = \"\".concat(border.width != null ? border.width : 2, \"px_solid_\").concat((border.color != null ? border.color : \"black\").replace(/^#/, 'rgb:'));\n }\n else {\n // @ts-ignore\n if (/^\\d+$/.exec(border)) { // fallback to html border attributes\n transformationOptions.border = border;\n border = void 0;\n }\n }\n if (Array.isArray(fps)) {\n fps = fps.join('-');\n }\n // ocr(value) {\n // return this.param(value, \"ocr\", \"ocr\");\n // }\n var urlParams = {\n a: backwards_utils_legacyNormalizeExpression.legacyNormalizeExpression(angle),\n ar: backwards_utils_legacyNormalizeExpression.legacyNormalizeExpression(transformationOptions.aspect_ratio),\n b: background,\n bo: border,\n c: crop,\n co: color,\n dpr: backwards_utils_legacyNormalizeExpression.legacyNormalizeExpression(dpr),\n e: backwards_utils_legacyNormalizeExpression.legacyNormalizeExpression(effect),\n fl: flags,\n fn: custom_function || custom_pre_function,\n fps: fps,\n h: backwards_utils_legacyNormalizeExpression.legacyNormalizeExpression(height),\n ki: backwards_utils_legacyNormalizeExpression.legacyNormalizeExpression(transformationOptions.keyframe_interval),\n l: overlay,\n o: backwards_utils_legacyNormalizeExpression.legacyNormalizeExpression(transformationOptions.opacity),\n q: backwards_utils_legacyNormalizeExpression.legacyNormalizeExpression(transformationOptions.quality),\n r: radius,\n t: namedTransformations,\n u: underlay,\n w: backwards_utils_legacyNormalizeExpression.legacyNormalizeExpression(width),\n x: backwards_utils_legacyNormalizeExpression.legacyNormalizeExpression(transformationOptions.x),\n y: backwards_utils_legacyNormalizeExpression.legacyNormalizeExpression(transformationOptions.y),\n z: backwards_utils_legacyNormalizeExpression.legacyNormalizeExpression(transformationOptions.zoom),\n ac: transformationOptions.audio_codec,\n af: transformationOptions.audio_frequency,\n br: transformationOptions.bit_rate,\n cs: transformationOptions.color_space,\n d: transformationOptions.default_image,\n dl: transformationOptions.delay,\n dn: transformationOptions.density,\n du: backwards_utils_norm_range_values.normRangeValues(transformationOptions.duration),\n eo: backwards_utils_norm_range_values.normRangeValues(transformationOptions.end_offset || backwards_utils_isNumberLike.isNumberLike(transformationOptions.end_offset) ? transformationOptions.end_offset : backwards_utils_splitRange.splitRange(transformationOptions.offset)[1]),\n f: transformationOptions.fetch_format,\n g: transformationOptions.gravity,\n pg: transformationOptions.page,\n p: transformationOptions.prefix,\n so: backwards_utils_norm_range_values.normRangeValues(transformationOptions.start_offset || backwards_utils_isNumberLike.isNumberLike(transformationOptions.start_offset) ? transformationOptions.start_offset : backwards_utils_splitRange.splitRange(transformationOptions.offset)[0]),\n sp: transformationOptions.streaming_profile,\n vc: backwards_transformationProcessing_processVideoParams.processVideoParams(transformationOptions.video_codec),\n vs: transformationOptions.video_sampling\n };\n // We can accept variables in here transformationOptions, or in here transformationOptions.variables\n var variables = Object.entries(transformationOptions)\n .filter(function (_a) {\n var key = _a[0]; _a[1];\n return key.startsWith('$');\n })\n .map(function (_a) {\n var key = _a[0], value = _a[1];\n // delete transformationOptions[key]; // Delete the variables, so we don't add them twice\n return \"\".concat(key, \"_\").concat(backwards_utils_legacyNormalizeExpression.legacyNormalizeExpression(value));\n }).sort().concat(\n // @ts-ignore\n (transformationOptions.variables || []).map(function (_a) {\n var name = _a[0], value = _a[1];\n return \"\".concat(name, \"_\").concat(backwards_utils_legacyNormalizeExpression.legacyNormalizeExpression(value));\n })).join(',');\n // Clean up!\n var urlImageTransfomrations = Object.entries(urlParams)\n .filter(function (_a) {\n _a[0]; var value = _a[1];\n if (typeof value === 'undefined' || value === null) {\n return false;\n }\n if (typeof value === 'string' && value.length === 0) {\n return false;\n }\n if (Array.isArray(value) && value.length === 0) {\n return false;\n }\n return true;\n })\n .map(function (_a) {\n var key = _a[0], value = _a[1];\n return \"\".concat(key, \"_\").concat(value);\n })\n .sort()\n .join(',');\n var finalTransformationString = [\n ifValue,\n variables,\n urlImageTransfomrations,\n transformationOptions.raw_transformation\n ].filter(function (a) { return a; }).join(\",\");\n if (finalTransformationString) {\n childTransformations.push(finalTransformationString);\n }\n // console.log(childTransformations);\n return childTransformations.join(\"/\");\n}\n\nexports.generateTransformationString = generateTransformationString;\n\n\n//# sourceURL=webpack://cloudinaryVideoPlayer/../node_modules/@cloudinary/url-gen/backwards/generateTransformationString.cjs?");
|
|
192
192
|
|
|
193
193
|
/***/ }),
|
|
194
194
|
|
|
@@ -200,7 +200,7 @@ eval("\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar
|
|
|
200
200
|
/***/ (function(module, exports, __webpack_require__) {
|
|
201
201
|
|
|
202
202
|
"use strict";
|
|
203
|
-
eval("\n\nvar tslib_es6 = __webpack_require__(/*! ../../tslib.es6-
|
|
203
|
+
eval("\n\nvar tslib_es6 = __webpack_require__(/*! ../../tslib.es6-bcbd7c13.cjs */ \"../node_modules/@cloudinary/url-gen/tslib.es6-bcbd7c13.cjs\");\nvar backwards_legacyLayer_layer = __webpack_require__(/*! ./layer.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/legacyLayer/layer.cjs\");\nvar internal_utils_dataStructureUtils = __webpack_require__(/*! ../../internal/utils/dataStructureUtils.cjs */ \"../node_modules/@cloudinary/url-gen/internal/utils/dataStructureUtils.cjs\");\nvar internal_utils_base64Encode = __webpack_require__(/*! ../../internal/utils/base64Encode.cjs */ \"../node_modules/@cloudinary/url-gen/internal/utils/base64Encode.cjs\");\n__webpack_require__(/*! ../utils/snakeCase.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/snakeCase.cjs\");\n\nvar FetchLayer = /** @class */ (function (_super) {\n tslib_es6.__extends(FetchLayer, _super);\n /**\n * @class FetchLayer\n * @classdesc Creates an image layer using a remote URL.\n * @param {Object|string} options - layer parameters or a url\n * @param {string} options.url the url of the image to fetch\n */\n function FetchLayer(options) {\n var _this = _super.call(this, options) || this;\n if (internal_utils_dataStructureUtils.isString(options)) {\n _this.options.url = options;\n }\n else if (options != null ? options.url : void 0) {\n _this.options.url = options.url;\n }\n return _this;\n }\n FetchLayer.prototype.url = function (url) {\n this.options.url = url;\n return this;\n };\n /**\n * generate the string representation of the layer\n * @function FetchLayer#toString\n * @return {String}\n */\n FetchLayer.prototype.toString = function () {\n return \"fetch:\".concat(internal_utils_base64Encode.base64Encode(this.options.url));\n };\n return FetchLayer;\n}(backwards_legacyLayer_layer));\n\nmodule.exports = FetchLayer;\n\n\n//# sourceURL=webpack://cloudinaryVideoPlayer/../node_modules/@cloudinary/url-gen/backwards/legacyLayer/fetchlayer.cjs?");
|
|
204
204
|
|
|
205
205
|
/***/ }),
|
|
206
206
|
|
|
@@ -224,7 +224,7 @@ eval("\n\nvar backwards_utils_snakeCase = __webpack_require__(/*! ../utils/snake
|
|
|
224
224
|
/***/ (function(module, exports, __webpack_require__) {
|
|
225
225
|
|
|
226
226
|
"use strict";
|
|
227
|
-
eval("\n\nvar tslib_es6 = __webpack_require__(/*! ../../tslib.es6-
|
|
227
|
+
eval("\n\nvar tslib_es6 = __webpack_require__(/*! ../../tslib.es6-bcbd7c13.cjs */ \"../node_modules/@cloudinary/url-gen/tslib.es6-bcbd7c13.cjs\");\nvar backwards_legacyLayer_textlayer = __webpack_require__(/*! ./textlayer.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/legacyLayer/textlayer.cjs\");\n__webpack_require__(/*! ./layer.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/legacyLayer/layer.cjs\");\n__webpack_require__(/*! ../utils/snakeCase.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/snakeCase.cjs\");\n__webpack_require__(/*! ../utils/isEmpty.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/isEmpty.cjs\");\n__webpack_require__(/*! ../utils/smartEscape.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/smartEscape.cjs\");\n__webpack_require__(/*! ../utils/isNumberLike.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/isNumberLike.cjs\");\n\nvar SubtitlesLayer = /** @class */ (function (_super) {\n tslib_es6.__extends(SubtitlesLayer, _super);\n /**\n * Represent a subtitles layer\n * @constructor SubtitlesLayer\n * @param {Object} options - layer parameters\n */\n function SubtitlesLayer(options) {\n var _this = _super.call(this, options) || this;\n _this.options.resourceType = \"subtitles\";\n return _this;\n }\n return SubtitlesLayer;\n}(backwards_legacyLayer_textlayer));\n\nmodule.exports = SubtitlesLayer;\n\n\n//# sourceURL=webpack://cloudinaryVideoPlayer/../node_modules/@cloudinary/url-gen/backwards/legacyLayer/subtitleslayer.cjs?");
|
|
228
228
|
|
|
229
229
|
/***/ }),
|
|
230
230
|
|
|
@@ -236,7 +236,7 @@ eval("\n\nvar tslib_es6 = __webpack_require__(/*! ../../tslib.es6-18ed4f64.cjs *
|
|
|
236
236
|
/***/ (function(module, exports, __webpack_require__) {
|
|
237
237
|
|
|
238
238
|
"use strict";
|
|
239
|
-
eval("\n\nvar tslib_es6 = __webpack_require__(/*! ../../tslib.es6-
|
|
239
|
+
eval("\n\nvar tslib_es6 = __webpack_require__(/*! ../../tslib.es6-bcbd7c13.cjs */ \"../node_modules/@cloudinary/url-gen/tslib.es6-bcbd7c13.cjs\");\nvar backwards_legacyLayer_layer = __webpack_require__(/*! ./layer.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/legacyLayer/layer.cjs\");\nvar backwards_utils_snakeCase = __webpack_require__(/*! ../utils/snakeCase.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/snakeCase.cjs\");\nvar backwards_utils_isEmpty = __webpack_require__(/*! ../utils/isEmpty.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/isEmpty.cjs\");\nvar backwards_utils_smartEscape = __webpack_require__(/*! ../utils/smartEscape.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/smartEscape.cjs\");\nvar backwards_utils_isNumberLike = __webpack_require__(/*! ../utils/isNumberLike.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/isNumberLike.cjs\");\n\nvar TextLayer = /** @class */ (function (_super) {\n tslib_es6.__extends(TextLayer, _super);\n /**\n * @constructor TextLayer\n * @param {Object} options - layer parameters\n */\n function TextLayer(options) {\n var _this = this;\n var keys;\n _this = _super.call(this, options) || this;\n keys = [\"resourceType\", \"resourceType\", \"fontFamily\", \"fontSize\", \"fontWeight\", \"fontStyle\", \"textDecoration\", \"textAlign\", \"stroke\", \"letterSpacing\", \"lineSpacing\", \"fontHinting\", \"fontAntialiasing\", \"text\"];\n if (options != null) {\n keys.forEach(function (key) {\n var ref;\n // @ts-ignore\n return _this.options[key] = (ref = options[key]) != null ? ref : options[backwards_utils_snakeCase.snakeCase(key)];\n });\n }\n _this.options.resourceType = \"text\";\n return _this;\n }\n //@ts-ignore\n TextLayer.prototype.resourceType = function (resourceType) {\n throw \"Cannot modify resourceType for text layers\";\n };\n //@ts-ignore\n TextLayer.prototype.type = function (type) {\n throw \"Cannot modify type for text layers\";\n };\n TextLayer.prototype.format = function (format) {\n throw \"Cannot modify format for text layers\";\n };\n TextLayer.prototype.fontFamily = function (fontFamily) {\n this.options.fontFamily = fontFamily;\n return this;\n };\n TextLayer.prototype.fontSize = function (fontSize) {\n this.options.fontSize = fontSize;\n return this;\n };\n TextLayer.prototype.fontWeight = function (fontWeight) {\n this.options.fontWeight = fontWeight;\n return this;\n };\n TextLayer.prototype.fontStyle = function (fontStyle) {\n this.options.fontStyle = fontStyle;\n return this;\n };\n TextLayer.prototype.textDecoration = function (textDecoration) {\n this.options.textDecoration = textDecoration;\n return this;\n };\n TextLayer.prototype.textAlign = function (textAlign) {\n this.options.textAlign = textAlign;\n return this;\n };\n TextLayer.prototype.stroke = function (stroke) {\n this.options.stroke = stroke;\n return this;\n };\n TextLayer.prototype.letterSpacing = function (letterSpacing) {\n this.options.letterSpacing = letterSpacing;\n return this;\n };\n TextLayer.prototype.lineSpacing = function (lineSpacing) {\n this.options.lineSpacing = lineSpacing;\n return this;\n };\n TextLayer.prototype.fontHinting = function (fontHinting) {\n this.options.fontHinting = fontHinting;\n return this;\n };\n TextLayer.prototype.fontAntialiasing = function (fontAntialiasing) {\n this.options.fontAntialiasing = fontAntialiasing;\n return this;\n };\n TextLayer.prototype.text = function (text) {\n this.options.text = text;\n return this;\n };\n /**\n * generate the string representation of the layer\n * @function TextLayer#toString\n * @return {String}\n */\n TextLayer.prototype.toString = function () {\n var components, hasPublicId, hasStyle, publicId, re, res, start, style, text, textSource;\n style = this.textStyleIdentifier();\n if (this.options.publicId != null) {\n publicId = this.getFullPublicId();\n }\n if (this.options.text != null) {\n hasPublicId = !backwards_utils_isEmpty.isEmpty(publicId);\n hasStyle = !backwards_utils_isEmpty.isEmpty(style);\n if (hasPublicId && hasStyle || !hasPublicId && !hasStyle) {\n throw \"Must supply either style parameters or a public_id when providing text parameter in a text overlay/underlay, but not both!\";\n }\n re = /\\$\\([a-zA-Z]\\w*\\)/g;\n start = 0;\n // textSource = text.replace(new RegExp(\"[,/]\", 'g'), (c)-> \"%#{c.charCodeAt(0).toString(16).toUpperCase()}\")\n textSource = backwards_utils_smartEscape.smartEscape(this.options.text, /[,\\/]/g);\n text = \"\";\n while (res = re.exec(textSource)) {\n text += backwards_utils_smartEscape.smartEscape(textSource.slice(start, res.index));\n text += res[0];\n start = res.index + res[0].length;\n }\n text += backwards_utils_smartEscape.smartEscape(textSource.slice(start));\n }\n components = [this.options.resourceType, style, publicId, text];\n return (components).filter(function (x) { return !!x; }).join(\":\");\n };\n TextLayer.prototype.textStyleIdentifier = function () {\n var components;\n components = [];\n if (this.options.fontWeight !== \"normal\") {\n components.push(this.options.fontWeight);\n }\n if (this.options.fontStyle !== \"normal\") {\n components.push(this.options.fontStyle);\n }\n if (this.options.textDecoration !== \"none\") {\n components.push(this.options.textDecoration);\n }\n components.push(this.options.textAlign);\n if (this.options.stroke !== \"none\") {\n components.push(this.options.stroke);\n }\n if (!(backwards_utils_isEmpty.isEmpty(this.options.letterSpacing) && !backwards_utils_isNumberLike.isNumberLike(this.options.letterSpacing))) {\n components.push(\"letter_spacing_\" + this.options.letterSpacing);\n }\n if (!(backwards_utils_isEmpty.isEmpty(this.options.lineSpacing) && !backwards_utils_isNumberLike.isNumberLike(this.options.lineSpacing))) {\n components.push(\"line_spacing_\" + this.options.lineSpacing);\n }\n if (!(backwards_utils_isEmpty.isEmpty(this.options.fontAntialiasing))) {\n components.push(\"antialias_\" + this.options.fontAntialiasing);\n }\n if (!(backwards_utils_isEmpty.isEmpty(this.options.fontHinting))) {\n components.push(\"hinting_\" + this.options.fontHinting);\n }\n if (!backwards_utils_isEmpty.isEmpty(components.filter(function (x) { return !!x; }))) {\n if (backwards_utils_isEmpty.isEmpty(this.options.fontFamily)) {\n throw \"Must supply fontFamily. \".concat(components);\n }\n if (backwards_utils_isEmpty.isEmpty(this.options.fontSize) && !backwards_utils_isNumberLike.isNumberLike(this.options.fontSize)) {\n throw \"Must supply fontSize.\";\n }\n }\n components.unshift(this.options.fontFamily, this.options.fontSize);\n components = components.filter(function (x) { return !!x; }).join(\"_\");\n return components;\n };\n return TextLayer;\n}(backwards_legacyLayer_layer));\n\nmodule.exports = TextLayer;\n\n\n//# sourceURL=webpack://cloudinaryVideoPlayer/../node_modules/@cloudinary/url-gen/backwards/legacyLayer/textlayer.cjs?");
|
|
240
240
|
|
|
241
241
|
/***/ }),
|
|
242
242
|
|
|
@@ -248,7 +248,7 @@ eval("\n\nvar tslib_es6 = __webpack_require__(/*! ../../tslib.es6-18ed4f64.cjs *
|
|
|
248
248
|
/***/ (function(module, exports, __webpack_require__) {
|
|
249
249
|
|
|
250
250
|
"use strict";
|
|
251
|
-
eval("\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar tslib_es6 = __webpack_require__(/*! ../tslib.es6-18ed4f64.cjs */ \"../node_modules/@cloudinary/url-gen/tslib.es6-18ed4f64.cjs\");\nvar backwards_condition = __webpack_require__(/*! ./condition.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/condition.cjs\");\nvar backwards_configuration = __webpack_require__(/*! ./configuration.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/configuration.cjs\");\nvar internal_utils_cloneDeep = __webpack_require__(/*! ../internal/utils/cloneDeep.cjs */ \"../node_modules/@cloudinary/url-gen/internal/utils/cloneDeep.cjs\");\nvar backwards_utils_legacyBaseUtil = __webpack_require__(/*! ./utils/legacyBaseUtil.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/legacyBaseUtil.cjs\");\nvar backwards_utils_snakeCase = __webpack_require__(/*! ./utils/snakeCase.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/snakeCase.cjs\");\nvar backwards_expression = __webpack_require__(/*! ./expression.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/expression.cjs\");\nvar backwards_legacyLayer_layer = __webpack_require__(/*! ./legacyLayer/layer.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/legacyLayer/layer.cjs\");\nvar backwards_legacyLayer_textlayer = __webpack_require__(/*! ./legacyLayer/textlayer.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/legacyLayer/textlayer.cjs\");\nvar backwards_legacyLayer_subtitleslayer = __webpack_require__(/*! ./legacyLayer/subtitleslayer.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/legacyLayer/subtitleslayer.cjs\");\nvar backwards_legacyLayer_fetchlayer = __webpack_require__(/*! ./legacyLayer/fetchlayer.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/legacyLayer/fetchlayer.cjs\");\nvar backwards_utils_isObject = __webpack_require__(/*! ./utils/isObject.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/isObject.cjs\");\nvar internal_utils_dataStructureUtils = __webpack_require__(/*! ../internal/utils/dataStructureUtils.cjs */ \"../node_modules/@cloudinary/url-gen/internal/utils/dataStructureUtils.cjs\");\nvar backwards_utils_isEmpty = __webpack_require__(/*! ./utils/isEmpty.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/isEmpty.cjs\");\nvar backwards_utils_isFunction = __webpack_require__(/*! ./utils/isFunction.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/isFunction.cjs\");\n__webpack_require__(/*! ./utils/smartEscape.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/smartEscape.cjs\");\n__webpack_require__(/*! ./utils/isNumberLike.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/isNumberLike.cjs\");\n__webpack_require__(/*! ../internal/utils/base64Encode.cjs */ \"../node_modules/@cloudinary/url-gen/internal/utils/base64Encode.cjs\");\n\n/**\n * A list of keys used by the url() function.\n * @private\n */\nvar URL_KEYS = [\n 'accessibility',\n 'api_secret',\n 'auth_token',\n 'cdn_subdomain',\n 'cloud_name',\n 'cname',\n 'format',\n 'placeholder',\n 'private_cdn',\n 'resource_type',\n 'secure',\n 'secure_cdn_subdomain',\n 'secure_distribution',\n 'shorten',\n 'sign_url',\n 'signature',\n 'ssl_detected',\n 'type',\n 'url_suffix',\n 'use_root_path',\n 'version'\n];\n/**\n * Assign key, value to target, when value is not null.<br>\n * This function mutates the target!\n * @param {object} target the object to assign the values to\n * @param {object} sources one or more objects to get values from\n * @returns {object} the target after the assignment\n */\nfunction assignNotNull(target) {\n var sources = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n sources[_i - 1] = arguments[_i];\n }\n sources.forEach(function (source) {\n Object.keys(source).forEach(function (key) {\n // @ts-ignore\n if (source[key] != null) {\n // @ts-ignore\n target[key] = source[key];\n }\n });\n });\n return target;\n}\n/**\n * Return true if all items in list are strings\n * @function Util.allString\n * @param {Array} list - an array of items\n */\nvar allStrings = function (list) {\n return list.length && list.every(internal_utils_dataStructureUtils.isString);\n};\n/**\n * Transformation parameters\n * Depends on 'util', 'transformation'\n */\nvar Param = /** @class */ (function () {\n /**\n * Represents a single parameter.\n * @class Param\n * @param {string} name - The name of the parameter in snake_case\n * @param {string} shortName - The name of the serialized form of the parameter.\n * If a value is not provided, the parameter will not be serialized.\n * @param {function} [process=Util.identity ] - Manipulate origValue when value is called\n * @ignore\n */\n function Param(name, shortName, process) {\n if (process === void 0) { process = backwards_utils_legacyBaseUtil.identity; }\n /**\n * The name of the parameter in snake_case\n * @member {string} Param#name\n */\n this.name = name;\n /**\n * The name of the serialized form of the parameter\n * @member {string} Param#shortName\n */\n this.shortName = shortName;\n /**\n * Manipulate origValue when value is called\n * @member {function} Param#process\n */\n this.process = process;\n }\n /**\n * Set a (unprocessed) value for this parameter\n * @function Param#set\n * @param {*} origValue - the value of the parameter\n * @return {Param} self for chaining\n */\n Param.prototype.set = function (origValue) {\n this.origValue = origValue;\n return this;\n };\n /**\n * Generate the serialized form of the parameter\n * @function Param#serialize\n * @return {string} the serialized form of the parameter\n */\n Param.prototype.serialize = function () {\n var val, valid;\n val = this.value();\n valid = Array.isArray(val) || backwards_utils_isObject.isObject(val) || internal_utils_dataStructureUtils.isString(val) ? !backwards_utils_isEmpty.isEmpty(val) : val != null;\n if ((this.shortName != null) && valid) {\n return this.shortName + \"_\" + val;\n }\n else {\n return '';\n }\n };\n /**\n * Return the processed value of the parameter\n * @function Param#value\n */\n Param.prototype.value = function () {\n return this.process(this.origValue);\n };\n Param.norm_color = function (value) {\n return value != null ? value.replace(/^#/, 'rgb:') : void 0;\n };\n Param.build_array = function (arg) {\n if (arg == null) {\n return [];\n }\n else if (Array.isArray(arg)) {\n return arg;\n }\n else {\n return [arg];\n }\n };\n /**\n * Covert value to video codec string.\n *\n * If the parameter is an object,\n * @param {(string|Object)} param - the video codec as either a String or a Hash\n * @return {string} the video codec string in the format codec:profile:level\n * @example\n * vc_[ :profile : [level]]\n * or\n { codec: 'h264', profile: 'basic', level: '3.1' }\n * @ignore\n */\n Param.process_video_params = function (param) {\n var video;\n switch (param.constructor) {\n case Object:\n video = \"\";\n if ('codec' in param) {\n video = param.codec;\n if ('profile' in param) {\n video += \":\" + param.profile;\n if ('level' in param) {\n video += \":\" + param.level;\n }\n }\n }\n return video;\n case String:\n return param;\n default:\n return null;\n }\n };\n return Param;\n}());\nvar ArrayParam = /** @class */ (function (_super) {\n tslib_es6.__extends(ArrayParam, _super);\n /**\n * A parameter that represents an array.\n * @param {string} name - The name of the parameter in snake_case.\n * @param {string} shortName - The name of the serialized form of the parameter\n * If a value is not provided, the parameter will not be serialized.\n * @param {string} [sep='.'] - The separator to use when joining the array elements together\n * @param {function} [process=Util.identity ] - Manipulate origValue when value is called\n * @class ArrayParam\n * @extends Param\n * @ignore\n */\n function ArrayParam(name, shortName, sep, process) {\n if (sep === void 0) { sep = '.'; }\n if (process === void 0) { process = undefined; }\n var _this = _super.call(this, name, shortName, process) || this;\n _this.sep = sep;\n return _this;\n }\n ArrayParam.prototype.serialize = function () {\n if (this.shortName != null) {\n var arrayValue = this.value();\n if (backwards_utils_isEmpty.isEmpty(arrayValue)) {\n return '';\n }\n else if (internal_utils_dataStructureUtils.isString(arrayValue)) {\n return this.shortName + \"_\" + arrayValue;\n }\n else {\n var flat = arrayValue.map(function (t) { return backwards_utils_isFunction.isFunction(t.serialize) ? t.serialize() : t; }).join(this.sep);\n return this.shortName + \"_\" + flat;\n }\n }\n else {\n return '';\n }\n };\n ArrayParam.prototype.value = function () {\n var _this = this;\n if (Array.isArray(this.origValue)) {\n return this.origValue.map(function (v) { return _this.process(v); });\n }\n else {\n return this.process(this.origValue);\n }\n };\n ArrayParam.prototype.set = function (origValue) {\n if ((origValue == null) || Array.isArray(origValue)) {\n return _super.prototype.set.call(this, origValue);\n }\n else {\n return _super.prototype.set.call(this, [origValue]);\n }\n };\n return ArrayParam;\n}(Param));\nvar TransformationParam = /** @class */ (function (_super) {\n tslib_es6.__extends(TransformationParam, _super);\n /**\n * A parameter that represents a transformation\n * @param {string} name - The name of the parameter in snake_case\n * @param {string} [shortName='t'] - The name of the serialized form of the parameter\n * @param {string} [sep='.'] - The separator to use when joining the array elements together\n * @param {function} [process=Util.identity ] - Manipulate origValue when value is called\n * @class TransformationParam\n * @extends Param\n * @ignore\n */\n function TransformationParam(name, shortName, sep, process) {\n if (shortName === void 0) { shortName = \"t\"; }\n if (sep === void 0) { sep = '.'; }\n if (process === void 0) { process = undefined; }\n var _this = _super.call(this, name, shortName, process) || this;\n _this.sep = sep;\n return _this;\n }\n /**\n * Generate string representations of the transformation.\n * @returns {*} Returns either the transformation as a string, or an array of string representations.\n */\n TransformationParam.prototype.serialize = function () {\n var _this = this;\n var result = '';\n var val = this.value();\n if (backwards_utils_isEmpty.isEmpty(val)) {\n return result;\n }\n // val is an array of strings so join them\n if (allStrings(val)) {\n var joined = val.join(this.sep); // creates t1.t2.t3 in case multiple named transformations were configured\n if (!backwards_utils_isEmpty.isEmpty(joined)) {\n // in case options.transformation was not set with an empty string (val != ['']);\n result = this.shortName + \"_\" + joined;\n }\n }\n else { // Convert val to an array of strings\n result = val.map(function (t) {\n if (internal_utils_dataStructureUtils.isString(t) && !backwards_utils_isEmpty.isEmpty(t)) {\n return _this.shortName + \"_\" + t;\n }\n if (backwards_utils_isFunction.isFunction(t.serialize)) {\n return t.serialize();\n }\n if (backwards_utils_isObject.isObject(t) && !backwards_utils_isEmpty.isEmpty(t)) {\n return new Transformation(t).serialize();\n }\n return undefined;\n }).filter(function (t) { return t; });\n }\n return result;\n };\n TransformationParam.prototype.set = function (origValue1) {\n this.origValue = origValue1;\n if (Array.isArray(this.origValue)) {\n return _super.prototype.set.call(this, this.origValue);\n }\n else {\n return _super.prototype.set.call(this, [this.origValue]);\n }\n };\n return TransformationParam;\n}(Param));\nvar number_pattern = \"([0-9]*)\\\\.([0-9]+)|([0-9]+)\";\nvar offset_any_pattern = \"(\" + number_pattern + \")([%pP])?\";\nvar RangeParam = /** @class */ (function (_super) {\n tslib_es6.__extends(RangeParam, _super);\n /**\n * A parameter that represents a range\n * @param {string} name - The name of the parameter in snake_case\n * @param {string} shortName - The name of the serialized form of the parameter\n * If a value is not provided, the parameter will not be serialized.\n * @param {function} [process=norm_range_value ] - Manipulate origValue when value is called\n * @class RangeParam\n * @extends Param\n * @ignore\n */\n function RangeParam(name, shortName, process) {\n if (process === void 0) { process = RangeParam.norm_range_value; }\n return _super.call(this, name, shortName, process) || this;\n }\n RangeParam.norm_range_value = function (value) {\n var offset = String(value).match(new RegExp('^' + offset_any_pattern + '$'));\n if (offset) {\n var modifier = offset[5] != null ? 'p' : '';\n value = (offset[1] || offset[4]) + modifier;\n }\n return value;\n };\n return RangeParam;\n}(Param));\nvar RawParam = /** @class */ (function (_super) {\n tslib_es6.__extends(RawParam, _super);\n function RawParam(name, shortName, process) {\n if (process === void 0) { process = backwards_utils_legacyBaseUtil.identity; }\n return _super.call(this, name, shortName, process) || this;\n }\n RawParam.prototype.serialize = function () {\n return this.value();\n };\n return RawParam;\n}(Param));\nvar LayerParam = /** @class */ (function (_super) {\n tslib_es6.__extends(LayerParam, _super);\n function LayerParam() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n // Parse layer options\n // @return [string] layer transformation string\n // @private\n LayerParam.prototype.value = function () {\n if (this.origValue == null) {\n return '';\n }\n var result;\n if (this.origValue instanceof backwards_legacyLayer_layer) {\n result = this.origValue;\n }\n else if (backwards_utils_isObject.isObject(this.origValue)) {\n var layerOptions = backwards_utils_legacyBaseUtil.withCamelCaseKeys(this.origValue);\n // @ts-ignore\n if (layerOptions.resourceType === \"text\" || (layerOptions.text != null)) {\n result = new backwards_legacyLayer_textlayer(layerOptions);\n }\n else { // @ts-ignore\n if (layerOptions.resourceType === \"subtitles\") {\n result = new backwards_legacyLayer_subtitleslayer(layerOptions);\n }\n else { // @ts-ignore\n if (layerOptions.resourceType === \"fetch\" || (layerOptions.url != null)) {\n result = new backwards_legacyLayer_fetchlayer(layerOptions);\n }\n else {\n result = new backwards_legacyLayer_layer(layerOptions);\n }\n }\n }\n }\n else if (internal_utils_dataStructureUtils.isString(this.origValue)) {\n if (/^fetch:.+/.test(this.origValue)) {\n result = new backwards_legacyLayer_fetchlayer(this.origValue.substr(6));\n }\n else {\n result = this.origValue;\n }\n }\n else {\n result = '';\n }\n return result.toString();\n };\n LayerParam.textStyle = function (layer) {\n return (new backwards_legacyLayer_textlayer(layer)).textStyleIdentifier();\n };\n return LayerParam;\n}(Param));\n/**\n * TransformationBase\n * Depends on 'configuration', 'parameters','util'\n * @internal\n */\nvar TransformationBase = /** @class */ (function () {\n /**\n * The base class for transformations.\n * Members of this class are documented as belonging to the {@link Transformation} class for convenience.\n * @class TransformationBase\n */\n function TransformationBase(options) {\n var _this = this;\n /** @private */\n /** @private */\n var parent;\n var trans;\n parent = void 0;\n trans = {};\n /**\n * Return an options object that can be used to create an identical Transformation\n * @function Transformation#toOptions\n * @return {Object} Returns a plain object representing this transformation\n */\n this.toOptions = function (withChain) {\n var opt = {};\n if (withChain == null) {\n withChain = true;\n }\n // @ts-ignore\n Object.keys(trans).forEach(function (key) { return opt[key] = trans[key].origValue; });\n assignNotNull(opt, _this.otherOptions);\n if (withChain && !backwards_utils_isEmpty.isEmpty(_this.chained)) {\n var list = _this.chained.map(function (tr) { return tr.toOptions(); });\n list.push(opt);\n opt = {};\n assignNotNull(opt, _this.otherOptions);\n // @ts-ignore\n opt.transformation = list;\n }\n return opt;\n };\n /**\n * Set a parent for this object for chaining purposes.\n *\n * @function Transformation#setParent\n * @param {Object} object - the parent to be assigned to\n * @returns {Transformation} Returns this instance for chaining purposes.\n */\n this.setParent = function (object) {\n parent = object;\n if (object != null) {\n // @ts-ignore\n _this.fromOptions(typeof object.toOptions === \"function\" ? object.toOptions() : void 0);\n }\n return _this;\n };\n /**\n * Returns the parent of this object in the chain\n * @function Transformation#getParent\n * @protected\n * @return {Object} Returns the parent of this object if there is any\n */\n this.getParent = function () {\n return parent;\n };\n // Helper methods to create parameter methods\n // These methods are defined here because they access `trans` which is\n // a private member of `TransformationBase`\n /** @protected */\n this.param = function (value, name, abbr, defaultValue, process) {\n if (process == null) {\n if (backwards_utils_isFunction.isFunction(defaultValue)) {\n process = defaultValue;\n }\n else {\n process = backwards_utils_legacyBaseUtil.identity;\n }\n }\n // @ts-ignore\n trans[name] = new Param(name, abbr, process).set(value);\n return _this;\n };\n /** @protected */\n this.rawParam = function (value, name, abbr, defaultValue, process) {\n process = lastArgCallback(arguments);\n // @ts-ignore\n trans[name] = new RawParam(name, abbr, process).set(value);\n return this;\n };\n /** @protected */\n this.rangeParam = function (value, name, abbr, defaultValue, process) {\n process = lastArgCallback(arguments);\n // @ts-ignore\n trans[name] = new RangeParam(name, abbr, process).set(value);\n return this;\n };\n /** @protected */\n this.arrayParam = function (value, name, abbr, sep, defaultValue, process) {\n if (sep === void 0) { sep = \":\"; }\n if (defaultValue === void 0) { defaultValue = []; }\n if (process === void 0) { process = undefined; }\n process = lastArgCallback(arguments);\n // @ts-ignore\n trans[name] = new ArrayParam(name, abbr, sep, process).set(value);\n return this;\n };\n /** @protected */\n this.transformationParam = function (value, name, abbr, sep, defaultValue, process) {\n if (sep === void 0) { sep = \".\"; }\n if (defaultValue === void 0) { defaultValue = undefined; }\n if (process === void 0) { process = undefined; }\n process = lastArgCallback(arguments);\n // @ts-ignore\n trans[name] = new TransformationParam(name, abbr, sep, process).set(value);\n return this;\n };\n this.layerParam = function (value, name, abbr) {\n // @ts-ignore\n trans[name] = new LayerParam(name, abbr).set(value);\n return this;\n };\n // End Helper methods\n /**\n * Get the value associated with the given name.\n * Get the value associated with the given name.\n * @function Transformation#getValue\n * @param {string} name - the name of the parameter\n * @return {*} the processed value associated with the given name\n * @description Use {@link get}.origValue for the value originally provided for the parameter\n */\n this.getValue = function (name) {\n // @ts-ignore\n var value = trans[name] && trans[name].value();\n return value != null ? value : this.otherOptions[name];\n };\n /**\n * Get the parameter object for the given parameter name\n * @function Transformation#get\n * @param {string} name the name of the transformation parameter\n * @returns {Param} the param object for the given name, or undefined\n */\n this.get = function (name) {\n // @ts-ignore\n return trans[name];\n };\n /**\n * Remove a transformation option from the transformation.\n * @function Transformation#remove\n * @param {string} name - the name of the option to remove\n * @return {*} Returns the option that was removed or null if no option by that name was found. The type of the\n * returned value depends on the value.\n */\n this.remove = function (name) {\n var temp;\n switch (false) {\n // @ts-ignore\n case trans[name] == null:\n // @ts-ignore\n temp = trans[name];\n // @ts-ignore\n delete trans[name];\n return temp.origValue;\n case this.otherOptions[name] == null:\n temp = this.otherOptions[name];\n delete this.otherOptions[name];\n return temp;\n default:\n return null;\n }\n };\n /**\n * Return an array of all the keys (option names) in the transformation.\n * @return {Array<string>} the keys in snakeCase format\n */\n this.keys = function () {\n var key;\n return ((function () {\n var results;\n results = [];\n for (key in trans) {\n if (key != null) {\n results.push(key.match(VAR_NAME_RE) ? key : backwards_utils_snakeCase.snakeCase(key));\n }\n }\n return results;\n })()).sort();\n };\n /**\n * Returns a plain object representation of the transformation. Values are processed.\n * @function Transformation#toPlainObject\n * @return {Object} the transformation options as plain object\n */\n this.toPlainObject = function () {\n var hash, key, list;\n hash = {};\n for (key in trans) {\n // @ts-ignore\n hash[key] = trans[key].value();\n // @ts-ignore\n if (backwards_utils_isObject.isObject(hash[key])) {\n // @ts-ignore\n hash[key] = internal_utils_cloneDeep.cloneDeep(hash[key]);\n }\n }\n if (!backwards_utils_isEmpty.isEmpty(this.chained)) {\n list = this.chained.map(function (tr) { return tr.toPlainObject(); });\n list.push(hash);\n hash = {\n transformation: list\n };\n }\n return hash;\n };\n /**\n * Complete the current transformation and chain to a new one.\n * In the URL, transformations are chained together by slashes.\n * @function Transformation#chain\n * @return {Transformation} Returns this transformation for chaining\n * @example\n * var tr = cloudinary.Transformation.new();\n * tr.width(10).crop('fit').chain().angle(15).serialize()\n * // produces \"c_fit,w_10/a_15\"\n */\n this.chain = function () {\n var names, tr;\n names = Object.getOwnPropertyNames(trans);\n if (names.length !== 0) {\n tr = new this.constructor(this.toOptions(false));\n this.resetTransformations();\n this.chained.push(tr);\n }\n return this;\n };\n this.resetTransformations = function () {\n trans = {};\n return this;\n };\n this.otherOptions = {};\n this.chained = [];\n this.fromOptions(options);\n }\n /**\n * Merge the provided options with own's options\n * @param {Object} [options={}] key-value list of options\n * @returns {Transformation} Returns this instance for chaining\n */\n TransformationBase.prototype.fromOptions = function (options) {\n if (options === void 0) { options = {}; }\n if (options instanceof TransformationBase) {\n this.fromTransformation(options);\n }\n else {\n if (internal_utils_dataStructureUtils.isString(options) || Array.isArray(options)) {\n options = {\n transformation: options\n };\n }\n options = internal_utils_cloneDeep.cloneDeep(options);\n // Handling of \"if\" statements precedes other options as it creates a chained transformation\n // @ts-ignore\n if (options[\"if\"]) {\n // @ts-ignore\n this.set(\"if\", options[\"if\"]);\n // @ts-ignore\n delete options[\"if\"];\n }\n for (var key in options) {\n // @ts-ignore\n var opt = options[key];\n if (opt != null) {\n if (key.match(VAR_NAME_RE)) {\n if (key !== '$attr') {\n this.set('variable', key, opt);\n }\n }\n else {\n this.set(key, opt);\n }\n }\n }\n }\n return this;\n };\n TransformationBase.prototype.fromTransformation = function (other) {\n var _this = this;\n if (other instanceof TransformationBase) {\n other.keys().forEach(function (key) {\n return _this.set(key, other.get(key).origValue);\n });\n }\n return this;\n };\n /**\n * Set a parameter.\n * The parameter name `key` is converted to\n * @param {string} key - the name of the parameter\n * @param {*} values - the value of the parameter\n * @returns {Transformation} Returns this instance for chaining\n */\n TransformationBase.prototype.set = function (key) {\n var values = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n values[_i - 1] = arguments[_i];\n }\n var camelKey;\n camelKey = backwards_utils_legacyBaseUtil.camelCase(key);\n if (backwards_utils_legacyBaseUtil.contains(methods, camelKey)) {\n // @ts-ignore\n this[camelKey].apply(this, values);\n }\n else {\n this.otherOptions[key] = values[0];\n }\n return this;\n };\n TransformationBase.prototype.hasLayer = function () {\n return this.getValue(\"overlay\") || this.getValue(\"underlay\");\n };\n /**\n * Generate a string representation of the transformation.\n * @function Transformation#serialize\n * @return {string} Returns the transformation as a string\n */\n TransformationBase.prototype.serialize = function () {\n var ifParam, j, len, paramList, ref, ref1, ref2, ref3, ref4, resultArray, t, transformationList, transformationString, transformations, value, variables, vars;\n resultArray = this.chained.map(function (tr) { return tr.serialize(); });\n paramList = this.keys();\n transformations = (ref = this.get(\"transformation\")) != null ? ref.serialize() : void 0;\n ifParam = (ref1 = this.get(\"if\")) != null ? ref1.serialize() : void 0;\n variables = processVar((ref2 = this.get(\"variables\")) != null ? ref2.value() : void 0);\n paramList = backwards_utils_legacyBaseUtil.difference(paramList, [\"transformation\", \"if\", \"variables\"]);\n vars = [];\n transformationList = [];\n for (j = 0, len = paramList.length; j < len; j++) {\n t = paramList[j];\n if (t.match(VAR_NAME_RE)) {\n vars.push(t + \"_\" + backwards_expression.normalize((ref3 = this.get(t)) != null ? ref3.value() : void 0));\n }\n else {\n transformationList.push((ref4 = this.get(t)) != null ? ref4.serialize() : void 0);\n }\n }\n switch (false) {\n case !internal_utils_dataStructureUtils.isString(transformations):\n transformationList.push(transformations);\n break;\n case !Array.isArray(transformations):\n resultArray = resultArray.concat(transformations);\n }\n transformationList = (function () {\n var k, len1, results;\n results = [];\n for (k = 0, len1 = transformationList.length; k < len1; k++) {\n value = transformationList[k];\n if (Array.isArray(value) && !backwards_utils_isEmpty.isEmpty(value) || !Array.isArray(value) && value) {\n results.push(value);\n }\n }\n return results;\n })();\n transformationList = vars.sort().concat(variables).concat(transformationList.sort());\n if (ifParam === \"if_end\") {\n transformationList.push(ifParam);\n }\n else if (!backwards_utils_isEmpty.isEmpty(ifParam)) {\n transformationList.unshift(ifParam);\n }\n transformationString = (transformationList).filter(function (x) { return !!x; }).join(param_separator);\n if (!backwards_utils_isEmpty.isEmpty(transformationString)) {\n resultArray.push(transformationString);\n }\n return (resultArray).filter(function (x) { return !!x; }).join(trans_separator);\n };\n /**\n * Provide a list of all the valid transformation option names\n * @function Transformation#listNames\n * @private\n * @return {Array<string>} a array of all the valid option names\n */\n TransformationBase.listNames = function () {\n return methods;\n };\n /**\n * Returns the attributes for an HTML tag.\n * @function Cloudinary.toHtmlAttributes\n * @return PlainObject\n */\n TransformationBase.prototype.toHtmlAttributes = function () {\n var _this = this;\n var attrName, height, options, ref2, ref3, value, width;\n options = {};\n var snakeCaseKey;\n Object.keys(this.otherOptions).forEach(function (key) {\n value = _this.otherOptions[key];\n snakeCaseKey = backwards_utils_snakeCase.snakeCase(key);\n if (!backwards_utils_legacyBaseUtil.contains(PARAM_NAMES, snakeCaseKey) && !backwards_utils_legacyBaseUtil.contains(URL_KEYS, snakeCaseKey)) {\n attrName = /^html_/.test(key) ? key.slice(5) : key;\n options[attrName] = value;\n }\n });\n // convert all \"html_key\" to \"key\" with the same value\n this.keys().forEach(function (key) {\n if (/^html_/.test(key)) {\n options[backwards_utils_legacyBaseUtil.camelCase(key.slice(5))] = _this.getValue(key);\n }\n });\n if (!(this.hasLayer() || this.getValue(\"angle\") || backwards_utils_legacyBaseUtil.contains([\"fit\", \"limit\", \"lfill\"], this.getValue(\"crop\")))) {\n width = (ref2 = this.get(\"width\")) != null ? ref2.origValue : void 0;\n height = (ref3 = this.get(\"height\")) != null ? ref3.origValue : void 0;\n if (parseFloat(width) >= 1.0) {\n if (options.width == null) {\n options.width = width;\n }\n }\n if (parseFloat(height) >= 1.0) {\n if (options.height == null) {\n options.height = height;\n }\n }\n }\n return options;\n };\n TransformationBase.isValidParamName = function (name) {\n return methods.indexOf(backwards_utils_legacyBaseUtil.camelCase(name)) >= 0;\n };\n /**\n * Delegate to the parent (up the call chain) to produce HTML\n * @function Transformation#toHtml\n * @return {string} HTML representation of the parent if possible.\n * @example\n * tag = cloudinary.ImageTag.new(\"sample\", {cloud_name: \"demo\"})\n * // ImageTag {name: \"img\", publicId: \"sample\"}\n * tag.toHtml()\n * // <img src=\"http://res.cloudinary.com/demo/image/upload/sample\">\n * tag.transformation().crop(\"fit\").width(300).toHtml()\n * // <img src=\"http://res.cloudinary.com/demo/image/upload/c_fit,w_300/sample\">\n */\n TransformationBase.prototype.toHtml = function () {\n var ref;\n return (ref = this.getParent()) != null ? typeof ref.toHtml === \"function\" ? ref.toHtml() : void 0 : void 0;\n };\n TransformationBase.prototype.toString = function () {\n return this.serialize();\n };\n TransformationBase.prototype.clone = function () {\n return new TransformationBase(this.toOptions(true));\n };\n return TransformationBase;\n}());\nvar VAR_NAME_RE = /^\\$[a-zA-Z0-9]+$/;\nvar trans_separator = '/';\nvar param_separator = ',';\nfunction lastArgCallback(args) {\n var callback;\n callback = args != null ? args[args.length - 1] : void 0;\n if (backwards_utils_isFunction.isFunction(callback)) {\n return callback;\n }\n else {\n return void 0;\n }\n}\nfunction processVar(varArray) {\n var _a;\n var j, len, name, results, v;\n if (Array.isArray(varArray)) {\n results = [];\n for (j = 0, len = varArray.length; j < len; j++) {\n _a = varArray[j], name = _a[0], v = _a[1];\n results.push(name + \"_\" + backwards_expression.normalize(v));\n }\n return results;\n }\n else {\n return varArray;\n }\n}\n// @ts-ignore\nfunction processCustomFunction(_a) {\n var function_type = _a.function_type, source = _a.source;\n if (function_type === 'remote') {\n return [function_type, btoa(source)].join(\":\");\n }\n else if (function_type === 'wasm') {\n return [function_type, source].join(\":\");\n }\n}\n/**\n * Transformation Class methods.\n * This is a list of the parameters defined in Transformation.\n * Values are camelCased.\n * @const Transformation.methods\n * @private\n * @ignore\n * @type {Array<string>}\n */\n/**\n * Parameters that are filtered out before passing the options to an HTML tag.\n *\n * The list of parameters is a combination of `Transformation::methods` and `Configuration::CONFIG_PARAMS`\n * @const {Array<string>} Transformation.PARAM_NAMES\n * @private\n * @ignore\n * @see toHtmlAttributes\n */\nvar Transformation = /** @class */ (function (_super) {\n tslib_es6.__extends(Transformation, _super);\n /**\n * Represents a single transformation.\n * @class Transformation\n * @example\n * t = new cloudinary.Transformation();\n * t.angle(20).crop(\"scale\").width(\"auto\");\n *\n * // or\n *\n * t = new cloudinary.Transformation( {angle: 20, crop: \"scale\", width: \"auto\"});\n * @see <a href=\"https://cloudinary.com/documentation/image_transformation_reference\"\n * target=\"_blank\">Available image transformations</a>\n * @see <a href=\"https://cloudinary.com/documentation/video_transformation_reference\"\n * target=\"_blank\">Available video transformations</a>\n */\n function Transformation(options) {\n return _super.call(this, options) || this;\n }\n /**\n * Convenience constructor\n * @param {Object} options\n * @return {Transformation}\n * @example cl = cloudinary.Transformation.new( {angle: 20, crop: \"scale\", width: \"auto\"})\n */\n Transformation.new = function (options) {\n return new Transformation(options);\n };\n /*\n Transformation Parameters\n */\n Transformation.prototype.angle = function (value) {\n this.arrayParam(value, \"angle\", \"a\", \".\", backwards_expression.normalize);\n return this;\n };\n Transformation.prototype.audioCodec = function (value) {\n this.param(value, \"audio_codec\", \"ac\");\n return this;\n };\n Transformation.prototype.audioFrequency = function (value) {\n this.param(value, \"audio_frequency\", \"af\");\n return this;\n };\n Transformation.prototype.aspectRatio = function (value) {\n this.param(value, \"aspect_ratio\", \"ar\", backwards_expression.normalize);\n return this;\n };\n Transformation.prototype.background = function (value) {\n this.param(value, \"background\", \"b\", Param.norm_color);\n return this;\n };\n Transformation.prototype.bitRate = function (value) {\n this.param(value, \"bit_rate\", \"br\");\n return this;\n };\n Transformation.prototype.border = function (value) {\n return this.param(value, \"border\", \"bo\", function (border) {\n if (backwards_utils_isObject.isObject(border)) {\n border = Object.assign({}, {\n color: \"black\",\n width: 2\n }, border);\n return border.width + \"px_solid_\" + Param.norm_color(border.color);\n }\n else {\n return border;\n }\n });\n };\n Transformation.prototype.color = function (value) {\n this.param(value, \"color\", \"co\", Param.norm_color);\n return this;\n };\n Transformation.prototype.colorSpace = function (value) {\n this.param(value, \"color_space\", \"cs\");\n return this;\n };\n Transformation.prototype.crop = function (value) {\n this.param(value, \"crop\", \"c\");\n return this;\n };\n Transformation.prototype.customFunction = function (value) {\n return this.param(value, \"custom_function\", \"fn\", function () {\n return processCustomFunction(value);\n });\n };\n Transformation.prototype.customPreFunction = function (value) {\n if (this.get('custom_function')) {\n return;\n }\n return this.rawParam(value, \"custom_function\", \"\", function () {\n value = processCustomFunction(value);\n return value ? \"fn_pre:\" + value : value;\n });\n };\n Transformation.prototype.defaultImage = function (value) {\n this.param(value, \"default_image\", \"d\");\n return this;\n };\n Transformation.prototype.delay = function (value) {\n this.param(value, \"delay\", \"dl\");\n return this;\n };\n Transformation.prototype.density = function (value) {\n this.param(value, \"density\", \"dn\");\n return this;\n };\n Transformation.prototype.duration = function (value) {\n this.rangeParam(value, \"duration\", \"du\");\n return this;\n };\n Transformation.prototype.dpr = function (value) {\n return this.param(value, \"dpr\", \"dpr\", function (dpr) {\n dpr = dpr.toString();\n if (dpr != null ? dpr.match(/^\\d+$/) : void 0) {\n return dpr + \".0\";\n }\n else {\n return backwards_expression.normalize(dpr);\n }\n });\n };\n Transformation.prototype.effect = function (value) {\n this.arrayParam(value, \"effect\", \"e\", \":\", backwards_expression.normalize);\n return this;\n };\n Transformation.prototype.else = function () {\n return this.if('else');\n };\n Transformation.prototype.endIf = function () {\n return this.if('end');\n };\n Transformation.prototype.endOffset = function (value) {\n this.rangeParam(value, \"end_offset\", \"eo\");\n return this;\n };\n Transformation.prototype.fallbackContent = function (value) {\n this.param(value, \"fallback_content\");\n return this;\n };\n Transformation.prototype.fetchFormat = function (value) {\n this.param(value, \"fetch_format\", \"f\");\n return this;\n };\n Transformation.prototype.format = function (value) {\n this.param(value, \"format\");\n return this;\n };\n Transformation.prototype.flags = function (value) {\n this.arrayParam(value, \"flags\", \"fl\", \".\");\n return this;\n };\n Transformation.prototype.gravity = function (value) {\n this.param(value, \"gravity\", \"g\");\n return this;\n };\n Transformation.prototype.fps = function (value) {\n return this.param(value, \"fps\", \"fps\", function (fps) {\n if (internal_utils_dataStructureUtils.isString(fps)) {\n return fps;\n }\n else if (Array.isArray(fps)) {\n return fps.join(\"-\");\n }\n else {\n return fps;\n }\n });\n };\n Transformation.prototype.height = function (value) {\n var _this = this;\n return this.param(value, \"height\", \"h\", function () {\n if (_this.getValue(\"crop\") || _this.getValue(\"overlay\") || _this.getValue(\"underlay\")) {\n return backwards_expression.normalize(value);\n }\n else {\n return null;\n }\n });\n };\n Transformation.prototype.htmlHeight = function (value) {\n this.param(value, \"html_height\");\n return this;\n };\n Transformation.prototype.htmlWidth = function (value) {\n this.param(value, \"html_width\");\n return this;\n };\n Transformation.prototype.if = function (value) {\n if (value === void 0) { value = \"\"; }\n var i, ifVal, j, trIf, trRest;\n switch (value) {\n case \"else\":\n this.chain();\n return this.param(value, \"if\", \"if\");\n case \"end\":\n this.chain();\n for (i = j = this.chained.length - 1; j >= 0; i = j += -1) {\n ifVal = this.chained[i].getValue(\"if\");\n if (ifVal === \"end\") {\n break;\n }\n else if (ifVal != null) {\n trIf = Transformation.new().if(ifVal);\n this.chained[i].remove(\"if\");\n trRest = this.chained[i];\n this.chained[i] = Transformation.new().transformation([trIf, trRest]);\n if (ifVal !== \"else\") {\n break;\n }\n }\n }\n return this.param(value, \"if\", \"if\");\n case \"\":\n return backwards_condition.new().setParent(this);\n default:\n return this.param(value, \"if\", \"if\", function (value) {\n return backwards_condition.new(value).toString();\n });\n }\n };\n Transformation.prototype.keyframeInterval = function (value) {\n this.param(value, \"keyframe_interval\", \"ki\");\n return this;\n };\n Transformation.prototype.ocr = function (value) {\n this.param(value, \"ocr\", \"ocr\");\n return this;\n };\n Transformation.prototype.offset = function (value) {\n var _a;\n var end_o, start_o;\n _a = (backwards_utils_isFunction.isFunction(value != null ? value.split : void 0)) ? value.split('..') : Array.isArray(value) ? value : [null, null], start_o = _a[0], end_o = _a[1];\n if (start_o != null) {\n this.startOffset(start_o);\n }\n if (end_o != null) {\n return this.endOffset(end_o);\n }\n };\n Transformation.prototype.opacity = function (value) {\n this.param(value, \"opacity\", \"o\", backwards_expression.normalize);\n return this;\n };\n Transformation.prototype.overlay = function (value) {\n this.layerParam(value, \"overlay\", \"l\");\n return this;\n };\n Transformation.prototype.page = function (value) {\n this.param(value, \"page\", \"pg\");\n return this;\n };\n Transformation.prototype.poster = function (value) {\n this.param(value, \"poster\");\n return this;\n };\n Transformation.prototype.prefix = function (value) {\n this.param(value, \"prefix\", \"p\");\n return this;\n };\n Transformation.prototype.quality = function (value) {\n this.param(value, \"quality\", \"q\", backwards_expression.normalize);\n return this;\n };\n Transformation.prototype.radius = function (value) {\n this.arrayParam(value, \"radius\", \"r\", \":\", backwards_expression.normalize);\n return this;\n };\n Transformation.prototype.rawTransformation = function (value) {\n this.rawParam(value, \"raw_transformation\");\n return this;\n };\n Transformation.prototype.size = function (value) {\n var _a;\n var height, width;\n if (backwards_utils_isFunction.isFunction(value != null ? value.split : void 0)) {\n _a = value.split('x'), width = _a[0], height = _a[1];\n this.width(width);\n return this.height(height);\n }\n };\n Transformation.prototype.sourceTypes = function (value) {\n this.param(value, \"source_types\");\n return this;\n };\n Transformation.prototype.sourceTransformation = function (value) {\n return this.param(value, \"source_transformation\");\n };\n Transformation.prototype.startOffset = function (value) {\n this.rangeParam(value, \"start_offset\", \"so\");\n return this;\n };\n Transformation.prototype.streamingProfile = function (value) {\n this.param(value, \"streaming_profile\", \"sp\");\n return this;\n };\n Transformation.prototype.transformation = function (value) {\n this.transformationParam(value, \"transformation\", \"t\");\n return this;\n };\n Transformation.prototype.underlay = function (value) {\n this.layerParam(value, \"underlay\", \"u\");\n return this;\n };\n Transformation.prototype.variable = function (name, value) {\n this.param(value, name, name);\n return this;\n };\n Transformation.prototype.variables = function (values) {\n this.arrayParam(values, \"variables\");\n return this;\n };\n Transformation.prototype.videoCodec = function (value) {\n this.param(value, \"video_codec\", \"vc\", Param.process_video_params);\n return this;\n };\n Transformation.prototype.videoSampling = function (value) {\n this.param(value, \"video_sampling\", \"vs\");\n return this;\n };\n Transformation.prototype.width = function (value) {\n var _this = this;\n this.param(value, \"width\", \"w\", function () {\n if (_this.getValue(\"crop\") || _this.getValue(\"overlay\") || _this.getValue(\"underlay\")) {\n return backwards_expression.normalize(value);\n }\n else {\n return null;\n }\n });\n return this;\n };\n Transformation.prototype.x = function (value) {\n this.param(value, \"x\", \"x\", backwards_expression.normalize);\n return this;\n };\n Transformation.prototype.y = function (value) {\n this.param(value, \"y\", \"y\", backwards_expression.normalize);\n return this;\n };\n Transformation.prototype.zoom = function (value) {\n this.param(value, \"zoom\", \"z\", backwards_expression.normalize);\n return this;\n };\n return Transformation;\n}(TransformationBase));\n/**\n * Transformation Class methods.\n * This is a list of the parameters defined in Transformation.\n * Values are camelCased.\n */\nvar methods = [\n \"angle\",\n \"audioCodec\",\n \"audioFrequency\",\n \"aspectRatio\",\n \"background\",\n \"bitRate\",\n \"border\",\n \"color\",\n \"colorSpace\",\n \"crop\",\n \"customFunction\",\n \"customPreFunction\",\n \"defaultImage\",\n \"delay\",\n \"density\",\n \"duration\",\n \"dpr\",\n \"effect\",\n \"else\",\n \"endIf\",\n \"endOffset\",\n \"fallbackContent\",\n \"fetchFormat\",\n \"format\",\n \"flags\",\n \"gravity\",\n \"fps\",\n \"height\",\n \"htmlHeight\",\n \"htmlWidth\",\n \"if\",\n \"keyframeInterval\",\n \"ocr\",\n \"offset\",\n \"opacity\",\n \"overlay\",\n \"page\",\n \"poster\",\n \"prefix\",\n \"quality\",\n \"radius\",\n \"rawTransformation\",\n \"size\",\n \"sourceTypes\",\n \"sourceTransformation\",\n \"startOffset\",\n \"streamingProfile\",\n \"transformation\",\n \"underlay\",\n \"variable\",\n \"variables\",\n \"videoCodec\",\n \"videoSampling\",\n \"width\",\n \"x\",\n \"y\",\n \"zoom\"\n];\n/**\n * Parameters that are filtered out before passing the options to an HTML tag.\n *\n * The list of parameters is a combination of `Transformation::methods` and `Configuration::CONFIG_PARAMS`\n */\nvar PARAM_NAMES = methods.map(backwards_utils_snakeCase.snakeCase).concat(backwards_configuration.CONFIG_PARAMS);\n\nexports.URL_KEYS = URL_KEYS;\nexports[\"default\"] = Transformation;\n\n\n//# sourceURL=webpack://cloudinaryVideoPlayer/../node_modules/@cloudinary/url-gen/backwards/transformation.cjs?");
|
|
251
|
+
eval("\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar tslib_es6 = __webpack_require__(/*! ../tslib.es6-bcbd7c13.cjs */ \"../node_modules/@cloudinary/url-gen/tslib.es6-bcbd7c13.cjs\");\nvar backwards_condition = __webpack_require__(/*! ./condition.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/condition.cjs\");\nvar backwards_configuration = __webpack_require__(/*! ./configuration.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/configuration.cjs\");\nvar internal_utils_cloneDeep = __webpack_require__(/*! ../internal/utils/cloneDeep.cjs */ \"../node_modules/@cloudinary/url-gen/internal/utils/cloneDeep.cjs\");\nvar backwards_utils_legacyBaseUtil = __webpack_require__(/*! ./utils/legacyBaseUtil.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/legacyBaseUtil.cjs\");\nvar backwards_utils_snakeCase = __webpack_require__(/*! ./utils/snakeCase.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/snakeCase.cjs\");\nvar backwards_expression = __webpack_require__(/*! ./expression.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/expression.cjs\");\nvar backwards_legacyLayer_layer = __webpack_require__(/*! ./legacyLayer/layer.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/legacyLayer/layer.cjs\");\nvar backwards_legacyLayer_textlayer = __webpack_require__(/*! ./legacyLayer/textlayer.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/legacyLayer/textlayer.cjs\");\nvar backwards_legacyLayer_subtitleslayer = __webpack_require__(/*! ./legacyLayer/subtitleslayer.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/legacyLayer/subtitleslayer.cjs\");\nvar backwards_legacyLayer_fetchlayer = __webpack_require__(/*! ./legacyLayer/fetchlayer.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/legacyLayer/fetchlayer.cjs\");\nvar backwards_utils_isObject = __webpack_require__(/*! ./utils/isObject.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/isObject.cjs\");\nvar internal_utils_dataStructureUtils = __webpack_require__(/*! ../internal/utils/dataStructureUtils.cjs */ \"../node_modules/@cloudinary/url-gen/internal/utils/dataStructureUtils.cjs\");\nvar backwards_utils_isEmpty = __webpack_require__(/*! ./utils/isEmpty.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/isEmpty.cjs\");\nvar backwards_utils_isFunction = __webpack_require__(/*! ./utils/isFunction.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/isFunction.cjs\");\n__webpack_require__(/*! ./utils/smartEscape.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/smartEscape.cjs\");\n__webpack_require__(/*! ./utils/isNumberLike.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/isNumberLike.cjs\");\n__webpack_require__(/*! ../internal/utils/base64Encode.cjs */ \"../node_modules/@cloudinary/url-gen/internal/utils/base64Encode.cjs\");\n\n/**\n * A list of keys used by the url() function.\n * @private\n */\nvar URL_KEYS = [\n 'accessibility',\n 'api_secret',\n 'auth_token',\n 'cdn_subdomain',\n 'cloud_name',\n 'cname',\n 'format',\n 'placeholder',\n 'private_cdn',\n 'resource_type',\n 'secure',\n 'secure_cdn_subdomain',\n 'secure_distribution',\n 'shorten',\n 'sign_url',\n 'signature',\n 'ssl_detected',\n 'type',\n 'url_suffix',\n 'use_root_path',\n 'version'\n];\n/**\n * Assign key, value to target, when value is not null.<br>\n * This function mutates the target!\n * @param {object} target the object to assign the values to\n * @param {object} sources one or more objects to get values from\n * @returns {object} the target after the assignment\n */\nfunction assignNotNull(target) {\n var sources = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n sources[_i - 1] = arguments[_i];\n }\n sources.forEach(function (source) {\n Object.keys(source).forEach(function (key) {\n // @ts-ignore\n if (source[key] != null) {\n // @ts-ignore\n target[key] = source[key];\n }\n });\n });\n return target;\n}\n/**\n * Return true if all items in list are strings\n * @function Util.allString\n * @param {Array} list - an array of items\n */\nvar allStrings = function (list) {\n return list.length && list.every(internal_utils_dataStructureUtils.isString);\n};\n/**\n * Transformation parameters\n * Depends on 'util', 'transformation'\n */\nvar Param = /** @class */ (function () {\n /**\n * Represents a single parameter.\n * @class Param\n * @param {string} name - The name of the parameter in snake_case\n * @param {string} shortName - The name of the serialized form of the parameter.\n * If a value is not provided, the parameter will not be serialized.\n * @param {function} [process=Util.identity ] - Manipulate origValue when value is called\n * @ignore\n */\n function Param(name, shortName, process) {\n if (process === void 0) { process = backwards_utils_legacyBaseUtil.identity; }\n /**\n * The name of the parameter in snake_case\n * @member {string} Param#name\n */\n this.name = name;\n /**\n * The name of the serialized form of the parameter\n * @member {string} Param#shortName\n */\n this.shortName = shortName;\n /**\n * Manipulate origValue when value is called\n * @member {function} Param#process\n */\n this.process = process;\n }\n /**\n * Set a (unprocessed) value for this parameter\n * @function Param#set\n * @param {*} origValue - the value of the parameter\n * @return {Param} self for chaining\n */\n Param.prototype.set = function (origValue) {\n this.origValue = origValue;\n return this;\n };\n /**\n * Generate the serialized form of the parameter\n * @function Param#serialize\n * @return {string} the serialized form of the parameter\n */\n Param.prototype.serialize = function () {\n var val, valid;\n val = this.value();\n valid = Array.isArray(val) || backwards_utils_isObject.isObject(val) || internal_utils_dataStructureUtils.isString(val) ? !backwards_utils_isEmpty.isEmpty(val) : val != null;\n if ((this.shortName != null) && valid) {\n return \"\".concat(this.shortName, \"_\").concat(val);\n }\n else {\n return '';\n }\n };\n /**\n * Return the processed value of the parameter\n * @function Param#value\n */\n Param.prototype.value = function () {\n return this.process(this.origValue);\n };\n Param.norm_color = function (value) {\n return value != null ? value.replace(/^#/, 'rgb:') : void 0;\n };\n Param.build_array = function (arg) {\n if (arg == null) {\n return [];\n }\n else if (Array.isArray(arg)) {\n return arg;\n }\n else {\n return [arg];\n }\n };\n /**\n * Covert value to video codec string.\n *\n * If the parameter is an object,\n * @param {(string|Object)} param - the video codec as either a String or a Hash\n * @return {string} the video codec string in the format codec:profile:level\n * @example\n * vc_[ :profile : [level]]\n * or\n { codec: 'h264', profile: 'basic', level: '3.1' }\n * @ignore\n */\n Param.process_video_params = function (param) {\n var video;\n switch (param.constructor) {\n case Object:\n video = \"\";\n if ('codec' in param) {\n video = param.codec;\n if ('profile' in param) {\n video += \":\" + param.profile;\n if ('level' in param) {\n video += \":\" + param.level;\n }\n }\n }\n return video;\n case String:\n return param;\n default:\n return null;\n }\n };\n return Param;\n}());\nvar ArrayParam = /** @class */ (function (_super) {\n tslib_es6.__extends(ArrayParam, _super);\n /**\n * A parameter that represents an array.\n * @param {string} name - The name of the parameter in snake_case.\n * @param {string} shortName - The name of the serialized form of the parameter\n * If a value is not provided, the parameter will not be serialized.\n * @param {string} [sep='.'] - The separator to use when joining the array elements together\n * @param {function} [process=Util.identity ] - Manipulate origValue when value is called\n * @class ArrayParam\n * @extends Param\n * @ignore\n */\n function ArrayParam(name, shortName, sep, process) {\n if (sep === void 0) { sep = '.'; }\n if (process === void 0) { process = undefined; }\n var _this = _super.call(this, name, shortName, process) || this;\n _this.sep = sep;\n return _this;\n }\n ArrayParam.prototype.serialize = function () {\n if (this.shortName != null) {\n var arrayValue = this.value();\n if (backwards_utils_isEmpty.isEmpty(arrayValue)) {\n return '';\n }\n else if (internal_utils_dataStructureUtils.isString(arrayValue)) {\n return \"\".concat(this.shortName, \"_\").concat(arrayValue);\n }\n else {\n var flat = arrayValue.map(function (t) { return backwards_utils_isFunction.isFunction(t.serialize) ? t.serialize() : t; }).join(this.sep);\n return \"\".concat(this.shortName, \"_\").concat(flat);\n }\n }\n else {\n return '';\n }\n };\n ArrayParam.prototype.value = function () {\n var _this = this;\n if (Array.isArray(this.origValue)) {\n return this.origValue.map(function (v) { return _this.process(v); });\n }\n else {\n return this.process(this.origValue);\n }\n };\n ArrayParam.prototype.set = function (origValue) {\n if ((origValue == null) || Array.isArray(origValue)) {\n return _super.prototype.set.call(this, origValue);\n }\n else {\n return _super.prototype.set.call(this, [origValue]);\n }\n };\n return ArrayParam;\n}(Param));\nvar TransformationParam = /** @class */ (function (_super) {\n tslib_es6.__extends(TransformationParam, _super);\n /**\n * A parameter that represents a transformation\n * @param {string} name - The name of the parameter in snake_case\n * @param {string} [shortName='t'] - The name of the serialized form of the parameter\n * @param {string} [sep='.'] - The separator to use when joining the array elements together\n * @param {function} [process=Util.identity ] - Manipulate origValue when value is called\n * @class TransformationParam\n * @extends Param\n * @ignore\n */\n function TransformationParam(name, shortName, sep, process) {\n if (shortName === void 0) { shortName = \"t\"; }\n if (sep === void 0) { sep = '.'; }\n if (process === void 0) { process = undefined; }\n var _this = _super.call(this, name, shortName, process) || this;\n _this.sep = sep;\n return _this;\n }\n /**\n * Generate string representations of the transformation.\n * @returns {*} Returns either the transformation as a string, or an array of string representations.\n */\n TransformationParam.prototype.serialize = function () {\n var _this = this;\n var result = '';\n var val = this.value();\n if (backwards_utils_isEmpty.isEmpty(val)) {\n return result;\n }\n // val is an array of strings so join them\n if (allStrings(val)) {\n var joined = val.join(this.sep); // creates t1.t2.t3 in case multiple named transformations were configured\n if (!backwards_utils_isEmpty.isEmpty(joined)) {\n // in case options.transformation was not set with an empty string (val != ['']);\n result = \"\".concat(this.shortName, \"_\").concat(joined);\n }\n }\n else { // Convert val to an array of strings\n result = val.map(function (t) {\n if (internal_utils_dataStructureUtils.isString(t) && !backwards_utils_isEmpty.isEmpty(t)) {\n return \"\".concat(_this.shortName, \"_\").concat(t);\n }\n if (backwards_utils_isFunction.isFunction(t.serialize)) {\n return t.serialize();\n }\n if (backwards_utils_isObject.isObject(t) && !backwards_utils_isEmpty.isEmpty(t)) {\n return new Transformation(t).serialize();\n }\n return undefined;\n }).filter(function (t) { return t; });\n }\n return result;\n };\n TransformationParam.prototype.set = function (origValue1) {\n this.origValue = origValue1;\n if (Array.isArray(this.origValue)) {\n return _super.prototype.set.call(this, this.origValue);\n }\n else {\n return _super.prototype.set.call(this, [this.origValue]);\n }\n };\n return TransformationParam;\n}(Param));\nvar number_pattern = \"([0-9]*)\\\\.([0-9]+)|([0-9]+)\";\nvar offset_any_pattern = \"(\" + number_pattern + \")([%pP])?\";\nvar RangeParam = /** @class */ (function (_super) {\n tslib_es6.__extends(RangeParam, _super);\n /**\n * A parameter that represents a range\n * @param {string} name - The name of the parameter in snake_case\n * @param {string} shortName - The name of the serialized form of the parameter\n * If a value is not provided, the parameter will not be serialized.\n * @param {function} [process=norm_range_value ] - Manipulate origValue when value is called\n * @class RangeParam\n * @extends Param\n * @ignore\n */\n function RangeParam(name, shortName, process) {\n if (process === void 0) { process = RangeParam.norm_range_value; }\n return _super.call(this, name, shortName, process) || this;\n }\n RangeParam.norm_range_value = function (value) {\n var offset = String(value).match(new RegExp('^' + offset_any_pattern + '$'));\n if (offset) {\n var modifier = offset[5] != null ? 'p' : '';\n value = (offset[1] || offset[4]) + modifier;\n }\n return value;\n };\n return RangeParam;\n}(Param));\nvar RawParam = /** @class */ (function (_super) {\n tslib_es6.__extends(RawParam, _super);\n function RawParam(name, shortName, process) {\n if (process === void 0) { process = backwards_utils_legacyBaseUtil.identity; }\n return _super.call(this, name, shortName, process) || this;\n }\n RawParam.prototype.serialize = function () {\n return this.value();\n };\n return RawParam;\n}(Param));\nvar LayerParam = /** @class */ (function (_super) {\n tslib_es6.__extends(LayerParam, _super);\n function LayerParam() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n // Parse layer options\n // @return [string] layer transformation string\n // @private\n LayerParam.prototype.value = function () {\n if (this.origValue == null) {\n return '';\n }\n var result;\n if (this.origValue instanceof backwards_legacyLayer_layer) {\n result = this.origValue;\n }\n else if (backwards_utils_isObject.isObject(this.origValue)) {\n var layerOptions = backwards_utils_legacyBaseUtil.withCamelCaseKeys(this.origValue);\n // @ts-ignore\n if (layerOptions.resourceType === \"text\" || (layerOptions.text != null)) {\n result = new backwards_legacyLayer_textlayer(layerOptions);\n }\n else { // @ts-ignore\n if (layerOptions.resourceType === \"subtitles\") {\n result = new backwards_legacyLayer_subtitleslayer(layerOptions);\n }\n else { // @ts-ignore\n if (layerOptions.resourceType === \"fetch\" || (layerOptions.url != null)) {\n result = new backwards_legacyLayer_fetchlayer(layerOptions);\n }\n else {\n result = new backwards_legacyLayer_layer(layerOptions);\n }\n }\n }\n }\n else if (internal_utils_dataStructureUtils.isString(this.origValue)) {\n if (/^fetch:.+/.test(this.origValue)) {\n result = new backwards_legacyLayer_fetchlayer(this.origValue.substr(6));\n }\n else {\n result = this.origValue;\n }\n }\n else {\n result = '';\n }\n return result.toString();\n };\n LayerParam.textStyle = function (layer) {\n return (new backwards_legacyLayer_textlayer(layer)).textStyleIdentifier();\n };\n return LayerParam;\n}(Param));\n/**\n * TransformationBase\n * Depends on 'configuration', 'parameters','util'\n * @internal\n */\nvar TransformationBase = /** @class */ (function () {\n /**\n * The base class for transformations.\n * Members of this class are documented as belonging to the {@link Transformation} class for convenience.\n * @class TransformationBase\n */\n function TransformationBase(options) {\n var _this = this;\n /** @private */\n /** @private */\n var parent;\n var trans;\n parent = void 0;\n trans = {};\n /**\n * Return an options object that can be used to create an identical Transformation\n * @function Transformation#toOptions\n * @return {Object} Returns a plain object representing this transformation\n */\n this.toOptions = function (withChain) {\n var opt = {};\n if (withChain == null) {\n withChain = true;\n }\n // @ts-ignore\n Object.keys(trans).forEach(function (key) { return opt[key] = trans[key].origValue; });\n assignNotNull(opt, _this.otherOptions);\n if (withChain && !backwards_utils_isEmpty.isEmpty(_this.chained)) {\n var list = _this.chained.map(function (tr) { return tr.toOptions(); });\n list.push(opt);\n opt = {};\n assignNotNull(opt, _this.otherOptions);\n // @ts-ignore\n opt.transformation = list;\n }\n return opt;\n };\n /**\n * Set a parent for this object for chaining purposes.\n *\n * @function Transformation#setParent\n * @param {Object} object - the parent to be assigned to\n * @returns {Transformation} Returns this instance for chaining purposes.\n */\n this.setParent = function (object) {\n parent = object;\n if (object != null) {\n // @ts-ignore\n _this.fromOptions(typeof object.toOptions === \"function\" ? object.toOptions() : void 0);\n }\n return _this;\n };\n /**\n * Returns the parent of this object in the chain\n * @function Transformation#getParent\n * @protected\n * @return {Object} Returns the parent of this object if there is any\n */\n this.getParent = function () {\n return parent;\n };\n // Helper methods to create parameter methods\n // These methods are defined here because they access `trans` which is\n // a private member of `TransformationBase`\n /** @protected */\n this.param = function (value, name, abbr, defaultValue, process) {\n if (process == null) {\n if (backwards_utils_isFunction.isFunction(defaultValue)) {\n process = defaultValue;\n }\n else {\n process = backwards_utils_legacyBaseUtil.identity;\n }\n }\n // @ts-ignore\n trans[name] = new Param(name, abbr, process).set(value);\n return _this;\n };\n /** @protected */\n this.rawParam = function (value, name, abbr, defaultValue, process) {\n process = lastArgCallback(arguments);\n // @ts-ignore\n trans[name] = new RawParam(name, abbr, process).set(value);\n return this;\n };\n /** @protected */\n this.rangeParam = function (value, name, abbr, defaultValue, process) {\n process = lastArgCallback(arguments);\n // @ts-ignore\n trans[name] = new RangeParam(name, abbr, process).set(value);\n return this;\n };\n /** @protected */\n this.arrayParam = function (value, name, abbr, sep, defaultValue, process) {\n if (sep === void 0) { sep = \":\"; }\n if (defaultValue === void 0) { defaultValue = []; }\n if (process === void 0) { process = undefined; }\n process = lastArgCallback(arguments);\n // @ts-ignore\n trans[name] = new ArrayParam(name, abbr, sep, process).set(value);\n return this;\n };\n /** @protected */\n this.transformationParam = function (value, name, abbr, sep, defaultValue, process) {\n if (sep === void 0) { sep = \".\"; }\n if (defaultValue === void 0) { defaultValue = undefined; }\n if (process === void 0) { process = undefined; }\n process = lastArgCallback(arguments);\n // @ts-ignore\n trans[name] = new TransformationParam(name, abbr, sep, process).set(value);\n return this;\n };\n this.layerParam = function (value, name, abbr) {\n // @ts-ignore\n trans[name] = new LayerParam(name, abbr).set(value);\n return this;\n };\n // End Helper methods\n /**\n * Get the value associated with the given name.\n * Get the value associated with the given name.\n * @function Transformation#getValue\n * @param {string} name - the name of the parameter\n * @return {*} the processed value associated with the given name\n * @description Use {@link get}.origValue for the value originally provided for the parameter\n */\n this.getValue = function (name) {\n // @ts-ignore\n var value = trans[name] && trans[name].value();\n return value != null ? value : this.otherOptions[name];\n };\n /**\n * Get the parameter object for the given parameter name\n * @function Transformation#get\n * @param {string} name the name of the transformation parameter\n * @returns {Param} the param object for the given name, or undefined\n */\n this.get = function (name) {\n // @ts-ignore\n return trans[name];\n };\n /**\n * Remove a transformation option from the transformation.\n * @function Transformation#remove\n * @param {string} name - the name of the option to remove\n * @return {*} Returns the option that was removed or null if no option by that name was found. The type of the\n * returned value depends on the value.\n */\n this.remove = function (name) {\n var temp;\n switch (false) {\n // @ts-ignore\n case trans[name] == null:\n // @ts-ignore\n temp = trans[name];\n // @ts-ignore\n delete trans[name];\n return temp.origValue;\n case this.otherOptions[name] == null:\n temp = this.otherOptions[name];\n delete this.otherOptions[name];\n return temp;\n default:\n return null;\n }\n };\n /**\n * Return an array of all the keys (option names) in the transformation.\n * @return {Array<string>} the keys in snakeCase format\n */\n this.keys = function () {\n var key;\n return ((function () {\n var results;\n results = [];\n for (key in trans) {\n if (key != null) {\n results.push(key.match(VAR_NAME_RE) ? key : backwards_utils_snakeCase.snakeCase(key));\n }\n }\n return results;\n })()).sort();\n };\n /**\n * Returns a plain object representation of the transformation. Values are processed.\n * @function Transformation#toPlainObject\n * @return {Object} the transformation options as plain object\n */\n this.toPlainObject = function () {\n var hash, key, list;\n hash = {};\n for (key in trans) {\n // @ts-ignore\n hash[key] = trans[key].value();\n // @ts-ignore\n if (backwards_utils_isObject.isObject(hash[key])) {\n // @ts-ignore\n hash[key] = internal_utils_cloneDeep.cloneDeep(hash[key]);\n }\n }\n if (!backwards_utils_isEmpty.isEmpty(this.chained)) {\n list = this.chained.map(function (tr) { return tr.toPlainObject(); });\n list.push(hash);\n hash = {\n transformation: list\n };\n }\n return hash;\n };\n /**\n * Complete the current transformation and chain to a new one.\n * In the URL, transformations are chained together by slashes.\n * @function Transformation#chain\n * @return {Transformation} Returns this transformation for chaining\n * @example\n * var tr = cloudinary.Transformation.new();\n * tr.width(10).crop('fit').chain().angle(15).serialize()\n * // produces \"c_fit,w_10/a_15\"\n */\n this.chain = function () {\n var names, tr;\n names = Object.getOwnPropertyNames(trans);\n if (names.length !== 0) {\n tr = new this.constructor(this.toOptions(false));\n this.resetTransformations();\n this.chained.push(tr);\n }\n return this;\n };\n this.resetTransformations = function () {\n trans = {};\n return this;\n };\n this.otherOptions = {};\n this.chained = [];\n this.fromOptions(options);\n }\n /**\n * Merge the provided options with own's options\n * @param {Object} [options={}] key-value list of options\n * @returns {Transformation} Returns this instance for chaining\n */\n TransformationBase.prototype.fromOptions = function (options) {\n if (options === void 0) { options = {}; }\n if (options instanceof TransformationBase) {\n this.fromTransformation(options);\n }\n else {\n if (internal_utils_dataStructureUtils.isString(options) || Array.isArray(options)) {\n options = {\n transformation: options\n };\n }\n options = internal_utils_cloneDeep.cloneDeep(options);\n // Handling of \"if\" statements precedes other options as it creates a chained transformation\n // @ts-ignore\n if (options[\"if\"]) {\n // @ts-ignore\n this.set(\"if\", options[\"if\"]);\n // @ts-ignore\n delete options[\"if\"];\n }\n for (var key in options) {\n // @ts-ignore\n var opt = options[key];\n if (opt != null) {\n if (key.match(VAR_NAME_RE)) {\n if (key !== '$attr') {\n this.set('variable', key, opt);\n }\n }\n else {\n this.set(key, opt);\n }\n }\n }\n }\n return this;\n };\n TransformationBase.prototype.fromTransformation = function (other) {\n var _this = this;\n if (other instanceof TransformationBase) {\n other.keys().forEach(function (key) {\n return _this.set(key, other.get(key).origValue);\n });\n }\n return this;\n };\n /**\n * Set a parameter.\n * The parameter name `key` is converted to\n * @param {string} key - the name of the parameter\n * @param {*} values - the value of the parameter\n * @returns {Transformation} Returns this instance for chaining\n */\n TransformationBase.prototype.set = function (key) {\n var values = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n values[_i - 1] = arguments[_i];\n }\n var camelKey;\n camelKey = backwards_utils_legacyBaseUtil.camelCase(key);\n if (backwards_utils_legacyBaseUtil.contains(methods, camelKey)) {\n // @ts-ignore\n this[camelKey].apply(this, values);\n }\n else {\n this.otherOptions[key] = values[0];\n }\n return this;\n };\n TransformationBase.prototype.hasLayer = function () {\n return this.getValue(\"overlay\") || this.getValue(\"underlay\");\n };\n /**\n * Generate a string representation of the transformation.\n * @function Transformation#serialize\n * @return {string} Returns the transformation as a string\n */\n TransformationBase.prototype.serialize = function () {\n var ifParam, j, len, paramList, ref, ref1, ref2, ref3, ref4, resultArray, t, transformationList, transformationString, transformations, value, variables, vars;\n resultArray = this.chained.map(function (tr) { return tr.serialize(); });\n paramList = this.keys();\n transformations = (ref = this.get(\"transformation\")) != null ? ref.serialize() : void 0;\n ifParam = (ref1 = this.get(\"if\")) != null ? ref1.serialize() : void 0;\n variables = processVar((ref2 = this.get(\"variables\")) != null ? ref2.value() : void 0);\n paramList = backwards_utils_legacyBaseUtil.difference(paramList, [\"transformation\", \"if\", \"variables\"]);\n vars = [];\n transformationList = [];\n for (j = 0, len = paramList.length; j < len; j++) {\n t = paramList[j];\n if (t.match(VAR_NAME_RE)) {\n vars.push(t + \"_\" + backwards_expression.normalize((ref3 = this.get(t)) != null ? ref3.value() : void 0));\n }\n else {\n transformationList.push((ref4 = this.get(t)) != null ? ref4.serialize() : void 0);\n }\n }\n switch (false) {\n case !internal_utils_dataStructureUtils.isString(transformations):\n transformationList.push(transformations);\n break;\n case !Array.isArray(transformations):\n resultArray = resultArray.concat(transformations);\n }\n transformationList = (function () {\n var k, len1, results;\n results = [];\n for (k = 0, len1 = transformationList.length; k < len1; k++) {\n value = transformationList[k];\n if (Array.isArray(value) && !backwards_utils_isEmpty.isEmpty(value) || !Array.isArray(value) && value) {\n results.push(value);\n }\n }\n return results;\n })();\n transformationList = vars.sort().concat(variables).concat(transformationList.sort());\n if (ifParam === \"if_end\") {\n transformationList.push(ifParam);\n }\n else if (!backwards_utils_isEmpty.isEmpty(ifParam)) {\n transformationList.unshift(ifParam);\n }\n transformationString = (transformationList).filter(function (x) { return !!x; }).join(param_separator);\n if (!backwards_utils_isEmpty.isEmpty(transformationString)) {\n resultArray.push(transformationString);\n }\n return (resultArray).filter(function (x) { return !!x; }).join(trans_separator);\n };\n /**\n * Provide a list of all the valid transformation option names\n * @function Transformation#listNames\n * @private\n * @return {Array<string>} a array of all the valid option names\n */\n TransformationBase.listNames = function () {\n return methods;\n };\n /**\n * Returns the attributes for an HTML tag.\n * @function Cloudinary.toHtmlAttributes\n * @return PlainObject\n */\n TransformationBase.prototype.toHtmlAttributes = function () {\n var _this = this;\n var attrName, height, options, ref2, ref3, value, width;\n options = {};\n var snakeCaseKey;\n Object.keys(this.otherOptions).forEach(function (key) {\n value = _this.otherOptions[key];\n snakeCaseKey = backwards_utils_snakeCase.snakeCase(key);\n if (!backwards_utils_legacyBaseUtil.contains(PARAM_NAMES, snakeCaseKey) && !backwards_utils_legacyBaseUtil.contains(URL_KEYS, snakeCaseKey)) {\n attrName = /^html_/.test(key) ? key.slice(5) : key;\n options[attrName] = value;\n }\n });\n // convert all \"html_key\" to \"key\" with the same value\n this.keys().forEach(function (key) {\n if (/^html_/.test(key)) {\n options[backwards_utils_legacyBaseUtil.camelCase(key.slice(5))] = _this.getValue(key);\n }\n });\n if (!(this.hasLayer() || this.getValue(\"angle\") || backwards_utils_legacyBaseUtil.contains([\"fit\", \"limit\", \"lfill\"], this.getValue(\"crop\")))) {\n width = (ref2 = this.get(\"width\")) != null ? ref2.origValue : void 0;\n height = (ref3 = this.get(\"height\")) != null ? ref3.origValue : void 0;\n if (parseFloat(width) >= 1.0) {\n if (options.width == null) {\n options.width = width;\n }\n }\n if (parseFloat(height) >= 1.0) {\n if (options.height == null) {\n options.height = height;\n }\n }\n }\n return options;\n };\n TransformationBase.isValidParamName = function (name) {\n return methods.indexOf(backwards_utils_legacyBaseUtil.camelCase(name)) >= 0;\n };\n /**\n * Delegate to the parent (up the call chain) to produce HTML\n * @function Transformation#toHtml\n * @return {string} HTML representation of the parent if possible.\n * @example\n * tag = cloudinary.ImageTag.new(\"sample\", {cloud_name: \"demo\"})\n * // ImageTag {name: \"img\", publicId: \"sample\"}\n * tag.toHtml()\n * // <img src=\"http://res.cloudinary.com/demo/image/upload/sample\">\n * tag.transformation().crop(\"fit\").width(300).toHtml()\n * // <img src=\"http://res.cloudinary.com/demo/image/upload/c_fit,w_300/sample\">\n */\n TransformationBase.prototype.toHtml = function () {\n var ref;\n return (ref = this.getParent()) != null ? typeof ref.toHtml === \"function\" ? ref.toHtml() : void 0 : void 0;\n };\n TransformationBase.prototype.toString = function () {\n return this.serialize();\n };\n TransformationBase.prototype.clone = function () {\n return new TransformationBase(this.toOptions(true));\n };\n return TransformationBase;\n}());\nvar VAR_NAME_RE = /^\\$[a-zA-Z0-9]+$/;\nvar trans_separator = '/';\nvar param_separator = ',';\nfunction lastArgCallback(args) {\n var callback;\n callback = args != null ? args[args.length - 1] : void 0;\n if (backwards_utils_isFunction.isFunction(callback)) {\n return callback;\n }\n else {\n return void 0;\n }\n}\nfunction processVar(varArray) {\n var _a;\n var j, len, name, results, v;\n if (Array.isArray(varArray)) {\n results = [];\n for (j = 0, len = varArray.length; j < len; j++) {\n _a = varArray[j], name = _a[0], v = _a[1];\n results.push(\"\".concat(name, \"_\").concat(backwards_expression.normalize(v)));\n }\n return results;\n }\n else {\n return varArray;\n }\n}\n// @ts-ignore\nfunction processCustomFunction(_a) {\n var function_type = _a.function_type, source = _a.source;\n if (function_type === 'remote') {\n return [function_type, btoa(source)].join(\":\");\n }\n else if (function_type === 'wasm') {\n return [function_type, source].join(\":\");\n }\n}\n/**\n * Transformation Class methods.\n * This is a list of the parameters defined in Transformation.\n * Values are camelCased.\n * @const Transformation.methods\n * @private\n * @ignore\n * @type {Array<string>}\n */\n/**\n * Parameters that are filtered out before passing the options to an HTML tag.\n *\n * The list of parameters is a combination of `Transformation::methods` and `Configuration::CONFIG_PARAMS`\n * @const {Array<string>} Transformation.PARAM_NAMES\n * @private\n * @ignore\n * @see toHtmlAttributes\n */\nvar Transformation = /** @class */ (function (_super) {\n tslib_es6.__extends(Transformation, _super);\n /**\n * Represents a single transformation.\n * @class Transformation\n * @example\n * t = new cloudinary.Transformation();\n * t.angle(20).crop(\"scale\").width(\"auto\");\n *\n * // or\n *\n * t = new cloudinary.Transformation( {angle: 20, crop: \"scale\", width: \"auto\"});\n * @see <a href=\"https://cloudinary.com/documentation/image_transformation_reference\"\n * target=\"_blank\">Available image transformations</a>\n * @see <a href=\"https://cloudinary.com/documentation/video_transformation_reference\"\n * target=\"_blank\">Available video transformations</a>\n */\n function Transformation(options) {\n return _super.call(this, options) || this;\n }\n /**\n * Convenience constructor\n * @param {Object} options\n * @return {Transformation}\n * @example cl = cloudinary.Transformation.new( {angle: 20, crop: \"scale\", width: \"auto\"})\n */\n Transformation.new = function (options) {\n return new Transformation(options);\n };\n /*\n Transformation Parameters\n */\n Transformation.prototype.angle = function (value) {\n this.arrayParam(value, \"angle\", \"a\", \".\", backwards_expression.normalize);\n return this;\n };\n Transformation.prototype.audioCodec = function (value) {\n this.param(value, \"audio_codec\", \"ac\");\n return this;\n };\n Transformation.prototype.audioFrequency = function (value) {\n this.param(value, \"audio_frequency\", \"af\");\n return this;\n };\n Transformation.prototype.aspectRatio = function (value) {\n this.param(value, \"aspect_ratio\", \"ar\", backwards_expression.normalize);\n return this;\n };\n Transformation.prototype.background = function (value) {\n this.param(value, \"background\", \"b\", Param.norm_color);\n return this;\n };\n Transformation.prototype.bitRate = function (value) {\n this.param(value, \"bit_rate\", \"br\");\n return this;\n };\n Transformation.prototype.border = function (value) {\n return this.param(value, \"border\", \"bo\", function (border) {\n if (backwards_utils_isObject.isObject(border)) {\n border = Object.assign({}, {\n color: \"black\",\n width: 2\n }, border);\n return \"\".concat(border.width, \"px_solid_\").concat(Param.norm_color(border.color));\n }\n else {\n return border;\n }\n });\n };\n Transformation.prototype.color = function (value) {\n this.param(value, \"color\", \"co\", Param.norm_color);\n return this;\n };\n Transformation.prototype.colorSpace = function (value) {\n this.param(value, \"color_space\", \"cs\");\n return this;\n };\n Transformation.prototype.crop = function (value) {\n this.param(value, \"crop\", \"c\");\n return this;\n };\n Transformation.prototype.customFunction = function (value) {\n return this.param(value, \"custom_function\", \"fn\", function () {\n return processCustomFunction(value);\n });\n };\n Transformation.prototype.customPreFunction = function (value) {\n if (this.get('custom_function')) {\n return;\n }\n return this.rawParam(value, \"custom_function\", \"\", function () {\n value = processCustomFunction(value);\n return value ? \"fn_pre:\".concat(value) : value;\n });\n };\n Transformation.prototype.defaultImage = function (value) {\n this.param(value, \"default_image\", \"d\");\n return this;\n };\n Transformation.prototype.delay = function (value) {\n this.param(value, \"delay\", \"dl\");\n return this;\n };\n Transformation.prototype.density = function (value) {\n this.param(value, \"density\", \"dn\");\n return this;\n };\n Transformation.prototype.duration = function (value) {\n this.rangeParam(value, \"duration\", \"du\");\n return this;\n };\n Transformation.prototype.dpr = function (value) {\n return this.param(value, \"dpr\", \"dpr\", function (dpr) {\n dpr = dpr.toString();\n if (dpr != null ? dpr.match(/^\\d+$/) : void 0) {\n return dpr + \".0\";\n }\n else {\n return backwards_expression.normalize(dpr);\n }\n });\n };\n Transformation.prototype.effect = function (value) {\n this.arrayParam(value, \"effect\", \"e\", \":\", backwards_expression.normalize);\n return this;\n };\n Transformation.prototype.else = function () {\n return this.if('else');\n };\n Transformation.prototype.endIf = function () {\n return this.if('end');\n };\n Transformation.prototype.endOffset = function (value) {\n this.rangeParam(value, \"end_offset\", \"eo\");\n return this;\n };\n Transformation.prototype.fallbackContent = function (value) {\n this.param(value, \"fallback_content\");\n return this;\n };\n Transformation.prototype.fetchFormat = function (value) {\n this.param(value, \"fetch_format\", \"f\");\n return this;\n };\n Transformation.prototype.format = function (value) {\n this.param(value, \"format\");\n return this;\n };\n Transformation.prototype.flags = function (value) {\n this.arrayParam(value, \"flags\", \"fl\", \".\");\n return this;\n };\n Transformation.prototype.gravity = function (value) {\n this.param(value, \"gravity\", \"g\");\n return this;\n };\n Transformation.prototype.fps = function (value) {\n return this.param(value, \"fps\", \"fps\", function (fps) {\n if (internal_utils_dataStructureUtils.isString(fps)) {\n return fps;\n }\n else if (Array.isArray(fps)) {\n return fps.join(\"-\");\n }\n else {\n return fps;\n }\n });\n };\n Transformation.prototype.height = function (value) {\n var _this = this;\n return this.param(value, \"height\", \"h\", function () {\n if (_this.getValue(\"crop\") || _this.getValue(\"overlay\") || _this.getValue(\"underlay\")) {\n return backwards_expression.normalize(value);\n }\n else {\n return null;\n }\n });\n };\n Transformation.prototype.htmlHeight = function (value) {\n this.param(value, \"html_height\");\n return this;\n };\n Transformation.prototype.htmlWidth = function (value) {\n this.param(value, \"html_width\");\n return this;\n };\n Transformation.prototype.if = function (value) {\n if (value === void 0) { value = \"\"; }\n var i, ifVal, j, trIf, trRest;\n switch (value) {\n case \"else\":\n this.chain();\n return this.param(value, \"if\", \"if\");\n case \"end\":\n this.chain();\n for (i = j = this.chained.length - 1; j >= 0; i = j += -1) {\n ifVal = this.chained[i].getValue(\"if\");\n if (ifVal === \"end\") {\n break;\n }\n else if (ifVal != null) {\n trIf = Transformation.new().if(ifVal);\n this.chained[i].remove(\"if\");\n trRest = this.chained[i];\n this.chained[i] = Transformation.new().transformation([trIf, trRest]);\n if (ifVal !== \"else\") {\n break;\n }\n }\n }\n return this.param(value, \"if\", \"if\");\n case \"\":\n return backwards_condition.new().setParent(this);\n default:\n return this.param(value, \"if\", \"if\", function (value) {\n return backwards_condition.new(value).toString();\n });\n }\n };\n Transformation.prototype.keyframeInterval = function (value) {\n this.param(value, \"keyframe_interval\", \"ki\");\n return this;\n };\n Transformation.prototype.ocr = function (value) {\n this.param(value, \"ocr\", \"ocr\");\n return this;\n };\n Transformation.prototype.offset = function (value) {\n var _a;\n var end_o, start_o;\n _a = (backwards_utils_isFunction.isFunction(value != null ? value.split : void 0)) ? value.split('..') : Array.isArray(value) ? value : [null, null], start_o = _a[0], end_o = _a[1];\n if (start_o != null) {\n this.startOffset(start_o);\n }\n if (end_o != null) {\n return this.endOffset(end_o);\n }\n };\n Transformation.prototype.opacity = function (value) {\n this.param(value, \"opacity\", \"o\", backwards_expression.normalize);\n return this;\n };\n Transformation.prototype.overlay = function (value) {\n this.layerParam(value, \"overlay\", \"l\");\n return this;\n };\n Transformation.prototype.page = function (value) {\n this.param(value, \"page\", \"pg\");\n return this;\n };\n Transformation.prototype.poster = function (value) {\n this.param(value, \"poster\");\n return this;\n };\n Transformation.prototype.prefix = function (value) {\n this.param(value, \"prefix\", \"p\");\n return this;\n };\n Transformation.prototype.quality = function (value) {\n this.param(value, \"quality\", \"q\", backwards_expression.normalize);\n return this;\n };\n Transformation.prototype.radius = function (value) {\n this.arrayParam(value, \"radius\", \"r\", \":\", backwards_expression.normalize);\n return this;\n };\n Transformation.prototype.rawTransformation = function (value) {\n this.rawParam(value, \"raw_transformation\");\n return this;\n };\n Transformation.prototype.size = function (value) {\n var _a;\n var height, width;\n if (backwards_utils_isFunction.isFunction(value != null ? value.split : void 0)) {\n _a = value.split('x'), width = _a[0], height = _a[1];\n this.width(width);\n return this.height(height);\n }\n };\n Transformation.prototype.sourceTypes = function (value) {\n this.param(value, \"source_types\");\n return this;\n };\n Transformation.prototype.sourceTransformation = function (value) {\n return this.param(value, \"source_transformation\");\n };\n Transformation.prototype.startOffset = function (value) {\n this.rangeParam(value, \"start_offset\", \"so\");\n return this;\n };\n Transformation.prototype.streamingProfile = function (value) {\n this.param(value, \"streaming_profile\", \"sp\");\n return this;\n };\n Transformation.prototype.transformation = function (value) {\n this.transformationParam(value, \"transformation\", \"t\");\n return this;\n };\n Transformation.prototype.underlay = function (value) {\n this.layerParam(value, \"underlay\", \"u\");\n return this;\n };\n Transformation.prototype.variable = function (name, value) {\n this.param(value, name, name);\n return this;\n };\n Transformation.prototype.variables = function (values) {\n this.arrayParam(values, \"variables\");\n return this;\n };\n Transformation.prototype.videoCodec = function (value) {\n this.param(value, \"video_codec\", \"vc\", Param.process_video_params);\n return this;\n };\n Transformation.prototype.videoSampling = function (value) {\n this.param(value, \"video_sampling\", \"vs\");\n return this;\n };\n Transformation.prototype.width = function (value) {\n var _this = this;\n this.param(value, \"width\", \"w\", function () {\n if (_this.getValue(\"crop\") || _this.getValue(\"overlay\") || _this.getValue(\"underlay\")) {\n return backwards_expression.normalize(value);\n }\n else {\n return null;\n }\n });\n return this;\n };\n Transformation.prototype.x = function (value) {\n this.param(value, \"x\", \"x\", backwards_expression.normalize);\n return this;\n };\n Transformation.prototype.y = function (value) {\n this.param(value, \"y\", \"y\", backwards_expression.normalize);\n return this;\n };\n Transformation.prototype.zoom = function (value) {\n this.param(value, \"zoom\", \"z\", backwards_expression.normalize);\n return this;\n };\n return Transformation;\n}(TransformationBase));\n/**\n * Transformation Class methods.\n * This is a list of the parameters defined in Transformation.\n * Values are camelCased.\n */\nvar methods = [\n \"angle\",\n \"audioCodec\",\n \"audioFrequency\",\n \"aspectRatio\",\n \"background\",\n \"bitRate\",\n \"border\",\n \"color\",\n \"colorSpace\",\n \"crop\",\n \"customFunction\",\n \"customPreFunction\",\n \"defaultImage\",\n \"delay\",\n \"density\",\n \"duration\",\n \"dpr\",\n \"effect\",\n \"else\",\n \"endIf\",\n \"endOffset\",\n \"fallbackContent\",\n \"fetchFormat\",\n \"format\",\n \"flags\",\n \"gravity\",\n \"fps\",\n \"height\",\n \"htmlHeight\",\n \"htmlWidth\",\n \"if\",\n \"keyframeInterval\",\n \"ocr\",\n \"offset\",\n \"opacity\",\n \"overlay\",\n \"page\",\n \"poster\",\n \"prefix\",\n \"quality\",\n \"radius\",\n \"rawTransformation\",\n \"size\",\n \"sourceTypes\",\n \"sourceTransformation\",\n \"startOffset\",\n \"streamingProfile\",\n \"transformation\",\n \"underlay\",\n \"variable\",\n \"variables\",\n \"videoCodec\",\n \"videoSampling\",\n \"width\",\n \"x\",\n \"y\",\n \"zoom\"\n];\n/**\n * Parameters that are filtered out before passing the options to an HTML tag.\n *\n * The list of parameters is a combination of `Transformation::methods` and `Configuration::CONFIG_PARAMS`\n */\nvar PARAM_NAMES = methods.map(backwards_utils_snakeCase.snakeCase).concat(backwards_configuration.CONFIG_PARAMS);\n\nexports.URL_KEYS = URL_KEYS;\nexports[\"default\"] = Transformation;\n\n\n//# sourceURL=webpack://cloudinaryVideoPlayer/../node_modules/@cloudinary/url-gen/backwards/transformation.cjs?");
|
|
252
252
|
|
|
253
253
|
/***/ }),
|
|
254
254
|
|
|
@@ -272,7 +272,7 @@ eval("\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar
|
|
|
272
272
|
/***/ (function(module, exports, __webpack_require__) {
|
|
273
273
|
|
|
274
274
|
"use strict";
|
|
275
|
-
eval("\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar backwards_transformationProcessing_processCustomFunction = __webpack_require__(/*! ./processCustomFunction.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/transformationProcessing/processCustomFunction.cjs\");\n__webpack_require__(/*! ../../internal/utils/base64Encode.cjs */ \"../node_modules/@cloudinary/url-gen/internal/utils/base64Encode.cjs\");\n__webpack_require__(/*! ../utils/isObject.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/isObject.cjs\");\n\n/**\n * Parse custom_pre_function options\n * @private\n * @param {object|*} customPreFunction a custom function object containing function_type and source values\n * @return {string|*} custom_pre_function transformation string\n */\nfunction processCustomPreFunction(customPreFunction) {\n var result = backwards_transformationProcessing_processCustomFunction.processCustomFunction(customPreFunction);\n return typeof result === 'string' ? \"pre:\"
|
|
275
|
+
eval("\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar backwards_transformationProcessing_processCustomFunction = __webpack_require__(/*! ./processCustomFunction.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/transformationProcessing/processCustomFunction.cjs\");\n__webpack_require__(/*! ../../internal/utils/base64Encode.cjs */ \"../node_modules/@cloudinary/url-gen/internal/utils/base64Encode.cjs\");\n__webpack_require__(/*! ../utils/isObject.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/isObject.cjs\");\n\n/**\n * Parse custom_pre_function options\n * @private\n * @param {object|*} customPreFunction a custom function object containing function_type and source values\n * @return {string|*} custom_pre_function transformation string\n */\nfunction processCustomPreFunction(customPreFunction) {\n var result = backwards_transformationProcessing_processCustomFunction.processCustomFunction(customPreFunction);\n return typeof result === 'string' ? \"pre:\".concat(result) : null;\n}\n\nexports.processCustomPreFunction = processCustomPreFunction;\n\n\n//# sourceURL=webpack://cloudinaryVideoPlayer/../node_modules/@cloudinary/url-gen/backwards/transformationProcessing/processCustomPreFunction.cjs?");
|
|
276
276
|
|
|
277
277
|
/***/ }),
|
|
278
278
|
|
|
@@ -308,7 +308,7 @@ eval("\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar
|
|
|
308
308
|
/***/ (function(module, exports, __webpack_require__) {
|
|
309
309
|
|
|
310
310
|
"use strict";
|
|
311
|
-
eval("\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar backwards_utils_isObject = __webpack_require__(/*! ../utils/isObject.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/isObject.cjs\");\nvar internal_utils_base64Encode = __webpack_require__(/*! ../../internal/utils/base64Encode.cjs */ \"../node_modules/@cloudinary/url-gen/internal/utils/base64Encode.cjs\");\nvar backwards_consts = __webpack_require__(/*! ../consts.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/consts.cjs\");\nvar backwards_utils_smartEscape = __webpack_require__(/*! ../utils/smartEscape.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/smartEscape.cjs\");\nvar backwards_legacyLayer_textlayer = __webpack_require__(/*! ../legacyLayer/textlayer.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/legacyLayer/textlayer.cjs\");\nvar backwards_legacyLayer_layer = __webpack_require__(/*! ../legacyLayer/layer.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/legacyLayer/layer.cjs\");\n__webpack_require__(/*! ../../tslib.es6-
|
|
311
|
+
eval("\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar backwards_utils_isObject = __webpack_require__(/*! ../utils/isObject.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/isObject.cjs\");\nvar internal_utils_base64Encode = __webpack_require__(/*! ../../internal/utils/base64Encode.cjs */ \"../node_modules/@cloudinary/url-gen/internal/utils/base64Encode.cjs\");\nvar backwards_consts = __webpack_require__(/*! ../consts.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/consts.cjs\");\nvar backwards_utils_smartEscape = __webpack_require__(/*! ../utils/smartEscape.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/smartEscape.cjs\");\nvar backwards_legacyLayer_textlayer = __webpack_require__(/*! ../legacyLayer/textlayer.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/legacyLayer/textlayer.cjs\");\nvar backwards_legacyLayer_layer = __webpack_require__(/*! ../legacyLayer/layer.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/legacyLayer/layer.cjs\");\n__webpack_require__(/*! ../../tslib.es6-bcbd7c13.cjs */ \"../node_modules/@cloudinary/url-gen/tslib.es6-bcbd7c13.cjs\");\n__webpack_require__(/*! ../utils/snakeCase.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/snakeCase.cjs\");\n__webpack_require__(/*! ../utils/isEmpty.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/isEmpty.cjs\");\n__webpack_require__(/*! ../utils/isNumberLike.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/utils/isNumberLike.cjs\");\n\n/**\n * Parse layer options\n * @private\n * @param {object|*} layer The layer to parse.\n * @return {string} layer transformation string\n */\nfunction textStyle(layer) {\n var keywords = [];\n var style = \"\";\n Object.keys(backwards_consts.LAYER_KEYWORD_PARAMS).forEach(function (attr) {\n var default_value = backwards_consts.LAYER_KEYWORD_PARAMS[attr];\n var attr_value = layer[attr] || default_value;\n if (attr_value !== default_value) {\n keywords.push(attr_value);\n }\n });\n Object.keys(layer).forEach(function (attr) {\n if (attr === \"letter_spacing\" || attr === \"line_spacing\") {\n keywords.push(\"\".concat(attr, \"_\").concat(layer[attr]));\n }\n if (attr === \"font_hinting\") {\n keywords.push(\"\".concat(attr.split(\"_\").pop(), \"_\").concat(layer[attr]));\n }\n if (attr === \"font_antialiasing\") {\n keywords.push(\"antialias_\".concat(layer[attr]));\n }\n });\n if (layer.hasOwnProperty(\"font_size\" ) || !keywords || keywords.length === 0) {\n if (!layer.font_size)\n throw \"Must supply font_size for text in overlay/underlay\";\n if (!layer.font_family)\n throw \"Must supply font_family for text in overlay/underlay\";\n keywords.unshift(layer.font_size);\n keywords.unshift(layer.font_family);\n style = keywords.filter(function (a) { return a; }).join(\"_\");\n }\n return style;\n}\nfunction processLayer(layer) {\n if (layer instanceof backwards_legacyLayer_textlayer || layer instanceof backwards_legacyLayer_layer) {\n return layer.toString();\n }\n var result = '';\n if (backwards_utils_isObject.isObject(layer)) {\n if (layer.resource_type === \"fetch\" || (layer.url != null)) {\n result = \"fetch:\".concat(internal_utils_base64Encode.base64Encode(layer.url));\n }\n else {\n var public_id = layer.public_id;\n var format = layer.format;\n var resource_type = layer.resource_type || \"image\";\n var type = layer.type || \"upload\";\n var text = layer.text;\n var style = null;\n var components = [];\n var noPublicId = !public_id || public_id.length === 0;\n if (!noPublicId) {\n public_id = public_id.replace(new RegExp(\"/\", 'g'), \":\");\n if (format != null) {\n public_id = \"\".concat(public_id, \".\").concat(format);\n }\n }\n if ((!text || text.length === 0) && resource_type !== \"text\") {\n if (noPublicId) {\n throw \"Must supply public_id for resource_type layer_parameter\";\n }\n if (resource_type === \"subtitles\") {\n style = textStyle(layer);\n }\n }\n else {\n resource_type = \"text\";\n type = null;\n // type is ignored for text layers\n style = textStyle(layer);\n if (text && text.length >= 0) {\n var noStyle = !style;\n if (!(noPublicId || noStyle) || (noPublicId && noStyle)) {\n throw \"Must supply either style parameters or a public_id when providing text parameter in a text overlay/underlay\";\n }\n var re = /\\$\\([a-zA-Z]\\w*\\)/g;\n var start = 0;\n var textSource = backwards_utils_smartEscape.smartEscape(decodeURIComponent(text), /[,\\/]/g);\n text = \"\";\n for (var res = re.exec(textSource); res; res = re.exec(textSource)) {\n text += backwards_utils_smartEscape.smartEscape(textSource.slice(start, res.index));\n text += res[0];\n start = res.index + res[0].length;\n }\n text += encodeURIComponent(textSource.slice(start));\n }\n }\n if (resource_type !== \"image\") {\n components.push(resource_type);\n }\n if (type !== \"upload\") {\n components.push(type);\n }\n components.push(style);\n components.push(public_id);\n components.push(text);\n result = components.filter(function (a) { return a; }).join(\":\");\n }\n }\n else if (/^fetch:.+/.test(layer)) {\n result = \"fetch:\".concat(internal_utils_base64Encode.base64Encode(layer.substr(6)));\n }\n else {\n result = layer;\n }\n return result;\n}\n\nexports.processLayer = processLayer;\nexports.textStyle = textStyle;\n\n\n//# sourceURL=webpack://cloudinaryVideoPlayer/../node_modules/@cloudinary/url-gen/backwards/transformationProcessing/processLayer.cjs?");
|
|
312
312
|
|
|
313
313
|
/***/ }),
|
|
314
314
|
|
|
@@ -428,7 +428,7 @@ eval("\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar
|
|
|
428
428
|
/***/ (function(module, exports, __webpack_require__) {
|
|
429
429
|
|
|
430
430
|
"use strict";
|
|
431
|
-
eval("\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar backwards_consts = __webpack_require__(/*! ../consts.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/consts.cjs\");\n\n/**\n * Normalize an offset value\n * @param {String} expression a decimal value which may have a 'p' or '%' postfix. E.g. '35%', '0.4p'\n * @return {Object|String} a normalized String of the input value if possible otherwise the value itself\n */\nfunction legacyNormalizeExpression(expression) {\n if (typeof expression !== 'string' || expression.length === 0 || expression.match(/^!.+!$/)) {\n if (expression) {\n return expression.toString();\n }\n else {\n return expression;\n }\n }\n expression = String(expression);\n var operators = \"\\\\|\\\\||>=|<=|&&|!=|>|=|<|/|-|\\\\+|\\\\*|\\\\^\";\n // operators\n var operatorsPattern = \"((\" + operators + \")(?=[ _]))\";\n var operatorsReplaceRE = new RegExp(operatorsPattern, \"g\");\n expression = expression.replace(operatorsReplaceRE, function (match) {\n return backwards_consts.LEGACY_CONDITIONAL_OPERATORS[match];\n });\n // predefined variables\n var predefinedVarsPattern = \"(\" + Object.keys(backwards_consts.LEGACY_PREDEFINED_VARS).join(\"|\") + \")\";\n var userVariablePattern = '(\\\\$_*[^_ ]+)';\n var variablesReplaceRE = new RegExp(userVariablePattern
|
|
431
|
+
eval("\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar backwards_consts = __webpack_require__(/*! ../consts.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/consts.cjs\");\n\n/**\n * Normalize an offset value\n * @param {String} expression a decimal value which may have a 'p' or '%' postfix. E.g. '35%', '0.4p'\n * @return {Object|String} a normalized String of the input value if possible otherwise the value itself\n */\nfunction legacyNormalizeExpression(expression) {\n if (typeof expression !== 'string' || expression.length === 0 || expression.match(/^!.+!$/)) {\n if (expression) {\n return expression.toString();\n }\n else {\n return expression;\n }\n }\n expression = String(expression);\n var operators = \"\\\\|\\\\||>=|<=|&&|!=|>|=|<|/|-|\\\\+|\\\\*|\\\\^\";\n // operators\n var operatorsPattern = \"((\" + operators + \")(?=[ _]))\";\n var operatorsReplaceRE = new RegExp(operatorsPattern, \"g\");\n expression = expression.replace(operatorsReplaceRE, function (match) {\n return backwards_consts.LEGACY_CONDITIONAL_OPERATORS[match];\n });\n // predefined variables\n var predefinedVarsPattern = \"(\" + Object.keys(backwards_consts.LEGACY_PREDEFINED_VARS).join(\"|\") + \")\";\n var userVariablePattern = '(\\\\$_*[^_ ]+)';\n var variablesReplaceRE = new RegExp(\"\".concat(userVariablePattern, \"|\").concat(predefinedVarsPattern), \"g\");\n // @ts-ignore\n expression = expression.replace(variablesReplaceRE, function (match) { return (backwards_consts.LEGACY_PREDEFINED_VARS[match] || match); });\n return expression.replace(/[ _]+/g, '_');\n}\n\nexports.legacyNormalizeExpression = legacyNormalizeExpression;\n\n\n//# sourceURL=webpack://cloudinaryVideoPlayer/../node_modules/@cloudinary/url-gen/backwards/utils/legacyNormalizeExpression.cjs?");
|
|
432
432
|
|
|
433
433
|
/***/ }),
|
|
434
434
|
|
|
@@ -440,7 +440,7 @@ eval("\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar
|
|
|
440
440
|
/***/ (function(module, exports, __webpack_require__) {
|
|
441
441
|
|
|
442
442
|
"use strict";
|
|
443
|
-
eval("\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar backwards_consts = __webpack_require__(/*! ../consts.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/consts.cjs\");\n\n/**\n *\n * @param value\n */\nfunction normRangeValues(value) {\n var offset = String(value).match(backwards_consts.RANGE_VALUE_RE);\n if (offset) {\n var modifier = offset[5] ? 'p' : '';\n return \"\"
|
|
443
|
+
eval("\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar backwards_consts = __webpack_require__(/*! ../consts.cjs */ \"../node_modules/@cloudinary/url-gen/backwards/consts.cjs\");\n\n/**\n *\n * @param value\n */\nfunction normRangeValues(value) {\n var offset = String(value).match(backwards_consts.RANGE_VALUE_RE);\n if (offset) {\n var modifier = offset[5] ? 'p' : '';\n return \"\".concat(offset[1] || offset[4]).concat(modifier);\n }\n else {\n return value;\n }\n}\n\nexports.normRangeValues = normRangeValues;\n\n\n//# sourceURL=webpack://cloudinaryVideoPlayer/../node_modules/@cloudinary/url-gen/backwards/utils/norm_range_values.cjs?");
|
|
444
444
|
|
|
445
445
|
/***/ }),
|
|
446
446
|
|
|
@@ -464,7 +464,7 @@ eval("\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n// B
|
|
|
464
464
|
/***/ (function(module, exports, __webpack_require__) {
|
|
465
465
|
|
|
466
466
|
"use strict";
|
|
467
|
-
eval("\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n/**\n * Converts string to snake case\n * @param {string} str\n */\nvar snakeCase = function (str) { return str.replace(/[A-Z]/g, function (letter) { return \"_\"
|
|
467
|
+
eval("\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n/**\n * Converts string to snake case\n * @param {string} str\n */\nvar snakeCase = function (str) { return str.replace(/[A-Z]/g, function (letter) { return \"_\".concat(letter.toLowerCase()); }); };\n\nexports.snakeCase = snakeCase;\n\n\n//# sourceURL=webpack://cloudinaryVideoPlayer/../node_modules/@cloudinary/url-gen/backwards/utils/snakeCase.cjs?");
|
|
468
468
|
|
|
469
469
|
/***/ }),
|
|
470
470
|
|
|
@@ -524,7 +524,7 @@ eval("/* WEBPACK VAR INJECTION */(function(global) {\n\nObject.defineProperty(ex
|
|
|
524
524
|
/***/ (function(module, exports, __webpack_require__) {
|
|
525
525
|
|
|
526
526
|
"use strict";
|
|
527
|
-
eval("/* WEBPACK VAR INJECTION */(function(global, module) {\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n/* eslint-disable */\n// @ts-nocheck\n// This file is a direct copy from lodash.clonedeep\n// Lodash.clonedeep has problems with the module exports, thus a copy was the shortest and cleanest solution\n/**\n * lodash (Custom Build) <https://lodash.com/>\n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors <https://jquery.org/>\n * Released under MIT license <https://lodash.com/license>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n/** Used as references for constious `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]', arrayTag = '[object Array]', boolTag = '[object Boolean]', dateTag = '[object Date]', errorTag = '[object Error]', funcTag = '[object Function]', genTag = '[object GeneratorFunction]', mapTag = '[object Map]', numberTag = '[object Number]', objectTag = '[object Object]', promiseTag = '[object Promise]', regexpTag = '[object RegExp]', setTag = '[object Set]', stringTag = '[object String]', symbolTag = '[object Symbol]', weakMapTag = '[object WeakMap]';\nvar arrayBufferTag = '[object ArrayBuffer]', dataViewTag = '[object DataView]', float32Tag = '[object Float32Array]', float64Tag = '[object Float64Array]', int8Tag = '[object Int8Array]', int16Tag = '[object Int16Array]', int32Tag = '[object Int32Array]', uint8Tag = '[object Uint8Array]', uint8ClampedTag = '[object Uint8ClampedArray]', uint16Tag = '[object Uint16Array]', uint32Tag = '[object Uint32Array]';\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n/** Used to match `RegExp` flags from their coerced string values. */\nvar reFlags = /\\w*$/;\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n/** Used to identify `toStringTag` values supported by `_.clone`. */\nvar cloneableTags = {};\ncloneableTags[argsTag] = cloneableTags[arrayTag] =\n cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =\n cloneableTags[boolTag] = cloneableTags[dateTag] =\n cloneableTags[float32Tag] = cloneableTags[float64Tag] =\n cloneableTags[int8Tag] = cloneableTags[int16Tag] =\n cloneableTags[int32Tag] = cloneableTags[mapTag] =\n cloneableTags[numberTag] = cloneableTags[objectTag] =\n cloneableTags[regexpTag] = cloneableTags[setTag] =\n cloneableTags[stringTag] = cloneableTags[symbolTag] =\n cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =\n cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;\ncloneableTags[errorTag] = cloneableTags[funcTag] =\n cloneableTags[weakMapTag] = false;\n/** Detect free constiable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n/** Detect free constiable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n/** Detect free constiable `exports`. */\nvar freeExports = true && exports && !exports.nodeType && exports;\n/** Detect free constiable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n/**\n * Adds the key-value `pair` to `map`.\n *\n * @private\n * @param {Object} map The map to modify.\n * @param {Array} pair The key-value pair to add.\n * @returns {Object} Returns `map`.\n */\nfunction addMapEntry(map, pair) {\n // Don't return `map.set` because it's not chainable in IE 11.\n map.set(pair[0], pair[1]);\n return map;\n}\n/**\n * Adds `value` to `set`.\n *\n * @private\n * @param {Object} set The set to modify.\n * @param {*} value The value to add.\n * @returns {Object} Returns `set`.\n */\nfunction addSetEntry(set, value) {\n // Don't return `set.add` because it's not chainable in IE 11.\n set.add(value);\n return set;\n}\n/**\n * A specialized version of `_.forEach` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\nfunction arrayEach(array, iteratee) {\n var index = -1, length = array ? array.length : 0;\n while (++index < length) {\n if (iteratee(array[index], index, array) === false) {\n break;\n }\n }\n return array;\n}\n/**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\nfunction arrayPush(array, values) {\n var index = -1, length = values.length, offset = array.length;\n while (++index < length) {\n array[offset + index] = values[index];\n }\n return array;\n}\n/**\n * A specialized version of `_.reduce` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {boolean} [initAccum] Specify using the first element of `array` as\n * the initial value.\n * @returns {*} Returns the accumulated value.\n */\nfunction arrayReduce(array, iteratee, accumulator, initAccum) {\n var index = -1, length = array ? array.length : 0;\n if (initAccum && length) {\n accumulator = array[++index];\n }\n while (++index < length) {\n accumulator = iteratee(accumulator, array[index], index, array);\n }\n return accumulator;\n}\n/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n var index = -1, result = Array(n);\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n}\n/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n return object == null ? undefined : object[key];\n}\n/**\n * Checks if `value` is a host object in IE < 9.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a host object, else `false`.\n */\nfunction isHostObject(value) {\n // Many host objects are `Object` objects that can coerce to strings\n // despite having improperly defined `toString` methods.\n var result = false;\n if (value != null && typeof value.toString != 'function') {\n try {\n result = !!(\"\" + value);\n }\n catch (e) {\n }\n }\n return result;\n}\n/**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\nfunction mapToArray(map) {\n var index = -1, result = Array(map.size);\n map.forEach(function (value, key) {\n result[++index] = [key, value];\n });\n return result;\n}\n/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function (arg) {\n return func(transform(arg));\n };\n}\n/**\n * Converts `set` to an array of its values.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the values.\n */\nfunction setToArray(set) {\n var index = -1, result = Array(set.size);\n set.forEach(function (value) {\n result[++index] = value;\n });\n return result;\n}\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype, funcProto = Function.prototype, objectProto = Object.prototype;\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function () {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? (\"Symbol(src)_1.\" + uid) : '';\n}());\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp(\"^\" + funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + \"$\");\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined, Symbol = root.Symbol, Uint8Array = root.Uint8Array, getPrototype = overArg(Object.getPrototypeOf, Object), objectCreate = Object.create, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice;\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols, nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined, nativeKeys = overArg(Object.keys, Object);\n/* Built-in method references that are verified to be native. */\nvar DataView = getNative(root, 'DataView'), Map = getNative(root, 'Map'), Promise$1 = getNative(root, 'Promise'), Set = getNative(root, 'Set'), WeakMap = getNative(root, 'WeakMap'), nativeCreate = getNative(Object, 'create');\n/** Used to detect maps, sets, and weakmaps. */\nvar dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise$1), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap);\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n var index = -1, length = entries ? entries.length : 0;\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\nfunction hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n}\n/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n return this.has(key) && delete this.__data__[key];\n}\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key);\n}\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n var data = this.__data__;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n}\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype.delete = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n var index = -1, length = entries ? entries.length : 0;\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n this.__data__ = [];\n}\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n var data = this.__data__, index = assocIndexOf(data, key);\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n }\n else {\n splice.call(data, index, 1);\n }\n return true;\n}\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n var data = this.__data__, index = assocIndexOf(data, key);\n return index < 0 ? undefined : data[index][1];\n}\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n}\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n var data = this.__data__, index = assocIndexOf(data, key);\n if (index < 0) {\n data.push([key, value]);\n }\n else {\n data[index][1] = value;\n }\n return this;\n}\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype.delete = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n var index = -1, length = entries ? entries.length : 0;\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n}\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n return getMapData(this, key).delete(key);\n}\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n return getMapData(this, key).has(key);\n}\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n getMapData(this, key).set(key, value);\n return this;\n}\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype.delete = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n/**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Stack(entries) {\n this.__data__ = new ListCache(entries);\n}\n/**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\nfunction stackClear() {\n this.__data__ = new ListCache;\n}\n/**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction stackDelete(key) {\n return this.__data__.delete(key);\n}\n/**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction stackGet(key) {\n return this.__data__.get(key);\n}\n/**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction stackHas(key) {\n return this.__data__.has(key);\n}\n/**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\nfunction stackSet(key, value) {\n var cache = this.__data__;\n if (cache instanceof ListCache) {\n var pairs = cache.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n return this;\n }\n cache = this.__data__ = new MapCache(pairs);\n }\n cache.set(key, value);\n return this;\n}\n// Add methods to `Stack`.\nStack.prototype.clear = stackClear;\nStack.prototype.delete = stackDelete;\nStack.prototype.get = stackGet;\nStack.prototype.has = stackHas;\nStack.prototype.set = stackSet;\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n // Safari 8.1 makes `arguments.callee` enumerable in strict mode.\n // Safari 9 makes `arguments.length` enumerable in strict mode.\n var result = (isArray(value) || isArguments(value))\n ? baseTimes(value.length, String)\n : [];\n var length = result.length, skipIndexes = !!length;\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (key == 'length' || isIndex(key, length)))) {\n result.push(key);\n }\n }\n return result;\n}\n/**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignValue(object, key, value) {\n var objValue = object[key];\n if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\n (value === undefined && !(key in object))) {\n object[key] = value;\n }\n}\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n}\n/**\n * The base implementation of `_.assign` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\nfunction baseAssign(object, source) {\n return object && copyObject(source, keys(source), object);\n}\n/**\n * The base implementation of `_.clone` and `_.cloneDeep` which tracks\n * traversed objects.\n *\n * @private\n * @param {*} value The value to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @param {boolean} [isFull] Specify a clone including symbols.\n * @param {Function} [customizer] The function to customize cloning.\n * @param {string} [key] The key of `value`.\n * @param {Object} [object] The parent object of `value`.\n * @param {Object} [stack] Tracks traversed objects and their clone counterparts.\n * @returns {*} Returns the cloned value.\n */\nfunction baseClone(value, isDeep, isFull, customizer, key, object, stack) {\n var result;\n if (customizer) {\n result = object ? customizer(value, key, object, stack) : customizer(value);\n }\n if (result !== undefined) {\n return result;\n }\n if (!isObject(value)) {\n return value;\n }\n var isArr = isArray(value);\n if (isArr) {\n result = initCloneArray(value);\n if (!isDeep) {\n return copyArray(value, result);\n }\n }\n else {\n var tag = getTag(value), isFunc = tag == funcTag || tag == genTag;\n if (isBuffer(value)) {\n return cloneBuffer(value, isDeep);\n }\n if (tag == objectTag || tag == argsTag || (isFunc && !object)) {\n if (isHostObject(value)) {\n return object ? value : {};\n }\n result = initCloneObject(isFunc ? {} : value);\n if (!isDeep) {\n return copySymbols(value, baseAssign(result, value));\n }\n }\n else {\n if (!cloneableTags[tag]) {\n return object ? value : {};\n }\n result = initCloneByTag(value, tag, baseClone, isDeep);\n }\n }\n // Check for circular references and return its corresponding clone.\n stack || (stack = new Stack);\n var stacked = stack.get(value);\n if (stacked) {\n return stacked;\n }\n stack.set(value, result);\n if (!isArr) {\n var props = isFull ? getAllKeys(value) : keys(value);\n }\n arrayEach(props || value, function (subValue, key) {\n if (props) {\n key = subValue;\n subValue = value[key];\n }\n // Recursively populate clone (susceptible to call stack limits).\n assignValue(result, key, baseClone(subValue, isDeep, isFull, customizer, key, value, stack));\n });\n return result;\n}\n/**\n * The base implementation of `_.create` without support for assigning\n * properties to the created object.\n *\n * @private\n * @param {Object} prototype The object to inherit from.\n * @returns {Object} Returns the new object.\n */\nfunction baseCreate(proto) {\n return isObject(proto) ? objectCreate(proto) : {};\n}\n/**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction baseGetAllKeys(object, keysFunc, symbolsFunc) {\n var result = keysFunc(object);\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n}\n/**\n * The base implementation of `getTag`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n return objectToString.call(value);\n}\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\nfunction baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n/**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n}\n/**\n * Creates a clone of `buffer`.\n *\n * @private\n * @param {Buffer} buffer The buffer to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Buffer} Returns the cloned buffer.\n */\nfunction cloneBuffer(buffer, isDeep) {\n if (isDeep) {\n return buffer.slice();\n }\n var result = new buffer.constructor(buffer.length);\n buffer.copy(result);\n return result;\n}\n/**\n * Creates a clone of `arrayBuffer`.\n *\n * @private\n * @param {ArrayBuffer} arrayBuffer The array buffer to clone.\n * @returns {ArrayBuffer} Returns the cloned array buffer.\n */\nfunction cloneArrayBuffer(arrayBuffer) {\n var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\n new Uint8Array(result).set(new Uint8Array(arrayBuffer));\n return result;\n}\n/**\n * Creates a clone of `dataView`.\n *\n * @private\n * @param {Object} dataView The data view to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned data view.\n */\nfunction cloneDataView(dataView, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;\n return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);\n}\n/**\n * Creates a clone of `map`.\n *\n * @private\n * @param {Object} map The map to clone.\n * @param {Function} cloneFunc The function to clone values.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned map.\n */\nfunction cloneMap(map, isDeep, cloneFunc) {\n var array = isDeep ? cloneFunc(mapToArray(map), true) : mapToArray(map);\n return arrayReduce(array, addMapEntry, new map.constructor);\n}\n/**\n * Creates a clone of `regexp`.\n *\n * @private\n * @param {Object} regexp The regexp to clone.\n * @returns {Object} Returns the cloned regexp.\n */\nfunction cloneRegExp(regexp) {\n var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));\n result.lastIndex = regexp.lastIndex;\n return result;\n}\n/**\n * Creates a clone of `set`.\n *\n * @private\n * @param {Object} set The set to clone.\n * @param {Function} cloneFunc The function to clone values.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned set.\n */\nfunction cloneSet(set, isDeep, cloneFunc) {\n var array = isDeep ? cloneFunc(setToArray(set), true) : setToArray(set);\n return arrayReduce(array, addSetEntry, new set.constructor);\n}\n/**\n * Creates a clone of the `symbol` object.\n *\n * @private\n * @param {Object} symbol The symbol object to clone.\n * @returns {Object} Returns the cloned symbol object.\n */\nfunction cloneSymbol(symbol) {\n return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};\n}\n/**\n * Creates a clone of `typedArray`.\n *\n * @private\n * @param {Object} typedArray The typed array to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned typed array.\n */\nfunction cloneTypedArray(typedArray, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n}\n/**\n * Copies the values of `source` to `array`.\n *\n * @private\n * @param {Array} source The array to copy values from.\n * @param {Array} [array=[]] The array to copy values to.\n * @returns {Array} Returns `array`.\n */\nfunction copyArray(source, array) {\n var index = -1, length = source.length;\n array || (array = Array(length));\n while (++index < length) {\n array[index] = source[index];\n }\n return array;\n}\n/**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\nfunction copyObject(source, props, object, customizer) {\n object || (object = {});\n var index = -1, length = props.length;\n while (++index < length) {\n var key = props[index];\n var newValue = customizer\n ? customizer(object[key], source[key], key, object, source)\n : undefined;\n assignValue(object, key, newValue === undefined ? source[key] : newValue);\n }\n return object;\n}\n/**\n * Copies own symbol properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\nfunction copySymbols(source, object) {\n return copyObject(source, getSymbols(source), object);\n}\n/**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeys(object) {\n return baseGetAllKeys(object, keys, getSymbols);\n}\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n}\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n/**\n * Creates an array of the own enumerable symbol properties of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbols = nativeGetSymbols ? overArg(nativeGetSymbols, Object) : stubArray;\n/**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nvar getTag = baseGetTag;\n// Fallback for data views, maps, sets, and weak maps in IE 11,\n// for data views in Edge < 14, and promises in Node.js.\nif ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n (Map && getTag(new Map) != mapTag) ||\n (Promise$1 && getTag(Promise$1.resolve()) != promiseTag) ||\n (Set && getTag(new Set) != setTag) ||\n (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n getTag = function (value) {\n var result = objectToString.call(value), Ctor = result == objectTag ? value.constructor : undefined, ctorString = Ctor ? toSource(Ctor) : undefined;\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString:\n return dataViewTag;\n case mapCtorString:\n return mapTag;\n case promiseCtorString:\n return promiseTag;\n case setCtorString:\n return setTag;\n case weakMapCtorString:\n return weakMapTag;\n }\n }\n return result;\n };\n}\n/**\n * Initializes an array clone.\n *\n * @private\n * @param {Array} array The array to clone.\n * @returns {Array} Returns the initialized clone.\n */\nfunction initCloneArray(array) {\n var length = array.length, result = array.constructor(length);\n // Add properties assigned by `RegExp#exec`.\n if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {\n result.index = array.index;\n result.input = array.input;\n }\n return result;\n}\n/**\n * Initializes an object clone.\n *\n * @private\n * @param {Object} object The object to clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneObject(object) {\n return (typeof object.constructor == 'function' && !isPrototype(object))\n ? baseCreate(getPrototype(object))\n : {};\n}\n/**\n * Initializes an object clone based on its `toStringTag`.\n *\n * **Note:** This function only supports cloning values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to clone.\n * @param {string} tag The `toStringTag` of the object to clone.\n * @param {Function} cloneFunc The function to clone values.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneByTag(object, tag, cloneFunc, isDeep) {\n var Ctor = object.constructor;\n switch (tag) {\n case arrayBufferTag:\n return cloneArrayBuffer(object);\n case boolTag:\n case dateTag:\n return new Ctor(+object);\n case dataViewTag:\n return cloneDataView(object, isDeep);\n case float32Tag:\n case float64Tag:\n case int8Tag:\n case int16Tag:\n case int32Tag:\n case uint8Tag:\n case uint8ClampedTag:\n case uint16Tag:\n case uint32Tag:\n return cloneTypedArray(object, isDeep);\n case mapTag:\n return cloneMap(object, isDeep, cloneFunc);\n case numberTag:\n case stringTag:\n return new Ctor(object);\n case regexpTag:\n return cloneRegExp(object);\n case setTag:\n return cloneSet(object, isDeep, cloneFunc);\n case symbolTag:\n return cloneSymbol(object);\n }\n}\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n length = length == null ? MAX_SAFE_INTEGER : length;\n return !!length &&\n (typeof value == 'number' || reIsUint.test(value)) &&\n (value > -1 && value % 1 == 0 && value < length);\n}\n/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n}\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n}\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n var Ctor = value && value.constructor, proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n return value === proto;\n}\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to process.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n }\n catch (e) {\n }\n try {\n return (\"\" + func);\n }\n catch (e) {\n }\n }\n return '';\n}\n/**\n * This method is like `_.clone` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @returns {*} Returns the deep cloned value.\n * @see _.clone\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var deep = _.cloneDeep(objects);\n * console.log(deep[0] === objects[0]);\n * // => false\n */\nfunction cloneDeep(value) {\n return baseClone(value, true, true);\n}\n/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || (value !== value && other !== other);\n}\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nfunction isArguments(value) {\n // Safari 8.1 makes `arguments.callee` enumerable in strict mode.\n return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') &&\n (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag);\n}\n/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n/**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\nfunction isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n}\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\nvar isBuffer = nativeIsBuffer || stubFalse;\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 8-9 which returns 'object' for typed array and other constructors.\n var tag = isObject(value) ? objectToString.call(value) : '';\n return tag == funcTag || tag == genTag;\n}\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\nfunction keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n}\n/**\n * This method returns a new empty array.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {Array} Returns the new empty array.\n * @example\n *\n * var arrays = _.times(2, _.stubArray);\n *\n * console.log(arrays);\n * // => [[], []]\n *\n * console.log(arrays[0] === arrays[1]);\n * // => false\n */\nfunction stubArray() {\n return [];\n}\n/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n return false;\n}\n\nexports.cloneDeep = cloneDeep;\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../webpack/buildin/global.js */ \"../node_modules/webpack/buildin/global.js\"), __webpack_require__(/*! ./../../../../webpack/buildin/module.js */ \"../node_modules/webpack/buildin/module.js\")(module)))\n\n//# sourceURL=webpack://cloudinaryVideoPlayer/../node_modules/@cloudinary/url-gen/internal/utils/cloneDeep.cjs?");
|
|
527
|
+
eval("/* WEBPACK VAR INJECTION */(function(global, module) {\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n/* eslint-disable */\n// @ts-nocheck\n// This file is a direct copy from lodash.clonedeep\n// Lodash.clonedeep has problems with the module exports, thus a copy was the shortest and cleanest solution\n/**\n * lodash (Custom Build) <https://lodash.com/>\n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors <https://jquery.org/>\n * Released under MIT license <https://lodash.com/license>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n/** Used as references for constious `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]', arrayTag = '[object Array]', boolTag = '[object Boolean]', dateTag = '[object Date]', errorTag = '[object Error]', funcTag = '[object Function]', genTag = '[object GeneratorFunction]', mapTag = '[object Map]', numberTag = '[object Number]', objectTag = '[object Object]', promiseTag = '[object Promise]', regexpTag = '[object RegExp]', setTag = '[object Set]', stringTag = '[object String]', symbolTag = '[object Symbol]', weakMapTag = '[object WeakMap]';\nvar arrayBufferTag = '[object ArrayBuffer]', dataViewTag = '[object DataView]', float32Tag = '[object Float32Array]', float64Tag = '[object Float64Array]', int8Tag = '[object Int8Array]', int16Tag = '[object Int16Array]', int32Tag = '[object Int32Array]', uint8Tag = '[object Uint8Array]', uint8ClampedTag = '[object Uint8ClampedArray]', uint16Tag = '[object Uint16Array]', uint32Tag = '[object Uint32Array]';\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n/** Used to match `RegExp` flags from their coerced string values. */\nvar reFlags = /\\w*$/;\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n/** Used to identify `toStringTag` values supported by `_.clone`. */\nvar cloneableTags = {};\ncloneableTags[argsTag] = cloneableTags[arrayTag] =\n cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =\n cloneableTags[boolTag] = cloneableTags[dateTag] =\n cloneableTags[float32Tag] = cloneableTags[float64Tag] =\n cloneableTags[int8Tag] = cloneableTags[int16Tag] =\n cloneableTags[int32Tag] = cloneableTags[mapTag] =\n cloneableTags[numberTag] = cloneableTags[objectTag] =\n cloneableTags[regexpTag] = cloneableTags[setTag] =\n cloneableTags[stringTag] = cloneableTags[symbolTag] =\n cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =\n cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;\ncloneableTags[errorTag] = cloneableTags[funcTag] =\n cloneableTags[weakMapTag] = false;\n/** Detect free constiable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n/** Detect free constiable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n/** Detect free constiable `exports`. */\nvar freeExports = true && exports && !exports.nodeType && exports;\n/** Detect free constiable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n/**\n * Adds the key-value `pair` to `map`.\n *\n * @private\n * @param {Object} map The map to modify.\n * @param {Array} pair The key-value pair to add.\n * @returns {Object} Returns `map`.\n */\nfunction addMapEntry(map, pair) {\n // Don't return `map.set` because it's not chainable in IE 11.\n map.set(pair[0], pair[1]);\n return map;\n}\n/**\n * Adds `value` to `set`.\n *\n * @private\n * @param {Object} set The set to modify.\n * @param {*} value The value to add.\n * @returns {Object} Returns `set`.\n */\nfunction addSetEntry(set, value) {\n // Don't return `set.add` because it's not chainable in IE 11.\n set.add(value);\n return set;\n}\n/**\n * A specialized version of `_.forEach` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\nfunction arrayEach(array, iteratee) {\n var index = -1, length = array ? array.length : 0;\n while (++index < length) {\n if (iteratee(array[index], index, array) === false) {\n break;\n }\n }\n return array;\n}\n/**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\nfunction arrayPush(array, values) {\n var index = -1, length = values.length, offset = array.length;\n while (++index < length) {\n array[offset + index] = values[index];\n }\n return array;\n}\n/**\n * A specialized version of `_.reduce` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {boolean} [initAccum] Specify using the first element of `array` as\n * the initial value.\n * @returns {*} Returns the accumulated value.\n */\nfunction arrayReduce(array, iteratee, accumulator, initAccum) {\n var index = -1, length = array ? array.length : 0;\n if (initAccum && length) {\n accumulator = array[++index];\n }\n while (++index < length) {\n accumulator = iteratee(accumulator, array[index], index, array);\n }\n return accumulator;\n}\n/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n var index = -1, result = Array(n);\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n}\n/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n return object == null ? undefined : object[key];\n}\n/**\n * Checks if `value` is a host object in IE < 9.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a host object, else `false`.\n */\nfunction isHostObject(value) {\n // Many host objects are `Object` objects that can coerce to strings\n // despite having improperly defined `toString` methods.\n var result = false;\n if (value != null && typeof value.toString != 'function') {\n try {\n result = !!(\"\".concat(value));\n }\n catch (e) {\n }\n }\n return result;\n}\n/**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\nfunction mapToArray(map) {\n var index = -1, result = Array(map.size);\n map.forEach(function (value, key) {\n result[++index] = [key, value];\n });\n return result;\n}\n/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function (arg) {\n return func(transform(arg));\n };\n}\n/**\n * Converts `set` to an array of its values.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the values.\n */\nfunction setToArray(set) {\n var index = -1, result = Array(set.size);\n set.forEach(function (value) {\n result[++index] = value;\n });\n return result;\n}\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype, funcProto = Function.prototype, objectProto = Object.prototype;\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function () {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? (\"Symbol(src)_1.\".concat(uid)) : '';\n}());\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp(\"^\".concat(funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?'), \"$\"));\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined, Symbol = root.Symbol, Uint8Array = root.Uint8Array, getPrototype = overArg(Object.getPrototypeOf, Object), objectCreate = Object.create, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice;\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols, nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined, nativeKeys = overArg(Object.keys, Object);\n/* Built-in method references that are verified to be native. */\nvar DataView = getNative(root, 'DataView'), Map = getNative(root, 'Map'), Promise$1 = getNative(root, 'Promise'), Set = getNative(root, 'Set'), WeakMap = getNative(root, 'WeakMap'), nativeCreate = getNative(Object, 'create');\n/** Used to detect maps, sets, and weakmaps. */\nvar dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise$1), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap);\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n var index = -1, length = entries ? entries.length : 0;\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\nfunction hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n}\n/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n return this.has(key) && delete this.__data__[key];\n}\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key);\n}\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n var data = this.__data__;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n}\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype.delete = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n var index = -1, length = entries ? entries.length : 0;\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n this.__data__ = [];\n}\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n var data = this.__data__, index = assocIndexOf(data, key);\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n }\n else {\n splice.call(data, index, 1);\n }\n return true;\n}\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n var data = this.__data__, index = assocIndexOf(data, key);\n return index < 0 ? undefined : data[index][1];\n}\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n}\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n var data = this.__data__, index = assocIndexOf(data, key);\n if (index < 0) {\n data.push([key, value]);\n }\n else {\n data[index][1] = value;\n }\n return this;\n}\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype.delete = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n var index = -1, length = entries ? entries.length : 0;\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n}\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n return getMapData(this, key).delete(key);\n}\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n return getMapData(this, key).has(key);\n}\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n getMapData(this, key).set(key, value);\n return this;\n}\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype.delete = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n/**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Stack(entries) {\n this.__data__ = new ListCache(entries);\n}\n/**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\nfunction stackClear() {\n this.__data__ = new ListCache;\n}\n/**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction stackDelete(key) {\n return this.__data__.delete(key);\n}\n/**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction stackGet(key) {\n return this.__data__.get(key);\n}\n/**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction stackHas(key) {\n return this.__data__.has(key);\n}\n/**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\nfunction stackSet(key, value) {\n var cache = this.__data__;\n if (cache instanceof ListCache) {\n var pairs = cache.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n return this;\n }\n cache = this.__data__ = new MapCache(pairs);\n }\n cache.set(key, value);\n return this;\n}\n// Add methods to `Stack`.\nStack.prototype.clear = stackClear;\nStack.prototype.delete = stackDelete;\nStack.prototype.get = stackGet;\nStack.prototype.has = stackHas;\nStack.prototype.set = stackSet;\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n // Safari 8.1 makes `arguments.callee` enumerable in strict mode.\n // Safari 9 makes `arguments.length` enumerable in strict mode.\n var result = (isArray(value) || isArguments(value))\n ? baseTimes(value.length, String)\n : [];\n var length = result.length, skipIndexes = !!length;\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (key == 'length' || isIndex(key, length)))) {\n result.push(key);\n }\n }\n return result;\n}\n/**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignValue(object, key, value) {\n var objValue = object[key];\n if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\n (value === undefined && !(key in object))) {\n object[key] = value;\n }\n}\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n}\n/**\n * The base implementation of `_.assign` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\nfunction baseAssign(object, source) {\n return object && copyObject(source, keys(source), object);\n}\n/**\n * The base implementation of `_.clone` and `_.cloneDeep` which tracks\n * traversed objects.\n *\n * @private\n * @param {*} value The value to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @param {boolean} [isFull] Specify a clone including symbols.\n * @param {Function} [customizer] The function to customize cloning.\n * @param {string} [key] The key of `value`.\n * @param {Object} [object] The parent object of `value`.\n * @param {Object} [stack] Tracks traversed objects and their clone counterparts.\n * @returns {*} Returns the cloned value.\n */\nfunction baseClone(value, isDeep, isFull, customizer, key, object, stack) {\n var result;\n if (customizer) {\n result = object ? customizer(value, key, object, stack) : customizer(value);\n }\n if (result !== undefined) {\n return result;\n }\n if (!isObject(value)) {\n return value;\n }\n var isArr = isArray(value);\n if (isArr) {\n result = initCloneArray(value);\n if (!isDeep) {\n return copyArray(value, result);\n }\n }\n else {\n var tag = getTag(value), isFunc = tag == funcTag || tag == genTag;\n if (isBuffer(value)) {\n return cloneBuffer(value, isDeep);\n }\n if (tag == objectTag || tag == argsTag || (isFunc && !object)) {\n if (isHostObject(value)) {\n return object ? value : {};\n }\n result = initCloneObject(isFunc ? {} : value);\n if (!isDeep) {\n return copySymbols(value, baseAssign(result, value));\n }\n }\n else {\n if (!cloneableTags[tag]) {\n return object ? value : {};\n }\n result = initCloneByTag(value, tag, baseClone, isDeep);\n }\n }\n // Check for circular references and return its corresponding clone.\n stack || (stack = new Stack);\n var stacked = stack.get(value);\n if (stacked) {\n return stacked;\n }\n stack.set(value, result);\n if (!isArr) {\n var props = isFull ? getAllKeys(value) : keys(value);\n }\n arrayEach(props || value, function (subValue, key) {\n if (props) {\n key = subValue;\n subValue = value[key];\n }\n // Recursively populate clone (susceptible to call stack limits).\n assignValue(result, key, baseClone(subValue, isDeep, isFull, customizer, key, value, stack));\n });\n return result;\n}\n/**\n * The base implementation of `_.create` without support for assigning\n * properties to the created object.\n *\n * @private\n * @param {Object} prototype The object to inherit from.\n * @returns {Object} Returns the new object.\n */\nfunction baseCreate(proto) {\n return isObject(proto) ? objectCreate(proto) : {};\n}\n/**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction baseGetAllKeys(object, keysFunc, symbolsFunc) {\n var result = keysFunc(object);\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n}\n/**\n * The base implementation of `getTag`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n return objectToString.call(value);\n}\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\nfunction baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n/**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n}\n/**\n * Creates a clone of `buffer`.\n *\n * @private\n * @param {Buffer} buffer The buffer to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Buffer} Returns the cloned buffer.\n */\nfunction cloneBuffer(buffer, isDeep) {\n if (isDeep) {\n return buffer.slice();\n }\n var result = new buffer.constructor(buffer.length);\n buffer.copy(result);\n return result;\n}\n/**\n * Creates a clone of `arrayBuffer`.\n *\n * @private\n * @param {ArrayBuffer} arrayBuffer The array buffer to clone.\n * @returns {ArrayBuffer} Returns the cloned array buffer.\n */\nfunction cloneArrayBuffer(arrayBuffer) {\n var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\n new Uint8Array(result).set(new Uint8Array(arrayBuffer));\n return result;\n}\n/**\n * Creates a clone of `dataView`.\n *\n * @private\n * @param {Object} dataView The data view to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned data view.\n */\nfunction cloneDataView(dataView, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;\n return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);\n}\n/**\n * Creates a clone of `map`.\n *\n * @private\n * @param {Object} map The map to clone.\n * @param {Function} cloneFunc The function to clone values.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned map.\n */\nfunction cloneMap(map, isDeep, cloneFunc) {\n var array = isDeep ? cloneFunc(mapToArray(map), true) : mapToArray(map);\n return arrayReduce(array, addMapEntry, new map.constructor);\n}\n/**\n * Creates a clone of `regexp`.\n *\n * @private\n * @param {Object} regexp The regexp to clone.\n * @returns {Object} Returns the cloned regexp.\n */\nfunction cloneRegExp(regexp) {\n var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));\n result.lastIndex = regexp.lastIndex;\n return result;\n}\n/**\n * Creates a clone of `set`.\n *\n * @private\n * @param {Object} set The set to clone.\n * @param {Function} cloneFunc The function to clone values.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned set.\n */\nfunction cloneSet(set, isDeep, cloneFunc) {\n var array = isDeep ? cloneFunc(setToArray(set), true) : setToArray(set);\n return arrayReduce(array, addSetEntry, new set.constructor);\n}\n/**\n * Creates a clone of the `symbol` object.\n *\n * @private\n * @param {Object} symbol The symbol object to clone.\n * @returns {Object} Returns the cloned symbol object.\n */\nfunction cloneSymbol(symbol) {\n return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};\n}\n/**\n * Creates a clone of `typedArray`.\n *\n * @private\n * @param {Object} typedArray The typed array to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned typed array.\n */\nfunction cloneTypedArray(typedArray, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n}\n/**\n * Copies the values of `source` to `array`.\n *\n * @private\n * @param {Array} source The array to copy values from.\n * @param {Array} [array=[]] The array to copy values to.\n * @returns {Array} Returns `array`.\n */\nfunction copyArray(source, array) {\n var index = -1, length = source.length;\n array || (array = Array(length));\n while (++index < length) {\n array[index] = source[index];\n }\n return array;\n}\n/**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\nfunction copyObject(source, props, object, customizer) {\n object || (object = {});\n var index = -1, length = props.length;\n while (++index < length) {\n var key = props[index];\n var newValue = customizer\n ? customizer(object[key], source[key], key, object, source)\n : undefined;\n assignValue(object, key, newValue === undefined ? source[key] : newValue);\n }\n return object;\n}\n/**\n * Copies own symbol properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\nfunction copySymbols(source, object) {\n return copyObject(source, getSymbols(source), object);\n}\n/**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeys(object) {\n return baseGetAllKeys(object, keys, getSymbols);\n}\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n}\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n/**\n * Creates an array of the own enumerable symbol properties of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbols = nativeGetSymbols ? overArg(nativeGetSymbols, Object) : stubArray;\n/**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nvar getTag = baseGetTag;\n// Fallback for data views, maps, sets, and weak maps in IE 11,\n// for data views in Edge < 14, and promises in Node.js.\nif ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n (Map && getTag(new Map) != mapTag) ||\n (Promise$1 && getTag(Promise$1.resolve()) != promiseTag) ||\n (Set && getTag(new Set) != setTag) ||\n (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n getTag = function (value) {\n var result = objectToString.call(value), Ctor = result == objectTag ? value.constructor : undefined, ctorString = Ctor ? toSource(Ctor) : undefined;\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString:\n return dataViewTag;\n case mapCtorString:\n return mapTag;\n case promiseCtorString:\n return promiseTag;\n case setCtorString:\n return setTag;\n case weakMapCtorString:\n return weakMapTag;\n }\n }\n return result;\n };\n}\n/**\n * Initializes an array clone.\n *\n * @private\n * @param {Array} array The array to clone.\n * @returns {Array} Returns the initialized clone.\n */\nfunction initCloneArray(array) {\n var length = array.length, result = array.constructor(length);\n // Add properties assigned by `RegExp#exec`.\n if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {\n result.index = array.index;\n result.input = array.input;\n }\n return result;\n}\n/**\n * Initializes an object clone.\n *\n * @private\n * @param {Object} object The object to clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneObject(object) {\n return (typeof object.constructor == 'function' && !isPrototype(object))\n ? baseCreate(getPrototype(object))\n : {};\n}\n/**\n * Initializes an object clone based on its `toStringTag`.\n *\n * **Note:** This function only supports cloning values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to clone.\n * @param {string} tag The `toStringTag` of the object to clone.\n * @param {Function} cloneFunc The function to clone values.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneByTag(object, tag, cloneFunc, isDeep) {\n var Ctor = object.constructor;\n switch (tag) {\n case arrayBufferTag:\n return cloneArrayBuffer(object);\n case boolTag:\n case dateTag:\n return new Ctor(+object);\n case dataViewTag:\n return cloneDataView(object, isDeep);\n case float32Tag:\n case float64Tag:\n case int8Tag:\n case int16Tag:\n case int32Tag:\n case uint8Tag:\n case uint8ClampedTag:\n case uint16Tag:\n case uint32Tag:\n return cloneTypedArray(object, isDeep);\n case mapTag:\n return cloneMap(object, isDeep, cloneFunc);\n case numberTag:\n case stringTag:\n return new Ctor(object);\n case regexpTag:\n return cloneRegExp(object);\n case setTag:\n return cloneSet(object, isDeep, cloneFunc);\n case symbolTag:\n return cloneSymbol(object);\n }\n}\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n length = length == null ? MAX_SAFE_INTEGER : length;\n return !!length &&\n (typeof value == 'number' || reIsUint.test(value)) &&\n (value > -1 && value % 1 == 0 && value < length);\n}\n/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n}\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n}\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n var Ctor = value && value.constructor, proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n return value === proto;\n}\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to process.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n }\n catch (e) {\n }\n try {\n return (\"\".concat(func));\n }\n catch (e) {\n }\n }\n return '';\n}\n/**\n * This method is like `_.clone` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @returns {*} Returns the deep cloned value.\n * @see _.clone\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var deep = _.cloneDeep(objects);\n * console.log(deep[0] === objects[0]);\n * // => false\n */\nfunction cloneDeep(value) {\n return baseClone(value, true, true);\n}\n/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || (value !== value && other !== other);\n}\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nfunction isArguments(value) {\n // Safari 8.1 makes `arguments.callee` enumerable in strict mode.\n return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') &&\n (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag);\n}\n/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n/**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\nfunction isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n}\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\nvar isBuffer = nativeIsBuffer || stubFalse;\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 8-9 which returns 'object' for typed array and other constructors.\n var tag = isObject(value) ? objectToString.call(value) : '';\n return tag == funcTag || tag == genTag;\n}\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\nfunction keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n}\n/**\n * This method returns a new empty array.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {Array} Returns the new empty array.\n * @example\n *\n * var arrays = _.times(2, _.stubArray);\n *\n * console.log(arrays);\n * // => [[], []]\n *\n * console.log(arrays[0] === arrays[1]);\n * // => false\n */\nfunction stubArray() {\n return [];\n}\n/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n return false;\n}\n\nexports.cloneDeep = cloneDeep;\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../webpack/buildin/global.js */ \"../node_modules/webpack/buildin/global.js\"), __webpack_require__(/*! ./../../../../webpack/buildin/module.js */ \"../node_modules/webpack/buildin/module.js\")(module)))\n\n//# sourceURL=webpack://cloudinaryVideoPlayer/../node_modules/@cloudinary/url-gen/internal/utils/cloneDeep.cjs?");
|
|
528
528
|
|
|
529
529
|
/***/ }),
|
|
530
530
|
|
|
@@ -540,15 +540,15 @@ eval("\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n/**\
|
|
|
540
540
|
|
|
541
541
|
/***/ }),
|
|
542
542
|
|
|
543
|
-
/***/ "../node_modules/@cloudinary/url-gen/tslib.es6-
|
|
543
|
+
/***/ "../node_modules/@cloudinary/url-gen/tslib.es6-bcbd7c13.cjs":
|
|
544
544
|
/*!******************************************************************!*\
|
|
545
|
-
!*** ../node_modules/@cloudinary/url-gen/tslib.es6-
|
|
545
|
+
!*** ../node_modules/@cloudinary/url-gen/tslib.es6-bcbd7c13.cjs ***!
|
|
546
546
|
\******************************************************************/
|
|
547
547
|
/*! no static exports found */
|
|
548
548
|
/***/ (function(module, exports, __webpack_require__) {
|
|
549
549
|
|
|
550
550
|
"use strict";
|
|
551
|
-
eval("\n\n
|
|
551
|
+
eval("\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nfunction __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexports.__assign = function() {\r\n exports.__assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return exports.__assign.apply(this, arguments);\r\n};\n\nexports.__extends = __extends;\n\n\n//# sourceURL=webpack://cloudinaryVideoPlayer/../node_modules/@cloudinary/url-gen/tslib.es6-bcbd7c13.cjs?");
|
|
552
552
|
|
|
553
553
|
/***/ }),
|
|
554
554
|
|
|
@@ -4329,7 +4329,7 @@ eval("\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof =
|
|
|
4329
4329
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4330
4330
|
|
|
4331
4331
|
"use strict";
|
|
4332
|
-
eval("\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _playlistButton = _interopRequireDefault(__webpack_require__(/*! ./playlist-button */ \"./components/playlist/components/playlist-button.js\"));\n\nvar _video = _interopRequireDefault(__webpack_require__(/*! video.js */ \"../node_modules/video.js/dist/alt/video.core.js-exposed\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\nfunction _get() { if (typeof Reflect !== \"undefined\" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); }\n\nfunction _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nvar PlaylistNextButton = /*#__PURE__*/function (_PlaylistButton) {\n _inherits(PlaylistNextButton, _PlaylistButton);\n\n var _super = _createSuper(PlaylistNextButton);\n\n function PlaylistNextButton(player) {\n _classCallCheck(this, PlaylistNextButton);\n\n return _super.call(this, player, {\n type: 'next'\n });\n }\n\n _createClass(PlaylistNextButton, [{\n key: \"handleClick\",\n value: function handleClick(event) {\n _get(_getPrototypeOf(PlaylistNextButton.prototype), \"handleClick\", this).call(this, event);\n\n this.player().cloudinary.playlist().playNext();\n }\n }]);\n\n return PlaylistNextButton;\n}(_playlistButton.default);\n\n_video.default.registerComponent('PlaylistNextButton', PlaylistNextButton);\n\nvar _default = PlaylistNextButton;\nexports.default = _default;\n\n//# sourceURL=webpack://cloudinaryVideoPlayer/./components/playlist/components/playlist-next-button.js?");
|
|
4332
|
+
eval("\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _playlistButton = _interopRequireDefault(__webpack_require__(/*! ./playlist-button */ \"./components/playlist/components/playlist-button.js\"));\n\nvar _video = _interopRequireDefault(__webpack_require__(/*! video.js */ \"../node_modules/video.js/dist/alt/video.core.js-exposed\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\nfunction _get() { if (typeof Reflect !== \"undefined\" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); }\n\nfunction _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nvar PlaylistNextButton = /*#__PURE__*/function (_PlaylistButton) {\n _inherits(PlaylistNextButton, _PlaylistButton);\n\n var _super = _createSuper(PlaylistNextButton);\n\n function PlaylistNextButton(player) {\n _classCallCheck(this, PlaylistNextButton);\n\n return _super.call(this, player, {\n type: 'next'\n });\n }\n\n _createClass(PlaylistNextButton, [{\n key: \"handleClick\",\n value: function handleClick(event) {\n event.stopPropagation();\n\n _get(_getPrototypeOf(PlaylistNextButton.prototype), \"handleClick\", this).call(this, event);\n\n this.player().cloudinary.playlist().playNext();\n }\n }]);\n\n return PlaylistNextButton;\n}(_playlistButton.default);\n\n_video.default.registerComponent('PlaylistNextButton', PlaylistNextButton);\n\nvar _default = PlaylistNextButton;\nexports.default = _default;\n\n//# sourceURL=webpack://cloudinaryVideoPlayer/./components/playlist/components/playlist-next-button.js?");
|
|
4333
4333
|
|
|
4334
4334
|
/***/ }),
|
|
4335
4335
|
|
|
@@ -4377,7 +4377,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extr
|
|
|
4377
4377
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4378
4378
|
|
|
4379
4379
|
"use strict";
|
|
4380
|
-
eval("\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _video = _interopRequireDefault(__webpack_require__(/*! video.js */ \"../node_modules/video.js/dist/alt/video.core.js-exposed\"));\n\n__webpack_require__(/*! ./upcoming-video-overlay.scss */ \"./components/playlist/components/upcoming-video-overlay.scss\");\n\nvar _consts = __webpack_require__(/*! ../../../utils/consts */ \"./utils/consts.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\nfunction _get() { if (typeof Reflect !== \"undefined\" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); }\n\nfunction _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n// support VJS5 & VJS6 at the same time\nvar dom = _video.default.dom || _video.default;\n\nvar Component = _video.default.getComponent('Component');\n\nvar ClickableComponent = _video.default.getComponent('ClickableComponent');\n\nvar UpcomingVideoOverlay = /*#__PURE__*/function (_ClickableComponent) {\n _inherits(UpcomingVideoOverlay, _ClickableComponent);\n\n var _super = _createSuper(UpcomingVideoOverlay);\n\n function UpcomingVideoOverlay(player) {\n var _this;\n\n _classCallCheck(this, UpcomingVideoOverlay);\n\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this, player].concat(args));\n\n _defineProperty(_assertThisInitialized(_this), \"_hide\", function () {\n _this.removeClass(UpcomingVideoOverlay.VJS_UPCOMING_VIDEO_SHOW);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"_onPlaylistItemChange\", function (_, event) {\n _this._hide();\n\n _this._disableTransition(function () {\n if (event.next) {\n _this.setItem(event.next);\n }\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"_show\", function () {\n var ima = _this.player().ima;\n\n var adsManager = ima === 'object' && ima.getAdsManager();\n\n if (adsManager) {\n if (!adsManager.getCurrentAd() || adsManager.getCurrentAd().isLinear()) {\n _this.addClass(UpcomingVideoOverlay.VJS_UPCOMING_VIDEO_SHOW);\n }\n } else {\n _this.addClass(UpcomingVideoOverlay.VJS_UPCOMING_VIDEO_SHOW);\n }\n });\n\n _this._setEvents(player);\n\n return _this;\n }\n\n _createClass(UpcomingVideoOverlay, [{\n key: \"_setEvents\",\n value: function _setEvents(player) {\n player.on(_consts.PLAYER_EVENT.UP_COMING_VIDEO_SHOW, this._show);\n player.on(_consts.PLAYER_EVENT.UP_COMING_VIDEO_HIDE, this._hide);\n player.on(_consts.PLAYER_EVENT.PLAYLIST_ITEM_CHANGED, this._onPlaylistItemChange);\n }\n }, {\n key: \"_disableTransition\",\n value: function _disableTransition(block) {\n this.addClass(UpcomingVideoOverlay.DISABLE_TRANSITION_CLASS);\n block();\n this.removeClass(UpcomingVideoOverlay.DISABLE_TRANSITION_CLASS);\n }\n }, {\n key: \"setTitle\",\n value: function setTitle(source) {\n var title = this.getChild('upcomingVideoOverlayContent').getChild('upcomingVideoOverlayBar').getChild('upcomingVideoOverlayTitle');\n title.setContent(source.info().title || source.publicId());\n }\n }, {\n key: \"setItem\",\n value: function setItem(source) {\n this._source = source;\n var maxWidth = parseInt(window.getComputedStyle(this.el(), null).getPropertyValue('max-width'), 10);\n var maxHeight = Math.round(maxWidth * (9 / 16.0));\n var transformation = {\n crop: 'pad',\n background: 'auto:predominant',\n width: maxWidth,\n height: maxHeight\n };\n var content = this.getChild('upcomingVideoOverlayContent');\n this.setTitle(source);\n content.el().style.backgroundImage = \"url(\".concat(this._source.poster().url({\n transformation: transformation\n }), \")\");\n }\n }, {\n key: \"handleClick\",\n value: function handleClick() {\n _get(_getPrototypeOf(UpcomingVideoOverlay.prototype), \"handleClick\", this).call(this, event);\n\n this.player().cloudinary.playlist().playNext();\n }\n }, {\n key: \"createEl\",\n value: function createEl() {\n return _get(_getPrototypeOf(UpcomingVideoOverlay.prototype), \"createEl\", this).call(this, 'div', {\n className: 'vjs-upcoming-video'\n });\n }\n }]);\n\n return UpcomingVideoOverlay;\n}(ClickableComponent);\n\n_defineProperty(UpcomingVideoOverlay, \"DISABLE_TRANSITION_CLASS\", 'disable-transition');\n\n_defineProperty(UpcomingVideoOverlay, \"VJS_UPCOMING_VIDEO_SHOW\", 'vjs-upcoming-video-show');\n\nvar UpcomingVideoOverlayContent = /*#__PURE__*/function (_Component) {\n _inherits(UpcomingVideoOverlayContent, _Component);\n\n var _super2 = _createSuper(UpcomingVideoOverlayContent);\n\n function UpcomingVideoOverlayContent() {\n _classCallCheck(this, UpcomingVideoOverlayContent);\n\n return _super2.apply(this, arguments);\n }\n\n _createClass(UpcomingVideoOverlayContent, [{\n key: \"createEl\",\n value: function createEl() {\n // Content wraps image and bar\n return _get(_getPrototypeOf(UpcomingVideoOverlayContent.prototype), \"createEl\", this).call(this, 'div', {\n className: 'aspect-ratio-content'\n });\n }\n }]);\n\n return UpcomingVideoOverlayContent;\n}(Component);\n\nvar UpcomingVideoOverlayTitle = /*#__PURE__*/function (_Component2) {\n _inherits(UpcomingVideoOverlayTitle, _Component2);\n\n var _super3 = _createSuper(UpcomingVideoOverlayTitle);\n\n function UpcomingVideoOverlayTitle() {\n _classCallCheck(this, UpcomingVideoOverlayTitle);\n\n return _super3.apply(this, arguments);\n }\n\n _createClass(UpcomingVideoOverlayTitle, [{\n key: \"setContent\",\n value: function setContent(title) {\n this._contentSpan.innerText = title;\n }\n }, {\n key: \"createEl\",\n value: function createEl() {\n var el = _get(_getPrototypeOf(UpcomingVideoOverlayTitle.prototype), \"createEl\", this).call(this, 'div', {\n className: 'vjs-control vjs-upcoming-video-title'\n });\n\n var container = dom.createEl('div', {\n className: 'vjs-upcoming-video-title-display',\n innerHTML: '<span class=\"vjs-control-text\">Next up</span>Next up: '\n });\n this._contentSpan = dom.createEl('span', {\n className: 'vjs-upcoming-video-title-display-label'\n });\n container.appendChild(this._contentSpan);\n el.appendChild(container);\n return el;\n }\n }]);\n\n return UpcomingVideoOverlayTitle;\n}(Component);\n\nvar UpcomingVideoOverlayBar = /*#__PURE__*/function (_Component3) {\n _inherits(UpcomingVideoOverlayBar, _Component3);\n\n var _super4 = _createSuper(UpcomingVideoOverlayBar);\n\n function UpcomingVideoOverlayBar() {\n _classCallCheck(this, UpcomingVideoOverlayBar);\n\n return _super4.apply(this, arguments);\n }\n\n _createClass(UpcomingVideoOverlayBar, [{\n key: \"createEl\",\n value: function createEl() {\n return _get(_getPrototypeOf(UpcomingVideoOverlayBar.prototype), \"createEl\", this).call(this, 'div', {\n className: 'vjs-upcoming-video-bar'\n });\n }\n }]);\n\n return UpcomingVideoOverlayBar;\n}(Component);\n\nUpcomingVideoOverlay.prototype.options_ = {\n children: ['upcomingVideoOverlayContent']\n};\n\n_video.default.registerComponent('upcomingVideoOverlay', UpcomingVideoOverlay);\n\nUpcomingVideoOverlayContent.prototype.options_ = {\n children: ['upcomingVideoOverlayBar']\n};\n\n_video.default.registerComponent('upcomingVideoOverlayContent', UpcomingVideoOverlayContent);\n\nUpcomingVideoOverlayBar.prototype.options_ = {\n children: ['upcomingVideoOverlayTitle', 'playlistNextButton']\n};\n\n_video.default.registerComponent('upcomingVideoOverlayBar', UpcomingVideoOverlayBar);\n\n_video.default.registerComponent('upcomingVideoOverlayTitle', UpcomingVideoOverlayTitle);\n\nvar _default = UpcomingVideoOverlay;\nexports.default = _default;\n\n//# sourceURL=webpack://cloudinaryVideoPlayer/./components/playlist/components/upcoming-video-overlay.js?");
|
|
4380
|
+
eval("\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _video = _interopRequireDefault(__webpack_require__(/*! video.js */ \"../node_modules/video.js/dist/alt/video.core.js-exposed\"));\n\n__webpack_require__(/*! ./upcoming-video-overlay.scss */ \"./components/playlist/components/upcoming-video-overlay.scss\");\n\nvar _consts = __webpack_require__(/*! ../../../utils/consts */ \"./utils/consts.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\nfunction _get() { if (typeof Reflect !== \"undefined\" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); }\n\nfunction _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n// support VJS5 & VJS6 at the same time\nvar dom = _video.default.dom || _video.default;\n\nvar Component = _video.default.getComponent('Component');\n\nvar ClickableComponent = _video.default.getComponent('ClickableComponent');\n\nvar UpcomingVideoOverlay = /*#__PURE__*/function (_ClickableComponent) {\n _inherits(UpcomingVideoOverlay, _ClickableComponent);\n\n var _super = _createSuper(UpcomingVideoOverlay);\n\n function UpcomingVideoOverlay(player) {\n var _this;\n\n _classCallCheck(this, UpcomingVideoOverlay);\n\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this, player].concat(args));\n\n _defineProperty(_assertThisInitialized(_this), \"_hide\", function () {\n _this.removeClass(UpcomingVideoOverlay.VJS_UPCOMING_VIDEO_SHOW);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"_onPlaylistItemChange\", function (_, event) {\n _this._hide();\n\n _this._disableTransition(function () {\n if (event.next) {\n _this.setItem(event.next);\n }\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"_show\", function () {\n var ima = _this.player().ima;\n\n var adsManager = ima === 'object' && ima.getAdsManager();\n\n if (adsManager) {\n if (!adsManager.getCurrentAd() || adsManager.getCurrentAd().isLinear()) {\n _this.addClass(UpcomingVideoOverlay.VJS_UPCOMING_VIDEO_SHOW);\n }\n } else {\n _this.addClass(UpcomingVideoOverlay.VJS_UPCOMING_VIDEO_SHOW);\n }\n });\n\n _this._setEvents(player);\n\n return _this;\n }\n\n _createClass(UpcomingVideoOverlay, [{\n key: \"_setEvents\",\n value: function _setEvents(player) {\n player.on(_consts.PLAYER_EVENT.UP_COMING_VIDEO_SHOW, this._show);\n player.on(_consts.PLAYER_EVENT.UP_COMING_VIDEO_HIDE, this._hide);\n player.on(_consts.PLAYER_EVENT.PLAYLIST_ITEM_CHANGED, this._onPlaylistItemChange);\n }\n }, {\n key: \"_disableTransition\",\n value: function _disableTransition(block) {\n this.addClass(UpcomingVideoOverlay.DISABLE_TRANSITION_CLASS);\n block();\n this.removeClass(UpcomingVideoOverlay.DISABLE_TRANSITION_CLASS);\n }\n }, {\n key: \"setTitle\",\n value: function setTitle(source) {\n var title = this.getChild('upcomingVideoOverlayContent').getChild('upcomingVideoOverlayBar').getChild('upcomingVideoOverlayTitle');\n title.setContent(source.info().title || source.publicId());\n }\n }, {\n key: \"setItem\",\n value: function setItem(source) {\n this._source = source;\n var maxWidth = parseInt(window.getComputedStyle(this.el(), null).getPropertyValue('max-width'), 10);\n var maxHeight = Math.round(maxWidth * (9 / 16.0));\n var transformation = {\n crop: 'pad',\n background: 'auto:predominant',\n width: maxWidth,\n height: maxHeight\n };\n var content = this.getChild('upcomingVideoOverlayContent');\n this.setTitle(source);\n content.el().style.backgroundImage = \"url(\".concat(this._source.poster().url({\n transformation: transformation\n }), \")\");\n }\n }, {\n key: \"handleClick\",\n value: function handleClick() {\n _get(_getPrototypeOf(UpcomingVideoOverlay.prototype), \"handleClick\", this).call(this, event);\n\n this.player().cloudinary.playlist().playNext();\n }\n }, {\n key: \"createEl\",\n value: function createEl() {\n return _get(_getPrototypeOf(UpcomingVideoOverlay.prototype), \"createEl\", this).call(this, 'div', {\n className: 'vjs-upcoming-video'\n });\n }\n }]);\n\n return UpcomingVideoOverlay;\n}(ClickableComponent);\n\n_defineProperty(UpcomingVideoOverlay, \"DISABLE_TRANSITION_CLASS\", 'disable-transition');\n\n_defineProperty(UpcomingVideoOverlay, \"VJS_UPCOMING_VIDEO_SHOW\", 'vjs-upcoming-video-show');\n\nvar UpcomingVideoOverlayContent = /*#__PURE__*/function (_Component) {\n _inherits(UpcomingVideoOverlayContent, _Component);\n\n var _super2 = _createSuper(UpcomingVideoOverlayContent);\n\n function UpcomingVideoOverlayContent() {\n _classCallCheck(this, UpcomingVideoOverlayContent);\n\n return _super2.apply(this, arguments);\n }\n\n _createClass(UpcomingVideoOverlayContent, [{\n key: \"createEl\",\n value: function createEl() {\n // Content wraps image and bar\n return _get(_getPrototypeOf(UpcomingVideoOverlayContent.prototype), \"createEl\", this).call(this, 'div', {\n className: 'upcoming-video-overlay aspect-ratio-content'\n });\n }\n }]);\n\n return UpcomingVideoOverlayContent;\n}(Component);\n\nvar UpcomingVideoOverlayTitle = /*#__PURE__*/function (_Component2) {\n _inherits(UpcomingVideoOverlayTitle, _Component2);\n\n var _super3 = _createSuper(UpcomingVideoOverlayTitle);\n\n function UpcomingVideoOverlayTitle() {\n _classCallCheck(this, UpcomingVideoOverlayTitle);\n\n return _super3.apply(this, arguments);\n }\n\n _createClass(UpcomingVideoOverlayTitle, [{\n key: \"setContent\",\n value: function setContent(title) {\n this._contentSpan.innerText = title;\n }\n }, {\n key: \"createEl\",\n value: function createEl() {\n var el = _get(_getPrototypeOf(UpcomingVideoOverlayTitle.prototype), \"createEl\", this).call(this, 'div', {\n className: 'vjs-control vjs-upcoming-video-title'\n });\n\n var container = dom.createEl('div', {\n className: 'vjs-upcoming-video-title-display',\n innerHTML: '<span class=\"vjs-control-text\">Next up</span>Next up: '\n });\n this._contentSpan = dom.createEl('span', {\n className: 'vjs-upcoming-video-title-display-label'\n });\n container.appendChild(this._contentSpan);\n el.appendChild(container);\n return el;\n }\n }]);\n\n return UpcomingVideoOverlayTitle;\n}(Component);\n\nvar UpcomingVideoOverlayBar = /*#__PURE__*/function (_Component3) {\n _inherits(UpcomingVideoOverlayBar, _Component3);\n\n var _super4 = _createSuper(UpcomingVideoOverlayBar);\n\n function UpcomingVideoOverlayBar() {\n _classCallCheck(this, UpcomingVideoOverlayBar);\n\n return _super4.apply(this, arguments);\n }\n\n _createClass(UpcomingVideoOverlayBar, [{\n key: \"createEl\",\n value: function createEl() {\n return _get(_getPrototypeOf(UpcomingVideoOverlayBar.prototype), \"createEl\", this).call(this, 'div', {\n className: 'vjs-upcoming-video-bar'\n });\n }\n }]);\n\n return UpcomingVideoOverlayBar;\n}(Component);\n\nUpcomingVideoOverlay.prototype.options_ = {\n children: ['upcomingVideoOverlayContent']\n};\n\n_video.default.registerComponent('upcomingVideoOverlay', UpcomingVideoOverlay);\n\nUpcomingVideoOverlayContent.prototype.options_ = {\n children: ['upcomingVideoOverlayBar']\n};\n\n_video.default.registerComponent('upcomingVideoOverlayContent', UpcomingVideoOverlayContent);\n\nUpcomingVideoOverlayBar.prototype.options_ = {\n children: ['upcomingVideoOverlayTitle', 'playlistNextButton']\n};\n\n_video.default.registerComponent('upcomingVideoOverlayBar', UpcomingVideoOverlayBar);\n\n_video.default.registerComponent('upcomingVideoOverlayTitle', UpcomingVideoOverlayTitle);\n\nvar _default = UpcomingVideoOverlay;\nexports.default = _default;\n\n//# sourceURL=webpack://cloudinaryVideoPlayer/./components/playlist/components/upcoming-video-overlay.js?");
|
|
4381
4381
|
|
|
4382
4382
|
/***/ }),
|
|
4383
4383
|
|
|
@@ -4797,7 +4797,7 @@ eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n
|
|
|
4797
4797
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4798
4798
|
|
|
4799
4799
|
"use strict";
|
|
4800
|
-
eval("\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.CONSTRUCTOR_PARAMS = void 0;\nexports.default = _default;\n\nvar _video = _interopRequireDefault(__webpack_require__(/*! video.js */ \"../node_modules/video.js/dist/alt/video.core.js-exposed\"));\n\nvar _mixin2 = __webpack_require__(/*! utils/mixin */ \"./utils/mixin.js\");\n\nvar _applyWithProps = __webpack_require__(/*! utils/apply-with-props */ \"./utils/apply-with-props.js\");\n\nvar _slicing = __webpack_require__(/*! utils/slicing */ \"./utils/slicing.js\");\n\nvar _cloudinary = __webpack_require__(/*! utils/cloudinary */ \"./utils/cloudinary.js\");\n\nvar _assign = __webpack_require__(/*! utils/assign */ \"./utils/assign.js\");\n\nvar _common = __webpack_require__(/*! ./common */ \"./plugins/cloudinary/common.js\");\n\nvar _playlistable = _interopRequireDefault(__webpack_require__(/*! mixins/playlistable */ \"./mixins/playlistable.js\"));\n\nvar _videoSource = _interopRequireDefault(__webpack_require__(/*! ./models/video-source/video-source */ \"./plugins/cloudinary/models/video-source/video-source.js\"));\n\nvar _eventHandlerRegistry = _interopRequireDefault(__webpack_require__(/*! ./event-handler-registry */ \"./plugins/cloudinary/event-handler-registry.js\"));\n\nvar _audioSource = _interopRequireDefault(__webpack_require__(/*! ./models/audio-source/audio-source */ \"./plugins/cloudinary/models/audio-source/audio-source.js\"));\n\nvar _typeInference = __webpack_require__(/*! ../../utils/type-inference */ \"./utils/type-inference.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nvar DEFAULT_PARAMS = {\n transformation: {},\n sourceTypes: [],\n sourceTransformation: [],\n posterOptions: {}\n};\nvar CONSTRUCTOR_PARAMS = ['cloudinaryConfig', 'transformation', 'sourceTypes', 'sourceTransformation', 'posterOptions', 'autoShowRecommendations'];\nexports.CONSTRUCTOR_PARAMS = CONSTRUCTOR_PARAMS;\n\nvar CloudinaryContext = /*#__PURE__*/function (_mixin) {\n _inherits(CloudinaryContext, _mixin);\n\n var _super = _createSuper(CloudinaryContext);\n\n function CloudinaryContext(player) {\n var _this;\n\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n _classCallCheck(this, CloudinaryContext);\n\n _this = _super.call(this, player, options);\n _this.player = player;\n options = (0, _assign.assign)({}, DEFAULT_PARAMS, options);\n var _source = null;\n var _sources = null;\n var _lastSource = null;\n var _lastPlaylist = null;\n var _posterOptions = null;\n var _cloudinaryConfig = null;\n var _transformation = null;\n var _sourceTypes = null;\n var _sourceTransformation = null;\n var _chainTarget = options.chainTarget;\n var _playerEvents = null;\n var _recommendations = null;\n var _autoShowRecommendations = false;\n\n _this.source = function (source) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n options = (0, _assign.assign)({}, options);\n\n if (!source) {\n return _source;\n }\n\n var src = null;\n\n if (source instanceof _videoSource.default) {\n src = source;\n } else {\n var _normalizeOptions = (0, _common.normalizeOptions)(source, options),\n publicId = _normalizeOptions.publicId,\n _options = _normalizeOptions.options;\n\n src = _this.buildSource(publicId, _options);\n }\n\n if (src.recommendations()) {\n var recommendations = src.recommendations();\n var itemBuilder = null;\n var disableAutoShow = false;\n\n if (options.recommendationOptions) {\n var _sliceAndUnsetPropert = (0, _slicing.sliceAndUnsetProperties)(options.recommendationOptions, 'disableAutoShow', 'itemBuilder');\n\n disableAutoShow = _sliceAndUnsetPropert.disableAutoShow;\n itemBuilder = _sliceAndUnsetPropert.itemBuilder;\n }\n\n setRecommendations(recommendations, {\n disableAutoShow: disableAutoShow,\n itemBuilder: itemBuilder\n });\n } else {\n unsetRecommendations();\n }\n\n _source = src;\n\n if (!options.skipRefresh) {\n refresh();\n }\n\n _this.player.trigger('cldsourcechanged', {\n source: src\n });\n\n return _chainTarget;\n };\n\n _this.buildSource = function (publicId) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var builtSrc = null;\n\n var _normalizeOptions2 = (0, _common.normalizeOptions)(publicId, options);\n\n publicId = _normalizeOptions2.publicId;\n options = _normalizeOptions2.options;\n options.cloudinaryConfig = (0, _common.extendCloudinaryConfig)(_this.cloudinaryConfig(), options.cloudinaryConfig || {});\n options.transformation = (0, _common.mergeTransformations)(_this.transformation(), options.transformation || {});\n options.sourceTransformation = options.sourceTransformation || _this.sourceTransformation();\n options.sourceTypes = options.sourceTypes || _this.sourceTypes();\n options.poster = options.poster || posterOptionsForCurrent();\n options.queryParams = Object.assign(options.queryParams || {}, options.usageReport ? {\n _s: \"vp-\".concat(\"1.9.1\")\n } : {});\n\n if (options.sourceTypes.indexOf('audio') > -1) {\n builtSrc = new _audioSource.default(publicId, options);\n } else {\n builtSrc = new _videoSource.default(publicId, options);\n }\n\n return builtSrc;\n };\n\n _this.posterOptions = function (options) {\n if (!options) {\n return _posterOptions;\n }\n\n _posterOptions = options;\n return _chainTarget;\n };\n\n _this.cloudinaryConfig = function (config) {\n if (!config) {\n return _cloudinaryConfig;\n }\n\n _cloudinaryConfig = config;\n return _chainTarget;\n };\n\n _this.transformation = function (trans) {\n if (!trans) {\n return _transformation;\n }\n\n _transformation = trans;\n return _chainTarget;\n };\n\n _this.sourceTypes = function (types) {\n if (!types) {\n return _sourceTypes;\n }\n\n _sourceTypes = types;\n return _chainTarget;\n };\n\n _this.getCurrentSources = function () {\n return _sources;\n };\n\n _this.sourceTransformation = function (trans) {\n if (!trans) {\n return _sourceTransformation;\n }\n\n _sourceTransformation = trans;\n return _chainTarget;\n };\n\n _this.on = function () {\n var _playerEvents2;\n\n return (_playerEvents2 = _playerEvents).on.apply(_playerEvents2, arguments);\n };\n\n _this.one = function () {\n var _playerEvents3;\n\n return (_playerEvents3 = _playerEvents).one.apply(_playerEvents3, arguments);\n };\n\n _this.off = function () {\n var _playerEvents4;\n\n return (_playerEvents4 = _playerEvents).off.apply(_playerEvents4, arguments);\n };\n\n _this.autoShowRecommendations = function (autoShow) {\n if (autoShow === undefined) {\n return _autoShowRecommendations;\n }\n\n _autoShowRecommendations = autoShow;\n return _chainTarget;\n };\n\n _this.dispose = function () {\n if (_this.playlist()) {\n _this.disposePlaylist();\n }\n\n unsetRecommendations();\n _source = undefined;\n\n _playerEvents.removeAllListeners();\n };\n\n var setRecommendations = function setRecommendations(recommendations, _ref) {\n var _ref$disableAutoShow = _ref.disableAutoShow,\n disableAutoShow = _ref$disableAutoShow === void 0 ? false : _ref$disableAutoShow,\n _ref$itemBuilder = _ref.itemBuilder,\n itemBuilder = _ref$itemBuilder === void 0 ? null : _ref$itemBuilder;\n unsetRecommendations();\n\n if (!Array.isArray(recommendations) && typeof recommendations !== 'function' && !recommendations.then) {\n throw new Error('\"recommendations\" must be either an array or a function');\n }\n\n _recommendations = {};\n\n itemBuilder = itemBuilder || function (source) {\n return {\n source: source instanceof _videoSource.default ? source : _this.buildSource(source),\n action: function action() {\n return _this.source(source);\n }\n };\n };\n\n _recommendations.sourceChangedHandler = function () {\n var trigger = function trigger(sources) {\n if (typeof sources !== 'undefined' && sources.length > 0) {\n var items = sources.map(function (_source) {\n return itemBuilder(_source);\n });\n\n _this.player.trigger('recommendationschanged', {\n items: items\n });\n } else {\n _this.player.trigger('recommendationsnoshow');\n }\n\n _recommendations.sources = sources;\n };\n\n if ((0, _typeInference.isFunction)(recommendations)) {\n trigger(recommendations());\n } else if (recommendations.then) {\n recommendations.then(trigger);\n } else {\n trigger(recommendations);\n }\n };\n\n _this.one('cldsourcechanged', _recommendations.sourceChangedHandler);\n\n _recommendations.endedHandler = function () {\n if (!disableAutoShow && _this.autoShowRecommendations()) {\n _this.player.trigger('recommendationsshow');\n }\n };\n\n _this.on('ended', _recommendations.endedHandler);\n };\n\n var unsetRecommendations = function unsetRecommendations() {\n if (_recommendations) {\n _this.off('cldsourcechanged', _recommendations.sourceChangedHandler);\n\n _this.off('ended', _recommendations.endedHandler);\n\n delete _recommendations.endedHandler;\n delete _recommendations.sourceChangedHandler;\n }\n\n _recommendations = null;\n };\n\n var refresh = function refresh() {\n var src = _this.source();\n\n if (src.poster()) {\n _this.player.poster(src.poster().url());\n }\n\n _sources = src.generateSources().reduce(function (srcs, src) {\n if (src.isAdaptive) {\n var codec = src.type.split('; ')[1] || null;\n\n if (codec && 'MediaSource' in window) {\n var parts = src.type.split('; ');\n var typeStr = \"video/mp4; \".concat(parts[1] || '');\n var canPlay = testCanPlayTypeAndTypeSupported(typeStr);\n\n if (_video.default.browser.IS_ANY_SAFARI) {\n // work around safari saying it cant play h265\n src.type = \"\".concat(parts[0], \"; \").concat((0, _common.codecShorthandTrans)('h264'));\n }\n\n if (canPlay) {\n srcs.push(src);\n }\n } else {\n srcs.push(src);\n }\n } else {\n srcs.push(src);\n }\n\n return srcs;\n }, []);\n\n _this.player.src(_sources);\n\n _lastSource = src;\n _lastPlaylist = _this.playlist();\n };\n\n var testCanPlayTypeAndTypeSupported = function testCanPlayTypeAndTypeSupported(codec) {\n var v = document.createElement('video');\n return v.canPlayType(codec) || 'MediaSource' in window && MediaSource.isTypeSupported(codec);\n };\n\n var posterOptionsForCurrent = function posterOptionsForCurrent() {\n var opts = (0, _assign.assign)({}, _this.posterOptions());\n\n if (opts.transformation) {\n if ((opts.transformation.width || opts.transformation.height) && !opts.transformation.crop) {\n opts.transformation.crop = 'scale';\n }\n }\n\n opts.transformation = opts.transformation || {}; // Set poster dimensions to player actual size.\n // (unless they were explicitly set via `posterOptions`)\n\n var playerEl = _this.player.el();\n\n if (playerEl && playerEl.clientWidth && playerEl.clientHeight && !(0, _cloudinary.isKeyInTransformation)(opts.transformation, 'width') && !(0, _cloudinary.isKeyInTransformation)(opts.transformation, 'height')) {\n var roundUp100 = function roundUp100(val) {\n return 100 * Math.ceil(val / 100);\n };\n\n opts.transformation = (0, _common.mergeTransformations)(opts.transformation, {\n width: roundUp100(playerEl.clientWidth),\n height: roundUp100(playerEl.clientHeight),\n crop: 'limit'\n });\n }\n\n return opts;\n }; // Handle external (non-cloudinary plugin) source changes (e.g. by ad plugins)\n\n\n var syncState = function syncState(_, data) {\n var src = data.to; // When source is cloudinary's\n\n if (_lastSource && _lastSource.contains(src)) {\n // If plugin state doesn't have an active VideoSource\n if (!_this.source()) {\n // We might have been running a playlist, reset playlist's state.\n if (_lastPlaylist) {\n _this.playlist(_lastPlaylist);\n } // Rebuild last source state without calling vjs's 'src' and 'poster'\n\n\n _this.source(_lastSource, {\n skipRefresh: true\n });\n }\n } else {\n // Used by cloudinary-only components\n _this.player.trigger('cldsourcechanged', {}); // When source isn't cloudinary's - reset the plugin's state.\n\n\n _this.dispose();\n }\n };\n\n _playerEvents = new _eventHandlerRegistry.default(_this.player);\n\n var constructorParams = _slicing.sliceAndUnsetProperties.apply(void 0, [options].concat(CONSTRUCTOR_PARAMS));\n\n (0, _applyWithProps.applyWithProps)(_assertThisInitialized(_this), constructorParams);\n\n _this.on('sourcechanged', syncState);\n\n return _this;\n }\n\n _createClass(CloudinaryContext, [{\n key: \"currentSourceType\",\n value: function currentSourceType() {\n return this.source().getType();\n }\n }, {\n key: \"currentPublicId\",\n value: function currentPublicId() {\n return this.source() && this.source().publicId();\n }\n }, {\n key: \"currentPoster\",\n value: function currentPoster() {\n return this.source() && this.source().poster();\n }\n }]);\n\n return CloudinaryContext;\n}((0, _mixin2.mixin)(_playlistable.default));\n\nfunction _default() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n options.chainTarget = options.chainTarget || this;\n this.cloudinary = new CloudinaryContext(this, options);\n}\n\n//# sourceURL=webpack://cloudinaryVideoPlayer/./plugins/cloudinary/index.js?");
|
|
4800
|
+
eval("\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.CONSTRUCTOR_PARAMS = void 0;\nexports.default = _default;\n\nvar _video = _interopRequireDefault(__webpack_require__(/*! video.js */ \"../node_modules/video.js/dist/alt/video.core.js-exposed\"));\n\nvar _mixin2 = __webpack_require__(/*! utils/mixin */ \"./utils/mixin.js\");\n\nvar _applyWithProps = __webpack_require__(/*! utils/apply-with-props */ \"./utils/apply-with-props.js\");\n\nvar _slicing = __webpack_require__(/*! utils/slicing */ \"./utils/slicing.js\");\n\nvar _cloudinary = __webpack_require__(/*! utils/cloudinary */ \"./utils/cloudinary.js\");\n\nvar _assign = __webpack_require__(/*! utils/assign */ \"./utils/assign.js\");\n\nvar _common = __webpack_require__(/*! ./common */ \"./plugins/cloudinary/common.js\");\n\nvar _playlistable = _interopRequireDefault(__webpack_require__(/*! mixins/playlistable */ \"./mixins/playlistable.js\"));\n\nvar _videoSource = _interopRequireDefault(__webpack_require__(/*! ./models/video-source/video-source */ \"./plugins/cloudinary/models/video-source/video-source.js\"));\n\nvar _eventHandlerRegistry = _interopRequireDefault(__webpack_require__(/*! ./event-handler-registry */ \"./plugins/cloudinary/event-handler-registry.js\"));\n\nvar _audioSource = _interopRequireDefault(__webpack_require__(/*! ./models/audio-source/audio-source */ \"./plugins/cloudinary/models/audio-source/audio-source.js\"));\n\nvar _typeInference = __webpack_require__(/*! ../../utils/type-inference */ \"./utils/type-inference.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nvar DEFAULT_PARAMS = {\n transformation: {},\n sourceTypes: [],\n sourceTransformation: [],\n posterOptions: {}\n};\nvar CONSTRUCTOR_PARAMS = ['cloudinaryConfig', 'transformation', 'sourceTypes', 'sourceTransformation', 'posterOptions', 'autoShowRecommendations'];\nexports.CONSTRUCTOR_PARAMS = CONSTRUCTOR_PARAMS;\n\nvar CloudinaryContext = /*#__PURE__*/function (_mixin) {\n _inherits(CloudinaryContext, _mixin);\n\n var _super = _createSuper(CloudinaryContext);\n\n function CloudinaryContext(player) {\n var _this;\n\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n _classCallCheck(this, CloudinaryContext);\n\n _this = _super.call(this, player, options);\n _this.player = player;\n options = (0, _assign.assign)({}, DEFAULT_PARAMS, options);\n var _source = null;\n var _sources = null;\n var _lastSource = null;\n var _lastPlaylist = null;\n var _posterOptions = null;\n var _cloudinaryConfig = null;\n var _transformation = null;\n var _sourceTypes = null;\n var _sourceTransformation = null;\n var _chainTarget = options.chainTarget;\n var _playerEvents = null;\n var _recommendations = null;\n var _autoShowRecommendations = false;\n\n _this.source = function (source) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n options = (0, _assign.assign)({}, options);\n\n if (!source) {\n return _source;\n }\n\n var src = null;\n\n if (source instanceof _videoSource.default) {\n src = source;\n } else {\n var _normalizeOptions = (0, _common.normalizeOptions)(source, options),\n publicId = _normalizeOptions.publicId,\n _options = _normalizeOptions.options;\n\n src = _this.buildSource(publicId, _options);\n }\n\n if (src.recommendations()) {\n var recommendations = src.recommendations();\n var itemBuilder = null;\n var disableAutoShow = false;\n\n if (options.recommendationOptions) {\n var _sliceAndUnsetPropert = (0, _slicing.sliceAndUnsetProperties)(options.recommendationOptions, 'disableAutoShow', 'itemBuilder');\n\n disableAutoShow = _sliceAndUnsetPropert.disableAutoShow;\n itemBuilder = _sliceAndUnsetPropert.itemBuilder;\n }\n\n setRecommendations(recommendations, {\n disableAutoShow: disableAutoShow,\n itemBuilder: itemBuilder\n });\n } else {\n unsetRecommendations();\n }\n\n _source = src;\n\n if (!options.skipRefresh) {\n refresh();\n }\n\n _this.player.trigger('cldsourcechanged', {\n source: src\n });\n\n return _chainTarget;\n };\n\n _this.buildSource = function (publicId) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var builtSrc = null;\n\n var _normalizeOptions2 = (0, _common.normalizeOptions)(publicId, options);\n\n publicId = _normalizeOptions2.publicId;\n options = _normalizeOptions2.options;\n options.cloudinaryConfig = (0, _common.extendCloudinaryConfig)(_this.cloudinaryConfig(), options.cloudinaryConfig || {});\n options.transformation = (0, _common.mergeTransformations)(_this.transformation(), options.transformation || {});\n options.sourceTransformation = options.sourceTransformation || _this.sourceTransformation();\n options.sourceTypes = options.sourceTypes || _this.sourceTypes();\n options.poster = options.poster || posterOptionsForCurrent();\n options.queryParams = Object.assign(options.queryParams || {}, options.usageReport ? {\n _s: \"vp-\".concat(\"1.9.2\")\n } : {});\n\n if (options.sourceTypes.indexOf('audio') > -1) {\n builtSrc = new _audioSource.default(publicId, options);\n } else {\n builtSrc = new _videoSource.default(publicId, options);\n }\n\n return builtSrc;\n };\n\n _this.posterOptions = function (options) {\n if (!options) {\n return _posterOptions;\n }\n\n _posterOptions = options;\n return _chainTarget;\n };\n\n _this.cloudinaryConfig = function (config) {\n if (!config) {\n return _cloudinaryConfig;\n }\n\n _cloudinaryConfig = config;\n return _chainTarget;\n };\n\n _this.transformation = function (trans) {\n if (!trans) {\n return _transformation;\n }\n\n _transformation = trans;\n return _chainTarget;\n };\n\n _this.sourceTypes = function (types) {\n if (!types) {\n return _sourceTypes;\n }\n\n _sourceTypes = types;\n return _chainTarget;\n };\n\n _this.getCurrentSources = function () {\n return _sources;\n };\n\n _this.sourceTransformation = function (trans) {\n if (!trans) {\n return _sourceTransformation;\n }\n\n _sourceTransformation = trans;\n return _chainTarget;\n };\n\n _this.on = function () {\n var _playerEvents2;\n\n return (_playerEvents2 = _playerEvents).on.apply(_playerEvents2, arguments);\n };\n\n _this.one = function () {\n var _playerEvents3;\n\n return (_playerEvents3 = _playerEvents).one.apply(_playerEvents3, arguments);\n };\n\n _this.off = function () {\n var _playerEvents4;\n\n return (_playerEvents4 = _playerEvents).off.apply(_playerEvents4, arguments);\n };\n\n _this.autoShowRecommendations = function (autoShow) {\n if (autoShow === undefined) {\n return _autoShowRecommendations;\n }\n\n _autoShowRecommendations = autoShow;\n return _chainTarget;\n };\n\n _this.dispose = function () {\n if (_this.playlist()) {\n _this.disposePlaylist();\n }\n\n unsetRecommendations();\n _source = undefined;\n\n _playerEvents.removeAllListeners();\n };\n\n var setRecommendations = function setRecommendations(recommendations, _ref) {\n var _ref$disableAutoShow = _ref.disableAutoShow,\n disableAutoShow = _ref$disableAutoShow === void 0 ? false : _ref$disableAutoShow,\n _ref$itemBuilder = _ref.itemBuilder,\n itemBuilder = _ref$itemBuilder === void 0 ? null : _ref$itemBuilder;\n unsetRecommendations();\n\n if (!Array.isArray(recommendations) && typeof recommendations !== 'function' && !recommendations.then) {\n throw new Error('\"recommendations\" must be either an array or a function');\n }\n\n _recommendations = {};\n\n itemBuilder = itemBuilder || function (source) {\n return {\n source: source instanceof _videoSource.default ? source : _this.buildSource(source),\n action: function action() {\n return _this.source(source);\n }\n };\n };\n\n _recommendations.sourceChangedHandler = function () {\n var trigger = function trigger(sources) {\n if (typeof sources !== 'undefined' && sources.length > 0) {\n var items = sources.map(function (_source) {\n return itemBuilder(_source);\n });\n\n _this.player.trigger('recommendationschanged', {\n items: items\n });\n } else {\n _this.player.trigger('recommendationsnoshow');\n }\n\n _recommendations.sources = sources;\n };\n\n if ((0, _typeInference.isFunction)(recommendations)) {\n trigger(recommendations());\n } else if (recommendations.then) {\n recommendations.then(trigger);\n } else {\n trigger(recommendations);\n }\n };\n\n _this.one('cldsourcechanged', _recommendations.sourceChangedHandler);\n\n _recommendations.endedHandler = function () {\n if (!disableAutoShow && _this.autoShowRecommendations()) {\n _this.player.trigger('recommendationsshow');\n }\n };\n\n _this.on('ended', _recommendations.endedHandler);\n };\n\n var unsetRecommendations = function unsetRecommendations() {\n if (_recommendations) {\n _this.off('cldsourcechanged', _recommendations.sourceChangedHandler);\n\n _this.off('ended', _recommendations.endedHandler);\n\n delete _recommendations.endedHandler;\n delete _recommendations.sourceChangedHandler;\n }\n\n _recommendations = null;\n };\n\n var refresh = function refresh() {\n var src = _this.source();\n\n if (src.poster()) {\n _this.player.poster(src.poster().url());\n }\n\n _sources = src.generateSources().reduce(function (srcs, src) {\n if (src.isAdaptive) {\n var codec = src.type.split('; ')[1] || null;\n\n if (codec && 'MediaSource' in window) {\n var parts = src.type.split('; ');\n var typeStr = \"video/mp4; \".concat(parts[1] || '');\n var canPlay = testCanPlayTypeAndTypeSupported(typeStr);\n\n if (_video.default.browser.IS_ANY_SAFARI) {\n // work around safari saying it cant play h265\n src.type = \"\".concat(parts[0], \"; \").concat((0, _common.codecShorthandTrans)('h264'));\n }\n\n if (canPlay) {\n srcs.push(src);\n }\n } else {\n srcs.push(src);\n }\n } else {\n srcs.push(src);\n }\n\n return srcs;\n }, []);\n\n _this.player.src(_sources);\n\n _lastSource = src;\n _lastPlaylist = _this.playlist();\n };\n\n var testCanPlayTypeAndTypeSupported = function testCanPlayTypeAndTypeSupported(codec) {\n var v = document.createElement('video');\n return v.canPlayType(codec) || 'MediaSource' in window && MediaSource.isTypeSupported(codec);\n };\n\n var posterOptionsForCurrent = function posterOptionsForCurrent() {\n var opts = (0, _assign.assign)({}, _this.posterOptions());\n\n if (opts.transformation) {\n if ((opts.transformation.width || opts.transformation.height) && !opts.transformation.crop) {\n opts.transformation.crop = 'scale';\n }\n }\n\n opts.transformation = opts.transformation || {}; // Set poster dimensions to player actual size.\n // (unless they were explicitly set via `posterOptions`)\n\n var playerEl = _this.player.el();\n\n if (playerEl && playerEl.clientWidth && playerEl.clientHeight && !(0, _cloudinary.isKeyInTransformation)(opts.transformation, 'width') && !(0, _cloudinary.isKeyInTransformation)(opts.transformation, 'height')) {\n var roundUp100 = function roundUp100(val) {\n return 100 * Math.ceil(val / 100);\n };\n\n opts.transformation = (0, _common.mergeTransformations)(opts.transformation, {\n width: roundUp100(playerEl.clientWidth),\n height: roundUp100(playerEl.clientHeight),\n crop: 'limit'\n });\n }\n\n return opts;\n }; // Handle external (non-cloudinary plugin) source changes (e.g. by ad plugins)\n\n\n var syncState = function syncState(_, data) {\n var src = data.to; // When source is cloudinary's\n\n if (_lastSource && _lastSource.contains(src)) {\n // If plugin state doesn't have an active VideoSource\n if (!_this.source()) {\n // We might have been running a playlist, reset playlist's state.\n if (_lastPlaylist) {\n _this.playlist(_lastPlaylist);\n } // Rebuild last source state without calling vjs's 'src' and 'poster'\n\n\n _this.source(_lastSource, {\n skipRefresh: true\n });\n }\n } else {\n // Used by cloudinary-only components\n _this.player.trigger('cldsourcechanged', {}); // When source isn't cloudinary's - reset the plugin's state.\n\n\n _this.dispose();\n }\n };\n\n _playerEvents = new _eventHandlerRegistry.default(_this.player);\n\n var constructorParams = _slicing.sliceAndUnsetProperties.apply(void 0, [options].concat(CONSTRUCTOR_PARAMS));\n\n (0, _applyWithProps.applyWithProps)(_assertThisInitialized(_this), constructorParams);\n\n _this.on('sourcechanged', syncState);\n\n return _this;\n }\n\n _createClass(CloudinaryContext, [{\n key: \"currentSourceType\",\n value: function currentSourceType() {\n return this.source().getType();\n }\n }, {\n key: \"currentPublicId\",\n value: function currentPublicId() {\n return this.source() && this.source().publicId();\n }\n }, {\n key: \"currentPoster\",\n value: function currentPoster() {\n return this.source() && this.source().poster();\n }\n }]);\n\n return CloudinaryContext;\n}((0, _mixin2.mixin)(_playlistable.default));\n\nfunction _default() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n options.chainTarget = options.chainTarget || this;\n this.cloudinary = new CloudinaryContext(this, options);\n}\n\n//# sourceURL=webpack://cloudinaryVideoPlayer/./plugins/cloudinary/index.js?");
|
|
4801
4801
|
|
|
4802
4802
|
/***/ }),
|
|
4803
4803
|
|
|
@@ -4941,7 +4941,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extr
|
|
|
4941
4941
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4942
4942
|
|
|
4943
4943
|
"use strict";
|
|
4944
|
-
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar contextMenuContent = function contextMenuContent(player) {\n var isLooping = player.loop();\n var isPaused = player.paused();\n var isMuted = player.muted();\n var isFullscreen = player.isFullscreen();\n var aboutMenuItem = {\n class: 'player-version',\n label: 'Cloudinary Player v' + \"1.9.
|
|
4944
|
+
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar contextMenuContent = function contextMenuContent(player) {\n var isLooping = player.loop();\n var isPaused = player.paused();\n var isMuted = player.muted();\n var isFullscreen = player.isFullscreen();\n var aboutMenuItem = {\n class: 'player-version',\n label: 'Cloudinary Player v' + \"1.9.2\"\n };\n\n if (!player.controls()) {\n return [aboutMenuItem];\n }\n\n return [{\n label: isLooping ? 'Unloop' : 'Loop',\n listener: function listener() {\n player.loop(!isLooping);\n }\n }, {\n label: isPaused ? 'Play' : 'Pause',\n listener: function listener() {\n if (isPaused) {\n player.play();\n } else {\n player.pause();\n }\n }\n }, {\n label: isMuted ? 'Unmute' : 'Mute',\n listener: function listener() {\n player.muted(!isMuted);\n }\n }, {\n label: isFullscreen ? 'Exit Fullscreen' : 'Fullscreen',\n listener: function listener() {\n if (isFullscreen) {\n player.exitFullscreen();\n } else {\n player.requestFullscreen();\n }\n }\n }, aboutMenuItem];\n};\n\nvar _default = contextMenuContent;\nexports.default = _default;\n\n//# sourceURL=webpack://cloudinaryVideoPlayer/./plugins/context-menu/contextMenuContent.js?");
|
|
4945
4945
|
|
|
4946
4946
|
/***/ }),
|
|
4947
4947
|
|