@accordproject/concerto-util
Version:
Utilities for Concerto Modeling Language
2 lines • 95.4 kB
JavaScript
/*! For license information please see concerto-util.js.LICENSE.txt */
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["concerto-util"]=e():t["concerto-util"]=e()}(self,()=>(()=>{var t={6573(t,e,r){"use strict";const n=r(1187);t.exports=n.PromisePool},5160(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PromisePoolError=void 0;class r extends Error{constructor(t,e){super(),this.item=e,this.name=this.constructor.name,this.message=this.messageFrom(t),Error.captureStackTrace(this,this.constructor)}static createFrom(t,e){return new this(t,e)}messageFrom(t){return t instanceof Error||"object"==typeof t?t.message:"string"==typeof t||"number"==typeof t?t.toString():""}}e.PromisePoolError=r},2241(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PromisePoolExecutor=void 0;const n=r(5160);e.PromisePoolExecutor=class{constructor(){this.tasks=[],this.items=[],this.errors=[],this.results=[],this.concurrency=10,this.handler=()=>{},this.errorHandler=void 0}withConcurrency(t){return this.concurrency=t,this}for(t){return this.items=t,this}withHandler(t){return this.handler=t,this}handleError(t){return this.errorHandler=t,this}hasReachedConcurrencyLimit(){return this.activeCount()>=this.concurrency}activeCount(){return this.tasks.length}async start(){return this.validateInputs(),await this.process()}validateInputs(){if("function"!=typeof this.handler)throw new Error("The first parameter for the .process(fn) method must be a function");if(!("number"==typeof this.concurrency&&this.concurrency>=1))throw new TypeError(`"concurrency" must be a number, 1 or up. Received "${this.concurrency}" (${typeof this.concurrency})`);if(!Array.isArray(this.items))throw new TypeError('"items" must be an array. Received '+typeof this.items);if(this.errorHandler&&"function"!=typeof this.errorHandler)throw new Error("The error handler must be a function. Received "+typeof this.errorHandler)}async process(){for(const t of this.items)this.hasReachedConcurrencyLimit()&&await this.processingSlot(),this.startProcessing(t);return this.drained()}async processingSlot(){return this.waitForTaskToFinish()}async waitForTaskToFinish(){await Promise.race(this.tasks)}startProcessing(t){const e=this.createTaskFor(t).then(t=>{this.results.push(t),this.tasks.splice(this.tasks.indexOf(e),1)}).catch(r=>{if(this.tasks.splice(this.tasks.indexOf(e),1),this.errorHandler)return this.errorHandler(r,t);this.errors.push(n.PromisePoolError.createFrom(r,t))});this.tasks.push(e)}async createTaskFor(t){return this.handler(t)}async drained(){return await this.drainActiveTasks(),{results:this.results,errors:this.errors}}async drainActiveTasks(){await Promise.all(this.tasks)}}},1187(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PromisePool=void 0;const n=r(2241);class o{constructor(t){this.concurrency=10,this.items=null!=t?t:[],this.errorHandler=void 0}withConcurrency(t){return this.concurrency=t,this}static withConcurrency(t){return(new this).withConcurrency(t)}for(t){return new o(t).withConcurrency(this.concurrency)}static for(t){return(new this).for(t)}handleError(t){return this.errorHandler=t,this}async process(t){return(new n.PromisePoolExecutor).withConcurrency(this.concurrency).withHandler(t).handleError(this.errorHandler).for(this.items).start()}}e.PromisePool=o},6093(t,e,r){"use strict";var n=r(4364);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function c(t,e,r){return e&&i(t.prototype,e),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function a(t){var e=function(t){if("object"!==o(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===o(e)?e:String(e)}var s,u,l=r(1342).codes,f=l.ERR_AMBIGUOUS_ARGUMENT,p=l.ERR_INVALID_ARG_TYPE,y=l.ERR_INVALID_ARG_VALUE,d=l.ERR_INVALID_RETURN_VALUE,h=l.ERR_MISSING_ARGS,g=r(9801),b=r(9208).inspect,m=r(9208).types,v=m.isPromise,w=m.isRegExp,E=r(3225)(),O=r(1937)(),j=r(9818)("RegExp.prototype.test");function S(){var t=r(5656);s=t.isDeepEqual,u=t.isDeepStrictEqual}new Map;var A=!1,x=t.exports=_,P={};function F(t){if(t.message instanceof Error)throw t.message;throw new g(t)}function C(t,e,r,n){if(!r){var o=!1;if(0===e)o=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var i=new g({actual:r,expected:!0,message:n,operator:"==",stackStartFn:t});throw i.generatedMessage=o,i}}function _(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];C.apply(void 0,[_,e.length].concat(e))}x.fail=function t(e,r,o,i,c){var a,s=arguments.length;if(0===s)a="Failed";else if(1===s)o=e,e=void 0;else{if(!1===A){A=!0;var u=function(t,e){n.warn({message:`DEPRECATED: ${t}`,type:e?.type,code:e?.code,detail:e?.detail})}?function(t,e){n.warn({message:`DEPRECATED: ${t}`,type:e?.type,code:e?.code,detail:e?.detail})}:n.warn.bind(n);u("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}2===s&&(i="!=")}if(o instanceof Error)throw o;var l={actual:e,expected:r,operator:void 0===i?"fail":i,stackStartFn:c||t};void 0!==o&&(l.message=o);var f=new g(l);throw a&&(f.message=a,f.generatedMessage=!0),f},x.AssertionError=g,x.ok=_,x.equal=function t(e,r,n){if(arguments.length<2)throw new h("actual","expected");e!=r&&F({actual:e,expected:r,message:n,operator:"==",stackStartFn:t})},x.notEqual=function t(e,r,n){if(arguments.length<2)throw new h("actual","expected");e==r&&F({actual:e,expected:r,message:n,operator:"!=",stackStartFn:t})},x.deepEqual=function t(e,r,n){if(arguments.length<2)throw new h("actual","expected");void 0===s&&S(),s(e,r)||F({actual:e,expected:r,message:n,operator:"deepEqual",stackStartFn:t})},x.notDeepEqual=function t(e,r,n){if(arguments.length<2)throw new h("actual","expected");void 0===s&&S(),s(e,r)&&F({actual:e,expected:r,message:n,operator:"notDeepEqual",stackStartFn:t})},x.deepStrictEqual=function t(e,r,n){if(arguments.length<2)throw new h("actual","expected");void 0===s&&S(),u(e,r)||F({actual:e,expected:r,message:n,operator:"deepStrictEqual",stackStartFn:t})},x.notDeepStrictEqual=function t(e,r,n){if(arguments.length<2)throw new h("actual","expected");void 0===s&&S(),u(e,r)&&F({actual:e,expected:r,message:n,operator:"notDeepStrictEqual",stackStartFn:t})},x.strictEqual=function t(e,r,n){if(arguments.length<2)throw new h("actual","expected");O(e,r)||F({actual:e,expected:r,message:n,operator:"strictEqual",stackStartFn:t})},x.notStrictEqual=function t(e,r,n){if(arguments.length<2)throw new h("actual","expected");O(e,r)&&F({actual:e,expected:r,message:n,operator:"notStrictEqual",stackStartFn:t})};var k=c(function t(e,r,n){var o=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),r.forEach(function(t){t in e&&(void 0!==n&&"string"==typeof n[t]&&w(e[t])&&j(e[t],n[t])?o[t]=n[t]:o[t]=e[t])})});function T(t,e,r,n){if("function"!=typeof e){if(w(e))return j(e,t);if(2===arguments.length)throw new p("expected",["Function","RegExp"],e);if("object"!==o(t)||null===t){var i=new g({actual:t,expected:e,message:r,operator:"deepStrictEqual",stackStartFn:n});throw i.operator=n.name,i}var c=Object.keys(e);if(e instanceof Error)c.push("name","message");else if(0===c.length)throw new y("error",e,"may not be an empty object");return void 0===s&&S(),c.forEach(function(o){"string"==typeof t[o]&&w(e[o])&&j(e[o],t[o])||function(t,e,r,n,o,i){if(!(r in t)||!u(t[r],e[r])){if(!n){var c=new k(t,o),a=new k(e,o,t),s=new g({actual:c,expected:a,operator:"deepStrictEqual",stackStartFn:i});throw s.actual=t,s.expected=e,s.operator=i.name,s}F({actual:t,expected:e,message:n,operator:i.name,stackStartFn:i})}}(t,e,o,r,c,n)}),!0}return void 0!==e.prototype&&t instanceof e||!Error.isPrototypeOf(e)&&!0===e.call({},t)}function N(t){if("function"!=typeof t)throw new p("fn","Function",t);try{t()}catch(t){return t}return P}function R(t){return v(t)||null!==t&&"object"===o(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function I(t){return Promise.resolve().then(function(){var e;if("function"==typeof t){if(!R(e=t()))throw new d("instance of Promise","promiseFn",e)}else{if(!R(t))throw new p("promiseFn",["Function","Promise"],t);e=t}return Promise.resolve().then(function(){return e}).then(function(){return P}).catch(function(t){return t})})}function D(t,e,r,n){if("string"==typeof r){if(4===arguments.length)throw new p("error",["Object","Error","Function","RegExp"],r);if("object"===o(e)&&null!==e){if(e.message===r)throw new f("error/message",'The error message "'.concat(e.message,'" is identical to the message.'))}else if(e===r)throw new f("error/message",'The error "'.concat(e,'" is identical to the message.'));n=r,r=void 0}else if(null!=r&&"object"!==o(r)&&"function"!=typeof r)throw new p("error",["Object","Error","Function","RegExp"],r);if(e===P){var i="";r&&r.name&&(i+=" (".concat(r.name,")")),i+=n?": ".concat(n):".";var c="rejects"===t.name?"rejection":"exception";F({actual:void 0,expected:r,operator:t.name,message:"Missing expected ".concat(c).concat(i),stackStartFn:t})}if(r&&!T(e,r,n,t))throw e}function M(t,e,r,n){if(e!==P){if("string"==typeof r&&(n=r,r=void 0),!r||T(e,r)){var o=n?": ".concat(n):".",i="doesNotReject"===t.name?"rejection":"exception";F({actual:e,expected:r,operator:t.name,message:"Got unwanted ".concat(i).concat(o,"\n")+'Actual message: "'.concat(e&&e.message,'"'),stackStartFn:t})}throw e}}function L(t,e,r,n,i){if(!w(e))throw new p("regexp","RegExp",e);var c="match"===i;if("string"!=typeof t||j(e,t)!==c){if(r instanceof Error)throw r;var a=!r;r=r||("string"!=typeof t?'The "string" argument must be of type string. Received type '+"".concat(o(t)," (").concat(b(t),")"):(c?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(b(e),". Input:\n\n").concat(b(t),"\n"));var s=new g({actual:t,expected:e,message:r,operator:i,stackStartFn:n});throw s.generatedMessage=a,s}}function B(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];C.apply(void 0,[B,e.length].concat(e))}x.throws=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];D.apply(void 0,[t,N(e)].concat(n))},x.rejects=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return I(e).then(function(e){return D.apply(void 0,[t,e].concat(n))})},x.doesNotThrow=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];M.apply(void 0,[t,N(e)].concat(n))},x.doesNotReject=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return I(e).then(function(e){return M.apply(void 0,[t,e].concat(n))})},x.ifError=function t(e){if(null!=e){var r="ifError got unwanted exception: ";"object"===o(e)&&"string"==typeof e.message?0===e.message.length&&e.constructor?r+=e.constructor.name:r+=e.message:r+=b(e);var n=new g({actual:e,expected:null,operator:"ifError",message:r,stackStartFn:t}),i=e.stack;if("string"==typeof i){var c=i.split("\n");c.shift();for(var a=n.stack.split("\n"),s=0;s<c.length;s++){var u=a.indexOf(c[s]);if(-1!==u){a=a.slice(0,u);break}}n.stack="".concat(a.join("\n"),"\n").concat(c.join("\n"))}throw n}},x.match=function t(e,r,n){L(e,r,n,t,"match")},x.doesNotMatch=function t(e,r,n){L(e,r,n,t,"doesNotMatch")},x.strict=E(B,x,{equal:x.strictEqual,deepEqual:x.deepStrictEqual,notEqual:x.notStrictEqual,notDeepEqual:x.notDeepStrictEqual}),x.strict.strict=x.strict},9801(t,e,r){"use strict";var n=r(9907);function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?o(Object(r),!0).forEach(function(e){var n,o,i;n=t,o=e,i=r[e],(o=a(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t){if("object"!==h(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===h(e)?e:String(e)}function s(t,e){if(e&&("object"===h(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return u(t)}function u(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function l(t){var e="function"==typeof Map?new Map:void 0;return l=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return f(t,arguments,d(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),y(n,t)},l(t)}function f(t,e,r){return f=p()?Reflect.construct.bind():function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&y(o,r.prototype),o},f.apply(null,arguments)}function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function h(t){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h(t)}var g=r(9208).inspect,b=r(1342).codes.ERR_INVALID_ARG_TYPE;function m(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}var v="",w="",E="",O="",j={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function S(t){var e=Object.keys(t),r=Object.create(Object.getPrototypeOf(t));return e.forEach(function(e){r[e]=t[e]}),Object.defineProperty(r,"message",{value:t.message}),r}function A(t){return g(t,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var x=function(t,e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&y(t,e)}(x,t);var r,o,a,l,f=(r=x,o=p(),function(){var t,e=d(r);if(o){var n=d(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return s(this,t)});function x(t){var e;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,x),"object"!==h(t)||null===t)throw new b("options","Object",t);var r=t.message,o=t.operator,i=t.stackStartFn,c=t.actual,a=t.expected,l=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=r)e=f.call(this,String(r));else if(n.stderr&&n.stderr.isTTY&&(n.stderr&&n.stderr.getColorDepth&&1!==n.stderr.getColorDepth()?(v="[34m",w="[32m",O="[39m",E="[31m"):(v="",w="",O="",E="")),"object"===h(c)&&null!==c&&"object"===h(a)&&null!==a&&"stack"in c&&c instanceof Error&&"stack"in a&&a instanceof Error&&(c=S(c),a=S(a)),"deepStrictEqual"===o||"strictEqual"===o)e=f.call(this,function(t,e,r){var o="",i="",c=0,a="",s=!1,u=A(t),l=u.split("\n"),f=A(e).split("\n"),p=0,y="";if("strictEqual"===r&&"object"===h(t)&&"object"===h(e)&&null!==t&&null!==e&&(r="strictEqualObject"),1===l.length&&1===f.length&&l[0]!==f[0]){var d=l[0].length+f[0].length;if(d<=10){if(!("object"===h(t)&&null!==t||"object"===h(e)&&null!==e||0===t&&0===e))return"".concat(j[r],"\n\n")+"".concat(l[0]," !== ").concat(f[0],"\n")}else if("strictEqualObject"!==r&&d<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;l[0][p]===f[0][p];)p++;p>2&&(y="\n ".concat(function(t,e){if(e=Math.floor(e),0==t.length||0==e)return"";var r=t.length*e;for(e=Math.floor(Math.log(e)/Math.log(2));e;)t+=t,e--;return t+t.substring(0,r-t.length)}(" ",p),"^"),p=0)}}for(var g=l[l.length-1],b=f[f.length-1];g===b&&(p++<2?a="\n ".concat(g).concat(a):o=g,l.pop(),f.pop(),0!==l.length&&0!==f.length);)g=l[l.length-1],b=f[f.length-1];var S=Math.max(l.length,f.length);if(0===S){var x=u.split("\n");if(x.length>30)for(x[26]="".concat(v,"...").concat(O);x.length>27;)x.pop();return"".concat(j.notIdentical,"\n\n").concat(x.join("\n"),"\n")}p>3&&(a="\n".concat(v,"...").concat(O).concat(a),s=!0),""!==o&&(a="\n ".concat(o).concat(a),o="");var P=0,F=j[r]+"\n".concat(w,"+ actual").concat(O," ").concat(E,"- expected").concat(O),C=" ".concat(v,"...").concat(O," Lines skipped");for(p=0;p<S;p++){var _=p-c;if(l.length<p+1)_>1&&p>2&&(_>4?(i+="\n".concat(v,"...").concat(O),s=!0):_>3&&(i+="\n ".concat(f[p-2]),P++),i+="\n ".concat(f[p-1]),P++),c=p,o+="\n".concat(E,"-").concat(O," ").concat(f[p]),P++;else if(f.length<p+1)_>1&&p>2&&(_>4?(i+="\n".concat(v,"...").concat(O),s=!0):_>3&&(i+="\n ".concat(l[p-2]),P++),i+="\n ".concat(l[p-1]),P++),c=p,i+="\n".concat(w,"+").concat(O," ").concat(l[p]),P++;else{var k=f[p],T=l[p],N=T!==k&&(!m(T,",")||T.slice(0,-1)!==k);N&&m(k,",")&&k.slice(0,-1)===T&&(N=!1,T+=","),N?(_>1&&p>2&&(_>4?(i+="\n".concat(v,"...").concat(O),s=!0):_>3&&(i+="\n ".concat(l[p-2]),P++),i+="\n ".concat(l[p-1]),P++),c=p,i+="\n".concat(w,"+").concat(O," ").concat(T),o+="\n".concat(E,"-").concat(O," ").concat(k),P+=2):(i+=o,o="",1!==_&&0!==p||(i+="\n ".concat(T),P++))}if(P>20&&p<S-2)return"".concat(F).concat(C,"\n").concat(i,"\n").concat(v,"...").concat(O).concat(o,"\n")+"".concat(v,"...").concat(O)}return"".concat(F).concat(s?C:"","\n").concat(i).concat(o).concat(a).concat(y)}(c,a,o));else if("notDeepStrictEqual"===o||"notStrictEqual"===o){var p=j[o],y=A(c).split("\n");if("notStrictEqual"===o&&"object"===h(c)&&null!==c&&(p=j.notStrictEqualObject),y.length>30)for(y[26]="".concat(v,"...").concat(O);y.length>27;)y.pop();e=1===y.length?f.call(this,"".concat(p," ").concat(y[0])):f.call(this,"".concat(p,"\n\n").concat(y.join("\n"),"\n"))}else{var d=A(c),g="",P=j[o];"notDeepEqual"===o||"notEqual"===o?(d="".concat(j[o],"\n\n").concat(d)).length>1024&&(d="".concat(d.slice(0,1021),"...")):(g="".concat(A(a)),d.length>512&&(d="".concat(d.slice(0,509),"...")),g.length>512&&(g="".concat(g.slice(0,509),"...")),"deepEqual"===o||"equal"===o?d="".concat(P,"\n\n").concat(d,"\n\nshould equal\n\n"):g=" ".concat(o," ").concat(g)),e=f.call(this,"".concat(d).concat(g))}return Error.stackTraceLimit=l,e.generatedMessage=!r,Object.defineProperty(u(e),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),e.code="ERR_ASSERTION",e.actual=c,e.expected=a,e.operator=o,Error.captureStackTrace&&Error.captureStackTrace(u(e),i),e.stack,e.name="AssertionError",s(e)}return a=x,(l=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:e,value:function(t,e){return g(this,i(i({},e),{},{customInspect:!1,depth:0}))}}])&&c(a.prototype,l),Object.defineProperty(a,"prototype",{writable:!1}),x}(l(Error),g.custom);t.exports=x},1342(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},o(t,e)}function i(t){return i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},i(t)}var c,a,s={};function u(t,e,r){r||(r=Error);var c=function(r){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&o(t,e)}(l,r);var c,a,s,u=(a=l,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=i(a);if(s){var r=i(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function l(r,n,o){var i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),i=u.call(this,function(t,r,n){return"string"==typeof e?e:e(t,r,n)}(r,n,o)),i.code=t,i}return c=l,Object.defineProperty(c,"prototype",{writable:!1}),c}(r);s[t]=c}function l(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map(function(t){return String(t)}),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}u("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),u("ERR_INVALID_ARG_TYPE",function(t,e,o){var i,a,s,u,f;if(void 0===c&&(c=r(6093)),c("string"==typeof t,"'name' must be a string"),"string"==typeof e&&(a="not ",e.substr(0,4)===a)?(i="must not be",e=e.replace(/^not /,"")):i="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-9,r)===e}(t," argument"))s="The ".concat(t," ").concat(i," ").concat(l(e,"type"));else{var p=("number"!=typeof f&&(f=0),f+1>(u=t).length||-1===u.indexOf(".",f)?"argument":"property");s='The "'.concat(t,'" ').concat(p," ").concat(i," ").concat(l(e,"type"))}return s+". Received type ".concat(n(o))},TypeError),u("ERR_INVALID_ARG_VALUE",function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===a&&(a=r(9208));var o=a.inspect(e);return o.length>128&&(o="".concat(o.slice(0,128),"...")),"The argument '".concat(t,"' ").concat(n,". Received ").concat(o)},TypeError,RangeError),u("ERR_INVALID_RETURN_VALUE",function(t,e,r){var o;return o=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(t,' to be returned from the "').concat(e,'"')+" function but got ".concat(o,".")},TypeError),u("ERR_MISSING_ARGS",function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];void 0===c&&(c=r(6093)),c(e.length>0,"At least one arg needs to be specified");var o="The ",i=e.length;switch(e=e.map(function(t){return'"'.concat(t,'"')}),i){case 1:o+="".concat(e[0]," argument");break;case 2:o+="".concat(e[0]," and ").concat(e[1]," arguments");break;default:o+=e.slice(0,i-1).join(", "),o+=", and ".concat(e[i-1]," arguments")}return"".concat(o," must be specified")},TypeError),t.exports.codes=s},5656(t,e,r){"use strict";function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,c,a=[],s=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);s=!0);}catch(t){u=!0,o=t}finally{try{if(!s&&null!=r.return&&(c=r.return(),Object(c)!==c))return}finally{if(u)throw o}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}(t,e)||function(){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 o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}var c=void 0!==/a/g.flags,a=function(t){var e=[];return t.forEach(function(t){return e.push(t)}),e},s=function(t){var e=[];return t.forEach(function(t,r){return e.push([r,t])}),e},u=Object.is?Object.is:r(5968),l=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},f=Number.isNaN?Number.isNaN:r(7838);function p(t){return t.call.bind(t)}var y=p(Object.prototype.hasOwnProperty),d=p(Object.prototype.propertyIsEnumerable),h=p(Object.prototype.toString),g=r(9208).types,b=g.isAnyArrayBuffer,m=g.isArrayBufferView,v=g.isDate,w=g.isMap,E=g.isRegExp,O=g.isSet,j=g.isNativeError,S=g.isBoxedPrimitive,A=g.isNumberObject,x=g.isStringObject,P=g.isBooleanObject,F=g.isBigIntObject,C=g.isSymbolObject,_=g.isFloat32Array,k=g.isFloat64Array;function T(t){if(0===t.length||t.length>10)return!0;for(var e=0;e<t.length;e++){var r=t.charCodeAt(e);if(r<48||r>57)return!0}return 10===t.length&&t>=Math.pow(2,32)}function N(t){return Object.keys(t).filter(T).concat(l(t).filter(Object.prototype.propertyIsEnumerable.bind(t)))}function R(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,o=0,i=Math.min(r,n);o<i;++o)if(t[o]!==e[o]){r=t[o],n=e[o];break}return r<n?-1:n<r?1:0}function I(t,e,r,n){if(t===e)return 0!==t||!r||u(t,e);if(r){if("object"!==i(t))return"number"==typeof t&&f(t)&&f(e);if("object"!==i(e)||null===t||null===e)return!1;if(Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1}else{if(null===t||"object"!==i(t))return(null===e||"object"!==i(e))&&t==e;if(null===e||"object"!==i(e))return!1}var o,a,s,l,p=h(t);if(p!==h(e))return!1;if(Array.isArray(t)){if(t.length!==e.length)return!1;var y=N(t),d=N(e);return y.length===d.length&&M(t,e,r,n,1,y)}if("[object Object]"===p&&(!w(t)&&w(e)||!O(t)&&O(e)))return!1;if(v(t)){if(!v(e)||Date.prototype.getTime.call(t)!==Date.prototype.getTime.call(e))return!1}else if(E(t)){if(!E(e)||(s=t,l=e,!(c?s.source===l.source&&s.flags===l.flags:RegExp.prototype.toString.call(s)===RegExp.prototype.toString.call(l))))return!1}else if(j(t)||t instanceof Error){if(t.message!==e.message||t.name!==e.name)return!1}else{if(m(t)){if(r||!_(t)&&!k(t)){if(!function(t,e){return t.byteLength===e.byteLength&&0===R(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}(t,e))return!1}else if(!function(t,e){if(t.byteLength!==e.byteLength)return!1;for(var r=0;r<t.byteLength;r++)if(t[r]!==e[r])return!1;return!0}(t,e))return!1;var g=N(t),T=N(e);return g.length===T.length&&M(t,e,r,n,0,g)}if(O(t))return!(!O(e)||t.size!==e.size)&&M(t,e,r,n,2);if(w(t))return!(!w(e)||t.size!==e.size)&&M(t,e,r,n,3);if(b(t)){if(a=e,(o=t).byteLength!==a.byteLength||0!==R(new Uint8Array(o),new Uint8Array(a)))return!1}else if(S(t)&&!function(t,e){return A(t)?A(e)&&u(Number.prototype.valueOf.call(t),Number.prototype.valueOf.call(e)):x(t)?x(e)&&String.prototype.valueOf.call(t)===String.prototype.valueOf.call(e):P(t)?P(e)&&Boolean.prototype.valueOf.call(t)===Boolean.prototype.valueOf.call(e):F(t)?F(e)&&BigInt.prototype.valueOf.call(t)===BigInt.prototype.valueOf.call(e):C(e)&&Symbol.prototype.valueOf.call(t)===Symbol.prototype.valueOf.call(e)}(t,e))return!1}return M(t,e,r,n,0)}function D(t,e){return e.filter(function(e){return d(t,e)})}function M(t,e,r,o,c,u){if(5===arguments.length){u=Object.keys(t);var f=Object.keys(e);if(u.length!==f.length)return!1}for(var p=0;p<u.length;p++)if(!y(e,u[p]))return!1;if(r&&5===arguments.length){var h=l(t);if(0!==h.length){var g=0;for(p=0;p<h.length;p++){var b=h[p];if(d(t,b)){if(!d(e,b))return!1;u.push(b),g++}else if(d(e,b))return!1}var m=l(e);if(h.length!==m.length&&D(e,m).length!==g)return!1}else{var v=l(e);if(0!==v.length&&0!==D(e,v).length)return!1}}if(0===u.length&&(0===c||1===c&&0===t.length||0===t.size))return!0;if(void 0===o)o={val1:new Map,val2:new Map,position:0};else{var w=o.val1.get(t);if(void 0!==w){var E=o.val2.get(e);if(void 0!==E)return w===E}o.position++}o.val1.set(t,o.position),o.val2.set(e,o.position);var O=function(t,e,r,o,c,u){var l=0;if(2===u){if(!function(t,e,r,n){for(var o=null,c=a(t),s=0;s<c.length;s++){var u=c[s];if("object"===i(u)&&null!==u)null===o&&(o=new Set),o.add(u);else if(!e.has(u)){if(r)return!1;if(!U(t,e,u))return!1;null===o&&(o=new Set),o.add(u)}}if(null!==o){for(var l=a(e),f=0;f<l.length;f++){var p=l[f];if("object"===i(p)&&null!==p){if(!L(o,p,r,n))return!1}else if(!r&&!t.has(p)&&!L(o,p,r,n))return!1}return 0===o.size}return!0}(t,e,r,c))return!1}else if(3===u){if(!function(t,e,r,o){for(var c=null,a=s(t),u=0;u<a.length;u++){var l=n(a[u],2),f=l[0],p=l[1];if("object"===i(f)&&null!==f)null===c&&(c=new Set),c.add(f);else{var y=e.get(f);if(void 0===y&&!e.has(f)||!I(p,y,r,o)){if(r)return!1;if(!$(t,e,f,p,o))return!1;null===c&&(c=new Set),c.add(f)}}}if(null!==c){for(var d=s(e),h=0;h<d.length;h++){var g=n(d[h],2),b=g[0],m=g[1];if("object"===i(b)&&null!==b){if(!q(c,t,b,m,r,o))return!1}else if(!(r||t.has(b)&&I(t.get(b),m,!1,o)||q(c,t,b,m,!1,o)))return!1}return 0===c.size}return!0}(t,e,r,c))return!1}else if(1===u)for(;l<t.length;l++){if(!y(t,l)){if(y(e,l))return!1;for(var f=Object.keys(t);l<f.length;l++){var p=f[l];if(!y(e,p)||!I(t[p],e[p],r,c))return!1}return f.length===Object.keys(e).length}if(!y(e,l)||!I(t[l],e[l],r,c))return!1}for(l=0;l<o.length;l++){var d=o[l];if(!I(t[d],e[d],r,c))return!1}return!0}(t,e,r,u,o,c);return o.val1.delete(t),o.val2.delete(e),O}function L(t,e,r,n){for(var o=a(t),i=0;i<o.length;i++){var c=o[i];if(I(e,c,r,n))return t.delete(c),!0}return!1}function B(t){switch(i(t)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":t=+t;case"number":if(f(t))return!1}return!0}function U(t,e,r){var n=B(r);return null!=n?n:e.has(n)&&!t.has(n)}function $(t,e,r,n,o){var i=B(r);if(null!=i)return i;var c=e.get(i);return!(void 0===c&&!e.has(i)||!I(n,c,!1,o))&&!t.has(i)&&I(n,c,!1,o)}function q(t,e,r,n,o,i){for(var c=a(t),s=0;s<c.length;s++){var u=c[s];if(I(r,u,o,i)&&I(n,e.get(u),o,i))return t.delete(u),!0}return!1}t.exports={isDeepEqual:function(t,e){return I(t,e,!1)},isDeepStrictEqual:function(t,e){return I(t,e,!0)}}},8165(t,e,r){"use strict";var n=r(9138),o=r(6095),i=r(4531),c=r(7196);t.exports=c||n.call(i,o)},2012(t,e,r){"use strict";var n=r(9138),o=r(6095),i=r(8165);t.exports=function(){return i(n,o,arguments)}},6095(t){"use strict";t.exports=Function.prototype.apply},4531(t){"use strict";t.exports=Function.prototype.call},9903(t,e,r){"use strict";var n=r(9138),o=r(3468),i=r(4531),c=r(8165);t.exports=function(t){if(t.length<1||"function"!=typeof t[0])throw new o("a function is required");return c(n,i,t)}},7196(t){"use strict";t.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},9818(t,e,r){"use strict";var n=r(528),o=r(8498),i=o(n("String.prototype.indexOf"));t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&i(t,".prototype.")>-1?o(r):r}},8498(t,e,r){"use strict";var n=r(6108),o=r(4940),i=r(9903),c=r(2012);t.exports=function(t){var e=i(arguments),r=1+t.length-(arguments.length-1);return n(e,r>0?r:0,!0)},o?o(t.exports,"apply",{value:c}):t.exports.apply=c},4607(t,e,r){"use strict";var n=r(528),o=r(9903),i=o([n("%String.prototype.indexOf%")]);t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&i(t,".prototype.")>-1?o([r]):r}},4364(t,e,r){var n=r(9208),o=r(6093);function i(){return(new Date).getTime()}var c,a=Array.prototype.slice,s={};c=void 0!==r.g&&r.g.console?r.g.console:"undefined"!=typeof window&&window.console?window.console:{};for(var u=[[function(){},"log"],[function(){c.log.apply(c,arguments)},"info"],[function(){c.log.apply(c,arguments)},"warn"],[function(){c.warn.apply(c,arguments)},"error"],[function(t){s[t]=i()},"time"],[function(t){var e=s[t];if(!e)throw new Error("No such label: "+t);delete s[t];var r=i()-e;c.log(t+": "+r+"ms")},"timeEnd"],[function(){var t=new Error;t.name="Trace",t.message=n.format.apply(null,arguments),c.error(t.stack)},"trace"],[function(t){c.log(n.inspect(t)+"\n")},"dir"],[function(t){if(!t){var e=a.call(arguments,1);o.ok(!1,n.format.apply(null,e))}},"assert"]],l=0;l<u.length;l++){var f=u[l],p=f[0],y=f[1];c[y]||(c[y]=p)}t.exports=c},686(t,e,r){"use strict";var n=r(4940),o=r(5731),i=r(3468),c=r(9336);t.exports=function(t,e,r){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new i("`obj` must be an object or a function`");if("string"!=typeof e&&"symbol"!=typeof e)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,s=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,l=arguments.length>6&&arguments[6],f=!!c&&c(t,e);if(n)n(t,e,{configurable:null===u&&f?f.configurable:!u,enumerable:null===a&&f?f.enumerable:!a,value:r,writable:null===s&&f?f.writable:!s});else{if(!l&&(a||s||u))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=r}}},1857(t,e,r){"use strict";var n=r(9228),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,c=Array.prototype.concat,a=r(686),s=r(7239)(),u=function(t,e,r,n){if(e in t)if(!0===n){if(t[e]===r)return}else if("function"!=typeof(o=n)||"[object Function]"!==i.call(o)||!n())return;var o;s?a(t,e,r,!0):a(t,e,r)},l=function(t,e){var r=arguments.length>2?arguments[2]:{},i=n(e);o&&(i=c.call(i,Object.getOwnPropertySymbols(e)));for(var a=0;a<i.length;a+=1)u(t,i[a],e[i[a]],r[i[a]])};l.supportsDescriptors=!!s,t.exports=l},6423(t,e,r){"use strict";var n,o=r(9903),i=r(9336);try{n=[].__proto__===Array.prototype}catch(t){if(!t||"object"!=typeof t||!("code"in t)||"ERR_PROTO_ACCESS"!==t.code)throw t}var c=!!n&&i&&i(Object.prototype,"__proto__"),a=Object,s=a.getPrototypeOf;t.exports=c&&"function"==typeof c.get?o([c.get]):"function"==typeof s&&function(t){return s(null==t?t:a(t))}},4940(t){"use strict";var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch(t){e=!1}t.exports=e},9110(t){"use strict";t.exports=EvalError},9838(t){"use strict";t.exports=Error},1155(t){"use strict";t.exports=RangeError},4943(t){"use strict";t.exports=ReferenceError},5731(t){"use strict";t.exports=SyntaxError},3468(t){"use strict";t.exports=TypeError},2140(t){"use strict";t.exports=URIError},9629(t){"use strict";t.exports=Object},705(t,e,r){"use strict";var n=r(9617),o=Object.prototype.toString,i=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){if(!n(e))throw new TypeError("iterator must be a function");var c,a;arguments.length>=3&&(c=r),a=t,"[object Array]"===o.call(a)?function(t,e,r){for(var n=0,o=t.length;n<o;n++)i.call(t,n)&&(null==r?e(t[n],n,t):e.call(r,t[n],n,t))}(t,e,c):"string"==typeof t?function(t,e,r){for(var n=0,o=t.length;n<o;n++)null==r?e(t.charAt(n),n,t):e.call(r,t.charAt(n),n,t)}(t,e,c):function(t,e,r){for(var n in t)i.call(t,n)&&(null==r?e(t[n],n,t):e.call(r,t[n],n,t))}(t,e,c)}},8794(t){"use strict";var e=Object.prototype.toString,r=Math.max,n=function(t,e){for(var r=[],n=0;n<t.length;n+=1)r[n]=t[n];for(var o=0;o<e.length;o+=1)r[o+t.length]=e[o];return r};t.exports=function(t){var o=this;if("function"!=typeof o||"[object Function]"!==e.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,c=function(t){for(var e=[],r=1,n=0;r<t.length;r+=1,n+=1)e[n]=t[r];return e}(arguments),a=r(0,o.length-c.length),s=[],u=0;u<a;u++)s[u]="$"+u;if(i=Function("binder","return function ("+function(t){for(var e="",r=0;r<t.length;r+=1)e+=t[r],r+1<t.length&&(e+=",");return e}(s)+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof i){var e=o.apply(this,n(c,arguments));return Object(e)===e?e:this}return o.apply(t,n(c,arguments))}),o.prototype){var l=function(){};l.prototype=o.prototype,i.prototype=new l,l.prototype=null}return i}},9138(t,e,r){"use strict";var n=r(8794);t.exports=Function.prototype.bind||n},4898(t){"use strict";const e=function*(){}.constructor;t.exports=()=>e},528(t,e,r){"use strict";var n,o=r(9629),i=r(9838),c=r(9110),a=r(1155),s=r(4943),u=r(5731),l=r(3468),f=r(2140),p=r(8479),y=r(8449),d=r(8129),h=r(2387),g=r(5865),b=r(1319),m=r(6882),v=Function,w=function(t){try{return v('"use strict"; return ('+t+").constructor;")()}catch(t){}},E=r(9336),O=r(4940),j=function(){throw new l},S=E?function(){try{return j}catch(t){try{return E(arguments,"callee").get}catch(t){return j}}}():j,A=r(3558)(),x=r(6369),P=r(7345),F=r(7859),C=r(6095),_=r(4531),k={},T="undefined"!=typeof Uint8Array&&x?x(Uint8Array):n,N={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":A&&x?x([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":k,"%AsyncGenerator%":k,"%AsyncGeneratorFunction%":k,"%AsyncIteratorPrototype%":k,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":c,"%Float16Array%":"undefined"==typeof Float16Array?n:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":k,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":A&&x?x(x([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&A&&x?x((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":o,"%Object.getOwnPropertyDescriptor%":E,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&A&&x?x((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":A&&x?x(""[Symbol.iterator]()):n,"%Symbol%":A?Symbol:n,"%SyntaxError%":u,"%ThrowTypeError%":S,"%TypedArray%":T,"%TypeError%":l,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":f,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":_,"%Function.prototype.apply%":C,"%Object.defineProperty%":O,"%Object.getPrototypeOf%":P,"%Math.abs%":p,"%Math.floor%":y,"%Math.max%":d,"%Math.min%":h,"%Math.pow%":g,"%Math.round%":b,"%Math.sign%":m,"%Reflect.getPrototypeOf%":F};if(x)try{null.error}catch(t){var R=x(x(t));N["%Error.prototype%"]=R}var I=function t(e){var r;if("%AsyncFunction%"===e)r=w("async function () {}");else if("%GeneratorFunction%"===e)r=w("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=w("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&x&&(r=x(o.prototype))}return N[e]=r,r},D={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},M=r(9138),L=r(8554),B=M.call(_,Array.prototype.concat),U=M.call(C,Array.prototype.splice),$=M.call(_,String.prototype.replace),q=M.call(_,String.prototype.slice),W=M.call(_,RegExp.prototype.exec),G=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,z=/\\(\\)?/g,V=function(t,e){var r,n=t;if(L(D,n)&&(n="%"+(r=D[n])[0]+"%"),L(N,n)){var o=N[n];if(o===k&&(o=I(n)),void 0===o&&!e)throw new l("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new u("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new l('"allowMissing" argument must be a boolean');if(null===W(/^%?[^%]*%?$/,t))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=q(t,0,1),r=q(t,-1);if("%"===e&&"%"!==r)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new u("invalid intrinsic syntax, expected opening `%`");var n=[];return $(t,G,function(t,e,r,o){n[n.length]=r?$(o,z,"$1"):e||t}),n}(t),n=r.length>0?r[0]:"",o=V("%"+n+"%",e),i=o.name,c=o.value,a=!1,s=o.alias;s&&(n=s[0],U(r,B([0,1],s)));for(var f=1,p=!0;f<r.length;f+=1){var y=r[f],d=q(y,0,1),h=q(y,-1);if(('"'===d||"'"===d||"`"===d||'"'===h||"'"===h||"`"===h)&&d!==h)throw new u("property names with quotes must have matching quotes");if("constructor"!==y&&p||(a=!0),L(N,i="%"+(n+="."+y)+"%"))c=N[i];else if(null!=c){if(!(y in c)){if(!e)throw new l("base intrinsic for "+t+" exists, but the property is not available.");return}if(E&&f+1>=r.length){var g=E(c,y);c=(p=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:c[y]}else p=L(c,y),c=c[y];p&&!a&&(N[i]=c)}}return c}},7345(t,e,r){"use strict";var n=r(9629);t.exports=n.getPrototypeOf||null},7859(t){"use strict";t.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},6369(t,e,r){"use strict";var n=r(7859),o=r(7345),i=r(6423);t.exports=n?function(t){return n(t)}:o?function(t){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("getProto: not an object");return o(t)}:i?function(t){return i(t)}:null},1292(t){"use strict";t.exports=Object.getOwnPropertyDescriptor},9336(t,e,r){"use strict";var n=r(1292);if(n)try{n([],"length")}catch(t){n=null}t.exports=n},7239(t,e,r){"use strict";var n=r(4940),o=function(){return!!n};o.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(t){return!0}},t.exports=o},3558(t,e,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(2908);t.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&o()}},2908(t){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var o=Object.getOwnPropertySymbols(t);if(1!==o.length||o[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},1913(t,e,r){"use strict";var n=r(2908);t.exports=function(){return n()&&!!Symbol.toStringTag}},8554(t,e,r){"use strict";var n=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=r(9138);t.exports=i.call(n,o)},5615(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},5387(t,e,r){"use strict";var n=r(1913)(),o=r(4607)("Object.prototype.toString"),i=function(t){return!(n&&t&&"object"==typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===o(t)},c=function(t){return!!i(t)||null!==t&&"object"==typeof t&&"length"in t&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==o(t)&&"callee"in t&&"[object Function]"===o(t.callee)},a=function(){return i(arguments)}(