@amazon/vinyl-hls-parser 1.1.1 → 1.2.1
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/dist/hlsTestAssets/types/current/tsconfig.tsbuildinfo +1 -1
- package/dist/index.cjs +8 -1
- package/dist/index.cjs.map +2 -2
- package/dist/index.js +9 -2
- package/dist/index.js.map +3 -3
- package/dist/test/benchmark.es5.js +56 -248
- package/dist/test/benchmark.js +164 -972
- package/dist/test/benchmark.js.map +4 -4
- package/dist/types/current/parse/parseMainPlaylist.d.ts.map +1 -1
- package/dist/types/current/parse/parseMainPlaylist.js +16 -2
- package/dist/types/current/parse/parseMediaPlaylist.d.ts.map +1 -1
- package/dist/types/current/tsconfig.tsbuildinfo +1 -1
- package/dist/types/current/types/HlsDateRange.d.ts +51 -0
- package/dist/types/current/types/HlsDateRange.d.ts.map +1 -0
- package/dist/types/current/types/HlsDateRange.js +11 -0
- package/dist/types/current/types/HlsMainPlaylist.d.ts +22 -0
- package/dist/types/current/types/HlsMainPlaylist.d.ts.map +1 -0
- package/dist/types/current/types/HlsMainPlaylist.js +5 -0
- package/dist/types/current/types/HlsMediaPlaylist.d.ts +32 -0
- package/dist/types/current/types/HlsMediaPlaylist.d.ts.map +1 -0
- package/dist/types/current/types/HlsMediaPlaylist.js +5 -0
- package/dist/types/ts3.7/types/HlsDateRange.d.ts +51 -0
- package/dist/types/ts3.7/types/HlsMainPlaylist.d.ts +22 -0
- package/dist/types/ts3.7/types/HlsMediaPlaylist.d.ts +32 -0
- package/dist/types/ts4.1/types/HlsDateRange.d.ts +51 -0
- package/dist/types/ts4.1/types/HlsMainPlaylist.d.ts +22 -0
- package/dist/types/ts4.1/types/HlsMediaPlaylist.d.ts +32 -0
- package/dist/types/ts4.7/types/HlsDateRange.d.ts +51 -0
- package/dist/types/ts4.7/types/HlsMainPlaylist.d.ts +22 -0
- package/dist/types/ts4.7/types/HlsMediaPlaylist.d.ts +32 -0
- package/package.json +24 -14
- package/dist/test/benchmark.css +0 -71
- package/dist/test/benchmark.html +0 -67
- package/dist/test/favicon.png +0 -0
- package/dist/test/index.html +0 -61
- package/dist/test/integ.es5.js +0 -410
- package/dist/test/integ.js +0 -2127
- package/dist/test/integ.js.map +0 -7
- package/dist/test/jasmine.css +0 -304
- package/dist/test/jasmineHtml.es5.js +0 -670
- package/dist/test/jasmineHtml.js +0 -10851
- package/dist/test/jasmineHtml.js.map +0 -7
- package/dist/test/styles.css +0 -42
- package/dist/unit/types/current/index.d.ts +0 -7
- package/dist/unit/types/current/index.d.ts.map +0 -1
- package/dist/unit/types/current/index.js +0 -6
- package/dist/unit/types/current/parse/parseAttributes.test.d.ts +0 -2
- package/dist/unit/types/current/parse/parseAttributes.test.d.ts.map +0 -1
- package/dist/unit/types/current/parse/parseAttributes.test.js +0 -70
- package/dist/unit/types/current/parse/parseMainPlaylist.test.d.ts +0 -2
- package/dist/unit/types/current/parse/parseMainPlaylist.test.d.ts.map +0 -1
- package/dist/unit/types/current/parse/parseMainPlaylist.test.js +0 -194
- package/dist/unit/types/current/parse/parseMediaPlaylist.test.d.ts +0 -2
- package/dist/unit/types/current/parse/parseMediaPlaylist.test.d.ts.map +0 -1
- package/dist/unit/types/current/parse/parseMediaPlaylist.test.js +0 -401
- package/dist/unit/types/current/parse/parseUtil.test.d.ts +0 -2
- package/dist/unit/types/current/parse/parseUtil.test.d.ts.map +0 -1
- package/dist/unit/types/current/parse/parseUtil.test.js +0 -67
- package/dist/unit/types/current/setup.d.ts +0 -2
- package/dist/unit/types/current/setup.d.ts.map +0 -1
- package/dist/unit/types/current/setup.js +0 -19
- package/dist/unit/types/current/tsconfig.tsbuildinfo +0 -1
|
@@ -1,670 +0,0 @@
|
|
|
1
|
-
function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r)}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}function _arrayWithHoles(r){if(Array.isArray(r))return r}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o)}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+""}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}function _regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof Generator?n:Generator,u=Object.create(c.prototype);return _regeneratorDefine2(u,"_invoke",function(r,n,o){var i,c,u,f=0,p=o||[],y=!1,G={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function d(t,r){return i=t,c=0,u=e,G.n=r,a}};function d(r,n){for(c=r,u=n,t=0;!y&&f&&!o&&t<p.length;t++){var o,i=p[t],d=G.p,l=i[2];r>3?(o=l===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(c=0,G.v=n,G.n=i[1]):d<l&&(o=r<3||i[0]>n||n>l)&&(i[4]=r,i[5]=n,G.n=l,c=0))}if(o||r>1)return a;throw y=!0,n}return function(o,p,l){if(f>1)throw TypeError("Generator is already running");for(y&&1===p&&d(p,l),c=p,u=l;(t=c<2?e:u)||!y;){i||(c?c<3?(c>1&&(G.n=-1),d(c,u)):G.n=u:G.v=u);try{if(f=2,i){if(c||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,c<2&&(c=0)}else 1===c&&(t=i.return)&&t.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=e}else if((t=(y=G.n<0)?u:r.call(n,G))!==a)break}catch(t){i=e,c=1,u=t}finally{f=1}}return{value:t,done:y}}}(r,o,i),!0),u}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(_regeneratorDefine2(t={},n,function(){return this}),t),u=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionPrototype):(e.__proto__=GeneratorFunctionPrototype,_regeneratorDefine2(e,o,"GeneratorFunction")),e.prototype=Object.create(u),e}return GeneratorFunction.prototype=GeneratorFunctionPrototype,_regeneratorDefine2(u,"constructor",GeneratorFunctionPrototype),_regeneratorDefine2(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",_regeneratorDefine2(GeneratorFunctionPrototype,o,"GeneratorFunction"),_regeneratorDefine2(u),_regeneratorDefine2(u,o,"Generator"),_regeneratorDefine2(u,n,function(){return this}),_regeneratorDefine2(u,"toString",function(){return"[object Generator]"}),(_regenerator=function _regenerator(){return{w:i,m:f}})()}function _regeneratorDefine2(e,r,n,t){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}_regeneratorDefine2=function _regeneratorDefine(e,r,n,t){function o(r,n){_regeneratorDefine2(e,r,function(e){return this._invoke(r,n,e)})}r?i?i(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n:(o("next",0),o("throw",1),o("return",2))},_regeneratorDefine2(e,r,n,t)}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value}catch(n){return void e(n)}i.done?t(u):Promise.resolve(u).then(r,o)}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n)}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n)}_next(void 0)})}}function _construct(t,e,r){if(_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var p=new(t.bind.apply(t,o));return r&&_setPrototypeOf(p,r.prototype),p}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_setPrototypeOf(t,e)}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t})()}function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n=0,F=function F(){};return{s:F,n:function n(){return _n>=r.length?{done:!0}:{done:!1,value:r[_n++]}},e:function e(r){throw r},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function s(){t=t.call(r)},n:function n(){var r=t.next();return a=r.done,r},e:function e(r){u=!0,o=r},f:function f(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}var __create=Object.create;var __defProp=Object.defineProperty;var __defProps=Object.defineProperties;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropDescs=Object.getOwnPropertyDescriptors;var __getOwnPropNames=Object.getOwnPropertyNames;var __getOwnPropSymbols=Object.getOwnPropertySymbols;var __getProtoOf=Object.getPrototypeOf;var __hasOwnProp=Object.prototype.hasOwnProperty;var __propIsEnum=Object.prototype.propertyIsEnumerable;var __typeError=function __typeError(msg){throw TypeError(msg)};var __defNormalProp=function __defNormalProp(obj,key,value){return key in obj?__defProp(obj,key,{enumerable:true,configurable:true,writable:true,value:value}):obj[key]=value};var __spreadValues=function __spreadValues(a,b){for(var prop in b||(b={}))if(__hasOwnProp.call(b,prop))__defNormalProp(a,prop,b[prop]);if(__getOwnPropSymbols){var _iterator=_createForOfIteratorHelper(__getOwnPropSymbols(b)),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var prop=_step.value;if(__propIsEnum.call(b,prop))__defNormalProp(a,prop,b[prop])}}catch(err){_iterator.e(err)}finally{_iterator.f()}}return a};var __spreadProps=function __spreadProps(a,b){return __defProps(a,__getOwnPropDescs(b))};var __commonJS=function __commonJS(cb,mod){return function __require(){return mod||(0,cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports}};var __copyProps=function __copyProps(to,from,except,desc){if(from&&_typeof(from)==="object"||typeof from==="function"){var _iterator2=_createForOfIteratorHelper(__getOwnPropNames(from)),_step2;try{var _loop=function _loop(){var key=_step2.value;if(!__hasOwnProp.call(to,key)&&key!==except)__defProp(to,key,{get:function get(){return from[key]},enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable})};for(_iterator2.s();!(_step2=_iterator2.n()).done;){_loop()}}catch(err){_iterator2.e(err)}finally{_iterator2.f()}}return to};var __toESM=function __toESM(mod,isNodeMode,target){return target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(// If the importer is in node compatibility mode or this is not an ESM
|
|
2
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
3
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
4
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
5
|
-
isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:true}):target,mod)};var __accessCheck=function __accessCheck(obj,member,msg){return member.has(obj)||__typeError("Cannot "+msg)};var __privateGet=function __privateGet(obj,member,getter){return __accessCheck(obj,member,"read from private field"),getter?getter.call(obj):member.get(obj)};var __privateAdd=function __privateAdd(obj,member,value){return member.has(obj)?__typeError("Cannot add the same private member more than once"):member instanceof WeakSet?member.add(obj):member.set(obj,value)};var __privateSet=function __privateSet(obj,member,value,setter){return __accessCheck(obj,member,"write to private field"),setter?setter.call(obj,value):member.set(obj,value),value};var __privateMethod=function __privateMethod(obj,member,method){return __accessCheck(obj,member,"access private method"),method};// ../../node_modules/core-js/internals/global-this.js
|
|
6
|
-
var require_global_this=__commonJS({"../../node_modules/core-js/internals/global-this.js":function __node_modules_coreJs_internals_globalThisJs(exports2,module2){"use strict";var check=function check(it){return it&&it.Math===Math&&it};module2.exports=// eslint-disable-next-line es/no-global-this -- safe
|
|
7
|
-
check((typeof globalThis==="undefined"?"undefined":_typeof(globalThis))=="object"&&globalThis)||check((typeof window==="undefined"?"undefined":_typeof(window))=="object"&&window)||// eslint-disable-next-line no-restricted-globals -- safe
|
|
8
|
-
check((typeof self==="undefined"?"undefined":_typeof(self))=="object"&&self)||check((typeof globalThis==="undefined"?"undefined":_typeof(globalThis))=="object"&&globalThis)||check(_typeof(exports2)=="object"&&exports2)||// eslint-disable-next-line no-new-func -- fallback
|
|
9
|
-
/* @__PURE__ */function(){return this}()||Function("return this")()}});// ../../node_modules/core-js/internals/fails.js
|
|
10
|
-
var require_fails=__commonJS({"../../node_modules/core-js/internals/fails.js":function __node_modules_coreJs_internals_failsJs(exports2,module2){"use strict";module2.exports=function(exec){try{return!!exec()}catch(error){return true}}}});// ../../node_modules/core-js/internals/descriptors.js
|
|
11
|
-
var require_descriptors=__commonJS({"../../node_modules/core-js/internals/descriptors.js":function __node_modules_coreJs_internals_descriptorsJs(exports2,module2){"use strict";var fails=require_fails();module2.exports=!fails(function(){return Object.defineProperty({},1,{get:function get(){return 7}})[1]!==7})}});// ../../node_modules/core-js/internals/function-bind-native.js
|
|
12
|
-
var require_function_bind_native=__commonJS({"../../node_modules/core-js/internals/function-bind-native.js":function __node_modules_coreJs_internals_functionBindNativeJs(exports2,module2){"use strict";var fails=require_fails();module2.exports=!fails(function(){var test=function(){}.bind();return typeof test!="function"||test.hasOwnProperty("prototype")})}});// ../../node_modules/core-js/internals/function-call.js
|
|
13
|
-
var require_function_call=__commonJS({"../../node_modules/core-js/internals/function-call.js":function __node_modules_coreJs_internals_functionCallJs(exports2,module2){"use strict";var NATIVE_BIND=require_function_bind_native();var call=Function.prototype.call;module2.exports=NATIVE_BIND?call.bind(call):function(){return call.apply(call,arguments)}}});// ../../node_modules/core-js/internals/object-property-is-enumerable.js
|
|
14
|
-
var require_object_property_is_enumerable=__commonJS({"../../node_modules/core-js/internals/object-property-is-enumerable.js":function __node_modules_coreJs_internals_objectPropertyIsEnumerableJs(exports2){"use strict";var $propertyIsEnumerable={}.propertyIsEnumerable;var getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor;var NASHORN_BUG=getOwnPropertyDescriptor&&!$propertyIsEnumerable.call({1:2},1);exports2.f=NASHORN_BUG?function propertyIsEnumerable(V){var descriptor=getOwnPropertyDescriptor(this,V);return!!descriptor&&descriptor.enumerable}:$propertyIsEnumerable}});// ../../node_modules/core-js/internals/create-property-descriptor.js
|
|
15
|
-
var require_create_property_descriptor=__commonJS({"../../node_modules/core-js/internals/create-property-descriptor.js":function __node_modules_coreJs_internals_createPropertyDescriptorJs(exports2,module2){"use strict";module2.exports=function(bitmap,value){return{enumerable:!(bitmap&1),configurable:!(bitmap&2),writable:!(bitmap&4),value:value}}}});// ../../node_modules/core-js/internals/function-uncurry-this.js
|
|
16
|
-
var require_function_uncurry_this=__commonJS({"../../node_modules/core-js/internals/function-uncurry-this.js":function __node_modules_coreJs_internals_functionUncurryThisJs(exports2,module2){"use strict";var NATIVE_BIND=require_function_bind_native();var FunctionPrototype=Function.prototype;var call=FunctionPrototype.call;var uncurryThisWithBind=NATIVE_BIND&&FunctionPrototype.bind.bind(call,call);module2.exports=NATIVE_BIND?uncurryThisWithBind:function(fn){return function(){return call.apply(fn,arguments)}}}});// ../../node_modules/core-js/internals/classof-raw.js
|
|
17
|
-
var require_classof_raw=__commonJS({"../../node_modules/core-js/internals/classof-raw.js":function __node_modules_coreJs_internals_classofRawJs(exports2,module2){"use strict";var uncurryThis=require_function_uncurry_this();var toString=uncurryThis({}.toString);var stringSlice=uncurryThis("".slice);module2.exports=function(it){return stringSlice(toString(it),8,-1)}}});// ../../node_modules/core-js/internals/indexed-object.js
|
|
18
|
-
var require_indexed_object=__commonJS({"../../node_modules/core-js/internals/indexed-object.js":function __node_modules_coreJs_internals_indexedObjectJs(exports2,module2){"use strict";var uncurryThis=require_function_uncurry_this();var fails=require_fails();var classof=require_classof_raw();var $Object=Object;var split=uncurryThis("".split);module2.exports=fails(function(){return!$Object("z").propertyIsEnumerable(0)})?function(it){return classof(it)==="String"?split(it,""):$Object(it)}:$Object}});// ../../node_modules/core-js/internals/is-null-or-undefined.js
|
|
19
|
-
var require_is_null_or_undefined=__commonJS({"../../node_modules/core-js/internals/is-null-or-undefined.js":function __node_modules_coreJs_internals_isNullOrUndefinedJs(exports2,module2){"use strict";module2.exports=function(it){return it===null||it===void 0}}});// ../../node_modules/core-js/internals/require-object-coercible.js
|
|
20
|
-
var require_require_object_coercible=__commonJS({"../../node_modules/core-js/internals/require-object-coercible.js":function __node_modules_coreJs_internals_requireObjectCoercibleJs(exports2,module2){"use strict";var isNullOrUndefined=require_is_null_or_undefined();var $TypeError=TypeError;module2.exports=function(it){if(isNullOrUndefined(it))throw new $TypeError("Can't call method on "+it);return it}}});// ../../node_modules/core-js/internals/to-indexed-object.js
|
|
21
|
-
var require_to_indexed_object=__commonJS({"../../node_modules/core-js/internals/to-indexed-object.js":function __node_modules_coreJs_internals_toIndexedObjectJs(exports2,module2){"use strict";var IndexedObject=require_indexed_object();var requireObjectCoercible=require_require_object_coercible();module2.exports=function(it){return IndexedObject(requireObjectCoercible(it))}}});// ../../node_modules/core-js/internals/is-callable.js
|
|
22
|
-
var require_is_callable=__commonJS({"../../node_modules/core-js/internals/is-callable.js":function __node_modules_coreJs_internals_isCallableJs(exports2,module2){"use strict";var documentAll=(typeof document==="undefined"?"undefined":_typeof(document))=="object"&&document.all;module2.exports=typeof documentAll=="undefined"&&documentAll!==void 0?function(argument){return typeof argument=="function"||argument===documentAll}:function(argument){return typeof argument=="function"}}});// ../../node_modules/core-js/internals/is-object.js
|
|
23
|
-
var require_is_object=__commonJS({"../../node_modules/core-js/internals/is-object.js":function __node_modules_coreJs_internals_isObjectJs(exports2,module2){"use strict";var isCallable=require_is_callable();module2.exports=function(it){return _typeof(it)=="object"?it!==null:isCallable(it)}}});// ../../node_modules/core-js/internals/get-built-in.js
|
|
24
|
-
var require_get_built_in=__commonJS({"../../node_modules/core-js/internals/get-built-in.js":function __node_modules_coreJs_internals_getBuiltInJs(exports2,module2){"use strict";var globalThis2=require_global_this();var isCallable=require_is_callable();var aFunction=function aFunction(argument){return isCallable(argument)?argument:void 0};module2.exports=function(namespace,method){return arguments.length<2?aFunction(globalThis2[namespace]):globalThis2[namespace]&&globalThis2[namespace][method]}}});// ../../node_modules/core-js/internals/object-is-prototype-of.js
|
|
25
|
-
var require_object_is_prototype_of=__commonJS({"../../node_modules/core-js/internals/object-is-prototype-of.js":function __node_modules_coreJs_internals_objectIsPrototypeOfJs(exports2,module2){"use strict";var uncurryThis=require_function_uncurry_this();module2.exports=uncurryThis({}.isPrototypeOf)}});// ../../node_modules/core-js/internals/environment-user-agent.js
|
|
26
|
-
var require_environment_user_agent=__commonJS({"../../node_modules/core-js/internals/environment-user-agent.js":function __node_modules_coreJs_internals_environmentUserAgentJs(exports2,module2){"use strict";var globalThis2=require_global_this();var navigator=globalThis2.navigator;var userAgent=navigator&&navigator.userAgent;module2.exports=userAgent?String(userAgent):""}});// ../../node_modules/core-js/internals/environment-v8-version.js
|
|
27
|
-
var require_environment_v8_version=__commonJS({"../../node_modules/core-js/internals/environment-v8-version.js":function __node_modules_coreJs_internals_environmentV8VersionJs(exports2,module2){"use strict";var globalThis2=require_global_this();var userAgent=require_environment_user_agent();var process2=globalThis2.process;var Deno2=globalThis2.Deno;var versions=process2&&process2.versions||Deno2&&Deno2.version;var v8=versions&&versions.v8;var match;var version;if(v8){match=v8.split(".");version=match[0]>0&&match[0]<4?1:+(match[0]+match[1])}if(!version&&userAgent){match=userAgent.match(/Edge\/(\d+)/);if(!match||match[1]>=74){match=userAgent.match(/Chrome\/(\d+)/);if(match)version=+match[1]}}module2.exports=version}});// ../../node_modules/core-js/internals/symbol-constructor-detection.js
|
|
28
|
-
var require_symbol_constructor_detection=__commonJS({"../../node_modules/core-js/internals/symbol-constructor-detection.js":function __node_modules_coreJs_internals_symbolConstructorDetectionJs(exports2,module2){"use strict";var V8_VERSION=require_environment_v8_version();var fails=require_fails();var globalThis2=require_global_this();var $String=globalThis2.String;module2.exports=!!Object.getOwnPropertySymbols&&!fails(function(){var symbol=Symbol("symbol detection");return!$String(symbol)||!(Object(symbol)instanceof Symbol)||// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
29
|
-
!Symbol.sham&&V8_VERSION&&V8_VERSION<41})}});// ../../node_modules/core-js/internals/use-symbol-as-uid.js
|
|
30
|
-
var require_use_symbol_as_uid=__commonJS({"../../node_modules/core-js/internals/use-symbol-as-uid.js":function __node_modules_coreJs_internals_useSymbolAsUidJs(exports2,module2){"use strict";var NATIVE_SYMBOL=require_symbol_constructor_detection();module2.exports=NATIVE_SYMBOL&&!Symbol.sham&&_typeof(Symbol.iterator)=="symbol"}});// ../../node_modules/core-js/internals/is-symbol.js
|
|
31
|
-
var require_is_symbol=__commonJS({"../../node_modules/core-js/internals/is-symbol.js":function __node_modules_coreJs_internals_isSymbolJs(exports2,module2){"use strict";var getBuiltIn=require_get_built_in();var isCallable=require_is_callable();var isPrototypeOf=require_object_is_prototype_of();var USE_SYMBOL_AS_UID=require_use_symbol_as_uid();var $Object=Object;module2.exports=USE_SYMBOL_AS_UID?function(it){return _typeof(it)=="symbol"}:function(it){var $Symbol=getBuiltIn("Symbol");return isCallable($Symbol)&&isPrototypeOf($Symbol.prototype,$Object(it))}}});// ../../node_modules/core-js/internals/try-to-string.js
|
|
32
|
-
var require_try_to_string=__commonJS({"../../node_modules/core-js/internals/try-to-string.js":function __node_modules_coreJs_internals_tryToStringJs(exports2,module2){"use strict";var $String=String;module2.exports=function(argument){try{return $String(argument)}catch(error){return"Object"}}}});// ../../node_modules/core-js/internals/a-callable.js
|
|
33
|
-
var require_a_callable=__commonJS({"../../node_modules/core-js/internals/a-callable.js":function __node_modules_coreJs_internals_aCallableJs(exports2,module2){"use strict";var isCallable=require_is_callable();var tryToString=require_try_to_string();var $TypeError=TypeError;module2.exports=function(argument){if(isCallable(argument))return argument;throw new $TypeError(tryToString(argument)+" is not a function")}}});// ../../node_modules/core-js/internals/get-method.js
|
|
34
|
-
var require_get_method=__commonJS({"../../node_modules/core-js/internals/get-method.js":function __node_modules_coreJs_internals_getMethodJs(exports2,module2){"use strict";var aCallable=require_a_callable();var isNullOrUndefined=require_is_null_or_undefined();module2.exports=function(V,P){var func=V[P];return isNullOrUndefined(func)?void 0:aCallable(func)}}});// ../../node_modules/core-js/internals/ordinary-to-primitive.js
|
|
35
|
-
var require_ordinary_to_primitive=__commonJS({"../../node_modules/core-js/internals/ordinary-to-primitive.js":function __node_modules_coreJs_internals_ordinaryToPrimitiveJs(exports2,module2){"use strict";var call=require_function_call();var isCallable=require_is_callable();var isObject=require_is_object();var $TypeError=TypeError;module2.exports=function(input,pref){var fn,val;if(pref==="string"&&isCallable(fn=input.toString)&&!isObject(val=call(fn,input)))return val;if(isCallable(fn=input.valueOf)&&!isObject(val=call(fn,input)))return val;if(pref!=="string"&&isCallable(fn=input.toString)&&!isObject(val=call(fn,input)))return val;throw new $TypeError("Can't convert object to primitive value")}}});// ../../node_modules/core-js/internals/is-pure.js
|
|
36
|
-
var require_is_pure=__commonJS({"../../node_modules/core-js/internals/is-pure.js":function __node_modules_coreJs_internals_isPureJs(exports2,module2){"use strict";module2.exports=false}});// ../../node_modules/core-js/internals/define-global-property.js
|
|
37
|
-
var require_define_global_property=__commonJS({"../../node_modules/core-js/internals/define-global-property.js":function __node_modules_coreJs_internals_defineGlobalPropertyJs(exports2,module2){"use strict";var globalThis2=require_global_this();var defineProperty=Object.defineProperty;module2.exports=function(key,value){try{defineProperty(globalThis2,key,{value:value,configurable:true,writable:true})}catch(error){globalThis2[key]=value}return value}}});// ../../node_modules/core-js/internals/shared-store.js
|
|
38
|
-
var require_shared_store=__commonJS({"../../node_modules/core-js/internals/shared-store.js":function __node_modules_coreJs_internals_sharedStoreJs(exports2,module2){"use strict";var IS_PURE=require_is_pure();var globalThis2=require_global_this();var defineGlobalProperty=require_define_global_property();var SHARED="__core-js_shared__";var store=module2.exports=globalThis2[SHARED]||defineGlobalProperty(SHARED,{});(store.versions||(store.versions=[])).push({version:"3.49.0",mode:IS_PURE?"pure":"global",copyright:"\xA9 2013\u20132025 Denis Pushkarev (zloirock.ru), 2025\u20132026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})}});// ../../node_modules/core-js/internals/shared.js
|
|
39
|
-
var require_shared=__commonJS({"../../node_modules/core-js/internals/shared.js":function __node_modules_coreJs_internals_sharedJs(exports2,module2){"use strict";var store=require_shared_store();module2.exports=function(key,value){return store[key]||(store[key]=value||{})}}});// ../../node_modules/core-js/internals/to-object.js
|
|
40
|
-
var require_to_object=__commonJS({"../../node_modules/core-js/internals/to-object.js":function __node_modules_coreJs_internals_toObjectJs(exports2,module2){"use strict";var requireObjectCoercible=require_require_object_coercible();var $Object=Object;module2.exports=function(argument){return $Object(requireObjectCoercible(argument))}}});// ../../node_modules/core-js/internals/has-own-property.js
|
|
41
|
-
var require_has_own_property=__commonJS({"../../node_modules/core-js/internals/has-own-property.js":function __node_modules_coreJs_internals_hasOwnPropertyJs(exports2,module2){"use strict";var uncurryThis=require_function_uncurry_this();var toObject=require_to_object();var hasOwnProperty=uncurryThis({}.hasOwnProperty);module2.exports=Object.hasOwn||function hasOwn(it,key){return hasOwnProperty(toObject(it),key)}}});// ../../node_modules/core-js/internals/uid.js
|
|
42
|
-
var require_uid=__commonJS({"../../node_modules/core-js/internals/uid.js":function __node_modules_coreJs_internals_uidJs(exports2,module2){"use strict";var uncurryThis=require_function_uncurry_this();var id=0;var postfix=Math.random();var toString=uncurryThis(1.1.toString);module2.exports=function(key){return"Symbol("+(key===void 0?"":key)+")_"+toString(++id+postfix,36)}}});// ../../node_modules/core-js/internals/well-known-symbol.js
|
|
43
|
-
var require_well_known_symbol=__commonJS({"../../node_modules/core-js/internals/well-known-symbol.js":function __node_modules_coreJs_internals_wellKnownSymbolJs(exports2,module2){"use strict";var globalThis2=require_global_this();var shared=require_shared();var hasOwn=require_has_own_property();var uid=require_uid();var NATIVE_SYMBOL=require_symbol_constructor_detection();var USE_SYMBOL_AS_UID=require_use_symbol_as_uid();var Symbol2=globalThis2.Symbol;var WellKnownSymbolsStore=shared("wks");var createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol2["for"]||Symbol2:Symbol2&&Symbol2.withoutSetter||uid;module2.exports=function(name){if(!hasOwn(WellKnownSymbolsStore,name)){WellKnownSymbolsStore[name]=NATIVE_SYMBOL&&hasOwn(Symbol2,name)?Symbol2[name]:createWellKnownSymbol("Symbol."+name)}return WellKnownSymbolsStore[name]}}});// ../../node_modules/core-js/internals/to-primitive.js
|
|
44
|
-
var require_to_primitive=__commonJS({"../../node_modules/core-js/internals/to-primitive.js":function __node_modules_coreJs_internals_toPrimitiveJs(exports2,module2){"use strict";var call=require_function_call();var isObject=require_is_object();var isSymbol=require_is_symbol();var getMethod=require_get_method();var ordinaryToPrimitive=require_ordinary_to_primitive();var wellKnownSymbol=require_well_known_symbol();var $TypeError=TypeError;var TO_PRIMITIVE=wellKnownSymbol("toPrimitive");module2.exports=function(input,pref){if(!isObject(input)||isSymbol(input))return input;var exoticToPrim=getMethod(input,TO_PRIMITIVE);var result;if(exoticToPrim){if(pref===void 0)pref="default";result=call(exoticToPrim,input,pref);if(!isObject(result)||isSymbol(result))return result;throw new $TypeError("Can't convert object to primitive value")}if(pref===void 0)pref="number";return ordinaryToPrimitive(input,pref)}}});// ../../node_modules/core-js/internals/to-property-key.js
|
|
45
|
-
var require_to_property_key=__commonJS({"../../node_modules/core-js/internals/to-property-key.js":function __node_modules_coreJs_internals_toPropertyKeyJs(exports2,module2){"use strict";var toPrimitive=require_to_primitive();var isSymbol=require_is_symbol();module2.exports=function(argument){var key=toPrimitive(argument,"string");return isSymbol(key)?key:key+""}}});// ../../node_modules/core-js/internals/document-create-element.js
|
|
46
|
-
var require_document_create_element=__commonJS({"../../node_modules/core-js/internals/document-create-element.js":function __node_modules_coreJs_internals_documentCreateElementJs(exports2,module2){"use strict";var globalThis2=require_global_this();var isObject=require_is_object();var document2=globalThis2.document;var EXISTS=isObject(document2)&&isObject(document2.createElement);module2.exports=function(it){return EXISTS?document2.createElement(it):{}}}});// ../../node_modules/core-js/internals/ie8-dom-define.js
|
|
47
|
-
var require_ie8_dom_define=__commonJS({"../../node_modules/core-js/internals/ie8-dom-define.js":function __node_modules_coreJs_internals_ie8DomDefineJs(exports2,module2){"use strict";var DESCRIPTORS=require_descriptors();var fails=require_fails();var createElement=require_document_create_element();module2.exports=!DESCRIPTORS&&!fails(function(){return Object.defineProperty(createElement("div"),"a",{get:function get(){return 7}}).a!==7})}});// ../../node_modules/core-js/internals/object-get-own-property-descriptor.js
|
|
48
|
-
var require_object_get_own_property_descriptor=__commonJS({"../../node_modules/core-js/internals/object-get-own-property-descriptor.js":function __node_modules_coreJs_internals_objectGetOwnPropertyDescriptorJs(exports2){"use strict";var DESCRIPTORS=require_descriptors();var call=require_function_call();var propertyIsEnumerableModule=require_object_property_is_enumerable();var createPropertyDescriptor=require_create_property_descriptor();var toIndexedObject=require_to_indexed_object();var toPropertyKey=require_to_property_key();var hasOwn=require_has_own_property();var IE8_DOM_DEFINE=require_ie8_dom_define();var $getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor;exports2.f=DESCRIPTORS?$getOwnPropertyDescriptor:function getOwnPropertyDescriptor(O,P){O=toIndexedObject(O);P=toPropertyKey(P);if(IE8_DOM_DEFINE)try{return $getOwnPropertyDescriptor(O,P)}catch(error){}if(hasOwn(O,P))return createPropertyDescriptor(!call(propertyIsEnumerableModule.f,O,P),O[P])}}});// ../../node_modules/core-js/internals/v8-prototype-define-bug.js
|
|
49
|
-
var require_v8_prototype_define_bug=__commonJS({"../../node_modules/core-js/internals/v8-prototype-define-bug.js":function __node_modules_coreJs_internals_v8PrototypeDefineBugJs(exports2,module2){"use strict";var DESCRIPTORS=require_descriptors();var fails=require_fails();module2.exports=DESCRIPTORS&&fails(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:false}).prototype!==42})}});// ../../node_modules/core-js/internals/an-object.js
|
|
50
|
-
var require_an_object=__commonJS({"../../node_modules/core-js/internals/an-object.js":function __node_modules_coreJs_internals_anObjectJs(exports2,module2){"use strict";var isObject=require_is_object();var $String=String;var $TypeError=TypeError;module2.exports=function(argument){if(isObject(argument))return argument;throw new $TypeError($String(argument)+" is not an object")}}});// ../../node_modules/core-js/internals/object-define-property.js
|
|
51
|
-
var require_object_define_property=__commonJS({"../../node_modules/core-js/internals/object-define-property.js":function __node_modules_coreJs_internals_objectDefinePropertyJs(exports2){"use strict";var DESCRIPTORS=require_descriptors();var IE8_DOM_DEFINE=require_ie8_dom_define();var V8_PROTOTYPE_DEFINE_BUG=require_v8_prototype_define_bug();var anObject=require_an_object();var toPropertyKey=require_to_property_key();var $TypeError=TypeError;var $defineProperty=Object.defineProperty;var $getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor;var ENUMERABLE="enumerable";var CONFIGURABLE="configurable";var WRITABLE="writable";exports2.f=DESCRIPTORS?V8_PROTOTYPE_DEFINE_BUG?function defineProperty(O,P,Attributes){anObject(O);P=toPropertyKey(P);anObject(Attributes);if(typeof O==="function"&&P==="prototype"&&"value"in Attributes&&WRITABLE in Attributes&&!Attributes[WRITABLE]){var current=$getOwnPropertyDescriptor(O,P);if(current&¤t[WRITABLE]){O[P]=Attributes.value;Attributes={configurable:CONFIGURABLE in Attributes?Attributes[CONFIGURABLE]:current[CONFIGURABLE],enumerable:ENUMERABLE in Attributes?Attributes[ENUMERABLE]:current[ENUMERABLE],writable:false}}}return $defineProperty(O,P,Attributes)}:$defineProperty:function defineProperty(O,P,Attributes){anObject(O);P=toPropertyKey(P);anObject(Attributes);if(IE8_DOM_DEFINE)try{return $defineProperty(O,P,Attributes)}catch(error){}if("get"in Attributes||"set"in Attributes)throw new $TypeError("Accessors not supported");if("value"in Attributes)O[P]=Attributes.value;return O}}});// ../../node_modules/core-js/internals/create-non-enumerable-property.js
|
|
52
|
-
var require_create_non_enumerable_property=__commonJS({"../../node_modules/core-js/internals/create-non-enumerable-property.js":function __node_modules_coreJs_internals_createNonEnumerablePropertyJs(exports2,module2){"use strict";var DESCRIPTORS=require_descriptors();var definePropertyModule=require_object_define_property();var createPropertyDescriptor=require_create_property_descriptor();module2.exports=DESCRIPTORS?function(object,key,value){return definePropertyModule.f(object,key,createPropertyDescriptor(1,value))}:function(object,key,value){object[key]=value;return object}}});// ../../node_modules/core-js/internals/function-name.js
|
|
53
|
-
var require_function_name=__commonJS({"../../node_modules/core-js/internals/function-name.js":function __node_modules_coreJs_internals_functionNameJs(exports2,module2){"use strict";var DESCRIPTORS=require_descriptors();var hasOwn=require_has_own_property();var FunctionPrototype=Function.prototype;var getDescriptor=DESCRIPTORS&&Object.getOwnPropertyDescriptor;var EXISTS=hasOwn(FunctionPrototype,"name");var PROPER=EXISTS&&function something(){}.name==="something";var CONFIGURABLE=EXISTS&&(!DESCRIPTORS||DESCRIPTORS&&getDescriptor(FunctionPrototype,"name").configurable);module2.exports={EXISTS:EXISTS,PROPER:PROPER,CONFIGURABLE:CONFIGURABLE}}});// ../../node_modules/core-js/internals/inspect-source.js
|
|
54
|
-
var require_inspect_source=__commonJS({"../../node_modules/core-js/internals/inspect-source.js":function __node_modules_coreJs_internals_inspectSourceJs(exports2,module2){"use strict";var uncurryThis=require_function_uncurry_this();var isCallable=require_is_callable();var store=require_shared_store();var functionToString=uncurryThis(Function.toString);if(!isCallable(store.inspectSource)){store.inspectSource=function(it){return functionToString(it)}}module2.exports=store.inspectSource}});// ../../node_modules/core-js/internals/weak-map-basic-detection.js
|
|
55
|
-
var require_weak_map_basic_detection=__commonJS({"../../node_modules/core-js/internals/weak-map-basic-detection.js":function __node_modules_coreJs_internals_weakMapBasicDetectionJs(exports2,module2){"use strict";var globalThis2=require_global_this();var isCallable=require_is_callable();var WeakMap2=globalThis2.WeakMap;module2.exports=isCallable(WeakMap2)&&/native code/.test(String(WeakMap2))}});// ../../node_modules/core-js/internals/shared-key.js
|
|
56
|
-
var require_shared_key=__commonJS({"../../node_modules/core-js/internals/shared-key.js":function __node_modules_coreJs_internals_sharedKeyJs(exports2,module2){"use strict";var shared=require_shared();var uid=require_uid();var keys=shared("keys");module2.exports=function(key){return keys[key]||(keys[key]=uid(key))}}});// ../../node_modules/core-js/internals/hidden-keys.js
|
|
57
|
-
var require_hidden_keys=__commonJS({"../../node_modules/core-js/internals/hidden-keys.js":function __node_modules_coreJs_internals_hiddenKeysJs(exports2,module2){"use strict";module2.exports={}}});// ../../node_modules/core-js/internals/internal-state.js
|
|
58
|
-
var require_internal_state=__commonJS({"../../node_modules/core-js/internals/internal-state.js":function __node_modules_coreJs_internals_internalStateJs(exports2,module2){"use strict";var NATIVE_WEAK_MAP=require_weak_map_basic_detection();var globalThis2=require_global_this();var isObject=require_is_object();var createNonEnumerableProperty=require_create_non_enumerable_property();var hasOwn=require_has_own_property();var shared=require_shared_store();var sharedKey=require_shared_key();var hiddenKeys=require_hidden_keys();var OBJECT_ALREADY_INITIALIZED="Object already initialized";var TypeError2=globalThis2.TypeError;var WeakMap2=globalThis2.WeakMap;var set;var get;var has;var enforce=function enforce(it){return has(it)?get(it):set(it,{})};var getterFor=function getterFor(TYPE){return function(it){var state;if(!isObject(it)||(state=get(it)).type!==TYPE){throw new TypeError2("Incompatible receiver, "+TYPE+" required")}return state}};if(NATIVE_WEAK_MAP||shared.state){store=shared.state||(shared.state=new WeakMap2);store.get=store.get;store.has=store.has;store.set=store.set;set=function set(it,metadata){if(store.has(it))throw new TypeError2(OBJECT_ALREADY_INITIALIZED);metadata.facade=it;store.set(it,metadata);return metadata};get=function get(it){return store.get(it)||{}};has=function has(it){return store.has(it)}}else{STATE=sharedKey("state");hiddenKeys[STATE]=true;set=function set(it,metadata){if(hasOwn(it,STATE))throw new TypeError2(OBJECT_ALREADY_INITIALIZED);metadata.facade=it;createNonEnumerableProperty(it,STATE,metadata);return metadata};get=function get(it){return hasOwn(it,STATE)?it[STATE]:{}};has=function has(it){return hasOwn(it,STATE)}}var store;var STATE;module2.exports={set:set,get:get,has:has,enforce:enforce,getterFor:getterFor}}});// ../../node_modules/core-js/internals/make-built-in.js
|
|
59
|
-
var require_make_built_in=__commonJS({"../../node_modules/core-js/internals/make-built-in.js":function __node_modules_coreJs_internals_makeBuiltInJs(exports2,module2){"use strict";var uncurryThis=require_function_uncurry_this();var fails=require_fails();var isCallable=require_is_callable();var hasOwn=require_has_own_property();var DESCRIPTORS=require_descriptors();var CONFIGURABLE_FUNCTION_NAME=require_function_name().CONFIGURABLE;var inspectSource=require_inspect_source();var InternalStateModule=require_internal_state();var enforceInternalState=InternalStateModule.enforce;var getInternalState=InternalStateModule.get;var $String=String;var defineProperty=Object.defineProperty;var stringSlice=uncurryThis("".slice);var replace=uncurryThis("".replace);var join=uncurryThis([].join);var CONFIGURABLE_LENGTH=DESCRIPTORS&&!fails(function(){return defineProperty(function(){},"length",{value:8}).length!==8});var TEMPLATE=String(String).split("String");var makeBuiltIn=module2.exports=function(value,name,options){if(stringSlice($String(name),0,7)==="Symbol("){name="["+replace($String(name),/^Symbol\(([^)]*)\).*$/,"$1")+"]"}if(options&&options.getter)name="get "+name;if(options&&options.setter)name="set "+name;if(!hasOwn(value,"name")||CONFIGURABLE_FUNCTION_NAME&&value.name!==name){if(DESCRIPTORS)defineProperty(value,"name",{value:name,configurable:true});else value.name=name}if(CONFIGURABLE_LENGTH&&options&&hasOwn(options,"arity")&&value.length!==options.arity){defineProperty(value,"length",{value:options.arity})}try{if(options&&hasOwn(options,"constructor")&&options.constructor){if(DESCRIPTORS)defineProperty(value,"prototype",{writable:false})}else if(value.prototype)value.prototype=void 0}catch(error){}var state=enforceInternalState(value);if(!hasOwn(state,"source")){state.source=join(TEMPLATE,typeof name=="string"?name:"")}return value};Function.prototype.toString=makeBuiltIn(function toString(){return isCallable(this)&&getInternalState(this).source||inspectSource(this)},"toString")}});// ../../node_modules/core-js/internals/define-built-in.js
|
|
60
|
-
var require_define_built_in=__commonJS({"../../node_modules/core-js/internals/define-built-in.js":function __node_modules_coreJs_internals_defineBuiltInJs(exports2,module2){"use strict";var isCallable=require_is_callable();var definePropertyModule=require_object_define_property();var makeBuiltIn=require_make_built_in();var defineGlobalProperty=require_define_global_property();module2.exports=function(O,key,value,options){if(!options)options={};var simple=options.enumerable;var name=options.name!==void 0?options.name:key;if(isCallable(value))makeBuiltIn(value,name,options);if(options.global){if(simple)O[key]=value;else defineGlobalProperty(key,value)}else{try{if(!options.unsafe)delete O[key];else if(O[key])simple=true}catch(error){}if(simple)O[key]=value;else definePropertyModule.f(O,key,{value:value,enumerable:false,configurable:!options.nonConfigurable,writable:!options.nonWritable})}return O}}});// ../../node_modules/core-js/internals/math-trunc.js
|
|
61
|
-
var require_math_trunc=__commonJS({"../../node_modules/core-js/internals/math-trunc.js":function __node_modules_coreJs_internals_mathTruncJs(exports2,module2){"use strict";var ceil=Math.ceil;var floor=Math.floor;module2.exports=Math.trunc||function trunc(x){var n=+x;return(n>0?floor:ceil)(n)}}});// ../../node_modules/core-js/internals/to-integer-or-infinity.js
|
|
62
|
-
var require_to_integer_or_infinity=__commonJS({"../../node_modules/core-js/internals/to-integer-or-infinity.js":function __node_modules_coreJs_internals_toIntegerOrInfinityJs(exports2,module2){"use strict";var trunc=require_math_trunc();module2.exports=function(argument){var number=+argument;return number!==number||number===0?0:trunc(number)}}});// ../../node_modules/core-js/internals/to-absolute-index.js
|
|
63
|
-
var require_to_absolute_index=__commonJS({"../../node_modules/core-js/internals/to-absolute-index.js":function __node_modules_coreJs_internals_toAbsoluteIndexJs(exports2,module2){"use strict";var toIntegerOrInfinity=require_to_integer_or_infinity();var max=Math.max;var min=Math.min;module2.exports=function(index,length){var integer=toIntegerOrInfinity(index);return integer<0?max(integer+length,0):min(integer,length)}}});// ../../node_modules/core-js/internals/to-length.js
|
|
64
|
-
var require_to_length=__commonJS({"../../node_modules/core-js/internals/to-length.js":function __node_modules_coreJs_internals_toLengthJs(exports2,module2){"use strict";var toIntegerOrInfinity=require_to_integer_or_infinity();var min=Math.min;module2.exports=function(argument){var len=toIntegerOrInfinity(argument);return len>0?min(len,9007199254740991):0}}});// ../../node_modules/core-js/internals/length-of-array-like.js
|
|
65
|
-
var require_length_of_array_like=__commonJS({"../../node_modules/core-js/internals/length-of-array-like.js":function __node_modules_coreJs_internals_lengthOfArrayLikeJs(exports2,module2){"use strict";var toLength=require_to_length();module2.exports=function(obj){return toLength(obj.length)}}});// ../../node_modules/core-js/internals/array-includes.js
|
|
66
|
-
var require_array_includes=__commonJS({"../../node_modules/core-js/internals/array-includes.js":function __node_modules_coreJs_internals_arrayIncludesJs(exports2,module2){"use strict";var toIndexedObject=require_to_indexed_object();var toAbsoluteIndex=require_to_absolute_index();var lengthOfArrayLike=require_length_of_array_like();var createMethod=function createMethod(IS_INCLUDES){return function($this,el,fromIndex){var O=toIndexedObject($this);var length=lengthOfArrayLike(O);if(length===0)return!IS_INCLUDES&&-1;var index=toAbsoluteIndex(fromIndex,length);var value;if(IS_INCLUDES&&el!==el)while(length>index){value=O[index++];if(value!==value)return true}else for(;length>index;index++){if((IS_INCLUDES||index in O)&&O[index]===el)return IS_INCLUDES||index||0}return!IS_INCLUDES&&-1}};module2.exports={// `Array.prototype.includes` method
|
|
67
|
-
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
68
|
-
includes:createMethod(true),// `Array.prototype.indexOf` method
|
|
69
|
-
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
70
|
-
indexOf:createMethod(false)}}});// ../../node_modules/core-js/internals/object-keys-internal.js
|
|
71
|
-
var require_object_keys_internal=__commonJS({"../../node_modules/core-js/internals/object-keys-internal.js":function __node_modules_coreJs_internals_objectKeysInternalJs(exports2,module2){"use strict";var uncurryThis=require_function_uncurry_this();var hasOwn=require_has_own_property();var toIndexedObject=require_to_indexed_object();var indexOf=require_array_includes().indexOf;var hiddenKeys=require_hidden_keys();var push=uncurryThis([].push);module2.exports=function(object,names){var O=toIndexedObject(object);var i=0;var result=[];var key;for(key in O)!hasOwn(hiddenKeys,key)&&hasOwn(O,key)&&push(result,key);while(names.length>i)if(hasOwn(O,key=names[i++])){~indexOf(result,key)||push(result,key)}return result}}});// ../../node_modules/core-js/internals/enum-bug-keys.js
|
|
72
|
-
var require_enum_bug_keys=__commonJS({"../../node_modules/core-js/internals/enum-bug-keys.js":function __node_modules_coreJs_internals_enumBugKeysJs(exports2,module2){"use strict";module2.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}});// ../../node_modules/core-js/internals/object-get-own-property-names.js
|
|
73
|
-
var require_object_get_own_property_names=__commonJS({"../../node_modules/core-js/internals/object-get-own-property-names.js":function __node_modules_coreJs_internals_objectGetOwnPropertyNamesJs(exports2){"use strict";var internalObjectKeys=require_object_keys_internal();var enumBugKeys=require_enum_bug_keys();var hiddenKeys=enumBugKeys.concat("length","prototype");exports2.f=Object.getOwnPropertyNames||function getOwnPropertyNames(O){return internalObjectKeys(O,hiddenKeys)}}});// ../../node_modules/core-js/internals/object-get-own-property-symbols.js
|
|
74
|
-
var require_object_get_own_property_symbols=__commonJS({"../../node_modules/core-js/internals/object-get-own-property-symbols.js":function __node_modules_coreJs_internals_objectGetOwnPropertySymbolsJs(exports2){"use strict";exports2.f=Object.getOwnPropertySymbols}});// ../../node_modules/core-js/internals/own-keys.js
|
|
75
|
-
var require_own_keys=__commonJS({"../../node_modules/core-js/internals/own-keys.js":function __node_modules_coreJs_internals_ownKeysJs(exports2,module2){"use strict";var getBuiltIn=require_get_built_in();var uncurryThis=require_function_uncurry_this();var getOwnPropertyNamesModule=require_object_get_own_property_names();var getOwnPropertySymbolsModule=require_object_get_own_property_symbols();var anObject=require_an_object();var concat=uncurryThis([].concat);module2.exports=getBuiltIn("Reflect","ownKeys")||function ownKeys(it){var keys=getOwnPropertyNamesModule.f(anObject(it));var getOwnPropertySymbols=getOwnPropertySymbolsModule.f;return getOwnPropertySymbols?concat(keys,getOwnPropertySymbols(it)):keys}}});// ../../node_modules/core-js/internals/copy-constructor-properties.js
|
|
76
|
-
var require_copy_constructor_properties=__commonJS({"../../node_modules/core-js/internals/copy-constructor-properties.js":function __node_modules_coreJs_internals_copyConstructorPropertiesJs(exports2,module2){"use strict";var hasOwn=require_has_own_property();var ownKeys=require_own_keys();var getOwnPropertyDescriptorModule=require_object_get_own_property_descriptor();var definePropertyModule=require_object_define_property();module2.exports=function(target,source,exceptions){var keys=ownKeys(source);var defineProperty=definePropertyModule.f;var getOwnPropertyDescriptor=getOwnPropertyDescriptorModule.f;for(var i=0;i<keys.length;i++){var key=keys[i];if(!hasOwn(target,key)&&!(exceptions&&hasOwn(exceptions,key))){defineProperty(target,key,getOwnPropertyDescriptor(source,key))}}}}});// ../../node_modules/core-js/internals/is-forced.js
|
|
77
|
-
var require_is_forced=__commonJS({"../../node_modules/core-js/internals/is-forced.js":function __node_modules_coreJs_internals_isForcedJs(exports2,module2){"use strict";var fails=require_fails();var isCallable=require_is_callable();var replacement=/#|\.prototype\./;var isForced=function isForced(feature,detection){var value=data[normalize(feature)];return value===POLYFILL?true:value===NATIVE?false:isCallable(detection)?fails(detection):!!detection};var normalize=isForced.normalize=function(string){return String(string).replace(replacement,".").toLowerCase()};var data=isForced.data={};var NATIVE=isForced.NATIVE="N";var POLYFILL=isForced.POLYFILL="P";module2.exports=isForced}});// ../../node_modules/core-js/internals/export.js
|
|
78
|
-
var require_export=__commonJS({"../../node_modules/core-js/internals/export.js":function __node_modules_coreJs_internals_exportJs(exports2,module2){"use strict";var globalThis2=require_global_this();var getOwnPropertyDescriptor=require_object_get_own_property_descriptor().f;var createNonEnumerableProperty=require_create_non_enumerable_property();var defineBuiltIn=require_define_built_in();var defineGlobalProperty=require_define_global_property();var copyConstructorProperties=require_copy_constructor_properties();var isForced=require_is_forced();module2.exports=function(options,source){var TARGET=options.target;var GLOBAL=options.global;var STATIC=options.stat;var FORCED,target,key,targetProperty,sourceProperty,descriptor;if(GLOBAL){target=globalThis2}else if(STATIC){target=globalThis2[TARGET]||defineGlobalProperty(TARGET,{})}else{target=globalThis2[TARGET]&&globalThis2[TARGET].prototype}if(target)for(key in source){sourceProperty=source[key];if(options.dontCallGetSet){descriptor=getOwnPropertyDescriptor(target,key);targetProperty=descriptor&&descriptor.value}else targetProperty=target[key];FORCED=isForced(GLOBAL?key:TARGET+(STATIC?".":"#")+key,options.forced);if(!FORCED&&targetProperty!==void 0){if(_typeof(sourceProperty)==_typeof(targetProperty))continue;copyConstructorProperties(sourceProperty,targetProperty)}if(options.sham||targetProperty&&targetProperty.sham){createNonEnumerableProperty(sourceProperty,"sham",true)}defineBuiltIn(target,key,sourceProperty,options)}}}});// ../../node_modules/core-js/internals/safe-get-built-in.js
|
|
79
|
-
var require_safe_get_built_in=__commonJS({"../../node_modules/core-js/internals/safe-get-built-in.js":function __node_modules_coreJs_internals_safeGetBuiltInJs(exports2,module2){"use strict";var globalThis2=require_global_this();var DESCRIPTORS=require_descriptors();var getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor;module2.exports=function(name){if(!DESCRIPTORS)return globalThis2[name];var descriptor=getOwnPropertyDescriptor(globalThis2,name);return descriptor&&descriptor.value}}});// ../../node_modules/core-js/internals/function-uncurry-this-clause.js
|
|
80
|
-
var require_function_uncurry_this_clause=__commonJS({"../../node_modules/core-js/internals/function-uncurry-this-clause.js":function __node_modules_coreJs_internals_functionUncurryThisClauseJs(exports2,module2){"use strict";var classofRaw=require_classof_raw();var uncurryThis=require_function_uncurry_this();module2.exports=function(fn){if(classofRaw(fn)==="Function")return uncurryThis(fn)}}});// ../../node_modules/core-js/internals/function-bind-context.js
|
|
81
|
-
var require_function_bind_context=__commonJS({"../../node_modules/core-js/internals/function-bind-context.js":function __node_modules_coreJs_internals_functionBindContextJs(exports2,module2){"use strict";var uncurryThis=require_function_uncurry_this_clause();var aCallable=require_a_callable();var NATIVE_BIND=require_function_bind_native();var bind=uncurryThis(uncurryThis.bind);module2.exports=function(fn,that){aCallable(fn);return that===void 0?fn:NATIVE_BIND?bind(fn,that):function(){return fn.apply(that,arguments)}}}});// ../../node_modules/core-js/internals/function-apply.js
|
|
82
|
-
var require_function_apply=__commonJS({"../../node_modules/core-js/internals/function-apply.js":function __node_modules_coreJs_internals_functionApplyJs(exports2,module2){"use strict";var NATIVE_BIND=require_function_bind_native();var FunctionPrototype=Function.prototype;var apply=FunctionPrototype.apply;var call=FunctionPrototype.call;module2.exports=(typeof Reflect==="undefined"?"undefined":_typeof(Reflect))=="object"&&Reflect.apply||(NATIVE_BIND?call.bind(apply):function(){return call.apply(apply,arguments)})}});// ../../node_modules/core-js/internals/html.js
|
|
83
|
-
var require_html=__commonJS({"../../node_modules/core-js/internals/html.js":function __node_modules_coreJs_internals_htmlJs(exports2,module2){"use strict";var getBuiltIn=require_get_built_in();module2.exports=getBuiltIn("document","documentElement")}});// ../../node_modules/core-js/internals/array-slice.js
|
|
84
|
-
var require_array_slice=__commonJS({"../../node_modules/core-js/internals/array-slice.js":function __node_modules_coreJs_internals_arraySliceJs(exports2,module2){"use strict";var uncurryThis=require_function_uncurry_this();module2.exports=uncurryThis([].slice)}});// ../../node_modules/core-js/internals/validate-arguments-length.js
|
|
85
|
-
var require_validate_arguments_length=__commonJS({"../../node_modules/core-js/internals/validate-arguments-length.js":function __node_modules_coreJs_internals_validateArgumentsLengthJs(exports2,module2){"use strict";var $TypeError=TypeError;module2.exports=function(passed,required){if(passed<required)throw new $TypeError("Not enough arguments");return passed}}});// ../../node_modules/core-js/internals/environment-is-ios.js
|
|
86
|
-
var require_environment_is_ios=__commonJS({"../../node_modules/core-js/internals/environment-is-ios.js":function __node_modules_coreJs_internals_environmentIsIosJs(exports2,module2){"use strict";var userAgent=require_environment_user_agent();module2.exports=/ipad|iphone|ipod/i.test(userAgent)&&/applewebkit/i.test(userAgent)}});// ../../node_modules/core-js/internals/environment.js
|
|
87
|
-
var require_environment=__commonJS({"../../node_modules/core-js/internals/environment.js":function __node_modules_coreJs_internals_environmentJs(exports2,module2){"use strict";var globalThis2=require_global_this();var userAgent=require_environment_user_agent();var classof=require_classof_raw();var userAgentStartsWith=function userAgentStartsWith(string){return userAgent.slice(0,string.length)===string};module2.exports=function(){if(userAgentStartsWith("Bun/"))return"BUN";if(userAgentStartsWith("Cloudflare-Workers"))return"CLOUDFLARE";if(userAgentStartsWith("Deno/"))return"DENO";if(userAgentStartsWith("Node.js/"))return"NODE";if(globalThis2.Bun&&typeof Bun.version=="string")return"BUN";if(globalThis2.Deno&&_typeof(Deno.version)=="object")return"DENO";if(classof(globalThis2.process)==="process")return"NODE";if(globalThis2.window&&globalThis2.document)return"BROWSER";return"REST"}()}});// ../../node_modules/core-js/internals/environment-is-node.js
|
|
88
|
-
var require_environment_is_node=__commonJS({"../../node_modules/core-js/internals/environment-is-node.js":function __node_modules_coreJs_internals_environmentIsNodeJs(exports2,module2){"use strict";var ENVIRONMENT=require_environment();module2.exports=ENVIRONMENT==="NODE"}});// ../../node_modules/core-js/internals/task.js
|
|
89
|
-
var require_task=__commonJS({"../../node_modules/core-js/internals/task.js":function __node_modules_coreJs_internals_taskJs(exports2,module2){"use strict";var globalThis2=require_global_this();var apply=require_function_apply();var bind=require_function_bind_context();var isCallable=require_is_callable();var hasOwn=require_has_own_property();var fails=require_fails();var html=require_html();var arraySlice=require_array_slice();var createElement=require_document_create_element();var validateArgumentsLength=require_validate_arguments_length();var IS_IOS=require_environment_is_ios();var IS_NODE=require_environment_is_node();var set=globalThis2.setImmediate;var clear=globalThis2.clearImmediate;var process2=globalThis2.process;var Dispatch=globalThis2.Dispatch;var Function2=globalThis2.Function;var MessageChannel2=globalThis2.MessageChannel;var String2=globalThis2.String;var counter=0;var queue={};var ONREADYSTATECHANGE="onreadystatechange";var $location;var defer;var channel;var port;fails(function(){$location=globalThis2.location});var run=function run(id){if(hasOwn(queue,id)){var fn=queue[id];delete queue[id];fn()}};var runner=function runner(id){return function(){run(id)}};var eventListener=function eventListener(event){run(event.data)};var globalPostMessageDefer=function globalPostMessageDefer(id){globalThis2.postMessage(String2(id),$location.protocol+"//"+$location.host)};if(!set||!clear){set=function setImmediate2(handler){validateArgumentsLength(arguments.length,1);var fn=isCallable(handler)?handler:Function2(handler);var args=arraySlice(arguments,1);queue[++counter]=function(){apply(fn,void 0,args)};defer(counter);return counter};clear=function clearImmediate(id){delete queue[id]};if(IS_NODE){defer=function defer(id){process2.nextTick(runner(id))}}else if(Dispatch&&Dispatch.now){defer=function defer(id){Dispatch.now(runner(id))}}else if(MessageChannel2&&!IS_IOS){channel=new MessageChannel2;port=channel.port2;channel.port1.onmessage=eventListener;defer=bind(port.postMessage,port)}else if(globalThis2.addEventListener&&isCallable(globalThis2.postMessage)&&!globalThis2.importScripts&&$location&&$location.protocol!=="file:"&&!fails(globalPostMessageDefer)){defer=globalPostMessageDefer;globalThis2.addEventListener("message",eventListener,false)}else if(ONREADYSTATECHANGE in createElement("script")){defer=function defer(id){html.appendChild(createElement("script"))[ONREADYSTATECHANGE]=function(){html.removeChild(this);run(id)}}}else{defer=function defer(id){setTimeout(runner(id),0)}}}module2.exports={set:set,clear:clear}}});// ../../node_modules/core-js/internals/queue.js
|
|
90
|
-
var require_queue=__commonJS({"../../node_modules/core-js/internals/queue.js":function __node_modules_coreJs_internals_queueJs(exports2,module2){"use strict";var Queue=function Queue(){this.head=null;this.tail=null};Queue.prototype={add:function add(item){var entry={item:item,next:null};var tail=this.tail;if(tail)tail.next=entry;else this.head=entry;this.tail=entry},get:function get(){var entry=this.head;if(entry){var next=this.head=entry.next;if(next===null)this.tail=null;return entry.item}}};module2.exports=Queue}});// ../../node_modules/core-js/internals/environment-is-ios-pebble.js
|
|
91
|
-
var require_environment_is_ios_pebble=__commonJS({"../../node_modules/core-js/internals/environment-is-ios-pebble.js":function __node_modules_coreJs_internals_environmentIsIosPebbleJs(exports2,module2){"use strict";var userAgent=require_environment_user_agent();module2.exports=/ipad|iphone|ipod/i.test(userAgent)&&typeof Pebble!="undefined"}});// ../../node_modules/core-js/internals/environment-is-webos-webkit.js
|
|
92
|
-
var require_environment_is_webos_webkit=__commonJS({"../../node_modules/core-js/internals/environment-is-webos-webkit.js":function __node_modules_coreJs_internals_environmentIsWebosWebkitJs(exports2,module2){"use strict";var userAgent=require_environment_user_agent();module2.exports=/web0s(?!.*chrome)/i.test(userAgent)}});// ../../node_modules/core-js/internals/microtask.js
|
|
93
|
-
var require_microtask=__commonJS({"../../node_modules/core-js/internals/microtask.js":function __node_modules_coreJs_internals_microtaskJs(exports2,module2){"use strict";var globalThis2=require_global_this();var safeGetBuiltIn=require_safe_get_built_in();var bind=require_function_bind_context();var macrotask=require_task().set;var Queue=require_queue();var IS_IOS=require_environment_is_ios();var IS_IOS_PEBBLE=require_environment_is_ios_pebble();var IS_WEBOS_WEBKIT=require_environment_is_webos_webkit();var IS_NODE=require_environment_is_node();var MutationObserver=globalThis2.MutationObserver||globalThis2.WebKitMutationObserver;var document2=globalThis2.document;var process2=globalThis2.process;var Promise2=globalThis2.Promise;var microtask=safeGetBuiltIn("queueMicrotask");var notify;var toggle;var node;var promise;var then;if(!microtask){queue=new Queue;flush=function flush(){var parent,fn;if(IS_NODE&&(parent=process2.domain))parent.exit();while(fn=queue.get())try{fn()}catch(error){if(queue.head)notify();throw error}if(parent)parent.enter()};if(!IS_IOS&&!IS_NODE&&!IS_WEBOS_WEBKIT&&MutationObserver&&document2){toggle=true;node=document2.createTextNode("");new MutationObserver(flush).observe(node,{characterData:true});notify=function notify(){node.data=toggle=!toggle}}else if(!IS_IOS_PEBBLE&&Promise2&&Promise2.resolve){promise=Promise2.resolve(void 0);promise.constructor=Promise2;then=bind(promise.then,promise);notify=function notify(){then(flush)}}else if(IS_NODE){notify=function notify(){process2.nextTick(flush)}}else{macrotask=bind(macrotask,globalThis2);notify=function notify(){macrotask(flush)}}microtask=function microtask(fn){if(!queue.head)notify();queue.add(fn)}}var queue;var flush;module2.exports=microtask}});// ../../node_modules/core-js/modules/web.queue-microtask.js
|
|
94
|
-
var require_web_queue_microtask=__commonJS({"../../node_modules/core-js/modules/web.queue-microtask.js":function __node_modules_coreJs_modules_webQueueMicrotaskJs(){"use strict";var $=require_export();var globalThis2=require_global_this();var microtask=require_microtask();var aCallable=require_a_callable();var validateArgumentsLength=require_validate_arguments_length();var fails=require_fails();var DESCRIPTORS=require_descriptors();var WRONG_ARITY=fails(function(){return DESCRIPTORS&&Object.getOwnPropertyDescriptor(globalThis2,"queueMicrotask").value.length!==1});$({global:true,enumerable:true,dontCallGetSet:true,forced:WRONG_ARITY},{queueMicrotask:function queueMicrotask(fn){validateArgumentsLength(arguments.length,1);microtask(aCallable(fn))}})}});// ../../node_modules/core-js/internals/path.js
|
|
95
|
-
var require_path=__commonJS({"../../node_modules/core-js/internals/path.js":function __node_modules_coreJs_internals_pathJs(exports2,module2){"use strict";var globalThis2=require_global_this();module2.exports=globalThis2}});// ../../node_modules/core-js/web/queue-microtask.js
|
|
96
|
-
var require_queue_microtask=__commonJS({"../../node_modules/core-js/web/queue-microtask.js":function __node_modules_coreJs_web_queueMicrotaskJs(exports2,module2){"use strict";require_web_queue_microtask();var path=require_path();module2.exports=path.queueMicrotask}});// ../../node_modules/core-js/stable/queue-microtask.js
|
|
97
|
-
var require_queue_microtask2=__commonJS({"../../node_modules/core-js/stable/queue-microtask.js":function __node_modules_coreJs_stable_queueMicrotaskJs(exports2,module2){"use strict";var parent=require_queue_microtask();module2.exports=parent}});// ../../node_modules/core-js/actual/queue-microtask.js
|
|
98
|
-
var require_queue_microtask3=__commonJS({"../../node_modules/core-js/actual/queue-microtask.js":function __node_modules_coreJs_actual_queueMicrotaskJs(exports2,module2){"use strict";var parent=require_queue_microtask2();module2.exports=parent}});// ../../node_modules/core-js/full/queue-microtask.js
|
|
99
|
-
var require_queue_microtask4=__commonJS({"../../node_modules/core-js/full/queue-microtask.js":function __node_modules_coreJs_full_queueMicrotaskJs(exports2,module2){"use strict";var parent=require_queue_microtask3();module2.exports=parent}});// ../../node_modules/core-js/features/queue-microtask.js
|
|
100
|
-
var require_queue_microtask5=__commonJS({"../../node_modules/core-js/features/queue-microtask.js":function __node_modules_coreJs_features_queueMicrotaskJs(exports2,module2){"use strict";module2.exports=require_queue_microtask4()}});// ../../node_modules/core-js/internals/this-number-value.js
|
|
101
|
-
var require_this_number_value=__commonJS({"../../node_modules/core-js/internals/this-number-value.js":function __node_modules_coreJs_internals_thisNumberValueJs(exports2,module2){"use strict";var uncurryThis=require_function_uncurry_this();module2.exports=uncurryThis(1.1.valueOf)}});// ../../node_modules/core-js/modules/es.number.to-precision.js
|
|
102
|
-
var require_es_number_to_precision=__commonJS({"../../node_modules/core-js/modules/es.number.to-precision.js":function __node_modules_coreJs_modules_esNumberToPrecisionJs(){"use strict";var $=require_export();var uncurryThis=require_function_uncurry_this();var fails=require_fails();var thisNumberValue=require_this_number_value();var nativeToPrecision=uncurryThis(1.1.toPrecision);var FORCED=fails(function(){return nativeToPrecision(1,void 0)!=="1"})||!fails(function(){nativeToPrecision({})});$({target:"Number",proto:true,forced:FORCED},{toPrecision:function toPrecision(precision){return precision===void 0?nativeToPrecision(thisNumberValue(this)):nativeToPrecision(thisNumberValue(this),precision)}})}});// ../../node_modules/core-js/internals/entry-unbind.js
|
|
103
|
-
var require_entry_unbind=__commonJS({"../../node_modules/core-js/internals/entry-unbind.js":function __node_modules_coreJs_internals_entryUnbindJs(exports2,module2){"use strict";var globalThis2=require_global_this();var uncurryThis=require_function_uncurry_this();module2.exports=function(CONSTRUCTOR,METHOD){return uncurryThis(globalThis2[CONSTRUCTOR].prototype[METHOD])}}});// ../../node_modules/core-js/es/number/to-precision.js
|
|
104
|
-
var require_to_precision=__commonJS({"../../node_modules/core-js/es/number/to-precision.js":function __node_modules_coreJs_es_number_toPrecisionJs(exports2,module2){"use strict";require_es_number_to_precision();var entryUnbind=require_entry_unbind();module2.exports=entryUnbind("Number","toPrecision")}});// ../../node_modules/core-js/stable/number/to-precision.js
|
|
105
|
-
var require_to_precision2=__commonJS({"../../node_modules/core-js/stable/number/to-precision.js":function __node_modules_coreJs_stable_number_toPrecisionJs(exports2,module2){"use strict";var parent=require_to_precision();module2.exports=parent}});// ../../node_modules/core-js/actual/number/to-precision.js
|
|
106
|
-
var require_to_precision3=__commonJS({"../../node_modules/core-js/actual/number/to-precision.js":function __node_modules_coreJs_actual_number_toPrecisionJs(exports2,module2){"use strict";var parent=require_to_precision2();module2.exports=parent}});// ../../node_modules/core-js/full/number/to-precision.js
|
|
107
|
-
var require_to_precision4=__commonJS({"../../node_modules/core-js/full/number/to-precision.js":function __node_modules_coreJs_full_number_toPrecisionJs(exports2,module2){"use strict";var parent=require_to_precision3();module2.exports=parent}});// ../../node_modules/core-js/features/number/to-precision.js
|
|
108
|
-
var require_to_precision5=__commonJS({"../../node_modules/core-js/features/number/to-precision.js":function __node_modules_coreJs_features_number_toPrecisionJs(exports2,module2){"use strict";module2.exports=require_to_precision4()}});// ../../node_modules/core-js/internals/to-string-tag-support.js
|
|
109
|
-
var require_to_string_tag_support=__commonJS({"../../node_modules/core-js/internals/to-string-tag-support.js":function __node_modules_coreJs_internals_toStringTagSupportJs(exports2,module2){"use strict";var wellKnownSymbol=require_well_known_symbol();var TO_STRING_TAG=wellKnownSymbol("toStringTag");var test={};test[TO_STRING_TAG]="z";module2.exports=String(test)==="[object z]"}});// ../../node_modules/core-js/internals/classof.js
|
|
110
|
-
var require_classof=__commonJS({"../../node_modules/core-js/internals/classof.js":function __node_modules_coreJs_internals_classofJs(exports2,module2){"use strict";var TO_STRING_TAG_SUPPORT=require_to_string_tag_support();var isCallable=require_is_callable();var classofRaw=require_classof_raw();var wellKnownSymbol=require_well_known_symbol();var TO_STRING_TAG=wellKnownSymbol("toStringTag");var $Object=Object;var CORRECT_ARGUMENTS=classofRaw(/* @__PURE__ */function(){return arguments}())==="Arguments";var tryGet=function tryGet(it,key){try{return it[key]}catch(error){}};module2.exports=TO_STRING_TAG_SUPPORT?classofRaw:function(it){var O,tag,result;return it===void 0?"Undefined":it===null?"Null":typeof(tag=tryGet(O=$Object(it),TO_STRING_TAG))=="string"?tag:CORRECT_ARGUMENTS?classofRaw(O):(result=classofRaw(O))==="Object"&&isCallable(O.callee)?"Arguments":result}}});// ../../node_modules/core-js/internals/to-string.js
|
|
111
|
-
var require_to_string=__commonJS({"../../node_modules/core-js/internals/to-string.js":function __node_modules_coreJs_internals_toStringJs(exports2,module2){"use strict";var classof=require_classof();var $String=String;module2.exports=function(argument){if(classof(argument)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return $String(argument)}}});// ../../node_modules/core-js/internals/string-repeat.js
|
|
112
|
-
var require_string_repeat=__commonJS({"../../node_modules/core-js/internals/string-repeat.js":function __node_modules_coreJs_internals_stringRepeatJs(exports2,module2){"use strict";var toIntegerOrInfinity=require_to_integer_or_infinity();var toString=require_to_string();var requireObjectCoercible=require_require_object_coercible();var $RangeError=RangeError;var floor=Math.floor;module2.exports=function repeat(count){var str=toString(requireObjectCoercible(this));var result="";var n=toIntegerOrInfinity(count);if(n<0||n===Infinity)throw new $RangeError("Wrong number of repetitions");for(;n>0;(n=floor(n/2))&&(str+=str))if(n%2)result+=str;return result}}});// ../../node_modules/core-js/modules/es.number.to-fixed.js
|
|
113
|
-
var require_es_number_to_fixed=__commonJS({"../../node_modules/core-js/modules/es.number.to-fixed.js":function __node_modules_coreJs_modules_esNumberToFixedJs(){"use strict";var $=require_export();var uncurryThis=require_function_uncurry_this();var toIntegerOrInfinity=require_to_integer_or_infinity();var thisNumberValue=require_this_number_value();var $repeat=require_string_repeat();var fails=require_fails();var $RangeError=RangeError;var $String=String;var floor=Math.floor;var repeat=uncurryThis($repeat);var stringSlice=uncurryThis("".slice);var nativeToFixed=uncurryThis(1.1.toFixed);var _pow=function pow(x,n,acc){return n===0?acc:n%2===1?_pow(x,n-1,acc*x):_pow(x*x,n/2,acc)};var log=function log(x){var n=0;var x2=x;while(x2>=4096){n+=12;x2/=4096}while(x2>=2){n+=1;x2/=2}return n};var multiply=function multiply(data,n,c){var index=-1;var c2=c;while(++index<6){c2+=n*data[index];data[index]=c2%1e7;c2=floor(c2/1e7)}};var divide=function divide(data,n){var index=6;var c=0;while(--index>=0){c+=data[index];data[index]=floor(c/n);c=c%n*1e7}};var dataToString=function dataToString(data){var index=6;var s="";while(--index>=0){if(s!==""||index===0||data[index]!==0){var t=$String(data[index]);s=s===""?t:s+repeat("0",7-t.length)+t}}return s};var FORCED=fails(function(){return nativeToFixed(8e-5,3)!=="0.000"||nativeToFixed(0.9,0)!=="1"||nativeToFixed(1.255,2)!=="1.25"||nativeToFixed(1000000000000000100,0)!=="1000000000000000128"})||!fails(function(){nativeToFixed({})});$({target:"Number",proto:true,forced:FORCED},{toFixed:function toFixed(fractionDigits){var number=thisNumberValue(this);var fractDigits=toIntegerOrInfinity(fractionDigits);var data=[0,0,0,0,0,0];var sign="";var result="0";var e,z,j,k;if(fractDigits<0||fractDigits>20)throw new $RangeError("Incorrect fraction digits");if(number!==number)return"NaN";if(number<=-1e21||number>=1e21)return $String(number);if(number<0){sign="-";number=-number}if(number>1e-21){e=log(number*_pow(2,69,1))-69;z=e<0?number*_pow(2,-e,1):number/_pow(2,e,1);z*=4503599627370496;e=52-e;if(e>0){multiply(data,0,z);j=fractDigits;while(j>=7){multiply(data,1e7,0);j-=7}multiply(data,_pow(10,j,1),0);j=e-1;while(j>=23){divide(data,1<<23);j-=23}divide(data,1<<j);multiply(data,1,1);divide(data,2);result=dataToString(data)}else{multiply(data,0,z);multiply(data,1<<-e,0);result=dataToString(data)+repeat("0",fractDigits)}}if(fractDigits>0){k=result.length;result=sign+(k<=fractDigits?"0."+repeat("0",fractDigits-k)+result:stringSlice(result,0,k-fractDigits)+"."+stringSlice(result,k-fractDigits))}else{result=sign+result}return result}})}});// ../../node_modules/core-js/es/number/to-fixed.js
|
|
114
|
-
var require_to_fixed=__commonJS({"../../node_modules/core-js/es/number/to-fixed.js":function __node_modules_coreJs_es_number_toFixedJs(exports2,module2){"use strict";require_es_number_to_fixed();var entryUnbind=require_entry_unbind();module2.exports=entryUnbind("Number","toFixed")}});// ../../node_modules/core-js/stable/number/to-fixed.js
|
|
115
|
-
var require_to_fixed2=__commonJS({"../../node_modules/core-js/stable/number/to-fixed.js":function __node_modules_coreJs_stable_number_toFixedJs(exports2,module2){"use strict";var parent=require_to_fixed();module2.exports=parent}});// ../../node_modules/core-js/actual/number/to-fixed.js
|
|
116
|
-
var require_to_fixed3=__commonJS({"../../node_modules/core-js/actual/number/to-fixed.js":function __node_modules_coreJs_actual_number_toFixedJs(exports2,module2){"use strict";var parent=require_to_fixed2();module2.exports=parent}});// ../../node_modules/core-js/full/number/to-fixed.js
|
|
117
|
-
var require_to_fixed4=__commonJS({"../../node_modules/core-js/full/number/to-fixed.js":function __node_modules_coreJs_full_number_toFixedJs(exports2,module2){"use strict";var parent=require_to_fixed3();module2.exports=parent}});// ../../node_modules/core-js/features/number/to-fixed.js
|
|
118
|
-
var require_to_fixed5=__commonJS({"../../node_modules/core-js/features/number/to-fixed.js":function __node_modules_coreJs_features_number_toFixedJs(exports2,module2){"use strict";module2.exports=require_to_fixed4()}});// ../../node_modules/jasmine-core/lib/jasmine-core/jasmine.js
|
|
119
|
-
var require_jasmine=__commonJS({"../../node_modules/jasmine-core/lib/jasmine-core/jasmine.js":function __node_modules_jasmineCore_lib_jasmineCore_jasmineJs(exports,module){var getJasmineRequireObj=function(jasmineGlobal){var jasmineRequire2;if(typeof module!=="undefined"&&module.exports&&typeof exports!=="undefined"){if(typeof globalThis!=="undefined"){jasmineGlobal=globalThis}else{jasmineGlobal={}}jasmineRequire2=exports}else{if(typeof window!=="undefined"&&typeof window.toString==="function"&&window.toString()==="[object GjsGlobal]"){jasmineGlobal=window}jasmineRequire2=jasmineGlobal.jasmineRequire={}}function getJasmineRequire(){return jasmineRequire2}getJasmineRequire().core=function(jRequire){var j$2={};jRequire.base(j$2,jasmineGlobal);j$2.util=jRequire.util(j$2);j$2.errors=jRequire.errors();j$2.formatErrorMsg=jRequire.formatErrorMsg();j$2.AllOf=jRequire.AllOf(j$2);j$2.Any=jRequire.Any(j$2);j$2.Anything=jRequire.Anything(j$2);j$2.CallTracker=jRequire.CallTracker(j$2);j$2.MockDate=jRequire.MockDate(j$2);j$2.getClearStack=jRequire.clearStack(j$2);j$2.Clock=jRequire.Clock();j$2.DelayedFunctionScheduler=jRequire.DelayedFunctionScheduler(j$2);j$2.Deprecator=jRequire.Deprecator(j$2);j$2.Configuration=jRequire.Configuration(j$2);j$2.Env=jRequire.Env(j$2);j$2.StackTrace=jRequire.StackTrace(j$2);j$2.ExceptionFormatter=jRequire.ExceptionFormatter(j$2);j$2.ExpectationFilterChain=jRequire.ExpectationFilterChain();j$2.Expector=jRequire.Expector(j$2);j$2.Expectation=jRequire.Expectation(j$2);j$2.buildExpectationResult=jRequire.buildExpectationResult(j$2);j$2.JsApiReporter=jRequire.JsApiReporter(j$2);j$2.makePrettyPrinter=jRequire.makePrettyPrinter(j$2);j$2.basicPrettyPrinter_=j$2.makePrettyPrinter();j$2.MatchersUtil=jRequire.MatchersUtil(j$2);j$2.ObjectContaining=jRequire.ObjectContaining(j$2);j$2.ArrayContaining=jRequire.ArrayContaining(j$2);j$2.ArrayWithExactContents=jRequire.ArrayWithExactContents(j$2);j$2.MapContaining=jRequire.MapContaining(j$2);j$2.SetContaining=jRequire.SetContaining(j$2);j$2.QueueRunner=jRequire.QueueRunner(j$2);j$2.NeverSkipPolicy=jRequire.NeverSkipPolicy(j$2);j$2.SkipAfterBeforeAllErrorPolicy=jRequire.SkipAfterBeforeAllErrorPolicy(j$2);j$2.CompleteOnFirstErrorSkipPolicy=jRequire.CompleteOnFirstErrorSkipPolicy(j$2);j$2.reporterEvents=jRequire.reporterEvents(j$2);j$2.ReportDispatcher=jRequire.ReportDispatcher(j$2);j$2.ParallelReportDispatcher=jRequire.ParallelReportDispatcher(j$2);j$2.CurrentRunableTracker=jRequire.CurrentRunableTracker();j$2.RunableResources=jRequire.RunableResources(j$2);j$2.Runner=jRequire.Runner(j$2);j$2.Spec=jRequire.Spec(j$2);j$2.Spy=jRequire.Spy(j$2);j$2.SpyFactory=jRequire.SpyFactory(j$2);j$2.SpyRegistry=jRequire.SpyRegistry(j$2);j$2.SpyStrategy=jRequire.SpyStrategy(j$2);j$2.StringMatching=jRequire.StringMatching(j$2);j$2.StringContaining=jRequire.StringContaining(j$2);j$2.UserContext=jRequire.UserContext(j$2);j$2.Suite=jRequire.Suite(j$2);j$2.SuiteBuilder=jRequire.SuiteBuilder(j$2);j$2.Timer=jRequire.Timer();j$2.TreeProcessor=jRequire.TreeProcessor(j$2);j$2.TreeRunner=jRequire.TreeRunner(j$2);j$2.version=jRequire.version();j$2.Order=jRequire.Order();j$2.DiffBuilder=jRequire.DiffBuilder(j$2);j$2.NullDiffBuilder=jRequire.NullDiffBuilder(j$2);j$2.ObjectPath=jRequire.ObjectPath(j$2);j$2.MismatchTree=jRequire.MismatchTree(j$2);var GlobalErrors=jRequire.GlobalErrors(j$2);Object.defineProperty(j$2,"GlobalErrors",{enumerable:true,configurable:false,get:function get(){return GlobalErrors},set:function set(){}});j$2.Truthy=jRequire.Truthy(j$2);j$2.Falsy=jRequire.Falsy(j$2);j$2.Empty=jRequire.Empty(j$2);j$2.NotEmpty=jRequire.NotEmpty(j$2);j$2.Is=jRequire.Is(j$2);j$2.matchers=jRequire.requireMatchers(jRequire,j$2);j$2.asyncMatchers=jRequire.requireAsyncMatchers(jRequire,j$2);return j$2};return getJasmineRequire}(exports);getJasmineRequireObj().requireMatchers=function(jRequire,j$2){var availableMatchers=["nothing","toBe","toBeCloseTo","toBeDefined","toBeInstanceOf","toBeFalse","toBeFalsy","toBeGreaterThan","toBeGreaterThanOrEqual","toBeLessThan","toBeLessThanOrEqual","toBeNaN","toBeNegativeInfinity","toBeNull","toBePositiveInfinity","toBeTrue","toBeTruthy","toBeUndefined","toBeNullish","toContain","toEqual","toHaveSize","toHaveBeenCalled","toHaveBeenCalledBefore","toHaveBeenCalledOnceWith","toHaveBeenCalledTimes","toHaveBeenCalledWith","toHaveClass","toHaveClasses","toHaveSpyInteractions","toHaveNoOtherSpyInteractions","toMatch","toThrow","toThrowError","toThrowMatching"],matchers={};for(var _i=0,_availableMatchers=availableMatchers;_i<_availableMatchers.length;_i++){var name=_availableMatchers[_i];matchers[name]=jRequire[name](j$2)}return matchers};getJasmineRequireObj().base=function(j$2,jasmineGlobal){j$2.MAX_PRETTY_PRINT_DEPTH=8;j$2.MAX_PRETTY_PRINT_ARRAY_LENGTH=50;j$2.MAX_PRETTY_PRINT_CHARS=1e3;var DEFAULT_TIMEOUT_INTERVAL=5e3;Object.defineProperty(j$2,"DEFAULT_TIMEOUT_INTERVAL",{get:function get(){return DEFAULT_TIMEOUT_INTERVAL},set:function set(newValue){j$2.util.validateTimeout(newValue,"jasmine.DEFAULT_TIMEOUT_INTERVAL");DEFAULT_TIMEOUT_INTERVAL=newValue}});j$2.getGlobal=function(){return jasmineGlobal};j$2.getEnv=function(options){var env=j$2.currentEnv_=j$2.currentEnv_||new j$2.Env(options);return env};j$2.isArray_=function(value){return j$2.isA_("Array",value)};j$2.isObject_=function(value){return value!==void 0&&value!==null&&j$2.isA_("Object",value)};j$2.isString_=function(value){return j$2.isA_("String",value)};j$2.isNumber_=function(value){return j$2.isA_("Number",value)};j$2.isFunction_=function(value){return j$2.isA_("Function",value)};j$2.isAsyncFunction_=function(value){return j$2.isA_("AsyncFunction",value)};j$2.isGeneratorFunction_=function(value){return j$2.isA_("GeneratorFunction",value)};j$2.isTypedArray_=function(value){return j$2.isA_("Float32Array",value)||j$2.isA_("Float64Array",value)||j$2.isA_("Int16Array",value)||j$2.isA_("Int32Array",value)||j$2.isA_("Int8Array",value)||j$2.isA_("Uint16Array",value)||j$2.isA_("Uint32Array",value)||j$2.isA_("Uint8Array",value)||j$2.isA_("Uint8ClampedArray",value)};j$2.isA_=function(typeName,value){return j$2.getType_(value)==="[object "+typeName+"]"};j$2.isError_=function(value){if(!value){return false}if(value instanceof Error){return true}return typeof value.stack==="string"&&typeof value.message==="string"};j$2.isAsymmetricEqualityTester_=function(obj){return obj?j$2.isA_("Function",obj.asymmetricMatch):false};j$2.getType_=function(value){return Object.prototype.toString.apply(value)};j$2.isDomNode=function(obj){return typeof jasmineGlobal.Node!=="undefined"?obj instanceof jasmineGlobal.Node:obj!==null&&_typeof(obj)==="object"&&typeof obj.nodeType==="number"&&typeof obj.nodeName==="string"};j$2.isMap=function(obj){return obj!==null&&typeof obj!=="undefined"&&obj.constructor===jasmineGlobal.Map};j$2.isSet=function(obj){return obj!==null&&typeof obj!=="undefined"&&obj.constructor===jasmineGlobal.Set};j$2.isWeakMap=function(obj){return obj!==null&&typeof obj!=="undefined"&&obj.constructor===jasmineGlobal.WeakMap};j$2.isURL=function(obj){return obj!==null&&typeof obj!=="undefined"&&obj.constructor===jasmineGlobal.URL};j$2.isIterable_=function(value){return value&&!!value[Symbol.iterator]};j$2.isDataView=function(obj){return obj!==null&&typeof obj!=="undefined"&&obj.constructor===jasmineGlobal.DataView};j$2.isPromise=function(obj){return!!obj&&obj.constructor===jasmineGlobal.Promise};j$2.isPromiseLike=function(obj){return!!obj&&j$2.isFunction_(obj.then)};j$2.fnNameFor=function(func){if(func.name){return func.name}var matches=func.toString().match(/^\s*function\s*(\w+)\s*\(/)||func.toString().match(/^\s*\[object\s*(\w+)Constructor\]/);return matches?matches[1]:"<anonymous>"};j$2.isPending_=function(promise){var sentinel={};return Promise.race([promise,Promise.resolve(sentinel)]).then(function(result){return result===sentinel},function(){return false})};j$2.allOf=function(){return _construct(j$2.AllOf,Array.prototype.slice.call(arguments))};j$2.any=function(clazz){return new j$2.Any(clazz)};j$2.anything=function(){return new j$2.Anything};j$2.truthy=function(){return new j$2.Truthy};j$2.falsy=function(){return new j$2.Falsy};j$2.empty=function(){return new j$2.Empty};j$2.is=function(sample){return new j$2.Is(sample)};j$2.notEmpty=function(){return new j$2.NotEmpty};j$2.objectContaining=function(sample){return new j$2.ObjectContaining(sample)};j$2.stringMatching=function(expected){return new j$2.StringMatching(expected)};j$2.stringContaining=function(expected){return new j$2.StringContaining(expected)};j$2.arrayContaining=function(sample){return new j$2.ArrayContaining(sample)};j$2.arrayWithExactContents=function(sample){return new j$2.ArrayWithExactContents(sample)};j$2.mapContaining=function(sample){return new j$2.MapContaining(sample)};j$2.setContaining=function(sample){return new j$2.SetContaining(sample)};j$2.isSpy=function(putativeSpy){if(!putativeSpy){return false}return putativeSpy.and instanceof j$2.SpyStrategy&&putativeSpy.calls instanceof j$2.CallTracker};j$2.debugLog=function(msg){j$2.getEnv().debugLog(msg)};j$2.spyOnGlobalErrorsAsync=/*#__PURE__*/function(){var _ref=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(fn){return _regenerator().w(function(_context){while(1)switch(_context.n){case 0:_context.n=1;return jasmine.getEnv().spyOnGlobalErrorsAsync(fn);case 1:return _context.a(2)}},_callee)}));return function(_x){return _ref.apply(this,arguments)}}()};getJasmineRequireObj().util=function(j$2){var util={};util.clone=function(obj){if(Object.prototype.toString.apply(obj)==="[object Array]"){return obj.slice()}var cloned={};for(var prop in obj){if(obj.hasOwnProperty(prop)){cloned[prop]=obj[prop]}}return cloned};util.cloneArgs=function(args){return Array.from(args).map(function(arg){var str=Object.prototype.toString.apply(arg),primitives=/^\[object (Boolean|String|RegExp|Number)/;if(!arg||str.match(primitives)){return arg}else if(str==="[object Date]"){return new Date(arg.valueOf())}else{return j$2.util.clone(arg)}})};util.getPropertyDescriptor=function(obj,methodName){var descriptor,proto=obj;do{descriptor=Object.getOwnPropertyDescriptor(proto,methodName);proto=Object.getPrototypeOf(proto)}while(!descriptor&&proto);return descriptor};util.has=function(obj,key){return Object.prototype.hasOwnProperty.call(obj,key)};function callerFile(){var trace=new j$2.StackTrace(new Error());return trace.frames[1].file}util.jasmineFile=/* @__PURE__ */function(){var result;return function(){if(!result){result=callerFile()}return result}}();util.validateTimeout=function(timeout,msgPrefix){var max=2147483647;if(timeout>max){throw new Error((msgPrefix||"Timeout value")+" cannot be greater than "+max)}};return util};getJasmineRequireObj().Spec=function(j$2){var _autoCleanClosures,_throwOnExpectationFailure,_timer,_metadata,_Spec_instances,status_fn;var _Spec=/*#__PURE__*/function(){"use strict";function _Spec(attrs){_classCallCheck(this,_Spec);__privateAdd(this,_Spec_instances);__privateAdd(this,_autoCleanClosures);__privateAdd(this,_throwOnExpectationFailure);__privateAdd(this,_timer);__privateAdd(this,_metadata);this.expectationFactory=attrs.expectationFactory;this.asyncExpectationFactory=attrs.asyncExpectationFactory;this.id=attrs.id;this.filename=attrs.filename;this.parentSuiteId=attrs.parentSuiteId;this.description=attrs.description||"";this.queueableFn=attrs.queueableFn;this.beforeAndAfterFns=attrs.beforeAndAfterFns||function(){return{befores:[],afters:[]}};this.userContext=attrs.userContext||function(){return{}};this.getPath=function(){return attrs.getPath?attrs.getPath(this):[]};__privateSet(this,_autoCleanClosures,attrs.autoCleanClosures===void 0?true:!!attrs.autoCleanClosures);this.onLateError=attrs.onLateError||function(){};__privateSet(this,_throwOnExpectationFailure,!!attrs.throwOnExpectationFailure);__privateSet(this,_timer,attrs.timer||new j$2.Timer);if(!this.queueableFn.fn){this.exclude()}this.reset()}return _createClass(_Spec,[{key:"addExpectationResult",value:function addExpectationResult(passed,data,isError){var expectationResult=j$2.buildExpectationResult(data);if(passed){this.result.passedExpectations.push(expectationResult)}else{if(this.reportedDone){this.onLateError(expectationResult)}else{this.result.failedExpectations.push(expectationResult);if(this.result.status){this.result.status="failed"}}if(__privateGet(this,_throwOnExpectationFailure)&&!isError){throw new j$2.errors.ExpectationFailed}}}},{key:"getSpecProperty",value:function getSpecProperty(key){this.result.properties=this.result.properties||{};return this.result.properties[key]}},{key:"setSpecProperty",value:function setSpecProperty(key,value){this.result.properties=this.result.properties||{};this.result.properties[key]=value}},{key:"executionStarted",value:function executionStarted(){__privateGet(this,_timer).start()}},{key:"executionFinished",value:function executionFinished(excluded,failSpecWithNoExp){if(__privateGet(this,_autoCleanClosures)){this.queueableFn.fn=null}this.result.status=__privateMethod(this,_Spec_instances,status_fn).call(this,excluded,failSpecWithNoExp);this.result.duration=__privateGet(this,_timer).elapsed();if(this.result.status!=="failed"){this.result.debugLogs=null}}},{key:"reset",value:function reset(){this.result={id:this.id,description:this.description,fullName:this.getFullName(),parentSuiteId:this.parentSuiteId,filename:this.filename,failedExpectations:[],passedExpectations:[],deprecationWarnings:[],pendingReason:this.excludeMessage||"",duration:null,properties:null,debugLogs:null};this.markedPending=this.markedExcluding;this.reportedDone=false}},{key:"handleException",value:function handleException(e){if(_Spec.isPendingSpecException(e)){this.pend(extractCustomPendingMessage(e));return}if(e instanceof j$2.errors.ExpectationFailed){return}this.addExpectationResult(false,{matcherName:"",passed:false,expected:"",actual:"",error:e},true)}},{key:"pend",value:function pend(message){this.markedPending=true;if(message){this.result.pendingReason=message}}// Like pend(), but pending state will survive reset().
|
|
120
|
-
// Useful for fit, xit, where pending state remains.
|
|
121
|
-
},{key:"exclude",value:function exclude(message){this.markedExcluding=true;if(this.message){this.excludeMessage=message}this.pend(message)}// TODO: ensure that all access to result goes through .getResult()
|
|
122
|
-
// so that the status is correct.
|
|
123
|
-
},{key:"getResult",value:function getResult(){this.result.status=__privateMethod(this,_Spec_instances,status_fn).call(this);return this.result}},{key:"getFullName",value:function getFullName(){return this.getPath().join(" ")}},{key:"addDeprecationWarning",value:function addDeprecationWarning(deprecation){if(typeof deprecation==="string"){deprecation={message:deprecation}}this.result.deprecationWarnings.push(j$2.buildExpectationResult(deprecation))}},{key:"debugLog",value:function debugLog(msg){if(!this.result.debugLogs){this.result.debugLogs=[]}this.result.debugLogs.push({message:msg,timestamp:__privateGet(this,_timer).elapsed()})}/**
|
|
124
|
-
* @interface Spec
|
|
125
|
-
* @see Configuration#specFilter
|
|
126
|
-
* @since 2.0.0
|
|
127
|
-
*/},{key:"metadata",get:function get(){if(!__privateGet(this,_metadata)){__privateSet(this,_metadata,{/**
|
|
128
|
-
* The unique ID of this spec.
|
|
129
|
-
* @name Spec#id
|
|
130
|
-
* @readonly
|
|
131
|
-
* @type {string}
|
|
132
|
-
* @since 2.0.0
|
|
133
|
-
*/id:this.id,/**
|
|
134
|
-
* The description passed to the {@link it} that created this spec.
|
|
135
|
-
* @name Spec#description
|
|
136
|
-
* @readonly
|
|
137
|
-
* @type {string}
|
|
138
|
-
* @since 2.0.0
|
|
139
|
-
*/description:this.description,/**
|
|
140
|
-
* The full description including all ancestors of this spec.
|
|
141
|
-
* @name Spec#getFullName
|
|
142
|
-
* @function
|
|
143
|
-
* @returns {string}
|
|
144
|
-
* @since 2.0.0
|
|
145
|
-
*/getFullName:this.getFullName.bind(this),/**
|
|
146
|
-
* The full path of the spec, as an array of names.
|
|
147
|
-
* @name Spec#getPath
|
|
148
|
-
* @function
|
|
149
|
-
* @returns {Array.<string>}
|
|
150
|
-
* @since 5.7.0
|
|
151
|
-
*/getPath:this.getPath.bind(this),/**
|
|
152
|
-
* The name of the file the spec was defined in.
|
|
153
|
-
* Note: The value may be incorrect if zone.js is installed or
|
|
154
|
-
* `it`/`fit`/`xit` have been replaced with versions that don't maintain the
|
|
155
|
-
* same call stack height as the originals. You can fix that by setting
|
|
156
|
-
* {@link Configuration#extraItStackFrames}.
|
|
157
|
-
* @name Spec#filename
|
|
158
|
-
* @readonly
|
|
159
|
-
* @type {string}
|
|
160
|
-
* @since 5.13.0
|
|
161
|
-
*/filename:this.filename})}return __privateGet(this,_metadata)}}])}();_autoCleanClosures=new WeakMap;_throwOnExpectationFailure=new WeakMap;_timer=new WeakMap;_metadata=new WeakMap;_Spec_instances=new WeakSet;status_fn=function status_fn(excluded,failSpecWithNoExpectations){if(excluded===true){return"excluded"}if(this.markedPending){return"pending"}if(this.result.failedExpectations.length>0||failSpecWithNoExpectations&&this.result.failedExpectations.length+this.result.passedExpectations.length===0){return"failed"}return"passed"};var Spec=_Spec;var extractCustomPendingMessage=function extractCustomPendingMessage(e){var fullMessage=e.toString(),boilerplateStart=fullMessage.indexOf(Spec.pendingSpecExceptionMessage),boilerplateEnd=boilerplateStart+Spec.pendingSpecExceptionMessage.length;return fullMessage.slice(boilerplateEnd)};Spec.pendingSpecExceptionMessage="=> marked Pending";Spec.isPendingSpecException=function(e){return!!(e&&e.toString&&e.toString().indexOf(Spec.pendingSpecExceptionMessage)!==-1)};return Spec};getJasmineRequireObj().Order=function(){function Order(options){this.random="random"in options?options.random:true;var seed=this.seed=options.seed||generateSeed();this.sort=this.random?randomOrder:naturalOrder;function naturalOrder(items){return items}function randomOrder(items){var copy=items.slice();copy.sort(function(a,b){return jenkinsHash(seed+a.id)-jenkinsHash(seed+b.id)});return copy}function generateSeed(){return String(Math.random()).slice(-5)}function jenkinsHash(key){var hash,i;for(hash=i=0;i<key.length;++i){hash+=key.charCodeAt(i);hash+=hash<<10;hash^=hash>>6}hash+=hash<<3;hash^=hash>>11;hash+=hash<<15;return hash}}return Order};getJasmineRequireObj().Env=function(j$2){var DEFAULT_IT_DESCRIBE_STACK_DEPTH=3;function Env(envOptions){var _this=this;envOptions=envOptions||{};var self2=this;var GlobalErrors=envOptions.GlobalErrors||j$2.GlobalErrors;var global2=envOptions.global||j$2.getGlobal();var realSetTimeout=global2.setTimeout;var realClearTimeout=global2.clearTimeout;var clearStack=j$2.getClearStack(global2);this.clock=new j$2.Clock(global2,function(){return new j$2.DelayedFunctionScheduler},new j$2.MockDate(global2));var globalErrors=new GlobalErrors(void 0,// Configuration is late-bound because GlobalErrors needs to be constructed
|
|
162
|
-
// before it's set to detect load-time errors in browsers
|
|
163
|
-
function(){return _this.configuration()});var _ref2=/* @__PURE__ */function(){var installed=false;return{installGlobalErrors:function installGlobalErrors(){if(!installed){globalErrors.install();installed=true}},uninstallGlobalErrors:function uninstallGlobalErrors(){if(installed){globalErrors.uninstall();installed=false}}}}(),installGlobalErrors=_ref2.installGlobalErrors,uninstallGlobalErrors=_ref2.uninstallGlobalErrors;var runableResources=new j$2.RunableResources({getCurrentRunableId:function getCurrentRunableId(){var r=runner.currentRunable();return r?r.id:null},globalErrors:globalErrors});var reportDispatcher;var topSuite;var runner;var parallelLoadingState=null;var config=new j$2.Configuration;if(!envOptions.suppressLoadErrors){installGlobalErrors();globalErrors.pushListener(function loadtimeErrorHandler(error,event){topSuite.result.failedExpectations.push({passed:false,globalErrorType:"load",message:error?error.message:event.message,stack:error&&error.stack,filename:event&&event.filename,lineno:event&&event.lineno})})}this.configure=function(changes){if(parallelLoadingState){throw new Error("Jasmine cannot be configured via Env in parallel mode")}config.update(changes);deprecator.verboseDeprecations(config.verboseDeprecations)};this.configuration=function(){return config.copy()};this.setDefaultSpyStrategy=function(defaultStrategyFn){runableResources.setDefaultSpyStrategy(defaultStrategyFn)};this.addSpyStrategy=function(name,fn){runableResources.customSpyStrategies()[name]=fn};this.addCustomEqualityTester=function(tester){runableResources.customEqualityTesters().push(tester)};this.addMatchers=function(matchersToAdd){runableResources.addCustomMatchers(matchersToAdd)};this.addAsyncMatchers=function(matchersToAdd){runableResources.addCustomAsyncMatchers(matchersToAdd)};this.addCustomObjectFormatter=function(formatter){runableResources.customObjectFormatters().push(formatter)};j$2.Expectation.addCoreMatchers(j$2.matchers);j$2.Expectation.addAsyncCoreMatchers(j$2.asyncMatchers);var expectationFactory=function expectationFactory(actual,spec){return j$2.Expectation.factory({matchersUtil:runableResources.makeMatchersUtil(),customMatchers:runableResources.customMatchers(),actual:actual,addExpectationResult:addExpectationResult});function addExpectationResult(passed,result){return spec.addExpectationResult(passed,result)}};var handleThrowUnlessFailure=function handleThrowUnlessFailure(passed,result){if(!passed){var error=new Error(result.message);error.passed=result.passed;error.message=result.message;error.expected=result.expected;error.actual=result.actual;error.matcherName=result.matcherName;throw error}};var throwUnlessFactory=function throwUnlessFactory(actual,spec){return j$2.Expectation.factory({matchersUtil:runableResources.makeMatchersUtil(),customMatchers:runableResources.customMatchers(),actual:actual,addExpectationResult:handleThrowUnlessFailure})};var throwUnlessAsyncFactory=function throwUnlessAsyncFactory(actual,spec){return j$2.Expectation.asyncFactory({matchersUtil:runableResources.makeMatchersUtil(),customAsyncMatchers:runableResources.customAsyncMatchers(),actual:actual,addExpectationResult:handleThrowUnlessFailure})};function recordLateError(error){var isExpectationResult=error.matcherName!==void 0&&error.passed!==void 0;var result=isExpectationResult?error:j$2.buildExpectationResult({error:error,passed:false,matcherName:"",expected:"",actual:""});routeLateFailure(result)}function recordLateExpectation(runable,runableType,result){var delayedExpectationResult={};Object.keys(result).forEach(function(k){delayedExpectationResult[k]=result[k]});delayedExpectationResult.passed=false;delayedExpectationResult.globalErrorType="lateExpectation";delayedExpectationResult.message=runableType+" \""+runable.getFullName()+"\" ran a \""+result.matcherName+"\" expectation after it finished.\n";if(result.message){delayedExpectationResult.message+="Message: \""+result.message+"\"\n"}delayedExpectationResult.message+="1. Did you forget to return or await the result of expectAsync?\n2. Was done() invoked before an async operation completed?\n3. Did an expectation follow a call to done()?";topSuite.result.failedExpectations.push(delayedExpectationResult)}function routeLateFailure(expectationResult){for(var r=runner.currentRunable();r;r=r.parentSuite){if(!r.reportedDone){if(r===topSuite){expectationResult.globalErrorType="lateError"}r.result.failedExpectations.push(expectationResult);return}}console.error("Jasmine received a result after the suite finished:");console.error(expectationResult)}var asyncExpectationFactory=function asyncExpectationFactory(actual,spec,runableType){return j$2.Expectation.asyncFactory({matchersUtil:runableResources.makeMatchersUtil(),customAsyncMatchers:runableResources.customAsyncMatchers(),actual:actual,addExpectationResult:addExpectationResult});function addExpectationResult(passed,result){if(runner.currentRunable()!==spec){recordLateExpectation(spec,runableType,result)}return spec.addExpectationResult(passed,result)}};this.deprecated=function(deprecation,options){var runable=runner.currentRunable()||topSuite;deprecator.addDeprecationWarning(runable,deprecation,options)};function runQueue(options){options.clearStack=options.clearStack||clearStack;options.timeout={setTimeout:realSetTimeout,clearTimeout:realClearTimeout};options.fail=self2.fail;options.globalErrors=globalErrors;options.onException=options.onException||function(e){(runner.currentRunable()||topSuite).handleException(e)};new j$2.QueueRunner(options).execute()}var suiteBuilder=new j$2.SuiteBuilder({env:this,expectationFactory:expectationFactory,asyncExpectationFactory:asyncExpectationFactory,onLateError:recordLateError,runQueue:runQueue});topSuite=suiteBuilder.topSuite;var deprecator=new j$2.Deprecator(topSuite);this.topSuite=function(){ensureNonParallel("topSuite");return topSuite.metadata};reportDispatcher=new j$2.ReportDispatcher(j$2.reporterEvents,function(options){options.SkipPolicy=j$2.NeverSkipPolicy;return runQueue(options)},recordLateError);runner=new j$2.Runner({topSuite:topSuite,totalSpecsDefined:function totalSpecsDefined(){return suiteBuilder.totalSpecsDefined},focusedRunables:function focusedRunables(){return suiteBuilder.focusedRunables},runableResources:runableResources,reportDispatcher:reportDispatcher,runQueue:runQueue,TreeProcessor:j$2.TreeProcessor,globalErrors:globalErrors,getConfig:function getConfig(){return config}});this.setParallelLoadingState=function(state){parallelLoadingState=state};this.parallelReset=function(){suiteBuilder.parallelReset();runner.parallelReset()};this.execute=/*#__PURE__*/function(){var _ref3=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(runablesToRun){var result;return _regenerator().w(function(_context2){while(1)switch(_context2.n){case 0:installGlobalErrors();if(parallelLoadingState){validateConfigForParallel()}_context2.n=1;return runner.execute(runablesToRun);case 1:result=_context2.v;this.cleanup_();return _context2.a(2,result)}},_callee2,this)}));return function(_x2){return _ref3.apply(this,arguments)}}();this.addReporter=function(reporterToAdd){if(parallelLoadingState){throw new Error("Reporters cannot be added via Env in parallel mode")}reportDispatcher.addReporter(reporterToAdd)};this.provideFallbackReporter=function(reporterToAdd){reportDispatcher.provideFallbackReporter(reporterToAdd)};this.clearReporters=function(){if(parallelLoadingState){throw new Error("Reporters cannot be removed via Env in parallel mode")}reportDispatcher.clearReporters()};this.allowRespy=function(allow){runableResources.spyRegistry.allowRespy(allow)};this.spyOn=function(){return runableResources.spyRegistry.spyOn.apply(runableResources.spyRegistry,arguments)};this.spyOnProperty=function(){return runableResources.spyRegistry.spyOnProperty.apply(runableResources.spyRegistry,arguments)};this.spyOnAllFunctions=function(){return runableResources.spyRegistry.spyOnAllFunctions.apply(runableResources.spyRegistry,arguments)};this.createSpy=function(name,originalFn){return runableResources.spyFactory.createSpy(name,originalFn)};this.createSpyObj=function(baseName,methodNames,propertyNames){return runableResources.spyFactory.createSpyObj(baseName,methodNames,propertyNames)};this.spyOnGlobalErrorsAsync=/*#__PURE__*/function(){var _ref4=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(fn){var spy,associatedRunable,cleanedUp,maybePromise;return _regenerator().w(function(_context3){while(1)switch(_context3.p=_context3.n){case 0:spy=this.createSpy("global error handler");associatedRunable=runner.currentRunable();cleanedUp=false;globalErrors.setOverrideListener(spy,function(){if(!cleanedUp){var message="Global error spy was not uninstalled. (Did you forget to await the return value of spyOnGlobalErrorsAsync?)";associatedRunable.addExpectationResult(false,{matcherName:"",passed:false,expected:"",actual:"",message:message,error:null})}cleanedUp=true});_context3.p=1;maybePromise=fn(spy);if(j$2.isPromiseLike(maybePromise)){_context3.n=2;break}throw new Error("The callback to spyOnGlobalErrorsAsync must be an async or promise-returning function");case 2:_context3.n=3;return maybePromise;case 3:_context3.p=3;if(!cleanedUp){cleanedUp=true;globalErrors.removeOverrideListener()}return _context3.f(3);case 4:return _context3.a(2)}},_callee3,this,[[1,,3,4]])}));return function(_x3){return _ref4.apply(this,arguments)}}();function ensureIsNotNested(method){var runable=runner.currentRunable();if(runable!==null&&runable!==void 0){throw new Error("'"+method+"' should only be used in 'describe' function")}}function ensureNonParallel(method){if(parallelLoadingState){throw new Error("'".concat(method,"' is not available in parallel mode"))}}function ensureNonParallelOrInDescribe(msg){if(parallelLoadingState&&!suiteBuilder.inDescribe()){throw new Error(msg)}}function ensureNonParallelOrInHelperOrInDescribe(method){if(parallelLoadingState==="specs"&&!suiteBuilder.inDescribe()){throw new Error("In parallel mode, "+method+" must be in a describe block or in a helper file")}}function validateConfigForParallel(){if(!config.random){throw new Error("Randomization cannot be disabled in parallel mode")}if(config.seed!==null&&config.seed!==void 0){throw new Error("Random seed cannot be set in parallel mode")}}this.describe=function(description,definitionFn){ensureIsNotNested("describe");var filename=indirectCallerFilename(describeStackDepth());return suiteBuilder.describe(description,definitionFn,filename).metadata};this.xdescribe=function(description,definitionFn){ensureIsNotNested("xdescribe");var filename=indirectCallerFilename(describeStackDepth());return suiteBuilder.xdescribe(description,definitionFn,filename).metadata};this.fdescribe=function(description,definitionFn){ensureIsNotNested("fdescribe");ensureNonParallel("fdescribe");var filename=indirectCallerFilename(describeStackDepth());return suiteBuilder.fdescribe(description,definitionFn,filename).metadata};this.it=function(description,fn,timeout){ensureIsNotNested("it");var filename=indirectCallerFilename(itStackDepth());return suiteBuilder.it(description,fn,timeout,filename).metadata};this.xit=function(description,fn,timeout){ensureIsNotNested("xit");var filename=indirectCallerFilename(itStackDepth());return suiteBuilder.xit(description,fn,timeout,filename).metadata};this.fit=function(description,fn,timeout){ensureIsNotNested("fit");ensureNonParallel("fit");var filename=indirectCallerFilename(itStackDepth());return suiteBuilder.fit(description,fn,timeout,filename).metadata};function itStackDepth(){return DEFAULT_IT_DESCRIBE_STACK_DEPTH+config.extraItStackFrames}function describeStackDepth(){return DEFAULT_IT_DESCRIBE_STACK_DEPTH+config.extraDescribeStackFrames}this.getSpecProperty=function(key){if(!runner.currentRunable()||runner.currentRunable()==runner.currentSuite()){throw new Error("'getSpecProperty' was used when there was no current spec")}return runner.currentRunable().getSpecProperty(key)};this.setSpecProperty=function(key,value){if(!runner.currentRunable()||runner.currentRunable()==runner.currentSuite()){throw new Error("'setSpecProperty' was used when there was no current spec")}runner.currentRunable().setSpecProperty(key,value)};this.setSuiteProperty=function(key,value){if(!runner.currentSuite()){throw new Error("'setSuiteProperty' was used when there was no current suite")}runner.currentSuite().setSuiteProperty(key,value)};this.debugLog=function(msg){var maybeSpec=runner.currentRunable();if(!maybeSpec||!maybeSpec.debugLog){throw new Error("'debugLog' was called when there was no current spec")}maybeSpec.debugLog(msg)};this.expect=function(actual){var runable=runner.currentRunable();if(!runable){throw new Error("'expect' was used when there was no current spec, this could be because an asynchronous test timed out")}return runable.expectationFactory(actual,runable)};this.expectAsync=function(actual){var runable=runner.currentRunable();if(!runable){throw new Error("'expectAsync' was used when there was no current spec, this could be because an asynchronous test timed out")}return runable.asyncExpectationFactory(actual,runable)};this.throwUnless=function(actual){var runable=runner.currentRunable();return throwUnlessFactory(actual,runable)};this.throwUnlessAsync=function(actual){var runable=runner.currentRunable();return throwUnlessAsyncFactory(actual,runable)};this.beforeEach=function(beforeEachFunction,timeout){ensureIsNotNested("beforeEach");ensureNonParallelOrInHelperOrInDescribe("beforeEach");suiteBuilder.beforeEach(beforeEachFunction,timeout)};this.beforeAll=function(beforeAllFunction,timeout){ensureIsNotNested("beforeAll");ensureNonParallelOrInDescribe("In parallel mode, 'beforeAll' must be in a describe block. Use the globalSetup config property for exactly-once setup in parallel mode.");suiteBuilder.beforeAll(beforeAllFunction,timeout)};this.afterEach=function(afterEachFunction,timeout){ensureIsNotNested("afterEach");ensureNonParallelOrInHelperOrInDescribe("afterEach");suiteBuilder.afterEach(afterEachFunction,timeout)};this.afterAll=function(afterAllFunction,timeout){ensureIsNotNested("afterAll");ensureNonParallelOrInDescribe("In parallel mode, 'afterAll' must be in a describe block. Use the globalTeardown config property for exactly-once teardown in parallel mode.");suiteBuilder.afterAll(afterAllFunction,timeout)};this.pending=function(message){var fullMessage=j$2.Spec.pendingSpecExceptionMessage;if(message){fullMessage+=message}throw fullMessage};this.fail=function(error){if(!runner.currentRunable()){throw new Error("'fail' was used when there was no current spec, this could be because an asynchronous test timed out")}var message="Failed";if(error){message+=": ";if(error.message){message+=error.message}else if(j$2.isString_(error)){message+=error}else{var pp=runableResources.makePrettyPrinter();message+=pp(error)}}runner.currentRunable().addExpectationResult(false,{matcherName:"",passed:false,expected:"",actual:"",message:message,error:error&&error.message?error:null});if(config.stopSpecOnExpectationFailure){throw new Error(message)}};this.cleanup_=function(){uninstallGlobalErrors()}}function indirectCallerFilename(depth){var frames=new j$2.StackTrace(new Error()).frames;return frames[depth]&&frames[depth].file}return Env};getJasmineRequireObj().JsApiReporter=function(j$2){function JsApiReporter(options){var timer=options.timer||new j$2.Timer;var status="loaded";this.started=false;this.finished=false;this.runDetails={};this.jasmineStarted=function(){this.started=true;status="started";timer.start()};var executionTime;this.jasmineDone=function(runDetails){this.finished=true;this.runDetails=runDetails;executionTime=timer.elapsed();status="done"};this.status=function(){return status};var suites=[],suites_hash={};this.suiteStarted=function(result){suites_hash[result.id]=result};this.suiteDone=function(result){storeSuite(result)};this.suiteResults=function(index,length){return suites.slice(index,index+length)};function storeSuite(result){suites.push(result);suites_hash[result.id]=result}this.suites=function(){return suites_hash};var specs=[];this.specDone=function(result){specs.push(result)};this.specResults=function(index,length){return specs.slice(index,index+length)};this.specs=function(){return specs};this.executionTime=function(){return executionTime}}return JsApiReporter};getJasmineRequireObj().AllOf=function(j$2){function AllOf(){var expectedValues=Array.from(arguments);if(expectedValues.length===0){throw new TypeError("jasmine.allOf() expects at least one argument to be passed.")}this.expectedValues=expectedValues}AllOf.prototype.asymmetricMatch=function(other,matchersUtil){var _iterator3=_createForOfIteratorHelper(this.expectedValues),_step3;try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){var expectedValue=_step3.value;if(!matchersUtil.equals(other,expectedValue)){return false}}}catch(err){_iterator3.e(err)}finally{_iterator3.f()}return true};AllOf.prototype.jasmineToString=function(pp){return"<jasmine.allOf("+pp(this.expectedValues)+")>"};return AllOf};getJasmineRequireObj().Any=function(j$2){function Any(expectedObject){if(typeof expectedObject==="undefined"){throw new TypeError("jasmine.any() expects to be passed a constructor function. Please pass one or use jasmine.anything() to match any object.")}this.expectedObject=expectedObject}Any.prototype.asymmetricMatch=function(other){if(this.expectedObject==String){return typeof other=="string"||other instanceof String}if(this.expectedObject==Number){return typeof other=="number"||other instanceof Number}if(this.expectedObject==Function){return typeof other=="function"||other instanceof Function}if(this.expectedObject==Object){return other!==null&&_typeof(other)=="object"}if(this.expectedObject==Boolean){return typeof other=="boolean"}if(typeof Symbol!="undefined"&&this.expectedObject==Symbol){return _typeof(other)=="symbol"}return other instanceof this.expectedObject};Any.prototype.jasmineToString=function(){return"<jasmine.any("+j$2.fnNameFor(this.expectedObject)+")>"};return Any};getJasmineRequireObj().Anything=function(j$2){function Anything(){}Anything.prototype.asymmetricMatch=function(other){return other!==void 0&&other!==null};Anything.prototype.jasmineToString=function(){return"<jasmine.anything>"};return Anything};getJasmineRequireObj().ArrayContaining=function(j$2){function ArrayContaining(sample){this.sample=sample}ArrayContaining.prototype.asymmetricMatch=function(other,matchersUtil){if(!j$2.isArray_(this.sample)){throw new Error("You must provide an array to arrayContaining, not "+j$2.basicPrettyPrinter_(this.sample)+".")}if(!j$2.isArray_(other)&&this.sample.length>0){return false}var _iterator4=_createForOfIteratorHelper(this.sample),_step4;try{for(_iterator4.s();!(_step4=_iterator4.n()).done;){var item=_step4.value;if(!matchersUtil.contains(other,item)){return false}}}catch(err){_iterator4.e(err)}finally{_iterator4.f()}return true};ArrayContaining.prototype.jasmineToString=function(pp){return"<jasmine.arrayContaining("+pp(this.sample)+")>"};return ArrayContaining};getJasmineRequireObj().ArrayWithExactContents=function(j$2){function ArrayWithExactContents(sample){this.sample=sample}ArrayWithExactContents.prototype.asymmetricMatch=function(other,matchersUtil){if(!j$2.isArray_(this.sample)){throw new Error("You must provide an array to arrayWithExactContents, not "+j$2.basicPrettyPrinter_(this.sample)+".")}if(this.sample.length!==other.length){return false}var _iterator5=_createForOfIteratorHelper(this.sample),_step5;try{for(_iterator5.s();!(_step5=_iterator5.n()).done;){var item=_step5.value;if(!matchersUtil.contains(other,item)){return false}}}catch(err){_iterator5.e(err)}finally{_iterator5.f()}return true};ArrayWithExactContents.prototype.jasmineToString=function(pp){return"<jasmine.arrayWithExactContents("+pp(this.sample)+")>"};return ArrayWithExactContents};getJasmineRequireObj().Empty=function(j$2){function Empty(){}Empty.prototype.asymmetricMatch=function(other){if(j$2.isString_(other)||j$2.isArray_(other)||j$2.isTypedArray_(other)){return other.length===0}if(j$2.isMap(other)||j$2.isSet(other)){return other.size===0}if(j$2.isObject_(other)){return Object.keys(other).length===0}return false};Empty.prototype.jasmineToString=function(){return"<jasmine.empty>"};return Empty};getJasmineRequireObj().Falsy=function(j$2){function Falsy(){}Falsy.prototype.asymmetricMatch=function(other){return!other};Falsy.prototype.jasmineToString=function(){return"<jasmine.falsy>"};return Falsy};getJasmineRequireObj().Is=function(j$2){var Is=/*#__PURE__*/function(){"use strict";function Is(expected){_classCallCheck(this,Is);this.expected_=expected}return _createClass(Is,[{key:"asymmetricMatch",value:function asymmetricMatch(actual){return actual===this.expected_}},{key:"jasmineToString",value:function jasmineToString(pp){return"<jasmine.is(".concat(pp(this.expected_),")>")}}])}();return Is};getJasmineRequireObj().MapContaining=function(j$2){function MapContaining(sample){if(!j$2.isMap(sample)){throw new Error("You must provide a map to `mapContaining`, not "+j$2.basicPrettyPrinter_(sample))}this.sample=sample}MapContaining.prototype.asymmetricMatch=function(other,matchersUtil){if(!j$2.isMap(other)){return false}var _iterator6=_createForOfIteratorHelper(this.sample),_step6;try{for(_iterator6.s();!(_step6=_iterator6.n()).done;){var _step6$value=_slicedToArray(_step6.value,2),key=_step6$value[0],value=_step6$value[1];var hasMatch=false;var _iterator7=_createForOfIteratorHelper(other),_step7;try{for(_iterator7.s();!(_step7=_iterator7.n()).done;){var _step7$value=_slicedToArray(_step7.value,2),oKey=_step7$value[0],oValue=_step7$value[1];if(matchersUtil.equals(oKey,key)&&matchersUtil.equals(oValue,value)){hasMatch=true;break}}}catch(err){_iterator7.e(err)}finally{_iterator7.f()}if(!hasMatch){return false}}}catch(err){_iterator6.e(err)}finally{_iterator6.f()}return true};MapContaining.prototype.jasmineToString=function(pp){return"<jasmine.mapContaining("+pp(this.sample)+")>"};return MapContaining};getJasmineRequireObj().NotEmpty=function(j$2){function NotEmpty(){}NotEmpty.prototype.asymmetricMatch=function(other){if(j$2.isString_(other)||j$2.isArray_(other)||j$2.isTypedArray_(other)){return other.length!==0}if(j$2.isMap(other)||j$2.isSet(other)){return other.size!==0}if(j$2.isObject_(other)){return Object.keys(other).length!==0}return false};NotEmpty.prototype.jasmineToString=function(){return"<jasmine.notEmpty>"};return NotEmpty};getJasmineRequireObj().ObjectContaining=function(j$2){function ObjectContaining(sample){this.sample=sample}function hasProperty(obj,property){if(!obj||_typeof(obj)!=="object"){return false}if(Object.prototype.hasOwnProperty.call(obj,property)){return true}return hasProperty(Object.getPrototypeOf(obj),property)}ObjectContaining.prototype.asymmetricMatch=function(other,matchersUtil){if(_typeof(this.sample)!=="object"){throw new Error("You must provide an object to objectContaining, not '"+this.sample+"'.")}if(_typeof(other)!=="object"){return false}for(var property in this.sample){if(!hasProperty(other,property)||!matchersUtil.equals(this.sample[property],other[property])){return false}}return true};ObjectContaining.prototype.valuesForDiff_=function(other,pp){if(!j$2.isObject_(other)){return{self:this.jasmineToString(pp),other:other}}var filteredOther={};Object.keys(this.sample).forEach(function(k){filteredOther[k]=other[k]});return{self:this.sample,other:filteredOther}};ObjectContaining.prototype.jasmineToString=function(pp){return"<jasmine.objectContaining("+pp(this.sample)+")>"};return ObjectContaining};getJasmineRequireObj().SetContaining=function(j$2){function SetContaining(sample){if(!j$2.isSet(sample)){throw new Error("You must provide a set to `setContaining`, not "+j$2.basicPrettyPrinter_(sample))}this.sample=sample}SetContaining.prototype.asymmetricMatch=function(other,matchersUtil){if(!j$2.isSet(other)){return false}var _iterator8=_createForOfIteratorHelper(this.sample),_step8;try{for(_iterator8.s();!(_step8=_iterator8.n()).done;){var item=_step8.value;var hasMatch=false;var _iterator9=_createForOfIteratorHelper(other),_step9;try{for(_iterator9.s();!(_step9=_iterator9.n()).done;){var oItem=_step9.value;if(matchersUtil.equals(oItem,item)){hasMatch=true;break}}}catch(err){_iterator9.e(err)}finally{_iterator9.f()}if(!hasMatch){return false}}}catch(err){_iterator8.e(err)}finally{_iterator8.f()}return true};SetContaining.prototype.jasmineToString=function(pp){return"<jasmine.setContaining("+pp(this.sample)+")>"};return SetContaining};getJasmineRequireObj().StringContaining=function(j$2){function StringContaining(expected){if(!j$2.isString_(expected)){throw new Error("Expected is not a String")}this.expected=expected}StringContaining.prototype.asymmetricMatch=function(other){if(!j$2.isString_(other)){return false}return other.indexOf(this.expected)!==-1};StringContaining.prototype.jasmineToString=function(){return"<jasmine.stringContaining(\""+this.expected+"\")>"};return StringContaining};getJasmineRequireObj().StringMatching=function(j$2){function StringMatching(expected){if(!j$2.isString_(expected)&&!j$2.isA_("RegExp",expected)){throw new Error("Expected is not a String or a RegExp")}this.regexp=new RegExp(expected)}StringMatching.prototype.asymmetricMatch=function(other){return this.regexp.test(other)};StringMatching.prototype.jasmineToString=function(){return"<jasmine.stringMatching("+this.regexp+")>"};return StringMatching};getJasmineRequireObj().Truthy=function(j$2){function Truthy(){}Truthy.prototype.asymmetricMatch=function(other){return!!other};Truthy.prototype.jasmineToString=function(){return"<jasmine.truthy>"};return Truthy};getJasmineRequireObj().buildExpectationResult=function(j$2){function buildExpectationResult(options){var exceptionFormatter=new j$2.ExceptionFormatter;var result={matcherName:options.matcherName,message:message(),stack:options.omitStackTrace?"":stack(),passed:options.passed};if(!result.passed){result.expected=options.expected;result.actual=options.actual;if(options.error&&!j$2.isString_(options.error)){if("code"in options.error){result.code=options.error.code}if(options.error.code==="ERR_ASSERTION"&&options.expected===""&&options.actual===""){result.expected=options.error.expected;result.actual=options.error.actual;result.matcherName="assert "+options.error.operator}}}return result;function message(){if(options.passed){return"Passed."}else if(options.message){return options.message}else if(options.error){return exceptionFormatter.message(options.error)}return""}function stack(){if(options.passed){return""}var error=options.error;if(!error){if(options.errorForStack){error=options.errorForStack}else if(options.stack){error=options}else{error=new Error(message())}}return exceptionFormatter.stack(error,{omitMessage:true})}}return buildExpectationResult};getJasmineRequireObj().CallTracker=function(j$2){function CallTracker(){var calls=[];var opts={};this.track=function(context){if(opts.cloneArgs){context.args=opts.argsCloner(context.args)}calls.push(context)};this.any=function(){return!!calls.length};this.count=function(){return calls.length};this.argsFor=function(index){var call=calls[index];return call?call.args:[]};this.thisFor=function(index){var call=calls[index];return call?call.object:void 0};this.all=function(){return calls};this.allArgs=function(){return calls.map(function(c){return c.args})};this.first=function(){return calls[0]};this.mostRecent=function(){return calls[calls.length-1]};this.reset=function(){calls=[]};this.saveArgumentsByValue=function(){var argsCloner=arguments.length>0&&arguments[0]!==undefined?arguments[0]:j$2.util.cloneArgs;opts.cloneArgs=true;opts.argsCloner=argsCloner};this.unverifiedCount=function(){return calls.reduce(function(count,call){return count+(call.verified?0:1)},0)}}return CallTracker};getJasmineRequireObj().clearStack=function(j$2){var maxInlineCallCount=10;function browserQueueMicrotaskImpl(global2){var unclampedSetTimeout=getUnclampedSetTimeout(global2);var queueMicrotask=global2.queueMicrotask;var currentCallCount=0;return function clearStack(fn){currentCallCount++;if(currentCallCount<maxInlineCallCount){queueMicrotask(fn)}else{currentCallCount=0;unclampedSetTimeout(fn)}}}function nodeQueueMicrotaskImpl(global2){var queueMicrotask=global2.queueMicrotask;return function(fn){queueMicrotask(fn)}}function messageChannelImpl(global2){var setTimeout2=global2.setTimeout;var postMessage=getPostMessage(global2);var currentCallCount=0;return function clearStack(fn){currentCallCount++;if(currentCallCount<maxInlineCallCount){postMessage(fn)}else{currentCallCount=0;setTimeout2(fn)}}}function getUnclampedSetTimeout(global2){var setTimeout2=global2.setTimeout;if(!global2.MessageChannel){return setTimeout2}var postMessage=getPostMessage(global2);return function unclampedSetTimeout(fn){postMessage(function(){setTimeout2(fn)})}}function getPostMessage(global2){var MessageChannel2=global2.MessageChannel,setTimeout2=global2.setTimeout;var channel=new MessageChannel2;var head={};var tail=head;var taskRunning=false;channel.port1.onmessage=function(){head=head.next;var task=head.task;delete head.task;if(taskRunning){setTimeout2(task,0)}else{try{taskRunning=true;task()}finally{taskRunning=false}}};return function postMessage(fn){tail=tail.next={task:fn};channel.port2.postMessage(0)}}function getClearStack(global2){var NODE_JS=global2.process&&global2.process.versions&&typeof global2.process.versions.node==="string";var SAFARI_OR_WIN_WEBKIT=global2.navigator&&/(^((?!chrome|android).)*safari)|(Win64; x64\) AppleWebKit\/[0-9.]+ \(KHTML, like Gecko\)$)/i.test(global2.navigator.userAgent);if(NODE_JS){return nodeQueueMicrotaskImpl(global2)}else if(SAFARI_OR_WIN_WEBKIT||!global2.MessageChannel){return browserQueueMicrotaskImpl(global2)}else{return messageChannelImpl(global2)}}return getClearStack};getJasmineRequireObj().Clock=function(){var NODE_JS=typeof process!=="undefined"&&process.versions&&typeof process.versions.node==="string";function Clock(global2,delayedFunctionSchedulerFactory,mockDate){var realTimingFunctions={setTimeout:global2.setTimeout,clearTimeout:global2.clearTimeout,setInterval:global2.setInterval,clearInterval:global2.clearInterval};var fakeTimingFunctions={setTimeout:setTimeout2,clearTimeout:clearTimeout2,setInterval:setInterval,clearInterval:clearInterval};var installed=false;var delayedFunctionScheduler;var timer;var tickMode={mode:"manual",counter:0};this.FakeTimeout=FakeTimeout;this.install=function(){if(!originalTimingFunctionsIntact()){throw new Error("Jasmine Clock was unable to install over custom global timer functions. Is the clock already installed?")}replace(global2,fakeTimingFunctions);timer=fakeTimingFunctions;delayedFunctionScheduler=delayedFunctionSchedulerFactory();installed=true;return this};this.uninstall=function(){if(tickMode.mode==="auto"){tickMode={mode:"manual",counter:tickMode.counter+1}}delayedFunctionScheduler=null;mockDate.uninstall();replace(global2,realTimingFunctions);timer=realTimingFunctions;installed=false};this.withMock=function(closure){this.install();try{closure()}finally{this.uninstall()}};this.mockDate=function(initialDate){mockDate.install(initialDate)};this.setTimeout=function(fn,delay,params2){return Function.prototype.apply.apply(timer.setTimeout,[global2,arguments])};this.setInterval=function(fn,delay,params2){return Function.prototype.apply.apply(timer.setInterval,[global2,arguments])};this.clearTimeout=function(id){return Function.prototype.call.apply(timer.clearTimeout,[global2,id])};this.clearInterval=function(id){return Function.prototype.call.apply(timer.clearInterval,[global2,id])};this.tick=function(millis2){if(installed){delayedFunctionScheduler.tick(millis2,function(millis3){mockDate.tick(millis3)})}else{throw new Error("Mock clock is not installed, use jasmine.clock().install()")}};this.autoTick=function(){if(tickMode.mode==="auto"){return}tickMode={mode:"auto",counter:tickMode.counter+1};advanceUntilModeChanges()};return this;function advanceUntilModeChanges(){return _advanceUntilModeChanges.apply(this,arguments)}function _advanceUntilModeChanges(){_advanceUntilModeChanges=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(){var _tickMode,counter;return _regenerator().w(function(_context4){while(1)switch(_context4.n){case 0:if(installed){_context4.n=1;break}throw new Error("Mock clock is not installed, use jasmine.clock().install()");case 1:_tickMode=tickMode,counter=_tickMode.counter;case 2:if(!true){_context4.n=5;break}_context4.n=3;return newMacrotask();case 3:if(!(tickMode.counter!==counter||!installed||delayedFunctionScheduler===null)){_context4.n=4;break}return _context4.a(2);case 4:if(!delayedFunctionScheduler.isEmpty()){delayedFunctionScheduler.runNextQueuedFunction(function(millis2){mockDate.tick(millis2)})}_context4.n=2;break;case 5:return _context4.a(2)}},_callee4)}));return _advanceUntilModeChanges.apply(this,arguments)}function newMacrotask(){return _newMacrotask.apply(this,arguments)}function _newMacrotask(){_newMacrotask=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5(){var channel;return _regenerator().w(function(_context5){while(1)switch(_context5.n){case 0:if(!NODE_JS){_context5.n=1;break}return _context5.a(2,new Promise(function(resolve){return void setImmediate(resolve)}));case 1:channel=new MessageChannel;_context5.n=2;return new Promise(function(resolve){channel.port1.onmessage=resolve;channel.port2.postMessage(void 0)});case 2:channel.port1.close();channel.port2.close();_context5.n=3;return new Promise(function(resolve){realTimingFunctions.setTimeout.call(global2,resolve)});case 3:return _context5.a(2)}},_callee5)}));return _newMacrotask.apply(this,arguments)}function originalTimingFunctionsIntact(){return global2.setTimeout===realTimingFunctions.setTimeout&&global2.clearTimeout===realTimingFunctions.clearTimeout&&global2.setInterval===realTimingFunctions.setInterval&&global2.clearInterval===realTimingFunctions.clearInterval}function replace(dest,source){for(var prop in source){dest[prop]=source[prop]}}function setTimeout2(fn,delay){if(!NODE_JS){return delayedFunctionScheduler.scheduleFunction(fn,delay,argSlice(arguments,2))}var timeout=new FakeTimeout;delayedFunctionScheduler.scheduleFunction(fn,delay,argSlice(arguments,2),false,timeout);return timeout}function clearTimeout2(id){return delayedFunctionScheduler.removeFunctionWithId(id)}function setInterval(fn,interval){if(!NODE_JS){return delayedFunctionScheduler.scheduleFunction(fn,interval,argSlice(arguments,2),true)}var timeout=new FakeTimeout;delayedFunctionScheduler.scheduleFunction(fn,interval,argSlice(arguments,2),true,timeout);return timeout}function clearInterval(id){return delayedFunctionScheduler.removeFunctionWithId(id)}function argSlice(argsObj,n){return Array.prototype.slice.call(argsObj,n)}}function FakeTimeout(){}FakeTimeout.prototype.ref=function(){return this};FakeTimeout.prototype.unref=function(){return this};return Clock};getJasmineRequireObj().CompleteOnFirstErrorSkipPolicy=function(j$2){function CompleteOnFirstErrorSkipPolicy(queueableFns){this.queueableFns_=queueableFns;this.erroredFnIx_=null}CompleteOnFirstErrorSkipPolicy.prototype.skipTo=function(lastRanFnIx){var i;for(i=lastRanFnIx+1;i<this.queueableFns_.length&&this.shouldSkip_(i);i++){}return i};CompleteOnFirstErrorSkipPolicy.prototype.fnErrored=function(fnIx){this.erroredFnIx_=fnIx};CompleteOnFirstErrorSkipPolicy.prototype.shouldSkip_=function(fnIx){if(this.erroredFnIx_===null){return false}var fn=this.queueableFns_[fnIx];var candidateSuite=fn.suite;var errorSuite=this.queueableFns_[this.erroredFnIx_].suite;var wasCleanupFn=fn.type==="afterEach"||fn.type==="afterAll"||fn.type==="specCleanup";return!wasCleanupFn||candidateSuite&&isDescendent(candidateSuite,errorSuite)};function isDescendent(candidate,ancestor){if(!candidate.parentSuite){return false}else if(candidate.parentSuite===ancestor){return true}else{return isDescendent(candidate.parentSuite,ancestor)}}return CompleteOnFirstErrorSkipPolicy};getJasmineRequireObj().Configuration=function(j$2){var _values;var defaultConfig={/**
|
|
164
|
-
* Whether to randomize spec execution order
|
|
165
|
-
* @name Configuration#random
|
|
166
|
-
* @since 3.3.0
|
|
167
|
-
* @type Boolean
|
|
168
|
-
* @default true
|
|
169
|
-
*/random:true,/**
|
|
170
|
-
* Seed to use as the basis of randomization.
|
|
171
|
-
* Null causes the seed to be determined randomly at the start of execution.
|
|
172
|
-
* @name Configuration#seed
|
|
173
|
-
* @since 3.3.0
|
|
174
|
-
* @type (number|string)
|
|
175
|
-
* @default null
|
|
176
|
-
*/seed:null,/**
|
|
177
|
-
* Whether to stop execution of the suite after the first spec failure
|
|
178
|
-
*
|
|
179
|
-
* <p>In parallel mode, `stopOnSpecFailure` works on a "best effort"
|
|
180
|
-
* basis. Jasmine will stop execution as soon as practical after a failure
|
|
181
|
-
* but it might not be immediate.</p>
|
|
182
|
-
* @name Configuration#stopOnSpecFailure
|
|
183
|
-
* @since 3.9.0
|
|
184
|
-
* @type Boolean
|
|
185
|
-
* @default false
|
|
186
|
-
*/stopOnSpecFailure:false,/**
|
|
187
|
-
* Whether to fail the spec if it ran no expectations. By default
|
|
188
|
-
* a spec that ran no expectations is reported as passed. Setting this
|
|
189
|
-
* to true will report such spec as a failure.
|
|
190
|
-
* @name Configuration#failSpecWithNoExpectations
|
|
191
|
-
* @since 3.5.0
|
|
192
|
-
* @type Boolean
|
|
193
|
-
* @default false
|
|
194
|
-
*/failSpecWithNoExpectations:false,/**
|
|
195
|
-
* Whether to cause specs to only have one expectation failure.
|
|
196
|
-
* @name Configuration#stopSpecOnExpectationFailure
|
|
197
|
-
* @since 3.3.0
|
|
198
|
-
* @type Boolean
|
|
199
|
-
* @default false
|
|
200
|
-
*/stopSpecOnExpectationFailure:false,/**
|
|
201
|
-
* A function that takes a spec and returns true if it should be executed
|
|
202
|
-
* or false if it should be skipped.
|
|
203
|
-
* @callback SpecFilter
|
|
204
|
-
* @param {Spec} spec - The spec that the filter is being applied to.
|
|
205
|
-
* @return boolean
|
|
206
|
-
*//**
|
|
207
|
-
* Function to use to filter specs
|
|
208
|
-
* @name Configuration#specFilter
|
|
209
|
-
* @since 3.3.0
|
|
210
|
-
* @type SpecFilter
|
|
211
|
-
* @default A function that always returns true.
|
|
212
|
-
*/specFilter:function specFilter(){return true},/**
|
|
213
|
-
* Whether reporters should hide disabled specs from their output.
|
|
214
|
-
* Currently only supported by Jasmine's HTMLReporter
|
|
215
|
-
* @name Configuration#hideDisabled
|
|
216
|
-
* @since 3.3.0
|
|
217
|
-
* @type Boolean
|
|
218
|
-
* @default false
|
|
219
|
-
*/hideDisabled:false,/**
|
|
220
|
-
* Clean closures when a suite is done running (done by clearing the stored function reference).
|
|
221
|
-
* This prevents memory leaks, but you won't be able to run jasmine multiple times.
|
|
222
|
-
* @name Configuration#autoCleanClosures
|
|
223
|
-
* @since 3.10.0
|
|
224
|
-
* @type boolean
|
|
225
|
-
* @default true
|
|
226
|
-
*/autoCleanClosures:true,/**
|
|
227
|
-
* Whether to forbid duplicate spec or suite names. If set to true, using
|
|
228
|
-
* the same name multiple times in the same immediate parent suite is an
|
|
229
|
-
* error.
|
|
230
|
-
* @name Configuration#forbidDuplicateNames
|
|
231
|
-
* @type boolean
|
|
232
|
-
* @default false
|
|
233
|
-
*/forbidDuplicateNames:false,/**
|
|
234
|
-
* Whether to issue warnings for certain deprecated functionality
|
|
235
|
-
* every time it's used. If not set or set to false, deprecation warnings
|
|
236
|
-
* for methods that tend to be called frequently will be issued only once
|
|
237
|
-
* or otherwise throttled to prevent the suite output from being flooded
|
|
238
|
-
* with warnings.
|
|
239
|
-
* @name Configuration#verboseDeprecations
|
|
240
|
-
* @since 3.6.0
|
|
241
|
-
* @type Boolean
|
|
242
|
-
* @default false
|
|
243
|
-
*/verboseDeprecations:false,/**
|
|
244
|
-
* Whether to detect late promise rejection handling during spec
|
|
245
|
-
* execution. If this option is enabled, a promise rejection that triggers
|
|
246
|
-
* the JavaScript runtime's unhandled rejection event will not be treated
|
|
247
|
-
* as an error as long as it's handled before the spec finishes.
|
|
248
|
-
*
|
|
249
|
-
* This option is off by default because it imposes a performance penalty.
|
|
250
|
-
* @name Configuration#detectLateRejectionHandling
|
|
251
|
-
* @since 5.10.0
|
|
252
|
-
* @type Boolean
|
|
253
|
-
* @default false
|
|
254
|
-
*/detectLateRejectionHandling:false,/**
|
|
255
|
-
* The number of extra stack frames inserted by a wrapper around {@link it}
|
|
256
|
-
* or by some other local modification. Jasmine uses this to determine the
|
|
257
|
-
* filename for {@link SpecStartedEvent} and {@link SpecDoneEvent}.
|
|
258
|
-
* @name Configuration#extraItStackFrames
|
|
259
|
-
* @since 5.13.0
|
|
260
|
-
* @type number
|
|
261
|
-
* @default 0
|
|
262
|
-
*/extraItStackFrames:0,/**
|
|
263
|
-
* The number of extra stack frames inserted by a wrapper around
|
|
264
|
-
* {@link describe} or by some other local modification. Jasmine uses this
|
|
265
|
-
* to determine the filename for {@link SpecStartedEvent} and
|
|
266
|
-
* {@link SpecDoneEvent}.
|
|
267
|
-
* @name Configuration#extraDescribeStackFrames
|
|
268
|
-
* @since 5.13.0
|
|
269
|
-
* @type number
|
|
270
|
-
* @default 0
|
|
271
|
-
*/extraDescribeStackFrames:0};Object.freeze(defaultConfig);var Configuration=/*#__PURE__*/function(){"use strict";function Configuration(){var _this2=this;_classCallCheck(this,Configuration);__privateAdd(this,_values);__privateSet(this,_values,__spreadValues({},defaultConfig));var _loop2=function _loop2(){var k=_Object$keys[_i2];Object.defineProperty(_this2,k,{enumerable:true,get:function get(){return __privateGet(this,_values)[k]}})};for(var _i2=0,_Object$keys=Object.keys(defaultConfig);_i2<_Object$keys.length;_i2++){_loop2()}}return _createClass(Configuration,[{key:"copy",value:function copy(){return __spreadValues({},__privateGet(this,_values))}},{key:"update",value:function update(changes){var booleanProps=["random","failSpecWithNoExpectations","hideDisabled","stopOnSpecFailure","stopSpecOnExpectationFailure","autoCleanClosures","forbidDuplicateNames","detectLateRejectionHandling"];for(var _i3=0,_booleanProps=booleanProps;_i3<_booleanProps.length;_i3++){var k=_booleanProps[_i3];if(typeof changes[k]!=="undefined"){__privateGet(this,_values)[k]=changes[k]}}if(changes.specFilter){__privateGet(this,_values).specFilter=changes.specFilter}if(typeof changes.seed!=="undefined"){__privateGet(this,_values).seed=changes.seed}if(changes.hasOwnProperty("verboseDeprecations")){__privateGet(this,_values).verboseDeprecations=changes.verboseDeprecations}if(typeof changes.extraItStackFrames!=="undefined"){__privateGet(this,_values).extraItStackFrames=changes.extraItStackFrames}if(typeof changes.extraDescribeStackFrames!=="undefined"){__privateGet(this,_values).extraDescribeStackFrames=changes.extraDescribeStackFrames}}}])}();_values=new WeakMap;return Configuration};getJasmineRequireObj().CurrentRunableTracker=function(){var _currentSpec,_currentlyExecutingSuites;var CurrentRunableTracker=/*#__PURE__*/function(){"use strict";function CurrentRunableTracker(){_classCallCheck(this,CurrentRunableTracker);__privateAdd(this,_currentSpec);__privateAdd(this,_currentlyExecutingSuites);__privateSet(this,_currentlyExecutingSuites,[])}return _createClass(CurrentRunableTracker,[{key:"currentRunable",value:function currentRunable(){return this.currentSpec()||this.currentSuite()}},{key:"currentSpec",value:function currentSpec(){return __privateGet(this,_currentSpec)}},{key:"setCurrentSpec",value:function setCurrentSpec(spec){__privateSet(this,_currentSpec,spec)}},{key:"currentSuite",value:function currentSuite(){return __privateGet(this,_currentlyExecutingSuites)[__privateGet(this,_currentlyExecutingSuites).length-1]}},{key:"pushSuite",value:function pushSuite(suite){__privateGet(this,_currentlyExecutingSuites).push(suite)}},{key:"popSuite",value:function popSuite(){__privateGet(this,_currentlyExecutingSuites).pop()}}])}();_currentSpec=new WeakMap;_currentlyExecutingSuites=new WeakMap;return CurrentRunableTracker};getJasmineRequireObj().DelayedFunctionScheduler=function(j$){function DelayedFunctionScheduler(){this.scheduledLookup_=[];this.scheduledFunctions_={};this.currentTime_=0;this.delayedFnStartCount_=1e12;this.deletedKeys_=[];this.tick=function(millis2,tickDate){millis2=millis2||0;var endTime=this.currentTime_+millis2;this.runScheduledFunctions_(endTime,tickDate)};this.scheduleFunction=function(funcToCall,millis,params,recurring,timeoutKey,runAtMillis){var f;if(typeof funcToCall==="string"){f=function f(){return eval(funcToCall)}}else{f=funcToCall}millis=millis||0;timeoutKey=timeoutKey||++this.delayedFnStartCount_;runAtMillis=runAtMillis||this.currentTime_+millis;var funcToSchedule={runAtMillis:runAtMillis,funcToCall:f,recurring:recurring,params:params,timeoutKey:timeoutKey,millis:millis};if(runAtMillis in this.scheduledFunctions_){this.scheduledFunctions_[runAtMillis].push(funcToSchedule)}else{this.scheduledFunctions_[runAtMillis]=[funcToSchedule];this.scheduledLookup_.push(runAtMillis);this.scheduledLookup_.sort(function(a,b){return a-b})}return timeoutKey};this.removeFunctionWithId=function(timeoutKey2){this.deletedKeys_.push(timeoutKey2);for(var runAtMillis2 in this.scheduledFunctions_){var funcs=this.scheduledFunctions_[runAtMillis2];var i=indexOfFirstToPass(funcs,function(func){return func.timeoutKey===timeoutKey2});if(i>-1){if(funcs.length===1){delete this.scheduledFunctions_[runAtMillis2];this.deleteFromLookup_(runAtMillis2)}else{funcs.splice(i,1)}break}}};this.isEmpty=function(){return this.scheduledFunctions_.length===0};this.runNextQueuedFunction=function(tickDate){if(this.scheduledLookup_.length===0){return}var newCurrentTime=this.scheduledLookup_[0];if(newCurrentTime>=this.currentTime_){tickDate(newCurrentTime-this.currentTime_);this.currentTime_=newCurrentTime}var funcsAtTime=this.scheduledFunctions_[this.currentTime_];var fn=funcsAtTime.shift();if(funcsAtTime.length===0){delete this.scheduledFunctions_[this.currentTime_];this.scheduledLookup_.splice(0,1)}if(fn.recurring){this.reschedule_(fn)}fn.funcToCall.apply(null,fn.params||[])};return this}DelayedFunctionScheduler.prototype.runScheduledFunctions_=function(endTime,tickDate){tickDate=tickDate||function(){};if(this.scheduledLookup_.length===0||this.scheduledLookup_[0]>endTime){if(endTime>=this.currentTime_){tickDate(endTime-this.currentTime_);this.currentTime_=endTime}return}do{this.deletedKeys_=[];var newCurrentTime=this.scheduledLookup_.shift();if(newCurrentTime>=this.currentTime_){tickDate(newCurrentTime-this.currentTime_);this.currentTime_=newCurrentTime}var funcsToRun=this.scheduledFunctions_[this.currentTime_];delete this.scheduledFunctions_[this.currentTime_];var _iterator0=_createForOfIteratorHelper(funcsToRun),_step0;try{for(_iterator0.s();!(_step0=_iterator0.n()).done;){var fn=_step0.value;if(fn.recurring){this.reschedule_(fn)}}}catch(err){_iterator0.e(err)}finally{_iterator0.f()}var _iterator1=_createForOfIteratorHelper(funcsToRun),_step1;try{for(_iterator1.s();!(_step1=_iterator1.n()).done;){var _fn=_step1.value;if(this.deletedKeys_.includes(_fn.timeoutKey)){return}_fn.funcToCall.apply(null,_fn.params||[])}}catch(err){_iterator1.e(err)}finally{_iterator1.f()}this.deletedKeys_=[]}while(this.scheduledLookup_.length>0&&// checking first if we're out of time prevents setTimeout(0)
|
|
272
|
-
// scheduled in a funcToRun from forcing an extra iteration
|
|
273
|
-
this.currentTime_!==endTime&&this.scheduledLookup_[0]<=endTime);if(endTime>=this.currentTime_){tickDate(endTime-this.currentTime_);this.currentTime_=endTime}};DelayedFunctionScheduler.prototype.reschedule_=function(scheduledFn){this.scheduleFunction(scheduledFn.funcToCall,scheduledFn.millis,scheduledFn.params,true,scheduledFn.timeoutKey,scheduledFn.runAtMillis+scheduledFn.millis)};DelayedFunctionScheduler.prototype.deleteFromLookup_=function(key){var value=Number(key);var i=indexOfFirstToPass(this.scheduledLookup_,function(millis2){return millis2===value});if(i>-1){this.scheduledLookup_.splice(i,1)}};function indexOfFirstToPass(array,testFn){var index=-1;for(var i=0;i<array.length;++i){if(testFn(array[i])){index=i;break}}return index}return DelayedFunctionScheduler};getJasmineRequireObj().Deprecator=function(j$2){function Deprecator(topSuite){this.topSuite_=topSuite;this.verbose_=false;this.toSuppress_=[]}var verboseNote="Note: This message will be shown only once. Set the verboseDeprecations config property to true to see every occurrence.";Deprecator.prototype.verboseDeprecations=function(enabled){this.verbose_=enabled};Deprecator.prototype.addDeprecationWarning=function(runnable,deprecation,options){options=options||{};if(!this.verbose_&&!j$2.isError_(deprecation)){if(this.toSuppress_.indexOf(deprecation)!==-1){return}this.toSuppress_.push(deprecation)}this.log_(runnable,deprecation,options);this.report_(runnable,deprecation,options)};Deprecator.prototype.log_=function(runnable,deprecation,options){if(j$2.isError_(deprecation)){console.error(deprecation);return}var context;if(runnable===this.topSuite_||options.ignoreRunnable){context=""}else if(runnable.children){context=" (in suite: "+runnable.getFullName()+")"}else{context=" (in spec: "+runnable.getFullName()+")"}if(!options.omitStackTrace){context+="\n"+this.stackTrace_()}if(!this.verbose_){context+="\n"+verboseNote}console.error("DEPRECATION: "+deprecation+context)};Deprecator.prototype.stackTrace_=function(){var formatter=new j$2.ExceptionFormatter;return formatter.stack(new Error).replace(/^Error\n/m,"")};Deprecator.prototype.report_=function(runnable,deprecation,options){if(options.ignoreRunnable){runnable=this.topSuite_}if(j$2.isError_(deprecation)){runnable.addDeprecationWarning(deprecation);return}if(!this.verbose_){deprecation+="\n"+verboseNote}runnable.addDeprecationWarning({message:deprecation,omitStackTrace:options.omitStackTrace||false})};return Deprecator};getJasmineRequireObj().errors=function(){function ExpectationFailed(){}ExpectationFailed.prototype=new Error;ExpectationFailed.prototype.constructor=ExpectationFailed;return{ExpectationFailed:ExpectationFailed}};getJasmineRequireObj().ExceptionFormatter=function(j$2){var ignoredProperties=["name","message","stack","fileName","sourceURL","line","lineNumber","column","description","jasmineMessage"];function ExceptionFormatter(options){var jasmineFile=options&&options.jasmineFile||j$2.util.jasmineFile();this.message=function(error){var message="";if(error.jasmineMessage){message+=error.jasmineMessage}else if(error.name&&error.message){message+=error.name+": "+error.message}else if(error.message){message+=error.message}else{message+=error.toString()+" thrown"}if(error.fileName||error.sourceURL){message+=" in "+(error.fileName||error.sourceURL)}if(error.line||error.lineNumber){message+=" (line "+(error.line||error.lineNumber)+")"}return message};this.stack=function(error){var _ref5=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},omitMessage=_ref5.omitMessage;if(!error||!error.stack){return null}var lines=this.stack_(error,{messageHandling:omitMessage?"omit":void 0});return lines.join("\n")};this.stack_=function(error,_ref6){var messageHandling=_ref6.messageHandling;var lines=formatProperties(error).split("\n");if(lines[lines.length-1]===""){lines.pop()}var stackTrace=new j$2.StackTrace(error);lines=lines.concat(filterJasmine(stackTrace));if(messageHandling==="require"){lines.unshift(stackTrace.message||"Error: "+error.message)}else if(messageHandling!=="omit"&&stackTrace.message){lines.unshift(stackTrace.message)}if(error.cause&&error.cause instanceof Error){var substack=this.stack_(error.cause,{messageHandling:"require"});substack[0]="Caused by: "+substack[0];lines=lines.concat(substack)}return lines};function filterJasmine(stackTrace){var result=[];var jasmineMarker=stackTrace.style==="webkit"?"<Jasmine>":" at <Jasmine>";stackTrace.frames.forEach(function(frame){if(frame.file!==jasmineFile){result.push(frame.raw)}else if(result[result.length-1]!==jasmineMarker){result.push(jasmineMarker)}});return result}function formatProperties(error){if(!(error instanceof Object)){return}var result={};var empty=true;for(var _i4=0,_Object$keys2=Object.keys(error);_i4<_Object$keys2.length;_i4++){var prop=_Object$keys2[_i4];if(ignoredProperties.includes(prop)){continue}result[prop]=error[prop];empty=false}if(!empty){return"error properties: "+j$2.basicPrettyPrinter_(result)+"\n"}return""}}return ExceptionFormatter};getJasmineRequireObj().Expectation=function(j$2){function Expectation(options){this.expector=new j$2.Expector(options);var customMatchers=options.customMatchers||{};for(var matcherName in customMatchers){this[matcherName]=wrapSyncCompare(matcherName,customMatchers[matcherName])}}Expectation.prototype.withContext=function withContext(message){return addFilter(this,new ContextAddingFilter(message))};Object.defineProperty(Expectation.prototype,"not",{get:function get(){return addFilter(this,syncNegatingFilter)}});function AsyncExpectation(options){this.expector=new j$2.Expector(options);var customAsyncMatchers=options.customAsyncMatchers||{};for(var matcherName in customAsyncMatchers){this[matcherName]=wrapAsyncCompare(matcherName,customAsyncMatchers[matcherName])}}AsyncExpectation.prototype.withContext=function withContext(message){return addFilter(this,new ContextAddingFilter(message))};Object.defineProperty(AsyncExpectation.prototype,"not",{get:function get(){return addFilter(this,asyncNegatingFilter)}});Object.defineProperty(AsyncExpectation.prototype,"already",{get:function get(){return addFilter(this,expectSettledPromiseFilter)}});function wrapSyncCompare(name,matcherFactory){return function(){var result=this.expector.compare(name,matcherFactory,arguments);this.expector.processResult(result)}}function wrapAsyncCompare(name,matcherFactory){return function(){var _this3=this;var errorForStack=new Error;return this.expector.compare(name,matcherFactory,arguments).then(function(result){_this3.expector.processResult(result,errorForStack)})}}function _addCoreMatchers(prototype,matchers,wrapper){for(var matcherName in matchers){var matcher=matchers[matcherName];prototype[matcherName]=wrapper(matcherName,matcher)}}function addFilter(source,filter){var result=Object.create(source);result.expector=source.expector.addFilter(filter);return result}function negatedFailureMessage(result,matcherName,args,matchersUtil){if(result.message){if(j$2.isFunction_(result.message)){return result.message()}else{return result.message}}args=args.slice();args.unshift(true);args.unshift(matcherName);return matchersUtil.buildFailureMessage.apply(matchersUtil,args)}function negate(result){result.pass=!result.pass;return result}var syncNegatingFilter={selectComparisonFunc:function selectComparisonFunc(matcher){function defaultNegativeCompare(){return negate(matcher.compare.apply(null,arguments))}return matcher.negativeCompare||defaultNegativeCompare},buildFailureMessage:negatedFailureMessage};var asyncNegatingFilter={selectComparisonFunc:function selectComparisonFunc(matcher){function defaultNegativeCompare(){return matcher.compare.apply(this,arguments).then(negate)}return matcher.negativeCompare||defaultNegativeCompare},buildFailureMessage:negatedFailureMessage};var expectSettledPromiseFilter={selectComparisonFunc:function selectComparisonFunc(matcher){return function(actual){var matcherArgs=arguments;return j$2.isPending_(actual).then(function(isPending){if(isPending){return{pass:false,message:"Expected a promise to be settled (via expectAsync(...).already) but it was pending."}}else{return matcher.compare.apply(null,matcherArgs)}})}}};function ContextAddingFilter(message){this.message=message}ContextAddingFilter.prototype.modifyFailureMessage=function(msg){if(msg.indexOf("\n")===-1){return this.message+": "+msg}else{return this.message+":\n"+indent(msg)}};function indent(s){return s.replace(/^/gm," ")}return{factory:function factory(options){return new Expectation(options||{})},addCoreMatchers:function addCoreMatchers(matchers){_addCoreMatchers(Expectation.prototype,matchers,wrapSyncCompare)},asyncFactory:function asyncFactory(options){return new AsyncExpectation(options||{})},addAsyncCoreMatchers:function addAsyncCoreMatchers(matchers){_addCoreMatchers(AsyncExpectation.prototype,matchers,wrapAsyncCompare)}}};getJasmineRequireObj().ExpectationFilterChain=function(){function ExpectationFilterChain(maybeFilter,prev){this.filter_=maybeFilter;this.prev_=prev}ExpectationFilterChain.prototype.addFilter=function(filter){return new ExpectationFilterChain(filter,this)};ExpectationFilterChain.prototype.selectComparisonFunc=function(matcher){return this.callFirst_("selectComparisonFunc",arguments).result};ExpectationFilterChain.prototype.buildFailureMessage=function(result,matcherName,args,matchersUtil){return this.callFirst_("buildFailureMessage",arguments).result};ExpectationFilterChain.prototype.modifyFailureMessage=function(msg){var result=this.callFirst_("modifyFailureMessage",arguments).result;return result||msg};ExpectationFilterChain.prototype.callFirst_=function(fname,args){if(this.prev_){var prevResult=this.prev_.callFirst_(fname,args);if(prevResult.found){return prevResult}}if(this.filter_&&this.filter_[fname]){return{found:true,result:this.filter_[fname].apply(this.filter_,args)}}return{found:false}};return ExpectationFilterChain};getJasmineRequireObj().Expector=function(j$2){function Expector(options){this.matchersUtil=options.matchersUtil||{buildFailureMessage:function buildFailureMessage(){}};this.actual=options.actual;this.addExpectationResult=options.addExpectationResult||function(){};this.filters=new j$2.ExpectationFilterChain}Expector.prototype.instantiateMatcher=function(matcherName,matcherFactory,args){this.matcherName=matcherName;this.args=Array.prototype.slice.call(args,0);this.expected=this.args.slice(0);this.args.unshift(this.actual);var matcher=matcherFactory(this.matchersUtil);var comparisonFunc=this.filters.selectComparisonFunc(matcher);return comparisonFunc||matcher.compare};Expector.prototype.buildMessage=function(result){var _this4=this;if(result.pass){return""}var defaultMessage=function defaultMessage(){if(!result.message){var args=_this4.args.slice();args.unshift(false);args.unshift(_this4.matcherName);return _this4.matchersUtil.buildFailureMessage.apply(_this4.matchersUtil,args)}else if(j$2.isFunction_(result.message)){return result.message()}else{return result.message}};var msg=this.filters.buildFailureMessage(result,this.matcherName,this.args,this.matchersUtil,defaultMessage);return this.filters.modifyFailureMessage(msg||defaultMessage())};Expector.prototype.compare=function(matcherName,matcherFactory,args){var matcherCompare=this.instantiateMatcher(matcherName,matcherFactory,args);return matcherCompare.apply(null,this.args)};Expector.prototype.addFilter=function(filter){var result=Object.create(this);result.filters=this.filters.addFilter(filter);return result};Expector.prototype.processResult=function(result,errorForStack){var message=this.buildMessage(result);if(this.expected.length===1){this.expected=this.expected[0]}this.addExpectationResult(result.pass,{matcherName:this.matcherName,passed:result.pass,message:message,error:errorForStack?void 0:result.error,errorForStack:errorForStack||void 0,actual:this.actual,expected:this.expected// TODO: this may need to be arrayified/sliced
|
|
274
|
-
})};return Expector};getJasmineRequireObj().formatErrorMsg=function(){function generateErrorMsg(domain,usage){var usageDefinition=usage?"\nUsage: "+usage:"";return function errorMsg(msg){return domain+" : "+msg+usageDefinition}}return generateErrorMsg};getJasmineRequireObj().GlobalErrors=function(j$2){var _getConfig,_adapter,_handlers,_overrideHandler,_onRemoveOverrideHandler,_pendingUnhandledRejections,_GlobalErrors_instances,onUncaughtException_fn,onUnhandledRejection_fn,detectLateRejectionHandling_fn,onRejectionHandled_fn,dispatchError_fn,_global,_dispatch,_onError,_onUnhandledRejection,_onRejectionHandled,_BrowserAdapter_instances,unhandledRejectionHandler_fn,rejectionHandledHandler_fn,_global2,_dispatch2,_originalHandlers,_jasmineHandlers,_NodeAdapter_instances,installHandler_fn,augmentError_fn;var GlobalErrors=/*#__PURE__*/function(){"use strict";function GlobalErrors(global2,getConfig){_classCallCheck(this,GlobalErrors);__privateAdd(this,_GlobalErrors_instances);__privateAdd(this,_getConfig);__privateAdd(this,_adapter);__privateAdd(this,_handlers);__privateAdd(this,_overrideHandler);__privateAdd(this,_onRemoveOverrideHandler);__privateAdd(this,_pendingUnhandledRejections);global2=global2||j$2.getGlobal();__privateSet(this,_getConfig,getConfig);__privateSet(this,_pendingUnhandledRejections,/* @__PURE__ */new Map);__privateSet(this,_handlers,[]);__privateSet(this,_overrideHandler,null);__privateSet(this,_onRemoveOverrideHandler,null);var dispatch={onUncaughtException:__privateMethod(this,_GlobalErrors_instances,onUncaughtException_fn).bind(this),onUnhandledRejection:__privateMethod(this,_GlobalErrors_instances,onUnhandledRejection_fn).bind(this),onRejectionHandled:__privateMethod(this,_GlobalErrors_instances,onRejectionHandled_fn).bind(this)};if(global2.process&&global2.process.listeners&&j$2.isFunction_(global2.process.on)){__privateSet(this,_adapter,new NodeAdapter(global2,dispatch))}else{__privateSet(this,_adapter,new BrowserAdapter(global2,dispatch))}}return _createClass(GlobalErrors,[{key:"install",value:function install(){__privateGet(this,_adapter).install()}},{key:"uninstall",value:function uninstall(){__privateGet(this,_adapter).uninstall()}// The listener at the top of the stack will be called with two arguments:
|
|
275
|
-
// the error and the event. Either of them may be falsy.
|
|
276
|
-
// The error will normally be provided, but will be falsy in the case of
|
|
277
|
-
// some browser load-time errors. The event will normally be provided in
|
|
278
|
-
// browsers but will be falsy in Node.
|
|
279
|
-
// Listeners that are pushed after spec files have been loaded should be
|
|
280
|
-
// able to just use the error parameter.
|
|
281
|
-
},{key:"pushListener",value:function pushListener(listener){__privateGet(this,_handlers).push(listener)}},{key:"popListener",value:function popListener(listener){if(!listener){throw new Error("popListener expects a listener")}__privateGet(this,_handlers).pop()}},{key:"setOverrideListener",value:function setOverrideListener(listener,onRemove){if(__privateGet(this,_overrideHandler)){throw new Error("Can't set more than one override listener at a time")}__privateSet(this,_overrideHandler,listener);__privateSet(this,_onRemoveOverrideHandler,onRemove)}},{key:"removeOverrideListener",value:function removeOverrideListener(){if(__privateGet(this,_onRemoveOverrideHandler)){__privateGet(this,_onRemoveOverrideHandler).call(this)}__privateSet(this,_overrideHandler,null);__privateSet(this,_onRemoveOverrideHandler,null)}},{key:"reportUnhandledRejections",value:function reportUnhandledRejections(){var _iterator10=_createForOfIteratorHelper(__privateGet(this,_pendingUnhandledRejections).values()),_step10;try{for(_iterator10.s();!(_step10=_iterator10.n()).done;){var _step10$value=_step10.value,reason=_step10$value.reason,event=_step10$value.event;__privateMethod(this,_GlobalErrors_instances,dispatchError_fn).call(this,reason,event)}}catch(err){_iterator10.e(err)}finally{_iterator10.f()}__privateGet(this,_pendingUnhandledRejections).clear()}}])}();_getConfig=new WeakMap;_adapter=new WeakMap;_handlers=new WeakMap;_overrideHandler=new WeakMap;_onRemoveOverrideHandler=new WeakMap;_pendingUnhandledRejections=new WeakMap;_GlobalErrors_instances=new WeakSet;// Either error or event may be undefined
|
|
282
|
-
onUncaughtException_fn=function onUncaughtException_fn(error,event){__privateMethod(this,_GlobalErrors_instances,dispatchError_fn).call(this,error,event)};// event or promise may be undefined
|
|
283
|
-
// event is passed through for backwards compatibility reasons. It's probably
|
|
284
|
-
// unnecessary, but user code could depend on it.
|
|
285
|
-
onUnhandledRejection_fn=function onUnhandledRejection_fn(reason,promise,event){if(__privateMethod(this,_GlobalErrors_instances,detectLateRejectionHandling_fn).call(this)&&promise){__privateGet(this,_pendingUnhandledRejections).set(promise,{reason:reason,event:event})}else{__privateMethod(this,_GlobalErrors_instances,dispatchError_fn).call(this,reason,event)}};detectLateRejectionHandling_fn=function detectLateRejectionHandling_fn(){return __privateGet(this,_getConfig).call(this).detectLateRejectionHandling};onRejectionHandled_fn=function onRejectionHandled_fn(promise){__privateGet(this,_pendingUnhandledRejections).delete(promise)};// Either error or event may be undefined
|
|
286
|
-
dispatchError_fn=function dispatchError_fn(error,event){if(__privateGet(this,_overrideHandler)){__privateGet(this,_overrideHandler).call(this,error);return}var handler=__privateGet(this,_handlers)[__privateGet(this,_handlers).length-1];if(handler){handler(error,event)}else{throw error}};var BrowserAdapter=/*#__PURE__*/function(){"use strict";function BrowserAdapter(global2,dispatch){_classCallCheck(this,BrowserAdapter);__privateAdd(this,_BrowserAdapter_instances);__privateAdd(this,_global);__privateAdd(this,_dispatch);__privateAdd(this,_onError);__privateAdd(this,_onUnhandledRejection);__privateAdd(this,_onRejectionHandled);__privateSet(this,_global,global2);__privateSet(this,_dispatch,dispatch);__privateSet(this,_onError,function(event){return dispatch.onUncaughtException(event.error,event)});__privateSet(this,_onUnhandledRejection,__privateMethod(this,_BrowserAdapter_instances,unhandledRejectionHandler_fn).bind(this));__privateSet(this,_onRejectionHandled,__privateMethod(this,_BrowserAdapter_instances,rejectionHandledHandler_fn).bind(this))}return _createClass(BrowserAdapter,[{key:"install",value:function install(){__privateGet(this,_global).addEventListener("error",__privateGet(this,_onError));__privateGet(this,_global).addEventListener("unhandledrejection",__privateGet(this,_onUnhandledRejection));__privateGet(this,_global).addEventListener("rejectionhandled",__privateGet(this,_onRejectionHandled))}},{key:"uninstall",value:function uninstall(){__privateGet(this,_global).removeEventListener("error",__privateGet(this,_onError));__privateGet(this,_global).removeEventListener("unhandledrejection",__privateGet(this,_onUnhandledRejection));__privateGet(this,_global).removeEventListener("rejectionhandled",__privateGet(this,_onRejectionHandled))}}])}();_global=new WeakMap;_dispatch=new WeakMap;_onError=new WeakMap;_onUnhandledRejection=new WeakMap;_onRejectionHandled=new WeakMap;_BrowserAdapter_instances=new WeakSet;unhandledRejectionHandler_fn=function unhandledRejectionHandler_fn(event){var jasmineMessage="Unhandled promise rejection: "+event.reason;var reason;if(j$2.isError_(event.reason)){reason=event.reason;reason.jasmineMessage=jasmineMessage}else{reason=jasmineMessage}__privateGet(this,_dispatch).onUnhandledRejection(reason,event.promise,event)};rejectionHandledHandler_fn=function rejectionHandledHandler_fn(event){__privateGet(this,_dispatch).onRejectionHandled(event.promise)};var NodeAdapter=/*#__PURE__*/function(){"use strict";function NodeAdapter(global2,dispatch){_classCallCheck(this,NodeAdapter);__privateAdd(this,_NodeAdapter_instances);__privateAdd(this,_global2);__privateAdd(this,_dispatch2);__privateAdd(this,_originalHandlers);__privateAdd(this,_jasmineHandlers);__privateSet(this,_global2,global2);__privateSet(this,_dispatch2,dispatch);__privateSet(this,_jasmineHandlers,{});__privateSet(this,_originalHandlers,{});this.onError=this.onError.bind(this);this.onUnhandledRejection=this.onUnhandledRejection.bind(this)}return _createClass(NodeAdapter,[{key:"install",value:function install(){__privateMethod(this,_NodeAdapter_instances,installHandler_fn).call(this,"uncaughtException",this.onError);__privateMethod(this,_NodeAdapter_instances,installHandler_fn).call(this,"unhandledRejection",this.onUnhandledRejection);__privateMethod(this,_NodeAdapter_instances,installHandler_fn).call(this,"rejectionHandled",__privateGet(this,_dispatch2).onRejectionHandled)}},{key:"uninstall",value:function uninstall(){var errorTypes=Object.keys(__privateGet(this,_originalHandlers));for(var _i5=0,_errorTypes=errorTypes;_i5<_errorTypes.length;_i5++){var errorType=_errorTypes[_i5];__privateGet(this,_global2).process.removeListener(errorType,__privateGet(this,_jasmineHandlers)[errorType]);for(var i=0;i<__privateGet(this,_originalHandlers)[errorType].length;i++){__privateGet(this,_global2).process.on(errorType,__privateGet(this,_originalHandlers)[errorType][i])}delete __privateGet(this,_originalHandlers)[errorType];delete __privateGet(this,_jasmineHandlers)[errorType]}}},{key:"onError",value:function onError(error){error=__privateMethod(this,_NodeAdapter_instances,augmentError_fn).call(this,error,false);__privateGet(this,_dispatch2).onUncaughtException(error)}},{key:"onUnhandledRejection",value:function onUnhandledRejection(reason,promise){reason=__privateMethod(this,_NodeAdapter_instances,augmentError_fn).call(this,reason,true);__privateGet(this,_dispatch2).onUnhandledRejection(reason,promise)}}])}();_global2=new WeakMap;_dispatch2=new WeakMap;_originalHandlers=new WeakMap;_jasmineHandlers=new WeakMap;_NodeAdapter_instances=new WeakSet;installHandler_fn=function installHandler_fn(errorType,handler){__privateGet(this,_originalHandlers)[errorType]=__privateGet(this,_global2).process.listeners(errorType);__privateGet(this,_jasmineHandlers)[errorType]=handler;__privateGet(this,_global2).process.removeAllListeners(errorType);__privateGet(this,_global2).process.on(errorType,handler)};augmentError_fn=function augmentError_fn(error,isUnhandledRejection){var jasmineMessagePrefix;if(isUnhandledRejection){jasmineMessagePrefix="Unhandled promise rejection"}else{jasmineMessagePrefix="Uncaught exception"}if(j$2.isError_(error)){error.jasmineMessage=jasmineMessagePrefix+": "+error;return error}else{var substituteMsg;if(error){substituteMsg=jasmineMessagePrefix+": "+error}else{substituteMsg=jasmineMessagePrefix+" with no error or message"}if(isUnhandledRejection){substituteMsg+="\n(Tip: to get a useful stack trace, use Promise.reject(new Error(...)) instead of Promise.reject("+(error?"...":"")+").)"}return new Error(substituteMsg)}};return GlobalErrors};getJasmineRequireObj().toBePending=function(j$2){return function toBePending(){return{compare:function compare(actual){if(!j$2.isPromiseLike(actual)){throw new Error("Expected toBePending to be called on a promise but was on a ".concat(_typeof(actual),"."))}var want={};return Promise.race([actual,Promise.resolve(want)]).then(function(got){return{pass:want===got}},function(){return{pass:false}})}}}};getJasmineRequireObj().toBeRejected=function(j$2){return function toBeRejected(){return{compare:function compare(actual){if(!j$2.isPromiseLike(actual)){throw new Error("Expected toBeRejected to be called on a promise but was on a ".concat(_typeof(actual),"."))}return actual.then(function(){return{pass:false}},function(){return{pass:true}})}}}};getJasmineRequireObj().toBeRejectedWith=function(j$2){return function toBeRejectedWith(matchersUtil){return{compare:function compare(actualPromise,expectedValue){if(!j$2.isPromiseLike(actualPromise)){throw new Error("Expected toBeRejectedWith to be called on a promise but was on a ".concat(_typeof(actualPromise),"."))}function prefix(passed){return"Expected a promise "+(passed?"not ":"")+"to be rejected with "+matchersUtil.pp(expectedValue)}return actualPromise.then(function(){return{pass:false,message:prefix(false)+" but it was resolved."}},function(actualValue){if(matchersUtil.equals(actualValue,expectedValue)){return{pass:true,message:prefix(true)+"."}}else{return{pass:false,message:prefix(false)+" but it was rejected with "+matchersUtil.pp(actualValue)+"."}}})}}}};getJasmineRequireObj().toBeRejectedWithError=function(j$2){return function toBeRejectedWithError(matchersUtil){return{compare:function compare(actualPromise,arg1,arg2){if(!j$2.isPromiseLike(actualPromise)){throw new Error("Expected toBeRejectedWithError to be called on a promise but was on a ".concat(_typeof(actualPromise),"."))}var expected=getExpectedFromArgs(arg1,arg2,matchersUtil);return actualPromise.then(function(){return{pass:false,message:"Expected a promise to be rejected but it was resolved."}},function(actualValue){return matchError(actualValue,expected,matchersUtil)})}}};function matchError(actual,expected,matchersUtil){if(!j$2.isError_(actual)){return fail(expected,"rejected with "+matchersUtil.pp(actual))}if(!(actual instanceof expected.error)){return fail(expected,"rejected with type "+j$2.fnNameFor(actual.constructor))}var actualMessage=actual.message;if(actualMessage===expected.message||typeof expected.message==="undefined"){return pass(expected)}if(expected.message instanceof RegExp&&expected.message.test(actualMessage)){return pass(expected)}return fail(expected,"rejected with "+matchersUtil.pp(actual))}function pass(expected){return{pass:true,message:"Expected a promise not to be rejected with "+expected.printValue+", but it was."}}function fail(expected,message){return{pass:false,message:"Expected a promise to be rejected with "+expected.printValue+" but it was "+message+"."}}function getExpectedFromArgs(arg1,arg2,matchersUtil){var error,message;if(isErrorConstructor(arg1)){error=arg1;message=arg2}else{error=Error;message=arg1}return{error:error,message:message,printValue:j$2.fnNameFor(error)+(typeof message==="undefined"?"":": "+matchersUtil.pp(message))}}function isErrorConstructor(value){return typeof value==="function"&&(value===Error||j$2.isError_(value.prototype))}};getJasmineRequireObj().toBeResolved=function(j$2){return function toBeResolved(matchersUtil){return{compare:function compare(actual){if(!j$2.isPromiseLike(actual)){throw new Error("Expected toBeResolved to be called on a promise but was on a ".concat(_typeof(actual),"."))}return actual.then(function(){return{pass:true}},function(e){return{pass:false,message:"Expected a promise to be resolved but it was rejected with "+matchersUtil.pp(e)+"."}})}}}};getJasmineRequireObj().toBeResolvedTo=function(j$2){return function toBeResolvedTo(matchersUtil){return{compare:function compare(actualPromise,expectedValue){if(!j$2.isPromiseLike(actualPromise)){throw new Error("Expected toBeResolvedTo to be called on a promise but was on a ".concat(_typeof(actualPromise),"."))}function prefix(passed){return"Expected a promise "+(passed?"not ":"")+"to be resolved to "+matchersUtil.pp(expectedValue)}return actualPromise.then(function(actualValue){if(matchersUtil.equals(actualValue,expectedValue)){return{pass:true,message:prefix(true)+"."}}else{return{pass:false,message:prefix(false)+" but it was resolved to "+matchersUtil.pp(actualValue)+"."}}},function(e){return{pass:false,message:prefix(false)+" but it was rejected with "+matchersUtil.pp(e)+"."}})}}}};getJasmineRequireObj().DiffBuilder=function(j$2){var DiffBuilder=/*#__PURE__*/function(){"use strict";function DiffBuilder(config){_classCallCheck(this,DiffBuilder);this.prettyPrinter_=(config||{}).prettyPrinter||j$2.makePrettyPrinter();this.mismatches_=new j$2.MismatchTree;this.path_=new j$2.ObjectPath;this.actualRoot_=void 0;this.expectedRoot_=void 0}return _createClass(DiffBuilder,[{key:"setRoots",value:function setRoots(actual,expected){this.actualRoot_=actual;this.expectedRoot_=expected}},{key:"recordMismatch",value:function recordMismatch(formatter){this.mismatches_.add(this.path_,formatter)}},{key:"getMessage",value:function getMessage(){var _this5=this;var messages=[];this.mismatches_.traverse(function(path,isLeaf,formatter){var _this5$dereferencePat=_this5.dereferencePath_(path),actual=_this5$dereferencePat.actual,expected=_this5$dereferencePat.expected;if(formatter){messages.push(formatter(actual,expected,path,_this5.prettyPrinter_));return true}var actualCustom=_this5.prettyPrinter_.customFormat_(actual);var expectedCustom=_this5.prettyPrinter_.customFormat_(expected);var useCustom=actualCustom!==void 0||expectedCustom!==void 0;if(useCustom){var prettyActual=actualCustom||_this5.prettyPrinter_(actual);var prettyExpected=expectedCustom||_this5.prettyPrinter_(expected);messages.push(wrapPrettyPrinted(prettyActual,prettyExpected,path));return false}if(isLeaf){messages.push(_this5.defaultFormatter_(actual,expected,path))}return true});return messages.join("\n")}},{key:"withPath",value:function withPath(pathComponent,block){var oldPath=this.path_;this.path_=this.path_.add(pathComponent);block();this.path_=oldPath}},{key:"dereferencePath_",value:function dereferencePath_(objectPath){var _this6=this;var actual=this.actualRoot_;var expected=this.expectedRoot_;var handleAsymmetricExpected=function handleAsymmetricExpected(){if(j$2.isAsymmetricEqualityTester_(expected)&&j$2.isFunction_(expected.valuesForDiff_)){var asymmetricResult=expected.valuesForDiff_(actual,_this6.prettyPrinter_);expected=asymmetricResult.self;actual=asymmetricResult.other}};handleAsymmetricExpected();var _iterator11=_createForOfIteratorHelper(objectPath.components),_step11;try{for(_iterator11.s();!(_step11=_iterator11.n()).done;){var pc=_step11.value;actual=actual[pc];expected=expected[pc];handleAsymmetricExpected()}}catch(err){_iterator11.e(err)}finally{_iterator11.f()}return{actual:actual,expected:expected}}},{key:"defaultFormatter_",value:function defaultFormatter_(actual,expected,path){return wrapPrettyPrinted(this.prettyPrinter_(actual),this.prettyPrinter_(expected),path)}}])}();function wrapPrettyPrinted(actual,expected,path){return"Expected "+path+(path.depth()?" = ":"")+actual+" to equal "+expected+"."}return DiffBuilder};getJasmineRequireObj().MatchersUtil=function(j$2){function MatchersUtil(options){options=options||{};this.customTesters_=options.customTesters||[];this.pp=options.pp||function(){}}MatchersUtil.prototype.contains=function(haystack,needle){if(!haystack){return false}if(j$2.isSet(haystack)){if(haystack.has(needle)){return true}}if(j$2.isIterable_(haystack)&&!j$2.isString_(haystack)){var _iterator12=_createForOfIteratorHelper(haystack),_step12;try{for(_iterator12.s();!(_step12=_iterator12.n()).done;){var candidate=_step12.value;if(this.equals(candidate,needle)){return true}}}catch(err){_iterator12.e(err)}finally{_iterator12.f()}return false}if(haystack.indexOf){return haystack.indexOf(needle)>=0}if(j$2.isNumber_(haystack.length)){for(var i=0;i<haystack.length;i++){if(this.equals(haystack[i],needle)){return true}}}return false};MatchersUtil.prototype.buildFailureMessage=function(){var args=Array.prototype.slice.call(arguments,0),matcherName=args[0],isNot=args[1],actual=args[2],expected=args.slice(3),englishyPredicate=matcherName.replace(/[A-Z]/g,function(s){return" "+s.toLowerCase()});var message="Expected "+this.pp(actual)+(isNot?" not ":" ")+englishyPredicate;if(expected.length>0){for(var i=0;i<expected.length;i++){if(i>0){message+=","}message+=" "+this.pp(expected[i])}}return message+"."};MatchersUtil.prototype.asymmetricDiff_=function(a,b,aStack,bStack,diffBuilder){if(j$2.isFunction_(b.valuesForDiff_)){var values=b.valuesForDiff_(a,this.pp);this.eq_(values.other,values.self,aStack,bStack,diffBuilder)}else{diffBuilder.recordMismatch()}};MatchersUtil.prototype.asymmetricMatch_=function(a,b,aStack,bStack,diffBuilder){var asymmetricA=j$2.isAsymmetricEqualityTester_(a);var asymmetricB=j$2.isAsymmetricEqualityTester_(b);if(asymmetricA===asymmetricB){return void 0}var result;if(asymmetricA){result=a.asymmetricMatch(b,this);if(!result){diffBuilder.recordMismatch()}return result}if(asymmetricB){result=b.asymmetricMatch(a,this);if(!result){this.asymmetricDiff_(a,b,aStack,bStack,diffBuilder)}return result}};MatchersUtil.prototype.equals=function(a,b,diffBuilder){diffBuilder=diffBuilder||j$2.NullDiffBuilder();diffBuilder.setRoots(a,b);return this.eq_(a,b,[],[],diffBuilder)};MatchersUtil.prototype.eq_=function(a,b,aStack,bStack,diffBuilder){var _this7=this;var result=true;var asymmetricResult=this.asymmetricMatch_(a,b,aStack,bStack,diffBuilder);if(asymmetricResult!==void 0){return asymmetricResult}var _iterator13=_createForOfIteratorHelper(this.customTesters_),_step13;try{for(_iterator13.s();!(_step13=_iterator13.n()).done;){var tester=_step13.value;var customTesterResult=tester(a,b);if(customTesterResult!==void 0){if(!customTesterResult){diffBuilder.recordMismatch()}return customTesterResult}}}catch(err){_iterator13.e(err)}finally{_iterator13.f()}if(a instanceof Error&&b instanceof Error){result=a.message==b.message;if(!result){diffBuilder.recordMismatch()}return result}if(a===b){result=a!==0||1/a==1/b;if(!result){diffBuilder.recordMismatch()}return result}if(a===null||b===null){result=a===b;if(!result){diffBuilder.recordMismatch()}return result}var className=Object.prototype.toString.call(a);if(className!=Object.prototype.toString.call(b)){diffBuilder.recordMismatch();return false}switch(className){// Strings, numbers, dates, and booleans are compared by value.
|
|
287
|
-
case"[object String]":result=a==String(b);if(!result){diffBuilder.recordMismatch()}return result;case"[object Number]":result=a!=+a?b!=+b:a===0&&b===0?1/a==1/b:a==+b;if(!result){diffBuilder.recordMismatch()}return result;case"[object Date]":case"[object Boolean]":result=+a==+b;if(!result){diffBuilder.recordMismatch()}return result;case"[object ArrayBuffer]":return this.eq_(new Uint8Array(a),new Uint8Array(b),aStack,bStack,diffBuilder);// RegExps are compared by their source patterns and flags.
|
|
288
|
-
case"[object RegExp]":return a.source==b.source&&a.global==b.global&&a.multiline==b.multiline&&a.ignoreCase==b.ignoreCase}if(_typeof(a)!="object"||_typeof(b)!="object"){diffBuilder.recordMismatch();return false}var aIsDomNode=j$2.isDomNode(a);var bIsDomNode=j$2.isDomNode(b);if(aIsDomNode&&bIsDomNode){result=a.isEqualNode(b);if(!result){diffBuilder.recordMismatch()}return result}if(aIsDomNode||bIsDomNode){diffBuilder.recordMismatch();return false}var aIsPromise=j$2.isPromise(a);var bIsPromise=j$2.isPromise(b);if(aIsPromise&&bIsPromise){return a===b}var length=aStack.length;while(length--){if(aStack[length]==a){return bStack[length]==b}}aStack.push(a);bStack.push(b);var size=0;if(className=="[object Array]"){var aLength=a.length;var bLength=b.length;diffBuilder.withPath("length",function(){if(aLength!==bLength){diffBuilder.recordMismatch();result=false}});var _loop3=function _loop3(i){diffBuilder.withPath(i,function(){if(i>=bLength){diffBuilder.recordMismatch(actualArrayIsLongerFormatter.bind(null,_this7.pp));result=false}else{result=_this7.eq_(i<aLength?a[i]:void 0,i<bLength?b[i]:void 0,aStack,bStack,diffBuilder)&&result}})};for(var i=0;i<aLength||i<bLength;i++){_loop3(i)}if(!result){return false}}else if(j$2.isMap(a)&&j$2.isMap(b)){if(a.size!=b.size){diffBuilder.recordMismatch();return false}var keysA=[];var keysB=[];a.forEach(function(valueA,keyA){keysA.push(keyA)});b.forEach(function(valueB,keyB){keysB.push(keyB)});var mapKeys=[keysA,keysB];var cmpKeys=[keysB,keysA];for(var _i6=0;result&&_i6<mapKeys.length;_i6++){var mapIter=mapKeys[_i6];var cmpIter=cmpKeys[_i6];for(var j=0;result&&j<mapIter.length;j++){var mapKey=mapIter[j];var cmpKey=cmpIter[j];var mapValueA=a.get(mapKey);var mapValueB=void 0;if(j$2.isAsymmetricEqualityTester_(mapKey)||j$2.isAsymmetricEqualityTester_(cmpKey)&&this.eq_(mapKey,cmpKey,aStack,bStack,j$2.NullDiffBuilder())){mapValueB=b.get(cmpKey)}else{mapValueB=b.get(mapKey)}result=this.eq_(mapValueA,mapValueB,aStack,bStack,j$2.NullDiffBuilder())}}if(!result){diffBuilder.recordMismatch();return false}}else if(j$2.isSet(a)&&j$2.isSet(b)){if(a.size!=b.size){diffBuilder.recordMismatch();return false}var valuesA=[];a.forEach(function(valueA){valuesA.push(valueA)});var valuesB=[];b.forEach(function(valueB){valuesB.push(valueB)});var setPairs=[[valuesA,valuesB],[valuesB,valuesA]];var stackPairs=[[aStack,bStack],[bStack,aStack]];for(var _i7=0;result&&_i7<setPairs.length;_i7++){var baseValues=setPairs[_i7][0];var otherValues=setPairs[_i7][1];var baseStack=stackPairs[_i7][0];var otherStack=stackPairs[_i7][1];var _iterator14=_createForOfIteratorHelper(baseValues),_step14;try{for(_iterator14.s();!(_step14=_iterator14.n()).done;){var baseValue=_step14.value;var found=false;for(var _j=0;!found&&_j<otherValues.length;_j++){var otherValue=otherValues[_j];var prevStackSize=baseStack.length;found=this.eq_(baseValue,otherValue,baseStack,otherStack,j$2.NullDiffBuilder());if(!found&&prevStackSize!==baseStack.length){baseStack.splice(prevStackSize);otherStack.splice(prevStackSize)}}result=result&&found}}catch(err){_iterator14.e(err)}finally{_iterator14.f()}}if(!result){diffBuilder.recordMismatch();return false}}else if(j$2.isURL(a)&&j$2.isURL(b)){return a.toString()===b.toString()}else{var aCtor=a.constructor,bCtor=b.constructor;if(aCtor!==bCtor&&isFunction(aCtor)&&isFunction(bCtor)&&a instanceof aCtor&&b instanceof bCtor&&!(aCtor instanceof aCtor&&bCtor instanceof bCtor)){diffBuilder.recordMismatch(constructorsAreDifferentFormatter.bind(null,this.pp));return false}}var aKeys=MatchersUtil.keys(a,className=="[object Array]");size=aKeys.length;if(MatchersUtil.keys(b,className=="[object Array]").length!==size){diffBuilder.recordMismatch(objectKeysAreDifferentFormatter.bind(null,this.pp));result=false}var _iterator15=_createForOfIteratorHelper(aKeys),_step15;try{var _loop4=function _loop4(){var key=_step15.value;if(!j$2.util.has(b,key)){diffBuilder.recordMismatch(objectKeysAreDifferentFormatter.bind(null,_this7.pp));result=false;return 1;// continue
|
|
289
|
-
}diffBuilder.withPath(key,function(){if(!_this7.eq_(a[key],b[key],aStack,bStack,diffBuilder)){result=false}})};for(_iterator15.s();!(_step15=_iterator15.n()).done;){if(_loop4())continue}}catch(err){_iterator15.e(err)}finally{_iterator15.f()}if(!result){return false}aStack.pop();bStack.pop();return result};MatchersUtil.keys=function(obj,isArray){var allKeys=function(o){var keys=[];for(var key in o){if(j$2.util.has(o,key)){keys.push(key)}}var symbols=Object.getOwnPropertySymbols(o);var _iterator16=_createForOfIteratorHelper(symbols),_step16;try{for(_iterator16.s();!(_step16=_iterator16.n()).done;){var sym=_step16.value;if(o.propertyIsEnumerable(sym)){keys.push(sym)}}}catch(err){_iterator16.e(err)}finally{_iterator16.f()}return keys}(obj);if(!isArray){return allKeys}if(allKeys.length===0){return allKeys}var extraKeys=[];var _iterator17=_createForOfIteratorHelper(allKeys),_step17;try{for(_iterator17.s();!(_step17=_iterator17.n()).done;){var k=_step17.value;if(_typeof(k)==="symbol"||!/^[0-9]+$/.test(k)){extraKeys.push(k)}}}catch(err){_iterator17.e(err)}finally{_iterator17.f()}return extraKeys};function isFunction(obj){return typeof obj==="function"}function extraKeysAndValues(objA,objB){return MatchersUtil.keys(objA).filter(function(key){return!j$2.util.has(objB,key)}).map(function(key){return[key,objA[key]]})}function objectKeysAreDifferentFormatter(pp,actual,expected,path){var missingProperties=extraKeysAndValues(expected,actual),extraProperties=extraKeysAndValues(actual,expected),missingPropertiesMessage=formatKeyValuePairs(pp,missingProperties),extraPropertiesMessage=formatKeyValuePairs(pp,extraProperties),messages=[];if(!path.depth()){path="object"}if(missingPropertiesMessage.length){messages.push("Expected "+path+" to have properties"+missingPropertiesMessage)}if(extraPropertiesMessage.length){messages.push("Expected "+path+" not to have properties"+extraPropertiesMessage)}return messages.join("\n")}function constructorsAreDifferentFormatter(pp,actual,expected,path){if(!path.depth()){path="object"}return"Expected "+path+" to be a kind of "+j$2.fnNameFor(expected.constructor)+", but was "+pp(actual)+"."}function actualArrayIsLongerFormatter(pp,actual,expected,path){return"Unexpected "+path+(path.depth()?" = ":"")+pp(actual)+" in array."}function formatKeyValuePairs(pp,keyValuePairs){var formatted="";var _iterator18=_createForOfIteratorHelper(keyValuePairs),_step18;try{for(_iterator18.s();!(_step18=_iterator18.n()).done;){var _step18$value=_slicedToArray(_step18.value,2),key=_step18$value[0],value=_step18$value[1];formatted+="\n "+key.toString()+": "+pp(value)}}catch(err){_iterator18.e(err)}finally{_iterator18.f()}return formatted}return MatchersUtil};getJasmineRequireObj().MismatchTree=function(j$2){var MismatchTree=/*#__PURE__*/function(){"use strict";function MismatchTree(path){_classCallCheck(this,MismatchTree);this.path=path||new j$2.ObjectPath([]);this.formatter=void 0;this.children=[];this.isMismatch=false}return _createClass(MismatchTree,[{key:"add",value:function add(path,formatter){if(path.depth()===0){this.formatter=formatter;this.isMismatch=true}else{var key=path.components[0];path=path.shift();var child=this.child(key);if(!child){child=new MismatchTree(this.path.add(key));this.children.push(child)}child.add(path,formatter)}}},{key:"traverse",value:function traverse(visit){var hasChildren=this.children.length>0;if(this.isMismatch||hasChildren){if(visit(this.path,!hasChildren,this.formatter)){var _iterator19=_createForOfIteratorHelper(this.children),_step19;try{for(_iterator19.s();!(_step19=_iterator19.n()).done;){var child=_step19.value;child.traverse(visit)}}catch(err){_iterator19.e(err)}finally{_iterator19.f()}}}}},{key:"child",value:function child(key){return this.children.find(function(child){var pathEls=child.path.components;return pathEls[pathEls.length-1]===key})}}])}();return MismatchTree};getJasmineRequireObj().nothing=function(){function nothing(){return{compare:function compare(){return{pass:true}}}}return nothing};getJasmineRequireObj().NullDiffBuilder=function(j$2){return function(){return{withPath:function withPath(_,block){block()},setRoots:function setRoots(){},recordMismatch:function recordMismatch(){}}}};getJasmineRequireObj().ObjectPath=function(j$2){var ObjectPath=/*#__PURE__*/function(){"use strict";function ObjectPath(components){_classCallCheck(this,ObjectPath);this.components=components||[]}return _createClass(ObjectPath,[{key:"toString",value:function toString(){if(this.components.length){return"$"+this.components.map(formatPropertyAccess).join("")}else{return""}}},{key:"add",value:function add(component){return new ObjectPath(this.components.concat([component]))}},{key:"shift",value:function shift(){return new ObjectPath(this.components.slice(1))}},{key:"depth",value:function depth(){return this.components.length}}])}();function formatPropertyAccess(prop){if(typeof prop==="number"||_typeof(prop)==="symbol"){return"["+prop.toString()+"]"}if(isValidIdentifier(prop)){return"."+prop}return"['".concat(prop,"']")}function isValidIdentifier(string){return /^[A-Za-z\$_][A-Za-z0-9\$_]*$/.test(string)}return ObjectPath};getJasmineRequireObj().requireAsyncMatchers=function(jRequire,j$2){var availableMatchers=["toBePending","toBeResolved","toBeRejected","toBeResolvedTo","toBeRejectedWith","toBeRejectedWithError"],matchers={};for(var _i8=0,_availableMatchers2=availableMatchers;_i8<_availableMatchers2.length;_i8++){var name=_availableMatchers2[_i8];matchers[name]=jRequire[name](j$2)}return matchers};getJasmineRequireObj().toBe=function(j$2){function toBe(matchersUtil){var tip=" Tip: To check for deep equality, use .toEqual() instead of .toBe().";return{compare:function compare(actual,expected){var result={pass:actual===expected};if(_typeof(expected)==="object"){result.message=matchersUtil.buildFailureMessage("toBe",result.pass,actual,expected)+tip}return result}}}return toBe};getJasmineRequireObj().toBeCloseTo=function(){function toBeCloseTo(){return{compare:function compare(actual,expected,precision){if(precision!==0){precision=precision||2}if(expected===null||actual===null){throw new Error("Cannot use toBeCloseTo with null. Arguments evaluated to: expect("+actual+").toBeCloseTo("+expected+").")}if(expected===Infinity||expected===-Infinity){return{pass:actual===expected}}var pow=Math.pow(10,precision+1);var delta=Math.abs(expected-actual);var maxDelta=Math.pow(10,-precision)/2;return{pass:Math.round(delta*pow)<=maxDelta*pow}}}}return toBeCloseTo};getJasmineRequireObj().toBeDefined=function(){function toBeDefined(){return{compare:function compare(actual){return{pass:void 0!==actual}}}}return toBeDefined};getJasmineRequireObj().toBeFalse=function(){function toBeFalse(){return{compare:function compare(actual){return{pass:actual===false}}}}return toBeFalse};getJasmineRequireObj().toBeFalsy=function(){function toBeFalsy(){return{compare:function compare(actual){return{pass:!actual}}}}return toBeFalsy};getJasmineRequireObj().toBeGreaterThan=function(){function toBeGreaterThan(){return{compare:function compare(actual,expected){return{pass:actual>expected}}}}return toBeGreaterThan};getJasmineRequireObj().toBeGreaterThanOrEqual=function(){function toBeGreaterThanOrEqual(){return{compare:function compare(actual,expected){return{pass:actual>=expected}}}}return toBeGreaterThanOrEqual};getJasmineRequireObj().toBeInstanceOf=function(j$2){var usageError=j$2.formatErrorMsg("<toBeInstanceOf>","expect(value).toBeInstanceOf(<ConstructorFunction>)");function toBeInstanceOf(matchersUtil){return{compare:function compare(actual,expected){var actualType=actual&&actual.constructor?j$2.fnNameFor(actual.constructor):matchersUtil.pp(actual);var expectedType=expected?j$2.fnNameFor(expected):matchersUtil.pp(expected);var expectedMatcher;var pass;try{expectedMatcher=new j$2.Any(expected);pass=expectedMatcher.asymmetricMatch(actual)}catch(error){throw new Error(usageError("Expected value is not a constructor function"))}if(pass){return{pass:true,message:"Expected instance of "+actualType+" not to be an instance of "+expectedType}}else{return{pass:false,message:"Expected instance of "+actualType+" to be an instance of "+expectedType}}}}}return toBeInstanceOf};getJasmineRequireObj().toBeLessThan=function(){function toBeLessThan(){return{compare:function compare(actual,expected){return{pass:actual<expected}}}}return toBeLessThan};getJasmineRequireObj().toBeLessThanOrEqual=function(){function toBeLessThanOrEqual(){return{compare:function compare(actual,expected){return{pass:actual<=expected}}}}return toBeLessThanOrEqual};getJasmineRequireObj().toBeNaN=function(j$2){function toBeNaN(matchersUtil){return{compare:function compare(actual){var result={pass:actual!==actual};if(result.pass){result.message="Expected actual not to be NaN."}else{result.message=function(){return"Expected "+matchersUtil.pp(actual)+" to be NaN."}}return result}}}return toBeNaN};getJasmineRequireObj().toBeNegativeInfinity=function(j$2){function toBeNegativeInfinity(matchersUtil){return{compare:function compare(actual){var result={pass:actual===Number.NEGATIVE_INFINITY};if(result.pass){result.message="Expected actual not to be -Infinity."}else{result.message=function(){return"Expected "+matchersUtil.pp(actual)+" to be -Infinity."}}return result}}}return toBeNegativeInfinity};getJasmineRequireObj().toBeNull=function(){function toBeNull(){return{compare:function compare(actual){return{pass:actual===null}}}}return toBeNull};getJasmineRequireObj().toBeNullish=function(){function toBeNullish(){return{compare:function compare(actual){return{pass:null===actual||void 0===actual}}}}return toBeNullish};getJasmineRequireObj().toBePositiveInfinity=function(j$2){function toBePositiveInfinity(matchersUtil){return{compare:function compare(actual){var result={pass:actual===Number.POSITIVE_INFINITY};if(result.pass){result.message="Expected actual not to be Infinity."}else{result.message=function(){return"Expected "+matchersUtil.pp(actual)+" to be Infinity."}}return result}}}return toBePositiveInfinity};getJasmineRequireObj().toBeTrue=function(){function toBeTrue(){return{compare:function compare(actual){return{pass:actual===true}}}}return toBeTrue};getJasmineRequireObj().toBeTruthy=function(){function toBeTruthy(){return{compare:function compare(actual){return{pass:!!actual}}}}return toBeTruthy};getJasmineRequireObj().toBeUndefined=function(){function toBeUndefined(){return{compare:function compare(actual){return{pass:void 0===actual}}}}return toBeUndefined};getJasmineRequireObj().toContain=function(){function toContain(matchersUtil){return{compare:function compare(actual,expected){return{pass:matchersUtil.contains(actual,expected)}}}}return toContain};getJasmineRequireObj().toEqual=function(j$2){function toEqual(matchersUtil){return{compare:function compare(actual,expected){var result={pass:false},diffBuilder=new j$2.DiffBuilder({prettyPrinter:matchersUtil.pp});result.pass=matchersUtil.equals(actual,expected,diffBuilder);result.message=diffBuilder.getMessage();return result}}}return toEqual};getJasmineRequireObj().toHaveBeenCalled=function(j$2){var getErrorMsg=j$2.formatErrorMsg("<toHaveBeenCalled>","expect(<spyObj>).toHaveBeenCalled()");function toHaveBeenCalled(matchersUtil){return{compare:function compare(actual){var result={};if(!j$2.isSpy(actual)){throw new Error(getErrorMsg("Expected a spy, but got "+matchersUtil.pp(actual)+"."))}if(arguments.length>1){throw new Error(getErrorMsg("Does not take arguments, use toHaveBeenCalledWith"))}result.pass=actual.calls.any();actual.calls.all().forEach(function(call){return call.verified=true});result.message=result.pass?"Expected spy "+actual.and.identity+" not to have been called.":"Expected spy "+actual.and.identity+" to have been called.";return result}}}return toHaveBeenCalled};getJasmineRequireObj().toHaveBeenCalledBefore=function(j$2){var getErrorMsg=j$2.formatErrorMsg("<toHaveBeenCalledBefore>","expect(<spyObj>).toHaveBeenCalledBefore(<spyObj>)");function toHaveBeenCalledBefore(matchersUtil){return{compare:function compare(firstSpy,latterSpy){if(!j$2.isSpy(firstSpy)){throw new Error(getErrorMsg("Expected a spy, but got "+matchersUtil.pp(firstSpy)+"."))}if(!j$2.isSpy(latterSpy)){throw new Error(getErrorMsg("Expected a spy, but got "+matchersUtil.pp(latterSpy)+"."))}var result={pass:false};if(!firstSpy.calls.count()){result.message="Expected spy "+firstSpy.and.identity+" to have been called.";return result}if(!latterSpy.calls.count()){result.message="Expected spy "+latterSpy.and.identity+" to have been called.";return result}var latest1stSpyCall=firstSpy.calls.mostRecent().invocationOrder;var first2ndSpyCall=latterSpy.calls.first().invocationOrder;result.pass=latest1stSpyCall<first2ndSpyCall;if(result.pass){firstSpy.calls.mostRecent().verified=true;latterSpy.calls.first().verified=true;result.message="Expected spy "+firstSpy.and.identity+" to not have been called before spy "+latterSpy.and.identity+", but it was"}else{var first1stSpyCall=firstSpy.calls.first().invocationOrder;var latest2ndSpyCall=latterSpy.calls.mostRecent().invocationOrder;if(first1stSpyCall<first2ndSpyCall){result.message="Expected latest call to spy "+firstSpy.and.identity+" to have been called before first call to spy "+latterSpy.and.identity+" (no interleaved calls)"}else if(latest2ndSpyCall>latest1stSpyCall){result.message="Expected first call to spy "+latterSpy.and.identity+" to have been called after latest call to spy "+firstSpy.and.identity+" (no interleaved calls)"}else{result.message="Expected spy "+firstSpy.and.identity+" to have been called before spy "+latterSpy.and.identity}}return result}}}return toHaveBeenCalledBefore};getJasmineRequireObj().toHaveBeenCalledOnceWith=function(j$2){var getErrorMsg=j$2.formatErrorMsg("<toHaveBeenCalledOnceWith>","expect(<spyObj>).toHaveBeenCalledOnceWith(...arguments)");function toHaveBeenCalledOnceWith(matchersUtil){return{compare:function compare(){var args=Array.prototype.slice.call(arguments,0),actual=args[0],expectedArgs=args.slice(1);if(!j$2.isSpy(actual)){throw new Error(getErrorMsg("Expected a spy, but got "+matchersUtil.pp(actual)+"."))}var prettyPrintedCalls=actual.calls.allArgs().map(function(argsForCall){return" "+matchersUtil.pp(argsForCall)});if(actual.calls.count()===1&&matchersUtil.contains(actual.calls.allArgs(),expectedArgs)){var firstIndex=actual.calls.all().findIndex(function(call){return matchersUtil.equals(call.args,expectedArgs)});if(firstIndex>-1){actual.calls.all()[firstIndex].verified=true}return{pass:true,message:"Expected spy "+actual.and.identity+" to have been called 0 times, multiple times, or once, but with arguments different from:\n "+matchersUtil.pp(expectedArgs)+"\nBut the actual call was:\n"+prettyPrintedCalls.join(",\n")+".\n\n"}}function getDiffs(){return actual.calls.allArgs().map(function(argsForCall,callIx){var diffBuilder=new j$2.DiffBuilder;matchersUtil.equals(argsForCall,expectedArgs,diffBuilder);return diffBuilder.getMessage()})}function butString(){switch(actual.calls.count()){case 0:return"But it was never called.\n\n";case 1:return"But the actual call was:\n"+prettyPrintedCalls.join(",\n")+".\n"+getDiffs().join("\n")+"\n\n";default:return"But the actual calls were:\n"+prettyPrintedCalls.join(",\n")+".\n\n"}}return{pass:false,message:"Expected spy "+actual.and.identity+" to have been called only once, and with given args:\n "+matchersUtil.pp(expectedArgs)+"\n"+butString()}}}}return toHaveBeenCalledOnceWith};getJasmineRequireObj().toHaveBeenCalledTimes=function(j$2){var getErrorMsg=j$2.formatErrorMsg("<toHaveBeenCalledTimes>","expect(<spyObj>).toHaveBeenCalledTimes(<Number>)");function toHaveBeenCalledTimes(matchersUtil){return{compare:function compare(actual,expected){if(!j$2.isSpy(actual)){throw new Error(getErrorMsg("Expected a spy, but got "+matchersUtil.pp(actual)+"."))}var args=Array.prototype.slice.call(arguments,0),result={pass:false};if(!j$2.isNumber_(expected)){throw new Error(getErrorMsg("The expected times failed is a required argument and must be a number."))}actual=args[0];var callsCount=actual.calls.count();var timesMessage=expected===1?"once":expected+" times";result.pass=callsCount===expected;if(result.pass){var allCalls=actual.calls.all();var max=Math.min(expected,callsCount);for(var i=0;i<max;i++){allCalls[i].verified=true}}result.message=result.pass?"Expected spy "+actual.and.identity+" not to have been called "+timesMessage+". It was called "+callsCount+" times.":"Expected spy "+actual.and.identity+" to have been called "+timesMessage+". It was called "+callsCount+" times.";return result}}}return toHaveBeenCalledTimes};getJasmineRequireObj().toHaveBeenCalledWith=function(j$2){var getErrorMsg=j$2.formatErrorMsg("<toHaveBeenCalledWith>","expect(<spyObj>).toHaveBeenCalledWith(...arguments)");function toHaveBeenCalledWith(matchersUtil){return{compare:function compare(){var args=Array.prototype.slice.call(arguments,0),actual=args[0],expectedArgs=args.slice(1),result={pass:false};if(!j$2.isSpy(actual)){throw new Error(getErrorMsg("Expected a spy, but got "+matchersUtil.pp(actual)+"."))}if(!actual.calls.any()){result.message=function(){return"Expected spy "+actual.and.identity+" to have been called with:\n "+matchersUtil.pp(expectedArgs)+"\nbut it was never called."};return result}if(matchersUtil.contains(actual.calls.allArgs(),expectedArgs)){actual.calls.all().filter(function(call){return matchersUtil.equals(call.args,expectedArgs)}).forEach(function(call){return call.verified=true});result.pass=true;result.message=function(){return"Expected spy "+actual.and.identity+" not to have been called with:\n "+matchersUtil.pp(expectedArgs)+"\nbut it was."}}else{result.message=function(){var prettyPrintedCalls=actual.calls.allArgs().map(function(argsForCall){return" "+matchersUtil.pp(argsForCall)});var diffs=actual.calls.allArgs().map(function(argsForCall,callIx){var diffBuilder=new j$2.DiffBuilder;matchersUtil.equals(argsForCall,expectedArgs,diffBuilder);return"Call "+callIx+":\n"+diffBuilder.getMessage().replace(/^/gm," ")});return"Expected spy "+actual.and.identity+" to have been called with:\n "+matchersUtil.pp(expectedArgs)+"\nbut actual calls were:\n"+prettyPrintedCalls.join(",\n")+".\n\n"+diffs.join("\n")}}return result}}}return toHaveBeenCalledWith};getJasmineRequireObj().toHaveClass=function(j$2){function toHaveClass(matchersUtil){return{compare:function compare(actual,expected){if(!isElement(actual)){throw new Error(matchersUtil.pp(actual)+" is not a DOM element")}return{pass:actual.classList.contains(expected)}}}}function isElement(maybeEl){return maybeEl&&maybeEl.classList&&j$2.isFunction_(maybeEl.classList.contains)}return toHaveClass};getJasmineRequireObj().toHaveClasses=function(j$2){function toHaveClasses(matchersUtil){return{compare:function compare(actual,expected){if(!isElement(actual)){throw new Error(matchersUtil.pp(actual)+" is not a DOM element")}return{pass:expected.every(function(e){return actual.classList.contains(e)})}}}}function isElement(maybeEl){return maybeEl&&maybeEl.classList&&j$2.isFunction_(maybeEl.classList.contains)}return toHaveClasses};getJasmineRequireObj().toHaveNoOtherSpyInteractions=function(j$2){var getErrorMsg=j$2.formatErrorMsg("<toHaveNoOtherSpyInteractions>","expect(<spyObj>).toHaveNoOtherSpyInteractions()");function toHaveNoOtherSpyInteractions(matchersUtil){return{compare:function compare(actual){var result={};if(!j$2.isObject_(actual)){throw new Error(getErrorMsg("Expected an object, but got "+_typeof(actual)+"."))}if(arguments.length>1){throw new Error(getErrorMsg("Does not take arguments"))}result.pass=true;var hasSpy=false;var unexpectedCalls=[];var _loop5=function _loop5(){var spy=_Object$values[_i9];if(!j$2.isSpy(spy)){return 1;// continue
|
|
290
|
-
}hasSpy=true;var unverifiedCalls=spy.calls.all().filter(function(call){return!call.verified});if(unverifiedCalls.length>0){result.pass=false}unverifiedCalls.forEach(function(unverifiedCall){unexpectedCalls.push([spy.and.identity,matchersUtil.pp(unverifiedCall.args)])})};for(var _i9=0,_Object$values=Object.values(actual);_i9<_Object$values.length;_i9++){if(_loop5())continue}if(!hasSpy){throw new Error(getErrorMsg("Expected an object with spies, but object has no spies."))}if(result.pass){result.message="Expected a spy object to have other spy interactions but it didn't."}else{var ppUnexpectedCalls=unexpectedCalls.map(function(_ref7){var _ref8=_slicedToArray(_ref7,2),spyName=_ref8[0],args=_ref8[1];return" ".concat(spyName," called with ").concat(args)}).join(",\n");result.message="Expected a spy object to have no other spy interactions, but it had the following calls:\n"+ppUnexpectedCalls+"."}return result}}}return toHaveNoOtherSpyInteractions};getJasmineRequireObj().toHaveSize=function(j$2){function toHaveSize(matchersUtil){return{compare:function compare(actual,expected){var result={pass:false};if(j$2.isA_("WeakSet",actual)||j$2.isWeakMap(actual)||j$2.isDataView(actual)){throw new Error("Cannot get size of "+actual+".")}var actualSize;if(j$2.isSet(actual)||j$2.isMap(actual)){actualSize=actual.size}else if(isLength(actual.length)){actualSize=actual.length}else{actualSize=Object.keys(actual).length}result.pass=actualSize===expected;if(!result.pass){result.message=function(){return"Expected "+matchersUtil.pp(actual)+" with size "+actualSize+" to have size "+expected+"."}}return result}}}var MAX_SAFE_INTEGER=Number.MAX_SAFE_INTEGER||9007199254740991;function isLength(value){return typeof value=="number"&&value>-1&&value%1===0&&value<=MAX_SAFE_INTEGER}return toHaveSize};getJasmineRequireObj().toHaveSpyInteractions=function(j$2){var getErrorMsg=j$2.formatErrorMsg("<toHaveSpyInteractions>","expect(<spyObj>).toHaveSpyInteractions()");function toHaveSpyInteractions(matchersUtil){return{compare:function compare(actual){var result={};if(!j$2.isObject_(actual)){throw new Error(getErrorMsg("Expected a spy object, but got "+_typeof(actual)+"."))}if(arguments.length>1){throw new Error(getErrorMsg("Does not take arguments"))}result.pass=false;var hasSpy=false;var calledSpies=[];for(var _i0=0,_Object$values2=Object.values(actual);_i0<_Object$values2.length;_i0++){var spy=_Object$values2[_i0];if(!j$2.isSpy(spy)){continue}hasSpy=true;if(spy.calls.any()){result.pass=true;calledSpies.push([spy.and.identity,spy.calls.count()])}}if(!hasSpy){throw new Error(getErrorMsg("Expected a spy object with spies, but object has no spies."))}var resultMessage;if(result.pass){resultMessage="Expected spy object spies not to have been called, but the following spies were called: ";resultMessage+=calledSpies.map(function(_ref9){var _ref0=_slicedToArray(_ref9,2),spyName=_ref0[0],spyCount=_ref0[1];return"".concat(spyName," called ").concat(spyCount," time(s)")}).join(", ")}else{resultMessage="Expected spy object spies to have been called, but no spies were called."}result.message=resultMessage;return result}}}return toHaveSpyInteractions};getJasmineRequireObj().toMatch=function(j$2){var getErrorMsg=j$2.formatErrorMsg("<toMatch>","expect(<expectation>).toMatch(<string> || <regexp>)");function toMatch(){return{compare:function compare(actual,expected){if(!j$2.isString_(expected)&&!j$2.isA_("RegExp",expected)){throw new Error(getErrorMsg("Expected is not a String or a RegExp"))}var regexp=new RegExp(expected);return{pass:regexp.test(actual)}}}}return toMatch};getJasmineRequireObj().toThrow=function(j$2){var getErrorMsg=j$2.formatErrorMsg("<toThrow>","expect(function() {<expectation>}).toThrow()");function toThrow(matchersUtil){return{compare:function compare(actual,expected){var result={pass:false};var threw=false;var thrown;if(typeof actual!="function"){throw new Error(getErrorMsg("Actual is not a Function"))}try{actual()}catch(e){threw=true;thrown=e}if(!threw){result.message="Expected function to throw an exception.";return result}if(arguments.length==1){result.pass=true;result.message=function(){return"Expected function not to throw, but it threw "+matchersUtil.pp(thrown)+"."};return result}if(matchersUtil.equals(thrown,expected)){result.pass=true;result.message=function(){return"Expected function not to throw "+matchersUtil.pp(expected)+"."}}else{result.message=function(){return"Expected function to throw "+matchersUtil.pp(expected)+", but it threw "+matchersUtil.pp(thrown)+"."}}return result}}}return toThrow};getJasmineRequireObj().toThrowError=function(j$2){var getErrorMsg=j$2.formatErrorMsg("<toThrowError>","expect(function() {<expectation>}).toThrowError(<ErrorConstructor>, <message>)");function toThrowError(matchersUtil){return{compare:function compare(actual){var errorMatcher=getMatcher.apply(null,arguments);if(typeof actual!="function"){throw new Error(getErrorMsg("Actual is not a Function"))}var thrown;try{actual();return fail("Expected function to throw an Error.")}catch(e){thrown=e}if(!j$2.isError_(thrown)){return fail(function(){return"Expected function to throw an Error, but it threw "+matchersUtil.pp(thrown)+"."})}return errorMatcher.match(thrown)}};function getMatcher(){var expected,errorType;if(arguments[2]){errorType=arguments[1];expected=arguments[2];if(!isAnErrorType(errorType)){throw new Error(getErrorMsg("Expected error type is not an Error."))}return exactMatcher(expected,errorType)}else if(arguments[1]){expected=arguments[1];if(isAnErrorType(arguments[1])){return exactMatcher(null,arguments[1])}else{return exactMatcher(arguments[1],null)}}else{return anyMatcher()}}function anyMatcher(){return{match:function match(error){return pass("Expected function not to throw an Error, but it threw "+j$2.fnNameFor(error)+".")}}}function exactMatcher(expected,errorType){if(expected&&!isStringOrRegExp(expected)){if(errorType){throw new Error(getErrorMsg("Expected error message is not a string or RegExp."))}else{throw new Error(getErrorMsg("Expected is not an Error, string, or RegExp."))}}function messageMatch(message){if(typeof expected=="string"){return expected==message}else{return expected.test(message)}}var errorTypeDescription=errorType?j$2.fnNameFor(errorType):"an exception";function thrownDescription(thrown){var thrownName=errorType?j$2.fnNameFor(thrown.constructor):"an exception";var thrownMessage="";if(expected){thrownMessage=" with message "+matchersUtil.pp(thrown.message)}return thrownName+thrownMessage}function messageDescription(){if(expected===null){return""}else if(expected instanceof RegExp){return" with a message matching "+matchersUtil.pp(expected)}else{return" with message "+matchersUtil.pp(expected)}}function matches(error){return(errorType===null||error instanceof errorType)&&(expected===null||messageMatch(error.message))}return{match:function match(thrown){if(matches(thrown)){return pass(function(){return"Expected function not to throw "+errorTypeDescription+messageDescription()+"."})}else{return fail(function(){return"Expected function to throw "+errorTypeDescription+messageDescription()+", but it threw "+thrownDescription(thrown)+"."})}}}}function isStringOrRegExp(potential){return potential instanceof RegExp||typeof potential=="string"}function isAnErrorType(type){if(typeof type!=="function"){return false}var Surrogate=function Surrogate(){};Surrogate.prototype=type.prototype;return j$2.isError_(new Surrogate)}}function pass(message){return{pass:true,message:message}}function fail(message){return{pass:false,message:message}}return toThrowError};getJasmineRequireObj().toThrowMatching=function(j$2){var usageError=j$2.formatErrorMsg("<toThrowMatching>","expect(function() {<expectation>}).toThrowMatching(<Predicate>)");function toThrowMatching(matchersUtil){return{compare:function compare(actual,predicate){if(typeof actual!=="function"){throw new Error(usageError("Actual is not a Function"))}if(typeof predicate!=="function"){throw new Error(usageError("Predicate is not a Function"))}var thrown;try{actual();return fail("Expected function to throw an exception.")}catch(e){thrown=e}if(predicate(thrown)){return pass("Expected function not to throw an exception matching a predicate.")}else{return fail(function(){return"Expected function to throw an exception matching a predicate, but it threw "+thrownDescription(thrown)+"."})}}};function thrownDescription(thrown){if(thrown&&thrown.constructor){return j$2.fnNameFor(thrown.constructor)+" with message "+matchersUtil.pp(thrown.message)}else{return matchersUtil.pp(thrown)}}}function pass(message){return{pass:true,message:message}}function fail(message){return{pass:false,message:message}}return toThrowMatching};getJasmineRequireObj().MockDate=function(j$2){function MockDate(global2){var currentTime=0;if(!global2||!global2.Date){this.install=function(){};this.tick=function(){};this.uninstall=function(){};return this}var GlobalDate=global2.Date;this.install=function(mockDate){if(mockDate instanceof GlobalDate){currentTime=mockDate.getTime()}else{if(mockDate!==void 0){throw new Error("The argument to jasmine.clock().mockDate(), if specified, should be a Date instance.")}currentTime=new GlobalDate().getTime()}global2.Date=FakeDate};this.tick=function(millis2){millis2=millis2||0;currentTime=currentTime+millis2};this.uninstall=function(){currentTime=0;global2.Date=GlobalDate};createDateProperties();return this;function FakeDate(){switch(arguments.length){case 0:return new GlobalDate(currentTime);case 1:return new GlobalDate(arguments[0]);case 2:return new GlobalDate(arguments[0],arguments[1]);case 3:return new GlobalDate(arguments[0],arguments[1],arguments[2]);case 4:return new GlobalDate(arguments[0],arguments[1],arguments[2],arguments[3]);case 5:return new GlobalDate(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4]);case 6:return new GlobalDate(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);default:return new GlobalDate(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6])}}function createDateProperties(){FakeDate.prototype=GlobalDate.prototype;FakeDate.now=function(){return currentTime};FakeDate.toSource=GlobalDate.toSource;FakeDate.toString=GlobalDate.toString;FakeDate.parse=GlobalDate.parse;FakeDate.UTC=GlobalDate.UTC}}return MockDate};getJasmineRequireObj().NeverSkipPolicy=function(j$2){function NeverSkipPolicy(queueableFns){}NeverSkipPolicy.prototype.skipTo=function(lastRanFnIx){return lastRanFnIx+1};NeverSkipPolicy.prototype.fnErrored=function(fnIx){};return NeverSkipPolicy};getJasmineRequireObj().ParallelReportDispatcher=function(j$2){"use strict";function ParallelReportDispatcher(onError){var deps=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var ReportDispatcher=deps.ReportDispatcher||j$2.ReportDispatcher;var QueueRunner=deps.QueueRunner||j$2.QueueRunner;var globalErrors=deps.globalErrors||new j$2.GlobalErrors;var dispatcher=new ReportDispatcher(j$2.reporterEvents,function(queueRunnerOptions){queueRunnerOptions=__spreadProps(__spreadValues({},queueRunnerOptions),{globalErrors:globalErrors,timeout:{setTimeout:setTimeout,clearTimeout:clearTimeout},fail:function fail(error){if(!error){error=new Error("A reporter called done.fail()")}onError(error)},onException:function onException(error){onError(error)}});new QueueRunner(queueRunnerOptions).execute()},function(error){onError(error)});var self2={/**
|
|
291
|
-
* Adds a reporter to the list of reporters that events will be dispatched to.
|
|
292
|
-
* @function
|
|
293
|
-
* @name ParallelReportDispatcher#addReporter
|
|
294
|
-
* @param {Reporter} reporterToAdd The reporter to be added.
|
|
295
|
-
* @see custom_reporter
|
|
296
|
-
*/addReporter:dispatcher.addReporter.bind(dispatcher),/**
|
|
297
|
-
* Clears all registered reporters.
|
|
298
|
-
* @function
|
|
299
|
-
* @name ParallelReportDispatcher#clearReporters
|
|
300
|
-
*/clearReporters:dispatcher.clearReporters.bind(dispatcher),/**
|
|
301
|
-
* Installs a global error handler. After this method is called, any
|
|
302
|
-
* unhandled exceptions or unhandled promise rejections will be passed to
|
|
303
|
-
* the onError callback that was passed to the constructor.
|
|
304
|
-
* @function
|
|
305
|
-
* @name ParallelReportDispatcher#installGlobalErrors
|
|
306
|
-
*/installGlobalErrors:globalErrors.install.bind(globalErrors),/**
|
|
307
|
-
* Uninstalls the global error handler.
|
|
308
|
-
* @function
|
|
309
|
-
* @name ParallelReportDispatcher#uninstallGlobalErrors
|
|
310
|
-
*/uninstallGlobalErrors:function uninstallGlobalErrors(){globalErrors.uninstall(globalErrors)}};var _iterator20=_createForOfIteratorHelper(j$2.reporterEvents),_step20;try{for(_iterator20.s();!(_step20=_iterator20.n()).done;){var eventName=_step20.value;self2[eventName]=dispatcher[eventName].bind(dispatcher)}}catch(err){_iterator20.e(err)}finally{_iterator20.f()}return self2}return ParallelReportDispatcher};getJasmineRequireObj().makePrettyPrinter=function(j$2){var SinglePrettyPrintRun=/*#__PURE__*/function(){"use strict";function SinglePrettyPrintRun(customObjectFormatters,pp){_classCallCheck(this,SinglePrettyPrintRun);this.customObjectFormatters_=customObjectFormatters;this.ppNestLevel_=0;this.seen=[];this.length=0;this.stringParts=[];this.pp_=pp}return _createClass(SinglePrettyPrintRun,[{key:"format",value:function format(value){this.ppNestLevel_++;try{var customFormatResult=this.applyCustomFormatters_(value);if(customFormatResult){this.emitScalar(customFormatResult)}else if(value===void 0){this.emitScalar("undefined")}else if(value===null){this.emitScalar("null")}else if(value===0&&1/value===-Infinity){this.emitScalar("-0")}else if(value===j$2.getGlobal()){this.emitScalar("<global>")}else if(value.jasmineToString){this.emitScalar(value.jasmineToString(this.pp_))}else if(j$2.isString_(value)){this.emitString(value)}else if(j$2.isSpy(value)){this.emitScalar("spy on "+value.and.identity)}else if(j$2.isSpy(value.toString)){this.emitScalar("spy on "+value.toString.and.identity)}else if(value instanceof RegExp){this.emitScalar(value.toString())}else if(typeof value==="function"){if(value.name){this.emitScalar("Function '".concat(value.name,"'"))}else{this.emitScalar("Function")}}else if(j$2.isDomNode(value)){if(value.tagName){this.emitDomElement(value)}else{this.emitScalar("HTMLNode")}}else if(value instanceof Date){this.emitScalar("Date("+value+")")}else if(j$2.isSet(value)){this.emitSet(value)}else if(j$2.isMap(value)){this.emitMap(value)}else if(j$2.isTypedArray_(value)){this.emitTypedArray(value)}else if(value.toString&&_typeof(value)==="object"&&!j$2.isArray_(value)&&hasCustomToString(value)){try{this.emitScalar(value.toString())}catch(e){this.emitScalar("has-invalid-toString-method")}}else if(this.seen.includes(value)){this.emitScalar("<circular reference: "+(j$2.isArray_(value)?"Array":"Object")+">")}else if(j$2.isArray_(value)||j$2.isA_("Object",value)){this.seen.push(value);if(j$2.isArray_(value)){this.emitArray(value)}else{this.emitObject(value)}this.seen.pop()}else{this.emitScalar(value.toString())}}catch(e){if(this.ppNestLevel_>1||!(e instanceof MaxCharsReachedError)){throw e}}finally{this.ppNestLevel_--}}},{key:"applyCustomFormatters_",value:function applyCustomFormatters_(value){return customFormat(value,this.customObjectFormatters_)}},{key:"iterateObject",value:function iterateObject(obj,fn){var objKeys=j$2.MatchersUtil.keys(obj,j$2.isArray_(obj));var length=Math.min(objKeys.length,j$2.MAX_PRETTY_PRINT_ARRAY_LENGTH);for(var i=0;i<length;i++){fn(objKeys[i])}return objKeys.length>length}},{key:"emitScalar",value:function emitScalar(value){this.append(value)}},{key:"emitString",value:function emitString(value){this.append("'"+value+"'")}},{key:"emitArray",value:function emitArray(array){var _this8=this;if(this.ppNestLevel_>j$2.MAX_PRETTY_PRINT_DEPTH){this.append("Array");return}var length=Math.min(array.length,j$2.MAX_PRETTY_PRINT_ARRAY_LENGTH);this.append("[ ");for(var i=0;i<length;i++){if(i>0){this.append(", ")}this.format(array[i])}if(array.length>length){this.append(", ...")}var first=array.length===0;var wasTruncated=this.iterateObject(array,function(property){if(first){first=false}else{_this8.append(", ")}_this8.formatProperty(array,property)});if(wasTruncated){this.append(", ...")}this.append(" ]")}},{key:"emitSet",value:function emitSet(set){if(this.ppNestLevel_>j$2.MAX_PRETTY_PRINT_DEPTH){this.append("Set");return}this.append("Set( ");var size=Math.min(set.size,j$2.MAX_PRETTY_PRINT_ARRAY_LENGTH);var i=0;set.forEach(function(value,key){if(i>=size){return}if(i>0){this.append(", ")}this.format(value);i++},this);if(set.size>size){this.append(", ...")}this.append(" )")}},{key:"emitMap",value:function emitMap(map){if(this.ppNestLevel_>j$2.MAX_PRETTY_PRINT_DEPTH){this.append("Map");return}this.append("Map( ");var size=Math.min(map.size,j$2.MAX_PRETTY_PRINT_ARRAY_LENGTH);var i=0;map.forEach(function(value,key){if(i>=size){return}if(i>0){this.append(", ")}this.format([key,value]);i++},this);if(map.size>size){this.append(", ...")}this.append(" )")}},{key:"emitObject",value:function emitObject(obj){var _this9=this;var ctor=obj.constructor;var constructorName=typeof ctor==="function"&&obj instanceof ctor?j$2.fnNameFor(obj.constructor):"null";this.append(constructorName);if(this.ppNestLevel_>j$2.MAX_PRETTY_PRINT_DEPTH){return}this.append("({ ");var first=true;var wasTruncated=this.iterateObject(obj,function(property){if(first){first=false}else{_this9.append(", ")}_this9.formatProperty(obj,property)});if(wasTruncated){this.append(", ...")}this.append(" })")}},{key:"emitTypedArray",value:function emitTypedArray(arr){var constructorName=j$2.fnNameFor(arr.constructor);var limitedArray=Array.prototype.slice.call(arr,0,j$2.MAX_PRETTY_PRINT_ARRAY_LENGTH);var itemsString=Array.prototype.join.call(limitedArray,", ");if(limitedArray.length!==arr.length){itemsString+=", ..."}this.append(constructorName+" [ "+itemsString+" ]")}},{key:"emitDomElement",value:function emitDomElement(el){var tagName=el.tagName.toLowerCase();var out="<"+tagName;var _iterator21=_createForOfIteratorHelper(el.attributes),_step21;try{for(_iterator21.s();!(_step21=_iterator21.n()).done;){var attr=_step21.value;out+=" "+attr.name;if(attr.value!==""){out+="=\""+attr.value+"\""}}}catch(err){_iterator21.e(err)}finally{_iterator21.f()}out+=">";if(el.childElementCount!==0||el.textContent!==""){out+="...</"+tagName+">"}this.append(out)}},{key:"formatProperty",value:function formatProperty(obj,property){if(_typeof(property)==="symbol"){this.append(property.toString())}else{this.append(property)}this.append(": ");this.format(obj[property])}},{key:"append",value:function append(value){if(typeof value!=="string"){value=Object.prototype.toString.call(value)}var result=truncate(value,j$2.MAX_PRETTY_PRINT_CHARS-this.length);this.length+=result.value.length;this.stringParts.push(result.value);if(result.truncated){throw new MaxCharsReachedError}}}])}();function hasCustomToString(value){try{return j$2.isFunction_(value.toString)&&value.toString!==Object.prototype.toString&&value.toString()!==Object.prototype.toString.call(value)}catch(e){return true}}function truncate(s,maxlen){if(s.length<=maxlen){return{value:s,truncated:false}}s=s.substring(0,maxlen-4)+" ...";return{value:s,truncated:true}}function MaxCharsReachedError(){this.message="Exceeded "+j$2.MAX_PRETTY_PRINT_CHARS+" characters while pretty-printing a value"}MaxCharsReachedError.prototype=new Error;function customFormat(value,customObjectFormatters){var _iterator22=_createForOfIteratorHelper(customObjectFormatters),_step22;try{for(_iterator22.s();!(_step22=_iterator22.n()).done;){var formatter=_step22.value;var result=formatter(value);if(result!==void 0){return result}}}catch(err){_iterator22.e(err)}finally{_iterator22.f()}}return function(customObjectFormatters){customObjectFormatters=customObjectFormatters||[];var _pp=function pp(value){var prettyPrinter=new SinglePrettyPrintRun(customObjectFormatters,_pp);prettyPrinter.format(value);return prettyPrinter.stringParts.join("")};_pp.customFormat_=function(value){return customFormat(value,customObjectFormatters)};return _pp}};getJasmineRequireObj().QueueRunner=function(j$2){var nextid=1;function StopExecutionError(){}StopExecutionError.prototype=new Error;j$2.StopExecutionError=StopExecutionError;function once(fn,onTwice){var called=false;return function(arg){if(called){if(onTwice){onTwice()}}else{called=true;fn(arg)}return null}}function fallbackOnMultipleDone(){console.error(new Error("An asynchronous function called its 'done' callback more than once, in a QueueRunner without a onMultipleDone handler."))}function emptyFn(){}function QueueRunner(attrs){this.id_=nextid++;this.queueableFns=attrs.queueableFns||[];var _iterator23=_createForOfIteratorHelper(this.queueableFns),_step23;try{for(_iterator23.s();!(_step23=_iterator23.n()).done;){var f2=_step23.value;if(!f2){throw new Error("Received a falsy queueableFn")}if(!f2.fn){throw new Error("Received a queueableFn with no fn")}}}catch(err){_iterator23.e(err)}finally{_iterator23.f()}this.onComplete=attrs.onComplete||emptyFn;this.clearStack=attrs.clearStack||function(fn){fn()};this.onException=attrs.onException||emptyFn;this.onMultipleDone=attrs.onMultipleDone||fallbackOnMultipleDone;this.userContext=attrs.userContext||new j$2.UserContext;this.timeout=attrs.timeout||{setTimeout:setTimeout,clearTimeout:clearTimeout};this.fail=attrs.fail||emptyFn;this.globalErrors=attrs.globalErrors||{pushListener:emptyFn,popListener:emptyFn};var SkipPolicy=attrs.SkipPolicy||j$2.NeverSkipPolicy;this.skipPolicy_=new SkipPolicy(this.queueableFns);this.errored_=false;if(typeof this.onComplete!=="function"){throw new Error("invalid onComplete "+JSON.stringify(this.onComplete))}}QueueRunner.prototype.execute=function(){var _this0=this;this.handleFinalError=function(error,event){_this0.onException(errorOrMsgForGlobalError(error,event))};this.globalErrors.pushListener(this.handleFinalError);this.run(0)};QueueRunner.prototype.clearTimeout=function(timeoutId){Function.prototype.apply.apply(this.timeout.clearTimeout,[j$2.getGlobal(),[timeoutId]])};QueueRunner.prototype.setTimeout=function(fn,timeout){return Function.prototype.apply.apply(this.timeout.setTimeout,[j$2.getGlobal(),[fn,timeout]])};QueueRunner.prototype.attempt=function attempt(iterativeIndex){var _this1=this;var timeoutId;var timedOut;var completedSynchronously=true;var onException=function onException(e){_this1.onException(e);_this1.recordError_(iterativeIndex)};function handleError(error,event){onException(errorOrMsgForGlobalError(error,event))}var cleanup=once(function(){if(timeoutId!==void 0){_this1.clearTimeout(timeoutId)}_this1.globalErrors.popListener(handleError)});var next=once(function(err){cleanup();if(typeof err!=="undefined"){if(!(err instanceof StopExecutionError)&&!err.jasmineMessage){_this1.fail(err)}_this1.recordError_(iterativeIndex)}var runNext=function runNext(){_this1.run(_this1.nextFnIx_(iterativeIndex))};if(completedSynchronously){_this1.setTimeout(runNext)}else{runNext()}},function(){try{if(!timedOut){_this1.onMultipleDone()}}catch(error){console.error(error)}});timedOut=false;var queueableFn=this.queueableFns[iterativeIndex];next.fail=function nextFail(){this.fail.apply(null,arguments);this.recordError_(iterativeIndex);next()}.bind(this);this.globalErrors.pushListener(handleError);if(queueableFn.timeout!==void 0){var timeoutInterval=queueableFn.timeout||j$2.DEFAULT_TIMEOUT_INTERVAL;timeoutId=this.setTimeout(function(){timedOut=true;var error=new Error("Timeout - Async function did not complete within "+timeoutInterval+"ms "+(queueableFn.timeout?"(custom timeout)":"(set by jasmine.DEFAULT_TIMEOUT_INTERVAL)"));onException(error);next()},timeoutInterval)}try{var maybeThenable;if(queueableFn.fn.length===0){maybeThenable=queueableFn.fn.call(this.userContext);if(maybeThenable&&j$2.isFunction_(maybeThenable.then)){maybeThenable.then(wrapInPromiseResolutionHandler(next),onPromiseRejection);completedSynchronously=false;return{completedSynchronously:false}}}else{maybeThenable=queueableFn.fn.call(this.userContext,next);this.diagnoseConflictingAsync_(queueableFn.fn,maybeThenable);completedSynchronously=false;return{completedSynchronously:false}}}catch(e){onException(e);this.recordError_(iterativeIndex)}cleanup();return{completedSynchronously:true};function onPromiseRejection(e){onException(e);next()}};QueueRunner.prototype.run=function(recursiveIndex){var _this10=this;var length=this.queueableFns.length;for(var iterativeIndex=recursiveIndex;iterativeIndex<length;iterativeIndex=this.nextFnIx_(iterativeIndex)){var result=this.attempt(iterativeIndex);if(!result.completedSynchronously){return}}this.clearStack(function(){_this10.globalErrors.popListener(_this10.handleFinalError);if(_this10.errored_){_this10.onComplete(new StopExecutionError)}else{_this10.onComplete()}})};QueueRunner.prototype.nextFnIx_=function(currentFnIx){var result=this.skipPolicy_.skipTo(currentFnIx);if(result===currentFnIx){throw new Error("Can't skip to the same queueable fn that just finished")}return result};QueueRunner.prototype.recordError_=function(currentFnIx){this.errored_=true;this.skipPolicy_.fnErrored(currentFnIx)};QueueRunner.prototype.diagnoseConflictingAsync_=function(fn,retval){if(retval&&j$2.isFunction_(retval.then)){if(j$2.isAsyncFunction_(fn)){this.onException(new Error("An asynchronous before/it/after function was defined with the async keyword but also took a done callback. Either remove the done callback (recommended) or remove the async keyword."))}else{this.onException(new Error("An asynchronous before/it/after function took a done callback but also returned a promise. Either remove the done callback (recommended) or change the function to not return a promise."))}}};function wrapInPromiseResolutionHandler(fn){return function(maybeArg){if(j$2.isError_(maybeArg)){fn(maybeArg)}else{fn()}}}function errorOrMsgForGlobalError(error,event){return error||event&&event.message||"Global error event with no message"}return QueueRunner};getJasmineRequireObj().ReportDispatcher=function(j$2){"use strict";function ReportDispatcher(methods,runQueue,onLateError){var dispatchedMethods=methods||[];var _iterator24=_createForOfIteratorHelper(dispatchedMethods),_step24;try{for(_iterator24.s();!(_step24=_iterator24.n()).done;){var method=_step24.value;this[method]=/* @__PURE__ */function(m){return function(){return dispatch(m,arguments)}}(method)}}catch(err){_iterator24.e(err)}finally{_iterator24.f()}var reporters=[];var fallbackReporter=null;this.addReporter=function(reporter){reporters.push(reporter)};this.provideFallbackReporter=function(reporter){fallbackReporter=reporter};this.clearReporters=function(){reporters=[]};return this;function dispatch(method,args){if(reporters.length===0&&fallbackReporter!==null){reporters.push(fallbackReporter)}var fns=[];var _iterator25=_createForOfIteratorHelper(reporters),_step25;try{for(_iterator25.s();!(_step25=_iterator25.n()).done;){var reporter=_step25.value;addFn(fns,reporter,method,args)}}catch(err){_iterator25.e(err)}finally{_iterator25.f()}return new Promise(function(resolve){runQueue({queueableFns:fns,onComplete:resolve,isReporter:true,onMultipleDone:function onMultipleDone(){onLateError(new Error("An asynchronous reporter callback called its 'done' callback more than once."))}})})}function addFn(fns,reporter,method,args){var _fn2=reporter[method];if(!_fn2){return}var thisArgs=j$2.util.cloneArgs(args);if(_fn2.length<=1){fns.push({fn:function fn(){return _fn2.apply(reporter,thisArgs)}})}else{fns.push({fn:function fn(done){return _fn2.apply(reporter,thisArgs.concat([done]))}})}}}return ReportDispatcher};getJasmineRequireObj().reporterEvents=function(){var events=[/**
|
|
311
|
-
* `jasmineStarted` is called after all of the specs have been loaded, but just before execution starts.
|
|
312
|
-
* @function
|
|
313
|
-
* @name Reporter#jasmineStarted
|
|
314
|
-
* @param {JasmineStartedInfo} suiteInfo Information about the full Jasmine suite that is being run
|
|
315
|
-
* @param {Function} [done] Used to specify to Jasmine that this callback is asynchronous and Jasmine should wait until it has been called before moving on.
|
|
316
|
-
* @returns {} Optionally return a Promise instead of using `done` to cause Jasmine to wait for completion.
|
|
317
|
-
* @see async
|
|
318
|
-
*/"jasmineStarted",/**
|
|
319
|
-
* When the entire suite has finished execution `jasmineDone` is called
|
|
320
|
-
* @function
|
|
321
|
-
* @name Reporter#jasmineDone
|
|
322
|
-
* @param {JasmineDoneInfo} suiteInfo Information about the full Jasmine suite that just finished running.
|
|
323
|
-
* @param {Function} [done] Used to specify to Jasmine that this callback is asynchronous and Jasmine should wait until it has been called before moving on.
|
|
324
|
-
* @returns {} Optionally return a Promise instead of using `done` to cause Jasmine to wait for completion.
|
|
325
|
-
* @see async
|
|
326
|
-
*/"jasmineDone",/**
|
|
327
|
-
* `suiteStarted` is invoked when a `describe` starts to run
|
|
328
|
-
* @function
|
|
329
|
-
* @name Reporter#suiteStarted
|
|
330
|
-
* @param {SuiteResult} result Information about the individual {@link describe} being run
|
|
331
|
-
* @param {Function} [done] Used to specify to Jasmine that this callback is asynchronous and Jasmine should wait until it has been called before moving on.
|
|
332
|
-
* @returns {} Optionally return a Promise instead of using `done` to cause Jasmine to wait for completion.
|
|
333
|
-
* @see async
|
|
334
|
-
*/"suiteStarted",/**
|
|
335
|
-
* `suiteDone` is invoked when all of the child specs and suites for a given suite have been run
|
|
336
|
-
*
|
|
337
|
-
* While jasmine doesn't require any specific functions, not defining a `suiteDone` will make it impossible for a reporter to know when a suite has failures in an `afterAll`.
|
|
338
|
-
* @function
|
|
339
|
-
* @name Reporter#suiteDone
|
|
340
|
-
* @param {SuiteResult} result
|
|
341
|
-
* @param {Function} [done] Used to specify to Jasmine that this callback is asynchronous and Jasmine should wait until it has been called before moving on.
|
|
342
|
-
* @returns {} Optionally return a Promise instead of using `done` to cause Jasmine to wait for completion.
|
|
343
|
-
* @see async
|
|
344
|
-
*/"suiteDone",/**
|
|
345
|
-
* `specStarted` is invoked when an `it` starts to run (including associated `beforeEach` functions)
|
|
346
|
-
* @function
|
|
347
|
-
* @name Reporter#specStarted
|
|
348
|
-
* @param {SpecResult} result Information about the individual {@link it} being run
|
|
349
|
-
* @param {Function} [done] Used to specify to Jasmine that this callback is asynchronous and Jasmine should wait until it has been called before moving on.
|
|
350
|
-
* @returns {} Optionally return a Promise instead of using `done` to cause Jasmine to wait for completion.
|
|
351
|
-
* @see async
|
|
352
|
-
*/"specStarted",/**
|
|
353
|
-
* `specDone` is invoked when an `it` and its associated `beforeEach` and `afterEach` functions have been run.
|
|
354
|
-
*
|
|
355
|
-
* While jasmine doesn't require any specific functions, not defining a `specDone` will make it impossible for a reporter to know when a spec has failed.
|
|
356
|
-
* @function
|
|
357
|
-
* @name Reporter#specDone
|
|
358
|
-
* @param {SpecResult} result
|
|
359
|
-
* @param {Function} [done] Used to specify to Jasmine that this callback is asynchronous and Jasmine should wait until it has been called before moving on.
|
|
360
|
-
* @returns {} Optionally return a Promise instead of using `done` to cause Jasmine to wait for completion.
|
|
361
|
-
* @see async
|
|
362
|
-
*/"specDone"];Object.freeze(events);return events};getJasmineRequireObj().interface=function(jasmine2,env){var jasmineInterface={/**
|
|
363
|
-
* Callback passed to parts of the Jasmine base interface.
|
|
364
|
-
*
|
|
365
|
-
* By default Jasmine assumes this function completes synchronously.
|
|
366
|
-
* If you have code that you need to test asynchronously, you can declare that you receive a `done` callback, return a Promise, or use the `async` keyword if it is supported in your environment.
|
|
367
|
-
* @callback implementationCallback
|
|
368
|
-
* @param {Function} [done] Used to specify to Jasmine that this callback is asynchronous and Jasmine should wait until it has been called before moving on.
|
|
369
|
-
* @returns {} Optionally return a Promise instead of using `done` to cause Jasmine to wait for completion.
|
|
370
|
-
*//**
|
|
371
|
-
* Create a group of specs (often called a suite).
|
|
372
|
-
*
|
|
373
|
-
* Calls to `describe` can be nested within other calls to compose your suite as a tree.
|
|
374
|
-
* @name describe
|
|
375
|
-
* @since 1.3.0
|
|
376
|
-
* @function
|
|
377
|
-
* @global
|
|
378
|
-
* @param {String} description Textual description of the group
|
|
379
|
-
* @param {Function} specDefinitions Function for Jasmine to invoke that will define inner suites and specs
|
|
380
|
-
*/describe:function describe(description,specDefinitions){return env.describe(description,specDefinitions)},/**
|
|
381
|
-
* A temporarily disabled [`describe`]{@link describe}
|
|
382
|
-
*
|
|
383
|
-
* Specs within an `xdescribe` will be marked pending and not executed
|
|
384
|
-
* @name xdescribe
|
|
385
|
-
* @since 1.3.0
|
|
386
|
-
* @function
|
|
387
|
-
* @global
|
|
388
|
-
* @param {String} description Textual description of the group
|
|
389
|
-
* @param {Function} specDefinitions Function for Jasmine to invoke that will define inner suites and specs
|
|
390
|
-
*/xdescribe:function xdescribe(description,specDefinitions){return env.xdescribe(description,specDefinitions)},/**
|
|
391
|
-
* A focused [`describe`]{@link describe}
|
|
392
|
-
*
|
|
393
|
-
* If suites or specs are focused, only those that are focused will be executed
|
|
394
|
-
* @see fit
|
|
395
|
-
* @name fdescribe
|
|
396
|
-
* @since 2.1.0
|
|
397
|
-
* @function
|
|
398
|
-
* @global
|
|
399
|
-
* @param {String} description Textual description of the group
|
|
400
|
-
* @param {Function} specDefinitions Function for Jasmine to invoke that will define inner suites and specs
|
|
401
|
-
*/fdescribe:function fdescribe(description,specDefinitions){return env.fdescribe(description,specDefinitions)},/**
|
|
402
|
-
* Define a single spec. A spec should contain one or more {@link expect|expectations} that test the state of the code.
|
|
403
|
-
*
|
|
404
|
-
* A spec whose expectations all succeed will be passing and a spec with any failures will fail.
|
|
405
|
-
* The name `it` is a pronoun for the test target, not an abbreviation of anything. It makes the
|
|
406
|
-
* spec more readable by connecting the function name `it` and the argument `description` as a
|
|
407
|
-
* complete sentence.
|
|
408
|
-
* @name it
|
|
409
|
-
* @since 1.3.0
|
|
410
|
-
* @function
|
|
411
|
-
* @global
|
|
412
|
-
* @param {String} description Textual description of what this spec is checking
|
|
413
|
-
* @param {implementationCallback} [testFunction] Function that contains the code of your test. If not provided the test will be `pending`.
|
|
414
|
-
* @param {Int} [timeout={@link jasmine.DEFAULT_TIMEOUT_INTERVAL}] Custom timeout for an async spec.
|
|
415
|
-
* @see async
|
|
416
|
-
*/it:function it(){return env.it.apply(env,arguments)},/**
|
|
417
|
-
* A temporarily disabled [`it`]{@link it}
|
|
418
|
-
*
|
|
419
|
-
* The spec will report as `pending` and will not be executed.
|
|
420
|
-
* @name xit
|
|
421
|
-
* @since 1.3.0
|
|
422
|
-
* @function
|
|
423
|
-
* @global
|
|
424
|
-
* @param {String} description Textual description of what this spec is checking.
|
|
425
|
-
* @param {implementationCallback} [testFunction] Function that contains the code of your test. Will not be executed.
|
|
426
|
-
*/xit:function xit(){return env.xit.apply(env,arguments)},/**
|
|
427
|
-
* A focused [`it`]{@link it}
|
|
428
|
-
*
|
|
429
|
-
* If suites or specs are focused, only those that are focused will be executed.
|
|
430
|
-
* @name fit
|
|
431
|
-
* @since 2.1.0
|
|
432
|
-
* @function
|
|
433
|
-
* @global
|
|
434
|
-
* @param {String} description Textual description of what this spec is checking.
|
|
435
|
-
* @param {implementationCallback} testFunction Function that contains the code of your test.
|
|
436
|
-
* @param {Int} [timeout={@link jasmine.DEFAULT_TIMEOUT_INTERVAL}] Custom timeout for an async spec.
|
|
437
|
-
* @see async
|
|
438
|
-
*/fit:function fit(){return env.fit.apply(env,arguments)},/**
|
|
439
|
-
* Run some shared setup before each of the specs in the {@link describe} in which it is called.
|
|
440
|
-
* @name beforeEach
|
|
441
|
-
* @since 1.3.0
|
|
442
|
-
* @function
|
|
443
|
-
* @global
|
|
444
|
-
* @param {implementationCallback} [function] Function that contains the code to setup your specs.
|
|
445
|
-
* @param {Int} [timeout={@link jasmine.DEFAULT_TIMEOUT_INTERVAL}] Custom timeout for an async beforeEach.
|
|
446
|
-
* @see async
|
|
447
|
-
*/beforeEach:function beforeEach(){return env.beforeEach.apply(env,arguments)},/**
|
|
448
|
-
* Run some shared teardown after each of the specs in the {@link describe} in which it is called.
|
|
449
|
-
* @name afterEach
|
|
450
|
-
* @since 1.3.0
|
|
451
|
-
* @function
|
|
452
|
-
* @global
|
|
453
|
-
* @param {implementationCallback} [function] Function that contains the code to teardown your specs.
|
|
454
|
-
* @param {Int} [timeout={@link jasmine.DEFAULT_TIMEOUT_INTERVAL}] Custom timeout for an async afterEach.
|
|
455
|
-
* @see async
|
|
456
|
-
*/afterEach:function afterEach(){return env.afterEach.apply(env,arguments)},/**
|
|
457
|
-
* Run some shared setup once before all of the specs in the {@link describe} are run.
|
|
458
|
-
*
|
|
459
|
-
* _Note:_ Be careful, sharing the setup from a beforeAll makes it easy to accidentally leak state between your specs so that they erroneously pass or fail.
|
|
460
|
-
* @name beforeAll
|
|
461
|
-
* @since 2.1.0
|
|
462
|
-
* @function
|
|
463
|
-
* @global
|
|
464
|
-
* @param {implementationCallback} [function] Function that contains the code to setup your specs.
|
|
465
|
-
* @param {Int} [timeout={@link jasmine.DEFAULT_TIMEOUT_INTERVAL}] Custom timeout for an async beforeAll.
|
|
466
|
-
* @see async
|
|
467
|
-
*/beforeAll:function beforeAll(){return env.beforeAll.apply(env,arguments)},/**
|
|
468
|
-
* Run some shared teardown once after all of the specs in the {@link describe} are run.
|
|
469
|
-
*
|
|
470
|
-
* _Note:_ Be careful, sharing the teardown from a afterAll makes it easy to accidentally leak state between your specs so that they erroneously pass or fail.
|
|
471
|
-
* @name afterAll
|
|
472
|
-
* @since 2.1.0
|
|
473
|
-
* @function
|
|
474
|
-
* @global
|
|
475
|
-
* @param {implementationCallback} [function] Function that contains the code to teardown your specs.
|
|
476
|
-
* @param {Int} [timeout={@link jasmine.DEFAULT_TIMEOUT_INTERVAL}] Custom timeout for an async afterAll.
|
|
477
|
-
* @see async
|
|
478
|
-
*/afterAll:function afterAll(){return env.afterAll.apply(env,arguments)},/**
|
|
479
|
-
* Get a user-defined property as part of the properties field of {@link SpecResult}
|
|
480
|
-
* @name getSpecProperty
|
|
481
|
-
* @since 5.10.0
|
|
482
|
-
* @function
|
|
483
|
-
* @param {String} key The name of the property
|
|
484
|
-
* @returns {*} The value of the property
|
|
485
|
-
*/getSpecProperty:function getSpecProperty(key){return env.getSpecProperty(key)},/**
|
|
486
|
-
* Sets a user-defined property that will be provided to reporters as part of the properties field of {@link SpecResult}
|
|
487
|
-
* @name setSpecProperty
|
|
488
|
-
* @since 3.6.0
|
|
489
|
-
* @function
|
|
490
|
-
* @param {String} key The name of the property
|
|
491
|
-
* @param {*} value The value of the property
|
|
492
|
-
*/setSpecProperty:function setSpecProperty(key,value){return env.setSpecProperty(key,value)},/**
|
|
493
|
-
* Sets a user-defined property that will be provided to reporters as part of the properties field of {@link SuiteResult}
|
|
494
|
-
* @name setSuiteProperty
|
|
495
|
-
* @since 3.6.0
|
|
496
|
-
* @function
|
|
497
|
-
* @param {String} key The name of the property
|
|
498
|
-
* @param {*} value The value of the property
|
|
499
|
-
*/setSuiteProperty:function setSuiteProperty(key,value){return env.setSuiteProperty(key,value)},/**
|
|
500
|
-
* Create an expectation for a spec.
|
|
501
|
-
* @name expect
|
|
502
|
-
* @since 1.3.0
|
|
503
|
-
* @function
|
|
504
|
-
* @global
|
|
505
|
-
* @param {Object} actual - Actual computed value to test expectations against.
|
|
506
|
-
* @return {matchers}
|
|
507
|
-
*/expect:function expect(actual){return env.expect(actual)},/**
|
|
508
|
-
* Create an asynchronous expectation for a spec. Note that the matchers
|
|
509
|
-
* that are provided by an asynchronous expectation all return promises
|
|
510
|
-
* which must be either returned from the spec or waited for using `await`
|
|
511
|
-
* in order for Jasmine to associate them with the correct spec.
|
|
512
|
-
* @name expectAsync
|
|
513
|
-
* @since 3.3.0
|
|
514
|
-
* @function
|
|
515
|
-
* @global
|
|
516
|
-
* @param {Object} actual - Actual computed value to test expectations against.
|
|
517
|
-
* @return {async-matchers}
|
|
518
|
-
* @example
|
|
519
|
-
* await expectAsync(somePromise).toBeResolved();
|
|
520
|
-
* @example
|
|
521
|
-
* return expectAsync(somePromise).toBeResolved();
|
|
522
|
-
*/expectAsync:function expectAsync(actual){return env.expectAsync(actual)},/**
|
|
523
|
-
* Create an asynchronous expectation for a spec and throw an error if it fails.
|
|
524
|
-
*
|
|
525
|
-
* This is intended to allow Jasmine matchers to be used with tools like
|
|
526
|
-
* testing-library's `waitFor`, which expect matcher failures to throw
|
|
527
|
-
* exceptions and not trigger a spec failure if the exception is caught.
|
|
528
|
-
* It can also be used to integration-test custom matchers.
|
|
529
|
-
*
|
|
530
|
-
* If the resulting expectation fails, a {@link ThrowUnlessFailure} will be
|
|
531
|
-
* thrown. A failed expectation will not result in a spec failure unless the
|
|
532
|
-
* exception propagates back to Jasmine, either via the call stack or via
|
|
533
|
-
* the global unhandled exception/unhandled promise rejection events.
|
|
534
|
-
* @name throwUnlessAsync
|
|
535
|
-
* @since 5.1.0
|
|
536
|
-
* @function
|
|
537
|
-
* @param actual
|
|
538
|
-
* @global
|
|
539
|
-
* @param {Object} actual - Actual computed value to test expectations against.
|
|
540
|
-
* @return {matchers}
|
|
541
|
-
*/throwUnlessAsync:function throwUnlessAsync(actual){return env.throwUnlessAsync(actual)},/**
|
|
542
|
-
* Create an expectation for a spec and throw an error if it fails.
|
|
543
|
-
*
|
|
544
|
-
* This is intended to allow Jasmine matchers to be used with tools like
|
|
545
|
-
* testing-library's `waitFor`, which expect matcher failures to throw
|
|
546
|
-
* exceptions and not trigger a spec failure if the exception is caught.
|
|
547
|
-
* It can also be used to integration-test custom matchers.
|
|
548
|
-
*
|
|
549
|
-
* If the resulting expectation fails, a {@link ThrowUnlessFailure} will be
|
|
550
|
-
* thrown. A failed expectation will not result in a spec failure unless the
|
|
551
|
-
* exception propagates back to Jasmine, either via the call stack or via
|
|
552
|
-
* the global unhandled exception/unhandled promise rejection events.
|
|
553
|
-
* @name throwUnless
|
|
554
|
-
* @since 5.1.0
|
|
555
|
-
* @function
|
|
556
|
-
* @param actual
|
|
557
|
-
* @global
|
|
558
|
-
* @param {Object} actual - Actual computed value to test expectations against.
|
|
559
|
-
* @return {matchers}
|
|
560
|
-
*/throwUnless:function throwUnless(actual){return env.throwUnless(actual)},/**
|
|
561
|
-
* Mark a spec as pending, expectation results will be ignored.
|
|
562
|
-
* @name pending
|
|
563
|
-
* @since 2.0.0
|
|
564
|
-
* @function
|
|
565
|
-
* @global
|
|
566
|
-
* @param {String} [message] - Reason the spec is pending.
|
|
567
|
-
*/pending:function pending(){return env.pending.apply(env,arguments)},/**
|
|
568
|
-
* Explicitly mark a spec as failed.
|
|
569
|
-
* @name fail
|
|
570
|
-
* @since 2.1.0
|
|
571
|
-
* @function
|
|
572
|
-
* @global
|
|
573
|
-
* @param {String|Error} [error] - Reason for the failure.
|
|
574
|
-
*/fail:function fail(){return env.fail.apply(env,arguments)},/**
|
|
575
|
-
* Install a spy onto an existing object.
|
|
576
|
-
* @name spyOn
|
|
577
|
-
* @since 1.3.0
|
|
578
|
-
* @function
|
|
579
|
-
* @global
|
|
580
|
-
* @param {Object} obj - The object upon which to install the {@link Spy}.
|
|
581
|
-
* @param {String} methodName - The name of the method to replace with a {@link Spy}.
|
|
582
|
-
* @returns {Spy}
|
|
583
|
-
*/spyOn:function spyOn(obj,methodName){return env.spyOn(obj,methodName)},/**
|
|
584
|
-
* Install a spy on a property installed with `Object.defineProperty` onto an existing object.
|
|
585
|
-
* @name spyOnProperty
|
|
586
|
-
* @since 2.6.0
|
|
587
|
-
* @function
|
|
588
|
-
* @global
|
|
589
|
-
* @param {Object} obj - The object upon which to install the {@link Spy}
|
|
590
|
-
* @param {String} propertyName - The name of the property to replace with a {@link Spy}.
|
|
591
|
-
* @param {String} [accessType=get] - The access type (get|set) of the property to {@link Spy} on.
|
|
592
|
-
* @returns {Spy}
|
|
593
|
-
*/spyOnProperty:function spyOnProperty(obj,methodName,accessType){return env.spyOnProperty(obj,methodName,accessType)},/**
|
|
594
|
-
* Installs spies on all writable and configurable properties of an object.
|
|
595
|
-
* @name spyOnAllFunctions
|
|
596
|
-
* @since 3.2.1
|
|
597
|
-
* @function
|
|
598
|
-
* @global
|
|
599
|
-
* @param {Object} obj - The object upon which to install the {@link Spy}s
|
|
600
|
-
* @param {boolean} includeNonEnumerable - Whether or not to add spies to non-enumerable properties
|
|
601
|
-
* @returns {Object} the spied object
|
|
602
|
-
*/spyOnAllFunctions:function spyOnAllFunctions(obj,includeNonEnumerable){return env.spyOnAllFunctions(obj,includeNonEnumerable)},jsApiReporter:new jasmine2.JsApiReporter({timer:new jasmine2.Timer}),/**
|
|
603
|
-
* <p>Members of the jasmine global.</p>
|
|
604
|
-
* <p>Note: The members of the
|
|
605
|
-
* {@link asymmetricEqualityTesters|asymmetricEqualityTesters namespace}
|
|
606
|
-
* are also accessed via the jasmine global, but due to jsdoc limitations
|
|
607
|
-
* they are not listed here.</p>
|
|
608
|
-
*
|
|
609
|
-
* @namespace jasmine
|
|
610
|
-
*/jasmine:jasmine2};jasmine2.addCustomEqualityTester=function(tester){env.addCustomEqualityTester(tester)};jasmine2.addMatchers=function(matchers){return env.addMatchers(matchers)};jasmine2.addAsyncMatchers=function(matchers){return env.addAsyncMatchers(matchers)};jasmine2.addCustomObjectFormatter=function(formatter){return env.addCustomObjectFormatter(formatter)};jasmine2.clock=function(){return env.clock};jasmine2.createSpy=function(name,originalFn){return env.createSpy(name,originalFn)};jasmine2.createSpyObj=function(baseName,methodNames,propertyNames){return env.createSpyObj(baseName,methodNames,propertyNames)};jasmine2.addSpyStrategy=function(name,factory){return env.addSpyStrategy(name,factory)};jasmine2.setDefaultSpyStrategy=function(defaultStrategyFn){return env.setDefaultSpyStrategy(defaultStrategyFn)};return jasmineInterface};getJasmineRequireObj().RunableResources=function(j$2){var RunableResources=/*#__PURE__*/function(){"use strict";function RunableResources(options){var _this11=this;_classCallCheck(this,RunableResources);this.byRunableId_={};this.getCurrentRunableId_=options.getCurrentRunableId;this.globalErrors_=options.globalErrors;this.spyFactory=new j$2.SpyFactory(function(){if(_this11.getCurrentRunableId_()){return _this11.customSpyStrategies()}else{return{}}},function(){return _this11.defaultSpyStrategy()},function(){return _this11.makeMatchersUtil()});this.spyRegistry=new j$2.SpyRegistry({currentSpies:function currentSpies(){return _this11.spies()},createSpy:function createSpy(name,originalFn){return _this11.spyFactory.createSpy(name,originalFn)}})}return _createClass(RunableResources,[{key:"initForRunable",value:function initForRunable(runableId,parentId){var newRes=this.byRunableId_[runableId]={customEqualityTesters:[],customMatchers:{},customAsyncMatchers:{},customSpyStrategies:{},customObjectFormatters:[],defaultSpyStrategy:void 0,spies:[]};var parentRes=this.byRunableId_[parentId];if(parentRes){newRes.defaultSpyStrategy=parentRes.defaultSpyStrategy;var toClone=["customEqualityTesters","customMatchers","customAsyncMatchers","customObjectFormatters","customSpyStrategies"];for(var _i1=0,_toClone=toClone;_i1<_toClone.length;_i1++){var k=_toClone[_i1];newRes[k]=j$2.util.clone(parentRes[k])}}}},{key:"clearForRunable",value:function clearForRunable(runableId){this.globalErrors_.removeOverrideListener();this.spyRegistry.clearSpies();delete this.byRunableId_[runableId]}},{key:"spies",value:function spies(){return this.forCurrentRunable_("Spies must be created in a before function or a spec").spies}},{key:"defaultSpyStrategy",value:function defaultSpyStrategy(){if(!this.getCurrentRunableId_()){return void 0}return this.byRunableId_[this.getCurrentRunableId_()].defaultSpyStrategy}},{key:"setDefaultSpyStrategy",value:function setDefaultSpyStrategy(fn){this.forCurrentRunable_("Default spy strategy must be set in a before function or a spec").defaultSpyStrategy=fn}},{key:"customSpyStrategies",value:function customSpyStrategies(){return this.forCurrentRunable_("Custom spy strategies must be added in a before function or a spec").customSpyStrategies}},{key:"customEqualityTesters",value:function customEqualityTesters(){return this.forCurrentRunable_("Custom Equalities must be added in a before function or a spec").customEqualityTesters}},{key:"customMatchers",value:function customMatchers(){return this.forCurrentRunable_("Matchers must be added in a before function or a spec").customMatchers}},{key:"addCustomMatchers",value:function addCustomMatchers(matchersToAdd){var matchers=this.customMatchers();for(var name in matchersToAdd){matchers[name]=matchersToAdd[name]}}},{key:"customAsyncMatchers",value:function customAsyncMatchers(){return this.forCurrentRunable_("Async Matchers must be added in a before function or a spec").customAsyncMatchers}},{key:"addCustomAsyncMatchers",value:function addCustomAsyncMatchers(matchersToAdd){var matchers=this.customAsyncMatchers();for(var name in matchersToAdd){matchers[name]=matchersToAdd[name]}}},{key:"customObjectFormatters",value:function customObjectFormatters(){return this.forCurrentRunable_("Custom object formatters must be added in a before function or a spec").customObjectFormatters}},{key:"makePrettyPrinter",value:function makePrettyPrinter(){return j$2.makePrettyPrinter(this.customObjectFormatters())}},{key:"makeMatchersUtil",value:function makeMatchersUtil(){if(this.getCurrentRunableId_()){return new j$2.MatchersUtil({customTesters:this.customEqualityTesters(),pp:this.makePrettyPrinter()})}else{return new j$2.MatchersUtil({pp:j$2.basicPrettyPrinter_})}}},{key:"forCurrentRunable_",value:function forCurrentRunable_(errorMsg){var resources=this.byRunableId_[this.getCurrentRunableId_()];if(!resources&&errorMsg){throw new Error(errorMsg)}return resources}}])}();return RunableResources};getJasmineRequireObj().Runner=function(j$2){var _topSuite,_getTotalSpecsDefined,_getFocusedRunables,_runableResources,_runQueue,_TreeProcessor,_executionTree,_globalErrors,_reportDispatcher,_getConfig,_executedBefore,_currentRunableTracker,_Runner_instances,execute2_fn;var Runner=/*#__PURE__*/function(){"use strict";function Runner(options){_classCallCheck(this,Runner);__privateAdd(this,_Runner_instances);__privateAdd(this,_topSuite);__privateAdd(this,_getTotalSpecsDefined);__privateAdd(this,_getFocusedRunables);__privateAdd(this,_runableResources);__privateAdd(this,_runQueue);__privateAdd(this,_TreeProcessor);__privateAdd(this,_executionTree);__privateAdd(this,_globalErrors);__privateAdd(this,_reportDispatcher);__privateAdd(this,_getConfig);__privateAdd(this,_executedBefore);__privateAdd(this,_currentRunableTracker);__privateSet(this,_topSuite,options.topSuite);__privateSet(this,_getTotalSpecsDefined,options.totalSpecsDefined);__privateSet(this,_getFocusedRunables,options.focusedRunables);__privateSet(this,_runableResources,options.runableResources);__privateSet(this,_runQueue,options.runQueue);__privateSet(this,_TreeProcessor,options.TreeProcessor);__privateSet(this,_globalErrors,options.globalErrors);__privateSet(this,_reportDispatcher,options.reportDispatcher);__privateSet(this,_getConfig,options.getConfig);__privateSet(this,_executedBefore,false);__privateSet(this,_currentRunableTracker,new j$2.CurrentRunableTracker)}return _createClass(Runner,[{key:"currentSpec",value:function currentSpec(){return __privateGet(this,_currentRunableTracker).currentSpec()}},{key:"setCurrentSpec",value:function setCurrentSpec(spec){__privateGet(this,_currentRunableTracker).setCurrentSpec(spec)}},{key:"currentRunable",value:function currentRunable(){return __privateGet(this,_currentRunableTracker).currentRunable()}},{key:"currentSuite",value:function currentSuite(){return __privateGet(this,_currentRunableTracker).currentSuite()}},{key:"parallelReset",value:function parallelReset(){__privateSet(this,_executedBefore,false)}},{key:"execute",value:function(){var _execute=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee6(runablesToRun){var focusedRunables,config,order,treeProcessor;return _regenerator().w(function(_context6){while(1)switch(_context6.n){case 0:if(__privateGet(this,_executedBefore)){__privateGet(this,_topSuite).reset()}__privateSet(this,_executedBefore,true);focusedRunables=__privateGet(this,_getFocusedRunables).call(this);config=__privateGet(this,_getConfig).call(this);if(!runablesToRun){if(focusedRunables.length){runablesToRun=focusedRunables}else{runablesToRun=[__privateGet(this,_topSuite).id]}}order=new j$2.Order({random:config.random,seed:j$2.isNumber_(config.seed)?config.seed+"":config.seed});treeProcessor=new(__privateGet(this,_TreeProcessor))({tree:__privateGet(this,_topSuite),runnableIds:runablesToRun,orderChildren:function orderChildren(node){return order.sort(node.children)},excludeNode:function excludeNode(spec){return!config.specFilter(spec)}});__privateSet(this,_executionTree,treeProcessor.processTree());return _context6.a(2,__privateMethod(this,_Runner_instances,execute2_fn).call(this,runablesToRun,order))}},_callee6,this)}));function execute(_x4){return _execute.apply(this,arguments)}return execute}()}])}();_topSuite=new WeakMap;_getTotalSpecsDefined=new WeakMap;_getFocusedRunables=new WeakMap;_runableResources=new WeakMap;_runQueue=new WeakMap;_TreeProcessor=new WeakMap;_executionTree=new WeakMap;_globalErrors=new WeakMap;_reportDispatcher=new WeakMap;_getConfig=new WeakMap;_executedBefore=new WeakMap;_currentRunableTracker=new WeakMap;_Runner_instances=new WeakSet;execute2_fn=/*#__PURE__*/function(){var _ref1=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee7(runablesToRun,order){var totalSpecsDefined,jasmineTimer,treeRunner,_yield$treeRunner$exe,hasFailures,overallStatus,incompleteReason,incompleteCode,jasmineDoneInfo;return _regenerator().w(function(_context7){while(1)switch(_context7.n){case 0:totalSpecsDefined=__privateGet(this,_getTotalSpecsDefined).call(this);__privateGet(this,_runableResources).initForRunable(__privateGet(this,_topSuite).id);jasmineTimer=new j$2.Timer;jasmineTimer.start();_context7.n=1;return __privateGet(this,_reportDispatcher).jasmineStarted({// In parallel mode, the jasmineStarted event is separately dispatched
|
|
611
|
-
// by jasmine-npm. This event only reaches reporters in non-parallel.
|
|
612
|
-
totalSpecsDefined:totalSpecsDefined,/**
|
|
613
|
-
* Information about the ordering (random or not) of this execution of the suite.
|
|
614
|
-
* @typedef Order
|
|
615
|
-
* @property {boolean} random - Whether the suite is running in random order
|
|
616
|
-
* @property {string} seed - The random seed
|
|
617
|
-
*/order:order,parallel:false});case 1:__privateGet(this,_currentRunableTracker).pushSuite(__privateGet(this,_topSuite));treeRunner=new j$2.TreeRunner({executionTree:__privateGet(this,_executionTree),globalErrors:__privateGet(this,_globalErrors),runableResources:__privateGet(this,_runableResources),reportDispatcher:__privateGet(this,_reportDispatcher),runQueue:__privateGet(this,_runQueue),getConfig:__privateGet(this,_getConfig),currentRunableTracker:__privateGet(this,_currentRunableTracker)});_context7.n=2;return treeRunner.execute();case 2:_yield$treeRunner$exe=_context7.v;hasFailures=_yield$treeRunner$exe.hasFailures;__privateGet(this,_runableResources).clearForRunable(__privateGet(this,_topSuite).id);__privateGet(this,_currentRunableTracker).popSuite();if(hasFailures||__privateGet(this,_topSuite).result.failedExpectations.length>0){overallStatus="failed"}else if(__privateGet(this,_getFocusedRunables).call(this).length>0){overallStatus="incomplete";incompleteReason="fit() or fdescribe() was found";incompleteCode="focused"}else if(totalSpecsDefined===0){overallStatus="incomplete";incompleteReason="No specs found";incompleteCode="noSpecsFound"}else{overallStatus="passed"}jasmineDoneInfo={overallStatus:overallStatus,totalTime:jasmineTimer.elapsed(),incompleteReason:incompleteReason,incompleteCode:incompleteCode,order:order,failedExpectations:__privateGet(this,_topSuite).result.failedExpectations,deprecationWarnings:__privateGet(this,_topSuite).result.deprecationWarnings};__privateGet(this,_topSuite).reportedDone=true;_context7.n=3;return __privateGet(this,_reportDispatcher).jasmineDone(jasmineDoneInfo);case 3:return _context7.a(2,jasmineDoneInfo)}},_callee7,this)}));return function execute2_fn(_x5,_x6){return _ref1.apply(this,arguments)}}();return Runner};getJasmineRequireObj().SkipAfterBeforeAllErrorPolicy=function(j$2){function SkipAfterBeforeAllErrorPolicy(queueableFns){this.queueableFns_=queueableFns;this.skipping_=false}SkipAfterBeforeAllErrorPolicy.prototype.skipTo=function(lastRanFnIx){if(this.skipping_){return this.nextAfterAllAfter_(lastRanFnIx)}else{return lastRanFnIx+1}};SkipAfterBeforeAllErrorPolicy.prototype.nextAfterAllAfter_=function(i){for(i++;i<this.queueableFns_.length&&this.queueableFns_[i].type!=="afterAll";i++){}return i};SkipAfterBeforeAllErrorPolicy.prototype.fnErrored=function(fnIx){if(this.queueableFns_[fnIx].type==="beforeAll"){this.skipping_=true;this.queueableFns_[fnIx].suite.hadBeforeAllFailure=true}};return SkipAfterBeforeAllErrorPolicy};getJasmineRequireObj().Spy=function(j$2){var nextOrder=/* @__PURE__ */function(){var order=0;return function(){return order++}}();function Spy(name,matchersUtil,optionals){var spy=function spy(context,args,invokeNew){var callData={object:context,invocationOrder:nextOrder(),args:Array.prototype.slice.apply(args),verified:false};callTracker.track(callData);var returnValue=strategyDispatcher.exec(context,args,invokeNew);callData.returnValue=returnValue;return returnValue};var _ref10=optionals||{},originalFn=_ref10.originalFn,customStrategies=_ref10.customStrategies,defaultStrategyFn=_ref10.defaultStrategyFn;var numArgs=typeof originalFn==="function"?originalFn.length:0,wrapper=makeFunc(numArgs,function(context,args,invokeNew){return spy(context,args,invokeNew)}),strategyDispatcher=new SpyStrategyDispatcher({name:name,fn:originalFn,getSpy:function getSpy(){return wrapper},customStrategies:customStrategies},matchersUtil),callTracker=new j$2.CallTracker;function makeFunc(length,fn){switch(length){case 1:return function wrap1(a){return fn(this,arguments,this instanceof wrap1)};case 2:return function wrap2(a,b){return fn(this,arguments,this instanceof wrap2)};case 3:return function wrap3(a,b,c){return fn(this,arguments,this instanceof wrap3)};case 4:return function wrap4(a,b,c,d){return fn(this,arguments,this instanceof wrap4)};case 5:return function wrap5(a,b,c,d,e){return fn(this,arguments,this instanceof wrap5)};case 6:return function wrap6(a,b,c,d,e,f2){return fn(this,arguments,this instanceof wrap6)};case 7:return function wrap7(a,b,c,d,e,f2,g){return fn(this,arguments,this instanceof wrap7)};case 8:return function wrap8(a,b,c,d,e,f2,g,h){return fn(this,arguments,this instanceof wrap8)};case 9:return function wrap9(a,b,c,d,e,f2,g,h,i){return fn(this,arguments,this instanceof wrap9)};default:return function wrap(){return fn(this,arguments,this instanceof wrap)}}}for(var prop in originalFn){if(prop==="and"||prop==="calls"){throw new Error("Jasmine spies would overwrite the 'and' and 'calls' properties on the object being spied upon")}wrapper[prop]=originalFn[prop]}wrapper.and=strategyDispatcher.and;wrapper.withArgs=function(){return strategyDispatcher.withArgs.apply(strategyDispatcher,arguments)};wrapper.calls=callTracker;if(defaultStrategyFn){defaultStrategyFn(wrapper.and)}return wrapper}function SpyStrategyDispatcher(strategyArgs,matchersUtil){var baseStrategy=new j$2.SpyStrategy(strategyArgs);var argsStrategies=new StrategyDict(function(){return new j$2.SpyStrategy(strategyArgs)},matchersUtil);this.and=baseStrategy;this.exec=function(spy,args,invokeNew){var strategy=argsStrategies.get(args);if(!strategy){if(argsStrategies.any()&&!baseStrategy.isConfigured()){throw new Error("Spy '"+strategyArgs.name+"' received a call with arguments "+matchersUtil.pp(Array.prototype.slice.call(args))+" but all configured strategies specify other arguments.")}else{strategy=baseStrategy}}return strategy.exec(spy,args,invokeNew)};this.withArgs=function(){return{and:argsStrategies.getOrCreate(arguments)}}}function StrategyDict(strategyFactory,matchersUtil){this.strategies=[];this.strategyFactory=strategyFactory;this.matchersUtil=matchersUtil}StrategyDict.prototype.any=function(){return this.strategies.length>0};StrategyDict.prototype.getOrCreate=function(args){var strategy=this.get(args);if(!strategy){strategy=this.strategyFactory();this.strategies.push({args:args,strategy:strategy})}return strategy};StrategyDict.prototype.get=function(args){for(var i=0;i<this.strategies.length;i++){if(this.matchersUtil.equals(args,this.strategies[i].args)){return this.strategies[i].strategy}}};return Spy};getJasmineRequireObj().SpyFactory=function(j$2){function SpyFactory(getCustomStrategies,getDefaultStrategyFn,getMatchersUtil){this.createSpy=function(name,originalFn){if(j$2.isFunction_(name)&&originalFn===void 0){originalFn=name;name=originalFn.name}return j$2.Spy(name,getMatchersUtil(),{originalFn:originalFn,customStrategies:getCustomStrategies(),defaultStrategyFn:getDefaultStrategyFn()})};this.createSpyObj=function(baseName,methodNames,propertyNames){var baseNameIsCollection=j$2.isObject_(baseName)||j$2.isArray_(baseName);if(baseNameIsCollection){propertyNames=methodNames;methodNames=baseName;baseName="unknown"}var obj={};var methods=normalizeKeyValues(methodNames);for(var i=0;i<methods.length;i++){var spy=obj[methods[i][0]]=this.createSpy(baseName+"."+methods[i][0]);if(methods[i].length>1){spy.and.returnValue(methods[i][1])}}var properties=normalizeKeyValues(propertyNames);for(var _i10=0;_i10<properties.length;_i10++){var descriptor={enumerable:true,get:this.createSpy(baseName+"."+properties[_i10][0]+".get"),set:this.createSpy(baseName+"."+properties[_i10][0]+".set")};if(properties[_i10].length>1){descriptor.get.and.returnValue(properties[_i10][1]);descriptor.set.and.returnValue(properties[_i10][1])}Object.defineProperty(obj,properties[_i10][0],descriptor)}if(methods.length===0&&properties.length===0){throw new Error("createSpyObj requires a non-empty array or object of method names to create spies for")}return obj}}function normalizeKeyValues(object){var result=[];if(j$2.isArray_(object)){for(var i=0;i<object.length;i++){result.push([object[i]])}}else if(j$2.isObject_(object)){for(var key in object){if(object.hasOwnProperty(key)){result.push([key,object[key]])}}}return result}return SpyFactory};getJasmineRequireObj().SpyRegistry=function(j$2){var spyOnMsg=j$2.formatErrorMsg("<spyOn>","spyOn(<object>, <methodName>)");var spyOnPropertyMsg=j$2.formatErrorMsg("<spyOnProperty>","spyOnProperty(<object>, <propName>, [accessType])");function SpyRegistry(options){options=options||{};var global2=options.global||j$2.getGlobal();var createSpy=options.createSpy;var currentSpies=options.currentSpies||function(){return[]};this.allowRespy=function(allow){this.respy=allow};this.spyOn=function(obj,methodName){var getErrorMsg=spyOnMsg;if(obj===void 0||obj===null){throw new Error(getErrorMsg("could not find an object to spy upon for "+methodName+"()"))}if(methodName===void 0||methodName===null){throw new Error(getErrorMsg("No method name supplied"))}if(obj[methodName]===void 0){throw new Error(getErrorMsg(methodName+"() method does not exist"))}if(obj[methodName]&&j$2.isSpy(obj[methodName])){if(this.respy){return obj[methodName]}else{throw new Error(getErrorMsg(methodName+" has already been spied upon"))}}var descriptor=Object.getOwnPropertyDescriptor(obj,methodName);if(descriptor&&!(descriptor.writable||descriptor.set)){throw new Error(getErrorMsg(methodName+" is not declared writable or has no setter"))}var originalMethod=obj[methodName];var spiedMethod=createSpy(methodName,originalMethod);var restoreStrategy;if(Object.prototype.hasOwnProperty.call(obj,methodName)||obj===global2&&methodName==="onerror"){restoreStrategy=function restoreStrategy(){obj[methodName]=originalMethod}}else{restoreStrategy=function restoreStrategy(){if(!delete obj[methodName]){obj[methodName]=originalMethod}}}currentSpies().push({restoreObjectToOriginalState:restoreStrategy});obj[methodName]=spiedMethod;if(obj[methodName]!==spiedMethod){throw new Error(j$2.formatErrorMsg("<spyOn>")("Can't spy on ".concat(methodName," because assigning to it had no effect")))}return spiedMethod};this.spyOnProperty=function(obj,propertyName,accessType){var getErrorMsg=spyOnPropertyMsg;accessType=accessType||"get";if(!obj){throw new Error(getErrorMsg("spyOn could not find an object to spy upon for "+propertyName))}if(propertyName===void 0){throw new Error(getErrorMsg("No property name supplied"))}var descriptor=j$2.util.getPropertyDescriptor(obj,propertyName);if(!descriptor){throw new Error(getErrorMsg(propertyName+" property does not exist"))}if(!descriptor.configurable){throw new Error(getErrorMsg(propertyName+" is not declared configurable"))}if(!descriptor[accessType]){throw new Error(getErrorMsg("Property "+propertyName+" does not have access type "+accessType))}if(j$2.isSpy(descriptor[accessType])){if(this.respy){return descriptor[accessType]}else{throw new Error(getErrorMsg(propertyName+"#"+accessType+" has already been spied upon"))}}var originalDescriptor=j$2.util.clone(descriptor);var spy=createSpy(propertyName,descriptor[accessType]);var restoreStrategy;if(Object.prototype.hasOwnProperty.call(obj,propertyName)){restoreStrategy=function restoreStrategy(){Object.defineProperty(obj,propertyName,originalDescriptor)}}else{restoreStrategy=function restoreStrategy(){delete obj[propertyName]}}currentSpies().push({restoreObjectToOriginalState:restoreStrategy});descriptor[accessType]=spy;Object.defineProperty(obj,propertyName,descriptor);return spy};this.spyOnAllFunctions=function(obj,includeNonEnumerable){if(!obj){throw new Error("spyOnAllFunctions could not find an object to spy upon")}var pointer=obj,propsToSpyOn=[],properties,propertiesToSkip=[];while(pointer&&(!includeNonEnumerable||pointer!==Object.prototype)){properties=getProps(pointer,includeNonEnumerable);properties=properties.filter(function(prop){return propertiesToSkip.indexOf(prop)===-1});propertiesToSkip=propertiesToSkip.concat(properties);propsToSpyOn=propsToSpyOn.concat(getSpyableFunctionProps(pointer,properties));pointer=Object.getPrototypeOf(pointer)}var _iterator26=_createForOfIteratorHelper(propsToSpyOn),_step26;try{for(_iterator26.s();!(_step26=_iterator26.n()).done;){var prop=_step26.value;this.spyOn(obj,prop)}}catch(err){_iterator26.e(err)}finally{_iterator26.f()}return obj};this.clearSpies=function(){var spies=currentSpies();for(var i=spies.length-1;i>=0;i--){var spyEntry=spies[i];spyEntry.restoreObjectToOriginalState()}}}function getProps(obj,includeNonEnumerable){var enumerableProperties=Object.keys(obj);if(!includeNonEnumerable){return enumerableProperties}return Object.getOwnPropertyNames(obj).filter(function(prop){return prop!=="constructor"||enumerableProperties.indexOf("constructor")>-1})}function getSpyableFunctionProps(obj,propertiesToCheck){var props=[];var _iterator27=_createForOfIteratorHelper(propertiesToCheck),_step27;try{for(_iterator27.s();!(_step27=_iterator27.n()).done;){var prop=_step27.value;if(Object.prototype.hasOwnProperty.call(obj,prop)&&isSpyableProp(obj,prop)){props.push(prop)}}}catch(err){_iterator27.e(err)}finally{_iterator27.f()}return props}function isSpyableProp(obj,prop){var value;try{value=obj[prop]}catch(e){return false}if(value instanceof Function){var descriptor=Object.getOwnPropertyDescriptor(obj,prop);return(descriptor.writable||descriptor.set)&&descriptor.configurable}return false}return SpyRegistry};getJasmineRequireObj().SpyStrategy=function(j$2){function SpyStrategy(options){options=options||{};this.identity=options.name||"unknown";this.originalFn=options.fn||function(){};this.getSpy=options.getSpy||function(){};this.plan=this._defaultPlan=function(){};var cs=options.customStrategies||{};for(var k in cs){if(j$2.util.has(cs,k)&&!this[k]){this[k]=createCustomPlan(cs[k])}}this.resolveTo=function(value){this.plan=function(){return Promise.resolve(value)};return this.getSpy()};this.rejectWith=function(value){this.plan=function(){return Promise.reject(value)};return this.getSpy()}}function createCustomPlan(factory){return function(){var plan=factory.apply(null,arguments);if(!j$2.isFunction_(plan)){throw new Error("Spy strategy must return a function")}this.plan=plan;return this.getSpy()}}SpyStrategy.prototype.exec=function(context,args,invokeNew){var contextArgs=[context].concat(args?Array.prototype.slice.call(args):[]);var target=this.plan.bind.apply(this.plan,contextArgs);return invokeNew?new target:target()};SpyStrategy.prototype.callThrough=function(){this.plan=this.originalFn;return this.getSpy()};SpyStrategy.prototype.returnValue=function(value){this.plan=function(){return value};return this.getSpy()};SpyStrategy.prototype.returnValues=function(){var values=Array.prototype.slice.call(arguments);this.plan=function(){return values.shift()};return this.getSpy()};SpyStrategy.prototype.throwError=function(something){var error=j$2.isString_(something)?new Error(something):something;this.plan=function(){throw error};return this.getSpy()};SpyStrategy.prototype.callFake=function(fn){if(!(j$2.isFunction_(fn)||j$2.isAsyncFunction_(fn)||j$2.isGeneratorFunction_(fn))){throw new Error("Argument passed to callFake should be a function, got "+fn)}this.plan=fn;return this.getSpy()};SpyStrategy.prototype.stub=function(fn){this.plan=function(){};return this.getSpy()};SpyStrategy.prototype.isConfigured=function(){return this.plan!==this._defaultPlan};return SpyStrategy};getJasmineRequireObj().StackTrace=function(j$2){function StackTrace(error){var lines=error.stack.split("\n");var extractResult=extractMessage(error.message,lines);if(extractResult){this.message=extractResult.message;lines=extractResult.remainder}lines=lines.filter(function(line){return line!==""});var parseResult=tryParseFrames(lines);this.frames=parseResult.frames;this.style=parseResult.style}var framePatterns=[// Node, Chrome, Edge
|
|
618
|
-
// e.g. " at QueueRunner.run (http://localhost:8888/__jasmine__/jasmine.js:4320:20)"
|
|
619
|
-
// Note that the "function name" can include a surprisingly large set of
|
|
620
|
-
// characters, including angle brackets and square brackets.
|
|
621
|
-
{re:/^\s*at ([^\)]+) \(([^\)]+)\)$/,fnIx:1,fileLineColIx:2,style:"v8"},// NodeJS alternate form, often mixed in with the Chrome style
|
|
622
|
-
// e.g. " at /some/path:4320:20
|
|
623
|
-
{re:/\s*at (.+)$/,fileLineColIx:1,style:"v8"},// Safari, most Firefox stack frames
|
|
624
|
-
// e.g. "run@http://localhost:8888/__jasmine__/jasmine.js:4320:27"
|
|
625
|
-
// or "http://localhost:8888/__jasmine__/jasmine.js:4320:27"
|
|
626
|
-
{re:/^(?:(([^@\s]+)@)|@)?([^\s]+)$/,fnIx:2,fileLineColIx:3,style:"webkit"},// Some Firefox stack frames when the developer tools are open
|
|
627
|
-
// e.g. "promise callback*specStarted@http://localhost:8888/__jasmine__/jasmine.js:1880:41"
|
|
628
|
-
{re:/^^(?:((?:promise callback|[^\s]+ handler)\*([^@\s]+)@)|@)?([^\s]+)$/,fnIx:2,fileLineColIx:3,style:"webkit"}];function tryParseFrames(lines){var style=null;var frames=lines.map(function(line){var convertedLine=first(framePatterns,function(pattern){var overallMatch=line.match(pattern.re);if(!overallMatch){return null}var fileLineColMatch=overallMatch[pattern.fileLineColIx].match(/^(.*):(\d+):\d+$/);if(!fileLineColMatch){return null}style=style||pattern.style;return{raw:line,file:fileLineColMatch[1],line:parseInt(fileLineColMatch[2],10),func:overallMatch[pattern.fnIx]}});return convertedLine||{raw:line}});return{style:style,frames:frames}}function first(items,fn){var _iterator28=_createForOfIteratorHelper(items),_step28;try{for(_iterator28.s();!(_step28=_iterator28.n()).done;){var item=_step28.value;var result=fn(item);if(result){return result}}}catch(err){_iterator28.e(err)}finally{_iterator28.f()}}function extractMessage(message,stackLines){var len=messagePrefixLength(message,stackLines);if(len>0){return{message:stackLines.slice(0,len).join("\n"),remainder:stackLines.slice(len)}}}function messagePrefixLength(message,stackLines){if(!stackLines[0].match(/^\w*Error/)){return 0}var messageLines=message.split("\n");for(var i=1;i<messageLines.length;i++){if(messageLines[i]!==stackLines[i]){return 0}}return messageLines.length}return StackTrace};getJasmineRequireObj().Suite=function(j$2){var _reportedParentSuiteId,_throwOnExpectationFailure,_autoCleanClosures,_timer,_Suite_instances,status_fn,_suite;var Suite=/*#__PURE__*/function(){"use strict";function Suite(attrs){_classCallCheck(this,Suite);__privateAdd(this,_Suite_instances);__privateAdd(this,_reportedParentSuiteId);__privateAdd(this,_throwOnExpectationFailure);__privateAdd(this,_autoCleanClosures);__privateAdd(this,_timer);this.id=attrs.id;this.parentSuite=attrs.parentSuite;this.description=attrs.description;this.filename=attrs.filename;this.expectationFactory=attrs.expectationFactory;this.asyncExpectationFactory=attrs.asyncExpectationFactory;this.onLateError=attrs.onLateError||function(){};__privateSet(this,_reportedParentSuiteId,attrs.reportedParentSuiteId);__privateSet(this,_throwOnExpectationFailure,!!attrs.throwOnExpectationFailure);__privateSet(this,_autoCleanClosures,attrs.autoCleanClosures===void 0?true:!!attrs.autoCleanClosures);__privateSet(this,_timer,attrs.timer||new j$2.Timer);this.beforeFns=[];this.afterFns=[];this.beforeAllFns=[];this.afterAllFns=[];this.children=[];this.reset()}return _createClass(Suite,[{key:"setSuiteProperty",value:function setSuiteProperty(key,value){this.result.properties=this.result.properties||{};this.result.properties[key]=value}},{key:"getFullName",value:function getFullName(){var fullName=[];for(var parentSuite=this;parentSuite;parentSuite=parentSuite.parentSuite){if(parentSuite.parentSuite){fullName.unshift(parentSuite.description)}}return fullName.join(" ")}// Mark the suite with "pending" status
|
|
629
|
-
},{key:"pend",value:function pend(){this.markedPending=true}// Like pend(), but pending state will survive reset().
|
|
630
|
-
// Useful for fdescribe, xdescribe, where pending state should remain.
|
|
631
|
-
},{key:"exclude",value:function exclude(){this.pend();this.markedExcluding=true}},{key:"beforeEach",value:function beforeEach(fn){this.beforeFns.unshift(__spreadProps(__spreadValues({},fn),{suite:this}))}},{key:"beforeAll",value:function beforeAll(fn){this.beforeAllFns.push(__spreadProps(__spreadValues({},fn),{type:"beforeAll",suite:this}))}},{key:"afterEach",value:function afterEach(fn){this.afterFns.unshift(__spreadProps(__spreadValues({},fn),{suite:this,type:"afterEach"}))}},{key:"afterAll",value:function afterAll(fn){this.afterAllFns.unshift(__spreadProps(__spreadValues({},fn),{type:"afterAll"}))}},{key:"startTimer",value:function startTimer(){__privateGet(this,_timer).start()}},{key:"endTimer",value:function endTimer(){this.result.duration=__privateGet(this,_timer).elapsed()}},{key:"cleanupBeforeAfter",value:function cleanupBeforeAfter(){if(__privateGet(this,_autoCleanClosures)){removeFns(this.beforeAllFns);removeFns(this.afterAllFns);removeFns(this.beforeFns);removeFns(this.afterFns)}}},{key:"reset",value:function reset(){this.result={id:this.id,description:this.description,fullName:this.getFullName(),parentSuiteId:__privateGet(this,_reportedParentSuiteId),filename:this.filename,failedExpectations:[],deprecationWarnings:[],duration:null,properties:null};this.markedPending=this.markedExcluding;this.children.forEach(function(child){child.reset()});this.reportedDone=false}},{key:"removeChildren",value:function removeChildren(){this.children=[]}},{key:"addChild",value:function addChild(child){this.children.push(child)}},{key:"getResult",value:function getResult(){this.result.status=__privateMethod(this,_Suite_instances,status_fn).call(this);return this.result}},{key:"canBeReentered",value:function canBeReentered(){return this.beforeAllFns.length===0&&this.afterAllFns.length===0}},{key:"sharedUserContext",value:function sharedUserContext(){if(!this.sharedContext){this.sharedContext=this.parentSuite?this.parentSuite.clonedSharedUserContext():new j$2.UserContext}return this.sharedContext}},{key:"clonedSharedUserContext",value:function clonedSharedUserContext(){return j$2.UserContext.fromExisting(this.sharedUserContext())}},{key:"handleException",value:function handleException(){if(arguments[0]instanceof j$2.errors.ExpectationFailed){return}var data={matcherName:"",passed:false,expected:"",actual:"",error:arguments[0]};var failedExpectation=j$2.buildExpectationResult(data);if(!this.parentSuite){failedExpectation.globalErrorType="afterAll"}if(this.reportedDone){this.onLateError(failedExpectation)}else{this.result.failedExpectations.push(failedExpectation)}}},{key:"onMultipleDone",value:function onMultipleDone(){var msg;if(this.parentSuite){msg="An asynchronous beforeAll or afterAll function called its 'done' callback more than once.\n(in suite: "+this.getFullName()+")"}else{msg="A top-level beforeAll or afterAll function called its 'done' callback more than once."}this.onLateError(new Error(msg))}},{key:"addExpectationResult",value:function addExpectationResult(){if(isFailure(arguments)){var data=arguments[1];var expectationResult=j$2.buildExpectationResult(data);if(this.reportedDone){this.onLateError(expectationResult)}else{this.result.failedExpectations.push(expectationResult);if(this.result.status){this.result.status="failed"}}if(__privateGet(this,_throwOnExpectationFailure)){throw new j$2.errors.ExpectationFailed}}}},{key:"addDeprecationWarning",value:function addDeprecationWarning(deprecation){if(typeof deprecation==="string"){deprecation={message:deprecation}}this.result.deprecationWarnings.push(j$2.buildExpectationResult(deprecation))}},{key:"hasChildWithDescription",value:function hasChildWithDescription(description){var _iterator29=_createForOfIteratorHelper(this.children),_step29;try{for(_iterator29.s();!(_step29=_iterator29.n()).done;){var child=_step29.value;if(child.description===description){return true}}}catch(err){_iterator29.e(err)}finally{_iterator29.f()}return false}},{key:"metadata",get:function get(){if(!this.metadata_){this.metadata_=new SuiteMetadata(this)}return this.metadata_}}])}();_reportedParentSuiteId=new WeakMap;_throwOnExpectationFailure=new WeakMap;_autoCleanClosures=new WeakMap;_timer=new WeakMap;_Suite_instances=new WeakSet;status_fn=function status_fn(){if(this.markedPending){return"pending"}if(this.result.failedExpectations.length>0){return"failed"}else{return"passed"}};function removeFns(queueableFns){var _iterator30=_createForOfIteratorHelper(queueableFns),_step30;try{for(_iterator30.s();!(_step30=_iterator30.n()).done;){var qf=_step30.value;qf.fn=null}}catch(err){_iterator30.e(err)}finally{_iterator30.f()}}var SuiteMetadata=/*#__PURE__*/function(){"use strict";function SuiteMetadata(suite){_classCallCheck(this,SuiteMetadata);__privateAdd(this,_suite);__privateSet(this,_suite,suite);this.id=suite.id;this.parentSuite=suite.parentSuite?suite.parentSuite.metadata:null;this.description=suite.description;this.filename=suite.filename}/**
|
|
632
|
-
* The full description including all ancestors of this suite.
|
|
633
|
-
* @name Suite#getFullName
|
|
634
|
-
* @function
|
|
635
|
-
* @returns {string}
|
|
636
|
-
* @since 2.0.0
|
|
637
|
-
*/return _createClass(SuiteMetadata,[{key:"getFullName",value:function getFullName(){return __privateGet(this,_suite).getFullName()}/**
|
|
638
|
-
* The suite's children.
|
|
639
|
-
* @name Suite#children
|
|
640
|
-
* @type {Array.<(Spec|Suite)>}
|
|
641
|
-
* @since 2.0.0
|
|
642
|
-
*/},{key:"children",get:function get(){return __privateGet(this,_suite).children.map(function(child){return child.metadata})}}])}();_suite=new WeakMap;function isFailure(args){return!args[0]}return Suite};getJasmineRequireObj().SuiteBuilder=function(j$2){var SuiteBuilder=/*#__PURE__*/function(){"use strict";function SuiteBuilder(options){_classCallCheck(this,SuiteBuilder);this.env_=options.env;this.expectationFactory_=options.expectationFactory;this.suiteAsyncExpectationFactory_=function(actual,suite){return options.asyncExpectationFactory(actual,suite,"Suite")};this.specAsyncExpectationFactory_=function(actual,suite){return options.asyncExpectationFactory(actual,suite,"Spec")};this.onLateError_=options.onLateError;this.nextSuiteId_=0;this.nextSpecId_=0;this.topSuite=this.suiteFactory_("Jasmine__TopLevel__Suite");this.currentDeclarationSuite_=this.topSuite;this.totalSpecsDefined=0;this.focusedRunables=[]}return _createClass(SuiteBuilder,[{key:"inDescribe",value:function inDescribe(){return this.currentDeclarationSuite_!==this.topSuite}},{key:"parallelReset",value:function parallelReset(){this.topSuite.removeChildren();this.topSuite.reset();this.totalSpecsDefined=0;this.focusedRunables=[]}},{key:"describe",value:function describe(description,definitionFn,filename){ensureIsFunction(definitionFn,"describe");var suite=this.suiteFactory_(description,filename);if(definitionFn.length>0){throw new Error("describe does not expect any arguments")}if(this.currentDeclarationSuite_.markedExcluding){suite.exclude()}this.addSpecsToSuite_(suite,definitionFn);return suite}},{key:"fdescribe",value:function fdescribe(description,definitionFn,filename){ensureIsFunction(definitionFn,"fdescribe");var suite=this.suiteFactory_(description,filename);suite.isFocused=true;this.focusedRunables.push(suite.id);this.unfocusAncestor_();this.addSpecsToSuite_(suite,definitionFn);return suite}},{key:"xdescribe",value:function xdescribe(description,definitionFn,filename){ensureIsFunction(definitionFn,"xdescribe");var suite=this.suiteFactory_(description,filename);suite.exclude();this.addSpecsToSuite_(suite,definitionFn);return suite}},{key:"it",value:function it(description,fn,timeout,filename){if(arguments.length>1&&typeof fn!=="undefined"){ensureIsFunctionOrAsync(fn,"it")}return this.it_(description,fn,timeout,filename)}},{key:"xit",value:function xit(description,fn,timeout,filename){if(arguments.length>1&&typeof fn!=="undefined"){ensureIsFunctionOrAsync(fn,"xit")}var spec=this.it_(description,fn,timeout,filename);spec.exclude("Temporarily disabled with xit");return spec}},{key:"fit",value:function fit(description,fn,timeout,filename){ensureIsFunctionOrAsync(fn,"fit");if(timeout){j$2.util.validateTimeout(timeout)}var spec=this.specFactory_(description,fn,timeout,filename);this.currentDeclarationSuite_.addChild(spec);this.focusedRunables.push(spec.id);this.unfocusAncestor_();return spec}},{key:"beforeEach",value:function beforeEach(beforeEachFunction,timeout){ensureIsFunctionOrAsync(beforeEachFunction,"beforeEach");if(timeout){j$2.util.validateTimeout(timeout)}this.currentDeclarationSuite_.beforeEach({fn:beforeEachFunction,timeout:timeout||0})}},{key:"beforeAll",value:function beforeAll(beforeAllFunction,timeout){ensureIsFunctionOrAsync(beforeAllFunction,"beforeAll");if(timeout){j$2.util.validateTimeout(timeout)}this.currentDeclarationSuite_.beforeAll({fn:beforeAllFunction,timeout:timeout||0})}},{key:"afterEach",value:function afterEach(afterEachFunction,timeout){ensureIsFunctionOrAsync(afterEachFunction,"afterEach");if(timeout){j$2.util.validateTimeout(timeout)}afterEachFunction.isCleanup=true;this.currentDeclarationSuite_.afterEach({fn:afterEachFunction,timeout:timeout||0})}},{key:"afterAll",value:function afterAll(afterAllFunction,timeout){ensureIsFunctionOrAsync(afterAllFunction,"afterAll");if(timeout){j$2.util.validateTimeout(timeout)}this.currentDeclarationSuite_.afterAll({fn:afterAllFunction,timeout:timeout||0})}},{key:"it_",value:function it_(description,fn,timeout,filename){if(timeout){j$2.util.validateTimeout(timeout)}this.checkDuplicate_(description,"spec");var spec=this.specFactory_(description,fn,timeout,filename);if(this.currentDeclarationSuite_.markedExcluding){spec.exclude()}this.currentDeclarationSuite_.addChild(spec);return spec}},{key:"checkDuplicate_",value:function checkDuplicate_(description,type){if(!this.env_.configuration().forbidDuplicateNames){return}if(this.currentDeclarationSuite_.hasChildWithDescription(description)){var parentDesc=this.currentDeclarationSuite_===this.topSuite?"top suite":"\"".concat(this.currentDeclarationSuite_.getFullName(),"\"");throw new Error("Duplicate ".concat(type," name \"").concat(description,"\" found in ").concat(parentDesc))}}},{key:"suiteFactory_",value:function suiteFactory_(description,filename){if(this.topSuite){this.checkDuplicate_(description,"suite")}var config=this.env_.configuration();var parentSuite=this.currentDeclarationSuite_;var reportedParentSuiteId=parentSuite===this.topSuite?null:parentSuite.id;return new j$2.Suite({id:"suite"+this.nextSuiteId_++,description:description,filename:filename,parentSuite:parentSuite,reportedParentSuiteId:reportedParentSuiteId,timer:new j$2.Timer,expectationFactory:this.expectationFactory_,asyncExpectationFactory:this.suiteAsyncExpectationFactory_,throwOnExpectationFailure:config.stopSpecOnExpectationFailure,autoCleanClosures:config.autoCleanClosures,onLateError:this.onLateError_})}},{key:"addSpecsToSuite_",value:function addSpecsToSuite_(suite,definitionFn){var parentSuite=this.currentDeclarationSuite_;parentSuite.addChild(suite);this.currentDeclarationSuite_=suite;var threw=false;try{definitionFn()}catch(e){suite.handleException(e);threw=true}if(suite.parentSuite&&!suite.children.length&&!threw){throw new Error("describe with no children (describe() or it()): ".concat(suite.getFullName()))}this.currentDeclarationSuite_=parentSuite}},{key:"specFactory_",value:function specFactory_(description,fn,timeout,filename){var _this12=this;this.totalSpecsDefined++;var config=this.env_.configuration();var suite=this.currentDeclarationSuite_;var parentSuiteId=suite===this.topSuite?null:suite.id;var spec=new j$2.Spec({id:"spec"+this.nextSpecId_++,filename:filename,parentSuiteId:parentSuiteId,beforeAndAfterFns:beforeAndAfterFns(suite),expectationFactory:this.expectationFactory_,asyncExpectationFactory:this.specAsyncExpectationFactory_,onLateError:this.onLateError_,getPath:function getPath(spec2){return _this12.getSpecPath_(spec2,suite)},description:description,userContext:function userContext(){return suite.clonedSharedUserContext()},queueableFn:{fn:fn,timeout:timeout||0},throwOnExpectationFailure:config.stopSpecOnExpectationFailure,autoCleanClosures:config.autoCleanClosures,timer:new j$2.Timer});return spec}},{key:"getSpecPath_",value:function getSpecPath_(spec,suite){var path=[spec.description];while(suite&&suite!==this.topSuite){path.unshift(suite.description);suite=suite.parentSuite}return path}},{key:"unfocusAncestor_",value:function unfocusAncestor_(){var focusedAncestor=findFocusedAncestor(this.currentDeclarationSuite_);if(focusedAncestor){for(var i=0;i<this.focusedRunables.length;i++){if(this.focusedRunables[i]===focusedAncestor){this.focusedRunables.splice(i,1);break}}}}}])}();function findFocusedAncestor(suite){while(suite){if(suite.isFocused){return suite.id}suite=suite.parentSuite}return null}function ensureIsFunction(fn,caller){if(!j$2.isFunction_(fn)){throw new Error(caller+" expects a function argument; received "+j$2.getType_(fn))}}function ensureIsFunctionOrAsync(fn,caller){if(!j$2.isFunction_(fn)&&!j$2.isAsyncFunction_(fn)){throw new Error(caller+" expects a function argument; received "+j$2.getType_(fn))}}function beforeAndAfterFns(targetSuite){return function(){var befores=[],afters=[],suite=targetSuite;while(suite){befores=befores.concat(suite.beforeFns);afters=afters.concat(suite.afterFns);suite=suite.parentSuite}return{befores:befores.reverse(),afters:afters}}}return SuiteBuilder};getJasmineRequireObj().Timer=function(){var defaultNow=/* @__PURE__ */function(Date2){return function(){return new Date2().getTime()}}(Date);function Timer(options){options=options||{};var now=options.now||defaultNow;var startTime;this.start=function(){startTime=now()};this.elapsed=function(){return now()-startTime}}return Timer};getJasmineRequireObj().TreeProcessor=function(j$2){var _tree,_runnableIds,_orderChildren,_excludeNode,_stats,_TreeProcessor_instances,runnableIndex_fn,_processNode_fn,_stats2;var defaultMin=Infinity;var defaultMax=1-Infinity;var TreeProcessor=/*#__PURE__*/function(){"use strict";function TreeProcessor(attrs){_classCallCheck(this,TreeProcessor);__privateAdd(this,_TreeProcessor_instances);__privateAdd(this,_tree);__privateAdd(this,_runnableIds);__privateAdd(this,_orderChildren);__privateAdd(this,_excludeNode);__privateAdd(this,_stats);__privateSet(this,_tree,attrs.tree);__privateSet(this,_runnableIds,attrs.runnableIds);__privateSet(this,_orderChildren,attrs.orderChildren||function(node){return node.children});__privateSet(this,_excludeNode,attrs.excludeNode||function(node){return false})}return _createClass(TreeProcessor,[{key:"processTree",value:function processTree(){__privateSet(this,_stats,{});__privateMethod(this,_TreeProcessor_instances,_processNode_fn).call(this,__privateGet(this,_tree),true);var result=new ExecutionTree(__privateGet(this,_tree),__privateGet(this,_stats));__privateSet(this,_stats,null);return result}}])}();_tree=new WeakMap;_runnableIds=new WeakMap;_orderChildren=new WeakMap;_excludeNode=new WeakMap;_stats=new WeakMap;_TreeProcessor_instances=new WeakSet;runnableIndex_fn=function runnableIndex_fn(id){for(var i=0;i<__privateGet(this,_runnableIds).length;i++){if(__privateGet(this,_runnableIds)[i]===id){return i}}};_processNode_fn=function processNode_fn(node,parentExcluded){var executableIndex=__privateMethod(this,_TreeProcessor_instances,runnableIndex_fn).call(this,node.id);if(executableIndex!==void 0){parentExcluded=false}if(!node.children){var excluded=parentExcluded||__privateGet(this,_excludeNode).call(this,node);__privateGet(this,_stats)[node.id]={excluded:excluded,willExecute:!excluded&&!node.markedPending,segments:[{index:0,owner:node,nodes:[node],min:startingMin(executableIndex),max:startingMax(executableIndex)}]}}else{var hasExecutableChild=false;var orderedChildren=__privateGet(this,_orderChildren).call(this,node);for(var i=0;i<orderedChildren.length;i++){var child=orderedChildren[i];__privateMethod(this,_TreeProcessor_instances,_processNode_fn).call(this,child,parentExcluded);var childStats=__privateGet(this,_stats)[child.id];hasExecutableChild=hasExecutableChild||childStats.willExecute}__privateGet(this,_stats)[node.id]={excluded:parentExcluded,willExecute:hasExecutableChild};segmentChildren(node,orderedChildren,__privateGet(this,_stats),executableIndex);if(__privateGet(this,_stats)[node.id].segments.length>1){if(node.canBeReentered()){j$2.getEnv().deprecated("The specified spec/suite order splits up a suite, running unrelated specs in the middle of it. This will become an error in a future release.")}else{throw new Error("Invalid order: would cause a beforeAll or afterAll to be run multiple times")}}}};var ExecutionTree=/*#__PURE__*/function(){"use strict";function ExecutionTree(topSuite,stats){_classCallCheck(this,ExecutionTree);__privateAdd(this,_stats2);Object.defineProperty(this,"topSuite",{writable:false,value:topSuite});__privateSet(this,_stats2,stats)}return _createClass(ExecutionTree,[{key:"childrenOfTopSuite",value:function childrenOfTopSuite(){return this.childrenOfSuiteSegment(this.topSuite,0)}},{key:"childrenOfSuiteSegment",value:function childrenOfSuiteSegment(suite,segmentNumber){var segmentChildren2=__privateGet(this,_stats2)[suite.id].segments[segmentNumber].nodes;return segmentChildren2.map(function(child){if(child.owner.children){return{suite:child.owner,segmentNumber:child.index}}else{return{spec:child.owner}}})}},{key:"isExcluded",value:function isExcluded(node){var nodeStats=__privateGet(this,_stats2)[node.id];return node.children?!nodeStats.willExecute:nodeStats.excluded}}])}();_stats2=new WeakMap;function segmentChildren(node,orderedChildren,stats,executableIndex){var currentSegment={index:0,owner:node,nodes:[],min:startingMin(executableIndex),max:startingMax(executableIndex)},result=[currentSegment],lastMax=defaultMax,orderedChildSegments=orderChildSegments(orderedChildren,stats);function isSegmentBoundary(minIndex){return lastMax!==defaultMax&&minIndex!==defaultMin&&lastMax<minIndex-1}for(var i=0;i<orderedChildSegments.length;i++){var childSegment=orderedChildSegments[i],maxIndex=childSegment.max,minIndex=childSegment.min;if(isSegmentBoundary(minIndex)){currentSegment={index:result.length,owner:node,nodes:[],min:defaultMin,max:defaultMax};result.push(currentSegment)}currentSegment.nodes.push(childSegment);currentSegment.min=Math.min(currentSegment.min,minIndex);currentSegment.max=Math.max(currentSegment.max,maxIndex);lastMax=maxIndex}stats[node.id].segments=result}function orderChildSegments(children,stats){var specifiedOrder=[],unspecifiedOrder=[];for(var i=0;i<children.length;i++){var child=children[i],segments=stats[child.id].segments;for(var j=0;j<segments.length;j++){var seg=segments[j];if(seg.min===defaultMin){unspecifiedOrder.push(seg)}else{specifiedOrder.push(seg)}}}specifiedOrder.sort(function(a,b){return a.min-b.min});return specifiedOrder.concat(unspecifiedOrder)}function startingMin(executableIndex){return executableIndex===void 0?defaultMin:executableIndex}function startingMax(executableIndex){return executableIndex===void 0?defaultMax:executableIndex}return TreeProcessor};getJasmineRequireObj().TreeRunner=function(j$2){var _executionTree,_setTimeout,_globalErrors,_runableResources,_reportDispatcher,_runQueue,_getConfig,_currentRunableTracker,_hasFailures,_TreeRunner_instances,wrapNodes_fn,specQueueableFns_fn,executeSuiteSegment_fn,lateUnhandledRejectionChecker_fn,suiteSegmentStart_fn,suiteSegmentComplete_fn,reportSuiteDone_fn,specComplete_fn,reportSpecDone_fn,_reportChildrenOfBeforeAllFailure_fn,suiteSkipPolicy_fn;var TreeRunner=/*#__PURE__*/function(){"use strict";function TreeRunner(attrs){_classCallCheck(this,TreeRunner);__privateAdd(this,_TreeRunner_instances);__privateAdd(this,_executionTree);__privateAdd(this,_setTimeout);__privateAdd(this,_globalErrors);__privateAdd(this,_runableResources);__privateAdd(this,_reportDispatcher);__privateAdd(this,_runQueue);__privateAdd(this,_getConfig);__privateAdd(this,_currentRunableTracker);__privateAdd(this,_hasFailures);__privateSet(this,_executionTree,attrs.executionTree);__privateSet(this,_globalErrors,attrs.globalErrors);__privateSet(this,_setTimeout,attrs.setTimeout||setTimeout.bind(globalThis));__privateSet(this,_runableResources,attrs.runableResources);__privateSet(this,_reportDispatcher,attrs.reportDispatcher);__privateSet(this,_runQueue,attrs.runQueue);__privateSet(this,_getConfig,attrs.getConfig);__privateSet(this,_currentRunableTracker,attrs.currentRunableTracker)}return _createClass(TreeRunner,[{key:"execute",value:function(){var _execute2=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee8(){var _this13=this;return _regenerator().w(function(_context8){while(1)switch(_context8.n){case 0:__privateSet(this,_hasFailures,false);_context8.n=1;return new Promise(function(resolve){__privateMethod(_this13,_TreeRunner_instances,executeSuiteSegment_fn).call(_this13,__privateGet(_this13,_executionTree).topSuite,0,resolve)});case 1:return _context8.a(2,{hasFailures:__privateGet(this,_hasFailures)})}},_callee8,this)}));function execute(){return _execute2.apply(this,arguments)}return execute}()// Only exposed for testing.
|
|
643
|
-
},{key:"_executeSpec",value:function _executeSpec(spec,specOverallDone){var _this14=this;var onStart=function onStart(next){__privateGet(_this14,_currentRunableTracker).setCurrentSpec(spec);__privateGet(_this14,_runableResources).initForRunable(spec.id,spec.parentSuiteId||__privateGet(_this14,_executionTree).topSuite.id);__privateGet(_this14,_reportDispatcher).specStarted(spec.result).then(next)};var resultCallback=function resultCallback(result,next){__privateMethod(_this14,_TreeRunner_instances,specComplete_fn).call(_this14,spec).then(next)};var queueableFns=__privateMethod(this,_TreeRunner_instances,specQueueableFns_fn).call(this,spec,onStart,resultCallback);__privateGet(this,_runQueue).call(this,{isLeaf:true,queueableFns:queueableFns,onException:function onException(e){return spec.handleException(e)},onMultipleDone:function onMultipleDone(){spec.onLateError(new Error("An asynchronous spec, beforeEach, or afterEach function called its 'done' callback more than once.\n(in spec: "+spec.getFullName()+")"))},onComplete:function onComplete(){if(spec.result.status==="failed"){specOverallDone(new j$2.StopExecutionError("spec failed"))}else{specOverallDone()}},userContext:spec.userContext(),runnableName:spec.getFullName.bind(spec),SkipPolicy:j$2.CompleteOnFirstErrorSkipPolicy})}}])}();_executionTree=new WeakMap;_setTimeout=new WeakMap;_globalErrors=new WeakMap;_runableResources=new WeakMap;_reportDispatcher=new WeakMap;_runQueue=new WeakMap;_getConfig=new WeakMap;_currentRunableTracker=new WeakMap;_hasFailures=new WeakMap;_TreeRunner_instances=new WeakSet;wrapNodes_fn=function wrapNodes_fn(nodes){var _this15=this;return nodes.map(function(node){return{fn:function fn(done){if(node.suite){__privateMethod(_this15,_TreeRunner_instances,executeSuiteSegment_fn).call(_this15,node.suite,node.segmentNumber,done)}else{_this15._executeSpec(node.spec,done)}}}})};specQueueableFns_fn=function specQueueableFns_fn(spec,onStart,resultCallback){var config=__privateGet(this,_getConfig).call(this);var excluded=__privateGet(this,_executionTree).isExcluded(spec);var ba=spec.beforeAndAfterFns();var fns=[].concat(_toConsumableArray(ba.befores),[spec.queueableFn],_toConsumableArray(ba.afters));if(spec.markedPending||excluded===true){fns=[]}var start={fn:function fn(done){spec.executionStarted();onStart(done)}};var complete={fn:function fn(done){spec.executionFinished(excluded,config.failSpecWithNoExpectations);resultCallback(spec.result,done)},type:"specCleanup"};fns.unshift(start);if(config.detectLateRejectionHandling){fns.push(__privateMethod(this,_TreeRunner_instances,lateUnhandledRejectionChecker_fn).call(this))}fns.push(complete);return fns};executeSuiteSegment_fn=function executeSuiteSegment_fn(suite,segmentNumber,done){var _this16=this;var isTopSuite=suite===__privateGet(this,_executionTree).topSuite;var isExcluded=__privateGet(this,_executionTree).isExcluded(suite);var befores=[];var afters=[];if(suite.beforeAllFns.length>0&&!isExcluded){befores=_toConsumableArray(suite.beforeAllFns);if(__privateGet(this,_getConfig).call(this).detectLateRejectionHandling){befores.push(__privateMethod(this,_TreeRunner_instances,lateUnhandledRejectionChecker_fn).call(this))}}if(suite.afterAllFns.length>0&&!isExcluded){afters=_toConsumableArray(suite.afterAllFns);if(__privateGet(this,_getConfig).call(this).detectLateRejectionHandling){afters.push(__privateMethod(this,_TreeRunner_instances,lateUnhandledRejectionChecker_fn).call(this))}}var children=isTopSuite?__privateGet(this,_executionTree).childrenOfTopSuite():__privateGet(this,_executionTree).childrenOfSuiteSegment(suite,segmentNumber);var queueableFns=[].concat(_toConsumableArray(befores),_toConsumableArray(__privateMethod(this,_TreeRunner_instances,wrapNodes_fn).call(this,children)),_toConsumableArray(afters));if(!isTopSuite){queueableFns.unshift({fn:function fn(next){__privateMethod(_this16,_TreeRunner_instances,suiteSegmentStart_fn).call(_this16,suite,next)}})}__privateGet(this,_runQueue).call(this,{onComplete:function onComplete(maybeError){__privateMethod(_this16,_TreeRunner_instances,suiteSegmentComplete_fn).call(_this16,suite,suite.getResult(),function(){done(maybeError)})},queueableFns:queueableFns,userContext:suite.sharedUserContext(),onException:function onException(){suite.handleException.apply(suite,arguments)},onMultipleDone:suite.onMultipleDone?suite.onMultipleDone.bind(suite):null,SkipPolicy:__privateMethod(this,_TreeRunner_instances,suiteSkipPolicy_fn).call(this)})};// Returns a queueable fn that reports any still-unhandled rejections in
|
|
644
|
-
// cases where detectLateRejectionHandling is enabled. Should only be called
|
|
645
|
-
// when detectLateRejectionHandling is enabled, because the setTimeout
|
|
646
|
-
// imposes a significant performance penalty in suites with lots of fast
|
|
647
|
-
// specs.
|
|
648
|
-
lateUnhandledRejectionChecker_fn=function lateUnhandledRejectionChecker_fn(){var _this17=this;var globalErrors=__privateGet(this,_globalErrors);return{fn:function fn(done){__privateGet(_this17,_setTimeout).call(_this17,function(){globalErrors.reportUnhandledRejections();done()})}}};suiteSegmentStart_fn=function suiteSegmentStart_fn(suite,next){__privateGet(this,_currentRunableTracker).pushSuite(suite);__privateGet(this,_runableResources).initForRunable(suite.id,suite.parentSuite.id);__privateGet(this,_reportDispatcher).suiteStarted(suite.result).then(next);suite.startTimer()};suiteSegmentComplete_fn=function suiteSegmentComplete_fn(suite,result,next){var _this18=this;var isTopSuite=suite===__privateGet(this,_executionTree).topSuite;if(!isTopSuite){if(suite!==__privateGet(this,_currentRunableTracker).currentSuite()){throw new Error("Tried to complete the wrong suite")}suite.cleanupBeforeAfter();__privateGet(this,_runableResources).clearForRunable(suite.id);__privateGet(this,_currentRunableTracker).popSuite();if(result.status==="failed"){__privateSet(this,_hasFailures,true)}suite.endTimer()}var finish=isTopSuite?next:function(){return __privateMethod(_this18,_TreeRunner_instances,reportSuiteDone_fn).call(_this18,suite,result,next)};if(suite.hadBeforeAllFailure){__privateMethod(this,_TreeRunner_instances,_reportChildrenOfBeforeAllFailure_fn).call(this,suite).then(finish)}else{finish()}};reportSuiteDone_fn=function reportSuiteDone_fn(suite,result,next){suite.reportedDone=true;__privateGet(this,_reportDispatcher).suiteDone(result).then(next)};specComplete_fn=/*#__PURE__*/function(){var _ref11=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee9(spec){return _regenerator().w(function(_context9){while(1)switch(_context9.n){case 0:__privateGet(this,_runableResources).clearForRunable(spec.id);__privateGet(this,_currentRunableTracker).setCurrentSpec(null);if(spec.result.status==="failed"){__privateSet(this,_hasFailures,true)}_context9.n=1;return __privateMethod(this,_TreeRunner_instances,reportSpecDone_fn).call(this,spec);case 1:return _context9.a(2)}},_callee9,this)}));return function specComplete_fn(_x7){return _ref11.apply(this,arguments)}}();reportSpecDone_fn=/*#__PURE__*/function(){var _ref12=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee0(spec){return _regenerator().w(function(_context0){while(1)switch(_context0.n){case 0:spec.reportedDone=true;_context0.n=1;return __privateGet(this,_reportDispatcher).specDone(spec.result);case 1:return _context0.a(2)}},_callee0,this)}));return function reportSpecDone_fn(_x8){return _ref12.apply(this,arguments)}}();_reportChildrenOfBeforeAllFailure_fn=/*#__PURE__*/function(){var _ref13=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee1(suite){var _iterator31,_step31,child,_t;return _regenerator().w(function(_context1){while(1)switch(_context1.p=_context1.n){case 0:_iterator31=_createForOfIteratorHelper(suite.children);_context1.p=1;_iterator31.s();case 2:if((_step31=_iterator31.n()).done){_context1.n=9;break}child=_step31.value;if(!(child instanceof j$2.Suite)){_context1.n=6;break}_context1.n=3;return __privateGet(this,_reportDispatcher).suiteStarted(child.result);case 3:_context1.n=4;return __privateMethod(this,_TreeRunner_instances,_reportChildrenOfBeforeAllFailure_fn).call(this,child);case 4:child.result.status="passed";_context1.n=5;return __privateGet(this,_reportDispatcher).suiteDone(child.result);case 5:_context1.n=8;break;case 6:_context1.n=7;return __privateGet(this,_reportDispatcher).specStarted(child.result);case 7:child.addExpectationResult(false,{passed:false,message:"Not run because a beforeAll function failed. The beforeAll failure will be reported on the suite that caused it."},true);child.result.status="failed";_context1.n=8;return __privateMethod(this,_TreeRunner_instances,reportSpecDone_fn).call(this,child);case 8:_context1.n=2;break;case 9:_context1.n=11;break;case 10:_context1.p=10;_t=_context1.v;_iterator31.e(_t);case 11:_context1.p=11;_iterator31.f();return _context1.f(11);case 12:return _context1.a(2)}},_callee1,this,[[1,10,11,12]])}));return function reportChildrenOfBeforeAllFailure_fn(_x9){return _ref13.apply(this,arguments)}}();suiteSkipPolicy_fn=function suiteSkipPolicy_fn(){if(__privateGet(this,_getConfig).call(this).stopOnSpecFailure){return j$2.CompleteOnFirstErrorSkipPolicy}else{return j$2.SkipAfterBeforeAllErrorPolicy}};return TreeRunner};getJasmineRequireObj().UserContext=function(j$2){function UserContext(){}UserContext.fromExisting=function(oldContext){var context=new UserContext;for(var prop in oldContext){if(oldContext.hasOwnProperty(prop)){context[prop]=oldContext[prop]}}return context};return UserContext};getJasmineRequireObj().version=function(){return"5.13.0"}}});// ../vinyl-jasmine-wrapper/dist/polyfills.js
|
|
649
|
-
var import_queue_microtask=__toESM(require_queue_microtask5(),1);var import_to_precision=__toESM(require_to_precision5(),1);var import_to_fixed=__toESM(require_to_fixed5(),1);// ../../node_modules/jasmine-core/lib/jasmine-core/jasmine-html.js
|
|
650
|
-
var jasmineRequire=window.jasmineRequire||require_jasmine();jasmineRequire.html=function(j$2){j$2.ResultsNode=jasmineRequire.ResultsNode();j$2.HtmlReporter=jasmineRequire.HtmlReporter(j$2);j$2.QueryString=jasmineRequire.QueryString();j$2.HtmlSpecFilter=jasmineRequire.HtmlSpecFilter()};jasmineRequire.HtmlReporter=function(j$2){function ResultsStateBuilder(){this.topResults=new j$2.ResultsNode({},"",null);this.currentParent=this.topResults;this.specsExecuted=0;this.failureCount=0;this.pendingSpecCount=0}ResultsStateBuilder.prototype.suiteStarted=function(result){this.currentParent.addChild(result,"suite");this.currentParent=this.currentParent.last()};ResultsStateBuilder.prototype.suiteDone=function(result){this.currentParent.updateResult(result);if(this.currentParent!==this.topResults){this.currentParent=this.currentParent.parent}if(result.status==="failed"){this.failureCount++}};ResultsStateBuilder.prototype.specStarted=function(result){};ResultsStateBuilder.prototype.specDone=function(result){this.currentParent.addChild(result,"spec");if(result.status!=="excluded"){this.specsExecuted++}if(result.status==="failed"){this.failureCount++}if(result.status=="pending"){this.pendingSpecCount++}};ResultsStateBuilder.prototype.jasmineDone=function(result){if(result.failedExpectations){this.failureCount+=result.failedExpectations.length}};function HtmlReporter(options){function config(){return options.env&&options.env.configuration()||{}}var getContainer=options.getContainer;var createElement=options.createElement;var createTextNode=options.createTextNode;var navigateWithNewParam=options.navigateWithNewParam||function(){};var addToExistingQueryString=options.addToExistingQueryString||defaultQueryString;var filterSpecs=options.filterSpecs;var htmlReporterMain;var symbols;var deprecationWarnings=[];var failures=[];this.initialize=function(){clearPrior();htmlReporterMain=createDom("div",{className:"jasmine_html-reporter"},createDom("div",{className:"jasmine-banner"},createDom("a",{className:"jasmine-title",href:"http://jasmine.github.io/",target:"_blank"}),createDom("span",{className:"jasmine-version"},j$2.version)),createDom("ul",{className:"jasmine-symbol-summary"}),createDom("div",{className:"jasmine-alert"}),createDom("div",{className:"jasmine-results"},createDom("div",{className:"jasmine-failures"})));getContainer().appendChild(htmlReporterMain)};var totalSpecsDefined;this.jasmineStarted=function(options2){totalSpecsDefined=options2.totalSpecsDefined||0};var summary=createDom("div",{className:"jasmine-summary"});var stateBuilder=new ResultsStateBuilder;this.suiteStarted=function(result){stateBuilder.suiteStarted(result)};this.suiteDone=function(result){stateBuilder.suiteDone(result);if(result.status==="failed"){failures.push(failureDom(result))}addDeprecationWarnings(result,"suite")};this.specStarted=function(result){stateBuilder.specStarted(result)};this.specDone=function(result){stateBuilder.specDone(result);if(noExpectations(result)){var noSpecMsg="Spec '"+result.fullName+"' has no expectations.";if(result.status==="failed"){console.error(noSpecMsg)}else{console.warn(noSpecMsg)}}if(!symbols){symbols=find(".jasmine-symbol-summary")}symbols.appendChild(createDom("li",{className:this.displaySpecInCorrectFormat(result),id:"spec_"+result.id,title:result.fullName}));if(result.status==="failed"){failures.push(failureDom(result))}addDeprecationWarnings(result,"spec")};this.displaySpecInCorrectFormat=function(result){return noExpectations(result)&&result.status==="passed"?"jasmine-empty":this.resultStatus(result.status)};this.resultStatus=function(status){if(status==="excluded"){return config().hideDisabled?"jasmine-excluded-no-display":"jasmine-excluded"}return"jasmine-"+status};this.jasmineDone=function(doneResult){stateBuilder.jasmineDone(doneResult);var banner=find(".jasmine-banner");var alert=find(".jasmine-alert");var order=doneResult&&doneResult.order;alert.appendChild(createDom("span",{className:"jasmine-duration"},"finished in "+doneResult.totalTime/1e3+"s"));banner.appendChild(optionsMenu(config()));if(stateBuilder.specsExecuted<totalSpecsDefined){var skippedMessage="Ran "+stateBuilder.specsExecuted+" of "+totalSpecsDefined+" specs - run all";var skippedLink=(window.location.pathname||"")+addToExistingQueryString("spec","");alert.appendChild(createDom("span",{className:"jasmine-bar jasmine-skipped"},createDom("a",{href:skippedLink,title:"Run all specs"},skippedMessage)))}var statusBarMessage="";var statusBarClassName="jasmine-overall-result jasmine-bar ";var globalFailures=doneResult&&doneResult.failedExpectations||[];var failed=stateBuilder.failureCount+globalFailures.length>0;if(totalSpecsDefined>0||failed){statusBarMessage+=pluralize("spec",stateBuilder.specsExecuted)+", "+pluralize("failure",stateBuilder.failureCount);if(stateBuilder.pendingSpecCount){statusBarMessage+=", "+pluralize("pending spec",stateBuilder.pendingSpecCount)}}if(doneResult.overallStatus==="passed"){statusBarClassName+=" jasmine-passed "}else if(doneResult.overallStatus==="incomplete"){statusBarClassName+=" jasmine-incomplete ";statusBarMessage="Incomplete: "+doneResult.incompleteReason+", "+statusBarMessage}else{statusBarClassName+=" jasmine-failed "}var seedBar;if(order&&order.random){seedBar=createDom("span",{className:"jasmine-seed-bar"},", randomized with seed ",createDom("a",{title:"randomized with seed "+order.seed,href:seedHref(order.seed)},order.seed))}alert.appendChild(createDom("span",{className:statusBarClassName},statusBarMessage,seedBar));var errorBarClassName="jasmine-bar jasmine-errored";var afterAllMessagePrefix="AfterAll ";for(var i=0;i<globalFailures.length;i++){alert.appendChild(createDom("span",{className:errorBarClassName},globalFailureMessage(globalFailures[i])))}function globalFailureMessage(failure){if(failure.globalErrorType==="load"){var prefix="Error during loading: "+failure.message;if(failure.filename){return prefix+" in "+failure.filename+" line "+failure.lineno}else{return prefix}}else if(failure.globalErrorType==="afterAll"){return afterAllMessagePrefix+failure.message}else{return failure.message}}addDeprecationWarnings(doneResult);var _loop6=function _loop6(){var children=[];var context;switch(deprecationWarnings[_i11].runnableType){case"spec":context="(in spec: "+deprecationWarnings[_i11].runnableName+")";break;case"suite":context="(in suite: "+deprecationWarnings[_i11].runnableName+")";break;default:context=""}deprecationWarnings[_i11].message.split("\n").forEach(function(line){children.push(line);children.push(createDom("br"))});children[0]="DEPRECATION: "+children[0];children.push(context);if(deprecationWarnings[_i11].stack){children.push(createExpander(deprecationWarnings[_i11].stack))}alert.appendChild(createDom("span",{className:"jasmine-bar jasmine-warning"},children))};for(var _i11=0;_i11<deprecationWarnings.length;_i11++){_loop6()}var results=find(".jasmine-results");results.appendChild(summary);summaryList(stateBuilder.topResults,summary);if(failures.length){alert.appendChild(createDom("span",{className:"jasmine-menu jasmine-bar jasmine-spec-list"},createDom("span",{},"Spec List | "),createDom("a",{className:"jasmine-failures-menu",href:"#"},"Failures")));alert.appendChild(createDom("span",{className:"jasmine-menu jasmine-bar jasmine-failure-list"},createDom("a",{className:"jasmine-spec-list-menu",href:"#"},"Spec List"),createDom("span",{}," | Failures ")));find(".jasmine-failures-menu").onclick=function(){setMenuModeTo("jasmine-failure-list");return false};find(".jasmine-spec-list-menu").onclick=function(){setMenuModeTo("jasmine-spec-list");return false};setMenuModeTo("jasmine-failure-list");var failureNode=find(".jasmine-failures");for(var _i12=0;_i12<failures.length;_i12++){failureNode.appendChild(failures[_i12])}}};return this;function failureDom(result){var failure=createDom("div",{className:"jasmine-spec-detail jasmine-failed"},failureDescription(result,stateBuilder.currentParent),createDom("div",{className:"jasmine-messages"}));var messages=failure.childNodes[1];for(var i=0;i<result.failedExpectations.length;i++){var expectation=result.failedExpectations[i];messages.appendChild(createDom("div",{className:"jasmine-result-message"},expectation.message));messages.appendChild(createDom("div",{className:"jasmine-stack-trace"},expectation.stack))}if(result.failedExpectations.length===0){messages.appendChild(createDom("div",{className:"jasmine-result-message"},"Spec has no expectations"))}if(result.debugLogs){messages.appendChild(debugLogTable(result.debugLogs))}return failure}function debugLogTable(debugLogs){var tbody=createDom("tbody");debugLogs.forEach(function(entry){tbody.appendChild(createDom("tr",{},createDom("td",{},entry.timestamp.toString()),createDom("td",{className:"jasmine-debug-log-msg"},entry.message)))});return createDom("div",{className:"jasmine-debug-log"},createDom("div",{className:"jasmine-debug-log-header"},"Debug logs"),createDom("table",{},createDom("thead",{},createDom("tr",{},createDom("th",{},"Time (ms)"),createDom("th",{},"Message"))),tbody))}function summaryList(resultsTree,domParent){var specListNode;for(var i=0;i<resultsTree.children.length;i++){var resultNode=resultsTree.children[i];if(filterSpecs&&!hasActiveSpec(resultNode)){continue}if(resultNode.type==="suite"){var suiteListNode=createDom("ul",{className:"jasmine-suite",id:"suite-"+resultNode.result.id},createDom("li",{className:"jasmine-suite-detail jasmine-"+resultNode.result.status},createDom("a",{href:specHref(resultNode.result)},resultNode.result.description)));summaryList(resultNode,suiteListNode);domParent.appendChild(suiteListNode)}if(resultNode.type==="spec"){if(domParent.getAttribute("class")!=="jasmine-specs"){specListNode=createDom("ul",{className:"jasmine-specs"});domParent.appendChild(specListNode)}var specDescription=resultNode.result.description;if(noExpectations(resultNode.result)){specDescription="SPEC HAS NO EXPECTATIONS "+specDescription}if(resultNode.result.status==="pending"){if(resultNode.result.pendingReason!==""){specDescription+=" PENDING WITH MESSAGE: "+resultNode.result.pendingReason}else{specDescription+=" PENDING"}}specListNode.appendChild(createDom("li",{className:"jasmine-"+resultNode.result.status,id:"spec-"+resultNode.result.id},createDom("a",{href:specHref(resultNode.result)},specDescription),createDom("span",{className:"jasmine-spec-duration"},"("+resultNode.result.duration+"ms)")))}}}function optionsMenu(config2){var optionsMenuDom=createDom("div",{className:"jasmine-run-options"},createDom("span",{className:"jasmine-trigger"},"Options"),createDom("div",{className:"jasmine-payload"},createDom("div",{className:"jasmine-stop-on-failure"},createDom("input",{className:"jasmine-fail-fast",id:"jasmine-fail-fast",type:"checkbox"}),createDom("label",{className:"jasmine-label",for:"jasmine-fail-fast"},"stop execution on spec failure")),createDom("div",{className:"jasmine-throw-failures"},createDom("input",{className:"jasmine-throw",id:"jasmine-throw-failures",type:"checkbox"}),createDom("label",{className:"jasmine-label",for:"jasmine-throw-failures"},"stop spec on expectation failure")),createDom("div",{className:"jasmine-random-order"},createDom("input",{className:"jasmine-random",id:"jasmine-random-order",type:"checkbox"}),createDom("label",{className:"jasmine-label",for:"jasmine-random-order"},"run tests in random order")),createDom("div",{className:"jasmine-hide-disabled"},createDom("input",{className:"jasmine-disabled",id:"jasmine-hide-disabled",type:"checkbox"}),createDom("label",{className:"jasmine-label",for:"jasmine-hide-disabled"},"hide disabled tests"))));var failFastCheckbox=optionsMenuDom.querySelector("#jasmine-fail-fast");failFastCheckbox.checked=config2.stopOnSpecFailure;failFastCheckbox.onclick=function(){navigateWithNewParam("stopOnSpecFailure",!config2.stopOnSpecFailure)};var throwCheckbox=optionsMenuDom.querySelector("#jasmine-throw-failures");throwCheckbox.checked=config2.stopSpecOnExpectationFailure;throwCheckbox.onclick=function(){navigateWithNewParam("stopSpecOnExpectationFailure",!config2.stopSpecOnExpectationFailure)};var randomCheckbox=optionsMenuDom.querySelector("#jasmine-random-order");randomCheckbox.checked=config2.random;randomCheckbox.onclick=function(){navigateWithNewParam("random",!config2.random)};var hideDisabled=optionsMenuDom.querySelector("#jasmine-hide-disabled");hideDisabled.checked=config2.hideDisabled;hideDisabled.onclick=function(){navigateWithNewParam("hideDisabled",!config2.hideDisabled)};var optionsTrigger=optionsMenuDom.querySelector(".jasmine-trigger"),optionsPayload=optionsMenuDom.querySelector(".jasmine-payload"),isOpen=/\bjasmine-open\b/;optionsTrigger.onclick=function(){if(isOpen.test(optionsPayload.className)){optionsPayload.className=optionsPayload.className.replace(isOpen,"")}else{optionsPayload.className+=" jasmine-open"}};return optionsMenuDom}function failureDescription(result,suite){var wrapper=createDom("div",{className:"jasmine-description"},createDom("a",{title:result.description,href:specHref(result)},result.description));var suiteLink;while(suite&&suite.parent){wrapper.insertBefore(createTextNode(" > "),wrapper.firstChild);suiteLink=createDom("a",{href:suiteHref(suite)},suite.result.description);wrapper.insertBefore(suiteLink,wrapper.firstChild);suite=suite.parent}return wrapper}function suiteHref(suite){var els=[];while(suite&&suite.parent){els.unshift(suite.result.description);suite=suite.parent}return(window.location.pathname||"")+addToExistingQueryString("spec",els.join(" "))}function addDeprecationWarnings(result,runnableType){if(result&&result.deprecationWarnings){for(var i=0;i<result.deprecationWarnings.length;i++){var warning=result.deprecationWarnings[i].message;deprecationWarnings.push({message:warning,stack:result.deprecationWarnings[i].stack,runnableName:result.fullName,runnableType:runnableType})}}}function createExpander(stackTrace){var expandLink=createDom("a",{href:"#"},"Show stack trace");var root=createDom("div",{className:"jasmine-expander"},expandLink,createDom("div",{className:"jasmine-expander-contents jasmine-stack-trace"},stackTrace));expandLink.addEventListener("click",function(e){e.preventDefault();if(root.classList.contains("jasmine-expanded")){root.classList.remove("jasmine-expanded");expandLink.textContent="Show stack trace"}else{root.classList.add("jasmine-expanded");expandLink.textContent="Hide stack trace"}});return root}function find(selector){return getContainer().querySelector(".jasmine_html-reporter "+selector)}function clearPrior(){var oldReporter=find("");if(oldReporter){getContainer().removeChild(oldReporter)}}function createDom(type,attrs,childrenArrayOrVarArgs){var el=createElement(type);var children;if(j$2.isArray_(childrenArrayOrVarArgs)){children=childrenArrayOrVarArgs}else{children=[];for(var i=2;i<arguments.length;i++){children.push(arguments[i])}}for(var _i13=0;_i13<children.length;_i13++){var child=children[_i13];if(typeof child==="string"){el.appendChild(createTextNode(child))}else{if(child){el.appendChild(child)}}}for(var attr in attrs){if(attr=="className"){el[attr]=attrs[attr]}else{el.setAttribute(attr,attrs[attr])}}return el}function pluralize(singular,count){var word=count==1?singular:singular+"s";return""+count+" "+word}function specHref(result){return(window.location.pathname||"")+addToExistingQueryString("spec",result.fullName)}function seedHref(seed){return(window.location.pathname||"")+addToExistingQueryString("seed",seed)}function defaultQueryString(key,value){return"?"+key+"="+value}function setMenuModeTo(mode){htmlReporterMain.setAttribute("class","jasmine_html-reporter "+mode)}function noExpectations(result){var allExpectations=result.failedExpectations.length+result.passedExpectations.length;return allExpectations===0&&(result.status==="passed"||result.status==="failed")}function hasActiveSpec(resultNode){if(resultNode.type=="spec"&&resultNode.result.status!="excluded"){return true}if(resultNode.type=="suite"){for(var i=0,j=resultNode.children.length;i<j;i++){if(hasActiveSpec(resultNode.children[i])){return true}}}}}return HtmlReporter};jasmineRequire.HtmlSpecFilter=function(){function HtmlSpecFilter(options){var filterString=options&&options.filterString()&&options.filterString().replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");var filterPattern=new RegExp(filterString);this.matches=function(specName){return filterPattern.test(specName)}}return HtmlSpecFilter};jasmineRequire.ResultsNode=function(){function ResultsNode(result,type,parent){this.result=result;this.type=type;this.parent=parent;this.children=[];this.addChild=function(result2,type2){this.children.push(new ResultsNode(result2,type2,this))};this.last=function(){return this.children[this.children.length-1]};this.updateResult=function(result2){this.result=result2}}return ResultsNode};jasmineRequire.QueryString=function(){var _getWindowLocation,_QueryString_instances,queryStringToParamMap_fn;var QueryString=/*#__PURE__*/function(){"use strict";/**
|
|
651
|
-
* @param options Object with a getWindowLocation property, which should be
|
|
652
|
-
* a function returning the current value of window.location.
|
|
653
|
-
*/function QueryString(options){_classCallCheck(this,QueryString);__privateAdd(this,_QueryString_instances);__privateAdd(this,_getWindowLocation);__privateSet(this,_getWindowLocation,options.getWindowLocation)}/**
|
|
654
|
-
* Sets the specified query parameter and navigates to the resulting URL.
|
|
655
|
-
* @param {string} key
|
|
656
|
-
* @param {string} value
|
|
657
|
-
*/return _createClass(QueryString,[{key:"navigateWithNewParam",value:function navigateWithNewParam(key,value){__privateGet(this,_getWindowLocation).call(this).search=this.fullStringWithNewParam(key,value)}/**
|
|
658
|
-
* Returns a new URL based on the current location, with the specified
|
|
659
|
-
* query parameter set.
|
|
660
|
-
* @param {string} key
|
|
661
|
-
* @param {string} value
|
|
662
|
-
* @return {string}
|
|
663
|
-
*/},{key:"fullStringWithNewParam",value:function fullStringWithNewParam(key,value){var paramMap=__privateMethod(this,_QueryString_instances,queryStringToParamMap_fn).call(this);paramMap[key]=value;return toQueryString(paramMap)}/**
|
|
664
|
-
* Gets the value of the specified query parameter.
|
|
665
|
-
* @param {string} key
|
|
666
|
-
* @return {string}
|
|
667
|
-
*/},{key:"getParam",value:function getParam(key){return __privateMethod(this,_QueryString_instances,queryStringToParamMap_fn).call(this)[key]}}])}();_getWindowLocation=new WeakMap;_QueryString_instances=new WeakSet;queryStringToParamMap_fn=function queryStringToParamMap_fn(){var paramStr=__privateGet(this,_getWindowLocation).call(this).search.substring(1);var params2=[];var paramMap={};if(paramStr.length>0){params2=paramStr.split("&");for(var i=0;i<params2.length;i++){var p=params2[i].split("=");var value=decodeURIComponent(p[1]);if(value==="true"||value==="false"){value=JSON.parse(value)}paramMap[decodeURIComponent(p[0])]=value}}return paramMap};function toQueryString(paramMap){var qStrPairs=[];for(var prop in paramMap){qStrPairs.push(encodeURIComponent(prop)+"="+encodeURIComponent(paramMap[prop]))}return"?"+qStrPairs.join("&")}return QueryString};// ../../node_modules/jasmine-core/lib/jasmine-core/boot0.js
|
|
668
|
-
(function(){var jasmineRequire2=window.jasmineRequire||require_jasmine();var jasmine2=jasmineRequire2.core(jasmineRequire2),global2=jasmine2.getGlobal();global2.jasmine=jasmine2;jasmineRequire2.html(jasmine2);var env=jasmine2.getEnv();var jasmineInterface=jasmineRequire2.interface(jasmine2,env);for(var property in jasmineInterface){global2[property]=jasmineInterface[property]}})();// ../../node_modules/jasmine-core/lib/jasmine-core/boot1.js
|
|
669
|
-
(function(){var env=jasmine.getEnv();var queryString=new jasmine.QueryString({getWindowLocation:function getWindowLocation(){return window.location}});var filterSpecs=!!queryString.getParam("spec");var config={stopOnSpecFailure:queryString.getParam("stopOnSpecFailure"),stopSpecOnExpectationFailure:queryString.getParam("stopSpecOnExpectationFailure"),hideDisabled:queryString.getParam("hideDisabled")};var random=queryString.getParam("random");if(random!==void 0&&random!==""){config.random=random}var seed=queryString.getParam("seed");if(seed){config.seed=seed}var htmlReporter=new jasmine.HtmlReporter({env:env,navigateWithNewParam:function navigateWithNewParam(key,value){return queryString.navigateWithNewParam(key,value)},addToExistingQueryString:function addToExistingQueryString(key,value){return queryString.fullStringWithNewParam(key,value)},getContainer:function getContainer(){return document.body},createElement:function createElement(){return document.createElement.apply(document,arguments)},createTextNode:function createTextNode(){return document.createTextNode.apply(document,arguments)},timer:new jasmine.Timer,filterSpecs:filterSpecs});env.addReporter(jsApiReporter);env.addReporter(htmlReporter);var specFilter=new jasmine.HtmlSpecFilter({filterString:function filterString(){return queryString.getParam("spec")}});config.specFilter=function(spec){return specFilter.matches(spec.getFullName())};env.configure(config);var currentWindowOnload=window.onload;window.onload=function(){if(currentWindowOnload){currentWindowOnload()}htmlReporter.initialize();env.execute()}})();// ../vinyl-jasmine-wrapper/dist/index.js
|
|
670
|
-
jasmine.DEFAULT_TIMEOUT_INTERVAL=15e3;
|