Fixing an issue with "urn:scormdriver:" values in SCORM 2004 4th edition

This commit is contained in:
Jonathan Putney
2021-09-07 13:45:56 -04:00
parent 674bbf051c
commit 3a19efb91c
12 changed files with 1891 additions and 1605 deletions

184
dist/scorm2004.min.js vendored
View File

@@ -409,7 +409,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
function _iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
@@ -427,6 +427,10 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
function _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; }
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; }
@@ -460,17 +464,17 @@ var BaseAPI = /*#__PURE__*/function () {
function BaseAPI(error_codes, settings) {
_classCallCheck(this, BaseAPI);
_timeout.set(this, {
_classPrivateFieldInitSpec(this, _timeout, {
writable: true,
value: void 0
});
_error_codes.set(this, {
_classPrivateFieldInitSpec(this, _error_codes, {
writable: true,
value: void 0
});
_settings.set(this, {
_classPrivateFieldInitSpec(this, _settings, {
writable: true,
value: {
autocommit: false,
@@ -1740,22 +1744,22 @@ var ScheduledCommit = /*#__PURE__*/function () {
function ScheduledCommit(API, when, callback) {
_classCallCheck(this, ScheduledCommit);
_API.set(this, {
_classPrivateFieldInitSpec(this, _API, {
writable: true,
value: void 0
});
_cancelled.set(this, {
_classPrivateFieldInitSpec(this, _cancelled, {
writable: true,
value: false
});
_timeout2.set(this, {
_classPrivateFieldInitSpec(this, _timeout2, {
writable: true,
value: void 0
});
_callback.set(this, {
_classPrivateFieldInitSpec(this, _callback, {
writable: true,
value: void 0
});
@@ -1844,7 +1848,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
function _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); }; }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
function _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); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
@@ -1854,6 +1858,10 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
function _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; }
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
function _classExtractFieldDescriptor(receiver, privateMap, action) { if (!privateMap.has(receiver)) { throw new TypeError("attempted to " + action + " private field on non-instance"); } return privateMap.get(receiver); }
@@ -1891,7 +1899,7 @@ var Scorm2004API = /*#__PURE__*/function (_BaseAPI) {
_this = _super.call(this, scorm2004_error_codes, finalSettings);
_version.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _version, {
writable: true,
value: void 0
});
@@ -2507,7 +2515,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
function _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); }; }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
function _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); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
@@ -2521,6 +2529,10 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
function _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; }
function _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"); _classApplyDescriptorSet(receiver, descriptor, value); return value; }
@@ -2604,12 +2616,12 @@ var BaseCMI = /*#__PURE__*/function () {
_defineProperty(this, "jsonString", false);
_initialized.set(this, {
_classPrivateFieldInitSpec(this, _initialized, {
writable: true,
value: false
});
_start_time.set(this, {
_classPrivateFieldInitSpec(this, _start_time, {
writable: true,
value: void 0
});
@@ -2721,52 +2733,52 @@ var CMIScore = /*#__PURE__*/function (_BaseCMI) {
_this = _super.call(this);
_children2.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _children2, {
writable: true,
value: void 0
});
_score_range.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _score_range, {
writable: true,
value: void 0
});
_invalid_error_code.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _invalid_error_code, {
writable: true,
value: void 0
});
_invalid_type_code.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _invalid_type_code, {
writable: true,
value: void 0
});
_invalid_range_code.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _invalid_range_code, {
writable: true,
value: void 0
});
_decimal_regex.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _decimal_regex, {
writable: true,
value: void 0
});
_error_class.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _error_class, {
writable: true,
value: void 0
});
_raw.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _raw, {
writable: true,
value: ''
});
_min.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _min, {
writable: true,
value: ''
});
_max.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _max, {
writable: true,
value: void 0
});
@@ -2926,17 +2938,17 @@ var CMIArray = /*#__PURE__*/function (_BaseCMI2) {
_this2 = _super2.call(this);
_errorCode.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _errorCode, {
writable: true,
value: void 0
});
_errorClass.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _errorClass, {
writable: true,
value: void 0
});
_children3.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _children3, {
writable: true,
value: void 0
});
@@ -3060,7 +3072,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
function _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); }; }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
function _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); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
@@ -3068,6 +3080,10 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
function _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"); _classApplyDescriptorSet(receiver, descriptor, value); return value; }
function _classApplyDescriptorSet(receiver, descriptor, value) { if (descriptor.set) { descriptor.set.call(receiver, value); } else { if (!descriptor.writable) { throw new TypeError("attempted to set read only private field"); } descriptor.value = value; } }
@@ -3205,102 +3221,102 @@ var CMI = /*#__PURE__*/function (_BaseCMI) {
_this = _super.call(this);
_version2.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _version2, {
writable: true,
value: '1.0'
});
_children2.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _children2, {
writable: true,
value: scorm2004_constants.cmi_children
});
_completion_status.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _completion_status, {
writable: true,
value: 'unknown'
});
_completion_threshold.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _completion_threshold, {
writable: true,
value: ''
});
_credit.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _credit, {
writable: true,
value: 'credit'
});
_entry.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _entry, {
writable: true,
value: ''
});
_exit.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _exit, {
writable: true,
value: ''
});
_launch_data.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _launch_data, {
writable: true,
value: ''
});
_learner_id.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _learner_id, {
writable: true,
value: ''
});
_learner_name.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _learner_name, {
writable: true,
value: ''
});
_location.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _location, {
writable: true,
value: ''
});
_max_time_allowed.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _max_time_allowed, {
writable: true,
value: ''
});
_mode.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _mode, {
writable: true,
value: 'normal'
});
_progress_measure.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _progress_measure, {
writable: true,
value: ''
});
_scaled_passing_score.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _scaled_passing_score, {
writable: true,
value: ''
});
_session_time.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _session_time, {
writable: true,
value: 'PT0H0M0S'
});
_success_status.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _success_status, {
writable: true,
value: 'unknown'
});
_suspend_data.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _suspend_data, {
writable: true,
value: ''
});
_time_limit_action.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _time_limit_action, {
writable: true,
value: 'continue,no message'
});
_total_time.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _total_time, {
writable: true,
value: ''
});
@@ -3831,27 +3847,27 @@ var CMILearnerPreference = /*#__PURE__*/function (_BaseCMI2) {
_this2 = _super2.call(this);
_children3.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _children3, {
writable: true,
value: scorm2004_constants.student_preference_children
});
_audio_level.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _audio_level, {
writable: true,
value: '1'
});
_language.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _language, {
writable: true,
value: ''
});
_delivery_speed.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _delivery_speed, {
writable: true,
value: '1'
});
_audio_captioning.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _audio_captioning, {
writable: true,
value: '0'
});
@@ -4125,42 +4141,42 @@ var CMIInteractionsObject = /*#__PURE__*/function (_BaseCMI3) {
_this3 = _super7.call(this);
_id.set(_assertThisInitialized(_this3), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this3), _id, {
writable: true,
value: ''
});
_type.set(_assertThisInitialized(_this3), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this3), _type, {
writable: true,
value: ''
});
_timestamp.set(_assertThisInitialized(_this3), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this3), _timestamp, {
writable: true,
value: ''
});
_weighting.set(_assertThisInitialized(_this3), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this3), _weighting, {
writable: true,
value: ''
});
_learner_response.set(_assertThisInitialized(_this3), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this3), _learner_response, {
writable: true,
value: ''
});
_result.set(_assertThisInitialized(_this3), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this3), _result, {
writable: true,
value: ''
});
_latency.set(_assertThisInitialized(_this3), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this3), _latency, {
writable: true,
value: ''
});
_description.set(_assertThisInitialized(_this3), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this3), _description, {
writable: true,
value: ''
});
@@ -4498,27 +4514,27 @@ var CMIObjectivesObject = /*#__PURE__*/function (_BaseCMI4) {
_this4 = _super8.call(this);
_id2.set(_assertThisInitialized(_this4), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this4), _id2, {
writable: true,
value: ''
});
_success_status2.set(_assertThisInitialized(_this4), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this4), _success_status2, {
writable: true,
value: 'unknown'
});
_completion_status2.set(_assertThisInitialized(_this4), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this4), _completion_status2, {
writable: true,
value: 'unknown'
});
_progress_measure2.set(_assertThisInitialized(_this4), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this4), _progress_measure2, {
writable: true,
value: ''
});
_description2.set(_assertThisInitialized(_this4), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this4), _description2, {
writable: true,
value: ''
});
@@ -4722,7 +4738,7 @@ var Scorm2004CMIScore = /*#__PURE__*/function (_CMIScore) {
errorClass: _exceptions.Scorm2004ValidationError
});
_scaled.set(_assertThisInitialized(_this5), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _scaled, {
writable: true,
value: ''
});
@@ -4811,22 +4827,22 @@ var CMICommentsObject = /*#__PURE__*/function (_BaseCMI5) {
_this6 = _super10.call(this);
_comment.set(_assertThisInitialized(_this6), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this6), _comment, {
writable: true,
value: ''
});
_location2.set(_assertThisInitialized(_this6), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this6), _location2, {
writable: true,
value: ''
});
_timestamp2.set(_assertThisInitialized(_this6), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this6), _timestamp2, {
writable: true,
value: ''
});
_readOnlyAfterInit.set(_assertThisInitialized(_this6), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this6), _readOnlyAfterInit, {
writable: true,
value: void 0
});
@@ -4965,7 +4981,7 @@ var CMIInteractionsObjectivesObject = /*#__PURE__*/function (_BaseCMI6) {
_this7 = _super11.call(this);
_id3.set(_assertThisInitialized(_this7), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this7), _id3, {
writable: true,
value: ''
});
@@ -5040,7 +5056,7 @@ var CMIInteractionsCorrectResponsesObject = /*#__PURE__*/function (_BaseCMI7) {
_this8 = _super12.call(this);
_pattern.set(_assertThisInitialized(_this8), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this8), _pattern, {
writable: true,
value: ''
});
@@ -5178,7 +5194,7 @@ var ADLNav = /*#__PURE__*/function (_BaseCMI9) {
_this10 = _super14.call(this);
_request.set(_assertThisInitialized(_this10), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this10), _request, {
writable: true,
value: '_none_'
});
@@ -5268,12 +5284,12 @@ var ADLNavRequestValid = /*#__PURE__*/function (_BaseCMI10) {
_this11 = _super15.call(this);
_continue.set(_assertThisInitialized(_this11), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this11), _continue, {
writable: true,
value: 'unknown'
});
_previous.set(_assertThisInitialized(_this11), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this11), _previous, {
writable: true,
value: 'unknown'
});
@@ -6218,7 +6234,7 @@ var learner = {
unique: false
},
'choice': {
format: scorm2004_regex.CMIShortIdentifier,
format: scorm2004_regex.CMILongIdentifier,
max: 36,
delimiter: '[,]',
unique: true
@@ -6290,7 +6306,7 @@ var correct = {
delimiter: '[,]',
unique: true,
duplicate: false,
format: scorm2004_regex.CMIShortIdentifier
format: scorm2004_regex.CMILongIdentifier
},
'fill-in': {
max: 10,
@@ -6387,7 +6403,7 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
function _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); }; }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
function _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); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
@@ -6403,6 +6419,10 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; }
@@ -6444,17 +6464,17 @@ var ValidationError = /*#__PURE__*/function (_Error) {
_this = _super.call(this, errorMessage);
_errorCode.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _errorCode, {
writable: true,
value: void 0
});
_errorMessage.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _errorMessage, {
writable: true,
value: void 0
});
_detailedMessage.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _detailedMessage, {
writable: true,
value: void 0
});
@@ -6635,7 +6655,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
function _iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }